libXpm should not try to build into a pure wayland platform.
[platform/upstream/libXpm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libXpm 3.5.10.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
254 $0: have one."
255   fi
256   exit 1
257 fi
258 fi
259 fi
260 SHELL=${CONFIG_SHELL-/bin/sh}
261 export SHELL
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
265
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
269 # as_fn_unset VAR
270 # ---------------
271 # Portably unset VAR.
272 as_fn_unset ()
273 {
274   { eval $1=; unset $1;}
275 }
276 as_unset=as_fn_unset
277
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
281 as_fn_set_status ()
282 {
283   return $1
284 } # as_fn_set_status
285
286 # as_fn_exit STATUS
287 # -----------------
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 as_fn_exit ()
290 {
291   set +e
292   as_fn_set_status $1
293   exit $1
294 } # as_fn_exit
295
296 # as_fn_mkdir_p
297 # -------------
298 # Create "$as_dir" as a directory, including parents if necessary.
299 as_fn_mkdir_p ()
300 {
301
302   case $as_dir in #(
303   -*) as_dir=./$as_dir;;
304   esac
305   test -d "$as_dir" || eval $as_mkdir_p || {
306     as_dirs=
307     while :; do
308       case $as_dir in #(
309       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310       *) as_qdir=$as_dir;;
311       esac
312       as_dirs="'$as_qdir' $as_dirs"
313       as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315          X"$as_dir" : 'X\(//\)[^/]' \| \
316          X"$as_dir" : 'X\(//\)$' \| \
317          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320             s//\1/
321             q
322           }
323           /^X\(\/\/\)[^/].*/{
324             s//\1/
325             q
326           }
327           /^X\(\/\/\)$/{
328             s//\1/
329             q
330           }
331           /^X\(\/\).*/{
332             s//\1/
333             q
334           }
335           s/.*/./; q'`
336       test -d "$as_dir" && break
337     done
338     test -z "$as_dirs" || eval "mkdir $as_dirs"
339   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342 } # as_fn_mkdir_p
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
348 # implementations.
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350   eval 'as_fn_append ()
351   {
352     eval $1+=\$2
353   }'
354 else
355   as_fn_append ()
356   {
357     eval $1=\$$1\$2
358   }
359 fi # as_fn_append
360
361 # as_fn_arith ARG...
362 # ------------------
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367   eval 'as_fn_arith ()
368   {
369     as_val=$(( $* ))
370   }'
371 else
372   as_fn_arith ()
373   {
374     as_val=`expr "$@" || test $? -eq 1`
375   }
376 fi # as_fn_arith
377
378
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
384 as_fn_error ()
385 {
386   as_status=$1; test $as_status -eq 0 && as_status=1
387   if test "$4"; then
388     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390   fi
391   $as_echo "$as_me: error: $2" >&2
392   as_fn_exit $as_status
393 } # as_fn_error
394
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396    test "X`expr 00001 : '.*\(...\)'`" = X001; then
397   as_expr=expr
398 else
399   as_expr=false
400 fi
401
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403   as_basename=basename
404 else
405   as_basename=false
406 fi
407
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409   as_dirname=dirname
410 else
411   as_dirname=false
412 fi
413
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416          X"$0" : 'X\(//\)$' \| \
417          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 $as_echo X/"$0" |
419     sed '/^.*\/\([^/][^/]*\)\/*$/{
420             s//\1/
421             q
422           }
423           /^X\/\(\/\/\)$/{
424             s//\1/
425             q
426           }
427           /^X\/\(\/\).*/{
428             s//\1/
429             q
430           }
431           s/.*/./; q'`
432
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441   as_lineno_1=$LINENO as_lineno_1a=$LINENO
442   as_lineno_2=$LINENO as_lineno_2a=$LINENO
443   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
446   sed -n '
447     p
448     /[$]LINENO/=
449   ' <$as_myself |
450     sed '
451       s/[$]LINENO.*/&-/
452       t lineno
453       b
454       :lineno
455       N
456       :loop
457       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458       t loop
459       s/-\n.*//
460     ' >$as_me.lineno &&
461   chmod +x "$as_me.lineno" ||
462     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464   # Don't try to exec as it changes $[0], causing all sort of problems
465   # (the dirname of $[0] is not the place where we might find the
466   # original and so on.  Autoconf is especially sensitive to this).
467   . "./$as_me.lineno"
468   # Exit status is that of the last command.
469   exit
470 }
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
474 -n*)
475   case `echo 'xy\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   xy)  ECHO_C='\c';;
478   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
479        ECHO_T=' ';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487   rm -f conf$$.dir/conf$$.file
488 else
489   rm -f conf$$.dir
490   mkdir conf$$.dir 2>/dev/null
491 fi
492 if (echo >conf$$.file) 2>/dev/null; then
493   if ln -s conf$$.file conf$$ 2>/dev/null; then
494     as_ln_s='ln -s'
495     # ... but there are two gotchas:
496     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498     # In both cases, we have to default to `cp -p'.
499     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500       as_ln_s='cp -p'
501   elif ln conf$$.file conf$$ 2>/dev/null; then
502     as_ln_s=ln
503   else
504     as_ln_s='cp -p'
505   fi
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p='mkdir -p "$as_dir"'
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 if test -x / >/dev/null 2>&1; then
520   as_test_x='test -x'
521 else
522   if ls -dL / >/dev/null 2>&1; then
523     as_ls_L_option=L
524   else
525     as_ls_L_option=
526   fi
527   as_test_x='
528     eval sh -c '\''
529       if test -d "$1"; then
530         test -d "$1/.";
531       else
532         case $1 in #(
533         -*)set "./$1";;
534         esac;
535         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536         ???[sx]*):;;*)false;;esac;fi
537     '\'' sh
538   '
539 fi
540 as_executable_p=$as_test_x
541
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548 SHELL=${CONFIG_SHELL-/bin/sh}
549
550
551 test -n "$DJDIR" || exec 7<&0 </dev/null
552 exec 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570
571 # Identity of this package.
572 PACKAGE_NAME='libXpm'
573 PACKAGE_TARNAME='libXpm'
574 PACKAGE_VERSION='3.5.10'
575 PACKAGE_STRING='libXpm 3.5.10'
576 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
577 PACKAGE_URL=''
578
579 ac_unique_file="Makefile.am"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='am__EXEEXT_FALSE
617 am__EXEEXT_TRUE
618 LTLIBOBJS
619 LIBOBJS
620 USE_GETTEXT_FALSE
621 USE_GETTEXT_TRUE
622 LOCALEDIR
623 BUILD_SXPM_FALSE
624 BUILD_SXPM_TRUE
625 SXPM_LIBS
626 SXPM_CFLAGS
627 XPM_LIBS
628 XPM_CFLAGS
629 AM_BACKSLASH
630 AM_DEFAULT_VERBOSITY
631 MAN_SUBSTS
632 XORG_MAN_PAGE
633 ADMIN_MAN_DIR
634 DRIVER_MAN_DIR
635 MISC_MAN_DIR
636 FILE_MAN_DIR
637 LIB_MAN_DIR
638 APP_MAN_DIR
639 ADMIN_MAN_SUFFIX
640 DRIVER_MAN_SUFFIX
641 MISC_MAN_SUFFIX
642 FILE_MAN_SUFFIX
643 LIB_MAN_SUFFIX
644 APP_MAN_SUFFIX
645 INSTALL_CMD
646 PKG_CONFIG
647 CHANGELOG_CMD
648 STRICT_CFLAGS
649 CWARNFLAGS
650 BASE_CFLAGS
651 CPP
652 OTOOL64
653 OTOOL
654 LIPO
655 NMEDIT
656 DSYMUTIL
657 MANIFEST_TOOL
658 RANLIB
659 ac_ct_AR
660 AR
661 DLLTOOL
662 OBJDUMP
663 LN_S
664 NM
665 ac_ct_DUMPBIN
666 DUMPBIN
667 LD
668 FGREP
669 EGREP
670 GREP
671 SED
672 am__fastdepCC_FALSE
673 am__fastdepCC_TRUE
674 CCDEPMODE
675 AMDEPBACKSLASH
676 AMDEP_FALSE
677 AMDEP_TRUE
678 am__quote
679 am__include
680 DEPDIR
681 OBJEXT
682 EXEEXT
683 ac_ct_CC
684 CPPFLAGS
685 LDFLAGS
686 CFLAGS
687 CC
688 host_os
689 host_vendor
690 host_cpu
691 host
692 build_os
693 build_vendor
694 build_cpu
695 build
696 LIBTOOL
697 MAINT
698 MAINTAINER_MODE_FALSE
699 MAINTAINER_MODE_TRUE
700 am__untar
701 am__tar
702 AMTAR
703 am__leading_dot
704 SET_MAKE
705 AWK
706 mkdir_p
707 MKDIR_P
708 INSTALL_STRIP_PROGRAM
709 STRIP
710 install_sh
711 MAKEINFO
712 AUTOHEADER
713 AUTOMAKE
714 AUTOCONF
715 ACLOCAL
716 VERSION
717 PACKAGE
718 CYGPATH_W
719 am__isrc
720 INSTALL_DATA
721 INSTALL_SCRIPT
722 INSTALL_PROGRAM
723 target_alias
724 host_alias
725 build_alias
726 LIBS
727 ECHO_T
728 ECHO_N
729 ECHO_C
730 DEFS
731 mandir
732 localedir
733 libdir
734 psdir
735 pdfdir
736 dvidir
737 htmldir
738 infodir
739 docdir
740 oldincludedir
741 includedir
742 localstatedir
743 sharedstatedir
744 sysconfdir
745 datadir
746 datarootdir
747 libexecdir
748 sbindir
749 bindir
750 program_transform_name
751 prefix
752 exec_prefix
753 PACKAGE_URL
754 PACKAGE_BUGREPORT
755 PACKAGE_STRING
756 PACKAGE_VERSION
757 PACKAGE_TARNAME
758 PACKAGE_NAME
759 PATH_SEPARATOR
760 SHELL'
761 ac_subst_files=''
762 ac_user_opts='
763 enable_option_checking
764 enable_maintainer_mode
765 enable_shared
766 enable_static
767 with_pic
768 enable_fast_install
769 enable_dependency_tracking
770 with_gnu_ld
771 with_sysroot
772 enable_libtool_lock
773 enable_selective_werror
774 enable_strict_compilation
775 enable_silent_rules
776 with_localedir
777 enable_stat_zfile
778 '
779       ac_precious_vars='build_alias
780 host_alias
781 target_alias
782 CC
783 CFLAGS
784 LDFLAGS
785 LIBS
786 CPPFLAGS
787 CPP
788 PKG_CONFIG
789 XPM_CFLAGS
790 XPM_LIBS
791 SXPM_CFLAGS
792 SXPM_LIBS'
793
794
795 # Initialize some variables set by options.
796 ac_init_help=
797 ac_init_version=false
798 ac_unrecognized_opts=
799 ac_unrecognized_sep=
800 # The variables have the same names as the options, with
801 # dashes changed to underlines.
802 cache_file=/dev/null
803 exec_prefix=NONE
804 no_create=
805 no_recursion=
806 prefix=NONE
807 program_prefix=NONE
808 program_suffix=NONE
809 program_transform_name=s,x,x,
810 silent=
811 site=
812 srcdir=
813 verbose=
814 x_includes=NONE
815 x_libraries=NONE
816
817 # Installation directory options.
818 # These are left unexpanded so users can "make install exec_prefix=/foo"
819 # and all the variables that are supposed to be based on exec_prefix
820 # by default will actually change.
821 # Use braces instead of parens because sh, perl, etc. also accept them.
822 # (The list follows the same order as the GNU Coding Standards.)
823 bindir='${exec_prefix}/bin'
824 sbindir='${exec_prefix}/sbin'
825 libexecdir='${exec_prefix}/libexec'
826 datarootdir='${prefix}/share'
827 datadir='${datarootdir}'
828 sysconfdir='${prefix}/etc'
829 sharedstatedir='${prefix}/com'
830 localstatedir='${prefix}/var'
831 includedir='${prefix}/include'
832 oldincludedir='/usr/include'
833 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
834 infodir='${datarootdir}/info'
835 htmldir='${docdir}'
836 dvidir='${docdir}'
837 pdfdir='${docdir}'
838 psdir='${docdir}'
839 libdir='${exec_prefix}/lib'
840 localedir='${datarootdir}/locale'
841 mandir='${datarootdir}/man'
842
843 ac_prev=
844 ac_dashdash=
845 for ac_option
846 do
847   # If the previous option needs an argument, assign it.
848   if test -n "$ac_prev"; then
849     eval $ac_prev=\$ac_option
850     ac_prev=
851     continue
852   fi
853
854   case $ac_option in
855   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
856   *=)   ac_optarg= ;;
857   *)    ac_optarg=yes ;;
858   esac
859
860   # Accept the important Cygnus configure options, so we can diagnose typos.
861
862   case $ac_dashdash$ac_option in
863   --)
864     ac_dashdash=yes ;;
865
866   -bindir | --bindir | --bindi | --bind | --bin | --bi)
867     ac_prev=bindir ;;
868   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
869     bindir=$ac_optarg ;;
870
871   -build | --build | --buil | --bui | --bu)
872     ac_prev=build_alias ;;
873   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
874     build_alias=$ac_optarg ;;
875
876   -cache-file | --cache-file | --cache-fil | --cache-fi \
877   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
878     ac_prev=cache_file ;;
879   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
880   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
881     cache_file=$ac_optarg ;;
882
883   --config-cache | -C)
884     cache_file=config.cache ;;
885
886   -datadir | --datadir | --datadi | --datad)
887     ac_prev=datadir ;;
888   -datadir=* | --datadir=* | --datadi=* | --datad=*)
889     datadir=$ac_optarg ;;
890
891   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
892   | --dataroo | --dataro | --datar)
893     ac_prev=datarootdir ;;
894   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
895   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
896     datarootdir=$ac_optarg ;;
897
898   -disable-* | --disable-*)
899     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
900     # Reject names that are not valid shell variable names.
901     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
902       as_fn_error $? "invalid feature name: $ac_useropt"
903     ac_useropt_orig=$ac_useropt
904     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905     case $ac_user_opts in
906       *"
907 "enable_$ac_useropt"
908 "*) ;;
909       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
910          ac_unrecognized_sep=', ';;
911     esac
912     eval enable_$ac_useropt=no ;;
913
914   -docdir | --docdir | --docdi | --doc | --do)
915     ac_prev=docdir ;;
916   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
917     docdir=$ac_optarg ;;
918
919   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920     ac_prev=dvidir ;;
921   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
922     dvidir=$ac_optarg ;;
923
924   -enable-* | --enable-*)
925     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926     # Reject names that are not valid shell variable names.
927     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928       as_fn_error $? "invalid feature name: $ac_useropt"
929     ac_useropt_orig=$ac_useropt
930     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931     case $ac_user_opts in
932       *"
933 "enable_$ac_useropt"
934 "*) ;;
935       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
936          ac_unrecognized_sep=', ';;
937     esac
938     eval enable_$ac_useropt=\$ac_optarg ;;
939
940   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
941   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
942   | --exec | --exe | --ex)
943     ac_prev=exec_prefix ;;
944   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
945   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
946   | --exec=* | --exe=* | --ex=*)
947     exec_prefix=$ac_optarg ;;
948
949   -gas | --gas | --ga | --g)
950     # Obsolete; use --with-gas.
951     with_gas=yes ;;
952
953   -help | --help | --hel | --he | -h)
954     ac_init_help=long ;;
955   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
956     ac_init_help=recursive ;;
957   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
958     ac_init_help=short ;;
959
960   -host | --host | --hos | --ho)
961     ac_prev=host_alias ;;
962   -host=* | --host=* | --hos=* | --ho=*)
963     host_alias=$ac_optarg ;;
964
965   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
966     ac_prev=htmldir ;;
967   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
968   | --ht=*)
969     htmldir=$ac_optarg ;;
970
971   -includedir | --includedir | --includedi | --included | --include \
972   | --includ | --inclu | --incl | --inc)
973     ac_prev=includedir ;;
974   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
975   | --includ=* | --inclu=* | --incl=* | --inc=*)
976     includedir=$ac_optarg ;;
977
978   -infodir | --infodir | --infodi | --infod | --info | --inf)
979     ac_prev=infodir ;;
980   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
981     infodir=$ac_optarg ;;
982
983   -libdir | --libdir | --libdi | --libd)
984     ac_prev=libdir ;;
985   -libdir=* | --libdir=* | --libdi=* | --libd=*)
986     libdir=$ac_optarg ;;
987
988   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
989   | --libexe | --libex | --libe)
990     ac_prev=libexecdir ;;
991   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
992   | --libexe=* | --libex=* | --libe=*)
993     libexecdir=$ac_optarg ;;
994
995   -localedir | --localedir | --localedi | --localed | --locale)
996     ac_prev=localedir ;;
997   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
998     localedir=$ac_optarg ;;
999
1000   -localstatedir | --localstatedir | --localstatedi | --localstated \
1001   | --localstate | --localstat | --localsta | --localst | --locals)
1002     ac_prev=localstatedir ;;
1003   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1004   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1005     localstatedir=$ac_optarg ;;
1006
1007   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1008     ac_prev=mandir ;;
1009   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1010     mandir=$ac_optarg ;;
1011
1012   -nfp | --nfp | --nf)
1013     # Obsolete; use --without-fp.
1014     with_fp=no ;;
1015
1016   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1017   | --no-cr | --no-c | -n)
1018     no_create=yes ;;
1019
1020   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1021   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1022     no_recursion=yes ;;
1023
1024   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1025   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1026   | --oldin | --oldi | --old | --ol | --o)
1027     ac_prev=oldincludedir ;;
1028   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1029   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1030   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1031     oldincludedir=$ac_optarg ;;
1032
1033   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1034     ac_prev=prefix ;;
1035   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1036     prefix=$ac_optarg ;;
1037
1038   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1039   | --program-pre | --program-pr | --program-p)
1040     ac_prev=program_prefix ;;
1041   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1042   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1043     program_prefix=$ac_optarg ;;
1044
1045   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1046   | --program-suf | --program-su | --program-s)
1047     ac_prev=program_suffix ;;
1048   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1049   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1050     program_suffix=$ac_optarg ;;
1051
1052   -program-transform-name | --program-transform-name \
1053   | --program-transform-nam | --program-transform-na \
1054   | --program-transform-n | --program-transform- \
1055   | --program-transform | --program-transfor \
1056   | --program-transfo | --program-transf \
1057   | --program-trans | --program-tran \
1058   | --progr-tra | --program-tr | --program-t)
1059     ac_prev=program_transform_name ;;
1060   -program-transform-name=* | --program-transform-name=* \
1061   | --program-transform-nam=* | --program-transform-na=* \
1062   | --program-transform-n=* | --program-transform-=* \
1063   | --program-transform=* | --program-transfor=* \
1064   | --program-transfo=* | --program-transf=* \
1065   | --program-trans=* | --program-tran=* \
1066   | --progr-tra=* | --program-tr=* | --program-t=*)
1067     program_transform_name=$ac_optarg ;;
1068
1069   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1070     ac_prev=pdfdir ;;
1071   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1072     pdfdir=$ac_optarg ;;
1073
1074   -psdir | --psdir | --psdi | --psd | --ps)
1075     ac_prev=psdir ;;
1076   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1077     psdir=$ac_optarg ;;
1078
1079   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080   | -silent | --silent | --silen | --sile | --sil)
1081     silent=yes ;;
1082
1083   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1084     ac_prev=sbindir ;;
1085   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1086   | --sbi=* | --sb=*)
1087     sbindir=$ac_optarg ;;
1088
1089   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1090   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1091   | --sharedst | --shareds | --shared | --share | --shar \
1092   | --sha | --sh)
1093     ac_prev=sharedstatedir ;;
1094   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1095   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1096   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1097   | --sha=* | --sh=*)
1098     sharedstatedir=$ac_optarg ;;
1099
1100   -site | --site | --sit)
1101     ac_prev=site ;;
1102   -site=* | --site=* | --sit=*)
1103     site=$ac_optarg ;;
1104
1105   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1106     ac_prev=srcdir ;;
1107   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1108     srcdir=$ac_optarg ;;
1109
1110   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1111   | --syscon | --sysco | --sysc | --sys | --sy)
1112     ac_prev=sysconfdir ;;
1113   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1114   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1115     sysconfdir=$ac_optarg ;;
1116
1117   -target | --target | --targe | --targ | --tar | --ta | --t)
1118     ac_prev=target_alias ;;
1119   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1120     target_alias=$ac_optarg ;;
1121
1122   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1123     verbose=yes ;;
1124
1125   -version | --version | --versio | --versi | --vers | -V)
1126     ac_init_version=: ;;
1127
1128   -with-* | --with-*)
1129     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1130     # Reject names that are not valid shell variable names.
1131     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132       as_fn_error $? "invalid package name: $ac_useropt"
1133     ac_useropt_orig=$ac_useropt
1134     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135     case $ac_user_opts in
1136       *"
1137 "with_$ac_useropt"
1138 "*) ;;
1139       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1140          ac_unrecognized_sep=', ';;
1141     esac
1142     eval with_$ac_useropt=\$ac_optarg ;;
1143
1144   -without-* | --without-*)
1145     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146     # Reject names that are not valid shell variable names.
1147     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148       as_fn_error $? "invalid package name: $ac_useropt"
1149     ac_useropt_orig=$ac_useropt
1150     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151     case $ac_user_opts in
1152       *"
1153 "with_$ac_useropt"
1154 "*) ;;
1155       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1156          ac_unrecognized_sep=', ';;
1157     esac
1158     eval with_$ac_useropt=no ;;
1159
1160   --x)
1161     # Obsolete; use --with-x.
1162     with_x=yes ;;
1163
1164   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1165   | --x-incl | --x-inc | --x-in | --x-i)
1166     ac_prev=x_includes ;;
1167   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1168   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1169     x_includes=$ac_optarg ;;
1170
1171   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1172   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1173     ac_prev=x_libraries ;;
1174   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1175   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1176     x_libraries=$ac_optarg ;;
1177
1178   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1179 Try \`$0 --help' for more information"
1180     ;;
1181
1182   *=*)
1183     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184     # Reject names that are not valid shell variable names.
1185     case $ac_envvar in #(
1186       '' | [0-9]* | *[!_$as_cr_alnum]* )
1187       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1188     esac
1189     eval $ac_envvar=\$ac_optarg
1190     export $ac_envvar ;;
1191
1192   *)
1193     # FIXME: should be removed in autoconf 3.0.
1194     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1195     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1196       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1197     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1198     ;;
1199
1200   esac
1201 done
1202
1203 if test -n "$ac_prev"; then
1204   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1205   as_fn_error $? "missing argument to $ac_option"
1206 fi
1207
1208 if test -n "$ac_unrecognized_opts"; then
1209   case $enable_option_checking in
1210     no) ;;
1211     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1212     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1213   esac
1214 fi
1215
1216 # Check all directory arguments for consistency.
1217 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1218                 datadir sysconfdir sharedstatedir localstatedir includedir \
1219                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1220                 libdir localedir mandir
1221 do
1222   eval ac_val=\$$ac_var
1223   # Remove trailing slashes.
1224   case $ac_val in
1225     */ )
1226       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1227       eval $ac_var=\$ac_val;;
1228   esac
1229   # Be sure to have absolute directory names.
1230   case $ac_val in
1231     [\\/$]* | ?:[\\/]* )  continue;;
1232     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1233   esac
1234   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1235 done
1236
1237 # There might be people who depend on the old broken behavior: `$host'
1238 # used to hold the argument of --host etc.
1239 # FIXME: To remove some day.
1240 build=$build_alias
1241 host=$host_alias
1242 target=$target_alias
1243
1244 # FIXME: To remove some day.
1245 if test "x$host_alias" != x; then
1246   if test "x$build_alias" = x; then
1247     cross_compiling=maybe
1248     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1249     If a cross compiler is detected then cross compile mode will be used" >&2
1250   elif test "x$build_alias" != "x$host_alias"; then
1251     cross_compiling=yes
1252   fi
1253 fi
1254
1255 ac_tool_prefix=
1256 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1257
1258 test "$silent" = yes && exec 6>/dev/null
1259
1260
1261 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1262 ac_ls_di=`ls -di .` &&
1263 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1264   as_fn_error $? "working directory cannot be determined"
1265 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1266   as_fn_error $? "pwd does not report name of working directory"
1267
1268
1269 # Find the source files, if location was not specified.
1270 if test -z "$srcdir"; then
1271   ac_srcdir_defaulted=yes
1272   # Try the directory containing this script, then the parent directory.
1273   ac_confdir=`$as_dirname -- "$as_myself" ||
1274 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1275          X"$as_myself" : 'X\(//\)[^/]' \| \
1276          X"$as_myself" : 'X\(//\)$' \| \
1277          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1278 $as_echo X"$as_myself" |
1279     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1280             s//\1/
1281             q
1282           }
1283           /^X\(\/\/\)[^/].*/{
1284             s//\1/
1285             q
1286           }
1287           /^X\(\/\/\)$/{
1288             s//\1/
1289             q
1290           }
1291           /^X\(\/\).*/{
1292             s//\1/
1293             q
1294           }
1295           s/.*/./; q'`
1296   srcdir=$ac_confdir
1297   if test ! -r "$srcdir/$ac_unique_file"; then
1298     srcdir=..
1299   fi
1300 else
1301   ac_srcdir_defaulted=no
1302 fi
1303 if test ! -r "$srcdir/$ac_unique_file"; then
1304   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1305   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1306 fi
1307 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1308 ac_abs_confdir=`(
1309         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1310         pwd)`
1311 # When building in place, set srcdir=.
1312 if test "$ac_abs_confdir" = "$ac_pwd"; then
1313   srcdir=.
1314 fi
1315 # Remove unnecessary trailing slashes from srcdir.
1316 # Double slashes in file names in object file debugging info
1317 # mess up M-x gdb in Emacs.
1318 case $srcdir in
1319 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1320 esac
1321 for ac_var in $ac_precious_vars; do
1322   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1323   eval ac_env_${ac_var}_value=\$${ac_var}
1324   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1325   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1326 done
1327
1328 #
1329 # Report the --help message.
1330 #
1331 if test "$ac_init_help" = "long"; then
1332   # Omit some internal or obsolete options to make the list less imposing.
1333   # This message is too long to be a string in the A/UX 3.1 sh.
1334   cat <<_ACEOF
1335 \`configure' configures libXpm 3.5.10 to adapt to many kinds of systems.
1336
1337 Usage: $0 [OPTION]... [VAR=VALUE]...
1338
1339 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1340 VAR=VALUE.  See below for descriptions of some of the useful variables.
1341
1342 Defaults for the options are specified in brackets.
1343
1344 Configuration:
1345   -h, --help              display this help and exit
1346       --help=short        display options specific to this package
1347       --help=recursive    display the short help of all the included packages
1348   -V, --version           display version information and exit
1349   -q, --quiet, --silent   do not print \`checking ...' messages
1350       --cache-file=FILE   cache test results in FILE [disabled]
1351   -C, --config-cache      alias for \`--cache-file=config.cache'
1352   -n, --no-create         do not create output files
1353       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1354
1355 Installation directories:
1356   --prefix=PREFIX         install architecture-independent files in PREFIX
1357                           [$ac_default_prefix]
1358   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1359                           [PREFIX]
1360
1361 By default, \`make install' will install all the files in
1362 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1363 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1364 for instance \`--prefix=\$HOME'.
1365
1366 For better control, use the options below.
1367
1368 Fine tuning of the installation directories:
1369   --bindir=DIR            user executables [EPREFIX/bin]
1370   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1371   --libexecdir=DIR        program executables [EPREFIX/libexec]
1372   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1373   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1374   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1375   --libdir=DIR            object code libraries [EPREFIX/lib]
1376   --includedir=DIR        C header files [PREFIX/include]
1377   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1378   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1379   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1380   --infodir=DIR           info documentation [DATAROOTDIR/info]
1381   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1382   --mandir=DIR            man documentation [DATAROOTDIR/man]
1383   --docdir=DIR            documentation root [DATAROOTDIR/doc/libXpm]
1384   --htmldir=DIR           html documentation [DOCDIR]
1385   --dvidir=DIR            dvi documentation [DOCDIR]
1386   --pdfdir=DIR            pdf documentation [DOCDIR]
1387   --psdir=DIR             ps documentation [DOCDIR]
1388 _ACEOF
1389
1390   cat <<\_ACEOF
1391
1392 Program names:
1393   --program-prefix=PREFIX            prepend PREFIX to installed program names
1394   --program-suffix=SUFFIX            append SUFFIX to installed program names
1395   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1396
1397 System types:
1398   --build=BUILD     configure for building on BUILD [guessed]
1399   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1400 _ACEOF
1401 fi
1402
1403 if test -n "$ac_init_help"; then
1404   case $ac_init_help in
1405      short | recursive ) echo "Configuration of libXpm 3.5.10:";;
1406    esac
1407   cat <<\_ACEOF
1408
1409 Optional Features:
1410   --disable-option-checking  ignore unrecognized --enable/--with options
1411   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1412   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1413   --enable-maintainer-mode  enable make rules and dependencies not useful
1414                           (and sometimes confusing) to the casual installer
1415   --enable-shared[=PKGS]  build shared libraries [default=yes]
1416   --enable-static[=PKGS]  build static libraries [default=yes]
1417   --enable-fast-install[=PKGS]
1418                           optimize for fast installation [default=yes]
1419   --disable-dependency-tracking  speeds up one-time build
1420   --enable-dependency-tracking   do not reject slow dependency extractors
1421   --disable-libtool-lock  avoid locking (might break parallel builds)
1422   --disable-selective-werror
1423                           Turn off selective compiler errors. (default:
1424                           enabled)
1425   --enable-strict-compilation
1426                           Enable all warnings from compiler and make them
1427                           errors (default: disabled)
1428   --enable-silent-rules          less verbose build output (undo: `make V=1')
1429   --disable-silent-rules         verbose build output (undo: `make V=0')
1430   --enable-stat-zfile     Search for files with .Z & .gz extensions
1431                           automatically [default=yes]
1432
1433 Optional Packages:
1434   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1435   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1436   --with-pic              try to use only PIC/non-PIC objects [default=use
1437                           both]
1438   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1439   --with-sysroot=DIR Search for dependent libraries within DIR
1440                         (or the compiler's sysroot if not specified).
1441   --with-localedir=<path> Path to install message files in (default:
1442                           datadir/locale)
1443
1444 Some influential environment variables:
1445   CC          C compiler command
1446   CFLAGS      C compiler flags
1447   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1448               nonstandard directory <lib dir>
1449   LIBS        libraries to pass to the linker, e.g. -l<library>
1450   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1451               you have headers in a nonstandard directory <include dir>
1452   CPP         C preprocessor
1453   PKG_CONFIG  path to pkg-config utility
1454   XPM_CFLAGS  C compiler flags for XPM, overriding pkg-config
1455   XPM_LIBS    linker flags for XPM, overriding pkg-config
1456   SXPM_CFLAGS C compiler flags for SXPM, overriding pkg-config
1457   SXPM_LIBS   linker flags for SXPM, overriding pkg-config
1458
1459 Use these variables to override the choices made by `configure' or to help
1460 it to find libraries and programs with nonstandard names/locations.
1461
1462 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1463 _ACEOF
1464 ac_status=$?
1465 fi
1466
1467 if test "$ac_init_help" = "recursive"; then
1468   # If there are subdirs, report their specific --help.
1469   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1470     test -d "$ac_dir" ||
1471       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1472       continue
1473     ac_builddir=.
1474
1475 case "$ac_dir" in
1476 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477 *)
1478   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1479   # A ".." for each directory in $ac_dir_suffix.
1480   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1481   case $ac_top_builddir_sub in
1482   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1484   esac ;;
1485 esac
1486 ac_abs_top_builddir=$ac_pwd
1487 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1488 # for backward compatibility:
1489 ac_top_builddir=$ac_top_build_prefix
1490
1491 case $srcdir in
1492   .)  # We are building in place.
1493     ac_srcdir=.
1494     ac_top_srcdir=$ac_top_builddir_sub
1495     ac_abs_top_srcdir=$ac_pwd ;;
1496   [\\/]* | ?:[\\/]* )  # Absolute name.
1497     ac_srcdir=$srcdir$ac_dir_suffix;
1498     ac_top_srcdir=$srcdir
1499     ac_abs_top_srcdir=$srcdir ;;
1500   *) # Relative name.
1501     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1502     ac_top_srcdir=$ac_top_build_prefix$srcdir
1503     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1504 esac
1505 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1506
1507     cd "$ac_dir" || { ac_status=$?; continue; }
1508     # Check for guested configure.
1509     if test -f "$ac_srcdir/configure.gnu"; then
1510       echo &&
1511       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1512     elif test -f "$ac_srcdir/configure"; then
1513       echo &&
1514       $SHELL "$ac_srcdir/configure" --help=recursive
1515     else
1516       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1517     fi || ac_status=$?
1518     cd "$ac_pwd" || { ac_status=$?; break; }
1519   done
1520 fi
1521
1522 test -n "$ac_init_help" && exit $ac_status
1523 if $ac_init_version; then
1524   cat <<\_ACEOF
1525 libXpm configure 3.5.10
1526 generated by GNU Autoconf 2.68
1527
1528 Copyright (C) 2010 Free Software Foundation, Inc.
1529 This configure script is free software; the Free Software Foundation
1530 gives unlimited permission to copy, distribute and modify it.
1531 _ACEOF
1532   exit
1533 fi
1534
1535 ## ------------------------ ##
1536 ## Autoconf initialization. ##
1537 ## ------------------------ ##
1538
1539 # ac_fn_c_try_compile LINENO
1540 # --------------------------
1541 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1542 ac_fn_c_try_compile ()
1543 {
1544   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545   rm -f conftest.$ac_objext
1546   if { { ac_try="$ac_compile"
1547 case "(($ac_try" in
1548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1549   *) ac_try_echo=$ac_try;;
1550 esac
1551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1552 $as_echo "$ac_try_echo"; } >&5
1553   (eval "$ac_compile") 2>conftest.err
1554   ac_status=$?
1555   if test -s conftest.err; then
1556     grep -v '^ *+' conftest.err >conftest.er1
1557     cat conftest.er1 >&5
1558     mv -f conftest.er1 conftest.err
1559   fi
1560   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1561   test $ac_status = 0; } && {
1562          test -z "$ac_c_werror_flag" ||
1563          test ! -s conftest.err
1564        } && test -s conftest.$ac_objext; then :
1565   ac_retval=0
1566 else
1567   $as_echo "$as_me: failed program was:" >&5
1568 sed 's/^/| /' conftest.$ac_ext >&5
1569
1570         ac_retval=1
1571 fi
1572   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1573   as_fn_set_status $ac_retval
1574
1575 } # ac_fn_c_try_compile
1576
1577 # ac_fn_c_try_link LINENO
1578 # -----------------------
1579 # Try to link conftest.$ac_ext, and return whether this succeeded.
1580 ac_fn_c_try_link ()
1581 {
1582   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583   rm -f conftest.$ac_objext conftest$ac_exeext
1584   if { { ac_try="$ac_link"
1585 case "(($ac_try" in
1586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587   *) ac_try_echo=$ac_try;;
1588 esac
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 $as_echo "$ac_try_echo"; } >&5
1591   (eval "$ac_link") 2>conftest.err
1592   ac_status=$?
1593   if test -s conftest.err; then
1594     grep -v '^ *+' conftest.err >conftest.er1
1595     cat conftest.er1 >&5
1596     mv -f conftest.er1 conftest.err
1597   fi
1598   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599   test $ac_status = 0; } && {
1600          test -z "$ac_c_werror_flag" ||
1601          test ! -s conftest.err
1602        } && test -s conftest$ac_exeext && {
1603          test "$cross_compiling" = yes ||
1604          $as_test_x conftest$ac_exeext
1605        }; then :
1606   ac_retval=0
1607 else
1608   $as_echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1610
1611         ac_retval=1
1612 fi
1613   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1614   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1615   # interfere with the next link command; also delete a directory that is
1616   # left behind by Apple's compiler.  We do this before executing the actions.
1617   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1618   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619   as_fn_set_status $ac_retval
1620
1621 } # ac_fn_c_try_link
1622
1623 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1624 # -------------------------------------------------------
1625 # Tests whether HEADER exists and can be compiled using the include files in
1626 # INCLUDES, setting the cache variable VAR accordingly.
1627 ac_fn_c_check_header_compile ()
1628 {
1629   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1631 $as_echo_n "checking for $2... " >&6; }
1632 if eval \${$3+:} false; then :
1633   $as_echo_n "(cached) " >&6
1634 else
1635   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1636 /* end confdefs.h.  */
1637 $4
1638 #include <$2>
1639 _ACEOF
1640 if ac_fn_c_try_compile "$LINENO"; then :
1641   eval "$3=yes"
1642 else
1643   eval "$3=no"
1644 fi
1645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1646 fi
1647 eval ac_res=\$$3
1648                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1649 $as_echo "$ac_res" >&6; }
1650   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651
1652 } # ac_fn_c_check_header_compile
1653
1654 # ac_fn_c_try_cpp LINENO
1655 # ----------------------
1656 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1657 ac_fn_c_try_cpp ()
1658 {
1659   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660   if { { ac_try="$ac_cpp conftest.$ac_ext"
1661 case "(($ac_try" in
1662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663   *) ac_try_echo=$ac_try;;
1664 esac
1665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666 $as_echo "$ac_try_echo"; } >&5
1667   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1668   ac_status=$?
1669   if test -s conftest.err; then
1670     grep -v '^ *+' conftest.err >conftest.er1
1671     cat conftest.er1 >&5
1672     mv -f conftest.er1 conftest.err
1673   fi
1674   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675   test $ac_status = 0; } > conftest.i && {
1676          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1677          test ! -s conftest.err
1678        }; then :
1679   ac_retval=0
1680 else
1681   $as_echo "$as_me: failed program was:" >&5
1682 sed 's/^/| /' conftest.$ac_ext >&5
1683
1684     ac_retval=1
1685 fi
1686   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687   as_fn_set_status $ac_retval
1688
1689 } # ac_fn_c_try_cpp
1690
1691 # ac_fn_c_try_run LINENO
1692 # ----------------------
1693 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1694 # that executables *can* be run.
1695 ac_fn_c_try_run ()
1696 {
1697   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698   if { { ac_try="$ac_link"
1699 case "(($ac_try" in
1700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701   *) ac_try_echo=$ac_try;;
1702 esac
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705   (eval "$ac_link") 2>&5
1706   ac_status=$?
1707   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1709   { { case "(($ac_try" in
1710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711   *) ac_try_echo=$ac_try;;
1712 esac
1713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714 $as_echo "$ac_try_echo"; } >&5
1715   (eval "$ac_try") 2>&5
1716   ac_status=$?
1717   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718   test $ac_status = 0; }; }; then :
1719   ac_retval=0
1720 else
1721   $as_echo "$as_me: program exited with status $ac_status" >&5
1722        $as_echo "$as_me: failed program was:" >&5
1723 sed 's/^/| /' conftest.$ac_ext >&5
1724
1725        ac_retval=$ac_status
1726 fi
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_run
1732
1733 # ac_fn_c_check_func LINENO FUNC VAR
1734 # ----------------------------------
1735 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1736 ac_fn_c_check_func ()
1737 {
1738   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740 $as_echo_n "checking for $2... " >&6; }
1741 if eval \${$3+:} false; then :
1742   $as_echo_n "(cached) " >&6
1743 else
1744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h.  */
1746 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1747    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1748 #define $2 innocuous_$2
1749
1750 /* System header to define __stub macros and hopefully few prototypes,
1751     which can conflict with char $2 (); below.
1752     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1753     <limits.h> exists even on freestanding compilers.  */
1754
1755 #ifdef __STDC__
1756 # include <limits.h>
1757 #else
1758 # include <assert.h>
1759 #endif
1760
1761 #undef $2
1762
1763 /* Override any GCC internal prototype to avoid an error.
1764    Use char because int might match the return type of a GCC
1765    builtin and then its argument prototype would still apply.  */
1766 #ifdef __cplusplus
1767 extern "C"
1768 #endif
1769 char $2 ();
1770 /* The GNU C library defines this for functions which it implements
1771     to always fail with ENOSYS.  Some functions are actually named
1772     something starting with __ and the normal name is an alias.  */
1773 #if defined __stub_$2 || defined __stub___$2
1774 choke me
1775 #endif
1776
1777 int
1778 main ()
1779 {
1780 return $2 ();
1781   ;
1782   return 0;
1783 }
1784 _ACEOF
1785 if ac_fn_c_try_link "$LINENO"; then :
1786   eval "$3=yes"
1787 else
1788   eval "$3=no"
1789 fi
1790 rm -f core conftest.err conftest.$ac_objext \
1791     conftest$ac_exeext conftest.$ac_ext
1792 fi
1793 eval ac_res=\$$3
1794                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795 $as_echo "$ac_res" >&6; }
1796   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797
1798 } # ac_fn_c_check_func
1799
1800 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1801 # ---------------------------------------------
1802 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1803 # accordingly.
1804 ac_fn_c_check_decl ()
1805 {
1806   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807   as_decl_name=`echo $2|sed 's/ *(.*//'`
1808   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1810 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1811 if eval \${$3+:} false; then :
1812   $as_echo_n "(cached) " >&6
1813 else
1814   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815 /* end confdefs.h.  */
1816 $4
1817 int
1818 main ()
1819 {
1820 #ifndef $as_decl_name
1821 #ifdef __cplusplus
1822   (void) $as_decl_use;
1823 #else
1824   (void) $as_decl_name;
1825 #endif
1826 #endif
1827
1828   ;
1829   return 0;
1830 }
1831 _ACEOF
1832 if ac_fn_c_try_compile "$LINENO"; then :
1833   eval "$3=yes"
1834 else
1835   eval "$3=no"
1836 fi
1837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1838 fi
1839 eval ac_res=\$$3
1840                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841 $as_echo "$ac_res" >&6; }
1842   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843
1844 } # ac_fn_c_check_decl
1845 cat >config.log <<_ACEOF
1846 This file contains any messages produced by compilers while
1847 running configure, to aid debugging if configure makes a mistake.
1848
1849 It was created by libXpm $as_me 3.5.10, which was
1850 generated by GNU Autoconf 2.68.  Invocation command line was
1851
1852   $ $0 $@
1853
1854 _ACEOF
1855 exec 5>>config.log
1856 {
1857 cat <<_ASUNAME
1858 ## --------- ##
1859 ## Platform. ##
1860 ## --------- ##
1861
1862 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1863 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1864 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1865 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1866 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1867
1868 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1869 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1870
1871 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1872 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1873 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1874 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1875 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1876 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1877 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1878
1879 _ASUNAME
1880
1881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882 for as_dir in $PATH
1883 do
1884   IFS=$as_save_IFS
1885   test -z "$as_dir" && as_dir=.
1886     $as_echo "PATH: $as_dir"
1887   done
1888 IFS=$as_save_IFS
1889
1890 } >&5
1891
1892 cat >&5 <<_ACEOF
1893
1894
1895 ## ----------- ##
1896 ## Core tests. ##
1897 ## ----------- ##
1898
1899 _ACEOF
1900
1901
1902 # Keep a trace of the command line.
1903 # Strip out --no-create and --no-recursion so they do not pile up.
1904 # Strip out --silent because we don't want to record it for future runs.
1905 # Also quote any args containing shell meta-characters.
1906 # Make two passes to allow for proper duplicate-argument suppression.
1907 ac_configure_args=
1908 ac_configure_args0=
1909 ac_configure_args1=
1910 ac_must_keep_next=false
1911 for ac_pass in 1 2
1912 do
1913   for ac_arg
1914   do
1915     case $ac_arg in
1916     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1917     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1918     | -silent | --silent | --silen | --sile | --sil)
1919       continue ;;
1920     *\'*)
1921       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1922     esac
1923     case $ac_pass in
1924     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1925     2)
1926       as_fn_append ac_configure_args1 " '$ac_arg'"
1927       if test $ac_must_keep_next = true; then
1928         ac_must_keep_next=false # Got value, back to normal.
1929       else
1930         case $ac_arg in
1931           *=* | --config-cache | -C | -disable-* | --disable-* \
1932           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1933           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1934           | -with-* | --with-* | -without-* | --without-* | --x)
1935             case "$ac_configure_args0 " in
1936               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1937             esac
1938             ;;
1939           -* ) ac_must_keep_next=true ;;
1940         esac
1941       fi
1942       as_fn_append ac_configure_args " '$ac_arg'"
1943       ;;
1944     esac
1945   done
1946 done
1947 { ac_configure_args0=; unset ac_configure_args0;}
1948 { ac_configure_args1=; unset ac_configure_args1;}
1949
1950 # When interrupted or exit'd, cleanup temporary files, and complete
1951 # config.log.  We remove comments because anyway the quotes in there
1952 # would cause problems or look ugly.
1953 # WARNING: Use '\'' to represent an apostrophe within the trap.
1954 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1955 trap 'exit_status=$?
1956   # Save into config.log some information that might help in debugging.
1957   {
1958     echo
1959
1960     $as_echo "## ---------------- ##
1961 ## Cache variables. ##
1962 ## ---------------- ##"
1963     echo
1964     # The following way of writing the cache mishandles newlines in values,
1965 (
1966   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1967     eval ac_val=\$$ac_var
1968     case $ac_val in #(
1969     *${as_nl}*)
1970       case $ac_var in #(
1971       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1972 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1973       esac
1974       case $ac_var in #(
1975       _ | IFS | as_nl) ;; #(
1976       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1977       *) { eval $ac_var=; unset $ac_var;} ;;
1978       esac ;;
1979     esac
1980   done
1981   (set) 2>&1 |
1982     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1983     *${as_nl}ac_space=\ *)
1984       sed -n \
1985         "s/'\''/'\''\\\\'\'''\''/g;
1986           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1987       ;; #(
1988     *)
1989       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1990       ;;
1991     esac |
1992     sort
1993 )
1994     echo
1995
1996     $as_echo "## ----------------- ##
1997 ## Output variables. ##
1998 ## ----------------- ##"
1999     echo
2000     for ac_var in $ac_subst_vars
2001     do
2002       eval ac_val=\$$ac_var
2003       case $ac_val in
2004       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2005       esac
2006       $as_echo "$ac_var='\''$ac_val'\''"
2007     done | sort
2008     echo
2009
2010     if test -n "$ac_subst_files"; then
2011       $as_echo "## ------------------- ##
2012 ## File substitutions. ##
2013 ## ------------------- ##"
2014       echo
2015       for ac_var in $ac_subst_files
2016       do
2017         eval ac_val=\$$ac_var
2018         case $ac_val in
2019         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2020         esac
2021         $as_echo "$ac_var='\''$ac_val'\''"
2022       done | sort
2023       echo
2024     fi
2025
2026     if test -s confdefs.h; then
2027       $as_echo "## ----------- ##
2028 ## confdefs.h. ##
2029 ## ----------- ##"
2030       echo
2031       cat confdefs.h
2032       echo
2033     fi
2034     test "$ac_signal" != 0 &&
2035       $as_echo "$as_me: caught signal $ac_signal"
2036     $as_echo "$as_me: exit $exit_status"
2037   } >&5
2038   rm -f core *.core core.conftest.* &&
2039     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2040     exit $exit_status
2041 ' 0
2042 for ac_signal in 1 2 13 15; do
2043   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2044 done
2045 ac_signal=0
2046
2047 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2048 rm -f -r conftest* confdefs.h
2049
2050 $as_echo "/* confdefs.h */" > confdefs.h
2051
2052 # Predefined preprocessor variables.
2053
2054 cat >>confdefs.h <<_ACEOF
2055 #define PACKAGE_NAME "$PACKAGE_NAME"
2056 _ACEOF
2057
2058 cat >>confdefs.h <<_ACEOF
2059 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2060 _ACEOF
2061
2062 cat >>confdefs.h <<_ACEOF
2063 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2064 _ACEOF
2065
2066 cat >>confdefs.h <<_ACEOF
2067 #define PACKAGE_STRING "$PACKAGE_STRING"
2068 _ACEOF
2069
2070 cat >>confdefs.h <<_ACEOF
2071 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2072 _ACEOF
2073
2074 cat >>confdefs.h <<_ACEOF
2075 #define PACKAGE_URL "$PACKAGE_URL"
2076 _ACEOF
2077
2078
2079 # Let the site file select an alternate cache file if it wants to.
2080 # Prefer an explicitly selected file to automatically selected ones.
2081 ac_site_file1=NONE
2082 ac_site_file2=NONE
2083 if test -n "$CONFIG_SITE"; then
2084   # We do not want a PATH search for config.site.
2085   case $CONFIG_SITE in #((
2086     -*)  ac_site_file1=./$CONFIG_SITE;;
2087     */*) ac_site_file1=$CONFIG_SITE;;
2088     *)   ac_site_file1=./$CONFIG_SITE;;
2089   esac
2090 elif test "x$prefix" != xNONE; then
2091   ac_site_file1=$prefix/share/config.site
2092   ac_site_file2=$prefix/etc/config.site
2093 else
2094   ac_site_file1=$ac_default_prefix/share/config.site
2095   ac_site_file2=$ac_default_prefix/etc/config.site
2096 fi
2097 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2098 do
2099   test "x$ac_site_file" = xNONE && continue
2100   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2101     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2102 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2103     sed 's/^/| /' "$ac_site_file" >&5
2104     . "$ac_site_file" \
2105       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2107 as_fn_error $? "failed to load site script $ac_site_file
2108 See \`config.log' for more details" "$LINENO" 5; }
2109   fi
2110 done
2111
2112 if test -r "$cache_file"; then
2113   # Some versions of bash will fail to source /dev/null (special files
2114   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2115   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2116     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2117 $as_echo "$as_me: loading cache $cache_file" >&6;}
2118     case $cache_file in
2119       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2120       *)                      . "./$cache_file";;
2121     esac
2122   fi
2123 else
2124   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2125 $as_echo "$as_me: creating cache $cache_file" >&6;}
2126   >$cache_file
2127 fi
2128
2129 # Check that the precious variables saved in the cache have kept the same
2130 # value.
2131 ac_cache_corrupted=false
2132 for ac_var in $ac_precious_vars; do
2133   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2134   eval ac_new_set=\$ac_env_${ac_var}_set
2135   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2136   eval ac_new_val=\$ac_env_${ac_var}_value
2137   case $ac_old_set,$ac_new_set in
2138     set,)
2139       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2140 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2141       ac_cache_corrupted=: ;;
2142     ,set)
2143       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2144 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2145       ac_cache_corrupted=: ;;
2146     ,);;
2147     *)
2148       if test "x$ac_old_val" != "x$ac_new_val"; then
2149         # differences in whitespace do not lead to failure.
2150         ac_old_val_w=`echo x $ac_old_val`
2151         ac_new_val_w=`echo x $ac_new_val`
2152         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2153           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2154 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2155           ac_cache_corrupted=:
2156         else
2157           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2158 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2159           eval $ac_var=\$ac_old_val
2160         fi
2161         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2162 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2163         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2164 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2165       fi;;
2166   esac
2167   # Pass precious variables to config.status.
2168   if test "$ac_new_set" = set; then
2169     case $ac_new_val in
2170     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2171     *) ac_arg=$ac_var=$ac_new_val ;;
2172     esac
2173     case " $ac_configure_args " in
2174       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2175       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2176     esac
2177   fi
2178 done
2179 if $ac_cache_corrupted; then
2180   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2182   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2183 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2184   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2185 fi
2186 ## -------------------- ##
2187 ## Main body of script. ##
2188 ## -------------------- ##
2189
2190 ac_ext=c
2191 ac_cpp='$CPP $CPPFLAGS'
2192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2195
2196
2197
2198 ac_config_headers="$ac_config_headers config.h"
2199
2200
2201
2202 # Initialize Automake
2203 am__api_version='1.11'
2204
2205 ac_aux_dir=
2206 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2207   if test -f "$ac_dir/install-sh"; then
2208     ac_aux_dir=$ac_dir
2209     ac_install_sh="$ac_aux_dir/install-sh -c"
2210     break
2211   elif test -f "$ac_dir/install.sh"; then
2212     ac_aux_dir=$ac_dir
2213     ac_install_sh="$ac_aux_dir/install.sh -c"
2214     break
2215   elif test -f "$ac_dir/shtool"; then
2216     ac_aux_dir=$ac_dir
2217     ac_install_sh="$ac_aux_dir/shtool install -c"
2218     break
2219   fi
2220 done
2221 if test -z "$ac_aux_dir"; then
2222   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2223 fi
2224
2225 # These three variables are undocumented and unsupported,
2226 # and are intended to be withdrawn in a future Autoconf release.
2227 # They can cause serious problems if a builder's source tree is in a directory
2228 # whose full name contains unusual characters.
2229 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2230 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2231 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2232
2233
2234 # Find a good install program.  We prefer a C program (faster),
2235 # so one script is as good as another.  But avoid the broken or
2236 # incompatible versions:
2237 # SysV /etc/install, /usr/sbin/install
2238 # SunOS /usr/etc/install
2239 # IRIX /sbin/install
2240 # AIX /bin/install
2241 # AmigaOS /C/install, which installs bootblocks on floppy discs
2242 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2243 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2244 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2245 # OS/2's system install, which has a completely different semantic
2246 # ./install, which can be erroneously created by make from ./install.sh.
2247 # Reject install programs that cannot install multiple files.
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2249 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2250 if test -z "$INSTALL"; then
2251 if ${ac_cv_path_install+:} false; then :
2252   $as_echo_n "(cached) " >&6
2253 else
2254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255 for as_dir in $PATH
2256 do
2257   IFS=$as_save_IFS
2258   test -z "$as_dir" && as_dir=.
2259     # Account for people who put trailing slashes in PATH elements.
2260 case $as_dir/ in #((
2261   ./ | .// | /[cC]/* | \
2262   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2263   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2264   /usr/ucb/* ) ;;
2265   *)
2266     # OSF1 and SCO ODT 3.0 have their own names for install.
2267     # Don't use installbsd from OSF since it installs stuff as root
2268     # by default.
2269     for ac_prog in ginstall scoinst install; do
2270       for ac_exec_ext in '' $ac_executable_extensions; do
2271         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2272           if test $ac_prog = install &&
2273             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2274             # AIX install.  It has an incompatible calling convention.
2275             :
2276           elif test $ac_prog = install &&
2277             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2278             # program-specific install script used by HP pwplus--don't use.
2279             :
2280           else
2281             rm -rf conftest.one conftest.two conftest.dir
2282             echo one > conftest.one
2283             echo two > conftest.two
2284             mkdir conftest.dir
2285             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2286               test -s conftest.one && test -s conftest.two &&
2287               test -s conftest.dir/conftest.one &&
2288               test -s conftest.dir/conftest.two
2289             then
2290               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2291               break 3
2292             fi
2293           fi
2294         fi
2295       done
2296     done
2297     ;;
2298 esac
2299
2300   done
2301 IFS=$as_save_IFS
2302
2303 rm -rf conftest.one conftest.two conftest.dir
2304
2305 fi
2306   if test "${ac_cv_path_install+set}" = set; then
2307     INSTALL=$ac_cv_path_install
2308   else
2309     # As a last resort, use the slow shell script.  Don't cache a
2310     # value for INSTALL within a source directory, because that will
2311     # break other packages using the cache if that directory is
2312     # removed, or if the value is a relative name.
2313     INSTALL=$ac_install_sh
2314   fi
2315 fi
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2317 $as_echo "$INSTALL" >&6; }
2318
2319 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2320 # It thinks the first close brace ends the variable substitution.
2321 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2322
2323 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2324
2325 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2326
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2328 $as_echo_n "checking whether build environment is sane... " >&6; }
2329 # Just in case
2330 sleep 1
2331 echo timestamp > conftest.file
2332 # Reject unsafe characters in $srcdir or the absolute working directory
2333 # name.  Accept space and tab only in the latter.
2334 am_lf='
2335 '
2336 case `pwd` in
2337   *[\\\"\#\$\&\'\`$am_lf]*)
2338     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2339 esac
2340 case $srcdir in
2341   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2342     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2343 esac
2344
2345 # Do `set' in a subshell so we don't clobber the current shell's
2346 # arguments.  Must try -L first in case configure is actually a
2347 # symlink; some systems play weird games with the mod time of symlinks
2348 # (eg FreeBSD returns the mod time of the symlink's containing
2349 # directory).
2350 if (
2351    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2352    if test "$*" = "X"; then
2353       # -L didn't work.
2354       set X `ls -t "$srcdir/configure" conftest.file`
2355    fi
2356    rm -f conftest.file
2357    if test "$*" != "X $srcdir/configure conftest.file" \
2358       && test "$*" != "X conftest.file $srcdir/configure"; then
2359
2360       # If neither matched, then we have a broken ls.  This can happen
2361       # if, for instance, CONFIG_SHELL is bash and it inherits a
2362       # broken ls alias from the environment.  This has actually
2363       # happened.  Such a system could not be considered "sane".
2364       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2365 alias in your environment" "$LINENO" 5
2366    fi
2367
2368    test "$2" = conftest.file
2369    )
2370 then
2371    # Ok.
2372    :
2373 else
2374    as_fn_error $? "newly created file is older than distributed files!
2375 Check your system clock" "$LINENO" 5
2376 fi
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2378 $as_echo "yes" >&6; }
2379 test "$program_prefix" != NONE &&
2380   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2381 # Use a double $ so make ignores it.
2382 test "$program_suffix" != NONE &&
2383   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2384 # Double any \ or $.
2385 # By default was `s,x,x', remove it if useless.
2386 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2387 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2388
2389 # expand $ac_aux_dir to an absolute path
2390 am_aux_dir=`cd $ac_aux_dir && pwd`
2391
2392 if test x"${MISSING+set}" != xset; then
2393   case $am_aux_dir in
2394   *\ * | *\     *)
2395     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2396   *)
2397     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2398   esac
2399 fi
2400 # Use eval to expand $SHELL
2401 if eval "$MISSING --run true"; then
2402   am_missing_run="$MISSING --run "
2403 else
2404   am_missing_run=
2405   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2406 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2407 fi
2408
2409 if test x"${install_sh}" != xset; then
2410   case $am_aux_dir in
2411   *\ * | *\     *)
2412     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2413   *)
2414     install_sh="\${SHELL} $am_aux_dir/install-sh"
2415   esac
2416 fi
2417
2418 # Installed binaries are usually stripped using `strip' when the user
2419 # run `make install-strip'.  However `strip' might not be the right
2420 # tool to use in cross-compilation environments, therefore Automake
2421 # will honor the `STRIP' environment variable to overrule this program.
2422 if test "$cross_compiling" != no; then
2423   if test -n "$ac_tool_prefix"; then
2424   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2425 set dummy ${ac_tool_prefix}strip; ac_word=$2
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2427 $as_echo_n "checking for $ac_word... " >&6; }
2428 if ${ac_cv_prog_STRIP+:} false; then :
2429   $as_echo_n "(cached) " >&6
2430 else
2431   if test -n "$STRIP"; then
2432   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2433 else
2434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435 for as_dir in $PATH
2436 do
2437   IFS=$as_save_IFS
2438   test -z "$as_dir" && as_dir=.
2439     for ac_exec_ext in '' $ac_executable_extensions; do
2440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2441     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2442     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2443     break 2
2444   fi
2445 done
2446   done
2447 IFS=$as_save_IFS
2448
2449 fi
2450 fi
2451 STRIP=$ac_cv_prog_STRIP
2452 if test -n "$STRIP"; then
2453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2454 $as_echo "$STRIP" >&6; }
2455 else
2456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2457 $as_echo "no" >&6; }
2458 fi
2459
2460
2461 fi
2462 if test -z "$ac_cv_prog_STRIP"; then
2463   ac_ct_STRIP=$STRIP
2464   # Extract the first word of "strip", so it can be a program name with args.
2465 set dummy strip; ac_word=$2
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2467 $as_echo_n "checking for $ac_word... " >&6; }
2468 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2469   $as_echo_n "(cached) " >&6
2470 else
2471   if test -n "$ac_ct_STRIP"; then
2472   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2473 else
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 for as_dir in $PATH
2476 do
2477   IFS=$as_save_IFS
2478   test -z "$as_dir" && as_dir=.
2479     for ac_exec_ext in '' $ac_executable_extensions; do
2480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2481     ac_cv_prog_ac_ct_STRIP="strip"
2482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2483     break 2
2484   fi
2485 done
2486   done
2487 IFS=$as_save_IFS
2488
2489 fi
2490 fi
2491 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2492 if test -n "$ac_ct_STRIP"; then
2493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2494 $as_echo "$ac_ct_STRIP" >&6; }
2495 else
2496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2497 $as_echo "no" >&6; }
2498 fi
2499
2500   if test "x$ac_ct_STRIP" = x; then
2501     STRIP=":"
2502   else
2503     case $cross_compiling:$ac_tool_warned in
2504 yes:)
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2507 ac_tool_warned=yes ;;
2508 esac
2509     STRIP=$ac_ct_STRIP
2510   fi
2511 else
2512   STRIP="$ac_cv_prog_STRIP"
2513 fi
2514
2515 fi
2516 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2517
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2519 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2520 if test -z "$MKDIR_P"; then
2521   if ${ac_cv_path_mkdir+:} false; then :
2522   $as_echo_n "(cached) " >&6
2523 else
2524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2526 do
2527   IFS=$as_save_IFS
2528   test -z "$as_dir" && as_dir=.
2529     for ac_prog in mkdir gmkdir; do
2530          for ac_exec_ext in '' $ac_executable_extensions; do
2531            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2532            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2533              'mkdir (GNU coreutils) '* | \
2534              'mkdir (coreutils) '* | \
2535              'mkdir (fileutils) '4.1*)
2536                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2537                break 3;;
2538            esac
2539          done
2540        done
2541   done
2542 IFS=$as_save_IFS
2543
2544 fi
2545
2546   test -d ./--version && rmdir ./--version
2547   if test "${ac_cv_path_mkdir+set}" = set; then
2548     MKDIR_P="$ac_cv_path_mkdir -p"
2549   else
2550     # As a last resort, use the slow shell script.  Don't cache a
2551     # value for MKDIR_P within a source directory, because that will
2552     # break other packages using the cache if that directory is
2553     # removed, or if the value is a relative name.
2554     MKDIR_P="$ac_install_sh -d"
2555   fi
2556 fi
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2558 $as_echo "$MKDIR_P" >&6; }
2559
2560 mkdir_p="$MKDIR_P"
2561 case $mkdir_p in
2562   [\\/$]* | ?:[\\/]*) ;;
2563   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2564 esac
2565
2566 for ac_prog in gawk mawk nawk awk
2567 do
2568   # Extract the first word of "$ac_prog", so it can be a program name with args.
2569 set dummy $ac_prog; ac_word=$2
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2571 $as_echo_n "checking for $ac_word... " >&6; }
2572 if ${ac_cv_prog_AWK+:} false; then :
2573   $as_echo_n "(cached) " >&6
2574 else
2575   if test -n "$AWK"; then
2576   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2577 else
2578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579 for as_dir in $PATH
2580 do
2581   IFS=$as_save_IFS
2582   test -z "$as_dir" && as_dir=.
2583     for ac_exec_ext in '' $ac_executable_extensions; do
2584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2585     ac_cv_prog_AWK="$ac_prog"
2586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2587     break 2
2588   fi
2589 done
2590   done
2591 IFS=$as_save_IFS
2592
2593 fi
2594 fi
2595 AWK=$ac_cv_prog_AWK
2596 if test -n "$AWK"; then
2597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2598 $as_echo "$AWK" >&6; }
2599 else
2600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2601 $as_echo "no" >&6; }
2602 fi
2603
2604
2605   test -n "$AWK" && break
2606 done
2607
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2609 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2610 set x ${MAKE-make}
2611 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2612 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2613   $as_echo_n "(cached) " >&6
2614 else
2615   cat >conftest.make <<\_ACEOF
2616 SHELL = /bin/sh
2617 all:
2618         @echo '@@@%%%=$(MAKE)=@@@%%%'
2619 _ACEOF
2620 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2621 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2622   *@@@%%%=?*=@@@%%%*)
2623     eval ac_cv_prog_make_${ac_make}_set=yes;;
2624   *)
2625     eval ac_cv_prog_make_${ac_make}_set=no;;
2626 esac
2627 rm -f conftest.make
2628 fi
2629 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2631 $as_echo "yes" >&6; }
2632   SET_MAKE=
2633 else
2634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2635 $as_echo "no" >&6; }
2636   SET_MAKE="MAKE=${MAKE-make}"
2637 fi
2638
2639 rm -rf .tst 2>/dev/null
2640 mkdir .tst 2>/dev/null
2641 if test -d .tst; then
2642   am__leading_dot=.
2643 else
2644   am__leading_dot=_
2645 fi
2646 rmdir .tst 2>/dev/null
2647
2648 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2649   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2650   # is not polluted with repeated "-I."
2651   am__isrc=' -I$(srcdir)'
2652   # test to see if srcdir already configured
2653   if test -f $srcdir/config.status; then
2654     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2655   fi
2656 fi
2657
2658 # test whether we have cygpath
2659 if test -z "$CYGPATH_W"; then
2660   if (cygpath --version) >/dev/null 2>/dev/null; then
2661     CYGPATH_W='cygpath -w'
2662   else
2663     CYGPATH_W=echo
2664   fi
2665 fi
2666
2667
2668 # Define the identity of the package.
2669  PACKAGE='libXpm'
2670  VERSION='3.5.10'
2671
2672
2673 cat >>confdefs.h <<_ACEOF
2674 #define PACKAGE "$PACKAGE"
2675 _ACEOF
2676
2677
2678 cat >>confdefs.h <<_ACEOF
2679 #define VERSION "$VERSION"
2680 _ACEOF
2681
2682 # Some tools Automake needs.
2683
2684 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2685
2686
2687 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2688
2689
2690 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2691
2692
2693 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2694
2695
2696 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2697
2698 # We need awk for the "check" target.  The system "awk" is bad on
2699 # some platforms.
2700 # Always define AMTAR for backward compatibility.
2701
2702 AMTAR=${AMTAR-"${am_missing_run}tar"}
2703
2704 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2705
2706
2707
2708
2709
2710
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2712 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2713     # Check whether --enable-maintainer-mode was given.
2714 if test "${enable_maintainer_mode+set}" = set; then :
2715   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2716 else
2717   USE_MAINTAINER_MODE=no
2718 fi
2719
2720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2721 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2722    if test $USE_MAINTAINER_MODE = yes; then
2723   MAINTAINER_MODE_TRUE=
2724   MAINTAINER_MODE_FALSE='#'
2725 else
2726   MAINTAINER_MODE_TRUE='#'
2727   MAINTAINER_MODE_FALSE=
2728 fi
2729
2730   MAINT=$MAINTAINER_MODE_TRUE
2731
2732
2733
2734 # Initialize libtool
2735 case `pwd` in
2736   *\ * | *\     *)
2737     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2738 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2739 esac
2740
2741
2742
2743 macro_version='2.4'
2744 macro_revision='1.3293'
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758 ltmain="$ac_aux_dir/ltmain.sh"
2759
2760 # Make sure we can run config.sub.
2761 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2762   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2763
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2765 $as_echo_n "checking build system type... " >&6; }
2766 if ${ac_cv_build+:} false; then :
2767   $as_echo_n "(cached) " >&6
2768 else
2769   ac_build_alias=$build_alias
2770 test "x$ac_build_alias" = x &&
2771   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2772 test "x$ac_build_alias" = x &&
2773   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2774 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2775   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2776
2777 fi
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2779 $as_echo "$ac_cv_build" >&6; }
2780 case $ac_cv_build in
2781 *-*-*) ;;
2782 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2783 esac
2784 build=$ac_cv_build
2785 ac_save_IFS=$IFS; IFS='-'
2786 set x $ac_cv_build
2787 shift
2788 build_cpu=$1
2789 build_vendor=$2
2790 shift; shift
2791 # Remember, the first character of IFS is used to create $*,
2792 # except with old shells:
2793 build_os=$*
2794 IFS=$ac_save_IFS
2795 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2796
2797
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2799 $as_echo_n "checking host system type... " >&6; }
2800 if ${ac_cv_host+:} false; then :
2801   $as_echo_n "(cached) " >&6
2802 else
2803   if test "x$host_alias" = x; then
2804   ac_cv_host=$ac_cv_build
2805 else
2806   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2807     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2808 fi
2809
2810 fi
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2812 $as_echo "$ac_cv_host" >&6; }
2813 case $ac_cv_host in
2814 *-*-*) ;;
2815 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2816 esac
2817 host=$ac_cv_host
2818 ac_save_IFS=$IFS; IFS='-'
2819 set x $ac_cv_host
2820 shift
2821 host_cpu=$1
2822 host_vendor=$2
2823 shift; shift
2824 # Remember, the first character of IFS is used to create $*,
2825 # except with old shells:
2826 host_os=$*
2827 IFS=$ac_save_IFS
2828 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2829
2830
2831 # Backslashify metacharacters that are still active within
2832 # double-quoted strings.
2833 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2834
2835 # Same as above, but do not quote variable references.
2836 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2837
2838 # Sed substitution to delay expansion of an escaped shell variable in a
2839 # double_quote_subst'ed string.
2840 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2841
2842 # Sed substitution to delay expansion of an escaped single quote.
2843 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2844
2845 # Sed substitution to avoid accidental globbing in evaled expressions
2846 no_glob_subst='s/\*/\\\*/g'
2847
2848 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2849 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2850 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2851
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2853 $as_echo_n "checking how to print strings... " >&6; }
2854 # Test print first, because it will be a builtin if present.
2855 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2856    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2857   ECHO='print -r --'
2858 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2859   ECHO='printf %s\n'
2860 else
2861   # Use this function as a fallback that always works.
2862   func_fallback_echo ()
2863   {
2864     eval 'cat <<_LTECHO_EOF
2865 $1
2866 _LTECHO_EOF'
2867   }
2868   ECHO='func_fallback_echo'
2869 fi
2870
2871 # func_echo_all arg...
2872 # Invoke $ECHO with all args, space-separated.
2873 func_echo_all ()
2874 {
2875     $ECHO ""
2876 }
2877
2878 case "$ECHO" in
2879   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2880 $as_echo "printf" >&6; } ;;
2881   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2882 $as_echo "print -r" >&6; } ;;
2883   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2884 $as_echo "cat" >&6; } ;;
2885 esac
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900 DEPDIR="${am__leading_dot}deps"
2901
2902 ac_config_commands="$ac_config_commands depfiles"
2903
2904
2905 am_make=${MAKE-make}
2906 cat > confinc << 'END'
2907 am__doit:
2908         @echo this is the am__doit target
2909 .PHONY: am__doit
2910 END
2911 # If we don't find an include directive, just comment out the code.
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2913 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2914 am__include="#"
2915 am__quote=
2916 _am_result=none
2917 # First try GNU make style include.
2918 echo "include confinc" > confmf
2919 # Ignore all kinds of additional output from `make'.
2920 case `$am_make -s -f confmf 2> /dev/null` in #(
2921 *the\ am__doit\ target*)
2922   am__include=include
2923   am__quote=
2924   _am_result=GNU
2925   ;;
2926 esac
2927 # Now try BSD make style include.
2928 if test "$am__include" = "#"; then
2929    echo '.include "confinc"' > confmf
2930    case `$am_make -s -f confmf 2> /dev/null` in #(
2931    *the\ am__doit\ target*)
2932      am__include=.include
2933      am__quote="\""
2934      _am_result=BSD
2935      ;;
2936    esac
2937 fi
2938
2939
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2941 $as_echo "$_am_result" >&6; }
2942 rm -f confinc confmf
2943
2944 # Check whether --enable-dependency-tracking was given.
2945 if test "${enable_dependency_tracking+set}" = set; then :
2946   enableval=$enable_dependency_tracking;
2947 fi
2948
2949 if test "x$enable_dependency_tracking" != xno; then
2950   am_depcomp="$ac_aux_dir/depcomp"
2951   AMDEPBACKSLASH='\'
2952 fi
2953  if test "x$enable_dependency_tracking" != xno; then
2954   AMDEP_TRUE=
2955   AMDEP_FALSE='#'
2956 else
2957   AMDEP_TRUE='#'
2958   AMDEP_FALSE=
2959 fi
2960
2961
2962 ac_ext=c
2963 ac_cpp='$CPP $CPPFLAGS'
2964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2967 if test -n "$ac_tool_prefix"; then
2968   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2969 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971 $as_echo_n "checking for $ac_word... " >&6; }
2972 if ${ac_cv_prog_CC+:} false; then :
2973   $as_echo_n "(cached) " >&6
2974 else
2975   if test -n "$CC"; then
2976   ac_cv_prog_CC="$CC" # Let the user override the test.
2977 else
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 for as_dir in $PATH
2980 do
2981   IFS=$as_save_IFS
2982   test -z "$as_dir" && as_dir=.
2983     for ac_exec_ext in '' $ac_executable_extensions; do
2984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2985     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2986     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2987     break 2
2988   fi
2989 done
2990   done
2991 IFS=$as_save_IFS
2992
2993 fi
2994 fi
2995 CC=$ac_cv_prog_CC
2996 if test -n "$CC"; then
2997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2998 $as_echo "$CC" >&6; }
2999 else
3000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001 $as_echo "no" >&6; }
3002 fi
3003
3004
3005 fi
3006 if test -z "$ac_cv_prog_CC"; then
3007   ac_ct_CC=$CC
3008   # Extract the first word of "gcc", so it can be a program name with args.
3009 set dummy gcc; ac_word=$2
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3011 $as_echo_n "checking for $ac_word... " >&6; }
3012 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3013   $as_echo_n "(cached) " >&6
3014 else
3015   if test -n "$ac_ct_CC"; then
3016   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3017 else
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 for as_dir in $PATH
3020 do
3021   IFS=$as_save_IFS
3022   test -z "$as_dir" && as_dir=.
3023     for ac_exec_ext in '' $ac_executable_extensions; do
3024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3025     ac_cv_prog_ac_ct_CC="gcc"
3026     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3027     break 2
3028   fi
3029 done
3030   done
3031 IFS=$as_save_IFS
3032
3033 fi
3034 fi
3035 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3036 if test -n "$ac_ct_CC"; then
3037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3038 $as_echo "$ac_ct_CC" >&6; }
3039 else
3040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041 $as_echo "no" >&6; }
3042 fi
3043
3044   if test "x$ac_ct_CC" = x; then
3045     CC=""
3046   else
3047     case $cross_compiling:$ac_tool_warned in
3048 yes:)
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3051 ac_tool_warned=yes ;;
3052 esac
3053     CC=$ac_ct_CC
3054   fi
3055 else
3056   CC="$ac_cv_prog_CC"
3057 fi
3058
3059 if test -z "$CC"; then
3060           if test -n "$ac_tool_prefix"; then
3061     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3062 set dummy ${ac_tool_prefix}cc; ac_word=$2
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064 $as_echo_n "checking for $ac_word... " >&6; }
3065 if ${ac_cv_prog_CC+:} false; then :
3066   $as_echo_n "(cached) " >&6
3067 else
3068   if test -n "$CC"; then
3069   ac_cv_prog_CC="$CC" # Let the user override the test.
3070 else
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 for as_dir in $PATH
3073 do
3074   IFS=$as_save_IFS
3075   test -z "$as_dir" && as_dir=.
3076     for ac_exec_ext in '' $ac_executable_extensions; do
3077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3078     ac_cv_prog_CC="${ac_tool_prefix}cc"
3079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080     break 2
3081   fi
3082 done
3083   done
3084 IFS=$as_save_IFS
3085
3086 fi
3087 fi
3088 CC=$ac_cv_prog_CC
3089 if test -n "$CC"; then
3090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3091 $as_echo "$CC" >&6; }
3092 else
3093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 $as_echo "no" >&6; }
3095 fi
3096
3097
3098   fi
3099 fi
3100 if test -z "$CC"; then
3101   # Extract the first word of "cc", so it can be a program name with args.
3102 set dummy cc; ac_word=$2
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3104 $as_echo_n "checking for $ac_word... " >&6; }
3105 if ${ac_cv_prog_CC+:} false; then :
3106   $as_echo_n "(cached) " >&6
3107 else
3108   if test -n "$CC"; then
3109   ac_cv_prog_CC="$CC" # Let the user override the test.
3110 else
3111   ac_prog_rejected=no
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 for as_dir in $PATH
3114 do
3115   IFS=$as_save_IFS
3116   test -z "$as_dir" && as_dir=.
3117     for ac_exec_ext in '' $ac_executable_extensions; do
3118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3119     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3120        ac_prog_rejected=yes
3121        continue
3122      fi
3123     ac_cv_prog_CC="cc"
3124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3125     break 2
3126   fi
3127 done
3128   done
3129 IFS=$as_save_IFS
3130
3131 if test $ac_prog_rejected = yes; then
3132   # We found a bogon in the path, so make sure we never use it.
3133   set dummy $ac_cv_prog_CC
3134   shift
3135   if test $# != 0; then
3136     # We chose a different compiler from the bogus one.
3137     # However, it has the same basename, so the bogon will be chosen
3138     # first if we set CC to just the basename; use the full file name.
3139     shift
3140     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3141   fi
3142 fi
3143 fi
3144 fi
3145 CC=$ac_cv_prog_CC
3146 if test -n "$CC"; then
3147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3148 $as_echo "$CC" >&6; }
3149 else
3150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151 $as_echo "no" >&6; }
3152 fi
3153
3154
3155 fi
3156 if test -z "$CC"; then
3157   if test -n "$ac_tool_prefix"; then
3158   for ac_prog in cl.exe
3159   do
3160     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3161 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3163 $as_echo_n "checking for $ac_word... " >&6; }
3164 if ${ac_cv_prog_CC+:} false; then :
3165   $as_echo_n "(cached) " >&6
3166 else
3167   if test -n "$CC"; then
3168   ac_cv_prog_CC="$CC" # Let the user override the test.
3169 else
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171 for as_dir in $PATH
3172 do
3173   IFS=$as_save_IFS
3174   test -z "$as_dir" && as_dir=.
3175     for ac_exec_ext in '' $ac_executable_extensions; do
3176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3177     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3179     break 2
3180   fi
3181 done
3182   done
3183 IFS=$as_save_IFS
3184
3185 fi
3186 fi
3187 CC=$ac_cv_prog_CC
3188 if test -n "$CC"; then
3189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3190 $as_echo "$CC" >&6; }
3191 else
3192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193 $as_echo "no" >&6; }
3194 fi
3195
3196
3197     test -n "$CC" && break
3198   done
3199 fi
3200 if test -z "$CC"; then
3201   ac_ct_CC=$CC
3202   for ac_prog in cl.exe
3203 do
3204   # Extract the first word of "$ac_prog", so it can be a program name with args.
3205 set dummy $ac_prog; ac_word=$2
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3207 $as_echo_n "checking for $ac_word... " >&6; }
3208 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3209   $as_echo_n "(cached) " >&6
3210 else
3211   if test -n "$ac_ct_CC"; then
3212   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3213 else
3214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215 for as_dir in $PATH
3216 do
3217   IFS=$as_save_IFS
3218   test -z "$as_dir" && as_dir=.
3219     for ac_exec_ext in '' $ac_executable_extensions; do
3220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3221     ac_cv_prog_ac_ct_CC="$ac_prog"
3222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3223     break 2
3224   fi
3225 done
3226   done
3227 IFS=$as_save_IFS
3228
3229 fi
3230 fi
3231 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3232 if test -n "$ac_ct_CC"; then
3233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3234 $as_echo "$ac_ct_CC" >&6; }
3235 else
3236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237 $as_echo "no" >&6; }
3238 fi
3239
3240
3241   test -n "$ac_ct_CC" && break
3242 done
3243
3244   if test "x$ac_ct_CC" = x; then
3245     CC=""
3246   else
3247     case $cross_compiling:$ac_tool_warned in
3248 yes:)
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3251 ac_tool_warned=yes ;;
3252 esac
3253     CC=$ac_ct_CC
3254   fi
3255 fi
3256
3257 fi
3258
3259
3260 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3262 as_fn_error $? "no acceptable C compiler found in \$PATH
3263 See \`config.log' for more details" "$LINENO" 5; }
3264
3265 # Provide some information about the compiler.
3266 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3267 set X $ac_compile
3268 ac_compiler=$2
3269 for ac_option in --version -v -V -qversion; do
3270   { { ac_try="$ac_compiler $ac_option >&5"
3271 case "(($ac_try" in
3272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273   *) ac_try_echo=$ac_try;;
3274 esac
3275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3276 $as_echo "$ac_try_echo"; } >&5
3277   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3278   ac_status=$?
3279   if test -s conftest.err; then
3280     sed '10a\
3281 ... rest of stderr output deleted ...
3282          10q' conftest.err >conftest.er1
3283     cat conftest.er1 >&5
3284   fi
3285   rm -f conftest.er1 conftest.err
3286   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3287   test $ac_status = 0; }
3288 done
3289
3290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3291 /* end confdefs.h.  */
3292
3293 int
3294 main ()
3295 {
3296
3297   ;
3298   return 0;
3299 }
3300 _ACEOF
3301 ac_clean_files_save=$ac_clean_files
3302 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3303 # Try to create an executable without -o first, disregard a.out.
3304 # It will help us diagnose broken compilers, and finding out an intuition
3305 # of exeext.
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3307 $as_echo_n "checking whether the C compiler works... " >&6; }
3308 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3309
3310 # The possible output files:
3311 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3312
3313 ac_rmfiles=
3314 for ac_file in $ac_files
3315 do
3316   case $ac_file in
3317     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3318     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3319   esac
3320 done
3321 rm -f $ac_rmfiles
3322
3323 if { { ac_try="$ac_link_default"
3324 case "(($ac_try" in
3325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326   *) ac_try_echo=$ac_try;;
3327 esac
3328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329 $as_echo "$ac_try_echo"; } >&5
3330   (eval "$ac_link_default") 2>&5
3331   ac_status=$?
3332   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333   test $ac_status = 0; }; then :
3334   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3335 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3336 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3337 # so that the user can short-circuit this test for compilers unknown to
3338 # Autoconf.
3339 for ac_file in $ac_files ''
3340 do
3341   test -f "$ac_file" || continue
3342   case $ac_file in
3343     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3344         ;;
3345     [ab].out )
3346         # We found the default executable, but exeext='' is most
3347         # certainly right.
3348         break;;
3349     *.* )
3350         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3351         then :; else
3352            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3353         fi
3354         # We set ac_cv_exeext here because the later test for it is not
3355         # safe: cross compilers may not add the suffix if given an `-o'
3356         # argument, so we may need to know it at that point already.
3357         # Even if this section looks crufty: it has the advantage of
3358         # actually working.
3359         break;;
3360     * )
3361         break;;
3362   esac
3363 done
3364 test "$ac_cv_exeext" = no && ac_cv_exeext=
3365
3366 else
3367   ac_file=''
3368 fi
3369 if test -z "$ac_file"; then :
3370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371 $as_echo "no" >&6; }
3372 $as_echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3374
3375 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3377 as_fn_error 77 "C compiler cannot create executables
3378 See \`config.log' for more details" "$LINENO" 5; }
3379 else
3380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3381 $as_echo "yes" >&6; }
3382 fi
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3384 $as_echo_n "checking for C compiler default output file name... " >&6; }
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3386 $as_echo "$ac_file" >&6; }
3387 ac_exeext=$ac_cv_exeext
3388
3389 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3390 ac_clean_files=$ac_clean_files_save
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3392 $as_echo_n "checking for suffix of executables... " >&6; }
3393 if { { ac_try="$ac_link"
3394 case "(($ac_try" in
3395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396   *) ac_try_echo=$ac_try;;
3397 esac
3398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3399 $as_echo "$ac_try_echo"; } >&5
3400   (eval "$ac_link") 2>&5
3401   ac_status=$?
3402   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3403   test $ac_status = 0; }; then :
3404   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3405 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3406 # work properly (i.e., refer to `conftest.exe'), while it won't with
3407 # `rm'.
3408 for ac_file in conftest.exe conftest conftest.*; do
3409   test -f "$ac_file" || continue
3410   case $ac_file in
3411     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3412     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3413           break;;
3414     * ) break;;
3415   esac
3416 done
3417 else
3418   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3420 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3421 See \`config.log' for more details" "$LINENO" 5; }
3422 fi
3423 rm -f conftest conftest$ac_cv_exeext
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3425 $as_echo "$ac_cv_exeext" >&6; }
3426
3427 rm -f conftest.$ac_ext
3428 EXEEXT=$ac_cv_exeext
3429 ac_exeext=$EXEEXT
3430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431 /* end confdefs.h.  */
3432 #include <stdio.h>
3433 int
3434 main ()
3435 {
3436 FILE *f = fopen ("conftest.out", "w");
3437  return ferror (f) || fclose (f) != 0;
3438
3439   ;
3440   return 0;
3441 }
3442 _ACEOF
3443 ac_clean_files="$ac_clean_files conftest.out"
3444 # Check that the compiler produces executables we can run.  If not, either
3445 # the compiler is broken, or we cross compile.
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3447 $as_echo_n "checking whether we are cross compiling... " >&6; }
3448 if test "$cross_compiling" != yes; then
3449   { { ac_try="$ac_link"
3450 case "(($ac_try" in
3451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452   *) ac_try_echo=$ac_try;;
3453 esac
3454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3455 $as_echo "$ac_try_echo"; } >&5
3456   (eval "$ac_link") 2>&5
3457   ac_status=$?
3458   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3459   test $ac_status = 0; }
3460   if { ac_try='./conftest$ac_cv_exeext'
3461   { { case "(($ac_try" in
3462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463   *) ac_try_echo=$ac_try;;
3464 esac
3465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3466 $as_echo "$ac_try_echo"; } >&5
3467   (eval "$ac_try") 2>&5
3468   ac_status=$?
3469   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3470   test $ac_status = 0; }; }; then
3471     cross_compiling=no
3472   else
3473     if test "$cross_compiling" = maybe; then
3474         cross_compiling=yes
3475     else
3476         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3478 as_fn_error $? "cannot run C compiled programs.
3479 If you meant to cross compile, use \`--host'.
3480 See \`config.log' for more details" "$LINENO" 5; }
3481     fi
3482   fi
3483 fi
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3485 $as_echo "$cross_compiling" >&6; }
3486
3487 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3488 ac_clean_files=$ac_clean_files_save
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3490 $as_echo_n "checking for suffix of object files... " >&6; }
3491 if ${ac_cv_objext+:} false; then :
3492   $as_echo_n "(cached) " >&6
3493 else
3494   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495 /* end confdefs.h.  */
3496
3497 int
3498 main ()
3499 {
3500
3501   ;
3502   return 0;
3503 }
3504 _ACEOF
3505 rm -f conftest.o conftest.obj
3506 if { { ac_try="$ac_compile"
3507 case "(($ac_try" in
3508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509   *) ac_try_echo=$ac_try;;
3510 esac
3511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3512 $as_echo "$ac_try_echo"; } >&5
3513   (eval "$ac_compile") 2>&5
3514   ac_status=$?
3515   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3516   test $ac_status = 0; }; then :
3517   for ac_file in conftest.o conftest.obj conftest.*; do
3518   test -f "$ac_file" || continue;
3519   case $ac_file in
3520     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3521     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3522        break;;
3523   esac
3524 done
3525 else
3526   $as_echo "$as_me: failed program was:" >&5
3527 sed 's/^/| /' conftest.$ac_ext >&5
3528
3529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3531 as_fn_error $? "cannot compute suffix of object files: cannot compile
3532 See \`config.log' for more details" "$LINENO" 5; }
3533 fi
3534 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3535 fi
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3537 $as_echo "$ac_cv_objext" >&6; }
3538 OBJEXT=$ac_cv_objext
3539 ac_objext=$OBJEXT
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3541 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3542 if ${ac_cv_c_compiler_gnu+:} false; then :
3543   $as_echo_n "(cached) " >&6
3544 else
3545   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546 /* end confdefs.h.  */
3547
3548 int
3549 main ()
3550 {
3551 #ifndef __GNUC__
3552        choke me
3553 #endif
3554
3555   ;
3556   return 0;
3557 }
3558 _ACEOF
3559 if ac_fn_c_try_compile "$LINENO"; then :
3560   ac_compiler_gnu=yes
3561 else
3562   ac_compiler_gnu=no
3563 fi
3564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3566
3567 fi
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3569 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3570 if test $ac_compiler_gnu = yes; then
3571   GCC=yes
3572 else
3573   GCC=
3574 fi
3575 ac_test_CFLAGS=${CFLAGS+set}
3576 ac_save_CFLAGS=$CFLAGS
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3578 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3579 if ${ac_cv_prog_cc_g+:} false; then :
3580   $as_echo_n "(cached) " >&6
3581 else
3582   ac_save_c_werror_flag=$ac_c_werror_flag
3583    ac_c_werror_flag=yes
3584    ac_cv_prog_cc_g=no
3585    CFLAGS="-g"
3586    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587 /* end confdefs.h.  */
3588
3589 int
3590 main ()
3591 {
3592
3593   ;
3594   return 0;
3595 }
3596 _ACEOF
3597 if ac_fn_c_try_compile "$LINENO"; then :
3598   ac_cv_prog_cc_g=yes
3599 else
3600   CFLAGS=""
3601       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602 /* end confdefs.h.  */
3603
3604 int
3605 main ()
3606 {
3607
3608   ;
3609   return 0;
3610 }
3611 _ACEOF
3612 if ac_fn_c_try_compile "$LINENO"; then :
3613
3614 else
3615   ac_c_werror_flag=$ac_save_c_werror_flag
3616          CFLAGS="-g"
3617          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618 /* end confdefs.h.  */
3619
3620 int
3621 main ()
3622 {
3623
3624   ;
3625   return 0;
3626 }
3627 _ACEOF
3628 if ac_fn_c_try_compile "$LINENO"; then :
3629   ac_cv_prog_cc_g=yes
3630 fi
3631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3632 fi
3633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634 fi
3635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3636    ac_c_werror_flag=$ac_save_c_werror_flag
3637 fi
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3639 $as_echo "$ac_cv_prog_cc_g" >&6; }
3640 if test "$ac_test_CFLAGS" = set; then
3641   CFLAGS=$ac_save_CFLAGS
3642 elif test $ac_cv_prog_cc_g = yes; then
3643   if test "$GCC" = yes; then
3644     CFLAGS="-g -O2"
3645   else
3646     CFLAGS="-g"
3647   fi
3648 else
3649   if test "$GCC" = yes; then
3650     CFLAGS="-O2"
3651   else
3652     CFLAGS=
3653   fi
3654 fi
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3656 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3657 if ${ac_cv_prog_cc_c89+:} false; then :
3658   $as_echo_n "(cached) " >&6
3659 else
3660   ac_cv_prog_cc_c89=no
3661 ac_save_CC=$CC
3662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663 /* end confdefs.h.  */
3664 #include <stdarg.h>
3665 #include <stdio.h>
3666 #include <sys/types.h>
3667 #include <sys/stat.h>
3668 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3669 struct buf { int x; };
3670 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3671 static char *e (p, i)
3672      char **p;
3673      int i;
3674 {
3675   return p[i];
3676 }
3677 static char *f (char * (*g) (char **, int), char **p, ...)
3678 {
3679   char *s;
3680   va_list v;
3681   va_start (v,p);
3682   s = g (p, va_arg (v,int));
3683   va_end (v);
3684   return s;
3685 }
3686
3687 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3688    function prototypes and stuff, but not '\xHH' hex character constants.
3689    These don't provoke an error unfortunately, instead are silently treated
3690    as 'x'.  The following induces an error, until -std is added to get
3691    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3692    array size at least.  It's necessary to write '\x00'==0 to get something
3693    that's true only with -std.  */
3694 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3695
3696 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3697    inside strings and character constants.  */
3698 #define FOO(x) 'x'
3699 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3700
3701 int test (int i, double x);
3702 struct s1 {int (*f) (int a);};
3703 struct s2 {int (*f) (double a);};
3704 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3705 int argc;
3706 char **argv;
3707 int
3708 main ()
3709 {
3710 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3711   ;
3712   return 0;
3713 }
3714 _ACEOF
3715 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3716         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3717 do
3718   CC="$ac_save_CC $ac_arg"
3719   if ac_fn_c_try_compile "$LINENO"; then :
3720   ac_cv_prog_cc_c89=$ac_arg
3721 fi
3722 rm -f core conftest.err conftest.$ac_objext
3723   test "x$ac_cv_prog_cc_c89" != "xno" && break
3724 done
3725 rm -f conftest.$ac_ext
3726 CC=$ac_save_CC
3727
3728 fi
3729 # AC_CACHE_VAL
3730 case "x$ac_cv_prog_cc_c89" in
3731   x)
3732     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3733 $as_echo "none needed" >&6; } ;;
3734   xno)
3735     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3736 $as_echo "unsupported" >&6; } ;;
3737   *)
3738     CC="$CC $ac_cv_prog_cc_c89"
3739     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3740 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3741 esac
3742 if test "x$ac_cv_prog_cc_c89" != xno; then :
3743
3744 fi
3745
3746 ac_ext=c
3747 ac_cpp='$CPP $CPPFLAGS'
3748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3751
3752 depcc="$CC"   am_compiler_list=
3753
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3755 $as_echo_n "checking dependency style of $depcc... " >&6; }
3756 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3757   $as_echo_n "(cached) " >&6
3758 else
3759   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3760   # We make a subdir and do the tests there.  Otherwise we can end up
3761   # making bogus files that we don't know about and never remove.  For
3762   # instance it was reported that on HP-UX the gcc test will end up
3763   # making a dummy file named `D' -- because `-MD' means `put the output
3764   # in D'.
3765   mkdir conftest.dir
3766   # Copy depcomp to subdir because otherwise we won't find it if we're
3767   # using a relative directory.
3768   cp "$am_depcomp" conftest.dir
3769   cd conftest.dir
3770   # We will build objects and dependencies in a subdirectory because
3771   # it helps to detect inapplicable dependency modes.  For instance
3772   # both Tru64's cc and ICC support -MD to output dependencies as a
3773   # side effect of compilation, but ICC will put the dependencies in
3774   # the current directory while Tru64 will put them in the object
3775   # directory.
3776   mkdir sub
3777
3778   am_cv_CC_dependencies_compiler_type=none
3779   if test "$am_compiler_list" = ""; then
3780      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3781   fi
3782   am__universal=false
3783   case " $depcc " in #(
3784      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3785      esac
3786
3787   for depmode in $am_compiler_list; do
3788     # Setup a source with many dependencies, because some compilers
3789     # like to wrap large dependency lists on column 80 (with \), and
3790     # we should not choose a depcomp mode which is confused by this.
3791     #
3792     # We need to recreate these files for each test, as the compiler may
3793     # overwrite some of them when testing with obscure command lines.
3794     # This happens at least with the AIX C compiler.
3795     : > sub/conftest.c
3796     for i in 1 2 3 4 5 6; do
3797       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3798       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3799       # Solaris 8's {/usr,}/bin/sh.
3800       touch sub/conftst$i.h
3801     done
3802     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3803
3804     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3805     # mode.  It turns out that the SunPro C++ compiler does not properly
3806     # handle `-M -o', and we need to detect this.  Also, some Intel
3807     # versions had trouble with output in subdirs
3808     am__obj=sub/conftest.${OBJEXT-o}
3809     am__minus_obj="-o $am__obj"
3810     case $depmode in
3811     gcc)
3812       # This depmode causes a compiler race in universal mode.
3813       test "$am__universal" = false || continue
3814       ;;
3815     nosideeffect)
3816       # after this tag, mechanisms are not by side-effect, so they'll
3817       # only be used when explicitly requested
3818       if test "x$enable_dependency_tracking" = xyes; then
3819         continue
3820       else
3821         break
3822       fi
3823       ;;
3824     msvisualcpp | msvcmsys)
3825       # This compiler won't grok `-c -o', but also, the minuso test has
3826       # not run yet.  These depmodes are late enough in the game, and
3827       # so weak that their functioning should not be impacted.
3828       am__obj=conftest.${OBJEXT-o}
3829       am__minus_obj=
3830       ;;
3831     none) break ;;
3832     esac
3833     if depmode=$depmode \
3834        source=sub/conftest.c object=$am__obj \
3835        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3836        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3837          >/dev/null 2>conftest.err &&
3838        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3839        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3840        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3841        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3842       # icc doesn't choke on unknown options, it will just issue warnings
3843       # or remarks (even with -Werror).  So we grep stderr for any message
3844       # that says an option was ignored or not supported.
3845       # When given -MP, icc 7.0 and 7.1 complain thusly:
3846       #   icc: Command line warning: ignoring option '-M'; no argument required
3847       # The diagnosis changed in icc 8.0:
3848       #   icc: Command line remark: option '-MP' not supported
3849       if (grep 'ignoring option' conftest.err ||
3850           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3851         am_cv_CC_dependencies_compiler_type=$depmode
3852         break
3853       fi
3854     fi
3855   done
3856
3857   cd ..
3858   rm -rf conftest.dir
3859 else
3860   am_cv_CC_dependencies_compiler_type=none
3861 fi
3862
3863 fi
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3865 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3866 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3867
3868  if
3869   test "x$enable_dependency_tracking" != xno \
3870   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3871   am__fastdepCC_TRUE=
3872   am__fastdepCC_FALSE='#'
3873 else
3874   am__fastdepCC_TRUE='#'
3875   am__fastdepCC_FALSE=
3876 fi
3877
3878
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3880 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3881 if ${ac_cv_path_SED+:} false; then :
3882   $as_echo_n "(cached) " >&6
3883 else
3884             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3885      for ac_i in 1 2 3 4 5 6 7; do
3886        ac_script="$ac_script$as_nl$ac_script"
3887      done
3888      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3889      { ac_script=; unset ac_script;}
3890      if test -z "$SED"; then
3891   ac_path_SED_found=false
3892   # Loop through the user's path and test for each of PROGNAME-LIST
3893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894 for as_dir in $PATH
3895 do
3896   IFS=$as_save_IFS
3897   test -z "$as_dir" && as_dir=.
3898     for ac_prog in sed gsed; do
3899     for ac_exec_ext in '' $ac_executable_extensions; do
3900       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3901       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3902 # Check for GNU ac_path_SED and select it if it is found.
3903   # Check for GNU $ac_path_SED
3904 case `"$ac_path_SED" --version 2>&1` in
3905 *GNU*)
3906   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3907 *)
3908   ac_count=0
3909   $as_echo_n 0123456789 >"conftest.in"
3910   while :
3911   do
3912     cat "conftest.in" "conftest.in" >"conftest.tmp"
3913     mv "conftest.tmp" "conftest.in"
3914     cp "conftest.in" "conftest.nl"
3915     $as_echo '' >> "conftest.nl"
3916     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3917     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3918     as_fn_arith $ac_count + 1 && ac_count=$as_val
3919     if test $ac_count -gt ${ac_path_SED_max-0}; then
3920       # Best one so far, save it but keep looking for a better one
3921       ac_cv_path_SED="$ac_path_SED"
3922       ac_path_SED_max=$ac_count
3923     fi
3924     # 10*(2^10) chars as input seems more than enough
3925     test $ac_count -gt 10 && break
3926   done
3927   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3928 esac
3929
3930       $ac_path_SED_found && break 3
3931     done
3932   done
3933   done
3934 IFS=$as_save_IFS
3935   if test -z "$ac_cv_path_SED"; then
3936     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3937   fi
3938 else
3939   ac_cv_path_SED=$SED
3940 fi
3941
3942 fi
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3944 $as_echo "$ac_cv_path_SED" >&6; }
3945  SED="$ac_cv_path_SED"
3946   rm -f conftest.sed
3947
3948 test -z "$SED" && SED=sed
3949 Xsed="$SED -e 1s/^X//"
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3962 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3963 if ${ac_cv_path_GREP+:} false; then :
3964   $as_echo_n "(cached) " >&6
3965 else
3966   if test -z "$GREP"; then
3967   ac_path_GREP_found=false
3968   # Loop through the user's path and test for each of PROGNAME-LIST
3969   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3971 do
3972   IFS=$as_save_IFS
3973   test -z "$as_dir" && as_dir=.
3974     for ac_prog in grep ggrep; do
3975     for ac_exec_ext in '' $ac_executable_extensions; do
3976       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3977       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3978 # Check for GNU ac_path_GREP and select it if it is found.
3979   # Check for GNU $ac_path_GREP
3980 case `"$ac_path_GREP" --version 2>&1` in
3981 *GNU*)
3982   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3983 *)
3984   ac_count=0
3985   $as_echo_n 0123456789 >"conftest.in"
3986   while :
3987   do
3988     cat "conftest.in" "conftest.in" >"conftest.tmp"
3989     mv "conftest.tmp" "conftest.in"
3990     cp "conftest.in" "conftest.nl"
3991     $as_echo 'GREP' >> "conftest.nl"
3992     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3993     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3994     as_fn_arith $ac_count + 1 && ac_count=$as_val
3995     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3996       # Best one so far, save it but keep looking for a better one
3997       ac_cv_path_GREP="$ac_path_GREP"
3998       ac_path_GREP_max=$ac_count
3999     fi
4000     # 10*(2^10) chars as input seems more than enough
4001     test $ac_count -gt 10 && break
4002   done
4003   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4004 esac
4005
4006       $ac_path_GREP_found && break 3
4007     done
4008   done
4009   done
4010 IFS=$as_save_IFS
4011   if test -z "$ac_cv_path_GREP"; then
4012     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4013   fi
4014 else
4015   ac_cv_path_GREP=$GREP
4016 fi
4017
4018 fi
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4020 $as_echo "$ac_cv_path_GREP" >&6; }
4021  GREP="$ac_cv_path_GREP"
4022
4023
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4025 $as_echo_n "checking for egrep... " >&6; }
4026 if ${ac_cv_path_EGREP+:} false; then :
4027   $as_echo_n "(cached) " >&6
4028 else
4029   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4030    then ac_cv_path_EGREP="$GREP -E"
4031    else
4032      if test -z "$EGREP"; then
4033   ac_path_EGREP_found=false
4034   # Loop through the user's path and test for each of PROGNAME-LIST
4035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4037 do
4038   IFS=$as_save_IFS
4039   test -z "$as_dir" && as_dir=.
4040     for ac_prog in egrep; do
4041     for ac_exec_ext in '' $ac_executable_extensions; do
4042       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4043       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4044 # Check for GNU ac_path_EGREP and select it if it is found.
4045   # Check for GNU $ac_path_EGREP
4046 case `"$ac_path_EGREP" --version 2>&1` in
4047 *GNU*)
4048   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4049 *)
4050   ac_count=0
4051   $as_echo_n 0123456789 >"conftest.in"
4052   while :
4053   do
4054     cat "conftest.in" "conftest.in" >"conftest.tmp"
4055     mv "conftest.tmp" "conftest.in"
4056     cp "conftest.in" "conftest.nl"
4057     $as_echo 'EGREP' >> "conftest.nl"
4058     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4059     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4060     as_fn_arith $ac_count + 1 && ac_count=$as_val
4061     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4062       # Best one so far, save it but keep looking for a better one
4063       ac_cv_path_EGREP="$ac_path_EGREP"
4064       ac_path_EGREP_max=$ac_count
4065     fi
4066     # 10*(2^10) chars as input seems more than enough
4067     test $ac_count -gt 10 && break
4068   done
4069   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4070 esac
4071
4072       $ac_path_EGREP_found && break 3
4073     done
4074   done
4075   done
4076 IFS=$as_save_IFS
4077   if test -z "$ac_cv_path_EGREP"; then
4078     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4079   fi
4080 else
4081   ac_cv_path_EGREP=$EGREP
4082 fi
4083
4084    fi
4085 fi
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4087 $as_echo "$ac_cv_path_EGREP" >&6; }
4088  EGREP="$ac_cv_path_EGREP"
4089
4090
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4092 $as_echo_n "checking for fgrep... " >&6; }
4093 if ${ac_cv_path_FGREP+:} false; then :
4094   $as_echo_n "(cached) " >&6
4095 else
4096   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4097    then ac_cv_path_FGREP="$GREP -F"
4098    else
4099      if test -z "$FGREP"; then
4100   ac_path_FGREP_found=false
4101   # Loop through the user's path and test for each of PROGNAME-LIST
4102   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4104 do
4105   IFS=$as_save_IFS
4106   test -z "$as_dir" && as_dir=.
4107     for ac_prog in fgrep; do
4108     for ac_exec_ext in '' $ac_executable_extensions; do
4109       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4110       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4111 # Check for GNU ac_path_FGREP and select it if it is found.
4112   # Check for GNU $ac_path_FGREP
4113 case `"$ac_path_FGREP" --version 2>&1` in
4114 *GNU*)
4115   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4116 *)
4117   ac_count=0
4118   $as_echo_n 0123456789 >"conftest.in"
4119   while :
4120   do
4121     cat "conftest.in" "conftest.in" >"conftest.tmp"
4122     mv "conftest.tmp" "conftest.in"
4123     cp "conftest.in" "conftest.nl"
4124     $as_echo 'FGREP' >> "conftest.nl"
4125     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4126     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4127     as_fn_arith $ac_count + 1 && ac_count=$as_val
4128     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4129       # Best one so far, save it but keep looking for a better one
4130       ac_cv_path_FGREP="$ac_path_FGREP"
4131       ac_path_FGREP_max=$ac_count
4132     fi
4133     # 10*(2^10) chars as input seems more than enough
4134     test $ac_count -gt 10 && break
4135   done
4136   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4137 esac
4138
4139       $ac_path_FGREP_found && break 3
4140     done
4141   done
4142   done
4143 IFS=$as_save_IFS
4144   if test -z "$ac_cv_path_FGREP"; then
4145     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4146   fi
4147 else
4148   ac_cv_path_FGREP=$FGREP
4149 fi
4150
4151    fi
4152 fi
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4154 $as_echo "$ac_cv_path_FGREP" >&6; }
4155  FGREP="$ac_cv_path_FGREP"
4156
4157
4158 test -z "$GREP" && GREP=grep
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178 # Check whether --with-gnu-ld was given.
4179 if test "${with_gnu_ld+set}" = set; then :
4180   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4181 else
4182   with_gnu_ld=no
4183 fi
4184
4185 ac_prog=ld
4186 if test "$GCC" = yes; then
4187   # Check if gcc -print-prog-name=ld gives a path.
4188   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4189 $as_echo_n "checking for ld used by $CC... " >&6; }
4190   case $host in
4191   *-*-mingw*)
4192     # gcc leaves a trailing carriage return which upsets mingw
4193     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4194   *)
4195     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4196   esac
4197   case $ac_prog in
4198     # Accept absolute paths.
4199     [\\/]* | ?:[\\/]*)
4200       re_direlt='/[^/][^/]*/\.\./'
4201       # Canonicalize the pathname of ld
4202       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4203       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4204         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4205       done
4206       test -z "$LD" && LD="$ac_prog"
4207       ;;
4208   "")
4209     # If it fails, then pretend we aren't using GCC.
4210     ac_prog=ld
4211     ;;
4212   *)
4213     # If it is relative, then search for the first ld in PATH.
4214     with_gnu_ld=unknown
4215     ;;
4216   esac
4217 elif test "$with_gnu_ld" = yes; then
4218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4219 $as_echo_n "checking for GNU ld... " >&6; }
4220 else
4221   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4222 $as_echo_n "checking for non-GNU ld... " >&6; }
4223 fi
4224 if ${lt_cv_path_LD+:} false; then :
4225   $as_echo_n "(cached) " >&6
4226 else
4227   if test -z "$LD"; then
4228   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4229   for ac_dir in $PATH; do
4230     IFS="$lt_save_ifs"
4231     test -z "$ac_dir" && ac_dir=.
4232     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4233       lt_cv_path_LD="$ac_dir/$ac_prog"
4234       # Check to see if the program is GNU ld.  I'd rather use --version,
4235       # but apparently some variants of GNU ld only accept -v.
4236       # Break only if it was the GNU/non-GNU ld that we prefer.
4237       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4238       *GNU* | *'with BFD'*)
4239         test "$with_gnu_ld" != no && break
4240         ;;
4241       *)
4242         test "$with_gnu_ld" != yes && break
4243         ;;
4244       esac
4245     fi
4246   done
4247   IFS="$lt_save_ifs"
4248 else
4249   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4250 fi
4251 fi
4252
4253 LD="$lt_cv_path_LD"
4254 if test -n "$LD"; then
4255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4256 $as_echo "$LD" >&6; }
4257 else
4258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4259 $as_echo "no" >&6; }
4260 fi
4261 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4263 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4264 if ${lt_cv_prog_gnu_ld+:} false; then :
4265   $as_echo_n "(cached) " >&6
4266 else
4267   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4268 case `$LD -v 2>&1 </dev/null` in
4269 *GNU* | *'with BFD'*)
4270   lt_cv_prog_gnu_ld=yes
4271   ;;
4272 *)
4273   lt_cv_prog_gnu_ld=no
4274   ;;
4275 esac
4276 fi
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4278 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4279 with_gnu_ld=$lt_cv_prog_gnu_ld
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4290 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4291 if ${lt_cv_path_NM+:} false; then :
4292   $as_echo_n "(cached) " >&6
4293 else
4294   if test -n "$NM"; then
4295   # Let the user override the test.
4296   lt_cv_path_NM="$NM"
4297 else
4298   lt_nm_to_check="${ac_tool_prefix}nm"
4299   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4300     lt_nm_to_check="$lt_nm_to_check nm"
4301   fi
4302   for lt_tmp_nm in $lt_nm_to_check; do
4303     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4304     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4305       IFS="$lt_save_ifs"
4306       test -z "$ac_dir" && ac_dir=.
4307       tmp_nm="$ac_dir/$lt_tmp_nm"
4308       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4309         # Check to see if the nm accepts a BSD-compat flag.
4310         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4311         #   nm: unknown option "B" ignored
4312         # Tru64's nm complains that /dev/null is an invalid object file
4313         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4314         */dev/null* | *'Invalid file or object type'*)
4315           lt_cv_path_NM="$tmp_nm -B"
4316           break
4317           ;;
4318         *)
4319           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4320           */dev/null*)
4321             lt_cv_path_NM="$tmp_nm -p"
4322             break
4323             ;;
4324           *)
4325             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4326             continue # so that we can try to find one that supports BSD flags
4327             ;;
4328           esac
4329           ;;
4330         esac
4331       fi
4332     done
4333     IFS="$lt_save_ifs"
4334   done
4335   : ${lt_cv_path_NM=no}
4336 fi
4337 fi
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4339 $as_echo "$lt_cv_path_NM" >&6; }
4340 if test "$lt_cv_path_NM" != "no"; then
4341   NM="$lt_cv_path_NM"
4342 else
4343   # Didn't find any BSD compatible name lister, look for dumpbin.
4344   if test -n "$DUMPBIN"; then :
4345     # Let the user override the test.
4346   else
4347     if test -n "$ac_tool_prefix"; then
4348   for ac_prog in dumpbin "link -dump"
4349   do
4350     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4351 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4353 $as_echo_n "checking for $ac_word... " >&6; }
4354 if ${ac_cv_prog_DUMPBIN+:} false; then :
4355   $as_echo_n "(cached) " >&6
4356 else
4357   if test -n "$DUMPBIN"; then
4358   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4359 else
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361 for as_dir in $PATH
4362 do
4363   IFS=$as_save_IFS
4364   test -z "$as_dir" && as_dir=.
4365     for ac_exec_ext in '' $ac_executable_extensions; do
4366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4367     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4369     break 2
4370   fi
4371 done
4372   done
4373 IFS=$as_save_IFS
4374
4375 fi
4376 fi
4377 DUMPBIN=$ac_cv_prog_DUMPBIN
4378 if test -n "$DUMPBIN"; then
4379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4380 $as_echo "$DUMPBIN" >&6; }
4381 else
4382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383 $as_echo "no" >&6; }
4384 fi
4385
4386
4387     test -n "$DUMPBIN" && break
4388   done
4389 fi
4390 if test -z "$DUMPBIN"; then
4391   ac_ct_DUMPBIN=$DUMPBIN
4392   for ac_prog in dumpbin "link -dump"
4393 do
4394   # Extract the first word of "$ac_prog", so it can be a program name with args.
4395 set dummy $ac_prog; ac_word=$2
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397 $as_echo_n "checking for $ac_word... " >&6; }
4398 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4399   $as_echo_n "(cached) " >&6
4400 else
4401   if test -n "$ac_ct_DUMPBIN"; then
4402   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4403 else
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 for as_dir in $PATH
4406 do
4407   IFS=$as_save_IFS
4408   test -z "$as_dir" && as_dir=.
4409     for ac_exec_ext in '' $ac_executable_extensions; do
4410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4411     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4413     break 2
4414   fi
4415 done
4416   done
4417 IFS=$as_save_IFS
4418
4419 fi
4420 fi
4421 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4422 if test -n "$ac_ct_DUMPBIN"; then
4423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4424 $as_echo "$ac_ct_DUMPBIN" >&6; }
4425 else
4426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427 $as_echo "no" >&6; }
4428 fi
4429
4430
4431   test -n "$ac_ct_DUMPBIN" && break
4432 done
4433
4434   if test "x$ac_ct_DUMPBIN" = x; then
4435     DUMPBIN=":"
4436   else
4437     case $cross_compiling:$ac_tool_warned in
4438 yes:)
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4441 ac_tool_warned=yes ;;
4442 esac
4443     DUMPBIN=$ac_ct_DUMPBIN
4444   fi
4445 fi
4446
4447     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4448     *COFF*)
4449       DUMPBIN="$DUMPBIN -symbols"
4450       ;;
4451     *)
4452       DUMPBIN=:
4453       ;;
4454     esac
4455   fi
4456
4457   if test "$DUMPBIN" != ":"; then
4458     NM="$DUMPBIN"
4459   fi
4460 fi
4461 test -z "$NM" && NM=nm
4462
4463
4464
4465
4466
4467
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4469 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4470 if ${lt_cv_nm_interface+:} false; then :
4471   $as_echo_n "(cached) " >&6
4472 else
4473   lt_cv_nm_interface="BSD nm"
4474   echo "int some_variable = 0;" > conftest.$ac_ext
4475   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4476   (eval "$ac_compile" 2>conftest.err)
4477   cat conftest.err >&5
4478   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4479   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4480   cat conftest.err >&5
4481   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4482   cat conftest.out >&5
4483   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4484     lt_cv_nm_interface="MS dumpbin"
4485   fi
4486   rm -f conftest*
4487 fi
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4489 $as_echo "$lt_cv_nm_interface" >&6; }
4490
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4492 $as_echo_n "checking whether ln -s works... " >&6; }
4493 LN_S=$as_ln_s
4494 if test "$LN_S" = "ln -s"; then
4495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4496 $as_echo "yes" >&6; }
4497 else
4498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4499 $as_echo "no, using $LN_S" >&6; }
4500 fi
4501
4502 # find the maximum length of command line arguments
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4504 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4505 if ${lt_cv_sys_max_cmd_len+:} false; then :
4506   $as_echo_n "(cached) " >&6
4507 else
4508     i=0
4509   teststring="ABCD"
4510
4511   case $build_os in
4512   msdosdjgpp*)
4513     # On DJGPP, this test can blow up pretty badly due to problems in libc
4514     # (any single argument exceeding 2000 bytes causes a buffer overrun
4515     # during glob expansion).  Even if it were fixed, the result of this
4516     # check would be larger than it should be.
4517     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4518     ;;
4519
4520   gnu*)
4521     # Under GNU Hurd, this test is not required because there is
4522     # no limit to the length of command line arguments.
4523     # Libtool will interpret -1 as no limit whatsoever
4524     lt_cv_sys_max_cmd_len=-1;
4525     ;;
4526
4527   cygwin* | mingw* | cegcc*)
4528     # On Win9x/ME, this test blows up -- it succeeds, but takes
4529     # about 5 minutes as the teststring grows exponentially.
4530     # Worse, since 9x/ME are not pre-emptively multitasking,
4531     # you end up with a "frozen" computer, even though with patience
4532     # the test eventually succeeds (with a max line length of 256k).
4533     # Instead, let's just punt: use the minimum linelength reported by
4534     # all of the supported platforms: 8192 (on NT/2K/XP).
4535     lt_cv_sys_max_cmd_len=8192;
4536     ;;
4537
4538   mint*)
4539     # On MiNT this can take a long time and run out of memory.
4540     lt_cv_sys_max_cmd_len=8192;
4541     ;;
4542
4543   amigaos*)
4544     # On AmigaOS with pdksh, this test takes hours, literally.
4545     # So we just punt and use a minimum line length of 8192.
4546     lt_cv_sys_max_cmd_len=8192;
4547     ;;
4548
4549   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4550     # This has been around since 386BSD, at least.  Likely further.
4551     if test -x /sbin/sysctl; then
4552       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4553     elif test -x /usr/sbin/sysctl; then
4554       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4555     else
4556       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4557     fi
4558     # And add a safety zone
4559     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4560     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4561     ;;
4562
4563   interix*)
4564     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4565     lt_cv_sys_max_cmd_len=196608
4566     ;;
4567
4568   osf*)
4569     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4570     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4571     # nice to cause kernel panics so lets avoid the loop below.
4572     # First set a reasonable default.
4573     lt_cv_sys_max_cmd_len=16384
4574     #
4575     if test -x /sbin/sysconfig; then
4576       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4577         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4578       esac
4579     fi
4580     ;;
4581   sco3.2v5*)
4582     lt_cv_sys_max_cmd_len=102400
4583     ;;
4584   sysv5* | sco5v6* | sysv4.2uw2*)
4585     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4586     if test -n "$kargmax"; then
4587       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4588     else
4589       lt_cv_sys_max_cmd_len=32768
4590     fi
4591     ;;
4592   *)
4593     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4594     if test -n "$lt_cv_sys_max_cmd_len"; then
4595       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4596       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4597     else
4598       # Make teststring a little bigger before we do anything with it.
4599       # a 1K string should be a reasonable start.
4600       for i in 1 2 3 4 5 6 7 8 ; do
4601         teststring=$teststring$teststring
4602       done
4603       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4604       # If test is not a shell built-in, we'll probably end up computing a
4605       # maximum length that is only half of the actual maximum length, but
4606       # we can't tell.
4607       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4608                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4609               test $i != 17 # 1/2 MB should be enough
4610       do
4611         i=`expr $i + 1`
4612         teststring=$teststring$teststring
4613       done
4614       # Only check the string length outside the loop.
4615       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4616       teststring=
4617       # Add a significant safety factor because C++ compilers can tack on
4618       # massive amounts of additional arguments before passing them to the
4619       # linker.  It appears as though 1/2 is a usable value.
4620       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4621     fi
4622     ;;
4623   esac
4624
4625 fi
4626
4627 if test -n $lt_cv_sys_max_cmd_len ; then
4628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4629 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4630 else
4631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4632 $as_echo "none" >&6; }
4633 fi
4634 max_cmd_len=$lt_cv_sys_max_cmd_len
4635
4636
4637
4638
4639
4640
4641 : ${CP="cp -f"}
4642 : ${MV="mv -f"}
4643 : ${RM="rm -f"}
4644
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4646 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4647 # Try some XSI features
4648 xsi_shell=no
4649 ( _lt_dummy="a/b/c"
4650   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4651       = c,a/b,b/c, \
4652     && eval 'test $(( 1 + 1 )) -eq 2 \
4653     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4654   && xsi_shell=yes
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4656 $as_echo "$xsi_shell" >&6; }
4657
4658
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4660 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4661 lt_shell_append=no
4662 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4663     >/dev/null 2>&1 \
4664   && lt_shell_append=yes
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4666 $as_echo "$lt_shell_append" >&6; }
4667
4668
4669 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4670   lt_unset=unset
4671 else
4672   lt_unset=false
4673 fi
4674
4675
4676
4677
4678
4679 # test EBCDIC or ASCII
4680 case `echo X|tr X '\101'` in
4681  A) # ASCII based system
4682     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4683   lt_SP2NL='tr \040 \012'
4684   lt_NL2SP='tr \015\012 \040\040'
4685   ;;
4686  *) # EBCDIC based system
4687   lt_SP2NL='tr \100 \n'
4688   lt_NL2SP='tr \r\n \100\100'
4689   ;;
4690 esac
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4701 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4702 if ${lt_cv_to_host_file_cmd+:} false; then :
4703   $as_echo_n "(cached) " >&6
4704 else
4705   case $host in
4706   *-*-mingw* )
4707     case $build in
4708       *-*-mingw* ) # actually msys
4709         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4710         ;;
4711       *-*-cygwin* )
4712         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4713         ;;
4714       * ) # otherwise, assume *nix
4715         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4716         ;;
4717     esac
4718     ;;
4719   *-*-cygwin* )
4720     case $build in
4721       *-*-mingw* ) # actually msys
4722         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4723         ;;
4724       *-*-cygwin* )
4725         lt_cv_to_host_file_cmd=func_convert_file_noop
4726         ;;
4727       * ) # otherwise, assume *nix
4728         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4729         ;;
4730     esac
4731     ;;
4732   * ) # unhandled hosts (and "normal" native builds)
4733     lt_cv_to_host_file_cmd=func_convert_file_noop
4734     ;;
4735 esac
4736
4737 fi
4738
4739 to_host_file_cmd=$lt_cv_to_host_file_cmd
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4741 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4742
4743
4744
4745
4746
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4748 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4749 if ${lt_cv_to_tool_file_cmd+:} false; then :
4750   $as_echo_n "(cached) " >&6
4751 else
4752   #assume ordinary cross tools, or native build.
4753 lt_cv_to_tool_file_cmd=func_convert_file_noop
4754 case $host in
4755   *-*-mingw* )
4756     case $build in
4757       *-*-mingw* ) # actually msys
4758         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4759         ;;
4760     esac
4761     ;;
4762 esac
4763
4764 fi
4765
4766 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4768 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4769
4770
4771
4772
4773
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4775 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4776 if ${lt_cv_ld_reload_flag+:} false; then :
4777   $as_echo_n "(cached) " >&6
4778 else
4779   lt_cv_ld_reload_flag='-r'
4780 fi
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4782 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4783 reload_flag=$lt_cv_ld_reload_flag
4784 case $reload_flag in
4785 "" | " "*) ;;
4786 *) reload_flag=" $reload_flag" ;;
4787 esac
4788 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4789 case $host_os in
4790   cygwin* | mingw* | pw32* | cegcc*)
4791     if test "$GCC" != yes; then
4792       reload_cmds=false
4793     fi
4794     ;;
4795   darwin*)
4796     if test "$GCC" = yes; then
4797       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4798     else
4799       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4800     fi
4801     ;;
4802 esac
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812 if test -n "$ac_tool_prefix"; then
4813   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4814 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4816 $as_echo_n "checking for $ac_word... " >&6; }
4817 if ${ac_cv_prog_OBJDUMP+:} false; then :
4818   $as_echo_n "(cached) " >&6
4819 else
4820   if test -n "$OBJDUMP"; then
4821   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4822 else
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 for as_dir in $PATH
4825 do
4826   IFS=$as_save_IFS
4827   test -z "$as_dir" && as_dir=.
4828     for ac_exec_ext in '' $ac_executable_extensions; do
4829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4830     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4832     break 2
4833   fi
4834 done
4835   done
4836 IFS=$as_save_IFS
4837
4838 fi
4839 fi
4840 OBJDUMP=$ac_cv_prog_OBJDUMP
4841 if test -n "$OBJDUMP"; then
4842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4843 $as_echo "$OBJDUMP" >&6; }
4844 else
4845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846 $as_echo "no" >&6; }
4847 fi
4848
4849
4850 fi
4851 if test -z "$ac_cv_prog_OBJDUMP"; then
4852   ac_ct_OBJDUMP=$OBJDUMP
4853   # Extract the first word of "objdump", so it can be a program name with args.
4854 set dummy objdump; ac_word=$2
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4856 $as_echo_n "checking for $ac_word... " >&6; }
4857 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4858   $as_echo_n "(cached) " >&6
4859 else
4860   if test -n "$ac_ct_OBJDUMP"; then
4861   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4862 else
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 for as_dir in $PATH
4865 do
4866   IFS=$as_save_IFS
4867   test -z "$as_dir" && as_dir=.
4868     for ac_exec_ext in '' $ac_executable_extensions; do
4869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4870     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4872     break 2
4873   fi
4874 done
4875   done
4876 IFS=$as_save_IFS
4877
4878 fi
4879 fi
4880 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4881 if test -n "$ac_ct_OBJDUMP"; then
4882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4883 $as_echo "$ac_ct_OBJDUMP" >&6; }
4884 else
4885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886 $as_echo "no" >&6; }
4887 fi
4888
4889   if test "x$ac_ct_OBJDUMP" = x; then
4890     OBJDUMP="false"
4891   else
4892     case $cross_compiling:$ac_tool_warned in
4893 yes:)
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4896 ac_tool_warned=yes ;;
4897 esac
4898     OBJDUMP=$ac_ct_OBJDUMP
4899   fi
4900 else
4901   OBJDUMP="$ac_cv_prog_OBJDUMP"
4902 fi
4903
4904 test -z "$OBJDUMP" && OBJDUMP=objdump
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4915 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4916 if ${lt_cv_deplibs_check_method+:} false; then :
4917   $as_echo_n "(cached) " >&6
4918 else
4919   lt_cv_file_magic_cmd='$MAGIC_CMD'
4920 lt_cv_file_magic_test_file=
4921 lt_cv_deplibs_check_method='unknown'
4922 # Need to set the preceding variable on all platforms that support
4923 # interlibrary dependencies.
4924 # 'none' -- dependencies not supported.
4925 # `unknown' -- same as none, but documents that we really don't know.
4926 # 'pass_all' -- all dependencies passed with no checks.
4927 # 'test_compile' -- check by making test program.
4928 # 'file_magic [[regex]]' -- check by looking for files in library path
4929 # which responds to the $file_magic_cmd with a given extended regex.
4930 # If you have `file' or equivalent on your system and you're not sure
4931 # whether `pass_all' will *always* work, you probably want this one.
4932
4933 case $host_os in
4934 aix[4-9]*)
4935   lt_cv_deplibs_check_method=pass_all
4936   ;;
4937
4938 beos*)
4939   lt_cv_deplibs_check_method=pass_all
4940   ;;
4941
4942 bsdi[45]*)
4943   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4944   lt_cv_file_magic_cmd='/usr/bin/file -L'
4945   lt_cv_file_magic_test_file=/shlib/libc.so
4946   ;;
4947
4948 cygwin*)
4949   # func_win32_libid is a shell function defined in ltmain.sh
4950   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4951   lt_cv_file_magic_cmd='func_win32_libid'
4952   ;;
4953
4954 mingw* | pw32*)
4955   # Base MSYS/MinGW do not provide the 'file' command needed by
4956   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4957   # unless we find 'file', for example because we are cross-compiling.
4958   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4959   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4960     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4961     lt_cv_file_magic_cmd='func_win32_libid'
4962   else
4963     # Keep this pattern in sync with the one in func_win32_libid.
4964     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4965     lt_cv_file_magic_cmd='$OBJDUMP -f'
4966   fi
4967   ;;
4968
4969 cegcc*)
4970   # use the weaker test based on 'objdump'. See mingw*.
4971   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4972   lt_cv_file_magic_cmd='$OBJDUMP -f'
4973   ;;
4974
4975 darwin* | rhapsody*)
4976   lt_cv_deplibs_check_method=pass_all
4977   ;;
4978
4979 freebsd* | dragonfly*)
4980   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4981     case $host_cpu in
4982     i*86 )
4983       # Not sure whether the presence of OpenBSD here was a mistake.
4984       # Let's accept both of them until this is cleared up.
4985       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4986       lt_cv_file_magic_cmd=/usr/bin/file
4987       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4988       ;;
4989     esac
4990   else
4991     lt_cv_deplibs_check_method=pass_all
4992   fi
4993   ;;
4994
4995 gnu*)
4996   lt_cv_deplibs_check_method=pass_all
4997   ;;
4998
4999 haiku*)
5000   lt_cv_deplibs_check_method=pass_all
5001   ;;
5002
5003 hpux10.20* | hpux11*)
5004   lt_cv_file_magic_cmd=/usr/bin/file
5005   case $host_cpu in
5006   ia64*)
5007     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5008     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5009     ;;
5010   hppa*64*)
5011     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]'
5012     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5013     ;;
5014   *)
5015     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5016     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5017     ;;
5018   esac
5019   ;;
5020
5021 interix[3-9]*)
5022   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5023   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5024   ;;
5025
5026 irix5* | irix6* | nonstopux*)
5027   case $LD in
5028   *-32|*"-32 ") libmagic=32-bit;;
5029   *-n32|*"-n32 ") libmagic=N32;;
5030   *-64|*"-64 ") libmagic=64-bit;;
5031   *) libmagic=never-match;;
5032   esac
5033   lt_cv_deplibs_check_method=pass_all
5034   ;;
5035
5036 # This must be Linux ELF.
5037 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5038   lt_cv_deplibs_check_method=pass_all
5039   ;;
5040
5041 netbsd*)
5042   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5043     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5044   else
5045     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5046   fi
5047   ;;
5048
5049 newos6*)
5050   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5051   lt_cv_file_magic_cmd=/usr/bin/file
5052   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5053   ;;
5054
5055 *nto* | *qnx*)
5056   lt_cv_deplibs_check_method=pass_all
5057   ;;
5058
5059 openbsd*)
5060   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5061     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5062   else
5063     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5064   fi
5065   ;;
5066
5067 osf3* | osf4* | osf5*)
5068   lt_cv_deplibs_check_method=pass_all
5069   ;;
5070
5071 rdos*)
5072   lt_cv_deplibs_check_method=pass_all
5073   ;;
5074
5075 solaris*)
5076   lt_cv_deplibs_check_method=pass_all
5077   ;;
5078
5079 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5080   lt_cv_deplibs_check_method=pass_all
5081   ;;
5082
5083 sysv4 | sysv4.3*)
5084   case $host_vendor in
5085   motorola)
5086     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]'
5087     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5088     ;;
5089   ncr)
5090     lt_cv_deplibs_check_method=pass_all
5091     ;;
5092   sequent)
5093     lt_cv_file_magic_cmd='/bin/file'
5094     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5095     ;;
5096   sni)
5097     lt_cv_file_magic_cmd='/bin/file'
5098     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5099     lt_cv_file_magic_test_file=/lib/libc.so
5100     ;;
5101   siemens)
5102     lt_cv_deplibs_check_method=pass_all
5103     ;;
5104   pc)
5105     lt_cv_deplibs_check_method=pass_all
5106     ;;
5107   esac
5108   ;;
5109
5110 tpf*)
5111   lt_cv_deplibs_check_method=pass_all
5112   ;;
5113 esac
5114
5115 fi
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5117 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5118
5119 file_magic_glob=
5120 want_nocaseglob=no
5121 if test "$build" = "$host"; then
5122   case $host_os in
5123   mingw* | pw32*)
5124     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5125       want_nocaseglob=yes
5126     else
5127       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5128     fi
5129     ;;
5130   esac
5131 fi
5132
5133 file_magic_cmd=$lt_cv_file_magic_cmd
5134 deplibs_check_method=$lt_cv_deplibs_check_method
5135 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158 if test -n "$ac_tool_prefix"; then
5159   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5160 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5162 $as_echo_n "checking for $ac_word... " >&6; }
5163 if ${ac_cv_prog_DLLTOOL+:} false; then :
5164   $as_echo_n "(cached) " >&6
5165 else
5166   if test -n "$DLLTOOL"; then
5167   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5168 else
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 for as_dir in $PATH
5171 do
5172   IFS=$as_save_IFS
5173   test -z "$as_dir" && as_dir=.
5174     for ac_exec_ext in '' $ac_executable_extensions; do
5175   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5176     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5178     break 2
5179   fi
5180 done
5181   done
5182 IFS=$as_save_IFS
5183
5184 fi
5185 fi
5186 DLLTOOL=$ac_cv_prog_DLLTOOL
5187 if test -n "$DLLTOOL"; then
5188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5189 $as_echo "$DLLTOOL" >&6; }
5190 else
5191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5192 $as_echo "no" >&6; }
5193 fi
5194
5195
5196 fi
5197 if test -z "$ac_cv_prog_DLLTOOL"; then
5198   ac_ct_DLLTOOL=$DLLTOOL
5199   # Extract the first word of "dlltool", so it can be a program name with args.
5200 set dummy dlltool; ac_word=$2
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5202 $as_echo_n "checking for $ac_word... " >&6; }
5203 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5204   $as_echo_n "(cached) " >&6
5205 else
5206   if test -n "$ac_ct_DLLTOOL"; then
5207   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5208 else
5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 for as_dir in $PATH
5211 do
5212   IFS=$as_save_IFS
5213   test -z "$as_dir" && as_dir=.
5214     for ac_exec_ext in '' $ac_executable_extensions; do
5215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5216     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5218     break 2
5219   fi
5220 done
5221   done
5222 IFS=$as_save_IFS
5223
5224 fi
5225 fi
5226 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5227 if test -n "$ac_ct_DLLTOOL"; then
5228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5229 $as_echo "$ac_ct_DLLTOOL" >&6; }
5230 else
5231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5232 $as_echo "no" >&6; }
5233 fi
5234
5235   if test "x$ac_ct_DLLTOOL" = x; then
5236     DLLTOOL="false"
5237   else
5238     case $cross_compiling:$ac_tool_warned in
5239 yes:)
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5242 ac_tool_warned=yes ;;
5243 esac
5244     DLLTOOL=$ac_ct_DLLTOOL
5245   fi
5246 else
5247   DLLTOOL="$ac_cv_prog_DLLTOOL"
5248 fi
5249
5250 test -z "$DLLTOOL" && DLLTOOL=dlltool
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5262 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5263 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5264   $as_echo_n "(cached) " >&6
5265 else
5266   lt_cv_sharedlib_from_linklib_cmd='unknown'
5267
5268 case $host_os in
5269 cygwin* | mingw* | pw32* | cegcc*)
5270   # two different shell functions defined in ltmain.sh
5271   # decide which to use based on capabilities of $DLLTOOL
5272   case `$DLLTOOL --help 2>&1` in
5273   *--identify-strict*)
5274     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5275     ;;
5276   *)
5277     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5278     ;;
5279   esac
5280   ;;
5281 *)
5282   # fallback: assume linklib IS sharedlib
5283   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5284   ;;
5285 esac
5286
5287 fi
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5289 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5290 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5291 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5292
5293
5294
5295
5296
5297
5298
5299
5300 if test -n "$ac_tool_prefix"; then
5301   for ac_prog in ar
5302   do
5303     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5304 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306 $as_echo_n "checking for $ac_word... " >&6; }
5307 if ${ac_cv_prog_AR+:} false; then :
5308   $as_echo_n "(cached) " >&6
5309 else
5310   if test -n "$AR"; then
5311   ac_cv_prog_AR="$AR" # Let the user override the test.
5312 else
5313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314 for as_dir in $PATH
5315 do
5316   IFS=$as_save_IFS
5317   test -z "$as_dir" && as_dir=.
5318     for ac_exec_ext in '' $ac_executable_extensions; do
5319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5320     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5322     break 2
5323   fi
5324 done
5325   done
5326 IFS=$as_save_IFS
5327
5328 fi
5329 fi
5330 AR=$ac_cv_prog_AR
5331 if test -n "$AR"; then
5332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5333 $as_echo "$AR" >&6; }
5334 else
5335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5336 $as_echo "no" >&6; }
5337 fi
5338
5339
5340     test -n "$AR" && break
5341   done
5342 fi
5343 if test -z "$AR"; then
5344   ac_ct_AR=$AR
5345   for ac_prog in ar
5346 do
5347   # Extract the first word of "$ac_prog", so it can be a program name with args.
5348 set dummy $ac_prog; ac_word=$2
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5350 $as_echo_n "checking for $ac_word... " >&6; }
5351 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5352   $as_echo_n "(cached) " >&6
5353 else
5354   if test -n "$ac_ct_AR"; then
5355   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5356 else
5357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358 for as_dir in $PATH
5359 do
5360   IFS=$as_save_IFS
5361   test -z "$as_dir" && as_dir=.
5362     for ac_exec_ext in '' $ac_executable_extensions; do
5363   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5364     ac_cv_prog_ac_ct_AR="$ac_prog"
5365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5366     break 2
5367   fi
5368 done
5369   done
5370 IFS=$as_save_IFS
5371
5372 fi
5373 fi
5374 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5375 if test -n "$ac_ct_AR"; then
5376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5377 $as_echo "$ac_ct_AR" >&6; }
5378 else
5379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5380 $as_echo "no" >&6; }
5381 fi
5382
5383
5384   test -n "$ac_ct_AR" && break
5385 done
5386
5387   if test "x$ac_ct_AR" = x; then
5388     AR="false"
5389   else
5390     case $cross_compiling:$ac_tool_warned in
5391 yes:)
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5394 ac_tool_warned=yes ;;
5395 esac
5396     AR=$ac_ct_AR
5397   fi
5398 fi
5399
5400 : ${AR=ar}
5401 : ${AR_FLAGS=cru}
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5414 $as_echo_n "checking for archiver @FILE support... " >&6; }
5415 if ${lt_cv_ar_at_file+:} false; then :
5416   $as_echo_n "(cached) " >&6
5417 else
5418   lt_cv_ar_at_file=no
5419    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5420 /* end confdefs.h.  */
5421
5422 int
5423 main ()
5424 {
5425
5426   ;
5427   return 0;
5428 }
5429 _ACEOF
5430 if ac_fn_c_try_compile "$LINENO"; then :
5431   echo conftest.$ac_objext > conftest.lst
5432       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5433       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5434   (eval $lt_ar_try) 2>&5
5435   ac_status=$?
5436   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5437   test $ac_status = 0; }
5438       if test "$ac_status" -eq 0; then
5439         # Ensure the archiver fails upon bogus file names.
5440         rm -f conftest.$ac_objext libconftest.a
5441         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5442   (eval $lt_ar_try) 2>&5
5443   ac_status=$?
5444   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5445   test $ac_status = 0; }
5446         if test "$ac_status" -ne 0; then
5447           lt_cv_ar_at_file=@
5448         fi
5449       fi
5450       rm -f conftest.* libconftest.a
5451
5452 fi
5453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5454
5455 fi
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5457 $as_echo "$lt_cv_ar_at_file" >&6; }
5458
5459 if test "x$lt_cv_ar_at_file" = xno; then
5460   archiver_list_spec=
5461 else
5462   archiver_list_spec=$lt_cv_ar_at_file
5463 fi
5464
5465
5466
5467
5468
5469
5470
5471 if test -n "$ac_tool_prefix"; then
5472   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5473 set dummy ${ac_tool_prefix}strip; ac_word=$2
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5475 $as_echo_n "checking for $ac_word... " >&6; }
5476 if ${ac_cv_prog_STRIP+:} false; then :
5477   $as_echo_n "(cached) " >&6
5478 else
5479   if test -n "$STRIP"; then
5480   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5481 else
5482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483 for as_dir in $PATH
5484 do
5485   IFS=$as_save_IFS
5486   test -z "$as_dir" && as_dir=.
5487     for ac_exec_ext in '' $ac_executable_extensions; do
5488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5489     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5491     break 2
5492   fi
5493 done
5494   done
5495 IFS=$as_save_IFS
5496
5497 fi
5498 fi
5499 STRIP=$ac_cv_prog_STRIP
5500 if test -n "$STRIP"; then
5501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5502 $as_echo "$STRIP" >&6; }
5503 else
5504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5505 $as_echo "no" >&6; }
5506 fi
5507
5508
5509 fi
5510 if test -z "$ac_cv_prog_STRIP"; then
5511   ac_ct_STRIP=$STRIP
5512   # Extract the first word of "strip", so it can be a program name with args.
5513 set dummy strip; ac_word=$2
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5515 $as_echo_n "checking for $ac_word... " >&6; }
5516 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5517   $as_echo_n "(cached) " >&6
5518 else
5519   if test -n "$ac_ct_STRIP"; then
5520   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5521 else
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523 for as_dir in $PATH
5524 do
5525   IFS=$as_save_IFS
5526   test -z "$as_dir" && as_dir=.
5527     for ac_exec_ext in '' $ac_executable_extensions; do
5528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5529     ac_cv_prog_ac_ct_STRIP="strip"
5530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5531     break 2
5532   fi
5533 done
5534   done
5535 IFS=$as_save_IFS
5536
5537 fi
5538 fi
5539 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5540 if test -n "$ac_ct_STRIP"; then
5541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5542 $as_echo "$ac_ct_STRIP" >&6; }
5543 else
5544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545 $as_echo "no" >&6; }
5546 fi
5547
5548   if test "x$ac_ct_STRIP" = x; then
5549     STRIP=":"
5550   else
5551     case $cross_compiling:$ac_tool_warned in
5552 yes:)
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5555 ac_tool_warned=yes ;;
5556 esac
5557     STRIP=$ac_ct_STRIP
5558   fi
5559 else
5560   STRIP="$ac_cv_prog_STRIP"
5561 fi
5562
5563 test -z "$STRIP" && STRIP=:
5564
5565
5566
5567
5568
5569
5570 if test -n "$ac_tool_prefix"; then
5571   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5572 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5574 $as_echo_n "checking for $ac_word... " >&6; }
5575 if ${ac_cv_prog_RANLIB+:} false; then :
5576   $as_echo_n "(cached) " >&6
5577 else
5578   if test -n "$RANLIB"; then
5579   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5580 else
5581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582 for as_dir in $PATH
5583 do
5584   IFS=$as_save_IFS
5585   test -z "$as_dir" && as_dir=.
5586     for ac_exec_ext in '' $ac_executable_extensions; do
5587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5588     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5590     break 2
5591   fi
5592 done
5593   done
5594 IFS=$as_save_IFS
5595
5596 fi
5597 fi
5598 RANLIB=$ac_cv_prog_RANLIB
5599 if test -n "$RANLIB"; then
5600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5601 $as_echo "$RANLIB" >&6; }
5602 else
5603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5604 $as_echo "no" >&6; }
5605 fi
5606
5607
5608 fi
5609 if test -z "$ac_cv_prog_RANLIB"; then
5610   ac_ct_RANLIB=$RANLIB
5611   # Extract the first word of "ranlib", so it can be a program name with args.
5612 set dummy ranlib; ac_word=$2
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5614 $as_echo_n "checking for $ac_word... " >&6; }
5615 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5616   $as_echo_n "(cached) " >&6
5617 else
5618   if test -n "$ac_ct_RANLIB"; then
5619   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5620 else
5621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622 for as_dir in $PATH
5623 do
5624   IFS=$as_save_IFS
5625   test -z "$as_dir" && as_dir=.
5626     for ac_exec_ext in '' $ac_executable_extensions; do
5627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5628     ac_cv_prog_ac_ct_RANLIB="ranlib"
5629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5630     break 2
5631   fi
5632 done
5633   done
5634 IFS=$as_save_IFS
5635
5636 fi
5637 fi
5638 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5639 if test -n "$ac_ct_RANLIB"; then
5640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5641 $as_echo "$ac_ct_RANLIB" >&6; }
5642 else
5643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5644 $as_echo "no" >&6; }
5645 fi
5646
5647   if test "x$ac_ct_RANLIB" = x; then
5648     RANLIB=":"
5649   else
5650     case $cross_compiling:$ac_tool_warned in
5651 yes:)
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5654 ac_tool_warned=yes ;;
5655 esac
5656     RANLIB=$ac_ct_RANLIB
5657   fi
5658 else
5659   RANLIB="$ac_cv_prog_RANLIB"
5660 fi
5661
5662 test -z "$RANLIB" && RANLIB=:
5663
5664
5665
5666
5667
5668
5669 # Determine commands to create old-style static archives.
5670 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5671 old_postinstall_cmds='chmod 644 $oldlib'
5672 old_postuninstall_cmds=
5673
5674 if test -n "$RANLIB"; then
5675   case $host_os in
5676   openbsd*)
5677     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5678     ;;
5679   *)
5680     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5681     ;;
5682   esac
5683   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5684 fi
5685
5686 case $host_os in
5687   darwin*)
5688     lock_old_archive_extraction=yes ;;
5689   *)
5690     lock_old_archive_extraction=no ;;
5691 esac
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731 # If no C compiler was specified, use CC.
5732 LTCC=${LTCC-"$CC"}
5733
5734 # If no C compiler flags were specified, use CFLAGS.
5735 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5736
5737 # Allow CC to be a program name with arguments.
5738 compiler=$CC
5739
5740
5741 # Check for command to grab the raw symbol name followed by C symbol from nm.
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5743 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5744 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5745   $as_echo_n "(cached) " >&6
5746 else
5747
5748 # These are sane defaults that work on at least a few old systems.
5749 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5750
5751 # Character class describing NM global symbol codes.
5752 symcode='[BCDEGRST]'
5753
5754 # Regexp to match symbols that can be accessed directly from C.
5755 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5756
5757 # Define system-specific variables.
5758 case $host_os in
5759 aix*)
5760   symcode='[BCDT]'
5761   ;;
5762 cygwin* | mingw* | pw32* | cegcc*)
5763   symcode='[ABCDGISTW]'
5764   ;;
5765 hpux*)
5766   if test "$host_cpu" = ia64; then
5767     symcode='[ABCDEGRST]'
5768   fi
5769   ;;
5770 irix* | nonstopux*)
5771   symcode='[BCDEGRST]'
5772   ;;
5773 osf*)
5774   symcode='[BCDEGQRST]'
5775   ;;
5776 solaris*)
5777   symcode='[BDRT]'
5778   ;;
5779 sco3.2v5*)
5780   symcode='[DT]'
5781   ;;
5782 sysv4.2uw2*)
5783   symcode='[DT]'
5784   ;;
5785 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5786   symcode='[ABDT]'
5787   ;;
5788 sysv4)
5789   symcode='[DFNSTU]'
5790   ;;
5791 esac
5792
5793 # If we're using GNU nm, then use its standard symbol codes.
5794 case `$NM -V 2>&1` in
5795 *GNU* | *'with BFD'*)
5796   symcode='[ABCDGIRSTW]' ;;
5797 esac
5798
5799 # Transform an extracted symbol line into a proper C declaration.
5800 # Some systems (esp. on ia64) link data and code symbols differently,
5801 # so use this general approach.
5802 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5803
5804 # Transform an extracted symbol line into symbol name and symbol address
5805 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5806 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'"
5807
5808 # Handle CRLF in mingw tool chain
5809 opt_cr=
5810 case $build_os in
5811 mingw*)
5812   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5813   ;;
5814 esac
5815
5816 # Try without a prefix underscore, then with it.
5817 for ac_symprfx in "" "_"; do
5818
5819   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5820   symxfrm="\\1 $ac_symprfx\\2 \\2"
5821
5822   # Write the raw and C identifiers.
5823   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5824     # Fake it for dumpbin and say T for any non-static function
5825     # and D for any global variable.
5826     # Also find C++ and __fastcall symbols from MSVC++,
5827     # which start with @ or ?.
5828     lt_cv_sys_global_symbol_pipe="$AWK '"\
5829 "     {last_section=section; section=\$ 3};"\
5830 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5831 "     \$ 0!~/External *\|/{next};"\
5832 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5833 "     {if(hide[section]) next};"\
5834 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5835 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5836 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5837 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5838 "     ' prfx=^$ac_symprfx"
5839   else
5840     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5841   fi
5842   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5843
5844   # Check to see that the pipe works correctly.
5845   pipe_works=no
5846
5847   rm -f conftest*
5848   cat > conftest.$ac_ext <<_LT_EOF
5849 #ifdef __cplusplus
5850 extern "C" {
5851 #endif
5852 char nm_test_var;
5853 void nm_test_func(void);
5854 void nm_test_func(void){}
5855 #ifdef __cplusplus
5856 }
5857 #endif
5858 int main(){nm_test_var='a';nm_test_func();return(0);}
5859 _LT_EOF
5860
5861   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5862   (eval $ac_compile) 2>&5
5863   ac_status=$?
5864   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5865   test $ac_status = 0; }; then
5866     # Now try to grab the symbols.
5867     nlist=conftest.nm
5868     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5869   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5870   ac_status=$?
5871   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5872   test $ac_status = 0; } && test -s "$nlist"; then
5873       # Try sorting and uniquifying the output.
5874       if sort "$nlist" | uniq > "$nlist"T; then
5875         mv -f "$nlist"T "$nlist"
5876       else
5877         rm -f "$nlist"T
5878       fi
5879
5880       # Make sure that we snagged all the symbols we need.
5881       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5882         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5883           cat <<_LT_EOF > conftest.$ac_ext
5884 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5885 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5886 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5887    relocations are performed -- see ld's documentation on pseudo-relocs.  */
5888 # define LT_DLSYM_CONST
5889 #elif defined(__osf__)
5890 /* This system does not cope well with relocations in const data.  */
5891 # define LT_DLSYM_CONST
5892 #else
5893 # define LT_DLSYM_CONST const
5894 #endif
5895
5896 #ifdef __cplusplus
5897 extern "C" {
5898 #endif
5899
5900 _LT_EOF
5901           # Now generate the symbol file.
5902           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5903
5904           cat <<_LT_EOF >> conftest.$ac_ext
5905
5906 /* The mapping between symbol names and symbols.  */
5907 LT_DLSYM_CONST struct {
5908   const char *name;
5909   void       *address;
5910 }
5911 lt__PROGRAM__LTX_preloaded_symbols[] =
5912 {
5913   { "@PROGRAM@", (void *) 0 },
5914 _LT_EOF
5915           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5916           cat <<\_LT_EOF >> conftest.$ac_ext
5917   {0, (void *) 0}
5918 };
5919
5920 /* This works around a problem in FreeBSD linker */
5921 #ifdef FREEBSD_WORKAROUND
5922 static const void *lt_preloaded_setup() {
5923   return lt__PROGRAM__LTX_preloaded_symbols;
5924 }
5925 #endif
5926
5927 #ifdef __cplusplus
5928 }
5929 #endif
5930 _LT_EOF
5931           # Now try linking the two files.
5932           mv conftest.$ac_objext conftstm.$ac_objext
5933           lt_globsym_save_LIBS=$LIBS
5934           lt_globsym_save_CFLAGS=$CFLAGS
5935           LIBS="conftstm.$ac_objext"
5936           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5937           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5938   (eval $ac_link) 2>&5
5939   ac_status=$?
5940   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5941   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5942             pipe_works=yes
5943           fi
5944           LIBS=$lt_globsym_save_LIBS
5945           CFLAGS=$lt_globsym_save_CFLAGS
5946         else
5947           echo "cannot find nm_test_func in $nlist" >&5
5948         fi
5949       else
5950         echo "cannot find nm_test_var in $nlist" >&5
5951       fi
5952     else
5953       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5954     fi
5955   else
5956     echo "$progname: failed program was:" >&5
5957     cat conftest.$ac_ext >&5
5958   fi
5959   rm -rf conftest* conftst*
5960
5961   # Do not use the global_symbol_pipe unless it works.
5962   if test "$pipe_works" = yes; then
5963     break
5964   else
5965     lt_cv_sys_global_symbol_pipe=
5966   fi
5967 done
5968
5969 fi
5970
5971 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5972   lt_cv_sys_global_symbol_to_cdecl=
5973 fi
5974 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5976 $as_echo "failed" >&6; }
5977 else
5978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5979 $as_echo "ok" >&6; }
5980 fi
5981
5982 # Response file support.
5983 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5984   nm_file_list_spec='@'
5985 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5986   nm_file_list_spec='@'
5987 fi
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6016 $as_echo_n "checking for sysroot... " >&6; }
6017
6018 # Check whether --with-sysroot was given.
6019 if test "${with_sysroot+set}" = set; then :
6020   withval=$with_sysroot;
6021 else
6022   with_sysroot=no
6023 fi
6024
6025
6026 lt_sysroot=
6027 case ${with_sysroot} in #(
6028  yes)
6029    if test "$GCC" = yes; then
6030      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6031    fi
6032    ;; #(
6033  /*)
6034    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6035    ;; #(
6036  no|'')
6037    ;; #(
6038  *)
6039    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6040 $as_echo "${with_sysroot}" >&6; }
6041    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6042    ;;
6043 esac
6044
6045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6046 $as_echo "${lt_sysroot:-no}" >&6; }
6047
6048
6049
6050
6051
6052 # Check whether --enable-libtool-lock was given.
6053 if test "${enable_libtool_lock+set}" = set; then :
6054   enableval=$enable_libtool_lock;
6055 fi
6056
6057 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6058
6059 # Some flags need to be propagated to the compiler or linker for good
6060 # libtool support.
6061 case $host in
6062 ia64-*-hpux*)
6063   # Find out which ABI we are using.
6064   echo 'int i;' > conftest.$ac_ext
6065   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6066   (eval $ac_compile) 2>&5
6067   ac_status=$?
6068   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6069   test $ac_status = 0; }; then
6070     case `/usr/bin/file conftest.$ac_objext` in
6071       *ELF-32*)
6072         HPUX_IA64_MODE="32"
6073         ;;
6074       *ELF-64*)
6075         HPUX_IA64_MODE="64"
6076         ;;
6077     esac
6078   fi
6079   rm -rf conftest*
6080   ;;
6081 *-*-irix6*)
6082   # Find out which ABI we are using.
6083   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6084   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6085   (eval $ac_compile) 2>&5
6086   ac_status=$?
6087   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6088   test $ac_status = 0; }; then
6089     if test "$lt_cv_prog_gnu_ld" = yes; then
6090       case `/usr/bin/file conftest.$ac_objext` in
6091         *32-bit*)
6092           LD="${LD-ld} -melf32bsmip"
6093           ;;
6094         *N32*)
6095           LD="${LD-ld} -melf32bmipn32"
6096           ;;
6097         *64-bit*)
6098           LD="${LD-ld} -melf64bmip"
6099         ;;
6100       esac
6101     else
6102       case `/usr/bin/file conftest.$ac_objext` in
6103         *32-bit*)
6104           LD="${LD-ld} -32"
6105           ;;
6106         *N32*)
6107           LD="${LD-ld} -n32"
6108           ;;
6109         *64-bit*)
6110           LD="${LD-ld} -64"
6111           ;;
6112       esac
6113     fi
6114   fi
6115   rm -rf conftest*
6116   ;;
6117
6118 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6119 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6120   # Find out which ABI we are using.
6121   echo 'int i;' > conftest.$ac_ext
6122   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6123   (eval $ac_compile) 2>&5
6124   ac_status=$?
6125   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6126   test $ac_status = 0; }; then
6127     case `/usr/bin/file conftest.o` in
6128       *32-bit*)
6129         case $host in
6130           x86_64-*kfreebsd*-gnu)
6131             LD="${LD-ld} -m elf_i386_fbsd"
6132             ;;
6133           x86_64-*linux*)
6134             LD="${LD-ld} -m elf_i386"
6135             ;;
6136           ppc64-*linux*|powerpc64-*linux*)
6137             LD="${LD-ld} -m elf32ppclinux"
6138             ;;
6139           s390x-*linux*)
6140             LD="${LD-ld} -m elf_s390"
6141             ;;
6142           sparc64-*linux*)
6143             LD="${LD-ld} -m elf32_sparc"
6144             ;;
6145         esac
6146         ;;
6147       *64-bit*)
6148         case $host in
6149           x86_64-*kfreebsd*-gnu)
6150             LD="${LD-ld} -m elf_x86_64_fbsd"
6151             ;;
6152           x86_64-*linux*)
6153             LD="${LD-ld} -m elf_x86_64"
6154             ;;
6155           ppc*-*linux*|powerpc*-*linux*)
6156             LD="${LD-ld} -m elf64ppc"
6157             ;;
6158           s390*-*linux*|s390*-*tpf*)
6159             LD="${LD-ld} -m elf64_s390"
6160             ;;
6161           sparc*-*linux*)
6162             LD="${LD-ld} -m elf64_sparc"
6163             ;;
6164         esac
6165         ;;
6166     esac
6167   fi
6168   rm -rf conftest*
6169   ;;
6170
6171 *-*-sco3.2v5*)
6172   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6173   SAVE_CFLAGS="$CFLAGS"
6174   CFLAGS="$CFLAGS -belf"
6175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6176 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6177 if ${lt_cv_cc_needs_belf+:} false; then :
6178   $as_echo_n "(cached) " >&6
6179 else
6180   ac_ext=c
6181 ac_cpp='$CPP $CPPFLAGS'
6182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6185
6186      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6187 /* end confdefs.h.  */
6188
6189 int
6190 main ()
6191 {
6192
6193   ;
6194   return 0;
6195 }
6196 _ACEOF
6197 if ac_fn_c_try_link "$LINENO"; then :
6198   lt_cv_cc_needs_belf=yes
6199 else
6200   lt_cv_cc_needs_belf=no
6201 fi
6202 rm -f core conftest.err conftest.$ac_objext \
6203     conftest$ac_exeext conftest.$ac_ext
6204      ac_ext=c
6205 ac_cpp='$CPP $CPPFLAGS'
6206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6209
6210 fi
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6212 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6213   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6214     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6215     CFLAGS="$SAVE_CFLAGS"
6216   fi
6217   ;;
6218 sparc*-*solaris*)
6219   # Find out which ABI we are using.
6220   echo 'int i;' > conftest.$ac_ext
6221   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6222   (eval $ac_compile) 2>&5
6223   ac_status=$?
6224   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6225   test $ac_status = 0; }; then
6226     case `/usr/bin/file conftest.o` in
6227     *64-bit*)
6228       case $lt_cv_prog_gnu_ld in
6229       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6230       *)
6231         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6232           LD="${LD-ld} -64"
6233         fi
6234         ;;
6235       esac
6236       ;;
6237     esac
6238   fi
6239   rm -rf conftest*
6240   ;;
6241 esac
6242
6243 need_locks="$enable_libtool_lock"
6244
6245 if test -n "$ac_tool_prefix"; then
6246   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6247 set dummy ${ac_tool_prefix}mt; ac_word=$2
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6249 $as_echo_n "checking for $ac_word... " >&6; }
6250 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6251   $as_echo_n "(cached) " >&6
6252 else
6253   if test -n "$MANIFEST_TOOL"; then
6254   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6255 else
6256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257 for as_dir in $PATH
6258 do
6259   IFS=$as_save_IFS
6260   test -z "$as_dir" && as_dir=.
6261     for ac_exec_ext in '' $ac_executable_extensions; do
6262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6263     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6265     break 2
6266   fi
6267 done
6268   done
6269 IFS=$as_save_IFS
6270
6271 fi
6272 fi
6273 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6274 if test -n "$MANIFEST_TOOL"; then
6275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6276 $as_echo "$MANIFEST_TOOL" >&6; }
6277 else
6278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6279 $as_echo "no" >&6; }
6280 fi
6281
6282
6283 fi
6284 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6285   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6286   # Extract the first word of "mt", so it can be a program name with args.
6287 set dummy mt; ac_word=$2
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6289 $as_echo_n "checking for $ac_word... " >&6; }
6290 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6291   $as_echo_n "(cached) " >&6
6292 else
6293   if test -n "$ac_ct_MANIFEST_TOOL"; then
6294   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6295 else
6296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297 for as_dir in $PATH
6298 do
6299   IFS=$as_save_IFS
6300   test -z "$as_dir" && as_dir=.
6301     for ac_exec_ext in '' $ac_executable_extensions; do
6302   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6303     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6304     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6305     break 2
6306   fi
6307 done
6308   done
6309 IFS=$as_save_IFS
6310
6311 fi
6312 fi
6313 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6314 if test -n "$ac_ct_MANIFEST_TOOL"; then
6315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6316 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6317 else
6318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6319 $as_echo "no" >&6; }
6320 fi
6321
6322   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6323     MANIFEST_TOOL=":"
6324   else
6325     case $cross_compiling:$ac_tool_warned in
6326 yes:)
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6328 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6329 ac_tool_warned=yes ;;
6330 esac
6331     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6332   fi
6333 else
6334   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6335 fi
6336
6337 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6339 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6340 if ${lt_cv_path_mainfest_tool+:} false; then :
6341   $as_echo_n "(cached) " >&6
6342 else
6343   lt_cv_path_mainfest_tool=no
6344   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6345   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6346   cat conftest.err >&5
6347   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6348     lt_cv_path_mainfest_tool=yes
6349   fi
6350   rm -f conftest*
6351 fi
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6353 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6354 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6355   MANIFEST_TOOL=:
6356 fi
6357
6358
6359
6360
6361
6362
6363   case $host_os in
6364     rhapsody* | darwin*)
6365     if test -n "$ac_tool_prefix"; then
6366   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6367 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6369 $as_echo_n "checking for $ac_word... " >&6; }
6370 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6371   $as_echo_n "(cached) " >&6
6372 else
6373   if test -n "$DSYMUTIL"; then
6374   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6375 else
6376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377 for as_dir in $PATH
6378 do
6379   IFS=$as_save_IFS
6380   test -z "$as_dir" && as_dir=.
6381     for ac_exec_ext in '' $ac_executable_extensions; do
6382   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6383     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6385     break 2
6386   fi
6387 done
6388   done
6389 IFS=$as_save_IFS
6390
6391 fi
6392 fi
6393 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6394 if test -n "$DSYMUTIL"; then
6395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6396 $as_echo "$DSYMUTIL" >&6; }
6397 else
6398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6399 $as_echo "no" >&6; }
6400 fi
6401
6402
6403 fi
6404 if test -z "$ac_cv_prog_DSYMUTIL"; then
6405   ac_ct_DSYMUTIL=$DSYMUTIL
6406   # Extract the first word of "dsymutil", so it can be a program name with args.
6407 set dummy dsymutil; ac_word=$2
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409 $as_echo_n "checking for $ac_word... " >&6; }
6410 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6411   $as_echo_n "(cached) " >&6
6412 else
6413   if test -n "$ac_ct_DSYMUTIL"; then
6414   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6415 else
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 for as_dir in $PATH
6418 do
6419   IFS=$as_save_IFS
6420   test -z "$as_dir" && as_dir=.
6421     for ac_exec_ext in '' $ac_executable_extensions; do
6422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6423     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6425     break 2
6426   fi
6427 done
6428   done
6429 IFS=$as_save_IFS
6430
6431 fi
6432 fi
6433 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6434 if test -n "$ac_ct_DSYMUTIL"; then
6435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6436 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6437 else
6438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 $as_echo "no" >&6; }
6440 fi
6441
6442   if test "x$ac_ct_DSYMUTIL" = x; then
6443     DSYMUTIL=":"
6444   else
6445     case $cross_compiling:$ac_tool_warned in
6446 yes:)
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6449 ac_tool_warned=yes ;;
6450 esac
6451     DSYMUTIL=$ac_ct_DSYMUTIL
6452   fi
6453 else
6454   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6455 fi
6456
6457     if test -n "$ac_tool_prefix"; then
6458   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6459 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6461 $as_echo_n "checking for $ac_word... " >&6; }
6462 if ${ac_cv_prog_NMEDIT+:} false; then :
6463   $as_echo_n "(cached) " >&6
6464 else
6465   if test -n "$NMEDIT"; then
6466   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6467 else
6468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469 for as_dir in $PATH
6470 do
6471   IFS=$as_save_IFS
6472   test -z "$as_dir" && as_dir=.
6473     for ac_exec_ext in '' $ac_executable_extensions; do
6474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6475     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6477     break 2
6478   fi
6479 done
6480   done
6481 IFS=$as_save_IFS
6482
6483 fi
6484 fi
6485 NMEDIT=$ac_cv_prog_NMEDIT
6486 if test -n "$NMEDIT"; then
6487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6488 $as_echo "$NMEDIT" >&6; }
6489 else
6490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6491 $as_echo "no" >&6; }
6492 fi
6493
6494
6495 fi
6496 if test -z "$ac_cv_prog_NMEDIT"; then
6497   ac_ct_NMEDIT=$NMEDIT
6498   # Extract the first word of "nmedit", so it can be a program name with args.
6499 set dummy nmedit; ac_word=$2
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6501 $as_echo_n "checking for $ac_word... " >&6; }
6502 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6503   $as_echo_n "(cached) " >&6
6504 else
6505   if test -n "$ac_ct_NMEDIT"; then
6506   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6507 else
6508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509 for as_dir in $PATH
6510 do
6511   IFS=$as_save_IFS
6512   test -z "$as_dir" && as_dir=.
6513     for ac_exec_ext in '' $ac_executable_extensions; do
6514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6515     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6517     break 2
6518   fi
6519 done
6520   done
6521 IFS=$as_save_IFS
6522
6523 fi
6524 fi
6525 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6526 if test -n "$ac_ct_NMEDIT"; then
6527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6528 $as_echo "$ac_ct_NMEDIT" >&6; }
6529 else
6530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6531 $as_echo "no" >&6; }
6532 fi
6533
6534   if test "x$ac_ct_NMEDIT" = x; then
6535     NMEDIT=":"
6536   else
6537     case $cross_compiling:$ac_tool_warned in
6538 yes:)
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6541 ac_tool_warned=yes ;;
6542 esac
6543     NMEDIT=$ac_ct_NMEDIT
6544   fi
6545 else
6546   NMEDIT="$ac_cv_prog_NMEDIT"
6547 fi
6548
6549     if test -n "$ac_tool_prefix"; then
6550   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6551 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6553 $as_echo_n "checking for $ac_word... " >&6; }
6554 if ${ac_cv_prog_LIPO+:} false; then :
6555   $as_echo_n "(cached) " >&6
6556 else
6557   if test -n "$LIPO"; then
6558   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6559 else
6560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561 for as_dir in $PATH
6562 do
6563   IFS=$as_save_IFS
6564   test -z "$as_dir" && as_dir=.
6565     for ac_exec_ext in '' $ac_executable_extensions; do
6566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6567     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6569     break 2
6570   fi
6571 done
6572   done
6573 IFS=$as_save_IFS
6574
6575 fi
6576 fi
6577 LIPO=$ac_cv_prog_LIPO
6578 if test -n "$LIPO"; then
6579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6580 $as_echo "$LIPO" >&6; }
6581 else
6582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6583 $as_echo "no" >&6; }
6584 fi
6585
6586
6587 fi
6588 if test -z "$ac_cv_prog_LIPO"; then
6589   ac_ct_LIPO=$LIPO
6590   # Extract the first word of "lipo", so it can be a program name with args.
6591 set dummy lipo; ac_word=$2
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6593 $as_echo_n "checking for $ac_word... " >&6; }
6594 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6595   $as_echo_n "(cached) " >&6
6596 else
6597   if test -n "$ac_ct_LIPO"; then
6598   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6599 else
6600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601 for as_dir in $PATH
6602 do
6603   IFS=$as_save_IFS
6604   test -z "$as_dir" && as_dir=.
6605     for ac_exec_ext in '' $ac_executable_extensions; do
6606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6607     ac_cv_prog_ac_ct_LIPO="lipo"
6608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6609     break 2
6610   fi
6611 done
6612   done
6613 IFS=$as_save_IFS
6614
6615 fi
6616 fi
6617 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6618 if test -n "$ac_ct_LIPO"; then
6619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6620 $as_echo "$ac_ct_LIPO" >&6; }
6621 else
6622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623 $as_echo "no" >&6; }
6624 fi
6625
6626   if test "x$ac_ct_LIPO" = x; then
6627     LIPO=":"
6628   else
6629     case $cross_compiling:$ac_tool_warned in
6630 yes:)
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6633 ac_tool_warned=yes ;;
6634 esac
6635     LIPO=$ac_ct_LIPO
6636   fi
6637 else
6638   LIPO="$ac_cv_prog_LIPO"
6639 fi
6640
6641     if test -n "$ac_tool_prefix"; then
6642   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6643 set dummy ${ac_tool_prefix}otool; ac_word=$2
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6645 $as_echo_n "checking for $ac_word... " >&6; }
6646 if ${ac_cv_prog_OTOOL+:} false; then :
6647   $as_echo_n "(cached) " >&6
6648 else
6649   if test -n "$OTOOL"; then
6650   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6651 else
6652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653 for as_dir in $PATH
6654 do
6655   IFS=$as_save_IFS
6656   test -z "$as_dir" && as_dir=.
6657     for ac_exec_ext in '' $ac_executable_extensions; do
6658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6659     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6661     break 2
6662   fi
6663 done
6664   done
6665 IFS=$as_save_IFS
6666
6667 fi
6668 fi
6669 OTOOL=$ac_cv_prog_OTOOL
6670 if test -n "$OTOOL"; then
6671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6672 $as_echo "$OTOOL" >&6; }
6673 else
6674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6675 $as_echo "no" >&6; }
6676 fi
6677
6678
6679 fi
6680 if test -z "$ac_cv_prog_OTOOL"; then
6681   ac_ct_OTOOL=$OTOOL
6682   # Extract the first word of "otool", so it can be a program name with args.
6683 set dummy otool; ac_word=$2
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6685 $as_echo_n "checking for $ac_word... " >&6; }
6686 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6687   $as_echo_n "(cached) " >&6
6688 else
6689   if test -n "$ac_ct_OTOOL"; then
6690   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6691 else
6692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693 for as_dir in $PATH
6694 do
6695   IFS=$as_save_IFS
6696   test -z "$as_dir" && as_dir=.
6697     for ac_exec_ext in '' $ac_executable_extensions; do
6698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6699     ac_cv_prog_ac_ct_OTOOL="otool"
6700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6701     break 2
6702   fi
6703 done
6704   done
6705 IFS=$as_save_IFS
6706
6707 fi
6708 fi
6709 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6710 if test -n "$ac_ct_OTOOL"; then
6711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6712 $as_echo "$ac_ct_OTOOL" >&6; }
6713 else
6714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6715 $as_echo "no" >&6; }
6716 fi
6717
6718   if test "x$ac_ct_OTOOL" = x; then
6719     OTOOL=":"
6720   else
6721     case $cross_compiling:$ac_tool_warned in
6722 yes:)
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6725 ac_tool_warned=yes ;;
6726 esac
6727     OTOOL=$ac_ct_OTOOL
6728   fi
6729 else
6730   OTOOL="$ac_cv_prog_OTOOL"
6731 fi
6732
6733     if test -n "$ac_tool_prefix"; then
6734   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6735 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6737 $as_echo_n "checking for $ac_word... " >&6; }
6738 if ${ac_cv_prog_OTOOL64+:} false; then :
6739   $as_echo_n "(cached) " >&6
6740 else
6741   if test -n "$OTOOL64"; then
6742   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6743 else
6744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745 for as_dir in $PATH
6746 do
6747   IFS=$as_save_IFS
6748   test -z "$as_dir" && as_dir=.
6749     for ac_exec_ext in '' $ac_executable_extensions; do
6750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6751     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6753     break 2
6754   fi
6755 done
6756   done
6757 IFS=$as_save_IFS
6758
6759 fi
6760 fi
6761 OTOOL64=$ac_cv_prog_OTOOL64
6762 if test -n "$OTOOL64"; then
6763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6764 $as_echo "$OTOOL64" >&6; }
6765 else
6766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6767 $as_echo "no" >&6; }
6768 fi
6769
6770
6771 fi
6772 if test -z "$ac_cv_prog_OTOOL64"; then
6773   ac_ct_OTOOL64=$OTOOL64
6774   # Extract the first word of "otool64", so it can be a program name with args.
6775 set dummy otool64; ac_word=$2
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777 $as_echo_n "checking for $ac_word... " >&6; }
6778 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6779   $as_echo_n "(cached) " >&6
6780 else
6781   if test -n "$ac_ct_OTOOL64"; then
6782   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6783 else
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785 for as_dir in $PATH
6786 do
6787   IFS=$as_save_IFS
6788   test -z "$as_dir" && as_dir=.
6789     for ac_exec_ext in '' $ac_executable_extensions; do
6790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6791     ac_cv_prog_ac_ct_OTOOL64="otool64"
6792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6793     break 2
6794   fi
6795 done
6796   done
6797 IFS=$as_save_IFS
6798
6799 fi
6800 fi
6801 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6802 if test -n "$ac_ct_OTOOL64"; then
6803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6804 $as_echo "$ac_ct_OTOOL64" >&6; }
6805 else
6806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807 $as_echo "no" >&6; }
6808 fi
6809
6810   if test "x$ac_ct_OTOOL64" = x; then
6811     OTOOL64=":"
6812   else
6813     case $cross_compiling:$ac_tool_warned in
6814 yes:)
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6817 ac_tool_warned=yes ;;
6818 esac
6819     OTOOL64=$ac_ct_OTOOL64
6820   fi
6821 else
6822   OTOOL64="$ac_cv_prog_OTOOL64"
6823 fi
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6852 $as_echo_n "checking for -single_module linker flag... " >&6; }
6853 if ${lt_cv_apple_cc_single_mod+:} false; then :
6854   $as_echo_n "(cached) " >&6
6855 else
6856   lt_cv_apple_cc_single_mod=no
6857       if test -z "${LT_MULTI_MODULE}"; then
6858         # By default we will add the -single_module flag. You can override
6859         # by either setting the environment variable LT_MULTI_MODULE
6860         # non-empty at configure time, or by adding -multi_module to the
6861         # link flags.
6862         rm -rf libconftest.dylib*
6863         echo "int foo(void){return 1;}" > conftest.c
6864         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6865 -dynamiclib -Wl,-single_module conftest.c" >&5
6866         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6867           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6868         _lt_result=$?
6869         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6870           lt_cv_apple_cc_single_mod=yes
6871         else
6872           cat conftest.err >&5
6873         fi
6874         rm -rf libconftest.dylib*
6875         rm -f conftest.*
6876       fi
6877 fi
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6879 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6880     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6881 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6882 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6883   $as_echo_n "(cached) " >&6
6884 else
6885   lt_cv_ld_exported_symbols_list=no
6886       save_LDFLAGS=$LDFLAGS
6887       echo "_main" > conftest.sym
6888       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6889       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6890 /* end confdefs.h.  */
6891
6892 int
6893 main ()
6894 {
6895
6896   ;
6897   return 0;
6898 }
6899 _ACEOF
6900 if ac_fn_c_try_link "$LINENO"; then :
6901   lt_cv_ld_exported_symbols_list=yes
6902 else
6903   lt_cv_ld_exported_symbols_list=no
6904 fi
6905 rm -f core conftest.err conftest.$ac_objext \
6906     conftest$ac_exeext conftest.$ac_ext
6907         LDFLAGS="$save_LDFLAGS"
6908
6909 fi
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6911 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6912     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6913 $as_echo_n "checking for -force_load linker flag... " >&6; }
6914 if ${lt_cv_ld_force_load+:} false; then :
6915   $as_echo_n "(cached) " >&6
6916 else
6917   lt_cv_ld_force_load=no
6918       cat > conftest.c << _LT_EOF
6919 int forced_loaded() { return 2;}
6920 _LT_EOF
6921       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6922       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6923       echo "$AR cru libconftest.a conftest.o" >&5
6924       $AR cru libconftest.a conftest.o 2>&5
6925       echo "$RANLIB libconftest.a" >&5
6926       $RANLIB libconftest.a 2>&5
6927       cat > conftest.c << _LT_EOF
6928 int main() { return 0;}
6929 _LT_EOF
6930       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6931       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6932       _lt_result=$?
6933       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6934         lt_cv_ld_force_load=yes
6935       else
6936         cat conftest.err >&5
6937       fi
6938         rm -f conftest.err libconftest.a conftest conftest.c
6939         rm -rf conftest.dSYM
6940
6941 fi
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6943 $as_echo "$lt_cv_ld_force_load" >&6; }
6944     case $host_os in
6945     rhapsody* | darwin1.[012])
6946       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6947     darwin1.*)
6948       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6949     darwin*) # darwin 5.x on
6950       # if running on 10.5 or later, the deployment target defaults
6951       # to the OS version, if on x86, and 10.4, the deployment
6952       # target defaults to 10.4. Don't you love it?
6953       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6954         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6955           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6956         10.[012]*)
6957           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6958         10.*)
6959           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6960       esac
6961     ;;
6962   esac
6963     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6964       _lt_dar_single_mod='$single_module'
6965     fi
6966     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6967       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6968     else
6969       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6970     fi
6971     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6972       _lt_dsymutil='~$DSYMUTIL $lib || :'
6973     else
6974       _lt_dsymutil=
6975     fi
6976     ;;
6977   esac
6978
6979 ac_ext=c
6980 ac_cpp='$CPP $CPPFLAGS'
6981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6985 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6986 # On Suns, sometimes $CPP names a directory.
6987 if test -n "$CPP" && test -d "$CPP"; then
6988   CPP=
6989 fi
6990 if test -z "$CPP"; then
6991   if ${ac_cv_prog_CPP+:} false; then :
6992   $as_echo_n "(cached) " >&6
6993 else
6994       # Double quotes because CPP needs to be expanded
6995     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6996     do
6997       ac_preproc_ok=false
6998 for ac_c_preproc_warn_flag in '' yes
6999 do
7000   # Use a header file that comes with gcc, so configuring glibc
7001   # with a fresh cross-compiler works.
7002   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7003   # <limits.h> exists even on freestanding compilers.
7004   # On the NeXT, cc -E runs the code through the compiler's parser,
7005   # not just through cpp. "Syntax error" is here to catch this case.
7006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007 /* end confdefs.h.  */
7008 #ifdef __STDC__
7009 # include <limits.h>
7010 #else
7011 # include <assert.h>
7012 #endif
7013                      Syntax error
7014 _ACEOF
7015 if ac_fn_c_try_cpp "$LINENO"; then :
7016
7017 else
7018   # Broken: fails on valid input.
7019 continue
7020 fi
7021 rm -f conftest.err conftest.i conftest.$ac_ext
7022
7023   # OK, works on sane cases.  Now check whether nonexistent headers
7024   # can be detected and how.
7025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7026 /* end confdefs.h.  */
7027 #include <ac_nonexistent.h>
7028 _ACEOF
7029 if ac_fn_c_try_cpp "$LINENO"; then :
7030   # Broken: success on invalid input.
7031 continue
7032 else
7033   # Passes both tests.
7034 ac_preproc_ok=:
7035 break
7036 fi
7037 rm -f conftest.err conftest.i conftest.$ac_ext
7038
7039 done
7040 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7041 rm -f conftest.i conftest.err conftest.$ac_ext
7042 if $ac_preproc_ok; then :
7043   break
7044 fi
7045
7046     done
7047     ac_cv_prog_CPP=$CPP
7048
7049 fi
7050   CPP=$ac_cv_prog_CPP
7051 else
7052   ac_cv_prog_CPP=$CPP
7053 fi
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7055 $as_echo "$CPP" >&6; }
7056 ac_preproc_ok=false
7057 for ac_c_preproc_warn_flag in '' yes
7058 do
7059   # Use a header file that comes with gcc, so configuring glibc
7060   # with a fresh cross-compiler works.
7061   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7062   # <limits.h> exists even on freestanding compilers.
7063   # On the NeXT, cc -E runs the code through the compiler's parser,
7064   # not just through cpp. "Syntax error" is here to catch this case.
7065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7066 /* end confdefs.h.  */
7067 #ifdef __STDC__
7068 # include <limits.h>
7069 #else
7070 # include <assert.h>
7071 #endif
7072                      Syntax error
7073 _ACEOF
7074 if ac_fn_c_try_cpp "$LINENO"; then :
7075
7076 else
7077   # Broken: fails on valid input.
7078 continue
7079 fi
7080 rm -f conftest.err conftest.i conftest.$ac_ext
7081
7082   # OK, works on sane cases.  Now check whether nonexistent headers
7083   # can be detected and how.
7084   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7085 /* end confdefs.h.  */
7086 #include <ac_nonexistent.h>
7087 _ACEOF
7088 if ac_fn_c_try_cpp "$LINENO"; then :
7089   # Broken: success on invalid input.
7090 continue
7091 else
7092   # Passes both tests.
7093 ac_preproc_ok=:
7094 break
7095 fi
7096 rm -f conftest.err conftest.i conftest.$ac_ext
7097
7098 done
7099 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7100 rm -f conftest.i conftest.err conftest.$ac_ext
7101 if $ac_preproc_ok; then :
7102
7103 else
7104   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7106 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7107 See \`config.log' for more details" "$LINENO" 5; }
7108 fi
7109
7110 ac_ext=c
7111 ac_cpp='$CPP $CPPFLAGS'
7112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7115
7116
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7118 $as_echo_n "checking for ANSI C header files... " >&6; }
7119 if ${ac_cv_header_stdc+:} false; then :
7120   $as_echo_n "(cached) " >&6
7121 else
7122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7123 /* end confdefs.h.  */
7124 #include <stdlib.h>
7125 #include <stdarg.h>
7126 #include <string.h>
7127 #include <float.h>
7128
7129 int
7130 main ()
7131 {
7132
7133   ;
7134   return 0;
7135 }
7136 _ACEOF
7137 if ac_fn_c_try_compile "$LINENO"; then :
7138   ac_cv_header_stdc=yes
7139 else
7140   ac_cv_header_stdc=no
7141 fi
7142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7143
7144 if test $ac_cv_header_stdc = yes; then
7145   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7146   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7147 /* end confdefs.h.  */
7148 #include <string.h>
7149
7150 _ACEOF
7151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7152   $EGREP "memchr" >/dev/null 2>&1; then :
7153
7154 else
7155   ac_cv_header_stdc=no
7156 fi
7157 rm -f conftest*
7158
7159 fi
7160
7161 if test $ac_cv_header_stdc = yes; then
7162   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7163   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164 /* end confdefs.h.  */
7165 #include <stdlib.h>
7166
7167 _ACEOF
7168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7169   $EGREP "free" >/dev/null 2>&1; then :
7170
7171 else
7172   ac_cv_header_stdc=no
7173 fi
7174 rm -f conftest*
7175
7176 fi
7177
7178 if test $ac_cv_header_stdc = yes; then
7179   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7180   if test "$cross_compiling" = yes; then :
7181   :
7182 else
7183   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7184 /* end confdefs.h.  */
7185 #include <ctype.h>
7186 #include <stdlib.h>
7187 #if ((' ' & 0x0FF) == 0x020)
7188 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7189 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7190 #else
7191 # define ISLOWER(c) \
7192                    (('a' <= (c) && (c) <= 'i') \
7193                      || ('j' <= (c) && (c) <= 'r') \
7194                      || ('s' <= (c) && (c) <= 'z'))
7195 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7196 #endif
7197
7198 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7199 int
7200 main ()
7201 {
7202   int i;
7203   for (i = 0; i < 256; i++)
7204     if (XOR (islower (i), ISLOWER (i))
7205         || toupper (i) != TOUPPER (i))
7206       return 2;
7207   return 0;
7208 }
7209 _ACEOF
7210 if ac_fn_c_try_run "$LINENO"; then :
7211
7212 else
7213   ac_cv_header_stdc=no
7214 fi
7215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7216   conftest.$ac_objext conftest.beam conftest.$ac_ext
7217 fi
7218
7219 fi
7220 fi
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7222 $as_echo "$ac_cv_header_stdc" >&6; }
7223 if test $ac_cv_header_stdc = yes; then
7224
7225 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7226
7227 fi
7228
7229 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7230 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7231                   inttypes.h stdint.h unistd.h
7232 do :
7233   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7234 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7235 "
7236 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7237   cat >>confdefs.h <<_ACEOF
7238 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7239 _ACEOF
7240
7241 fi
7242
7243 done
7244
7245
7246 for ac_header in dlfcn.h
7247 do :
7248   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7249 "
7250 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7251   cat >>confdefs.h <<_ACEOF
7252 #define HAVE_DLFCN_H 1
7253 _ACEOF
7254
7255 fi
7256
7257 done
7258
7259
7260
7261
7262
7263 # Set options
7264
7265
7266
7267         enable_dlopen=no
7268
7269
7270   enable_win32_dll=no
7271
7272
7273             # Check whether --enable-shared was given.
7274 if test "${enable_shared+set}" = set; then :
7275   enableval=$enable_shared; p=${PACKAGE-default}
7276     case $enableval in
7277     yes) enable_shared=yes ;;
7278     no) enable_shared=no ;;
7279     *)
7280       enable_shared=no
7281       # Look at the argument we got.  We use all the common list separators.
7282       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7283       for pkg in $enableval; do
7284         IFS="$lt_save_ifs"
7285         if test "X$pkg" = "X$p"; then
7286           enable_shared=yes
7287         fi
7288       done
7289       IFS="$lt_save_ifs"
7290       ;;
7291     esac
7292 else
7293   enable_shared=yes
7294 fi
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304   # Check whether --enable-static was given.
7305 if test "${enable_static+set}" = set; then :
7306   enableval=$enable_static; p=${PACKAGE-default}
7307     case $enableval in
7308     yes) enable_static=yes ;;
7309     no) enable_static=no ;;
7310     *)
7311      enable_static=no
7312       # Look at the argument we got.  We use all the common list separators.
7313       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7314       for pkg in $enableval; do
7315         IFS="$lt_save_ifs"
7316         if test "X$pkg" = "X$p"; then
7317           enable_static=yes
7318         fi
7319       done
7320       IFS="$lt_save_ifs"
7321       ;;
7322     esac
7323 else
7324   enable_static=yes
7325 fi
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336 # Check whether --with-pic was given.
7337 if test "${with_pic+set}" = set; then :
7338   withval=$with_pic; pic_mode="$withval"
7339 else
7340   pic_mode=default
7341 fi
7342
7343
7344 test -z "$pic_mode" && pic_mode=default
7345
7346
7347
7348
7349
7350
7351
7352   # Check whether --enable-fast-install was given.
7353 if test "${enable_fast_install+set}" = set; then :
7354   enableval=$enable_fast_install; p=${PACKAGE-default}
7355     case $enableval in
7356     yes) enable_fast_install=yes ;;
7357     no) enable_fast_install=no ;;
7358     *)
7359       enable_fast_install=no
7360       # Look at the argument we got.  We use all the common list separators.
7361       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7362       for pkg in $enableval; do
7363         IFS="$lt_save_ifs"
7364         if test "X$pkg" = "X$p"; then
7365           enable_fast_install=yes
7366         fi
7367       done
7368       IFS="$lt_save_ifs"
7369       ;;
7370     esac
7371 else
7372   enable_fast_install=yes
7373 fi
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385 # This can be used to rebuild libtool when needed
7386 LIBTOOL_DEPS="$ltmain"
7387
7388 # Always use our own libtool.
7389 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416 test -z "$LN_S" && LN_S="ln -s"
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431 if test -n "${ZSH_VERSION+set}" ; then
7432    setopt NO_GLOB_SUBST
7433 fi
7434
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7436 $as_echo_n "checking for objdir... " >&6; }
7437 if ${lt_cv_objdir+:} false; then :
7438   $as_echo_n "(cached) " >&6
7439 else
7440   rm -f .libs 2>/dev/null
7441 mkdir .libs 2>/dev/null
7442 if test -d .libs; then
7443   lt_cv_objdir=.libs
7444 else
7445   # MS-DOS does not allow filenames that begin with a dot.
7446   lt_cv_objdir=_libs
7447 fi
7448 rmdir .libs 2>/dev/null
7449 fi
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7451 $as_echo "$lt_cv_objdir" >&6; }
7452 objdir=$lt_cv_objdir
7453
7454
7455
7456
7457
7458 cat >>confdefs.h <<_ACEOF
7459 #define LT_OBJDIR "$lt_cv_objdir/"
7460 _ACEOF
7461
7462
7463
7464
7465 case $host_os in
7466 aix3*)
7467   # AIX sometimes has problems with the GCC collect2 program.  For some
7468   # reason, if we set the COLLECT_NAMES environment variable, the problems
7469   # vanish in a puff of smoke.
7470   if test "X${COLLECT_NAMES+set}" != Xset; then
7471     COLLECT_NAMES=
7472     export COLLECT_NAMES
7473   fi
7474   ;;
7475 esac
7476
7477 # Global variables:
7478 ofile=libtool
7479 can_build_shared=yes
7480
7481 # All known linkers require a `.a' archive for static linking (except MSVC,
7482 # which needs '.lib').
7483 libext=a
7484
7485 with_gnu_ld="$lt_cv_prog_gnu_ld"
7486
7487 old_CC="$CC"
7488 old_CFLAGS="$CFLAGS"
7489
7490 # Set sane defaults for various variables
7491 test -z "$CC" && CC=cc
7492 test -z "$LTCC" && LTCC=$CC
7493 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7494 test -z "$LD" && LD=ld
7495 test -z "$ac_objext" && ac_objext=o
7496
7497 for cc_temp in $compiler""; do
7498   case $cc_temp in
7499     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7500     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7501     \-*) ;;
7502     *) break;;
7503   esac
7504 done
7505 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7506
7507
7508 # Only perform the check for file, if the check method requires it
7509 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7510 case $deplibs_check_method in
7511 file_magic*)
7512   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7513     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7514 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7515 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7516   $as_echo_n "(cached) " >&6
7517 else
7518   case $MAGIC_CMD in
7519 [\\/*] |  ?:[\\/]*)
7520   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7521   ;;
7522 *)
7523   lt_save_MAGIC_CMD="$MAGIC_CMD"
7524   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7525   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7526   for ac_dir in $ac_dummy; do
7527     IFS="$lt_save_ifs"
7528     test -z "$ac_dir" && ac_dir=.
7529     if test -f $ac_dir/${ac_tool_prefix}file; then
7530       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7531       if test -n "$file_magic_test_file"; then
7532         case $deplibs_check_method in
7533         "file_magic "*)
7534           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7535           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7536           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7537             $EGREP "$file_magic_regex" > /dev/null; then
7538             :
7539           else
7540             cat <<_LT_EOF 1>&2
7541
7542 *** Warning: the command libtool uses to detect shared libraries,
7543 *** $file_magic_cmd, produces output that libtool cannot recognize.
7544 *** The result is that libtool may fail to recognize shared libraries
7545 *** as such.  This will affect the creation of libtool libraries that
7546 *** depend on shared libraries, but programs linked with such libtool
7547 *** libraries will work regardless of this problem.  Nevertheless, you
7548 *** may want to report the problem to your system manager and/or to
7549 *** bug-libtool@gnu.org
7550
7551 _LT_EOF
7552           fi ;;
7553         esac
7554       fi
7555       break
7556     fi
7557   done
7558   IFS="$lt_save_ifs"
7559   MAGIC_CMD="$lt_save_MAGIC_CMD"
7560   ;;
7561 esac
7562 fi
7563
7564 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7565 if test -n "$MAGIC_CMD"; then
7566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7567 $as_echo "$MAGIC_CMD" >&6; }
7568 else
7569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570 $as_echo "no" >&6; }
7571 fi
7572
7573
7574
7575
7576
7577 if test -z "$lt_cv_path_MAGIC_CMD"; then
7578   if test -n "$ac_tool_prefix"; then
7579     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7580 $as_echo_n "checking for file... " >&6; }
7581 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7582   $as_echo_n "(cached) " >&6
7583 else
7584   case $MAGIC_CMD in
7585 [\\/*] |  ?:[\\/]*)
7586   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7587   ;;
7588 *)
7589   lt_save_MAGIC_CMD="$MAGIC_CMD"
7590   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7591   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7592   for ac_dir in $ac_dummy; do
7593     IFS="$lt_save_ifs"
7594     test -z "$ac_dir" && ac_dir=.
7595     if test -f $ac_dir/file; then
7596       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7597       if test -n "$file_magic_test_file"; then
7598         case $deplibs_check_method in
7599         "file_magic "*)
7600           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7601           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7602           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7603             $EGREP "$file_magic_regex" > /dev/null; then
7604             :
7605           else
7606             cat <<_LT_EOF 1>&2
7607
7608 *** Warning: the command libtool uses to detect shared libraries,
7609 *** $file_magic_cmd, produces output that libtool cannot recognize.
7610 *** The result is that libtool may fail to recognize shared libraries
7611 *** as such.  This will affect the creation of libtool libraries that
7612 *** depend on shared libraries, but programs linked with such libtool
7613 *** libraries will work regardless of this problem.  Nevertheless, you
7614 *** may want to report the problem to your system manager and/or to
7615 *** bug-libtool@gnu.org
7616
7617 _LT_EOF
7618           fi ;;
7619         esac
7620       fi
7621       break
7622     fi
7623   done
7624   IFS="$lt_save_ifs"
7625   MAGIC_CMD="$lt_save_MAGIC_CMD"
7626   ;;
7627 esac
7628 fi
7629
7630 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7631 if test -n "$MAGIC_CMD"; then
7632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7633 $as_echo "$MAGIC_CMD" >&6; }
7634 else
7635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7636 $as_echo "no" >&6; }
7637 fi
7638
7639
7640   else
7641     MAGIC_CMD=:
7642   fi
7643 fi
7644
7645   fi
7646   ;;
7647 esac
7648
7649 # Use C for the default configuration in the libtool script
7650
7651 lt_save_CC="$CC"
7652 ac_ext=c
7653 ac_cpp='$CPP $CPPFLAGS'
7654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7657
7658
7659 # Source file extension for C test sources.
7660 ac_ext=c
7661
7662 # Object file extension for compiled C test sources.
7663 objext=o
7664 objext=$objext
7665
7666 # Code to be used in simple compile tests
7667 lt_simple_compile_test_code="int some_variable = 0;"
7668
7669 # Code to be used in simple link tests
7670 lt_simple_link_test_code='int main(){return(0);}'
7671
7672
7673
7674
7675
7676
7677
7678 # If no C compiler was specified, use CC.
7679 LTCC=${LTCC-"$CC"}
7680
7681 # If no C compiler flags were specified, use CFLAGS.
7682 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7683
7684 # Allow CC to be a program name with arguments.
7685 compiler=$CC
7686
7687 # Save the default compiler, since it gets overwritten when the other
7688 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7689 compiler_DEFAULT=$CC
7690
7691 # save warnings/boilerplate of simple test code
7692 ac_outfile=conftest.$ac_objext
7693 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7694 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7695 _lt_compiler_boilerplate=`cat conftest.err`
7696 $RM conftest*
7697
7698 ac_outfile=conftest.$ac_objext
7699 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7700 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7701 _lt_linker_boilerplate=`cat conftest.err`
7702 $RM -r conftest*
7703
7704
7705 if test -n "$compiler"; then
7706
7707 lt_prog_compiler_no_builtin_flag=
7708
7709 if test "$GCC" = yes; then
7710   case $cc_basename in
7711   nvcc*)
7712     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7713   *)
7714     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7715   esac
7716
7717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7718 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7719 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7720   $as_echo_n "(cached) " >&6
7721 else
7722   lt_cv_prog_compiler_rtti_exceptions=no
7723    ac_outfile=conftest.$ac_objext
7724    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7725    lt_compiler_flag="-fno-rtti -fno-exceptions"
7726    # Insert the option either (1) after the last *FLAGS variable, or
7727    # (2) before a word containing "conftest.", or (3) at the end.
7728    # Note that $ac_compile itself does not contain backslashes and begins
7729    # with a dollar sign (not a hyphen), so the echo should work correctly.
7730    # The option is referenced via a variable to avoid confusing sed.
7731    lt_compile=`echo "$ac_compile" | $SED \
7732    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7733    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7734    -e 's:$: $lt_compiler_flag:'`
7735    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7736    (eval "$lt_compile" 2>conftest.err)
7737    ac_status=$?
7738    cat conftest.err >&5
7739    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740    if (exit $ac_status) && test -s "$ac_outfile"; then
7741      # The compiler can only warn and ignore the option if not recognized
7742      # So say no if there are warnings other than the usual output.
7743      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7744      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7745      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7746        lt_cv_prog_compiler_rtti_exceptions=yes
7747      fi
7748    fi
7749    $RM conftest*
7750
7751 fi
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7753 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7754
7755 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7756     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7757 else
7758     :
7759 fi
7760
7761 fi
7762
7763
7764
7765
7766
7767
7768   lt_prog_compiler_wl=
7769 lt_prog_compiler_pic=
7770 lt_prog_compiler_static=
7771
7772
7773   if test "$GCC" = yes; then
7774     lt_prog_compiler_wl='-Wl,'
7775     lt_prog_compiler_static='-static'
7776
7777     case $host_os in
7778       aix*)
7779       # All AIX code is PIC.
7780       if test "$host_cpu" = ia64; then
7781         # AIX 5 now supports IA64 processor
7782         lt_prog_compiler_static='-Bstatic'
7783       fi
7784       ;;
7785
7786     amigaos*)
7787       case $host_cpu in
7788       powerpc)
7789             # see comment about AmigaOS4 .so support
7790             lt_prog_compiler_pic='-fPIC'
7791         ;;
7792       m68k)
7793             # FIXME: we need at least 68020 code to build shared libraries, but
7794             # adding the `-m68020' flag to GCC prevents building anything better,
7795             # like `-m68040'.
7796             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7797         ;;
7798       esac
7799       ;;
7800
7801     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7802       # PIC is the default for these OSes.
7803       ;;
7804
7805     mingw* | cygwin* | pw32* | os2* | cegcc*)
7806       # This hack is so that the source file can tell whether it is being
7807       # built for inclusion in a dll (and should export symbols for example).
7808       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7809       # (--disable-auto-import) libraries
7810       lt_prog_compiler_pic='-DDLL_EXPORT'
7811       ;;
7812
7813     darwin* | rhapsody*)
7814       # PIC is the default on this platform
7815       # Common symbols not allowed in MH_DYLIB files
7816       lt_prog_compiler_pic='-fno-common'
7817       ;;
7818
7819     haiku*)
7820       # PIC is the default for Haiku.
7821       # The "-static" flag exists, but is broken.
7822       lt_prog_compiler_static=
7823       ;;
7824
7825     hpux*)
7826       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7827       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7828       # sets the default TLS model and affects inlining.
7829       case $host_cpu in
7830       hppa*64*)
7831         # +Z the default
7832         ;;
7833       *)
7834         lt_prog_compiler_pic='-fPIC'
7835         ;;
7836       esac
7837       ;;
7838
7839     interix[3-9]*)
7840       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7841       # Instead, we relocate shared libraries at runtime.
7842       ;;
7843
7844     msdosdjgpp*)
7845       # Just because we use GCC doesn't mean we suddenly get shared libraries
7846       # on systems that don't support them.
7847       lt_prog_compiler_can_build_shared=no
7848       enable_shared=no
7849       ;;
7850
7851     *nto* | *qnx*)
7852       # QNX uses GNU C++, but need to define -shared option too, otherwise
7853       # it will coredump.
7854       lt_prog_compiler_pic='-fPIC -shared'
7855       ;;
7856
7857     sysv4*MP*)
7858       if test -d /usr/nec; then
7859         lt_prog_compiler_pic=-Kconform_pic
7860       fi
7861       ;;
7862
7863     *)
7864       lt_prog_compiler_pic='-fPIC'
7865       ;;
7866     esac
7867
7868     case $cc_basename in
7869     nvcc*) # Cuda Compiler Driver 2.2
7870       lt_prog_compiler_wl='-Xlinker '
7871       lt_prog_compiler_pic='-Xcompiler -fPIC'
7872       ;;
7873     esac
7874   else
7875     # PORTME Check for flag to pass linker flags through the system compiler.
7876     case $host_os in
7877     aix*)
7878       lt_prog_compiler_wl='-Wl,'
7879       if test "$host_cpu" = ia64; then
7880         # AIX 5 now supports IA64 processor
7881         lt_prog_compiler_static='-Bstatic'
7882       else
7883         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7884       fi
7885       ;;
7886
7887     mingw* | cygwin* | pw32* | os2* | cegcc*)
7888       # This hack is so that the source file can tell whether it is being
7889       # built for inclusion in a dll (and should export symbols for example).
7890       lt_prog_compiler_pic='-DDLL_EXPORT'
7891       ;;
7892
7893     hpux9* | hpux10* | hpux11*)
7894       lt_prog_compiler_wl='-Wl,'
7895       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7896       # not for PA HP-UX.
7897       case $host_cpu in
7898       hppa*64*|ia64*)
7899         # +Z the default
7900         ;;
7901       *)
7902         lt_prog_compiler_pic='+Z'
7903         ;;
7904       esac
7905       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7906       lt_prog_compiler_static='${wl}-a ${wl}archive'
7907       ;;
7908
7909     irix5* | irix6* | nonstopux*)
7910       lt_prog_compiler_wl='-Wl,'
7911       # PIC (with -KPIC) is the default.
7912       lt_prog_compiler_static='-non_shared'
7913       ;;
7914
7915     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7916       case $cc_basename in
7917       # old Intel for x86_64 which still supported -KPIC.
7918       ecc*)
7919         lt_prog_compiler_wl='-Wl,'
7920         lt_prog_compiler_pic='-KPIC'
7921         lt_prog_compiler_static='-static'
7922         ;;
7923       # icc used to be incompatible with GCC.
7924       # ICC 10 doesn't accept -KPIC any more.
7925       icc* | ifort*)
7926         lt_prog_compiler_wl='-Wl,'
7927         lt_prog_compiler_pic='-fPIC'
7928         lt_prog_compiler_static='-static'
7929         ;;
7930       # Lahey Fortran 8.1.
7931       lf95*)
7932         lt_prog_compiler_wl='-Wl,'
7933         lt_prog_compiler_pic='--shared'
7934         lt_prog_compiler_static='--static'
7935         ;;
7936       nagfor*)
7937         # NAG Fortran compiler
7938         lt_prog_compiler_wl='-Wl,-Wl,,'
7939         lt_prog_compiler_pic='-PIC'
7940         lt_prog_compiler_static='-Bstatic'
7941         ;;
7942       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7943         # Portland Group compilers (*not* the Pentium gcc compiler,
7944         # which looks to be a dead project)
7945         lt_prog_compiler_wl='-Wl,'
7946         lt_prog_compiler_pic='-fpic'
7947         lt_prog_compiler_static='-Bstatic'
7948         ;;
7949       ccc*)
7950         lt_prog_compiler_wl='-Wl,'
7951         # All Alpha code is PIC.
7952         lt_prog_compiler_static='-non_shared'
7953         ;;
7954       xl* | bgxl* | bgf* | mpixl*)
7955         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7956         lt_prog_compiler_wl='-Wl,'
7957         lt_prog_compiler_pic='-qpic'
7958         lt_prog_compiler_static='-qstaticlink'
7959         ;;
7960       *)
7961         case `$CC -V 2>&1 | sed 5q` in
7962         *Sun\ F* | *Sun*Fortran*)
7963           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7964           lt_prog_compiler_pic='-KPIC'
7965           lt_prog_compiler_static='-Bstatic'
7966           lt_prog_compiler_wl=''
7967           ;;
7968         *Sun\ C*)
7969           # Sun C 5.9
7970           lt_prog_compiler_pic='-KPIC'
7971           lt_prog_compiler_static='-Bstatic'
7972           lt_prog_compiler_wl='-Wl,'
7973           ;;
7974         esac
7975         ;;
7976       esac
7977       ;;
7978
7979     newsos6)
7980       lt_prog_compiler_pic='-KPIC'
7981       lt_prog_compiler_static='-Bstatic'
7982       ;;
7983
7984     *nto* | *qnx*)
7985       # QNX uses GNU C++, but need to define -shared option too, otherwise
7986       # it will coredump.
7987       lt_prog_compiler_pic='-fPIC -shared'
7988       ;;
7989
7990     osf3* | osf4* | osf5*)
7991       lt_prog_compiler_wl='-Wl,'
7992       # All OSF/1 code is PIC.
7993       lt_prog_compiler_static='-non_shared'
7994       ;;
7995
7996     rdos*)
7997       lt_prog_compiler_static='-non_shared'
7998       ;;
7999
8000     solaris*)
8001       lt_prog_compiler_pic='-KPIC'
8002       lt_prog_compiler_static='-Bstatic'
8003       case $cc_basename in
8004       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8005         lt_prog_compiler_wl='-Qoption ld ';;
8006       *)
8007         lt_prog_compiler_wl='-Wl,';;
8008       esac
8009       ;;
8010
8011     sunos4*)
8012       lt_prog_compiler_wl='-Qoption ld '
8013       lt_prog_compiler_pic='-PIC'
8014       lt_prog_compiler_static='-Bstatic'
8015       ;;
8016
8017     sysv4 | sysv4.2uw2* | sysv4.3*)
8018       lt_prog_compiler_wl='-Wl,'
8019       lt_prog_compiler_pic='-KPIC'
8020       lt_prog_compiler_static='-Bstatic'
8021       ;;
8022
8023     sysv4*MP*)
8024       if test -d /usr/nec ;then
8025         lt_prog_compiler_pic='-Kconform_pic'
8026         lt_prog_compiler_static='-Bstatic'
8027       fi
8028       ;;
8029
8030     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8031       lt_prog_compiler_wl='-Wl,'
8032       lt_prog_compiler_pic='-KPIC'
8033       lt_prog_compiler_static='-Bstatic'
8034       ;;
8035
8036     unicos*)
8037       lt_prog_compiler_wl='-Wl,'
8038       lt_prog_compiler_can_build_shared=no
8039       ;;
8040
8041     uts4*)
8042       lt_prog_compiler_pic='-pic'
8043       lt_prog_compiler_static='-Bstatic'
8044       ;;
8045
8046     *)
8047       lt_prog_compiler_can_build_shared=no
8048       ;;
8049     esac
8050   fi
8051
8052 case $host_os in
8053   # For platforms which do not support PIC, -DPIC is meaningless:
8054   *djgpp*)
8055     lt_prog_compiler_pic=
8056     ;;
8057   *)
8058     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8059     ;;
8060 esac
8061
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8063 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8064 if ${lt_cv_prog_compiler_pic+:} false; then :
8065   $as_echo_n "(cached) " >&6
8066 else
8067   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8068 fi
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8070 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8071 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8072
8073 #
8074 # Check to make sure the PIC flag actually works.
8075 #
8076 if test -n "$lt_prog_compiler_pic"; then
8077   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8078 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8079 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8080   $as_echo_n "(cached) " >&6
8081 else
8082   lt_cv_prog_compiler_pic_works=no
8083    ac_outfile=conftest.$ac_objext
8084    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8085    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8086    # Insert the option either (1) after the last *FLAGS variable, or
8087    # (2) before a word containing "conftest.", or (3) at the end.
8088    # Note that $ac_compile itself does not contain backslashes and begins
8089    # with a dollar sign (not a hyphen), so the echo should work correctly.
8090    # The option is referenced via a variable to avoid confusing sed.
8091    lt_compile=`echo "$ac_compile" | $SED \
8092    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8093    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8094    -e 's:$: $lt_compiler_flag:'`
8095    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8096    (eval "$lt_compile" 2>conftest.err)
8097    ac_status=$?
8098    cat conftest.err >&5
8099    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100    if (exit $ac_status) && test -s "$ac_outfile"; then
8101      # The compiler can only warn and ignore the option if not recognized
8102      # So say no if there are warnings other than the usual output.
8103      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8104      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8105      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8106        lt_cv_prog_compiler_pic_works=yes
8107      fi
8108    fi
8109    $RM conftest*
8110
8111 fi
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8113 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8114
8115 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8116     case $lt_prog_compiler_pic in
8117      "" | " "*) ;;
8118      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8119      esac
8120 else
8121     lt_prog_compiler_pic=
8122      lt_prog_compiler_can_build_shared=no
8123 fi
8124
8125 fi
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137 #
8138 # Check to make sure the static flag actually works.
8139 #
8140 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8142 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8143 if ${lt_cv_prog_compiler_static_works+:} false; then :
8144   $as_echo_n "(cached) " >&6
8145 else
8146   lt_cv_prog_compiler_static_works=no
8147    save_LDFLAGS="$LDFLAGS"
8148    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8149    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8150    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8151      # The linker can only warn and ignore the option if not recognized
8152      # So say no if there are warnings
8153      if test -s conftest.err; then
8154        # Append any errors to the config.log.
8155        cat conftest.err 1>&5
8156        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8157        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8158        if diff conftest.exp conftest.er2 >/dev/null; then
8159          lt_cv_prog_compiler_static_works=yes
8160        fi
8161      else
8162        lt_cv_prog_compiler_static_works=yes
8163      fi
8164    fi
8165    $RM -r conftest*
8166    LDFLAGS="$save_LDFLAGS"
8167
8168 fi
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8170 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8171
8172 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8173     :
8174 else
8175     lt_prog_compiler_static=
8176 fi
8177
8178
8179
8180
8181
8182
8183
8184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8185 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8186 if ${lt_cv_prog_compiler_c_o+:} false; then :
8187   $as_echo_n "(cached) " >&6
8188 else
8189   lt_cv_prog_compiler_c_o=no
8190    $RM -r conftest 2>/dev/null
8191    mkdir conftest
8192    cd conftest
8193    mkdir out
8194    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8195
8196    lt_compiler_flag="-o out/conftest2.$ac_objext"
8197    # Insert the option either (1) after the last *FLAGS variable, or
8198    # (2) before a word containing "conftest.", or (3) at the end.
8199    # Note that $ac_compile itself does not contain backslashes and begins
8200    # with a dollar sign (not a hyphen), so the echo should work correctly.
8201    lt_compile=`echo "$ac_compile" | $SED \
8202    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8203    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8204    -e 's:$: $lt_compiler_flag:'`
8205    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8206    (eval "$lt_compile" 2>out/conftest.err)
8207    ac_status=$?
8208    cat out/conftest.err >&5
8209    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8211    then
8212      # The compiler can only warn and ignore the option if not recognized
8213      # So say no if there are warnings
8214      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8215      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8216      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8217        lt_cv_prog_compiler_c_o=yes
8218      fi
8219    fi
8220    chmod u+w . 2>&5
8221    $RM conftest*
8222    # SGI C++ compiler will create directory out/ii_files/ for
8223    # template instantiation
8224    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8225    $RM out/* && rmdir out
8226    cd ..
8227    $RM -r conftest
8228    $RM conftest*
8229
8230 fi
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8232 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8233
8234
8235
8236
8237
8238
8239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8240 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8241 if ${lt_cv_prog_compiler_c_o+:} false; then :
8242   $as_echo_n "(cached) " >&6
8243 else
8244   lt_cv_prog_compiler_c_o=no
8245    $RM -r conftest 2>/dev/null
8246    mkdir conftest
8247    cd conftest
8248    mkdir out
8249    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8250
8251    lt_compiler_flag="-o out/conftest2.$ac_objext"
8252    # Insert the option either (1) after the last *FLAGS variable, or
8253    # (2) before a word containing "conftest.", or (3) at the end.
8254    # Note that $ac_compile itself does not contain backslashes and begins
8255    # with a dollar sign (not a hyphen), so the echo should work correctly.
8256    lt_compile=`echo "$ac_compile" | $SED \
8257    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8258    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8259    -e 's:$: $lt_compiler_flag:'`
8260    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8261    (eval "$lt_compile" 2>out/conftest.err)
8262    ac_status=$?
8263    cat out/conftest.err >&5
8264    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8266    then
8267      # The compiler can only warn and ignore the option if not recognized
8268      # So say no if there are warnings
8269      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8270      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8271      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8272        lt_cv_prog_compiler_c_o=yes
8273      fi
8274    fi
8275    chmod u+w . 2>&5
8276    $RM conftest*
8277    # SGI C++ compiler will create directory out/ii_files/ for
8278    # template instantiation
8279    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8280    $RM out/* && rmdir out
8281    cd ..
8282    $RM -r conftest
8283    $RM conftest*
8284
8285 fi
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8287 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8288
8289
8290
8291
8292 hard_links="nottested"
8293 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8294   # do not overwrite the value of need_locks provided by the user
8295   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8296 $as_echo_n "checking if we can lock with hard links... " >&6; }
8297   hard_links=yes
8298   $RM conftest*
8299   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8300   touch conftest.a
8301   ln conftest.a conftest.b 2>&5 || hard_links=no
8302   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8304 $as_echo "$hard_links" >&6; }
8305   if test "$hard_links" = no; then
8306     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8307 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8308     need_locks=warn
8309   fi
8310 else
8311   need_locks=no
8312 fi
8313
8314
8315
8316
8317
8318
8319   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8320 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8321
8322   runpath_var=
8323   allow_undefined_flag=
8324   always_export_symbols=no
8325   archive_cmds=
8326   archive_expsym_cmds=
8327   compiler_needs_object=no
8328   enable_shared_with_static_runtimes=no
8329   export_dynamic_flag_spec=
8330   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8331   hardcode_automatic=no
8332   hardcode_direct=no
8333   hardcode_direct_absolute=no
8334   hardcode_libdir_flag_spec=
8335   hardcode_libdir_flag_spec_ld=
8336   hardcode_libdir_separator=
8337   hardcode_minus_L=no
8338   hardcode_shlibpath_var=unsupported
8339   inherit_rpath=no
8340   link_all_deplibs=unknown
8341   module_cmds=
8342   module_expsym_cmds=
8343   old_archive_from_new_cmds=
8344   old_archive_from_expsyms_cmds=
8345   thread_safe_flag_spec=
8346   whole_archive_flag_spec=
8347   # include_expsyms should be a list of space-separated symbols to be *always*
8348   # included in the symbol list
8349   include_expsyms=
8350   # exclude_expsyms can be an extended regexp of symbols to exclude
8351   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8352   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8353   # as well as any symbol that contains `d'.
8354   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8355   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8356   # platforms (ab)use it in PIC code, but their linkers get confused if
8357   # the symbol is explicitly referenced.  Since portable code cannot
8358   # rely on this symbol name, it's probably fine to never include it in
8359   # preloaded symbol tables.
8360   # Exclude shared library initialization/finalization symbols.
8361   extract_expsyms_cmds=
8362
8363   case $host_os in
8364   cygwin* | mingw* | pw32* | cegcc*)
8365     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8366     # When not using gcc, we currently assume that we are using
8367     # Microsoft Visual C++.
8368     if test "$GCC" != yes; then
8369       with_gnu_ld=no
8370     fi
8371     ;;
8372   interix*)
8373     # we just hope/assume this is gcc and not c89 (= MSVC++)
8374     with_gnu_ld=yes
8375     ;;
8376   openbsd*)
8377     with_gnu_ld=no
8378     ;;
8379   esac
8380
8381   ld_shlibs=yes
8382
8383   # On some targets, GNU ld is compatible enough with the native linker
8384   # that we're better off using the native interface for both.
8385   lt_use_gnu_ld_interface=no
8386   if test "$with_gnu_ld" = yes; then
8387     case $host_os in
8388       aix*)
8389         # The AIX port of GNU ld has always aspired to compatibility
8390         # with the native linker.  However, as the warning in the GNU ld
8391         # block says, versions before 2.19.5* couldn't really create working
8392         # shared libraries, regardless of the interface used.
8393         case `$LD -v 2>&1` in
8394           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8395           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8396           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8397           *)
8398             lt_use_gnu_ld_interface=yes
8399             ;;
8400         esac
8401         ;;
8402       *)
8403         lt_use_gnu_ld_interface=yes
8404         ;;
8405     esac
8406   fi
8407
8408   if test "$lt_use_gnu_ld_interface" = yes; then
8409     # If archive_cmds runs LD, not CC, wlarc should be empty
8410     wlarc='${wl}'
8411
8412     # Set some defaults for GNU ld with shared library support. These
8413     # are reset later if shared libraries are not supported. Putting them
8414     # here allows them to be overridden if necessary.
8415     runpath_var=LD_RUN_PATH
8416     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8417     export_dynamic_flag_spec='${wl}--export-dynamic'
8418     # ancient GNU ld didn't support --whole-archive et. al.
8419     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8420       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8421     else
8422       whole_archive_flag_spec=
8423     fi
8424     supports_anon_versioning=no
8425     case `$LD -v 2>&1` in
8426       *GNU\ gold*) supports_anon_versioning=yes ;;
8427       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8428       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8429       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8430       *\ 2.11.*) ;; # other 2.11 versions
8431       *) supports_anon_versioning=yes ;;
8432     esac
8433
8434     # See if GNU ld supports shared libraries.
8435     case $host_os in
8436     aix[3-9]*)
8437       # On AIX/PPC, the GNU linker is very broken
8438       if test "$host_cpu" != ia64; then
8439         ld_shlibs=no
8440         cat <<_LT_EOF 1>&2
8441
8442 *** Warning: the GNU linker, at least up to release 2.19, is reported
8443 *** to be unable to reliably create shared libraries on AIX.
8444 *** Therefore, libtool is disabling shared libraries support.  If you
8445 *** really care for shared libraries, you may want to install binutils
8446 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8447 *** You will then need to restart the configuration process.
8448
8449 _LT_EOF
8450       fi
8451       ;;
8452
8453     amigaos*)
8454       case $host_cpu in
8455       powerpc)
8456             # see comment about AmigaOS4 .so support
8457             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8458             archive_expsym_cmds=''
8459         ;;
8460       m68k)
8461             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)'
8462             hardcode_libdir_flag_spec='-L$libdir'
8463             hardcode_minus_L=yes
8464         ;;
8465       esac
8466       ;;
8467
8468     beos*)
8469       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8470         allow_undefined_flag=unsupported
8471         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8472         # support --undefined.  This deserves some investigation.  FIXME
8473         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8474       else
8475         ld_shlibs=no
8476       fi
8477       ;;
8478
8479     cygwin* | mingw* | pw32* | cegcc*)
8480       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8481       # as there is no search path for DLLs.
8482       hardcode_libdir_flag_spec='-L$libdir'
8483       export_dynamic_flag_spec='${wl}--export-all-symbols'
8484       allow_undefined_flag=unsupported
8485       always_export_symbols=no
8486       enable_shared_with_static_runtimes=yes
8487       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'
8488       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8489
8490       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8491         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8492         # If the export-symbols file already is a .def file (1st line
8493         # is EXPORTS), use it as is; otherwise, prepend...
8494         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8495           cp $export_symbols $output_objdir/$soname.def;
8496         else
8497           echo EXPORTS > $output_objdir/$soname.def;
8498           cat $export_symbols >> $output_objdir/$soname.def;
8499         fi~
8500         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8501       else
8502         ld_shlibs=no
8503       fi
8504       ;;
8505
8506     haiku*)
8507       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8508       link_all_deplibs=yes
8509       ;;
8510
8511     interix[3-9]*)
8512       hardcode_direct=no
8513       hardcode_shlibpath_var=no
8514       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8515       export_dynamic_flag_spec='${wl}-E'
8516       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8517       # Instead, shared libraries are loaded at an image base (0x10000000 by
8518       # default) and relocated if they conflict, which is a slow very memory
8519       # consuming and fragmenting process.  To avoid this, we pick a random,
8520       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8521       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8522       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8523       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'
8524       ;;
8525
8526     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8527       tmp_diet=no
8528       if test "$host_os" = linux-dietlibc; then
8529         case $cc_basename in
8530           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8531         esac
8532       fi
8533       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8534          && test "$tmp_diet" = no
8535       then
8536         tmp_addflag=' $pic_flag'
8537         tmp_sharedflag='-shared'
8538         case $cc_basename,$host_cpu in
8539         pgcc*)                          # Portland Group C compiler
8540           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'
8541           tmp_addflag=' $pic_flag'
8542           ;;
8543         pgf77* | pgf90* | pgf95* | pgfortran*)
8544                                         # Portland Group f77 and f90 compilers
8545           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'
8546           tmp_addflag=' $pic_flag -Mnomain' ;;
8547         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8548           tmp_addflag=' -i_dynamic' ;;
8549         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8550           tmp_addflag=' -i_dynamic -nofor_main' ;;
8551         ifc* | ifort*)                  # Intel Fortran compiler
8552           tmp_addflag=' -nofor_main' ;;
8553         lf95*)                          # Lahey Fortran 8.1
8554           whole_archive_flag_spec=
8555           tmp_sharedflag='--shared' ;;
8556         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8557           tmp_sharedflag='-qmkshrobj'
8558           tmp_addflag= ;;
8559         nvcc*)  # Cuda Compiler Driver 2.2
8560           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'
8561           compiler_needs_object=yes
8562           ;;
8563         esac
8564         case `$CC -V 2>&1 | sed 5q` in
8565         *Sun\ C*)                       # Sun C 5.9
8566           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'
8567           compiler_needs_object=yes
8568           tmp_sharedflag='-G' ;;
8569         *Sun\ F*)                       # Sun Fortran 8.3
8570           tmp_sharedflag='-G' ;;
8571         esac
8572         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8573
8574         if test "x$supports_anon_versioning" = xyes; then
8575           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8576             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8577             echo "local: *; };" >> $output_objdir/$libname.ver~
8578             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8579         fi
8580
8581         case $cc_basename in
8582         xlf* | bgf* | bgxlf* | mpixlf*)
8583           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8584           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8585           hardcode_libdir_flag_spec=
8586           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8587           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8588           if test "x$supports_anon_versioning" = xyes; then
8589             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8590               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8591               echo "local: *; };" >> $output_objdir/$libname.ver~
8592               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8593           fi
8594           ;;
8595         esac
8596       else
8597         ld_shlibs=no
8598       fi
8599       ;;
8600
8601     netbsd*)
8602       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8603         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8604         wlarc=
8605       else
8606         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8607         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8608       fi
8609       ;;
8610
8611     solaris*)
8612       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8613         ld_shlibs=no
8614         cat <<_LT_EOF 1>&2
8615
8616 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8617 *** create shared libraries on Solaris systems.  Therefore, libtool
8618 *** is disabling shared libraries support.  We urge you to upgrade GNU
8619 *** binutils to release 2.9.1 or newer.  Another option is to modify
8620 *** your PATH or compiler configuration so that the native linker is
8621 *** used, and then restart.
8622
8623 _LT_EOF
8624       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8625         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8626         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8627       else
8628         ld_shlibs=no
8629       fi
8630       ;;
8631
8632     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8633       case `$LD -v 2>&1` in
8634         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8635         ld_shlibs=no
8636         cat <<_LT_EOF 1>&2
8637
8638 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8639 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8640 *** is disabling shared libraries support.  We urge you to upgrade GNU
8641 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8642 *** your PATH or compiler configuration so that the native linker is
8643 *** used, and then restart.
8644
8645 _LT_EOF
8646         ;;
8647         *)
8648           # For security reasons, it is highly recommended that you always
8649           # use absolute paths for naming shared libraries, and exclude the
8650           # DT_RUNPATH tag from executables and libraries.  But doing so
8651           # requires that you compile everything twice, which is a pain.
8652           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8653             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8654             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8655             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8656           else
8657             ld_shlibs=no
8658           fi
8659         ;;
8660       esac
8661       ;;
8662
8663     sunos4*)
8664       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8665       wlarc=
8666       hardcode_direct=yes
8667       hardcode_shlibpath_var=no
8668       ;;
8669
8670     *)
8671       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8672         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8673         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8674       else
8675         ld_shlibs=no
8676       fi
8677       ;;
8678     esac
8679
8680     if test "$ld_shlibs" = no; then
8681       runpath_var=
8682       hardcode_libdir_flag_spec=
8683       export_dynamic_flag_spec=
8684       whole_archive_flag_spec=
8685     fi
8686   else
8687     # PORTME fill in a description of your system's linker (not GNU ld)
8688     case $host_os in
8689     aix3*)
8690       allow_undefined_flag=unsupported
8691       always_export_symbols=yes
8692       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'
8693       # Note: this linker hardcodes the directories in LIBPATH if there
8694       # are no directories specified by -L.
8695       hardcode_minus_L=yes
8696       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8697         # Neither direct hardcoding nor static linking is supported with a
8698         # broken collect2.
8699         hardcode_direct=unsupported
8700       fi
8701       ;;
8702
8703     aix[4-9]*)
8704       if test "$host_cpu" = ia64; then
8705         # On IA64, the linker does run time linking by default, so we don't
8706         # have to do anything special.
8707         aix_use_runtimelinking=no
8708         exp_sym_flag='-Bexport'
8709         no_entry_flag=""
8710       else
8711         # If we're using GNU nm, then we don't want the "-C" option.
8712         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8713         # Also, AIX nm treats weak defined symbols like other global
8714         # defined symbols, whereas GNU nm marks them as "W".
8715         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8716           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'
8717         else
8718           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'
8719         fi
8720         aix_use_runtimelinking=no
8721
8722         # Test if we are trying to use run time linking or normal
8723         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8724         # need to do runtime linking.
8725         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8726           for ld_flag in $LDFLAGS; do
8727           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8728             aix_use_runtimelinking=yes
8729             break
8730           fi
8731           done
8732           ;;
8733         esac
8734
8735         exp_sym_flag='-bexport'
8736         no_entry_flag='-bnoentry'
8737       fi
8738
8739       # When large executables or shared objects are built, AIX ld can
8740       # have problems creating the table of contents.  If linking a library
8741       # or program results in "error TOC overflow" add -mminimal-toc to
8742       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8743       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8744
8745       archive_cmds=''
8746       hardcode_direct=yes
8747       hardcode_direct_absolute=yes
8748       hardcode_libdir_separator=':'
8749       link_all_deplibs=yes
8750       file_list_spec='${wl}-f,'
8751
8752       if test "$GCC" = yes; then
8753         case $host_os in aix4.[012]|aix4.[012].*)
8754         # We only want to do this on AIX 4.2 and lower, the check
8755         # below for broken collect2 doesn't work under 4.3+
8756           collect2name=`${CC} -print-prog-name=collect2`
8757           if test -f "$collect2name" &&
8758            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8759           then
8760           # We have reworked collect2
8761           :
8762           else
8763           # We have old collect2
8764           hardcode_direct=unsupported
8765           # It fails to find uninstalled libraries when the uninstalled
8766           # path is not listed in the libpath.  Setting hardcode_minus_L
8767           # to unsupported forces relinking
8768           hardcode_minus_L=yes
8769           hardcode_libdir_flag_spec='-L$libdir'
8770           hardcode_libdir_separator=
8771           fi
8772           ;;
8773         esac
8774         shared_flag='-shared'
8775         if test "$aix_use_runtimelinking" = yes; then
8776           shared_flag="$shared_flag "'${wl}-G'
8777         fi
8778       else
8779         # not using gcc
8780         if test "$host_cpu" = ia64; then
8781         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8782         # chokes on -Wl,-G. The following line is correct:
8783           shared_flag='-G'
8784         else
8785           if test "$aix_use_runtimelinking" = yes; then
8786             shared_flag='${wl}-G'
8787           else
8788             shared_flag='${wl}-bM:SRE'
8789           fi
8790         fi
8791       fi
8792
8793       export_dynamic_flag_spec='${wl}-bexpall'
8794       # It seems that -bexpall does not export symbols beginning with
8795       # underscore (_), so it is better to generate a list of symbols to export.
8796       always_export_symbols=yes
8797       if test "$aix_use_runtimelinking" = yes; then
8798         # Warning - without using the other runtime loading flags (-brtl),
8799         # -berok will link without error, but may produce a broken library.
8800         allow_undefined_flag='-berok'
8801         # Determine the default libpath from the value encoded in an
8802         # empty executable.
8803         if test "${lt_cv_aix_libpath+set}" = set; then
8804   aix_libpath=$lt_cv_aix_libpath
8805 else
8806   if ${lt_cv_aix_libpath_+:} false; then :
8807   $as_echo_n "(cached) " >&6
8808 else
8809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8810 /* end confdefs.h.  */
8811
8812 int
8813 main ()
8814 {
8815
8816   ;
8817   return 0;
8818 }
8819 _ACEOF
8820 if ac_fn_c_try_link "$LINENO"; then :
8821
8822   lt_aix_libpath_sed='
8823       /Import File Strings/,/^$/ {
8824           /^0/ {
8825               s/^0  *\([^ ]*\) *$/\1/
8826               p
8827           }
8828       }'
8829   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8830   # Check for a 64-bit object if we didn't find anything.
8831   if test -z "$lt_cv_aix_libpath_"; then
8832     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8833   fi
8834 fi
8835 rm -f core conftest.err conftest.$ac_objext \
8836     conftest$ac_exeext conftest.$ac_ext
8837   if test -z "$lt_cv_aix_libpath_"; then
8838     lt_cv_aix_libpath_="/usr/lib:/lib"
8839   fi
8840
8841 fi
8842
8843   aix_libpath=$lt_cv_aix_libpath_
8844 fi
8845
8846         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8847         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"
8848       else
8849         if test "$host_cpu" = ia64; then
8850           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8851           allow_undefined_flag="-z nodefs"
8852           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"
8853         else
8854          # Determine the default libpath from the value encoded in an
8855          # empty executable.
8856          if test "${lt_cv_aix_libpath+set}" = set; then
8857   aix_libpath=$lt_cv_aix_libpath
8858 else
8859   if ${lt_cv_aix_libpath_+:} false; then :
8860   $as_echo_n "(cached) " >&6
8861 else
8862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8863 /* end confdefs.h.  */
8864
8865 int
8866 main ()
8867 {
8868
8869   ;
8870   return 0;
8871 }
8872 _ACEOF
8873 if ac_fn_c_try_link "$LINENO"; then :
8874
8875   lt_aix_libpath_sed='
8876       /Import File Strings/,/^$/ {
8877           /^0/ {
8878               s/^0  *\([^ ]*\) *$/\1/
8879               p
8880           }
8881       }'
8882   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8883   # Check for a 64-bit object if we didn't find anything.
8884   if test -z "$lt_cv_aix_libpath_"; then
8885     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8886   fi
8887 fi
8888 rm -f core conftest.err conftest.$ac_objext \
8889     conftest$ac_exeext conftest.$ac_ext
8890   if test -z "$lt_cv_aix_libpath_"; then
8891     lt_cv_aix_libpath_="/usr/lib:/lib"
8892   fi
8893
8894 fi
8895
8896   aix_libpath=$lt_cv_aix_libpath_
8897 fi
8898
8899          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8900           # Warning - without using the other run time loading flags,
8901           # -berok will link without error, but may produce a broken library.
8902           no_undefined_flag=' ${wl}-bernotok'
8903           allow_undefined_flag=' ${wl}-berok'
8904           if test "$with_gnu_ld" = yes; then
8905             # We only use this code for GNU lds that support --whole-archive.
8906             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8907           else
8908             # Exported symbols can be pulled into shared objects from archives
8909             whole_archive_flag_spec='$convenience'
8910           fi
8911           archive_cmds_need_lc=yes
8912           # This is similar to how AIX traditionally builds its shared libraries.
8913           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'
8914         fi
8915       fi
8916       ;;
8917
8918     amigaos*)
8919       case $host_cpu in
8920       powerpc)
8921             # see comment about AmigaOS4 .so support
8922             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8923             archive_expsym_cmds=''
8924         ;;
8925       m68k)
8926             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)'
8927             hardcode_libdir_flag_spec='-L$libdir'
8928             hardcode_minus_L=yes
8929         ;;
8930       esac
8931       ;;
8932
8933     bsdi[45]*)
8934       export_dynamic_flag_spec=-rdynamic
8935       ;;
8936
8937     cygwin* | mingw* | pw32* | cegcc*)
8938       # When not using gcc, we currently assume that we are using
8939       # Microsoft Visual C++.
8940       # hardcode_libdir_flag_spec is actually meaningless, as there is
8941       # no search path for DLLs.
8942       case $cc_basename in
8943       cl*)
8944         # Native MSVC
8945         hardcode_libdir_flag_spec=' '
8946         allow_undefined_flag=unsupported
8947         always_export_symbols=yes
8948         file_list_spec='@'
8949         # Tell ltmain to make .lib files, not .a files.
8950         libext=lib
8951         # Tell ltmain to make .dll files, not .so files.
8952         shrext_cmds=".dll"
8953         # FIXME: Setting linknames here is a bad hack.
8954         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8955         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8956             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8957           else
8958             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8959           fi~
8960           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8961           linknames='
8962         # The linker will not automatically build a static lib if we build a DLL.
8963         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8964         enable_shared_with_static_runtimes=yes
8965         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8966         # Don't use ranlib
8967         old_postinstall_cmds='chmod 644 $oldlib'
8968         postlink_cmds='lt_outputfile="@OUTPUT@"~
8969           lt_tool_outputfile="@TOOL_OUTPUT@"~
8970           case $lt_outputfile in
8971             *.exe|*.EXE) ;;
8972             *)
8973               lt_outputfile="$lt_outputfile.exe"
8974               lt_tool_outputfile="$lt_tool_outputfile.exe"
8975               ;;
8976           esac~
8977           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8978             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8979             $RM "$lt_outputfile.manifest";
8980           fi'
8981         ;;
8982       *)
8983         # Assume MSVC wrapper
8984         hardcode_libdir_flag_spec=' '
8985         allow_undefined_flag=unsupported
8986         # Tell ltmain to make .lib files, not .a files.
8987         libext=lib
8988         # Tell ltmain to make .dll files, not .so files.
8989         shrext_cmds=".dll"
8990         # FIXME: Setting linknames here is a bad hack.
8991         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8992         # The linker will automatically build a .lib file if we build a DLL.
8993         old_archive_from_new_cmds='true'
8994         # FIXME: Should let the user specify the lib program.
8995         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8996         enable_shared_with_static_runtimes=yes
8997         ;;
8998       esac
8999       ;;
9000
9001     darwin* | rhapsody*)
9002
9003
9004   archive_cmds_need_lc=no
9005   hardcode_direct=no
9006   hardcode_automatic=yes
9007   hardcode_shlibpath_var=unsupported
9008   if test "$lt_cv_ld_force_load" = "yes"; then
9009     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\"`'
9010   else
9011     whole_archive_flag_spec=''
9012   fi
9013   link_all_deplibs=yes
9014   allow_undefined_flag="$_lt_dar_allow_undefined"
9015   case $cc_basename in
9016      ifort*) _lt_dar_can_shared=yes ;;
9017      *) _lt_dar_can_shared=$GCC ;;
9018   esac
9019   if test "$_lt_dar_can_shared" = "yes"; then
9020     output_verbose_link_cmd=func_echo_all
9021     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9022     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9023     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}"
9024     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}"
9025
9026   else
9027   ld_shlibs=no
9028   fi
9029
9030       ;;
9031
9032     dgux*)
9033       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9034       hardcode_libdir_flag_spec='-L$libdir'
9035       hardcode_shlibpath_var=no
9036       ;;
9037
9038     freebsd1*)
9039       ld_shlibs=no
9040       ;;
9041
9042     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9043     # support.  Future versions do this automatically, but an explicit c++rt0.o
9044     # does not break anything, and helps significantly (at the cost of a little
9045     # extra space).
9046     freebsd2.2*)
9047       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9048       hardcode_libdir_flag_spec='-R$libdir'
9049       hardcode_direct=yes
9050       hardcode_shlibpath_var=no
9051       ;;
9052
9053     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9054     freebsd2*)
9055       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9056       hardcode_direct=yes
9057       hardcode_minus_L=yes
9058       hardcode_shlibpath_var=no
9059       ;;
9060
9061     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9062     freebsd* | dragonfly*)
9063       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9064       hardcode_libdir_flag_spec='-R$libdir'
9065       hardcode_direct=yes
9066       hardcode_shlibpath_var=no
9067       ;;
9068
9069     hpux9*)
9070       if test "$GCC" = yes; then
9071         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'
9072       else
9073         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'
9074       fi
9075       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9076       hardcode_libdir_separator=:
9077       hardcode_direct=yes
9078
9079       # hardcode_minus_L: Not really in the search PATH,
9080       # but as the default location of the library.
9081       hardcode_minus_L=yes
9082       export_dynamic_flag_spec='${wl}-E'
9083       ;;
9084
9085     hpux10*)
9086       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9087         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9088       else
9089         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9090       fi
9091       if test "$with_gnu_ld" = no; then
9092         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9093         hardcode_libdir_flag_spec_ld='+b $libdir'
9094         hardcode_libdir_separator=:
9095         hardcode_direct=yes
9096         hardcode_direct_absolute=yes
9097         export_dynamic_flag_spec='${wl}-E'
9098         # hardcode_minus_L: Not really in the search PATH,
9099         # but as the default location of the library.
9100         hardcode_minus_L=yes
9101       fi
9102       ;;
9103
9104     hpux11*)
9105       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9106         case $host_cpu in
9107         hppa*64*)
9108           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9109           ;;
9110         ia64*)
9111           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9112           ;;
9113         *)
9114           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9115           ;;
9116         esac
9117       else
9118         case $host_cpu in
9119         hppa*64*)
9120           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9121           ;;
9122         ia64*)
9123           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9124           ;;
9125         *)
9126
9127           # Older versions of the 11.00 compiler do not understand -b yet
9128           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9129           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9130 $as_echo_n "checking if $CC understands -b... " >&6; }
9131 if ${lt_cv_prog_compiler__b+:} false; then :
9132   $as_echo_n "(cached) " >&6
9133 else
9134   lt_cv_prog_compiler__b=no
9135    save_LDFLAGS="$LDFLAGS"
9136    LDFLAGS="$LDFLAGS -b"
9137    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9138    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9139      # The linker can only warn and ignore the option if not recognized
9140      # So say no if there are warnings
9141      if test -s conftest.err; then
9142        # Append any errors to the config.log.
9143        cat conftest.err 1>&5
9144        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9145        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9146        if diff conftest.exp conftest.er2 >/dev/null; then
9147          lt_cv_prog_compiler__b=yes
9148        fi
9149      else
9150        lt_cv_prog_compiler__b=yes
9151      fi
9152    fi
9153    $RM -r conftest*
9154    LDFLAGS="$save_LDFLAGS"
9155
9156 fi
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9158 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9159
9160 if test x"$lt_cv_prog_compiler__b" = xyes; then
9161     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9162 else
9163     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9164 fi
9165
9166           ;;
9167         esac
9168       fi
9169       if test "$with_gnu_ld" = no; then
9170         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9171         hardcode_libdir_separator=:
9172
9173         case $host_cpu in
9174         hppa*64*|ia64*)
9175           hardcode_direct=no
9176           hardcode_shlibpath_var=no
9177           ;;
9178         *)
9179           hardcode_direct=yes
9180           hardcode_direct_absolute=yes
9181           export_dynamic_flag_spec='${wl}-E'
9182
9183           # hardcode_minus_L: Not really in the search PATH,
9184           # but as the default location of the library.
9185           hardcode_minus_L=yes
9186           ;;
9187         esac
9188       fi
9189       ;;
9190
9191     irix5* | irix6* | nonstopux*)
9192       if test "$GCC" = yes; then
9193         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'
9194         # Try to use the -exported_symbol ld option, if it does not
9195         # work, assume that -exports_file does not work either and
9196         # implicitly export all symbols.
9197         # This should be the same for all languages, so no per-tag cache variable.
9198         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9199 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9200 if ${lt_cv_irix_exported_symbol+:} false; then :
9201   $as_echo_n "(cached) " >&6
9202 else
9203   save_LDFLAGS="$LDFLAGS"
9204            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9205            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9206 /* end confdefs.h.  */
9207 int foo (void) { return 0; }
9208 _ACEOF
9209 if ac_fn_c_try_link "$LINENO"; then :
9210   lt_cv_irix_exported_symbol=yes
9211 else
9212   lt_cv_irix_exported_symbol=no
9213 fi
9214 rm -f core conftest.err conftest.$ac_objext \
9215     conftest$ac_exeext conftest.$ac_ext
9216            LDFLAGS="$save_LDFLAGS"
9217 fi
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9219 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9220         if test "$lt_cv_irix_exported_symbol" = yes; then
9221           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'
9222         fi
9223       else
9224         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'
9225         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'
9226       fi
9227       archive_cmds_need_lc='no'
9228       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9229       hardcode_libdir_separator=:
9230       inherit_rpath=yes
9231       link_all_deplibs=yes
9232       ;;
9233
9234     netbsd*)
9235       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9236         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9237       else
9238         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9239       fi
9240       hardcode_libdir_flag_spec='-R$libdir'
9241       hardcode_direct=yes
9242       hardcode_shlibpath_var=no
9243       ;;
9244
9245     newsos6)
9246       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9247       hardcode_direct=yes
9248       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9249       hardcode_libdir_separator=:
9250       hardcode_shlibpath_var=no
9251       ;;
9252
9253     *nto* | *qnx*)
9254       ;;
9255
9256     openbsd*)
9257       if test -f /usr/libexec/ld.so; then
9258         hardcode_direct=yes
9259         hardcode_shlibpath_var=no
9260         hardcode_direct_absolute=yes
9261         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9262           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9263           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9264           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9265           export_dynamic_flag_spec='${wl}-E'
9266         else
9267           case $host_os in
9268            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9269              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9270              hardcode_libdir_flag_spec='-R$libdir'
9271              ;;
9272            *)
9273              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9274              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9275              ;;
9276           esac
9277         fi
9278       else
9279         ld_shlibs=no
9280       fi
9281       ;;
9282
9283     os2*)
9284       hardcode_libdir_flag_spec='-L$libdir'
9285       hardcode_minus_L=yes
9286       allow_undefined_flag=unsupported
9287       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'
9288       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9289       ;;
9290
9291     osf3*)
9292       if test "$GCC" = yes; then
9293         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9294         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'
9295       else
9296         allow_undefined_flag=' -expect_unresolved \*'
9297         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'
9298       fi
9299       archive_cmds_need_lc='no'
9300       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9301       hardcode_libdir_separator=:
9302       ;;
9303
9304     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9305       if test "$GCC" = yes; then
9306         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9307         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'
9308         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9309       else
9310         allow_undefined_flag=' -expect_unresolved \*'
9311         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'
9312         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~
9313         $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'
9314
9315         # Both c and cxx compiler support -rpath directly
9316         hardcode_libdir_flag_spec='-rpath $libdir'
9317       fi
9318       archive_cmds_need_lc='no'
9319       hardcode_libdir_separator=:
9320       ;;
9321
9322     solaris*)
9323       no_undefined_flag=' -z defs'
9324       if test "$GCC" = yes; then
9325         wlarc='${wl}'
9326         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9327         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9328           $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'
9329       else
9330         case `$CC -V 2>&1` in
9331         *"Compilers 5.0"*)
9332           wlarc=''
9333           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9334           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9335           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9336           ;;
9337         *)
9338           wlarc='${wl}'
9339           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9340           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9341           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9342           ;;
9343         esac
9344       fi
9345       hardcode_libdir_flag_spec='-R$libdir'
9346       hardcode_shlibpath_var=no
9347       case $host_os in
9348       solaris2.[0-5] | solaris2.[0-5].*) ;;
9349       *)
9350         # The compiler driver will combine and reorder linker options,
9351         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9352         # but is careful enough not to reorder.
9353         # Supported since Solaris 2.6 (maybe 2.5.1?)
9354         if test "$GCC" = yes; then
9355           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9356         else
9357           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9358         fi
9359         ;;
9360       esac
9361       link_all_deplibs=yes
9362       ;;
9363
9364     sunos4*)
9365       if test "x$host_vendor" = xsequent; then
9366         # Use $CC to link under sequent, because it throws in some extra .o
9367         # files that make .init and .fini sections work.
9368         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9369       else
9370         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9371       fi
9372       hardcode_libdir_flag_spec='-L$libdir'
9373       hardcode_direct=yes
9374       hardcode_minus_L=yes
9375       hardcode_shlibpath_var=no
9376       ;;
9377
9378     sysv4)
9379       case $host_vendor in
9380         sni)
9381           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9382           hardcode_direct=yes # is this really true???
9383         ;;
9384         siemens)
9385           ## LD is ld it makes a PLAMLIB
9386           ## CC just makes a GrossModule.
9387           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9388           reload_cmds='$CC -r -o $output$reload_objs'
9389           hardcode_direct=no
9390         ;;
9391         motorola)
9392           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9393           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9394         ;;
9395       esac
9396       runpath_var='LD_RUN_PATH'
9397       hardcode_shlibpath_var=no
9398       ;;
9399
9400     sysv4.3*)
9401       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9402       hardcode_shlibpath_var=no
9403       export_dynamic_flag_spec='-Bexport'
9404       ;;
9405
9406     sysv4*MP*)
9407       if test -d /usr/nec; then
9408         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9409         hardcode_shlibpath_var=no
9410         runpath_var=LD_RUN_PATH
9411         hardcode_runpath_var=yes
9412         ld_shlibs=yes
9413       fi
9414       ;;
9415
9416     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9417       no_undefined_flag='${wl}-z,text'
9418       archive_cmds_need_lc=no
9419       hardcode_shlibpath_var=no
9420       runpath_var='LD_RUN_PATH'
9421
9422       if test "$GCC" = yes; then
9423         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9424         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9425       else
9426         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9427         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9428       fi
9429       ;;
9430
9431     sysv5* | sco3.2v5* | sco5v6*)
9432       # Note: We can NOT use -z defs as we might desire, because we do not
9433       # link with -lc, and that would cause any symbols used from libc to
9434       # always be unresolved, which means just about no library would
9435       # ever link correctly.  If we're not using GNU ld we use -z text
9436       # though, which does catch some bad symbols but isn't as heavy-handed
9437       # as -z defs.
9438       no_undefined_flag='${wl}-z,text'
9439       allow_undefined_flag='${wl}-z,nodefs'
9440       archive_cmds_need_lc=no
9441       hardcode_shlibpath_var=no
9442       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9443       hardcode_libdir_separator=':'
9444       link_all_deplibs=yes
9445       export_dynamic_flag_spec='${wl}-Bexport'
9446       runpath_var='LD_RUN_PATH'
9447
9448       if test "$GCC" = yes; then
9449         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9450         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9451       else
9452         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9453         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9454       fi
9455       ;;
9456
9457     uts4*)
9458       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9459       hardcode_libdir_flag_spec='-L$libdir'
9460       hardcode_shlibpath_var=no
9461       ;;
9462
9463     *)
9464       ld_shlibs=no
9465       ;;
9466     esac
9467
9468     if test x$host_vendor = xsni; then
9469       case $host in
9470       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9471         export_dynamic_flag_spec='${wl}-Blargedynsym'
9472         ;;
9473       esac
9474     fi
9475   fi
9476
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9478 $as_echo "$ld_shlibs" >&6; }
9479 test "$ld_shlibs" = no && can_build_shared=no
9480
9481 with_gnu_ld=$with_gnu_ld
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497 #
9498 # Do we need to explicitly link libc?
9499 #
9500 case "x$archive_cmds_need_lc" in
9501 x|xyes)
9502   # Assume -lc should be added
9503   archive_cmds_need_lc=yes
9504
9505   if test "$enable_shared" = yes && test "$GCC" = yes; then
9506     case $archive_cmds in
9507     *'~'*)
9508       # FIXME: we may have to deal with multi-command sequences.
9509       ;;
9510     '$CC '*)
9511       # Test whether the compiler implicitly links with -lc since on some
9512       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9513       # to ld, don't add -lc before -lgcc.
9514       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9515 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9516 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9517   $as_echo_n "(cached) " >&6
9518 else
9519   $RM conftest*
9520         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9521
9522         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9523   (eval $ac_compile) 2>&5
9524   ac_status=$?
9525   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9526   test $ac_status = 0; } 2>conftest.err; then
9527           soname=conftest
9528           lib=conftest
9529           libobjs=conftest.$ac_objext
9530           deplibs=
9531           wl=$lt_prog_compiler_wl
9532           pic_flag=$lt_prog_compiler_pic
9533           compiler_flags=-v
9534           linker_flags=-v
9535           verstring=
9536           output_objdir=.
9537           libname=conftest
9538           lt_save_allow_undefined_flag=$allow_undefined_flag
9539           allow_undefined_flag=
9540           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9541   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9542   ac_status=$?
9543   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9544   test $ac_status = 0; }
9545           then
9546             lt_cv_archive_cmds_need_lc=no
9547           else
9548             lt_cv_archive_cmds_need_lc=yes
9549           fi
9550           allow_undefined_flag=$lt_save_allow_undefined_flag
9551         else
9552           cat conftest.err 1>&5
9553         fi
9554         $RM conftest*
9555
9556 fi
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9558 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9559       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9560       ;;
9561     esac
9562   fi
9563   ;;
9564 esac
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9723 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9724
9725 if test "$GCC" = yes; then
9726   case $host_os in
9727     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9728     *) lt_awk_arg="/^libraries:/" ;;
9729   esac
9730   case $host_os in
9731     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9732     *) lt_sed_strip_eq="s,=/,/,g" ;;
9733   esac
9734   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9735   case $lt_search_path_spec in
9736   *\;*)
9737     # if the path contains ";" then we assume it to be the separator
9738     # otherwise default to the standard path separator (i.e. ":") - it is
9739     # assumed that no part of a normal pathname contains ";" but that should
9740     # okay in the real world where ";" in dirpaths is itself problematic.
9741     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9742     ;;
9743   *)
9744     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9745     ;;
9746   esac
9747   # Ok, now we have the path, separated by spaces, we can step through it
9748   # and add multilib dir if necessary.
9749   lt_tmp_lt_search_path_spec=
9750   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9751   for lt_sys_path in $lt_search_path_spec; do
9752     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9753       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9754     else
9755       test -d "$lt_sys_path" && \
9756         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9757     fi
9758   done
9759   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9760 BEGIN {RS=" "; FS="/|\n";} {
9761   lt_foo="";
9762   lt_count=0;
9763   for (lt_i = NF; lt_i > 0; lt_i--) {
9764     if ($lt_i != "" && $lt_i != ".") {
9765       if ($lt_i == "..") {
9766         lt_count++;
9767       } else {
9768         if (lt_count == 0) {
9769           lt_foo="/" $lt_i lt_foo;
9770         } else {
9771           lt_count--;
9772         }
9773       }
9774     }
9775   }
9776   if (lt_foo != "") { lt_freq[lt_foo]++; }
9777   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9778 }'`
9779   # AWK program above erroneously prepends '/' to C:/dos/paths
9780   # for these hosts.
9781   case $host_os in
9782     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9783       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9784   esac
9785   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9786 else
9787   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9788 fi
9789 library_names_spec=
9790 libname_spec='lib$name'
9791 soname_spec=
9792 shrext_cmds=".so"
9793 postinstall_cmds=
9794 postuninstall_cmds=
9795 finish_cmds=
9796 finish_eval=
9797 shlibpath_var=
9798 shlibpath_overrides_runpath=unknown
9799 version_type=none
9800 dynamic_linker="$host_os ld.so"
9801 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9802 need_lib_prefix=unknown
9803 hardcode_into_libs=no
9804
9805 # when you set need_version to no, make sure it does not cause -set_version
9806 # flags to be left without arguments
9807 need_version=unknown
9808
9809 case $host_os in
9810 aix3*)
9811   version_type=linux
9812   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9813   shlibpath_var=LIBPATH
9814
9815   # AIX 3 has no versioning support, so we append a major version to the name.
9816   soname_spec='${libname}${release}${shared_ext}$major'
9817   ;;
9818
9819 aix[4-9]*)
9820   version_type=linux
9821   need_lib_prefix=no
9822   need_version=no
9823   hardcode_into_libs=yes
9824   if test "$host_cpu" = ia64; then
9825     # AIX 5 supports IA64
9826     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9827     shlibpath_var=LD_LIBRARY_PATH
9828   else
9829     # With GCC up to 2.95.x, collect2 would create an import file
9830     # for dependence libraries.  The import file would start with
9831     # the line `#! .'.  This would cause the generated library to
9832     # depend on `.', always an invalid library.  This was fixed in
9833     # development snapshots of GCC prior to 3.0.
9834     case $host_os in
9835       aix4 | aix4.[01] | aix4.[01].*)
9836       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9837            echo ' yes '
9838            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9839         :
9840       else
9841         can_build_shared=no
9842       fi
9843       ;;
9844     esac
9845     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9846     # soname into executable. Probably we can add versioning support to
9847     # collect2, so additional links can be useful in future.
9848     if test "$aix_use_runtimelinking" = yes; then
9849       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9850       # instead of lib<name>.a to let people know that these are not
9851       # typical AIX shared libraries.
9852       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9853     else
9854       # We preserve .a as extension for shared libraries through AIX4.2
9855       # and later when we are not doing run time linking.
9856       library_names_spec='${libname}${release}.a $libname.a'
9857       soname_spec='${libname}${release}${shared_ext}$major'
9858     fi
9859     shlibpath_var=LIBPATH
9860   fi
9861   ;;
9862
9863 amigaos*)
9864   case $host_cpu in
9865   powerpc)
9866     # Since July 2007 AmigaOS4 officially supports .so libraries.
9867     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9868     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9869     ;;
9870   m68k)
9871     library_names_spec='$libname.ixlibrary $libname.a'
9872     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9873     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'
9874     ;;
9875   esac
9876   ;;
9877
9878 beos*)
9879   library_names_spec='${libname}${shared_ext}'
9880   dynamic_linker="$host_os ld.so"
9881   shlibpath_var=LIBRARY_PATH
9882   ;;
9883
9884 bsdi[45]*)
9885   version_type=linux
9886   need_version=no
9887   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9888   soname_spec='${libname}${release}${shared_ext}$major'
9889   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9890   shlibpath_var=LD_LIBRARY_PATH
9891   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9892   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9893   # the default ld.so.conf also contains /usr/contrib/lib and
9894   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9895   # libtool to hard-code these into programs
9896   ;;
9897
9898 cygwin* | mingw* | pw32* | cegcc*)
9899   version_type=windows
9900   shrext_cmds=".dll"
9901   need_version=no
9902   need_lib_prefix=no
9903
9904   case $GCC,$cc_basename in
9905   yes,*)
9906     # gcc
9907     library_names_spec='$libname.dll.a'
9908     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9909     postinstall_cmds='base_file=`basename \${file}`~
9910       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9911       dldir=$destdir/`dirname \$dlpath`~
9912       test -d \$dldir || mkdir -p \$dldir~
9913       $install_prog $dir/$dlname \$dldir/$dlname~
9914       chmod a+x \$dldir/$dlname~
9915       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9916         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9917       fi'
9918     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9919       dlpath=$dir/\$dldll~
9920        $RM \$dlpath'
9921     shlibpath_overrides_runpath=yes
9922
9923     case $host_os in
9924     cygwin*)
9925       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9926       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9927
9928       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9929       ;;
9930     mingw* | cegcc*)
9931       # MinGW DLLs use traditional 'lib' prefix
9932       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9933       ;;
9934     pw32*)
9935       # pw32 DLLs use 'pw' prefix rather than 'lib'
9936       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9937       ;;
9938     esac
9939     dynamic_linker='Win32 ld.exe'
9940     ;;
9941
9942   *,cl*)
9943     # Native MSVC
9944     libname_spec='$name'
9945     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9946     library_names_spec='${libname}.dll.lib'
9947
9948     case $build_os in
9949     mingw*)
9950       sys_lib_search_path_spec=
9951       lt_save_ifs=$IFS
9952       IFS=';'
9953       for lt_path in $LIB
9954       do
9955         IFS=$lt_save_ifs
9956         # Let DOS variable expansion print the short 8.3 style file name.
9957         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9958         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9959       done
9960       IFS=$lt_save_ifs
9961       # Convert to MSYS style.
9962       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9963       ;;
9964     cygwin*)
9965       # Convert to unix form, then to dos form, then back to unix form
9966       # but this time dos style (no spaces!) so that the unix form looks
9967       # like /cygdrive/c/PROGRA~1:/cygdr...
9968       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9969       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9970       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9971       ;;
9972     *)
9973       sys_lib_search_path_spec="$LIB"
9974       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9975         # It is most probably a Windows format PATH.
9976         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9977       else
9978         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9979       fi
9980       # FIXME: find the short name or the path components, as spaces are
9981       # common. (e.g. "Program Files" -> "PROGRA~1")
9982       ;;
9983     esac
9984
9985     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9986     postinstall_cmds='base_file=`basename \${file}`~
9987       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9988       dldir=$destdir/`dirname \$dlpath`~
9989       test -d \$dldir || mkdir -p \$dldir~
9990       $install_prog $dir/$dlname \$dldir/$dlname'
9991     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9992       dlpath=$dir/\$dldll~
9993        $RM \$dlpath'
9994     shlibpath_overrides_runpath=yes
9995     dynamic_linker='Win32 link.exe'
9996     ;;
9997
9998   *)
9999     # Assume MSVC wrapper
10000     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10001     dynamic_linker='Win32 ld.exe'
10002     ;;
10003   esac
10004   # FIXME: first we should search . and the directory the executable is in
10005   shlibpath_var=PATH
10006   ;;
10007
10008 darwin* | rhapsody*)
10009   dynamic_linker="$host_os dyld"
10010   version_type=darwin
10011   need_lib_prefix=no
10012   need_version=no
10013   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10014   soname_spec='${libname}${release}${major}$shared_ext'
10015   shlibpath_overrides_runpath=yes
10016   shlibpath_var=DYLD_LIBRARY_PATH
10017   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10018
10019   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10020   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10021   ;;
10022
10023 dgux*)
10024   version_type=linux
10025   need_lib_prefix=no
10026   need_version=no
10027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10028   soname_spec='${libname}${release}${shared_ext}$major'
10029   shlibpath_var=LD_LIBRARY_PATH
10030   ;;
10031
10032 freebsd1*)
10033   dynamic_linker=no
10034   ;;
10035
10036 freebsd* | dragonfly*)
10037   # DragonFly does not have aout.  When/if they implement a new
10038   # versioning mechanism, adjust this.
10039   if test -x /usr/bin/objformat; then
10040     objformat=`/usr/bin/objformat`
10041   else
10042     case $host_os in
10043     freebsd[123]*) objformat=aout ;;
10044     *) objformat=elf ;;
10045     esac
10046   fi
10047   version_type=freebsd-$objformat
10048   case $version_type in
10049     freebsd-elf*)
10050       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10051       need_version=no
10052       need_lib_prefix=no
10053       ;;
10054     freebsd-*)
10055       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10056       need_version=yes
10057       ;;
10058   esac
10059   shlibpath_var=LD_LIBRARY_PATH
10060   case $host_os in
10061   freebsd2*)
10062     shlibpath_overrides_runpath=yes
10063     ;;
10064   freebsd3.[01]* | freebsdelf3.[01]*)
10065     shlibpath_overrides_runpath=yes
10066     hardcode_into_libs=yes
10067     ;;
10068   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10069   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10070     shlibpath_overrides_runpath=no
10071     hardcode_into_libs=yes
10072     ;;
10073   *) # from 4.6 on, and DragonFly
10074     shlibpath_overrides_runpath=yes
10075     hardcode_into_libs=yes
10076     ;;
10077   esac
10078   ;;
10079
10080 gnu*)
10081   version_type=linux
10082   need_lib_prefix=no
10083   need_version=no
10084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10085   soname_spec='${libname}${release}${shared_ext}$major'
10086   shlibpath_var=LD_LIBRARY_PATH
10087   hardcode_into_libs=yes
10088   ;;
10089
10090 haiku*)
10091   version_type=linux
10092   need_lib_prefix=no
10093   need_version=no
10094   dynamic_linker="$host_os runtime_loader"
10095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10096   soname_spec='${libname}${release}${shared_ext}$major'
10097   shlibpath_var=LIBRARY_PATH
10098   shlibpath_overrides_runpath=yes
10099   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10100   hardcode_into_libs=yes
10101   ;;
10102
10103 hpux9* | hpux10* | hpux11*)
10104   # Give a soname corresponding to the major version so that dld.sl refuses to
10105   # link against other versions.
10106   version_type=sunos
10107   need_lib_prefix=no
10108   need_version=no
10109   case $host_cpu in
10110   ia64*)
10111     shrext_cmds='.so'
10112     hardcode_into_libs=yes
10113     dynamic_linker="$host_os dld.so"
10114     shlibpath_var=LD_LIBRARY_PATH
10115     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10116     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10117     soname_spec='${libname}${release}${shared_ext}$major'
10118     if test "X$HPUX_IA64_MODE" = X32; then
10119       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10120     else
10121       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10122     fi
10123     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10124     ;;
10125   hppa*64*)
10126     shrext_cmds='.sl'
10127     hardcode_into_libs=yes
10128     dynamic_linker="$host_os dld.sl"
10129     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10130     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10131     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10132     soname_spec='${libname}${release}${shared_ext}$major'
10133     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10134     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10135     ;;
10136   *)
10137     shrext_cmds='.sl'
10138     dynamic_linker="$host_os dld.sl"
10139     shlibpath_var=SHLIB_PATH
10140     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10141     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10142     soname_spec='${libname}${release}${shared_ext}$major'
10143     ;;
10144   esac
10145   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10146   postinstall_cmds='chmod 555 $lib'
10147   # or fails outright, so override atomically:
10148   install_override_mode=555
10149   ;;
10150
10151 interix[3-9]*)
10152   version_type=linux
10153   need_lib_prefix=no
10154   need_version=no
10155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10156   soname_spec='${libname}${release}${shared_ext}$major'
10157   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10158   shlibpath_var=LD_LIBRARY_PATH
10159   shlibpath_overrides_runpath=no
10160   hardcode_into_libs=yes
10161   ;;
10162
10163 irix5* | irix6* | nonstopux*)
10164   case $host_os in
10165     nonstopux*) version_type=nonstopux ;;
10166     *)
10167         if test "$lt_cv_prog_gnu_ld" = yes; then
10168                 version_type=linux
10169         else
10170                 version_type=irix
10171         fi ;;
10172   esac
10173   need_lib_prefix=no
10174   need_version=no
10175   soname_spec='${libname}${release}${shared_ext}$major'
10176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10177   case $host_os in
10178   irix5* | nonstopux*)
10179     libsuff= shlibsuff=
10180     ;;
10181   *)
10182     case $LD in # libtool.m4 will add one of these switches to LD
10183     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10184       libsuff= shlibsuff= libmagic=32-bit;;
10185     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10186       libsuff=32 shlibsuff=N32 libmagic=N32;;
10187     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10188       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10189     *) libsuff= shlibsuff= libmagic=never-match;;
10190     esac
10191     ;;
10192   esac
10193   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10194   shlibpath_overrides_runpath=no
10195   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10196   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10197   hardcode_into_libs=yes
10198   ;;
10199
10200 # No shared lib support for Linux oldld, aout, or coff.
10201 linux*oldld* | linux*aout* | linux*coff*)
10202   dynamic_linker=no
10203   ;;
10204
10205 # This must be Linux ELF.
10206 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10207   version_type=linux
10208   need_lib_prefix=no
10209   need_version=no
10210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10211   soname_spec='${libname}${release}${shared_ext}$major'
10212   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10213   shlibpath_var=LD_LIBRARY_PATH
10214   shlibpath_overrides_runpath=no
10215
10216   # Some binutils ld are patched to set DT_RUNPATH
10217   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10218   $as_echo_n "(cached) " >&6
10219 else
10220   lt_cv_shlibpath_overrides_runpath=no
10221     save_LDFLAGS=$LDFLAGS
10222     save_libdir=$libdir
10223     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10224          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10225     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10226 /* end confdefs.h.  */
10227
10228 int
10229 main ()
10230 {
10231
10232   ;
10233   return 0;
10234 }
10235 _ACEOF
10236 if ac_fn_c_try_link "$LINENO"; then :
10237   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10238   lt_cv_shlibpath_overrides_runpath=yes
10239 fi
10240 fi
10241 rm -f core conftest.err conftest.$ac_objext \
10242     conftest$ac_exeext conftest.$ac_ext
10243     LDFLAGS=$save_LDFLAGS
10244     libdir=$save_libdir
10245
10246 fi
10247
10248   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10249
10250   # This implies no fast_install, which is unacceptable.
10251   # Some rework will be needed to allow for fast_install
10252   # before this can be enabled.
10253   hardcode_into_libs=yes
10254
10255   # Append ld.so.conf contents to the search path
10256   if test -f /etc/ld.so.conf; then
10257     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' ' '`
10258     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10259   fi
10260
10261   # We used to test for /lib/ld.so.1 and disable shared libraries on
10262   # powerpc, because MkLinux only supported shared libraries with the
10263   # GNU dynamic linker.  Since this was broken with cross compilers,
10264   # most powerpc-linux boxes support dynamic linking these days and
10265   # people can always --disable-shared, the test was removed, and we
10266   # assume the GNU/Linux dynamic linker is in use.
10267   dynamic_linker='GNU/Linux ld.so'
10268   ;;
10269
10270 netbsd*)
10271   version_type=sunos
10272   need_lib_prefix=no
10273   need_version=no
10274   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10275     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10276     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10277     dynamic_linker='NetBSD (a.out) ld.so'
10278   else
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     dynamic_linker='NetBSD ld.elf_so'
10282   fi
10283   shlibpath_var=LD_LIBRARY_PATH
10284   shlibpath_overrides_runpath=yes
10285   hardcode_into_libs=yes
10286   ;;
10287
10288 newsos6)
10289   version_type=linux
10290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10291   shlibpath_var=LD_LIBRARY_PATH
10292   shlibpath_overrides_runpath=yes
10293   ;;
10294
10295 *nto* | *qnx*)
10296   version_type=qnx
10297   need_lib_prefix=no
10298   need_version=no
10299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10300   soname_spec='${libname}${release}${shared_ext}$major'
10301   shlibpath_var=LD_LIBRARY_PATH
10302   shlibpath_overrides_runpath=no
10303   hardcode_into_libs=yes
10304   dynamic_linker='ldqnx.so'
10305   ;;
10306
10307 openbsd*)
10308   version_type=sunos
10309   sys_lib_dlsearch_path_spec="/usr/lib"
10310   need_lib_prefix=no
10311   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10312   case $host_os in
10313     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10314     *)                          need_version=no  ;;
10315   esac
10316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10317   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10318   shlibpath_var=LD_LIBRARY_PATH
10319   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10320     case $host_os in
10321       openbsd2.[89] | openbsd2.[89].*)
10322         shlibpath_overrides_runpath=no
10323         ;;
10324       *)
10325         shlibpath_overrides_runpath=yes
10326         ;;
10327       esac
10328   else
10329     shlibpath_overrides_runpath=yes
10330   fi
10331   ;;
10332
10333 os2*)
10334   libname_spec='$name'
10335   shrext_cmds=".dll"
10336   need_lib_prefix=no
10337   library_names_spec='$libname${shared_ext} $libname.a'
10338   dynamic_linker='OS/2 ld.exe'
10339   shlibpath_var=LIBPATH
10340   ;;
10341
10342 osf3* | osf4* | osf5*)
10343   version_type=osf
10344   need_lib_prefix=no
10345   need_version=no
10346   soname_spec='${libname}${release}${shared_ext}$major'
10347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10348   shlibpath_var=LD_LIBRARY_PATH
10349   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10350   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10351   ;;
10352
10353 rdos*)
10354   dynamic_linker=no
10355   ;;
10356
10357 solaris*)
10358   version_type=linux
10359   need_lib_prefix=no
10360   need_version=no
10361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10362   soname_spec='${libname}${release}${shared_ext}$major'
10363   shlibpath_var=LD_LIBRARY_PATH
10364   shlibpath_overrides_runpath=yes
10365   hardcode_into_libs=yes
10366   # ldd complains unless libraries are executable
10367   postinstall_cmds='chmod +x $lib'
10368   ;;
10369
10370 sunos4*)
10371   version_type=sunos
10372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10373   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10374   shlibpath_var=LD_LIBRARY_PATH
10375   shlibpath_overrides_runpath=yes
10376   if test "$with_gnu_ld" = yes; then
10377     need_lib_prefix=no
10378   fi
10379   need_version=yes
10380   ;;
10381
10382 sysv4 | sysv4.3*)
10383   version_type=linux
10384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10385   soname_spec='${libname}${release}${shared_ext}$major'
10386   shlibpath_var=LD_LIBRARY_PATH
10387   case $host_vendor in
10388     sni)
10389       shlibpath_overrides_runpath=no
10390       need_lib_prefix=no
10391       runpath_var=LD_RUN_PATH
10392       ;;
10393     siemens)
10394       need_lib_prefix=no
10395       ;;
10396     motorola)
10397       need_lib_prefix=no
10398       need_version=no
10399       shlibpath_overrides_runpath=no
10400       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10401       ;;
10402   esac
10403   ;;
10404
10405 sysv4*MP*)
10406   if test -d /usr/nec ;then
10407     version_type=linux
10408     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10409     soname_spec='$libname${shared_ext}.$major'
10410     shlibpath_var=LD_LIBRARY_PATH
10411   fi
10412   ;;
10413
10414 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10415   version_type=freebsd-elf
10416   need_lib_prefix=no
10417   need_version=no
10418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10419   soname_spec='${libname}${release}${shared_ext}$major'
10420   shlibpath_var=LD_LIBRARY_PATH
10421   shlibpath_overrides_runpath=yes
10422   hardcode_into_libs=yes
10423   if test "$with_gnu_ld" = yes; then
10424     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10425   else
10426     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10427     case $host_os in
10428       sco3.2v5*)
10429         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10430         ;;
10431     esac
10432   fi
10433   sys_lib_dlsearch_path_spec='/usr/lib'
10434   ;;
10435
10436 tpf*)
10437   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10438   version_type=linux
10439   need_lib_prefix=no
10440   need_version=no
10441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10442   shlibpath_var=LD_LIBRARY_PATH
10443   shlibpath_overrides_runpath=no
10444   hardcode_into_libs=yes
10445   ;;
10446
10447 uts4*)
10448   version_type=linux
10449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10450   soname_spec='${libname}${release}${shared_ext}$major'
10451   shlibpath_var=LD_LIBRARY_PATH
10452   ;;
10453
10454 *)
10455   dynamic_linker=no
10456   ;;
10457 esac
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10459 $as_echo "$dynamic_linker" >&6; }
10460 test "$dynamic_linker" = no && can_build_shared=no
10461
10462 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10463 if test "$GCC" = yes; then
10464   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10465 fi
10466
10467 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10468   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10469 fi
10470 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10471   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10472 fi
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10566 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10567 hardcode_action=
10568 if test -n "$hardcode_libdir_flag_spec" ||
10569    test -n "$runpath_var" ||
10570    test "X$hardcode_automatic" = "Xyes" ; then
10571
10572   # We can hardcode non-existent directories.
10573   if test "$hardcode_direct" != no &&
10574      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10575      # have to relink, otherwise we might link with an installed library
10576      # when we should be linking with a yet-to-be-installed one
10577      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10578      test "$hardcode_minus_L" != no; then
10579     # Linking always hardcodes the temporary library directory.
10580     hardcode_action=relink
10581   else
10582     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10583     hardcode_action=immediate
10584   fi
10585 else
10586   # We cannot hardcode anything, or else we can only hardcode existing
10587   # directories.
10588   hardcode_action=unsupported
10589 fi
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10591 $as_echo "$hardcode_action" >&6; }
10592
10593 if test "$hardcode_action" = relink ||
10594    test "$inherit_rpath" = yes; then
10595   # Fast installation is not supported
10596   enable_fast_install=no
10597 elif test "$shlibpath_overrides_runpath" = yes ||
10598      test "$enable_shared" = no; then
10599   # Fast installation is not necessary
10600   enable_fast_install=needless
10601 fi
10602
10603
10604
10605
10606
10607
10608   if test "x$enable_dlopen" != xyes; then
10609   enable_dlopen=unknown
10610   enable_dlopen_self=unknown
10611   enable_dlopen_self_static=unknown
10612 else
10613   lt_cv_dlopen=no
10614   lt_cv_dlopen_libs=
10615
10616   case $host_os in
10617   beos*)
10618     lt_cv_dlopen="load_add_on"
10619     lt_cv_dlopen_libs=
10620     lt_cv_dlopen_self=yes
10621     ;;
10622
10623   mingw* | pw32* | cegcc*)
10624     lt_cv_dlopen="LoadLibrary"
10625     lt_cv_dlopen_libs=
10626     ;;
10627
10628   cygwin*)
10629     lt_cv_dlopen="dlopen"
10630     lt_cv_dlopen_libs=
10631     ;;
10632
10633   darwin*)
10634   # if libdl is installed we need to link against it
10635     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10636 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10637 if ${ac_cv_lib_dl_dlopen+:} false; then :
10638   $as_echo_n "(cached) " >&6
10639 else
10640   ac_check_lib_save_LIBS=$LIBS
10641 LIBS="-ldl  $LIBS"
10642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10643 /* end confdefs.h.  */
10644
10645 /* Override any GCC internal prototype to avoid an error.
10646    Use char because int might match the return type of a GCC
10647    builtin and then its argument prototype would still apply.  */
10648 #ifdef __cplusplus
10649 extern "C"
10650 #endif
10651 char dlopen ();
10652 int
10653 main ()
10654 {
10655 return dlopen ();
10656   ;
10657   return 0;
10658 }
10659 _ACEOF
10660 if ac_fn_c_try_link "$LINENO"; then :
10661   ac_cv_lib_dl_dlopen=yes
10662 else
10663   ac_cv_lib_dl_dlopen=no
10664 fi
10665 rm -f core conftest.err conftest.$ac_objext \
10666     conftest$ac_exeext conftest.$ac_ext
10667 LIBS=$ac_check_lib_save_LIBS
10668 fi
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10670 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10671 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10672   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10673 else
10674
10675     lt_cv_dlopen="dyld"
10676     lt_cv_dlopen_libs=
10677     lt_cv_dlopen_self=yes
10678
10679 fi
10680
10681     ;;
10682
10683   *)
10684     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10685 if test "x$ac_cv_func_shl_load" = xyes; then :
10686   lt_cv_dlopen="shl_load"
10687 else
10688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10689 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10690 if ${ac_cv_lib_dld_shl_load+:} false; then :
10691   $as_echo_n "(cached) " >&6
10692 else
10693   ac_check_lib_save_LIBS=$LIBS
10694 LIBS="-ldld  $LIBS"
10695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10696 /* end confdefs.h.  */
10697
10698 /* Override any GCC internal prototype to avoid an error.
10699    Use char because int might match the return type of a GCC
10700    builtin and then its argument prototype would still apply.  */
10701 #ifdef __cplusplus
10702 extern "C"
10703 #endif
10704 char shl_load ();
10705 int
10706 main ()
10707 {
10708 return shl_load ();
10709   ;
10710   return 0;
10711 }
10712 _ACEOF
10713 if ac_fn_c_try_link "$LINENO"; then :
10714   ac_cv_lib_dld_shl_load=yes
10715 else
10716   ac_cv_lib_dld_shl_load=no
10717 fi
10718 rm -f core conftest.err conftest.$ac_objext \
10719     conftest$ac_exeext conftest.$ac_ext
10720 LIBS=$ac_check_lib_save_LIBS
10721 fi
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10723 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10724 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10725   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10726 else
10727   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10728 if test "x$ac_cv_func_dlopen" = xyes; then :
10729   lt_cv_dlopen="dlopen"
10730 else
10731   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10732 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10733 if ${ac_cv_lib_dl_dlopen+:} false; then :
10734   $as_echo_n "(cached) " >&6
10735 else
10736   ac_check_lib_save_LIBS=$LIBS
10737 LIBS="-ldl  $LIBS"
10738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10739 /* end confdefs.h.  */
10740
10741 /* Override any GCC internal prototype to avoid an error.
10742    Use char because int might match the return type of a GCC
10743    builtin and then its argument prototype would still apply.  */
10744 #ifdef __cplusplus
10745 extern "C"
10746 #endif
10747 char dlopen ();
10748 int
10749 main ()
10750 {
10751 return dlopen ();
10752   ;
10753   return 0;
10754 }
10755 _ACEOF
10756 if ac_fn_c_try_link "$LINENO"; then :
10757   ac_cv_lib_dl_dlopen=yes
10758 else
10759   ac_cv_lib_dl_dlopen=no
10760 fi
10761 rm -f core conftest.err conftest.$ac_objext \
10762     conftest$ac_exeext conftest.$ac_ext
10763 LIBS=$ac_check_lib_save_LIBS
10764 fi
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10766 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10767 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10768   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10769 else
10770   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10771 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10772 if ${ac_cv_lib_svld_dlopen+:} false; then :
10773   $as_echo_n "(cached) " >&6
10774 else
10775   ac_check_lib_save_LIBS=$LIBS
10776 LIBS="-lsvld  $LIBS"
10777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10778 /* end confdefs.h.  */
10779
10780 /* Override any GCC internal prototype to avoid an error.
10781    Use char because int might match the return type of a GCC
10782    builtin and then its argument prototype would still apply.  */
10783 #ifdef __cplusplus
10784 extern "C"
10785 #endif
10786 char dlopen ();
10787 int
10788 main ()
10789 {
10790 return dlopen ();
10791   ;
10792   return 0;
10793 }
10794 _ACEOF
10795 if ac_fn_c_try_link "$LINENO"; then :
10796   ac_cv_lib_svld_dlopen=yes
10797 else
10798   ac_cv_lib_svld_dlopen=no
10799 fi
10800 rm -f core conftest.err conftest.$ac_objext \
10801     conftest$ac_exeext conftest.$ac_ext
10802 LIBS=$ac_check_lib_save_LIBS
10803 fi
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10805 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10806 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10807   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10808 else
10809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10810 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10811 if ${ac_cv_lib_dld_dld_link+:} false; then :
10812   $as_echo_n "(cached) " >&6
10813 else
10814   ac_check_lib_save_LIBS=$LIBS
10815 LIBS="-ldld  $LIBS"
10816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10817 /* end confdefs.h.  */
10818
10819 /* Override any GCC internal prototype to avoid an error.
10820    Use char because int might match the return type of a GCC
10821    builtin and then its argument prototype would still apply.  */
10822 #ifdef __cplusplus
10823 extern "C"
10824 #endif
10825 char dld_link ();
10826 int
10827 main ()
10828 {
10829 return dld_link ();
10830   ;
10831   return 0;
10832 }
10833 _ACEOF
10834 if ac_fn_c_try_link "$LINENO"; then :
10835   ac_cv_lib_dld_dld_link=yes
10836 else
10837   ac_cv_lib_dld_dld_link=no
10838 fi
10839 rm -f core conftest.err conftest.$ac_objext \
10840     conftest$ac_exeext conftest.$ac_ext
10841 LIBS=$ac_check_lib_save_LIBS
10842 fi
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10844 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10845 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10846   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10847 fi
10848
10849
10850 fi
10851
10852
10853 fi
10854
10855
10856 fi
10857
10858
10859 fi
10860
10861
10862 fi
10863
10864     ;;
10865   esac
10866
10867   if test "x$lt_cv_dlopen" != xno; then
10868     enable_dlopen=yes
10869   else
10870     enable_dlopen=no
10871   fi
10872
10873   case $lt_cv_dlopen in
10874   dlopen)
10875     save_CPPFLAGS="$CPPFLAGS"
10876     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10877
10878     save_LDFLAGS="$LDFLAGS"
10879     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10880
10881     save_LIBS="$LIBS"
10882     LIBS="$lt_cv_dlopen_libs $LIBS"
10883
10884     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10885 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10886 if ${lt_cv_dlopen_self+:} false; then :
10887   $as_echo_n "(cached) " >&6
10888 else
10889           if test "$cross_compiling" = yes; then :
10890   lt_cv_dlopen_self=cross
10891 else
10892   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10893   lt_status=$lt_dlunknown
10894   cat > conftest.$ac_ext <<_LT_EOF
10895 #line $LINENO "configure"
10896 #include "confdefs.h"
10897
10898 #if HAVE_DLFCN_H
10899 #include <dlfcn.h>
10900 #endif
10901
10902 #include <stdio.h>
10903
10904 #ifdef RTLD_GLOBAL
10905 #  define LT_DLGLOBAL           RTLD_GLOBAL
10906 #else
10907 #  ifdef DL_GLOBAL
10908 #    define LT_DLGLOBAL         DL_GLOBAL
10909 #  else
10910 #    define LT_DLGLOBAL         0
10911 #  endif
10912 #endif
10913
10914 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10915    find out it does not work in some platform. */
10916 #ifndef LT_DLLAZY_OR_NOW
10917 #  ifdef RTLD_LAZY
10918 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10919 #  else
10920 #    ifdef DL_LAZY
10921 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10922 #    else
10923 #      ifdef RTLD_NOW
10924 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10925 #      else
10926 #        ifdef DL_NOW
10927 #          define LT_DLLAZY_OR_NOW      DL_NOW
10928 #        else
10929 #          define LT_DLLAZY_OR_NOW      0
10930 #        endif
10931 #      endif
10932 #    endif
10933 #  endif
10934 #endif
10935
10936 /* When -fvisbility=hidden is used, assume the code has been annotated
10937    correspondingly for the symbols needed.  */
10938 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10939 int fnord () __attribute__((visibility("default")));
10940 #endif
10941
10942 int fnord () { return 42; }
10943 int main ()
10944 {
10945   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10946   int status = $lt_dlunknown;
10947
10948   if (self)
10949     {
10950       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10951       else
10952         {
10953           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10954           else puts (dlerror ());
10955         }
10956       /* dlclose (self); */
10957     }
10958   else
10959     puts (dlerror ());
10960
10961   return status;
10962 }
10963 _LT_EOF
10964   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10965   (eval $ac_link) 2>&5
10966   ac_status=$?
10967   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10968   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10969     (./conftest; exit; ) >&5 2>/dev/null
10970     lt_status=$?
10971     case x$lt_status in
10972       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10973       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10974       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10975     esac
10976   else :
10977     # compilation failed
10978     lt_cv_dlopen_self=no
10979   fi
10980 fi
10981 rm -fr conftest*
10982
10983
10984 fi
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10986 $as_echo "$lt_cv_dlopen_self" >&6; }
10987
10988     if test "x$lt_cv_dlopen_self" = xyes; then
10989       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10990       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10991 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10992 if ${lt_cv_dlopen_self_static+:} false; then :
10993   $as_echo_n "(cached) " >&6
10994 else
10995           if test "$cross_compiling" = yes; then :
10996   lt_cv_dlopen_self_static=cross
10997 else
10998   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10999   lt_status=$lt_dlunknown
11000   cat > conftest.$ac_ext <<_LT_EOF
11001 #line $LINENO "configure"
11002 #include "confdefs.h"
11003
11004 #if HAVE_DLFCN_H
11005 #include <dlfcn.h>
11006 #endif
11007
11008 #include <stdio.h>
11009
11010 #ifdef RTLD_GLOBAL
11011 #  define LT_DLGLOBAL           RTLD_GLOBAL
11012 #else
11013 #  ifdef DL_GLOBAL
11014 #    define LT_DLGLOBAL         DL_GLOBAL
11015 #  else
11016 #    define LT_DLGLOBAL         0
11017 #  endif
11018 #endif
11019
11020 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11021    find out it does not work in some platform. */
11022 #ifndef LT_DLLAZY_OR_NOW
11023 #  ifdef RTLD_LAZY
11024 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11025 #  else
11026 #    ifdef DL_LAZY
11027 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11028 #    else
11029 #      ifdef RTLD_NOW
11030 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11031 #      else
11032 #        ifdef DL_NOW
11033 #          define LT_DLLAZY_OR_NOW      DL_NOW
11034 #        else
11035 #          define LT_DLLAZY_OR_NOW      0
11036 #        endif
11037 #      endif
11038 #    endif
11039 #  endif
11040 #endif
11041
11042 /* When -fvisbility=hidden is used, assume the code has been annotated
11043    correspondingly for the symbols needed.  */
11044 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11045 int fnord () __attribute__((visibility("default")));
11046 #endif
11047
11048 int fnord () { return 42; }
11049 int main ()
11050 {
11051   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11052   int status = $lt_dlunknown;
11053
11054   if (self)
11055     {
11056       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11057       else
11058         {
11059           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11060           else puts (dlerror ());
11061         }
11062       /* dlclose (self); */
11063     }
11064   else
11065     puts (dlerror ());
11066
11067   return status;
11068 }
11069 _LT_EOF
11070   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11071   (eval $ac_link) 2>&5
11072   ac_status=$?
11073   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11074   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11075     (./conftest; exit; ) >&5 2>/dev/null
11076     lt_status=$?
11077     case x$lt_status in
11078       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11079       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11080       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11081     esac
11082   else :
11083     # compilation failed
11084     lt_cv_dlopen_self_static=no
11085   fi
11086 fi
11087 rm -fr conftest*
11088
11089
11090 fi
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11092 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11093     fi
11094
11095     CPPFLAGS="$save_CPPFLAGS"
11096     LDFLAGS="$save_LDFLAGS"
11097     LIBS="$save_LIBS"
11098     ;;
11099   esac
11100
11101   case $lt_cv_dlopen_self in
11102   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11103   *) enable_dlopen_self=unknown ;;
11104   esac
11105
11106   case $lt_cv_dlopen_self_static in
11107   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11108   *) enable_dlopen_self_static=unknown ;;
11109   esac
11110 fi
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128 striplib=
11129 old_striplib=
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11131 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11132 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11133   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11134   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11136 $as_echo "yes" >&6; }
11137 else
11138 # FIXME - insert some real tests, host_os isn't really good enough
11139   case $host_os in
11140   darwin*)
11141     if test -n "$STRIP" ; then
11142       striplib="$STRIP -x"
11143       old_striplib="$STRIP -S"
11144       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11145 $as_echo "yes" >&6; }
11146     else
11147       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11148 $as_echo "no" >&6; }
11149     fi
11150     ;;
11151   *)
11152     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11153 $as_echo "no" >&6; }
11154     ;;
11155   esac
11156 fi
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169   # Report which library types will actually be built
11170   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11171 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11173 $as_echo "$can_build_shared" >&6; }
11174
11175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11176 $as_echo_n "checking whether to build shared libraries... " >&6; }
11177   test "$can_build_shared" = "no" && enable_shared=no
11178
11179   # On AIX, shared libraries and static libraries use the same namespace, and
11180   # are all built from PIC.
11181   case $host_os in
11182   aix3*)
11183     test "$enable_shared" = yes && enable_static=no
11184     if test -n "$RANLIB"; then
11185       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11186       postinstall_cmds='$RANLIB $lib'
11187     fi
11188     ;;
11189
11190   aix[4-9]*)
11191     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11192       test "$enable_shared" = yes && enable_static=no
11193     fi
11194     ;;
11195   esac
11196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11197 $as_echo "$enable_shared" >&6; }
11198
11199   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11200 $as_echo_n "checking whether to build static libraries... " >&6; }
11201   # Make sure either enable_shared or enable_static is yes.
11202   test "$enable_shared" = yes || enable_static=yes
11203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11204 $as_echo "$enable_static" >&6; }
11205
11206
11207
11208
11209 fi
11210 ac_ext=c
11211 ac_cpp='$CPP $CPPFLAGS'
11212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11215
11216 CC="$lt_save_CC"
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230         ac_config_commands="$ac_config_commands libtool"
11231
11232
11233
11234
11235 # Only expand once:
11236
11237
11238
11239 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11252 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11253 if ${ac_cv_prog_cc_c99+:} false; then :
11254   $as_echo_n "(cached) " >&6
11255 else
11256   ac_cv_prog_cc_c99=no
11257 ac_save_CC=$CC
11258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11259 /* end confdefs.h.  */
11260 #include <stdarg.h>
11261 #include <stdbool.h>
11262 #include <stdlib.h>
11263 #include <wchar.h>
11264 #include <stdio.h>
11265
11266 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
11267 #define debug(...) fprintf (stderr, __VA_ARGS__)
11268 #define showlist(...) puts (#__VA_ARGS__)
11269 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11270 static void
11271 test_varargs_macros (void)
11272 {
11273   int x = 1234;
11274   int y = 5678;
11275   debug ("Flag");
11276   debug ("X = %d\n", x);
11277   showlist (The first, second, and third items.);
11278   report (x>y, "x is %d but y is %d", x, y);
11279 }
11280
11281 // Check long long types.
11282 #define BIG64 18446744073709551615ull
11283 #define BIG32 4294967295ul
11284 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11285 #if !BIG_OK
11286   your preprocessor is broken;
11287 #endif
11288 #if BIG_OK
11289 #else
11290   your preprocessor is broken;
11291 #endif
11292 static long long int bignum = -9223372036854775807LL;
11293 static unsigned long long int ubignum = BIG64;
11294
11295 struct incomplete_array
11296 {
11297   int datasize;
11298   double data[];
11299 };
11300
11301 struct named_init {
11302   int number;
11303   const wchar_t *name;
11304   double average;
11305 };
11306
11307 typedef const char *ccp;
11308
11309 static inline int
11310 test_restrict (ccp restrict text)
11311 {
11312   // See if C++-style comments work.
11313   // Iterate through items via the restricted pointer.
11314   // Also check for declarations in for loops.
11315   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11316     continue;
11317   return 0;
11318 }
11319
11320 // Check varargs and va_copy.
11321 static void
11322 test_varargs (const char *format, ...)
11323 {
11324   va_list args;
11325   va_start (args, format);
11326   va_list args_copy;
11327   va_copy (args_copy, args);
11328
11329   const char *str;
11330   int number;
11331   float fnumber;
11332
11333   while (*format)
11334     {
11335       switch (*format++)
11336         {
11337         case 's': // string
11338           str = va_arg (args_copy, const char *);
11339           break;
11340         case 'd': // int
11341           number = va_arg (args_copy, int);
11342           break;
11343         case 'f': // float
11344           fnumber = va_arg (args_copy, double);
11345           break;
11346         default:
11347           break;
11348         }
11349     }
11350   va_end (args_copy);
11351   va_end (args);
11352 }
11353
11354 int
11355 main ()
11356 {
11357
11358   // Check bool.
11359   _Bool success = false;
11360
11361   // Check restrict.
11362   if (test_restrict ("String literal") == 0)
11363     success = true;
11364   char *restrict newvar = "Another string";
11365
11366   // Check varargs.
11367   test_varargs ("s, d' f .", "string", 65, 34.234);
11368   test_varargs_macros ();
11369
11370   // Check flexible array members.
11371   struct incomplete_array *ia =
11372     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11373   ia->datasize = 10;
11374   for (int i = 0; i < ia->datasize; ++i)
11375     ia->data[i] = i * 1.234;
11376
11377   // Check named initializers.
11378   struct named_init ni = {
11379     .number = 34,
11380     .name = L"Test wide string",
11381     .average = 543.34343,
11382   };
11383
11384   ni.number = 58;
11385
11386   int dynamic_array[ni.number];
11387   dynamic_array[ni.number - 1] = 543;
11388
11389   // work around unused variable warnings
11390   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11391           || dynamic_array[ni.number - 1] != 543);
11392
11393   ;
11394   return 0;
11395 }
11396 _ACEOF
11397 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11398 do
11399   CC="$ac_save_CC $ac_arg"
11400   if ac_fn_c_try_compile "$LINENO"; then :
11401   ac_cv_prog_cc_c99=$ac_arg
11402 fi
11403 rm -f core conftest.err conftest.$ac_objext
11404   test "x$ac_cv_prog_cc_c99" != "xno" && break
11405 done
11406 rm -f conftest.$ac_ext
11407 CC=$ac_save_CC
11408
11409 fi
11410 # AC_CACHE_VAL
11411 case "x$ac_cv_prog_cc_c99" in
11412   x)
11413     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11414 $as_echo "none needed" >&6; } ;;
11415   xno)
11416     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11417 $as_echo "unsupported" >&6; } ;;
11418   *)
11419     CC="$CC $ac_cv_prog_cc_c99"
11420     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11421 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11422 esac
11423 if test "x$ac_cv_prog_cc_c99" != xno; then :
11424
11425 fi
11426
11427
11428
11429
11430
11431
11432 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11433 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11434   CLANGCC="yes"
11435 else
11436   CLANGCC="no"
11437 fi
11438
11439 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11440 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11441   INTELCC="yes"
11442 else
11443   INTELCC="no"
11444 fi
11445
11446 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11447 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11448   SUNCC="yes"
11449 else
11450   SUNCC="no"
11451 fi
11452
11453
11454
11455
11456 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11457         if test -n "$ac_tool_prefix"; then
11458   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11459 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11461 $as_echo_n "checking for $ac_word... " >&6; }
11462 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11463   $as_echo_n "(cached) " >&6
11464 else
11465   case $PKG_CONFIG in
11466   [\\/]* | ?:[\\/]*)
11467   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11468   ;;
11469   *)
11470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11471 for as_dir in $PATH
11472 do
11473   IFS=$as_save_IFS
11474   test -z "$as_dir" && as_dir=.
11475     for ac_exec_ext in '' $ac_executable_extensions; do
11476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11477     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11479     break 2
11480   fi
11481 done
11482   done
11483 IFS=$as_save_IFS
11484
11485   ;;
11486 esac
11487 fi
11488 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11489 if test -n "$PKG_CONFIG"; then
11490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11491 $as_echo "$PKG_CONFIG" >&6; }
11492 else
11493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11494 $as_echo "no" >&6; }
11495 fi
11496
11497
11498 fi
11499 if test -z "$ac_cv_path_PKG_CONFIG"; then
11500   ac_pt_PKG_CONFIG=$PKG_CONFIG
11501   # Extract the first word of "pkg-config", so it can be a program name with args.
11502 set dummy pkg-config; ac_word=$2
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11504 $as_echo_n "checking for $ac_word... " >&6; }
11505 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11506   $as_echo_n "(cached) " >&6
11507 else
11508   case $ac_pt_PKG_CONFIG in
11509   [\\/]* | ?:[\\/]*)
11510   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11511   ;;
11512   *)
11513   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11514 for as_dir in $PATH
11515 do
11516   IFS=$as_save_IFS
11517   test -z "$as_dir" && as_dir=.
11518     for ac_exec_ext in '' $ac_executable_extensions; do
11519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11520     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11522     break 2
11523   fi
11524 done
11525   done
11526 IFS=$as_save_IFS
11527
11528   ;;
11529 esac
11530 fi
11531 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11532 if test -n "$ac_pt_PKG_CONFIG"; then
11533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11534 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11535 else
11536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11537 $as_echo "no" >&6; }
11538 fi
11539
11540   if test "x$ac_pt_PKG_CONFIG" = x; then
11541     PKG_CONFIG=""
11542   else
11543     case $cross_compiling:$ac_tool_warned in
11544 yes:)
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11547 ac_tool_warned=yes ;;
11548 esac
11549     PKG_CONFIG=$ac_pt_PKG_CONFIG
11550   fi
11551 else
11552   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11553 fi
11554
11555 fi
11556 if test -n "$PKG_CONFIG"; then
11557         _pkg_min_version=0.9.0
11558         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11559 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11560         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11561                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11562 $as_echo "yes" >&6; }
11563         else
11564                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11565 $as_echo "no" >&6; }
11566                 PKG_CONFIG=""
11567         fi
11568
11569 fi
11570
11571
11572
11573
11574
11575 # Check whether --enable-selective-werror was given.
11576 if test "${enable_selective_werror+set}" = set; then :
11577   enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11578 else
11579   SELECTIVE_WERROR=yes
11580 fi
11581
11582
11583
11584
11585
11586 # -v is too short to test reliably with XORG_TESTSET_CFLAG
11587 if test "x$SUNCC" = "xyes"; then
11588     BASE_CFLAGS="-v"
11589 else
11590     BASE_CFLAGS=""
11591 fi
11592
11593 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605 xorg_testset_save_CFLAGS="$CFLAGS"
11606
11607 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11608         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11609         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11610 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11611 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11612   $as_echo_n "(cached) " >&6
11613 else
11614   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11615 /* end confdefs.h.  */
11616 int i;
11617 _ACEOF
11618 if ac_fn_c_try_compile "$LINENO"; then :
11619   xorg_cv_compiler_flag_unknown_warning_option=yes
11620 else
11621   xorg_cv_compiler_flag_unknown_warning_option=no
11622 fi
11623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11624 fi
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11626 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11627         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11628         CFLAGS="$xorg_testset_save_CFLAGS"
11629 fi
11630
11631 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11632         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11633                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11634         fi
11635         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11636         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11637 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11638 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11639   $as_echo_n "(cached) " >&6
11640 else
11641   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11642 /* end confdefs.h.  */
11643 int i;
11644 _ACEOF
11645 if ac_fn_c_try_compile "$LINENO"; then :
11646   xorg_cv_compiler_flag_unused_command_line_argument=yes
11647 else
11648   xorg_cv_compiler_flag_unused_command_line_argument=no
11649 fi
11650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11651 fi
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11653 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11654         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11655         CFLAGS="$xorg_testset_save_CFLAGS"
11656 fi
11657
11658 found="no"
11659
11660         if test $found = "no" ; then
11661                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11662                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11663                 fi
11664
11665                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11666                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11667                 fi
11668
11669                 CFLAGS="$CFLAGS -Wall"
11670
11671                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
11672 $as_echo_n "checking if $CC supports -Wall... " >&6; }
11673                 cacheid=`$as_echo xorg_cv_cc_flag_-Wall`
11674                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
11675   $as_echo_n "(cached) " >&6
11676 else
11677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11678 /* end confdefs.h.  */
11679 int i;
11680 int
11681 main ()
11682 {
11683
11684   ;
11685   return 0;
11686 }
11687 _ACEOF
11688 if ac_fn_c_try_link "$LINENO"; then :
11689   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
11690 else
11691   eval `$as_echo "$cacheid" | $as_tr_sh`=no
11692 fi
11693 rm -f core conftest.err conftest.$ac_objext \
11694     conftest$ac_exeext conftest.$ac_ext
11695 fi
11696
11697
11698                 CFLAGS="$xorg_testset_save_CFLAGS"
11699
11700                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
11701                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11702 $as_echo "$supported" >&6; }
11703                 if test "$supported" = "yes" ; then
11704                         BASE_CFLAGS="$BASE_CFLAGS -Wall"
11705                         found="yes"
11706                 fi
11707         fi
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721 xorg_testset_save_CFLAGS="$CFLAGS"
11722
11723 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11724         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11725         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11726 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11727 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11728   $as_echo_n "(cached) " >&6
11729 else
11730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11731 /* end confdefs.h.  */
11732 int i;
11733 _ACEOF
11734 if ac_fn_c_try_compile "$LINENO"; then :
11735   xorg_cv_compiler_flag_unknown_warning_option=yes
11736 else
11737   xorg_cv_compiler_flag_unknown_warning_option=no
11738 fi
11739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11740 fi
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11742 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11743         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11744         CFLAGS="$xorg_testset_save_CFLAGS"
11745 fi
11746
11747 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11748         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11749                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11750         fi
11751         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11752         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11753 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11754 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11755   $as_echo_n "(cached) " >&6
11756 else
11757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11758 /* end confdefs.h.  */
11759 int i;
11760 _ACEOF
11761 if ac_fn_c_try_compile "$LINENO"; then :
11762   xorg_cv_compiler_flag_unused_command_line_argument=yes
11763 else
11764   xorg_cv_compiler_flag_unused_command_line_argument=no
11765 fi
11766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11767 fi
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11769 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11770         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11771         CFLAGS="$xorg_testset_save_CFLAGS"
11772 fi
11773
11774 found="no"
11775
11776         if test $found = "no" ; then
11777                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11778                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11779                 fi
11780
11781                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11782                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11783                 fi
11784
11785                 CFLAGS="$CFLAGS -Wpointer-arith"
11786
11787                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
11788 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
11789                 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-arith`
11790                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
11791   $as_echo_n "(cached) " >&6
11792 else
11793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11794 /* end confdefs.h.  */
11795 int i;
11796 int
11797 main ()
11798 {
11799
11800   ;
11801   return 0;
11802 }
11803 _ACEOF
11804 if ac_fn_c_try_link "$LINENO"; then :
11805   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
11806 else
11807   eval `$as_echo "$cacheid" | $as_tr_sh`=no
11808 fi
11809 rm -f core conftest.err conftest.$ac_objext \
11810     conftest$ac_exeext conftest.$ac_ext
11811 fi
11812
11813
11814                 CFLAGS="$xorg_testset_save_CFLAGS"
11815
11816                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
11817                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11818 $as_echo "$supported" >&6; }
11819                 if test "$supported" = "yes" ; then
11820                         BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
11821                         found="yes"
11822                 fi
11823         fi
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837 xorg_testset_save_CFLAGS="$CFLAGS"
11838
11839 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11840         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11841         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11842 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11843 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11844   $as_echo_n "(cached) " >&6
11845 else
11846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11847 /* end confdefs.h.  */
11848 int i;
11849 _ACEOF
11850 if ac_fn_c_try_compile "$LINENO"; then :
11851   xorg_cv_compiler_flag_unknown_warning_option=yes
11852 else
11853   xorg_cv_compiler_flag_unknown_warning_option=no
11854 fi
11855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11856 fi
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11858 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11859         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11860         CFLAGS="$xorg_testset_save_CFLAGS"
11861 fi
11862
11863 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11864         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11865                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11866         fi
11867         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11868         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11869 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11870 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11871   $as_echo_n "(cached) " >&6
11872 else
11873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11874 /* end confdefs.h.  */
11875 int i;
11876 _ACEOF
11877 if ac_fn_c_try_compile "$LINENO"; then :
11878   xorg_cv_compiler_flag_unused_command_line_argument=yes
11879 else
11880   xorg_cv_compiler_flag_unused_command_line_argument=no
11881 fi
11882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11883 fi
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11885 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11886         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11887         CFLAGS="$xorg_testset_save_CFLAGS"
11888 fi
11889
11890 found="no"
11891
11892         if test $found = "no" ; then
11893                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11894                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11895                 fi
11896
11897                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11898                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11899                 fi
11900
11901                 CFLAGS="$CFLAGS -Wmissing-declarations"
11902
11903                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
11904 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
11905                 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-declarations`
11906                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
11907   $as_echo_n "(cached) " >&6
11908 else
11909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11910 /* end confdefs.h.  */
11911 int i;
11912 int
11913 main ()
11914 {
11915
11916   ;
11917   return 0;
11918 }
11919 _ACEOF
11920 if ac_fn_c_try_link "$LINENO"; then :
11921   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
11922 else
11923   eval `$as_echo "$cacheid" | $as_tr_sh`=no
11924 fi
11925 rm -f core conftest.err conftest.$ac_objext \
11926     conftest$ac_exeext conftest.$ac_ext
11927 fi
11928
11929
11930                 CFLAGS="$xorg_testset_save_CFLAGS"
11931
11932                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
11933                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11934 $as_echo "$supported" >&6; }
11935                 if test "$supported" = "yes" ; then
11936                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
11937                         found="yes"
11938                 fi
11939         fi
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953 xorg_testset_save_CFLAGS="$CFLAGS"
11954
11955 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11956         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11957         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11958 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11959 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11960   $as_echo_n "(cached) " >&6
11961 else
11962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11963 /* end confdefs.h.  */
11964 int i;
11965 _ACEOF
11966 if ac_fn_c_try_compile "$LINENO"; then :
11967   xorg_cv_compiler_flag_unknown_warning_option=yes
11968 else
11969   xorg_cv_compiler_flag_unknown_warning_option=no
11970 fi
11971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11972 fi
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11974 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11975         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11976         CFLAGS="$xorg_testset_save_CFLAGS"
11977 fi
11978
11979 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11980         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11981                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11982         fi
11983         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11984         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11985 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11986 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11987   $as_echo_n "(cached) " >&6
11988 else
11989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11990 /* end confdefs.h.  */
11991 int i;
11992 _ACEOF
11993 if ac_fn_c_try_compile "$LINENO"; then :
11994   xorg_cv_compiler_flag_unused_command_line_argument=yes
11995 else
11996   xorg_cv_compiler_flag_unused_command_line_argument=no
11997 fi
11998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11999 fi
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12001 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12002         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12003         CFLAGS="$xorg_testset_save_CFLAGS"
12004 fi
12005
12006 found="no"
12007
12008         if test $found = "no" ; then
12009                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12010                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12011                 fi
12012
12013                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12014                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12015                 fi
12016
12017                 CFLAGS="$CFLAGS -Wformat=2"
12018
12019                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12020 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12021                 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat=2`
12022                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12023   $as_echo_n "(cached) " >&6
12024 else
12025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12026 /* end confdefs.h.  */
12027 int i;
12028 int
12029 main ()
12030 {
12031
12032   ;
12033   return 0;
12034 }
12035 _ACEOF
12036 if ac_fn_c_try_link "$LINENO"; then :
12037   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12038 else
12039   eval `$as_echo "$cacheid" | $as_tr_sh`=no
12040 fi
12041 rm -f core conftest.err conftest.$ac_objext \
12042     conftest$ac_exeext conftest.$ac_ext
12043 fi
12044
12045
12046                 CFLAGS="$xorg_testset_save_CFLAGS"
12047
12048                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12049                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12050 $as_echo "$supported" >&6; }
12051                 if test "$supported" = "yes" ; then
12052                         BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12053                         found="yes"
12054                 fi
12055         fi
12056
12057         if test $found = "no" ; then
12058                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12059                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12060                 fi
12061
12062                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12063                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12064                 fi
12065
12066                 CFLAGS="$CFLAGS -Wformat"
12067
12068                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12069 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12070                 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat`
12071                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12072   $as_echo_n "(cached) " >&6
12073 else
12074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12075 /* end confdefs.h.  */
12076 int i;
12077 int
12078 main ()
12079 {
12080
12081   ;
12082   return 0;
12083 }
12084 _ACEOF
12085 if ac_fn_c_try_link "$LINENO"; then :
12086   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12087 else
12088   eval `$as_echo "$cacheid" | $as_tr_sh`=no
12089 fi
12090 rm -f core conftest.err conftest.$ac_objext \
12091     conftest$ac_exeext conftest.$ac_ext
12092 fi
12093
12094
12095                 CFLAGS="$xorg_testset_save_CFLAGS"
12096
12097                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12098                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12099 $as_echo "$supported" >&6; }
12100                 if test "$supported" = "yes" ; then
12101                         BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12102                         found="yes"
12103                 fi
12104         fi
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120 xorg_testset_save_CFLAGS="$CFLAGS"
12121
12122 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12123         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12124         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12125 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12126 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12127   $as_echo_n "(cached) " >&6
12128 else
12129   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12130 /* end confdefs.h.  */
12131 int i;
12132 _ACEOF
12133 if ac_fn_c_try_compile "$LINENO"; then :
12134   xorg_cv_compiler_flag_unknown_warning_option=yes
12135 else
12136   xorg_cv_compiler_flag_unknown_warning_option=no
12137 fi
12138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12139 fi
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12141 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12142         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12143         CFLAGS="$xorg_testset_save_CFLAGS"
12144 fi
12145
12146 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12147         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12148                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12149         fi
12150         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12151         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12152 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12153 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12154   $as_echo_n "(cached) " >&6
12155 else
12156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12157 /* end confdefs.h.  */
12158 int i;
12159 _ACEOF
12160 if ac_fn_c_try_compile "$LINENO"; then :
12161   xorg_cv_compiler_flag_unused_command_line_argument=yes
12162 else
12163   xorg_cv_compiler_flag_unused_command_line_argument=no
12164 fi
12165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12166 fi
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12168 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12169         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12170         CFLAGS="$xorg_testset_save_CFLAGS"
12171 fi
12172
12173 found="no"
12174
12175         if test $found = "no" ; then
12176                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12177                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12178                 fi
12179
12180                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12181                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12182                 fi
12183
12184                 CFLAGS="$CFLAGS -Wstrict-prototypes"
12185
12186                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12187 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12188                 cacheid=`$as_echo xorg_cv_cc_flag_-Wstrict-prototypes`
12189                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12190   $as_echo_n "(cached) " >&6
12191 else
12192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12193 /* end confdefs.h.  */
12194 int i;
12195 int
12196 main ()
12197 {
12198
12199   ;
12200   return 0;
12201 }
12202 _ACEOF
12203 if ac_fn_c_try_link "$LINENO"; then :
12204   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12205 else
12206   eval `$as_echo "$cacheid" | $as_tr_sh`=no
12207 fi
12208 rm -f core conftest.err conftest.$ac_objext \
12209     conftest$ac_exeext conftest.$ac_ext
12210 fi
12211
12212
12213                 CFLAGS="$xorg_testset_save_CFLAGS"
12214
12215                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12216                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12217 $as_echo "$supported" >&6; }
12218                 if test "$supported" = "yes" ; then
12219                         BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12220                         found="yes"
12221                 fi
12222         fi
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236 xorg_testset_save_CFLAGS="$CFLAGS"
12237
12238 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12239         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12240         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12241 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12242 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12243   $as_echo_n "(cached) " >&6
12244 else
12245   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12246 /* end confdefs.h.  */
12247 int i;
12248 _ACEOF
12249 if ac_fn_c_try_compile "$LINENO"; then :
12250   xorg_cv_compiler_flag_unknown_warning_option=yes
12251 else
12252   xorg_cv_compiler_flag_unknown_warning_option=no
12253 fi
12254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12255 fi
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12257 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12258         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12259         CFLAGS="$xorg_testset_save_CFLAGS"
12260 fi
12261
12262 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12263         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12264                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12265         fi
12266         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12267         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12268 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12269 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12270   $as_echo_n "(cached) " >&6
12271 else
12272   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12273 /* end confdefs.h.  */
12274 int i;
12275 _ACEOF
12276 if ac_fn_c_try_compile "$LINENO"; then :
12277   xorg_cv_compiler_flag_unused_command_line_argument=yes
12278 else
12279   xorg_cv_compiler_flag_unused_command_line_argument=no
12280 fi
12281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12282 fi
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12284 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12285         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12286         CFLAGS="$xorg_testset_save_CFLAGS"
12287 fi
12288
12289 found="no"
12290
12291         if test $found = "no" ; then
12292                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12293                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12294                 fi
12295
12296                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12297                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12298                 fi
12299
12300                 CFLAGS="$CFLAGS -Wmissing-prototypes"
12301
12302                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12303 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12304                 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-prototypes`
12305                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12306   $as_echo_n "(cached) " >&6
12307 else
12308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12309 /* end confdefs.h.  */
12310 int i;
12311 int
12312 main ()
12313 {
12314
12315   ;
12316   return 0;
12317 }
12318 _ACEOF
12319 if ac_fn_c_try_link "$LINENO"; then :
12320   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12321 else
12322   eval `$as_echo "$cacheid" | $as_tr_sh`=no
12323 fi
12324 rm -f core conftest.err conftest.$ac_objext \
12325     conftest$ac_exeext conftest.$ac_ext
12326 fi
12327
12328
12329                 CFLAGS="$xorg_testset_save_CFLAGS"
12330
12331                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12332                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12333 $as_echo "$supported" >&6; }
12334                 if test "$supported" = "yes" ; then
12335                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12336                         found="yes"
12337                 fi
12338         fi
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352 xorg_testset_save_CFLAGS="$CFLAGS"
12353
12354 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12355         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12356         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12357 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12358 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12359   $as_echo_n "(cached) " >&6
12360 else
12361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12362 /* end confdefs.h.  */
12363 int i;
12364 _ACEOF
12365 if ac_fn_c_try_compile "$LINENO"; then :
12366   xorg_cv_compiler_flag_unknown_warning_option=yes
12367 else
12368   xorg_cv_compiler_flag_unknown_warning_option=no
12369 fi
12370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12371 fi
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12373 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12374         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12375         CFLAGS="$xorg_testset_save_CFLAGS"
12376 fi
12377
12378 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12379         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12380                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12381         fi
12382         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12383         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12384 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12385 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12386   $as_echo_n "(cached) " >&6
12387 else
12388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12389 /* end confdefs.h.  */
12390 int i;
12391 _ACEOF
12392 if ac_fn_c_try_compile "$LINENO"; then :
12393   xorg_cv_compiler_flag_unused_command_line_argument=yes
12394 else
12395   xorg_cv_compiler_flag_unused_command_line_argument=no
12396 fi
12397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12398 fi
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12400 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12401         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12402         CFLAGS="$xorg_testset_save_CFLAGS"
12403 fi
12404
12405 found="no"
12406
12407         if test $found = "no" ; then
12408                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12409                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12410                 fi
12411
12412                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12413                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12414                 fi
12415
12416                 CFLAGS="$CFLAGS -Wnested-externs"
12417
12418                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12419 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12420                 cacheid=`$as_echo xorg_cv_cc_flag_-Wnested-externs`
12421                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12422   $as_echo_n "(cached) " >&6
12423 else
12424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12425 /* end confdefs.h.  */
12426 int i;
12427 int
12428 main ()
12429 {
12430
12431   ;
12432   return 0;
12433 }
12434 _ACEOF
12435 if ac_fn_c_try_link "$LINENO"; then :
12436   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12437 else
12438   eval `$as_echo "$cacheid" | $as_tr_sh`=no
12439 fi
12440 rm -f core conftest.err conftest.$ac_objext \
12441     conftest$ac_exeext conftest.$ac_ext
12442 fi
12443
12444
12445                 CFLAGS="$xorg_testset_save_CFLAGS"
12446
12447                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12448                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12449 $as_echo "$supported" >&6; }
12450                 if test "$supported" = "yes" ; then
12451                         BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12452                         found="yes"
12453                 fi
12454         fi
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468 xorg_testset_save_CFLAGS="$CFLAGS"
12469
12470 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12471         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12472         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12473 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12474 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12475   $as_echo_n "(cached) " >&6
12476 else
12477   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12478 /* end confdefs.h.  */
12479 int i;
12480 _ACEOF
12481 if ac_fn_c_try_compile "$LINENO"; then :
12482   xorg_cv_compiler_flag_unknown_warning_option=yes
12483 else
12484   xorg_cv_compiler_flag_unknown_warning_option=no
12485 fi
12486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12487 fi
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12489 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12490         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12491         CFLAGS="$xorg_testset_save_CFLAGS"
12492 fi
12493
12494 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12495         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12496                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12497         fi
12498         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12499         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12500 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12501 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12502   $as_echo_n "(cached) " >&6
12503 else
12504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12505 /* end confdefs.h.  */
12506 int i;
12507 _ACEOF
12508 if ac_fn_c_try_compile "$LINENO"; then :
12509   xorg_cv_compiler_flag_unused_command_line_argument=yes
12510 else
12511   xorg_cv_compiler_flag_unused_command_line_argument=no
12512 fi
12513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12514 fi
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12516 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12517         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12518         CFLAGS="$xorg_testset_save_CFLAGS"
12519 fi
12520
12521 found="no"
12522
12523         if test $found = "no" ; then
12524                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12525                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12526                 fi
12527
12528                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12529                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12530                 fi
12531
12532                 CFLAGS="$CFLAGS -Wbad-function-cast"
12533
12534                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12535 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12536                 cacheid=`$as_echo xorg_cv_cc_flag_-Wbad-function-cast`
12537                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12538   $as_echo_n "(cached) " >&6
12539 else
12540   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12541 /* end confdefs.h.  */
12542 int i;
12543 int
12544 main ()
12545 {
12546
12547   ;
12548   return 0;
12549 }
12550 _ACEOF
12551 if ac_fn_c_try_link "$LINENO"; then :
12552   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12553 else
12554   eval `$as_echo "$cacheid" | $as_tr_sh`=no
12555 fi
12556 rm -f core conftest.err conftest.$ac_objext \
12557     conftest$ac_exeext conftest.$ac_ext
12558 fi
12559
12560
12561                 CFLAGS="$xorg_testset_save_CFLAGS"
12562
12563                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12564                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12565 $as_echo "$supported" >&6; }
12566                 if test "$supported" = "yes" ; then
12567                         BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12568                         found="yes"
12569                 fi
12570         fi
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584 xorg_testset_save_CFLAGS="$CFLAGS"
12585
12586 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12587         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12588         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12589 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12590 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12591   $as_echo_n "(cached) " >&6
12592 else
12593   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12594 /* end confdefs.h.  */
12595 int i;
12596 _ACEOF
12597 if ac_fn_c_try_compile "$LINENO"; then :
12598   xorg_cv_compiler_flag_unknown_warning_option=yes
12599 else
12600   xorg_cv_compiler_flag_unknown_warning_option=no
12601 fi
12602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12603 fi
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12605 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12606         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12607         CFLAGS="$xorg_testset_save_CFLAGS"
12608 fi
12609
12610 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12611         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12612                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12613         fi
12614         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12615         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12616 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12617 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12618   $as_echo_n "(cached) " >&6
12619 else
12620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12621 /* end confdefs.h.  */
12622 int i;
12623 _ACEOF
12624 if ac_fn_c_try_compile "$LINENO"; then :
12625   xorg_cv_compiler_flag_unused_command_line_argument=yes
12626 else
12627   xorg_cv_compiler_flag_unused_command_line_argument=no
12628 fi
12629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12630 fi
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12632 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12633         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12634         CFLAGS="$xorg_testset_save_CFLAGS"
12635 fi
12636
12637 found="no"
12638
12639         if test $found = "no" ; then
12640                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12641                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12642                 fi
12643
12644                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12645                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12646                 fi
12647
12648                 CFLAGS="$CFLAGS -Wold-style-definition"
12649
12650                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12651 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12652                 cacheid=`$as_echo xorg_cv_cc_flag_-Wold-style-definition`
12653                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12654   $as_echo_n "(cached) " >&6
12655 else
12656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12657 /* end confdefs.h.  */
12658 int i;
12659 int
12660 main ()
12661 {
12662
12663   ;
12664   return 0;
12665 }
12666 _ACEOF
12667 if ac_fn_c_try_link "$LINENO"; then :
12668   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12669 else
12670   eval `$as_echo "$cacheid" | $as_tr_sh`=no
12671 fi
12672 rm -f core conftest.err conftest.$ac_objext \
12673     conftest$ac_exeext conftest.$ac_ext
12674 fi
12675
12676
12677                 CFLAGS="$xorg_testset_save_CFLAGS"
12678
12679                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12680                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12681 $as_echo "$supported" >&6; }
12682                 if test "$supported" = "yes" ; then
12683                         BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12684                         found="yes"
12685                 fi
12686         fi
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700 xorg_testset_save_CFLAGS="$CFLAGS"
12701
12702 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12703         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12704         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12705 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12706 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12707   $as_echo_n "(cached) " >&6
12708 else
12709   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12710 /* end confdefs.h.  */
12711 int i;
12712 _ACEOF
12713 if ac_fn_c_try_compile "$LINENO"; then :
12714   xorg_cv_compiler_flag_unknown_warning_option=yes
12715 else
12716   xorg_cv_compiler_flag_unknown_warning_option=no
12717 fi
12718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12719 fi
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12721 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12722         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12723         CFLAGS="$xorg_testset_save_CFLAGS"
12724 fi
12725
12726 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12727         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12728                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12729         fi
12730         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12731         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12732 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12733 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12734   $as_echo_n "(cached) " >&6
12735 else
12736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12737 /* end confdefs.h.  */
12738 int i;
12739 _ACEOF
12740 if ac_fn_c_try_compile "$LINENO"; then :
12741   xorg_cv_compiler_flag_unused_command_line_argument=yes
12742 else
12743   xorg_cv_compiler_flag_unused_command_line_argument=no
12744 fi
12745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12746 fi
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12748 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12749         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12750         CFLAGS="$xorg_testset_save_CFLAGS"
12751 fi
12752
12753 found="no"
12754
12755         if test $found = "no" ; then
12756                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12757                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12758                 fi
12759
12760                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12761                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12762                 fi
12763
12764                 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12765
12766                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
12767 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
12768                 cacheid=`$as_echo xorg_cv_cc_flag_-Wdeclaration-after-statement`
12769                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12770   $as_echo_n "(cached) " >&6
12771 else
12772   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12773 /* end confdefs.h.  */
12774 int i;
12775 int
12776 main ()
12777 {
12778
12779   ;
12780   return 0;
12781 }
12782 _ACEOF
12783 if ac_fn_c_try_link "$LINENO"; then :
12784   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12785 else
12786   eval `$as_echo "$cacheid" | $as_tr_sh`=no
12787 fi
12788 rm -f core conftest.err conftest.$ac_objext \
12789     conftest$ac_exeext conftest.$ac_ext
12790 fi
12791
12792
12793                 CFLAGS="$xorg_testset_save_CFLAGS"
12794
12795                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12796                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12797 $as_echo "$supported" >&6; }
12798                 if test "$supported" = "yes" ; then
12799                         BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
12800                         found="yes"
12801                 fi
12802         fi
12803
12804
12805
12806
12807
12808 # This chunk adds additional warnings that could catch undesired effects.
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820 xorg_testset_save_CFLAGS="$CFLAGS"
12821
12822 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12823         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12824         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12825 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12826 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12827   $as_echo_n "(cached) " >&6
12828 else
12829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12830 /* end confdefs.h.  */
12831 int i;
12832 _ACEOF
12833 if ac_fn_c_try_compile "$LINENO"; then :
12834   xorg_cv_compiler_flag_unknown_warning_option=yes
12835 else
12836   xorg_cv_compiler_flag_unknown_warning_option=no
12837 fi
12838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12839 fi
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12841 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12842         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12843         CFLAGS="$xorg_testset_save_CFLAGS"
12844 fi
12845
12846 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12847         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12848                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12849         fi
12850         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12851         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12852 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12853 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12854   $as_echo_n "(cached) " >&6
12855 else
12856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12857 /* end confdefs.h.  */
12858 int i;
12859 _ACEOF
12860 if ac_fn_c_try_compile "$LINENO"; then :
12861   xorg_cv_compiler_flag_unused_command_line_argument=yes
12862 else
12863   xorg_cv_compiler_flag_unused_command_line_argument=no
12864 fi
12865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12866 fi
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12868 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12869         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12870         CFLAGS="$xorg_testset_save_CFLAGS"
12871 fi
12872
12873 found="no"
12874
12875         if test $found = "no" ; then
12876                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12877                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12878                 fi
12879
12880                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12881                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12882                 fi
12883
12884                 CFLAGS="$CFLAGS -Wunused"
12885
12886                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
12887 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
12888                 cacheid=`$as_echo xorg_cv_cc_flag_-Wunused`
12889                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12890   $as_echo_n "(cached) " >&6
12891 else
12892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12893 /* end confdefs.h.  */
12894 int i;
12895 int
12896 main ()
12897 {
12898
12899   ;
12900   return 0;
12901 }
12902 _ACEOF
12903 if ac_fn_c_try_link "$LINENO"; then :
12904   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12905 else
12906   eval `$as_echo "$cacheid" | $as_tr_sh`=no
12907 fi
12908 rm -f core conftest.err conftest.$ac_objext \
12909     conftest$ac_exeext conftest.$ac_ext
12910 fi
12911
12912
12913                 CFLAGS="$xorg_testset_save_CFLAGS"
12914
12915                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12916                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12917 $as_echo "$supported" >&6; }
12918                 if test "$supported" = "yes" ; then
12919                         BASE_CFLAGS="$BASE_CFLAGS -Wunused"
12920                         found="yes"
12921                 fi
12922         fi
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936 xorg_testset_save_CFLAGS="$CFLAGS"
12937
12938 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12939         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12940         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12941 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12942 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12943   $as_echo_n "(cached) " >&6
12944 else
12945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12946 /* end confdefs.h.  */
12947 int i;
12948 _ACEOF
12949 if ac_fn_c_try_compile "$LINENO"; then :
12950   xorg_cv_compiler_flag_unknown_warning_option=yes
12951 else
12952   xorg_cv_compiler_flag_unknown_warning_option=no
12953 fi
12954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12955 fi
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12957 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12958         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12959         CFLAGS="$xorg_testset_save_CFLAGS"
12960 fi
12961
12962 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12963         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12964                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12965         fi
12966         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12967         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12968 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12969 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12970   $as_echo_n "(cached) " >&6
12971 else
12972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12973 /* end confdefs.h.  */
12974 int i;
12975 _ACEOF
12976 if ac_fn_c_try_compile "$LINENO"; then :
12977   xorg_cv_compiler_flag_unused_command_line_argument=yes
12978 else
12979   xorg_cv_compiler_flag_unused_command_line_argument=no
12980 fi
12981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12982 fi
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12984 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12985         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12986         CFLAGS="$xorg_testset_save_CFLAGS"
12987 fi
12988
12989 found="no"
12990
12991         if test $found = "no" ; then
12992                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12993                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12994                 fi
12995
12996                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12997                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12998                 fi
12999
13000                 CFLAGS="$CFLAGS -Wuninitialized"
13001
13002                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13003 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13004                 cacheid=`$as_echo xorg_cv_cc_flag_-Wuninitialized`
13005                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13006   $as_echo_n "(cached) " >&6
13007 else
13008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13009 /* end confdefs.h.  */
13010 int i;
13011 int
13012 main ()
13013 {
13014
13015   ;
13016   return 0;
13017 }
13018 _ACEOF
13019 if ac_fn_c_try_link "$LINENO"; then :
13020   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13021 else
13022   eval `$as_echo "$cacheid" | $as_tr_sh`=no
13023 fi
13024 rm -f core conftest.err conftest.$ac_objext \
13025     conftest$ac_exeext conftest.$ac_ext
13026 fi
13027
13028
13029                 CFLAGS="$xorg_testset_save_CFLAGS"
13030
13031                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13032                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13033 $as_echo "$supported" >&6; }
13034                 if test "$supported" = "yes" ; then
13035                         BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13036                         found="yes"
13037                 fi
13038         fi
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052 xorg_testset_save_CFLAGS="$CFLAGS"
13053
13054 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13055         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13056         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13057 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13058 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13059   $as_echo_n "(cached) " >&6
13060 else
13061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13062 /* end confdefs.h.  */
13063 int i;
13064 _ACEOF
13065 if ac_fn_c_try_compile "$LINENO"; then :
13066   xorg_cv_compiler_flag_unknown_warning_option=yes
13067 else
13068   xorg_cv_compiler_flag_unknown_warning_option=no
13069 fi
13070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13071 fi
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13073 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13074         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13075         CFLAGS="$xorg_testset_save_CFLAGS"
13076 fi
13077
13078 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13079         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13080                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13081         fi
13082         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13083         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13084 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13085 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13086   $as_echo_n "(cached) " >&6
13087 else
13088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13089 /* end confdefs.h.  */
13090 int i;
13091 _ACEOF
13092 if ac_fn_c_try_compile "$LINENO"; then :
13093   xorg_cv_compiler_flag_unused_command_line_argument=yes
13094 else
13095   xorg_cv_compiler_flag_unused_command_line_argument=no
13096 fi
13097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13098 fi
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13100 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13101         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13102         CFLAGS="$xorg_testset_save_CFLAGS"
13103 fi
13104
13105 found="no"
13106
13107         if test $found = "no" ; then
13108                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13109                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13110                 fi
13111
13112                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13113                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13114                 fi
13115
13116                 CFLAGS="$CFLAGS -Wshadow"
13117
13118                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13119 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13120                 cacheid=`$as_echo xorg_cv_cc_flag_-Wshadow`
13121                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13122   $as_echo_n "(cached) " >&6
13123 else
13124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13125 /* end confdefs.h.  */
13126 int i;
13127 int
13128 main ()
13129 {
13130
13131   ;
13132   return 0;
13133 }
13134 _ACEOF
13135 if ac_fn_c_try_link "$LINENO"; then :
13136   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13137 else
13138   eval `$as_echo "$cacheid" | $as_tr_sh`=no
13139 fi
13140 rm -f core conftest.err conftest.$ac_objext \
13141     conftest$ac_exeext conftest.$ac_ext
13142 fi
13143
13144
13145                 CFLAGS="$xorg_testset_save_CFLAGS"
13146
13147                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13148                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13149 $as_echo "$supported" >&6; }
13150                 if test "$supported" = "yes" ; then
13151                         BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13152                         found="yes"
13153                 fi
13154         fi
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168 xorg_testset_save_CFLAGS="$CFLAGS"
13169
13170 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13171         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13172         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13173 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13174 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13175   $as_echo_n "(cached) " >&6
13176 else
13177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13178 /* end confdefs.h.  */
13179 int i;
13180 _ACEOF
13181 if ac_fn_c_try_compile "$LINENO"; then :
13182   xorg_cv_compiler_flag_unknown_warning_option=yes
13183 else
13184   xorg_cv_compiler_flag_unknown_warning_option=no
13185 fi
13186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13187 fi
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13189 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13190         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13191         CFLAGS="$xorg_testset_save_CFLAGS"
13192 fi
13193
13194 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13195         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13196                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13197         fi
13198         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13199         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13200 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13201 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} 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 _ACEOF
13208 if ac_fn_c_try_compile "$LINENO"; then :
13209   xorg_cv_compiler_flag_unused_command_line_argument=yes
13210 else
13211   xorg_cv_compiler_flag_unused_command_line_argument=no
13212 fi
13213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13214 fi
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13216 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13217         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13218         CFLAGS="$xorg_testset_save_CFLAGS"
13219 fi
13220
13221 found="no"
13222
13223         if test $found = "no" ; then
13224                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13225                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13226                 fi
13227
13228                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13229                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13230                 fi
13231
13232                 CFLAGS="$CFLAGS -Wcast-qual"
13233
13234                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
13235 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
13236                 cacheid=`$as_echo xorg_cv_cc_flag_-Wcast-qual`
13237                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13238   $as_echo_n "(cached) " >&6
13239 else
13240   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13241 /* end confdefs.h.  */
13242 int i;
13243 int
13244 main ()
13245 {
13246
13247   ;
13248   return 0;
13249 }
13250 _ACEOF
13251 if ac_fn_c_try_link "$LINENO"; then :
13252   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13253 else
13254   eval `$as_echo "$cacheid" | $as_tr_sh`=no
13255 fi
13256 rm -f core conftest.err conftest.$ac_objext \
13257     conftest$ac_exeext conftest.$ac_ext
13258 fi
13259
13260
13261                 CFLAGS="$xorg_testset_save_CFLAGS"
13262
13263                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13264                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13265 $as_echo "$supported" >&6; }
13266                 if test "$supported" = "yes" ; then
13267                         BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13268                         found="yes"
13269                 fi
13270         fi
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284 xorg_testset_save_CFLAGS="$CFLAGS"
13285
13286 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13287         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13288         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13289 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13290 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13291   $as_echo_n "(cached) " >&6
13292 else
13293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13294 /* end confdefs.h.  */
13295 int i;
13296 _ACEOF
13297 if ac_fn_c_try_compile "$LINENO"; then :
13298   xorg_cv_compiler_flag_unknown_warning_option=yes
13299 else
13300   xorg_cv_compiler_flag_unknown_warning_option=no
13301 fi
13302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13303 fi
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13305 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13306         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13307         CFLAGS="$xorg_testset_save_CFLAGS"
13308 fi
13309
13310 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13311         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13312                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13313         fi
13314         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13315         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13316 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13317 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13318   $as_echo_n "(cached) " >&6
13319 else
13320   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13321 /* end confdefs.h.  */
13322 int i;
13323 _ACEOF
13324 if ac_fn_c_try_compile "$LINENO"; then :
13325   xorg_cv_compiler_flag_unused_command_line_argument=yes
13326 else
13327   xorg_cv_compiler_flag_unused_command_line_argument=no
13328 fi
13329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13330 fi
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13332 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13333         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13334         CFLAGS="$xorg_testset_save_CFLAGS"
13335 fi
13336
13337 found="no"
13338
13339         if test $found = "no" ; then
13340                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13341                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13342                 fi
13343
13344                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13345                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13346                 fi
13347
13348                 CFLAGS="$CFLAGS -Wmissing-noreturn"
13349
13350                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13351 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13352                 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-noreturn`
13353                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13354   $as_echo_n "(cached) " >&6
13355 else
13356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13357 /* end confdefs.h.  */
13358 int i;
13359 int
13360 main ()
13361 {
13362
13363   ;
13364   return 0;
13365 }
13366 _ACEOF
13367 if ac_fn_c_try_link "$LINENO"; then :
13368   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13369 else
13370   eval `$as_echo "$cacheid" | $as_tr_sh`=no
13371 fi
13372 rm -f core conftest.err conftest.$ac_objext \
13373     conftest$ac_exeext conftest.$ac_ext
13374 fi
13375
13376
13377                 CFLAGS="$xorg_testset_save_CFLAGS"
13378
13379                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13380                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13381 $as_echo "$supported" >&6; }
13382                 if test "$supported" = "yes" ; then
13383                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13384                         found="yes"
13385                 fi
13386         fi
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400 xorg_testset_save_CFLAGS="$CFLAGS"
13401
13402 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13403         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13404         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13405 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13406 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13407   $as_echo_n "(cached) " >&6
13408 else
13409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13410 /* end confdefs.h.  */
13411 int i;
13412 _ACEOF
13413 if ac_fn_c_try_compile "$LINENO"; then :
13414   xorg_cv_compiler_flag_unknown_warning_option=yes
13415 else
13416   xorg_cv_compiler_flag_unknown_warning_option=no
13417 fi
13418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13419 fi
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13421 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13422         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13423         CFLAGS="$xorg_testset_save_CFLAGS"
13424 fi
13425
13426 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13427         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13428                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13429         fi
13430         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13431         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13432 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13433 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13434   $as_echo_n "(cached) " >&6
13435 else
13436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13437 /* end confdefs.h.  */
13438 int i;
13439 _ACEOF
13440 if ac_fn_c_try_compile "$LINENO"; then :
13441   xorg_cv_compiler_flag_unused_command_line_argument=yes
13442 else
13443   xorg_cv_compiler_flag_unused_command_line_argument=no
13444 fi
13445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13446 fi
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13448 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13449         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13450         CFLAGS="$xorg_testset_save_CFLAGS"
13451 fi
13452
13453 found="no"
13454
13455         if test $found = "no" ; then
13456                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13457                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13458                 fi
13459
13460                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13461                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13462                 fi
13463
13464                 CFLAGS="$CFLAGS -Wmissing-format-attribute"
13465
13466                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13467 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13468                 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-format-attribute`
13469                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13470   $as_echo_n "(cached) " >&6
13471 else
13472   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13473 /* end confdefs.h.  */
13474 int i;
13475 int
13476 main ()
13477 {
13478
13479   ;
13480   return 0;
13481 }
13482 _ACEOF
13483 if ac_fn_c_try_link "$LINENO"; then :
13484   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13485 else
13486   eval `$as_echo "$cacheid" | $as_tr_sh`=no
13487 fi
13488 rm -f core conftest.err conftest.$ac_objext \
13489     conftest$ac_exeext conftest.$ac_ext
13490 fi
13491
13492
13493                 CFLAGS="$xorg_testset_save_CFLAGS"
13494
13495                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13496                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13497 $as_echo "$supported" >&6; }
13498                 if test "$supported" = "yes" ; then
13499                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13500                         found="yes"
13501                 fi
13502         fi
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516 xorg_testset_save_CFLAGS="$CFLAGS"
13517
13518 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13519         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13520         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13521 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13522 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13523   $as_echo_n "(cached) " >&6
13524 else
13525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13526 /* end confdefs.h.  */
13527 int i;
13528 _ACEOF
13529 if ac_fn_c_try_compile "$LINENO"; then :
13530   xorg_cv_compiler_flag_unknown_warning_option=yes
13531 else
13532   xorg_cv_compiler_flag_unknown_warning_option=no
13533 fi
13534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13535 fi
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13537 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13538         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13539         CFLAGS="$xorg_testset_save_CFLAGS"
13540 fi
13541
13542 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13543         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13544                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13545         fi
13546         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13547         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13548 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13549 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13550   $as_echo_n "(cached) " >&6
13551 else
13552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13553 /* end confdefs.h.  */
13554 int i;
13555 _ACEOF
13556 if ac_fn_c_try_compile "$LINENO"; then :
13557   xorg_cv_compiler_flag_unused_command_line_argument=yes
13558 else
13559   xorg_cv_compiler_flag_unused_command_line_argument=no
13560 fi
13561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13562 fi
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13564 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13565         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13566         CFLAGS="$xorg_testset_save_CFLAGS"
13567 fi
13568
13569 found="no"
13570
13571         if test $found = "no" ; then
13572                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13573                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13574                 fi
13575
13576                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13577                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13578                 fi
13579
13580                 CFLAGS="$CFLAGS -Wredundant-decls"
13581
13582                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13583 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13584                 cacheid=`$as_echo xorg_cv_cc_flag_-Wredundant-decls`
13585                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13586   $as_echo_n "(cached) " >&6
13587 else
13588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13589 /* end confdefs.h.  */
13590 int i;
13591 int
13592 main ()
13593 {
13594
13595   ;
13596   return 0;
13597 }
13598 _ACEOF
13599 if ac_fn_c_try_link "$LINENO"; then :
13600   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13601 else
13602   eval `$as_echo "$cacheid" | $as_tr_sh`=no
13603 fi
13604 rm -f core conftest.err conftest.$ac_objext \
13605     conftest$ac_exeext conftest.$ac_ext
13606 fi
13607
13608
13609                 CFLAGS="$xorg_testset_save_CFLAGS"
13610
13611                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13612                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13613 $as_echo "$supported" >&6; }
13614                 if test "$supported" = "yes" ; then
13615                         BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13616                         found="yes"
13617                 fi
13618         fi
13619
13620
13621
13622 # These are currently disabled because they are noisy.  They will be enabled
13623 # in the future once the codebase is sufficiently modernized to silence
13624 # them.  For now, I don't want them to drown out the other warnings.
13625 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
13626 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13627 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13628
13629 # Turn some warnings into errors, so we don't accidently get successful builds
13630 # when there are problems that should be fixed.
13631
13632 if test "x$SELECTIVE_WERROR" = "xyes" ; then
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644 xorg_testset_save_CFLAGS="$CFLAGS"
13645
13646 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13647         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13648         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13649 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13650 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13651   $as_echo_n "(cached) " >&6
13652 else
13653   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13654 /* end confdefs.h.  */
13655 int i;
13656 _ACEOF
13657 if ac_fn_c_try_compile "$LINENO"; then :
13658   xorg_cv_compiler_flag_unknown_warning_option=yes
13659 else
13660   xorg_cv_compiler_flag_unknown_warning_option=no
13661 fi
13662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13663 fi
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13665 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13666         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13667         CFLAGS="$xorg_testset_save_CFLAGS"
13668 fi
13669
13670 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13671         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13672                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13673         fi
13674         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13675         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13676 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13677 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13678   $as_echo_n "(cached) " >&6
13679 else
13680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13681 /* end confdefs.h.  */
13682 int i;
13683 _ACEOF
13684 if ac_fn_c_try_compile "$LINENO"; then :
13685   xorg_cv_compiler_flag_unused_command_line_argument=yes
13686 else
13687   xorg_cv_compiler_flag_unused_command_line_argument=no
13688 fi
13689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13690 fi
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13692 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13693         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13694         CFLAGS="$xorg_testset_save_CFLAGS"
13695 fi
13696
13697 found="no"
13698
13699         if test $found = "no" ; then
13700                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13701                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13702                 fi
13703
13704                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13705                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13706                 fi
13707
13708                 CFLAGS="$CFLAGS -Werror=implicit"
13709
13710                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
13711 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
13712                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=implicit`
13713                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13714   $as_echo_n "(cached) " >&6
13715 else
13716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13717 /* end confdefs.h.  */
13718 int i;
13719 int
13720 main ()
13721 {
13722
13723   ;
13724   return 0;
13725 }
13726 _ACEOF
13727 if ac_fn_c_try_link "$LINENO"; then :
13728   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13729 else
13730   eval `$as_echo "$cacheid" | $as_tr_sh`=no
13731 fi
13732 rm -f core conftest.err conftest.$ac_objext \
13733     conftest$ac_exeext conftest.$ac_ext
13734 fi
13735
13736
13737                 CFLAGS="$xorg_testset_save_CFLAGS"
13738
13739                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13740                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13741 $as_echo "$supported" >&6; }
13742                 if test "$supported" = "yes" ; then
13743                         BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
13744                         found="yes"
13745                 fi
13746         fi
13747
13748         if test $found = "no" ; then
13749                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13750                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13751                 fi
13752
13753                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13754                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13755                 fi
13756
13757                 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13758
13759                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
13760 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
13761                 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED`
13762                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13763   $as_echo_n "(cached) " >&6
13764 else
13765   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13766 /* end confdefs.h.  */
13767 int i;
13768 int
13769 main ()
13770 {
13771
13772   ;
13773   return 0;
13774 }
13775 _ACEOF
13776 if ac_fn_c_try_link "$LINENO"; then :
13777   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13778 else
13779   eval `$as_echo "$cacheid" | $as_tr_sh`=no
13780 fi
13781 rm -f core conftest.err conftest.$ac_objext \
13782     conftest$ac_exeext conftest.$ac_ext
13783 fi
13784
13785
13786                 CFLAGS="$xorg_testset_save_CFLAGS"
13787
13788                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13789                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13790 $as_echo "$supported" >&6; }
13791                 if test "$supported" = "yes" ; then
13792                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13793                         found="yes"
13794                 fi
13795         fi
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809 xorg_testset_save_CFLAGS="$CFLAGS"
13810
13811 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13812         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13813         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13814 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13815 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13816   $as_echo_n "(cached) " >&6
13817 else
13818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13819 /* end confdefs.h.  */
13820 int i;
13821 _ACEOF
13822 if ac_fn_c_try_compile "$LINENO"; then :
13823   xorg_cv_compiler_flag_unknown_warning_option=yes
13824 else
13825   xorg_cv_compiler_flag_unknown_warning_option=no
13826 fi
13827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13828 fi
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13830 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13831         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13832         CFLAGS="$xorg_testset_save_CFLAGS"
13833 fi
13834
13835 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13836         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13837                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13838         fi
13839         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13840         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13841 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13842 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13843   $as_echo_n "(cached) " >&6
13844 else
13845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13846 /* end confdefs.h.  */
13847 int i;
13848 _ACEOF
13849 if ac_fn_c_try_compile "$LINENO"; then :
13850   xorg_cv_compiler_flag_unused_command_line_argument=yes
13851 else
13852   xorg_cv_compiler_flag_unused_command_line_argument=no
13853 fi
13854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13855 fi
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13857 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13858         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13859         CFLAGS="$xorg_testset_save_CFLAGS"
13860 fi
13861
13862 found="no"
13863
13864         if test $found = "no" ; then
13865                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13866                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13867                 fi
13868
13869                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13870                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13871                 fi
13872
13873                 CFLAGS="$CFLAGS -Werror=nonnull"
13874
13875                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
13876 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
13877                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=nonnull`
13878                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13879   $as_echo_n "(cached) " >&6
13880 else
13881   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13882 /* end confdefs.h.  */
13883 int i;
13884 int
13885 main ()
13886 {
13887
13888   ;
13889   return 0;
13890 }
13891 _ACEOF
13892 if ac_fn_c_try_link "$LINENO"; then :
13893   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13894 else
13895   eval `$as_echo "$cacheid" | $as_tr_sh`=no
13896 fi
13897 rm -f core conftest.err conftest.$ac_objext \
13898     conftest$ac_exeext conftest.$ac_ext
13899 fi
13900
13901
13902                 CFLAGS="$xorg_testset_save_CFLAGS"
13903
13904                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13905                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13906 $as_echo "$supported" >&6; }
13907                 if test "$supported" = "yes" ; then
13908                         BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
13909                         found="yes"
13910                 fi
13911         fi
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925 xorg_testset_save_CFLAGS="$CFLAGS"
13926
13927 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13928         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13929         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13930 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13931 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13932   $as_echo_n "(cached) " >&6
13933 else
13934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13935 /* end confdefs.h.  */
13936 int i;
13937 _ACEOF
13938 if ac_fn_c_try_compile "$LINENO"; then :
13939   xorg_cv_compiler_flag_unknown_warning_option=yes
13940 else
13941   xorg_cv_compiler_flag_unknown_warning_option=no
13942 fi
13943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13944 fi
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13946 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13947         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13948         CFLAGS="$xorg_testset_save_CFLAGS"
13949 fi
13950
13951 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13952         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13953                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13954         fi
13955         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13956         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13957 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13958 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13959   $as_echo_n "(cached) " >&6
13960 else
13961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13962 /* end confdefs.h.  */
13963 int i;
13964 _ACEOF
13965 if ac_fn_c_try_compile "$LINENO"; then :
13966   xorg_cv_compiler_flag_unused_command_line_argument=yes
13967 else
13968   xorg_cv_compiler_flag_unused_command_line_argument=no
13969 fi
13970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13971 fi
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13973 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13974         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13975         CFLAGS="$xorg_testset_save_CFLAGS"
13976 fi
13977
13978 found="no"
13979
13980         if test $found = "no" ; then
13981                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13982                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13983                 fi
13984
13985                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13986                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13987                 fi
13988
13989                 CFLAGS="$CFLAGS -Werror=init-self"
13990
13991                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
13992 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
13993                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=init-self`
13994                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13995   $as_echo_n "(cached) " >&6
13996 else
13997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13998 /* end confdefs.h.  */
13999 int i;
14000 int
14001 main ()
14002 {
14003
14004   ;
14005   return 0;
14006 }
14007 _ACEOF
14008 if ac_fn_c_try_link "$LINENO"; then :
14009   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14010 else
14011   eval `$as_echo "$cacheid" | $as_tr_sh`=no
14012 fi
14013 rm -f core conftest.err conftest.$ac_objext \
14014     conftest$ac_exeext conftest.$ac_ext
14015 fi
14016
14017
14018                 CFLAGS="$xorg_testset_save_CFLAGS"
14019
14020                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14021                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14022 $as_echo "$supported" >&6; }
14023                 if test "$supported" = "yes" ; then
14024                         BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14025                         found="yes"
14026                 fi
14027         fi
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041 xorg_testset_save_CFLAGS="$CFLAGS"
14042
14043 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14044         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14045         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14046 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14047 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14048   $as_echo_n "(cached) " >&6
14049 else
14050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14051 /* end confdefs.h.  */
14052 int i;
14053 _ACEOF
14054 if ac_fn_c_try_compile "$LINENO"; then :
14055   xorg_cv_compiler_flag_unknown_warning_option=yes
14056 else
14057   xorg_cv_compiler_flag_unknown_warning_option=no
14058 fi
14059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14060 fi
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14062 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14063         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14064         CFLAGS="$xorg_testset_save_CFLAGS"
14065 fi
14066
14067 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14068         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14069                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14070         fi
14071         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14072         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14073 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14074 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14075   $as_echo_n "(cached) " >&6
14076 else
14077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14078 /* end confdefs.h.  */
14079 int i;
14080 _ACEOF
14081 if ac_fn_c_try_compile "$LINENO"; then :
14082   xorg_cv_compiler_flag_unused_command_line_argument=yes
14083 else
14084   xorg_cv_compiler_flag_unused_command_line_argument=no
14085 fi
14086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14087 fi
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14089 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14090         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14091         CFLAGS="$xorg_testset_save_CFLAGS"
14092 fi
14093
14094 found="no"
14095
14096         if test $found = "no" ; then
14097                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14098                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14099                 fi
14100
14101                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14102                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14103                 fi
14104
14105                 CFLAGS="$CFLAGS -Werror=main"
14106
14107                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14108 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14109                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=main`
14110                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14111   $as_echo_n "(cached) " >&6
14112 else
14113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14114 /* end confdefs.h.  */
14115 int i;
14116 int
14117 main ()
14118 {
14119
14120   ;
14121   return 0;
14122 }
14123 _ACEOF
14124 if ac_fn_c_try_link "$LINENO"; then :
14125   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14126 else
14127   eval `$as_echo "$cacheid" | $as_tr_sh`=no
14128 fi
14129 rm -f core conftest.err conftest.$ac_objext \
14130     conftest$ac_exeext conftest.$ac_ext
14131 fi
14132
14133
14134                 CFLAGS="$xorg_testset_save_CFLAGS"
14135
14136                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14137                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14138 $as_echo "$supported" >&6; }
14139                 if test "$supported" = "yes" ; then
14140                         BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14141                         found="yes"
14142                 fi
14143         fi
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157 xorg_testset_save_CFLAGS="$CFLAGS"
14158
14159 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14160         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14161         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14162 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14163 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14164   $as_echo_n "(cached) " >&6
14165 else
14166   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14167 /* end confdefs.h.  */
14168 int i;
14169 _ACEOF
14170 if ac_fn_c_try_compile "$LINENO"; then :
14171   xorg_cv_compiler_flag_unknown_warning_option=yes
14172 else
14173   xorg_cv_compiler_flag_unknown_warning_option=no
14174 fi
14175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14176 fi
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14178 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14179         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14180         CFLAGS="$xorg_testset_save_CFLAGS"
14181 fi
14182
14183 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14184         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14185                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14186         fi
14187         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14188         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14189 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14190 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14191   $as_echo_n "(cached) " >&6
14192 else
14193   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14194 /* end confdefs.h.  */
14195 int i;
14196 _ACEOF
14197 if ac_fn_c_try_compile "$LINENO"; then :
14198   xorg_cv_compiler_flag_unused_command_line_argument=yes
14199 else
14200   xorg_cv_compiler_flag_unused_command_line_argument=no
14201 fi
14202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14203 fi
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14205 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14206         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14207         CFLAGS="$xorg_testset_save_CFLAGS"
14208 fi
14209
14210 found="no"
14211
14212         if test $found = "no" ; then
14213                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14214                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14215                 fi
14216
14217                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14218                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14219                 fi
14220
14221                 CFLAGS="$CFLAGS -Werror=missing-braces"
14222
14223                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14224 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14225                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=missing-braces`
14226                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14227   $as_echo_n "(cached) " >&6
14228 else
14229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14230 /* end confdefs.h.  */
14231 int i;
14232 int
14233 main ()
14234 {
14235
14236   ;
14237   return 0;
14238 }
14239 _ACEOF
14240 if ac_fn_c_try_link "$LINENO"; then :
14241   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14242 else
14243   eval `$as_echo "$cacheid" | $as_tr_sh`=no
14244 fi
14245 rm -f core conftest.err conftest.$ac_objext \
14246     conftest$ac_exeext conftest.$ac_ext
14247 fi
14248
14249
14250                 CFLAGS="$xorg_testset_save_CFLAGS"
14251
14252                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14253                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14254 $as_echo "$supported" >&6; }
14255                 if test "$supported" = "yes" ; then
14256                         BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14257                         found="yes"
14258                 fi
14259         fi
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273 xorg_testset_save_CFLAGS="$CFLAGS"
14274
14275 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14276         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14277         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14278 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14279 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14280   $as_echo_n "(cached) " >&6
14281 else
14282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14283 /* end confdefs.h.  */
14284 int i;
14285 _ACEOF
14286 if ac_fn_c_try_compile "$LINENO"; then :
14287   xorg_cv_compiler_flag_unknown_warning_option=yes
14288 else
14289   xorg_cv_compiler_flag_unknown_warning_option=no
14290 fi
14291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14292 fi
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14294 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14295         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14296         CFLAGS="$xorg_testset_save_CFLAGS"
14297 fi
14298
14299 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14300         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14301                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14302         fi
14303         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14304         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14305 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14306 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14307   $as_echo_n "(cached) " >&6
14308 else
14309   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14310 /* end confdefs.h.  */
14311 int i;
14312 _ACEOF
14313 if ac_fn_c_try_compile "$LINENO"; then :
14314   xorg_cv_compiler_flag_unused_command_line_argument=yes
14315 else
14316   xorg_cv_compiler_flag_unused_command_line_argument=no
14317 fi
14318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14319 fi
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14321 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14322         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14323         CFLAGS="$xorg_testset_save_CFLAGS"
14324 fi
14325
14326 found="no"
14327
14328         if test $found = "no" ; then
14329                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14330                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14331                 fi
14332
14333                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14334                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14335                 fi
14336
14337                 CFLAGS="$CFLAGS -Werror=sequence-point"
14338
14339                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14340 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14341                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=sequence-point`
14342                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14343   $as_echo_n "(cached) " >&6
14344 else
14345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14346 /* end confdefs.h.  */
14347 int i;
14348 int
14349 main ()
14350 {
14351
14352   ;
14353   return 0;
14354 }
14355 _ACEOF
14356 if ac_fn_c_try_link "$LINENO"; then :
14357   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14358 else
14359   eval `$as_echo "$cacheid" | $as_tr_sh`=no
14360 fi
14361 rm -f core conftest.err conftest.$ac_objext \
14362     conftest$ac_exeext conftest.$ac_ext
14363 fi
14364
14365
14366                 CFLAGS="$xorg_testset_save_CFLAGS"
14367
14368                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14369                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14370 $as_echo "$supported" >&6; }
14371                 if test "$supported" = "yes" ; then
14372                         BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14373                         found="yes"
14374                 fi
14375         fi
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389 xorg_testset_save_CFLAGS="$CFLAGS"
14390
14391 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14392         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14393         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14394 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14395 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14396   $as_echo_n "(cached) " >&6
14397 else
14398   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14399 /* end confdefs.h.  */
14400 int i;
14401 _ACEOF
14402 if ac_fn_c_try_compile "$LINENO"; then :
14403   xorg_cv_compiler_flag_unknown_warning_option=yes
14404 else
14405   xorg_cv_compiler_flag_unknown_warning_option=no
14406 fi
14407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14408 fi
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14410 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14411         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14412         CFLAGS="$xorg_testset_save_CFLAGS"
14413 fi
14414
14415 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14416         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14417                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14418         fi
14419         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14420         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14421 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14422 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14423   $as_echo_n "(cached) " >&6
14424 else
14425   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14426 /* end confdefs.h.  */
14427 int i;
14428 _ACEOF
14429 if ac_fn_c_try_compile "$LINENO"; then :
14430   xorg_cv_compiler_flag_unused_command_line_argument=yes
14431 else
14432   xorg_cv_compiler_flag_unused_command_line_argument=no
14433 fi
14434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14435 fi
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14437 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14438         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14439         CFLAGS="$xorg_testset_save_CFLAGS"
14440 fi
14441
14442 found="no"
14443
14444         if test $found = "no" ; then
14445                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14446                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14447                 fi
14448
14449                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14450                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14451                 fi
14452
14453                 CFLAGS="$CFLAGS -Werror=return-type"
14454
14455                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14456 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14457                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=return-type`
14458                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14459   $as_echo_n "(cached) " >&6
14460 else
14461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14462 /* end confdefs.h.  */
14463 int i;
14464 int
14465 main ()
14466 {
14467
14468   ;
14469   return 0;
14470 }
14471 _ACEOF
14472 if ac_fn_c_try_link "$LINENO"; then :
14473   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14474 else
14475   eval `$as_echo "$cacheid" | $as_tr_sh`=no
14476 fi
14477 rm -f core conftest.err conftest.$ac_objext \
14478     conftest$ac_exeext conftest.$ac_ext
14479 fi
14480
14481
14482                 CFLAGS="$xorg_testset_save_CFLAGS"
14483
14484                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14485                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14486 $as_echo "$supported" >&6; }
14487                 if test "$supported" = "yes" ; then
14488                         BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14489                         found="yes"
14490                 fi
14491         fi
14492
14493         if test $found = "no" ; then
14494                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14495                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14496                 fi
14497
14498                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14499                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14500                 fi
14501
14502                 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14503
14504                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14505 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14506                 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT`
14507                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14508   $as_echo_n "(cached) " >&6
14509 else
14510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14511 /* end confdefs.h.  */
14512 int i;
14513 int
14514 main ()
14515 {
14516
14517   ;
14518   return 0;
14519 }
14520 _ACEOF
14521 if ac_fn_c_try_link "$LINENO"; then :
14522   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14523 else
14524   eval `$as_echo "$cacheid" | $as_tr_sh`=no
14525 fi
14526 rm -f core conftest.err conftest.$ac_objext \
14527     conftest$ac_exeext conftest.$ac_ext
14528 fi
14529
14530
14531                 CFLAGS="$xorg_testset_save_CFLAGS"
14532
14533                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14534                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14535 $as_echo "$supported" >&6; }
14536                 if test "$supported" = "yes" ; then
14537                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14538                         found="yes"
14539                 fi
14540         fi
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554 xorg_testset_save_CFLAGS="$CFLAGS"
14555
14556 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14557         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14558         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14559 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14560 if ${xorg_cv_compiler_flag_unknown_warning_option+:} 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 _ACEOF
14567 if ac_fn_c_try_compile "$LINENO"; then :
14568   xorg_cv_compiler_flag_unknown_warning_option=yes
14569 else
14570   xorg_cv_compiler_flag_unknown_warning_option=no
14571 fi
14572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14573 fi
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14575 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14576         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14577         CFLAGS="$xorg_testset_save_CFLAGS"
14578 fi
14579
14580 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14581         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14582                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14583         fi
14584         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14585         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14586 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14587 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14588   $as_echo_n "(cached) " >&6
14589 else
14590   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14591 /* end confdefs.h.  */
14592 int i;
14593 _ACEOF
14594 if ac_fn_c_try_compile "$LINENO"; then :
14595   xorg_cv_compiler_flag_unused_command_line_argument=yes
14596 else
14597   xorg_cv_compiler_flag_unused_command_line_argument=no
14598 fi
14599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14600 fi
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14602 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14603         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14604         CFLAGS="$xorg_testset_save_CFLAGS"
14605 fi
14606
14607 found="no"
14608
14609         if test $found = "no" ; then
14610                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14611                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14612                 fi
14613
14614                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14615                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14616                 fi
14617
14618                 CFLAGS="$CFLAGS -Werror=trigraphs"
14619
14620                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14621 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14622                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=trigraphs`
14623                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14624   $as_echo_n "(cached) " >&6
14625 else
14626   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14627 /* end confdefs.h.  */
14628 int i;
14629 int
14630 main ()
14631 {
14632
14633   ;
14634   return 0;
14635 }
14636 _ACEOF
14637 if ac_fn_c_try_link "$LINENO"; then :
14638   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14639 else
14640   eval `$as_echo "$cacheid" | $as_tr_sh`=no
14641 fi
14642 rm -f core conftest.err conftest.$ac_objext \
14643     conftest$ac_exeext conftest.$ac_ext
14644 fi
14645
14646
14647                 CFLAGS="$xorg_testset_save_CFLAGS"
14648
14649                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14650                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14651 $as_echo "$supported" >&6; }
14652                 if test "$supported" = "yes" ; then
14653                         BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14654                         found="yes"
14655                 fi
14656         fi
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670 xorg_testset_save_CFLAGS="$CFLAGS"
14671
14672 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14673         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14674         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14675 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14676 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14677   $as_echo_n "(cached) " >&6
14678 else
14679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14680 /* end confdefs.h.  */
14681 int i;
14682 _ACEOF
14683 if ac_fn_c_try_compile "$LINENO"; then :
14684   xorg_cv_compiler_flag_unknown_warning_option=yes
14685 else
14686   xorg_cv_compiler_flag_unknown_warning_option=no
14687 fi
14688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14689 fi
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14691 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14692         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14693         CFLAGS="$xorg_testset_save_CFLAGS"
14694 fi
14695
14696 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14697         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14698                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14699         fi
14700         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14701         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14702 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14703 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14704   $as_echo_n "(cached) " >&6
14705 else
14706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14707 /* end confdefs.h.  */
14708 int i;
14709 _ACEOF
14710 if ac_fn_c_try_compile "$LINENO"; then :
14711   xorg_cv_compiler_flag_unused_command_line_argument=yes
14712 else
14713   xorg_cv_compiler_flag_unused_command_line_argument=no
14714 fi
14715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14716 fi
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14718 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14719         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14720         CFLAGS="$xorg_testset_save_CFLAGS"
14721 fi
14722
14723 found="no"
14724
14725         if test $found = "no" ; then
14726                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14727                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14728                 fi
14729
14730                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14731                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14732                 fi
14733
14734                 CFLAGS="$CFLAGS -Werror=array-bounds"
14735
14736                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
14737 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
14738                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=array-bounds`
14739                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14740   $as_echo_n "(cached) " >&6
14741 else
14742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14743 /* end confdefs.h.  */
14744 int i;
14745 int
14746 main ()
14747 {
14748
14749   ;
14750   return 0;
14751 }
14752 _ACEOF
14753 if ac_fn_c_try_link "$LINENO"; then :
14754   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14755 else
14756   eval `$as_echo "$cacheid" | $as_tr_sh`=no
14757 fi
14758 rm -f core conftest.err conftest.$ac_objext \
14759     conftest$ac_exeext conftest.$ac_ext
14760 fi
14761
14762
14763                 CFLAGS="$xorg_testset_save_CFLAGS"
14764
14765                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14766                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14767 $as_echo "$supported" >&6; }
14768                 if test "$supported" = "yes" ; then
14769                         BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
14770                         found="yes"
14771                 fi
14772         fi
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786 xorg_testset_save_CFLAGS="$CFLAGS"
14787
14788 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14789         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14790         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14791 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14792 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14793   $as_echo_n "(cached) " >&6
14794 else
14795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14796 /* end confdefs.h.  */
14797 int i;
14798 _ACEOF
14799 if ac_fn_c_try_compile "$LINENO"; then :
14800   xorg_cv_compiler_flag_unknown_warning_option=yes
14801 else
14802   xorg_cv_compiler_flag_unknown_warning_option=no
14803 fi
14804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14805 fi
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14807 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14808         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14809         CFLAGS="$xorg_testset_save_CFLAGS"
14810 fi
14811
14812 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14813         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14814                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14815         fi
14816         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14817         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14818 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14819 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14820   $as_echo_n "(cached) " >&6
14821 else
14822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14823 /* end confdefs.h.  */
14824 int i;
14825 _ACEOF
14826 if ac_fn_c_try_compile "$LINENO"; then :
14827   xorg_cv_compiler_flag_unused_command_line_argument=yes
14828 else
14829   xorg_cv_compiler_flag_unused_command_line_argument=no
14830 fi
14831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14832 fi
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14834 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14835         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14836         CFLAGS="$xorg_testset_save_CFLAGS"
14837 fi
14838
14839 found="no"
14840
14841         if test $found = "no" ; then
14842                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14843                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14844                 fi
14845
14846                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14847                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14848                 fi
14849
14850                 CFLAGS="$CFLAGS -Werror=write-strings"
14851
14852                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
14853 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
14854                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=write-strings`
14855                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14856   $as_echo_n "(cached) " >&6
14857 else
14858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14859 /* end confdefs.h.  */
14860 int i;
14861 int
14862 main ()
14863 {
14864
14865   ;
14866   return 0;
14867 }
14868 _ACEOF
14869 if ac_fn_c_try_link "$LINENO"; then :
14870   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14871 else
14872   eval `$as_echo "$cacheid" | $as_tr_sh`=no
14873 fi
14874 rm -f core conftest.err conftest.$ac_objext \
14875     conftest$ac_exeext conftest.$ac_ext
14876 fi
14877
14878
14879                 CFLAGS="$xorg_testset_save_CFLAGS"
14880
14881                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14882                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14883 $as_echo "$supported" >&6; }
14884                 if test "$supported" = "yes" ; then
14885                         BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
14886                         found="yes"
14887                 fi
14888         fi
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902 xorg_testset_save_CFLAGS="$CFLAGS"
14903
14904 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14905         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14906         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14907 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14908 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14909   $as_echo_n "(cached) " >&6
14910 else
14911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14912 /* end confdefs.h.  */
14913 int i;
14914 _ACEOF
14915 if ac_fn_c_try_compile "$LINENO"; then :
14916   xorg_cv_compiler_flag_unknown_warning_option=yes
14917 else
14918   xorg_cv_compiler_flag_unknown_warning_option=no
14919 fi
14920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14921 fi
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14923 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14924         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14925         CFLAGS="$xorg_testset_save_CFLAGS"
14926 fi
14927
14928 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14929         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14930                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14931         fi
14932         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14933         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14934 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14935 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14936   $as_echo_n "(cached) " >&6
14937 else
14938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14939 /* end confdefs.h.  */
14940 int i;
14941 _ACEOF
14942 if ac_fn_c_try_compile "$LINENO"; then :
14943   xorg_cv_compiler_flag_unused_command_line_argument=yes
14944 else
14945   xorg_cv_compiler_flag_unused_command_line_argument=no
14946 fi
14947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14948 fi
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14950 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14951         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14952         CFLAGS="$xorg_testset_save_CFLAGS"
14953 fi
14954
14955 found="no"
14956
14957         if test $found = "no" ; then
14958                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14959                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14960                 fi
14961
14962                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14963                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14964                 fi
14965
14966                 CFLAGS="$CFLAGS -Werror=address"
14967
14968                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
14969 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
14970                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=address`
14971                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14972   $as_echo_n "(cached) " >&6
14973 else
14974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14975 /* end confdefs.h.  */
14976 int i;
14977 int
14978 main ()
14979 {
14980
14981   ;
14982   return 0;
14983 }
14984 _ACEOF
14985 if ac_fn_c_try_link "$LINENO"; then :
14986   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14987 else
14988   eval `$as_echo "$cacheid" | $as_tr_sh`=no
14989 fi
14990 rm -f core conftest.err conftest.$ac_objext \
14991     conftest$ac_exeext conftest.$ac_ext
14992 fi
14993
14994
14995                 CFLAGS="$xorg_testset_save_CFLAGS"
14996
14997                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14998                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14999 $as_echo "$supported" >&6; }
15000                 if test "$supported" = "yes" ; then
15001                         BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15002                         found="yes"
15003                 fi
15004         fi
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018 xorg_testset_save_CFLAGS="$CFLAGS"
15019
15020 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15021         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15022         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15023 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15024 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15025   $as_echo_n "(cached) " >&6
15026 else
15027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15028 /* end confdefs.h.  */
15029 int i;
15030 _ACEOF
15031 if ac_fn_c_try_compile "$LINENO"; then :
15032   xorg_cv_compiler_flag_unknown_warning_option=yes
15033 else
15034   xorg_cv_compiler_flag_unknown_warning_option=no
15035 fi
15036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15037 fi
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15039 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15040         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15041         CFLAGS="$xorg_testset_save_CFLAGS"
15042 fi
15043
15044 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15045         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15046                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15047         fi
15048         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15049         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15050 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15051 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15052   $as_echo_n "(cached) " >&6
15053 else
15054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15055 /* end confdefs.h.  */
15056 int i;
15057 _ACEOF
15058 if ac_fn_c_try_compile "$LINENO"; then :
15059   xorg_cv_compiler_flag_unused_command_line_argument=yes
15060 else
15061   xorg_cv_compiler_flag_unused_command_line_argument=no
15062 fi
15063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15064 fi
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15066 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15067         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15068         CFLAGS="$xorg_testset_save_CFLAGS"
15069 fi
15070
15071 found="no"
15072
15073         if test $found = "no" ; then
15074                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15075                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15076                 fi
15077
15078                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15079                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15080                 fi
15081
15082                 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15083
15084                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15085 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15086                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=int-to-pointer-cast`
15087                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15088   $as_echo_n "(cached) " >&6
15089 else
15090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15091 /* end confdefs.h.  */
15092 int i;
15093 int
15094 main ()
15095 {
15096
15097   ;
15098   return 0;
15099 }
15100 _ACEOF
15101 if ac_fn_c_try_link "$LINENO"; then :
15102   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15103 else
15104   eval `$as_echo "$cacheid" | $as_tr_sh`=no
15105 fi
15106 rm -f core conftest.err conftest.$ac_objext \
15107     conftest$ac_exeext conftest.$ac_ext
15108 fi
15109
15110
15111                 CFLAGS="$xorg_testset_save_CFLAGS"
15112
15113                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15114                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15115 $as_echo "$supported" >&6; }
15116                 if test "$supported" = "yes" ; then
15117                         BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15118                         found="yes"
15119                 fi
15120         fi
15121
15122         if test $found = "no" ; then
15123                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15124                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15125                 fi
15126
15127                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15128                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15129                 fi
15130
15131                 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15132
15133                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15134 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15135                 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION`
15136                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} 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 int
15143 main ()
15144 {
15145
15146   ;
15147   return 0;
15148 }
15149 _ACEOF
15150 if ac_fn_c_try_link "$LINENO"; then :
15151   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15152 else
15153   eval `$as_echo "$cacheid" | $as_tr_sh`=no
15154 fi
15155 rm -f core conftest.err conftest.$ac_objext \
15156     conftest$ac_exeext conftest.$ac_ext
15157 fi
15158
15159
15160                 CFLAGS="$xorg_testset_save_CFLAGS"
15161
15162                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15163                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15164 $as_echo "$supported" >&6; }
15165                 if test "$supported" = "yes" ; then
15166                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15167                         found="yes"
15168                 fi
15169         fi
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183 xorg_testset_save_CFLAGS="$CFLAGS"
15184
15185 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15186         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15187         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15188 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15189 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15190   $as_echo_n "(cached) " >&6
15191 else
15192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15193 /* end confdefs.h.  */
15194 int i;
15195 _ACEOF
15196 if ac_fn_c_try_compile "$LINENO"; then :
15197   xorg_cv_compiler_flag_unknown_warning_option=yes
15198 else
15199   xorg_cv_compiler_flag_unknown_warning_option=no
15200 fi
15201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15202 fi
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15204 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15205         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15206         CFLAGS="$xorg_testset_save_CFLAGS"
15207 fi
15208
15209 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15210         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15211                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15212         fi
15213         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15214         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15215 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15216 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15217   $as_echo_n "(cached) " >&6
15218 else
15219   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15220 /* end confdefs.h.  */
15221 int i;
15222 _ACEOF
15223 if ac_fn_c_try_compile "$LINENO"; then :
15224   xorg_cv_compiler_flag_unused_command_line_argument=yes
15225 else
15226   xorg_cv_compiler_flag_unused_command_line_argument=no
15227 fi
15228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15229 fi
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15231 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15232         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15233         CFLAGS="$xorg_testset_save_CFLAGS"
15234 fi
15235
15236 found="no"
15237
15238         if test $found = "no" ; then
15239                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15240                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15241                 fi
15242
15243                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15244                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15245                 fi
15246
15247                 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15248
15249                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15250 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15251                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=pointer-to-int-cast`
15252                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15253   $as_echo_n "(cached) " >&6
15254 else
15255   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15256 /* end confdefs.h.  */
15257 int i;
15258 int
15259 main ()
15260 {
15261
15262   ;
15263   return 0;
15264 }
15265 _ACEOF
15266 if ac_fn_c_try_link "$LINENO"; then :
15267   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15268 else
15269   eval `$as_echo "$cacheid" | $as_tr_sh`=no
15270 fi
15271 rm -f core conftest.err conftest.$ac_objext \
15272     conftest$ac_exeext conftest.$ac_ext
15273 fi
15274
15275
15276                 CFLAGS="$xorg_testset_save_CFLAGS"
15277
15278                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15279                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15280 $as_echo "$supported" >&6; }
15281                 if test "$supported" = "yes" ; then
15282                         BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15283                         found="yes"
15284                 fi
15285         fi
15286
15287  # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15288 else
15289 { $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
15290 $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;}
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302 xorg_testset_save_CFLAGS="$CFLAGS"
15303
15304 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15305         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15306         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15307 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15308 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15309   $as_echo_n "(cached) " >&6
15310 else
15311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15312 /* end confdefs.h.  */
15313 int i;
15314 _ACEOF
15315 if ac_fn_c_try_compile "$LINENO"; then :
15316   xorg_cv_compiler_flag_unknown_warning_option=yes
15317 else
15318   xorg_cv_compiler_flag_unknown_warning_option=no
15319 fi
15320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15321 fi
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15323 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15324         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15325         CFLAGS="$xorg_testset_save_CFLAGS"
15326 fi
15327
15328 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15329         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15330                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15331         fi
15332         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15333         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15334 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15335 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15336   $as_echo_n "(cached) " >&6
15337 else
15338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15339 /* end confdefs.h.  */
15340 int i;
15341 _ACEOF
15342 if ac_fn_c_try_compile "$LINENO"; then :
15343   xorg_cv_compiler_flag_unused_command_line_argument=yes
15344 else
15345   xorg_cv_compiler_flag_unused_command_line_argument=no
15346 fi
15347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15348 fi
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15350 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15351         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15352         CFLAGS="$xorg_testset_save_CFLAGS"
15353 fi
15354
15355 found="no"
15356
15357         if test $found = "no" ; then
15358                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15359                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15360                 fi
15361
15362                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15363                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15364                 fi
15365
15366                 CFLAGS="$CFLAGS -Wimplicit"
15367
15368                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15369 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15370                 cacheid=`$as_echo xorg_cv_cc_flag_-Wimplicit`
15371                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15372   $as_echo_n "(cached) " >&6
15373 else
15374   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15375 /* end confdefs.h.  */
15376 int i;
15377 int
15378 main ()
15379 {
15380
15381   ;
15382   return 0;
15383 }
15384 _ACEOF
15385 if ac_fn_c_try_link "$LINENO"; then :
15386   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15387 else
15388   eval `$as_echo "$cacheid" | $as_tr_sh`=no
15389 fi
15390 rm -f core conftest.err conftest.$ac_objext \
15391     conftest$ac_exeext conftest.$ac_ext
15392 fi
15393
15394
15395                 CFLAGS="$xorg_testset_save_CFLAGS"
15396
15397                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15398                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15399 $as_echo "$supported" >&6; }
15400                 if test "$supported" = "yes" ; then
15401                         BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15402                         found="yes"
15403                 fi
15404         fi
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418 xorg_testset_save_CFLAGS="$CFLAGS"
15419
15420 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15421         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15422         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15423 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15424 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15425   $as_echo_n "(cached) " >&6
15426 else
15427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15428 /* end confdefs.h.  */
15429 int i;
15430 _ACEOF
15431 if ac_fn_c_try_compile "$LINENO"; then :
15432   xorg_cv_compiler_flag_unknown_warning_option=yes
15433 else
15434   xorg_cv_compiler_flag_unknown_warning_option=no
15435 fi
15436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15437 fi
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15439 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15440         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15441         CFLAGS="$xorg_testset_save_CFLAGS"
15442 fi
15443
15444 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15445         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15446                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15447         fi
15448         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15449         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15450 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15451 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15452   $as_echo_n "(cached) " >&6
15453 else
15454   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15455 /* end confdefs.h.  */
15456 int i;
15457 _ACEOF
15458 if ac_fn_c_try_compile "$LINENO"; then :
15459   xorg_cv_compiler_flag_unused_command_line_argument=yes
15460 else
15461   xorg_cv_compiler_flag_unused_command_line_argument=no
15462 fi
15463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15464 fi
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15466 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15467         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15468         CFLAGS="$xorg_testset_save_CFLAGS"
15469 fi
15470
15471 found="no"
15472
15473         if test $found = "no" ; then
15474                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15475                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15476                 fi
15477
15478                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15479                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15480                 fi
15481
15482                 CFLAGS="$CFLAGS -Wnonnull"
15483
15484                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15485 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15486                 cacheid=`$as_echo xorg_cv_cc_flag_-Wnonnull`
15487                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15488   $as_echo_n "(cached) " >&6
15489 else
15490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15491 /* end confdefs.h.  */
15492 int i;
15493 int
15494 main ()
15495 {
15496
15497   ;
15498   return 0;
15499 }
15500 _ACEOF
15501 if ac_fn_c_try_link "$LINENO"; then :
15502   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15503 else
15504   eval `$as_echo "$cacheid" | $as_tr_sh`=no
15505 fi
15506 rm -f core conftest.err conftest.$ac_objext \
15507     conftest$ac_exeext conftest.$ac_ext
15508 fi
15509
15510
15511                 CFLAGS="$xorg_testset_save_CFLAGS"
15512
15513                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15514                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15515 $as_echo "$supported" >&6; }
15516                 if test "$supported" = "yes" ; then
15517                         BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15518                         found="yes"
15519                 fi
15520         fi
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534 xorg_testset_save_CFLAGS="$CFLAGS"
15535
15536 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15537         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15538         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15539 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15540 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15541   $as_echo_n "(cached) " >&6
15542 else
15543   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15544 /* end confdefs.h.  */
15545 int i;
15546 _ACEOF
15547 if ac_fn_c_try_compile "$LINENO"; then :
15548   xorg_cv_compiler_flag_unknown_warning_option=yes
15549 else
15550   xorg_cv_compiler_flag_unknown_warning_option=no
15551 fi
15552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15553 fi
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15555 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15556         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15557         CFLAGS="$xorg_testset_save_CFLAGS"
15558 fi
15559
15560 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15561         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15562                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15563         fi
15564         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15565         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15566 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15567 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15568   $as_echo_n "(cached) " >&6
15569 else
15570   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15571 /* end confdefs.h.  */
15572 int i;
15573 _ACEOF
15574 if ac_fn_c_try_compile "$LINENO"; then :
15575   xorg_cv_compiler_flag_unused_command_line_argument=yes
15576 else
15577   xorg_cv_compiler_flag_unused_command_line_argument=no
15578 fi
15579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15580 fi
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15582 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15583         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15584         CFLAGS="$xorg_testset_save_CFLAGS"
15585 fi
15586
15587 found="no"
15588
15589         if test $found = "no" ; then
15590                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15591                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15592                 fi
15593
15594                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15595                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15596                 fi
15597
15598                 CFLAGS="$CFLAGS -Winit-self"
15599
15600                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15601 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15602                 cacheid=`$as_echo xorg_cv_cc_flag_-Winit-self`
15603                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15604   $as_echo_n "(cached) " >&6
15605 else
15606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15607 /* end confdefs.h.  */
15608 int i;
15609 int
15610 main ()
15611 {
15612
15613   ;
15614   return 0;
15615 }
15616 _ACEOF
15617 if ac_fn_c_try_link "$LINENO"; then :
15618   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15619 else
15620   eval `$as_echo "$cacheid" | $as_tr_sh`=no
15621 fi
15622 rm -f core conftest.err conftest.$ac_objext \
15623     conftest$ac_exeext conftest.$ac_ext
15624 fi
15625
15626
15627                 CFLAGS="$xorg_testset_save_CFLAGS"
15628
15629                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15630                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15631 $as_echo "$supported" >&6; }
15632                 if test "$supported" = "yes" ; then
15633                         BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15634                         found="yes"
15635                 fi
15636         fi
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650 xorg_testset_save_CFLAGS="$CFLAGS"
15651
15652 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15653         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15654         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15655 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15656 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15657   $as_echo_n "(cached) " >&6
15658 else
15659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15660 /* end confdefs.h.  */
15661 int i;
15662 _ACEOF
15663 if ac_fn_c_try_compile "$LINENO"; then :
15664   xorg_cv_compiler_flag_unknown_warning_option=yes
15665 else
15666   xorg_cv_compiler_flag_unknown_warning_option=no
15667 fi
15668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15669 fi
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15671 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15672         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15673         CFLAGS="$xorg_testset_save_CFLAGS"
15674 fi
15675
15676 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15677         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15678                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15679         fi
15680         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15681         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15682 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15683 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15684   $as_echo_n "(cached) " >&6
15685 else
15686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15687 /* end confdefs.h.  */
15688 int i;
15689 _ACEOF
15690 if ac_fn_c_try_compile "$LINENO"; then :
15691   xorg_cv_compiler_flag_unused_command_line_argument=yes
15692 else
15693   xorg_cv_compiler_flag_unused_command_line_argument=no
15694 fi
15695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15696 fi
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15698 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15699         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15700         CFLAGS="$xorg_testset_save_CFLAGS"
15701 fi
15702
15703 found="no"
15704
15705         if test $found = "no" ; then
15706                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15707                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15708                 fi
15709
15710                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15711                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15712                 fi
15713
15714                 CFLAGS="$CFLAGS -Wmain"
15715
15716                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
15717 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
15718                 cacheid=`$as_echo xorg_cv_cc_flag_-Wmain`
15719                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15720   $as_echo_n "(cached) " >&6
15721 else
15722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15723 /* end confdefs.h.  */
15724 int i;
15725 int
15726 main ()
15727 {
15728
15729   ;
15730   return 0;
15731 }
15732 _ACEOF
15733 if ac_fn_c_try_link "$LINENO"; then :
15734   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15735 else
15736   eval `$as_echo "$cacheid" | $as_tr_sh`=no
15737 fi
15738 rm -f core conftest.err conftest.$ac_objext \
15739     conftest$ac_exeext conftest.$ac_ext
15740 fi
15741
15742
15743                 CFLAGS="$xorg_testset_save_CFLAGS"
15744
15745                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15746                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15747 $as_echo "$supported" >&6; }
15748                 if test "$supported" = "yes" ; then
15749                         BASE_CFLAGS="$BASE_CFLAGS -Wmain"
15750                         found="yes"
15751                 fi
15752         fi
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766 xorg_testset_save_CFLAGS="$CFLAGS"
15767
15768 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15769         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15770         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15771 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15772 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15773   $as_echo_n "(cached) " >&6
15774 else
15775   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15776 /* end confdefs.h.  */
15777 int i;
15778 _ACEOF
15779 if ac_fn_c_try_compile "$LINENO"; then :
15780   xorg_cv_compiler_flag_unknown_warning_option=yes
15781 else
15782   xorg_cv_compiler_flag_unknown_warning_option=no
15783 fi
15784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15785 fi
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15787 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15788         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15789         CFLAGS="$xorg_testset_save_CFLAGS"
15790 fi
15791
15792 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15793         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15794                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15795         fi
15796         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15797         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15798 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15799 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15800   $as_echo_n "(cached) " >&6
15801 else
15802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15803 /* end confdefs.h.  */
15804 int i;
15805 _ACEOF
15806 if ac_fn_c_try_compile "$LINENO"; then :
15807   xorg_cv_compiler_flag_unused_command_line_argument=yes
15808 else
15809   xorg_cv_compiler_flag_unused_command_line_argument=no
15810 fi
15811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15812 fi
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15814 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15815         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15816         CFLAGS="$xorg_testset_save_CFLAGS"
15817 fi
15818
15819 found="no"
15820
15821         if test $found = "no" ; then
15822                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15823                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15824                 fi
15825
15826                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15827                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15828                 fi
15829
15830                 CFLAGS="$CFLAGS -Wmissing-braces"
15831
15832                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
15833 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
15834                 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-braces`
15835                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15836   $as_echo_n "(cached) " >&6
15837 else
15838   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15839 /* end confdefs.h.  */
15840 int i;
15841 int
15842 main ()
15843 {
15844
15845   ;
15846   return 0;
15847 }
15848 _ACEOF
15849 if ac_fn_c_try_link "$LINENO"; then :
15850   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15851 else
15852   eval `$as_echo "$cacheid" | $as_tr_sh`=no
15853 fi
15854 rm -f core conftest.err conftest.$ac_objext \
15855     conftest$ac_exeext conftest.$ac_ext
15856 fi
15857
15858
15859                 CFLAGS="$xorg_testset_save_CFLAGS"
15860
15861                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15862                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15863 $as_echo "$supported" >&6; }
15864                 if test "$supported" = "yes" ; then
15865                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
15866                         found="yes"
15867                 fi
15868         fi
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882 xorg_testset_save_CFLAGS="$CFLAGS"
15883
15884 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15885         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15886         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15887 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15888 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15889   $as_echo_n "(cached) " >&6
15890 else
15891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15892 /* end confdefs.h.  */
15893 int i;
15894 _ACEOF
15895 if ac_fn_c_try_compile "$LINENO"; then :
15896   xorg_cv_compiler_flag_unknown_warning_option=yes
15897 else
15898   xorg_cv_compiler_flag_unknown_warning_option=no
15899 fi
15900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15901 fi
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15903 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15904         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15905         CFLAGS="$xorg_testset_save_CFLAGS"
15906 fi
15907
15908 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15909         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15910                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15911         fi
15912         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15913         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15914 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15915 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15916   $as_echo_n "(cached) " >&6
15917 else
15918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15919 /* end confdefs.h.  */
15920 int i;
15921 _ACEOF
15922 if ac_fn_c_try_compile "$LINENO"; then :
15923   xorg_cv_compiler_flag_unused_command_line_argument=yes
15924 else
15925   xorg_cv_compiler_flag_unused_command_line_argument=no
15926 fi
15927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15928 fi
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15930 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15931         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15932         CFLAGS="$xorg_testset_save_CFLAGS"
15933 fi
15934
15935 found="no"
15936
15937         if test $found = "no" ; then
15938                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15939                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15940                 fi
15941
15942                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15943                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15944                 fi
15945
15946                 CFLAGS="$CFLAGS -Wsequence-point"
15947
15948                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
15949 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
15950                 cacheid=`$as_echo xorg_cv_cc_flag_-Wsequence-point`
15951                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15952   $as_echo_n "(cached) " >&6
15953 else
15954   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15955 /* end confdefs.h.  */
15956 int i;
15957 int
15958 main ()
15959 {
15960
15961   ;
15962   return 0;
15963 }
15964 _ACEOF
15965 if ac_fn_c_try_link "$LINENO"; then :
15966   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15967 else
15968   eval `$as_echo "$cacheid" | $as_tr_sh`=no
15969 fi
15970 rm -f core conftest.err conftest.$ac_objext \
15971     conftest$ac_exeext conftest.$ac_ext
15972 fi
15973
15974
15975                 CFLAGS="$xorg_testset_save_CFLAGS"
15976
15977                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15978                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15979 $as_echo "$supported" >&6; }
15980                 if test "$supported" = "yes" ; then
15981                         BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
15982                         found="yes"
15983                 fi
15984         fi
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998 xorg_testset_save_CFLAGS="$CFLAGS"
15999
16000 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16001         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16002         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16003 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16004 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16005   $as_echo_n "(cached) " >&6
16006 else
16007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16008 /* end confdefs.h.  */
16009 int i;
16010 _ACEOF
16011 if ac_fn_c_try_compile "$LINENO"; then :
16012   xorg_cv_compiler_flag_unknown_warning_option=yes
16013 else
16014   xorg_cv_compiler_flag_unknown_warning_option=no
16015 fi
16016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16017 fi
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16019 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16020         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16021         CFLAGS="$xorg_testset_save_CFLAGS"
16022 fi
16023
16024 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16025         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16026                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16027         fi
16028         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16029         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16030 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16031 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16032   $as_echo_n "(cached) " >&6
16033 else
16034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16035 /* end confdefs.h.  */
16036 int i;
16037 _ACEOF
16038 if ac_fn_c_try_compile "$LINENO"; then :
16039   xorg_cv_compiler_flag_unused_command_line_argument=yes
16040 else
16041   xorg_cv_compiler_flag_unused_command_line_argument=no
16042 fi
16043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16044 fi
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16046 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16047         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16048         CFLAGS="$xorg_testset_save_CFLAGS"
16049 fi
16050
16051 found="no"
16052
16053         if test $found = "no" ; then
16054                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16055                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16056                 fi
16057
16058                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16059                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16060                 fi
16061
16062                 CFLAGS="$CFLAGS -Wreturn-type"
16063
16064                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16065 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16066                 cacheid=`$as_echo xorg_cv_cc_flag_-Wreturn-type`
16067                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16068   $as_echo_n "(cached) " >&6
16069 else
16070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16071 /* end confdefs.h.  */
16072 int i;
16073 int
16074 main ()
16075 {
16076
16077   ;
16078   return 0;
16079 }
16080 _ACEOF
16081 if ac_fn_c_try_link "$LINENO"; then :
16082   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16083 else
16084   eval `$as_echo "$cacheid" | $as_tr_sh`=no
16085 fi
16086 rm -f core conftest.err conftest.$ac_objext \
16087     conftest$ac_exeext conftest.$ac_ext
16088 fi
16089
16090
16091                 CFLAGS="$xorg_testset_save_CFLAGS"
16092
16093                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16094                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16095 $as_echo "$supported" >&6; }
16096                 if test "$supported" = "yes" ; then
16097                         BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16098                         found="yes"
16099                 fi
16100         fi
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114 xorg_testset_save_CFLAGS="$CFLAGS"
16115
16116 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16117         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16118         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16119 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16120 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16121   $as_echo_n "(cached) " >&6
16122 else
16123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16124 /* end confdefs.h.  */
16125 int i;
16126 _ACEOF
16127 if ac_fn_c_try_compile "$LINENO"; then :
16128   xorg_cv_compiler_flag_unknown_warning_option=yes
16129 else
16130   xorg_cv_compiler_flag_unknown_warning_option=no
16131 fi
16132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16133 fi
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16135 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16136         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16137         CFLAGS="$xorg_testset_save_CFLAGS"
16138 fi
16139
16140 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16141         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16142                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16143         fi
16144         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16145         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16146 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16147 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16148   $as_echo_n "(cached) " >&6
16149 else
16150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16151 /* end confdefs.h.  */
16152 int i;
16153 _ACEOF
16154 if ac_fn_c_try_compile "$LINENO"; then :
16155   xorg_cv_compiler_flag_unused_command_line_argument=yes
16156 else
16157   xorg_cv_compiler_flag_unused_command_line_argument=no
16158 fi
16159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16160 fi
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16162 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16163         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16164         CFLAGS="$xorg_testset_save_CFLAGS"
16165 fi
16166
16167 found="no"
16168
16169         if test $found = "no" ; then
16170                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16171                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16172                 fi
16173
16174                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16175                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16176                 fi
16177
16178                 CFLAGS="$CFLAGS -Wtrigraphs"
16179
16180                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16181 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16182                 cacheid=`$as_echo xorg_cv_cc_flag_-Wtrigraphs`
16183                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16184   $as_echo_n "(cached) " >&6
16185 else
16186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16187 /* end confdefs.h.  */
16188 int i;
16189 int
16190 main ()
16191 {
16192
16193   ;
16194   return 0;
16195 }
16196 _ACEOF
16197 if ac_fn_c_try_link "$LINENO"; then :
16198   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16199 else
16200   eval `$as_echo "$cacheid" | $as_tr_sh`=no
16201 fi
16202 rm -f core conftest.err conftest.$ac_objext \
16203     conftest$ac_exeext conftest.$ac_ext
16204 fi
16205
16206
16207                 CFLAGS="$xorg_testset_save_CFLAGS"
16208
16209                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16210                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16211 $as_echo "$supported" >&6; }
16212                 if test "$supported" = "yes" ; then
16213                         BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16214                         found="yes"
16215                 fi
16216         fi
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230 xorg_testset_save_CFLAGS="$CFLAGS"
16231
16232 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16233         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16234         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16235 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16236 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16237   $as_echo_n "(cached) " >&6
16238 else
16239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16240 /* end confdefs.h.  */
16241 int i;
16242 _ACEOF
16243 if ac_fn_c_try_compile "$LINENO"; then :
16244   xorg_cv_compiler_flag_unknown_warning_option=yes
16245 else
16246   xorg_cv_compiler_flag_unknown_warning_option=no
16247 fi
16248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16249 fi
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16251 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16252         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16253         CFLAGS="$xorg_testset_save_CFLAGS"
16254 fi
16255
16256 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16257         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16258                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16259         fi
16260         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16261         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16262 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16263 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16264   $as_echo_n "(cached) " >&6
16265 else
16266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16267 /* end confdefs.h.  */
16268 int i;
16269 _ACEOF
16270 if ac_fn_c_try_compile "$LINENO"; then :
16271   xorg_cv_compiler_flag_unused_command_line_argument=yes
16272 else
16273   xorg_cv_compiler_flag_unused_command_line_argument=no
16274 fi
16275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16276 fi
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16278 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16279         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16280         CFLAGS="$xorg_testset_save_CFLAGS"
16281 fi
16282
16283 found="no"
16284
16285         if test $found = "no" ; then
16286                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16287                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16288                 fi
16289
16290                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16291                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16292                 fi
16293
16294                 CFLAGS="$CFLAGS -Warray-bounds"
16295
16296                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16297 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16298                 cacheid=`$as_echo xorg_cv_cc_flag_-Warray-bounds`
16299                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16300   $as_echo_n "(cached) " >&6
16301 else
16302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16303 /* end confdefs.h.  */
16304 int i;
16305 int
16306 main ()
16307 {
16308
16309   ;
16310   return 0;
16311 }
16312 _ACEOF
16313 if ac_fn_c_try_link "$LINENO"; then :
16314   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16315 else
16316   eval `$as_echo "$cacheid" | $as_tr_sh`=no
16317 fi
16318 rm -f core conftest.err conftest.$ac_objext \
16319     conftest$ac_exeext conftest.$ac_ext
16320 fi
16321
16322
16323                 CFLAGS="$xorg_testset_save_CFLAGS"
16324
16325                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16326                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16327 $as_echo "$supported" >&6; }
16328                 if test "$supported" = "yes" ; then
16329                         BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16330                         found="yes"
16331                 fi
16332         fi
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346 xorg_testset_save_CFLAGS="$CFLAGS"
16347
16348 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16349         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16350         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16351 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16352 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16353   $as_echo_n "(cached) " >&6
16354 else
16355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16356 /* end confdefs.h.  */
16357 int i;
16358 _ACEOF
16359 if ac_fn_c_try_compile "$LINENO"; then :
16360   xorg_cv_compiler_flag_unknown_warning_option=yes
16361 else
16362   xorg_cv_compiler_flag_unknown_warning_option=no
16363 fi
16364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16365 fi
16366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16367 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16368         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16369         CFLAGS="$xorg_testset_save_CFLAGS"
16370 fi
16371
16372 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16373         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16374                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16375         fi
16376         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16377         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16378 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16379 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16380   $as_echo_n "(cached) " >&6
16381 else
16382   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16383 /* end confdefs.h.  */
16384 int i;
16385 _ACEOF
16386 if ac_fn_c_try_compile "$LINENO"; then :
16387   xorg_cv_compiler_flag_unused_command_line_argument=yes
16388 else
16389   xorg_cv_compiler_flag_unused_command_line_argument=no
16390 fi
16391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16392 fi
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16394 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16395         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16396         CFLAGS="$xorg_testset_save_CFLAGS"
16397 fi
16398
16399 found="no"
16400
16401         if test $found = "no" ; then
16402                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16403                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16404                 fi
16405
16406                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16407                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16408                 fi
16409
16410                 CFLAGS="$CFLAGS -Wwrite-strings"
16411
16412                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16413 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16414                 cacheid=`$as_echo xorg_cv_cc_flag_-Wwrite-strings`
16415                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16416   $as_echo_n "(cached) " >&6
16417 else
16418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16419 /* end confdefs.h.  */
16420 int i;
16421 int
16422 main ()
16423 {
16424
16425   ;
16426   return 0;
16427 }
16428 _ACEOF
16429 if ac_fn_c_try_link "$LINENO"; then :
16430   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16431 else
16432   eval `$as_echo "$cacheid" | $as_tr_sh`=no
16433 fi
16434 rm -f core conftest.err conftest.$ac_objext \
16435     conftest$ac_exeext conftest.$ac_ext
16436 fi
16437
16438
16439                 CFLAGS="$xorg_testset_save_CFLAGS"
16440
16441                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16442                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16443 $as_echo "$supported" >&6; }
16444                 if test "$supported" = "yes" ; then
16445                         BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16446                         found="yes"
16447                 fi
16448         fi
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462 xorg_testset_save_CFLAGS="$CFLAGS"
16463
16464 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16465         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16466         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16467 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16468 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16469   $as_echo_n "(cached) " >&6
16470 else
16471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16472 /* end confdefs.h.  */
16473 int i;
16474 _ACEOF
16475 if ac_fn_c_try_compile "$LINENO"; then :
16476   xorg_cv_compiler_flag_unknown_warning_option=yes
16477 else
16478   xorg_cv_compiler_flag_unknown_warning_option=no
16479 fi
16480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16481 fi
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16483 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16484         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16485         CFLAGS="$xorg_testset_save_CFLAGS"
16486 fi
16487
16488 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16489         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16490                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16491         fi
16492         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16493         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16494 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16495 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16496   $as_echo_n "(cached) " >&6
16497 else
16498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16499 /* end confdefs.h.  */
16500 int i;
16501 _ACEOF
16502 if ac_fn_c_try_compile "$LINENO"; then :
16503   xorg_cv_compiler_flag_unused_command_line_argument=yes
16504 else
16505   xorg_cv_compiler_flag_unused_command_line_argument=no
16506 fi
16507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16508 fi
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16510 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16511         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16512         CFLAGS="$xorg_testset_save_CFLAGS"
16513 fi
16514
16515 found="no"
16516
16517         if test $found = "no" ; then
16518                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16519                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16520                 fi
16521
16522                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16523                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16524                 fi
16525
16526                 CFLAGS="$CFLAGS -Waddress"
16527
16528                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16529 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
16530                 cacheid=`$as_echo xorg_cv_cc_flag_-Waddress`
16531                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16532   $as_echo_n "(cached) " >&6
16533 else
16534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16535 /* end confdefs.h.  */
16536 int i;
16537 int
16538 main ()
16539 {
16540
16541   ;
16542   return 0;
16543 }
16544 _ACEOF
16545 if ac_fn_c_try_link "$LINENO"; then :
16546   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16547 else
16548   eval `$as_echo "$cacheid" | $as_tr_sh`=no
16549 fi
16550 rm -f core conftest.err conftest.$ac_objext \
16551     conftest$ac_exeext conftest.$ac_ext
16552 fi
16553
16554
16555                 CFLAGS="$xorg_testset_save_CFLAGS"
16556
16557                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16558                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16559 $as_echo "$supported" >&6; }
16560                 if test "$supported" = "yes" ; then
16561                         BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16562                         found="yes"
16563                 fi
16564         fi
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578 xorg_testset_save_CFLAGS="$CFLAGS"
16579
16580 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16581         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16582         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16583 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16584 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16585   $as_echo_n "(cached) " >&6
16586 else
16587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16588 /* end confdefs.h.  */
16589 int i;
16590 _ACEOF
16591 if ac_fn_c_try_compile "$LINENO"; then :
16592   xorg_cv_compiler_flag_unknown_warning_option=yes
16593 else
16594   xorg_cv_compiler_flag_unknown_warning_option=no
16595 fi
16596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16597 fi
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16599 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16600         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16601         CFLAGS="$xorg_testset_save_CFLAGS"
16602 fi
16603
16604 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16605         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16606                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16607         fi
16608         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16609         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16610 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16611 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16612   $as_echo_n "(cached) " >&6
16613 else
16614   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16615 /* end confdefs.h.  */
16616 int i;
16617 _ACEOF
16618 if ac_fn_c_try_compile "$LINENO"; then :
16619   xorg_cv_compiler_flag_unused_command_line_argument=yes
16620 else
16621   xorg_cv_compiler_flag_unused_command_line_argument=no
16622 fi
16623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16624 fi
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16626 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16627         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16628         CFLAGS="$xorg_testset_save_CFLAGS"
16629 fi
16630
16631 found="no"
16632
16633         if test $found = "no" ; then
16634                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16635                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16636                 fi
16637
16638                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16639                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16640                 fi
16641
16642                 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
16643
16644                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
16645 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
16646                 cacheid=`$as_echo xorg_cv_cc_flag_-Wint-to-pointer-cast`
16647                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16648   $as_echo_n "(cached) " >&6
16649 else
16650   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16651 /* end confdefs.h.  */
16652 int i;
16653 int
16654 main ()
16655 {
16656
16657   ;
16658   return 0;
16659 }
16660 _ACEOF
16661 if ac_fn_c_try_link "$LINENO"; then :
16662   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16663 else
16664   eval `$as_echo "$cacheid" | $as_tr_sh`=no
16665 fi
16666 rm -f core conftest.err conftest.$ac_objext \
16667     conftest$ac_exeext conftest.$ac_ext
16668 fi
16669
16670
16671                 CFLAGS="$xorg_testset_save_CFLAGS"
16672
16673                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16674                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16675 $as_echo "$supported" >&6; }
16676                 if test "$supported" = "yes" ; then
16677                         BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
16678                         found="yes"
16679                 fi
16680         fi
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694 xorg_testset_save_CFLAGS="$CFLAGS"
16695
16696 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16697         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16698         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16699 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16700 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16701   $as_echo_n "(cached) " >&6
16702 else
16703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16704 /* end confdefs.h.  */
16705 int i;
16706 _ACEOF
16707 if ac_fn_c_try_compile "$LINENO"; then :
16708   xorg_cv_compiler_flag_unknown_warning_option=yes
16709 else
16710   xorg_cv_compiler_flag_unknown_warning_option=no
16711 fi
16712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16713 fi
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16715 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16716         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16717         CFLAGS="$xorg_testset_save_CFLAGS"
16718 fi
16719
16720 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16721         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16722                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16723         fi
16724         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16725         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16726 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16727 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16728   $as_echo_n "(cached) " >&6
16729 else
16730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16731 /* end confdefs.h.  */
16732 int i;
16733 _ACEOF
16734 if ac_fn_c_try_compile "$LINENO"; then :
16735   xorg_cv_compiler_flag_unused_command_line_argument=yes
16736 else
16737   xorg_cv_compiler_flag_unused_command_line_argument=no
16738 fi
16739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16740 fi
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16742 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16743         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16744         CFLAGS="$xorg_testset_save_CFLAGS"
16745 fi
16746
16747 found="no"
16748
16749         if test $found = "no" ; then
16750                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16751                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16752                 fi
16753
16754                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16755                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16756                 fi
16757
16758                 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
16759
16760                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
16761 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
16762                 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-to-int-cast`
16763                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16764   $as_echo_n "(cached) " >&6
16765 else
16766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16767 /* end confdefs.h.  */
16768 int i;
16769 int
16770 main ()
16771 {
16772
16773   ;
16774   return 0;
16775 }
16776 _ACEOF
16777 if ac_fn_c_try_link "$LINENO"; then :
16778   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16779 else
16780   eval `$as_echo "$cacheid" | $as_tr_sh`=no
16781 fi
16782 rm -f core conftest.err conftest.$ac_objext \
16783     conftest$ac_exeext conftest.$ac_ext
16784 fi
16785
16786
16787                 CFLAGS="$xorg_testset_save_CFLAGS"
16788
16789                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16790                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16791 $as_echo "$supported" >&6; }
16792                 if test "$supported" = "yes" ; then
16793                         BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
16794                         found="yes"
16795                 fi
16796         fi
16797
16798
16799 fi
16800
16801
16802
16803
16804
16805
16806
16807                 CWARNFLAGS="$BASE_CFLAGS"
16808                 if  test "x$GCC" = xyes ; then
16809                     CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
16810                 fi
16811
16812
16813
16814
16815
16816
16817
16818
16819 # Check whether --enable-strict-compilation was given.
16820 if test "${enable_strict_compilation+set}" = set; then :
16821   enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
16822 else
16823   STRICT_COMPILE=no
16824 fi
16825
16826
16827
16828
16829
16830
16831 STRICT_CFLAGS=""
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843 xorg_testset_save_CFLAGS="$CFLAGS"
16844
16845 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16846         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16847         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16848 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16849 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16850   $as_echo_n "(cached) " >&6
16851 else
16852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16853 /* end confdefs.h.  */
16854 int i;
16855 _ACEOF
16856 if ac_fn_c_try_compile "$LINENO"; then :
16857   xorg_cv_compiler_flag_unknown_warning_option=yes
16858 else
16859   xorg_cv_compiler_flag_unknown_warning_option=no
16860 fi
16861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16862 fi
16863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16864 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16865         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16866         CFLAGS="$xorg_testset_save_CFLAGS"
16867 fi
16868
16869 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16870         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16871                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16872         fi
16873         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16874         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16875 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16876 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16877   $as_echo_n "(cached) " >&6
16878 else
16879   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16880 /* end confdefs.h.  */
16881 int i;
16882 _ACEOF
16883 if ac_fn_c_try_compile "$LINENO"; then :
16884   xorg_cv_compiler_flag_unused_command_line_argument=yes
16885 else
16886   xorg_cv_compiler_flag_unused_command_line_argument=no
16887 fi
16888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16889 fi
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16891 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16892         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16893         CFLAGS="$xorg_testset_save_CFLAGS"
16894 fi
16895
16896 found="no"
16897
16898         if test $found = "no" ; then
16899                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16900                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16901                 fi
16902
16903                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16904                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16905                 fi
16906
16907                 CFLAGS="$CFLAGS -pedantic"
16908
16909                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
16910 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
16911                 cacheid=`$as_echo xorg_cv_cc_flag_-pedantic`
16912                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16913   $as_echo_n "(cached) " >&6
16914 else
16915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16916 /* end confdefs.h.  */
16917 int i;
16918 int
16919 main ()
16920 {
16921
16922   ;
16923   return 0;
16924 }
16925 _ACEOF
16926 if ac_fn_c_try_link "$LINENO"; then :
16927   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16928 else
16929   eval `$as_echo "$cacheid" | $as_tr_sh`=no
16930 fi
16931 rm -f core conftest.err conftest.$ac_objext \
16932     conftest$ac_exeext conftest.$ac_ext
16933 fi
16934
16935
16936                 CFLAGS="$xorg_testset_save_CFLAGS"
16937
16938                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16939                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16940 $as_echo "$supported" >&6; }
16941                 if test "$supported" = "yes" ; then
16942                         STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
16943                         found="yes"
16944                 fi
16945         fi
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959 xorg_testset_save_CFLAGS="$CFLAGS"
16960
16961 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16962         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16963         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16964 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16965 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16966   $as_echo_n "(cached) " >&6
16967 else
16968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16969 /* end confdefs.h.  */
16970 int i;
16971 _ACEOF
16972 if ac_fn_c_try_compile "$LINENO"; then :
16973   xorg_cv_compiler_flag_unknown_warning_option=yes
16974 else
16975   xorg_cv_compiler_flag_unknown_warning_option=no
16976 fi
16977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16978 fi
16979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16980 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16981         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16982         CFLAGS="$xorg_testset_save_CFLAGS"
16983 fi
16984
16985 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16986         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16987                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16988         fi
16989         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16990         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16991 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16992 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16993   $as_echo_n "(cached) " >&6
16994 else
16995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16996 /* end confdefs.h.  */
16997 int i;
16998 _ACEOF
16999 if ac_fn_c_try_compile "$LINENO"; then :
17000   xorg_cv_compiler_flag_unused_command_line_argument=yes
17001 else
17002   xorg_cv_compiler_flag_unused_command_line_argument=no
17003 fi
17004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17005 fi
17006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
17007 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
17008         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
17009         CFLAGS="$xorg_testset_save_CFLAGS"
17010 fi
17011
17012 found="no"
17013
17014         if test $found = "no" ; then
17015                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17016                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17017                 fi
17018
17019                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17020                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17021                 fi
17022
17023                 CFLAGS="$CFLAGS -Werror"
17024
17025                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17026 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17027                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror`
17028                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17029   $as_echo_n "(cached) " >&6
17030 else
17031   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17032 /* end confdefs.h.  */
17033 int i;
17034 int
17035 main ()
17036 {
17037
17038   ;
17039   return 0;
17040 }
17041 _ACEOF
17042 if ac_fn_c_try_link "$LINENO"; then :
17043   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17044 else
17045   eval `$as_echo "$cacheid" | $as_tr_sh`=no
17046 fi
17047 rm -f core conftest.err conftest.$ac_objext \
17048     conftest$ac_exeext conftest.$ac_ext
17049 fi
17050
17051
17052                 CFLAGS="$xorg_testset_save_CFLAGS"
17053
17054                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17055                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17056 $as_echo "$supported" >&6; }
17057                 if test "$supported" = "yes" ; then
17058                         STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17059                         found="yes"
17060                 fi
17061         fi
17062
17063         if test $found = "no" ; then
17064                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17065                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17066                 fi
17067
17068                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17069                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17070                 fi
17071
17072                 CFLAGS="$CFLAGS -errwarn"
17073
17074                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17075 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17076                 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn`
17077                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17078   $as_echo_n "(cached) " >&6
17079 else
17080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17081 /* end confdefs.h.  */
17082 int i;
17083 int
17084 main ()
17085 {
17086
17087   ;
17088   return 0;
17089 }
17090 _ACEOF
17091 if ac_fn_c_try_link "$LINENO"; then :
17092   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17093 else
17094   eval `$as_echo "$cacheid" | $as_tr_sh`=no
17095 fi
17096 rm -f core conftest.err conftest.$ac_objext \
17097     conftest$ac_exeext conftest.$ac_ext
17098 fi
17099
17100
17101                 CFLAGS="$xorg_testset_save_CFLAGS"
17102
17103                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17104                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17105 $as_echo "$supported" >&6; }
17106                 if test "$supported" = "yes" ; then
17107                         STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17108                         found="yes"
17109                 fi
17110         fi
17111
17112
17113
17114 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17115 # activate it with -Werror, so we add it here explicitly.
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127 xorg_testset_save_CFLAGS="$CFLAGS"
17128
17129 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
17130         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17131         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
17132 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
17133 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
17134   $as_echo_n "(cached) " >&6
17135 else
17136   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17137 /* end confdefs.h.  */
17138 int i;
17139 _ACEOF
17140 if ac_fn_c_try_compile "$LINENO"; then :
17141   xorg_cv_compiler_flag_unknown_warning_option=yes
17142 else
17143   xorg_cv_compiler_flag_unknown_warning_option=no
17144 fi
17145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17146 fi
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
17148 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
17149         xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
17150         CFLAGS="$xorg_testset_save_CFLAGS"
17151 fi
17152
17153 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
17154         if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17155                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17156         fi
17157         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17158         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
17159 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
17160 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
17161   $as_echo_n "(cached) " >&6
17162 else
17163   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17164 /* end confdefs.h.  */
17165 int i;
17166 _ACEOF
17167 if ac_fn_c_try_compile "$LINENO"; then :
17168   xorg_cv_compiler_flag_unused_command_line_argument=yes
17169 else
17170   xorg_cv_compiler_flag_unused_command_line_argument=no
17171 fi
17172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17173 fi
17174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
17175 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
17176         xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
17177         CFLAGS="$xorg_testset_save_CFLAGS"
17178 fi
17179
17180 found="no"
17181
17182         if test $found = "no" ; then
17183                 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17184                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17185                 fi
17186
17187                 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17188                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17189                 fi
17190
17191                 CFLAGS="$CFLAGS -Werror=attributes"
17192
17193                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17194 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17195                 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=attributes`
17196                 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17197   $as_echo_n "(cached) " >&6
17198 else
17199   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17200 /* end confdefs.h.  */
17201 int i;
17202 int
17203 main ()
17204 {
17205
17206   ;
17207   return 0;
17208 }
17209 _ACEOF
17210 if ac_fn_c_try_link "$LINENO"; then :
17211   eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17212 else
17213   eval `$as_echo "$cacheid" | $as_tr_sh`=no
17214 fi
17215 rm -f core conftest.err conftest.$ac_objext \
17216     conftest$ac_exeext conftest.$ac_ext
17217 fi
17218
17219
17220                 CFLAGS="$xorg_testset_save_CFLAGS"
17221
17222                 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17223                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17224 $as_echo "$supported" >&6; }
17225                 if test "$supported" = "yes" ; then
17226                         STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17227                         found="yes"
17228                 fi
17229         fi
17230
17231
17232
17233 if test "x$STRICT_COMPILE" = "xyes"; then
17234     BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17235     CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17236 fi
17237
17238
17239
17240
17241
17242
17243 cat >>confdefs.h <<_ACEOF
17244 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17245 _ACEOF
17246
17247         PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17248         if test "x$PVM" = "x"; then
17249                 PVM="0"
17250         fi
17251
17252 cat >>confdefs.h <<_ACEOF
17253 #define PACKAGE_VERSION_MINOR $PVM
17254 _ACEOF
17255
17256         PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17257         if test "x$PVP" = "x"; then
17258                 PVP="0"
17259         fi
17260
17261 cat >>confdefs.h <<_ACEOF
17262 #define PACKAGE_VERSION_PATCHLEVEL $PVP
17263 _ACEOF
17264
17265
17266
17267 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17268 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17269 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17270 echo 'git directory not found: installing possibly empty changelog.' >&2)"
17271
17272
17273
17274
17275 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17276 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17277 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17278 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17279 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17280
17281
17282
17283
17284
17285
17286 if test x$APP_MAN_SUFFIX = x    ; then
17287     APP_MAN_SUFFIX=1
17288 fi
17289 if test x$APP_MAN_DIR = x    ; then
17290     APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17291 fi
17292
17293 if test x$LIB_MAN_SUFFIX = x    ; then
17294     LIB_MAN_SUFFIX=3
17295 fi
17296 if test x$LIB_MAN_DIR = x    ; then
17297     LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17298 fi
17299
17300 if test x$FILE_MAN_SUFFIX = x    ; then
17301     case $host_os in
17302         solaris*)       FILE_MAN_SUFFIX=4  ;;
17303         *)              FILE_MAN_SUFFIX=5  ;;
17304     esac
17305 fi
17306 if test x$FILE_MAN_DIR = x    ; then
17307     FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17308 fi
17309
17310 if test x$MISC_MAN_SUFFIX = x    ; then
17311     case $host_os in
17312         solaris*)       MISC_MAN_SUFFIX=5  ;;
17313         *)              MISC_MAN_SUFFIX=7  ;;
17314     esac
17315 fi
17316 if test x$MISC_MAN_DIR = x    ; then
17317     MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17318 fi
17319
17320 if test x$DRIVER_MAN_SUFFIX = x    ; then
17321     case $host_os in
17322         solaris*)       DRIVER_MAN_SUFFIX=7  ;;
17323         *)              DRIVER_MAN_SUFFIX=4  ;;
17324     esac
17325 fi
17326 if test x$DRIVER_MAN_DIR = x    ; then
17327     DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17328 fi
17329
17330 if test x$ADMIN_MAN_SUFFIX = x    ; then
17331     case $host_os in
17332         solaris*)       ADMIN_MAN_SUFFIX=1m ;;
17333         *)              ADMIN_MAN_SUFFIX=8  ;;
17334     esac
17335 fi
17336 if test x$ADMIN_MAN_DIR = x    ; then
17337     ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17338 fi
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354 XORG_MAN_PAGE="X Version 11"
17355
17356 MAN_SUBSTS="\
17357         -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17358         -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17359         -e 's|__xservername__|Xorg|g' \
17360         -e 's|__xconfigfile__|xorg.conf|g' \
17361         -e 's|__projectroot__|\$(prefix)|g' \
17362         -e 's|__apploaddir__|\$(appdefaultdir)|g' \
17363         -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17364         -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17365         -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17366         -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17367         -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17368         -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17369
17370
17371
17372 # Check whether --enable-silent-rules was given.
17373 if test "${enable_silent_rules+set}" = set; then :
17374   enableval=$enable_silent_rules;
17375 fi
17376
17377 case $enable_silent_rules in
17378 yes) AM_DEFAULT_VERBOSITY=0;;
17379 no)  AM_DEFAULT_VERBOSITY=1;;
17380 *)   AM_DEFAULT_VERBOSITY=0;;
17381 esac
17382 AM_BACKSLASH='\'
17383
17384
17385
17386 # Checks for library functions
17387 for ac_func in strlcat
17388 do :
17389   ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
17390 if test "x$ac_cv_func_strlcat" = xyes; then :
17391   cat >>confdefs.h <<_ACEOF
17392 #define HAVE_STRLCAT 1
17393 _ACEOF
17394
17395 fi
17396 done
17397
17398
17399 # Obtain compiler/linker options for dependencies
17400
17401 pkg_failed=no
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPM" >&5
17403 $as_echo_n "checking for XPM... " >&6; }
17404
17405 if test -n "$XPM_CFLAGS"; then
17406     pkg_cv_XPM_CFLAGS="$XPM_CFLAGS"
17407  elif test -n "$PKG_CONFIG"; then
17408     if test -n "$PKG_CONFIG" && \
17409     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11\""; } >&5
17410   ($PKG_CONFIG --exists --print-errors "xproto x11") 2>&5
17411   ac_status=$?
17412   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17413   test $ac_status = 0; }; then
17414   pkg_cv_XPM_CFLAGS=`$PKG_CONFIG --cflags "xproto x11" 2>/dev/null`
17415 else
17416   pkg_failed=yes
17417 fi
17418  else
17419     pkg_failed=untried
17420 fi
17421 if test -n "$XPM_LIBS"; then
17422     pkg_cv_XPM_LIBS="$XPM_LIBS"
17423  elif test -n "$PKG_CONFIG"; then
17424     if test -n "$PKG_CONFIG" && \
17425     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11\""; } >&5
17426   ($PKG_CONFIG --exists --print-errors "xproto x11") 2>&5
17427   ac_status=$?
17428   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17429   test $ac_status = 0; }; then
17430   pkg_cv_XPM_LIBS=`$PKG_CONFIG --libs "xproto x11" 2>/dev/null`
17431 else
17432   pkg_failed=yes
17433 fi
17434  else
17435     pkg_failed=untried
17436 fi
17437
17438
17439
17440 if test $pkg_failed = yes; then
17441
17442 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17443         _pkg_short_errors_supported=yes
17444 else
17445         _pkg_short_errors_supported=no
17446 fi
17447         if test $_pkg_short_errors_supported = yes; then
17448                 XPM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto x11" 2>&1`
17449         else
17450                 XPM_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto x11" 2>&1`
17451         fi
17452         # Put the nasty error message in config.log where it belongs
17453         echo "$XPM_PKG_ERRORS" >&5
17454
17455         as_fn_error $? "Package requirements (xproto x11) were not met:
17456
17457 $XPM_PKG_ERRORS
17458
17459 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17460 installed software in a non-standard prefix.
17461
17462 Alternatively, you may set the environment variables XPM_CFLAGS
17463 and XPM_LIBS to avoid the need to call pkg-config.
17464 See the pkg-config man page for more details.
17465 " "$LINENO" 5
17466 elif test $pkg_failed = untried; then
17467         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17469 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17470 is in your PATH or set the PKG_CONFIG environment variable to the full
17471 path to pkg-config.
17472
17473 Alternatively, you may set the environment variables XPM_CFLAGS
17474 and XPM_LIBS to avoid the need to call pkg-config.
17475 See the pkg-config man page for more details.
17476
17477 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17478 See \`config.log' for more details" "$LINENO" 5; }
17479 else
17480         XPM_CFLAGS=$pkg_cv_XPM_CFLAGS
17481         XPM_LIBS=$pkg_cv_XPM_LIBS
17482         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17483 $as_echo "yes" >&6; }
17484         :
17485 fi
17486
17487 pkg_failed=no
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SXPM" >&5
17489 $as_echo_n "checking for SXPM... " >&6; }
17490
17491 if test -n "$SXPM_CFLAGS"; then
17492     pkg_cv_SXPM_CFLAGS="$SXPM_CFLAGS"
17493  elif test -n "$PKG_CONFIG"; then
17494     if test -n "$PKG_CONFIG" && \
17495     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt xext xextproto\""; } >&5
17496   ($PKG_CONFIG --exists --print-errors "x11 xt xext xextproto") 2>&5
17497   ac_status=$?
17498   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17499   test $ac_status = 0; }; then
17500   pkg_cv_SXPM_CFLAGS=`$PKG_CONFIG --cflags "x11 xt xext xextproto" 2>/dev/null`
17501 else
17502   pkg_failed=yes
17503 fi
17504  else
17505     pkg_failed=untried
17506 fi
17507 if test -n "$SXPM_LIBS"; then
17508     pkg_cv_SXPM_LIBS="$SXPM_LIBS"
17509  elif test -n "$PKG_CONFIG"; then
17510     if test -n "$PKG_CONFIG" && \
17511     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt xext xextproto\""; } >&5
17512   ($PKG_CONFIG --exists --print-errors "x11 xt xext xextproto") 2>&5
17513   ac_status=$?
17514   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17515   test $ac_status = 0; }; then
17516   pkg_cv_SXPM_LIBS=`$PKG_CONFIG --libs "x11 xt xext xextproto" 2>/dev/null`
17517 else
17518   pkg_failed=yes
17519 fi
17520  else
17521     pkg_failed=untried
17522 fi
17523
17524
17525
17526 if test $pkg_failed = yes; then
17527
17528 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17529         _pkg_short_errors_supported=yes
17530 else
17531         _pkg_short_errors_supported=no
17532 fi
17533         if test $_pkg_short_errors_supported = yes; then
17534                 SXPM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xt xext xextproto" 2>&1`
17535         else
17536                 SXPM_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xt xext xextproto" 2>&1`
17537         fi
17538         # Put the nasty error message in config.log where it belongs
17539         echo "$SXPM_PKG_ERRORS" >&5
17540
17541         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17542 $as_echo "no" >&6; }
17543                 build_sxpm=false
17544 elif test $pkg_failed = untried; then
17545         build_sxpm=false
17546 else
17547         SXPM_CFLAGS=$pkg_cv_SXPM_CFLAGS
17548         SXPM_LIBS=$pkg_cv_SXPM_LIBS
17549         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17550 $as_echo "yes" >&6; }
17551         build_sxpm=true
17552 fi
17553  if test x$build_sxpm = xtrue; then
17554   BUILD_SXPM_TRUE=
17555   BUILD_SXPM_FALSE='#'
17556 else
17557   BUILD_SXPM_TRUE='#'
17558   BUILD_SXPM_FALSE=
17559 fi
17560
17561
17562 # Internationalization & localization support
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gettext" >&5
17564 $as_echo_n "checking for library containing gettext... " >&6; }
17565 if ${ac_cv_search_gettext+:} false; then :
17566   $as_echo_n "(cached) " >&6
17567 else
17568   ac_func_search_save_LIBS=$LIBS
17569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17570 /* end confdefs.h.  */
17571
17572 /* Override any GCC internal prototype to avoid an error.
17573    Use char because int might match the return type of a GCC
17574    builtin and then its argument prototype would still apply.  */
17575 #ifdef __cplusplus
17576 extern "C"
17577 #endif
17578 char gettext ();
17579 int
17580 main ()
17581 {
17582 return gettext ();
17583   ;
17584   return 0;
17585 }
17586 _ACEOF
17587 for ac_lib in '' intl; do
17588   if test -z "$ac_lib"; then
17589     ac_res="none required"
17590   else
17591     ac_res=-l$ac_lib
17592     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17593   fi
17594   if ac_fn_c_try_link "$LINENO"; then :
17595   ac_cv_search_gettext=$ac_res
17596 fi
17597 rm -f core conftest.err conftest.$ac_objext \
17598     conftest$ac_exeext
17599   if ${ac_cv_search_gettext+:} false; then :
17600   break
17601 fi
17602 done
17603 if ${ac_cv_search_gettext+:} false; then :
17604
17605 else
17606   ac_cv_search_gettext=no
17607 fi
17608 rm conftest.$ac_ext
17609 LIBS=$ac_func_search_save_LIBS
17610 fi
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gettext" >&5
17612 $as_echo "$ac_cv_search_gettext" >&6; }
17613 ac_res=$ac_cv_search_gettext
17614 if test "$ac_res" != no; then :
17615   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17616   USE_GETTEXT="yes"
17617 else
17618   USE_GETTEXT="no"
17619 fi
17620
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install localized messages" >&5
17622 $as_echo_n "checking where to install localized messages... " >&6; }
17623
17624 # Check whether --with-localedir was given.
17625 if test "${with_localedir+set}" = set; then :
17626   withval=$with_localedir; LOCALEDIR=${withval}
17627 else
17628   LOCALEDIR=${datadir}/locale
17629 fi
17630
17631
17632   prefix_NONE=
17633   exec_prefix_NONE=
17634   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
17635   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
17636   eval ax_define_dir="\"$LOCALEDIR\""
17637   eval ax_define_dir="\"$ax_define_dir\""
17638   LOCALEDIR="$ax_define_dir"
17639
17640
17641 cat >>confdefs.h <<_ACEOF
17642 #define LOCALEDIR "$ax_define_dir"
17643 _ACEOF
17644
17645   test "$prefix_NONE" && prefix=NONE
17646   test "$exec_prefix_NONE" && exec_prefix=NONE
17647
17648 if test "x$LOCALEDIR" = "xno" -o "x$USE_GETTEXT" = "xno" ; then
17649         { $as_echo "$as_me:${as_lineno-$LINENO}: result: nowhere" >&5
17650 $as_echo "nowhere" >&6; }
17651         USE_GETTEXT="no"
17652 else
17653         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALEDIR" >&5
17654 $as_echo "$LOCALEDIR" >&6; }
17655 fi
17656
17657 if test "x$USE_GETTEXT" = "xyes" ; then
17658
17659 $as_echo "#define USE_GETTEXT 1" >>confdefs.h
17660
17661 fi
17662  if test "x$USE_GETTEXT" = "xyes"; then
17663   USE_GETTEXT_TRUE=
17664   USE_GETTEXT_FALSE='#'
17665 else
17666   USE_GETTEXT_TRUE='#'
17667   USE_GETTEXT_FALSE=
17668 fi
17669
17670
17671 # Optional feature: When ___.xpm is requested, also look for ___.xpm.Z & .gz
17672 # Replaces ZFILEDEF = -DSTAT_ZFILE in old Imakefile
17673 # Check whether --enable-stat-zfile was given.
17674 if test "${enable_stat_zfile+set}" = set; then :
17675   enableval=$enable_stat_zfile; STAT_ZFILE=$enableval
17676 else
17677   STAT_ZFILE=yes
17678 fi
17679
17680 if test x$STAT_ZFILE = xyes ; then
17681
17682 $as_echo "#define STAT_ZFILE 1" >>confdefs.h
17683
17684 fi
17685
17686 ac_config_files="$ac_config_files Makefile doc/Makefile include/Makefile man/Makefile src/Makefile sxpm/Makefile cxpm/Makefile xpm.pc"
17687
17688 cat >confcache <<\_ACEOF
17689 # This file is a shell script that caches the results of configure
17690 # tests run on this system so they can be shared between configure
17691 # scripts and configure runs, see configure's option --config-cache.
17692 # It is not useful on other systems.  If it contains results you don't
17693 # want to keep, you may remove or edit it.
17694 #
17695 # config.status only pays attention to the cache file if you give it
17696 # the --recheck option to rerun configure.
17697 #
17698 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17699 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17700 # following values.
17701
17702 _ACEOF
17703
17704 # The following way of writing the cache mishandles newlines in values,
17705 # but we know of no workaround that is simple, portable, and efficient.
17706 # So, we kill variables containing newlines.
17707 # Ultrix sh set writes to stderr and can't be redirected directly,
17708 # and sets the high bit in the cache file unless we assign to the vars.
17709 (
17710   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17711     eval ac_val=\$$ac_var
17712     case $ac_val in #(
17713     *${as_nl}*)
17714       case $ac_var in #(
17715       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17716 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17717       esac
17718       case $ac_var in #(
17719       _ | IFS | as_nl) ;; #(
17720       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17721       *) { eval $ac_var=; unset $ac_var;} ;;
17722       esac ;;
17723     esac
17724   done
17725
17726   (set) 2>&1 |
17727     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17728     *${as_nl}ac_space=\ *)
17729       # `set' does not quote correctly, so add quotes: double-quote
17730       # substitution turns \\\\ into \\, and sed turns \\ into \.
17731       sed -n \
17732         "s/'/'\\\\''/g;
17733           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17734       ;; #(
17735     *)
17736       # `set' quotes correctly as required by POSIX, so do not add quotes.
17737       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17738       ;;
17739     esac |
17740     sort
17741 ) |
17742   sed '
17743      /^ac_cv_env_/b end
17744      t clear
17745      :clear
17746      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17747      t end
17748      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17749      :end' >>confcache
17750 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17751   if test -w "$cache_file"; then
17752     if test "x$cache_file" != "x/dev/null"; then
17753       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17754 $as_echo "$as_me: updating cache $cache_file" >&6;}
17755       if test ! -f "$cache_file" || test -h "$cache_file"; then
17756         cat confcache >"$cache_file"
17757       else
17758         case $cache_file in #(
17759         */* | ?:*)
17760           mv -f confcache "$cache_file"$$ &&
17761           mv -f "$cache_file"$$ "$cache_file" ;; #(
17762         *)
17763           mv -f confcache "$cache_file" ;;
17764         esac
17765       fi
17766     fi
17767   else
17768     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17769 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17770   fi
17771 fi
17772 rm -f confcache
17773
17774 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17775 # Let make expand exec_prefix.
17776 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17777
17778 DEFS=-DHAVE_CONFIG_H
17779
17780 ac_libobjs=
17781 ac_ltlibobjs=
17782 U=
17783 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17784   # 1. Remove the extension, and $U if already installed.
17785   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17786   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17787   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17788   #    will be set to the directory where LIBOBJS objects are built.
17789   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17790   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17791 done
17792 LIBOBJS=$ac_libobjs
17793
17794 LTLIBOBJS=$ac_ltlibobjs
17795
17796
17797  if test -n "$EXEEXT"; then
17798   am__EXEEXT_TRUE=
17799   am__EXEEXT_FALSE='#'
17800 else
17801   am__EXEEXT_TRUE='#'
17802   am__EXEEXT_FALSE=
17803 fi
17804
17805 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17806   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17807 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17808 fi
17809 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17810   as_fn_error $? "conditional \"AMDEP\" was never defined.
17811 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17812 fi
17813 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17814   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17815 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17816 fi
17817 if test -z "${BUILD_SXPM_TRUE}" && test -z "${BUILD_SXPM_FALSE}"; then
17818   as_fn_error $? "conditional \"BUILD_SXPM\" was never defined.
17819 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17820 fi
17821 if test -z "${USE_GETTEXT_TRUE}" && test -z "${USE_GETTEXT_FALSE}"; then
17822   as_fn_error $? "conditional \"USE_GETTEXT\" was never defined.
17823 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17824 fi
17825
17826 : "${CONFIG_STATUS=./config.status}"
17827 ac_write_fail=0
17828 ac_clean_files_save=$ac_clean_files
17829 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17831 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17832 as_write_fail=0
17833 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17834 #! $SHELL
17835 # Generated by $as_me.
17836 # Run this file to recreate the current configuration.
17837 # Compiler output produced by configure, useful for debugging
17838 # configure, is in config.log if it exists.
17839
17840 debug=false
17841 ac_cs_recheck=false
17842 ac_cs_silent=false
17843
17844 SHELL=\${CONFIG_SHELL-$SHELL}
17845 export SHELL
17846 _ASEOF
17847 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17848 ## -------------------- ##
17849 ## M4sh Initialization. ##
17850 ## -------------------- ##
17851
17852 # Be more Bourne compatible
17853 DUALCASE=1; export DUALCASE # for MKS sh
17854 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17855   emulate sh
17856   NULLCMD=:
17857   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17858   # is contrary to our usage.  Disable this feature.
17859   alias -g '${1+"$@"}'='"$@"'
17860   setopt NO_GLOB_SUBST
17861 else
17862   case `(set -o) 2>/dev/null` in #(
17863   *posix*) :
17864     set -o posix ;; #(
17865   *) :
17866      ;;
17867 esac
17868 fi
17869
17870
17871 as_nl='
17872 '
17873 export as_nl
17874 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17875 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17876 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17877 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17878 # Prefer a ksh shell builtin over an external printf program on Solaris,
17879 # but without wasting forks for bash or zsh.
17880 if test -z "$BASH_VERSION$ZSH_VERSION" \
17881     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17882   as_echo='print -r --'
17883   as_echo_n='print -rn --'
17884 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17885   as_echo='printf %s\n'
17886   as_echo_n='printf %s'
17887 else
17888   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17889     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17890     as_echo_n='/usr/ucb/echo -n'
17891   else
17892     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17893     as_echo_n_body='eval
17894       arg=$1;
17895       case $arg in #(
17896       *"$as_nl"*)
17897         expr "X$arg" : "X\\(.*\\)$as_nl";
17898         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17899       esac;
17900       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17901     '
17902     export as_echo_n_body
17903     as_echo_n='sh -c $as_echo_n_body as_echo'
17904   fi
17905   export as_echo_body
17906   as_echo='sh -c $as_echo_body as_echo'
17907 fi
17908
17909 # The user is always right.
17910 if test "${PATH_SEPARATOR+set}" != set; then
17911   PATH_SEPARATOR=:
17912   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17913     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17914       PATH_SEPARATOR=';'
17915   }
17916 fi
17917
17918
17919 # IFS
17920 # We need space, tab and new line, in precisely that order.  Quoting is
17921 # there to prevent editors from complaining about space-tab.
17922 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17923 # splitting by setting IFS to empty value.)
17924 IFS=" ""        $as_nl"
17925
17926 # Find who we are.  Look in the path if we contain no directory separator.
17927 as_myself=
17928 case $0 in #((
17929   *[\\/]* ) as_myself=$0 ;;
17930   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17931 for as_dir in $PATH
17932 do
17933   IFS=$as_save_IFS
17934   test -z "$as_dir" && as_dir=.
17935     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17936   done
17937 IFS=$as_save_IFS
17938
17939      ;;
17940 esac
17941 # We did not find ourselves, most probably we were run as `sh COMMAND'
17942 # in which case we are not to be found in the path.
17943 if test "x$as_myself" = x; then
17944   as_myself=$0
17945 fi
17946 if test ! -f "$as_myself"; then
17947   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17948   exit 1
17949 fi
17950
17951 # Unset variables that we do not need and which cause bugs (e.g. in
17952 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17953 # suppresses any "Segmentation fault" message there.  '((' could
17954 # trigger a bug in pdksh 5.2.14.
17955 for as_var in BASH_ENV ENV MAIL MAILPATH
17956 do eval test x\${$as_var+set} = xset \
17957   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17958 done
17959 PS1='$ '
17960 PS2='> '
17961 PS4='+ '
17962
17963 # NLS nuisances.
17964 LC_ALL=C
17965 export LC_ALL
17966 LANGUAGE=C
17967 export LANGUAGE
17968
17969 # CDPATH.
17970 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17971
17972
17973 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17974 # ----------------------------------------
17975 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17976 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17977 # script with STATUS, using 1 if that was 0.
17978 as_fn_error ()
17979 {
17980   as_status=$1; test $as_status -eq 0 && as_status=1
17981   if test "$4"; then
17982     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17983     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17984   fi
17985   $as_echo "$as_me: error: $2" >&2
17986   as_fn_exit $as_status
17987 } # as_fn_error
17988
17989
17990 # as_fn_set_status STATUS
17991 # -----------------------
17992 # Set $? to STATUS, without forking.
17993 as_fn_set_status ()
17994 {
17995   return $1
17996 } # as_fn_set_status
17997
17998 # as_fn_exit STATUS
17999 # -----------------
18000 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18001 as_fn_exit ()
18002 {
18003   set +e
18004   as_fn_set_status $1
18005   exit $1
18006 } # as_fn_exit
18007
18008 # as_fn_unset VAR
18009 # ---------------
18010 # Portably unset VAR.
18011 as_fn_unset ()
18012 {
18013   { eval $1=; unset $1;}
18014 }
18015 as_unset=as_fn_unset
18016 # as_fn_append VAR VALUE
18017 # ----------------------
18018 # Append the text in VALUE to the end of the definition contained in VAR. Take
18019 # advantage of any shell optimizations that allow amortized linear growth over
18020 # repeated appends, instead of the typical quadratic growth present in naive
18021 # implementations.
18022 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18023   eval 'as_fn_append ()
18024   {
18025     eval $1+=\$2
18026   }'
18027 else
18028   as_fn_append ()
18029   {
18030     eval $1=\$$1\$2
18031   }
18032 fi # as_fn_append
18033
18034 # as_fn_arith ARG...
18035 # ------------------
18036 # Perform arithmetic evaluation on the ARGs, and store the result in the
18037 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18038 # must be portable across $(()) and expr.
18039 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18040   eval 'as_fn_arith ()
18041   {
18042     as_val=$(( $* ))
18043   }'
18044 else
18045   as_fn_arith ()
18046   {
18047     as_val=`expr "$@" || test $? -eq 1`
18048   }
18049 fi # as_fn_arith
18050
18051
18052 if expr a : '\(a\)' >/dev/null 2>&1 &&
18053    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18054   as_expr=expr
18055 else
18056   as_expr=false
18057 fi
18058
18059 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18060   as_basename=basename
18061 else
18062   as_basename=false
18063 fi
18064
18065 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18066   as_dirname=dirname
18067 else
18068   as_dirname=false
18069 fi
18070
18071 as_me=`$as_basename -- "$0" ||
18072 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18073          X"$0" : 'X\(//\)$' \| \
18074          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18075 $as_echo X/"$0" |
18076     sed '/^.*\/\([^/][^/]*\)\/*$/{
18077             s//\1/
18078             q
18079           }
18080           /^X\/\(\/\/\)$/{
18081             s//\1/
18082             q
18083           }
18084           /^X\/\(\/\).*/{
18085             s//\1/
18086             q
18087           }
18088           s/.*/./; q'`
18089
18090 # Avoid depending upon Character Ranges.
18091 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18092 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18093 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18094 as_cr_digits='0123456789'
18095 as_cr_alnum=$as_cr_Letters$as_cr_digits
18096
18097 ECHO_C= ECHO_N= ECHO_T=
18098 case `echo -n x` in #(((((
18099 -n*)
18100   case `echo 'xy\c'` in
18101   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18102   xy)  ECHO_C='\c';;
18103   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18104        ECHO_T=' ';;
18105   esac;;
18106 *)
18107   ECHO_N='-n';;
18108 esac
18109
18110 rm -f conf$$ conf$$.exe conf$$.file
18111 if test -d conf$$.dir; then
18112   rm -f conf$$.dir/conf$$.file
18113 else
18114   rm -f conf$$.dir
18115   mkdir conf$$.dir 2>/dev/null
18116 fi
18117 if (echo >conf$$.file) 2>/dev/null; then
18118   if ln -s conf$$.file conf$$ 2>/dev/null; then
18119     as_ln_s='ln -s'
18120     # ... but there are two gotchas:
18121     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18122     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18123     # In both cases, we have to default to `cp -p'.
18124     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18125       as_ln_s='cp -p'
18126   elif ln conf$$.file conf$$ 2>/dev/null; then
18127     as_ln_s=ln
18128   else
18129     as_ln_s='cp -p'
18130   fi
18131 else
18132   as_ln_s='cp -p'
18133 fi
18134 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18135 rmdir conf$$.dir 2>/dev/null
18136
18137
18138 # as_fn_mkdir_p
18139 # -------------
18140 # Create "$as_dir" as a directory, including parents if necessary.
18141 as_fn_mkdir_p ()
18142 {
18143
18144   case $as_dir in #(
18145   -*) as_dir=./$as_dir;;
18146   esac
18147   test -d "$as_dir" || eval $as_mkdir_p || {
18148     as_dirs=
18149     while :; do
18150       case $as_dir in #(
18151       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18152       *) as_qdir=$as_dir;;
18153       esac
18154       as_dirs="'$as_qdir' $as_dirs"
18155       as_dir=`$as_dirname -- "$as_dir" ||
18156 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18157          X"$as_dir" : 'X\(//\)[^/]' \| \
18158          X"$as_dir" : 'X\(//\)$' \| \
18159          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18160 $as_echo X"$as_dir" |
18161     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18162             s//\1/
18163             q
18164           }
18165           /^X\(\/\/\)[^/].*/{
18166             s//\1/
18167             q
18168           }
18169           /^X\(\/\/\)$/{
18170             s//\1/
18171             q
18172           }
18173           /^X\(\/\).*/{
18174             s//\1/
18175             q
18176           }
18177           s/.*/./; q'`
18178       test -d "$as_dir" && break
18179     done
18180     test -z "$as_dirs" || eval "mkdir $as_dirs"
18181   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18182
18183
18184 } # as_fn_mkdir_p
18185 if mkdir -p . 2>/dev/null; then
18186   as_mkdir_p='mkdir -p "$as_dir"'
18187 else
18188   test -d ./-p && rmdir ./-p
18189   as_mkdir_p=false
18190 fi
18191
18192 if test -x / >/dev/null 2>&1; then
18193   as_test_x='test -x'
18194 else
18195   if ls -dL / >/dev/null 2>&1; then
18196     as_ls_L_option=L
18197   else
18198     as_ls_L_option=
18199   fi
18200   as_test_x='
18201     eval sh -c '\''
18202       if test -d "$1"; then
18203         test -d "$1/.";
18204       else
18205         case $1 in #(
18206         -*)set "./$1";;
18207         esac;
18208         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18209         ???[sx]*):;;*)false;;esac;fi
18210     '\'' sh
18211   '
18212 fi
18213 as_executable_p=$as_test_x
18214
18215 # Sed expression to map a string onto a valid CPP name.
18216 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18217
18218 # Sed expression to map a string onto a valid variable name.
18219 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18220
18221
18222 exec 6>&1
18223 ## ----------------------------------- ##
18224 ## Main body of $CONFIG_STATUS script. ##
18225 ## ----------------------------------- ##
18226 _ASEOF
18227 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18228
18229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18230 # Save the log message, to keep $0 and so on meaningful, and to
18231 # report actual input values of CONFIG_FILES etc. instead of their
18232 # values after options handling.
18233 ac_log="
18234 This file was extended by libXpm $as_me 3.5.10, which was
18235 generated by GNU Autoconf 2.68.  Invocation command line was
18236
18237   CONFIG_FILES    = $CONFIG_FILES
18238   CONFIG_HEADERS  = $CONFIG_HEADERS
18239   CONFIG_LINKS    = $CONFIG_LINKS
18240   CONFIG_COMMANDS = $CONFIG_COMMANDS
18241   $ $0 $@
18242
18243 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18244 "
18245
18246 _ACEOF
18247
18248 case $ac_config_files in *"
18249 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18250 esac
18251
18252 case $ac_config_headers in *"
18253 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18254 esac
18255
18256
18257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18258 # Files that config.status was made for.
18259 config_files="$ac_config_files"
18260 config_headers="$ac_config_headers"
18261 config_commands="$ac_config_commands"
18262
18263 _ACEOF
18264
18265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18266 ac_cs_usage="\
18267 \`$as_me' instantiates files and other configuration actions
18268 from templates according to the current configuration.  Unless the files
18269 and actions are specified as TAGs, all are instantiated by default.
18270
18271 Usage: $0 [OPTION]... [TAG]...
18272
18273   -h, --help       print this help, then exit
18274   -V, --version    print version number and configuration settings, then exit
18275       --config     print configuration, then exit
18276   -q, --quiet, --silent
18277                    do not print progress messages
18278   -d, --debug      don't remove temporary files
18279       --recheck    update $as_me by reconfiguring in the same conditions
18280       --file=FILE[:TEMPLATE]
18281                    instantiate the configuration file FILE
18282       --header=FILE[:TEMPLATE]
18283                    instantiate the configuration header FILE
18284
18285 Configuration files:
18286 $config_files
18287
18288 Configuration headers:
18289 $config_headers
18290
18291 Configuration commands:
18292 $config_commands
18293
18294 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18295
18296 _ACEOF
18297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18298 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18299 ac_cs_version="\\
18300 libXpm config.status 3.5.10
18301 configured by $0, generated by GNU Autoconf 2.68,
18302   with options \\"\$ac_cs_config\\"
18303
18304 Copyright (C) 2010 Free Software Foundation, Inc.
18305 This config.status script is free software; the Free Software Foundation
18306 gives unlimited permission to copy, distribute and modify it."
18307
18308 ac_pwd='$ac_pwd'
18309 srcdir='$srcdir'
18310 INSTALL='$INSTALL'
18311 MKDIR_P='$MKDIR_P'
18312 AWK='$AWK'
18313 test -n "\$AWK" || AWK=awk
18314 _ACEOF
18315
18316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18317 # The default lists apply if the user does not specify any file.
18318 ac_need_defaults=:
18319 while test $# != 0
18320 do
18321   case $1 in
18322   --*=?*)
18323     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18324     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18325     ac_shift=:
18326     ;;
18327   --*=)
18328     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18329     ac_optarg=
18330     ac_shift=:
18331     ;;
18332   *)
18333     ac_option=$1
18334     ac_optarg=$2
18335     ac_shift=shift
18336     ;;
18337   esac
18338
18339   case $ac_option in
18340   # Handling of the options.
18341   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18342     ac_cs_recheck=: ;;
18343   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18344     $as_echo "$ac_cs_version"; exit ;;
18345   --config | --confi | --conf | --con | --co | --c )
18346     $as_echo "$ac_cs_config"; exit ;;
18347   --debug | --debu | --deb | --de | --d | -d )
18348     debug=: ;;
18349   --file | --fil | --fi | --f )
18350     $ac_shift
18351     case $ac_optarg in
18352     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18353     '') as_fn_error $? "missing file argument" ;;
18354     esac
18355     as_fn_append CONFIG_FILES " '$ac_optarg'"
18356     ac_need_defaults=false;;
18357   --header | --heade | --head | --hea )
18358     $ac_shift
18359     case $ac_optarg in
18360     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18361     esac
18362     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18363     ac_need_defaults=false;;
18364   --he | --h)
18365     # Conflict between --help and --header
18366     as_fn_error $? "ambiguous option: \`$1'
18367 Try \`$0 --help' for more information.";;
18368   --help | --hel | -h )
18369     $as_echo "$ac_cs_usage"; exit ;;
18370   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18371   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18372     ac_cs_silent=: ;;
18373
18374   # This is an error.
18375   -*) as_fn_error $? "unrecognized option: \`$1'
18376 Try \`$0 --help' for more information." ;;
18377
18378   *) as_fn_append ac_config_targets " $1"
18379      ac_need_defaults=false ;;
18380
18381   esac
18382   shift
18383 done
18384
18385 ac_configure_extra_args=
18386
18387 if $ac_cs_silent; then
18388   exec 6>/dev/null
18389   ac_configure_extra_args="$ac_configure_extra_args --silent"
18390 fi
18391
18392 _ACEOF
18393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18394 if \$ac_cs_recheck; then
18395   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18396   shift
18397   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18398   CONFIG_SHELL='$SHELL'
18399   export CONFIG_SHELL
18400   exec "\$@"
18401 fi
18402
18403 _ACEOF
18404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18405 exec 5>>config.log
18406 {
18407   echo
18408   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18409 ## Running $as_me. ##
18410 _ASBOX
18411   $as_echo "$ac_log"
18412 } >&5
18413
18414 _ACEOF
18415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18416 #
18417 # INIT-COMMANDS
18418 #
18419 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18420
18421
18422 # The HP-UX ksh and POSIX shell print the target directory to stdout
18423 # if CDPATH is set.
18424 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18425
18426 sed_quote_subst='$sed_quote_subst'
18427 double_quote_subst='$double_quote_subst'
18428 delay_variable_subst='$delay_variable_subst'
18429 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18430 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18431 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18432 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18433 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18434 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18435 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18436 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18437 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18438 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18439 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18440 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18441 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18442 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18443 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18444 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18445 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18446 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18447 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18448 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18449 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18450 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18451 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18452 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18453 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18454 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18455 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18456 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18457 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18458 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18459 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18460 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18461 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18462 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18463 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18464 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18465 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18466 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18467 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18468 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18469 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18470 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18471 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18472 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18473 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18474 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18475 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18476 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18477 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18478 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18479 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18480 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18481 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18482 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18483 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18484 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"`'
18485 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18486 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18487 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18488 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18489 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18490 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18491 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18492 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18493 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18494 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18495 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18496 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18497 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18498 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18499 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18500 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18501 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18502 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18503 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18504 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18505 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18506 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18507 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18508 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18509 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18510 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18511 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18512 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18513 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18514 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18515 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18516 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18517 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18518 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18519 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18520 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18521 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18522 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18523 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18524 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18525 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18526 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18527 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18528 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18529 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18530 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18531 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18532 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18533 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18534 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18535 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18536 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18537 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18538 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18539 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18540 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18541 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18542 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18543 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18544 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18545 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18546 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18547 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18548 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18549 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18550 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18551 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18552 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18553 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18554 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18555 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18556 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18557 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18558 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18559
18560 LTCC='$LTCC'
18561 LTCFLAGS='$LTCFLAGS'
18562 compiler='$compiler_DEFAULT'
18563
18564 # A function that is used when there is no print builtin or printf.
18565 func_fallback_echo ()
18566 {
18567   eval 'cat <<_LTECHO_EOF
18568 \$1
18569 _LTECHO_EOF'
18570 }
18571
18572 # Quote evaled strings.
18573 for var in SHELL \
18574 ECHO \
18575 SED \
18576 GREP \
18577 EGREP \
18578 FGREP \
18579 LD \
18580 NM \
18581 LN_S \
18582 lt_SP2NL \
18583 lt_NL2SP \
18584 reload_flag \
18585 OBJDUMP \
18586 deplibs_check_method \
18587 file_magic_cmd \
18588 file_magic_glob \
18589 want_nocaseglob \
18590 DLLTOOL \
18591 sharedlib_from_linklib_cmd \
18592 AR \
18593 AR_FLAGS \
18594 archiver_list_spec \
18595 STRIP \
18596 RANLIB \
18597 CC \
18598 CFLAGS \
18599 compiler \
18600 lt_cv_sys_global_symbol_pipe \
18601 lt_cv_sys_global_symbol_to_cdecl \
18602 lt_cv_sys_global_symbol_to_c_name_address \
18603 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18604 nm_file_list_spec \
18605 lt_prog_compiler_no_builtin_flag \
18606 lt_prog_compiler_pic \
18607 lt_prog_compiler_wl \
18608 lt_prog_compiler_static \
18609 lt_cv_prog_compiler_c_o \
18610 need_locks \
18611 MANIFEST_TOOL \
18612 DSYMUTIL \
18613 NMEDIT \
18614 LIPO \
18615 OTOOL \
18616 OTOOL64 \
18617 shrext_cmds \
18618 export_dynamic_flag_spec \
18619 whole_archive_flag_spec \
18620 compiler_needs_object \
18621 with_gnu_ld \
18622 allow_undefined_flag \
18623 no_undefined_flag \
18624 hardcode_libdir_flag_spec \
18625 hardcode_libdir_flag_spec_ld \
18626 hardcode_libdir_separator \
18627 exclude_expsyms \
18628 include_expsyms \
18629 file_list_spec \
18630 variables_saved_for_relink \
18631 libname_spec \
18632 library_names_spec \
18633 soname_spec \
18634 install_override_mode \
18635 finish_eval \
18636 old_striplib \
18637 striplib; do
18638     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18639     *[\\\\\\\`\\"\\\$]*)
18640       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18641       ;;
18642     *)
18643       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18644       ;;
18645     esac
18646 done
18647
18648 # Double-quote double-evaled strings.
18649 for var in reload_cmds \
18650 old_postinstall_cmds \
18651 old_postuninstall_cmds \
18652 old_archive_cmds \
18653 extract_expsyms_cmds \
18654 old_archive_from_new_cmds \
18655 old_archive_from_expsyms_cmds \
18656 archive_cmds \
18657 archive_expsym_cmds \
18658 module_cmds \
18659 module_expsym_cmds \
18660 export_symbols_cmds \
18661 prelink_cmds \
18662 postlink_cmds \
18663 postinstall_cmds \
18664 postuninstall_cmds \
18665 finish_cmds \
18666 sys_lib_search_path_spec \
18667 sys_lib_dlsearch_path_spec; do
18668     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18669     *[\\\\\\\`\\"\\\$]*)
18670       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18671       ;;
18672     *)
18673       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18674       ;;
18675     esac
18676 done
18677
18678 ac_aux_dir='$ac_aux_dir'
18679 xsi_shell='$xsi_shell'
18680 lt_shell_append='$lt_shell_append'
18681
18682 # See if we are running on zsh, and set the options which allow our
18683 # commands through without removal of \ escapes INIT.
18684 if test -n "\${ZSH_VERSION+set}" ; then
18685    setopt NO_GLOB_SUBST
18686 fi
18687
18688
18689     PACKAGE='$PACKAGE'
18690     VERSION='$VERSION'
18691     TIMESTAMP='$TIMESTAMP'
18692     RM='$RM'
18693     ofile='$ofile'
18694
18695
18696
18697
18698 _ACEOF
18699
18700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18701
18702 # Handling of arguments.
18703 for ac_config_target in $ac_config_targets
18704 do
18705   case $ac_config_target in
18706     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18707     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18708     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18709     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18710     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18711     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18712     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18713     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18714     "sxpm/Makefile") CONFIG_FILES="$CONFIG_FILES sxpm/Makefile" ;;
18715     "cxpm/Makefile") CONFIG_FILES="$CONFIG_FILES cxpm/Makefile" ;;
18716     "xpm.pc") CONFIG_FILES="$CONFIG_FILES xpm.pc" ;;
18717
18718   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18719   esac
18720 done
18721
18722
18723 # If the user did not use the arguments to specify the items to instantiate,
18724 # then the envvar interface is used.  Set only those that are not.
18725 # We use the long form for the default assignment because of an extremely
18726 # bizarre bug on SunOS 4.1.3.
18727 if $ac_need_defaults; then
18728   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18729   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18730   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18731 fi
18732
18733 # Have a temporary directory for convenience.  Make it in the build tree
18734 # simply because there is no reason against having it here, and in addition,
18735 # creating and moving files from /tmp can sometimes cause problems.
18736 # Hook for its removal unless debugging.
18737 # Note that there is a small window in which the directory will not be cleaned:
18738 # after its creation but before its name has been assigned to `$tmp'.
18739 $debug ||
18740 {
18741   tmp= ac_tmp=
18742   trap 'exit_status=$?
18743   : "${ac_tmp:=$tmp}"
18744   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18745 ' 0
18746   trap 'as_fn_exit 1' 1 2 13 15
18747 }
18748 # Create a (secure) tmp directory for tmp files.
18749
18750 {
18751   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18752   test -d "$tmp"
18753 }  ||
18754 {
18755   tmp=./conf$$-$RANDOM
18756   (umask 077 && mkdir "$tmp")
18757 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18758 ac_tmp=$tmp
18759
18760 # Set up the scripts for CONFIG_FILES section.
18761 # No need to generate them if there are no CONFIG_FILES.
18762 # This happens for instance with `./config.status config.h'.
18763 if test -n "$CONFIG_FILES"; then
18764
18765
18766 ac_cr=`echo X | tr X '\015'`
18767 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18768 # But we know of no other shell where ac_cr would be empty at this
18769 # point, so we can use a bashism as a fallback.
18770 if test "x$ac_cr" = x; then
18771   eval ac_cr=\$\'\\r\'
18772 fi
18773 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18774 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18775   ac_cs_awk_cr='\\r'
18776 else
18777   ac_cs_awk_cr=$ac_cr
18778 fi
18779
18780 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18781 _ACEOF
18782
18783
18784 {
18785   echo "cat >conf$$subs.awk <<_ACEOF" &&
18786   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18787   echo "_ACEOF"
18788 } >conf$$subs.sh ||
18789   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18790 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18791 ac_delim='%!_!# '
18792 for ac_last_try in false false false false false :; do
18793   . ./conf$$subs.sh ||
18794     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18795
18796   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18797   if test $ac_delim_n = $ac_delim_num; then
18798     break
18799   elif $ac_last_try; then
18800     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18801   else
18802     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18803   fi
18804 done
18805 rm -f conf$$subs.sh
18806
18807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18808 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18809 _ACEOF
18810 sed -n '
18811 h
18812 s/^/S["/; s/!.*/"]=/
18813 p
18814 g
18815 s/^[^!]*!//
18816 :repl
18817 t repl
18818 s/'"$ac_delim"'$//
18819 t delim
18820 :nl
18821 h
18822 s/\(.\{148\}\)..*/\1/
18823 t more1
18824 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18825 p
18826 n
18827 b repl
18828 :more1
18829 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18830 p
18831 g
18832 s/.\{148\}//
18833 t nl
18834 :delim
18835 h
18836 s/\(.\{148\}\)..*/\1/
18837 t more2
18838 s/["\\]/\\&/g; s/^/"/; s/$/"/
18839 p
18840 b
18841 :more2
18842 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18843 p
18844 g
18845 s/.\{148\}//
18846 t delim
18847 ' <conf$$subs.awk | sed '
18848 /^[^""]/{
18849   N
18850   s/\n//
18851 }
18852 ' >>$CONFIG_STATUS || ac_write_fail=1
18853 rm -f conf$$subs.awk
18854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18855 _ACAWK
18856 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18857   for (key in S) S_is_set[key] = 1
18858   FS = "\a"
18859
18860 }
18861 {
18862   line = $ 0
18863   nfields = split(line, field, "@")
18864   substed = 0
18865   len = length(field[1])
18866   for (i = 2; i < nfields; i++) {
18867     key = field[i]
18868     keylen = length(key)
18869     if (S_is_set[key]) {
18870       value = S[key]
18871       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18872       len += length(value) + length(field[++i])
18873       substed = 1
18874     } else
18875       len += 1 + keylen
18876   }
18877
18878   print line
18879 }
18880
18881 _ACAWK
18882 _ACEOF
18883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18884 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18885   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18886 else
18887   cat
18888 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18889   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18890 _ACEOF
18891
18892 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18893 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18894 # trailing colons and then remove the whole line if VPATH becomes empty
18895 # (actually we leave an empty line to preserve line numbers).
18896 if test "x$srcdir" = x.; then
18897   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18898 h
18899 s///
18900 s/^/:/
18901 s/[      ]*$/:/
18902 s/:\$(srcdir):/:/g
18903 s/:\${srcdir}:/:/g
18904 s/:@srcdir@:/:/g
18905 s/^:*//
18906 s/:*$//
18907 x
18908 s/\(=[   ]*\).*/\1/
18909 G
18910 s/\n//
18911 s/^[^=]*=[       ]*$//
18912 }'
18913 fi
18914
18915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18916 fi # test -n "$CONFIG_FILES"
18917
18918 # Set up the scripts for CONFIG_HEADERS section.
18919 # No need to generate them if there are no CONFIG_HEADERS.
18920 # This happens for instance with `./config.status Makefile'.
18921 if test -n "$CONFIG_HEADERS"; then
18922 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18923 BEGIN {
18924 _ACEOF
18925
18926 # Transform confdefs.h into an awk script `defines.awk', embedded as
18927 # here-document in config.status, that substitutes the proper values into
18928 # config.h.in to produce config.h.
18929
18930 # Create a delimiter string that does not exist in confdefs.h, to ease
18931 # handling of long lines.
18932 ac_delim='%!_!# '
18933 for ac_last_try in false false :; do
18934   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18935   if test -z "$ac_tt"; then
18936     break
18937   elif $ac_last_try; then
18938     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18939   else
18940     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18941   fi
18942 done
18943
18944 # For the awk script, D is an array of macro values keyed by name,
18945 # likewise P contains macro parameters if any.  Preserve backslash
18946 # newline sequences.
18947
18948 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18949 sed -n '
18950 s/.\{148\}/&'"$ac_delim"'/g
18951 t rset
18952 :rset
18953 s/^[     ]*#[    ]*define[       ][      ]*/ /
18954 t def
18955 d
18956 :def
18957 s/\\$//
18958 t bsnl
18959 s/["\\]/\\&/g
18960 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18961 D["\1"]=" \3"/p
18962 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18963 d
18964 :bsnl
18965 s/["\\]/\\&/g
18966 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18967 D["\1"]=" \3\\\\\\n"\\/p
18968 t cont
18969 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18970 t cont
18971 d
18972 :cont
18973 n
18974 s/.\{148\}/&'"$ac_delim"'/g
18975 t clear
18976 :clear
18977 s/\\$//
18978 t bsnlc
18979 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18980 d
18981 :bsnlc
18982 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18983 b cont
18984 ' <confdefs.h | sed '
18985 s/'"$ac_delim"'/"\\\
18986 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18987
18988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18989   for (key in D) D_is_set[key] = 1
18990   FS = "\a"
18991 }
18992 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18993   line = \$ 0
18994   split(line, arg, " ")
18995   if (arg[1] == "#") {
18996     defundef = arg[2]
18997     mac1 = arg[3]
18998   } else {
18999     defundef = substr(arg[1], 2)
19000     mac1 = arg[2]
19001   }
19002   split(mac1, mac2, "(") #)
19003   macro = mac2[1]
19004   prefix = substr(line, 1, index(line, defundef) - 1)
19005   if (D_is_set[macro]) {
19006     # Preserve the white space surrounding the "#".
19007     print prefix "define", macro P[macro] D[macro]
19008     next
19009   } else {
19010     # Replace #undef with comments.  This is necessary, for example,
19011     # in the case of _POSIX_SOURCE, which is predefined and required
19012     # on some systems where configure will not decide to define it.
19013     if (defundef == "undef") {
19014       print "/*", prefix defundef, macro, "*/"
19015       next
19016     }
19017   }
19018 }
19019 { print }
19020 _ACAWK
19021 _ACEOF
19022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19023   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19024 fi # test -n "$CONFIG_HEADERS"
19025
19026
19027 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19028 shift
19029 for ac_tag
19030 do
19031   case $ac_tag in
19032   :[FHLC]) ac_mode=$ac_tag; continue;;
19033   esac
19034   case $ac_mode$ac_tag in
19035   :[FHL]*:*);;
19036   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19037   :[FH]-) ac_tag=-:-;;
19038   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19039   esac
19040   ac_save_IFS=$IFS
19041   IFS=:
19042   set x $ac_tag
19043   IFS=$ac_save_IFS
19044   shift
19045   ac_file=$1
19046   shift
19047
19048   case $ac_mode in
19049   :L) ac_source=$1;;
19050   :[FH])
19051     ac_file_inputs=
19052     for ac_f
19053     do
19054       case $ac_f in
19055       -) ac_f="$ac_tmp/stdin";;
19056       *) # Look for the file first in the build tree, then in the source tree
19057          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19058          # because $ac_f cannot contain `:'.
19059          test -f "$ac_f" ||
19060            case $ac_f in
19061            [\\/$]*) false;;
19062            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19063            esac ||
19064            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19065       esac
19066       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19067       as_fn_append ac_file_inputs " '$ac_f'"
19068     done
19069
19070     # Let's still pretend it is `configure' which instantiates (i.e., don't
19071     # use $as_me), people would be surprised to read:
19072     #    /* config.h.  Generated by config.status.  */
19073     configure_input='Generated from '`
19074           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19075         `' by configure.'
19076     if test x"$ac_file" != x-; then
19077       configure_input="$ac_file.  $configure_input"
19078       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19079 $as_echo "$as_me: creating $ac_file" >&6;}
19080     fi
19081     # Neutralize special characters interpreted by sed in replacement strings.
19082     case $configure_input in #(
19083     *\&* | *\|* | *\\* )
19084        ac_sed_conf_input=`$as_echo "$configure_input" |
19085        sed 's/[\\\\&|]/\\\\&/g'`;; #(
19086     *) ac_sed_conf_input=$configure_input;;
19087     esac
19088
19089     case $ac_tag in
19090     *:-:* | *:-) cat >"$ac_tmp/stdin" \
19091       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19092     esac
19093     ;;
19094   esac
19095
19096   ac_dir=`$as_dirname -- "$ac_file" ||
19097 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19098          X"$ac_file" : 'X\(//\)[^/]' \| \
19099          X"$ac_file" : 'X\(//\)$' \| \
19100          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19101 $as_echo X"$ac_file" |
19102     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19103             s//\1/
19104             q
19105           }
19106           /^X\(\/\/\)[^/].*/{
19107             s//\1/
19108             q
19109           }
19110           /^X\(\/\/\)$/{
19111             s//\1/
19112             q
19113           }
19114           /^X\(\/\).*/{
19115             s//\1/
19116             q
19117           }
19118           s/.*/./; q'`
19119   as_dir="$ac_dir"; as_fn_mkdir_p
19120   ac_builddir=.
19121
19122 case "$ac_dir" in
19123 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19124 *)
19125   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19126   # A ".." for each directory in $ac_dir_suffix.
19127   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19128   case $ac_top_builddir_sub in
19129   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19130   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19131   esac ;;
19132 esac
19133 ac_abs_top_builddir=$ac_pwd
19134 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19135 # for backward compatibility:
19136 ac_top_builddir=$ac_top_build_prefix
19137
19138 case $srcdir in
19139   .)  # We are building in place.
19140     ac_srcdir=.
19141     ac_top_srcdir=$ac_top_builddir_sub
19142     ac_abs_top_srcdir=$ac_pwd ;;
19143   [\\/]* | ?:[\\/]* )  # Absolute name.
19144     ac_srcdir=$srcdir$ac_dir_suffix;
19145     ac_top_srcdir=$srcdir
19146     ac_abs_top_srcdir=$srcdir ;;
19147   *) # Relative name.
19148     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19149     ac_top_srcdir=$ac_top_build_prefix$srcdir
19150     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19151 esac
19152 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19153
19154
19155   case $ac_mode in
19156   :F)
19157   #
19158   # CONFIG_FILE
19159   #
19160
19161   case $INSTALL in
19162   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19163   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19164   esac
19165   ac_MKDIR_P=$MKDIR_P
19166   case $MKDIR_P in
19167   [\\/$]* | ?:[\\/]* ) ;;
19168   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19169   esac
19170 _ACEOF
19171
19172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19173 # If the template does not know about datarootdir, expand it.
19174 # FIXME: This hack should be removed a few years after 2.60.
19175 ac_datarootdir_hack=; ac_datarootdir_seen=
19176 ac_sed_dataroot='
19177 /datarootdir/ {
19178   p
19179   q
19180 }
19181 /@datadir@/p
19182 /@docdir@/p
19183 /@infodir@/p
19184 /@localedir@/p
19185 /@mandir@/p'
19186 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19187 *datarootdir*) ac_datarootdir_seen=yes;;
19188 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19189   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19190 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19191 _ACEOF
19192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19193   ac_datarootdir_hack='
19194   s&@datadir@&$datadir&g
19195   s&@docdir@&$docdir&g
19196   s&@infodir@&$infodir&g
19197   s&@localedir@&$localedir&g
19198   s&@mandir@&$mandir&g
19199   s&\\\${datarootdir}&$datarootdir&g' ;;
19200 esac
19201 _ACEOF
19202
19203 # Neutralize VPATH when `$srcdir' = `.'.
19204 # Shell code in configure.ac might set extrasub.
19205 # FIXME: do we really want to maintain this feature?
19206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19207 ac_sed_extra="$ac_vpsub
19208 $extrasub
19209 _ACEOF
19210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19211 :t
19212 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19213 s|@configure_input@|$ac_sed_conf_input|;t t
19214 s&@top_builddir@&$ac_top_builddir_sub&;t t
19215 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19216 s&@srcdir@&$ac_srcdir&;t t
19217 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19218 s&@top_srcdir@&$ac_top_srcdir&;t t
19219 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19220 s&@builddir@&$ac_builddir&;t t
19221 s&@abs_builddir@&$ac_abs_builddir&;t t
19222 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19223 s&@INSTALL@&$ac_INSTALL&;t t
19224 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19225 $ac_datarootdir_hack
19226 "
19227 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19228   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19229
19230 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19231   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19232   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
19233       "$ac_tmp/out"`; test -z "$ac_out"; } &&
19234   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19235 which seems to be undefined.  Please make sure it is defined" >&5
19236 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19237 which seems to be undefined.  Please make sure it is defined" >&2;}
19238
19239   rm -f "$ac_tmp/stdin"
19240   case $ac_file in
19241   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19242   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19243   esac \
19244   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19245  ;;
19246   :H)
19247   #
19248   # CONFIG_HEADER
19249   #
19250   if test x"$ac_file" != x-; then
19251     {
19252       $as_echo "/* $configure_input  */" \
19253       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19254     } >"$ac_tmp/config.h" \
19255       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19256     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19257       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19258 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19259     else
19260       rm -f "$ac_file"
19261       mv "$ac_tmp/config.h" "$ac_file" \
19262         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19263     fi
19264   else
19265     $as_echo "/* $configure_input  */" \
19266       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19267       || as_fn_error $? "could not create -" "$LINENO" 5
19268   fi
19269 # Compute "$ac_file"'s index in $config_headers.
19270 _am_arg="$ac_file"
19271 _am_stamp_count=1
19272 for _am_header in $config_headers :; do
19273   case $_am_header in
19274     $_am_arg | $_am_arg:* )
19275       break ;;
19276     * )
19277       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19278   esac
19279 done
19280 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19281 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19282          X"$_am_arg" : 'X\(//\)[^/]' \| \
19283          X"$_am_arg" : 'X\(//\)$' \| \
19284          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19285 $as_echo X"$_am_arg" |
19286     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19287             s//\1/
19288             q
19289           }
19290           /^X\(\/\/\)[^/].*/{
19291             s//\1/
19292             q
19293           }
19294           /^X\(\/\/\)$/{
19295             s//\1/
19296             q
19297           }
19298           /^X\(\/\).*/{
19299             s//\1/
19300             q
19301           }
19302           s/.*/./; q'`/stamp-h$_am_stamp_count
19303  ;;
19304
19305   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19306 $as_echo "$as_me: executing $ac_file commands" >&6;}
19307  ;;
19308   esac
19309
19310
19311   case $ac_file$ac_mode in
19312     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19313   # Autoconf 2.62 quotes --file arguments for eval, but not when files
19314   # are listed without --file.  Let's play safe and only enable the eval
19315   # if we detect the quoting.
19316   case $CONFIG_FILES in
19317   *\'*) eval set x "$CONFIG_FILES" ;;
19318   *)   set x $CONFIG_FILES ;;
19319   esac
19320   shift
19321   for mf
19322   do
19323     # Strip MF so we end up with the name of the file.
19324     mf=`echo "$mf" | sed -e 's/:.*$//'`
19325     # Check whether this is an Automake generated Makefile or not.
19326     # We used to match only the files named `Makefile.in', but
19327     # some people rename them; so instead we look at the file content.
19328     # Grep'ing the first line is not enough: some people post-process
19329     # each Makefile.in and add a new line on top of each file to say so.
19330     # Grep'ing the whole file is not good either: AIX grep has a line
19331     # limit of 2048, but all sed's we know have understand at least 4000.
19332     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19333       dirpart=`$as_dirname -- "$mf" ||
19334 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19335          X"$mf" : 'X\(//\)[^/]' \| \
19336          X"$mf" : 'X\(//\)$' \| \
19337          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19338 $as_echo X"$mf" |
19339     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19340             s//\1/
19341             q
19342           }
19343           /^X\(\/\/\)[^/].*/{
19344             s//\1/
19345             q
19346           }
19347           /^X\(\/\/\)$/{
19348             s//\1/
19349             q
19350           }
19351           /^X\(\/\).*/{
19352             s//\1/
19353             q
19354           }
19355           s/.*/./; q'`
19356     else
19357       continue
19358     fi
19359     # Extract the definition of DEPDIR, am__include, and am__quote
19360     # from the Makefile without running `make'.
19361     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19362     test -z "$DEPDIR" && continue
19363     am__include=`sed -n 's/^am__include = //p' < "$mf"`
19364     test -z "am__include" && continue
19365     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19366     # When using ansi2knr, U may be empty or an underscore; expand it
19367     U=`sed -n 's/^U = //p' < "$mf"`
19368     # Find all dependency output files, they are included files with
19369     # $(DEPDIR) in their names.  We invoke sed twice because it is the
19370     # simplest approach to changing $(DEPDIR) to its actual value in the
19371     # expansion.
19372     for file in `sed -n "
19373       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19374          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19375       # Make sure the directory exists.
19376       test -f "$dirpart/$file" && continue
19377       fdir=`$as_dirname -- "$file" ||
19378 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19379          X"$file" : 'X\(//\)[^/]' \| \
19380          X"$file" : 'X\(//\)$' \| \
19381          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19382 $as_echo X"$file" |
19383     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19384             s//\1/
19385             q
19386           }
19387           /^X\(\/\/\)[^/].*/{
19388             s//\1/
19389             q
19390           }
19391           /^X\(\/\/\)$/{
19392             s//\1/
19393             q
19394           }
19395           /^X\(\/\).*/{
19396             s//\1/
19397             q
19398           }
19399           s/.*/./; q'`
19400       as_dir=$dirpart/$fdir; as_fn_mkdir_p
19401       # echo "creating $dirpart/$file"
19402       echo '# dummy' > "$dirpart/$file"
19403     done
19404   done
19405 }
19406  ;;
19407     "libtool":C)
19408
19409     # See if we are running on zsh, and set the options which allow our
19410     # commands through without removal of \ escapes.
19411     if test -n "${ZSH_VERSION+set}" ; then
19412       setopt NO_GLOB_SUBST
19413     fi
19414
19415     cfgfile="${ofile}T"
19416     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19417     $RM "$cfgfile"
19418
19419     cat <<_LT_EOF >> "$cfgfile"
19420 #! $SHELL
19421
19422 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19423 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19424 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19425 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19426 #
19427 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19428 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
19429 #                 Inc.
19430 #   Written by Gordon Matzigkeit, 1996
19431 #
19432 #   This file is part of GNU Libtool.
19433 #
19434 # GNU Libtool is free software; you can redistribute it and/or
19435 # modify it under the terms of the GNU General Public License as
19436 # published by the Free Software Foundation; either version 2 of
19437 # the License, or (at your option) any later version.
19438 #
19439 # As a special exception to the GNU General Public License,
19440 # if you distribute this file as part of a program or library that
19441 # is built using GNU Libtool, you may include this file under the
19442 # same distribution terms that you use for the rest of that program.
19443 #
19444 # GNU Libtool is distributed in the hope that it will be useful,
19445 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19446 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19447 # GNU General Public License for more details.
19448 #
19449 # You should have received a copy of the GNU General Public License
19450 # along with GNU Libtool; see the file COPYING.  If not, a copy
19451 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19452 # obtained by writing to the Free Software Foundation, Inc.,
19453 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19454
19455
19456 # The names of the tagged configurations supported by this script.
19457 available_tags=""
19458
19459 # ### BEGIN LIBTOOL CONFIG
19460
19461 # Which release of libtool.m4 was used?
19462 macro_version=$macro_version
19463 macro_revision=$macro_revision
19464
19465 # Whether or not to build shared libraries.
19466 build_libtool_libs=$enable_shared
19467
19468 # Whether or not to build static libraries.
19469 build_old_libs=$enable_static
19470
19471 # What type of objects to build.
19472 pic_mode=$pic_mode
19473
19474 # Whether or not to optimize for fast installation.
19475 fast_install=$enable_fast_install
19476
19477 # Shell to use when invoking shell scripts.
19478 SHELL=$lt_SHELL
19479
19480 # An echo program that protects backslashes.
19481 ECHO=$lt_ECHO
19482
19483 # The host system.
19484 host_alias=$host_alias
19485 host=$host
19486 host_os=$host_os
19487
19488 # The build system.
19489 build_alias=$build_alias
19490 build=$build
19491 build_os=$build_os
19492
19493 # A sed program that does not truncate output.
19494 SED=$lt_SED
19495
19496 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19497 Xsed="\$SED -e 1s/^X//"
19498
19499 # A grep program that handles long lines.
19500 GREP=$lt_GREP
19501
19502 # An ERE matcher.
19503 EGREP=$lt_EGREP
19504
19505 # A literal string matcher.
19506 FGREP=$lt_FGREP
19507
19508 # A BSD- or MS-compatible name lister.
19509 NM=$lt_NM
19510
19511 # Whether we need soft or hard links.
19512 LN_S=$lt_LN_S
19513
19514 # What is the maximum length of a command?
19515 max_cmd_len=$max_cmd_len
19516
19517 # Object file suffix (normally "o").
19518 objext=$ac_objext
19519
19520 # Executable file suffix (normally "").
19521 exeext=$exeext
19522
19523 # whether the shell understands "unset".
19524 lt_unset=$lt_unset
19525
19526 # turn spaces into newlines.
19527 SP2NL=$lt_lt_SP2NL
19528
19529 # turn newlines into spaces.
19530 NL2SP=$lt_lt_NL2SP
19531
19532 # convert \$build file names to \$host format.
19533 to_host_file_cmd=$lt_cv_to_host_file_cmd
19534
19535 # convert \$build files to toolchain format.
19536 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19537
19538 # An object symbol dumper.
19539 OBJDUMP=$lt_OBJDUMP
19540
19541 # Method to check whether dependent libraries are shared objects.
19542 deplibs_check_method=$lt_deplibs_check_method
19543
19544 # Command to use when deplibs_check_method = "file_magic".
19545 file_magic_cmd=$lt_file_magic_cmd
19546
19547 # How to find potential files when deplibs_check_method = "file_magic".
19548 file_magic_glob=$lt_file_magic_glob
19549
19550 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19551 want_nocaseglob=$lt_want_nocaseglob
19552
19553 # DLL creation program.
19554 DLLTOOL=$lt_DLLTOOL
19555
19556 # Command to associate shared and link libraries.
19557 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19558
19559 # The archiver.
19560 AR=$lt_AR
19561
19562 # Flags to create an archive.
19563 AR_FLAGS=$lt_AR_FLAGS
19564
19565 # How to feed a file listing to the archiver.
19566 archiver_list_spec=$lt_archiver_list_spec
19567
19568 # A symbol stripping program.
19569 STRIP=$lt_STRIP
19570
19571 # Commands used to install an old-style archive.
19572 RANLIB=$lt_RANLIB
19573 old_postinstall_cmds=$lt_old_postinstall_cmds
19574 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19575
19576 # Whether to use a lock for old archive extraction.
19577 lock_old_archive_extraction=$lock_old_archive_extraction
19578
19579 # A C compiler.
19580 LTCC=$lt_CC
19581
19582 # LTCC compiler flags.
19583 LTCFLAGS=$lt_CFLAGS
19584
19585 # Take the output of nm and produce a listing of raw symbols and C names.
19586 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19587
19588 # Transform the output of nm in a proper C declaration.
19589 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19590
19591 # Transform the output of nm in a C name address pair.
19592 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19593
19594 # Transform the output of nm in a C name address pair when lib prefix is needed.
19595 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19596
19597 # Specify filename containing input files for \$NM.
19598 nm_file_list_spec=$lt_nm_file_list_spec
19599
19600 # The root where to search for dependent libraries,and in which our libraries should be installed.
19601 lt_sysroot=$lt_sysroot
19602
19603 # The name of the directory that contains temporary libtool files.
19604 objdir=$objdir
19605
19606 # Used to examine libraries when file_magic_cmd begins with "file".
19607 MAGIC_CMD=$MAGIC_CMD
19608
19609 # Must we lock files when doing compilation?
19610 need_locks=$lt_need_locks
19611
19612 # Manifest tool.
19613 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19614
19615 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19616 DSYMUTIL=$lt_DSYMUTIL
19617
19618 # Tool to change global to local symbols on Mac OS X.
19619 NMEDIT=$lt_NMEDIT
19620
19621 # Tool to manipulate fat objects and archives on Mac OS X.
19622 LIPO=$lt_LIPO
19623
19624 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19625 OTOOL=$lt_OTOOL
19626
19627 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19628 OTOOL64=$lt_OTOOL64
19629
19630 # Old archive suffix (normally "a").
19631 libext=$libext
19632
19633 # Shared library suffix (normally ".so").
19634 shrext_cmds=$lt_shrext_cmds
19635
19636 # The commands to extract the exported symbol list from a shared archive.
19637 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19638
19639 # Variables whose values should be saved in libtool wrapper scripts and
19640 # restored at link time.
19641 variables_saved_for_relink=$lt_variables_saved_for_relink
19642
19643 # Do we need the "lib" prefix for modules?
19644 need_lib_prefix=$need_lib_prefix
19645
19646 # Do we need a version for libraries?
19647 need_version=$need_version
19648
19649 # Library versioning type.
19650 version_type=$version_type
19651
19652 # Shared library runtime path variable.
19653 runpath_var=$runpath_var
19654
19655 # Shared library path variable.
19656 shlibpath_var=$shlibpath_var
19657
19658 # Is shlibpath searched before the hard-coded library search path?
19659 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19660
19661 # Format of library name prefix.
19662 libname_spec=$lt_libname_spec
19663
19664 # List of archive names.  First name is the real one, the rest are links.
19665 # The last name is the one that the linker finds with -lNAME
19666 library_names_spec=$lt_library_names_spec
19667
19668 # The coded name of the library, if different from the real name.
19669 soname_spec=$lt_soname_spec
19670
19671 # Permission mode override for installation of shared libraries.
19672 install_override_mode=$lt_install_override_mode
19673
19674 # Command to use after installation of a shared archive.
19675 postinstall_cmds=$lt_postinstall_cmds
19676
19677 # Command to use after uninstallation of a shared archive.
19678 postuninstall_cmds=$lt_postuninstall_cmds
19679
19680 # Commands used to finish a libtool library installation in a directory.
19681 finish_cmds=$lt_finish_cmds
19682
19683 # As "finish_cmds", except a single script fragment to be evaled but
19684 # not shown.
19685 finish_eval=$lt_finish_eval
19686
19687 # Whether we should hardcode library paths into libraries.
19688 hardcode_into_libs=$hardcode_into_libs
19689
19690 # Compile-time system search path for libraries.
19691 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19692
19693 # Run-time system search path for libraries.
19694 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19695
19696 # Whether dlopen is supported.
19697 dlopen_support=$enable_dlopen
19698
19699 # Whether dlopen of programs is supported.
19700 dlopen_self=$enable_dlopen_self
19701
19702 # Whether dlopen of statically linked programs is supported.
19703 dlopen_self_static=$enable_dlopen_self_static
19704
19705 # Commands to strip libraries.
19706 old_striplib=$lt_old_striplib
19707 striplib=$lt_striplib
19708
19709
19710 # The linker used to build libraries.
19711 LD=$lt_LD
19712
19713 # How to create reloadable object files.
19714 reload_flag=$lt_reload_flag
19715 reload_cmds=$lt_reload_cmds
19716
19717 # Commands used to build an old-style archive.
19718 old_archive_cmds=$lt_old_archive_cmds
19719
19720 # A language specific compiler.
19721 CC=$lt_compiler
19722
19723 # Is the compiler the GNU compiler?
19724 with_gcc=$GCC
19725
19726 # Compiler flag to turn off builtin functions.
19727 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19728
19729 # Additional compiler flags for building library objects.
19730 pic_flag=$lt_lt_prog_compiler_pic
19731
19732 # How to pass a linker flag through the compiler.
19733 wl=$lt_lt_prog_compiler_wl
19734
19735 # Compiler flag to prevent dynamic linking.
19736 link_static_flag=$lt_lt_prog_compiler_static
19737
19738 # Does compiler simultaneously support -c and -o options?
19739 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19740
19741 # Whether or not to add -lc for building shared libraries.
19742 build_libtool_need_lc=$archive_cmds_need_lc
19743
19744 # Whether or not to disallow shared libs when runtime libs are static.
19745 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19746
19747 # Compiler flag to allow reflexive dlopens.
19748 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19749
19750 # Compiler flag to generate shared objects directly from archives.
19751 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19752
19753 # Whether the compiler copes with passing no objects directly.
19754 compiler_needs_object=$lt_compiler_needs_object
19755
19756 # Create an old-style archive from a shared archive.
19757 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19758
19759 # Create a temporary old-style archive to link instead of a shared archive.
19760 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19761
19762 # Commands used to build a shared archive.
19763 archive_cmds=$lt_archive_cmds
19764 archive_expsym_cmds=$lt_archive_expsym_cmds
19765
19766 # Commands used to build a loadable module if different from building
19767 # a shared archive.
19768 module_cmds=$lt_module_cmds
19769 module_expsym_cmds=$lt_module_expsym_cmds
19770
19771 # Whether we are building with GNU ld or not.
19772 with_gnu_ld=$lt_with_gnu_ld
19773
19774 # Flag that allows shared libraries with undefined symbols to be built.
19775 allow_undefined_flag=$lt_allow_undefined_flag
19776
19777 # Flag that enforces no undefined symbols.
19778 no_undefined_flag=$lt_no_undefined_flag
19779
19780 # Flag to hardcode \$libdir into a binary during linking.
19781 # This must work even if \$libdir does not exist
19782 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19783
19784 # If ld is used when linking, flag to hardcode \$libdir into a binary
19785 # during linking.  This must work even if \$libdir does not exist.
19786 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19787
19788 # Whether we need a single "-rpath" flag with a separated argument.
19789 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19790
19791 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19792 # DIR into the resulting binary.
19793 hardcode_direct=$hardcode_direct
19794
19795 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19796 # DIR into the resulting binary and the resulting library dependency is
19797 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19798 # library is relocated.
19799 hardcode_direct_absolute=$hardcode_direct_absolute
19800
19801 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19802 # into the resulting binary.
19803 hardcode_minus_L=$hardcode_minus_L
19804
19805 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19806 # into the resulting binary.
19807 hardcode_shlibpath_var=$hardcode_shlibpath_var
19808
19809 # Set to "yes" if building a shared library automatically hardcodes DIR
19810 # into the library and all subsequent libraries and executables linked
19811 # against it.
19812 hardcode_automatic=$hardcode_automatic
19813
19814 # Set to yes if linker adds runtime paths of dependent libraries
19815 # to runtime path list.
19816 inherit_rpath=$inherit_rpath
19817
19818 # Whether libtool must link a program against all its dependency libraries.
19819 link_all_deplibs=$link_all_deplibs
19820
19821 # Set to "yes" if exported symbols are required.
19822 always_export_symbols=$always_export_symbols
19823
19824 # The commands to list exported symbols.
19825 export_symbols_cmds=$lt_export_symbols_cmds
19826
19827 # Symbols that should not be listed in the preloaded symbols.
19828 exclude_expsyms=$lt_exclude_expsyms
19829
19830 # Symbols that must always be exported.
19831 include_expsyms=$lt_include_expsyms
19832
19833 # Commands necessary for linking programs (against libraries) with templates.
19834 prelink_cmds=$lt_prelink_cmds
19835
19836 # Commands necessary for finishing linking programs.
19837 postlink_cmds=$lt_postlink_cmds
19838
19839 # Specify filename containing input files.
19840 file_list_spec=$lt_file_list_spec
19841
19842 # How to hardcode a shared library path into an executable.
19843 hardcode_action=$hardcode_action
19844
19845 # ### END LIBTOOL CONFIG
19846
19847 _LT_EOF
19848
19849   case $host_os in
19850   aix3*)
19851     cat <<\_LT_EOF >> "$cfgfile"
19852 # AIX sometimes has problems with the GCC collect2 program.  For some
19853 # reason, if we set the COLLECT_NAMES environment variable, the problems
19854 # vanish in a puff of smoke.
19855 if test "X${COLLECT_NAMES+set}" != Xset; then
19856   COLLECT_NAMES=
19857   export COLLECT_NAMES
19858 fi
19859 _LT_EOF
19860     ;;
19861   esac
19862
19863
19864 ltmain="$ac_aux_dir/ltmain.sh"
19865
19866
19867   # We use sed instead of cat because bash on DJGPP gets confused if
19868   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19869   # text mode, it properly converts lines to CR/LF.  This bash problem
19870   # is reportedly fixed, but why not run on old versions too?
19871   sed '$q' "$ltmain" >> "$cfgfile" \
19872      || (rm -f "$cfgfile"; exit 1)
19873
19874   if test x"$xsi_shell" = xyes; then
19875   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19876 func_dirname ()\
19877 {\
19878 \    case ${1} in\
19879 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19880 \      *  ) func_dirname_result="${3}" ;;\
19881 \    esac\
19882 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19883   && mv -f "$cfgfile.tmp" "$cfgfile" \
19884     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19885 test 0 -eq $? || _lt_function_replace_fail=:
19886
19887
19888   sed -e '/^func_basename ()$/,/^} # func_basename /c\
19889 func_basename ()\
19890 {\
19891 \    func_basename_result="${1##*/}"\
19892 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19893   && mv -f "$cfgfile.tmp" "$cfgfile" \
19894     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19895 test 0 -eq $? || _lt_function_replace_fail=:
19896
19897
19898   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19899 func_dirname_and_basename ()\
19900 {\
19901 \    case ${1} in\
19902 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19903 \      *  ) func_dirname_result="${3}" ;;\
19904 \    esac\
19905 \    func_basename_result="${1##*/}"\
19906 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19907   && mv -f "$cfgfile.tmp" "$cfgfile" \
19908     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19909 test 0 -eq $? || _lt_function_replace_fail=:
19910
19911
19912   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19913 func_stripname ()\
19914 {\
19915 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19916 \    # positional parameters, so assign one to ordinary parameter first.\
19917 \    func_stripname_result=${3}\
19918 \    func_stripname_result=${func_stripname_result#"${1}"}\
19919 \    func_stripname_result=${func_stripname_result%"${2}"}\
19920 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19921   && mv -f "$cfgfile.tmp" "$cfgfile" \
19922     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19923 test 0 -eq $? || _lt_function_replace_fail=:
19924
19925
19926   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19927 func_split_long_opt ()\
19928 {\
19929 \    func_split_long_opt_name=${1%%=*}\
19930 \    func_split_long_opt_arg=${1#*=}\
19931 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19932   && mv -f "$cfgfile.tmp" "$cfgfile" \
19933     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19934 test 0 -eq $? || _lt_function_replace_fail=:
19935
19936
19937   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19938 func_split_short_opt ()\
19939 {\
19940 \    func_split_short_opt_arg=${1#??}\
19941 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19942 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19943   && mv -f "$cfgfile.tmp" "$cfgfile" \
19944     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19945 test 0 -eq $? || _lt_function_replace_fail=:
19946
19947
19948   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19949 func_lo2o ()\
19950 {\
19951 \    case ${1} in\
19952 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19953 \      *)    func_lo2o_result=${1} ;;\
19954 \    esac\
19955 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19956   && mv -f "$cfgfile.tmp" "$cfgfile" \
19957     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19958 test 0 -eq $? || _lt_function_replace_fail=:
19959
19960
19961   sed -e '/^func_xform ()$/,/^} # func_xform /c\
19962 func_xform ()\
19963 {\
19964     func_xform_result=${1%.*}.lo\
19965 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19966   && mv -f "$cfgfile.tmp" "$cfgfile" \
19967     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19968 test 0 -eq $? || _lt_function_replace_fail=:
19969
19970
19971   sed -e '/^func_arith ()$/,/^} # func_arith /c\
19972 func_arith ()\
19973 {\
19974     func_arith_result=$(( $* ))\
19975 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19976   && mv -f "$cfgfile.tmp" "$cfgfile" \
19977     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19978 test 0 -eq $? || _lt_function_replace_fail=:
19979
19980
19981   sed -e '/^func_len ()$/,/^} # func_len /c\
19982 func_len ()\
19983 {\
19984     func_len_result=${#1}\
19985 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19986   && mv -f "$cfgfile.tmp" "$cfgfile" \
19987     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19988 test 0 -eq $? || _lt_function_replace_fail=:
19989
19990 fi
19991
19992 if test x"$lt_shell_append" = xyes; then
19993   sed -e '/^func_append ()$/,/^} # func_append /c\
19994 func_append ()\
19995 {\
19996     eval "${1}+=\\${2}"\
19997 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19998   && mv -f "$cfgfile.tmp" "$cfgfile" \
19999     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20000 test 0 -eq $? || _lt_function_replace_fail=:
20001
20002
20003   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20004 func_append_quoted ()\
20005 {\
20006 \    func_quote_for_eval "${2}"\
20007 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20008 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20009   && mv -f "$cfgfile.tmp" "$cfgfile" \
20010     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20011 test 0 -eq $? || _lt_function_replace_fail=:
20012
20013
20014   # Save a `func_append' function call where possible by direct use of '+='
20015   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20016     && mv -f "$cfgfile.tmp" "$cfgfile" \
20017       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20018   test 0 -eq $? || _lt_function_replace_fail=:
20019 else
20020   # Save a `func_append' function call even when '+=' is not available
20021   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20022     && mv -f "$cfgfile.tmp" "$cfgfile" \
20023       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20024   test 0 -eq $? || _lt_function_replace_fail=:
20025 fi
20026
20027 if test x"$_lt_function_replace_fail" = x":"; then
20028   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20029 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20030 fi
20031
20032
20033    mv -f "$cfgfile" "$ofile" ||
20034     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20035   chmod +x "$ofile"
20036
20037  ;;
20038
20039   esac
20040 done # for ac_tag
20041
20042
20043 as_fn_exit 0
20044 _ACEOF
20045 ac_clean_files=$ac_clean_files_save
20046
20047 test $ac_write_fail = 0 ||
20048   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20049
20050
20051 # configure is writing to config.log, and then calls config.status.
20052 # config.status does its own redirection, appending to config.log.
20053 # Unfortunately, on DOS this fails, as config.log is still kept open
20054 # by configure, so config.status won't be able to write to it; its
20055 # output is simply discarded.  So we exec the FD to /dev/null,
20056 # effectively closing config.log, so it can be properly (re)opened and
20057 # appended to by config.status.  When coming back to configure, we
20058 # need to make the FD available again.
20059 if test "$no_create" != yes; then
20060   ac_cs_success=:
20061   ac_config_status_args=
20062   test "$silent" = yes &&
20063     ac_config_status_args="$ac_config_status_args --quiet"
20064   exec 5>/dev/null
20065   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20066   exec 5>>config.log
20067   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20068   # would make configure fail if this is the last instruction.
20069   $ac_cs_success || as_fn_exit 1
20070 fi
20071 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20072   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20073 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20074 fi
20075