resetting manifest requested domain to floor
[platform/upstream/libXi.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libXi 1.6.1.
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 as_awk_strverscmp='
551   # Use only awk features that work with 7th edition Unix awk (1978).
552   # My, what an old awk you have, Mr. Solaris!
553   END {
554     while (length(v1) && length(v2)) {
555       # Set d1 to be the next thing to compare from v1, and likewise for d2.
556       # Normally this is a single character, but if v1 and v2 contain digits,
557       # compare them as integers and fractions as strverscmp does.
558       if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
559         # Split v1 and v2 into their leading digit string components d1 and d2,
560         # and advance v1 and v2 past the leading digit strings.
561         for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
562         for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
563         d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
564         d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
565         if (d1 ~ /^0/) {
566           if (d2 ~ /^0/) {
567             # Compare two fractions.
568             while (d1 ~ /^0/ && d2 ~ /^0/) {
569               d1 = substr(d1, 2); len1--
570               d2 = substr(d2, 2); len2--
571             }
572             if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
573               # The two components differ in length, and the common prefix
574               # contains only leading zeros.  Consider the longer to be less.
575               d1 = -len1
576               d2 = -len2
577             } else {
578               # Otherwise, compare as strings.
579               d1 = "x" d1
580               d2 = "x" d2
581             }
582           } else {
583             # A fraction is less than an integer.
584             exit 1
585           }
586         } else {
587           if (d2 ~ /^0/) {
588             # An integer is greater than a fraction.
589             exit 2
590           } else {
591             # Compare two integers.
592             d1 += 0
593             d2 += 0
594           }
595         }
596       } else {
597         # The normal case, without worrying about digits.
598         d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
599         d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
600       }
601       if (d1 < d2) exit 1
602       if (d1 > d2) exit 2
603     }
604     # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
605     # which mishandles some comparisons of empty strings to integers.
606     if (length(v2)) exit 1
607     if (length(v1)) exit 2
608   }
609 '
610
611 test -n "$DJDIR" || exec 7<&0 </dev/null
612 exec 6>&1
613
614 # Name of the host.
615 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
616 # so uname gets run too.
617 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
618
619 #
620 # Initializations.
621 #
622 ac_default_prefix=/usr/local
623 ac_clean_files=
624 ac_config_libobj_dir=.
625 LIBOBJS=
626 cross_compiling=no
627 subdirs=
628 MFLAGS=
629 MAKEFLAGS=
630
631 # Identity of this package.
632 PACKAGE_NAME='libXi'
633 PACKAGE_TARNAME='libXi'
634 PACKAGE_VERSION='1.6.1'
635 PACKAGE_STRING='libXi 1.6.1'
636 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
637 PACKAGE_URL=''
638
639 ac_unique_file="Makefile.am"
640 # Factoring default headers for most tests.
641 ac_includes_default="\
642 #include <stdio.h>
643 #ifdef HAVE_SYS_TYPES_H
644 # include <sys/types.h>
645 #endif
646 #ifdef HAVE_SYS_STAT_H
647 # include <sys/stat.h>
648 #endif
649 #ifdef STDC_HEADERS
650 # include <stdlib.h>
651 # include <stddef.h>
652 #else
653 # ifdef HAVE_STDLIB_H
654 #  include <stdlib.h>
655 # endif
656 #endif
657 #ifdef HAVE_STRING_H
658 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
659 #  include <memory.h>
660 # endif
661 # include <string.h>
662 #endif
663 #ifdef HAVE_STRINGS_H
664 # include <strings.h>
665 #endif
666 #ifdef HAVE_INTTYPES_H
667 # include <inttypes.h>
668 #endif
669 #ifdef HAVE_STDINT_H
670 # include <stdint.h>
671 #endif
672 #ifdef HAVE_UNISTD_H
673 # include <unistd.h>
674 #endif"
675
676 ac_subst_vars='am__EXEEXT_FALSE
677 am__EXEEXT_TRUE
678 LTLIBOBJS
679 LIBOBJS
680 INSTALL_MANPAGES_FALSE
681 INSTALL_MANPAGES_TRUE
682 HAVE_DOCTOOLS_FALSE
683 HAVE_DOCTOOLS_TRUE
684 XI_LIBS
685 XI_CFLAGS
686 XTMALLOC_ZERO_CFLAGS
687 XMALLOC_ZERO_CFLAGS
688 MALLOC_ZERO_CFLAGS
689 HAVE_ASCIIDOC_FALSE
690 HAVE_ASCIIDOC_TRUE
691 ASCIIDOC
692 HAVE_STYLESHEETS_FALSE
693 HAVE_STYLESHEETS_TRUE
694 XSL_STYLESHEET
695 STYLESHEET_SRCDIR
696 XORG_SGML_PATH
697 HAVE_XSLTPROC_FALSE
698 HAVE_XSLTPROC_TRUE
699 XSLTPROC
700 HAVE_FOP_FALSE
701 HAVE_FOP_TRUE
702 FOP
703 HAVE_XMLTO_FALSE
704 HAVE_XMLTO_TRUE
705 HAVE_XMLTO_TEXT_FALSE
706 HAVE_XMLTO_TEXT_TRUE
707 XMLTO
708 ENABLE_SPECS_FALSE
709 ENABLE_SPECS_TRUE
710 ENABLE_DOCS_FALSE
711 ENABLE_DOCS_TRUE
712 AM_BACKSLASH
713 AM_DEFAULT_VERBOSITY
714 AM_DEFAULT_V
715 AM_V
716 MAN_SUBSTS
717 XORG_MAN_PAGE
718 ADMIN_MAN_DIR
719 DRIVER_MAN_DIR
720 MISC_MAN_DIR
721 FILE_MAN_DIR
722 LIB_MAN_DIR
723 APP_MAN_DIR
724 ADMIN_MAN_SUFFIX
725 DRIVER_MAN_SUFFIX
726 MISC_MAN_SUFFIX
727 FILE_MAN_SUFFIX
728 LIB_MAN_SUFFIX
729 APP_MAN_SUFFIX
730 INSTALL_CMD
731 PKG_CONFIG_LIBDIR
732 PKG_CONFIG_PATH
733 PKG_CONFIG
734 CHANGELOG_CMD
735 STRICT_CFLAGS
736 CWARNFLAGS
737 BASE_CFLAGS
738 CPP
739 OTOOL64
740 OTOOL
741 LIPO
742 NMEDIT
743 DSYMUTIL
744 MANIFEST_TOOL
745 RANLIB
746 ac_ct_AR
747 AR
748 DLLTOOL
749 OBJDUMP
750 LN_S
751 NM
752 ac_ct_DUMPBIN
753 DUMPBIN
754 LD
755 FGREP
756 EGREP
757 GREP
758 SED
759 am__fastdepCC_FALSE
760 am__fastdepCC_TRUE
761 CCDEPMODE
762 am__nodep
763 AMDEPBACKSLASH
764 AMDEP_FALSE
765 AMDEP_TRUE
766 am__quote
767 am__include
768 DEPDIR
769 OBJEXT
770 EXEEXT
771 ac_ct_CC
772 CPPFLAGS
773 LDFLAGS
774 CFLAGS
775 CC
776 host_os
777 host_vendor
778 host_cpu
779 host
780 build_os
781 build_vendor
782 build_cpu
783 build
784 LIBTOOL
785 MAINT
786 MAINTAINER_MODE_FALSE
787 MAINTAINER_MODE_TRUE
788 am__untar
789 am__tar
790 AMTAR
791 am__leading_dot
792 SET_MAKE
793 AWK
794 mkdir_p
795 MKDIR_P
796 INSTALL_STRIP_PROGRAM
797 STRIP
798 install_sh
799 MAKEINFO
800 AUTOHEADER
801 AUTOMAKE
802 AUTOCONF
803 ACLOCAL
804 VERSION
805 PACKAGE
806 CYGPATH_W
807 am__isrc
808 INSTALL_DATA
809 INSTALL_SCRIPT
810 INSTALL_PROGRAM
811 target_alias
812 host_alias
813 build_alias
814 LIBS
815 ECHO_T
816 ECHO_N
817 ECHO_C
818 DEFS
819 mandir
820 localedir
821 libdir
822 psdir
823 pdfdir
824 dvidir
825 htmldir
826 infodir
827 docdir
828 oldincludedir
829 includedir
830 localstatedir
831 sharedstatedir
832 sysconfdir
833 datadir
834 datarootdir
835 libexecdir
836 sbindir
837 bindir
838 program_transform_name
839 prefix
840 exec_prefix
841 PACKAGE_URL
842 PACKAGE_BUGREPORT
843 PACKAGE_STRING
844 PACKAGE_VERSION
845 PACKAGE_TARNAME
846 PACKAGE_NAME
847 PATH_SEPARATOR
848 SHELL'
849 ac_subst_files=''
850 ac_user_opts='
851 enable_option_checking
852 enable_maintainer_mode
853 enable_shared
854 enable_static
855 with_pic
856 enable_fast_install
857 enable_dependency_tracking
858 with_gnu_ld
859 with_sysroot
860 enable_libtool_lock
861 enable_selective_werror
862 enable_strict_compilation
863 enable_silent_rules
864 enable_docs
865 enable_specs
866 with_xmlto
867 with_fop
868 with_xsltproc
869 with_asciidoc
870 enable_malloc0returnsnull
871 '
872       ac_precious_vars='build_alias
873 host_alias
874 target_alias
875 CC
876 CFLAGS
877 LDFLAGS
878 LIBS
879 CPPFLAGS
880 CPP
881 PKG_CONFIG
882 PKG_CONFIG_PATH
883 PKG_CONFIG_LIBDIR
884 XMLTO
885 FOP
886 XSLTPROC
887 ASCIIDOC
888 XI_CFLAGS
889 XI_LIBS'
890
891
892 # Initialize some variables set by options.
893 ac_init_help=
894 ac_init_version=false
895 ac_unrecognized_opts=
896 ac_unrecognized_sep=
897 # The variables have the same names as the options, with
898 # dashes changed to underlines.
899 cache_file=/dev/null
900 exec_prefix=NONE
901 no_create=
902 no_recursion=
903 prefix=NONE
904 program_prefix=NONE
905 program_suffix=NONE
906 program_transform_name=s,x,x,
907 silent=
908 site=
909 srcdir=
910 verbose=
911 x_includes=NONE
912 x_libraries=NONE
913
914 # Installation directory options.
915 # These are left unexpanded so users can "make install exec_prefix=/foo"
916 # and all the variables that are supposed to be based on exec_prefix
917 # by default will actually change.
918 # Use braces instead of parens because sh, perl, etc. also accept them.
919 # (The list follows the same order as the GNU Coding Standards.)
920 bindir='${exec_prefix}/bin'
921 sbindir='${exec_prefix}/sbin'
922 libexecdir='${exec_prefix}/libexec'
923 datarootdir='${prefix}/share'
924 datadir='${datarootdir}'
925 sysconfdir='${prefix}/etc'
926 sharedstatedir='${prefix}/com'
927 localstatedir='${prefix}/var'
928 includedir='${prefix}/include'
929 oldincludedir='/usr/include'
930 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
931 infodir='${datarootdir}/info'
932 htmldir='${docdir}'
933 dvidir='${docdir}'
934 pdfdir='${docdir}'
935 psdir='${docdir}'
936 libdir='${exec_prefix}/lib'
937 localedir='${datarootdir}/locale'
938 mandir='${datarootdir}/man'
939
940 ac_prev=
941 ac_dashdash=
942 for ac_option
943 do
944   # If the previous option needs an argument, assign it.
945   if test -n "$ac_prev"; then
946     eval $ac_prev=\$ac_option
947     ac_prev=
948     continue
949   fi
950
951   case $ac_option in
952   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
953   *=)   ac_optarg= ;;
954   *)    ac_optarg=yes ;;
955   esac
956
957   # Accept the important Cygnus configure options, so we can diagnose typos.
958
959   case $ac_dashdash$ac_option in
960   --)
961     ac_dashdash=yes ;;
962
963   -bindir | --bindir | --bindi | --bind | --bin | --bi)
964     ac_prev=bindir ;;
965   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
966     bindir=$ac_optarg ;;
967
968   -build | --build | --buil | --bui | --bu)
969     ac_prev=build_alias ;;
970   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
971     build_alias=$ac_optarg ;;
972
973   -cache-file | --cache-file | --cache-fil | --cache-fi \
974   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
975     ac_prev=cache_file ;;
976   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
977   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
978     cache_file=$ac_optarg ;;
979
980   --config-cache | -C)
981     cache_file=config.cache ;;
982
983   -datadir | --datadir | --datadi | --datad)
984     ac_prev=datadir ;;
985   -datadir=* | --datadir=* | --datadi=* | --datad=*)
986     datadir=$ac_optarg ;;
987
988   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
989   | --dataroo | --dataro | --datar)
990     ac_prev=datarootdir ;;
991   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
992   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
993     datarootdir=$ac_optarg ;;
994
995   -disable-* | --disable-*)
996     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
997     # Reject names that are not valid shell variable names.
998     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999       as_fn_error $? "invalid feature name: $ac_useropt"
1000     ac_useropt_orig=$ac_useropt
1001     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002     case $ac_user_opts in
1003       *"
1004 "enable_$ac_useropt"
1005 "*) ;;
1006       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1007          ac_unrecognized_sep=', ';;
1008     esac
1009     eval enable_$ac_useropt=no ;;
1010
1011   -docdir | --docdir | --docdi | --doc | --do)
1012     ac_prev=docdir ;;
1013   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1014     docdir=$ac_optarg ;;
1015
1016   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1017     ac_prev=dvidir ;;
1018   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1019     dvidir=$ac_optarg ;;
1020
1021   -enable-* | --enable-*)
1022     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1023     # Reject names that are not valid shell variable names.
1024     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1025       as_fn_error $? "invalid feature name: $ac_useropt"
1026     ac_useropt_orig=$ac_useropt
1027     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1028     case $ac_user_opts in
1029       *"
1030 "enable_$ac_useropt"
1031 "*) ;;
1032       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1033          ac_unrecognized_sep=', ';;
1034     esac
1035     eval enable_$ac_useropt=\$ac_optarg ;;
1036
1037   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1038   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1039   | --exec | --exe | --ex)
1040     ac_prev=exec_prefix ;;
1041   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1042   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1043   | --exec=* | --exe=* | --ex=*)
1044     exec_prefix=$ac_optarg ;;
1045
1046   -gas | --gas | --ga | --g)
1047     # Obsolete; use --with-gas.
1048     with_gas=yes ;;
1049
1050   -help | --help | --hel | --he | -h)
1051     ac_init_help=long ;;
1052   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1053     ac_init_help=recursive ;;
1054   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1055     ac_init_help=short ;;
1056
1057   -host | --host | --hos | --ho)
1058     ac_prev=host_alias ;;
1059   -host=* | --host=* | --hos=* | --ho=*)
1060     host_alias=$ac_optarg ;;
1061
1062   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1063     ac_prev=htmldir ;;
1064   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1065   | --ht=*)
1066     htmldir=$ac_optarg ;;
1067
1068   -includedir | --includedir | --includedi | --included | --include \
1069   | --includ | --inclu | --incl | --inc)
1070     ac_prev=includedir ;;
1071   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1072   | --includ=* | --inclu=* | --incl=* | --inc=*)
1073     includedir=$ac_optarg ;;
1074
1075   -infodir | --infodir | --infodi | --infod | --info | --inf)
1076     ac_prev=infodir ;;
1077   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1078     infodir=$ac_optarg ;;
1079
1080   -libdir | --libdir | --libdi | --libd)
1081     ac_prev=libdir ;;
1082   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1083     libdir=$ac_optarg ;;
1084
1085   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1086   | --libexe | --libex | --libe)
1087     ac_prev=libexecdir ;;
1088   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1089   | --libexe=* | --libex=* | --libe=*)
1090     libexecdir=$ac_optarg ;;
1091
1092   -localedir | --localedir | --localedi | --localed | --locale)
1093     ac_prev=localedir ;;
1094   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1095     localedir=$ac_optarg ;;
1096
1097   -localstatedir | --localstatedir | --localstatedi | --localstated \
1098   | --localstate | --localstat | --localsta | --localst | --locals)
1099     ac_prev=localstatedir ;;
1100   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1101   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1102     localstatedir=$ac_optarg ;;
1103
1104   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1105     ac_prev=mandir ;;
1106   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1107     mandir=$ac_optarg ;;
1108
1109   -nfp | --nfp | --nf)
1110     # Obsolete; use --without-fp.
1111     with_fp=no ;;
1112
1113   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1114   | --no-cr | --no-c | -n)
1115     no_create=yes ;;
1116
1117   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1118   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1119     no_recursion=yes ;;
1120
1121   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1122   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1123   | --oldin | --oldi | --old | --ol | --o)
1124     ac_prev=oldincludedir ;;
1125   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1126   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1127   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1128     oldincludedir=$ac_optarg ;;
1129
1130   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1131     ac_prev=prefix ;;
1132   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1133     prefix=$ac_optarg ;;
1134
1135   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1136   | --program-pre | --program-pr | --program-p)
1137     ac_prev=program_prefix ;;
1138   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1139   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1140     program_prefix=$ac_optarg ;;
1141
1142   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1143   | --program-suf | --program-su | --program-s)
1144     ac_prev=program_suffix ;;
1145   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1146   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1147     program_suffix=$ac_optarg ;;
1148
1149   -program-transform-name | --program-transform-name \
1150   | --program-transform-nam | --program-transform-na \
1151   | --program-transform-n | --program-transform- \
1152   | --program-transform | --program-transfor \
1153   | --program-transfo | --program-transf \
1154   | --program-trans | --program-tran \
1155   | --progr-tra | --program-tr | --program-t)
1156     ac_prev=program_transform_name ;;
1157   -program-transform-name=* | --program-transform-name=* \
1158   | --program-transform-nam=* | --program-transform-na=* \
1159   | --program-transform-n=* | --program-transform-=* \
1160   | --program-transform=* | --program-transfor=* \
1161   | --program-transfo=* | --program-transf=* \
1162   | --program-trans=* | --program-tran=* \
1163   | --progr-tra=* | --program-tr=* | --program-t=*)
1164     program_transform_name=$ac_optarg ;;
1165
1166   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1167     ac_prev=pdfdir ;;
1168   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1169     pdfdir=$ac_optarg ;;
1170
1171   -psdir | --psdir | --psdi | --psd | --ps)
1172     ac_prev=psdir ;;
1173   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1174     psdir=$ac_optarg ;;
1175
1176   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1177   | -silent | --silent | --silen | --sile | --sil)
1178     silent=yes ;;
1179
1180   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1181     ac_prev=sbindir ;;
1182   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1183   | --sbi=* | --sb=*)
1184     sbindir=$ac_optarg ;;
1185
1186   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1187   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1188   | --sharedst | --shareds | --shared | --share | --shar \
1189   | --sha | --sh)
1190     ac_prev=sharedstatedir ;;
1191   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1192   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1193   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1194   | --sha=* | --sh=*)
1195     sharedstatedir=$ac_optarg ;;
1196
1197   -site | --site | --sit)
1198     ac_prev=site ;;
1199   -site=* | --site=* | --sit=*)
1200     site=$ac_optarg ;;
1201
1202   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1203     ac_prev=srcdir ;;
1204   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1205     srcdir=$ac_optarg ;;
1206
1207   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1208   | --syscon | --sysco | --sysc | --sys | --sy)
1209     ac_prev=sysconfdir ;;
1210   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1211   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1212     sysconfdir=$ac_optarg ;;
1213
1214   -target | --target | --targe | --targ | --tar | --ta | --t)
1215     ac_prev=target_alias ;;
1216   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1217     target_alias=$ac_optarg ;;
1218
1219   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1220     verbose=yes ;;
1221
1222   -version | --version | --versio | --versi | --vers | -V)
1223     ac_init_version=: ;;
1224
1225   -with-* | --with-*)
1226     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1227     # Reject names that are not valid shell variable names.
1228     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1229       as_fn_error $? "invalid package name: $ac_useropt"
1230     ac_useropt_orig=$ac_useropt
1231     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1232     case $ac_user_opts in
1233       *"
1234 "with_$ac_useropt"
1235 "*) ;;
1236       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1237          ac_unrecognized_sep=', ';;
1238     esac
1239     eval with_$ac_useropt=\$ac_optarg ;;
1240
1241   -without-* | --without-*)
1242     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1243     # Reject names that are not valid shell variable names.
1244     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1245       as_fn_error $? "invalid package name: $ac_useropt"
1246     ac_useropt_orig=$ac_useropt
1247     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1248     case $ac_user_opts in
1249       *"
1250 "with_$ac_useropt"
1251 "*) ;;
1252       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1253          ac_unrecognized_sep=', ';;
1254     esac
1255     eval with_$ac_useropt=no ;;
1256
1257   --x)
1258     # Obsolete; use --with-x.
1259     with_x=yes ;;
1260
1261   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1262   | --x-incl | --x-inc | --x-in | --x-i)
1263     ac_prev=x_includes ;;
1264   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1265   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1266     x_includes=$ac_optarg ;;
1267
1268   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1269   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1270     ac_prev=x_libraries ;;
1271   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1272   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1273     x_libraries=$ac_optarg ;;
1274
1275   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1276 Try \`$0 --help' for more information"
1277     ;;
1278
1279   *=*)
1280     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1281     # Reject names that are not valid shell variable names.
1282     case $ac_envvar in #(
1283       '' | [0-9]* | *[!_$as_cr_alnum]* )
1284       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1285     esac
1286     eval $ac_envvar=\$ac_optarg
1287     export $ac_envvar ;;
1288
1289   *)
1290     # FIXME: should be removed in autoconf 3.0.
1291     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1292     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1293       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1294     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1295     ;;
1296
1297   esac
1298 done
1299
1300 if test -n "$ac_prev"; then
1301   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1302   as_fn_error $? "missing argument to $ac_option"
1303 fi
1304
1305 if test -n "$ac_unrecognized_opts"; then
1306   case $enable_option_checking in
1307     no) ;;
1308     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1309     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1310   esac
1311 fi
1312
1313 # Check all directory arguments for consistency.
1314 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1315                 datadir sysconfdir sharedstatedir localstatedir includedir \
1316                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1317                 libdir localedir mandir
1318 do
1319   eval ac_val=\$$ac_var
1320   # Remove trailing slashes.
1321   case $ac_val in
1322     */ )
1323       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1324       eval $ac_var=\$ac_val;;
1325   esac
1326   # Be sure to have absolute directory names.
1327   case $ac_val in
1328     [\\/$]* | ?:[\\/]* )  continue;;
1329     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1330   esac
1331   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1332 done
1333
1334 # There might be people who depend on the old broken behavior: `$host'
1335 # used to hold the argument of --host etc.
1336 # FIXME: To remove some day.
1337 build=$build_alias
1338 host=$host_alias
1339 target=$target_alias
1340
1341 # FIXME: To remove some day.
1342 if test "x$host_alias" != x; then
1343   if test "x$build_alias" = x; then
1344     cross_compiling=maybe
1345     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1346     If a cross compiler is detected then cross compile mode will be used" >&2
1347   elif test "x$build_alias" != "x$host_alias"; then
1348     cross_compiling=yes
1349   fi
1350 fi
1351
1352 ac_tool_prefix=
1353 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1354
1355 test "$silent" = yes && exec 6>/dev/null
1356
1357
1358 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1359 ac_ls_di=`ls -di .` &&
1360 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1361   as_fn_error $? "working directory cannot be determined"
1362 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1363   as_fn_error $? "pwd does not report name of working directory"
1364
1365
1366 # Find the source files, if location was not specified.
1367 if test -z "$srcdir"; then
1368   ac_srcdir_defaulted=yes
1369   # Try the directory containing this script, then the parent directory.
1370   ac_confdir=`$as_dirname -- "$as_myself" ||
1371 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1372          X"$as_myself" : 'X\(//\)[^/]' \| \
1373          X"$as_myself" : 'X\(//\)$' \| \
1374          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1375 $as_echo X"$as_myself" |
1376     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1377             s//\1/
1378             q
1379           }
1380           /^X\(\/\/\)[^/].*/{
1381             s//\1/
1382             q
1383           }
1384           /^X\(\/\/\)$/{
1385             s//\1/
1386             q
1387           }
1388           /^X\(\/\).*/{
1389             s//\1/
1390             q
1391           }
1392           s/.*/./; q'`
1393   srcdir=$ac_confdir
1394   if test ! -r "$srcdir/$ac_unique_file"; then
1395     srcdir=..
1396   fi
1397 else
1398   ac_srcdir_defaulted=no
1399 fi
1400 if test ! -r "$srcdir/$ac_unique_file"; then
1401   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1402   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1403 fi
1404 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1405 ac_abs_confdir=`(
1406         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1407         pwd)`
1408 # When building in place, set srcdir=.
1409 if test "$ac_abs_confdir" = "$ac_pwd"; then
1410   srcdir=.
1411 fi
1412 # Remove unnecessary trailing slashes from srcdir.
1413 # Double slashes in file names in object file debugging info
1414 # mess up M-x gdb in Emacs.
1415 case $srcdir in
1416 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1417 esac
1418 for ac_var in $ac_precious_vars; do
1419   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1420   eval ac_env_${ac_var}_value=\$${ac_var}
1421   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1422   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1423 done
1424
1425 #
1426 # Report the --help message.
1427 #
1428 if test "$ac_init_help" = "long"; then
1429   # Omit some internal or obsolete options to make the list less imposing.
1430   # This message is too long to be a string in the A/UX 3.1 sh.
1431   cat <<_ACEOF
1432 \`configure' configures libXi 1.6.1 to adapt to many kinds of systems.
1433
1434 Usage: $0 [OPTION]... [VAR=VALUE]...
1435
1436 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1437 VAR=VALUE.  See below for descriptions of some of the useful variables.
1438
1439 Defaults for the options are specified in brackets.
1440
1441 Configuration:
1442   -h, --help              display this help and exit
1443       --help=short        display options specific to this package
1444       --help=recursive    display the short help of all the included packages
1445   -V, --version           display version information and exit
1446   -q, --quiet, --silent   do not print \`checking ...' messages
1447       --cache-file=FILE   cache test results in FILE [disabled]
1448   -C, --config-cache      alias for \`--cache-file=config.cache'
1449   -n, --no-create         do not create output files
1450       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1451
1452 Installation directories:
1453   --prefix=PREFIX         install architecture-independent files in PREFIX
1454                           [$ac_default_prefix]
1455   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1456                           [PREFIX]
1457
1458 By default, \`make install' will install all the files in
1459 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1460 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1461 for instance \`--prefix=\$HOME'.
1462
1463 For better control, use the options below.
1464
1465 Fine tuning of the installation directories:
1466   --bindir=DIR            user executables [EPREFIX/bin]
1467   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1468   --libexecdir=DIR        program executables [EPREFIX/libexec]
1469   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1470   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1471   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1472   --libdir=DIR            object code libraries [EPREFIX/lib]
1473   --includedir=DIR        C header files [PREFIX/include]
1474   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1475   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1476   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1477   --infodir=DIR           info documentation [DATAROOTDIR/info]
1478   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1479   --mandir=DIR            man documentation [DATAROOTDIR/man]
1480   --docdir=DIR            documentation root [DATAROOTDIR/doc/libXi]
1481   --htmldir=DIR           html documentation [DOCDIR]
1482   --dvidir=DIR            dvi documentation [DOCDIR]
1483   --pdfdir=DIR            pdf documentation [DOCDIR]
1484   --psdir=DIR             ps documentation [DOCDIR]
1485 _ACEOF
1486
1487   cat <<\_ACEOF
1488
1489 Program names:
1490   --program-prefix=PREFIX            prepend PREFIX to installed program names
1491   --program-suffix=SUFFIX            append SUFFIX to installed program names
1492   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1493
1494 System types:
1495   --build=BUILD     configure for building on BUILD [guessed]
1496   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1497 _ACEOF
1498 fi
1499
1500 if test -n "$ac_init_help"; then
1501   case $ac_init_help in
1502      short | recursive ) echo "Configuration of libXi 1.6.1:";;
1503    esac
1504   cat <<\_ACEOF
1505
1506 Optional Features:
1507   --disable-option-checking  ignore unrecognized --enable/--with options
1508   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1509   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1510   --enable-maintainer-mode  enable make rules and dependencies not useful
1511                           (and sometimes confusing) to the casual installer
1512   --enable-shared[=PKGS]  build shared libraries [default=yes]
1513   --enable-static[=PKGS]  build static libraries [default=yes]
1514   --enable-fast-install[=PKGS]
1515                           optimize for fast installation [default=yes]
1516   --disable-dependency-tracking  speeds up one-time build
1517   --enable-dependency-tracking   do not reject slow dependency extractors
1518   --disable-libtool-lock  avoid locking (might break parallel builds)
1519   --disable-selective-werror
1520                           Turn off selective compiler errors. (default:
1521                           enabled)
1522   --enable-strict-compilation
1523                           Enable all warnings from compiler and make them
1524                           errors (default: disabled)
1525   --enable-silent-rules          less verbose build output (undo: `make V=1')
1526   --disable-silent-rules         verbose build output (undo: `make V=0')
1527   --enable-docs           Enable building the documentation (default: yes)
1528   --enable-specs          Enable building the specs (default: yes)
1529   --enable-malloc0returnsnull
1530                           malloc(0) returns NULL (default: auto)
1531
1532 Optional Packages:
1533   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1534   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1535   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1536                           both]
1537   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1538   --with-sysroot=DIR Search for dependent libraries within DIR
1539                         (or the compiler's sysroot if not specified).
1540   --with-xmlto            Use xmlto to regenerate documentation (default:
1541                           auto)
1542   --with-fop              Use fop to regenerate documentation (default: auto)
1543   --with-xsltproc         Use xsltproc for the transformation of XML documents
1544                           (default: auto)
1545   --with-asciidoc         Use asciidoc to regenerate documentation (default:
1546                           auto)
1547
1548 Some influential environment variables:
1549   CC          C compiler command
1550   CFLAGS      C compiler flags
1551   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1552               nonstandard directory <lib dir>
1553   LIBS        libraries to pass to the linker, e.g. -l<library>
1554   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1555               you have headers in a nonstandard directory <include dir>
1556   CPP         C preprocessor
1557   PKG_CONFIG  path to pkg-config utility
1558   PKG_CONFIG_PATH
1559               directories to add to pkg-config's search path
1560   PKG_CONFIG_LIBDIR
1561               path overriding pkg-config's built-in search path
1562   XMLTO       Path to xmlto command
1563   FOP         Path to fop command
1564   XSLTPROC    Path to xsltproc command
1565   ASCIIDOC    Path to asciidoc command
1566   XI_CFLAGS   C compiler flags for XI, overriding pkg-config
1567   XI_LIBS     linker flags for XI, overriding pkg-config
1568
1569 Use these variables to override the choices made by `configure' or to help
1570 it to find libraries and programs with nonstandard names/locations.
1571
1572 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1573 _ACEOF
1574 ac_status=$?
1575 fi
1576
1577 if test "$ac_init_help" = "recursive"; then
1578   # If there are subdirs, report their specific --help.
1579   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1580     test -d "$ac_dir" ||
1581       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1582       continue
1583     ac_builddir=.
1584
1585 case "$ac_dir" in
1586 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1587 *)
1588   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1589   # A ".." for each directory in $ac_dir_suffix.
1590   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1591   case $ac_top_builddir_sub in
1592   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1593   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1594   esac ;;
1595 esac
1596 ac_abs_top_builddir=$ac_pwd
1597 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1598 # for backward compatibility:
1599 ac_top_builddir=$ac_top_build_prefix
1600
1601 case $srcdir in
1602   .)  # We are building in place.
1603     ac_srcdir=.
1604     ac_top_srcdir=$ac_top_builddir_sub
1605     ac_abs_top_srcdir=$ac_pwd ;;
1606   [\\/]* | ?:[\\/]* )  # Absolute name.
1607     ac_srcdir=$srcdir$ac_dir_suffix;
1608     ac_top_srcdir=$srcdir
1609     ac_abs_top_srcdir=$srcdir ;;
1610   *) # Relative name.
1611     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1612     ac_top_srcdir=$ac_top_build_prefix$srcdir
1613     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1614 esac
1615 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1616
1617     cd "$ac_dir" || { ac_status=$?; continue; }
1618     # Check for guested configure.
1619     if test -f "$ac_srcdir/configure.gnu"; then
1620       echo &&
1621       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1622     elif test -f "$ac_srcdir/configure"; then
1623       echo &&
1624       $SHELL "$ac_srcdir/configure" --help=recursive
1625     else
1626       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1627     fi || ac_status=$?
1628     cd "$ac_pwd" || { ac_status=$?; break; }
1629   done
1630 fi
1631
1632 test -n "$ac_init_help" && exit $ac_status
1633 if $ac_init_version; then
1634   cat <<\_ACEOF
1635 libXi configure 1.6.1
1636 generated by GNU Autoconf 2.68
1637
1638 Copyright (C) 2010 Free Software Foundation, Inc.
1639 This configure script is free software; the Free Software Foundation
1640 gives unlimited permission to copy, distribute and modify it.
1641 _ACEOF
1642   exit
1643 fi
1644
1645 ## ------------------------ ##
1646 ## Autoconf initialization. ##
1647 ## ------------------------ ##
1648
1649 # ac_fn_c_try_compile LINENO
1650 # --------------------------
1651 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1652 ac_fn_c_try_compile ()
1653 {
1654   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655   rm -f conftest.$ac_objext
1656   if { { ac_try="$ac_compile"
1657 case "(($ac_try" in
1658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659   *) ac_try_echo=$ac_try;;
1660 esac
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663   (eval "$ac_compile") 2>conftest.err
1664   ac_status=$?
1665   if test -s conftest.err; then
1666     grep -v '^ *+' conftest.err >conftest.er1
1667     cat conftest.er1 >&5
1668     mv -f conftest.er1 conftest.err
1669   fi
1670   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671   test $ac_status = 0; } && {
1672          test -z "$ac_c_werror_flag" ||
1673          test ! -s conftest.err
1674        } && test -s conftest.$ac_objext; then :
1675   ac_retval=0
1676 else
1677   $as_echo "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.$ac_ext >&5
1679
1680         ac_retval=1
1681 fi
1682   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683   as_fn_set_status $ac_retval
1684
1685 } # ac_fn_c_try_compile
1686
1687 # ac_fn_c_try_link LINENO
1688 # -----------------------
1689 # Try to link conftest.$ac_ext, and return whether this succeeded.
1690 ac_fn_c_try_link ()
1691 {
1692   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693   rm -f conftest.$ac_objext conftest$ac_exeext
1694   if { { ac_try="$ac_link"
1695 case "(($ac_try" in
1696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697   *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701   (eval "$ac_link") 2>conftest.err
1702   ac_status=$?
1703   if test -s conftest.err; then
1704     grep -v '^ *+' conftest.err >conftest.er1
1705     cat conftest.er1 >&5
1706     mv -f conftest.er1 conftest.err
1707   fi
1708   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709   test $ac_status = 0; } && {
1710          test -z "$ac_c_werror_flag" ||
1711          test ! -s conftest.err
1712        } && test -s conftest$ac_exeext && {
1713          test "$cross_compiling" = yes ||
1714          $as_test_x conftest$ac_exeext
1715        }; then :
1716   ac_retval=0
1717 else
1718   $as_echo "$as_me: failed program was:" >&5
1719 sed 's/^/| /' conftest.$ac_ext >&5
1720
1721         ac_retval=1
1722 fi
1723   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1724   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1725   # interfere with the next link command; also delete a directory that is
1726   # left behind by Apple's compiler.  We do this before executing the actions.
1727   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1728   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729   as_fn_set_status $ac_retval
1730
1731 } # ac_fn_c_try_link
1732
1733 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1734 # -------------------------------------------------------
1735 # Tests whether HEADER exists and can be compiled using the include files in
1736 # INCLUDES, setting the cache variable VAR accordingly.
1737 ac_fn_c_check_header_compile ()
1738 {
1739   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741 $as_echo_n "checking for $2... " >&6; }
1742 if eval \${$3+:} false; then :
1743   $as_echo_n "(cached) " >&6
1744 else
1745   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h.  */
1747 $4
1748 #include <$2>
1749 _ACEOF
1750 if ac_fn_c_try_compile "$LINENO"; then :
1751   eval "$3=yes"
1752 else
1753   eval "$3=no"
1754 fi
1755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1756 fi
1757 eval ac_res=\$$3
1758                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759 $as_echo "$ac_res" >&6; }
1760   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761
1762 } # ac_fn_c_check_header_compile
1763
1764 # ac_fn_c_try_cpp LINENO
1765 # ----------------------
1766 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1767 ac_fn_c_try_cpp ()
1768 {
1769   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770   if { { ac_try="$ac_cpp conftest.$ac_ext"
1771 case "(($ac_try" in
1772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773   *) ac_try_echo=$ac_try;;
1774 esac
1775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776 $as_echo "$ac_try_echo"; } >&5
1777   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1778   ac_status=$?
1779   if test -s conftest.err; then
1780     grep -v '^ *+' conftest.err >conftest.er1
1781     cat conftest.er1 >&5
1782     mv -f conftest.er1 conftest.err
1783   fi
1784   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785   test $ac_status = 0; } > conftest.i && {
1786          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1787          test ! -s conftest.err
1788        }; then :
1789   ac_retval=0
1790 else
1791   $as_echo "$as_me: failed program was:" >&5
1792 sed 's/^/| /' conftest.$ac_ext >&5
1793
1794     ac_retval=1
1795 fi
1796   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797   as_fn_set_status $ac_retval
1798
1799 } # ac_fn_c_try_cpp
1800
1801 # ac_fn_c_try_run LINENO
1802 # ----------------------
1803 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1804 # that executables *can* be run.
1805 ac_fn_c_try_run ()
1806 {
1807   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808   if { { ac_try="$ac_link"
1809 case "(($ac_try" in
1810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811   *) ac_try_echo=$ac_try;;
1812 esac
1813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814 $as_echo "$ac_try_echo"; } >&5
1815   (eval "$ac_link") 2>&5
1816   ac_status=$?
1817   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1819   { { case "(($ac_try" in
1820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821   *) ac_try_echo=$ac_try;;
1822 esac
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825   (eval "$ac_try") 2>&5
1826   ac_status=$?
1827   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828   test $ac_status = 0; }; }; then :
1829   ac_retval=0
1830 else
1831   $as_echo "$as_me: program exited with status $ac_status" >&5
1832        $as_echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1834
1835        ac_retval=$ac_status
1836 fi
1837   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1838   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839   as_fn_set_status $ac_retval
1840
1841 } # ac_fn_c_try_run
1842
1843 # ac_fn_c_check_func LINENO FUNC VAR
1844 # ----------------------------------
1845 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1846 ac_fn_c_check_func ()
1847 {
1848   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850 $as_echo_n "checking for $2... " >&6; }
1851 if eval \${$3+:} false; then :
1852   $as_echo_n "(cached) " >&6
1853 else
1854   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855 /* end confdefs.h.  */
1856 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1857    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1858 #define $2 innocuous_$2
1859
1860 /* System header to define __stub macros and hopefully few prototypes,
1861     which can conflict with char $2 (); below.
1862     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1863     <limits.h> exists even on freestanding compilers.  */
1864
1865 #ifdef __STDC__
1866 # include <limits.h>
1867 #else
1868 # include <assert.h>
1869 #endif
1870
1871 #undef $2
1872
1873 /* Override any GCC internal prototype to avoid an error.
1874    Use char because int might match the return type of a GCC
1875    builtin and then its argument prototype would still apply.  */
1876 #ifdef __cplusplus
1877 extern "C"
1878 #endif
1879 char $2 ();
1880 /* The GNU C library defines this for functions which it implements
1881     to always fail with ENOSYS.  Some functions are actually named
1882     something starting with __ and the normal name is an alias.  */
1883 #if defined __stub_$2 || defined __stub___$2
1884 choke me
1885 #endif
1886
1887 int
1888 main ()
1889 {
1890 return $2 ();
1891   ;
1892   return 0;
1893 }
1894 _ACEOF
1895 if ac_fn_c_try_link "$LINENO"; then :
1896   eval "$3=yes"
1897 else
1898   eval "$3=no"
1899 fi
1900 rm -f core conftest.err conftest.$ac_objext \
1901     conftest$ac_exeext conftest.$ac_ext
1902 fi
1903 eval ac_res=\$$3
1904                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905 $as_echo "$ac_res" >&6; }
1906   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907
1908 } # ac_fn_c_check_func
1909
1910 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1911 # ---------------------------------------------
1912 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1913 # accordingly.
1914 ac_fn_c_check_decl ()
1915 {
1916   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917   as_decl_name=`echo $2|sed 's/ *(.*//'`
1918   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1919   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1920 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1921 if eval \${$3+:} false; then :
1922   $as_echo_n "(cached) " >&6
1923 else
1924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h.  */
1926 $4
1927 int
1928 main ()
1929 {
1930 #ifndef $as_decl_name
1931 #ifdef __cplusplus
1932   (void) $as_decl_use;
1933 #else
1934   (void) $as_decl_name;
1935 #endif
1936 #endif
1937
1938   ;
1939   return 0;
1940 }
1941 _ACEOF
1942 if ac_fn_c_try_compile "$LINENO"; then :
1943   eval "$3=yes"
1944 else
1945   eval "$3=no"
1946 fi
1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948 fi
1949 eval ac_res=\$$3
1950                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951 $as_echo "$ac_res" >&6; }
1952   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953
1954 } # ac_fn_c_check_decl
1955 cat >config.log <<_ACEOF
1956 This file contains any messages produced by compilers while
1957 running configure, to aid debugging if configure makes a mistake.
1958
1959 It was created by libXi $as_me 1.6.1, which was
1960 generated by GNU Autoconf 2.68.  Invocation command line was
1961
1962   $ $0 $@
1963
1964 _ACEOF
1965 exec 5>>config.log
1966 {
1967 cat <<_ASUNAME
1968 ## --------- ##
1969 ## Platform. ##
1970 ## --------- ##
1971
1972 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1973 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1974 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1975 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1976 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1977
1978 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1979 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1980
1981 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1982 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1983 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1984 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1985 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1986 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1987 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1988
1989 _ASUNAME
1990
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 for as_dir in $PATH
1993 do
1994   IFS=$as_save_IFS
1995   test -z "$as_dir" && as_dir=.
1996     $as_echo "PATH: $as_dir"
1997   done
1998 IFS=$as_save_IFS
1999
2000 } >&5
2001
2002 cat >&5 <<_ACEOF
2003
2004
2005 ## ----------- ##
2006 ## Core tests. ##
2007 ## ----------- ##
2008
2009 _ACEOF
2010
2011
2012 # Keep a trace of the command line.
2013 # Strip out --no-create and --no-recursion so they do not pile up.
2014 # Strip out --silent because we don't want to record it for future runs.
2015 # Also quote any args containing shell meta-characters.
2016 # Make two passes to allow for proper duplicate-argument suppression.
2017 ac_configure_args=
2018 ac_configure_args0=
2019 ac_configure_args1=
2020 ac_must_keep_next=false
2021 for ac_pass in 1 2
2022 do
2023   for ac_arg
2024   do
2025     case $ac_arg in
2026     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2027     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2028     | -silent | --silent | --silen | --sile | --sil)
2029       continue ;;
2030     *\'*)
2031       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2032     esac
2033     case $ac_pass in
2034     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2035     2)
2036       as_fn_append ac_configure_args1 " '$ac_arg'"
2037       if test $ac_must_keep_next = true; then
2038         ac_must_keep_next=false # Got value, back to normal.
2039       else
2040         case $ac_arg in
2041           *=* | --config-cache | -C | -disable-* | --disable-* \
2042           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2043           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2044           | -with-* | --with-* | -without-* | --without-* | --x)
2045             case "$ac_configure_args0 " in
2046               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2047             esac
2048             ;;
2049           -* ) ac_must_keep_next=true ;;
2050         esac
2051       fi
2052       as_fn_append ac_configure_args " '$ac_arg'"
2053       ;;
2054     esac
2055   done
2056 done
2057 { ac_configure_args0=; unset ac_configure_args0;}
2058 { ac_configure_args1=; unset ac_configure_args1;}
2059
2060 # When interrupted or exit'd, cleanup temporary files, and complete
2061 # config.log.  We remove comments because anyway the quotes in there
2062 # would cause problems or look ugly.
2063 # WARNING: Use '\'' to represent an apostrophe within the trap.
2064 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2065 trap 'exit_status=$?
2066   # Save into config.log some information that might help in debugging.
2067   {
2068     echo
2069
2070     $as_echo "## ---------------- ##
2071 ## Cache variables. ##
2072 ## ---------------- ##"
2073     echo
2074     # The following way of writing the cache mishandles newlines in values,
2075 (
2076   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2077     eval ac_val=\$$ac_var
2078     case $ac_val in #(
2079     *${as_nl}*)
2080       case $ac_var in #(
2081       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2082 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2083       esac
2084       case $ac_var in #(
2085       _ | IFS | as_nl) ;; #(
2086       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2087       *) { eval $ac_var=; unset $ac_var;} ;;
2088       esac ;;
2089     esac
2090   done
2091   (set) 2>&1 |
2092     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2093     *${as_nl}ac_space=\ *)
2094       sed -n \
2095         "s/'\''/'\''\\\\'\'''\''/g;
2096           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2097       ;; #(
2098     *)
2099       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2100       ;;
2101     esac |
2102     sort
2103 )
2104     echo
2105
2106     $as_echo "## ----------------- ##
2107 ## Output variables. ##
2108 ## ----------------- ##"
2109     echo
2110     for ac_var in $ac_subst_vars
2111     do
2112       eval ac_val=\$$ac_var
2113       case $ac_val in
2114       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2115       esac
2116       $as_echo "$ac_var='\''$ac_val'\''"
2117     done | sort
2118     echo
2119
2120     if test -n "$ac_subst_files"; then
2121       $as_echo "## ------------------- ##
2122 ## File substitutions. ##
2123 ## ------------------- ##"
2124       echo
2125       for ac_var in $ac_subst_files
2126       do
2127         eval ac_val=\$$ac_var
2128         case $ac_val in
2129         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2130         esac
2131         $as_echo "$ac_var='\''$ac_val'\''"
2132       done | sort
2133       echo
2134     fi
2135
2136     if test -s confdefs.h; then
2137       $as_echo "## ----------- ##
2138 ## confdefs.h. ##
2139 ## ----------- ##"
2140       echo
2141       cat confdefs.h
2142       echo
2143     fi
2144     test "$ac_signal" != 0 &&
2145       $as_echo "$as_me: caught signal $ac_signal"
2146     $as_echo "$as_me: exit $exit_status"
2147   } >&5
2148   rm -f core *.core core.conftest.* &&
2149     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2150     exit $exit_status
2151 ' 0
2152 for ac_signal in 1 2 13 15; do
2153   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2154 done
2155 ac_signal=0
2156
2157 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2158 rm -f -r conftest* confdefs.h
2159
2160 $as_echo "/* confdefs.h */" > confdefs.h
2161
2162 # Predefined preprocessor variables.
2163
2164 cat >>confdefs.h <<_ACEOF
2165 #define PACKAGE_NAME "$PACKAGE_NAME"
2166 _ACEOF
2167
2168 cat >>confdefs.h <<_ACEOF
2169 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2170 _ACEOF
2171
2172 cat >>confdefs.h <<_ACEOF
2173 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2174 _ACEOF
2175
2176 cat >>confdefs.h <<_ACEOF
2177 #define PACKAGE_STRING "$PACKAGE_STRING"
2178 _ACEOF
2179
2180 cat >>confdefs.h <<_ACEOF
2181 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2182 _ACEOF
2183
2184 cat >>confdefs.h <<_ACEOF
2185 #define PACKAGE_URL "$PACKAGE_URL"
2186 _ACEOF
2187
2188
2189 # Let the site file select an alternate cache file if it wants to.
2190 # Prefer an explicitly selected file to automatically selected ones.
2191 ac_site_file1=NONE
2192 ac_site_file2=NONE
2193 if test -n "$CONFIG_SITE"; then
2194   # We do not want a PATH search for config.site.
2195   case $CONFIG_SITE in #((
2196     -*)  ac_site_file1=./$CONFIG_SITE;;
2197     */*) ac_site_file1=$CONFIG_SITE;;
2198     *)   ac_site_file1=./$CONFIG_SITE;;
2199   esac
2200 elif test "x$prefix" != xNONE; then
2201   ac_site_file1=$prefix/share/config.site
2202   ac_site_file2=$prefix/etc/config.site
2203 else
2204   ac_site_file1=$ac_default_prefix/share/config.site
2205   ac_site_file2=$ac_default_prefix/etc/config.site
2206 fi
2207 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2208 do
2209   test "x$ac_site_file" = xNONE && continue
2210   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2211     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2212 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2213     sed 's/^/| /' "$ac_site_file" >&5
2214     . "$ac_site_file" \
2215       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2217 as_fn_error $? "failed to load site script $ac_site_file
2218 See \`config.log' for more details" "$LINENO" 5; }
2219   fi
2220 done
2221
2222 if test -r "$cache_file"; then
2223   # Some versions of bash will fail to source /dev/null (special files
2224   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2225   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2226     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2227 $as_echo "$as_me: loading cache $cache_file" >&6;}
2228     case $cache_file in
2229       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2230       *)                      . "./$cache_file";;
2231     esac
2232   fi
2233 else
2234   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2235 $as_echo "$as_me: creating cache $cache_file" >&6;}
2236   >$cache_file
2237 fi
2238
2239 # Check that the precious variables saved in the cache have kept the same
2240 # value.
2241 ac_cache_corrupted=false
2242 for ac_var in $ac_precious_vars; do
2243   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2244   eval ac_new_set=\$ac_env_${ac_var}_set
2245   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2246   eval ac_new_val=\$ac_env_${ac_var}_value
2247   case $ac_old_set,$ac_new_set in
2248     set,)
2249       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2250 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2251       ac_cache_corrupted=: ;;
2252     ,set)
2253       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2254 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2255       ac_cache_corrupted=: ;;
2256     ,);;
2257     *)
2258       if test "x$ac_old_val" != "x$ac_new_val"; then
2259         # differences in whitespace do not lead to failure.
2260         ac_old_val_w=`echo x $ac_old_val`
2261         ac_new_val_w=`echo x $ac_new_val`
2262         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2263           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2264 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2265           ac_cache_corrupted=:
2266         else
2267           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2268 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2269           eval $ac_var=\$ac_old_val
2270         fi
2271         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2272 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2273         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2274 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2275       fi;;
2276   esac
2277   # Pass precious variables to config.status.
2278   if test "$ac_new_set" = set; then
2279     case $ac_new_val in
2280     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2281     *) ac_arg=$ac_var=$ac_new_val ;;
2282     esac
2283     case " $ac_configure_args " in
2284       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2285       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2286     esac
2287   fi
2288 done
2289 if $ac_cache_corrupted; then
2290   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2292   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2293 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2294   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2295 fi
2296 ## -------------------- ##
2297 ## Main body of script. ##
2298 ## -------------------- ##
2299
2300 ac_ext=c
2301 ac_cpp='$CPP $CPPFLAGS'
2302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2305
2306
2307
2308 ac_config_headers="$ac_config_headers src/config.h"
2309
2310
2311 # Initialize Automake
2312 am__api_version='1.11'
2313
2314 ac_aux_dir=
2315 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2316   if test -f "$ac_dir/install-sh"; then
2317     ac_aux_dir=$ac_dir
2318     ac_install_sh="$ac_aux_dir/install-sh -c"
2319     break
2320   elif test -f "$ac_dir/install.sh"; then
2321     ac_aux_dir=$ac_dir
2322     ac_install_sh="$ac_aux_dir/install.sh -c"
2323     break
2324   elif test -f "$ac_dir/shtool"; then
2325     ac_aux_dir=$ac_dir
2326     ac_install_sh="$ac_aux_dir/shtool install -c"
2327     break
2328   fi
2329 done
2330 if test -z "$ac_aux_dir"; then
2331   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2332 fi
2333
2334 # These three variables are undocumented and unsupported,
2335 # and are intended to be withdrawn in a future Autoconf release.
2336 # They can cause serious problems if a builder's source tree is in a directory
2337 # whose full name contains unusual characters.
2338 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2339 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2340 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2341
2342
2343 # Find a good install program.  We prefer a C program (faster),
2344 # so one script is as good as another.  But avoid the broken or
2345 # incompatible versions:
2346 # SysV /etc/install, /usr/sbin/install
2347 # SunOS /usr/etc/install
2348 # IRIX /sbin/install
2349 # AIX /bin/install
2350 # AmigaOS /C/install, which installs bootblocks on floppy discs
2351 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2352 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2353 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2354 # OS/2's system install, which has a completely different semantic
2355 # ./install, which can be erroneously created by make from ./install.sh.
2356 # Reject install programs that cannot install multiple files.
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2358 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2359 if test -z "$INSTALL"; then
2360 if ${ac_cv_path_install+:} false; then :
2361   $as_echo_n "(cached) " >&6
2362 else
2363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 for as_dir in $PATH
2365 do
2366   IFS=$as_save_IFS
2367   test -z "$as_dir" && as_dir=.
2368     # Account for people who put trailing slashes in PATH elements.
2369 case $as_dir/ in #((
2370   ./ | .// | /[cC]/* | \
2371   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2372   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2373   /usr/ucb/* ) ;;
2374   *)
2375     # OSF1 and SCO ODT 3.0 have their own names for install.
2376     # Don't use installbsd from OSF since it installs stuff as root
2377     # by default.
2378     for ac_prog in ginstall scoinst install; do
2379       for ac_exec_ext in '' $ac_executable_extensions; do
2380         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2381           if test $ac_prog = install &&
2382             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2383             # AIX install.  It has an incompatible calling convention.
2384             :
2385           elif test $ac_prog = install &&
2386             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2387             # program-specific install script used by HP pwplus--don't use.
2388             :
2389           else
2390             rm -rf conftest.one conftest.two conftest.dir
2391             echo one > conftest.one
2392             echo two > conftest.two
2393             mkdir conftest.dir
2394             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2395               test -s conftest.one && test -s conftest.two &&
2396               test -s conftest.dir/conftest.one &&
2397               test -s conftest.dir/conftest.two
2398             then
2399               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2400               break 3
2401             fi
2402           fi
2403         fi
2404       done
2405     done
2406     ;;
2407 esac
2408
2409   done
2410 IFS=$as_save_IFS
2411
2412 rm -rf conftest.one conftest.two conftest.dir
2413
2414 fi
2415   if test "${ac_cv_path_install+set}" = set; then
2416     INSTALL=$ac_cv_path_install
2417   else
2418     # As a last resort, use the slow shell script.  Don't cache a
2419     # value for INSTALL within a source directory, because that will
2420     # break other packages using the cache if that directory is
2421     # removed, or if the value is a relative name.
2422     INSTALL=$ac_install_sh
2423   fi
2424 fi
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2426 $as_echo "$INSTALL" >&6; }
2427
2428 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2429 # It thinks the first close brace ends the variable substitution.
2430 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2431
2432 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2433
2434 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2435
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2437 $as_echo_n "checking whether build environment is sane... " >&6; }
2438 # Just in case
2439 sleep 1
2440 echo timestamp > conftest.file
2441 # Reject unsafe characters in $srcdir or the absolute working directory
2442 # name.  Accept space and tab only in the latter.
2443 am_lf='
2444 '
2445 case `pwd` in
2446   *[\\\"\#\$\&\'\`$am_lf]*)
2447     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2448 esac
2449 case $srcdir in
2450   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2451     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2452 esac
2453
2454 # Do `set' in a subshell so we don't clobber the current shell's
2455 # arguments.  Must try -L first in case configure is actually a
2456 # symlink; some systems play weird games with the mod time of symlinks
2457 # (eg FreeBSD returns the mod time of the symlink's containing
2458 # directory).
2459 if (
2460    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2461    if test "$*" = "X"; then
2462       # -L didn't work.
2463       set X `ls -t "$srcdir/configure" conftest.file`
2464    fi
2465    rm -f conftest.file
2466    if test "$*" != "X $srcdir/configure conftest.file" \
2467       && test "$*" != "X conftest.file $srcdir/configure"; then
2468
2469       # If neither matched, then we have a broken ls.  This can happen
2470       # if, for instance, CONFIG_SHELL is bash and it inherits a
2471       # broken ls alias from the environment.  This has actually
2472       # happened.  Such a system could not be considered "sane".
2473       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2474 alias in your environment" "$LINENO" 5
2475    fi
2476
2477    test "$2" = conftest.file
2478    )
2479 then
2480    # Ok.
2481    :
2482 else
2483    as_fn_error $? "newly created file is older than distributed files!
2484 Check your system clock" "$LINENO" 5
2485 fi
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2487 $as_echo "yes" >&6; }
2488 test "$program_prefix" != NONE &&
2489   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2490 # Use a double $ so make ignores it.
2491 test "$program_suffix" != NONE &&
2492   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2493 # Double any \ or $.
2494 # By default was `s,x,x', remove it if useless.
2495 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2496 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2497
2498 # expand $ac_aux_dir to an absolute path
2499 am_aux_dir=`cd $ac_aux_dir && pwd`
2500
2501 if test x"${MISSING+set}" != xset; then
2502   case $am_aux_dir in
2503   *\ * | *\     *)
2504     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2505   *)
2506     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2507   esac
2508 fi
2509 # Use eval to expand $SHELL
2510 if eval "$MISSING --run true"; then
2511   am_missing_run="$MISSING --run "
2512 else
2513   am_missing_run=
2514   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2515 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2516 fi
2517
2518 if test x"${install_sh}" != xset; then
2519   case $am_aux_dir in
2520   *\ * | *\     *)
2521     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2522   *)
2523     install_sh="\${SHELL} $am_aux_dir/install-sh"
2524   esac
2525 fi
2526
2527 # Installed binaries are usually stripped using `strip' when the user
2528 # run `make install-strip'.  However `strip' might not be the right
2529 # tool to use in cross-compilation environments, therefore Automake
2530 # will honor the `STRIP' environment variable to overrule this program.
2531 if test "$cross_compiling" != no; then
2532   if test -n "$ac_tool_prefix"; then
2533   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2534 set dummy ${ac_tool_prefix}strip; ac_word=$2
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2536 $as_echo_n "checking for $ac_word... " >&6; }
2537 if ${ac_cv_prog_STRIP+:} false; then :
2538   $as_echo_n "(cached) " >&6
2539 else
2540   if test -n "$STRIP"; then
2541   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2542 else
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 for as_dir in $PATH
2545 do
2546   IFS=$as_save_IFS
2547   test -z "$as_dir" && as_dir=.
2548     for ac_exec_ext in '' $ac_executable_extensions; do
2549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2550     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2552     break 2
2553   fi
2554 done
2555   done
2556 IFS=$as_save_IFS
2557
2558 fi
2559 fi
2560 STRIP=$ac_cv_prog_STRIP
2561 if test -n "$STRIP"; then
2562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2563 $as_echo "$STRIP" >&6; }
2564 else
2565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2566 $as_echo "no" >&6; }
2567 fi
2568
2569
2570 fi
2571 if test -z "$ac_cv_prog_STRIP"; then
2572   ac_ct_STRIP=$STRIP
2573   # Extract the first word of "strip", so it can be a program name with args.
2574 set dummy strip; ac_word=$2
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2576 $as_echo_n "checking for $ac_word... " >&6; }
2577 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2578   $as_echo_n "(cached) " >&6
2579 else
2580   if test -n "$ac_ct_STRIP"; then
2581   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2582 else
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 for as_dir in $PATH
2585 do
2586   IFS=$as_save_IFS
2587   test -z "$as_dir" && as_dir=.
2588     for ac_exec_ext in '' $ac_executable_extensions; do
2589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2590     ac_cv_prog_ac_ct_STRIP="strip"
2591     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2592     break 2
2593   fi
2594 done
2595   done
2596 IFS=$as_save_IFS
2597
2598 fi
2599 fi
2600 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2601 if test -n "$ac_ct_STRIP"; then
2602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2603 $as_echo "$ac_ct_STRIP" >&6; }
2604 else
2605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2606 $as_echo "no" >&6; }
2607 fi
2608
2609   if test "x$ac_ct_STRIP" = x; then
2610     STRIP=":"
2611   else
2612     case $cross_compiling:$ac_tool_warned in
2613 yes:)
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2616 ac_tool_warned=yes ;;
2617 esac
2618     STRIP=$ac_ct_STRIP
2619   fi
2620 else
2621   STRIP="$ac_cv_prog_STRIP"
2622 fi
2623
2624 fi
2625 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2626
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2628 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2629 if test -z "$MKDIR_P"; then
2630   if ${ac_cv_path_mkdir+:} false; then :
2631   $as_echo_n "(cached) " >&6
2632 else
2633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2635 do
2636   IFS=$as_save_IFS
2637   test -z "$as_dir" && as_dir=.
2638     for ac_prog in mkdir gmkdir; do
2639          for ac_exec_ext in '' $ac_executable_extensions; do
2640            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2641            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2642              'mkdir (GNU coreutils) '* | \
2643              'mkdir (coreutils) '* | \
2644              'mkdir (fileutils) '4.1*)
2645                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2646                break 3;;
2647            esac
2648          done
2649        done
2650   done
2651 IFS=$as_save_IFS
2652
2653 fi
2654
2655   test -d ./--version && rmdir ./--version
2656   if test "${ac_cv_path_mkdir+set}" = set; then
2657     MKDIR_P="$ac_cv_path_mkdir -p"
2658   else
2659     # As a last resort, use the slow shell script.  Don't cache a
2660     # value for MKDIR_P within a source directory, because that will
2661     # break other packages using the cache if that directory is
2662     # removed, or if the value is a relative name.
2663     MKDIR_P="$ac_install_sh -d"
2664   fi
2665 fi
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2667 $as_echo "$MKDIR_P" >&6; }
2668
2669 mkdir_p="$MKDIR_P"
2670 case $mkdir_p in
2671   [\\/$]* | ?:[\\/]*) ;;
2672   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2673 esac
2674
2675 for ac_prog in gawk mawk nawk awk
2676 do
2677   # Extract the first word of "$ac_prog", so it can be a program name with args.
2678 set dummy $ac_prog; ac_word=$2
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2680 $as_echo_n "checking for $ac_word... " >&6; }
2681 if ${ac_cv_prog_AWK+:} false; then :
2682   $as_echo_n "(cached) " >&6
2683 else
2684   if test -n "$AWK"; then
2685   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2686 else
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 for as_dir in $PATH
2689 do
2690   IFS=$as_save_IFS
2691   test -z "$as_dir" && as_dir=.
2692     for ac_exec_ext in '' $ac_executable_extensions; do
2693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2694     ac_cv_prog_AWK="$ac_prog"
2695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2696     break 2
2697   fi
2698 done
2699   done
2700 IFS=$as_save_IFS
2701
2702 fi
2703 fi
2704 AWK=$ac_cv_prog_AWK
2705 if test -n "$AWK"; then
2706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2707 $as_echo "$AWK" >&6; }
2708 else
2709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2710 $as_echo "no" >&6; }
2711 fi
2712
2713
2714   test -n "$AWK" && break
2715 done
2716
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2718 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2719 set x ${MAKE-make}
2720 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2721 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2722   $as_echo_n "(cached) " >&6
2723 else
2724   cat >conftest.make <<\_ACEOF
2725 SHELL = /bin/sh
2726 all:
2727         @echo '@@@%%%=$(MAKE)=@@@%%%'
2728 _ACEOF
2729 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2730 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2731   *@@@%%%=?*=@@@%%%*)
2732     eval ac_cv_prog_make_${ac_make}_set=yes;;
2733   *)
2734     eval ac_cv_prog_make_${ac_make}_set=no;;
2735 esac
2736 rm -f conftest.make
2737 fi
2738 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2740 $as_echo "yes" >&6; }
2741   SET_MAKE=
2742 else
2743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2744 $as_echo "no" >&6; }
2745   SET_MAKE="MAKE=${MAKE-make}"
2746 fi
2747
2748 rm -rf .tst 2>/dev/null
2749 mkdir .tst 2>/dev/null
2750 if test -d .tst; then
2751   am__leading_dot=.
2752 else
2753   am__leading_dot=_
2754 fi
2755 rmdir .tst 2>/dev/null
2756
2757 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2758   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2759   # is not polluted with repeated "-I."
2760   am__isrc=' -I$(srcdir)'
2761   # test to see if srcdir already configured
2762   if test -f $srcdir/config.status; then
2763     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2764   fi
2765 fi
2766
2767 # test whether we have cygpath
2768 if test -z "$CYGPATH_W"; then
2769   if (cygpath --version) >/dev/null 2>/dev/null; then
2770     CYGPATH_W='cygpath -w'
2771   else
2772     CYGPATH_W=echo
2773   fi
2774 fi
2775
2776
2777 # Define the identity of the package.
2778  PACKAGE='libXi'
2779  VERSION='1.6.1'
2780
2781
2782 cat >>confdefs.h <<_ACEOF
2783 #define PACKAGE "$PACKAGE"
2784 _ACEOF
2785
2786
2787 cat >>confdefs.h <<_ACEOF
2788 #define VERSION "$VERSION"
2789 _ACEOF
2790
2791 # Some tools Automake needs.
2792
2793 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2794
2795
2796 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2797
2798
2799 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2800
2801
2802 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2803
2804
2805 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2806
2807 # We need awk for the "check" target.  The system "awk" is bad on
2808 # some platforms.
2809 # Always define AMTAR for backward compatibility.  Yes, it's still used
2810 # in the wild :-(  We should find a proper way to deprecate it ...
2811 AMTAR='$${TAR-tar}'
2812
2813 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2814
2815
2816
2817
2818
2819
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2821 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2822     # Check whether --enable-maintainer-mode was given.
2823 if test "${enable_maintainer_mode+set}" = set; then :
2824   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2825 else
2826   USE_MAINTAINER_MODE=no
2827 fi
2828
2829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2830 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2831    if test $USE_MAINTAINER_MODE = yes; then
2832   MAINTAINER_MODE_TRUE=
2833   MAINTAINER_MODE_FALSE='#'
2834 else
2835   MAINTAINER_MODE_TRUE='#'
2836   MAINTAINER_MODE_FALSE=
2837 fi
2838
2839   MAINT=$MAINTAINER_MODE_TRUE
2840
2841
2842
2843 # Initialize libtool
2844 case `pwd` in
2845   *\ * | *\     *)
2846     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2847 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2848 esac
2849
2850
2851
2852 macro_version='2.4.2'
2853 macro_revision='1.3337'
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867 ltmain="$ac_aux_dir/ltmain.sh"
2868
2869 # Make sure we can run config.sub.
2870 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2871   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2872
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2874 $as_echo_n "checking build system type... " >&6; }
2875 if ${ac_cv_build+:} false; then :
2876   $as_echo_n "(cached) " >&6
2877 else
2878   ac_build_alias=$build_alias
2879 test "x$ac_build_alias" = x &&
2880   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2881 test "x$ac_build_alias" = x &&
2882   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2883 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2884   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2885
2886 fi
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2888 $as_echo "$ac_cv_build" >&6; }
2889 case $ac_cv_build in
2890 *-*-*) ;;
2891 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2892 esac
2893 build=$ac_cv_build
2894 ac_save_IFS=$IFS; IFS='-'
2895 set x $ac_cv_build
2896 shift
2897 build_cpu=$1
2898 build_vendor=$2
2899 shift; shift
2900 # Remember, the first character of IFS is used to create $*,
2901 # except with old shells:
2902 build_os=$*
2903 IFS=$ac_save_IFS
2904 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2905
2906
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2908 $as_echo_n "checking host system type... " >&6; }
2909 if ${ac_cv_host+:} false; then :
2910   $as_echo_n "(cached) " >&6
2911 else
2912   if test "x$host_alias" = x; then
2913   ac_cv_host=$ac_cv_build
2914 else
2915   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2916     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2917 fi
2918
2919 fi
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2921 $as_echo "$ac_cv_host" >&6; }
2922 case $ac_cv_host in
2923 *-*-*) ;;
2924 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2925 esac
2926 host=$ac_cv_host
2927 ac_save_IFS=$IFS; IFS='-'
2928 set x $ac_cv_host
2929 shift
2930 host_cpu=$1
2931 host_vendor=$2
2932 shift; shift
2933 # Remember, the first character of IFS is used to create $*,
2934 # except with old shells:
2935 host_os=$*
2936 IFS=$ac_save_IFS
2937 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2938
2939
2940 # Backslashify metacharacters that are still active within
2941 # double-quoted strings.
2942 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2943
2944 # Same as above, but do not quote variable references.
2945 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2946
2947 # Sed substitution to delay expansion of an escaped shell variable in a
2948 # double_quote_subst'ed string.
2949 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2950
2951 # Sed substitution to delay expansion of an escaped single quote.
2952 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2953
2954 # Sed substitution to avoid accidental globbing in evaled expressions
2955 no_glob_subst='s/\*/\\\*/g'
2956
2957 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2958 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2959 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2960
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2962 $as_echo_n "checking how to print strings... " >&6; }
2963 # Test print first, because it will be a builtin if present.
2964 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2965    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2966   ECHO='print -r --'
2967 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2968   ECHO='printf %s\n'
2969 else
2970   # Use this function as a fallback that always works.
2971   func_fallback_echo ()
2972   {
2973     eval 'cat <<_LTECHO_EOF
2974 $1
2975 _LTECHO_EOF'
2976   }
2977   ECHO='func_fallback_echo'
2978 fi
2979
2980 # func_echo_all arg...
2981 # Invoke $ECHO with all args, space-separated.
2982 func_echo_all ()
2983 {
2984     $ECHO ""
2985 }
2986
2987 case "$ECHO" in
2988   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2989 $as_echo "printf" >&6; } ;;
2990   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2991 $as_echo "print -r" >&6; } ;;
2992   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2993 $as_echo "cat" >&6; } ;;
2994 esac
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009 DEPDIR="${am__leading_dot}deps"
3010
3011 ac_config_commands="$ac_config_commands depfiles"
3012
3013
3014 am_make=${MAKE-make}
3015 cat > confinc << 'END'
3016 am__doit:
3017         @echo this is the am__doit target
3018 .PHONY: am__doit
3019 END
3020 # If we don't find an include directive, just comment out the code.
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3022 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3023 am__include="#"
3024 am__quote=
3025 _am_result=none
3026 # First try GNU make style include.
3027 echo "include confinc" > confmf
3028 # Ignore all kinds of additional output from `make'.
3029 case `$am_make -s -f confmf 2> /dev/null` in #(
3030 *the\ am__doit\ target*)
3031   am__include=include
3032   am__quote=
3033   _am_result=GNU
3034   ;;
3035 esac
3036 # Now try BSD make style include.
3037 if test "$am__include" = "#"; then
3038    echo '.include "confinc"' > confmf
3039    case `$am_make -s -f confmf 2> /dev/null` in #(
3040    *the\ am__doit\ target*)
3041      am__include=.include
3042      am__quote="\""
3043      _am_result=BSD
3044      ;;
3045    esac
3046 fi
3047
3048
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3050 $as_echo "$_am_result" >&6; }
3051 rm -f confinc confmf
3052
3053 # Check whether --enable-dependency-tracking was given.
3054 if test "${enable_dependency_tracking+set}" = set; then :
3055   enableval=$enable_dependency_tracking;
3056 fi
3057
3058 if test "x$enable_dependency_tracking" != xno; then
3059   am_depcomp="$ac_aux_dir/depcomp"
3060   AMDEPBACKSLASH='\'
3061   am__nodep='_no'
3062 fi
3063  if test "x$enable_dependency_tracking" != xno; then
3064   AMDEP_TRUE=
3065   AMDEP_FALSE='#'
3066 else
3067   AMDEP_TRUE='#'
3068   AMDEP_FALSE=
3069 fi
3070
3071
3072 ac_ext=c
3073 ac_cpp='$CPP $CPPFLAGS'
3074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3077 if test -n "$ac_tool_prefix"; then
3078   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3079 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081 $as_echo_n "checking for $ac_word... " >&6; }
3082 if ${ac_cv_prog_CC+:} false; then :
3083   $as_echo_n "(cached) " >&6
3084 else
3085   if test -n "$CC"; then
3086   ac_cv_prog_CC="$CC" # Let the user override the test.
3087 else
3088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 for as_dir in $PATH
3090 do
3091   IFS=$as_save_IFS
3092   test -z "$as_dir" && as_dir=.
3093     for ac_exec_ext in '' $ac_executable_extensions; do
3094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3095     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3097     break 2
3098   fi
3099 done
3100   done
3101 IFS=$as_save_IFS
3102
3103 fi
3104 fi
3105 CC=$ac_cv_prog_CC
3106 if test -n "$CC"; then
3107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3108 $as_echo "$CC" >&6; }
3109 else
3110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 $as_echo "no" >&6; }
3112 fi
3113
3114
3115 fi
3116 if test -z "$ac_cv_prog_CC"; then
3117   ac_ct_CC=$CC
3118   # Extract the first word of "gcc", so it can be a program name with args.
3119 set dummy gcc; ac_word=$2
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3121 $as_echo_n "checking for $ac_word... " >&6; }
3122 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3123   $as_echo_n "(cached) " >&6
3124 else
3125   if test -n "$ac_ct_CC"; then
3126   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3127 else
3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 for as_dir in $PATH
3130 do
3131   IFS=$as_save_IFS
3132   test -z "$as_dir" && as_dir=.
3133     for ac_exec_ext in '' $ac_executable_extensions; do
3134   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3135     ac_cv_prog_ac_ct_CC="gcc"
3136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3137     break 2
3138   fi
3139 done
3140   done
3141 IFS=$as_save_IFS
3142
3143 fi
3144 fi
3145 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3146 if test -n "$ac_ct_CC"; then
3147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3148 $as_echo "$ac_ct_CC" >&6; }
3149 else
3150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151 $as_echo "no" >&6; }
3152 fi
3153
3154   if test "x$ac_ct_CC" = x; then
3155     CC=""
3156   else
3157     case $cross_compiling:$ac_tool_warned in
3158 yes:)
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3161 ac_tool_warned=yes ;;
3162 esac
3163     CC=$ac_ct_CC
3164   fi
3165 else
3166   CC="$ac_cv_prog_CC"
3167 fi
3168
3169 if test -z "$CC"; then
3170           if test -n "$ac_tool_prefix"; then
3171     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3172 set dummy ${ac_tool_prefix}cc; ac_word=$2
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174 $as_echo_n "checking for $ac_word... " >&6; }
3175 if ${ac_cv_prog_CC+:} false; then :
3176   $as_echo_n "(cached) " >&6
3177 else
3178   if test -n "$CC"; then
3179   ac_cv_prog_CC="$CC" # Let the user override the test.
3180 else
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 for as_dir in $PATH
3183 do
3184   IFS=$as_save_IFS
3185   test -z "$as_dir" && as_dir=.
3186     for ac_exec_ext in '' $ac_executable_extensions; do
3187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3188     ac_cv_prog_CC="${ac_tool_prefix}cc"
3189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3190     break 2
3191   fi
3192 done
3193   done
3194 IFS=$as_save_IFS
3195
3196 fi
3197 fi
3198 CC=$ac_cv_prog_CC
3199 if test -n "$CC"; then
3200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3201 $as_echo "$CC" >&6; }
3202 else
3203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3205 fi
3206
3207
3208   fi
3209 fi
3210 if test -z "$CC"; then
3211   # Extract the first word of "cc", so it can be a program name with args.
3212 set dummy cc; ac_word=$2
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3214 $as_echo_n "checking for $ac_word... " >&6; }
3215 if ${ac_cv_prog_CC+:} false; then :
3216   $as_echo_n "(cached) " >&6
3217 else
3218   if test -n "$CC"; then
3219   ac_cv_prog_CC="$CC" # Let the user override the test.
3220 else
3221   ac_prog_rejected=no
3222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223 for as_dir in $PATH
3224 do
3225   IFS=$as_save_IFS
3226   test -z "$as_dir" && as_dir=.
3227     for ac_exec_ext in '' $ac_executable_extensions; do
3228   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3229     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3230        ac_prog_rejected=yes
3231        continue
3232      fi
3233     ac_cv_prog_CC="cc"
3234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3235     break 2
3236   fi
3237 done
3238   done
3239 IFS=$as_save_IFS
3240
3241 if test $ac_prog_rejected = yes; then
3242   # We found a bogon in the path, so make sure we never use it.
3243   set dummy $ac_cv_prog_CC
3244   shift
3245   if test $# != 0; then
3246     # We chose a different compiler from the bogus one.
3247     # However, it has the same basename, so the bogon will be chosen
3248     # first if we set CC to just the basename; use the full file name.
3249     shift
3250     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3251   fi
3252 fi
3253 fi
3254 fi
3255 CC=$ac_cv_prog_CC
3256 if test -n "$CC"; then
3257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3258 $as_echo "$CC" >&6; }
3259 else
3260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261 $as_echo "no" >&6; }
3262 fi
3263
3264
3265 fi
3266 if test -z "$CC"; then
3267   if test -n "$ac_tool_prefix"; then
3268   for ac_prog in cl.exe
3269   do
3270     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3271 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3273 $as_echo_n "checking for $ac_word... " >&6; }
3274 if ${ac_cv_prog_CC+:} false; then :
3275   $as_echo_n "(cached) " >&6
3276 else
3277   if test -n "$CC"; then
3278   ac_cv_prog_CC="$CC" # Let the user override the test.
3279 else
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 for as_dir in $PATH
3282 do
3283   IFS=$as_save_IFS
3284   test -z "$as_dir" && as_dir=.
3285     for ac_exec_ext in '' $ac_executable_extensions; do
3286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3287     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3289     break 2
3290   fi
3291 done
3292   done
3293 IFS=$as_save_IFS
3294
3295 fi
3296 fi
3297 CC=$ac_cv_prog_CC
3298 if test -n "$CC"; then
3299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3300 $as_echo "$CC" >&6; }
3301 else
3302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3303 $as_echo "no" >&6; }
3304 fi
3305
3306
3307     test -n "$CC" && break
3308   done
3309 fi
3310 if test -z "$CC"; then
3311   ac_ct_CC=$CC
3312   for ac_prog in cl.exe
3313 do
3314   # Extract the first word of "$ac_prog", so it can be a program name with args.
3315 set dummy $ac_prog; ac_word=$2
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3317 $as_echo_n "checking for $ac_word... " >&6; }
3318 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3319   $as_echo_n "(cached) " >&6
3320 else
3321   if test -n "$ac_ct_CC"; then
3322   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3323 else
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 for as_dir in $PATH
3326 do
3327   IFS=$as_save_IFS
3328   test -z "$as_dir" && as_dir=.
3329     for ac_exec_ext in '' $ac_executable_extensions; do
3330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3331     ac_cv_prog_ac_ct_CC="$ac_prog"
3332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3333     break 2
3334   fi
3335 done
3336   done
3337 IFS=$as_save_IFS
3338
3339 fi
3340 fi
3341 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3342 if test -n "$ac_ct_CC"; then
3343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3344 $as_echo "$ac_ct_CC" >&6; }
3345 else
3346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3347 $as_echo "no" >&6; }
3348 fi
3349
3350
3351   test -n "$ac_ct_CC" && break
3352 done
3353
3354   if test "x$ac_ct_CC" = x; then
3355     CC=""
3356   else
3357     case $cross_compiling:$ac_tool_warned in
3358 yes:)
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3361 ac_tool_warned=yes ;;
3362 esac
3363     CC=$ac_ct_CC
3364   fi
3365 fi
3366
3367 fi
3368
3369
3370 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3372 as_fn_error $? "no acceptable C compiler found in \$PATH
3373 See \`config.log' for more details" "$LINENO" 5; }
3374
3375 # Provide some information about the compiler.
3376 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3377 set X $ac_compile
3378 ac_compiler=$2
3379 for ac_option in --version -v -V -qversion; do
3380   { { ac_try="$ac_compiler $ac_option >&5"
3381 case "(($ac_try" in
3382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383   *) ac_try_echo=$ac_try;;
3384 esac
3385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3386 $as_echo "$ac_try_echo"; } >&5
3387   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3388   ac_status=$?
3389   if test -s conftest.err; then
3390     sed '10a\
3391 ... rest of stderr output deleted ...
3392          10q' conftest.err >conftest.er1
3393     cat conftest.er1 >&5
3394   fi
3395   rm -f conftest.er1 conftest.err
3396   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397   test $ac_status = 0; }
3398 done
3399
3400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3401 /* end confdefs.h.  */
3402
3403 int
3404 main ()
3405 {
3406
3407   ;
3408   return 0;
3409 }
3410 _ACEOF
3411 ac_clean_files_save=$ac_clean_files
3412 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3413 # Try to create an executable without -o first, disregard a.out.
3414 # It will help us diagnose broken compilers, and finding out an intuition
3415 # of exeext.
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3417 $as_echo_n "checking whether the C compiler works... " >&6; }
3418 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3419
3420 # The possible output files:
3421 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3422
3423 ac_rmfiles=
3424 for ac_file in $ac_files
3425 do
3426   case $ac_file in
3427     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3428     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3429   esac
3430 done
3431 rm -f $ac_rmfiles
3432
3433 if { { ac_try="$ac_link_default"
3434 case "(($ac_try" in
3435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436   *) ac_try_echo=$ac_try;;
3437 esac
3438 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3439 $as_echo "$ac_try_echo"; } >&5
3440   (eval "$ac_link_default") 2>&5
3441   ac_status=$?
3442   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3443   test $ac_status = 0; }; then :
3444   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3445 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3446 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3447 # so that the user can short-circuit this test for compilers unknown to
3448 # Autoconf.
3449 for ac_file in $ac_files ''
3450 do
3451   test -f "$ac_file" || continue
3452   case $ac_file in
3453     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3454         ;;
3455     [ab].out )
3456         # We found the default executable, but exeext='' is most
3457         # certainly right.
3458         break;;
3459     *.* )
3460         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3461         then :; else
3462            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3463         fi
3464         # We set ac_cv_exeext here because the later test for it is not
3465         # safe: cross compilers may not add the suffix if given an `-o'
3466         # argument, so we may need to know it at that point already.
3467         # Even if this section looks crufty: it has the advantage of
3468         # actually working.
3469         break;;
3470     * )
3471         break;;
3472   esac
3473 done
3474 test "$ac_cv_exeext" = no && ac_cv_exeext=
3475
3476 else
3477   ac_file=''
3478 fi
3479 if test -z "$ac_file"; then :
3480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3481 $as_echo "no" >&6; }
3482 $as_echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3484
3485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3487 as_fn_error 77 "C compiler cannot create executables
3488 See \`config.log' for more details" "$LINENO" 5; }
3489 else
3490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3491 $as_echo "yes" >&6; }
3492 fi
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3494 $as_echo_n "checking for C compiler default output file name... " >&6; }
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3496 $as_echo "$ac_file" >&6; }
3497 ac_exeext=$ac_cv_exeext
3498
3499 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3500 ac_clean_files=$ac_clean_files_save
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3502 $as_echo_n "checking for suffix of executables... " >&6; }
3503 if { { ac_try="$ac_link"
3504 case "(($ac_try" in
3505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506   *) ac_try_echo=$ac_try;;
3507 esac
3508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3509 $as_echo "$ac_try_echo"; } >&5
3510   (eval "$ac_link") 2>&5
3511   ac_status=$?
3512   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3513   test $ac_status = 0; }; then :
3514   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3515 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3516 # work properly (i.e., refer to `conftest.exe'), while it won't with
3517 # `rm'.
3518 for ac_file in conftest.exe conftest conftest.*; do
3519   test -f "$ac_file" || continue
3520   case $ac_file in
3521     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3522     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3523           break;;
3524     * ) break;;
3525   esac
3526 done
3527 else
3528   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3530 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3531 See \`config.log' for more details" "$LINENO" 5; }
3532 fi
3533 rm -f conftest conftest$ac_cv_exeext
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3535 $as_echo "$ac_cv_exeext" >&6; }
3536
3537 rm -f conftest.$ac_ext
3538 EXEEXT=$ac_cv_exeext
3539 ac_exeext=$EXEEXT
3540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541 /* end confdefs.h.  */
3542 #include <stdio.h>
3543 int
3544 main ()
3545 {
3546 FILE *f = fopen ("conftest.out", "w");
3547  return ferror (f) || fclose (f) != 0;
3548
3549   ;
3550   return 0;
3551 }
3552 _ACEOF
3553 ac_clean_files="$ac_clean_files conftest.out"
3554 # Check that the compiler produces executables we can run.  If not, either
3555 # the compiler is broken, or we cross compile.
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3557 $as_echo_n "checking whether we are cross compiling... " >&6; }
3558 if test "$cross_compiling" != yes; then
3559   { { ac_try="$ac_link"
3560 case "(($ac_try" in
3561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562   *) ac_try_echo=$ac_try;;
3563 esac
3564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3565 $as_echo "$ac_try_echo"; } >&5
3566   (eval "$ac_link") 2>&5
3567   ac_status=$?
3568   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3569   test $ac_status = 0; }
3570   if { ac_try='./conftest$ac_cv_exeext'
3571   { { case "(($ac_try" in
3572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573   *) ac_try_echo=$ac_try;;
3574 esac
3575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3576 $as_echo "$ac_try_echo"; } >&5
3577   (eval "$ac_try") 2>&5
3578   ac_status=$?
3579   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3580   test $ac_status = 0; }; }; then
3581     cross_compiling=no
3582   else
3583     if test "$cross_compiling" = maybe; then
3584         cross_compiling=yes
3585     else
3586         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3588 as_fn_error $? "cannot run C compiled programs.
3589 If you meant to cross compile, use \`--host'.
3590 See \`config.log' for more details" "$LINENO" 5; }
3591     fi
3592   fi
3593 fi
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3595 $as_echo "$cross_compiling" >&6; }
3596
3597 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3598 ac_clean_files=$ac_clean_files_save
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3600 $as_echo_n "checking for suffix of object files... " >&6; }
3601 if ${ac_cv_objext+:} false; then :
3602   $as_echo_n "(cached) " >&6
3603 else
3604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h.  */
3606
3607 int
3608 main ()
3609 {
3610
3611   ;
3612   return 0;
3613 }
3614 _ACEOF
3615 rm -f conftest.o conftest.obj
3616 if { { ac_try="$ac_compile"
3617 case "(($ac_try" in
3618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3619   *) ac_try_echo=$ac_try;;
3620 esac
3621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3622 $as_echo "$ac_try_echo"; } >&5
3623   (eval "$ac_compile") 2>&5
3624   ac_status=$?
3625   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3626   test $ac_status = 0; }; then :
3627   for ac_file in conftest.o conftest.obj conftest.*; do
3628   test -f "$ac_file" || continue;
3629   case $ac_file in
3630     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3631     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3632        break;;
3633   esac
3634 done
3635 else
3636   $as_echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.$ac_ext >&5
3638
3639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3641 as_fn_error $? "cannot compute suffix of object files: cannot compile
3642 See \`config.log' for more details" "$LINENO" 5; }
3643 fi
3644 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3645 fi
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3647 $as_echo "$ac_cv_objext" >&6; }
3648 OBJEXT=$ac_cv_objext
3649 ac_objext=$OBJEXT
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3651 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3652 if ${ac_cv_c_compiler_gnu+:} false; then :
3653   $as_echo_n "(cached) " >&6
3654 else
3655   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656 /* end confdefs.h.  */
3657
3658 int
3659 main ()
3660 {
3661 #ifndef __GNUC__
3662        choke me
3663 #endif
3664
3665   ;
3666   return 0;
3667 }
3668 _ACEOF
3669 if ac_fn_c_try_compile "$LINENO"; then :
3670   ac_compiler_gnu=yes
3671 else
3672   ac_compiler_gnu=no
3673 fi
3674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3675 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3676
3677 fi
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3679 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3680 if test $ac_compiler_gnu = yes; then
3681   GCC=yes
3682 else
3683   GCC=
3684 fi
3685 ac_test_CFLAGS=${CFLAGS+set}
3686 ac_save_CFLAGS=$CFLAGS
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3688 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3689 if ${ac_cv_prog_cc_g+:} false; then :
3690   $as_echo_n "(cached) " >&6
3691 else
3692   ac_save_c_werror_flag=$ac_c_werror_flag
3693    ac_c_werror_flag=yes
3694    ac_cv_prog_cc_g=no
3695    CFLAGS="-g"
3696    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h.  */
3698
3699 int
3700 main ()
3701 {
3702
3703   ;
3704   return 0;
3705 }
3706 _ACEOF
3707 if ac_fn_c_try_compile "$LINENO"; then :
3708   ac_cv_prog_cc_g=yes
3709 else
3710   CFLAGS=""
3711       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h.  */
3713
3714 int
3715 main ()
3716 {
3717
3718   ;
3719   return 0;
3720 }
3721 _ACEOF
3722 if ac_fn_c_try_compile "$LINENO"; then :
3723
3724 else
3725   ac_c_werror_flag=$ac_save_c_werror_flag
3726          CFLAGS="-g"
3727          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h.  */
3729
3730 int
3731 main ()
3732 {
3733
3734   ;
3735   return 0;
3736 }
3737 _ACEOF
3738 if ac_fn_c_try_compile "$LINENO"; then :
3739   ac_cv_prog_cc_g=yes
3740 fi
3741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742 fi
3743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3744 fi
3745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746    ac_c_werror_flag=$ac_save_c_werror_flag
3747 fi
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3749 $as_echo "$ac_cv_prog_cc_g" >&6; }
3750 if test "$ac_test_CFLAGS" = set; then
3751   CFLAGS=$ac_save_CFLAGS
3752 elif test $ac_cv_prog_cc_g = yes; then
3753   if test "$GCC" = yes; then
3754     CFLAGS="-g -O2"
3755   else
3756     CFLAGS="-g"
3757   fi
3758 else
3759   if test "$GCC" = yes; then
3760     CFLAGS="-O2"
3761   else
3762     CFLAGS=
3763   fi
3764 fi
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3766 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3767 if ${ac_cv_prog_cc_c89+:} false; then :
3768   $as_echo_n "(cached) " >&6
3769 else
3770   ac_cv_prog_cc_c89=no
3771 ac_save_CC=$CC
3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 /* end confdefs.h.  */
3774 #include <stdarg.h>
3775 #include <stdio.h>
3776 #include <sys/types.h>
3777 #include <sys/stat.h>
3778 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3779 struct buf { int x; };
3780 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3781 static char *e (p, i)
3782      char **p;
3783      int i;
3784 {
3785   return p[i];
3786 }
3787 static char *f (char * (*g) (char **, int), char **p, ...)
3788 {
3789   char *s;
3790   va_list v;
3791   va_start (v,p);
3792   s = g (p, va_arg (v,int));
3793   va_end (v);
3794   return s;
3795 }
3796
3797 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3798    function prototypes and stuff, but not '\xHH' hex character constants.
3799    These don't provoke an error unfortunately, instead are silently treated
3800    as 'x'.  The following induces an error, until -std is added to get
3801    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3802    array size at least.  It's necessary to write '\x00'==0 to get something
3803    that's true only with -std.  */
3804 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3805
3806 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3807    inside strings and character constants.  */
3808 #define FOO(x) 'x'
3809 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3810
3811 int test (int i, double x);
3812 struct s1 {int (*f) (int a);};
3813 struct s2 {int (*f) (double a);};
3814 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3815 int argc;
3816 char **argv;
3817 int
3818 main ()
3819 {
3820 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3821   ;
3822   return 0;
3823 }
3824 _ACEOF
3825 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3826         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3827 do
3828   CC="$ac_save_CC $ac_arg"
3829   if ac_fn_c_try_compile "$LINENO"; then :
3830   ac_cv_prog_cc_c89=$ac_arg
3831 fi
3832 rm -f core conftest.err conftest.$ac_objext
3833   test "x$ac_cv_prog_cc_c89" != "xno" && break
3834 done
3835 rm -f conftest.$ac_ext
3836 CC=$ac_save_CC
3837
3838 fi
3839 # AC_CACHE_VAL
3840 case "x$ac_cv_prog_cc_c89" in
3841   x)
3842     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3843 $as_echo "none needed" >&6; } ;;
3844   xno)
3845     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3846 $as_echo "unsupported" >&6; } ;;
3847   *)
3848     CC="$CC $ac_cv_prog_cc_c89"
3849     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3850 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3851 esac
3852 if test "x$ac_cv_prog_cc_c89" != xno; then :
3853
3854 fi
3855
3856 ac_ext=c
3857 ac_cpp='$CPP $CPPFLAGS'
3858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3861
3862 depcc="$CC"   am_compiler_list=
3863
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3865 $as_echo_n "checking dependency style of $depcc... " >&6; }
3866 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3867   $as_echo_n "(cached) " >&6
3868 else
3869   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3870   # We make a subdir and do the tests there.  Otherwise we can end up
3871   # making bogus files that we don't know about and never remove.  For
3872   # instance it was reported that on HP-UX the gcc test will end up
3873   # making a dummy file named `D' -- because `-MD' means `put the output
3874   # in D'.
3875   rm -rf conftest.dir
3876   mkdir conftest.dir
3877   # Copy depcomp to subdir because otherwise we won't find it if we're
3878   # using a relative directory.
3879   cp "$am_depcomp" conftest.dir
3880   cd conftest.dir
3881   # We will build objects and dependencies in a subdirectory because
3882   # it helps to detect inapplicable dependency modes.  For instance
3883   # both Tru64's cc and ICC support -MD to output dependencies as a
3884   # side effect of compilation, but ICC will put the dependencies in
3885   # the current directory while Tru64 will put them in the object
3886   # directory.
3887   mkdir sub
3888
3889   am_cv_CC_dependencies_compiler_type=none
3890   if test "$am_compiler_list" = ""; then
3891      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3892   fi
3893   am__universal=false
3894   case " $depcc " in #(
3895      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3896      esac
3897
3898   for depmode in $am_compiler_list; do
3899     # Setup a source with many dependencies, because some compilers
3900     # like to wrap large dependency lists on column 80 (with \), and
3901     # we should not choose a depcomp mode which is confused by this.
3902     #
3903     # We need to recreate these files for each test, as the compiler may
3904     # overwrite some of them when testing with obscure command lines.
3905     # This happens at least with the AIX C compiler.
3906     : > sub/conftest.c
3907     for i in 1 2 3 4 5 6; do
3908       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3909       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3910       # Solaris 8's {/usr,}/bin/sh.
3911       touch sub/conftst$i.h
3912     done
3913     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3914
3915     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3916     # mode.  It turns out that the SunPro C++ compiler does not properly
3917     # handle `-M -o', and we need to detect this.  Also, some Intel
3918     # versions had trouble with output in subdirs
3919     am__obj=sub/conftest.${OBJEXT-o}
3920     am__minus_obj="-o $am__obj"
3921     case $depmode in
3922     gcc)
3923       # This depmode causes a compiler race in universal mode.
3924       test "$am__universal" = false || continue
3925       ;;
3926     nosideeffect)
3927       # after this tag, mechanisms are not by side-effect, so they'll
3928       # only be used when explicitly requested
3929       if test "x$enable_dependency_tracking" = xyes; then
3930         continue
3931       else
3932         break
3933       fi
3934       ;;
3935     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3936       # This compiler won't grok `-c -o', but also, the minuso test has
3937       # not run yet.  These depmodes are late enough in the game, and
3938       # so weak that their functioning should not be impacted.
3939       am__obj=conftest.${OBJEXT-o}
3940       am__minus_obj=
3941       ;;
3942     none) break ;;
3943     esac
3944     if depmode=$depmode \
3945        source=sub/conftest.c object=$am__obj \
3946        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3947        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3948          >/dev/null 2>conftest.err &&
3949        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3950        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3951        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3952        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3953       # icc doesn't choke on unknown options, it will just issue warnings
3954       # or remarks (even with -Werror).  So we grep stderr for any message
3955       # that says an option was ignored or not supported.
3956       # When given -MP, icc 7.0 and 7.1 complain thusly:
3957       #   icc: Command line warning: ignoring option '-M'; no argument required
3958       # The diagnosis changed in icc 8.0:
3959       #   icc: Command line remark: option '-MP' not supported
3960       if (grep 'ignoring option' conftest.err ||
3961           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3962         am_cv_CC_dependencies_compiler_type=$depmode
3963         break
3964       fi
3965     fi
3966   done
3967
3968   cd ..
3969   rm -rf conftest.dir
3970 else
3971   am_cv_CC_dependencies_compiler_type=none
3972 fi
3973
3974 fi
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3976 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3977 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3978
3979  if
3980   test "x$enable_dependency_tracking" != xno \
3981   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3982   am__fastdepCC_TRUE=
3983   am__fastdepCC_FALSE='#'
3984 else
3985   am__fastdepCC_TRUE='#'
3986   am__fastdepCC_FALSE=
3987 fi
3988
3989
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3991 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3992 if ${ac_cv_path_SED+:} false; then :
3993   $as_echo_n "(cached) " >&6
3994 else
3995             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3996      for ac_i in 1 2 3 4 5 6 7; do
3997        ac_script="$ac_script$as_nl$ac_script"
3998      done
3999      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4000      { ac_script=; unset ac_script;}
4001      if test -z "$SED"; then
4002   ac_path_SED_found=false
4003   # Loop through the user's path and test for each of PROGNAME-LIST
4004   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005 for as_dir in $PATH
4006 do
4007   IFS=$as_save_IFS
4008   test -z "$as_dir" && as_dir=.
4009     for ac_prog in sed gsed; do
4010     for ac_exec_ext in '' $ac_executable_extensions; do
4011       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4012       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4013 # Check for GNU ac_path_SED and select it if it is found.
4014   # Check for GNU $ac_path_SED
4015 case `"$ac_path_SED" --version 2>&1` in
4016 *GNU*)
4017   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4018 *)
4019   ac_count=0
4020   $as_echo_n 0123456789 >"conftest.in"
4021   while :
4022   do
4023     cat "conftest.in" "conftest.in" >"conftest.tmp"
4024     mv "conftest.tmp" "conftest.in"
4025     cp "conftest.in" "conftest.nl"
4026     $as_echo '' >> "conftest.nl"
4027     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4028     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4029     as_fn_arith $ac_count + 1 && ac_count=$as_val
4030     if test $ac_count -gt ${ac_path_SED_max-0}; then
4031       # Best one so far, save it but keep looking for a better one
4032       ac_cv_path_SED="$ac_path_SED"
4033       ac_path_SED_max=$ac_count
4034     fi
4035     # 10*(2^10) chars as input seems more than enough
4036     test $ac_count -gt 10 && break
4037   done
4038   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4039 esac
4040
4041       $ac_path_SED_found && break 3
4042     done
4043   done
4044   done
4045 IFS=$as_save_IFS
4046   if test -z "$ac_cv_path_SED"; then
4047     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4048   fi
4049 else
4050   ac_cv_path_SED=$SED
4051 fi
4052
4053 fi
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4055 $as_echo "$ac_cv_path_SED" >&6; }
4056  SED="$ac_cv_path_SED"
4057   rm -f conftest.sed
4058
4059 test -z "$SED" && SED=sed
4060 Xsed="$SED -e 1s/^X//"
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4073 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4074 if ${ac_cv_path_GREP+:} false; then :
4075   $as_echo_n "(cached) " >&6
4076 else
4077   if test -z "$GREP"; then
4078   ac_path_GREP_found=false
4079   # Loop through the user's path and test for each of PROGNAME-LIST
4080   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4081 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4082 do
4083   IFS=$as_save_IFS
4084   test -z "$as_dir" && as_dir=.
4085     for ac_prog in grep ggrep; do
4086     for ac_exec_ext in '' $ac_executable_extensions; do
4087       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4088       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4089 # Check for GNU ac_path_GREP and select it if it is found.
4090   # Check for GNU $ac_path_GREP
4091 case `"$ac_path_GREP" --version 2>&1` in
4092 *GNU*)
4093   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4094 *)
4095   ac_count=0
4096   $as_echo_n 0123456789 >"conftest.in"
4097   while :
4098   do
4099     cat "conftest.in" "conftest.in" >"conftest.tmp"
4100     mv "conftest.tmp" "conftest.in"
4101     cp "conftest.in" "conftest.nl"
4102     $as_echo 'GREP' >> "conftest.nl"
4103     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4104     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4105     as_fn_arith $ac_count + 1 && ac_count=$as_val
4106     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4107       # Best one so far, save it but keep looking for a better one
4108       ac_cv_path_GREP="$ac_path_GREP"
4109       ac_path_GREP_max=$ac_count
4110     fi
4111     # 10*(2^10) chars as input seems more than enough
4112     test $ac_count -gt 10 && break
4113   done
4114   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4115 esac
4116
4117       $ac_path_GREP_found && break 3
4118     done
4119   done
4120   done
4121 IFS=$as_save_IFS
4122   if test -z "$ac_cv_path_GREP"; then
4123     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4124   fi
4125 else
4126   ac_cv_path_GREP=$GREP
4127 fi
4128
4129 fi
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4131 $as_echo "$ac_cv_path_GREP" >&6; }
4132  GREP="$ac_cv_path_GREP"
4133
4134
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4136 $as_echo_n "checking for egrep... " >&6; }
4137 if ${ac_cv_path_EGREP+:} false; then :
4138   $as_echo_n "(cached) " >&6
4139 else
4140   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4141    then ac_cv_path_EGREP="$GREP -E"
4142    else
4143      if test -z "$EGREP"; then
4144   ac_path_EGREP_found=false
4145   # Loop through the user's path and test for each of PROGNAME-LIST
4146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4148 do
4149   IFS=$as_save_IFS
4150   test -z "$as_dir" && as_dir=.
4151     for ac_prog in egrep; do
4152     for ac_exec_ext in '' $ac_executable_extensions; do
4153       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4154       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4155 # Check for GNU ac_path_EGREP and select it if it is found.
4156   # Check for GNU $ac_path_EGREP
4157 case `"$ac_path_EGREP" --version 2>&1` in
4158 *GNU*)
4159   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4160 *)
4161   ac_count=0
4162   $as_echo_n 0123456789 >"conftest.in"
4163   while :
4164   do
4165     cat "conftest.in" "conftest.in" >"conftest.tmp"
4166     mv "conftest.tmp" "conftest.in"
4167     cp "conftest.in" "conftest.nl"
4168     $as_echo 'EGREP' >> "conftest.nl"
4169     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4170     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4171     as_fn_arith $ac_count + 1 && ac_count=$as_val
4172     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4173       # Best one so far, save it but keep looking for a better one
4174       ac_cv_path_EGREP="$ac_path_EGREP"
4175       ac_path_EGREP_max=$ac_count
4176     fi
4177     # 10*(2^10) chars as input seems more than enough
4178     test $ac_count -gt 10 && break
4179   done
4180   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4181 esac
4182
4183       $ac_path_EGREP_found && break 3
4184     done
4185   done
4186   done
4187 IFS=$as_save_IFS
4188   if test -z "$ac_cv_path_EGREP"; then
4189     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4190   fi
4191 else
4192   ac_cv_path_EGREP=$EGREP
4193 fi
4194
4195    fi
4196 fi
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4198 $as_echo "$ac_cv_path_EGREP" >&6; }
4199  EGREP="$ac_cv_path_EGREP"
4200
4201
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4203 $as_echo_n "checking for fgrep... " >&6; }
4204 if ${ac_cv_path_FGREP+:} false; then :
4205   $as_echo_n "(cached) " >&6
4206 else
4207   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4208    then ac_cv_path_FGREP="$GREP -F"
4209    else
4210      if test -z "$FGREP"; then
4211   ac_path_FGREP_found=false
4212   # Loop through the user's path and test for each of PROGNAME-LIST
4213   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4215 do
4216   IFS=$as_save_IFS
4217   test -z "$as_dir" && as_dir=.
4218     for ac_prog in fgrep; do
4219     for ac_exec_ext in '' $ac_executable_extensions; do
4220       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4221       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4222 # Check for GNU ac_path_FGREP and select it if it is found.
4223   # Check for GNU $ac_path_FGREP
4224 case `"$ac_path_FGREP" --version 2>&1` in
4225 *GNU*)
4226   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4227 *)
4228   ac_count=0
4229   $as_echo_n 0123456789 >"conftest.in"
4230   while :
4231   do
4232     cat "conftest.in" "conftest.in" >"conftest.tmp"
4233     mv "conftest.tmp" "conftest.in"
4234     cp "conftest.in" "conftest.nl"
4235     $as_echo 'FGREP' >> "conftest.nl"
4236     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4237     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4238     as_fn_arith $ac_count + 1 && ac_count=$as_val
4239     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4240       # Best one so far, save it but keep looking for a better one
4241       ac_cv_path_FGREP="$ac_path_FGREP"
4242       ac_path_FGREP_max=$ac_count
4243     fi
4244     # 10*(2^10) chars as input seems more than enough
4245     test $ac_count -gt 10 && break
4246   done
4247   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4248 esac
4249
4250       $ac_path_FGREP_found && break 3
4251     done
4252   done
4253   done
4254 IFS=$as_save_IFS
4255   if test -z "$ac_cv_path_FGREP"; then
4256     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4257   fi
4258 else
4259   ac_cv_path_FGREP=$FGREP
4260 fi
4261
4262    fi
4263 fi
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4265 $as_echo "$ac_cv_path_FGREP" >&6; }
4266  FGREP="$ac_cv_path_FGREP"
4267
4268
4269 test -z "$GREP" && GREP=grep
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289 # Check whether --with-gnu-ld was given.
4290 if test "${with_gnu_ld+set}" = set; then :
4291   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4292 else
4293   with_gnu_ld=no
4294 fi
4295
4296 ac_prog=ld
4297 if test "$GCC" = yes; then
4298   # Check if gcc -print-prog-name=ld gives a path.
4299   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4300 $as_echo_n "checking for ld used by $CC... " >&6; }
4301   case $host in
4302   *-*-mingw*)
4303     # gcc leaves a trailing carriage return which upsets mingw
4304     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4305   *)
4306     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4307   esac
4308   case $ac_prog in
4309     # Accept absolute paths.
4310     [\\/]* | ?:[\\/]*)
4311       re_direlt='/[^/][^/]*/\.\./'
4312       # Canonicalize the pathname of ld
4313       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4314       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4315         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4316       done
4317       test -z "$LD" && LD="$ac_prog"
4318       ;;
4319   "")
4320     # If it fails, then pretend we aren't using GCC.
4321     ac_prog=ld
4322     ;;
4323   *)
4324     # If it is relative, then search for the first ld in PATH.
4325     with_gnu_ld=unknown
4326     ;;
4327   esac
4328 elif test "$with_gnu_ld" = yes; then
4329   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4330 $as_echo_n "checking for GNU ld... " >&6; }
4331 else
4332   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4333 $as_echo_n "checking for non-GNU ld... " >&6; }
4334 fi
4335 if ${lt_cv_path_LD+:} false; then :
4336   $as_echo_n "(cached) " >&6
4337 else
4338   if test -z "$LD"; then
4339   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4340   for ac_dir in $PATH; do
4341     IFS="$lt_save_ifs"
4342     test -z "$ac_dir" && ac_dir=.
4343     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4344       lt_cv_path_LD="$ac_dir/$ac_prog"
4345       # Check to see if the program is GNU ld.  I'd rather use --version,
4346       # but apparently some variants of GNU ld only accept -v.
4347       # Break only if it was the GNU/non-GNU ld that we prefer.
4348       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4349       *GNU* | *'with BFD'*)
4350         test "$with_gnu_ld" != no && break
4351         ;;
4352       *)
4353         test "$with_gnu_ld" != yes && break
4354         ;;
4355       esac
4356     fi
4357   done
4358   IFS="$lt_save_ifs"
4359 else
4360   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4361 fi
4362 fi
4363
4364 LD="$lt_cv_path_LD"
4365 if test -n "$LD"; then
4366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4367 $as_echo "$LD" >&6; }
4368 else
4369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4370 $as_echo "no" >&6; }
4371 fi
4372 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4374 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4375 if ${lt_cv_prog_gnu_ld+:} false; then :
4376   $as_echo_n "(cached) " >&6
4377 else
4378   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4379 case `$LD -v 2>&1 </dev/null` in
4380 *GNU* | *'with BFD'*)
4381   lt_cv_prog_gnu_ld=yes
4382   ;;
4383 *)
4384   lt_cv_prog_gnu_ld=no
4385   ;;
4386 esac
4387 fi
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4389 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4390 with_gnu_ld=$lt_cv_prog_gnu_ld
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4401 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4402 if ${lt_cv_path_NM+:} false; then :
4403   $as_echo_n "(cached) " >&6
4404 else
4405   if test -n "$NM"; then
4406   # Let the user override the test.
4407   lt_cv_path_NM="$NM"
4408 else
4409   lt_nm_to_check="${ac_tool_prefix}nm"
4410   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4411     lt_nm_to_check="$lt_nm_to_check nm"
4412   fi
4413   for lt_tmp_nm in $lt_nm_to_check; do
4414     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4415     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4416       IFS="$lt_save_ifs"
4417       test -z "$ac_dir" && ac_dir=.
4418       tmp_nm="$ac_dir/$lt_tmp_nm"
4419       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4420         # Check to see if the nm accepts a BSD-compat flag.
4421         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4422         #   nm: unknown option "B" ignored
4423         # Tru64's nm complains that /dev/null is an invalid object file
4424         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4425         */dev/null* | *'Invalid file or object type'*)
4426           lt_cv_path_NM="$tmp_nm -B"
4427           break
4428           ;;
4429         *)
4430           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4431           */dev/null*)
4432             lt_cv_path_NM="$tmp_nm -p"
4433             break
4434             ;;
4435           *)
4436             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4437             continue # so that we can try to find one that supports BSD flags
4438             ;;
4439           esac
4440           ;;
4441         esac
4442       fi
4443     done
4444     IFS="$lt_save_ifs"
4445   done
4446   : ${lt_cv_path_NM=no}
4447 fi
4448 fi
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4450 $as_echo "$lt_cv_path_NM" >&6; }
4451 if test "$lt_cv_path_NM" != "no"; then
4452   NM="$lt_cv_path_NM"
4453 else
4454   # Didn't find any BSD compatible name lister, look for dumpbin.
4455   if test -n "$DUMPBIN"; then :
4456     # Let the user override the test.
4457   else
4458     if test -n "$ac_tool_prefix"; then
4459   for ac_prog in dumpbin "link -dump"
4460   do
4461     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4462 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4464 $as_echo_n "checking for $ac_word... " >&6; }
4465 if ${ac_cv_prog_DUMPBIN+:} false; then :
4466   $as_echo_n "(cached) " >&6
4467 else
4468   if test -n "$DUMPBIN"; then
4469   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4470 else
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 for as_dir in $PATH
4473 do
4474   IFS=$as_save_IFS
4475   test -z "$as_dir" && as_dir=.
4476     for ac_exec_ext in '' $ac_executable_extensions; do
4477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4478     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4479     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4480     break 2
4481   fi
4482 done
4483   done
4484 IFS=$as_save_IFS
4485
4486 fi
4487 fi
4488 DUMPBIN=$ac_cv_prog_DUMPBIN
4489 if test -n "$DUMPBIN"; then
4490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4491 $as_echo "$DUMPBIN" >&6; }
4492 else
4493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4494 $as_echo "no" >&6; }
4495 fi
4496
4497
4498     test -n "$DUMPBIN" && break
4499   done
4500 fi
4501 if test -z "$DUMPBIN"; then
4502   ac_ct_DUMPBIN=$DUMPBIN
4503   for ac_prog in dumpbin "link -dump"
4504 do
4505   # Extract the first word of "$ac_prog", so it can be a program name with args.
4506 set dummy $ac_prog; ac_word=$2
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4508 $as_echo_n "checking for $ac_word... " >&6; }
4509 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4510   $as_echo_n "(cached) " >&6
4511 else
4512   if test -n "$ac_ct_DUMPBIN"; then
4513   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4514 else
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 for as_dir in $PATH
4517 do
4518   IFS=$as_save_IFS
4519   test -z "$as_dir" && as_dir=.
4520     for ac_exec_ext in '' $ac_executable_extensions; do
4521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4522     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4524     break 2
4525   fi
4526 done
4527   done
4528 IFS=$as_save_IFS
4529
4530 fi
4531 fi
4532 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4533 if test -n "$ac_ct_DUMPBIN"; then
4534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4535 $as_echo "$ac_ct_DUMPBIN" >&6; }
4536 else
4537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4538 $as_echo "no" >&6; }
4539 fi
4540
4541
4542   test -n "$ac_ct_DUMPBIN" && break
4543 done
4544
4545   if test "x$ac_ct_DUMPBIN" = x; then
4546     DUMPBIN=":"
4547   else
4548     case $cross_compiling:$ac_tool_warned in
4549 yes:)
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4552 ac_tool_warned=yes ;;
4553 esac
4554     DUMPBIN=$ac_ct_DUMPBIN
4555   fi
4556 fi
4557
4558     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4559     *COFF*)
4560       DUMPBIN="$DUMPBIN -symbols"
4561       ;;
4562     *)
4563       DUMPBIN=:
4564       ;;
4565     esac
4566   fi
4567
4568   if test "$DUMPBIN" != ":"; then
4569     NM="$DUMPBIN"
4570   fi
4571 fi
4572 test -z "$NM" && NM=nm
4573
4574
4575
4576
4577
4578
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4580 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4581 if ${lt_cv_nm_interface+:} false; then :
4582   $as_echo_n "(cached) " >&6
4583 else
4584   lt_cv_nm_interface="BSD nm"
4585   echo "int some_variable = 0;" > conftest.$ac_ext
4586   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4587   (eval "$ac_compile" 2>conftest.err)
4588   cat conftest.err >&5
4589   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4590   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4591   cat conftest.err >&5
4592   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4593   cat conftest.out >&5
4594   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4595     lt_cv_nm_interface="MS dumpbin"
4596   fi
4597   rm -f conftest*
4598 fi
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4600 $as_echo "$lt_cv_nm_interface" >&6; }
4601
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4603 $as_echo_n "checking whether ln -s works... " >&6; }
4604 LN_S=$as_ln_s
4605 if test "$LN_S" = "ln -s"; then
4606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4607 $as_echo "yes" >&6; }
4608 else
4609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4610 $as_echo "no, using $LN_S" >&6; }
4611 fi
4612
4613 # find the maximum length of command line arguments
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4615 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4616 if ${lt_cv_sys_max_cmd_len+:} false; then :
4617   $as_echo_n "(cached) " >&6
4618 else
4619     i=0
4620   teststring="ABCD"
4621
4622   case $build_os in
4623   msdosdjgpp*)
4624     # On DJGPP, this test can blow up pretty badly due to problems in libc
4625     # (any single argument exceeding 2000 bytes causes a buffer overrun
4626     # during glob expansion).  Even if it were fixed, the result of this
4627     # check would be larger than it should be.
4628     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4629     ;;
4630
4631   gnu*)
4632     # Under GNU Hurd, this test is not required because there is
4633     # no limit to the length of command line arguments.
4634     # Libtool will interpret -1 as no limit whatsoever
4635     lt_cv_sys_max_cmd_len=-1;
4636     ;;
4637
4638   cygwin* | mingw* | cegcc*)
4639     # On Win9x/ME, this test blows up -- it succeeds, but takes
4640     # about 5 minutes as the teststring grows exponentially.
4641     # Worse, since 9x/ME are not pre-emptively multitasking,
4642     # you end up with a "frozen" computer, even though with patience
4643     # the test eventually succeeds (with a max line length of 256k).
4644     # Instead, let's just punt: use the minimum linelength reported by
4645     # all of the supported platforms: 8192 (on NT/2K/XP).
4646     lt_cv_sys_max_cmd_len=8192;
4647     ;;
4648
4649   mint*)
4650     # On MiNT this can take a long time and run out of memory.
4651     lt_cv_sys_max_cmd_len=8192;
4652     ;;
4653
4654   amigaos*)
4655     # On AmigaOS with pdksh, this test takes hours, literally.
4656     # So we just punt and use a minimum line length of 8192.
4657     lt_cv_sys_max_cmd_len=8192;
4658     ;;
4659
4660   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4661     # This has been around since 386BSD, at least.  Likely further.
4662     if test -x /sbin/sysctl; then
4663       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4664     elif test -x /usr/sbin/sysctl; then
4665       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4666     else
4667       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4668     fi
4669     # And add a safety zone
4670     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4671     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4672     ;;
4673
4674   interix*)
4675     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4676     lt_cv_sys_max_cmd_len=196608
4677     ;;
4678
4679   os2*)
4680     # The test takes a long time on OS/2.
4681     lt_cv_sys_max_cmd_len=8192
4682     ;;
4683
4684   osf*)
4685     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4686     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4687     # nice to cause kernel panics so lets avoid the loop below.
4688     # First set a reasonable default.
4689     lt_cv_sys_max_cmd_len=16384
4690     #
4691     if test -x /sbin/sysconfig; then
4692       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4693         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4694       esac
4695     fi
4696     ;;
4697   sco3.2v5*)
4698     lt_cv_sys_max_cmd_len=102400
4699     ;;
4700   sysv5* | sco5v6* | sysv4.2uw2*)
4701     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4702     if test -n "$kargmax"; then
4703       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4704     else
4705       lt_cv_sys_max_cmd_len=32768
4706     fi
4707     ;;
4708   *)
4709     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4710     if test -n "$lt_cv_sys_max_cmd_len"; then
4711       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4712       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4713     else
4714       # Make teststring a little bigger before we do anything with it.
4715       # a 1K string should be a reasonable start.
4716       for i in 1 2 3 4 5 6 7 8 ; do
4717         teststring=$teststring$teststring
4718       done
4719       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4720       # If test is not a shell built-in, we'll probably end up computing a
4721       # maximum length that is only half of the actual maximum length, but
4722       # we can't tell.
4723       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4724                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4725               test $i != 17 # 1/2 MB should be enough
4726       do
4727         i=`expr $i + 1`
4728         teststring=$teststring$teststring
4729       done
4730       # Only check the string length outside the loop.
4731       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4732       teststring=
4733       # Add a significant safety factor because C++ compilers can tack on
4734       # massive amounts of additional arguments before passing them to the
4735       # linker.  It appears as though 1/2 is a usable value.
4736       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4737     fi
4738     ;;
4739   esac
4740
4741 fi
4742
4743 if test -n $lt_cv_sys_max_cmd_len ; then
4744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4745 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4746 else
4747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4748 $as_echo "none" >&6; }
4749 fi
4750 max_cmd_len=$lt_cv_sys_max_cmd_len
4751
4752
4753
4754
4755
4756
4757 : ${CP="cp -f"}
4758 : ${MV="mv -f"}
4759 : ${RM="rm -f"}
4760
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4762 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4763 # Try some XSI features
4764 xsi_shell=no
4765 ( _lt_dummy="a/b/c"
4766   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4767       = c,a/b,b/c, \
4768     && eval 'test $(( 1 + 1 )) -eq 2 \
4769     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4770   && xsi_shell=yes
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4772 $as_echo "$xsi_shell" >&6; }
4773
4774
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4776 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4777 lt_shell_append=no
4778 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4779     >/dev/null 2>&1 \
4780   && lt_shell_append=yes
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4782 $as_echo "$lt_shell_append" >&6; }
4783
4784
4785 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4786   lt_unset=unset
4787 else
4788   lt_unset=false
4789 fi
4790
4791
4792
4793
4794
4795 # test EBCDIC or ASCII
4796 case `echo X|tr X '\101'` in
4797  A) # ASCII based system
4798     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4799   lt_SP2NL='tr \040 \012'
4800   lt_NL2SP='tr \015\012 \040\040'
4801   ;;
4802  *) # EBCDIC based system
4803   lt_SP2NL='tr \100 \n'
4804   lt_NL2SP='tr \r\n \100\100'
4805   ;;
4806 esac
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4817 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4818 if ${lt_cv_to_host_file_cmd+:} false; then :
4819   $as_echo_n "(cached) " >&6
4820 else
4821   case $host in
4822   *-*-mingw* )
4823     case $build in
4824       *-*-mingw* ) # actually msys
4825         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4826         ;;
4827       *-*-cygwin* )
4828         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4829         ;;
4830       * ) # otherwise, assume *nix
4831         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4832         ;;
4833     esac
4834     ;;
4835   *-*-cygwin* )
4836     case $build in
4837       *-*-mingw* ) # actually msys
4838         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4839         ;;
4840       *-*-cygwin* )
4841         lt_cv_to_host_file_cmd=func_convert_file_noop
4842         ;;
4843       * ) # otherwise, assume *nix
4844         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4845         ;;
4846     esac
4847     ;;
4848   * ) # unhandled hosts (and "normal" native builds)
4849     lt_cv_to_host_file_cmd=func_convert_file_noop
4850     ;;
4851 esac
4852
4853 fi
4854
4855 to_host_file_cmd=$lt_cv_to_host_file_cmd
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4857 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4858
4859
4860
4861
4862
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4864 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4865 if ${lt_cv_to_tool_file_cmd+:} false; then :
4866   $as_echo_n "(cached) " >&6
4867 else
4868   #assume ordinary cross tools, or native build.
4869 lt_cv_to_tool_file_cmd=func_convert_file_noop
4870 case $host in
4871   *-*-mingw* )
4872     case $build in
4873       *-*-mingw* ) # actually msys
4874         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4875         ;;
4876     esac
4877     ;;
4878 esac
4879
4880 fi
4881
4882 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4884 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4885
4886
4887
4888
4889
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4891 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4892 if ${lt_cv_ld_reload_flag+:} false; then :
4893   $as_echo_n "(cached) " >&6
4894 else
4895   lt_cv_ld_reload_flag='-r'
4896 fi
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4898 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4899 reload_flag=$lt_cv_ld_reload_flag
4900 case $reload_flag in
4901 "" | " "*) ;;
4902 *) reload_flag=" $reload_flag" ;;
4903 esac
4904 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4905 case $host_os in
4906   cygwin* | mingw* | pw32* | cegcc*)
4907     if test "$GCC" != yes; then
4908       reload_cmds=false
4909     fi
4910     ;;
4911   darwin*)
4912     if test "$GCC" = yes; then
4913       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4914     else
4915       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4916     fi
4917     ;;
4918 esac
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928 if test -n "$ac_tool_prefix"; then
4929   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4930 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4932 $as_echo_n "checking for $ac_word... " >&6; }
4933 if ${ac_cv_prog_OBJDUMP+:} false; then :
4934   $as_echo_n "(cached) " >&6
4935 else
4936   if test -n "$OBJDUMP"; then
4937   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4938 else
4939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940 for as_dir in $PATH
4941 do
4942   IFS=$as_save_IFS
4943   test -z "$as_dir" && as_dir=.
4944     for ac_exec_ext in '' $ac_executable_extensions; do
4945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4946     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4948     break 2
4949   fi
4950 done
4951   done
4952 IFS=$as_save_IFS
4953
4954 fi
4955 fi
4956 OBJDUMP=$ac_cv_prog_OBJDUMP
4957 if test -n "$OBJDUMP"; then
4958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4959 $as_echo "$OBJDUMP" >&6; }
4960 else
4961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962 $as_echo "no" >&6; }
4963 fi
4964
4965
4966 fi
4967 if test -z "$ac_cv_prog_OBJDUMP"; then
4968   ac_ct_OBJDUMP=$OBJDUMP
4969   # Extract the first word of "objdump", so it can be a program name with args.
4970 set dummy objdump; ac_word=$2
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4972 $as_echo_n "checking for $ac_word... " >&6; }
4973 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4974   $as_echo_n "(cached) " >&6
4975 else
4976   if test -n "$ac_ct_OBJDUMP"; then
4977   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4978 else
4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 for as_dir in $PATH
4981 do
4982   IFS=$as_save_IFS
4983   test -z "$as_dir" && as_dir=.
4984     for ac_exec_ext in '' $ac_executable_extensions; do
4985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4986     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4987     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4988     break 2
4989   fi
4990 done
4991   done
4992 IFS=$as_save_IFS
4993
4994 fi
4995 fi
4996 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4997 if test -n "$ac_ct_OBJDUMP"; then
4998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4999 $as_echo "$ac_ct_OBJDUMP" >&6; }
5000 else
5001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002 $as_echo "no" >&6; }
5003 fi
5004
5005   if test "x$ac_ct_OBJDUMP" = x; then
5006     OBJDUMP="false"
5007   else
5008     case $cross_compiling:$ac_tool_warned in
5009 yes:)
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5012 ac_tool_warned=yes ;;
5013 esac
5014     OBJDUMP=$ac_ct_OBJDUMP
5015   fi
5016 else
5017   OBJDUMP="$ac_cv_prog_OBJDUMP"
5018 fi
5019
5020 test -z "$OBJDUMP" && OBJDUMP=objdump
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5031 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5032 if ${lt_cv_deplibs_check_method+:} false; then :
5033   $as_echo_n "(cached) " >&6
5034 else
5035   lt_cv_file_magic_cmd='$MAGIC_CMD'
5036 lt_cv_file_magic_test_file=
5037 lt_cv_deplibs_check_method='unknown'
5038 # Need to set the preceding variable on all platforms that support
5039 # interlibrary dependencies.
5040 # 'none' -- dependencies not supported.
5041 # `unknown' -- same as none, but documents that we really don't know.
5042 # 'pass_all' -- all dependencies passed with no checks.
5043 # 'test_compile' -- check by making test program.
5044 # 'file_magic [[regex]]' -- check by looking for files in library path
5045 # which responds to the $file_magic_cmd with a given extended regex.
5046 # If you have `file' or equivalent on your system and you're not sure
5047 # whether `pass_all' will *always* work, you probably want this one.
5048
5049 case $host_os in
5050 aix[4-9]*)
5051   lt_cv_deplibs_check_method=pass_all
5052   ;;
5053
5054 beos*)
5055   lt_cv_deplibs_check_method=pass_all
5056   ;;
5057
5058 bsdi[45]*)
5059   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5060   lt_cv_file_magic_cmd='/usr/bin/file -L'
5061   lt_cv_file_magic_test_file=/shlib/libc.so
5062   ;;
5063
5064 cygwin*)
5065   # func_win32_libid is a shell function defined in ltmain.sh
5066   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5067   lt_cv_file_magic_cmd='func_win32_libid'
5068   ;;
5069
5070 mingw* | pw32*)
5071   # Base MSYS/MinGW do not provide the 'file' command needed by
5072   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5073   # unless we find 'file', for example because we are cross-compiling.
5074   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5075   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5076     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5077     lt_cv_file_magic_cmd='func_win32_libid'
5078   else
5079     # Keep this pattern in sync with the one in func_win32_libid.
5080     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5081     lt_cv_file_magic_cmd='$OBJDUMP -f'
5082   fi
5083   ;;
5084
5085 cegcc*)
5086   # use the weaker test based on 'objdump'. See mingw*.
5087   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5088   lt_cv_file_magic_cmd='$OBJDUMP -f'
5089   ;;
5090
5091 darwin* | rhapsody*)
5092   lt_cv_deplibs_check_method=pass_all
5093   ;;
5094
5095 freebsd* | dragonfly*)
5096   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5097     case $host_cpu in
5098     i*86 )
5099       # Not sure whether the presence of OpenBSD here was a mistake.
5100       # Let's accept both of them until this is cleared up.
5101       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5102       lt_cv_file_magic_cmd=/usr/bin/file
5103       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5104       ;;
5105     esac
5106   else
5107     lt_cv_deplibs_check_method=pass_all
5108   fi
5109   ;;
5110
5111 gnu*)
5112   lt_cv_deplibs_check_method=pass_all
5113   ;;
5114
5115 haiku*)
5116   lt_cv_deplibs_check_method=pass_all
5117   ;;
5118
5119 hpux10.20* | hpux11*)
5120   lt_cv_file_magic_cmd=/usr/bin/file
5121   case $host_cpu in
5122   ia64*)
5123     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5124     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5125     ;;
5126   hppa*64*)
5127     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]'
5128     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5129     ;;
5130   *)
5131     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5132     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5133     ;;
5134   esac
5135   ;;
5136
5137 interix[3-9]*)
5138   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5139   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5140   ;;
5141
5142 irix5* | irix6* | nonstopux*)
5143   case $LD in
5144   *-32|*"-32 ") libmagic=32-bit;;
5145   *-n32|*"-n32 ") libmagic=N32;;
5146   *-64|*"-64 ") libmagic=64-bit;;
5147   *) libmagic=never-match;;
5148   esac
5149   lt_cv_deplibs_check_method=pass_all
5150   ;;
5151
5152 # This must be glibc/ELF.
5153 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5154   lt_cv_deplibs_check_method=pass_all
5155   ;;
5156
5157 netbsd*)
5158   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5159     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5160   else
5161     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5162   fi
5163   ;;
5164
5165 newos6*)
5166   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5167   lt_cv_file_magic_cmd=/usr/bin/file
5168   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5169   ;;
5170
5171 *nto* | *qnx*)
5172   lt_cv_deplibs_check_method=pass_all
5173   ;;
5174
5175 openbsd*)
5176   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5177     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5178   else
5179     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5180   fi
5181   ;;
5182
5183 osf3* | osf4* | osf5*)
5184   lt_cv_deplibs_check_method=pass_all
5185   ;;
5186
5187 rdos*)
5188   lt_cv_deplibs_check_method=pass_all
5189   ;;
5190
5191 solaris*)
5192   lt_cv_deplibs_check_method=pass_all
5193   ;;
5194
5195 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5196   lt_cv_deplibs_check_method=pass_all
5197   ;;
5198
5199 sysv4 | sysv4.3*)
5200   case $host_vendor in
5201   motorola)
5202     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]'
5203     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5204     ;;
5205   ncr)
5206     lt_cv_deplibs_check_method=pass_all
5207     ;;
5208   sequent)
5209     lt_cv_file_magic_cmd='/bin/file'
5210     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5211     ;;
5212   sni)
5213     lt_cv_file_magic_cmd='/bin/file'
5214     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5215     lt_cv_file_magic_test_file=/lib/libc.so
5216     ;;
5217   siemens)
5218     lt_cv_deplibs_check_method=pass_all
5219     ;;
5220   pc)
5221     lt_cv_deplibs_check_method=pass_all
5222     ;;
5223   esac
5224   ;;
5225
5226 tpf*)
5227   lt_cv_deplibs_check_method=pass_all
5228   ;;
5229 esac
5230
5231 fi
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5233 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5234
5235 file_magic_glob=
5236 want_nocaseglob=no
5237 if test "$build" = "$host"; then
5238   case $host_os in
5239   mingw* | pw32*)
5240     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5241       want_nocaseglob=yes
5242     else
5243       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5244     fi
5245     ;;
5246   esac
5247 fi
5248
5249 file_magic_cmd=$lt_cv_file_magic_cmd
5250 deplibs_check_method=$lt_cv_deplibs_check_method
5251 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274 if test -n "$ac_tool_prefix"; then
5275   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5276 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5278 $as_echo_n "checking for $ac_word... " >&6; }
5279 if ${ac_cv_prog_DLLTOOL+:} false; then :
5280   $as_echo_n "(cached) " >&6
5281 else
5282   if test -n "$DLLTOOL"; then
5283   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5284 else
5285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286 for as_dir in $PATH
5287 do
5288   IFS=$as_save_IFS
5289   test -z "$as_dir" && as_dir=.
5290     for ac_exec_ext in '' $ac_executable_extensions; do
5291   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5292     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5294     break 2
5295   fi
5296 done
5297   done
5298 IFS=$as_save_IFS
5299
5300 fi
5301 fi
5302 DLLTOOL=$ac_cv_prog_DLLTOOL
5303 if test -n "$DLLTOOL"; then
5304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5305 $as_echo "$DLLTOOL" >&6; }
5306 else
5307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5308 $as_echo "no" >&6; }
5309 fi
5310
5311
5312 fi
5313 if test -z "$ac_cv_prog_DLLTOOL"; then
5314   ac_ct_DLLTOOL=$DLLTOOL
5315   # Extract the first word of "dlltool", so it can be a program name with args.
5316 set dummy dlltool; ac_word=$2
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5318 $as_echo_n "checking for $ac_word... " >&6; }
5319 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5320   $as_echo_n "(cached) " >&6
5321 else
5322   if test -n "$ac_ct_DLLTOOL"; then
5323   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5324 else
5325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326 for as_dir in $PATH
5327 do
5328   IFS=$as_save_IFS
5329   test -z "$as_dir" && as_dir=.
5330     for ac_exec_ext in '' $ac_executable_extensions; do
5331   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5332     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5334     break 2
5335   fi
5336 done
5337   done
5338 IFS=$as_save_IFS
5339
5340 fi
5341 fi
5342 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5343 if test -n "$ac_ct_DLLTOOL"; then
5344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5345 $as_echo "$ac_ct_DLLTOOL" >&6; }
5346 else
5347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5348 $as_echo "no" >&6; }
5349 fi
5350
5351   if test "x$ac_ct_DLLTOOL" = x; then
5352     DLLTOOL="false"
5353   else
5354     case $cross_compiling:$ac_tool_warned in
5355 yes:)
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5358 ac_tool_warned=yes ;;
5359 esac
5360     DLLTOOL=$ac_ct_DLLTOOL
5361   fi
5362 else
5363   DLLTOOL="$ac_cv_prog_DLLTOOL"
5364 fi
5365
5366 test -z "$DLLTOOL" && DLLTOOL=dlltool
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5378 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5379 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5380   $as_echo_n "(cached) " >&6
5381 else
5382   lt_cv_sharedlib_from_linklib_cmd='unknown'
5383
5384 case $host_os in
5385 cygwin* | mingw* | pw32* | cegcc*)
5386   # two different shell functions defined in ltmain.sh
5387   # decide which to use based on capabilities of $DLLTOOL
5388   case `$DLLTOOL --help 2>&1` in
5389   *--identify-strict*)
5390     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5391     ;;
5392   *)
5393     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5394     ;;
5395   esac
5396   ;;
5397 *)
5398   # fallback: assume linklib IS sharedlib
5399   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5400   ;;
5401 esac
5402
5403 fi
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5405 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5406 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5407 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5408
5409
5410
5411
5412
5413
5414
5415
5416 if test -n "$ac_tool_prefix"; then
5417   for ac_prog in ar
5418   do
5419     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5420 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5422 $as_echo_n "checking for $ac_word... " >&6; }
5423 if ${ac_cv_prog_AR+:} false; then :
5424   $as_echo_n "(cached) " >&6
5425 else
5426   if test -n "$AR"; then
5427   ac_cv_prog_AR="$AR" # Let the user override the test.
5428 else
5429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430 for as_dir in $PATH
5431 do
5432   IFS=$as_save_IFS
5433   test -z "$as_dir" && as_dir=.
5434     for ac_exec_ext in '' $ac_executable_extensions; do
5435   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5436     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5438     break 2
5439   fi
5440 done
5441   done
5442 IFS=$as_save_IFS
5443
5444 fi
5445 fi
5446 AR=$ac_cv_prog_AR
5447 if test -n "$AR"; then
5448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5449 $as_echo "$AR" >&6; }
5450 else
5451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5452 $as_echo "no" >&6; }
5453 fi
5454
5455
5456     test -n "$AR" && break
5457   done
5458 fi
5459 if test -z "$AR"; then
5460   ac_ct_AR=$AR
5461   for ac_prog in ar
5462 do
5463   # Extract the first word of "$ac_prog", so it can be a program name with args.
5464 set dummy $ac_prog; ac_word=$2
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5466 $as_echo_n "checking for $ac_word... " >&6; }
5467 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5468   $as_echo_n "(cached) " >&6
5469 else
5470   if test -n "$ac_ct_AR"; then
5471   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5472 else
5473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 for as_dir in $PATH
5475 do
5476   IFS=$as_save_IFS
5477   test -z "$as_dir" && as_dir=.
5478     for ac_exec_ext in '' $ac_executable_extensions; do
5479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5480     ac_cv_prog_ac_ct_AR="$ac_prog"
5481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5482     break 2
5483   fi
5484 done
5485   done
5486 IFS=$as_save_IFS
5487
5488 fi
5489 fi
5490 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5491 if test -n "$ac_ct_AR"; then
5492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5493 $as_echo "$ac_ct_AR" >&6; }
5494 else
5495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5496 $as_echo "no" >&6; }
5497 fi
5498
5499
5500   test -n "$ac_ct_AR" && break
5501 done
5502
5503   if test "x$ac_ct_AR" = x; then
5504     AR="false"
5505   else
5506     case $cross_compiling:$ac_tool_warned in
5507 yes:)
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5510 ac_tool_warned=yes ;;
5511 esac
5512     AR=$ac_ct_AR
5513   fi
5514 fi
5515
5516 : ${AR=ar}
5517 : ${AR_FLAGS=cru}
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5530 $as_echo_n "checking for archiver @FILE support... " >&6; }
5531 if ${lt_cv_ar_at_file+:} false; then :
5532   $as_echo_n "(cached) " >&6
5533 else
5534   lt_cv_ar_at_file=no
5535    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5536 /* end confdefs.h.  */
5537
5538 int
5539 main ()
5540 {
5541
5542   ;
5543   return 0;
5544 }
5545 _ACEOF
5546 if ac_fn_c_try_compile "$LINENO"; then :
5547   echo conftest.$ac_objext > conftest.lst
5548       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5549       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5550   (eval $lt_ar_try) 2>&5
5551   ac_status=$?
5552   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5553   test $ac_status = 0; }
5554       if test "$ac_status" -eq 0; then
5555         # Ensure the archiver fails upon bogus file names.
5556         rm -f conftest.$ac_objext libconftest.a
5557         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5558   (eval $lt_ar_try) 2>&5
5559   ac_status=$?
5560   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5561   test $ac_status = 0; }
5562         if test "$ac_status" -ne 0; then
5563           lt_cv_ar_at_file=@
5564         fi
5565       fi
5566       rm -f conftest.* libconftest.a
5567
5568 fi
5569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570
5571 fi
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5573 $as_echo "$lt_cv_ar_at_file" >&6; }
5574
5575 if test "x$lt_cv_ar_at_file" = xno; then
5576   archiver_list_spec=
5577 else
5578   archiver_list_spec=$lt_cv_ar_at_file
5579 fi
5580
5581
5582
5583
5584
5585
5586
5587 if test -n "$ac_tool_prefix"; then
5588   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5589 set dummy ${ac_tool_prefix}strip; ac_word=$2
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5591 $as_echo_n "checking for $ac_word... " >&6; }
5592 if ${ac_cv_prog_STRIP+:} false; then :
5593   $as_echo_n "(cached) " >&6
5594 else
5595   if test -n "$STRIP"; then
5596   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5597 else
5598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599 for as_dir in $PATH
5600 do
5601   IFS=$as_save_IFS
5602   test -z "$as_dir" && as_dir=.
5603     for ac_exec_ext in '' $ac_executable_extensions; do
5604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5605     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5607     break 2
5608   fi
5609 done
5610   done
5611 IFS=$as_save_IFS
5612
5613 fi
5614 fi
5615 STRIP=$ac_cv_prog_STRIP
5616 if test -n "$STRIP"; then
5617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5618 $as_echo "$STRIP" >&6; }
5619 else
5620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5621 $as_echo "no" >&6; }
5622 fi
5623
5624
5625 fi
5626 if test -z "$ac_cv_prog_STRIP"; then
5627   ac_ct_STRIP=$STRIP
5628   # Extract the first word of "strip", so it can be a program name with args.
5629 set dummy strip; ac_word=$2
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5631 $as_echo_n "checking for $ac_word... " >&6; }
5632 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5633   $as_echo_n "(cached) " >&6
5634 else
5635   if test -n "$ac_ct_STRIP"; then
5636   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5637 else
5638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639 for as_dir in $PATH
5640 do
5641   IFS=$as_save_IFS
5642   test -z "$as_dir" && as_dir=.
5643     for ac_exec_ext in '' $ac_executable_extensions; do
5644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5645     ac_cv_prog_ac_ct_STRIP="strip"
5646     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5647     break 2
5648   fi
5649 done
5650   done
5651 IFS=$as_save_IFS
5652
5653 fi
5654 fi
5655 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5656 if test -n "$ac_ct_STRIP"; then
5657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5658 $as_echo "$ac_ct_STRIP" >&6; }
5659 else
5660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5661 $as_echo "no" >&6; }
5662 fi
5663
5664   if test "x$ac_ct_STRIP" = x; then
5665     STRIP=":"
5666   else
5667     case $cross_compiling:$ac_tool_warned in
5668 yes:)
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5671 ac_tool_warned=yes ;;
5672 esac
5673     STRIP=$ac_ct_STRIP
5674   fi
5675 else
5676   STRIP="$ac_cv_prog_STRIP"
5677 fi
5678
5679 test -z "$STRIP" && STRIP=:
5680
5681
5682
5683
5684
5685
5686 if test -n "$ac_tool_prefix"; then
5687   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5688 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5690 $as_echo_n "checking for $ac_word... " >&6; }
5691 if ${ac_cv_prog_RANLIB+:} false; then :
5692   $as_echo_n "(cached) " >&6
5693 else
5694   if test -n "$RANLIB"; then
5695   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5696 else
5697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698 for as_dir in $PATH
5699 do
5700   IFS=$as_save_IFS
5701   test -z "$as_dir" && as_dir=.
5702     for ac_exec_ext in '' $ac_executable_extensions; do
5703   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5704     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5706     break 2
5707   fi
5708 done
5709   done
5710 IFS=$as_save_IFS
5711
5712 fi
5713 fi
5714 RANLIB=$ac_cv_prog_RANLIB
5715 if test -n "$RANLIB"; then
5716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5717 $as_echo "$RANLIB" >&6; }
5718 else
5719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5720 $as_echo "no" >&6; }
5721 fi
5722
5723
5724 fi
5725 if test -z "$ac_cv_prog_RANLIB"; then
5726   ac_ct_RANLIB=$RANLIB
5727   # Extract the first word of "ranlib", so it can be a program name with args.
5728 set dummy ranlib; ac_word=$2
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5730 $as_echo_n "checking for $ac_word... " >&6; }
5731 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5732   $as_echo_n "(cached) " >&6
5733 else
5734   if test -n "$ac_ct_RANLIB"; then
5735   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5736 else
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 for as_dir in $PATH
5739 do
5740   IFS=$as_save_IFS
5741   test -z "$as_dir" && as_dir=.
5742     for ac_exec_ext in '' $ac_executable_extensions; do
5743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5744     ac_cv_prog_ac_ct_RANLIB="ranlib"
5745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5746     break 2
5747   fi
5748 done
5749   done
5750 IFS=$as_save_IFS
5751
5752 fi
5753 fi
5754 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5755 if test -n "$ac_ct_RANLIB"; then
5756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5757 $as_echo "$ac_ct_RANLIB" >&6; }
5758 else
5759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760 $as_echo "no" >&6; }
5761 fi
5762
5763   if test "x$ac_ct_RANLIB" = x; then
5764     RANLIB=":"
5765   else
5766     case $cross_compiling:$ac_tool_warned in
5767 yes:)
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5770 ac_tool_warned=yes ;;
5771 esac
5772     RANLIB=$ac_ct_RANLIB
5773   fi
5774 else
5775   RANLIB="$ac_cv_prog_RANLIB"
5776 fi
5777
5778 test -z "$RANLIB" && RANLIB=:
5779
5780
5781
5782
5783
5784
5785 # Determine commands to create old-style static archives.
5786 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5787 old_postinstall_cmds='chmod 644 $oldlib'
5788 old_postuninstall_cmds=
5789
5790 if test -n "$RANLIB"; then
5791   case $host_os in
5792   openbsd*)
5793     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5794     ;;
5795   *)
5796     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5797     ;;
5798   esac
5799   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5800 fi
5801
5802 case $host_os in
5803   darwin*)
5804     lock_old_archive_extraction=yes ;;
5805   *)
5806     lock_old_archive_extraction=no ;;
5807 esac
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847 # If no C compiler was specified, use CC.
5848 LTCC=${LTCC-"$CC"}
5849
5850 # If no C compiler flags were specified, use CFLAGS.
5851 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5852
5853 # Allow CC to be a program name with arguments.
5854 compiler=$CC
5855
5856
5857 # Check for command to grab the raw symbol name followed by C symbol from nm.
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5859 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5860 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5861   $as_echo_n "(cached) " >&6
5862 else
5863
5864 # These are sane defaults that work on at least a few old systems.
5865 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5866
5867 # Character class describing NM global symbol codes.
5868 symcode='[BCDEGRST]'
5869
5870 # Regexp to match symbols that can be accessed directly from C.
5871 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5872
5873 # Define system-specific variables.
5874 case $host_os in
5875 aix*)
5876   symcode='[BCDT]'
5877   ;;
5878 cygwin* | mingw* | pw32* | cegcc*)
5879   symcode='[ABCDGISTW]'
5880   ;;
5881 hpux*)
5882   if test "$host_cpu" = ia64; then
5883     symcode='[ABCDEGRST]'
5884   fi
5885   ;;
5886 irix* | nonstopux*)
5887   symcode='[BCDEGRST]'
5888   ;;
5889 osf*)
5890   symcode='[BCDEGQRST]'
5891   ;;
5892 solaris*)
5893   symcode='[BDRT]'
5894   ;;
5895 sco3.2v5*)
5896   symcode='[DT]'
5897   ;;
5898 sysv4.2uw2*)
5899   symcode='[DT]'
5900   ;;
5901 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5902   symcode='[ABDT]'
5903   ;;
5904 sysv4)
5905   symcode='[DFNSTU]'
5906   ;;
5907 esac
5908
5909 # If we're using GNU nm, then use its standard symbol codes.
5910 case `$NM -V 2>&1` in
5911 *GNU* | *'with BFD'*)
5912   symcode='[ABCDGIRSTW]' ;;
5913 esac
5914
5915 # Transform an extracted symbol line into a proper C declaration.
5916 # Some systems (esp. on ia64) link data and code symbols differently,
5917 # so use this general approach.
5918 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5919
5920 # Transform an extracted symbol line into symbol name and symbol address
5921 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5922 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'"
5923
5924 # Handle CRLF in mingw tool chain
5925 opt_cr=
5926 case $build_os in
5927 mingw*)
5928   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5929   ;;
5930 esac
5931
5932 # Try without a prefix underscore, then with it.
5933 for ac_symprfx in "" "_"; do
5934
5935   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5936   symxfrm="\\1 $ac_symprfx\\2 \\2"
5937
5938   # Write the raw and C identifiers.
5939   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5940     # Fake it for dumpbin and say T for any non-static function
5941     # and D for any global variable.
5942     # Also find C++ and __fastcall symbols from MSVC++,
5943     # which start with @ or ?.
5944     lt_cv_sys_global_symbol_pipe="$AWK '"\
5945 "     {last_section=section; section=\$ 3};"\
5946 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5947 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5948 "     \$ 0!~/External *\|/{next};"\
5949 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5950 "     {if(hide[section]) next};"\
5951 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5952 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5953 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5954 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5955 "     ' prfx=^$ac_symprfx"
5956   else
5957     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5958   fi
5959   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5960
5961   # Check to see that the pipe works correctly.
5962   pipe_works=no
5963
5964   rm -f conftest*
5965   cat > conftest.$ac_ext <<_LT_EOF
5966 #ifdef __cplusplus
5967 extern "C" {
5968 #endif
5969 char nm_test_var;
5970 void nm_test_func(void);
5971 void nm_test_func(void){}
5972 #ifdef __cplusplus
5973 }
5974 #endif
5975 int main(){nm_test_var='a';nm_test_func();return(0);}
5976 _LT_EOF
5977
5978   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5979   (eval $ac_compile) 2>&5
5980   ac_status=$?
5981   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5982   test $ac_status = 0; }; then
5983     # Now try to grab the symbols.
5984     nlist=conftest.nm
5985     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5986   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5987   ac_status=$?
5988   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5989   test $ac_status = 0; } && test -s "$nlist"; then
5990       # Try sorting and uniquifying the output.
5991       if sort "$nlist" | uniq > "$nlist"T; then
5992         mv -f "$nlist"T "$nlist"
5993       else
5994         rm -f "$nlist"T
5995       fi
5996
5997       # Make sure that we snagged all the symbols we need.
5998       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5999         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6000           cat <<_LT_EOF > conftest.$ac_ext
6001 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6002 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6003 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6004    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6005 # define LT_DLSYM_CONST
6006 #elif defined(__osf__)
6007 /* This system does not cope well with relocations in const data.  */
6008 # define LT_DLSYM_CONST
6009 #else
6010 # define LT_DLSYM_CONST const
6011 #endif
6012
6013 #ifdef __cplusplus
6014 extern "C" {
6015 #endif
6016
6017 _LT_EOF
6018           # Now generate the symbol file.
6019           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6020
6021           cat <<_LT_EOF >> conftest.$ac_ext
6022
6023 /* The mapping between symbol names and symbols.  */
6024 LT_DLSYM_CONST struct {
6025   const char *name;
6026   void       *address;
6027 }
6028 lt__PROGRAM__LTX_preloaded_symbols[] =
6029 {
6030   { "@PROGRAM@", (void *) 0 },
6031 _LT_EOF
6032           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6033           cat <<\_LT_EOF >> conftest.$ac_ext
6034   {0, (void *) 0}
6035 };
6036
6037 /* This works around a problem in FreeBSD linker */
6038 #ifdef FREEBSD_WORKAROUND
6039 static const void *lt_preloaded_setup() {
6040   return lt__PROGRAM__LTX_preloaded_symbols;
6041 }
6042 #endif
6043
6044 #ifdef __cplusplus
6045 }
6046 #endif
6047 _LT_EOF
6048           # Now try linking the two files.
6049           mv conftest.$ac_objext conftstm.$ac_objext
6050           lt_globsym_save_LIBS=$LIBS
6051           lt_globsym_save_CFLAGS=$CFLAGS
6052           LIBS="conftstm.$ac_objext"
6053           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6054           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6055   (eval $ac_link) 2>&5
6056   ac_status=$?
6057   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6058   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6059             pipe_works=yes
6060           fi
6061           LIBS=$lt_globsym_save_LIBS
6062           CFLAGS=$lt_globsym_save_CFLAGS
6063         else
6064           echo "cannot find nm_test_func in $nlist" >&5
6065         fi
6066       else
6067         echo "cannot find nm_test_var in $nlist" >&5
6068       fi
6069     else
6070       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6071     fi
6072   else
6073     echo "$progname: failed program was:" >&5
6074     cat conftest.$ac_ext >&5
6075   fi
6076   rm -rf conftest* conftst*
6077
6078   # Do not use the global_symbol_pipe unless it works.
6079   if test "$pipe_works" = yes; then
6080     break
6081   else
6082     lt_cv_sys_global_symbol_pipe=
6083   fi
6084 done
6085
6086 fi
6087
6088 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6089   lt_cv_sys_global_symbol_to_cdecl=
6090 fi
6091 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6093 $as_echo "failed" >&6; }
6094 else
6095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6096 $as_echo "ok" >&6; }
6097 fi
6098
6099 # Response file support.
6100 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6101   nm_file_list_spec='@'
6102 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6103   nm_file_list_spec='@'
6104 fi
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6133 $as_echo_n "checking for sysroot... " >&6; }
6134
6135 # Check whether --with-sysroot was given.
6136 if test "${with_sysroot+set}" = set; then :
6137   withval=$with_sysroot;
6138 else
6139   with_sysroot=no
6140 fi
6141
6142
6143 lt_sysroot=
6144 case ${with_sysroot} in #(
6145  yes)
6146    if test "$GCC" = yes; then
6147      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6148    fi
6149    ;; #(
6150  /*)
6151    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6152    ;; #(
6153  no|'')
6154    ;; #(
6155  *)
6156    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6157 $as_echo "${with_sysroot}" >&6; }
6158    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6159    ;;
6160 esac
6161
6162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6163 $as_echo "${lt_sysroot:-no}" >&6; }
6164
6165
6166
6167
6168
6169 # Check whether --enable-libtool-lock was given.
6170 if test "${enable_libtool_lock+set}" = set; then :
6171   enableval=$enable_libtool_lock;
6172 fi
6173
6174 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6175
6176 # Some flags need to be propagated to the compiler or linker for good
6177 # libtool support.
6178 case $host in
6179 ia64-*-hpux*)
6180   # Find out which ABI we are using.
6181   echo 'int i;' > conftest.$ac_ext
6182   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6183   (eval $ac_compile) 2>&5
6184   ac_status=$?
6185   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6186   test $ac_status = 0; }; then
6187     case `/usr/bin/file conftest.$ac_objext` in
6188       *ELF-32*)
6189         HPUX_IA64_MODE="32"
6190         ;;
6191       *ELF-64*)
6192         HPUX_IA64_MODE="64"
6193         ;;
6194     esac
6195   fi
6196   rm -rf conftest*
6197   ;;
6198 *-*-irix6*)
6199   # Find out which ABI we are using.
6200   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6201   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6202   (eval $ac_compile) 2>&5
6203   ac_status=$?
6204   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6205   test $ac_status = 0; }; then
6206     if test "$lt_cv_prog_gnu_ld" = yes; then
6207       case `/usr/bin/file conftest.$ac_objext` in
6208         *32-bit*)
6209           LD="${LD-ld} -melf32bsmip"
6210           ;;
6211         *N32*)
6212           LD="${LD-ld} -melf32bmipn32"
6213           ;;
6214         *64-bit*)
6215           LD="${LD-ld} -melf64bmip"
6216         ;;
6217       esac
6218     else
6219       case `/usr/bin/file conftest.$ac_objext` in
6220         *32-bit*)
6221           LD="${LD-ld} -32"
6222           ;;
6223         *N32*)
6224           LD="${LD-ld} -n32"
6225           ;;
6226         *64-bit*)
6227           LD="${LD-ld} -64"
6228           ;;
6229       esac
6230     fi
6231   fi
6232   rm -rf conftest*
6233   ;;
6234
6235 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6236 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6237   # Find out which ABI we are using.
6238   echo 'int i;' > conftest.$ac_ext
6239   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6240   (eval $ac_compile) 2>&5
6241   ac_status=$?
6242   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6243   test $ac_status = 0; }; then
6244     case `/usr/bin/file conftest.o` in
6245       *32-bit*)
6246         case $host in
6247           x86_64-*kfreebsd*-gnu)
6248             LD="${LD-ld} -m elf_i386_fbsd"
6249             ;;
6250           x86_64-*linux*)
6251             LD="${LD-ld} -m elf_i386"
6252             ;;
6253           ppc64-*linux*|powerpc64-*linux*)
6254             LD="${LD-ld} -m elf32ppclinux"
6255             ;;
6256           s390x-*linux*)
6257             LD="${LD-ld} -m elf_s390"
6258             ;;
6259           sparc64-*linux*)
6260             LD="${LD-ld} -m elf32_sparc"
6261             ;;
6262         esac
6263         ;;
6264       *64-bit*)
6265         case $host in
6266           x86_64-*kfreebsd*-gnu)
6267             LD="${LD-ld} -m elf_x86_64_fbsd"
6268             ;;
6269           x86_64-*linux*)
6270             LD="${LD-ld} -m elf_x86_64"
6271             ;;
6272           ppc*-*linux*|powerpc*-*linux*)
6273             LD="${LD-ld} -m elf64ppc"
6274             ;;
6275           s390*-*linux*|s390*-*tpf*)
6276             LD="${LD-ld} -m elf64_s390"
6277             ;;
6278           sparc*-*linux*)
6279             LD="${LD-ld} -m elf64_sparc"
6280             ;;
6281         esac
6282         ;;
6283     esac
6284   fi
6285   rm -rf conftest*
6286   ;;
6287
6288 *-*-sco3.2v5*)
6289   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6290   SAVE_CFLAGS="$CFLAGS"
6291   CFLAGS="$CFLAGS -belf"
6292   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6293 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6294 if ${lt_cv_cc_needs_belf+:} false; then :
6295   $as_echo_n "(cached) " >&6
6296 else
6297   ac_ext=c
6298 ac_cpp='$CPP $CPPFLAGS'
6299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6302
6303      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6304 /* end confdefs.h.  */
6305
6306 int
6307 main ()
6308 {
6309
6310   ;
6311   return 0;
6312 }
6313 _ACEOF
6314 if ac_fn_c_try_link "$LINENO"; then :
6315   lt_cv_cc_needs_belf=yes
6316 else
6317   lt_cv_cc_needs_belf=no
6318 fi
6319 rm -f core conftest.err conftest.$ac_objext \
6320     conftest$ac_exeext conftest.$ac_ext
6321      ac_ext=c
6322 ac_cpp='$CPP $CPPFLAGS'
6323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6326
6327 fi
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6329 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6330   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6331     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6332     CFLAGS="$SAVE_CFLAGS"
6333   fi
6334   ;;
6335 *-*solaris*)
6336   # Find out which ABI we are using.
6337   echo 'int i;' > conftest.$ac_ext
6338   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6339   (eval $ac_compile) 2>&5
6340   ac_status=$?
6341   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6342   test $ac_status = 0; }; then
6343     case `/usr/bin/file conftest.o` in
6344     *64-bit*)
6345       case $lt_cv_prog_gnu_ld in
6346       yes*)
6347         case $host in
6348         i?86-*-solaris*)
6349           LD="${LD-ld} -m elf_x86_64"
6350           ;;
6351         sparc*-*-solaris*)
6352           LD="${LD-ld} -m elf64_sparc"
6353           ;;
6354         esac
6355         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6356         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6357           LD="${LD-ld}_sol2"
6358         fi
6359         ;;
6360       *)
6361         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6362           LD="${LD-ld} -64"
6363         fi
6364         ;;
6365       esac
6366       ;;
6367     esac
6368   fi
6369   rm -rf conftest*
6370   ;;
6371 esac
6372
6373 need_locks="$enable_libtool_lock"
6374
6375 if test -n "$ac_tool_prefix"; then
6376   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6377 set dummy ${ac_tool_prefix}mt; ac_word=$2
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6379 $as_echo_n "checking for $ac_word... " >&6; }
6380 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6381   $as_echo_n "(cached) " >&6
6382 else
6383   if test -n "$MANIFEST_TOOL"; then
6384   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6385 else
6386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387 for as_dir in $PATH
6388 do
6389   IFS=$as_save_IFS
6390   test -z "$as_dir" && as_dir=.
6391     for ac_exec_ext in '' $ac_executable_extensions; do
6392   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6393     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6395     break 2
6396   fi
6397 done
6398   done
6399 IFS=$as_save_IFS
6400
6401 fi
6402 fi
6403 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6404 if test -n "$MANIFEST_TOOL"; then
6405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6406 $as_echo "$MANIFEST_TOOL" >&6; }
6407 else
6408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409 $as_echo "no" >&6; }
6410 fi
6411
6412
6413 fi
6414 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6415   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6416   # Extract the first word of "mt", so it can be a program name with args.
6417 set dummy mt; ac_word=$2
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6419 $as_echo_n "checking for $ac_word... " >&6; }
6420 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6421   $as_echo_n "(cached) " >&6
6422 else
6423   if test -n "$ac_ct_MANIFEST_TOOL"; then
6424   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6425 else
6426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427 for as_dir in $PATH
6428 do
6429   IFS=$as_save_IFS
6430   test -z "$as_dir" && as_dir=.
6431     for ac_exec_ext in '' $ac_executable_extensions; do
6432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6433     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6435     break 2
6436   fi
6437 done
6438   done
6439 IFS=$as_save_IFS
6440
6441 fi
6442 fi
6443 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6444 if test -n "$ac_ct_MANIFEST_TOOL"; then
6445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6446 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6447 else
6448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6449 $as_echo "no" >&6; }
6450 fi
6451
6452   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6453     MANIFEST_TOOL=":"
6454   else
6455     case $cross_compiling:$ac_tool_warned in
6456 yes:)
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6459 ac_tool_warned=yes ;;
6460 esac
6461     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6462   fi
6463 else
6464   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6465 fi
6466
6467 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6469 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6470 if ${lt_cv_path_mainfest_tool+:} false; then :
6471   $as_echo_n "(cached) " >&6
6472 else
6473   lt_cv_path_mainfest_tool=no
6474   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6475   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6476   cat conftest.err >&5
6477   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6478     lt_cv_path_mainfest_tool=yes
6479   fi
6480   rm -f conftest*
6481 fi
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6483 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6484 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6485   MANIFEST_TOOL=:
6486 fi
6487
6488
6489
6490
6491
6492
6493   case $host_os in
6494     rhapsody* | darwin*)
6495     if test -n "$ac_tool_prefix"; then
6496   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6497 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6499 $as_echo_n "checking for $ac_word... " >&6; }
6500 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6501   $as_echo_n "(cached) " >&6
6502 else
6503   if test -n "$DSYMUTIL"; then
6504   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6505 else
6506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507 for as_dir in $PATH
6508 do
6509   IFS=$as_save_IFS
6510   test -z "$as_dir" && as_dir=.
6511     for ac_exec_ext in '' $ac_executable_extensions; do
6512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6513     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6514     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6515     break 2
6516   fi
6517 done
6518   done
6519 IFS=$as_save_IFS
6520
6521 fi
6522 fi
6523 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6524 if test -n "$DSYMUTIL"; then
6525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6526 $as_echo "$DSYMUTIL" >&6; }
6527 else
6528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6529 $as_echo "no" >&6; }
6530 fi
6531
6532
6533 fi
6534 if test -z "$ac_cv_prog_DSYMUTIL"; then
6535   ac_ct_DSYMUTIL=$DSYMUTIL
6536   # Extract the first word of "dsymutil", so it can be a program name with args.
6537 set dummy dsymutil; ac_word=$2
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6539 $as_echo_n "checking for $ac_word... " >&6; }
6540 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6541   $as_echo_n "(cached) " >&6
6542 else
6543   if test -n "$ac_ct_DSYMUTIL"; then
6544   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6545 else
6546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547 for as_dir in $PATH
6548 do
6549   IFS=$as_save_IFS
6550   test -z "$as_dir" && as_dir=.
6551     for ac_exec_ext in '' $ac_executable_extensions; do
6552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6553     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6554     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6555     break 2
6556   fi
6557 done
6558   done
6559 IFS=$as_save_IFS
6560
6561 fi
6562 fi
6563 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6564 if test -n "$ac_ct_DSYMUTIL"; then
6565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6566 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6567 else
6568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6569 $as_echo "no" >&6; }
6570 fi
6571
6572   if test "x$ac_ct_DSYMUTIL" = x; then
6573     DSYMUTIL=":"
6574   else
6575     case $cross_compiling:$ac_tool_warned in
6576 yes:)
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6578 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6579 ac_tool_warned=yes ;;
6580 esac
6581     DSYMUTIL=$ac_ct_DSYMUTIL
6582   fi
6583 else
6584   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6585 fi
6586
6587     if test -n "$ac_tool_prefix"; then
6588   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6589 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6591 $as_echo_n "checking for $ac_word... " >&6; }
6592 if ${ac_cv_prog_NMEDIT+:} false; then :
6593   $as_echo_n "(cached) " >&6
6594 else
6595   if test -n "$NMEDIT"; then
6596   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6597 else
6598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 for as_dir in $PATH
6600 do
6601   IFS=$as_save_IFS
6602   test -z "$as_dir" && as_dir=.
6603     for ac_exec_ext in '' $ac_executable_extensions; do
6604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6605     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6607     break 2
6608   fi
6609 done
6610   done
6611 IFS=$as_save_IFS
6612
6613 fi
6614 fi
6615 NMEDIT=$ac_cv_prog_NMEDIT
6616 if test -n "$NMEDIT"; then
6617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6618 $as_echo "$NMEDIT" >&6; }
6619 else
6620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6621 $as_echo "no" >&6; }
6622 fi
6623
6624
6625 fi
6626 if test -z "$ac_cv_prog_NMEDIT"; then
6627   ac_ct_NMEDIT=$NMEDIT
6628   # Extract the first word of "nmedit", so it can be a program name with args.
6629 set dummy nmedit; ac_word=$2
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6631 $as_echo_n "checking for $ac_word... " >&6; }
6632 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6633   $as_echo_n "(cached) " >&6
6634 else
6635   if test -n "$ac_ct_NMEDIT"; then
6636   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6637 else
6638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 for as_dir in $PATH
6640 do
6641   IFS=$as_save_IFS
6642   test -z "$as_dir" && as_dir=.
6643     for ac_exec_ext in '' $ac_executable_extensions; do
6644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6645     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6646     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6647     break 2
6648   fi
6649 done
6650   done
6651 IFS=$as_save_IFS
6652
6653 fi
6654 fi
6655 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6656 if test -n "$ac_ct_NMEDIT"; then
6657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6658 $as_echo "$ac_ct_NMEDIT" >&6; }
6659 else
6660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6661 $as_echo "no" >&6; }
6662 fi
6663
6664   if test "x$ac_ct_NMEDIT" = x; then
6665     NMEDIT=":"
6666   else
6667     case $cross_compiling:$ac_tool_warned in
6668 yes:)
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6671 ac_tool_warned=yes ;;
6672 esac
6673     NMEDIT=$ac_ct_NMEDIT
6674   fi
6675 else
6676   NMEDIT="$ac_cv_prog_NMEDIT"
6677 fi
6678
6679     if test -n "$ac_tool_prefix"; then
6680   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6681 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6683 $as_echo_n "checking for $ac_word... " >&6; }
6684 if ${ac_cv_prog_LIPO+:} false; then :
6685   $as_echo_n "(cached) " >&6
6686 else
6687   if test -n "$LIPO"; then
6688   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6689 else
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 for as_dir in $PATH
6692 do
6693   IFS=$as_save_IFS
6694   test -z "$as_dir" && as_dir=.
6695     for ac_exec_ext in '' $ac_executable_extensions; do
6696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6697     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6699     break 2
6700   fi
6701 done
6702   done
6703 IFS=$as_save_IFS
6704
6705 fi
6706 fi
6707 LIPO=$ac_cv_prog_LIPO
6708 if test -n "$LIPO"; then
6709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6710 $as_echo "$LIPO" >&6; }
6711 else
6712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6713 $as_echo "no" >&6; }
6714 fi
6715
6716
6717 fi
6718 if test -z "$ac_cv_prog_LIPO"; then
6719   ac_ct_LIPO=$LIPO
6720   # Extract the first word of "lipo", so it can be a program name with args.
6721 set dummy lipo; ac_word=$2
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6723 $as_echo_n "checking for $ac_word... " >&6; }
6724 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6725   $as_echo_n "(cached) " >&6
6726 else
6727   if test -n "$ac_ct_LIPO"; then
6728   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6729 else
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731 for as_dir in $PATH
6732 do
6733   IFS=$as_save_IFS
6734   test -z "$as_dir" && as_dir=.
6735     for ac_exec_ext in '' $ac_executable_extensions; do
6736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6737     ac_cv_prog_ac_ct_LIPO="lipo"
6738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6739     break 2
6740   fi
6741 done
6742   done
6743 IFS=$as_save_IFS
6744
6745 fi
6746 fi
6747 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6748 if test -n "$ac_ct_LIPO"; then
6749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6750 $as_echo "$ac_ct_LIPO" >&6; }
6751 else
6752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6753 $as_echo "no" >&6; }
6754 fi
6755
6756   if test "x$ac_ct_LIPO" = x; then
6757     LIPO=":"
6758   else
6759     case $cross_compiling:$ac_tool_warned in
6760 yes:)
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6763 ac_tool_warned=yes ;;
6764 esac
6765     LIPO=$ac_ct_LIPO
6766   fi
6767 else
6768   LIPO="$ac_cv_prog_LIPO"
6769 fi
6770
6771     if test -n "$ac_tool_prefix"; then
6772   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6773 set dummy ${ac_tool_prefix}otool; ac_word=$2
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6775 $as_echo_n "checking for $ac_word... " >&6; }
6776 if ${ac_cv_prog_OTOOL+:} false; then :
6777   $as_echo_n "(cached) " >&6
6778 else
6779   if test -n "$OTOOL"; then
6780   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6781 else
6782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 for as_dir in $PATH
6784 do
6785   IFS=$as_save_IFS
6786   test -z "$as_dir" && as_dir=.
6787     for ac_exec_ext in '' $ac_executable_extensions; do
6788   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6789     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6791     break 2
6792   fi
6793 done
6794   done
6795 IFS=$as_save_IFS
6796
6797 fi
6798 fi
6799 OTOOL=$ac_cv_prog_OTOOL
6800 if test -n "$OTOOL"; then
6801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6802 $as_echo "$OTOOL" >&6; }
6803 else
6804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6805 $as_echo "no" >&6; }
6806 fi
6807
6808
6809 fi
6810 if test -z "$ac_cv_prog_OTOOL"; then
6811   ac_ct_OTOOL=$OTOOL
6812   # Extract the first word of "otool", so it can be a program name with args.
6813 set dummy otool; ac_word=$2
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6815 $as_echo_n "checking for $ac_word... " >&6; }
6816 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6817   $as_echo_n "(cached) " >&6
6818 else
6819   if test -n "$ac_ct_OTOOL"; then
6820   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6821 else
6822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 for as_dir in $PATH
6824 do
6825   IFS=$as_save_IFS
6826   test -z "$as_dir" && as_dir=.
6827     for ac_exec_ext in '' $ac_executable_extensions; do
6828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6829     ac_cv_prog_ac_ct_OTOOL="otool"
6830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6831     break 2
6832   fi
6833 done
6834   done
6835 IFS=$as_save_IFS
6836
6837 fi
6838 fi
6839 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6840 if test -n "$ac_ct_OTOOL"; then
6841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6842 $as_echo "$ac_ct_OTOOL" >&6; }
6843 else
6844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6845 $as_echo "no" >&6; }
6846 fi
6847
6848   if test "x$ac_ct_OTOOL" = x; then
6849     OTOOL=":"
6850   else
6851     case $cross_compiling:$ac_tool_warned in
6852 yes:)
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6855 ac_tool_warned=yes ;;
6856 esac
6857     OTOOL=$ac_ct_OTOOL
6858   fi
6859 else
6860   OTOOL="$ac_cv_prog_OTOOL"
6861 fi
6862
6863     if test -n "$ac_tool_prefix"; then
6864   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6865 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6867 $as_echo_n "checking for $ac_word... " >&6; }
6868 if ${ac_cv_prog_OTOOL64+:} false; then :
6869   $as_echo_n "(cached) " >&6
6870 else
6871   if test -n "$OTOOL64"; then
6872   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6873 else
6874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875 for as_dir in $PATH
6876 do
6877   IFS=$as_save_IFS
6878   test -z "$as_dir" && as_dir=.
6879     for ac_exec_ext in '' $ac_executable_extensions; do
6880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6881     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6883     break 2
6884   fi
6885 done
6886   done
6887 IFS=$as_save_IFS
6888
6889 fi
6890 fi
6891 OTOOL64=$ac_cv_prog_OTOOL64
6892 if test -n "$OTOOL64"; then
6893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6894 $as_echo "$OTOOL64" >&6; }
6895 else
6896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6897 $as_echo "no" >&6; }
6898 fi
6899
6900
6901 fi
6902 if test -z "$ac_cv_prog_OTOOL64"; then
6903   ac_ct_OTOOL64=$OTOOL64
6904   # Extract the first word of "otool64", so it can be a program name with args.
6905 set dummy otool64; ac_word=$2
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6907 $as_echo_n "checking for $ac_word... " >&6; }
6908 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6909   $as_echo_n "(cached) " >&6
6910 else
6911   if test -n "$ac_ct_OTOOL64"; then
6912   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6913 else
6914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 for as_dir in $PATH
6916 do
6917   IFS=$as_save_IFS
6918   test -z "$as_dir" && as_dir=.
6919     for ac_exec_ext in '' $ac_executable_extensions; do
6920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6921     ac_cv_prog_ac_ct_OTOOL64="otool64"
6922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6923     break 2
6924   fi
6925 done
6926   done
6927 IFS=$as_save_IFS
6928
6929 fi
6930 fi
6931 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6932 if test -n "$ac_ct_OTOOL64"; then
6933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6934 $as_echo "$ac_ct_OTOOL64" >&6; }
6935 else
6936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6937 $as_echo "no" >&6; }
6938 fi
6939
6940   if test "x$ac_ct_OTOOL64" = x; then
6941     OTOOL64=":"
6942   else
6943     case $cross_compiling:$ac_tool_warned in
6944 yes:)
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6947 ac_tool_warned=yes ;;
6948 esac
6949     OTOOL64=$ac_ct_OTOOL64
6950   fi
6951 else
6952   OTOOL64="$ac_cv_prog_OTOOL64"
6953 fi
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6982 $as_echo_n "checking for -single_module linker flag... " >&6; }
6983 if ${lt_cv_apple_cc_single_mod+:} false; then :
6984   $as_echo_n "(cached) " >&6
6985 else
6986   lt_cv_apple_cc_single_mod=no
6987       if test -z "${LT_MULTI_MODULE}"; then
6988         # By default we will add the -single_module flag. You can override
6989         # by either setting the environment variable LT_MULTI_MODULE
6990         # non-empty at configure time, or by adding -multi_module to the
6991         # link flags.
6992         rm -rf libconftest.dylib*
6993         echo "int foo(void){return 1;}" > conftest.c
6994         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6995 -dynamiclib -Wl,-single_module conftest.c" >&5
6996         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6997           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6998         _lt_result=$?
6999         # If there is a non-empty error log, and "single_module"
7000         # appears in it, assume the flag caused a linker warning
7001         if test -s conftest.err && $GREP single_module conftest.err; then
7002           cat conftest.err >&5
7003         # Otherwise, if the output was created with a 0 exit code from
7004         # the compiler, it worked.
7005         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7006           lt_cv_apple_cc_single_mod=yes
7007         else
7008           cat conftest.err >&5
7009         fi
7010         rm -rf libconftest.dylib*
7011         rm -f conftest.*
7012       fi
7013 fi
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7015 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7016
7017     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7018 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7019 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7020   $as_echo_n "(cached) " >&6
7021 else
7022   lt_cv_ld_exported_symbols_list=no
7023       save_LDFLAGS=$LDFLAGS
7024       echo "_main" > conftest.sym
7025       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7026       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7027 /* end confdefs.h.  */
7028
7029 int
7030 main ()
7031 {
7032
7033   ;
7034   return 0;
7035 }
7036 _ACEOF
7037 if ac_fn_c_try_link "$LINENO"; then :
7038   lt_cv_ld_exported_symbols_list=yes
7039 else
7040   lt_cv_ld_exported_symbols_list=no
7041 fi
7042 rm -f core conftest.err conftest.$ac_objext \
7043     conftest$ac_exeext conftest.$ac_ext
7044         LDFLAGS="$save_LDFLAGS"
7045
7046 fi
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7048 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7049
7050     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7051 $as_echo_n "checking for -force_load linker flag... " >&6; }
7052 if ${lt_cv_ld_force_load+:} false; then :
7053   $as_echo_n "(cached) " >&6
7054 else
7055   lt_cv_ld_force_load=no
7056       cat > conftest.c << _LT_EOF
7057 int forced_loaded() { return 2;}
7058 _LT_EOF
7059       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7060       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7061       echo "$AR cru libconftest.a conftest.o" >&5
7062       $AR cru libconftest.a conftest.o 2>&5
7063       echo "$RANLIB libconftest.a" >&5
7064       $RANLIB libconftest.a 2>&5
7065       cat > conftest.c << _LT_EOF
7066 int main() { return 0;}
7067 _LT_EOF
7068       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7069       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7070       _lt_result=$?
7071       if test -s conftest.err && $GREP force_load conftest.err; then
7072         cat conftest.err >&5
7073       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7074         lt_cv_ld_force_load=yes
7075       else
7076         cat conftest.err >&5
7077       fi
7078         rm -f conftest.err libconftest.a conftest conftest.c
7079         rm -rf conftest.dSYM
7080
7081 fi
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7083 $as_echo "$lt_cv_ld_force_load" >&6; }
7084     case $host_os in
7085     rhapsody* | darwin1.[012])
7086       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7087     darwin1.*)
7088       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7089     darwin*) # darwin 5.x on
7090       # if running on 10.5 or later, the deployment target defaults
7091       # to the OS version, if on x86, and 10.4, the deployment
7092       # target defaults to 10.4. Don't you love it?
7093       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7094         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7095           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7096         10.[012]*)
7097           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7098         10.*)
7099           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7100       esac
7101     ;;
7102   esac
7103     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7104       _lt_dar_single_mod='$single_module'
7105     fi
7106     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7107       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7108     else
7109       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7110     fi
7111     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7112       _lt_dsymutil='~$DSYMUTIL $lib || :'
7113     else
7114       _lt_dsymutil=
7115     fi
7116     ;;
7117   esac
7118
7119 ac_ext=c
7120 ac_cpp='$CPP $CPPFLAGS'
7121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7125 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7126 # On Suns, sometimes $CPP names a directory.
7127 if test -n "$CPP" && test -d "$CPP"; then
7128   CPP=
7129 fi
7130 if test -z "$CPP"; then
7131   if ${ac_cv_prog_CPP+:} false; then :
7132   $as_echo_n "(cached) " >&6
7133 else
7134       # Double quotes because CPP needs to be expanded
7135     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7136     do
7137       ac_preproc_ok=false
7138 for ac_c_preproc_warn_flag in '' yes
7139 do
7140   # Use a header file that comes with gcc, so configuring glibc
7141   # with a fresh cross-compiler works.
7142   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7143   # <limits.h> exists even on freestanding compilers.
7144   # On the NeXT, cc -E runs the code through the compiler's parser,
7145   # not just through cpp. "Syntax error" is here to catch this case.
7146   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7147 /* end confdefs.h.  */
7148 #ifdef __STDC__
7149 # include <limits.h>
7150 #else
7151 # include <assert.h>
7152 #endif
7153                      Syntax error
7154 _ACEOF
7155 if ac_fn_c_try_cpp "$LINENO"; then :
7156
7157 else
7158   # Broken: fails on valid input.
7159 continue
7160 fi
7161 rm -f conftest.err conftest.i conftest.$ac_ext
7162
7163   # OK, works on sane cases.  Now check whether nonexistent headers
7164   # can be detected and how.
7165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7166 /* end confdefs.h.  */
7167 #include <ac_nonexistent.h>
7168 _ACEOF
7169 if ac_fn_c_try_cpp "$LINENO"; then :
7170   # Broken: success on invalid input.
7171 continue
7172 else
7173   # Passes both tests.
7174 ac_preproc_ok=:
7175 break
7176 fi
7177 rm -f conftest.err conftest.i conftest.$ac_ext
7178
7179 done
7180 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7181 rm -f conftest.i conftest.err conftest.$ac_ext
7182 if $ac_preproc_ok; then :
7183   break
7184 fi
7185
7186     done
7187     ac_cv_prog_CPP=$CPP
7188
7189 fi
7190   CPP=$ac_cv_prog_CPP
7191 else
7192   ac_cv_prog_CPP=$CPP
7193 fi
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7195 $as_echo "$CPP" >&6; }
7196 ac_preproc_ok=false
7197 for ac_c_preproc_warn_flag in '' yes
7198 do
7199   # Use a header file that comes with gcc, so configuring glibc
7200   # with a fresh cross-compiler works.
7201   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7202   # <limits.h> exists even on freestanding compilers.
7203   # On the NeXT, cc -E runs the code through the compiler's parser,
7204   # not just through cpp. "Syntax error" is here to catch this case.
7205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7206 /* end confdefs.h.  */
7207 #ifdef __STDC__
7208 # include <limits.h>
7209 #else
7210 # include <assert.h>
7211 #endif
7212                      Syntax error
7213 _ACEOF
7214 if ac_fn_c_try_cpp "$LINENO"; then :
7215
7216 else
7217   # Broken: fails on valid input.
7218 continue
7219 fi
7220 rm -f conftest.err conftest.i conftest.$ac_ext
7221
7222   # OK, works on sane cases.  Now check whether nonexistent headers
7223   # can be detected and how.
7224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7225 /* end confdefs.h.  */
7226 #include <ac_nonexistent.h>
7227 _ACEOF
7228 if ac_fn_c_try_cpp "$LINENO"; then :
7229   # Broken: success on invalid input.
7230 continue
7231 else
7232   # Passes both tests.
7233 ac_preproc_ok=:
7234 break
7235 fi
7236 rm -f conftest.err conftest.i conftest.$ac_ext
7237
7238 done
7239 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7240 rm -f conftest.i conftest.err conftest.$ac_ext
7241 if $ac_preproc_ok; then :
7242
7243 else
7244   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7246 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7247 See \`config.log' for more details" "$LINENO" 5; }
7248 fi
7249
7250 ac_ext=c
7251 ac_cpp='$CPP $CPPFLAGS'
7252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7255
7256
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7258 $as_echo_n "checking for ANSI C header files... " >&6; }
7259 if ${ac_cv_header_stdc+:} false; then :
7260   $as_echo_n "(cached) " >&6
7261 else
7262   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7263 /* end confdefs.h.  */
7264 #include <stdlib.h>
7265 #include <stdarg.h>
7266 #include <string.h>
7267 #include <float.h>
7268
7269 int
7270 main ()
7271 {
7272
7273   ;
7274   return 0;
7275 }
7276 _ACEOF
7277 if ac_fn_c_try_compile "$LINENO"; then :
7278   ac_cv_header_stdc=yes
7279 else
7280   ac_cv_header_stdc=no
7281 fi
7282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7283
7284 if test $ac_cv_header_stdc = yes; then
7285   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287 /* end confdefs.h.  */
7288 #include <string.h>
7289
7290 _ACEOF
7291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7292   $EGREP "memchr" >/dev/null 2>&1; then :
7293
7294 else
7295   ac_cv_header_stdc=no
7296 fi
7297 rm -f conftest*
7298
7299 fi
7300
7301 if test $ac_cv_header_stdc = yes; then
7302   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7303   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7304 /* end confdefs.h.  */
7305 #include <stdlib.h>
7306
7307 _ACEOF
7308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7309   $EGREP "free" >/dev/null 2>&1; then :
7310
7311 else
7312   ac_cv_header_stdc=no
7313 fi
7314 rm -f conftest*
7315
7316 fi
7317
7318 if test $ac_cv_header_stdc = yes; then
7319   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7320   if test "$cross_compiling" = yes; then :
7321   :
7322 else
7323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7324 /* end confdefs.h.  */
7325 #include <ctype.h>
7326 #include <stdlib.h>
7327 #if ((' ' & 0x0FF) == 0x020)
7328 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7329 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7330 #else
7331 # define ISLOWER(c) \
7332                    (('a' <= (c) && (c) <= 'i') \
7333                      || ('j' <= (c) && (c) <= 'r') \
7334                      || ('s' <= (c) && (c) <= 'z'))
7335 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7336 #endif
7337
7338 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7339 int
7340 main ()
7341 {
7342   int i;
7343   for (i = 0; i < 256; i++)
7344     if (XOR (islower (i), ISLOWER (i))
7345         || toupper (i) != TOUPPER (i))
7346       return 2;
7347   return 0;
7348 }
7349 _ACEOF
7350 if ac_fn_c_try_run "$LINENO"; then :
7351
7352 else
7353   ac_cv_header_stdc=no
7354 fi
7355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7356   conftest.$ac_objext conftest.beam conftest.$ac_ext
7357 fi
7358
7359 fi
7360 fi
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7362 $as_echo "$ac_cv_header_stdc" >&6; }
7363 if test $ac_cv_header_stdc = yes; then
7364
7365 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7366
7367 fi
7368
7369 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7370 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7371                   inttypes.h stdint.h unistd.h
7372 do :
7373   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7374 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7375 "
7376 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7377   cat >>confdefs.h <<_ACEOF
7378 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7379 _ACEOF
7380
7381 fi
7382
7383 done
7384
7385
7386 for ac_header in dlfcn.h
7387 do :
7388   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7389 "
7390 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7391   cat >>confdefs.h <<_ACEOF
7392 #define HAVE_DLFCN_H 1
7393 _ACEOF
7394
7395 fi
7396
7397 done
7398
7399
7400
7401
7402
7403 # Set options
7404
7405
7406
7407         enable_dlopen=no
7408
7409
7410   enable_win32_dll=no
7411
7412
7413             # Check whether --enable-shared was given.
7414 if test "${enable_shared+set}" = set; then :
7415   enableval=$enable_shared; p=${PACKAGE-default}
7416     case $enableval in
7417     yes) enable_shared=yes ;;
7418     no) enable_shared=no ;;
7419     *)
7420       enable_shared=no
7421       # Look at the argument we got.  We use all the common list separators.
7422       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7423       for pkg in $enableval; do
7424         IFS="$lt_save_ifs"
7425         if test "X$pkg" = "X$p"; then
7426           enable_shared=yes
7427         fi
7428       done
7429       IFS="$lt_save_ifs"
7430       ;;
7431     esac
7432 else
7433   enable_shared=yes
7434 fi
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444   # Check whether --enable-static was given.
7445 if test "${enable_static+set}" = set; then :
7446   enableval=$enable_static; p=${PACKAGE-default}
7447     case $enableval in
7448     yes) enable_static=yes ;;
7449     no) enable_static=no ;;
7450     *)
7451      enable_static=no
7452       # Look at the argument we got.  We use all the common list separators.
7453       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7454       for pkg in $enableval; do
7455         IFS="$lt_save_ifs"
7456         if test "X$pkg" = "X$p"; then
7457           enable_static=yes
7458         fi
7459       done
7460       IFS="$lt_save_ifs"
7461       ;;
7462     esac
7463 else
7464   enable_static=yes
7465 fi
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476 # Check whether --with-pic was given.
7477 if test "${with_pic+set}" = set; then :
7478   withval=$with_pic; lt_p=${PACKAGE-default}
7479     case $withval in
7480     yes|no) pic_mode=$withval ;;
7481     *)
7482       pic_mode=default
7483       # Look at the argument we got.  We use all the common list separators.
7484       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7485       for lt_pkg in $withval; do
7486         IFS="$lt_save_ifs"
7487         if test "X$lt_pkg" = "X$lt_p"; then
7488           pic_mode=yes
7489         fi
7490       done
7491       IFS="$lt_save_ifs"
7492       ;;
7493     esac
7494 else
7495   pic_mode=default
7496 fi
7497
7498
7499 test -z "$pic_mode" && pic_mode=default
7500
7501
7502
7503
7504
7505
7506
7507   # Check whether --enable-fast-install was given.
7508 if test "${enable_fast_install+set}" = set; then :
7509   enableval=$enable_fast_install; p=${PACKAGE-default}
7510     case $enableval in
7511     yes) enable_fast_install=yes ;;
7512     no) enable_fast_install=no ;;
7513     *)
7514       enable_fast_install=no
7515       # Look at the argument we got.  We use all the common list separators.
7516       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7517       for pkg in $enableval; do
7518         IFS="$lt_save_ifs"
7519         if test "X$pkg" = "X$p"; then
7520           enable_fast_install=yes
7521         fi
7522       done
7523       IFS="$lt_save_ifs"
7524       ;;
7525     esac
7526 else
7527   enable_fast_install=yes
7528 fi
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540 # This can be used to rebuild libtool when needed
7541 LIBTOOL_DEPS="$ltmain"
7542
7543 # Always use our own libtool.
7544 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575 test -z "$LN_S" && LN_S="ln -s"
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590 if test -n "${ZSH_VERSION+set}" ; then
7591    setopt NO_GLOB_SUBST
7592 fi
7593
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7595 $as_echo_n "checking for objdir... " >&6; }
7596 if ${lt_cv_objdir+:} false; then :
7597   $as_echo_n "(cached) " >&6
7598 else
7599   rm -f .libs 2>/dev/null
7600 mkdir .libs 2>/dev/null
7601 if test -d .libs; then
7602   lt_cv_objdir=.libs
7603 else
7604   # MS-DOS does not allow filenames that begin with a dot.
7605   lt_cv_objdir=_libs
7606 fi
7607 rmdir .libs 2>/dev/null
7608 fi
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7610 $as_echo "$lt_cv_objdir" >&6; }
7611 objdir=$lt_cv_objdir
7612
7613
7614
7615
7616
7617 cat >>confdefs.h <<_ACEOF
7618 #define LT_OBJDIR "$lt_cv_objdir/"
7619 _ACEOF
7620
7621
7622
7623
7624 case $host_os in
7625 aix3*)
7626   # AIX sometimes has problems with the GCC collect2 program.  For some
7627   # reason, if we set the COLLECT_NAMES environment variable, the problems
7628   # vanish in a puff of smoke.
7629   if test "X${COLLECT_NAMES+set}" != Xset; then
7630     COLLECT_NAMES=
7631     export COLLECT_NAMES
7632   fi
7633   ;;
7634 esac
7635
7636 # Global variables:
7637 ofile=libtool
7638 can_build_shared=yes
7639
7640 # All known linkers require a `.a' archive for static linking (except MSVC,
7641 # which needs '.lib').
7642 libext=a
7643
7644 with_gnu_ld="$lt_cv_prog_gnu_ld"
7645
7646 old_CC="$CC"
7647 old_CFLAGS="$CFLAGS"
7648
7649 # Set sane defaults for various variables
7650 test -z "$CC" && CC=cc
7651 test -z "$LTCC" && LTCC=$CC
7652 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7653 test -z "$LD" && LD=ld
7654 test -z "$ac_objext" && ac_objext=o
7655
7656 for cc_temp in $compiler""; do
7657   case $cc_temp in
7658     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7659     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7660     \-*) ;;
7661     *) break;;
7662   esac
7663 done
7664 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7665
7666
7667 # Only perform the check for file, if the check method requires it
7668 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7669 case $deplibs_check_method in
7670 file_magic*)
7671   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7672     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7673 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7674 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7675   $as_echo_n "(cached) " >&6
7676 else
7677   case $MAGIC_CMD in
7678 [\\/*] |  ?:[\\/]*)
7679   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7680   ;;
7681 *)
7682   lt_save_MAGIC_CMD="$MAGIC_CMD"
7683   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7684   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7685   for ac_dir in $ac_dummy; do
7686     IFS="$lt_save_ifs"
7687     test -z "$ac_dir" && ac_dir=.
7688     if test -f $ac_dir/${ac_tool_prefix}file; then
7689       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7690       if test -n "$file_magic_test_file"; then
7691         case $deplibs_check_method in
7692         "file_magic "*)
7693           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7694           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7695           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7696             $EGREP "$file_magic_regex" > /dev/null; then
7697             :
7698           else
7699             cat <<_LT_EOF 1>&2
7700
7701 *** Warning: the command libtool uses to detect shared libraries,
7702 *** $file_magic_cmd, produces output that libtool cannot recognize.
7703 *** The result is that libtool may fail to recognize shared libraries
7704 *** as such.  This will affect the creation of libtool libraries that
7705 *** depend on shared libraries, but programs linked with such libtool
7706 *** libraries will work regardless of this problem.  Nevertheless, you
7707 *** may want to report the problem to your system manager and/or to
7708 *** bug-libtool@gnu.org
7709
7710 _LT_EOF
7711           fi ;;
7712         esac
7713       fi
7714       break
7715     fi
7716   done
7717   IFS="$lt_save_ifs"
7718   MAGIC_CMD="$lt_save_MAGIC_CMD"
7719   ;;
7720 esac
7721 fi
7722
7723 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7724 if test -n "$MAGIC_CMD"; then
7725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7726 $as_echo "$MAGIC_CMD" >&6; }
7727 else
7728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729 $as_echo "no" >&6; }
7730 fi
7731
7732
7733
7734
7735
7736 if test -z "$lt_cv_path_MAGIC_CMD"; then
7737   if test -n "$ac_tool_prefix"; then
7738     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7739 $as_echo_n "checking for file... " >&6; }
7740 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7741   $as_echo_n "(cached) " >&6
7742 else
7743   case $MAGIC_CMD in
7744 [\\/*] |  ?:[\\/]*)
7745   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7746   ;;
7747 *)
7748   lt_save_MAGIC_CMD="$MAGIC_CMD"
7749   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7750   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7751   for ac_dir in $ac_dummy; do
7752     IFS="$lt_save_ifs"
7753     test -z "$ac_dir" && ac_dir=.
7754     if test -f $ac_dir/file; then
7755       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7756       if test -n "$file_magic_test_file"; then
7757         case $deplibs_check_method in
7758         "file_magic "*)
7759           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7760           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7761           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7762             $EGREP "$file_magic_regex" > /dev/null; then
7763             :
7764           else
7765             cat <<_LT_EOF 1>&2
7766
7767 *** Warning: the command libtool uses to detect shared libraries,
7768 *** $file_magic_cmd, produces output that libtool cannot recognize.
7769 *** The result is that libtool may fail to recognize shared libraries
7770 *** as such.  This will affect the creation of libtool libraries that
7771 *** depend on shared libraries, but programs linked with such libtool
7772 *** libraries will work regardless of this problem.  Nevertheless, you
7773 *** may want to report the problem to your system manager and/or to
7774 *** bug-libtool@gnu.org
7775
7776 _LT_EOF
7777           fi ;;
7778         esac
7779       fi
7780       break
7781     fi
7782   done
7783   IFS="$lt_save_ifs"
7784   MAGIC_CMD="$lt_save_MAGIC_CMD"
7785   ;;
7786 esac
7787 fi
7788
7789 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7790 if test -n "$MAGIC_CMD"; then
7791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7792 $as_echo "$MAGIC_CMD" >&6; }
7793 else
7794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7795 $as_echo "no" >&6; }
7796 fi
7797
7798
7799   else
7800     MAGIC_CMD=:
7801   fi
7802 fi
7803
7804   fi
7805   ;;
7806 esac
7807
7808 # Use C for the default configuration in the libtool script
7809
7810 lt_save_CC="$CC"
7811 ac_ext=c
7812 ac_cpp='$CPP $CPPFLAGS'
7813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7816
7817
7818 # Source file extension for C test sources.
7819 ac_ext=c
7820
7821 # Object file extension for compiled C test sources.
7822 objext=o
7823 objext=$objext
7824
7825 # Code to be used in simple compile tests
7826 lt_simple_compile_test_code="int some_variable = 0;"
7827
7828 # Code to be used in simple link tests
7829 lt_simple_link_test_code='int main(){return(0);}'
7830
7831
7832
7833
7834
7835
7836
7837 # If no C compiler was specified, use CC.
7838 LTCC=${LTCC-"$CC"}
7839
7840 # If no C compiler flags were specified, use CFLAGS.
7841 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7842
7843 # Allow CC to be a program name with arguments.
7844 compiler=$CC
7845
7846 # Save the default compiler, since it gets overwritten when the other
7847 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7848 compiler_DEFAULT=$CC
7849
7850 # save warnings/boilerplate of simple test code
7851 ac_outfile=conftest.$ac_objext
7852 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7853 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7854 _lt_compiler_boilerplate=`cat conftest.err`
7855 $RM conftest*
7856
7857 ac_outfile=conftest.$ac_objext
7858 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7859 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7860 _lt_linker_boilerplate=`cat conftest.err`
7861 $RM -r conftest*
7862
7863
7864 if test -n "$compiler"; then
7865
7866 lt_prog_compiler_no_builtin_flag=
7867
7868 if test "$GCC" = yes; then
7869   case $cc_basename in
7870   nvcc*)
7871     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7872   *)
7873     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7874   esac
7875
7876   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7877 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7878 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7879   $as_echo_n "(cached) " >&6
7880 else
7881   lt_cv_prog_compiler_rtti_exceptions=no
7882    ac_outfile=conftest.$ac_objext
7883    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7884    lt_compiler_flag="-fno-rtti -fno-exceptions"
7885    # Insert the option either (1) after the last *FLAGS variable, or
7886    # (2) before a word containing "conftest.", or (3) at the end.
7887    # Note that $ac_compile itself does not contain backslashes and begins
7888    # with a dollar sign (not a hyphen), so the echo should work correctly.
7889    # The option is referenced via a variable to avoid confusing sed.
7890    lt_compile=`echo "$ac_compile" | $SED \
7891    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7892    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7893    -e 's:$: $lt_compiler_flag:'`
7894    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7895    (eval "$lt_compile" 2>conftest.err)
7896    ac_status=$?
7897    cat conftest.err >&5
7898    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899    if (exit $ac_status) && test -s "$ac_outfile"; then
7900      # The compiler can only warn and ignore the option if not recognized
7901      # So say no if there are warnings other than the usual output.
7902      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7903      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7904      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7905        lt_cv_prog_compiler_rtti_exceptions=yes
7906      fi
7907    fi
7908    $RM conftest*
7909
7910 fi
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7912 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7913
7914 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7915     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7916 else
7917     :
7918 fi
7919
7920 fi
7921
7922
7923
7924
7925
7926
7927   lt_prog_compiler_wl=
7928 lt_prog_compiler_pic=
7929 lt_prog_compiler_static=
7930
7931
7932   if test "$GCC" = yes; then
7933     lt_prog_compiler_wl='-Wl,'
7934     lt_prog_compiler_static='-static'
7935
7936     case $host_os in
7937       aix*)
7938       # All AIX code is PIC.
7939       if test "$host_cpu" = ia64; then
7940         # AIX 5 now supports IA64 processor
7941         lt_prog_compiler_static='-Bstatic'
7942       fi
7943       ;;
7944
7945     amigaos*)
7946       case $host_cpu in
7947       powerpc)
7948             # see comment about AmigaOS4 .so support
7949             lt_prog_compiler_pic='-fPIC'
7950         ;;
7951       m68k)
7952             # FIXME: we need at least 68020 code to build shared libraries, but
7953             # adding the `-m68020' flag to GCC prevents building anything better,
7954             # like `-m68040'.
7955             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7956         ;;
7957       esac
7958       ;;
7959
7960     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7961       # PIC is the default for these OSes.
7962       ;;
7963
7964     mingw* | cygwin* | pw32* | os2* | cegcc*)
7965       # This hack is so that the source file can tell whether it is being
7966       # built for inclusion in a dll (and should export symbols for example).
7967       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7968       # (--disable-auto-import) libraries
7969       lt_prog_compiler_pic='-DDLL_EXPORT'
7970       ;;
7971
7972     darwin* | rhapsody*)
7973       # PIC is the default on this platform
7974       # Common symbols not allowed in MH_DYLIB files
7975       lt_prog_compiler_pic='-fno-common'
7976       ;;
7977
7978     haiku*)
7979       # PIC is the default for Haiku.
7980       # The "-static" flag exists, but is broken.
7981       lt_prog_compiler_static=
7982       ;;
7983
7984     hpux*)
7985       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7986       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7987       # sets the default TLS model and affects inlining.
7988       case $host_cpu in
7989       hppa*64*)
7990         # +Z the default
7991         ;;
7992       *)
7993         lt_prog_compiler_pic='-fPIC'
7994         ;;
7995       esac
7996       ;;
7997
7998     interix[3-9]*)
7999       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8000       # Instead, we relocate shared libraries at runtime.
8001       ;;
8002
8003     msdosdjgpp*)
8004       # Just because we use GCC doesn't mean we suddenly get shared libraries
8005       # on systems that don't support them.
8006       lt_prog_compiler_can_build_shared=no
8007       enable_shared=no
8008       ;;
8009
8010     *nto* | *qnx*)
8011       # QNX uses GNU C++, but need to define -shared option too, otherwise
8012       # it will coredump.
8013       lt_prog_compiler_pic='-fPIC -shared'
8014       ;;
8015
8016     sysv4*MP*)
8017       if test -d /usr/nec; then
8018         lt_prog_compiler_pic=-Kconform_pic
8019       fi
8020       ;;
8021
8022     *)
8023       lt_prog_compiler_pic='-fPIC'
8024       ;;
8025     esac
8026
8027     case $cc_basename in
8028     nvcc*) # Cuda Compiler Driver 2.2
8029       lt_prog_compiler_wl='-Xlinker '
8030       if test -n "$lt_prog_compiler_pic"; then
8031         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8032       fi
8033       ;;
8034     esac
8035   else
8036     # PORTME Check for flag to pass linker flags through the system compiler.
8037     case $host_os in
8038     aix*)
8039       lt_prog_compiler_wl='-Wl,'
8040       if test "$host_cpu" = ia64; then
8041         # AIX 5 now supports IA64 processor
8042         lt_prog_compiler_static='-Bstatic'
8043       else
8044         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8045       fi
8046       ;;
8047
8048     mingw* | cygwin* | pw32* | os2* | cegcc*)
8049       # This hack is so that the source file can tell whether it is being
8050       # built for inclusion in a dll (and should export symbols for example).
8051       lt_prog_compiler_pic='-DDLL_EXPORT'
8052       ;;
8053
8054     hpux9* | hpux10* | hpux11*)
8055       lt_prog_compiler_wl='-Wl,'
8056       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8057       # not for PA HP-UX.
8058       case $host_cpu in
8059       hppa*64*|ia64*)
8060         # +Z the default
8061         ;;
8062       *)
8063         lt_prog_compiler_pic='+Z'
8064         ;;
8065       esac
8066       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8067       lt_prog_compiler_static='${wl}-a ${wl}archive'
8068       ;;
8069
8070     irix5* | irix6* | nonstopux*)
8071       lt_prog_compiler_wl='-Wl,'
8072       # PIC (with -KPIC) is the default.
8073       lt_prog_compiler_static='-non_shared'
8074       ;;
8075
8076     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8077       case $cc_basename in
8078       # old Intel for x86_64 which still supported -KPIC.
8079       ecc*)
8080         lt_prog_compiler_wl='-Wl,'
8081         lt_prog_compiler_pic='-KPIC'
8082         lt_prog_compiler_static='-static'
8083         ;;
8084       # icc used to be incompatible with GCC.
8085       # ICC 10 doesn't accept -KPIC any more.
8086       icc* | ifort*)
8087         lt_prog_compiler_wl='-Wl,'
8088         lt_prog_compiler_pic='-fPIC'
8089         lt_prog_compiler_static='-static'
8090         ;;
8091       # Lahey Fortran 8.1.
8092       lf95*)
8093         lt_prog_compiler_wl='-Wl,'
8094         lt_prog_compiler_pic='--shared'
8095         lt_prog_compiler_static='--static'
8096         ;;
8097       nagfor*)
8098         # NAG Fortran compiler
8099         lt_prog_compiler_wl='-Wl,-Wl,,'
8100         lt_prog_compiler_pic='-PIC'
8101         lt_prog_compiler_static='-Bstatic'
8102         ;;
8103       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8104         # Portland Group compilers (*not* the Pentium gcc compiler,
8105         # which looks to be a dead project)
8106         lt_prog_compiler_wl='-Wl,'
8107         lt_prog_compiler_pic='-fpic'
8108         lt_prog_compiler_static='-Bstatic'
8109         ;;
8110       ccc*)
8111         lt_prog_compiler_wl='-Wl,'
8112         # All Alpha code is PIC.
8113         lt_prog_compiler_static='-non_shared'
8114         ;;
8115       xl* | bgxl* | bgf* | mpixl*)
8116         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8117         lt_prog_compiler_wl='-Wl,'
8118         lt_prog_compiler_pic='-qpic'
8119         lt_prog_compiler_static='-qstaticlink'
8120         ;;
8121       *)
8122         case `$CC -V 2>&1 | sed 5q` in
8123         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8124           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8125           lt_prog_compiler_pic='-KPIC'
8126           lt_prog_compiler_static='-Bstatic'
8127           lt_prog_compiler_wl=''
8128           ;;
8129         *Sun\ F* | *Sun*Fortran*)
8130           lt_prog_compiler_pic='-KPIC'
8131           lt_prog_compiler_static='-Bstatic'
8132           lt_prog_compiler_wl='-Qoption ld '
8133           ;;
8134         *Sun\ C*)
8135           # Sun C 5.9
8136           lt_prog_compiler_pic='-KPIC'
8137           lt_prog_compiler_static='-Bstatic'
8138           lt_prog_compiler_wl='-Wl,'
8139           ;;
8140         *Intel*\ [CF]*Compiler*)
8141           lt_prog_compiler_wl='-Wl,'
8142           lt_prog_compiler_pic='-fPIC'
8143           lt_prog_compiler_static='-static'
8144           ;;
8145         *Portland\ Group*)
8146           lt_prog_compiler_wl='-Wl,'
8147           lt_prog_compiler_pic='-fpic'
8148           lt_prog_compiler_static='-Bstatic'
8149           ;;
8150         esac
8151         ;;
8152       esac
8153       ;;
8154
8155     newsos6)
8156       lt_prog_compiler_pic='-KPIC'
8157       lt_prog_compiler_static='-Bstatic'
8158       ;;
8159
8160     *nto* | *qnx*)
8161       # QNX uses GNU C++, but need to define -shared option too, otherwise
8162       # it will coredump.
8163       lt_prog_compiler_pic='-fPIC -shared'
8164       ;;
8165
8166     osf3* | osf4* | osf5*)
8167       lt_prog_compiler_wl='-Wl,'
8168       # All OSF/1 code is PIC.
8169       lt_prog_compiler_static='-non_shared'
8170       ;;
8171
8172     rdos*)
8173       lt_prog_compiler_static='-non_shared'
8174       ;;
8175
8176     solaris*)
8177       lt_prog_compiler_pic='-KPIC'
8178       lt_prog_compiler_static='-Bstatic'
8179       case $cc_basename in
8180       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8181         lt_prog_compiler_wl='-Qoption ld ';;
8182       *)
8183         lt_prog_compiler_wl='-Wl,';;
8184       esac
8185       ;;
8186
8187     sunos4*)
8188       lt_prog_compiler_wl='-Qoption ld '
8189       lt_prog_compiler_pic='-PIC'
8190       lt_prog_compiler_static='-Bstatic'
8191       ;;
8192
8193     sysv4 | sysv4.2uw2* | sysv4.3*)
8194       lt_prog_compiler_wl='-Wl,'
8195       lt_prog_compiler_pic='-KPIC'
8196       lt_prog_compiler_static='-Bstatic'
8197       ;;
8198
8199     sysv4*MP*)
8200       if test -d /usr/nec ;then
8201         lt_prog_compiler_pic='-Kconform_pic'
8202         lt_prog_compiler_static='-Bstatic'
8203       fi
8204       ;;
8205
8206     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8207       lt_prog_compiler_wl='-Wl,'
8208       lt_prog_compiler_pic='-KPIC'
8209       lt_prog_compiler_static='-Bstatic'
8210       ;;
8211
8212     unicos*)
8213       lt_prog_compiler_wl='-Wl,'
8214       lt_prog_compiler_can_build_shared=no
8215       ;;
8216
8217     uts4*)
8218       lt_prog_compiler_pic='-pic'
8219       lt_prog_compiler_static='-Bstatic'
8220       ;;
8221
8222     *)
8223       lt_prog_compiler_can_build_shared=no
8224       ;;
8225     esac
8226   fi
8227
8228 case $host_os in
8229   # For platforms which do not support PIC, -DPIC is meaningless:
8230   *djgpp*)
8231     lt_prog_compiler_pic=
8232     ;;
8233   *)
8234     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8235     ;;
8236 esac
8237
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8239 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8240 if ${lt_cv_prog_compiler_pic+:} false; then :
8241   $as_echo_n "(cached) " >&6
8242 else
8243   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8244 fi
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8246 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8247 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8248
8249 #
8250 # Check to make sure the PIC flag actually works.
8251 #
8252 if test -n "$lt_prog_compiler_pic"; then
8253   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8254 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8255 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8256   $as_echo_n "(cached) " >&6
8257 else
8258   lt_cv_prog_compiler_pic_works=no
8259    ac_outfile=conftest.$ac_objext
8260    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8261    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8262    # Insert the option either (1) after the last *FLAGS variable, or
8263    # (2) before a word containing "conftest.", or (3) at the end.
8264    # Note that $ac_compile itself does not contain backslashes and begins
8265    # with a dollar sign (not a hyphen), so the echo should work correctly.
8266    # The option is referenced via a variable to avoid confusing sed.
8267    lt_compile=`echo "$ac_compile" | $SED \
8268    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8269    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8270    -e 's:$: $lt_compiler_flag:'`
8271    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8272    (eval "$lt_compile" 2>conftest.err)
8273    ac_status=$?
8274    cat conftest.err >&5
8275    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276    if (exit $ac_status) && test -s "$ac_outfile"; then
8277      # The compiler can only warn and ignore the option if not recognized
8278      # So say no if there are warnings other than the usual output.
8279      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8280      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8281      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8282        lt_cv_prog_compiler_pic_works=yes
8283      fi
8284    fi
8285    $RM conftest*
8286
8287 fi
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8289 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8290
8291 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8292     case $lt_prog_compiler_pic in
8293      "" | " "*) ;;
8294      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8295      esac
8296 else
8297     lt_prog_compiler_pic=
8298      lt_prog_compiler_can_build_shared=no
8299 fi
8300
8301 fi
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313 #
8314 # Check to make sure the static flag actually works.
8315 #
8316 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8318 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8319 if ${lt_cv_prog_compiler_static_works+:} false; then :
8320   $as_echo_n "(cached) " >&6
8321 else
8322   lt_cv_prog_compiler_static_works=no
8323    save_LDFLAGS="$LDFLAGS"
8324    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8325    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8326    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8327      # The linker can only warn and ignore the option if not recognized
8328      # So say no if there are warnings
8329      if test -s conftest.err; then
8330        # Append any errors to the config.log.
8331        cat conftest.err 1>&5
8332        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8333        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8334        if diff conftest.exp conftest.er2 >/dev/null; then
8335          lt_cv_prog_compiler_static_works=yes
8336        fi
8337      else
8338        lt_cv_prog_compiler_static_works=yes
8339      fi
8340    fi
8341    $RM -r conftest*
8342    LDFLAGS="$save_LDFLAGS"
8343
8344 fi
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8346 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8347
8348 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8349     :
8350 else
8351     lt_prog_compiler_static=
8352 fi
8353
8354
8355
8356
8357
8358
8359
8360   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8361 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8362 if ${lt_cv_prog_compiler_c_o+:} false; then :
8363   $as_echo_n "(cached) " >&6
8364 else
8365   lt_cv_prog_compiler_c_o=no
8366    $RM -r conftest 2>/dev/null
8367    mkdir conftest
8368    cd conftest
8369    mkdir out
8370    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8371
8372    lt_compiler_flag="-o out/conftest2.$ac_objext"
8373    # Insert the option either (1) after the last *FLAGS variable, or
8374    # (2) before a word containing "conftest.", or (3) at the end.
8375    # Note that $ac_compile itself does not contain backslashes and begins
8376    # with a dollar sign (not a hyphen), so the echo should work correctly.
8377    lt_compile=`echo "$ac_compile" | $SED \
8378    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8379    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8380    -e 's:$: $lt_compiler_flag:'`
8381    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8382    (eval "$lt_compile" 2>out/conftest.err)
8383    ac_status=$?
8384    cat out/conftest.err >&5
8385    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8387    then
8388      # The compiler can only warn and ignore the option if not recognized
8389      # So say no if there are warnings
8390      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8391      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8392      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8393        lt_cv_prog_compiler_c_o=yes
8394      fi
8395    fi
8396    chmod u+w . 2>&5
8397    $RM conftest*
8398    # SGI C++ compiler will create directory out/ii_files/ for
8399    # template instantiation
8400    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8401    $RM out/* && rmdir out
8402    cd ..
8403    $RM -r conftest
8404    $RM conftest*
8405
8406 fi
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8408 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8409
8410
8411
8412
8413
8414
8415   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8416 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8417 if ${lt_cv_prog_compiler_c_o+:} false; then :
8418   $as_echo_n "(cached) " >&6
8419 else
8420   lt_cv_prog_compiler_c_o=no
8421    $RM -r conftest 2>/dev/null
8422    mkdir conftest
8423    cd conftest
8424    mkdir out
8425    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8426
8427    lt_compiler_flag="-o out/conftest2.$ac_objext"
8428    # Insert the option either (1) after the last *FLAGS variable, or
8429    # (2) before a word containing "conftest.", or (3) at the end.
8430    # Note that $ac_compile itself does not contain backslashes and begins
8431    # with a dollar sign (not a hyphen), so the echo should work correctly.
8432    lt_compile=`echo "$ac_compile" | $SED \
8433    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8434    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8435    -e 's:$: $lt_compiler_flag:'`
8436    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8437    (eval "$lt_compile" 2>out/conftest.err)
8438    ac_status=$?
8439    cat out/conftest.err >&5
8440    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8442    then
8443      # The compiler can only warn and ignore the option if not recognized
8444      # So say no if there are warnings
8445      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8446      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8447      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8448        lt_cv_prog_compiler_c_o=yes
8449      fi
8450    fi
8451    chmod u+w . 2>&5
8452    $RM conftest*
8453    # SGI C++ compiler will create directory out/ii_files/ for
8454    # template instantiation
8455    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8456    $RM out/* && rmdir out
8457    cd ..
8458    $RM -r conftest
8459    $RM conftest*
8460
8461 fi
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8463 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8464
8465
8466
8467
8468 hard_links="nottested"
8469 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8470   # do not overwrite the value of need_locks provided by the user
8471   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8472 $as_echo_n "checking if we can lock with hard links... " >&6; }
8473   hard_links=yes
8474   $RM conftest*
8475   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8476   touch conftest.a
8477   ln conftest.a conftest.b 2>&5 || hard_links=no
8478   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8480 $as_echo "$hard_links" >&6; }
8481   if test "$hard_links" = no; then
8482     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8483 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8484     need_locks=warn
8485   fi
8486 else
8487   need_locks=no
8488 fi
8489
8490
8491
8492
8493
8494
8495   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8496 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8497
8498   runpath_var=
8499   allow_undefined_flag=
8500   always_export_symbols=no
8501   archive_cmds=
8502   archive_expsym_cmds=
8503   compiler_needs_object=no
8504   enable_shared_with_static_runtimes=no
8505   export_dynamic_flag_spec=
8506   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8507   hardcode_automatic=no
8508   hardcode_direct=no
8509   hardcode_direct_absolute=no
8510   hardcode_libdir_flag_spec=
8511   hardcode_libdir_separator=
8512   hardcode_minus_L=no
8513   hardcode_shlibpath_var=unsupported
8514   inherit_rpath=no
8515   link_all_deplibs=unknown
8516   module_cmds=
8517   module_expsym_cmds=
8518   old_archive_from_new_cmds=
8519   old_archive_from_expsyms_cmds=
8520   thread_safe_flag_spec=
8521   whole_archive_flag_spec=
8522   # include_expsyms should be a list of space-separated symbols to be *always*
8523   # included in the symbol list
8524   include_expsyms=
8525   # exclude_expsyms can be an extended regexp of symbols to exclude
8526   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8527   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8528   # as well as any symbol that contains `d'.
8529   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8530   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8531   # platforms (ab)use it in PIC code, but their linkers get confused if
8532   # the symbol is explicitly referenced.  Since portable code cannot
8533   # rely on this symbol name, it's probably fine to never include it in
8534   # preloaded symbol tables.
8535   # Exclude shared library initialization/finalization symbols.
8536   extract_expsyms_cmds=
8537
8538   case $host_os in
8539   cygwin* | mingw* | pw32* | cegcc*)
8540     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8541     # When not using gcc, we currently assume that we are using
8542     # Microsoft Visual C++.
8543     if test "$GCC" != yes; then
8544       with_gnu_ld=no
8545     fi
8546     ;;
8547   interix*)
8548     # we just hope/assume this is gcc and not c89 (= MSVC++)
8549     with_gnu_ld=yes
8550     ;;
8551   openbsd*)
8552     with_gnu_ld=no
8553     ;;
8554   esac
8555
8556   ld_shlibs=yes
8557
8558   # On some targets, GNU ld is compatible enough with the native linker
8559   # that we're better off using the native interface for both.
8560   lt_use_gnu_ld_interface=no
8561   if test "$with_gnu_ld" = yes; then
8562     case $host_os in
8563       aix*)
8564         # The AIX port of GNU ld has always aspired to compatibility
8565         # with the native linker.  However, as the warning in the GNU ld
8566         # block says, versions before 2.19.5* couldn't really create working
8567         # shared libraries, regardless of the interface used.
8568         case `$LD -v 2>&1` in
8569           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8570           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8571           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8572           *)
8573             lt_use_gnu_ld_interface=yes
8574             ;;
8575         esac
8576         ;;
8577       *)
8578         lt_use_gnu_ld_interface=yes
8579         ;;
8580     esac
8581   fi
8582
8583   if test "$lt_use_gnu_ld_interface" = yes; then
8584     # If archive_cmds runs LD, not CC, wlarc should be empty
8585     wlarc='${wl}'
8586
8587     # Set some defaults for GNU ld with shared library support. These
8588     # are reset later if shared libraries are not supported. Putting them
8589     # here allows them to be overridden if necessary.
8590     runpath_var=LD_RUN_PATH
8591     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8592     export_dynamic_flag_spec='${wl}--export-dynamic'
8593     # ancient GNU ld didn't support --whole-archive et. al.
8594     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8595       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8596     else
8597       whole_archive_flag_spec=
8598     fi
8599     supports_anon_versioning=no
8600     case `$LD -v 2>&1` in
8601       *GNU\ gold*) supports_anon_versioning=yes ;;
8602       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8603       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8604       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8605       *\ 2.11.*) ;; # other 2.11 versions
8606       *) supports_anon_versioning=yes ;;
8607     esac
8608
8609     # See if GNU ld supports shared libraries.
8610     case $host_os in
8611     aix[3-9]*)
8612       # On AIX/PPC, the GNU linker is very broken
8613       if test "$host_cpu" != ia64; then
8614         ld_shlibs=no
8615         cat <<_LT_EOF 1>&2
8616
8617 *** Warning: the GNU linker, at least up to release 2.19, is reported
8618 *** to be unable to reliably create shared libraries on AIX.
8619 *** Therefore, libtool is disabling shared libraries support.  If you
8620 *** really care for shared libraries, you may want to install binutils
8621 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8622 *** You will then need to restart the configuration process.
8623
8624 _LT_EOF
8625       fi
8626       ;;
8627
8628     amigaos*)
8629       case $host_cpu in
8630       powerpc)
8631             # see comment about AmigaOS4 .so support
8632             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8633             archive_expsym_cmds=''
8634         ;;
8635       m68k)
8636             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)'
8637             hardcode_libdir_flag_spec='-L$libdir'
8638             hardcode_minus_L=yes
8639         ;;
8640       esac
8641       ;;
8642
8643     beos*)
8644       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8645         allow_undefined_flag=unsupported
8646         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8647         # support --undefined.  This deserves some investigation.  FIXME
8648         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8649       else
8650         ld_shlibs=no
8651       fi
8652       ;;
8653
8654     cygwin* | mingw* | pw32* | cegcc*)
8655       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8656       # as there is no search path for DLLs.
8657       hardcode_libdir_flag_spec='-L$libdir'
8658       export_dynamic_flag_spec='${wl}--export-all-symbols'
8659       allow_undefined_flag=unsupported
8660       always_export_symbols=no
8661       enable_shared_with_static_runtimes=yes
8662       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'
8663       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8664
8665       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8666         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8667         # If the export-symbols file already is a .def file (1st line
8668         # is EXPORTS), use it as is; otherwise, prepend...
8669         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8670           cp $export_symbols $output_objdir/$soname.def;
8671         else
8672           echo EXPORTS > $output_objdir/$soname.def;
8673           cat $export_symbols >> $output_objdir/$soname.def;
8674         fi~
8675         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8676       else
8677         ld_shlibs=no
8678       fi
8679       ;;
8680
8681     haiku*)
8682       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8683       link_all_deplibs=yes
8684       ;;
8685
8686     interix[3-9]*)
8687       hardcode_direct=no
8688       hardcode_shlibpath_var=no
8689       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8690       export_dynamic_flag_spec='${wl}-E'
8691       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8692       # Instead, shared libraries are loaded at an image base (0x10000000 by
8693       # default) and relocated if they conflict, which is a slow very memory
8694       # consuming and fragmenting process.  To avoid this, we pick a random,
8695       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8696       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8697       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8698       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'
8699       ;;
8700
8701     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8702       tmp_diet=no
8703       if test "$host_os" = linux-dietlibc; then
8704         case $cc_basename in
8705           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8706         esac
8707       fi
8708       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8709          && test "$tmp_diet" = no
8710       then
8711         tmp_addflag=' $pic_flag'
8712         tmp_sharedflag='-shared'
8713         case $cc_basename,$host_cpu in
8714         pgcc*)                          # Portland Group C compiler
8715           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'
8716           tmp_addflag=' $pic_flag'
8717           ;;
8718         pgf77* | pgf90* | pgf95* | pgfortran*)
8719                                         # Portland Group f77 and f90 compilers
8720           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'
8721           tmp_addflag=' $pic_flag -Mnomain' ;;
8722         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8723           tmp_addflag=' -i_dynamic' ;;
8724         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8725           tmp_addflag=' -i_dynamic -nofor_main' ;;
8726         ifc* | ifort*)                  # Intel Fortran compiler
8727           tmp_addflag=' -nofor_main' ;;
8728         lf95*)                          # Lahey Fortran 8.1
8729           whole_archive_flag_spec=
8730           tmp_sharedflag='--shared' ;;
8731         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8732           tmp_sharedflag='-qmkshrobj'
8733           tmp_addflag= ;;
8734         nvcc*)  # Cuda Compiler Driver 2.2
8735           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'
8736           compiler_needs_object=yes
8737           ;;
8738         esac
8739         case `$CC -V 2>&1 | sed 5q` in
8740         *Sun\ C*)                       # Sun C 5.9
8741           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'
8742           compiler_needs_object=yes
8743           tmp_sharedflag='-G' ;;
8744         *Sun\ F*)                       # Sun Fortran 8.3
8745           tmp_sharedflag='-G' ;;
8746         esac
8747         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8748
8749         if test "x$supports_anon_versioning" = xyes; then
8750           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8751             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8752             echo "local: *; };" >> $output_objdir/$libname.ver~
8753             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8754         fi
8755
8756         case $cc_basename in
8757         xlf* | bgf* | bgxlf* | mpixlf*)
8758           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8759           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8760           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8761           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8762           if test "x$supports_anon_versioning" = xyes; then
8763             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8764               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8765               echo "local: *; };" >> $output_objdir/$libname.ver~
8766               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8767           fi
8768           ;;
8769         esac
8770       else
8771         ld_shlibs=no
8772       fi
8773       ;;
8774
8775     netbsd*)
8776       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8777         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8778         wlarc=
8779       else
8780         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8781         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8782       fi
8783       ;;
8784
8785     solaris*)
8786       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8787         ld_shlibs=no
8788         cat <<_LT_EOF 1>&2
8789
8790 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8791 *** create shared libraries on Solaris systems.  Therefore, libtool
8792 *** is disabling shared libraries support.  We urge you to upgrade GNU
8793 *** binutils to release 2.9.1 or newer.  Another option is to modify
8794 *** your PATH or compiler configuration so that the native linker is
8795 *** used, and then restart.
8796
8797 _LT_EOF
8798       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8799         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8800         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8801       else
8802         ld_shlibs=no
8803       fi
8804       ;;
8805
8806     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8807       case `$LD -v 2>&1` in
8808         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8809         ld_shlibs=no
8810         cat <<_LT_EOF 1>&2
8811
8812 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8813 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8814 *** is disabling shared libraries support.  We urge you to upgrade GNU
8815 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8816 *** your PATH or compiler configuration so that the native linker is
8817 *** used, and then restart.
8818
8819 _LT_EOF
8820         ;;
8821         *)
8822           # For security reasons, it is highly recommended that you always
8823           # use absolute paths for naming shared libraries, and exclude the
8824           # DT_RUNPATH tag from executables and libraries.  But doing so
8825           # requires that you compile everything twice, which is a pain.
8826           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8827             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8828             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8829             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8830           else
8831             ld_shlibs=no
8832           fi
8833         ;;
8834       esac
8835       ;;
8836
8837     sunos4*)
8838       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8839       wlarc=
8840       hardcode_direct=yes
8841       hardcode_shlibpath_var=no
8842       ;;
8843
8844     *)
8845       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8846         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8847         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8848       else
8849         ld_shlibs=no
8850       fi
8851       ;;
8852     esac
8853
8854     if test "$ld_shlibs" = no; then
8855       runpath_var=
8856       hardcode_libdir_flag_spec=
8857       export_dynamic_flag_spec=
8858       whole_archive_flag_spec=
8859     fi
8860   else
8861     # PORTME fill in a description of your system's linker (not GNU ld)
8862     case $host_os in
8863     aix3*)
8864       allow_undefined_flag=unsupported
8865       always_export_symbols=yes
8866       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'
8867       # Note: this linker hardcodes the directories in LIBPATH if there
8868       # are no directories specified by -L.
8869       hardcode_minus_L=yes
8870       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8871         # Neither direct hardcoding nor static linking is supported with a
8872         # broken collect2.
8873         hardcode_direct=unsupported
8874       fi
8875       ;;
8876
8877     aix[4-9]*)
8878       if test "$host_cpu" = ia64; then
8879         # On IA64, the linker does run time linking by default, so we don't
8880         # have to do anything special.
8881         aix_use_runtimelinking=no
8882         exp_sym_flag='-Bexport'
8883         no_entry_flag=""
8884       else
8885         # If we're using GNU nm, then we don't want the "-C" option.
8886         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8887         # Also, AIX nm treats weak defined symbols like other global
8888         # defined symbols, whereas GNU nm marks them as "W".
8889         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8890           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'
8891         else
8892           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'
8893         fi
8894         aix_use_runtimelinking=no
8895
8896         # Test if we are trying to use run time linking or normal
8897         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8898         # need to do runtime linking.
8899         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8900           for ld_flag in $LDFLAGS; do
8901           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8902             aix_use_runtimelinking=yes
8903             break
8904           fi
8905           done
8906           ;;
8907         esac
8908
8909         exp_sym_flag='-bexport'
8910         no_entry_flag='-bnoentry'
8911       fi
8912
8913       # When large executables or shared objects are built, AIX ld can
8914       # have problems creating the table of contents.  If linking a library
8915       # or program results in "error TOC overflow" add -mminimal-toc to
8916       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8917       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8918
8919       archive_cmds=''
8920       hardcode_direct=yes
8921       hardcode_direct_absolute=yes
8922       hardcode_libdir_separator=':'
8923       link_all_deplibs=yes
8924       file_list_spec='${wl}-f,'
8925
8926       if test "$GCC" = yes; then
8927         case $host_os in aix4.[012]|aix4.[012].*)
8928         # We only want to do this on AIX 4.2 and lower, the check
8929         # below for broken collect2 doesn't work under 4.3+
8930           collect2name=`${CC} -print-prog-name=collect2`
8931           if test -f "$collect2name" &&
8932            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8933           then
8934           # We have reworked collect2
8935           :
8936           else
8937           # We have old collect2
8938           hardcode_direct=unsupported
8939           # It fails to find uninstalled libraries when the uninstalled
8940           # path is not listed in the libpath.  Setting hardcode_minus_L
8941           # to unsupported forces relinking
8942           hardcode_minus_L=yes
8943           hardcode_libdir_flag_spec='-L$libdir'
8944           hardcode_libdir_separator=
8945           fi
8946           ;;
8947         esac
8948         shared_flag='-shared'
8949         if test "$aix_use_runtimelinking" = yes; then
8950           shared_flag="$shared_flag "'${wl}-G'
8951         fi
8952       else
8953         # not using gcc
8954         if test "$host_cpu" = ia64; then
8955         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8956         # chokes on -Wl,-G. The following line is correct:
8957           shared_flag='-G'
8958         else
8959           if test "$aix_use_runtimelinking" = yes; then
8960             shared_flag='${wl}-G'
8961           else
8962             shared_flag='${wl}-bM:SRE'
8963           fi
8964         fi
8965       fi
8966
8967       export_dynamic_flag_spec='${wl}-bexpall'
8968       # It seems that -bexpall does not export symbols beginning with
8969       # underscore (_), so it is better to generate a list of symbols to export.
8970       always_export_symbols=yes
8971       if test "$aix_use_runtimelinking" = yes; then
8972         # Warning - without using the other runtime loading flags (-brtl),
8973         # -berok will link without error, but may produce a broken library.
8974         allow_undefined_flag='-berok'
8975         # Determine the default libpath from the value encoded in an
8976         # empty executable.
8977         if test "${lt_cv_aix_libpath+set}" = set; then
8978   aix_libpath=$lt_cv_aix_libpath
8979 else
8980   if ${lt_cv_aix_libpath_+:} false; then :
8981   $as_echo_n "(cached) " >&6
8982 else
8983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8984 /* end confdefs.h.  */
8985
8986 int
8987 main ()
8988 {
8989
8990   ;
8991   return 0;
8992 }
8993 _ACEOF
8994 if ac_fn_c_try_link "$LINENO"; then :
8995
8996   lt_aix_libpath_sed='
8997       /Import File Strings/,/^$/ {
8998           /^0/ {
8999               s/^0  *\([^ ]*\) *$/\1/
9000               p
9001           }
9002       }'
9003   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9004   # Check for a 64-bit object if we didn't find anything.
9005   if test -z "$lt_cv_aix_libpath_"; then
9006     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9007   fi
9008 fi
9009 rm -f core conftest.err conftest.$ac_objext \
9010     conftest$ac_exeext conftest.$ac_ext
9011   if test -z "$lt_cv_aix_libpath_"; then
9012     lt_cv_aix_libpath_="/usr/lib:/lib"
9013   fi
9014
9015 fi
9016
9017   aix_libpath=$lt_cv_aix_libpath_
9018 fi
9019
9020         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9021         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"
9022       else
9023         if test "$host_cpu" = ia64; then
9024           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9025           allow_undefined_flag="-z nodefs"
9026           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"
9027         else
9028          # Determine the default libpath from the value encoded in an
9029          # empty executable.
9030          if test "${lt_cv_aix_libpath+set}" = set; then
9031   aix_libpath=$lt_cv_aix_libpath
9032 else
9033   if ${lt_cv_aix_libpath_+:} false; then :
9034   $as_echo_n "(cached) " >&6
9035 else
9036   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9037 /* end confdefs.h.  */
9038
9039 int
9040 main ()
9041 {
9042
9043   ;
9044   return 0;
9045 }
9046 _ACEOF
9047 if ac_fn_c_try_link "$LINENO"; then :
9048
9049   lt_aix_libpath_sed='
9050       /Import File Strings/,/^$/ {
9051           /^0/ {
9052               s/^0  *\([^ ]*\) *$/\1/
9053               p
9054           }
9055       }'
9056   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9057   # Check for a 64-bit object if we didn't find anything.
9058   if test -z "$lt_cv_aix_libpath_"; then
9059     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9060   fi
9061 fi
9062 rm -f core conftest.err conftest.$ac_objext \
9063     conftest$ac_exeext conftest.$ac_ext
9064   if test -z "$lt_cv_aix_libpath_"; then
9065     lt_cv_aix_libpath_="/usr/lib:/lib"
9066   fi
9067
9068 fi
9069
9070   aix_libpath=$lt_cv_aix_libpath_
9071 fi
9072
9073          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9074           # Warning - without using the other run time loading flags,
9075           # -berok will link without error, but may produce a broken library.
9076           no_undefined_flag=' ${wl}-bernotok'
9077           allow_undefined_flag=' ${wl}-berok'
9078           if test "$with_gnu_ld" = yes; then
9079             # We only use this code for GNU lds that support --whole-archive.
9080             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9081           else
9082             # Exported symbols can be pulled into shared objects from archives
9083             whole_archive_flag_spec='$convenience'
9084           fi
9085           archive_cmds_need_lc=yes
9086           # This is similar to how AIX traditionally builds its shared libraries.
9087           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'
9088         fi
9089       fi
9090       ;;
9091
9092     amigaos*)
9093       case $host_cpu in
9094       powerpc)
9095             # see comment about AmigaOS4 .so support
9096             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9097             archive_expsym_cmds=''
9098         ;;
9099       m68k)
9100             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)'
9101             hardcode_libdir_flag_spec='-L$libdir'
9102             hardcode_minus_L=yes
9103         ;;
9104       esac
9105       ;;
9106
9107     bsdi[45]*)
9108       export_dynamic_flag_spec=-rdynamic
9109       ;;
9110
9111     cygwin* | mingw* | pw32* | cegcc*)
9112       # When not using gcc, we currently assume that we are using
9113       # Microsoft Visual C++.
9114       # hardcode_libdir_flag_spec is actually meaningless, as there is
9115       # no search path for DLLs.
9116       case $cc_basename in
9117       cl*)
9118         # Native MSVC
9119         hardcode_libdir_flag_spec=' '
9120         allow_undefined_flag=unsupported
9121         always_export_symbols=yes
9122         file_list_spec='@'
9123         # Tell ltmain to make .lib files, not .a files.
9124         libext=lib
9125         # Tell ltmain to make .dll files, not .so files.
9126         shrext_cmds=".dll"
9127         # FIXME: Setting linknames here is a bad hack.
9128         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9129         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9130             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9131           else
9132             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9133           fi~
9134           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9135           linknames='
9136         # The linker will not automatically build a static lib if we build a DLL.
9137         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9138         enable_shared_with_static_runtimes=yes
9139         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9140         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9141         # Don't use ranlib
9142         old_postinstall_cmds='chmod 644 $oldlib'
9143         postlink_cmds='lt_outputfile="@OUTPUT@"~
9144           lt_tool_outputfile="@TOOL_OUTPUT@"~
9145           case $lt_outputfile in
9146             *.exe|*.EXE) ;;
9147             *)
9148               lt_outputfile="$lt_outputfile.exe"
9149               lt_tool_outputfile="$lt_tool_outputfile.exe"
9150               ;;
9151           esac~
9152           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9153             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9154             $RM "$lt_outputfile.manifest";
9155           fi'
9156         ;;
9157       *)
9158         # Assume MSVC wrapper
9159         hardcode_libdir_flag_spec=' '
9160         allow_undefined_flag=unsupported
9161         # Tell ltmain to make .lib files, not .a files.
9162         libext=lib
9163         # Tell ltmain to make .dll files, not .so files.
9164         shrext_cmds=".dll"
9165         # FIXME: Setting linknames here is a bad hack.
9166         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9167         # The linker will automatically build a .lib file if we build a DLL.
9168         old_archive_from_new_cmds='true'
9169         # FIXME: Should let the user specify the lib program.
9170         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9171         enable_shared_with_static_runtimes=yes
9172         ;;
9173       esac
9174       ;;
9175
9176     darwin* | rhapsody*)
9177
9178
9179   archive_cmds_need_lc=no
9180   hardcode_direct=no
9181   hardcode_automatic=yes
9182   hardcode_shlibpath_var=unsupported
9183   if test "$lt_cv_ld_force_load" = "yes"; then
9184     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\"`'
9185
9186   else
9187     whole_archive_flag_spec=''
9188   fi
9189   link_all_deplibs=yes
9190   allow_undefined_flag="$_lt_dar_allow_undefined"
9191   case $cc_basename in
9192      ifort*) _lt_dar_can_shared=yes ;;
9193      *) _lt_dar_can_shared=$GCC ;;
9194   esac
9195   if test "$_lt_dar_can_shared" = "yes"; then
9196     output_verbose_link_cmd=func_echo_all
9197     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9198     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9199     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}"
9200     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}"
9201
9202   else
9203   ld_shlibs=no
9204   fi
9205
9206       ;;
9207
9208     dgux*)
9209       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9210       hardcode_libdir_flag_spec='-L$libdir'
9211       hardcode_shlibpath_var=no
9212       ;;
9213
9214     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9215     # support.  Future versions do this automatically, but an explicit c++rt0.o
9216     # does not break anything, and helps significantly (at the cost of a little
9217     # extra space).
9218     freebsd2.2*)
9219       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9220       hardcode_libdir_flag_spec='-R$libdir'
9221       hardcode_direct=yes
9222       hardcode_shlibpath_var=no
9223       ;;
9224
9225     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9226     freebsd2.*)
9227       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9228       hardcode_direct=yes
9229       hardcode_minus_L=yes
9230       hardcode_shlibpath_var=no
9231       ;;
9232
9233     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9234     freebsd* | dragonfly*)
9235       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9236       hardcode_libdir_flag_spec='-R$libdir'
9237       hardcode_direct=yes
9238       hardcode_shlibpath_var=no
9239       ;;
9240
9241     hpux9*)
9242       if test "$GCC" = yes; then
9243         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'
9244       else
9245         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'
9246       fi
9247       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9248       hardcode_libdir_separator=:
9249       hardcode_direct=yes
9250
9251       # hardcode_minus_L: Not really in the search PATH,
9252       # but as the default location of the library.
9253       hardcode_minus_L=yes
9254       export_dynamic_flag_spec='${wl}-E'
9255       ;;
9256
9257     hpux10*)
9258       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9259         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9260       else
9261         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9262       fi
9263       if test "$with_gnu_ld" = no; then
9264         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9265         hardcode_libdir_separator=:
9266         hardcode_direct=yes
9267         hardcode_direct_absolute=yes
9268         export_dynamic_flag_spec='${wl}-E'
9269         # hardcode_minus_L: Not really in the search PATH,
9270         # but as the default location of the library.
9271         hardcode_minus_L=yes
9272       fi
9273       ;;
9274
9275     hpux11*)
9276       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9277         case $host_cpu in
9278         hppa*64*)
9279           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9280           ;;
9281         ia64*)
9282           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9283           ;;
9284         *)
9285           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9286           ;;
9287         esac
9288       else
9289         case $host_cpu in
9290         hppa*64*)
9291           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9292           ;;
9293         ia64*)
9294           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9295           ;;
9296         *)
9297
9298           # Older versions of the 11.00 compiler do not understand -b yet
9299           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9300           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9301 $as_echo_n "checking if $CC understands -b... " >&6; }
9302 if ${lt_cv_prog_compiler__b+:} false; then :
9303   $as_echo_n "(cached) " >&6
9304 else
9305   lt_cv_prog_compiler__b=no
9306    save_LDFLAGS="$LDFLAGS"
9307    LDFLAGS="$LDFLAGS -b"
9308    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9309    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9310      # The linker can only warn and ignore the option if not recognized
9311      # So say no if there are warnings
9312      if test -s conftest.err; then
9313        # Append any errors to the config.log.
9314        cat conftest.err 1>&5
9315        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9316        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9317        if diff conftest.exp conftest.er2 >/dev/null; then
9318          lt_cv_prog_compiler__b=yes
9319        fi
9320      else
9321        lt_cv_prog_compiler__b=yes
9322      fi
9323    fi
9324    $RM -r conftest*
9325    LDFLAGS="$save_LDFLAGS"
9326
9327 fi
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9329 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9330
9331 if test x"$lt_cv_prog_compiler__b" = xyes; then
9332     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9333 else
9334     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9335 fi
9336
9337           ;;
9338         esac
9339       fi
9340       if test "$with_gnu_ld" = no; then
9341         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9342         hardcode_libdir_separator=:
9343
9344         case $host_cpu in
9345         hppa*64*|ia64*)
9346           hardcode_direct=no
9347           hardcode_shlibpath_var=no
9348           ;;
9349         *)
9350           hardcode_direct=yes
9351           hardcode_direct_absolute=yes
9352           export_dynamic_flag_spec='${wl}-E'
9353
9354           # hardcode_minus_L: Not really in the search PATH,
9355           # but as the default location of the library.
9356           hardcode_minus_L=yes
9357           ;;
9358         esac
9359       fi
9360       ;;
9361
9362     irix5* | irix6* | nonstopux*)
9363       if test "$GCC" = yes; then
9364         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'
9365         # Try to use the -exported_symbol ld option, if it does not
9366         # work, assume that -exports_file does not work either and
9367         # implicitly export all symbols.
9368         # This should be the same for all languages, so no per-tag cache variable.
9369         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9370 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9371 if ${lt_cv_irix_exported_symbol+:} false; then :
9372   $as_echo_n "(cached) " >&6
9373 else
9374   save_LDFLAGS="$LDFLAGS"
9375            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9376            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9377 /* end confdefs.h.  */
9378 int foo (void) { return 0; }
9379 _ACEOF
9380 if ac_fn_c_try_link "$LINENO"; then :
9381   lt_cv_irix_exported_symbol=yes
9382 else
9383   lt_cv_irix_exported_symbol=no
9384 fi
9385 rm -f core conftest.err conftest.$ac_objext \
9386     conftest$ac_exeext conftest.$ac_ext
9387            LDFLAGS="$save_LDFLAGS"
9388 fi
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9390 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9391         if test "$lt_cv_irix_exported_symbol" = yes; then
9392           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'
9393         fi
9394       else
9395         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'
9396         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'
9397       fi
9398       archive_cmds_need_lc='no'
9399       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9400       hardcode_libdir_separator=:
9401       inherit_rpath=yes
9402       link_all_deplibs=yes
9403       ;;
9404
9405     netbsd*)
9406       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9407         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9408       else
9409         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9410       fi
9411       hardcode_libdir_flag_spec='-R$libdir'
9412       hardcode_direct=yes
9413       hardcode_shlibpath_var=no
9414       ;;
9415
9416     newsos6)
9417       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9418       hardcode_direct=yes
9419       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9420       hardcode_libdir_separator=:
9421       hardcode_shlibpath_var=no
9422       ;;
9423
9424     *nto* | *qnx*)
9425       ;;
9426
9427     openbsd*)
9428       if test -f /usr/libexec/ld.so; then
9429         hardcode_direct=yes
9430         hardcode_shlibpath_var=no
9431         hardcode_direct_absolute=yes
9432         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9433           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9434           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9435           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9436           export_dynamic_flag_spec='${wl}-E'
9437         else
9438           case $host_os in
9439            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9440              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9441              hardcode_libdir_flag_spec='-R$libdir'
9442              ;;
9443            *)
9444              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9445              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9446              ;;
9447           esac
9448         fi
9449       else
9450         ld_shlibs=no
9451       fi
9452       ;;
9453
9454     os2*)
9455       hardcode_libdir_flag_spec='-L$libdir'
9456       hardcode_minus_L=yes
9457       allow_undefined_flag=unsupported
9458       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'
9459       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9460       ;;
9461
9462     osf3*)
9463       if test "$GCC" = yes; then
9464         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9465         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'
9466       else
9467         allow_undefined_flag=' -expect_unresolved \*'
9468         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'
9469       fi
9470       archive_cmds_need_lc='no'
9471       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9472       hardcode_libdir_separator=:
9473       ;;
9474
9475     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9476       if test "$GCC" = yes; then
9477         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9478         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'
9479         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9480       else
9481         allow_undefined_flag=' -expect_unresolved \*'
9482         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'
9483         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~
9484         $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'
9485
9486         # Both c and cxx compiler support -rpath directly
9487         hardcode_libdir_flag_spec='-rpath $libdir'
9488       fi
9489       archive_cmds_need_lc='no'
9490       hardcode_libdir_separator=:
9491       ;;
9492
9493     solaris*)
9494       no_undefined_flag=' -z defs'
9495       if test "$GCC" = yes; then
9496         wlarc='${wl}'
9497         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9498         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9499           $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'
9500       else
9501         case `$CC -V 2>&1` in
9502         *"Compilers 5.0"*)
9503           wlarc=''
9504           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9505           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9506           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9507           ;;
9508         *)
9509           wlarc='${wl}'
9510           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9511           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9512           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9513           ;;
9514         esac
9515       fi
9516       hardcode_libdir_flag_spec='-R$libdir'
9517       hardcode_shlibpath_var=no
9518       case $host_os in
9519       solaris2.[0-5] | solaris2.[0-5].*) ;;
9520       *)
9521         # The compiler driver will combine and reorder linker options,
9522         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9523         # but is careful enough not to reorder.
9524         # Supported since Solaris 2.6 (maybe 2.5.1?)
9525         if test "$GCC" = yes; then
9526           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9527         else
9528           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9529         fi
9530         ;;
9531       esac
9532       link_all_deplibs=yes
9533       ;;
9534
9535     sunos4*)
9536       if test "x$host_vendor" = xsequent; then
9537         # Use $CC to link under sequent, because it throws in some extra .o
9538         # files that make .init and .fini sections work.
9539         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9540       else
9541         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9542       fi
9543       hardcode_libdir_flag_spec='-L$libdir'
9544       hardcode_direct=yes
9545       hardcode_minus_L=yes
9546       hardcode_shlibpath_var=no
9547       ;;
9548
9549     sysv4)
9550       case $host_vendor in
9551         sni)
9552           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9553           hardcode_direct=yes # is this really true???
9554         ;;
9555         siemens)
9556           ## LD is ld it makes a PLAMLIB
9557           ## CC just makes a GrossModule.
9558           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9559           reload_cmds='$CC -r -o $output$reload_objs'
9560           hardcode_direct=no
9561         ;;
9562         motorola)
9563           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9564           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9565         ;;
9566       esac
9567       runpath_var='LD_RUN_PATH'
9568       hardcode_shlibpath_var=no
9569       ;;
9570
9571     sysv4.3*)
9572       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9573       hardcode_shlibpath_var=no
9574       export_dynamic_flag_spec='-Bexport'
9575       ;;
9576
9577     sysv4*MP*)
9578       if test -d /usr/nec; then
9579         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9580         hardcode_shlibpath_var=no
9581         runpath_var=LD_RUN_PATH
9582         hardcode_runpath_var=yes
9583         ld_shlibs=yes
9584       fi
9585       ;;
9586
9587     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9588       no_undefined_flag='${wl}-z,text'
9589       archive_cmds_need_lc=no
9590       hardcode_shlibpath_var=no
9591       runpath_var='LD_RUN_PATH'
9592
9593       if test "$GCC" = yes; then
9594         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9595         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9596       else
9597         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9598         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9599       fi
9600       ;;
9601
9602     sysv5* | sco3.2v5* | sco5v6*)
9603       # Note: We can NOT use -z defs as we might desire, because we do not
9604       # link with -lc, and that would cause any symbols used from libc to
9605       # always be unresolved, which means just about no library would
9606       # ever link correctly.  If we're not using GNU ld we use -z text
9607       # though, which does catch some bad symbols but isn't as heavy-handed
9608       # as -z defs.
9609       no_undefined_flag='${wl}-z,text'
9610       allow_undefined_flag='${wl}-z,nodefs'
9611       archive_cmds_need_lc=no
9612       hardcode_shlibpath_var=no
9613       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9614       hardcode_libdir_separator=':'
9615       link_all_deplibs=yes
9616       export_dynamic_flag_spec='${wl}-Bexport'
9617       runpath_var='LD_RUN_PATH'
9618
9619       if test "$GCC" = yes; then
9620         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9621         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9622       else
9623         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9624         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9625       fi
9626       ;;
9627
9628     uts4*)
9629       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9630       hardcode_libdir_flag_spec='-L$libdir'
9631       hardcode_shlibpath_var=no
9632       ;;
9633
9634     *)
9635       ld_shlibs=no
9636       ;;
9637     esac
9638
9639     if test x$host_vendor = xsni; then
9640       case $host in
9641       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9642         export_dynamic_flag_spec='${wl}-Blargedynsym'
9643         ;;
9644       esac
9645     fi
9646   fi
9647
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9649 $as_echo "$ld_shlibs" >&6; }
9650 test "$ld_shlibs" = no && can_build_shared=no
9651
9652 with_gnu_ld=$with_gnu_ld
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668 #
9669 # Do we need to explicitly link libc?
9670 #
9671 case "x$archive_cmds_need_lc" in
9672 x|xyes)
9673   # Assume -lc should be added
9674   archive_cmds_need_lc=yes
9675
9676   if test "$enable_shared" = yes && test "$GCC" = yes; then
9677     case $archive_cmds in
9678     *'~'*)
9679       # FIXME: we may have to deal with multi-command sequences.
9680       ;;
9681     '$CC '*)
9682       # Test whether the compiler implicitly links with -lc since on some
9683       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9684       # to ld, don't add -lc before -lgcc.
9685       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9686 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9687 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9688   $as_echo_n "(cached) " >&6
9689 else
9690   $RM conftest*
9691         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9692
9693         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9694   (eval $ac_compile) 2>&5
9695   ac_status=$?
9696   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9697   test $ac_status = 0; } 2>conftest.err; then
9698           soname=conftest
9699           lib=conftest
9700           libobjs=conftest.$ac_objext
9701           deplibs=
9702           wl=$lt_prog_compiler_wl
9703           pic_flag=$lt_prog_compiler_pic
9704           compiler_flags=-v
9705           linker_flags=-v
9706           verstring=
9707           output_objdir=.
9708           libname=conftest
9709           lt_save_allow_undefined_flag=$allow_undefined_flag
9710           allow_undefined_flag=
9711           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9712   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9713   ac_status=$?
9714   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9715   test $ac_status = 0; }
9716           then
9717             lt_cv_archive_cmds_need_lc=no
9718           else
9719             lt_cv_archive_cmds_need_lc=yes
9720           fi
9721           allow_undefined_flag=$lt_save_allow_undefined_flag
9722         else
9723           cat conftest.err 1>&5
9724         fi
9725         $RM conftest*
9726
9727 fi
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9729 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9730       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9731       ;;
9732     esac
9733   fi
9734   ;;
9735 esac
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9889 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9890
9891 if test "$GCC" = yes; then
9892   case $host_os in
9893     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9894     *) lt_awk_arg="/^libraries:/" ;;
9895   esac
9896   case $host_os in
9897     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9898     *) lt_sed_strip_eq="s,=/,/,g" ;;
9899   esac
9900   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9901   case $lt_search_path_spec in
9902   *\;*)
9903     # if the path contains ";" then we assume it to be the separator
9904     # otherwise default to the standard path separator (i.e. ":") - it is
9905     # assumed that no part of a normal pathname contains ";" but that should
9906     # okay in the real world where ";" in dirpaths is itself problematic.
9907     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9908     ;;
9909   *)
9910     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9911     ;;
9912   esac
9913   # Ok, now we have the path, separated by spaces, we can step through it
9914   # and add multilib dir if necessary.
9915   lt_tmp_lt_search_path_spec=
9916   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9917   for lt_sys_path in $lt_search_path_spec; do
9918     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9919       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9920     else
9921       test -d "$lt_sys_path" && \
9922         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9923     fi
9924   done
9925   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9926 BEGIN {RS=" "; FS="/|\n";} {
9927   lt_foo="";
9928   lt_count=0;
9929   for (lt_i = NF; lt_i > 0; lt_i--) {
9930     if ($lt_i != "" && $lt_i != ".") {
9931       if ($lt_i == "..") {
9932         lt_count++;
9933       } else {
9934         if (lt_count == 0) {
9935           lt_foo="/" $lt_i lt_foo;
9936         } else {
9937           lt_count--;
9938         }
9939       }
9940     }
9941   }
9942   if (lt_foo != "") { lt_freq[lt_foo]++; }
9943   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9944 }'`
9945   # AWK program above erroneously prepends '/' to C:/dos/paths
9946   # for these hosts.
9947   case $host_os in
9948     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9949       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9950   esac
9951   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9952 else
9953   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9954 fi
9955 library_names_spec=
9956 libname_spec='lib$name'
9957 soname_spec=
9958 shrext_cmds=".so"
9959 postinstall_cmds=
9960 postuninstall_cmds=
9961 finish_cmds=
9962 finish_eval=
9963 shlibpath_var=
9964 shlibpath_overrides_runpath=unknown
9965 version_type=none
9966 dynamic_linker="$host_os ld.so"
9967 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9968 need_lib_prefix=unknown
9969 hardcode_into_libs=no
9970
9971 # when you set need_version to no, make sure it does not cause -set_version
9972 # flags to be left without arguments
9973 need_version=unknown
9974
9975 case $host_os in
9976 aix3*)
9977   version_type=linux # correct to gnu/linux during the next big refactor
9978   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9979   shlibpath_var=LIBPATH
9980
9981   # AIX 3 has no versioning support, so we append a major version to the name.
9982   soname_spec='${libname}${release}${shared_ext}$major'
9983   ;;
9984
9985 aix[4-9]*)
9986   version_type=linux # correct to gnu/linux during the next big refactor
9987   need_lib_prefix=no
9988   need_version=no
9989   hardcode_into_libs=yes
9990   if test "$host_cpu" = ia64; then
9991     # AIX 5 supports IA64
9992     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9993     shlibpath_var=LD_LIBRARY_PATH
9994   else
9995     # With GCC up to 2.95.x, collect2 would create an import file
9996     # for dependence libraries.  The import file would start with
9997     # the line `#! .'.  This would cause the generated library to
9998     # depend on `.', always an invalid library.  This was fixed in
9999     # development snapshots of GCC prior to 3.0.
10000     case $host_os in
10001       aix4 | aix4.[01] | aix4.[01].*)
10002       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10003            echo ' yes '
10004            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10005         :
10006       else
10007         can_build_shared=no
10008       fi
10009       ;;
10010     esac
10011     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10012     # soname into executable. Probably we can add versioning support to
10013     # collect2, so additional links can be useful in future.
10014     if test "$aix_use_runtimelinking" = yes; then
10015       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10016       # instead of lib<name>.a to let people know that these are not
10017       # typical AIX shared libraries.
10018       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10019     else
10020       # We preserve .a as extension for shared libraries through AIX4.2
10021       # and later when we are not doing run time linking.
10022       library_names_spec='${libname}${release}.a $libname.a'
10023       soname_spec='${libname}${release}${shared_ext}$major'
10024     fi
10025     shlibpath_var=LIBPATH
10026   fi
10027   ;;
10028
10029 amigaos*)
10030   case $host_cpu in
10031   powerpc)
10032     # Since July 2007 AmigaOS4 officially supports .so libraries.
10033     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10034     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10035     ;;
10036   m68k)
10037     library_names_spec='$libname.ixlibrary $libname.a'
10038     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10039     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'
10040     ;;
10041   esac
10042   ;;
10043
10044 beos*)
10045   library_names_spec='${libname}${shared_ext}'
10046   dynamic_linker="$host_os ld.so"
10047   shlibpath_var=LIBRARY_PATH
10048   ;;
10049
10050 bsdi[45]*)
10051   version_type=linux # correct to gnu/linux during the next big refactor
10052   need_version=no
10053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10054   soname_spec='${libname}${release}${shared_ext}$major'
10055   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10056   shlibpath_var=LD_LIBRARY_PATH
10057   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10058   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10059   # the default ld.so.conf also contains /usr/contrib/lib and
10060   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10061   # libtool to hard-code these into programs
10062   ;;
10063
10064 cygwin* | mingw* | pw32* | cegcc*)
10065   version_type=windows
10066   shrext_cmds=".dll"
10067   need_version=no
10068   need_lib_prefix=no
10069
10070   case $GCC,$cc_basename in
10071   yes,*)
10072     # gcc
10073     library_names_spec='$libname.dll.a'
10074     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10075     postinstall_cmds='base_file=`basename \${file}`~
10076       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10077       dldir=$destdir/`dirname \$dlpath`~
10078       test -d \$dldir || mkdir -p \$dldir~
10079       $install_prog $dir/$dlname \$dldir/$dlname~
10080       chmod a+x \$dldir/$dlname~
10081       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10082         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10083       fi'
10084     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10085       dlpath=$dir/\$dldll~
10086        $RM \$dlpath'
10087     shlibpath_overrides_runpath=yes
10088
10089     case $host_os in
10090     cygwin*)
10091       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10092       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10093
10094       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10095       ;;
10096     mingw* | cegcc*)
10097       # MinGW DLLs use traditional 'lib' prefix
10098       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10099       ;;
10100     pw32*)
10101       # pw32 DLLs use 'pw' prefix rather than 'lib'
10102       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10103       ;;
10104     esac
10105     dynamic_linker='Win32 ld.exe'
10106     ;;
10107
10108   *,cl*)
10109     # Native MSVC
10110     libname_spec='$name'
10111     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10112     library_names_spec='${libname}.dll.lib'
10113
10114     case $build_os in
10115     mingw*)
10116       sys_lib_search_path_spec=
10117       lt_save_ifs=$IFS
10118       IFS=';'
10119       for lt_path in $LIB
10120       do
10121         IFS=$lt_save_ifs
10122         # Let DOS variable expansion print the short 8.3 style file name.
10123         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10124         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10125       done
10126       IFS=$lt_save_ifs
10127       # Convert to MSYS style.
10128       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10129       ;;
10130     cygwin*)
10131       # Convert to unix form, then to dos form, then back to unix form
10132       # but this time dos style (no spaces!) so that the unix form looks
10133       # like /cygdrive/c/PROGRA~1:/cygdr...
10134       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10135       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10136       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10137       ;;
10138     *)
10139       sys_lib_search_path_spec="$LIB"
10140       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10141         # It is most probably a Windows format PATH.
10142         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10143       else
10144         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10145       fi
10146       # FIXME: find the short name or the path components, as spaces are
10147       # common. (e.g. "Program Files" -> "PROGRA~1")
10148       ;;
10149     esac
10150
10151     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10152     postinstall_cmds='base_file=`basename \${file}`~
10153       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10154       dldir=$destdir/`dirname \$dlpath`~
10155       test -d \$dldir || mkdir -p \$dldir~
10156       $install_prog $dir/$dlname \$dldir/$dlname'
10157     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10158       dlpath=$dir/\$dldll~
10159        $RM \$dlpath'
10160     shlibpath_overrides_runpath=yes
10161     dynamic_linker='Win32 link.exe'
10162     ;;
10163
10164   *)
10165     # Assume MSVC wrapper
10166     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10167     dynamic_linker='Win32 ld.exe'
10168     ;;
10169   esac
10170   # FIXME: first we should search . and the directory the executable is in
10171   shlibpath_var=PATH
10172   ;;
10173
10174 darwin* | rhapsody*)
10175   dynamic_linker="$host_os dyld"
10176   version_type=darwin
10177   need_lib_prefix=no
10178   need_version=no
10179   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10180   soname_spec='${libname}${release}${major}$shared_ext'
10181   shlibpath_overrides_runpath=yes
10182   shlibpath_var=DYLD_LIBRARY_PATH
10183   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10184
10185   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10186   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10187   ;;
10188
10189 dgux*)
10190   version_type=linux # correct to gnu/linux during the next big refactor
10191   need_lib_prefix=no
10192   need_version=no
10193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10194   soname_spec='${libname}${release}${shared_ext}$major'
10195   shlibpath_var=LD_LIBRARY_PATH
10196   ;;
10197
10198 freebsd* | dragonfly*)
10199   # DragonFly does not have aout.  When/if they implement a new
10200   # versioning mechanism, adjust this.
10201   if test -x /usr/bin/objformat; then
10202     objformat=`/usr/bin/objformat`
10203   else
10204     case $host_os in
10205     freebsd[23].*) objformat=aout ;;
10206     *) objformat=elf ;;
10207     esac
10208   fi
10209   version_type=freebsd-$objformat
10210   case $version_type in
10211     freebsd-elf*)
10212       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10213       need_version=no
10214       need_lib_prefix=no
10215       ;;
10216     freebsd-*)
10217       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10218       need_version=yes
10219       ;;
10220   esac
10221   shlibpath_var=LD_LIBRARY_PATH
10222   case $host_os in
10223   freebsd2.*)
10224     shlibpath_overrides_runpath=yes
10225     ;;
10226   freebsd3.[01]* | freebsdelf3.[01]*)
10227     shlibpath_overrides_runpath=yes
10228     hardcode_into_libs=yes
10229     ;;
10230   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10231   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10232     shlibpath_overrides_runpath=no
10233     hardcode_into_libs=yes
10234     ;;
10235   *) # from 4.6 on, and DragonFly
10236     shlibpath_overrides_runpath=yes
10237     hardcode_into_libs=yes
10238     ;;
10239   esac
10240   ;;
10241
10242 gnu*)
10243   version_type=linux # correct to gnu/linux during the next big refactor
10244   need_lib_prefix=no
10245   need_version=no
10246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10247   soname_spec='${libname}${release}${shared_ext}$major'
10248   shlibpath_var=LD_LIBRARY_PATH
10249   shlibpath_overrides_runpath=no
10250   hardcode_into_libs=yes
10251   ;;
10252
10253 haiku*)
10254   version_type=linux # correct to gnu/linux during the next big refactor
10255   need_lib_prefix=no
10256   need_version=no
10257   dynamic_linker="$host_os runtime_loader"
10258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10259   soname_spec='${libname}${release}${shared_ext}$major'
10260   shlibpath_var=LIBRARY_PATH
10261   shlibpath_overrides_runpath=yes
10262   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10263   hardcode_into_libs=yes
10264   ;;
10265
10266 hpux9* | hpux10* | hpux11*)
10267   # Give a soname corresponding to the major version so that dld.sl refuses to
10268   # link against other versions.
10269   version_type=sunos
10270   need_lib_prefix=no
10271   need_version=no
10272   case $host_cpu in
10273   ia64*)
10274     shrext_cmds='.so'
10275     hardcode_into_libs=yes
10276     dynamic_linker="$host_os dld.so"
10277     shlibpath_var=LD_LIBRARY_PATH
10278     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10279     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10280     soname_spec='${libname}${release}${shared_ext}$major'
10281     if test "X$HPUX_IA64_MODE" = X32; then
10282       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10283     else
10284       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10285     fi
10286     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10287     ;;
10288   hppa*64*)
10289     shrext_cmds='.sl'
10290     hardcode_into_libs=yes
10291     dynamic_linker="$host_os dld.sl"
10292     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10293     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10294     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10295     soname_spec='${libname}${release}${shared_ext}$major'
10296     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10297     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10298     ;;
10299   *)
10300     shrext_cmds='.sl'
10301     dynamic_linker="$host_os dld.sl"
10302     shlibpath_var=SHLIB_PATH
10303     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10304     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10305     soname_spec='${libname}${release}${shared_ext}$major'
10306     ;;
10307   esac
10308   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10309   postinstall_cmds='chmod 555 $lib'
10310   # or fails outright, so override atomically:
10311   install_override_mode=555
10312   ;;
10313
10314 interix[3-9]*)
10315   version_type=linux # correct to gnu/linux during the next big refactor
10316   need_lib_prefix=no
10317   need_version=no
10318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10319   soname_spec='${libname}${release}${shared_ext}$major'
10320   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10321   shlibpath_var=LD_LIBRARY_PATH
10322   shlibpath_overrides_runpath=no
10323   hardcode_into_libs=yes
10324   ;;
10325
10326 irix5* | irix6* | nonstopux*)
10327   case $host_os in
10328     nonstopux*) version_type=nonstopux ;;
10329     *)
10330         if test "$lt_cv_prog_gnu_ld" = yes; then
10331                 version_type=linux # correct to gnu/linux during the next big refactor
10332         else
10333                 version_type=irix
10334         fi ;;
10335   esac
10336   need_lib_prefix=no
10337   need_version=no
10338   soname_spec='${libname}${release}${shared_ext}$major'
10339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10340   case $host_os in
10341   irix5* | nonstopux*)
10342     libsuff= shlibsuff=
10343     ;;
10344   *)
10345     case $LD in # libtool.m4 will add one of these switches to LD
10346     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10347       libsuff= shlibsuff= libmagic=32-bit;;
10348     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10349       libsuff=32 shlibsuff=N32 libmagic=N32;;
10350     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10351       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10352     *) libsuff= shlibsuff= libmagic=never-match;;
10353     esac
10354     ;;
10355   esac
10356   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10357   shlibpath_overrides_runpath=no
10358   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10359   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10360   hardcode_into_libs=yes
10361   ;;
10362
10363 # No shared lib support for Linux oldld, aout, or coff.
10364 linux*oldld* | linux*aout* | linux*coff*)
10365   dynamic_linker=no
10366   ;;
10367
10368 # This must be glibc/ELF.
10369 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10370   version_type=linux # correct to gnu/linux during the next big refactor
10371   need_lib_prefix=no
10372   need_version=no
10373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10374   soname_spec='${libname}${release}${shared_ext}$major'
10375   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10376   shlibpath_var=LD_LIBRARY_PATH
10377   shlibpath_overrides_runpath=no
10378
10379   # Some binutils ld are patched to set DT_RUNPATH
10380   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10381   $as_echo_n "(cached) " >&6
10382 else
10383   lt_cv_shlibpath_overrides_runpath=no
10384     save_LDFLAGS=$LDFLAGS
10385     save_libdir=$libdir
10386     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10387          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10388     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10389 /* end confdefs.h.  */
10390
10391 int
10392 main ()
10393 {
10394
10395   ;
10396   return 0;
10397 }
10398 _ACEOF
10399 if ac_fn_c_try_link "$LINENO"; then :
10400   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10401   lt_cv_shlibpath_overrides_runpath=yes
10402 fi
10403 fi
10404 rm -f core conftest.err conftest.$ac_objext \
10405     conftest$ac_exeext conftest.$ac_ext
10406     LDFLAGS=$save_LDFLAGS
10407     libdir=$save_libdir
10408
10409 fi
10410
10411   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10412
10413   # This implies no fast_install, which is unacceptable.
10414   # Some rework will be needed to allow for fast_install
10415   # before this can be enabled.
10416   hardcode_into_libs=yes
10417
10418   # Add ABI-specific directories to the system library path.
10419   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10420
10421   # Append ld.so.conf contents to the search path
10422   if test -f /etc/ld.so.conf; then
10423     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' ' '`
10424     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10425
10426   fi
10427
10428   # We used to test for /lib/ld.so.1 and disable shared libraries on
10429   # powerpc, because MkLinux only supported shared libraries with the
10430   # GNU dynamic linker.  Since this was broken with cross compilers,
10431   # most powerpc-linux boxes support dynamic linking these days and
10432   # people can always --disable-shared, the test was removed, and we
10433   # assume the GNU/Linux dynamic linker is in use.
10434   dynamic_linker='GNU/Linux ld.so'
10435   ;;
10436
10437 netbsd*)
10438   version_type=sunos
10439   need_lib_prefix=no
10440   need_version=no
10441   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10442     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10443     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10444     dynamic_linker='NetBSD (a.out) ld.so'
10445   else
10446     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10447     soname_spec='${libname}${release}${shared_ext}$major'
10448     dynamic_linker='NetBSD ld.elf_so'
10449   fi
10450   shlibpath_var=LD_LIBRARY_PATH
10451   shlibpath_overrides_runpath=yes
10452   hardcode_into_libs=yes
10453   ;;
10454
10455 newsos6)
10456   version_type=linux # correct to gnu/linux during the next big refactor
10457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10458   shlibpath_var=LD_LIBRARY_PATH
10459   shlibpath_overrides_runpath=yes
10460   ;;
10461
10462 *nto* | *qnx*)
10463   version_type=qnx
10464   need_lib_prefix=no
10465   need_version=no
10466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10467   soname_spec='${libname}${release}${shared_ext}$major'
10468   shlibpath_var=LD_LIBRARY_PATH
10469   shlibpath_overrides_runpath=no
10470   hardcode_into_libs=yes
10471   dynamic_linker='ldqnx.so'
10472   ;;
10473
10474 openbsd*)
10475   version_type=sunos
10476   sys_lib_dlsearch_path_spec="/usr/lib"
10477   need_lib_prefix=no
10478   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10479   case $host_os in
10480     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10481     *)                          need_version=no  ;;
10482   esac
10483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10484   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10485   shlibpath_var=LD_LIBRARY_PATH
10486   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10487     case $host_os in
10488       openbsd2.[89] | openbsd2.[89].*)
10489         shlibpath_overrides_runpath=no
10490         ;;
10491       *)
10492         shlibpath_overrides_runpath=yes
10493         ;;
10494       esac
10495   else
10496     shlibpath_overrides_runpath=yes
10497   fi
10498   ;;
10499
10500 os2*)
10501   libname_spec='$name'
10502   shrext_cmds=".dll"
10503   need_lib_prefix=no
10504   library_names_spec='$libname${shared_ext} $libname.a'
10505   dynamic_linker='OS/2 ld.exe'
10506   shlibpath_var=LIBPATH
10507   ;;
10508
10509 osf3* | osf4* | osf5*)
10510   version_type=osf
10511   need_lib_prefix=no
10512   need_version=no
10513   soname_spec='${libname}${release}${shared_ext}$major'
10514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10515   shlibpath_var=LD_LIBRARY_PATH
10516   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10517   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10518   ;;
10519
10520 rdos*)
10521   dynamic_linker=no
10522   ;;
10523
10524 solaris*)
10525   version_type=linux # correct to gnu/linux during the next big refactor
10526   need_lib_prefix=no
10527   need_version=no
10528   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10529   soname_spec='${libname}${release}${shared_ext}$major'
10530   shlibpath_var=LD_LIBRARY_PATH
10531   shlibpath_overrides_runpath=yes
10532   hardcode_into_libs=yes
10533   # ldd complains unless libraries are executable
10534   postinstall_cmds='chmod +x $lib'
10535   ;;
10536
10537 sunos4*)
10538   version_type=sunos
10539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10540   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10541   shlibpath_var=LD_LIBRARY_PATH
10542   shlibpath_overrides_runpath=yes
10543   if test "$with_gnu_ld" = yes; then
10544     need_lib_prefix=no
10545   fi
10546   need_version=yes
10547   ;;
10548
10549 sysv4 | sysv4.3*)
10550   version_type=linux # correct to gnu/linux during the next big refactor
10551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10552   soname_spec='${libname}${release}${shared_ext}$major'
10553   shlibpath_var=LD_LIBRARY_PATH
10554   case $host_vendor in
10555     sni)
10556       shlibpath_overrides_runpath=no
10557       need_lib_prefix=no
10558       runpath_var=LD_RUN_PATH
10559       ;;
10560     siemens)
10561       need_lib_prefix=no
10562       ;;
10563     motorola)
10564       need_lib_prefix=no
10565       need_version=no
10566       shlibpath_overrides_runpath=no
10567       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10568       ;;
10569   esac
10570   ;;
10571
10572 sysv4*MP*)
10573   if test -d /usr/nec ;then
10574     version_type=linux # correct to gnu/linux during the next big refactor
10575     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10576     soname_spec='$libname${shared_ext}.$major'
10577     shlibpath_var=LD_LIBRARY_PATH
10578   fi
10579   ;;
10580
10581 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10582   version_type=freebsd-elf
10583   need_lib_prefix=no
10584   need_version=no
10585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10586   soname_spec='${libname}${release}${shared_ext}$major'
10587   shlibpath_var=LD_LIBRARY_PATH
10588   shlibpath_overrides_runpath=yes
10589   hardcode_into_libs=yes
10590   if test "$with_gnu_ld" = yes; then
10591     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10592   else
10593     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10594     case $host_os in
10595       sco3.2v5*)
10596         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10597         ;;
10598     esac
10599   fi
10600   sys_lib_dlsearch_path_spec='/usr/lib'
10601   ;;
10602
10603 tpf*)
10604   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10605   version_type=linux # correct to gnu/linux during the next big refactor
10606   need_lib_prefix=no
10607   need_version=no
10608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10609   shlibpath_var=LD_LIBRARY_PATH
10610   shlibpath_overrides_runpath=no
10611   hardcode_into_libs=yes
10612   ;;
10613
10614 uts4*)
10615   version_type=linux # correct to gnu/linux during the next big refactor
10616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10617   soname_spec='${libname}${release}${shared_ext}$major'
10618   shlibpath_var=LD_LIBRARY_PATH
10619   ;;
10620
10621 *)
10622   dynamic_linker=no
10623   ;;
10624 esac
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10626 $as_echo "$dynamic_linker" >&6; }
10627 test "$dynamic_linker" = no && can_build_shared=no
10628
10629 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10630 if test "$GCC" = yes; then
10631   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10632 fi
10633
10634 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10635   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10636 fi
10637 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10638   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10639 fi
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10733 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10734 hardcode_action=
10735 if test -n "$hardcode_libdir_flag_spec" ||
10736    test -n "$runpath_var" ||
10737    test "X$hardcode_automatic" = "Xyes" ; then
10738
10739   # We can hardcode non-existent directories.
10740   if test "$hardcode_direct" != no &&
10741      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10742      # have to relink, otherwise we might link with an installed library
10743      # when we should be linking with a yet-to-be-installed one
10744      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10745      test "$hardcode_minus_L" != no; then
10746     # Linking always hardcodes the temporary library directory.
10747     hardcode_action=relink
10748   else
10749     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10750     hardcode_action=immediate
10751   fi
10752 else
10753   # We cannot hardcode anything, or else we can only hardcode existing
10754   # directories.
10755   hardcode_action=unsupported
10756 fi
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10758 $as_echo "$hardcode_action" >&6; }
10759
10760 if test "$hardcode_action" = relink ||
10761    test "$inherit_rpath" = yes; then
10762   # Fast installation is not supported
10763   enable_fast_install=no
10764 elif test "$shlibpath_overrides_runpath" = yes ||
10765      test "$enable_shared" = no; then
10766   # Fast installation is not necessary
10767   enable_fast_install=needless
10768 fi
10769
10770
10771
10772
10773
10774
10775   if test "x$enable_dlopen" != xyes; then
10776   enable_dlopen=unknown
10777   enable_dlopen_self=unknown
10778   enable_dlopen_self_static=unknown
10779 else
10780   lt_cv_dlopen=no
10781   lt_cv_dlopen_libs=
10782
10783   case $host_os in
10784   beos*)
10785     lt_cv_dlopen="load_add_on"
10786     lt_cv_dlopen_libs=
10787     lt_cv_dlopen_self=yes
10788     ;;
10789
10790   mingw* | pw32* | cegcc*)
10791     lt_cv_dlopen="LoadLibrary"
10792     lt_cv_dlopen_libs=
10793     ;;
10794
10795   cygwin*)
10796     lt_cv_dlopen="dlopen"
10797     lt_cv_dlopen_libs=
10798     ;;
10799
10800   darwin*)
10801   # if libdl is installed we need to link against it
10802     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10803 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10804 if ${ac_cv_lib_dl_dlopen+:} false; then :
10805   $as_echo_n "(cached) " >&6
10806 else
10807   ac_check_lib_save_LIBS=$LIBS
10808 LIBS="-ldl  $LIBS"
10809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10810 /* end confdefs.h.  */
10811
10812 /* Override any GCC internal prototype to avoid an error.
10813    Use char because int might match the return type of a GCC
10814    builtin and then its argument prototype would still apply.  */
10815 #ifdef __cplusplus
10816 extern "C"
10817 #endif
10818 char dlopen ();
10819 int
10820 main ()
10821 {
10822 return dlopen ();
10823   ;
10824   return 0;
10825 }
10826 _ACEOF
10827 if ac_fn_c_try_link "$LINENO"; then :
10828   ac_cv_lib_dl_dlopen=yes
10829 else
10830   ac_cv_lib_dl_dlopen=no
10831 fi
10832 rm -f core conftest.err conftest.$ac_objext \
10833     conftest$ac_exeext conftest.$ac_ext
10834 LIBS=$ac_check_lib_save_LIBS
10835 fi
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10837 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10838 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10839   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10840 else
10841
10842     lt_cv_dlopen="dyld"
10843     lt_cv_dlopen_libs=
10844     lt_cv_dlopen_self=yes
10845
10846 fi
10847
10848     ;;
10849
10850   *)
10851     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10852 if test "x$ac_cv_func_shl_load" = xyes; then :
10853   lt_cv_dlopen="shl_load"
10854 else
10855   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10856 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10857 if ${ac_cv_lib_dld_shl_load+:} false; then :
10858   $as_echo_n "(cached) " >&6
10859 else
10860   ac_check_lib_save_LIBS=$LIBS
10861 LIBS="-ldld  $LIBS"
10862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10863 /* end confdefs.h.  */
10864
10865 /* Override any GCC internal prototype to avoid an error.
10866    Use char because int might match the return type of a GCC
10867    builtin and then its argument prototype would still apply.  */
10868 #ifdef __cplusplus
10869 extern "C"
10870 #endif
10871 char shl_load ();
10872 int
10873 main ()
10874 {
10875 return shl_load ();
10876   ;
10877   return 0;
10878 }
10879 _ACEOF
10880 if ac_fn_c_try_link "$LINENO"; then :
10881   ac_cv_lib_dld_shl_load=yes
10882 else
10883   ac_cv_lib_dld_shl_load=no
10884 fi
10885 rm -f core conftest.err conftest.$ac_objext \
10886     conftest$ac_exeext conftest.$ac_ext
10887 LIBS=$ac_check_lib_save_LIBS
10888 fi
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10890 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10891 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10892   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10893 else
10894   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10895 if test "x$ac_cv_func_dlopen" = xyes; then :
10896   lt_cv_dlopen="dlopen"
10897 else
10898   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10899 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10900 if ${ac_cv_lib_dl_dlopen+:} false; then :
10901   $as_echo_n "(cached) " >&6
10902 else
10903   ac_check_lib_save_LIBS=$LIBS
10904 LIBS="-ldl  $LIBS"
10905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10906 /* end confdefs.h.  */
10907
10908 /* Override any GCC internal prototype to avoid an error.
10909    Use char because int might match the return type of a GCC
10910    builtin and then its argument prototype would still apply.  */
10911 #ifdef __cplusplus
10912 extern "C"
10913 #endif
10914 char dlopen ();
10915 int
10916 main ()
10917 {
10918 return dlopen ();
10919   ;
10920   return 0;
10921 }
10922 _ACEOF
10923 if ac_fn_c_try_link "$LINENO"; then :
10924   ac_cv_lib_dl_dlopen=yes
10925 else
10926   ac_cv_lib_dl_dlopen=no
10927 fi
10928 rm -f core conftest.err conftest.$ac_objext \
10929     conftest$ac_exeext conftest.$ac_ext
10930 LIBS=$ac_check_lib_save_LIBS
10931 fi
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10933 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10934 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10935   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10936 else
10937   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10938 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10939 if ${ac_cv_lib_svld_dlopen+:} false; then :
10940   $as_echo_n "(cached) " >&6
10941 else
10942   ac_check_lib_save_LIBS=$LIBS
10943 LIBS="-lsvld  $LIBS"
10944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10945 /* end confdefs.h.  */
10946
10947 /* Override any GCC internal prototype to avoid an error.
10948    Use char because int might match the return type of a GCC
10949    builtin and then its argument prototype would still apply.  */
10950 #ifdef __cplusplus
10951 extern "C"
10952 #endif
10953 char dlopen ();
10954 int
10955 main ()
10956 {
10957 return dlopen ();
10958   ;
10959   return 0;
10960 }
10961 _ACEOF
10962 if ac_fn_c_try_link "$LINENO"; then :
10963   ac_cv_lib_svld_dlopen=yes
10964 else
10965   ac_cv_lib_svld_dlopen=no
10966 fi
10967 rm -f core conftest.err conftest.$ac_objext \
10968     conftest$ac_exeext conftest.$ac_ext
10969 LIBS=$ac_check_lib_save_LIBS
10970 fi
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10972 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10973 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10974   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10975 else
10976   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10977 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10978 if ${ac_cv_lib_dld_dld_link+:} false; then :
10979   $as_echo_n "(cached) " >&6
10980 else
10981   ac_check_lib_save_LIBS=$LIBS
10982 LIBS="-ldld  $LIBS"
10983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10984 /* end confdefs.h.  */
10985
10986 /* Override any GCC internal prototype to avoid an error.
10987    Use char because int might match the return type of a GCC
10988    builtin and then its argument prototype would still apply.  */
10989 #ifdef __cplusplus
10990 extern "C"
10991 #endif
10992 char dld_link ();
10993 int
10994 main ()
10995 {
10996 return dld_link ();
10997   ;
10998   return 0;
10999 }
11000 _ACEOF
11001 if ac_fn_c_try_link "$LINENO"; then :
11002   ac_cv_lib_dld_dld_link=yes
11003 else
11004   ac_cv_lib_dld_dld_link=no
11005 fi
11006 rm -f core conftest.err conftest.$ac_objext \
11007     conftest$ac_exeext conftest.$ac_ext
11008 LIBS=$ac_check_lib_save_LIBS
11009 fi
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11011 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11012 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11013   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11014 fi
11015
11016
11017 fi
11018
11019
11020 fi
11021
11022
11023 fi
11024
11025
11026 fi
11027
11028
11029 fi
11030
11031     ;;
11032   esac
11033
11034   if test "x$lt_cv_dlopen" != xno; then
11035     enable_dlopen=yes
11036   else
11037     enable_dlopen=no
11038   fi
11039
11040   case $lt_cv_dlopen in
11041   dlopen)
11042     save_CPPFLAGS="$CPPFLAGS"
11043     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11044
11045     save_LDFLAGS="$LDFLAGS"
11046     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11047
11048     save_LIBS="$LIBS"
11049     LIBS="$lt_cv_dlopen_libs $LIBS"
11050
11051     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11052 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11053 if ${lt_cv_dlopen_self+:} false; then :
11054   $as_echo_n "(cached) " >&6
11055 else
11056           if test "$cross_compiling" = yes; then :
11057   lt_cv_dlopen_self=cross
11058 else
11059   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11060   lt_status=$lt_dlunknown
11061   cat > conftest.$ac_ext <<_LT_EOF
11062 #line $LINENO "configure"
11063 #include "confdefs.h"
11064
11065 #if HAVE_DLFCN_H
11066 #include <dlfcn.h>
11067 #endif
11068
11069 #include <stdio.h>
11070
11071 #ifdef RTLD_GLOBAL
11072 #  define LT_DLGLOBAL           RTLD_GLOBAL
11073 #else
11074 #  ifdef DL_GLOBAL
11075 #    define LT_DLGLOBAL         DL_GLOBAL
11076 #  else
11077 #    define LT_DLGLOBAL         0
11078 #  endif
11079 #endif
11080
11081 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11082    find out it does not work in some platform. */
11083 #ifndef LT_DLLAZY_OR_NOW
11084 #  ifdef RTLD_LAZY
11085 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11086 #  else
11087 #    ifdef DL_LAZY
11088 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11089 #    else
11090 #      ifdef RTLD_NOW
11091 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11092 #      else
11093 #        ifdef DL_NOW
11094 #          define LT_DLLAZY_OR_NOW      DL_NOW
11095 #        else
11096 #          define LT_DLLAZY_OR_NOW      0
11097 #        endif
11098 #      endif
11099 #    endif
11100 #  endif
11101 #endif
11102
11103 /* When -fvisbility=hidden is used, assume the code has been annotated
11104    correspondingly for the symbols needed.  */
11105 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11106 int fnord () __attribute__((visibility("default")));
11107 #endif
11108
11109 int fnord () { return 42; }
11110 int main ()
11111 {
11112   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11113   int status = $lt_dlunknown;
11114
11115   if (self)
11116     {
11117       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11118       else
11119         {
11120           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11121           else puts (dlerror ());
11122         }
11123       /* dlclose (self); */
11124     }
11125   else
11126     puts (dlerror ());
11127
11128   return status;
11129 }
11130 _LT_EOF
11131   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11132   (eval $ac_link) 2>&5
11133   ac_status=$?
11134   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11135   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11136     (./conftest; exit; ) >&5 2>/dev/null
11137     lt_status=$?
11138     case x$lt_status in
11139       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11140       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11141       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11142     esac
11143   else :
11144     # compilation failed
11145     lt_cv_dlopen_self=no
11146   fi
11147 fi
11148 rm -fr conftest*
11149
11150
11151 fi
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11153 $as_echo "$lt_cv_dlopen_self" >&6; }
11154
11155     if test "x$lt_cv_dlopen_self" = xyes; then
11156       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11157       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11158 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11159 if ${lt_cv_dlopen_self_static+:} false; then :
11160   $as_echo_n "(cached) " >&6
11161 else
11162           if test "$cross_compiling" = yes; then :
11163   lt_cv_dlopen_self_static=cross
11164 else
11165   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11166   lt_status=$lt_dlunknown
11167   cat > conftest.$ac_ext <<_LT_EOF
11168 #line $LINENO "configure"
11169 #include "confdefs.h"
11170
11171 #if HAVE_DLFCN_H
11172 #include <dlfcn.h>
11173 #endif
11174
11175 #include <stdio.h>
11176
11177 #ifdef RTLD_GLOBAL
11178 #  define LT_DLGLOBAL           RTLD_GLOBAL
11179 #else
11180 #  ifdef DL_GLOBAL
11181 #    define LT_DLGLOBAL         DL_GLOBAL
11182 #  else
11183 #    define LT_DLGLOBAL         0
11184 #  endif
11185 #endif
11186
11187 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11188    find out it does not work in some platform. */
11189 #ifndef LT_DLLAZY_OR_NOW
11190 #  ifdef RTLD_LAZY
11191 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11192 #  else
11193 #    ifdef DL_LAZY
11194 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11195 #    else
11196 #      ifdef RTLD_NOW
11197 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11198 #      else
11199 #        ifdef DL_NOW
11200 #          define LT_DLLAZY_OR_NOW      DL_NOW
11201 #        else
11202 #          define LT_DLLAZY_OR_NOW      0
11203 #        endif
11204 #      endif
11205 #    endif
11206 #  endif
11207 #endif
11208
11209 /* When -fvisbility=hidden is used, assume the code has been annotated
11210    correspondingly for the symbols needed.  */
11211 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11212 int fnord () __attribute__((visibility("default")));
11213 #endif
11214
11215 int fnord () { return 42; }
11216 int main ()
11217 {
11218   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11219   int status = $lt_dlunknown;
11220
11221   if (self)
11222     {
11223       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11224       else
11225         {
11226           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11227           else puts (dlerror ());
11228         }
11229       /* dlclose (self); */
11230     }
11231   else
11232     puts (dlerror ());
11233
11234   return status;
11235 }
11236 _LT_EOF
11237   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11238   (eval $ac_link) 2>&5
11239   ac_status=$?
11240   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11241   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11242     (./conftest; exit; ) >&5 2>/dev/null
11243     lt_status=$?
11244     case x$lt_status in
11245       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11246       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11247       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11248     esac
11249   else :
11250     # compilation failed
11251     lt_cv_dlopen_self_static=no
11252   fi
11253 fi
11254 rm -fr conftest*
11255
11256
11257 fi
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11259 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11260     fi
11261
11262     CPPFLAGS="$save_CPPFLAGS"
11263     LDFLAGS="$save_LDFLAGS"
11264     LIBS="$save_LIBS"
11265     ;;
11266   esac
11267
11268   case $lt_cv_dlopen_self in
11269   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11270   *) enable_dlopen_self=unknown ;;
11271   esac
11272
11273   case $lt_cv_dlopen_self_static in
11274   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11275   *) enable_dlopen_self_static=unknown ;;
11276   esac
11277 fi
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295 striplib=
11296 old_striplib=
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11298 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11299 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11300   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11301   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11303 $as_echo "yes" >&6; }
11304 else
11305 # FIXME - insert some real tests, host_os isn't really good enough
11306   case $host_os in
11307   darwin*)
11308     if test -n "$STRIP" ; then
11309       striplib="$STRIP -x"
11310       old_striplib="$STRIP -S"
11311       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11312 $as_echo "yes" >&6; }
11313     else
11314       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11315 $as_echo "no" >&6; }
11316     fi
11317     ;;
11318   *)
11319     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11320 $as_echo "no" >&6; }
11321     ;;
11322   esac
11323 fi
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336   # Report which library types will actually be built
11337   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11338 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11340 $as_echo "$can_build_shared" >&6; }
11341
11342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11343 $as_echo_n "checking whether to build shared libraries... " >&6; }
11344   test "$can_build_shared" = "no" && enable_shared=no
11345
11346   # On AIX, shared libraries and static libraries use the same namespace, and
11347   # are all built from PIC.
11348   case $host_os in
11349   aix3*)
11350     test "$enable_shared" = yes && enable_static=no
11351     if test -n "$RANLIB"; then
11352       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11353       postinstall_cmds='$RANLIB $lib'
11354     fi
11355     ;;
11356
11357   aix[4-9]*)
11358     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11359       test "$enable_shared" = yes && enable_static=no
11360     fi
11361     ;;
11362   esac
11363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11364 $as_echo "$enable_shared" >&6; }
11365
11366   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11367 $as_echo_n "checking whether to build static libraries... " >&6; }
11368   # Make sure either enable_shared or enable_static is yes.
11369   test "$enable_shared" = yes || enable_static=yes
11370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11371 $as_echo "$enable_static" >&6; }
11372
11373
11374
11375
11376 fi
11377 ac_ext=c
11378 ac_cpp='$CPP $CPPFLAGS'
11379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11382
11383 CC="$lt_save_CC"
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399         ac_config_commands="$ac_config_commands libtool"
11400
11401
11402
11403
11404 # Only expand once:
11405
11406
11407
11408 # Require xorg-macros minimum of 1.12 for DocBook external references
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11421 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11422 if ${ac_cv_prog_cc_c99+:} false; then :
11423   $as_echo_n "(cached) " >&6
11424 else
11425   ac_cv_prog_cc_c99=no
11426 ac_save_CC=$CC
11427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11428 /* end confdefs.h.  */
11429 #include <stdarg.h>
11430 #include <stdbool.h>
11431 #include <stdlib.h>
11432 #include <wchar.h>
11433 #include <stdio.h>
11434
11435 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
11436 #define debug(...) fprintf (stderr, __VA_ARGS__)
11437 #define showlist(...) puts (#__VA_ARGS__)
11438 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11439 static void
11440 test_varargs_macros (void)
11441 {
11442   int x = 1234;
11443   int y = 5678;
11444   debug ("Flag");
11445   debug ("X = %d\n", x);
11446   showlist (The first, second, and third items.);
11447   report (x>y, "x is %d but y is %d", x, y);
11448 }
11449
11450 // Check long long types.
11451 #define BIG64 18446744073709551615ull
11452 #define BIG32 4294967295ul
11453 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11454 #if !BIG_OK
11455   your preprocessor is broken;
11456 #endif
11457 #if BIG_OK
11458 #else
11459   your preprocessor is broken;
11460 #endif
11461 static long long int bignum = -9223372036854775807LL;
11462 static unsigned long long int ubignum = BIG64;
11463
11464 struct incomplete_array
11465 {
11466   int datasize;
11467   double data[];
11468 };
11469
11470 struct named_init {
11471   int number;
11472   const wchar_t *name;
11473   double average;
11474 };
11475
11476 typedef const char *ccp;
11477
11478 static inline int
11479 test_restrict (ccp restrict text)
11480 {
11481   // See if C++-style comments work.
11482   // Iterate through items via the restricted pointer.
11483   // Also check for declarations in for loops.
11484   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11485     continue;
11486   return 0;
11487 }
11488
11489 // Check varargs and va_copy.
11490 static void
11491 test_varargs (const char *format, ...)
11492 {
11493   va_list args;
11494   va_start (args, format);
11495   va_list args_copy;
11496   va_copy (args_copy, args);
11497
11498   const char *str;
11499   int number;
11500   float fnumber;
11501
11502   while (*format)
11503     {
11504       switch (*format++)
11505         {
11506         case 's': // string
11507           str = va_arg (args_copy, const char *);
11508           break;
11509         case 'd': // int
11510           number = va_arg (args_copy, int);
11511           break;
11512         case 'f': // float
11513           fnumber = va_arg (args_copy, double);
11514           break;
11515         default:
11516           break;
11517         }
11518     }
11519   va_end (args_copy);
11520   va_end (args);
11521 }
11522
11523 int
11524 main ()
11525 {
11526
11527   // Check bool.
11528   _Bool success = false;
11529
11530   // Check restrict.
11531   if (test_restrict ("String literal") == 0)
11532     success = true;
11533   char *restrict newvar = "Another string";
11534
11535   // Check varargs.
11536   test_varargs ("s, d' f .", "string", 65, 34.234);
11537   test_varargs_macros ();
11538
11539   // Check flexible array members.
11540   struct incomplete_array *ia =
11541     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11542   ia->datasize = 10;
11543   for (int i = 0; i < ia->datasize; ++i)
11544     ia->data[i] = i * 1.234;
11545
11546   // Check named initializers.
11547   struct named_init ni = {
11548     .number = 34,
11549     .name = L"Test wide string",
11550     .average = 543.34343,
11551   };
11552
11553   ni.number = 58;
11554
11555   int dynamic_array[ni.number];
11556   dynamic_array[ni.number - 1] = 543;
11557
11558   // work around unused variable warnings
11559   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11560           || dynamic_array[ni.number - 1] != 543);
11561
11562   ;
11563   return 0;
11564 }
11565 _ACEOF
11566 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11567 do
11568   CC="$ac_save_CC $ac_arg"
11569   if ac_fn_c_try_compile "$LINENO"; then :
11570   ac_cv_prog_cc_c99=$ac_arg
11571 fi
11572 rm -f core conftest.err conftest.$ac_objext
11573   test "x$ac_cv_prog_cc_c99" != "xno" && break
11574 done
11575 rm -f conftest.$ac_ext
11576 CC=$ac_save_CC
11577
11578 fi
11579 # AC_CACHE_VAL
11580 case "x$ac_cv_prog_cc_c99" in
11581   x)
11582     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11583 $as_echo "none needed" >&6; } ;;
11584   xno)
11585     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11586 $as_echo "unsupported" >&6; } ;;
11587   *)
11588     CC="$CC $ac_cv_prog_cc_c99"
11589     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11590 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11591 esac
11592 if test "x$ac_cv_prog_cc_c99" != xno; then :
11593
11594 fi
11595
11596
11597
11598
11599
11600
11601 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11602 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11603   CLANGCC="yes"
11604 else
11605   CLANGCC="no"
11606 fi
11607
11608 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11609 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11610   INTELCC="yes"
11611 else
11612   INTELCC="no"
11613 fi
11614
11615 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11616 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11617   SUNCC="yes"
11618 else
11619   SUNCC="no"
11620 fi
11621
11622
11623
11624
11625
11626
11627
11628
11629 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11630         if test -n "$ac_tool_prefix"; then
11631   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11632 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11634 $as_echo_n "checking for $ac_word... " >&6; }
11635 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11636   $as_echo_n "(cached) " >&6
11637 else
11638   case $PKG_CONFIG in
11639   [\\/]* | ?:[\\/]*)
11640   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11641   ;;
11642   *)
11643   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11644 for as_dir in $PATH
11645 do
11646   IFS=$as_save_IFS
11647   test -z "$as_dir" && as_dir=.
11648     for ac_exec_ext in '' $ac_executable_extensions; do
11649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11650     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11652     break 2
11653   fi
11654 done
11655   done
11656 IFS=$as_save_IFS
11657
11658   ;;
11659 esac
11660 fi
11661 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11662 if test -n "$PKG_CONFIG"; then
11663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11664 $as_echo "$PKG_CONFIG" >&6; }
11665 else
11666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11667 $as_echo "no" >&6; }
11668 fi
11669
11670
11671 fi
11672 if test -z "$ac_cv_path_PKG_CONFIG"; then
11673   ac_pt_PKG_CONFIG=$PKG_CONFIG
11674   # Extract the first word of "pkg-config", so it can be a program name with args.
11675 set dummy pkg-config; ac_word=$2
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11677 $as_echo_n "checking for $ac_word... " >&6; }
11678 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11679   $as_echo_n "(cached) " >&6
11680 else
11681   case $ac_pt_PKG_CONFIG in
11682   [\\/]* | ?:[\\/]*)
11683   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11684   ;;
11685   *)
11686   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11687 for as_dir in $PATH
11688 do
11689   IFS=$as_save_IFS
11690   test -z "$as_dir" && as_dir=.
11691     for ac_exec_ext in '' $ac_executable_extensions; do
11692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11693     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11695     break 2
11696   fi
11697 done
11698   done
11699 IFS=$as_save_IFS
11700
11701   ;;
11702 esac
11703 fi
11704 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11705 if test -n "$ac_pt_PKG_CONFIG"; then
11706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11707 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11708 else
11709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11710 $as_echo "no" >&6; }
11711 fi
11712
11713   if test "x$ac_pt_PKG_CONFIG" = x; then
11714     PKG_CONFIG=""
11715   else
11716     case $cross_compiling:$ac_tool_warned in
11717 yes:)
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11720 ac_tool_warned=yes ;;
11721 esac
11722     PKG_CONFIG=$ac_pt_PKG_CONFIG
11723   fi
11724 else
11725   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11726 fi
11727
11728 fi
11729 if test -n "$PKG_CONFIG"; then
11730         _pkg_min_version=0.9.0
11731         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11732 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11733         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11734                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11735 $as_echo "yes" >&6; }
11736         else
11737                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11738 $as_echo "no" >&6; }
11739                 PKG_CONFIG=""
11740         fi
11741 fi
11742
11743
11744
11745
11746
11747 # Check whether --enable-selective-werror was given.
11748 if test "${enable_selective_werror+set}" = set; then :
11749   enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11750 else
11751   SELECTIVE_WERROR=yes
11752 fi
11753
11754
11755
11756
11757
11758 # -v is too short to test reliably with XORG_TESTSET_CFLAG
11759 if test "x$SUNCC" = "xyes"; then
11760     BASE_CFLAGS="-v"
11761 else
11762     BASE_CFLAGS=""
11763 fi
11764
11765 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779 xorg_testset_save_CFLAGS="$CFLAGS"
11780
11781 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11782         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11783         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11784 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11785 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11786   $as_echo_n "(cached) " >&6
11787 else
11788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11789 /* end confdefs.h.  */
11790 int i;
11791 _ACEOF
11792 if ac_fn_c_try_compile "$LINENO"; then :
11793   xorg_cv_cc_flag_unknown_warning_option=yes
11794 else
11795   xorg_cv_cc_flag_unknown_warning_option=no
11796 fi
11797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11798 fi
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11800 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11801         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11802         CFLAGS="$xorg_testset_save_CFLAGS"
11803 fi
11804
11805 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11806         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11807                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11808         fi
11809         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11810         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11811 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11812 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11813   $as_echo_n "(cached) " >&6
11814 else
11815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11816 /* end confdefs.h.  */
11817 int i;
11818 _ACEOF
11819 if ac_fn_c_try_compile "$LINENO"; then :
11820   xorg_cv_cc_flag_unused_command_line_argument=yes
11821 else
11822   xorg_cv_cc_flag_unused_command_line_argument=no
11823 fi
11824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11825 fi
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11827 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11828         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11829         CFLAGS="$xorg_testset_save_CFLAGS"
11830 fi
11831
11832 found="no"
11833
11834         if test $found = "no" ; then
11835                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11836                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11837                 fi
11838
11839                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11840                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11841                 fi
11842
11843                 CFLAGS="$CFLAGS -Wall"
11844
11845                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
11846 $as_echo_n "checking if $CC supports -Wall... " >&6; }
11847                 cacheid=xorg_cv_cc_flag__Wall
11848                 if eval \${$cacheid+:} false; then :
11849   $as_echo_n "(cached) " >&6
11850 else
11851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11852 /* end confdefs.h.  */
11853 int i;
11854 int
11855 main ()
11856 {
11857
11858   ;
11859   return 0;
11860 }
11861 _ACEOF
11862 if ac_fn_c_try_link "$LINENO"; then :
11863   eval $cacheid=yes
11864 else
11865   eval $cacheid=no
11866 fi
11867 rm -f core conftest.err conftest.$ac_objext \
11868     conftest$ac_exeext conftest.$ac_ext
11869 fi
11870
11871
11872                 CFLAGS="$xorg_testset_save_CFLAGS"
11873
11874                 eval supported=\$$cacheid
11875                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11876 $as_echo "$supported" >&6; }
11877                 if test "$supported" = "yes" ; then
11878                         BASE_CFLAGS="$BASE_CFLAGS -Wall"
11879                         found="yes"
11880                 fi
11881         fi
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897 xorg_testset_save_CFLAGS="$CFLAGS"
11898
11899 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11900         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11901         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11902 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11903 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11904   $as_echo_n "(cached) " >&6
11905 else
11906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11907 /* end confdefs.h.  */
11908 int i;
11909 _ACEOF
11910 if ac_fn_c_try_compile "$LINENO"; then :
11911   xorg_cv_cc_flag_unknown_warning_option=yes
11912 else
11913   xorg_cv_cc_flag_unknown_warning_option=no
11914 fi
11915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11916 fi
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11918 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11919         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11920         CFLAGS="$xorg_testset_save_CFLAGS"
11921 fi
11922
11923 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11924         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11925                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11926         fi
11927         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11928         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11929 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11930 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11931   $as_echo_n "(cached) " >&6
11932 else
11933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11934 /* end confdefs.h.  */
11935 int i;
11936 _ACEOF
11937 if ac_fn_c_try_compile "$LINENO"; then :
11938   xorg_cv_cc_flag_unused_command_line_argument=yes
11939 else
11940   xorg_cv_cc_flag_unused_command_line_argument=no
11941 fi
11942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11943 fi
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11945 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11946         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11947         CFLAGS="$xorg_testset_save_CFLAGS"
11948 fi
11949
11950 found="no"
11951
11952         if test $found = "no" ; then
11953                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11954                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11955                 fi
11956
11957                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11958                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11959                 fi
11960
11961                 CFLAGS="$CFLAGS -Wpointer-arith"
11962
11963                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
11964 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
11965                 cacheid=xorg_cv_cc_flag__Wpointer_arith
11966                 if eval \${$cacheid+:} false; then :
11967   $as_echo_n "(cached) " >&6
11968 else
11969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11970 /* end confdefs.h.  */
11971 int i;
11972 int
11973 main ()
11974 {
11975
11976   ;
11977   return 0;
11978 }
11979 _ACEOF
11980 if ac_fn_c_try_link "$LINENO"; then :
11981   eval $cacheid=yes
11982 else
11983   eval $cacheid=no
11984 fi
11985 rm -f core conftest.err conftest.$ac_objext \
11986     conftest$ac_exeext conftest.$ac_ext
11987 fi
11988
11989
11990                 CFLAGS="$xorg_testset_save_CFLAGS"
11991
11992                 eval supported=\$$cacheid
11993                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11994 $as_echo "$supported" >&6; }
11995                 if test "$supported" = "yes" ; then
11996                         BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
11997                         found="yes"
11998                 fi
11999         fi
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015 xorg_testset_save_CFLAGS="$CFLAGS"
12016
12017 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12018         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12019         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12020 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12021 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12022   $as_echo_n "(cached) " >&6
12023 else
12024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12025 /* end confdefs.h.  */
12026 int i;
12027 _ACEOF
12028 if ac_fn_c_try_compile "$LINENO"; then :
12029   xorg_cv_cc_flag_unknown_warning_option=yes
12030 else
12031   xorg_cv_cc_flag_unknown_warning_option=no
12032 fi
12033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12034 fi
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12036 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12037         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12038         CFLAGS="$xorg_testset_save_CFLAGS"
12039 fi
12040
12041 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12042         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12043                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12044         fi
12045         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12046         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12047 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12048 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12049   $as_echo_n "(cached) " >&6
12050 else
12051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12052 /* end confdefs.h.  */
12053 int i;
12054 _ACEOF
12055 if ac_fn_c_try_compile "$LINENO"; then :
12056   xorg_cv_cc_flag_unused_command_line_argument=yes
12057 else
12058   xorg_cv_cc_flag_unused_command_line_argument=no
12059 fi
12060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12061 fi
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12063 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12064         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12065         CFLAGS="$xorg_testset_save_CFLAGS"
12066 fi
12067
12068 found="no"
12069
12070         if test $found = "no" ; then
12071                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12072                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12073                 fi
12074
12075                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12076                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12077                 fi
12078
12079                 CFLAGS="$CFLAGS -Wmissing-declarations"
12080
12081                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12082 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12083                 cacheid=xorg_cv_cc_flag__Wmissing_declarations
12084                 if eval \${$cacheid+:} false; then :
12085   $as_echo_n "(cached) " >&6
12086 else
12087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12088 /* end confdefs.h.  */
12089 int i;
12090 int
12091 main ()
12092 {
12093
12094   ;
12095   return 0;
12096 }
12097 _ACEOF
12098 if ac_fn_c_try_link "$LINENO"; then :
12099   eval $cacheid=yes
12100 else
12101   eval $cacheid=no
12102 fi
12103 rm -f core conftest.err conftest.$ac_objext \
12104     conftest$ac_exeext conftest.$ac_ext
12105 fi
12106
12107
12108                 CFLAGS="$xorg_testset_save_CFLAGS"
12109
12110                 eval supported=\$$cacheid
12111                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12112 $as_echo "$supported" >&6; }
12113                 if test "$supported" = "yes" ; then
12114                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12115                         found="yes"
12116                 fi
12117         fi
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133 xorg_testset_save_CFLAGS="$CFLAGS"
12134
12135 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12136         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12137         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12138 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12139 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12140   $as_echo_n "(cached) " >&6
12141 else
12142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12143 /* end confdefs.h.  */
12144 int i;
12145 _ACEOF
12146 if ac_fn_c_try_compile "$LINENO"; then :
12147   xorg_cv_cc_flag_unknown_warning_option=yes
12148 else
12149   xorg_cv_cc_flag_unknown_warning_option=no
12150 fi
12151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12152 fi
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12154 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12155         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12156         CFLAGS="$xorg_testset_save_CFLAGS"
12157 fi
12158
12159 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12160         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12161                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12162         fi
12163         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12164         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12165 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12166 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12167   $as_echo_n "(cached) " >&6
12168 else
12169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12170 /* end confdefs.h.  */
12171 int i;
12172 _ACEOF
12173 if ac_fn_c_try_compile "$LINENO"; then :
12174   xorg_cv_cc_flag_unused_command_line_argument=yes
12175 else
12176   xorg_cv_cc_flag_unused_command_line_argument=no
12177 fi
12178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12179 fi
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12181 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12182         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12183         CFLAGS="$xorg_testset_save_CFLAGS"
12184 fi
12185
12186 found="no"
12187
12188         if test $found = "no" ; then
12189                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12190                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12191                 fi
12192
12193                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12194                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12195                 fi
12196
12197                 CFLAGS="$CFLAGS -Wformat=2"
12198
12199                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12200 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12201                 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
12202                 if eval \${$cacheid+:} false; then :
12203   $as_echo_n "(cached) " >&6
12204 else
12205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12206 /* end confdefs.h.  */
12207 int i;
12208 int
12209 main ()
12210 {
12211
12212   ;
12213   return 0;
12214 }
12215 _ACEOF
12216 if ac_fn_c_try_link "$LINENO"; then :
12217   eval $cacheid=yes
12218 else
12219   eval $cacheid=no
12220 fi
12221 rm -f core conftest.err conftest.$ac_objext \
12222     conftest$ac_exeext conftest.$ac_ext
12223 fi
12224
12225
12226                 CFLAGS="$xorg_testset_save_CFLAGS"
12227
12228                 eval supported=\$$cacheid
12229                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12230 $as_echo "$supported" >&6; }
12231                 if test "$supported" = "yes" ; then
12232                         BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12233                         found="yes"
12234                 fi
12235         fi
12236
12237         if test $found = "no" ; then
12238                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12239                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12240                 fi
12241
12242                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12243                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12244                 fi
12245
12246                 CFLAGS="$CFLAGS -Wformat"
12247
12248                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12249 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12250                 cacheid=xorg_cv_cc_flag__Wformat
12251                 if eval \${$cacheid+:} false; then :
12252   $as_echo_n "(cached) " >&6
12253 else
12254   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12255 /* end confdefs.h.  */
12256 int i;
12257 int
12258 main ()
12259 {
12260
12261   ;
12262   return 0;
12263 }
12264 _ACEOF
12265 if ac_fn_c_try_link "$LINENO"; then :
12266   eval $cacheid=yes
12267 else
12268   eval $cacheid=no
12269 fi
12270 rm -f core conftest.err conftest.$ac_objext \
12271     conftest$ac_exeext conftest.$ac_ext
12272 fi
12273
12274
12275                 CFLAGS="$xorg_testset_save_CFLAGS"
12276
12277                 eval supported=\$$cacheid
12278                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12279 $as_echo "$supported" >&6; }
12280                 if test "$supported" = "yes" ; then
12281                         BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12282                         found="yes"
12283                 fi
12284         fi
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302 xorg_testset_save_CFLAGS="$CFLAGS"
12303
12304 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12305         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12306         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12307 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12308 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12309   $as_echo_n "(cached) " >&6
12310 else
12311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12312 /* end confdefs.h.  */
12313 int i;
12314 _ACEOF
12315 if ac_fn_c_try_compile "$LINENO"; then :
12316   xorg_cv_cc_flag_unknown_warning_option=yes
12317 else
12318   xorg_cv_cc_flag_unknown_warning_option=no
12319 fi
12320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12321 fi
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12323 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12324         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12325         CFLAGS="$xorg_testset_save_CFLAGS"
12326 fi
12327
12328 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12329         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12330                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12331         fi
12332         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12333         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12334 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12335 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12336   $as_echo_n "(cached) " >&6
12337 else
12338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339 /* end confdefs.h.  */
12340 int i;
12341 _ACEOF
12342 if ac_fn_c_try_compile "$LINENO"; then :
12343   xorg_cv_cc_flag_unused_command_line_argument=yes
12344 else
12345   xorg_cv_cc_flag_unused_command_line_argument=no
12346 fi
12347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12348 fi
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12350 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12351         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12352         CFLAGS="$xorg_testset_save_CFLAGS"
12353 fi
12354
12355 found="no"
12356
12357         if test $found = "no" ; then
12358                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12359                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12360                 fi
12361
12362                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12363                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12364                 fi
12365
12366                 CFLAGS="$CFLAGS -Wstrict-prototypes"
12367
12368                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12369 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12370                 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12371                 if eval \${$cacheid+:} false; then :
12372   $as_echo_n "(cached) " >&6
12373 else
12374   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12375 /* end confdefs.h.  */
12376 int i;
12377 int
12378 main ()
12379 {
12380
12381   ;
12382   return 0;
12383 }
12384 _ACEOF
12385 if ac_fn_c_try_link "$LINENO"; then :
12386   eval $cacheid=yes
12387 else
12388   eval $cacheid=no
12389 fi
12390 rm -f core conftest.err conftest.$ac_objext \
12391     conftest$ac_exeext conftest.$ac_ext
12392 fi
12393
12394
12395                 CFLAGS="$xorg_testset_save_CFLAGS"
12396
12397                 eval supported=\$$cacheid
12398                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12399 $as_echo "$supported" >&6; }
12400                 if test "$supported" = "yes" ; then
12401                         BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12402                         found="yes"
12403                 fi
12404         fi
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420 xorg_testset_save_CFLAGS="$CFLAGS"
12421
12422 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12423         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12424         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12425 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12426 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12427   $as_echo_n "(cached) " >&6
12428 else
12429   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12430 /* end confdefs.h.  */
12431 int i;
12432 _ACEOF
12433 if ac_fn_c_try_compile "$LINENO"; then :
12434   xorg_cv_cc_flag_unknown_warning_option=yes
12435 else
12436   xorg_cv_cc_flag_unknown_warning_option=no
12437 fi
12438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12439 fi
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12441 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12442         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12443         CFLAGS="$xorg_testset_save_CFLAGS"
12444 fi
12445
12446 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12447         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12448                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12449         fi
12450         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12451         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12452 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12453 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12454   $as_echo_n "(cached) " >&6
12455 else
12456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12457 /* end confdefs.h.  */
12458 int i;
12459 _ACEOF
12460 if ac_fn_c_try_compile "$LINENO"; then :
12461   xorg_cv_cc_flag_unused_command_line_argument=yes
12462 else
12463   xorg_cv_cc_flag_unused_command_line_argument=no
12464 fi
12465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12466 fi
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12468 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12469         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12470         CFLAGS="$xorg_testset_save_CFLAGS"
12471 fi
12472
12473 found="no"
12474
12475         if test $found = "no" ; then
12476                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12477                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12478                 fi
12479
12480                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12481                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12482                 fi
12483
12484                 CFLAGS="$CFLAGS -Wmissing-prototypes"
12485
12486                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12487 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12488                 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12489                 if eval \${$cacheid+:} false; then :
12490   $as_echo_n "(cached) " >&6
12491 else
12492   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12493 /* end confdefs.h.  */
12494 int i;
12495 int
12496 main ()
12497 {
12498
12499   ;
12500   return 0;
12501 }
12502 _ACEOF
12503 if ac_fn_c_try_link "$LINENO"; then :
12504   eval $cacheid=yes
12505 else
12506   eval $cacheid=no
12507 fi
12508 rm -f core conftest.err conftest.$ac_objext \
12509     conftest$ac_exeext conftest.$ac_ext
12510 fi
12511
12512
12513                 CFLAGS="$xorg_testset_save_CFLAGS"
12514
12515                 eval supported=\$$cacheid
12516                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12517 $as_echo "$supported" >&6; }
12518                 if test "$supported" = "yes" ; then
12519                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12520                         found="yes"
12521                 fi
12522         fi
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538 xorg_testset_save_CFLAGS="$CFLAGS"
12539
12540 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12541         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12542         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12543 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12544 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12545   $as_echo_n "(cached) " >&6
12546 else
12547   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12548 /* end confdefs.h.  */
12549 int i;
12550 _ACEOF
12551 if ac_fn_c_try_compile "$LINENO"; then :
12552   xorg_cv_cc_flag_unknown_warning_option=yes
12553 else
12554   xorg_cv_cc_flag_unknown_warning_option=no
12555 fi
12556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12557 fi
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12559 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12560         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12561         CFLAGS="$xorg_testset_save_CFLAGS"
12562 fi
12563
12564 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12565         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12566                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12567         fi
12568         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12569         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12570 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12571 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12572   $as_echo_n "(cached) " >&6
12573 else
12574   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12575 /* end confdefs.h.  */
12576 int i;
12577 _ACEOF
12578 if ac_fn_c_try_compile "$LINENO"; then :
12579   xorg_cv_cc_flag_unused_command_line_argument=yes
12580 else
12581   xorg_cv_cc_flag_unused_command_line_argument=no
12582 fi
12583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12584 fi
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12586 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12587         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12588         CFLAGS="$xorg_testset_save_CFLAGS"
12589 fi
12590
12591 found="no"
12592
12593         if test $found = "no" ; then
12594                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12595                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12596                 fi
12597
12598                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12599                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12600                 fi
12601
12602                 CFLAGS="$CFLAGS -Wnested-externs"
12603
12604                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12605 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12606                 cacheid=xorg_cv_cc_flag__Wnested_externs
12607                 if eval \${$cacheid+:} false; then :
12608   $as_echo_n "(cached) " >&6
12609 else
12610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12611 /* end confdefs.h.  */
12612 int i;
12613 int
12614 main ()
12615 {
12616
12617   ;
12618   return 0;
12619 }
12620 _ACEOF
12621 if ac_fn_c_try_link "$LINENO"; then :
12622   eval $cacheid=yes
12623 else
12624   eval $cacheid=no
12625 fi
12626 rm -f core conftest.err conftest.$ac_objext \
12627     conftest$ac_exeext conftest.$ac_ext
12628 fi
12629
12630
12631                 CFLAGS="$xorg_testset_save_CFLAGS"
12632
12633                 eval supported=\$$cacheid
12634                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12635 $as_echo "$supported" >&6; }
12636                 if test "$supported" = "yes" ; then
12637                         BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12638                         found="yes"
12639                 fi
12640         fi
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656 xorg_testset_save_CFLAGS="$CFLAGS"
12657
12658 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12659         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12660         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12661 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12662 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12663   $as_echo_n "(cached) " >&6
12664 else
12665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12666 /* end confdefs.h.  */
12667 int i;
12668 _ACEOF
12669 if ac_fn_c_try_compile "$LINENO"; then :
12670   xorg_cv_cc_flag_unknown_warning_option=yes
12671 else
12672   xorg_cv_cc_flag_unknown_warning_option=no
12673 fi
12674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12675 fi
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12677 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12678         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12679         CFLAGS="$xorg_testset_save_CFLAGS"
12680 fi
12681
12682 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12683         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12684                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12685         fi
12686         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12687         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12688 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12689 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12690   $as_echo_n "(cached) " >&6
12691 else
12692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12693 /* end confdefs.h.  */
12694 int i;
12695 _ACEOF
12696 if ac_fn_c_try_compile "$LINENO"; then :
12697   xorg_cv_cc_flag_unused_command_line_argument=yes
12698 else
12699   xorg_cv_cc_flag_unused_command_line_argument=no
12700 fi
12701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12702 fi
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12704 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12705         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12706         CFLAGS="$xorg_testset_save_CFLAGS"
12707 fi
12708
12709 found="no"
12710
12711         if test $found = "no" ; then
12712                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12713                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12714                 fi
12715
12716                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12717                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12718                 fi
12719
12720                 CFLAGS="$CFLAGS -Wbad-function-cast"
12721
12722                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12723 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12724                 cacheid=xorg_cv_cc_flag__Wbad_function_cast
12725                 if eval \${$cacheid+:} false; then :
12726   $as_echo_n "(cached) " >&6
12727 else
12728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12729 /* end confdefs.h.  */
12730 int i;
12731 int
12732 main ()
12733 {
12734
12735   ;
12736   return 0;
12737 }
12738 _ACEOF
12739 if ac_fn_c_try_link "$LINENO"; then :
12740   eval $cacheid=yes
12741 else
12742   eval $cacheid=no
12743 fi
12744 rm -f core conftest.err conftest.$ac_objext \
12745     conftest$ac_exeext conftest.$ac_ext
12746 fi
12747
12748
12749                 CFLAGS="$xorg_testset_save_CFLAGS"
12750
12751                 eval supported=\$$cacheid
12752                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12753 $as_echo "$supported" >&6; }
12754                 if test "$supported" = "yes" ; then
12755                         BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12756                         found="yes"
12757                 fi
12758         fi
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774 xorg_testset_save_CFLAGS="$CFLAGS"
12775
12776 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12777         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12778         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12779 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12780 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12781   $as_echo_n "(cached) " >&6
12782 else
12783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12784 /* end confdefs.h.  */
12785 int i;
12786 _ACEOF
12787 if ac_fn_c_try_compile "$LINENO"; then :
12788   xorg_cv_cc_flag_unknown_warning_option=yes
12789 else
12790   xorg_cv_cc_flag_unknown_warning_option=no
12791 fi
12792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12793 fi
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12795 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12796         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12797         CFLAGS="$xorg_testset_save_CFLAGS"
12798 fi
12799
12800 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12801         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12802                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12803         fi
12804         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12805         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12806 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12807 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12808   $as_echo_n "(cached) " >&6
12809 else
12810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12811 /* end confdefs.h.  */
12812 int i;
12813 _ACEOF
12814 if ac_fn_c_try_compile "$LINENO"; then :
12815   xorg_cv_cc_flag_unused_command_line_argument=yes
12816 else
12817   xorg_cv_cc_flag_unused_command_line_argument=no
12818 fi
12819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12820 fi
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12822 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12823         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12824         CFLAGS="$xorg_testset_save_CFLAGS"
12825 fi
12826
12827 found="no"
12828
12829         if test $found = "no" ; then
12830                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12831                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12832                 fi
12833
12834                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12835                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12836                 fi
12837
12838                 CFLAGS="$CFLAGS -Wold-style-definition"
12839
12840                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12841 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12842                 cacheid=xorg_cv_cc_flag__Wold_style_definition
12843                 if eval \${$cacheid+:} false; then :
12844   $as_echo_n "(cached) " >&6
12845 else
12846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12847 /* end confdefs.h.  */
12848 int i;
12849 int
12850 main ()
12851 {
12852
12853   ;
12854   return 0;
12855 }
12856 _ACEOF
12857 if ac_fn_c_try_link "$LINENO"; then :
12858   eval $cacheid=yes
12859 else
12860   eval $cacheid=no
12861 fi
12862 rm -f core conftest.err conftest.$ac_objext \
12863     conftest$ac_exeext conftest.$ac_ext
12864 fi
12865
12866
12867                 CFLAGS="$xorg_testset_save_CFLAGS"
12868
12869                 eval supported=\$$cacheid
12870                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12871 $as_echo "$supported" >&6; }
12872                 if test "$supported" = "yes" ; then
12873                         BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12874                         found="yes"
12875                 fi
12876         fi
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892 xorg_testset_save_CFLAGS="$CFLAGS"
12893
12894 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12895         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12896         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12897 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12898 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12899   $as_echo_n "(cached) " >&6
12900 else
12901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12902 /* end confdefs.h.  */
12903 int i;
12904 _ACEOF
12905 if ac_fn_c_try_compile "$LINENO"; then :
12906   xorg_cv_cc_flag_unknown_warning_option=yes
12907 else
12908   xorg_cv_cc_flag_unknown_warning_option=no
12909 fi
12910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12911 fi
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12913 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12914         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12915         CFLAGS="$xorg_testset_save_CFLAGS"
12916 fi
12917
12918 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12919         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12920                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12921         fi
12922         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12923         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12924 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12925 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12926   $as_echo_n "(cached) " >&6
12927 else
12928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12929 /* end confdefs.h.  */
12930 int i;
12931 _ACEOF
12932 if ac_fn_c_try_compile "$LINENO"; then :
12933   xorg_cv_cc_flag_unused_command_line_argument=yes
12934 else
12935   xorg_cv_cc_flag_unused_command_line_argument=no
12936 fi
12937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12938 fi
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12940 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12941         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12942         CFLAGS="$xorg_testset_save_CFLAGS"
12943 fi
12944
12945 found="no"
12946
12947         if test $found = "no" ; then
12948                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12949                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12950                 fi
12951
12952                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12953                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12954                 fi
12955
12956                 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12957
12958                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
12959 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
12960                 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
12961                 if eval \${$cacheid+:} false; then :
12962   $as_echo_n "(cached) " >&6
12963 else
12964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12965 /* end confdefs.h.  */
12966 int i;
12967 int
12968 main ()
12969 {
12970
12971   ;
12972   return 0;
12973 }
12974 _ACEOF
12975 if ac_fn_c_try_link "$LINENO"; then :
12976   eval $cacheid=yes
12977 else
12978   eval $cacheid=no
12979 fi
12980 rm -f core conftest.err conftest.$ac_objext \
12981     conftest$ac_exeext conftest.$ac_ext
12982 fi
12983
12984
12985                 CFLAGS="$xorg_testset_save_CFLAGS"
12986
12987                 eval supported=\$$cacheid
12988                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12989 $as_echo "$supported" >&6; }
12990                 if test "$supported" = "yes" ; then
12991                         BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
12992                         found="yes"
12993                 fi
12994         fi
12995
12996
12997
12998
12999
13000 # This chunk adds additional warnings that could catch undesired effects.
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014 xorg_testset_save_CFLAGS="$CFLAGS"
13015
13016 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13017         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13018         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13019 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13020 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13021   $as_echo_n "(cached) " >&6
13022 else
13023   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13024 /* end confdefs.h.  */
13025 int i;
13026 _ACEOF
13027 if ac_fn_c_try_compile "$LINENO"; then :
13028   xorg_cv_cc_flag_unknown_warning_option=yes
13029 else
13030   xorg_cv_cc_flag_unknown_warning_option=no
13031 fi
13032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13033 fi
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13035 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13036         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13037         CFLAGS="$xorg_testset_save_CFLAGS"
13038 fi
13039
13040 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13041         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13042                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13043         fi
13044         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13045         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13046 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13047 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13048   $as_echo_n "(cached) " >&6
13049 else
13050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13051 /* end confdefs.h.  */
13052 int i;
13053 _ACEOF
13054 if ac_fn_c_try_compile "$LINENO"; then :
13055   xorg_cv_cc_flag_unused_command_line_argument=yes
13056 else
13057   xorg_cv_cc_flag_unused_command_line_argument=no
13058 fi
13059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13060 fi
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13062 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13063         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13064         CFLAGS="$xorg_testset_save_CFLAGS"
13065 fi
13066
13067 found="no"
13068
13069         if test $found = "no" ; then
13070                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13071                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13072                 fi
13073
13074                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13075                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13076                 fi
13077
13078                 CFLAGS="$CFLAGS -Wunused"
13079
13080                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13081 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
13082                 cacheid=xorg_cv_cc_flag__Wunused
13083                 if eval \${$cacheid+:} false; then :
13084   $as_echo_n "(cached) " >&6
13085 else
13086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13087 /* end confdefs.h.  */
13088 int i;
13089 int
13090 main ()
13091 {
13092
13093   ;
13094   return 0;
13095 }
13096 _ACEOF
13097 if ac_fn_c_try_link "$LINENO"; then :
13098   eval $cacheid=yes
13099 else
13100   eval $cacheid=no
13101 fi
13102 rm -f core conftest.err conftest.$ac_objext \
13103     conftest$ac_exeext conftest.$ac_ext
13104 fi
13105
13106
13107                 CFLAGS="$xorg_testset_save_CFLAGS"
13108
13109                 eval supported=\$$cacheid
13110                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13111 $as_echo "$supported" >&6; }
13112                 if test "$supported" = "yes" ; then
13113                         BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13114                         found="yes"
13115                 fi
13116         fi
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132 xorg_testset_save_CFLAGS="$CFLAGS"
13133
13134 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13135         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13136         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13137 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13138 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13139   $as_echo_n "(cached) " >&6
13140 else
13141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13142 /* end confdefs.h.  */
13143 int i;
13144 _ACEOF
13145 if ac_fn_c_try_compile "$LINENO"; then :
13146   xorg_cv_cc_flag_unknown_warning_option=yes
13147 else
13148   xorg_cv_cc_flag_unknown_warning_option=no
13149 fi
13150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13151 fi
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13153 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13154         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13155         CFLAGS="$xorg_testset_save_CFLAGS"
13156 fi
13157
13158 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13159         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13160                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13161         fi
13162         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13163         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13164 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13165 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13166   $as_echo_n "(cached) " >&6
13167 else
13168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13169 /* end confdefs.h.  */
13170 int i;
13171 _ACEOF
13172 if ac_fn_c_try_compile "$LINENO"; then :
13173   xorg_cv_cc_flag_unused_command_line_argument=yes
13174 else
13175   xorg_cv_cc_flag_unused_command_line_argument=no
13176 fi
13177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13178 fi
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13180 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13181         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13182         CFLAGS="$xorg_testset_save_CFLAGS"
13183 fi
13184
13185 found="no"
13186
13187         if test $found = "no" ; then
13188                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13189                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13190                 fi
13191
13192                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13193                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13194                 fi
13195
13196                 CFLAGS="$CFLAGS -Wuninitialized"
13197
13198                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13199 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13200                 cacheid=xorg_cv_cc_flag__Wuninitialized
13201                 if eval \${$cacheid+:} false; then :
13202   $as_echo_n "(cached) " >&6
13203 else
13204   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13205 /* end confdefs.h.  */
13206 int i;
13207 int
13208 main ()
13209 {
13210
13211   ;
13212   return 0;
13213 }
13214 _ACEOF
13215 if ac_fn_c_try_link "$LINENO"; then :
13216   eval $cacheid=yes
13217 else
13218   eval $cacheid=no
13219 fi
13220 rm -f core conftest.err conftest.$ac_objext \
13221     conftest$ac_exeext conftest.$ac_ext
13222 fi
13223
13224
13225                 CFLAGS="$xorg_testset_save_CFLAGS"
13226
13227                 eval supported=\$$cacheid
13228                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13229 $as_echo "$supported" >&6; }
13230                 if test "$supported" = "yes" ; then
13231                         BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13232                         found="yes"
13233                 fi
13234         fi
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250 xorg_testset_save_CFLAGS="$CFLAGS"
13251
13252 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13253         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13254         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13255 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13256 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13257   $as_echo_n "(cached) " >&6
13258 else
13259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13260 /* end confdefs.h.  */
13261 int i;
13262 _ACEOF
13263 if ac_fn_c_try_compile "$LINENO"; then :
13264   xorg_cv_cc_flag_unknown_warning_option=yes
13265 else
13266   xorg_cv_cc_flag_unknown_warning_option=no
13267 fi
13268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13269 fi
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13271 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13272         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13273         CFLAGS="$xorg_testset_save_CFLAGS"
13274 fi
13275
13276 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13277         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13278                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13279         fi
13280         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13281         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13282 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13283 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13284   $as_echo_n "(cached) " >&6
13285 else
13286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13287 /* end confdefs.h.  */
13288 int i;
13289 _ACEOF
13290 if ac_fn_c_try_compile "$LINENO"; then :
13291   xorg_cv_cc_flag_unused_command_line_argument=yes
13292 else
13293   xorg_cv_cc_flag_unused_command_line_argument=no
13294 fi
13295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13296 fi
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13298 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13299         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13300         CFLAGS="$xorg_testset_save_CFLAGS"
13301 fi
13302
13303 found="no"
13304
13305         if test $found = "no" ; then
13306                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13307                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13308                 fi
13309
13310                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13311                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13312                 fi
13313
13314                 CFLAGS="$CFLAGS -Wshadow"
13315
13316                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13317 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13318                 cacheid=xorg_cv_cc_flag__Wshadow
13319                 if eval \${$cacheid+:} false; then :
13320   $as_echo_n "(cached) " >&6
13321 else
13322   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13323 /* end confdefs.h.  */
13324 int i;
13325 int
13326 main ()
13327 {
13328
13329   ;
13330   return 0;
13331 }
13332 _ACEOF
13333 if ac_fn_c_try_link "$LINENO"; then :
13334   eval $cacheid=yes
13335 else
13336   eval $cacheid=no
13337 fi
13338 rm -f core conftest.err conftest.$ac_objext \
13339     conftest$ac_exeext conftest.$ac_ext
13340 fi
13341
13342
13343                 CFLAGS="$xorg_testset_save_CFLAGS"
13344
13345                 eval supported=\$$cacheid
13346                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13347 $as_echo "$supported" >&6; }
13348                 if test "$supported" = "yes" ; then
13349                         BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13350                         found="yes"
13351                 fi
13352         fi
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368 xorg_testset_save_CFLAGS="$CFLAGS"
13369
13370 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13371         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13372         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13373 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13374 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13375   $as_echo_n "(cached) " >&6
13376 else
13377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13378 /* end confdefs.h.  */
13379 int i;
13380 _ACEOF
13381 if ac_fn_c_try_compile "$LINENO"; then :
13382   xorg_cv_cc_flag_unknown_warning_option=yes
13383 else
13384   xorg_cv_cc_flag_unknown_warning_option=no
13385 fi
13386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13387 fi
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13389 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13390         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13391         CFLAGS="$xorg_testset_save_CFLAGS"
13392 fi
13393
13394 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13395         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13396                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13397         fi
13398         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13399         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13400 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13401 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13402   $as_echo_n "(cached) " >&6
13403 else
13404   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13405 /* end confdefs.h.  */
13406 int i;
13407 _ACEOF
13408 if ac_fn_c_try_compile "$LINENO"; then :
13409   xorg_cv_cc_flag_unused_command_line_argument=yes
13410 else
13411   xorg_cv_cc_flag_unused_command_line_argument=no
13412 fi
13413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13414 fi
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13416 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13417         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13418         CFLAGS="$xorg_testset_save_CFLAGS"
13419 fi
13420
13421 found="no"
13422
13423         if test $found = "no" ; then
13424                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13425                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13426                 fi
13427
13428                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13429                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13430                 fi
13431
13432                 CFLAGS="$CFLAGS -Wcast-qual"
13433
13434                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
13435 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
13436                 cacheid=xorg_cv_cc_flag__Wcast_qual
13437                 if eval \${$cacheid+:} 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 int
13444 main ()
13445 {
13446
13447   ;
13448   return 0;
13449 }
13450 _ACEOF
13451 if ac_fn_c_try_link "$LINENO"; then :
13452   eval $cacheid=yes
13453 else
13454   eval $cacheid=no
13455 fi
13456 rm -f core conftest.err conftest.$ac_objext \
13457     conftest$ac_exeext conftest.$ac_ext
13458 fi
13459
13460
13461                 CFLAGS="$xorg_testset_save_CFLAGS"
13462
13463                 eval supported=\$$cacheid
13464                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13465 $as_echo "$supported" >&6; }
13466                 if test "$supported" = "yes" ; then
13467                         BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13468                         found="yes"
13469                 fi
13470         fi
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486 xorg_testset_save_CFLAGS="$CFLAGS"
13487
13488 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13489         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13490         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13491 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13492 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13493   $as_echo_n "(cached) " >&6
13494 else
13495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13496 /* end confdefs.h.  */
13497 int i;
13498 _ACEOF
13499 if ac_fn_c_try_compile "$LINENO"; then :
13500   xorg_cv_cc_flag_unknown_warning_option=yes
13501 else
13502   xorg_cv_cc_flag_unknown_warning_option=no
13503 fi
13504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13505 fi
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13507 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13508         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13509         CFLAGS="$xorg_testset_save_CFLAGS"
13510 fi
13511
13512 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13513         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13514                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13515         fi
13516         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13517         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13518 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13519 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13520   $as_echo_n "(cached) " >&6
13521 else
13522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13523 /* end confdefs.h.  */
13524 int i;
13525 _ACEOF
13526 if ac_fn_c_try_compile "$LINENO"; then :
13527   xorg_cv_cc_flag_unused_command_line_argument=yes
13528 else
13529   xorg_cv_cc_flag_unused_command_line_argument=no
13530 fi
13531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13532 fi
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13534 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13535         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13536         CFLAGS="$xorg_testset_save_CFLAGS"
13537 fi
13538
13539 found="no"
13540
13541         if test $found = "no" ; then
13542                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13543                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13544                 fi
13545
13546                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13547                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13548                 fi
13549
13550                 CFLAGS="$CFLAGS -Wmissing-noreturn"
13551
13552                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13553 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13554                 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13555                 if eval \${$cacheid+:} false; then :
13556   $as_echo_n "(cached) " >&6
13557 else
13558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13559 /* end confdefs.h.  */
13560 int i;
13561 int
13562 main ()
13563 {
13564
13565   ;
13566   return 0;
13567 }
13568 _ACEOF
13569 if ac_fn_c_try_link "$LINENO"; then :
13570   eval $cacheid=yes
13571 else
13572   eval $cacheid=no
13573 fi
13574 rm -f core conftest.err conftest.$ac_objext \
13575     conftest$ac_exeext conftest.$ac_ext
13576 fi
13577
13578
13579                 CFLAGS="$xorg_testset_save_CFLAGS"
13580
13581                 eval supported=\$$cacheid
13582                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13583 $as_echo "$supported" >&6; }
13584                 if test "$supported" = "yes" ; then
13585                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13586                         found="yes"
13587                 fi
13588         fi
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604 xorg_testset_save_CFLAGS="$CFLAGS"
13605
13606 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13607         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13608         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13609 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13610 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13611   $as_echo_n "(cached) " >&6
13612 else
13613   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13614 /* end confdefs.h.  */
13615 int i;
13616 _ACEOF
13617 if ac_fn_c_try_compile "$LINENO"; then :
13618   xorg_cv_cc_flag_unknown_warning_option=yes
13619 else
13620   xorg_cv_cc_flag_unknown_warning_option=no
13621 fi
13622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13623 fi
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13625 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13626         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13627         CFLAGS="$xorg_testset_save_CFLAGS"
13628 fi
13629
13630 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13631         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13632                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13633         fi
13634         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13635         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13636 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13637 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13638   $as_echo_n "(cached) " >&6
13639 else
13640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13641 /* end confdefs.h.  */
13642 int i;
13643 _ACEOF
13644 if ac_fn_c_try_compile "$LINENO"; then :
13645   xorg_cv_cc_flag_unused_command_line_argument=yes
13646 else
13647   xorg_cv_cc_flag_unused_command_line_argument=no
13648 fi
13649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13650 fi
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13652 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13653         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13654         CFLAGS="$xorg_testset_save_CFLAGS"
13655 fi
13656
13657 found="no"
13658
13659         if test $found = "no" ; then
13660                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13661                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13662                 fi
13663
13664                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13665                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13666                 fi
13667
13668                 CFLAGS="$CFLAGS -Wmissing-format-attribute"
13669
13670                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13671 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13672                 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
13673                 if eval \${$cacheid+:} false; then :
13674   $as_echo_n "(cached) " >&6
13675 else
13676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13677 /* end confdefs.h.  */
13678 int i;
13679 int
13680 main ()
13681 {
13682
13683   ;
13684   return 0;
13685 }
13686 _ACEOF
13687 if ac_fn_c_try_link "$LINENO"; then :
13688   eval $cacheid=yes
13689 else
13690   eval $cacheid=no
13691 fi
13692 rm -f core conftest.err conftest.$ac_objext \
13693     conftest$ac_exeext conftest.$ac_ext
13694 fi
13695
13696
13697                 CFLAGS="$xorg_testset_save_CFLAGS"
13698
13699                 eval supported=\$$cacheid
13700                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13701 $as_echo "$supported" >&6; }
13702                 if test "$supported" = "yes" ; then
13703                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13704                         found="yes"
13705                 fi
13706         fi
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722 xorg_testset_save_CFLAGS="$CFLAGS"
13723
13724 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13725         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13726         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13727 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13728 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13729   $as_echo_n "(cached) " >&6
13730 else
13731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13732 /* end confdefs.h.  */
13733 int i;
13734 _ACEOF
13735 if ac_fn_c_try_compile "$LINENO"; then :
13736   xorg_cv_cc_flag_unknown_warning_option=yes
13737 else
13738   xorg_cv_cc_flag_unknown_warning_option=no
13739 fi
13740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13741 fi
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13743 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13744         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13745         CFLAGS="$xorg_testset_save_CFLAGS"
13746 fi
13747
13748 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13749         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13750                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13751         fi
13752         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13753         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13754 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13755 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13756   $as_echo_n "(cached) " >&6
13757 else
13758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13759 /* end confdefs.h.  */
13760 int i;
13761 _ACEOF
13762 if ac_fn_c_try_compile "$LINENO"; then :
13763   xorg_cv_cc_flag_unused_command_line_argument=yes
13764 else
13765   xorg_cv_cc_flag_unused_command_line_argument=no
13766 fi
13767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13768 fi
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13770 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13771         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13772         CFLAGS="$xorg_testset_save_CFLAGS"
13773 fi
13774
13775 found="no"
13776
13777         if test $found = "no" ; then
13778                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13779                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13780                 fi
13781
13782                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13783                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13784                 fi
13785
13786                 CFLAGS="$CFLAGS -Wredundant-decls"
13787
13788                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13789 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13790                 cacheid=xorg_cv_cc_flag__Wredundant_decls
13791                 if eval \${$cacheid+:} false; then :
13792   $as_echo_n "(cached) " >&6
13793 else
13794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13795 /* end confdefs.h.  */
13796 int i;
13797 int
13798 main ()
13799 {
13800
13801   ;
13802   return 0;
13803 }
13804 _ACEOF
13805 if ac_fn_c_try_link "$LINENO"; then :
13806   eval $cacheid=yes
13807 else
13808   eval $cacheid=no
13809 fi
13810 rm -f core conftest.err conftest.$ac_objext \
13811     conftest$ac_exeext conftest.$ac_ext
13812 fi
13813
13814
13815                 CFLAGS="$xorg_testset_save_CFLAGS"
13816
13817                 eval supported=\$$cacheid
13818                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13819 $as_echo "$supported" >&6; }
13820                 if test "$supported" = "yes" ; then
13821                         BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13822                         found="yes"
13823                 fi
13824         fi
13825
13826
13827
13828 # These are currently disabled because they are noisy.  They will be enabled
13829 # in the future once the codebase is sufficiently modernized to silence
13830 # them.  For now, I don't want them to drown out the other warnings.
13831 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
13832 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13833 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13834
13835 # Turn some warnings into errors, so we don't accidently get successful builds
13836 # when there are problems that should be fixed.
13837
13838 if test "x$SELECTIVE_WERROR" = "xyes" ; then
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852 xorg_testset_save_CFLAGS="$CFLAGS"
13853
13854 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13855         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13856         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13857 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13858 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13859   $as_echo_n "(cached) " >&6
13860 else
13861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13862 /* end confdefs.h.  */
13863 int i;
13864 _ACEOF
13865 if ac_fn_c_try_compile "$LINENO"; then :
13866   xorg_cv_cc_flag_unknown_warning_option=yes
13867 else
13868   xorg_cv_cc_flag_unknown_warning_option=no
13869 fi
13870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13871 fi
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13873 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13874         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13875         CFLAGS="$xorg_testset_save_CFLAGS"
13876 fi
13877
13878 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13879         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13880                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13881         fi
13882         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13883         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13884 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13885 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13886   $as_echo_n "(cached) " >&6
13887 else
13888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13889 /* end confdefs.h.  */
13890 int i;
13891 _ACEOF
13892 if ac_fn_c_try_compile "$LINENO"; then :
13893   xorg_cv_cc_flag_unused_command_line_argument=yes
13894 else
13895   xorg_cv_cc_flag_unused_command_line_argument=no
13896 fi
13897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13898 fi
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13900 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13901         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13902         CFLAGS="$xorg_testset_save_CFLAGS"
13903 fi
13904
13905 found="no"
13906
13907         if test $found = "no" ; then
13908                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13909                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13910                 fi
13911
13912                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13913                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13914                 fi
13915
13916                 CFLAGS="$CFLAGS -Werror=implicit"
13917
13918                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
13919 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
13920                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
13921                 if eval \${$cacheid+:} false; then :
13922   $as_echo_n "(cached) " >&6
13923 else
13924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13925 /* end confdefs.h.  */
13926 int i;
13927 int
13928 main ()
13929 {
13930
13931   ;
13932   return 0;
13933 }
13934 _ACEOF
13935 if ac_fn_c_try_link "$LINENO"; then :
13936   eval $cacheid=yes
13937 else
13938   eval $cacheid=no
13939 fi
13940 rm -f core conftest.err conftest.$ac_objext \
13941     conftest$ac_exeext conftest.$ac_ext
13942 fi
13943
13944
13945                 CFLAGS="$xorg_testset_save_CFLAGS"
13946
13947                 eval supported=\$$cacheid
13948                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13949 $as_echo "$supported" >&6; }
13950                 if test "$supported" = "yes" ; then
13951                         BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
13952                         found="yes"
13953                 fi
13954         fi
13955
13956         if test $found = "no" ; then
13957                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13958                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13959                 fi
13960
13961                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13962                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13963                 fi
13964
13965                 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13966
13967                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
13968 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
13969                 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
13970                 if eval \${$cacheid+:} false; then :
13971   $as_echo_n "(cached) " >&6
13972 else
13973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13974 /* end confdefs.h.  */
13975 int i;
13976 int
13977 main ()
13978 {
13979
13980   ;
13981   return 0;
13982 }
13983 _ACEOF
13984 if ac_fn_c_try_link "$LINENO"; then :
13985   eval $cacheid=yes
13986 else
13987   eval $cacheid=no
13988 fi
13989 rm -f core conftest.err conftest.$ac_objext \
13990     conftest$ac_exeext conftest.$ac_ext
13991 fi
13992
13993
13994                 CFLAGS="$xorg_testset_save_CFLAGS"
13995
13996                 eval supported=\$$cacheid
13997                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13998 $as_echo "$supported" >&6; }
13999                 if test "$supported" = "yes" ; then
14000                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14001                         found="yes"
14002                 fi
14003         fi
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019 xorg_testset_save_CFLAGS="$CFLAGS"
14020
14021 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14022         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14023         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14024 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14025 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14026   $as_echo_n "(cached) " >&6
14027 else
14028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14029 /* end confdefs.h.  */
14030 int i;
14031 _ACEOF
14032 if ac_fn_c_try_compile "$LINENO"; then :
14033   xorg_cv_cc_flag_unknown_warning_option=yes
14034 else
14035   xorg_cv_cc_flag_unknown_warning_option=no
14036 fi
14037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14038 fi
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14040 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14041         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14042         CFLAGS="$xorg_testset_save_CFLAGS"
14043 fi
14044
14045 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14046         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14047                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14048         fi
14049         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14050         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14051 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14052 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14053   $as_echo_n "(cached) " >&6
14054 else
14055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14056 /* end confdefs.h.  */
14057 int i;
14058 _ACEOF
14059 if ac_fn_c_try_compile "$LINENO"; then :
14060   xorg_cv_cc_flag_unused_command_line_argument=yes
14061 else
14062   xorg_cv_cc_flag_unused_command_line_argument=no
14063 fi
14064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14065 fi
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14067 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14068         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14069         CFLAGS="$xorg_testset_save_CFLAGS"
14070 fi
14071
14072 found="no"
14073
14074         if test $found = "no" ; then
14075                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14076                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14077                 fi
14078
14079                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14080                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14081                 fi
14082
14083                 CFLAGS="$CFLAGS -Werror=nonnull"
14084
14085                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14086 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14087                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
14088                 if eval \${$cacheid+:} false; then :
14089   $as_echo_n "(cached) " >&6
14090 else
14091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14092 /* end confdefs.h.  */
14093 int i;
14094 int
14095 main ()
14096 {
14097
14098   ;
14099   return 0;
14100 }
14101 _ACEOF
14102 if ac_fn_c_try_link "$LINENO"; then :
14103   eval $cacheid=yes
14104 else
14105   eval $cacheid=no
14106 fi
14107 rm -f core conftest.err conftest.$ac_objext \
14108     conftest$ac_exeext conftest.$ac_ext
14109 fi
14110
14111
14112                 CFLAGS="$xorg_testset_save_CFLAGS"
14113
14114                 eval supported=\$$cacheid
14115                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14116 $as_echo "$supported" >&6; }
14117                 if test "$supported" = "yes" ; then
14118                         BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14119                         found="yes"
14120                 fi
14121         fi
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137 xorg_testset_save_CFLAGS="$CFLAGS"
14138
14139 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14140         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14141         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14142 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14143 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14144   $as_echo_n "(cached) " >&6
14145 else
14146   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14147 /* end confdefs.h.  */
14148 int i;
14149 _ACEOF
14150 if ac_fn_c_try_compile "$LINENO"; then :
14151   xorg_cv_cc_flag_unknown_warning_option=yes
14152 else
14153   xorg_cv_cc_flag_unknown_warning_option=no
14154 fi
14155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14156 fi
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14158 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14159         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14160         CFLAGS="$xorg_testset_save_CFLAGS"
14161 fi
14162
14163 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14164         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14165                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14166         fi
14167         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14168         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14169 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14170 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14171   $as_echo_n "(cached) " >&6
14172 else
14173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14174 /* end confdefs.h.  */
14175 int i;
14176 _ACEOF
14177 if ac_fn_c_try_compile "$LINENO"; then :
14178   xorg_cv_cc_flag_unused_command_line_argument=yes
14179 else
14180   xorg_cv_cc_flag_unused_command_line_argument=no
14181 fi
14182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14183 fi
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14185 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14186         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14187         CFLAGS="$xorg_testset_save_CFLAGS"
14188 fi
14189
14190 found="no"
14191
14192         if test $found = "no" ; then
14193                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14194                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14195                 fi
14196
14197                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14198                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14199                 fi
14200
14201                 CFLAGS="$CFLAGS -Werror=init-self"
14202
14203                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14204 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14205                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
14206                 if eval \${$cacheid+:} false; then :
14207   $as_echo_n "(cached) " >&6
14208 else
14209   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14210 /* end confdefs.h.  */
14211 int i;
14212 int
14213 main ()
14214 {
14215
14216   ;
14217   return 0;
14218 }
14219 _ACEOF
14220 if ac_fn_c_try_link "$LINENO"; then :
14221   eval $cacheid=yes
14222 else
14223   eval $cacheid=no
14224 fi
14225 rm -f core conftest.err conftest.$ac_objext \
14226     conftest$ac_exeext conftest.$ac_ext
14227 fi
14228
14229
14230                 CFLAGS="$xorg_testset_save_CFLAGS"
14231
14232                 eval supported=\$$cacheid
14233                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14234 $as_echo "$supported" >&6; }
14235                 if test "$supported" = "yes" ; then
14236                         BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14237                         found="yes"
14238                 fi
14239         fi
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255 xorg_testset_save_CFLAGS="$CFLAGS"
14256
14257 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14258         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14259         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14260 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14261 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14262   $as_echo_n "(cached) " >&6
14263 else
14264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14265 /* end confdefs.h.  */
14266 int i;
14267 _ACEOF
14268 if ac_fn_c_try_compile "$LINENO"; then :
14269   xorg_cv_cc_flag_unknown_warning_option=yes
14270 else
14271   xorg_cv_cc_flag_unknown_warning_option=no
14272 fi
14273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14274 fi
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14276 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14277         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14278         CFLAGS="$xorg_testset_save_CFLAGS"
14279 fi
14280
14281 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14282         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14283                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14284         fi
14285         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14286         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14287 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14288 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14289   $as_echo_n "(cached) " >&6
14290 else
14291   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14292 /* end confdefs.h.  */
14293 int i;
14294 _ACEOF
14295 if ac_fn_c_try_compile "$LINENO"; then :
14296   xorg_cv_cc_flag_unused_command_line_argument=yes
14297 else
14298   xorg_cv_cc_flag_unused_command_line_argument=no
14299 fi
14300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14301 fi
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14303 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14304         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14305         CFLAGS="$xorg_testset_save_CFLAGS"
14306 fi
14307
14308 found="no"
14309
14310         if test $found = "no" ; then
14311                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14312                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14313                 fi
14314
14315                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14316                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14317                 fi
14318
14319                 CFLAGS="$CFLAGS -Werror=main"
14320
14321                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14322 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14323                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
14324                 if eval \${$cacheid+:} false; then :
14325   $as_echo_n "(cached) " >&6
14326 else
14327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14328 /* end confdefs.h.  */
14329 int i;
14330 int
14331 main ()
14332 {
14333
14334   ;
14335   return 0;
14336 }
14337 _ACEOF
14338 if ac_fn_c_try_link "$LINENO"; then :
14339   eval $cacheid=yes
14340 else
14341   eval $cacheid=no
14342 fi
14343 rm -f core conftest.err conftest.$ac_objext \
14344     conftest$ac_exeext conftest.$ac_ext
14345 fi
14346
14347
14348                 CFLAGS="$xorg_testset_save_CFLAGS"
14349
14350                 eval supported=\$$cacheid
14351                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14352 $as_echo "$supported" >&6; }
14353                 if test "$supported" = "yes" ; then
14354                         BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14355                         found="yes"
14356                 fi
14357         fi
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373 xorg_testset_save_CFLAGS="$CFLAGS"
14374
14375 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14376         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14377         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14378 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14379 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14380   $as_echo_n "(cached) " >&6
14381 else
14382   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14383 /* end confdefs.h.  */
14384 int i;
14385 _ACEOF
14386 if ac_fn_c_try_compile "$LINENO"; then :
14387   xorg_cv_cc_flag_unknown_warning_option=yes
14388 else
14389   xorg_cv_cc_flag_unknown_warning_option=no
14390 fi
14391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14392 fi
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14394 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14395         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14396         CFLAGS="$xorg_testset_save_CFLAGS"
14397 fi
14398
14399 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14400         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14401                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14402         fi
14403         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14404         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14405 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14406 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14407   $as_echo_n "(cached) " >&6
14408 else
14409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14410 /* end confdefs.h.  */
14411 int i;
14412 _ACEOF
14413 if ac_fn_c_try_compile "$LINENO"; then :
14414   xorg_cv_cc_flag_unused_command_line_argument=yes
14415 else
14416   xorg_cv_cc_flag_unused_command_line_argument=no
14417 fi
14418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14419 fi
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14421 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14422         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14423         CFLAGS="$xorg_testset_save_CFLAGS"
14424 fi
14425
14426 found="no"
14427
14428         if test $found = "no" ; then
14429                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14430                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14431                 fi
14432
14433                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14434                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14435                 fi
14436
14437                 CFLAGS="$CFLAGS -Werror=missing-braces"
14438
14439                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14440 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14441                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
14442                 if eval \${$cacheid+:} false; then :
14443   $as_echo_n "(cached) " >&6
14444 else
14445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14446 /* end confdefs.h.  */
14447 int i;
14448 int
14449 main ()
14450 {
14451
14452   ;
14453   return 0;
14454 }
14455 _ACEOF
14456 if ac_fn_c_try_link "$LINENO"; then :
14457   eval $cacheid=yes
14458 else
14459   eval $cacheid=no
14460 fi
14461 rm -f core conftest.err conftest.$ac_objext \
14462     conftest$ac_exeext conftest.$ac_ext
14463 fi
14464
14465
14466                 CFLAGS="$xorg_testset_save_CFLAGS"
14467
14468                 eval supported=\$$cacheid
14469                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14470 $as_echo "$supported" >&6; }
14471                 if test "$supported" = "yes" ; then
14472                         BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14473                         found="yes"
14474                 fi
14475         fi
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491 xorg_testset_save_CFLAGS="$CFLAGS"
14492
14493 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14494         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14495         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14496 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14497 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14498   $as_echo_n "(cached) " >&6
14499 else
14500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14501 /* end confdefs.h.  */
14502 int i;
14503 _ACEOF
14504 if ac_fn_c_try_compile "$LINENO"; then :
14505   xorg_cv_cc_flag_unknown_warning_option=yes
14506 else
14507   xorg_cv_cc_flag_unknown_warning_option=no
14508 fi
14509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14510 fi
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14512 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14513         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14514         CFLAGS="$xorg_testset_save_CFLAGS"
14515 fi
14516
14517 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14518         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14519                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14520         fi
14521         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14522         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14523 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14524 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14525   $as_echo_n "(cached) " >&6
14526 else
14527   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14528 /* end confdefs.h.  */
14529 int i;
14530 _ACEOF
14531 if ac_fn_c_try_compile "$LINENO"; then :
14532   xorg_cv_cc_flag_unused_command_line_argument=yes
14533 else
14534   xorg_cv_cc_flag_unused_command_line_argument=no
14535 fi
14536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14537 fi
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14539 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14540         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14541         CFLAGS="$xorg_testset_save_CFLAGS"
14542 fi
14543
14544 found="no"
14545
14546         if test $found = "no" ; then
14547                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14548                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14549                 fi
14550
14551                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14552                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14553                 fi
14554
14555                 CFLAGS="$CFLAGS -Werror=sequence-point"
14556
14557                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14558 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14559                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
14560                 if eval \${$cacheid+:} false; then :
14561   $as_echo_n "(cached) " >&6
14562 else
14563   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14564 /* end confdefs.h.  */
14565 int i;
14566 int
14567 main ()
14568 {
14569
14570   ;
14571   return 0;
14572 }
14573 _ACEOF
14574 if ac_fn_c_try_link "$LINENO"; then :
14575   eval $cacheid=yes
14576 else
14577   eval $cacheid=no
14578 fi
14579 rm -f core conftest.err conftest.$ac_objext \
14580     conftest$ac_exeext conftest.$ac_ext
14581 fi
14582
14583
14584                 CFLAGS="$xorg_testset_save_CFLAGS"
14585
14586                 eval supported=\$$cacheid
14587                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14588 $as_echo "$supported" >&6; }
14589                 if test "$supported" = "yes" ; then
14590                         BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14591                         found="yes"
14592                 fi
14593         fi
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609 xorg_testset_save_CFLAGS="$CFLAGS"
14610
14611 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14612         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14613         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14614 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14615 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14616   $as_echo_n "(cached) " >&6
14617 else
14618   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14619 /* end confdefs.h.  */
14620 int i;
14621 _ACEOF
14622 if ac_fn_c_try_compile "$LINENO"; then :
14623   xorg_cv_cc_flag_unknown_warning_option=yes
14624 else
14625   xorg_cv_cc_flag_unknown_warning_option=no
14626 fi
14627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14628 fi
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14630 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14631         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14632         CFLAGS="$xorg_testset_save_CFLAGS"
14633 fi
14634
14635 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14636         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14637                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14638         fi
14639         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14640         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14641 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14642 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14643   $as_echo_n "(cached) " >&6
14644 else
14645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14646 /* end confdefs.h.  */
14647 int i;
14648 _ACEOF
14649 if ac_fn_c_try_compile "$LINENO"; then :
14650   xorg_cv_cc_flag_unused_command_line_argument=yes
14651 else
14652   xorg_cv_cc_flag_unused_command_line_argument=no
14653 fi
14654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14655 fi
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14657 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14658         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14659         CFLAGS="$xorg_testset_save_CFLAGS"
14660 fi
14661
14662 found="no"
14663
14664         if test $found = "no" ; then
14665                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14666                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14667                 fi
14668
14669                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14670                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14671                 fi
14672
14673                 CFLAGS="$CFLAGS -Werror=return-type"
14674
14675                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14676 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14677                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
14678                 if eval \${$cacheid+:} false; then :
14679   $as_echo_n "(cached) " >&6
14680 else
14681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14682 /* end confdefs.h.  */
14683 int i;
14684 int
14685 main ()
14686 {
14687
14688   ;
14689   return 0;
14690 }
14691 _ACEOF
14692 if ac_fn_c_try_link "$LINENO"; then :
14693   eval $cacheid=yes
14694 else
14695   eval $cacheid=no
14696 fi
14697 rm -f core conftest.err conftest.$ac_objext \
14698     conftest$ac_exeext conftest.$ac_ext
14699 fi
14700
14701
14702                 CFLAGS="$xorg_testset_save_CFLAGS"
14703
14704                 eval supported=\$$cacheid
14705                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14706 $as_echo "$supported" >&6; }
14707                 if test "$supported" = "yes" ; then
14708                         BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14709                         found="yes"
14710                 fi
14711         fi
14712
14713         if test $found = "no" ; then
14714                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14715                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14716                 fi
14717
14718                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14719                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14720                 fi
14721
14722                 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14723
14724                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14725 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14726                 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
14727                 if eval \${$cacheid+:} false; then :
14728   $as_echo_n "(cached) " >&6
14729 else
14730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14731 /* end confdefs.h.  */
14732 int i;
14733 int
14734 main ()
14735 {
14736
14737   ;
14738   return 0;
14739 }
14740 _ACEOF
14741 if ac_fn_c_try_link "$LINENO"; then :
14742   eval $cacheid=yes
14743 else
14744   eval $cacheid=no
14745 fi
14746 rm -f core conftest.err conftest.$ac_objext \
14747     conftest$ac_exeext conftest.$ac_ext
14748 fi
14749
14750
14751                 CFLAGS="$xorg_testset_save_CFLAGS"
14752
14753                 eval supported=\$$cacheid
14754                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14755 $as_echo "$supported" >&6; }
14756                 if test "$supported" = "yes" ; then
14757                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14758                         found="yes"
14759                 fi
14760         fi
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776 xorg_testset_save_CFLAGS="$CFLAGS"
14777
14778 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14779         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14780         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14781 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14782 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14783   $as_echo_n "(cached) " >&6
14784 else
14785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14786 /* end confdefs.h.  */
14787 int i;
14788 _ACEOF
14789 if ac_fn_c_try_compile "$LINENO"; then :
14790   xorg_cv_cc_flag_unknown_warning_option=yes
14791 else
14792   xorg_cv_cc_flag_unknown_warning_option=no
14793 fi
14794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14795 fi
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14797 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14798         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14799         CFLAGS="$xorg_testset_save_CFLAGS"
14800 fi
14801
14802 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14803         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14804                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14805         fi
14806         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14807         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14808 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14809 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14810   $as_echo_n "(cached) " >&6
14811 else
14812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14813 /* end confdefs.h.  */
14814 int i;
14815 _ACEOF
14816 if ac_fn_c_try_compile "$LINENO"; then :
14817   xorg_cv_cc_flag_unused_command_line_argument=yes
14818 else
14819   xorg_cv_cc_flag_unused_command_line_argument=no
14820 fi
14821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14822 fi
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14824 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14825         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14826         CFLAGS="$xorg_testset_save_CFLAGS"
14827 fi
14828
14829 found="no"
14830
14831         if test $found = "no" ; then
14832                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14833                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14834                 fi
14835
14836                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14837                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14838                 fi
14839
14840                 CFLAGS="$CFLAGS -Werror=trigraphs"
14841
14842                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14843 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14844                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
14845                 if eval \${$cacheid+:} false; then :
14846   $as_echo_n "(cached) " >&6
14847 else
14848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14849 /* end confdefs.h.  */
14850 int i;
14851 int
14852 main ()
14853 {
14854
14855   ;
14856   return 0;
14857 }
14858 _ACEOF
14859 if ac_fn_c_try_link "$LINENO"; then :
14860   eval $cacheid=yes
14861 else
14862   eval $cacheid=no
14863 fi
14864 rm -f core conftest.err conftest.$ac_objext \
14865     conftest$ac_exeext conftest.$ac_ext
14866 fi
14867
14868
14869                 CFLAGS="$xorg_testset_save_CFLAGS"
14870
14871                 eval supported=\$$cacheid
14872                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14873 $as_echo "$supported" >&6; }
14874                 if test "$supported" = "yes" ; then
14875                         BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14876                         found="yes"
14877                 fi
14878         fi
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894 xorg_testset_save_CFLAGS="$CFLAGS"
14895
14896 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14897         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14898         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14899 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14900 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14901   $as_echo_n "(cached) " >&6
14902 else
14903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14904 /* end confdefs.h.  */
14905 int i;
14906 _ACEOF
14907 if ac_fn_c_try_compile "$LINENO"; then :
14908   xorg_cv_cc_flag_unknown_warning_option=yes
14909 else
14910   xorg_cv_cc_flag_unknown_warning_option=no
14911 fi
14912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14913 fi
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14915 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14916         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14917         CFLAGS="$xorg_testset_save_CFLAGS"
14918 fi
14919
14920 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14921         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14922                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14923         fi
14924         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14925         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14926 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14927 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14928   $as_echo_n "(cached) " >&6
14929 else
14930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14931 /* end confdefs.h.  */
14932 int i;
14933 _ACEOF
14934 if ac_fn_c_try_compile "$LINENO"; then :
14935   xorg_cv_cc_flag_unused_command_line_argument=yes
14936 else
14937   xorg_cv_cc_flag_unused_command_line_argument=no
14938 fi
14939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14940 fi
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14942 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14943         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14944         CFLAGS="$xorg_testset_save_CFLAGS"
14945 fi
14946
14947 found="no"
14948
14949         if test $found = "no" ; then
14950                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14951                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14952                 fi
14953
14954                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14955                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14956                 fi
14957
14958                 CFLAGS="$CFLAGS -Werror=array-bounds"
14959
14960                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
14961 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
14962                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
14963                 if eval \${$cacheid+:} false; then :
14964   $as_echo_n "(cached) " >&6
14965 else
14966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14967 /* end confdefs.h.  */
14968 int i;
14969 int
14970 main ()
14971 {
14972
14973   ;
14974   return 0;
14975 }
14976 _ACEOF
14977 if ac_fn_c_try_link "$LINENO"; then :
14978   eval $cacheid=yes
14979 else
14980   eval $cacheid=no
14981 fi
14982 rm -f core conftest.err conftest.$ac_objext \
14983     conftest$ac_exeext conftest.$ac_ext
14984 fi
14985
14986
14987                 CFLAGS="$xorg_testset_save_CFLAGS"
14988
14989                 eval supported=\$$cacheid
14990                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14991 $as_echo "$supported" >&6; }
14992                 if test "$supported" = "yes" ; then
14993                         BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
14994                         found="yes"
14995                 fi
14996         fi
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012 xorg_testset_save_CFLAGS="$CFLAGS"
15013
15014 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15015         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15016         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15017 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15018 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15019   $as_echo_n "(cached) " >&6
15020 else
15021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15022 /* end confdefs.h.  */
15023 int i;
15024 _ACEOF
15025 if ac_fn_c_try_compile "$LINENO"; then :
15026   xorg_cv_cc_flag_unknown_warning_option=yes
15027 else
15028   xorg_cv_cc_flag_unknown_warning_option=no
15029 fi
15030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15031 fi
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15033 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15034         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15035         CFLAGS="$xorg_testset_save_CFLAGS"
15036 fi
15037
15038 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15039         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15040                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15041         fi
15042         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15043         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15044 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15045 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15046   $as_echo_n "(cached) " >&6
15047 else
15048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15049 /* end confdefs.h.  */
15050 int i;
15051 _ACEOF
15052 if ac_fn_c_try_compile "$LINENO"; then :
15053   xorg_cv_cc_flag_unused_command_line_argument=yes
15054 else
15055   xorg_cv_cc_flag_unused_command_line_argument=no
15056 fi
15057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15058 fi
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15060 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15061         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15062         CFLAGS="$xorg_testset_save_CFLAGS"
15063 fi
15064
15065 found="no"
15066
15067         if test $found = "no" ; then
15068                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15069                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15070                 fi
15071
15072                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15073                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15074                 fi
15075
15076                 CFLAGS="$CFLAGS -Werror=write-strings"
15077
15078                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15079 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15080                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
15081                 if eval \${$cacheid+:} false; then :
15082   $as_echo_n "(cached) " >&6
15083 else
15084   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15085 /* end confdefs.h.  */
15086 int i;
15087 int
15088 main ()
15089 {
15090
15091   ;
15092   return 0;
15093 }
15094 _ACEOF
15095 if ac_fn_c_try_link "$LINENO"; then :
15096   eval $cacheid=yes
15097 else
15098   eval $cacheid=no
15099 fi
15100 rm -f core conftest.err conftest.$ac_objext \
15101     conftest$ac_exeext conftest.$ac_ext
15102 fi
15103
15104
15105                 CFLAGS="$xorg_testset_save_CFLAGS"
15106
15107                 eval supported=\$$cacheid
15108                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15109 $as_echo "$supported" >&6; }
15110                 if test "$supported" = "yes" ; then
15111                         BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15112                         found="yes"
15113                 fi
15114         fi
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130 xorg_testset_save_CFLAGS="$CFLAGS"
15131
15132 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15133         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15134         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15135 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15136 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15137   $as_echo_n "(cached) " >&6
15138 else
15139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15140 /* end confdefs.h.  */
15141 int i;
15142 _ACEOF
15143 if ac_fn_c_try_compile "$LINENO"; then :
15144   xorg_cv_cc_flag_unknown_warning_option=yes
15145 else
15146   xorg_cv_cc_flag_unknown_warning_option=no
15147 fi
15148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15149 fi
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15151 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15152         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15153         CFLAGS="$xorg_testset_save_CFLAGS"
15154 fi
15155
15156 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15157         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15158                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15159         fi
15160         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15161         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15162 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15163 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15164   $as_echo_n "(cached) " >&6
15165 else
15166   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15167 /* end confdefs.h.  */
15168 int i;
15169 _ACEOF
15170 if ac_fn_c_try_compile "$LINENO"; then :
15171   xorg_cv_cc_flag_unused_command_line_argument=yes
15172 else
15173   xorg_cv_cc_flag_unused_command_line_argument=no
15174 fi
15175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15176 fi
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15178 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15179         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15180         CFLAGS="$xorg_testset_save_CFLAGS"
15181 fi
15182
15183 found="no"
15184
15185         if test $found = "no" ; then
15186                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15187                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15188                 fi
15189
15190                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15191                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15192                 fi
15193
15194                 CFLAGS="$CFLAGS -Werror=address"
15195
15196                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15197 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15198                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
15199                 if eval \${$cacheid+:} false; then :
15200   $as_echo_n "(cached) " >&6
15201 else
15202   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15203 /* end confdefs.h.  */
15204 int i;
15205 int
15206 main ()
15207 {
15208
15209   ;
15210   return 0;
15211 }
15212 _ACEOF
15213 if ac_fn_c_try_link "$LINENO"; then :
15214   eval $cacheid=yes
15215 else
15216   eval $cacheid=no
15217 fi
15218 rm -f core conftest.err conftest.$ac_objext \
15219     conftest$ac_exeext conftest.$ac_ext
15220 fi
15221
15222
15223                 CFLAGS="$xorg_testset_save_CFLAGS"
15224
15225                 eval supported=\$$cacheid
15226                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15227 $as_echo "$supported" >&6; }
15228                 if test "$supported" = "yes" ; then
15229                         BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15230                         found="yes"
15231                 fi
15232         fi
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248 xorg_testset_save_CFLAGS="$CFLAGS"
15249
15250 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15251         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15252         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15253 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15254 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15255   $as_echo_n "(cached) " >&6
15256 else
15257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15258 /* end confdefs.h.  */
15259 int i;
15260 _ACEOF
15261 if ac_fn_c_try_compile "$LINENO"; then :
15262   xorg_cv_cc_flag_unknown_warning_option=yes
15263 else
15264   xorg_cv_cc_flag_unknown_warning_option=no
15265 fi
15266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15267 fi
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15269 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15270         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15271         CFLAGS="$xorg_testset_save_CFLAGS"
15272 fi
15273
15274 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15275         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15276                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15277         fi
15278         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15279         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15280 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15281 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15282   $as_echo_n "(cached) " >&6
15283 else
15284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15285 /* end confdefs.h.  */
15286 int i;
15287 _ACEOF
15288 if ac_fn_c_try_compile "$LINENO"; then :
15289   xorg_cv_cc_flag_unused_command_line_argument=yes
15290 else
15291   xorg_cv_cc_flag_unused_command_line_argument=no
15292 fi
15293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15294 fi
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15296 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15297         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15298         CFLAGS="$xorg_testset_save_CFLAGS"
15299 fi
15300
15301 found="no"
15302
15303         if test $found = "no" ; then
15304                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15305                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15306                 fi
15307
15308                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15309                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15310                 fi
15311
15312                 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15313
15314                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15315 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15316                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
15317                 if eval \${$cacheid+:} false; then :
15318   $as_echo_n "(cached) " >&6
15319 else
15320   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15321 /* end confdefs.h.  */
15322 int i;
15323 int
15324 main ()
15325 {
15326
15327   ;
15328   return 0;
15329 }
15330 _ACEOF
15331 if ac_fn_c_try_link "$LINENO"; then :
15332   eval $cacheid=yes
15333 else
15334   eval $cacheid=no
15335 fi
15336 rm -f core conftest.err conftest.$ac_objext \
15337     conftest$ac_exeext conftest.$ac_ext
15338 fi
15339
15340
15341                 CFLAGS="$xorg_testset_save_CFLAGS"
15342
15343                 eval supported=\$$cacheid
15344                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15345 $as_echo "$supported" >&6; }
15346                 if test "$supported" = "yes" ; then
15347                         BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15348                         found="yes"
15349                 fi
15350         fi
15351
15352         if test $found = "no" ; then
15353                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15354                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15355                 fi
15356
15357                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15358                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15359                 fi
15360
15361                 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15362
15363                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15364 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15365                 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
15366                 if eval \${$cacheid+:} false; then :
15367   $as_echo_n "(cached) " >&6
15368 else
15369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15370 /* end confdefs.h.  */
15371 int i;
15372 int
15373 main ()
15374 {
15375
15376   ;
15377   return 0;
15378 }
15379 _ACEOF
15380 if ac_fn_c_try_link "$LINENO"; then :
15381   eval $cacheid=yes
15382 else
15383   eval $cacheid=no
15384 fi
15385 rm -f core conftest.err conftest.$ac_objext \
15386     conftest$ac_exeext conftest.$ac_ext
15387 fi
15388
15389
15390                 CFLAGS="$xorg_testset_save_CFLAGS"
15391
15392                 eval supported=\$$cacheid
15393                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15394 $as_echo "$supported" >&6; }
15395                 if test "$supported" = "yes" ; then
15396                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15397                         found="yes"
15398                 fi
15399         fi
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415 xorg_testset_save_CFLAGS="$CFLAGS"
15416
15417 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15418         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15419         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15420 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15421 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15422   $as_echo_n "(cached) " >&6
15423 else
15424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15425 /* end confdefs.h.  */
15426 int i;
15427 _ACEOF
15428 if ac_fn_c_try_compile "$LINENO"; then :
15429   xorg_cv_cc_flag_unknown_warning_option=yes
15430 else
15431   xorg_cv_cc_flag_unknown_warning_option=no
15432 fi
15433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15434 fi
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15436 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15437         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15438         CFLAGS="$xorg_testset_save_CFLAGS"
15439 fi
15440
15441 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15442         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15443                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15444         fi
15445         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15446         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15447 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15448 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15449   $as_echo_n "(cached) " >&6
15450 else
15451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15452 /* end confdefs.h.  */
15453 int i;
15454 _ACEOF
15455 if ac_fn_c_try_compile "$LINENO"; then :
15456   xorg_cv_cc_flag_unused_command_line_argument=yes
15457 else
15458   xorg_cv_cc_flag_unused_command_line_argument=no
15459 fi
15460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15461 fi
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15463 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15464         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15465         CFLAGS="$xorg_testset_save_CFLAGS"
15466 fi
15467
15468 found="no"
15469
15470         if test $found = "no" ; then
15471                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15472                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15473                 fi
15474
15475                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15476                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15477                 fi
15478
15479                 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15480
15481                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15482 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15483                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
15484                 if eval \${$cacheid+:} false; then :
15485   $as_echo_n "(cached) " >&6
15486 else
15487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15488 /* end confdefs.h.  */
15489 int i;
15490 int
15491 main ()
15492 {
15493
15494   ;
15495   return 0;
15496 }
15497 _ACEOF
15498 if ac_fn_c_try_link "$LINENO"; then :
15499   eval $cacheid=yes
15500 else
15501   eval $cacheid=no
15502 fi
15503 rm -f core conftest.err conftest.$ac_objext \
15504     conftest$ac_exeext conftest.$ac_ext
15505 fi
15506
15507
15508                 CFLAGS="$xorg_testset_save_CFLAGS"
15509
15510                 eval supported=\$$cacheid
15511                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15512 $as_echo "$supported" >&6; }
15513                 if test "$supported" = "yes" ; then
15514                         BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15515                         found="yes"
15516                 fi
15517         fi
15518
15519  # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15520 else
15521 { $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
15522 $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;}
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536 xorg_testset_save_CFLAGS="$CFLAGS"
15537
15538 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15539         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15540         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15541 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15542 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15543   $as_echo_n "(cached) " >&6
15544 else
15545   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15546 /* end confdefs.h.  */
15547 int i;
15548 _ACEOF
15549 if ac_fn_c_try_compile "$LINENO"; then :
15550   xorg_cv_cc_flag_unknown_warning_option=yes
15551 else
15552   xorg_cv_cc_flag_unknown_warning_option=no
15553 fi
15554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15555 fi
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15557 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15558         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15559         CFLAGS="$xorg_testset_save_CFLAGS"
15560 fi
15561
15562 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15563         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15564                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15565         fi
15566         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15567         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15568 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15569 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15570   $as_echo_n "(cached) " >&6
15571 else
15572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15573 /* end confdefs.h.  */
15574 int i;
15575 _ACEOF
15576 if ac_fn_c_try_compile "$LINENO"; then :
15577   xorg_cv_cc_flag_unused_command_line_argument=yes
15578 else
15579   xorg_cv_cc_flag_unused_command_line_argument=no
15580 fi
15581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15582 fi
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15584 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15585         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15586         CFLAGS="$xorg_testset_save_CFLAGS"
15587 fi
15588
15589 found="no"
15590
15591         if test $found = "no" ; then
15592                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15593                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15594                 fi
15595
15596                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15597                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15598                 fi
15599
15600                 CFLAGS="$CFLAGS -Wimplicit"
15601
15602                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15603 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15604                 cacheid=xorg_cv_cc_flag__Wimplicit
15605                 if eval \${$cacheid+:} false; then :
15606   $as_echo_n "(cached) " >&6
15607 else
15608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15609 /* end confdefs.h.  */
15610 int i;
15611 int
15612 main ()
15613 {
15614
15615   ;
15616   return 0;
15617 }
15618 _ACEOF
15619 if ac_fn_c_try_link "$LINENO"; then :
15620   eval $cacheid=yes
15621 else
15622   eval $cacheid=no
15623 fi
15624 rm -f core conftest.err conftest.$ac_objext \
15625     conftest$ac_exeext conftest.$ac_ext
15626 fi
15627
15628
15629                 CFLAGS="$xorg_testset_save_CFLAGS"
15630
15631                 eval supported=\$$cacheid
15632                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15633 $as_echo "$supported" >&6; }
15634                 if test "$supported" = "yes" ; then
15635                         BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15636                         found="yes"
15637                 fi
15638         fi
15639
15640
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_cc_unknown_warning_option" = "x" ; then
15657         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15658         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15659 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15660 if ${xorg_cv_cc_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_cc_flag_unknown_warning_option=yes
15669 else
15670   xorg_cv_cc_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_cc_flag_unknown_warning_option" >&5
15675 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15676         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15677         CFLAGS="$xorg_testset_save_CFLAGS"
15678 fi
15679
15680 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15681         if test "x$xorg_testset_cc_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 $CC supports -Werror=unused-command-line-argument" >&5
15686 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15687 if ${xorg_cv_cc_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_cc_flag_unused_command_line_argument=yes
15696 else
15697   xorg_cv_cc_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_cc_flag_unused_command_line_argument" >&5
15702 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15703         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_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 -Wnonnull"
15719
15720                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15721 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15722                 cacheid=xorg_cv_cc_flag__Wnonnull
15723                 if eval \${$cacheid+:} 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 $cacheid=yes
15739 else
15740   eval $cacheid=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=\$$cacheid
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 -Wnonnull"
15754                         found="yes"
15755                 fi
15756         fi
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772 xorg_testset_save_CFLAGS="$CFLAGS"
15773
15774 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15775         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15776         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15777 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15778 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15779   $as_echo_n "(cached) " >&6
15780 else
15781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15782 /* end confdefs.h.  */
15783 int i;
15784 _ACEOF
15785 if ac_fn_c_try_compile "$LINENO"; then :
15786   xorg_cv_cc_flag_unknown_warning_option=yes
15787 else
15788   xorg_cv_cc_flag_unknown_warning_option=no
15789 fi
15790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15791 fi
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15793 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15794         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15795         CFLAGS="$xorg_testset_save_CFLAGS"
15796 fi
15797
15798 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15799         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15800                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15801         fi
15802         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15803         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15804 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15805 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15806   $as_echo_n "(cached) " >&6
15807 else
15808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15809 /* end confdefs.h.  */
15810 int i;
15811 _ACEOF
15812 if ac_fn_c_try_compile "$LINENO"; then :
15813   xorg_cv_cc_flag_unused_command_line_argument=yes
15814 else
15815   xorg_cv_cc_flag_unused_command_line_argument=no
15816 fi
15817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15818 fi
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15820 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15821         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15822         CFLAGS="$xorg_testset_save_CFLAGS"
15823 fi
15824
15825 found="no"
15826
15827         if test $found = "no" ; then
15828                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15829                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15830                 fi
15831
15832                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15833                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15834                 fi
15835
15836                 CFLAGS="$CFLAGS -Winit-self"
15837
15838                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15839 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15840                 cacheid=xorg_cv_cc_flag__Winit_self
15841                 if eval \${$cacheid+:} false; then :
15842   $as_echo_n "(cached) " >&6
15843 else
15844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15845 /* end confdefs.h.  */
15846 int i;
15847 int
15848 main ()
15849 {
15850
15851   ;
15852   return 0;
15853 }
15854 _ACEOF
15855 if ac_fn_c_try_link "$LINENO"; then :
15856   eval $cacheid=yes
15857 else
15858   eval $cacheid=no
15859 fi
15860 rm -f core conftest.err conftest.$ac_objext \
15861     conftest$ac_exeext conftest.$ac_ext
15862 fi
15863
15864
15865                 CFLAGS="$xorg_testset_save_CFLAGS"
15866
15867                 eval supported=\$$cacheid
15868                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15869 $as_echo "$supported" >&6; }
15870                 if test "$supported" = "yes" ; then
15871                         BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15872                         found="yes"
15873                 fi
15874         fi
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890 xorg_testset_save_CFLAGS="$CFLAGS"
15891
15892 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15893         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15894         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15895 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15896 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15897   $as_echo_n "(cached) " >&6
15898 else
15899   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15900 /* end confdefs.h.  */
15901 int i;
15902 _ACEOF
15903 if ac_fn_c_try_compile "$LINENO"; then :
15904   xorg_cv_cc_flag_unknown_warning_option=yes
15905 else
15906   xorg_cv_cc_flag_unknown_warning_option=no
15907 fi
15908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15909 fi
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15911 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15912         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15913         CFLAGS="$xorg_testset_save_CFLAGS"
15914 fi
15915
15916 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15917         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15918                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15919         fi
15920         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15921         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15922 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15923 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15924   $as_echo_n "(cached) " >&6
15925 else
15926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15927 /* end confdefs.h.  */
15928 int i;
15929 _ACEOF
15930 if ac_fn_c_try_compile "$LINENO"; then :
15931   xorg_cv_cc_flag_unused_command_line_argument=yes
15932 else
15933   xorg_cv_cc_flag_unused_command_line_argument=no
15934 fi
15935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15936 fi
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15938 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15939         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15940         CFLAGS="$xorg_testset_save_CFLAGS"
15941 fi
15942
15943 found="no"
15944
15945         if test $found = "no" ; then
15946                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15947                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15948                 fi
15949
15950                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15951                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15952                 fi
15953
15954                 CFLAGS="$CFLAGS -Wmain"
15955
15956                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
15957 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
15958                 cacheid=xorg_cv_cc_flag__Wmain
15959                 if eval \${$cacheid+:} false; then :
15960   $as_echo_n "(cached) " >&6
15961 else
15962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15963 /* end confdefs.h.  */
15964 int i;
15965 int
15966 main ()
15967 {
15968
15969   ;
15970   return 0;
15971 }
15972 _ACEOF
15973 if ac_fn_c_try_link "$LINENO"; then :
15974   eval $cacheid=yes
15975 else
15976   eval $cacheid=no
15977 fi
15978 rm -f core conftest.err conftest.$ac_objext \
15979     conftest$ac_exeext conftest.$ac_ext
15980 fi
15981
15982
15983                 CFLAGS="$xorg_testset_save_CFLAGS"
15984
15985                 eval supported=\$$cacheid
15986                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15987 $as_echo "$supported" >&6; }
15988                 if test "$supported" = "yes" ; then
15989                         BASE_CFLAGS="$BASE_CFLAGS -Wmain"
15990                         found="yes"
15991                 fi
15992         fi
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008 xorg_testset_save_CFLAGS="$CFLAGS"
16009
16010 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16011         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16012         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16013 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16014 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16015   $as_echo_n "(cached) " >&6
16016 else
16017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16018 /* end confdefs.h.  */
16019 int i;
16020 _ACEOF
16021 if ac_fn_c_try_compile "$LINENO"; then :
16022   xorg_cv_cc_flag_unknown_warning_option=yes
16023 else
16024   xorg_cv_cc_flag_unknown_warning_option=no
16025 fi
16026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16027 fi
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16029 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16030         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16031         CFLAGS="$xorg_testset_save_CFLAGS"
16032 fi
16033
16034 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16035         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16036                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16037         fi
16038         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16039         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16040 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16041 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16042   $as_echo_n "(cached) " >&6
16043 else
16044   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16045 /* end confdefs.h.  */
16046 int i;
16047 _ACEOF
16048 if ac_fn_c_try_compile "$LINENO"; then :
16049   xorg_cv_cc_flag_unused_command_line_argument=yes
16050 else
16051   xorg_cv_cc_flag_unused_command_line_argument=no
16052 fi
16053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16054 fi
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16056 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16057         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16058         CFLAGS="$xorg_testset_save_CFLAGS"
16059 fi
16060
16061 found="no"
16062
16063         if test $found = "no" ; then
16064                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16065                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16066                 fi
16067
16068                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16069                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16070                 fi
16071
16072                 CFLAGS="$CFLAGS -Wmissing-braces"
16073
16074                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16075 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16076                 cacheid=xorg_cv_cc_flag__Wmissing_braces
16077                 if eval \${$cacheid+:} false; then :
16078   $as_echo_n "(cached) " >&6
16079 else
16080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16081 /* end confdefs.h.  */
16082 int i;
16083 int
16084 main ()
16085 {
16086
16087   ;
16088   return 0;
16089 }
16090 _ACEOF
16091 if ac_fn_c_try_link "$LINENO"; then :
16092   eval $cacheid=yes
16093 else
16094   eval $cacheid=no
16095 fi
16096 rm -f core conftest.err conftest.$ac_objext \
16097     conftest$ac_exeext conftest.$ac_ext
16098 fi
16099
16100
16101                 CFLAGS="$xorg_testset_save_CFLAGS"
16102
16103                 eval supported=\$$cacheid
16104                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16105 $as_echo "$supported" >&6; }
16106                 if test "$supported" = "yes" ; then
16107                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16108                         found="yes"
16109                 fi
16110         fi
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126 xorg_testset_save_CFLAGS="$CFLAGS"
16127
16128 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16129         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16130         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16131 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16132 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16133   $as_echo_n "(cached) " >&6
16134 else
16135   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16136 /* end confdefs.h.  */
16137 int i;
16138 _ACEOF
16139 if ac_fn_c_try_compile "$LINENO"; then :
16140   xorg_cv_cc_flag_unknown_warning_option=yes
16141 else
16142   xorg_cv_cc_flag_unknown_warning_option=no
16143 fi
16144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16145 fi
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16147 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16148         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16149         CFLAGS="$xorg_testset_save_CFLAGS"
16150 fi
16151
16152 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16153         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16154                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16155         fi
16156         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16157         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16158 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16159 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16160   $as_echo_n "(cached) " >&6
16161 else
16162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16163 /* end confdefs.h.  */
16164 int i;
16165 _ACEOF
16166 if ac_fn_c_try_compile "$LINENO"; then :
16167   xorg_cv_cc_flag_unused_command_line_argument=yes
16168 else
16169   xorg_cv_cc_flag_unused_command_line_argument=no
16170 fi
16171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16172 fi
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16174 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16175         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16176         CFLAGS="$xorg_testset_save_CFLAGS"
16177 fi
16178
16179 found="no"
16180
16181         if test $found = "no" ; then
16182                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16183                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16184                 fi
16185
16186                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16187                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16188                 fi
16189
16190                 CFLAGS="$CFLAGS -Wsequence-point"
16191
16192                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16193 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16194                 cacheid=xorg_cv_cc_flag__Wsequence_point
16195                 if eval \${$cacheid+:} false; then :
16196   $as_echo_n "(cached) " >&6
16197 else
16198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16199 /* end confdefs.h.  */
16200 int i;
16201 int
16202 main ()
16203 {
16204
16205   ;
16206   return 0;
16207 }
16208 _ACEOF
16209 if ac_fn_c_try_link "$LINENO"; then :
16210   eval $cacheid=yes
16211 else
16212   eval $cacheid=no
16213 fi
16214 rm -f core conftest.err conftest.$ac_objext \
16215     conftest$ac_exeext conftest.$ac_ext
16216 fi
16217
16218
16219                 CFLAGS="$xorg_testset_save_CFLAGS"
16220
16221                 eval supported=\$$cacheid
16222                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16223 $as_echo "$supported" >&6; }
16224                 if test "$supported" = "yes" ; then
16225                         BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16226                         found="yes"
16227                 fi
16228         fi
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244 xorg_testset_save_CFLAGS="$CFLAGS"
16245
16246 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16247         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16248         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16249 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16250 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16251   $as_echo_n "(cached) " >&6
16252 else
16253   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16254 /* end confdefs.h.  */
16255 int i;
16256 _ACEOF
16257 if ac_fn_c_try_compile "$LINENO"; then :
16258   xorg_cv_cc_flag_unknown_warning_option=yes
16259 else
16260   xorg_cv_cc_flag_unknown_warning_option=no
16261 fi
16262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16263 fi
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16265 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16266         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16267         CFLAGS="$xorg_testset_save_CFLAGS"
16268 fi
16269
16270 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16271         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16272                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16273         fi
16274         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16275         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16276 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16277 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16278   $as_echo_n "(cached) " >&6
16279 else
16280   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16281 /* end confdefs.h.  */
16282 int i;
16283 _ACEOF
16284 if ac_fn_c_try_compile "$LINENO"; then :
16285   xorg_cv_cc_flag_unused_command_line_argument=yes
16286 else
16287   xorg_cv_cc_flag_unused_command_line_argument=no
16288 fi
16289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16290 fi
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16292 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16293         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16294         CFLAGS="$xorg_testset_save_CFLAGS"
16295 fi
16296
16297 found="no"
16298
16299         if test $found = "no" ; then
16300                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16301                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16302                 fi
16303
16304                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16305                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16306                 fi
16307
16308                 CFLAGS="$CFLAGS -Wreturn-type"
16309
16310                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16311 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16312                 cacheid=xorg_cv_cc_flag__Wreturn_type
16313                 if eval \${$cacheid+:} false; then :
16314   $as_echo_n "(cached) " >&6
16315 else
16316   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16317 /* end confdefs.h.  */
16318 int i;
16319 int
16320 main ()
16321 {
16322
16323   ;
16324   return 0;
16325 }
16326 _ACEOF
16327 if ac_fn_c_try_link "$LINENO"; then :
16328   eval $cacheid=yes
16329 else
16330   eval $cacheid=no
16331 fi
16332 rm -f core conftest.err conftest.$ac_objext \
16333     conftest$ac_exeext conftest.$ac_ext
16334 fi
16335
16336
16337                 CFLAGS="$xorg_testset_save_CFLAGS"
16338
16339                 eval supported=\$$cacheid
16340                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16341 $as_echo "$supported" >&6; }
16342                 if test "$supported" = "yes" ; then
16343                         BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16344                         found="yes"
16345                 fi
16346         fi
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362 xorg_testset_save_CFLAGS="$CFLAGS"
16363
16364 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16365         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16366         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16367 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16368 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16369   $as_echo_n "(cached) " >&6
16370 else
16371   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16372 /* end confdefs.h.  */
16373 int i;
16374 _ACEOF
16375 if ac_fn_c_try_compile "$LINENO"; then :
16376   xorg_cv_cc_flag_unknown_warning_option=yes
16377 else
16378   xorg_cv_cc_flag_unknown_warning_option=no
16379 fi
16380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16381 fi
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16383 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16384         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16385         CFLAGS="$xorg_testset_save_CFLAGS"
16386 fi
16387
16388 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16389         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16390                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16391         fi
16392         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16393         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16394 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16395 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16396   $as_echo_n "(cached) " >&6
16397 else
16398   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16399 /* end confdefs.h.  */
16400 int i;
16401 _ACEOF
16402 if ac_fn_c_try_compile "$LINENO"; then :
16403   xorg_cv_cc_flag_unused_command_line_argument=yes
16404 else
16405   xorg_cv_cc_flag_unused_command_line_argument=no
16406 fi
16407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16408 fi
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16410 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16411         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16412         CFLAGS="$xorg_testset_save_CFLAGS"
16413 fi
16414
16415 found="no"
16416
16417         if test $found = "no" ; then
16418                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16419                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16420                 fi
16421
16422                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16423                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16424                 fi
16425
16426                 CFLAGS="$CFLAGS -Wtrigraphs"
16427
16428                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16429 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16430                 cacheid=xorg_cv_cc_flag__Wtrigraphs
16431                 if eval \${$cacheid+:} false; then :
16432   $as_echo_n "(cached) " >&6
16433 else
16434   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16435 /* end confdefs.h.  */
16436 int i;
16437 int
16438 main ()
16439 {
16440
16441   ;
16442   return 0;
16443 }
16444 _ACEOF
16445 if ac_fn_c_try_link "$LINENO"; then :
16446   eval $cacheid=yes
16447 else
16448   eval $cacheid=no
16449 fi
16450 rm -f core conftest.err conftest.$ac_objext \
16451     conftest$ac_exeext conftest.$ac_ext
16452 fi
16453
16454
16455                 CFLAGS="$xorg_testset_save_CFLAGS"
16456
16457                 eval supported=\$$cacheid
16458                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16459 $as_echo "$supported" >&6; }
16460                 if test "$supported" = "yes" ; then
16461                         BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16462                         found="yes"
16463                 fi
16464         fi
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480 xorg_testset_save_CFLAGS="$CFLAGS"
16481
16482 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16483         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16484         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16485 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16486 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16487   $as_echo_n "(cached) " >&6
16488 else
16489   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16490 /* end confdefs.h.  */
16491 int i;
16492 _ACEOF
16493 if ac_fn_c_try_compile "$LINENO"; then :
16494   xorg_cv_cc_flag_unknown_warning_option=yes
16495 else
16496   xorg_cv_cc_flag_unknown_warning_option=no
16497 fi
16498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16499 fi
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16501 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16502         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16503         CFLAGS="$xorg_testset_save_CFLAGS"
16504 fi
16505
16506 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16507         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16508                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16509         fi
16510         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16511         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16512 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16513 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16514   $as_echo_n "(cached) " >&6
16515 else
16516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16517 /* end confdefs.h.  */
16518 int i;
16519 _ACEOF
16520 if ac_fn_c_try_compile "$LINENO"; then :
16521   xorg_cv_cc_flag_unused_command_line_argument=yes
16522 else
16523   xorg_cv_cc_flag_unused_command_line_argument=no
16524 fi
16525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16526 fi
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16528 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16529         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16530         CFLAGS="$xorg_testset_save_CFLAGS"
16531 fi
16532
16533 found="no"
16534
16535         if test $found = "no" ; then
16536                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16537                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16538                 fi
16539
16540                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16541                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16542                 fi
16543
16544                 CFLAGS="$CFLAGS -Warray-bounds"
16545
16546                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16547 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16548                 cacheid=xorg_cv_cc_flag__Warray_bounds
16549                 if eval \${$cacheid+:} false; then :
16550   $as_echo_n "(cached) " >&6
16551 else
16552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16553 /* end confdefs.h.  */
16554 int i;
16555 int
16556 main ()
16557 {
16558
16559   ;
16560   return 0;
16561 }
16562 _ACEOF
16563 if ac_fn_c_try_link "$LINENO"; then :
16564   eval $cacheid=yes
16565 else
16566   eval $cacheid=no
16567 fi
16568 rm -f core conftest.err conftest.$ac_objext \
16569     conftest$ac_exeext conftest.$ac_ext
16570 fi
16571
16572
16573                 CFLAGS="$xorg_testset_save_CFLAGS"
16574
16575                 eval supported=\$$cacheid
16576                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16577 $as_echo "$supported" >&6; }
16578                 if test "$supported" = "yes" ; then
16579                         BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16580                         found="yes"
16581                 fi
16582         fi
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598 xorg_testset_save_CFLAGS="$CFLAGS"
16599
16600 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16601         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16602         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16603 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16604 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16605   $as_echo_n "(cached) " >&6
16606 else
16607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16608 /* end confdefs.h.  */
16609 int i;
16610 _ACEOF
16611 if ac_fn_c_try_compile "$LINENO"; then :
16612   xorg_cv_cc_flag_unknown_warning_option=yes
16613 else
16614   xorg_cv_cc_flag_unknown_warning_option=no
16615 fi
16616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16617 fi
16618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16619 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16620         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16621         CFLAGS="$xorg_testset_save_CFLAGS"
16622 fi
16623
16624 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16625         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16626                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16627         fi
16628         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16629         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16630 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16631 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16632   $as_echo_n "(cached) " >&6
16633 else
16634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16635 /* end confdefs.h.  */
16636 int i;
16637 _ACEOF
16638 if ac_fn_c_try_compile "$LINENO"; then :
16639   xorg_cv_cc_flag_unused_command_line_argument=yes
16640 else
16641   xorg_cv_cc_flag_unused_command_line_argument=no
16642 fi
16643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16644 fi
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16646 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16647         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16648         CFLAGS="$xorg_testset_save_CFLAGS"
16649 fi
16650
16651 found="no"
16652
16653         if test $found = "no" ; then
16654                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16655                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16656                 fi
16657
16658                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16659                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16660                 fi
16661
16662                 CFLAGS="$CFLAGS -Wwrite-strings"
16663
16664                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16665 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16666                 cacheid=xorg_cv_cc_flag__Wwrite_strings
16667                 if eval \${$cacheid+:} false; then :
16668   $as_echo_n "(cached) " >&6
16669 else
16670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16671 /* end confdefs.h.  */
16672 int i;
16673 int
16674 main ()
16675 {
16676
16677   ;
16678   return 0;
16679 }
16680 _ACEOF
16681 if ac_fn_c_try_link "$LINENO"; then :
16682   eval $cacheid=yes
16683 else
16684   eval $cacheid=no
16685 fi
16686 rm -f core conftest.err conftest.$ac_objext \
16687     conftest$ac_exeext conftest.$ac_ext
16688 fi
16689
16690
16691                 CFLAGS="$xorg_testset_save_CFLAGS"
16692
16693                 eval supported=\$$cacheid
16694                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16695 $as_echo "$supported" >&6; }
16696                 if test "$supported" = "yes" ; then
16697                         BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16698                         found="yes"
16699                 fi
16700         fi
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716 xorg_testset_save_CFLAGS="$CFLAGS"
16717
16718 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16719         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16720         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16721 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16722 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16723   $as_echo_n "(cached) " >&6
16724 else
16725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16726 /* end confdefs.h.  */
16727 int i;
16728 _ACEOF
16729 if ac_fn_c_try_compile "$LINENO"; then :
16730   xorg_cv_cc_flag_unknown_warning_option=yes
16731 else
16732   xorg_cv_cc_flag_unknown_warning_option=no
16733 fi
16734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16735 fi
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16737 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16738         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16739         CFLAGS="$xorg_testset_save_CFLAGS"
16740 fi
16741
16742 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16743         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16744                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16745         fi
16746         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16747         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16748 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16749 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16750   $as_echo_n "(cached) " >&6
16751 else
16752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16753 /* end confdefs.h.  */
16754 int i;
16755 _ACEOF
16756 if ac_fn_c_try_compile "$LINENO"; then :
16757   xorg_cv_cc_flag_unused_command_line_argument=yes
16758 else
16759   xorg_cv_cc_flag_unused_command_line_argument=no
16760 fi
16761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16762 fi
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16764 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16765         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16766         CFLAGS="$xorg_testset_save_CFLAGS"
16767 fi
16768
16769 found="no"
16770
16771         if test $found = "no" ; then
16772                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16773                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16774                 fi
16775
16776                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16777                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16778                 fi
16779
16780                 CFLAGS="$CFLAGS -Waddress"
16781
16782                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16783 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
16784                 cacheid=xorg_cv_cc_flag__Waddress
16785                 if eval \${$cacheid+:} false; then :
16786   $as_echo_n "(cached) " >&6
16787 else
16788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16789 /* end confdefs.h.  */
16790 int i;
16791 int
16792 main ()
16793 {
16794
16795   ;
16796   return 0;
16797 }
16798 _ACEOF
16799 if ac_fn_c_try_link "$LINENO"; then :
16800   eval $cacheid=yes
16801 else
16802   eval $cacheid=no
16803 fi
16804 rm -f core conftest.err conftest.$ac_objext \
16805     conftest$ac_exeext conftest.$ac_ext
16806 fi
16807
16808
16809                 CFLAGS="$xorg_testset_save_CFLAGS"
16810
16811                 eval supported=\$$cacheid
16812                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16813 $as_echo "$supported" >&6; }
16814                 if test "$supported" = "yes" ; then
16815                         BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16816                         found="yes"
16817                 fi
16818         fi
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834 xorg_testset_save_CFLAGS="$CFLAGS"
16835
16836 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16837         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16838         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16839 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16840 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16841   $as_echo_n "(cached) " >&6
16842 else
16843   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16844 /* end confdefs.h.  */
16845 int i;
16846 _ACEOF
16847 if ac_fn_c_try_compile "$LINENO"; then :
16848   xorg_cv_cc_flag_unknown_warning_option=yes
16849 else
16850   xorg_cv_cc_flag_unknown_warning_option=no
16851 fi
16852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16853 fi
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16855 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16856         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16857         CFLAGS="$xorg_testset_save_CFLAGS"
16858 fi
16859
16860 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16861         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16862                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16863         fi
16864         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16865         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16866 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16867 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16868   $as_echo_n "(cached) " >&6
16869 else
16870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16871 /* end confdefs.h.  */
16872 int i;
16873 _ACEOF
16874 if ac_fn_c_try_compile "$LINENO"; then :
16875   xorg_cv_cc_flag_unused_command_line_argument=yes
16876 else
16877   xorg_cv_cc_flag_unused_command_line_argument=no
16878 fi
16879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16880 fi
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16882 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16883         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16884         CFLAGS="$xorg_testset_save_CFLAGS"
16885 fi
16886
16887 found="no"
16888
16889         if test $found = "no" ; then
16890                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16891                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16892                 fi
16893
16894                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16895                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16896                 fi
16897
16898                 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
16899
16900                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
16901 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
16902                 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
16903                 if eval \${$cacheid+:} false; then :
16904   $as_echo_n "(cached) " >&6
16905 else
16906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16907 /* end confdefs.h.  */
16908 int i;
16909 int
16910 main ()
16911 {
16912
16913   ;
16914   return 0;
16915 }
16916 _ACEOF
16917 if ac_fn_c_try_link "$LINENO"; then :
16918   eval $cacheid=yes
16919 else
16920   eval $cacheid=no
16921 fi
16922 rm -f core conftest.err conftest.$ac_objext \
16923     conftest$ac_exeext conftest.$ac_ext
16924 fi
16925
16926
16927                 CFLAGS="$xorg_testset_save_CFLAGS"
16928
16929                 eval supported=\$$cacheid
16930                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16931 $as_echo "$supported" >&6; }
16932                 if test "$supported" = "yes" ; then
16933                         BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
16934                         found="yes"
16935                 fi
16936         fi
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952 xorg_testset_save_CFLAGS="$CFLAGS"
16953
16954 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16955         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16956         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16957 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16958 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16959   $as_echo_n "(cached) " >&6
16960 else
16961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16962 /* end confdefs.h.  */
16963 int i;
16964 _ACEOF
16965 if ac_fn_c_try_compile "$LINENO"; then :
16966   xorg_cv_cc_flag_unknown_warning_option=yes
16967 else
16968   xorg_cv_cc_flag_unknown_warning_option=no
16969 fi
16970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16971 fi
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16973 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16974         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16975         CFLAGS="$xorg_testset_save_CFLAGS"
16976 fi
16977
16978 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16979         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16980                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16981         fi
16982         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16983         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16984 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16985 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16986   $as_echo_n "(cached) " >&6
16987 else
16988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16989 /* end confdefs.h.  */
16990 int i;
16991 _ACEOF
16992 if ac_fn_c_try_compile "$LINENO"; then :
16993   xorg_cv_cc_flag_unused_command_line_argument=yes
16994 else
16995   xorg_cv_cc_flag_unused_command_line_argument=no
16996 fi
16997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16998 fi
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17000 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17001         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17002         CFLAGS="$xorg_testset_save_CFLAGS"
17003 fi
17004
17005 found="no"
17006
17007         if test $found = "no" ; then
17008                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17009                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17010                 fi
17011
17012                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17013                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17014                 fi
17015
17016                 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17017
17018                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17019 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17020                 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17021                 if eval \${$cacheid+:} false; then :
17022   $as_echo_n "(cached) " >&6
17023 else
17024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17025 /* end confdefs.h.  */
17026 int i;
17027 int
17028 main ()
17029 {
17030
17031   ;
17032   return 0;
17033 }
17034 _ACEOF
17035 if ac_fn_c_try_link "$LINENO"; then :
17036   eval $cacheid=yes
17037 else
17038   eval $cacheid=no
17039 fi
17040 rm -f core conftest.err conftest.$ac_objext \
17041     conftest$ac_exeext conftest.$ac_ext
17042 fi
17043
17044
17045                 CFLAGS="$xorg_testset_save_CFLAGS"
17046
17047                 eval supported=\$$cacheid
17048                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17049 $as_echo "$supported" >&6; }
17050                 if test "$supported" = "yes" ; then
17051                         BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17052                         found="yes"
17053                 fi
17054         fi
17055
17056
17057 fi
17058
17059
17060
17061
17062
17063
17064
17065                 CWARNFLAGS="$BASE_CFLAGS"
17066                 if  test "x$GCC" = xyes ; then
17067                     CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17068                 fi
17069
17070
17071
17072
17073
17074
17075
17076
17077 # Check whether --enable-strict-compilation was given.
17078 if test "${enable_strict_compilation+set}" = set; then :
17079   enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17080 else
17081   STRICT_COMPILE=no
17082 fi
17083
17084
17085
17086
17087
17088
17089 STRICT_CFLAGS=""
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103 xorg_testset_save_CFLAGS="$CFLAGS"
17104
17105 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17106         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17107         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17108 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17109 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17110   $as_echo_n "(cached) " >&6
17111 else
17112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17113 /* end confdefs.h.  */
17114 int i;
17115 _ACEOF
17116 if ac_fn_c_try_compile "$LINENO"; then :
17117   xorg_cv_cc_flag_unknown_warning_option=yes
17118 else
17119   xorg_cv_cc_flag_unknown_warning_option=no
17120 fi
17121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17122 fi
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17124 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17125         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17126         CFLAGS="$xorg_testset_save_CFLAGS"
17127 fi
17128
17129 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17130         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17131                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17132         fi
17133         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17134         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17135 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17136 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17137   $as_echo_n "(cached) " >&6
17138 else
17139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17140 /* end confdefs.h.  */
17141 int i;
17142 _ACEOF
17143 if ac_fn_c_try_compile "$LINENO"; then :
17144   xorg_cv_cc_flag_unused_command_line_argument=yes
17145 else
17146   xorg_cv_cc_flag_unused_command_line_argument=no
17147 fi
17148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17149 fi
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17151 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17152         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17153         CFLAGS="$xorg_testset_save_CFLAGS"
17154 fi
17155
17156 found="no"
17157
17158         if test $found = "no" ; then
17159                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17160                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17161                 fi
17162
17163                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17164                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17165                 fi
17166
17167                 CFLAGS="$CFLAGS -pedantic"
17168
17169                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17170 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17171                 cacheid=xorg_cv_cc_flag__pedantic
17172                 if eval \${$cacheid+:} false; then :
17173   $as_echo_n "(cached) " >&6
17174 else
17175   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17176 /* end confdefs.h.  */
17177 int i;
17178 int
17179 main ()
17180 {
17181
17182   ;
17183   return 0;
17184 }
17185 _ACEOF
17186 if ac_fn_c_try_link "$LINENO"; then :
17187   eval $cacheid=yes
17188 else
17189   eval $cacheid=no
17190 fi
17191 rm -f core conftest.err conftest.$ac_objext \
17192     conftest$ac_exeext conftest.$ac_ext
17193 fi
17194
17195
17196                 CFLAGS="$xorg_testset_save_CFLAGS"
17197
17198                 eval supported=\$$cacheid
17199                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17200 $as_echo "$supported" >&6; }
17201                 if test "$supported" = "yes" ; then
17202                         STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17203                         found="yes"
17204                 fi
17205         fi
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221 xorg_testset_save_CFLAGS="$CFLAGS"
17222
17223 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17224         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17225         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17226 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17227 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17228   $as_echo_n "(cached) " >&6
17229 else
17230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17231 /* end confdefs.h.  */
17232 int i;
17233 _ACEOF
17234 if ac_fn_c_try_compile "$LINENO"; then :
17235   xorg_cv_cc_flag_unknown_warning_option=yes
17236 else
17237   xorg_cv_cc_flag_unknown_warning_option=no
17238 fi
17239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17240 fi
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17242 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17243         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17244         CFLAGS="$xorg_testset_save_CFLAGS"
17245 fi
17246
17247 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17248         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17249                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17250         fi
17251         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17252         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17253 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17254 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17255   $as_echo_n "(cached) " >&6
17256 else
17257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17258 /* end confdefs.h.  */
17259 int i;
17260 _ACEOF
17261 if ac_fn_c_try_compile "$LINENO"; then :
17262   xorg_cv_cc_flag_unused_command_line_argument=yes
17263 else
17264   xorg_cv_cc_flag_unused_command_line_argument=no
17265 fi
17266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17267 fi
17268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17269 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17270         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17271         CFLAGS="$xorg_testset_save_CFLAGS"
17272 fi
17273
17274 found="no"
17275
17276         if test $found = "no" ; then
17277                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17278                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17279                 fi
17280
17281                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17282                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17283                 fi
17284
17285                 CFLAGS="$CFLAGS -Werror"
17286
17287                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17288 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17289                 cacheid=xorg_cv_cc_flag__Werror
17290                 if eval \${$cacheid+:} false; then :
17291   $as_echo_n "(cached) " >&6
17292 else
17293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17294 /* end confdefs.h.  */
17295 int i;
17296 int
17297 main ()
17298 {
17299
17300   ;
17301   return 0;
17302 }
17303 _ACEOF
17304 if ac_fn_c_try_link "$LINENO"; then :
17305   eval $cacheid=yes
17306 else
17307   eval $cacheid=no
17308 fi
17309 rm -f core conftest.err conftest.$ac_objext \
17310     conftest$ac_exeext conftest.$ac_ext
17311 fi
17312
17313
17314                 CFLAGS="$xorg_testset_save_CFLAGS"
17315
17316                 eval supported=\$$cacheid
17317                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17318 $as_echo "$supported" >&6; }
17319                 if test "$supported" = "yes" ; then
17320                         STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17321                         found="yes"
17322                 fi
17323         fi
17324
17325         if test $found = "no" ; then
17326                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17327                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17328                 fi
17329
17330                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17331                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17332                 fi
17333
17334                 CFLAGS="$CFLAGS -errwarn"
17335
17336                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17337 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17338                 cacheid=xorg_cv_cc_flag__errwarn
17339                 if eval \${$cacheid+:} false; then :
17340   $as_echo_n "(cached) " >&6
17341 else
17342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17343 /* end confdefs.h.  */
17344 int i;
17345 int
17346 main ()
17347 {
17348
17349   ;
17350   return 0;
17351 }
17352 _ACEOF
17353 if ac_fn_c_try_link "$LINENO"; then :
17354   eval $cacheid=yes
17355 else
17356   eval $cacheid=no
17357 fi
17358 rm -f core conftest.err conftest.$ac_objext \
17359     conftest$ac_exeext conftest.$ac_ext
17360 fi
17361
17362
17363                 CFLAGS="$xorg_testset_save_CFLAGS"
17364
17365                 eval supported=\$$cacheid
17366                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17367 $as_echo "$supported" >&6; }
17368                 if test "$supported" = "yes" ; then
17369                         STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17370                         found="yes"
17371                 fi
17372         fi
17373
17374
17375
17376 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17377 # activate it with -Werror, so we add it here explicitly.
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391 xorg_testset_save_CFLAGS="$CFLAGS"
17392
17393 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17394         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17395         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17396 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17397 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17398   $as_echo_n "(cached) " >&6
17399 else
17400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17401 /* end confdefs.h.  */
17402 int i;
17403 _ACEOF
17404 if ac_fn_c_try_compile "$LINENO"; then :
17405   xorg_cv_cc_flag_unknown_warning_option=yes
17406 else
17407   xorg_cv_cc_flag_unknown_warning_option=no
17408 fi
17409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17410 fi
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17412 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17413         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17414         CFLAGS="$xorg_testset_save_CFLAGS"
17415 fi
17416
17417 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17418         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17419                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17420         fi
17421         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17422         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17423 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17424 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17425   $as_echo_n "(cached) " >&6
17426 else
17427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17428 /* end confdefs.h.  */
17429 int i;
17430 _ACEOF
17431 if ac_fn_c_try_compile "$LINENO"; then :
17432   xorg_cv_cc_flag_unused_command_line_argument=yes
17433 else
17434   xorg_cv_cc_flag_unused_command_line_argument=no
17435 fi
17436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17437 fi
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17439 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17440         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17441         CFLAGS="$xorg_testset_save_CFLAGS"
17442 fi
17443
17444 found="no"
17445
17446         if test $found = "no" ; then
17447                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17448                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17449                 fi
17450
17451                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17452                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17453                 fi
17454
17455                 CFLAGS="$CFLAGS -Werror=attributes"
17456
17457                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17458 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17459                 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
17460                 if eval \${$cacheid+:} false; then :
17461   $as_echo_n "(cached) " >&6
17462 else
17463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17464 /* end confdefs.h.  */
17465 int i;
17466 int
17467 main ()
17468 {
17469
17470   ;
17471   return 0;
17472 }
17473 _ACEOF
17474 if ac_fn_c_try_link "$LINENO"; then :
17475   eval $cacheid=yes
17476 else
17477   eval $cacheid=no
17478 fi
17479 rm -f core conftest.err conftest.$ac_objext \
17480     conftest$ac_exeext conftest.$ac_ext
17481 fi
17482
17483
17484                 CFLAGS="$xorg_testset_save_CFLAGS"
17485
17486                 eval supported=\$$cacheid
17487                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17488 $as_echo "$supported" >&6; }
17489                 if test "$supported" = "yes" ; then
17490                         STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17491                         found="yes"
17492                 fi
17493         fi
17494
17495
17496
17497 if test "x$STRICT_COMPILE" = "xyes"; then
17498     BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17499     CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17500 fi
17501
17502
17503
17504
17505
17506
17507 cat >>confdefs.h <<_ACEOF
17508 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17509 _ACEOF
17510
17511         PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17512         if test "x$PVM" = "x"; then
17513                 PVM="0"
17514         fi
17515
17516 cat >>confdefs.h <<_ACEOF
17517 #define PACKAGE_VERSION_MINOR $PVM
17518 _ACEOF
17519
17520         PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17521         if test "x$PVP" = "x"; then
17522                 PVP="0"
17523         fi
17524
17525 cat >>confdefs.h <<_ACEOF
17526 #define PACKAGE_VERSION_PATCHLEVEL $PVP
17527 _ACEOF
17528
17529
17530
17531 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17532 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17533 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17534 echo 'git directory not found: installing possibly empty changelog.' >&2)"
17535
17536
17537
17538
17539 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17540 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17541 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17542 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17543 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17544
17545
17546
17547
17548
17549
17550 if test x$APP_MAN_SUFFIX = x    ; then
17551     APP_MAN_SUFFIX=1
17552 fi
17553 if test x$APP_MAN_DIR = x    ; then
17554     APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17555 fi
17556
17557 if test x$LIB_MAN_SUFFIX = x    ; then
17558     LIB_MAN_SUFFIX=3
17559 fi
17560 if test x$LIB_MAN_DIR = x    ; then
17561     LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17562 fi
17563
17564 if test x$FILE_MAN_SUFFIX = x    ; then
17565     case $host_os in
17566         solaris*)       FILE_MAN_SUFFIX=4  ;;
17567         *)              FILE_MAN_SUFFIX=5  ;;
17568     esac
17569 fi
17570 if test x$FILE_MAN_DIR = x    ; then
17571     FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17572 fi
17573
17574 if test x$MISC_MAN_SUFFIX = x    ; then
17575     case $host_os in
17576         solaris*)       MISC_MAN_SUFFIX=5  ;;
17577         *)              MISC_MAN_SUFFIX=7  ;;
17578     esac
17579 fi
17580 if test x$MISC_MAN_DIR = x    ; then
17581     MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17582 fi
17583
17584 if test x$DRIVER_MAN_SUFFIX = x    ; then
17585     case $host_os in
17586         solaris*)       DRIVER_MAN_SUFFIX=7  ;;
17587         *)              DRIVER_MAN_SUFFIX=4  ;;
17588     esac
17589 fi
17590 if test x$DRIVER_MAN_DIR = x    ; then
17591     DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17592 fi
17593
17594 if test x$ADMIN_MAN_SUFFIX = x    ; then
17595     case $host_os in
17596         solaris*)       ADMIN_MAN_SUFFIX=1m ;;
17597         *)              ADMIN_MAN_SUFFIX=8  ;;
17598     esac
17599 fi
17600 if test x$ADMIN_MAN_DIR = x    ; then
17601     ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17602 fi
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618 XORG_MAN_PAGE="X Version 11"
17619
17620 MAN_SUBSTS="\
17621         -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17622         -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17623         -e 's|__xservername__|Xorg|g' \
17624         -e 's|__xconfigfile__|xorg.conf|g' \
17625         -e 's|__xorgconfdir__|xorg.conf.d|g' \
17626         -e 's|__projectroot__|\$(prefix)|g' \
17627         -e 's|__apploaddir__|\$(appdefaultdir)|g' \
17628         -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17629         -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17630         -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17631         -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17632         -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17633         -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17634
17635
17636
17637 # Check whether --enable-silent-rules was given.
17638 if test "${enable_silent_rules+set}" = set; then :
17639   enableval=$enable_silent_rules;
17640 fi
17641
17642 case $enable_silent_rules in
17643 yes) AM_DEFAULT_VERBOSITY=0;;
17644 no)  AM_DEFAULT_VERBOSITY=1;;
17645 *)   AM_DEFAULT_VERBOSITY=0;;
17646 esac
17647 am_make=${MAKE-make}
17648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
17649 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
17650 if ${am_cv_make_support_nested_variables+:} false; then :
17651   $as_echo_n "(cached) " >&6
17652 else
17653   if $as_echo 'TRUE=$(BAR$(V))
17654 BAR0=false
17655 BAR1=true
17656 V=1
17657 am__doit:
17658         @$(TRUE)
17659 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
17660   am_cv_make_support_nested_variables=yes
17661 else
17662   am_cv_make_support_nested_variables=no
17663 fi
17664 fi
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
17666 $as_echo "$am_cv_make_support_nested_variables" >&6; }
17667 if test $am_cv_make_support_nested_variables = yes; then
17668     AM_V='$(V)'
17669   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17670 else
17671   AM_V=$AM_DEFAULT_VERBOSITY
17672   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17673 fi
17674 AM_BACKSLASH='\'
17675
17676
17677
17678
17679 # Check whether --enable-docs was given.
17680 if test "${enable_docs+set}" = set; then :
17681   enableval=$enable_docs; build_docs=$enableval
17682 else
17683   build_docs=yes
17684 fi
17685
17686
17687  if test x$build_docs = xyes; then
17688   ENABLE_DOCS_TRUE=
17689   ENABLE_DOCS_FALSE='#'
17690 else
17691   ENABLE_DOCS_TRUE='#'
17692   ENABLE_DOCS_FALSE=
17693 fi
17694
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
17696 $as_echo_n "checking whether to build documentation... " >&6; }
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
17698 $as_echo "$build_docs" >&6; }
17699
17700
17701
17702 # Check whether --enable-specs was given.
17703 if test "${enable_specs+set}" = set; then :
17704   enableval=$enable_specs; build_specs=$enableval
17705 else
17706   build_specs=yes
17707 fi
17708
17709
17710  if test x$build_specs = xyes; then
17711   ENABLE_SPECS_TRUE=
17712   ENABLE_SPECS_FALSE='#'
17713 else
17714   ENABLE_SPECS_TRUE='#'
17715   ENABLE_SPECS_FALSE=
17716 fi
17717
17718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
17719 $as_echo_n "checking whether to build functional specifications... " >&6; }
17720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
17721 $as_echo "$build_specs" >&6; }
17722
17723
17724
17725
17726
17727 # Check whether --with-xmlto was given.
17728 if test "${with_xmlto+set}" = set; then :
17729   withval=$with_xmlto; use_xmlto=$withval
17730 else
17731   use_xmlto=auto
17732 fi
17733
17734
17735
17736 if test "x$use_xmlto" = x"auto"; then
17737    # Extract the first word of "xmlto", so it can be a program name with args.
17738 set dummy xmlto; ac_word=$2
17739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17740 $as_echo_n "checking for $ac_word... " >&6; }
17741 if ${ac_cv_path_XMLTO+:} false; then :
17742   $as_echo_n "(cached) " >&6
17743 else
17744   case $XMLTO in
17745   [\\/]* | ?:[\\/]*)
17746   ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
17747   ;;
17748   *)
17749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17750 for as_dir in $PATH
17751 do
17752   IFS=$as_save_IFS
17753   test -z "$as_dir" && as_dir=.
17754     for ac_exec_ext in '' $ac_executable_extensions; do
17755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17756     ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
17757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17758     break 2
17759   fi
17760 done
17761   done
17762 IFS=$as_save_IFS
17763
17764   ;;
17765 esac
17766 fi
17767 XMLTO=$ac_cv_path_XMLTO
17768 if test -n "$XMLTO"; then
17769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
17770 $as_echo "$XMLTO" >&6; }
17771 else
17772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17773 $as_echo "no" >&6; }
17774 fi
17775
17776
17777    if test "x$XMLTO" = "x"; then
17778         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
17779 $as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
17780         have_xmlto=no
17781    else
17782         have_xmlto=yes
17783    fi
17784 elif test "x$use_xmlto" = x"yes" ; then
17785    # Extract the first word of "xmlto", so it can be a program name with args.
17786 set dummy xmlto; ac_word=$2
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17788 $as_echo_n "checking for $ac_word... " >&6; }
17789 if ${ac_cv_path_XMLTO+:} false; then :
17790   $as_echo_n "(cached) " >&6
17791 else
17792   case $XMLTO in
17793   [\\/]* | ?:[\\/]*)
17794   ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
17795   ;;
17796   *)
17797   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17798 for as_dir in $PATH
17799 do
17800   IFS=$as_save_IFS
17801   test -z "$as_dir" && as_dir=.
17802     for ac_exec_ext in '' $ac_executable_extensions; do
17803   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17804     ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
17805     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17806     break 2
17807   fi
17808 done
17809   done
17810 IFS=$as_save_IFS
17811
17812   ;;
17813 esac
17814 fi
17815 XMLTO=$ac_cv_path_XMLTO
17816 if test -n "$XMLTO"; then
17817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
17818 $as_echo "$XMLTO" >&6; }
17819 else
17820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17821 $as_echo "no" >&6; }
17822 fi
17823
17824
17825    if test "x$XMLTO" = "x"; then
17826         as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
17827    fi
17828    have_xmlto=yes
17829 elif test "x$use_xmlto" = x"no" ; then
17830    if test "x$XMLTO" != "x"; then
17831       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
17832 $as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
17833    fi
17834    have_xmlto=no
17835 else
17836    as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
17837 fi
17838
17839 # Test for a minimum version of xmlto, if provided.
17840 if test "$have_xmlto" = yes; then
17841     # scrape the xmlto version
17842     { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
17843 $as_echo_n "checking the xmlto version... " >&6; }
17844     xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
17845     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
17846 $as_echo "$xmlto_version" >&6; }
17847     as_arg_v1=$xmlto_version
17848 as_arg_v2=0.0.22
17849 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
17850 case $? in #(
17851   1) :
17852     if test "x$use_xmlto" = xauto; then
17853             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
17854 $as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
17855             have_xmlto=no
17856         else
17857             as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
17858         fi ;; #(
17859   0) :
17860      ;; #(
17861   2) :
17862      ;; #(
17863   *) :
17864      ;;
17865 esac
17866 fi
17867
17868 # Test for the ability of xmlto to generate a text target
17869 have_xmlto_text=no
17870 cat > conftest.xml << "EOF"
17871 EOF
17872 if test "$have_xmlto" = yes; then :
17873   if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
17874   have_xmlto_text=yes
17875 else
17876   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
17877 $as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
17878 fi
17879 fi
17880 rm -f conftest.xml
17881  if test $have_xmlto_text = yes; then
17882   HAVE_XMLTO_TEXT_TRUE=
17883   HAVE_XMLTO_TEXT_FALSE='#'
17884 else
17885   HAVE_XMLTO_TEXT_TRUE='#'
17886   HAVE_XMLTO_TEXT_FALSE=
17887 fi
17888
17889  if test "$have_xmlto" = yes; then
17890   HAVE_XMLTO_TRUE=
17891   HAVE_XMLTO_FALSE='#'
17892 else
17893   HAVE_XMLTO_TRUE='#'
17894   HAVE_XMLTO_FALSE=
17895 fi
17896
17897
17898
17899
17900
17901
17902 # Check whether --with-fop was given.
17903 if test "${with_fop+set}" = set; then :
17904   withval=$with_fop; use_fop=$withval
17905 else
17906   use_fop=auto
17907 fi
17908
17909
17910
17911 if test "x$use_fop" = x"auto"; then
17912    # Extract the first word of "fop", so it can be a program name with args.
17913 set dummy fop; ac_word=$2
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17915 $as_echo_n "checking for $ac_word... " >&6; }
17916 if ${ac_cv_path_FOP+:} false; then :
17917   $as_echo_n "(cached) " >&6
17918 else
17919   case $FOP in
17920   [\\/]* | ?:[\\/]*)
17921   ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
17922   ;;
17923   *)
17924   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17925 for as_dir in $PATH
17926 do
17927   IFS=$as_save_IFS
17928   test -z "$as_dir" && as_dir=.
17929     for ac_exec_ext in '' $ac_executable_extensions; do
17930   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17931     ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
17932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17933     break 2
17934   fi
17935 done
17936   done
17937 IFS=$as_save_IFS
17938
17939   ;;
17940 esac
17941 fi
17942 FOP=$ac_cv_path_FOP
17943 if test -n "$FOP"; then
17944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
17945 $as_echo "$FOP" >&6; }
17946 else
17947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17948 $as_echo "no" >&6; }
17949 fi
17950
17951
17952    if test "x$FOP" = "x"; then
17953         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
17954 $as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
17955         have_fop=no
17956    else
17957         have_fop=yes
17958    fi
17959 elif test "x$use_fop" = x"yes" ; then
17960    # Extract the first word of "fop", so it can be a program name with args.
17961 set dummy fop; ac_word=$2
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17963 $as_echo_n "checking for $ac_word... " >&6; }
17964 if ${ac_cv_path_FOP+:} false; then :
17965   $as_echo_n "(cached) " >&6
17966 else
17967   case $FOP in
17968   [\\/]* | ?:[\\/]*)
17969   ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
17970   ;;
17971   *)
17972   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17973 for as_dir in $PATH
17974 do
17975   IFS=$as_save_IFS
17976   test -z "$as_dir" && as_dir=.
17977     for ac_exec_ext in '' $ac_executable_extensions; do
17978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17979     ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
17980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17981     break 2
17982   fi
17983 done
17984   done
17985 IFS=$as_save_IFS
17986
17987   ;;
17988 esac
17989 fi
17990 FOP=$ac_cv_path_FOP
17991 if test -n "$FOP"; then
17992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
17993 $as_echo "$FOP" >&6; }
17994 else
17995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17996 $as_echo "no" >&6; }
17997 fi
17998
17999
18000    if test "x$FOP" = "x"; then
18001         as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
18002    fi
18003    have_fop=yes
18004 elif test "x$use_fop" = x"no" ; then
18005    if test "x$FOP" != "x"; then
18006       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
18007 $as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
18008    fi
18009    have_fop=no
18010 else
18011    as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
18012 fi
18013
18014 # Test for a minimum version of fop, if provided.
18015
18016  if test "$have_fop" = yes; then
18017   HAVE_FOP_TRUE=
18018   HAVE_FOP_FALSE='#'
18019 else
18020   HAVE_FOP_TRUE='#'
18021   HAVE_FOP_FALSE=
18022 fi
18023
18024
18025
18026
18027 # Preserves the interface, should it be implemented later
18028
18029
18030
18031 # Check whether --with-xsltproc was given.
18032 if test "${with_xsltproc+set}" = set; then :
18033   withval=$with_xsltproc; use_xsltproc=$withval
18034 else
18035   use_xsltproc=auto
18036 fi
18037
18038
18039
18040 if test "x$use_xsltproc" = x"auto"; then
18041    # Extract the first word of "xsltproc", so it can be a program name with args.
18042 set dummy xsltproc; ac_word=$2
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18044 $as_echo_n "checking for $ac_word... " >&6; }
18045 if ${ac_cv_path_XSLTPROC+:} false; then :
18046   $as_echo_n "(cached) " >&6
18047 else
18048   case $XSLTPROC in
18049   [\\/]* | ?:[\\/]*)
18050   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
18051   ;;
18052   *)
18053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18054 for as_dir in $PATH
18055 do
18056   IFS=$as_save_IFS
18057   test -z "$as_dir" && as_dir=.
18058     for ac_exec_ext in '' $ac_executable_extensions; do
18059   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18060     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
18061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18062     break 2
18063   fi
18064 done
18065   done
18066 IFS=$as_save_IFS
18067
18068   ;;
18069 esac
18070 fi
18071 XSLTPROC=$ac_cv_path_XSLTPROC
18072 if test -n "$XSLTPROC"; then
18073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18074 $as_echo "$XSLTPROC" >&6; }
18075 else
18076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18077 $as_echo "no" >&6; }
18078 fi
18079
18080
18081    if test "x$XSLTPROC" = "x"; then
18082         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
18083 $as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
18084         have_xsltproc=no
18085    else
18086         have_xsltproc=yes
18087    fi
18088 elif test "x$use_xsltproc" = x"yes" ; then
18089    # Extract the first word of "xsltproc", so it can be a program name with args.
18090 set dummy xsltproc; ac_word=$2
18091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18092 $as_echo_n "checking for $ac_word... " >&6; }
18093 if ${ac_cv_path_XSLTPROC+:} false; then :
18094   $as_echo_n "(cached) " >&6
18095 else
18096   case $XSLTPROC in
18097   [\\/]* | ?:[\\/]*)
18098   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
18099   ;;
18100   *)
18101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18102 for as_dir in $PATH
18103 do
18104   IFS=$as_save_IFS
18105   test -z "$as_dir" && as_dir=.
18106     for ac_exec_ext in '' $ac_executable_extensions; do
18107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18108     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
18109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18110     break 2
18111   fi
18112 done
18113   done
18114 IFS=$as_save_IFS
18115
18116   ;;
18117 esac
18118 fi
18119 XSLTPROC=$ac_cv_path_XSLTPROC
18120 if test -n "$XSLTPROC"; then
18121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18122 $as_echo "$XSLTPROC" >&6; }
18123 else
18124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18125 $as_echo "no" >&6; }
18126 fi
18127
18128
18129    if test "x$XSLTPROC" = "x"; then
18130         as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
18131    fi
18132    have_xsltproc=yes
18133 elif test "x$use_xsltproc" = x"no" ; then
18134    if test "x$XSLTPROC" != "x"; then
18135       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
18136 $as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
18137    fi
18138    have_xsltproc=no
18139 else
18140    as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
18141 fi
18142
18143  if test "$have_xsltproc" = yes; then
18144   HAVE_XSLTPROC_TRUE=
18145   HAVE_XSLTPROC_FALSE='#'
18146 else
18147   HAVE_XSLTPROC_TRUE='#'
18148   HAVE_XSLTPROC_FALSE=
18149 fi
18150
18151
18152
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
18154 $as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; }
18155 XORG_SGML_PATH=
18156 if test -n "$PKG_CONFIG" && \
18157     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
18158   ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
18159   ac_status=$?
18160   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18161   test $ac_status = 0; }; then
18162   XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
18163 else
18164   :
18165
18166 fi
18167
18168 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
18169 # the path and the name of the doc stylesheet
18170 if test "x$XORG_SGML_PATH" != "x" ; then
18171    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
18172 $as_echo "$XORG_SGML_PATH" >&6; }
18173    STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
18174    XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
18175 else
18176    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18177 $as_echo "no" >&6; }
18178 fi
18179
18180
18181
18182
18183  if test "x$XSL_STYLESHEET" != "x"; then
18184   HAVE_STYLESHEETS_TRUE=
18185   HAVE_STYLESHEETS_FALSE='#'
18186 else
18187   HAVE_STYLESHEETS_TRUE='#'
18188   HAVE_STYLESHEETS_FALSE=
18189 fi
18190
18191
18192
18193
18194
18195
18196 # Check whether --with-asciidoc was given.
18197 if test "${with_asciidoc+set}" = set; then :
18198   withval=$with_asciidoc; use_asciidoc=$withval
18199 else
18200   use_asciidoc=auto
18201 fi
18202
18203
18204
18205 if test "x$use_asciidoc" = x"auto"; then
18206    # Extract the first word of "asciidoc", so it can be a program name with args.
18207 set dummy asciidoc; ac_word=$2
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18209 $as_echo_n "checking for $ac_word... " >&6; }
18210 if ${ac_cv_path_ASCIIDOC+:} false; then :
18211   $as_echo_n "(cached) " >&6
18212 else
18213   case $ASCIIDOC in
18214   [\\/]* | ?:[\\/]*)
18215   ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path.
18216   ;;
18217   *)
18218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18219 for as_dir in $PATH
18220 do
18221   IFS=$as_save_IFS
18222   test -z "$as_dir" && as_dir=.
18223     for ac_exec_ext in '' $ac_executable_extensions; do
18224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18225     ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext"
18226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18227     break 2
18228   fi
18229 done
18230   done
18231 IFS=$as_save_IFS
18232
18233   ;;
18234 esac
18235 fi
18236 ASCIIDOC=$ac_cv_path_ASCIIDOC
18237 if test -n "$ASCIIDOC"; then
18238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
18239 $as_echo "$ASCIIDOC" >&6; }
18240 else
18241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18242 $as_echo "no" >&6; }
18243 fi
18244
18245
18246    if test "x$ASCIIDOC" = "x"; then
18247         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc not found - documentation targets will be skipped" >&5
18248 $as_echo "$as_me: WARNING: asciidoc not found - documentation targets will be skipped" >&2;}
18249         have_asciidoc=no
18250    else
18251         have_asciidoc=yes
18252    fi
18253 elif test "x$use_asciidoc" = x"yes" ; then
18254    # Extract the first word of "asciidoc", so it can be a program name with args.
18255 set dummy asciidoc; ac_word=$2
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18257 $as_echo_n "checking for $ac_word... " >&6; }
18258 if ${ac_cv_path_ASCIIDOC+:} false; then :
18259   $as_echo_n "(cached) " >&6
18260 else
18261   case $ASCIIDOC in
18262   [\\/]* | ?:[\\/]*)
18263   ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path.
18264   ;;
18265   *)
18266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18267 for as_dir in $PATH
18268 do
18269   IFS=$as_save_IFS
18270   test -z "$as_dir" && as_dir=.
18271     for ac_exec_ext in '' $ac_executable_extensions; do
18272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18273     ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext"
18274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18275     break 2
18276   fi
18277 done
18278   done
18279 IFS=$as_save_IFS
18280
18281   ;;
18282 esac
18283 fi
18284 ASCIIDOC=$ac_cv_path_ASCIIDOC
18285 if test -n "$ASCIIDOC"; then
18286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
18287 $as_echo "$ASCIIDOC" >&6; }
18288 else
18289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18290 $as_echo "no" >&6; }
18291 fi
18292
18293
18294    if test "x$ASCIIDOC" = "x"; then
18295         as_fn_error $? "--with-asciidoc=yes specified but asciidoc not found in PATH" "$LINENO" 5
18296    fi
18297    have_asciidoc=yes
18298 elif test "x$use_asciidoc" = x"no" ; then
18299    if test "x$ASCIIDOC" != "x"; then
18300       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&5
18301 $as_echo "$as_me: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&2;}
18302    fi
18303    have_asciidoc=no
18304 else
18305    as_fn_error $? "--with-asciidoc expects 'yes' or 'no'" "$LINENO" 5
18306 fi
18307 if test "$have_asciidoc" = yes; then
18308     # scrape the asciidoc version
18309     { $as_echo "$as_me:${as_lineno-$LINENO}: checking the asciidoc version" >&5
18310 $as_echo_n "checking the asciidoc version... " >&6; }
18311     asciidoc_version=`$ASCIIDOC --version 2>/dev/null | cut -d' ' -f2`
18312     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $asciidoc_version" >&5
18313 $as_echo "$asciidoc_version" >&6; }
18314     as_arg_v1=$asciidoc_version
18315 as_arg_v2=8.4.5
18316 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18317 case $? in #(
18318   1) :
18319     if test "x$use_asciidoc" = xauto; then
18320             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&5
18321 $as_echo "$as_me: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&2;}
18322             have_asciidoc=no
18323         else
18324             as_fn_error $? "asciidoc version $asciidoc_version found, but 8.4.5 needed" "$LINENO" 5
18325         fi ;; #(
18326   0) :
18327      ;; #(
18328   2) :
18329      ;; #(
18330   *) :
18331      ;;
18332 esac
18333 fi
18334  if test "$have_asciidoc" = yes; then
18335   HAVE_ASCIIDOC_TRUE=
18336   HAVE_ASCIIDOC_FALSE='#'
18337 else
18338   HAVE_ASCIIDOC_TRUE='#'
18339   HAVE_ASCIIDOC_FALSE=
18340 fi
18341
18342
18343
18344 # Check whether --enable-malloc0returnsnull was given.
18345 if test "${enable_malloc0returnsnull+set}" = set; then :
18346   enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
18347 else
18348   MALLOC_ZERO_RETURNS_NULL=auto
18349 fi
18350
18351
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
18353 $as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
18354 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
18355         if test "$cross_compiling" = yes; then :
18356   MALLOC_ZERO_RETURNS_NULL=yes
18357 else
18358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18359 /* end confdefs.h.  */
18360
18361 #include <stdlib.h>
18362
18363 int
18364 main ()
18365 {
18366
18367     char *m0, *r0, *c0, *p;
18368     m0 = malloc(0);
18369     p = malloc(10);
18370     r0 = realloc(p,0);
18371     c0 = calloc(0,10);
18372     exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
18373
18374   ;
18375   return 0;
18376 }
18377 _ACEOF
18378 if ac_fn_c_try_run "$LINENO"; then :
18379   MALLOC_ZERO_RETURNS_NULL=yes
18380 else
18381   MALLOC_ZERO_RETURNS_NULL=no
18382 fi
18383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18384   conftest.$ac_objext conftest.beam conftest.$ac_ext
18385 fi
18386
18387 fi
18388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
18389 $as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
18390
18391 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
18392         MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
18393         XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
18394         XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
18395 else
18396         MALLOC_ZERO_CFLAGS=""
18397         XMALLOC_ZERO_CFLAGS=""
18398         XTMALLOC_ZERO_CFLAGS=""
18399 fi
18400
18401
18402
18403
18404
18405
18406 # Obtain compiler/linker options for dependencies
18407
18408 pkg_failed=no
18409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XI" >&5
18410 $as_echo_n "checking for XI... " >&6; }
18411
18412 if test -n "$XI_CFLAGS"; then
18413     pkg_cv_XI_CFLAGS="$XI_CFLAGS"
18414  elif test -n "$PKG_CONFIG"; then
18415     if test -n "$PKG_CONFIG" && \
18416     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.4.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.1.99.6\""; } >&5
18417   ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.4.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.1.99.6") 2>&5
18418   ac_status=$?
18419   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18420   test $ac_status = 0; }; then
18421   pkg_cv_XI_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.13 x11 >= 1.4.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.1.99.6" 2>/dev/null`
18422 else
18423   pkg_failed=yes
18424 fi
18425  else
18426     pkg_failed=untried
18427 fi
18428 if test -n "$XI_LIBS"; then
18429     pkg_cv_XI_LIBS="$XI_LIBS"
18430  elif test -n "$PKG_CONFIG"; then
18431     if test -n "$PKG_CONFIG" && \
18432     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.4.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.1.99.6\""; } >&5
18433   ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.4.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.1.99.6") 2>&5
18434   ac_status=$?
18435   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18436   test $ac_status = 0; }; then
18437   pkg_cv_XI_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.13 x11 >= 1.4.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.1.99.6" 2>/dev/null`
18438 else
18439   pkg_failed=yes
18440 fi
18441  else
18442     pkg_failed=untried
18443 fi
18444
18445
18446
18447 if test $pkg_failed = yes; then
18448         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18449 $as_echo "no" >&6; }
18450
18451 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18452         _pkg_short_errors_supported=yes
18453 else
18454         _pkg_short_errors_supported=no
18455 fi
18456         if test $_pkg_short_errors_supported = yes; then
18457                 XI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.13 x11 >= 1.4.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.1.99.6" 2>&1`
18458         else
18459                 XI_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.13 x11 >= 1.4.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.1.99.6" 2>&1`
18460         fi
18461         # Put the nasty error message in config.log where it belongs
18462         echo "$XI_PKG_ERRORS" >&5
18463
18464         as_fn_error $? "Package requirements (xproto >= 7.0.13 x11 >= 1.4.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.1.99.6) were not met:
18465
18466 $XI_PKG_ERRORS
18467
18468 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18469 installed software in a non-standard prefix.
18470
18471 Alternatively, you may set the environment variables XI_CFLAGS
18472 and XI_LIBS to avoid the need to call pkg-config.
18473 See the pkg-config man page for more details." "$LINENO" 5
18474
18475 elif test $pkg_failed = untried; then
18476         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18477 $as_echo "no" >&6; }
18478         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18480 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18481 is in your PATH or set the PKG_CONFIG environment variable to the full
18482 path to pkg-config.
18483
18484 Alternatively, you may set the environment variables XI_CFLAGS
18485 and XI_LIBS to avoid the need to call pkg-config.
18486 See the pkg-config man page for more details.
18487
18488 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18489 See \`config.log' for more details" "$LINENO" 5; }
18490
18491 else
18492         XI_CFLAGS=$pkg_cv_XI_CFLAGS
18493         XI_LIBS=$pkg_cv_XI_LIBS
18494         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18495 $as_echo "yes" >&6; }
18496
18497 fi
18498
18499 # Check for xmlto and asciidoc for man page conversion
18500 # (only needed by people building tarballs)
18501 if test "$have_xmlto" = yes && test "$have_asciidoc" = yes; then
18502         have_doctools=yes
18503 else
18504         have_doctools=no
18505 fi
18506  if test $have_doctools = yes; then
18507   HAVE_DOCTOOLS_TRUE=
18508   HAVE_DOCTOOLS_FALSE='#'
18509 else
18510   HAVE_DOCTOOLS_TRUE='#'
18511   HAVE_DOCTOOLS_FALSE=
18512 fi
18513
18514 if test $have_doctools = no; then
18515         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&5
18516 $as_echo "$as_me: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&2;}
18517 fi
18518
18519 # Determine if the source for man pages is available
18520 # It may already be present (tarball) or can be generated using doctools
18521  if test -f "$srcdir/man/XAllowDeviceEvents.man" || \
18522           test $have_doctools = yes; then
18523   INSTALL_MANPAGES_TRUE=
18524   INSTALL_MANPAGES_FALSE='#'
18525 else
18526   INSTALL_MANPAGES_TRUE='#'
18527   INSTALL_MANPAGES_FALSE=
18528 fi
18529
18530
18531 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile specs/Makefile xi.pc"
18532
18533 cat >confcache <<\_ACEOF
18534 # This file is a shell script that caches the results of configure
18535 # tests run on this system so they can be shared between configure
18536 # scripts and configure runs, see configure's option --config-cache.
18537 # It is not useful on other systems.  If it contains results you don't
18538 # want to keep, you may remove or edit it.
18539 #
18540 # config.status only pays attention to the cache file if you give it
18541 # the --recheck option to rerun configure.
18542 #
18543 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18544 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18545 # following values.
18546
18547 _ACEOF
18548
18549 # The following way of writing the cache mishandles newlines in values,
18550 # but we know of no workaround that is simple, portable, and efficient.
18551 # So, we kill variables containing newlines.
18552 # Ultrix sh set writes to stderr and can't be redirected directly,
18553 # and sets the high bit in the cache file unless we assign to the vars.
18554 (
18555   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18556     eval ac_val=\$$ac_var
18557     case $ac_val in #(
18558     *${as_nl}*)
18559       case $ac_var in #(
18560       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18561 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18562       esac
18563       case $ac_var in #(
18564       _ | IFS | as_nl) ;; #(
18565       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18566       *) { eval $ac_var=; unset $ac_var;} ;;
18567       esac ;;
18568     esac
18569   done
18570
18571   (set) 2>&1 |
18572     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18573     *${as_nl}ac_space=\ *)
18574       # `set' does not quote correctly, so add quotes: double-quote
18575       # substitution turns \\\\ into \\, and sed turns \\ into \.
18576       sed -n \
18577         "s/'/'\\\\''/g;
18578           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18579       ;; #(
18580     *)
18581       # `set' quotes correctly as required by POSIX, so do not add quotes.
18582       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18583       ;;
18584     esac |
18585     sort
18586 ) |
18587   sed '
18588      /^ac_cv_env_/b end
18589      t clear
18590      :clear
18591      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18592      t end
18593      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18594      :end' >>confcache
18595 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18596   if test -w "$cache_file"; then
18597     if test "x$cache_file" != "x/dev/null"; then
18598       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18599 $as_echo "$as_me: updating cache $cache_file" >&6;}
18600       if test ! -f "$cache_file" || test -h "$cache_file"; then
18601         cat confcache >"$cache_file"
18602       else
18603         case $cache_file in #(
18604         */* | ?:*)
18605           mv -f confcache "$cache_file"$$ &&
18606           mv -f "$cache_file"$$ "$cache_file" ;; #(
18607         *)
18608           mv -f confcache "$cache_file" ;;
18609         esac
18610       fi
18611     fi
18612   else
18613     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18614 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18615   fi
18616 fi
18617 rm -f confcache
18618
18619 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18620 # Let make expand exec_prefix.
18621 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18622
18623 DEFS=-DHAVE_CONFIG_H
18624
18625 ac_libobjs=
18626 ac_ltlibobjs=
18627 U=
18628 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18629   # 1. Remove the extension, and $U if already installed.
18630   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18631   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18632   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18633   #    will be set to the directory where LIBOBJS objects are built.
18634   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18635   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18636 done
18637 LIBOBJS=$ac_libobjs
18638
18639 LTLIBOBJS=$ac_ltlibobjs
18640
18641
18642  if test -n "$EXEEXT"; then
18643   am__EXEEXT_TRUE=
18644   am__EXEEXT_FALSE='#'
18645 else
18646   am__EXEEXT_TRUE='#'
18647   am__EXEEXT_FALSE=
18648 fi
18649
18650 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18651   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18653 fi
18654 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18655   as_fn_error $? "conditional \"AMDEP\" was never defined.
18656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18657 fi
18658 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18659   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18661 fi
18662 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
18663   as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
18664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18665 fi
18666 if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
18667   as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
18668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18669 fi
18670 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
18671   as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
18672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18673 fi
18674 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
18675   as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
18676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18677 fi
18678 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
18679   as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
18680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18681 fi
18682 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
18683   as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
18684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18685 fi
18686 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
18687   as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
18688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18689 fi
18690 if test -z "${HAVE_ASCIIDOC_TRUE}" && test -z "${HAVE_ASCIIDOC_FALSE}"; then
18691   as_fn_error $? "conditional \"HAVE_ASCIIDOC\" was never defined.
18692 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18693 fi
18694 if test -z "${HAVE_DOCTOOLS_TRUE}" && test -z "${HAVE_DOCTOOLS_FALSE}"; then
18695   as_fn_error $? "conditional \"HAVE_DOCTOOLS\" was never defined.
18696 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18697 fi
18698 if test -z "${INSTALL_MANPAGES_TRUE}" && test -z "${INSTALL_MANPAGES_FALSE}"; then
18699   as_fn_error $? "conditional \"INSTALL_MANPAGES\" was never defined.
18700 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18701 fi
18702
18703 : "${CONFIG_STATUS=./config.status}"
18704 ac_write_fail=0
18705 ac_clean_files_save=$ac_clean_files
18706 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18708 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18709 as_write_fail=0
18710 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18711 #! $SHELL
18712 # Generated by $as_me.
18713 # Run this file to recreate the current configuration.
18714 # Compiler output produced by configure, useful for debugging
18715 # configure, is in config.log if it exists.
18716
18717 debug=false
18718 ac_cs_recheck=false
18719 ac_cs_silent=false
18720
18721 SHELL=\${CONFIG_SHELL-$SHELL}
18722 export SHELL
18723 _ASEOF
18724 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18725 ## -------------------- ##
18726 ## M4sh Initialization. ##
18727 ## -------------------- ##
18728
18729 # Be more Bourne compatible
18730 DUALCASE=1; export DUALCASE # for MKS sh
18731 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18732   emulate sh
18733   NULLCMD=:
18734   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18735   # is contrary to our usage.  Disable this feature.
18736   alias -g '${1+"$@"}'='"$@"'
18737   setopt NO_GLOB_SUBST
18738 else
18739   case `(set -o) 2>/dev/null` in #(
18740   *posix*) :
18741     set -o posix ;; #(
18742   *) :
18743      ;;
18744 esac
18745 fi
18746
18747
18748 as_nl='
18749 '
18750 export as_nl
18751 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18752 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18753 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18754 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18755 # Prefer a ksh shell builtin over an external printf program on Solaris,
18756 # but without wasting forks for bash or zsh.
18757 if test -z "$BASH_VERSION$ZSH_VERSION" \
18758     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18759   as_echo='print -r --'
18760   as_echo_n='print -rn --'
18761 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18762   as_echo='printf %s\n'
18763   as_echo_n='printf %s'
18764 else
18765   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18766     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18767     as_echo_n='/usr/ucb/echo -n'
18768   else
18769     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18770     as_echo_n_body='eval
18771       arg=$1;
18772       case $arg in #(
18773       *"$as_nl"*)
18774         expr "X$arg" : "X\\(.*\\)$as_nl";
18775         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18776       esac;
18777       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18778     '
18779     export as_echo_n_body
18780     as_echo_n='sh -c $as_echo_n_body as_echo'
18781   fi
18782   export as_echo_body
18783   as_echo='sh -c $as_echo_body as_echo'
18784 fi
18785
18786 # The user is always right.
18787 if test "${PATH_SEPARATOR+set}" != set; then
18788   PATH_SEPARATOR=:
18789   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18790     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18791       PATH_SEPARATOR=';'
18792   }
18793 fi
18794
18795
18796 # IFS
18797 # We need space, tab and new line, in precisely that order.  Quoting is
18798 # there to prevent editors from complaining about space-tab.
18799 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18800 # splitting by setting IFS to empty value.)
18801 IFS=" ""        $as_nl"
18802
18803 # Find who we are.  Look in the path if we contain no directory separator.
18804 as_myself=
18805 case $0 in #((
18806   *[\\/]* ) as_myself=$0 ;;
18807   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18808 for as_dir in $PATH
18809 do
18810   IFS=$as_save_IFS
18811   test -z "$as_dir" && as_dir=.
18812     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18813   done
18814 IFS=$as_save_IFS
18815
18816      ;;
18817 esac
18818 # We did not find ourselves, most probably we were run as `sh COMMAND'
18819 # in which case we are not to be found in the path.
18820 if test "x$as_myself" = x; then
18821   as_myself=$0
18822 fi
18823 if test ! -f "$as_myself"; then
18824   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18825   exit 1
18826 fi
18827
18828 # Unset variables that we do not need and which cause bugs (e.g. in
18829 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18830 # suppresses any "Segmentation fault" message there.  '((' could
18831 # trigger a bug in pdksh 5.2.14.
18832 for as_var in BASH_ENV ENV MAIL MAILPATH
18833 do eval test x\${$as_var+set} = xset \
18834   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18835 done
18836 PS1='$ '
18837 PS2='> '
18838 PS4='+ '
18839
18840 # NLS nuisances.
18841 LC_ALL=C
18842 export LC_ALL
18843 LANGUAGE=C
18844 export LANGUAGE
18845
18846 # CDPATH.
18847 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18848
18849
18850 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18851 # ----------------------------------------
18852 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18853 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18854 # script with STATUS, using 1 if that was 0.
18855 as_fn_error ()
18856 {
18857   as_status=$1; test $as_status -eq 0 && as_status=1
18858   if test "$4"; then
18859     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18860     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18861   fi
18862   $as_echo "$as_me: error: $2" >&2
18863   as_fn_exit $as_status
18864 } # as_fn_error
18865
18866
18867 # as_fn_set_status STATUS
18868 # -----------------------
18869 # Set $? to STATUS, without forking.
18870 as_fn_set_status ()
18871 {
18872   return $1
18873 } # as_fn_set_status
18874
18875 # as_fn_exit STATUS
18876 # -----------------
18877 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18878 as_fn_exit ()
18879 {
18880   set +e
18881   as_fn_set_status $1
18882   exit $1
18883 } # as_fn_exit
18884
18885 # as_fn_unset VAR
18886 # ---------------
18887 # Portably unset VAR.
18888 as_fn_unset ()
18889 {
18890   { eval $1=; unset $1;}
18891 }
18892 as_unset=as_fn_unset
18893 # as_fn_append VAR VALUE
18894 # ----------------------
18895 # Append the text in VALUE to the end of the definition contained in VAR. Take
18896 # advantage of any shell optimizations that allow amortized linear growth over
18897 # repeated appends, instead of the typical quadratic growth present in naive
18898 # implementations.
18899 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18900   eval 'as_fn_append ()
18901   {
18902     eval $1+=\$2
18903   }'
18904 else
18905   as_fn_append ()
18906   {
18907     eval $1=\$$1\$2
18908   }
18909 fi # as_fn_append
18910
18911 # as_fn_arith ARG...
18912 # ------------------
18913 # Perform arithmetic evaluation on the ARGs, and store the result in the
18914 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18915 # must be portable across $(()) and expr.
18916 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18917   eval 'as_fn_arith ()
18918   {
18919     as_val=$(( $* ))
18920   }'
18921 else
18922   as_fn_arith ()
18923   {
18924     as_val=`expr "$@" || test $? -eq 1`
18925   }
18926 fi # as_fn_arith
18927
18928
18929 if expr a : '\(a\)' >/dev/null 2>&1 &&
18930    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18931   as_expr=expr
18932 else
18933   as_expr=false
18934 fi
18935
18936 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18937   as_basename=basename
18938 else
18939   as_basename=false
18940 fi
18941
18942 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18943   as_dirname=dirname
18944 else
18945   as_dirname=false
18946 fi
18947
18948 as_me=`$as_basename -- "$0" ||
18949 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18950          X"$0" : 'X\(//\)$' \| \
18951          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18952 $as_echo X/"$0" |
18953     sed '/^.*\/\([^/][^/]*\)\/*$/{
18954             s//\1/
18955             q
18956           }
18957           /^X\/\(\/\/\)$/{
18958             s//\1/
18959             q
18960           }
18961           /^X\/\(\/\).*/{
18962             s//\1/
18963             q
18964           }
18965           s/.*/./; q'`
18966
18967 # Avoid depending upon Character Ranges.
18968 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18969 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18970 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18971 as_cr_digits='0123456789'
18972 as_cr_alnum=$as_cr_Letters$as_cr_digits
18973
18974 ECHO_C= ECHO_N= ECHO_T=
18975 case `echo -n x` in #(((((
18976 -n*)
18977   case `echo 'xy\c'` in
18978   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18979   xy)  ECHO_C='\c';;
18980   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18981        ECHO_T=' ';;
18982   esac;;
18983 *)
18984   ECHO_N='-n';;
18985 esac
18986
18987 rm -f conf$$ conf$$.exe conf$$.file
18988 if test -d conf$$.dir; then
18989   rm -f conf$$.dir/conf$$.file
18990 else
18991   rm -f conf$$.dir
18992   mkdir conf$$.dir 2>/dev/null
18993 fi
18994 if (echo >conf$$.file) 2>/dev/null; then
18995   if ln -s conf$$.file conf$$ 2>/dev/null; then
18996     as_ln_s='ln -s'
18997     # ... but there are two gotchas:
18998     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18999     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19000     # In both cases, we have to default to `cp -p'.
19001     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19002       as_ln_s='cp -p'
19003   elif ln conf$$.file conf$$ 2>/dev/null; then
19004     as_ln_s=ln
19005   else
19006     as_ln_s='cp -p'
19007   fi
19008 else
19009   as_ln_s='cp -p'
19010 fi
19011 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19012 rmdir conf$$.dir 2>/dev/null
19013
19014
19015 # as_fn_mkdir_p
19016 # -------------
19017 # Create "$as_dir" as a directory, including parents if necessary.
19018 as_fn_mkdir_p ()
19019 {
19020
19021   case $as_dir in #(
19022   -*) as_dir=./$as_dir;;
19023   esac
19024   test -d "$as_dir" || eval $as_mkdir_p || {
19025     as_dirs=
19026     while :; do
19027       case $as_dir in #(
19028       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19029       *) as_qdir=$as_dir;;
19030       esac
19031       as_dirs="'$as_qdir' $as_dirs"
19032       as_dir=`$as_dirname -- "$as_dir" ||
19033 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19034          X"$as_dir" : 'X\(//\)[^/]' \| \
19035          X"$as_dir" : 'X\(//\)$' \| \
19036          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19037 $as_echo X"$as_dir" |
19038     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19039             s//\1/
19040             q
19041           }
19042           /^X\(\/\/\)[^/].*/{
19043             s//\1/
19044             q
19045           }
19046           /^X\(\/\/\)$/{
19047             s//\1/
19048             q
19049           }
19050           /^X\(\/\).*/{
19051             s//\1/
19052             q
19053           }
19054           s/.*/./; q'`
19055       test -d "$as_dir" && break
19056     done
19057     test -z "$as_dirs" || eval "mkdir $as_dirs"
19058   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19059
19060
19061 } # as_fn_mkdir_p
19062 if mkdir -p . 2>/dev/null; then
19063   as_mkdir_p='mkdir -p "$as_dir"'
19064 else
19065   test -d ./-p && rmdir ./-p
19066   as_mkdir_p=false
19067 fi
19068
19069 if test -x / >/dev/null 2>&1; then
19070   as_test_x='test -x'
19071 else
19072   if ls -dL / >/dev/null 2>&1; then
19073     as_ls_L_option=L
19074   else
19075     as_ls_L_option=
19076   fi
19077   as_test_x='
19078     eval sh -c '\''
19079       if test -d "$1"; then
19080         test -d "$1/.";
19081       else
19082         case $1 in #(
19083         -*)set "./$1";;
19084         esac;
19085         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19086         ???[sx]*):;;*)false;;esac;fi
19087     '\'' sh
19088   '
19089 fi
19090 as_executable_p=$as_test_x
19091
19092 # Sed expression to map a string onto a valid CPP name.
19093 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19094
19095 # Sed expression to map a string onto a valid variable name.
19096 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19097
19098
19099 exec 6>&1
19100 ## ----------------------------------- ##
19101 ## Main body of $CONFIG_STATUS script. ##
19102 ## ----------------------------------- ##
19103 _ASEOF
19104 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19105
19106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19107 # Save the log message, to keep $0 and so on meaningful, and to
19108 # report actual input values of CONFIG_FILES etc. instead of their
19109 # values after options handling.
19110 ac_log="
19111 This file was extended by libXi $as_me 1.6.1, which was
19112 generated by GNU Autoconf 2.68.  Invocation command line was
19113
19114   CONFIG_FILES    = $CONFIG_FILES
19115   CONFIG_HEADERS  = $CONFIG_HEADERS
19116   CONFIG_LINKS    = $CONFIG_LINKS
19117   CONFIG_COMMANDS = $CONFIG_COMMANDS
19118   $ $0 $@
19119
19120 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19121 "
19122
19123 _ACEOF
19124
19125 case $ac_config_files in *"
19126 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19127 esac
19128
19129 case $ac_config_headers in *"
19130 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19131 esac
19132
19133
19134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19135 # Files that config.status was made for.
19136 config_files="$ac_config_files"
19137 config_headers="$ac_config_headers"
19138 config_commands="$ac_config_commands"
19139
19140 _ACEOF
19141
19142 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19143 ac_cs_usage="\
19144 \`$as_me' instantiates files and other configuration actions
19145 from templates according to the current configuration.  Unless the files
19146 and actions are specified as TAGs, all are instantiated by default.
19147
19148 Usage: $0 [OPTION]... [TAG]...
19149
19150   -h, --help       print this help, then exit
19151   -V, --version    print version number and configuration settings, then exit
19152       --config     print configuration, then exit
19153   -q, --quiet, --silent
19154                    do not print progress messages
19155   -d, --debug      don't remove temporary files
19156       --recheck    update $as_me by reconfiguring in the same conditions
19157       --file=FILE[:TEMPLATE]
19158                    instantiate the configuration file FILE
19159       --header=FILE[:TEMPLATE]
19160                    instantiate the configuration header FILE
19161
19162 Configuration files:
19163 $config_files
19164
19165 Configuration headers:
19166 $config_headers
19167
19168 Configuration commands:
19169 $config_commands
19170
19171 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19172
19173 _ACEOF
19174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19175 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19176 ac_cs_version="\\
19177 libXi config.status 1.6.1
19178 configured by $0, generated by GNU Autoconf 2.68,
19179   with options \\"\$ac_cs_config\\"
19180
19181 Copyright (C) 2010 Free Software Foundation, Inc.
19182 This config.status script is free software; the Free Software Foundation
19183 gives unlimited permission to copy, distribute and modify it."
19184
19185 ac_pwd='$ac_pwd'
19186 srcdir='$srcdir'
19187 INSTALL='$INSTALL'
19188 MKDIR_P='$MKDIR_P'
19189 AWK='$AWK'
19190 test -n "\$AWK" || AWK=awk
19191 _ACEOF
19192
19193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19194 # The default lists apply if the user does not specify any file.
19195 ac_need_defaults=:
19196 while test $# != 0
19197 do
19198   case $1 in
19199   --*=?*)
19200     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19201     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19202     ac_shift=:
19203     ;;
19204   --*=)
19205     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19206     ac_optarg=
19207     ac_shift=:
19208     ;;
19209   *)
19210     ac_option=$1
19211     ac_optarg=$2
19212     ac_shift=shift
19213     ;;
19214   esac
19215
19216   case $ac_option in
19217   # Handling of the options.
19218   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19219     ac_cs_recheck=: ;;
19220   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19221     $as_echo "$ac_cs_version"; exit ;;
19222   --config | --confi | --conf | --con | --co | --c )
19223     $as_echo "$ac_cs_config"; exit ;;
19224   --debug | --debu | --deb | --de | --d | -d )
19225     debug=: ;;
19226   --file | --fil | --fi | --f )
19227     $ac_shift
19228     case $ac_optarg in
19229     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19230     '') as_fn_error $? "missing file argument" ;;
19231     esac
19232     as_fn_append CONFIG_FILES " '$ac_optarg'"
19233     ac_need_defaults=false;;
19234   --header | --heade | --head | --hea )
19235     $ac_shift
19236     case $ac_optarg in
19237     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19238     esac
19239     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19240     ac_need_defaults=false;;
19241   --he | --h)
19242     # Conflict between --help and --header
19243     as_fn_error $? "ambiguous option: \`$1'
19244 Try \`$0 --help' for more information.";;
19245   --help | --hel | -h )
19246     $as_echo "$ac_cs_usage"; exit ;;
19247   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19248   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19249     ac_cs_silent=: ;;
19250
19251   # This is an error.
19252   -*) as_fn_error $? "unrecognized option: \`$1'
19253 Try \`$0 --help' for more information." ;;
19254
19255   *) as_fn_append ac_config_targets " $1"
19256      ac_need_defaults=false ;;
19257
19258   esac
19259   shift
19260 done
19261
19262 ac_configure_extra_args=
19263
19264 if $ac_cs_silent; then
19265   exec 6>/dev/null
19266   ac_configure_extra_args="$ac_configure_extra_args --silent"
19267 fi
19268
19269 _ACEOF
19270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19271 if \$ac_cs_recheck; then
19272   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19273   shift
19274   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19275   CONFIG_SHELL='$SHELL'
19276   export CONFIG_SHELL
19277   exec "\$@"
19278 fi
19279
19280 _ACEOF
19281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19282 exec 5>>config.log
19283 {
19284   echo
19285   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19286 ## Running $as_me. ##
19287 _ASBOX
19288   $as_echo "$ac_log"
19289 } >&5
19290
19291 _ACEOF
19292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19293 #
19294 # INIT-COMMANDS
19295 #
19296 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19297
19298
19299 # The HP-UX ksh and POSIX shell print the target directory to stdout
19300 # if CDPATH is set.
19301 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19302
19303 sed_quote_subst='$sed_quote_subst'
19304 double_quote_subst='$double_quote_subst'
19305 delay_variable_subst='$delay_variable_subst'
19306 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19307 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19308 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19309 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19310 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19311 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19312 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19313 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19314 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19315 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19316 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19317 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19318 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19319 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19320 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19321 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19322 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19323 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19324 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19325 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19326 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19327 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19328 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19329 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19330 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19331 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19332 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19333 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19334 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19335 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19336 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19337 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19338 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19339 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19340 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19341 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19342 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19343 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19344 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19345 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19346 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19347 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19348 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19349 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19350 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19351 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19352 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19353 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19354 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19355 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19356 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19357 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19358 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19359 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19360 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19361 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19362 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"`'
19363 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19364 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19365 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19366 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19367 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19368 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19369 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19370 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19371 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19372 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19373 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19374 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19375 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19376 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19377 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19378 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19379 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19380 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19381 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19382 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19383 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19384 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19385 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19386 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19387 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19388 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19389 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19390 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19391 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19392 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19393 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19394 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19395 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19396 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19397 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19398 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19399 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19400 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19401 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19402 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19403 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19404 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19405 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19406 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19407 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19408 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19409 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19410 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19411 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19412 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19413 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19414 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19415 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19416 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19417 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19418 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19419 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19420 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19421 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19422 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19423 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19424 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19425 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19426 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19427 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19428 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19429 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19430 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19431 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19432 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19433 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19434 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19435 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19436
19437 LTCC='$LTCC'
19438 LTCFLAGS='$LTCFLAGS'
19439 compiler='$compiler_DEFAULT'
19440
19441 # A function that is used when there is no print builtin or printf.
19442 func_fallback_echo ()
19443 {
19444   eval 'cat <<_LTECHO_EOF
19445 \$1
19446 _LTECHO_EOF'
19447 }
19448
19449 # Quote evaled strings.
19450 for var in SHELL \
19451 ECHO \
19452 PATH_SEPARATOR \
19453 SED \
19454 GREP \
19455 EGREP \
19456 FGREP \
19457 LD \
19458 NM \
19459 LN_S \
19460 lt_SP2NL \
19461 lt_NL2SP \
19462 reload_flag \
19463 OBJDUMP \
19464 deplibs_check_method \
19465 file_magic_cmd \
19466 file_magic_glob \
19467 want_nocaseglob \
19468 DLLTOOL \
19469 sharedlib_from_linklib_cmd \
19470 AR \
19471 AR_FLAGS \
19472 archiver_list_spec \
19473 STRIP \
19474 RANLIB \
19475 CC \
19476 CFLAGS \
19477 compiler \
19478 lt_cv_sys_global_symbol_pipe \
19479 lt_cv_sys_global_symbol_to_cdecl \
19480 lt_cv_sys_global_symbol_to_c_name_address \
19481 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19482 nm_file_list_spec \
19483 lt_prog_compiler_no_builtin_flag \
19484 lt_prog_compiler_pic \
19485 lt_prog_compiler_wl \
19486 lt_prog_compiler_static \
19487 lt_cv_prog_compiler_c_o \
19488 need_locks \
19489 MANIFEST_TOOL \
19490 DSYMUTIL \
19491 NMEDIT \
19492 LIPO \
19493 OTOOL \
19494 OTOOL64 \
19495 shrext_cmds \
19496 export_dynamic_flag_spec \
19497 whole_archive_flag_spec \
19498 compiler_needs_object \
19499 with_gnu_ld \
19500 allow_undefined_flag \
19501 no_undefined_flag \
19502 hardcode_libdir_flag_spec \
19503 hardcode_libdir_separator \
19504 exclude_expsyms \
19505 include_expsyms \
19506 file_list_spec \
19507 variables_saved_for_relink \
19508 libname_spec \
19509 library_names_spec \
19510 soname_spec \
19511 install_override_mode \
19512 finish_eval \
19513 old_striplib \
19514 striplib; do
19515     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19516     *[\\\\\\\`\\"\\\$]*)
19517       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19518       ;;
19519     *)
19520       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19521       ;;
19522     esac
19523 done
19524
19525 # Double-quote double-evaled strings.
19526 for var in reload_cmds \
19527 old_postinstall_cmds \
19528 old_postuninstall_cmds \
19529 old_archive_cmds \
19530 extract_expsyms_cmds \
19531 old_archive_from_new_cmds \
19532 old_archive_from_expsyms_cmds \
19533 archive_cmds \
19534 archive_expsym_cmds \
19535 module_cmds \
19536 module_expsym_cmds \
19537 export_symbols_cmds \
19538 prelink_cmds \
19539 postlink_cmds \
19540 postinstall_cmds \
19541 postuninstall_cmds \
19542 finish_cmds \
19543 sys_lib_search_path_spec \
19544 sys_lib_dlsearch_path_spec; do
19545     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19546     *[\\\\\\\`\\"\\\$]*)
19547       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19548       ;;
19549     *)
19550       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19551       ;;
19552     esac
19553 done
19554
19555 ac_aux_dir='$ac_aux_dir'
19556 xsi_shell='$xsi_shell'
19557 lt_shell_append='$lt_shell_append'
19558
19559 # See if we are running on zsh, and set the options which allow our
19560 # commands through without removal of \ escapes INIT.
19561 if test -n "\${ZSH_VERSION+set}" ; then
19562    setopt NO_GLOB_SUBST
19563 fi
19564
19565
19566     PACKAGE='$PACKAGE'
19567     VERSION='$VERSION'
19568     TIMESTAMP='$TIMESTAMP'
19569     RM='$RM'
19570     ofile='$ofile'
19571
19572
19573
19574
19575 _ACEOF
19576
19577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19578
19579 # Handling of arguments.
19580 for ac_config_target in $ac_config_targets
19581 do
19582   case $ac_config_target in
19583     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
19584     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19585     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19586     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19587     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19588     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19589     "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
19590     "xi.pc") CONFIG_FILES="$CONFIG_FILES xi.pc" ;;
19591
19592   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19593   esac
19594 done
19595
19596
19597 # If the user did not use the arguments to specify the items to instantiate,
19598 # then the envvar interface is used.  Set only those that are not.
19599 # We use the long form for the default assignment because of an extremely
19600 # bizarre bug on SunOS 4.1.3.
19601 if $ac_need_defaults; then
19602   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19603   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19604   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19605 fi
19606
19607 # Have a temporary directory for convenience.  Make it in the build tree
19608 # simply because there is no reason against having it here, and in addition,
19609 # creating and moving files from /tmp can sometimes cause problems.
19610 # Hook for its removal unless debugging.
19611 # Note that there is a small window in which the directory will not be cleaned:
19612 # after its creation but before its name has been assigned to `$tmp'.
19613 $debug ||
19614 {
19615   tmp= ac_tmp=
19616   trap 'exit_status=$?
19617   : "${ac_tmp:=$tmp}"
19618   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19619 ' 0
19620   trap 'as_fn_exit 1' 1 2 13 15
19621 }
19622 # Create a (secure) tmp directory for tmp files.
19623
19624 {
19625   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19626   test -d "$tmp"
19627 }  ||
19628 {
19629   tmp=./conf$$-$RANDOM
19630   (umask 077 && mkdir "$tmp")
19631 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19632 ac_tmp=$tmp
19633
19634 # Set up the scripts for CONFIG_FILES section.
19635 # No need to generate them if there are no CONFIG_FILES.
19636 # This happens for instance with `./config.status config.h'.
19637 if test -n "$CONFIG_FILES"; then
19638
19639
19640 ac_cr=`echo X | tr X '\015'`
19641 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19642 # But we know of no other shell where ac_cr would be empty at this
19643 # point, so we can use a bashism as a fallback.
19644 if test "x$ac_cr" = x; then
19645   eval ac_cr=\$\'\\r\'
19646 fi
19647 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19648 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19649   ac_cs_awk_cr='\\r'
19650 else
19651   ac_cs_awk_cr=$ac_cr
19652 fi
19653
19654 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19655 _ACEOF
19656
19657
19658 {
19659   echo "cat >conf$$subs.awk <<_ACEOF" &&
19660   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19661   echo "_ACEOF"
19662 } >conf$$subs.sh ||
19663   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19664 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19665 ac_delim='%!_!# '
19666 for ac_last_try in false false false false false :; do
19667   . ./conf$$subs.sh ||
19668     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19669
19670   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19671   if test $ac_delim_n = $ac_delim_num; then
19672     break
19673   elif $ac_last_try; then
19674     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19675   else
19676     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19677   fi
19678 done
19679 rm -f conf$$subs.sh
19680
19681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19682 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19683 _ACEOF
19684 sed -n '
19685 h
19686 s/^/S["/; s/!.*/"]=/
19687 p
19688 g
19689 s/^[^!]*!//
19690 :repl
19691 t repl
19692 s/'"$ac_delim"'$//
19693 t delim
19694 :nl
19695 h
19696 s/\(.\{148\}\)..*/\1/
19697 t more1
19698 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19699 p
19700 n
19701 b repl
19702 :more1
19703 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19704 p
19705 g
19706 s/.\{148\}//
19707 t nl
19708 :delim
19709 h
19710 s/\(.\{148\}\)..*/\1/
19711 t more2
19712 s/["\\]/\\&/g; s/^/"/; s/$/"/
19713 p
19714 b
19715 :more2
19716 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19717 p
19718 g
19719 s/.\{148\}//
19720 t delim
19721 ' <conf$$subs.awk | sed '
19722 /^[^""]/{
19723   N
19724   s/\n//
19725 }
19726 ' >>$CONFIG_STATUS || ac_write_fail=1
19727 rm -f conf$$subs.awk
19728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19729 _ACAWK
19730 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19731   for (key in S) S_is_set[key] = 1
19732   FS = "\a"
19733
19734 }
19735 {
19736   line = $ 0
19737   nfields = split(line, field, "@")
19738   substed = 0
19739   len = length(field[1])
19740   for (i = 2; i < nfields; i++) {
19741     key = field[i]
19742     keylen = length(key)
19743     if (S_is_set[key]) {
19744       value = S[key]
19745       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19746       len += length(value) + length(field[++i])
19747       substed = 1
19748     } else
19749       len += 1 + keylen
19750   }
19751
19752   print line
19753 }
19754
19755 _ACAWK
19756 _ACEOF
19757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19758 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19759   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19760 else
19761   cat
19762 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19763   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19764 _ACEOF
19765
19766 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19767 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19768 # trailing colons and then remove the whole line if VPATH becomes empty
19769 # (actually we leave an empty line to preserve line numbers).
19770 if test "x$srcdir" = x.; then
19771   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
19772 h
19773 s///
19774 s/^/:/
19775 s/[      ]*$/:/
19776 s/:\$(srcdir):/:/g
19777 s/:\${srcdir}:/:/g
19778 s/:@srcdir@:/:/g
19779 s/^:*//
19780 s/:*$//
19781 x
19782 s/\(=[   ]*\).*/\1/
19783 G
19784 s/\n//
19785 s/^[^=]*=[       ]*$//
19786 }'
19787 fi
19788
19789 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19790 fi # test -n "$CONFIG_FILES"
19791
19792 # Set up the scripts for CONFIG_HEADERS section.
19793 # No need to generate them if there are no CONFIG_HEADERS.
19794 # This happens for instance with `./config.status Makefile'.
19795 if test -n "$CONFIG_HEADERS"; then
19796 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19797 BEGIN {
19798 _ACEOF
19799
19800 # Transform confdefs.h into an awk script `defines.awk', embedded as
19801 # here-document in config.status, that substitutes the proper values into
19802 # config.h.in to produce config.h.
19803
19804 # Create a delimiter string that does not exist in confdefs.h, to ease
19805 # handling of long lines.
19806 ac_delim='%!_!# '
19807 for ac_last_try in false false :; do
19808   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19809   if test -z "$ac_tt"; then
19810     break
19811   elif $ac_last_try; then
19812     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19813   else
19814     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19815   fi
19816 done
19817
19818 # For the awk script, D is an array of macro values keyed by name,
19819 # likewise P contains macro parameters if any.  Preserve backslash
19820 # newline sequences.
19821
19822 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19823 sed -n '
19824 s/.\{148\}/&'"$ac_delim"'/g
19825 t rset
19826 :rset
19827 s/^[     ]*#[    ]*define[       ][      ]*/ /
19828 t def
19829 d
19830 :def
19831 s/\\$//
19832 t bsnl
19833 s/["\\]/\\&/g
19834 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19835 D["\1"]=" \3"/p
19836 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
19837 d
19838 :bsnl
19839 s/["\\]/\\&/g
19840 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19841 D["\1"]=" \3\\\\\\n"\\/p
19842 t cont
19843 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19844 t cont
19845 d
19846 :cont
19847 n
19848 s/.\{148\}/&'"$ac_delim"'/g
19849 t clear
19850 :clear
19851 s/\\$//
19852 t bsnlc
19853 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19854 d
19855 :bsnlc
19856 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19857 b cont
19858 ' <confdefs.h | sed '
19859 s/'"$ac_delim"'/"\\\
19860 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19861
19862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19863   for (key in D) D_is_set[key] = 1
19864   FS = "\a"
19865 }
19866 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19867   line = \$ 0
19868   split(line, arg, " ")
19869   if (arg[1] == "#") {
19870     defundef = arg[2]
19871     mac1 = arg[3]
19872   } else {
19873     defundef = substr(arg[1], 2)
19874     mac1 = arg[2]
19875   }
19876   split(mac1, mac2, "(") #)
19877   macro = mac2[1]
19878   prefix = substr(line, 1, index(line, defundef) - 1)
19879   if (D_is_set[macro]) {
19880     # Preserve the white space surrounding the "#".
19881     print prefix "define", macro P[macro] D[macro]
19882     next
19883   } else {
19884     # Replace #undef with comments.  This is necessary, for example,
19885     # in the case of _POSIX_SOURCE, which is predefined and required
19886     # on some systems where configure will not decide to define it.
19887     if (defundef == "undef") {
19888       print "/*", prefix defundef, macro, "*/"
19889       next
19890     }
19891   }
19892 }
19893 { print }
19894 _ACAWK
19895 _ACEOF
19896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19897   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19898 fi # test -n "$CONFIG_HEADERS"
19899
19900
19901 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19902 shift
19903 for ac_tag
19904 do
19905   case $ac_tag in
19906   :[FHLC]) ac_mode=$ac_tag; continue;;
19907   esac
19908   case $ac_mode$ac_tag in
19909   :[FHL]*:*);;
19910   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19911   :[FH]-) ac_tag=-:-;;
19912   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19913   esac
19914   ac_save_IFS=$IFS
19915   IFS=:
19916   set x $ac_tag
19917   IFS=$ac_save_IFS
19918   shift
19919   ac_file=$1
19920   shift
19921
19922   case $ac_mode in
19923   :L) ac_source=$1;;
19924   :[FH])
19925     ac_file_inputs=
19926     for ac_f
19927     do
19928       case $ac_f in
19929       -) ac_f="$ac_tmp/stdin";;
19930       *) # Look for the file first in the build tree, then in the source tree
19931          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19932          # because $ac_f cannot contain `:'.
19933          test -f "$ac_f" ||
19934            case $ac_f in
19935            [\\/$]*) false;;
19936            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19937            esac ||
19938            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19939       esac
19940       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19941       as_fn_append ac_file_inputs " '$ac_f'"
19942     done
19943
19944     # Let's still pretend it is `configure' which instantiates (i.e., don't
19945     # use $as_me), people would be surprised to read:
19946     #    /* config.h.  Generated by config.status.  */
19947     configure_input='Generated from '`
19948           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19949         `' by configure.'
19950     if test x"$ac_file" != x-; then
19951       configure_input="$ac_file.  $configure_input"
19952       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19953 $as_echo "$as_me: creating $ac_file" >&6;}
19954     fi
19955     # Neutralize special characters interpreted by sed in replacement strings.
19956     case $configure_input in #(
19957     *\&* | *\|* | *\\* )
19958        ac_sed_conf_input=`$as_echo "$configure_input" |
19959        sed 's/[\\\\&|]/\\\\&/g'`;; #(
19960     *) ac_sed_conf_input=$configure_input;;
19961     esac
19962
19963     case $ac_tag in
19964     *:-:* | *:-) cat >"$ac_tmp/stdin" \
19965       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19966     esac
19967     ;;
19968   esac
19969
19970   ac_dir=`$as_dirname -- "$ac_file" ||
19971 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19972          X"$ac_file" : 'X\(//\)[^/]' \| \
19973          X"$ac_file" : 'X\(//\)$' \| \
19974          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19975 $as_echo X"$ac_file" |
19976     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19977             s//\1/
19978             q
19979           }
19980           /^X\(\/\/\)[^/].*/{
19981             s//\1/
19982             q
19983           }
19984           /^X\(\/\/\)$/{
19985             s//\1/
19986             q
19987           }
19988           /^X\(\/\).*/{
19989             s//\1/
19990             q
19991           }
19992           s/.*/./; q'`
19993   as_dir="$ac_dir"; as_fn_mkdir_p
19994   ac_builddir=.
19995
19996 case "$ac_dir" in
19997 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19998 *)
19999   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20000   # A ".." for each directory in $ac_dir_suffix.
20001   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20002   case $ac_top_builddir_sub in
20003   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20004   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20005   esac ;;
20006 esac
20007 ac_abs_top_builddir=$ac_pwd
20008 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20009 # for backward compatibility:
20010 ac_top_builddir=$ac_top_build_prefix
20011
20012 case $srcdir in
20013   .)  # We are building in place.
20014     ac_srcdir=.
20015     ac_top_srcdir=$ac_top_builddir_sub
20016     ac_abs_top_srcdir=$ac_pwd ;;
20017   [\\/]* | ?:[\\/]* )  # Absolute name.
20018     ac_srcdir=$srcdir$ac_dir_suffix;
20019     ac_top_srcdir=$srcdir
20020     ac_abs_top_srcdir=$srcdir ;;
20021   *) # Relative name.
20022     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20023     ac_top_srcdir=$ac_top_build_prefix$srcdir
20024     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20025 esac
20026 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20027
20028
20029   case $ac_mode in
20030   :F)
20031   #
20032   # CONFIG_FILE
20033   #
20034
20035   case $INSTALL in
20036   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20037   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20038   esac
20039   ac_MKDIR_P=$MKDIR_P
20040   case $MKDIR_P in
20041   [\\/$]* | ?:[\\/]* ) ;;
20042   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20043   esac
20044 _ACEOF
20045
20046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20047 # If the template does not know about datarootdir, expand it.
20048 # FIXME: This hack should be removed a few years after 2.60.
20049 ac_datarootdir_hack=; ac_datarootdir_seen=
20050 ac_sed_dataroot='
20051 /datarootdir/ {
20052   p
20053   q
20054 }
20055 /@datadir@/p
20056 /@docdir@/p
20057 /@infodir@/p
20058 /@localedir@/p
20059 /@mandir@/p'
20060 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20061 *datarootdir*) ac_datarootdir_seen=yes;;
20062 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20063   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20064 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20065 _ACEOF
20066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20067   ac_datarootdir_hack='
20068   s&@datadir@&$datadir&g
20069   s&@docdir@&$docdir&g
20070   s&@infodir@&$infodir&g
20071   s&@localedir@&$localedir&g
20072   s&@mandir@&$mandir&g
20073   s&\\\${datarootdir}&$datarootdir&g' ;;
20074 esac
20075 _ACEOF
20076
20077 # Neutralize VPATH when `$srcdir' = `.'.
20078 # Shell code in configure.ac might set extrasub.
20079 # FIXME: do we really want to maintain this feature?
20080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20081 ac_sed_extra="$ac_vpsub
20082 $extrasub
20083 _ACEOF
20084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20085 :t
20086 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20087 s|@configure_input@|$ac_sed_conf_input|;t t
20088 s&@top_builddir@&$ac_top_builddir_sub&;t t
20089 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20090 s&@srcdir@&$ac_srcdir&;t t
20091 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20092 s&@top_srcdir@&$ac_top_srcdir&;t t
20093 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20094 s&@builddir@&$ac_builddir&;t t
20095 s&@abs_builddir@&$ac_abs_builddir&;t t
20096 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20097 s&@INSTALL@&$ac_INSTALL&;t t
20098 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20099 $ac_datarootdir_hack
20100 "
20101 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20102   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20103
20104 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20105   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20106   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
20107       "$ac_tmp/out"`; test -z "$ac_out"; } &&
20108   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20109 which seems to be undefined.  Please make sure it is defined" >&5
20110 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20111 which seems to be undefined.  Please make sure it is defined" >&2;}
20112
20113   rm -f "$ac_tmp/stdin"
20114   case $ac_file in
20115   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20116   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20117   esac \
20118   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20119  ;;
20120   :H)
20121   #
20122   # CONFIG_HEADER
20123   #
20124   if test x"$ac_file" != x-; then
20125     {
20126       $as_echo "/* $configure_input  */" \
20127       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20128     } >"$ac_tmp/config.h" \
20129       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20130     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20131       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20132 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20133     else
20134       rm -f "$ac_file"
20135       mv "$ac_tmp/config.h" "$ac_file" \
20136         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20137     fi
20138   else
20139     $as_echo "/* $configure_input  */" \
20140       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20141       || as_fn_error $? "could not create -" "$LINENO" 5
20142   fi
20143 # Compute "$ac_file"'s index in $config_headers.
20144 _am_arg="$ac_file"
20145 _am_stamp_count=1
20146 for _am_header in $config_headers :; do
20147   case $_am_header in
20148     $_am_arg | $_am_arg:* )
20149       break ;;
20150     * )
20151       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20152   esac
20153 done
20154 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20155 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20156          X"$_am_arg" : 'X\(//\)[^/]' \| \
20157          X"$_am_arg" : 'X\(//\)$' \| \
20158          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20159 $as_echo X"$_am_arg" |
20160     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20161             s//\1/
20162             q
20163           }
20164           /^X\(\/\/\)[^/].*/{
20165             s//\1/
20166             q
20167           }
20168           /^X\(\/\/\)$/{
20169             s//\1/
20170             q
20171           }
20172           /^X\(\/\).*/{
20173             s//\1/
20174             q
20175           }
20176           s/.*/./; q'`/stamp-h$_am_stamp_count
20177  ;;
20178
20179   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20180 $as_echo "$as_me: executing $ac_file commands" >&6;}
20181  ;;
20182   esac
20183
20184
20185   case $ac_file$ac_mode in
20186     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20187   # Autoconf 2.62 quotes --file arguments for eval, but not when files
20188   # are listed without --file.  Let's play safe and only enable the eval
20189   # if we detect the quoting.
20190   case $CONFIG_FILES in
20191   *\'*) eval set x "$CONFIG_FILES" ;;
20192   *)   set x $CONFIG_FILES ;;
20193   esac
20194   shift
20195   for mf
20196   do
20197     # Strip MF so we end up with the name of the file.
20198     mf=`echo "$mf" | sed -e 's/:.*$//'`
20199     # Check whether this is an Automake generated Makefile or not.
20200     # We used to match only the files named `Makefile.in', but
20201     # some people rename them; so instead we look at the file content.
20202     # Grep'ing the first line is not enough: some people post-process
20203     # each Makefile.in and add a new line on top of each file to say so.
20204     # Grep'ing the whole file is not good either: AIX grep has a line
20205     # limit of 2048, but all sed's we know have understand at least 4000.
20206     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20207       dirpart=`$as_dirname -- "$mf" ||
20208 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20209          X"$mf" : 'X\(//\)[^/]' \| \
20210          X"$mf" : 'X\(//\)$' \| \
20211          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20212 $as_echo X"$mf" |
20213     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20214             s//\1/
20215             q
20216           }
20217           /^X\(\/\/\)[^/].*/{
20218             s//\1/
20219             q
20220           }
20221           /^X\(\/\/\)$/{
20222             s//\1/
20223             q
20224           }
20225           /^X\(\/\).*/{
20226             s//\1/
20227             q
20228           }
20229           s/.*/./; q'`
20230     else
20231       continue
20232     fi
20233     # Extract the definition of DEPDIR, am__include, and am__quote
20234     # from the Makefile without running `make'.
20235     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20236     test -z "$DEPDIR" && continue
20237     am__include=`sed -n 's/^am__include = //p' < "$mf"`
20238     test -z "am__include" && continue
20239     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20240     # When using ansi2knr, U may be empty or an underscore; expand it
20241     U=`sed -n 's/^U = //p' < "$mf"`
20242     # Find all dependency output files, they are included files with
20243     # $(DEPDIR) in their names.  We invoke sed twice because it is the
20244     # simplest approach to changing $(DEPDIR) to its actual value in the
20245     # expansion.
20246     for file in `sed -n "
20247       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20248          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20249       # Make sure the directory exists.
20250       test -f "$dirpart/$file" && continue
20251       fdir=`$as_dirname -- "$file" ||
20252 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20253          X"$file" : 'X\(//\)[^/]' \| \
20254          X"$file" : 'X\(//\)$' \| \
20255          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20256 $as_echo X"$file" |
20257     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20258             s//\1/
20259             q
20260           }
20261           /^X\(\/\/\)[^/].*/{
20262             s//\1/
20263             q
20264           }
20265           /^X\(\/\/\)$/{
20266             s//\1/
20267             q
20268           }
20269           /^X\(\/\).*/{
20270             s//\1/
20271             q
20272           }
20273           s/.*/./; q'`
20274       as_dir=$dirpart/$fdir; as_fn_mkdir_p
20275       # echo "creating $dirpart/$file"
20276       echo '# dummy' > "$dirpart/$file"
20277     done
20278   done
20279 }
20280  ;;
20281     "libtool":C)
20282
20283     # See if we are running on zsh, and set the options which allow our
20284     # commands through without removal of \ escapes.
20285     if test -n "${ZSH_VERSION+set}" ; then
20286       setopt NO_GLOB_SUBST
20287     fi
20288
20289     cfgfile="${ofile}T"
20290     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20291     $RM "$cfgfile"
20292
20293     cat <<_LT_EOF >> "$cfgfile"
20294 #! $SHELL
20295
20296 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20297 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20298 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20299 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20300 #
20301 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20302 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20303 #                 Foundation, Inc.
20304 #   Written by Gordon Matzigkeit, 1996
20305 #
20306 #   This file is part of GNU Libtool.
20307 #
20308 # GNU Libtool is free software; you can redistribute it and/or
20309 # modify it under the terms of the GNU General Public License as
20310 # published by the Free Software Foundation; either version 2 of
20311 # the License, or (at your option) any later version.
20312 #
20313 # As a special exception to the GNU General Public License,
20314 # if you distribute this file as part of a program or library that
20315 # is built using GNU Libtool, you may include this file under the
20316 # same distribution terms that you use for the rest of that program.
20317 #
20318 # GNU Libtool is distributed in the hope that it will be useful,
20319 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20320 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20321 # GNU General Public License for more details.
20322 #
20323 # You should have received a copy of the GNU General Public License
20324 # along with GNU Libtool; see the file COPYING.  If not, a copy
20325 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20326 # obtained by writing to the Free Software Foundation, Inc.,
20327 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20328
20329
20330 # The names of the tagged configurations supported by this script.
20331 available_tags=""
20332
20333 # ### BEGIN LIBTOOL CONFIG
20334
20335 # Which release of libtool.m4 was used?
20336 macro_version=$macro_version
20337 macro_revision=$macro_revision
20338
20339 # Whether or not to build shared libraries.
20340 build_libtool_libs=$enable_shared
20341
20342 # Whether or not to build static libraries.
20343 build_old_libs=$enable_static
20344
20345 # What type of objects to build.
20346 pic_mode=$pic_mode
20347
20348 # Whether or not to optimize for fast installation.
20349 fast_install=$enable_fast_install
20350
20351 # Shell to use when invoking shell scripts.
20352 SHELL=$lt_SHELL
20353
20354 # An echo program that protects backslashes.
20355 ECHO=$lt_ECHO
20356
20357 # The PATH separator for the build system.
20358 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20359
20360 # The host system.
20361 host_alias=$host_alias
20362 host=$host
20363 host_os=$host_os
20364
20365 # The build system.
20366 build_alias=$build_alias
20367 build=$build
20368 build_os=$build_os
20369
20370 # A sed program that does not truncate output.
20371 SED=$lt_SED
20372
20373 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20374 Xsed="\$SED -e 1s/^X//"
20375
20376 # A grep program that handles long lines.
20377 GREP=$lt_GREP
20378
20379 # An ERE matcher.
20380 EGREP=$lt_EGREP
20381
20382 # A literal string matcher.
20383 FGREP=$lt_FGREP
20384
20385 # A BSD- or MS-compatible name lister.
20386 NM=$lt_NM
20387
20388 # Whether we need soft or hard links.
20389 LN_S=$lt_LN_S
20390
20391 # What is the maximum length of a command?
20392 max_cmd_len=$max_cmd_len
20393
20394 # Object file suffix (normally "o").
20395 objext=$ac_objext
20396
20397 # Executable file suffix (normally "").
20398 exeext=$exeext
20399
20400 # whether the shell understands "unset".
20401 lt_unset=$lt_unset
20402
20403 # turn spaces into newlines.
20404 SP2NL=$lt_lt_SP2NL
20405
20406 # turn newlines into spaces.
20407 NL2SP=$lt_lt_NL2SP
20408
20409 # convert \$build file names to \$host format.
20410 to_host_file_cmd=$lt_cv_to_host_file_cmd
20411
20412 # convert \$build files to toolchain format.
20413 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20414
20415 # An object symbol dumper.
20416 OBJDUMP=$lt_OBJDUMP
20417
20418 # Method to check whether dependent libraries are shared objects.
20419 deplibs_check_method=$lt_deplibs_check_method
20420
20421 # Command to use when deplibs_check_method = "file_magic".
20422 file_magic_cmd=$lt_file_magic_cmd
20423
20424 # How to find potential files when deplibs_check_method = "file_magic".
20425 file_magic_glob=$lt_file_magic_glob
20426
20427 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20428 want_nocaseglob=$lt_want_nocaseglob
20429
20430 # DLL creation program.
20431 DLLTOOL=$lt_DLLTOOL
20432
20433 # Command to associate shared and link libraries.
20434 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20435
20436 # The archiver.
20437 AR=$lt_AR
20438
20439 # Flags to create an archive.
20440 AR_FLAGS=$lt_AR_FLAGS
20441
20442 # How to feed a file listing to the archiver.
20443 archiver_list_spec=$lt_archiver_list_spec
20444
20445 # A symbol stripping program.
20446 STRIP=$lt_STRIP
20447
20448 # Commands used to install an old-style archive.
20449 RANLIB=$lt_RANLIB
20450 old_postinstall_cmds=$lt_old_postinstall_cmds
20451 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20452
20453 # Whether to use a lock for old archive extraction.
20454 lock_old_archive_extraction=$lock_old_archive_extraction
20455
20456 # A C compiler.
20457 LTCC=$lt_CC
20458
20459 # LTCC compiler flags.
20460 LTCFLAGS=$lt_CFLAGS
20461
20462 # Take the output of nm and produce a listing of raw symbols and C names.
20463 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20464
20465 # Transform the output of nm in a proper C declaration.
20466 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20467
20468 # Transform the output of nm in a C name address pair.
20469 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20470
20471 # Transform the output of nm in a C name address pair when lib prefix is needed.
20472 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20473
20474 # Specify filename containing input files for \$NM.
20475 nm_file_list_spec=$lt_nm_file_list_spec
20476
20477 # The root where to search for dependent libraries,and in which our libraries should be installed.
20478 lt_sysroot=$lt_sysroot
20479
20480 # The name of the directory that contains temporary libtool files.
20481 objdir=$objdir
20482
20483 # Used to examine libraries when file_magic_cmd begins with "file".
20484 MAGIC_CMD=$MAGIC_CMD
20485
20486 # Must we lock files when doing compilation?
20487 need_locks=$lt_need_locks
20488
20489 # Manifest tool.
20490 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20491
20492 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20493 DSYMUTIL=$lt_DSYMUTIL
20494
20495 # Tool to change global to local symbols on Mac OS X.
20496 NMEDIT=$lt_NMEDIT
20497
20498 # Tool to manipulate fat objects and archives on Mac OS X.
20499 LIPO=$lt_LIPO
20500
20501 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20502 OTOOL=$lt_OTOOL
20503
20504 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20505 OTOOL64=$lt_OTOOL64
20506
20507 # Old archive suffix (normally "a").
20508 libext=$libext
20509
20510 # Shared library suffix (normally ".so").
20511 shrext_cmds=$lt_shrext_cmds
20512
20513 # The commands to extract the exported symbol list from a shared archive.
20514 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20515
20516 # Variables whose values should be saved in libtool wrapper scripts and
20517 # restored at link time.
20518 variables_saved_for_relink=$lt_variables_saved_for_relink
20519
20520 # Do we need the "lib" prefix for modules?
20521 need_lib_prefix=$need_lib_prefix
20522
20523 # Do we need a version for libraries?
20524 need_version=$need_version
20525
20526 # Library versioning type.
20527 version_type=$version_type
20528
20529 # Shared library runtime path variable.
20530 runpath_var=$runpath_var
20531
20532 # Shared library path variable.
20533 shlibpath_var=$shlibpath_var
20534
20535 # Is shlibpath searched before the hard-coded library search path?
20536 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20537
20538 # Format of library name prefix.
20539 libname_spec=$lt_libname_spec
20540
20541 # List of archive names.  First name is the real one, the rest are links.
20542 # The last name is the one that the linker finds with -lNAME
20543 library_names_spec=$lt_library_names_spec
20544
20545 # The coded name of the library, if different from the real name.
20546 soname_spec=$lt_soname_spec
20547
20548 # Permission mode override for installation of shared libraries.
20549 install_override_mode=$lt_install_override_mode
20550
20551 # Command to use after installation of a shared archive.
20552 postinstall_cmds=$lt_postinstall_cmds
20553
20554 # Command to use after uninstallation of a shared archive.
20555 postuninstall_cmds=$lt_postuninstall_cmds
20556
20557 # Commands used to finish a libtool library installation in a directory.
20558 finish_cmds=$lt_finish_cmds
20559
20560 # As "finish_cmds", except a single script fragment to be evaled but
20561 # not shown.
20562 finish_eval=$lt_finish_eval
20563
20564 # Whether we should hardcode library paths into libraries.
20565 hardcode_into_libs=$hardcode_into_libs
20566
20567 # Compile-time system search path for libraries.
20568 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20569
20570 # Run-time system search path for libraries.
20571 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20572
20573 # Whether dlopen is supported.
20574 dlopen_support=$enable_dlopen
20575
20576 # Whether dlopen of programs is supported.
20577 dlopen_self=$enable_dlopen_self
20578
20579 # Whether dlopen of statically linked programs is supported.
20580 dlopen_self_static=$enable_dlopen_self_static
20581
20582 # Commands to strip libraries.
20583 old_striplib=$lt_old_striplib
20584 striplib=$lt_striplib
20585
20586
20587 # The linker used to build libraries.
20588 LD=$lt_LD
20589
20590 # How to create reloadable object files.
20591 reload_flag=$lt_reload_flag
20592 reload_cmds=$lt_reload_cmds
20593
20594 # Commands used to build an old-style archive.
20595 old_archive_cmds=$lt_old_archive_cmds
20596
20597 # A language specific compiler.
20598 CC=$lt_compiler
20599
20600 # Is the compiler the GNU compiler?
20601 with_gcc=$GCC
20602
20603 # Compiler flag to turn off builtin functions.
20604 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20605
20606 # Additional compiler flags for building library objects.
20607 pic_flag=$lt_lt_prog_compiler_pic
20608
20609 # How to pass a linker flag through the compiler.
20610 wl=$lt_lt_prog_compiler_wl
20611
20612 # Compiler flag to prevent dynamic linking.
20613 link_static_flag=$lt_lt_prog_compiler_static
20614
20615 # Does compiler simultaneously support -c and -o options?
20616 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20617
20618 # Whether or not to add -lc for building shared libraries.
20619 build_libtool_need_lc=$archive_cmds_need_lc
20620
20621 # Whether or not to disallow shared libs when runtime libs are static.
20622 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20623
20624 # Compiler flag to allow reflexive dlopens.
20625 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20626
20627 # Compiler flag to generate shared objects directly from archives.
20628 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20629
20630 # Whether the compiler copes with passing no objects directly.
20631 compiler_needs_object=$lt_compiler_needs_object
20632
20633 # Create an old-style archive from a shared archive.
20634 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20635
20636 # Create a temporary old-style archive to link instead of a shared archive.
20637 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20638
20639 # Commands used to build a shared archive.
20640 archive_cmds=$lt_archive_cmds
20641 archive_expsym_cmds=$lt_archive_expsym_cmds
20642
20643 # Commands used to build a loadable module if different from building
20644 # a shared archive.
20645 module_cmds=$lt_module_cmds
20646 module_expsym_cmds=$lt_module_expsym_cmds
20647
20648 # Whether we are building with GNU ld or not.
20649 with_gnu_ld=$lt_with_gnu_ld
20650
20651 # Flag that allows shared libraries with undefined symbols to be built.
20652 allow_undefined_flag=$lt_allow_undefined_flag
20653
20654 # Flag that enforces no undefined symbols.
20655 no_undefined_flag=$lt_no_undefined_flag
20656
20657 # Flag to hardcode \$libdir into a binary during linking.
20658 # This must work even if \$libdir does not exist
20659 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20660
20661 # Whether we need a single "-rpath" flag with a separated argument.
20662 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20663
20664 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20665 # DIR into the resulting binary.
20666 hardcode_direct=$hardcode_direct
20667
20668 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20669 # DIR into the resulting binary and the resulting library dependency is
20670 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20671 # library is relocated.
20672 hardcode_direct_absolute=$hardcode_direct_absolute
20673
20674 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20675 # into the resulting binary.
20676 hardcode_minus_L=$hardcode_minus_L
20677
20678 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20679 # into the resulting binary.
20680 hardcode_shlibpath_var=$hardcode_shlibpath_var
20681
20682 # Set to "yes" if building a shared library automatically hardcodes DIR
20683 # into the library and all subsequent libraries and executables linked
20684 # against it.
20685 hardcode_automatic=$hardcode_automatic
20686
20687 # Set to yes if linker adds runtime paths of dependent libraries
20688 # to runtime path list.
20689 inherit_rpath=$inherit_rpath
20690
20691 # Whether libtool must link a program against all its dependency libraries.
20692 link_all_deplibs=$link_all_deplibs
20693
20694 # Set to "yes" if exported symbols are required.
20695 always_export_symbols=$always_export_symbols
20696
20697 # The commands to list exported symbols.
20698 export_symbols_cmds=$lt_export_symbols_cmds
20699
20700 # Symbols that should not be listed in the preloaded symbols.
20701 exclude_expsyms=$lt_exclude_expsyms
20702
20703 # Symbols that must always be exported.
20704 include_expsyms=$lt_include_expsyms
20705
20706 # Commands necessary for linking programs (against libraries) with templates.
20707 prelink_cmds=$lt_prelink_cmds
20708
20709 # Commands necessary for finishing linking programs.
20710 postlink_cmds=$lt_postlink_cmds
20711
20712 # Specify filename containing input files.
20713 file_list_spec=$lt_file_list_spec
20714
20715 # How to hardcode a shared library path into an executable.
20716 hardcode_action=$hardcode_action
20717
20718 # ### END LIBTOOL CONFIG
20719
20720 _LT_EOF
20721
20722   case $host_os in
20723   aix3*)
20724     cat <<\_LT_EOF >> "$cfgfile"
20725 # AIX sometimes has problems with the GCC collect2 program.  For some
20726 # reason, if we set the COLLECT_NAMES environment variable, the problems
20727 # vanish in a puff of smoke.
20728 if test "X${COLLECT_NAMES+set}" != Xset; then
20729   COLLECT_NAMES=
20730   export COLLECT_NAMES
20731 fi
20732 _LT_EOF
20733     ;;
20734   esac
20735
20736
20737 ltmain="$ac_aux_dir/ltmain.sh"
20738
20739
20740   # We use sed instead of cat because bash on DJGPP gets confused if
20741   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20742   # text mode, it properly converts lines to CR/LF.  This bash problem
20743   # is reportedly fixed, but why not run on old versions too?
20744   sed '$q' "$ltmain" >> "$cfgfile" \
20745      || (rm -f "$cfgfile"; exit 1)
20746
20747   if test x"$xsi_shell" = xyes; then
20748   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20749 func_dirname ()\
20750 {\
20751 \    case ${1} in\
20752 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20753 \      *  ) func_dirname_result="${3}" ;;\
20754 \    esac\
20755 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20756   && mv -f "$cfgfile.tmp" "$cfgfile" \
20757     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20758 test 0 -eq $? || _lt_function_replace_fail=:
20759
20760
20761   sed -e '/^func_basename ()$/,/^} # func_basename /c\
20762 func_basename ()\
20763 {\
20764 \    func_basename_result="${1##*/}"\
20765 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20766   && mv -f "$cfgfile.tmp" "$cfgfile" \
20767     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20768 test 0 -eq $? || _lt_function_replace_fail=:
20769
20770
20771   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20772 func_dirname_and_basename ()\
20773 {\
20774 \    case ${1} in\
20775 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20776 \      *  ) func_dirname_result="${3}" ;;\
20777 \    esac\
20778 \    func_basename_result="${1##*/}"\
20779 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20780   && mv -f "$cfgfile.tmp" "$cfgfile" \
20781     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20782 test 0 -eq $? || _lt_function_replace_fail=:
20783
20784
20785   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20786 func_stripname ()\
20787 {\
20788 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20789 \    # positional parameters, so assign one to ordinary parameter first.\
20790 \    func_stripname_result=${3}\
20791 \    func_stripname_result=${func_stripname_result#"${1}"}\
20792 \    func_stripname_result=${func_stripname_result%"${2}"}\
20793 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20794   && mv -f "$cfgfile.tmp" "$cfgfile" \
20795     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20796 test 0 -eq $? || _lt_function_replace_fail=:
20797
20798
20799   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20800 func_split_long_opt ()\
20801 {\
20802 \    func_split_long_opt_name=${1%%=*}\
20803 \    func_split_long_opt_arg=${1#*=}\
20804 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20805   && mv -f "$cfgfile.tmp" "$cfgfile" \
20806     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20807 test 0 -eq $? || _lt_function_replace_fail=:
20808
20809
20810   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20811 func_split_short_opt ()\
20812 {\
20813 \    func_split_short_opt_arg=${1#??}\
20814 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20815 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20816   && mv -f "$cfgfile.tmp" "$cfgfile" \
20817     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20818 test 0 -eq $? || _lt_function_replace_fail=:
20819
20820
20821   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20822 func_lo2o ()\
20823 {\
20824 \    case ${1} in\
20825 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20826 \      *)    func_lo2o_result=${1} ;;\
20827 \    esac\
20828 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20829   && mv -f "$cfgfile.tmp" "$cfgfile" \
20830     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20831 test 0 -eq $? || _lt_function_replace_fail=:
20832
20833
20834   sed -e '/^func_xform ()$/,/^} # func_xform /c\
20835 func_xform ()\
20836 {\
20837     func_xform_result=${1%.*}.lo\
20838 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20839   && mv -f "$cfgfile.tmp" "$cfgfile" \
20840     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20841 test 0 -eq $? || _lt_function_replace_fail=:
20842
20843
20844   sed -e '/^func_arith ()$/,/^} # func_arith /c\
20845 func_arith ()\
20846 {\
20847     func_arith_result=$(( $* ))\
20848 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20849   && mv -f "$cfgfile.tmp" "$cfgfile" \
20850     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20851 test 0 -eq $? || _lt_function_replace_fail=:
20852
20853
20854   sed -e '/^func_len ()$/,/^} # func_len /c\
20855 func_len ()\
20856 {\
20857     func_len_result=${#1}\
20858 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20859   && mv -f "$cfgfile.tmp" "$cfgfile" \
20860     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20861 test 0 -eq $? || _lt_function_replace_fail=:
20862
20863 fi
20864
20865 if test x"$lt_shell_append" = xyes; then
20866   sed -e '/^func_append ()$/,/^} # func_append /c\
20867 func_append ()\
20868 {\
20869     eval "${1}+=\\${2}"\
20870 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20871   && mv -f "$cfgfile.tmp" "$cfgfile" \
20872     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20873 test 0 -eq $? || _lt_function_replace_fail=:
20874
20875
20876   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20877 func_append_quoted ()\
20878 {\
20879 \    func_quote_for_eval "${2}"\
20880 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20881 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20882   && mv -f "$cfgfile.tmp" "$cfgfile" \
20883     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20884 test 0 -eq $? || _lt_function_replace_fail=:
20885
20886
20887   # Save a `func_append' function call where possible by direct use of '+='
20888   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20889     && mv -f "$cfgfile.tmp" "$cfgfile" \
20890       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20891   test 0 -eq $? || _lt_function_replace_fail=:
20892 else
20893   # Save a `func_append' function call even when '+=' is not available
20894   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20895     && mv -f "$cfgfile.tmp" "$cfgfile" \
20896       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20897   test 0 -eq $? || _lt_function_replace_fail=:
20898 fi
20899
20900 if test x"$_lt_function_replace_fail" = x":"; then
20901   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20902 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20903 fi
20904
20905
20906    mv -f "$cfgfile" "$ofile" ||
20907     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20908   chmod +x "$ofile"
20909
20910  ;;
20911
20912   esac
20913 done # for ac_tag
20914
20915
20916 as_fn_exit 0
20917 _ACEOF
20918 ac_clean_files=$ac_clean_files_save
20919
20920 test $ac_write_fail = 0 ||
20921   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20922
20923
20924 # configure is writing to config.log, and then calls config.status.
20925 # config.status does its own redirection, appending to config.log.
20926 # Unfortunately, on DOS this fails, as config.log is still kept open
20927 # by configure, so config.status won't be able to write to it; its
20928 # output is simply discarded.  So we exec the FD to /dev/null,
20929 # effectively closing config.log, so it can be properly (re)opened and
20930 # appended to by config.status.  When coming back to configure, we
20931 # need to make the FD available again.
20932 if test "$no_create" != yes; then
20933   ac_cs_success=:
20934   ac_config_status_args=
20935   test "$silent" = yes &&
20936     ac_config_status_args="$ac_config_status_args --quiet"
20937   exec 5>/dev/null
20938   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20939   exec 5>>config.log
20940   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20941   # would make configure fail if this is the last instruction.
20942   $ac_cs_success || as_fn_exit 1
20943 fi
20944 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20945   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20946 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20947 fi
20948