chiark / gitweb /
debian/changelog: finalise 0.3.1-1+iwj3
[xf86-input-mtrack.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xf86-input-mtrack 0.2.0.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283   fi
284   exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302   { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311   return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319   set +e
320   as_fn_set_status $1
321   exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330   case $as_dir in #(
331   -*) as_dir=./$as_dir;;
332   esac
333   test -d "$as_dir" || eval $as_mkdir_p || {
334     as_dirs=
335     while :; do
336       case $as_dir in #(
337       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338       *) as_qdir=$as_dir;;
339       esac
340       as_dirs="'$as_qdir' $as_dirs"
341       as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343          X"$as_dir" : 'X\(//\)[^/]' \| \
344          X"$as_dir" : 'X\(//\)$' \| \
345          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)[^/].*/{
352             s//\1/
353             q
354           }
355           /^X\(\/\/\)$/{
356             s//\1/
357             q
358           }
359           /^X\(\/\).*/{
360             s//\1/
361             q
362           }
363           s/.*/./; q'`
364       test -d "$as_dir" && break
365     done
366     test -z "$as_dirs" || eval "mkdir $as_dirs"
367   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377   test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386   eval 'as_fn_append ()
387   {
388     eval $1+=\$2
389   }'
390 else
391   as_fn_append ()
392   {
393     eval $1=\$$1\$2
394   }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403   eval 'as_fn_arith ()
404   {
405     as_val=$(( $* ))
406   }'
407 else
408   as_fn_arith ()
409   {
410     as_val=`expr "$@" || test $? -eq 1`
411   }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422   as_status=$1; test $as_status -eq 0 && as_status=1
423   if test "$4"; then
424     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426   fi
427   $as_echo "$as_me: error: $2" >&2
428   as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432    test "X`expr 00001 : '.*\(...\)'`" = X001; then
433   as_expr=expr
434 else
435   as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439   as_basename=basename
440 else
441   as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445   as_dirname=dirname
446 else
447   as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452          X"$0" : 'X\(//\)$' \| \
453          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455     sed '/^.*\/\([^/][^/]*\)\/*$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\/\)$/{
460             s//\1/
461             q
462           }
463           /^X\/\(\/\).*/{
464             s//\1/
465             q
466           }
467           s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477   as_lineno_1=$LINENO as_lineno_1a=$LINENO
478   as_lineno_2=$LINENO as_lineno_2a=$LINENO
479   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482   sed -n '
483     p
484     /[$]LINENO/=
485   ' <$as_myself |
486     sed '
487       s/[$]LINENO.*/&-/
488       t lineno
489       b
490       :lineno
491       N
492       :loop
493       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494       t loop
495       s/-\n.*//
496     ' >$as_me.lineno &&
497   chmod +x "$as_me.lineno" ||
498     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501   # already done that, so ensure we don't try to do so again and fall
502   # in an infinite loop.  This has already happened in practice.
503   _as_can_reexec=no; export _as_can_reexec
504   # Don't try to exec as it changes $[0], causing all sort of problems
505   # (the dirname of $[0] is not the place where we might find the
506   # original and so on.  Autoconf is especially sensitive to this).
507   . "./$as_me.lineno"
508   # Exit status is that of the last command.
509   exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515   case `echo 'xy\c'` in
516   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
517   xy)  ECHO_C='\c';;
518   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519        ECHO_T=' ';;
520   esac;;
521 *)
522   ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527   rm -f conf$$.dir/conf$$.file
528 else
529   rm -f conf$$.dir
530   mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533   if ln -s conf$$.file conf$$ 2>/dev/null; then
534     as_ln_s='ln -s'
535     # ... but there are two gotchas:
536     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538     # In both cases, we have to default to `cp -pR'.
539     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540       as_ln_s='cp -pR'
541   elif ln conf$$.file conf$$ 2>/dev/null; then
542     as_ln_s=ln
543   else
544     as_ln_s='cp -pR'
545   fi
546 else
547   as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553   as_mkdir_p='mkdir -p "$as_dir"'
554 else
555   test -d ./-p && rmdir ./-p
556   as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='xf86-input-mtrack'
593 PACKAGE_TARNAME='xf86-input-mtrack'
594 PACKAGE_VERSION='0.2.0'
595 PACKAGE_STRING='xf86-input-mtrack 0.2.0'
596 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
597 PACKAGE_URL=''
598
599 ac_unique_file="Makefile.am"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 #  include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #  include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 BUILD_TOOLS_FALSE
641 BUILD_TOOLS_TRUE
642 inputdir
643 DRIVER_NAME
644 XORG_LIBS
645 XORG_CFLAGS
646 MAN_SUBSTS
647 XORG_MAN_PAGE
648 ADMIN_MAN_DIR
649 DRIVER_MAN_DIR
650 MISC_MAN_DIR
651 FILE_MAN_DIR
652 LIB_MAN_DIR
653 APP_MAN_DIR
654 ADMIN_MAN_SUFFIX
655 DRIVER_MAN_SUFFIX
656 MISC_MAN_SUFFIX
657 FILE_MAN_SUFFIX
658 LIB_MAN_SUFFIX
659 APP_MAN_SUFFIX
660 INSTALL_CMD
661 PKG_CONFIG_LIBDIR
662 PKG_CONFIG_PATH
663 PKG_CONFIG
664 CHANGELOG_CMD
665 STRICT_CFLAGS
666 CWARNFLAGS
667 BASE_CFLAGS
668 CPP
669 LT_SYS_LIBRARY_PATH
670 OTOOL64
671 OTOOL
672 LIPO
673 NMEDIT
674 DSYMUTIL
675 MANIFEST_TOOL
676 RANLIB
677 ac_ct_AR
678 AR
679 DLLTOOL
680 OBJDUMP
681 LN_S
682 NM
683 ac_ct_DUMPBIN
684 DUMPBIN
685 LD
686 FGREP
687 EGREP
688 GREP
689 SED
690 am__fastdepCC_FALSE
691 am__fastdepCC_TRUE
692 CCDEPMODE
693 am__nodep
694 AMDEPBACKSLASH
695 AMDEP_FALSE
696 AMDEP_TRUE
697 am__quote
698 am__include
699 DEPDIR
700 OBJEXT
701 EXEEXT
702 ac_ct_CC
703 CPPFLAGS
704 LDFLAGS
705 CFLAGS
706 CC
707 host_os
708 host_vendor
709 host_cpu
710 host
711 build_os
712 build_vendor
713 build_cpu
714 build
715 LIBTOOL
716 MAINT
717 MAINTAINER_MODE_FALSE
718 MAINTAINER_MODE_TRUE
719 AM_BACKSLASH
720 AM_DEFAULT_VERBOSITY
721 AM_DEFAULT_V
722 AM_V
723 am__untar
724 am__tar
725 AMTAR
726 am__leading_dot
727 SET_MAKE
728 AWK
729 mkdir_p
730 MKDIR_P
731 INSTALL_STRIP_PROGRAM
732 STRIP
733 install_sh
734 MAKEINFO
735 AUTOHEADER
736 AUTOMAKE
737 AUTOCONF
738 ACLOCAL
739 VERSION
740 PACKAGE
741 CYGPATH_W
742 am__isrc
743 INSTALL_DATA
744 INSTALL_SCRIPT
745 INSTALL_PROGRAM
746 target_alias
747 host_alias
748 build_alias
749 LIBS
750 ECHO_T
751 ECHO_N
752 ECHO_C
753 DEFS
754 mandir
755 localedir
756 libdir
757 psdir
758 pdfdir
759 dvidir
760 htmldir
761 infodir
762 docdir
763 oldincludedir
764 includedir
765 runstatedir
766 localstatedir
767 sharedstatedir
768 sysconfdir
769 datadir
770 datarootdir
771 libexecdir
772 sbindir
773 bindir
774 program_transform_name
775 prefix
776 exec_prefix
777 PACKAGE_URL
778 PACKAGE_BUGREPORT
779 PACKAGE_STRING
780 PACKAGE_VERSION
781 PACKAGE_TARNAME
782 PACKAGE_NAME
783 PATH_SEPARATOR
784 SHELL'
785 ac_subst_files=''
786 ac_user_opts='
787 enable_option_checking
788 enable_silent_rules
789 enable_maintainer_mode
790 enable_static
791 enable_shared
792 with_pic
793 enable_fast_install
794 with_aix_soname
795 enable_dependency_tracking
796 with_gnu_ld
797 with_sysroot
798 enable_libtool_lock
799 enable_selective_werror
800 enable_strict_compilation
801 with_xorg_module_dir
802 enable_tools
803 enable_debug_gestures
804 enable_debug_mtstate
805 enable_debug_props
806 enable_debug_driver
807 enable_debug
808 '
809       ac_precious_vars='build_alias
810 host_alias
811 target_alias
812 CC
813 CFLAGS
814 LDFLAGS
815 LIBS
816 CPPFLAGS
817 LT_SYS_LIBRARY_PATH
818 CPP
819 PKG_CONFIG
820 PKG_CONFIG_PATH
821 PKG_CONFIG_LIBDIR
822 XORG_CFLAGS
823 XORG_LIBS'
824
825
826 # Initialize some variables set by options.
827 ac_init_help=
828 ac_init_version=false
829 ac_unrecognized_opts=
830 ac_unrecognized_sep=
831 # The variables have the same names as the options, with
832 # dashes changed to underlines.
833 cache_file=/dev/null
834 exec_prefix=NONE
835 no_create=
836 no_recursion=
837 prefix=NONE
838 program_prefix=NONE
839 program_suffix=NONE
840 program_transform_name=s,x,x,
841 silent=
842 site=
843 srcdir=
844 verbose=
845 x_includes=NONE
846 x_libraries=NONE
847
848 # Installation directory options.
849 # These are left unexpanded so users can "make install exec_prefix=/foo"
850 # and all the variables that are supposed to be based on exec_prefix
851 # by default will actually change.
852 # Use braces instead of parens because sh, perl, etc. also accept them.
853 # (The list follows the same order as the GNU Coding Standards.)
854 bindir='${exec_prefix}/bin'
855 sbindir='${exec_prefix}/sbin'
856 libexecdir='${exec_prefix}/libexec'
857 datarootdir='${prefix}/share'
858 datadir='${datarootdir}'
859 sysconfdir='${prefix}/etc'
860 sharedstatedir='${prefix}/com'
861 localstatedir='${prefix}/var'
862 runstatedir='${localstatedir}/run'
863 includedir='${prefix}/include'
864 oldincludedir='/usr/include'
865 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
866 infodir='${datarootdir}/info'
867 htmldir='${docdir}'
868 dvidir='${docdir}'
869 pdfdir='${docdir}'
870 psdir='${docdir}'
871 libdir='${exec_prefix}/lib'
872 localedir='${datarootdir}/locale'
873 mandir='${datarootdir}/man'
874
875 ac_prev=
876 ac_dashdash=
877 for ac_option
878 do
879   # If the previous option needs an argument, assign it.
880   if test -n "$ac_prev"; then
881     eval $ac_prev=\$ac_option
882     ac_prev=
883     continue
884   fi
885
886   case $ac_option in
887   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
888   *=)   ac_optarg= ;;
889   *)    ac_optarg=yes ;;
890   esac
891
892   # Accept the important Cygnus configure options, so we can diagnose typos.
893
894   case $ac_dashdash$ac_option in
895   --)
896     ac_dashdash=yes ;;
897
898   -bindir | --bindir | --bindi | --bind | --bin | --bi)
899     ac_prev=bindir ;;
900   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
901     bindir=$ac_optarg ;;
902
903   -build | --build | --buil | --bui | --bu)
904     ac_prev=build_alias ;;
905   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
906     build_alias=$ac_optarg ;;
907
908   -cache-file | --cache-file | --cache-fil | --cache-fi \
909   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
910     ac_prev=cache_file ;;
911   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
912   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
913     cache_file=$ac_optarg ;;
914
915   --config-cache | -C)
916     cache_file=config.cache ;;
917
918   -datadir | --datadir | --datadi | --datad)
919     ac_prev=datadir ;;
920   -datadir=* | --datadir=* | --datadi=* | --datad=*)
921     datadir=$ac_optarg ;;
922
923   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
924   | --dataroo | --dataro | --datar)
925     ac_prev=datarootdir ;;
926   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
927   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
928     datarootdir=$ac_optarg ;;
929
930   -disable-* | --disable-*)
931     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
932     # Reject names that are not valid shell variable names.
933     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934       as_fn_error $? "invalid feature name: $ac_useropt"
935     ac_useropt_orig=$ac_useropt
936     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
937     case $ac_user_opts in
938       *"
939 "enable_$ac_useropt"
940 "*) ;;
941       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
942          ac_unrecognized_sep=', ';;
943     esac
944     eval enable_$ac_useropt=no ;;
945
946   -docdir | --docdir | --docdi | --doc | --do)
947     ac_prev=docdir ;;
948   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
949     docdir=$ac_optarg ;;
950
951   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
952     ac_prev=dvidir ;;
953   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
954     dvidir=$ac_optarg ;;
955
956   -enable-* | --enable-*)
957     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
958     # Reject names that are not valid shell variable names.
959     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
960       as_fn_error $? "invalid feature name: $ac_useropt"
961     ac_useropt_orig=$ac_useropt
962     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
963     case $ac_user_opts in
964       *"
965 "enable_$ac_useropt"
966 "*) ;;
967       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
968          ac_unrecognized_sep=', ';;
969     esac
970     eval enable_$ac_useropt=\$ac_optarg ;;
971
972   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
973   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
974   | --exec | --exe | --ex)
975     ac_prev=exec_prefix ;;
976   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
977   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
978   | --exec=* | --exe=* | --ex=*)
979     exec_prefix=$ac_optarg ;;
980
981   -gas | --gas | --ga | --g)
982     # Obsolete; use --with-gas.
983     with_gas=yes ;;
984
985   -help | --help | --hel | --he | -h)
986     ac_init_help=long ;;
987   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
988     ac_init_help=recursive ;;
989   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
990     ac_init_help=short ;;
991
992   -host | --host | --hos | --ho)
993     ac_prev=host_alias ;;
994   -host=* | --host=* | --hos=* | --ho=*)
995     host_alias=$ac_optarg ;;
996
997   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
998     ac_prev=htmldir ;;
999   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1000   | --ht=*)
1001     htmldir=$ac_optarg ;;
1002
1003   -includedir | --includedir | --includedi | --included | --include \
1004   | --includ | --inclu | --incl | --inc)
1005     ac_prev=includedir ;;
1006   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1007   | --includ=* | --inclu=* | --incl=* | --inc=*)
1008     includedir=$ac_optarg ;;
1009
1010   -infodir | --infodir | --infodi | --infod | --info | --inf)
1011     ac_prev=infodir ;;
1012   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1013     infodir=$ac_optarg ;;
1014
1015   -libdir | --libdir | --libdi | --libd)
1016     ac_prev=libdir ;;
1017   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1018     libdir=$ac_optarg ;;
1019
1020   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1021   | --libexe | --libex | --libe)
1022     ac_prev=libexecdir ;;
1023   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1024   | --libexe=* | --libex=* | --libe=*)
1025     libexecdir=$ac_optarg ;;
1026
1027   -localedir | --localedir | --localedi | --localed | --locale)
1028     ac_prev=localedir ;;
1029   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1030     localedir=$ac_optarg ;;
1031
1032   -localstatedir | --localstatedir | --localstatedi | --localstated \
1033   | --localstate | --localstat | --localsta | --localst | --locals)
1034     ac_prev=localstatedir ;;
1035   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1036   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1037     localstatedir=$ac_optarg ;;
1038
1039   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1040     ac_prev=mandir ;;
1041   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1042     mandir=$ac_optarg ;;
1043
1044   -nfp | --nfp | --nf)
1045     # Obsolete; use --without-fp.
1046     with_fp=no ;;
1047
1048   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1049   | --no-cr | --no-c | -n)
1050     no_create=yes ;;
1051
1052   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1053   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1054     no_recursion=yes ;;
1055
1056   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1057   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1058   | --oldin | --oldi | --old | --ol | --o)
1059     ac_prev=oldincludedir ;;
1060   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1061   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1062   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1063     oldincludedir=$ac_optarg ;;
1064
1065   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1066     ac_prev=prefix ;;
1067   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1068     prefix=$ac_optarg ;;
1069
1070   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1071   | --program-pre | --program-pr | --program-p)
1072     ac_prev=program_prefix ;;
1073   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1074   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1075     program_prefix=$ac_optarg ;;
1076
1077   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1078   | --program-suf | --program-su | --program-s)
1079     ac_prev=program_suffix ;;
1080   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1081   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1082     program_suffix=$ac_optarg ;;
1083
1084   -program-transform-name | --program-transform-name \
1085   | --program-transform-nam | --program-transform-na \
1086   | --program-transform-n | --program-transform- \
1087   | --program-transform | --program-transfor \
1088   | --program-transfo | --program-transf \
1089   | --program-trans | --program-tran \
1090   | --progr-tra | --program-tr | --program-t)
1091     ac_prev=program_transform_name ;;
1092   -program-transform-name=* | --program-transform-name=* \
1093   | --program-transform-nam=* | --program-transform-na=* \
1094   | --program-transform-n=* | --program-transform-=* \
1095   | --program-transform=* | --program-transfor=* \
1096   | --program-transfo=* | --program-transf=* \
1097   | --program-trans=* | --program-tran=* \
1098   | --progr-tra=* | --program-tr=* | --program-t=*)
1099     program_transform_name=$ac_optarg ;;
1100
1101   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1102     ac_prev=pdfdir ;;
1103   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1104     pdfdir=$ac_optarg ;;
1105
1106   -psdir | --psdir | --psdi | --psd | --ps)
1107     ac_prev=psdir ;;
1108   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1109     psdir=$ac_optarg ;;
1110
1111   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1112   | -silent | --silent | --silen | --sile | --sil)
1113     silent=yes ;;
1114
1115   -runstatedir | --runstatedir | --runstatedi | --runstated \
1116   | --runstate | --runstat | --runsta | --runst | --runs \
1117   | --run | --ru | --r)
1118     ac_prev=runstatedir ;;
1119   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1120   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1121   | --run=* | --ru=* | --r=*)
1122     runstatedir=$ac_optarg ;;
1123
1124   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125     ac_prev=sbindir ;;
1126   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127   | --sbi=* | --sb=*)
1128     sbindir=$ac_optarg ;;
1129
1130   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132   | --sharedst | --shareds | --shared | --share | --shar \
1133   | --sha | --sh)
1134     ac_prev=sharedstatedir ;;
1135   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138   | --sha=* | --sh=*)
1139     sharedstatedir=$ac_optarg ;;
1140
1141   -site | --site | --sit)
1142     ac_prev=site ;;
1143   -site=* | --site=* | --sit=*)
1144     site=$ac_optarg ;;
1145
1146   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147     ac_prev=srcdir ;;
1148   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1149     srcdir=$ac_optarg ;;
1150
1151   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152   | --syscon | --sysco | --sysc | --sys | --sy)
1153     ac_prev=sysconfdir ;;
1154   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1156     sysconfdir=$ac_optarg ;;
1157
1158   -target | --target | --targe | --targ | --tar | --ta | --t)
1159     ac_prev=target_alias ;;
1160   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1161     target_alias=$ac_optarg ;;
1162
1163   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164     verbose=yes ;;
1165
1166   -version | --version | --versio | --versi | --vers | -V)
1167     ac_init_version=: ;;
1168
1169   -with-* | --with-*)
1170     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1171     # Reject names that are not valid shell variable names.
1172     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173       as_fn_error $? "invalid package name: $ac_useropt"
1174     ac_useropt_orig=$ac_useropt
1175     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176     case $ac_user_opts in
1177       *"
1178 "with_$ac_useropt"
1179 "*) ;;
1180       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181          ac_unrecognized_sep=', ';;
1182     esac
1183     eval with_$ac_useropt=\$ac_optarg ;;
1184
1185   -without-* | --without-*)
1186     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1187     # Reject names that are not valid shell variable names.
1188     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189       as_fn_error $? "invalid package name: $ac_useropt"
1190     ac_useropt_orig=$ac_useropt
1191     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192     case $ac_user_opts in
1193       *"
1194 "with_$ac_useropt"
1195 "*) ;;
1196       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197          ac_unrecognized_sep=', ';;
1198     esac
1199     eval with_$ac_useropt=no ;;
1200
1201   --x)
1202     # Obsolete; use --with-x.
1203     with_x=yes ;;
1204
1205   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206   | --x-incl | --x-inc | --x-in | --x-i)
1207     ac_prev=x_includes ;;
1208   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1210     x_includes=$ac_optarg ;;
1211
1212   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214     ac_prev=x_libraries ;;
1215   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1217     x_libraries=$ac_optarg ;;
1218
1219   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1220 Try \`$0 --help' for more information"
1221     ;;
1222
1223   *=*)
1224     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225     # Reject names that are not valid shell variable names.
1226     case $ac_envvar in #(
1227       '' | [0-9]* | *[!_$as_cr_alnum]* )
1228       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1229     esac
1230     eval $ac_envvar=\$ac_optarg
1231     export $ac_envvar ;;
1232
1233   *)
1234     # FIXME: should be removed in autoconf 3.0.
1235     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1236     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1238     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1239     ;;
1240
1241   esac
1242 done
1243
1244 if test -n "$ac_prev"; then
1245   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1246   as_fn_error $? "missing argument to $ac_option"
1247 fi
1248
1249 if test -n "$ac_unrecognized_opts"; then
1250   case $enable_option_checking in
1251     no) ;;
1252     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1253     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1254   esac
1255 fi
1256
1257 # Check all directory arguments for consistency.
1258 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259                 datadir sysconfdir sharedstatedir localstatedir includedir \
1260                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261                 libdir localedir mandir runstatedir
1262 do
1263   eval ac_val=\$$ac_var
1264   # Remove trailing slashes.
1265   case $ac_val in
1266     */ )
1267       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268       eval $ac_var=\$ac_val;;
1269   esac
1270   # Be sure to have absolute directory names.
1271   case $ac_val in
1272     [\\/$]* | ?:[\\/]* )  continue;;
1273     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274   esac
1275   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1276 done
1277
1278 # There might be people who depend on the old broken behavior: `$host'
1279 # used to hold the argument of --host etc.
1280 # FIXME: To remove some day.
1281 build=$build_alias
1282 host=$host_alias
1283 target=$target_alias
1284
1285 # FIXME: To remove some day.
1286 if test "x$host_alias" != x; then
1287   if test "x$build_alias" = x; then
1288     cross_compiling=maybe
1289   elif test "x$build_alias" != "x$host_alias"; then
1290     cross_compiling=yes
1291   fi
1292 fi
1293
1294 ac_tool_prefix=
1295 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1296
1297 test "$silent" = yes && exec 6>/dev/null
1298
1299
1300 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301 ac_ls_di=`ls -di .` &&
1302 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1303   as_fn_error $? "working directory cannot be determined"
1304 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1305   as_fn_error $? "pwd does not report name of working directory"
1306
1307
1308 # Find the source files, if location was not specified.
1309 if test -z "$srcdir"; then
1310   ac_srcdir_defaulted=yes
1311   # Try the directory containing this script, then the parent directory.
1312   ac_confdir=`$as_dirname -- "$as_myself" ||
1313 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1314          X"$as_myself" : 'X\(//\)[^/]' \| \
1315          X"$as_myself" : 'X\(//\)$' \| \
1316          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1317 $as_echo X"$as_myself" |
1318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1319             s//\1/
1320             q
1321           }
1322           /^X\(\/\/\)[^/].*/{
1323             s//\1/
1324             q
1325           }
1326           /^X\(\/\/\)$/{
1327             s//\1/
1328             q
1329           }
1330           /^X\(\/\).*/{
1331             s//\1/
1332             q
1333           }
1334           s/.*/./; q'`
1335   srcdir=$ac_confdir
1336   if test ! -r "$srcdir/$ac_unique_file"; then
1337     srcdir=..
1338   fi
1339 else
1340   ac_srcdir_defaulted=no
1341 fi
1342 if test ! -r "$srcdir/$ac_unique_file"; then
1343   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1344   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1345 fi
1346 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1347 ac_abs_confdir=`(
1348         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1349         pwd)`
1350 # When building in place, set srcdir=.
1351 if test "$ac_abs_confdir" = "$ac_pwd"; then
1352   srcdir=.
1353 fi
1354 # Remove unnecessary trailing slashes from srcdir.
1355 # Double slashes in file names in object file debugging info
1356 # mess up M-x gdb in Emacs.
1357 case $srcdir in
1358 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1359 esac
1360 for ac_var in $ac_precious_vars; do
1361   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1362   eval ac_env_${ac_var}_value=\$${ac_var}
1363   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1364   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1365 done
1366
1367 #
1368 # Report the --help message.
1369 #
1370 if test "$ac_init_help" = "long"; then
1371   # Omit some internal or obsolete options to make the list less imposing.
1372   # This message is too long to be a string in the A/UX 3.1 sh.
1373   cat <<_ACEOF
1374 \`configure' configures xf86-input-mtrack 0.2.0 to adapt to many kinds of systems.
1375
1376 Usage: $0 [OPTION]... [VAR=VALUE]...
1377
1378 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1379 VAR=VALUE.  See below for descriptions of some of the useful variables.
1380
1381 Defaults for the options are specified in brackets.
1382
1383 Configuration:
1384   -h, --help              display this help and exit
1385       --help=short        display options specific to this package
1386       --help=recursive    display the short help of all the included packages
1387   -V, --version           display version information and exit
1388   -q, --quiet, --silent   do not print \`checking ...' messages
1389       --cache-file=FILE   cache test results in FILE [disabled]
1390   -C, --config-cache      alias for \`--cache-file=config.cache'
1391   -n, --no-create         do not create output files
1392       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1393
1394 Installation directories:
1395   --prefix=PREFIX         install architecture-independent files in PREFIX
1396                           [$ac_default_prefix]
1397   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1398                           [PREFIX]
1399
1400 By default, \`make install' will install all the files in
1401 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1402 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1403 for instance \`--prefix=\$HOME'.
1404
1405 For better control, use the options below.
1406
1407 Fine tuning of the installation directories:
1408   --bindir=DIR            user executables [EPREFIX/bin]
1409   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1410   --libexecdir=DIR        program executables [EPREFIX/libexec]
1411   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1412   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1413   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1414   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1415   --libdir=DIR            object code libraries [EPREFIX/lib]
1416   --includedir=DIR        C header files [PREFIX/include]
1417   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1418   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1419   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1420   --infodir=DIR           info documentation [DATAROOTDIR/info]
1421   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1422   --mandir=DIR            man documentation [DATAROOTDIR/man]
1423   --docdir=DIR            documentation root
1424                           [DATAROOTDIR/doc/xf86-input-mtrack]
1425   --htmldir=DIR           html documentation [DOCDIR]
1426   --dvidir=DIR            dvi documentation [DOCDIR]
1427   --pdfdir=DIR            pdf documentation [DOCDIR]
1428   --psdir=DIR             ps documentation [DOCDIR]
1429 _ACEOF
1430
1431   cat <<\_ACEOF
1432
1433 Program names:
1434   --program-prefix=PREFIX            prepend PREFIX to installed program names
1435   --program-suffix=SUFFIX            append SUFFIX to installed program names
1436   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1437
1438 System types:
1439   --build=BUILD     configure for building on BUILD [guessed]
1440   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1441 _ACEOF
1442 fi
1443
1444 if test -n "$ac_init_help"; then
1445   case $ac_init_help in
1446      short | recursive ) echo "Configuration of xf86-input-mtrack 0.2.0:";;
1447    esac
1448   cat <<\_ACEOF
1449
1450 Optional Features:
1451   --disable-option-checking  ignore unrecognized --enable/--with options
1452   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1453   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1454   --enable-silent-rules   less verbose build output (undo: "make V=1")
1455   --disable-silent-rules  verbose build output (undo: "make V=0")
1456   --enable-maintainer-mode
1457                           enable make rules and dependencies not useful (and
1458                           sometimes confusing) to the casual installer
1459   --enable-static[=PKGS]  build static libraries [default=no]
1460   --enable-shared[=PKGS]  build shared libraries [default=yes]
1461   --enable-fast-install[=PKGS]
1462                           optimize for fast installation [default=yes]
1463   --enable-dependency-tracking
1464                           do not reject slow dependency extractors
1465   --disable-dependency-tracking
1466                           speeds up one-time build
1467   --disable-libtool-lock  avoid locking (might break parallel builds)
1468   --disable-selective-werror
1469                           Turn off selective compiler errors. (default:
1470                           enabled)
1471   --enable-strict-compilation
1472                           Enable all warnings from compiler and make them
1473                           errors (default: disabled)
1474   --enable-tools          Build extra tools (default: disabled)
1475   --enable-debug-gestures Enable gesture debugging (default: disabled)
1476   --enable-debug-mtstate  Enable multitouch state debugging (default:
1477                           disabled)
1478   --enable-debug-props    Enable property debugging (default: disabled)
1479   --enable-debug-driver   Enable property debugging (default: disabled)
1480   --enable-debug          Enable all debugging (default: disabled)
1481
1482 Optional Packages:
1483   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1484   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1485   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1486                           both]
1487   --with-aix-soname=aix|svr4|both
1488                           shared library versioning (aka "SONAME") variant to
1489                           provide on AIX, [default=aix].
1490   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1491   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1492                           compiler's sysroot if not specified).
1493   --with-xorg-module-dir=DIR
1494                           Default xorg module directory
1495                           [[default=$libdir/xorg/modules]]
1496
1497 Some influential environment variables:
1498   CC          C compiler command
1499   CFLAGS      C compiler flags
1500   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1501               nonstandard directory <lib dir>
1502   LIBS        libraries to pass to the linker, e.g. -l<library>
1503   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1504               you have headers in a nonstandard directory <include dir>
1505   LT_SYS_LIBRARY_PATH
1506               User-defined run-time library search path.
1507   CPP         C preprocessor
1508   PKG_CONFIG  path to pkg-config utility
1509   PKG_CONFIG_PATH
1510               directories to add to pkg-config's search path
1511   PKG_CONFIG_LIBDIR
1512               path overriding pkg-config's built-in search path
1513   XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1514   XORG_LIBS   linker flags for XORG, overriding pkg-config
1515
1516 Use these variables to override the choices made by `configure' or to help
1517 it to find libraries and programs with nonstandard names/locations.
1518
1519 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1520 _ACEOF
1521 ac_status=$?
1522 fi
1523
1524 if test "$ac_init_help" = "recursive"; then
1525   # If there are subdirs, report their specific --help.
1526   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1527     test -d "$ac_dir" ||
1528       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1529       continue
1530     ac_builddir=.
1531
1532 case "$ac_dir" in
1533 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 *)
1535   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1536   # A ".." for each directory in $ac_dir_suffix.
1537   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1538   case $ac_top_builddir_sub in
1539   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1541   esac ;;
1542 esac
1543 ac_abs_top_builddir=$ac_pwd
1544 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1545 # for backward compatibility:
1546 ac_top_builddir=$ac_top_build_prefix
1547
1548 case $srcdir in
1549   .)  # We are building in place.
1550     ac_srcdir=.
1551     ac_top_srcdir=$ac_top_builddir_sub
1552     ac_abs_top_srcdir=$ac_pwd ;;
1553   [\\/]* | ?:[\\/]* )  # Absolute name.
1554     ac_srcdir=$srcdir$ac_dir_suffix;
1555     ac_top_srcdir=$srcdir
1556     ac_abs_top_srcdir=$srcdir ;;
1557   *) # Relative name.
1558     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1559     ac_top_srcdir=$ac_top_build_prefix$srcdir
1560     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1561 esac
1562 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1563
1564     cd "$ac_dir" || { ac_status=$?; continue; }
1565     # Check for guested configure.
1566     if test -f "$ac_srcdir/configure.gnu"; then
1567       echo &&
1568       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1569     elif test -f "$ac_srcdir/configure"; then
1570       echo &&
1571       $SHELL "$ac_srcdir/configure" --help=recursive
1572     else
1573       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1574     fi || ac_status=$?
1575     cd "$ac_pwd" || { ac_status=$?; break; }
1576   done
1577 fi
1578
1579 test -n "$ac_init_help" && exit $ac_status
1580 if $ac_init_version; then
1581   cat <<\_ACEOF
1582 xf86-input-mtrack configure 0.2.0
1583 generated by GNU Autoconf 2.69
1584
1585 Copyright (C) 2012 Free Software Foundation, Inc.
1586 This configure script is free software; the Free Software Foundation
1587 gives unlimited permission to copy, distribute and modify it.
1588 _ACEOF
1589   exit
1590 fi
1591
1592 ## ------------------------ ##
1593 ## Autoconf initialization. ##
1594 ## ------------------------ ##
1595
1596 # ac_fn_c_try_compile LINENO
1597 # --------------------------
1598 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1599 ac_fn_c_try_compile ()
1600 {
1601   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602   rm -f conftest.$ac_objext
1603   if { { ac_try="$ac_compile"
1604 case "(($ac_try" in
1605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606   *) ac_try_echo=$ac_try;;
1607 esac
1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 $as_echo "$ac_try_echo"; } >&5
1610   (eval "$ac_compile") 2>conftest.err
1611   ac_status=$?
1612   if test -s conftest.err; then
1613     grep -v '^ *+' conftest.err >conftest.er1
1614     cat conftest.er1 >&5
1615     mv -f conftest.er1 conftest.err
1616   fi
1617   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618   test $ac_status = 0; } && {
1619          test -z "$ac_c_werror_flag" ||
1620          test ! -s conftest.err
1621        } && test -s conftest.$ac_objext; then :
1622   ac_retval=0
1623 else
1624   $as_echo "$as_me: failed program was:" >&5
1625 sed 's/^/| /' conftest.$ac_ext >&5
1626
1627         ac_retval=1
1628 fi
1629   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630   as_fn_set_status $ac_retval
1631
1632 } # ac_fn_c_try_compile
1633
1634 # ac_fn_c_try_link LINENO
1635 # -----------------------
1636 # Try to link conftest.$ac_ext, and return whether this succeeded.
1637 ac_fn_c_try_link ()
1638 {
1639   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640   rm -f conftest.$ac_objext conftest$ac_exeext
1641   if { { ac_try="$ac_link"
1642 case "(($ac_try" in
1643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644   *) ac_try_echo=$ac_try;;
1645 esac
1646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647 $as_echo "$ac_try_echo"; } >&5
1648   (eval "$ac_link") 2>conftest.err
1649   ac_status=$?
1650   if test -s conftest.err; then
1651     grep -v '^ *+' conftest.err >conftest.er1
1652     cat conftest.er1 >&5
1653     mv -f conftest.er1 conftest.err
1654   fi
1655   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656   test $ac_status = 0; } && {
1657          test -z "$ac_c_werror_flag" ||
1658          test ! -s conftest.err
1659        } && test -s conftest$ac_exeext && {
1660          test "$cross_compiling" = yes ||
1661          test -x conftest$ac_exeext
1662        }; then :
1663   ac_retval=0
1664 else
1665   $as_echo "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1667
1668         ac_retval=1
1669 fi
1670   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1671   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1672   # interfere with the next link command; also delete a directory that is
1673   # left behind by Apple's compiler.  We do this before executing the actions.
1674   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1675   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676   as_fn_set_status $ac_retval
1677
1678 } # ac_fn_c_try_link
1679
1680 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1681 # -------------------------------------------------------
1682 # Tests whether HEADER exists and can be compiled using the include files in
1683 # INCLUDES, setting the cache variable VAR accordingly.
1684 ac_fn_c_check_header_compile ()
1685 {
1686   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1688 $as_echo_n "checking for $2... " >&6; }
1689 if eval \${$3+:} false; then :
1690   $as_echo_n "(cached) " >&6
1691 else
1692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693 /* end confdefs.h.  */
1694 $4
1695 #include <$2>
1696 _ACEOF
1697 if ac_fn_c_try_compile "$LINENO"; then :
1698   eval "$3=yes"
1699 else
1700   eval "$3=no"
1701 fi
1702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1703 fi
1704 eval ac_res=\$$3
1705                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1706 $as_echo "$ac_res" >&6; }
1707   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708
1709 } # ac_fn_c_check_header_compile
1710
1711 # ac_fn_c_try_cpp LINENO
1712 # ----------------------
1713 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1714 ac_fn_c_try_cpp ()
1715 {
1716   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717   if { { ac_try="$ac_cpp conftest.$ac_ext"
1718 case "(($ac_try" in
1719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720   *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1725   ac_status=$?
1726   if test -s conftest.err; then
1727     grep -v '^ *+' conftest.err >conftest.er1
1728     cat conftest.er1 >&5
1729     mv -f conftest.er1 conftest.err
1730   fi
1731   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732   test $ac_status = 0; } > conftest.i && {
1733          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1734          test ! -s conftest.err
1735        }; then :
1736   ac_retval=0
1737 else
1738   $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1740
1741     ac_retval=1
1742 fi
1743   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744   as_fn_set_status $ac_retval
1745
1746 } # ac_fn_c_try_cpp
1747
1748 # ac_fn_c_try_run LINENO
1749 # ----------------------
1750 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1751 # that executables *can* be run.
1752 ac_fn_c_try_run ()
1753 {
1754   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755   if { { ac_try="$ac_link"
1756 case "(($ac_try" in
1757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758   *) ac_try_echo=$ac_try;;
1759 esac
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 $as_echo "$ac_try_echo"; } >&5
1762   (eval "$ac_link") 2>&5
1763   ac_status=$?
1764   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1766   { { case "(($ac_try" in
1767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768   *) ac_try_echo=$ac_try;;
1769 esac
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772   (eval "$ac_try") 2>&5
1773   ac_status=$?
1774   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775   test $ac_status = 0; }; }; then :
1776   ac_retval=0
1777 else
1778   $as_echo "$as_me: program exited with status $ac_status" >&5
1779        $as_echo "$as_me: failed program was:" >&5
1780 sed 's/^/| /' conftest.$ac_ext >&5
1781
1782        ac_retval=$ac_status
1783 fi
1784   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1785   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786   as_fn_set_status $ac_retval
1787
1788 } # ac_fn_c_try_run
1789
1790 # ac_fn_c_check_func LINENO FUNC VAR
1791 # ----------------------------------
1792 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1793 ac_fn_c_check_func ()
1794 {
1795   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1797 $as_echo_n "checking for $2... " >&6; }
1798 if eval \${$3+:} false; then :
1799   $as_echo_n "(cached) " >&6
1800 else
1801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802 /* end confdefs.h.  */
1803 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1804    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1805 #define $2 innocuous_$2
1806
1807 /* System header to define __stub macros and hopefully few prototypes,
1808     which can conflict with char $2 (); below.
1809     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1810     <limits.h> exists even on freestanding compilers.  */
1811
1812 #ifdef __STDC__
1813 # include <limits.h>
1814 #else
1815 # include <assert.h>
1816 #endif
1817
1818 #undef $2
1819
1820 /* Override any GCC internal prototype to avoid an error.
1821    Use char because int might match the return type of a GCC
1822    builtin and then its argument prototype would still apply.  */
1823 #ifdef __cplusplus
1824 extern "C"
1825 #endif
1826 char $2 ();
1827 /* The GNU C library defines this for functions which it implements
1828     to always fail with ENOSYS.  Some functions are actually named
1829     something starting with __ and the normal name is an alias.  */
1830 #if defined __stub_$2 || defined __stub___$2
1831 choke me
1832 #endif
1833
1834 int
1835 main ()
1836 {
1837 return $2 ();
1838   ;
1839   return 0;
1840 }
1841 _ACEOF
1842 if ac_fn_c_try_link "$LINENO"; then :
1843   eval "$3=yes"
1844 else
1845   eval "$3=no"
1846 fi
1847 rm -f core conftest.err conftest.$ac_objext \
1848     conftest$ac_exeext conftest.$ac_ext
1849 fi
1850 eval ac_res=\$$3
1851                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1852 $as_echo "$ac_res" >&6; }
1853   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854
1855 } # ac_fn_c_check_func
1856
1857 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1858 # ---------------------------------------------
1859 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1860 # accordingly.
1861 ac_fn_c_check_decl ()
1862 {
1863   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864   as_decl_name=`echo $2|sed 's/ *(.*//'`
1865   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1866   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1867 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1868 if eval \${$3+:} false; then :
1869   $as_echo_n "(cached) " >&6
1870 else
1871   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1872 /* end confdefs.h.  */
1873 $4
1874 int
1875 main ()
1876 {
1877 #ifndef $as_decl_name
1878 #ifdef __cplusplus
1879   (void) $as_decl_use;
1880 #else
1881   (void) $as_decl_name;
1882 #endif
1883 #endif
1884
1885   ;
1886   return 0;
1887 }
1888 _ACEOF
1889 if ac_fn_c_try_compile "$LINENO"; then :
1890   eval "$3=yes"
1891 else
1892   eval "$3=no"
1893 fi
1894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1895 fi
1896 eval ac_res=\$$3
1897                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898 $as_echo "$ac_res" >&6; }
1899   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900
1901 } # ac_fn_c_check_decl
1902 cat >config.log <<_ACEOF
1903 This file contains any messages produced by compilers while
1904 running configure, to aid debugging if configure makes a mistake.
1905
1906 It was created by xf86-input-mtrack $as_me 0.2.0, which was
1907 generated by GNU Autoconf 2.69.  Invocation command line was
1908
1909   $ $0 $@
1910
1911 _ACEOF
1912 exec 5>>config.log
1913 {
1914 cat <<_ASUNAME
1915 ## --------- ##
1916 ## Platform. ##
1917 ## --------- ##
1918
1919 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1920 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1921 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1922 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1923 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1924
1925 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1926 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1927
1928 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1929 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1930 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1931 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1932 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1933 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1934 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1935
1936 _ASUNAME
1937
1938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1939 for as_dir in $PATH
1940 do
1941   IFS=$as_save_IFS
1942   test -z "$as_dir" && as_dir=.
1943     $as_echo "PATH: $as_dir"
1944   done
1945 IFS=$as_save_IFS
1946
1947 } >&5
1948
1949 cat >&5 <<_ACEOF
1950
1951
1952 ## ----------- ##
1953 ## Core tests. ##
1954 ## ----------- ##
1955
1956 _ACEOF
1957
1958
1959 # Keep a trace of the command line.
1960 # Strip out --no-create and --no-recursion so they do not pile up.
1961 # Strip out --silent because we don't want to record it for future runs.
1962 # Also quote any args containing shell meta-characters.
1963 # Make two passes to allow for proper duplicate-argument suppression.
1964 ac_configure_args=
1965 ac_configure_args0=
1966 ac_configure_args1=
1967 ac_must_keep_next=false
1968 for ac_pass in 1 2
1969 do
1970   for ac_arg
1971   do
1972     case $ac_arg in
1973     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1974     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1975     | -silent | --silent | --silen | --sile | --sil)
1976       continue ;;
1977     *\'*)
1978       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1979     esac
1980     case $ac_pass in
1981     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1982     2)
1983       as_fn_append ac_configure_args1 " '$ac_arg'"
1984       if test $ac_must_keep_next = true; then
1985         ac_must_keep_next=false # Got value, back to normal.
1986       else
1987         case $ac_arg in
1988           *=* | --config-cache | -C | -disable-* | --disable-* \
1989           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1990           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1991           | -with-* | --with-* | -without-* | --without-* | --x)
1992             case "$ac_configure_args0 " in
1993               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1994             esac
1995             ;;
1996           -* ) ac_must_keep_next=true ;;
1997         esac
1998       fi
1999       as_fn_append ac_configure_args " '$ac_arg'"
2000       ;;
2001     esac
2002   done
2003 done
2004 { ac_configure_args0=; unset ac_configure_args0;}
2005 { ac_configure_args1=; unset ac_configure_args1;}
2006
2007 # When interrupted or exit'd, cleanup temporary files, and complete
2008 # config.log.  We remove comments because anyway the quotes in there
2009 # would cause problems or look ugly.
2010 # WARNING: Use '\'' to represent an apostrophe within the trap.
2011 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2012 trap 'exit_status=$?
2013   # Save into config.log some information that might help in debugging.
2014   {
2015     echo
2016
2017     $as_echo "## ---------------- ##
2018 ## Cache variables. ##
2019 ## ---------------- ##"
2020     echo
2021     # The following way of writing the cache mishandles newlines in values,
2022 (
2023   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2024     eval ac_val=\$$ac_var
2025     case $ac_val in #(
2026     *${as_nl}*)
2027       case $ac_var in #(
2028       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2029 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2030       esac
2031       case $ac_var in #(
2032       _ | IFS | as_nl) ;; #(
2033       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2034       *) { eval $ac_var=; unset $ac_var;} ;;
2035       esac ;;
2036     esac
2037   done
2038   (set) 2>&1 |
2039     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2040     *${as_nl}ac_space=\ *)
2041       sed -n \
2042         "s/'\''/'\''\\\\'\'''\''/g;
2043           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2044       ;; #(
2045     *)
2046       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2047       ;;
2048     esac |
2049     sort
2050 )
2051     echo
2052
2053     $as_echo "## ----------------- ##
2054 ## Output variables. ##
2055 ## ----------------- ##"
2056     echo
2057     for ac_var in $ac_subst_vars
2058     do
2059       eval ac_val=\$$ac_var
2060       case $ac_val in
2061       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2062       esac
2063       $as_echo "$ac_var='\''$ac_val'\''"
2064     done | sort
2065     echo
2066
2067     if test -n "$ac_subst_files"; then
2068       $as_echo "## ------------------- ##
2069 ## File substitutions. ##
2070 ## ------------------- ##"
2071       echo
2072       for ac_var in $ac_subst_files
2073       do
2074         eval ac_val=\$$ac_var
2075         case $ac_val in
2076         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2077         esac
2078         $as_echo "$ac_var='\''$ac_val'\''"
2079       done | sort
2080       echo
2081     fi
2082
2083     if test -s confdefs.h; then
2084       $as_echo "## ----------- ##
2085 ## confdefs.h. ##
2086 ## ----------- ##"
2087       echo
2088       cat confdefs.h
2089       echo
2090     fi
2091     test "$ac_signal" != 0 &&
2092       $as_echo "$as_me: caught signal $ac_signal"
2093     $as_echo "$as_me: exit $exit_status"
2094   } >&5
2095   rm -f core *.core core.conftest.* &&
2096     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2097     exit $exit_status
2098 ' 0
2099 for ac_signal in 1 2 13 15; do
2100   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2101 done
2102 ac_signal=0
2103
2104 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2105 rm -f -r conftest* confdefs.h
2106
2107 $as_echo "/* confdefs.h */" > confdefs.h
2108
2109 # Predefined preprocessor variables.
2110
2111 cat >>confdefs.h <<_ACEOF
2112 #define PACKAGE_NAME "$PACKAGE_NAME"
2113 _ACEOF
2114
2115 cat >>confdefs.h <<_ACEOF
2116 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2117 _ACEOF
2118
2119 cat >>confdefs.h <<_ACEOF
2120 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2121 _ACEOF
2122
2123 cat >>confdefs.h <<_ACEOF
2124 #define PACKAGE_STRING "$PACKAGE_STRING"
2125 _ACEOF
2126
2127 cat >>confdefs.h <<_ACEOF
2128 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2129 _ACEOF
2130
2131 cat >>confdefs.h <<_ACEOF
2132 #define PACKAGE_URL "$PACKAGE_URL"
2133 _ACEOF
2134
2135
2136 # Let the site file select an alternate cache file if it wants to.
2137 # Prefer an explicitly selected file to automatically selected ones.
2138 ac_site_file1=NONE
2139 ac_site_file2=NONE
2140 if test -n "$CONFIG_SITE"; then
2141   # We do not want a PATH search for config.site.
2142   case $CONFIG_SITE in #((
2143     -*)  ac_site_file1=./$CONFIG_SITE;;
2144     */*) ac_site_file1=$CONFIG_SITE;;
2145     *)   ac_site_file1=./$CONFIG_SITE;;
2146   esac
2147 elif test "x$prefix" != xNONE; then
2148   ac_site_file1=$prefix/share/config.site
2149   ac_site_file2=$prefix/etc/config.site
2150 else
2151   ac_site_file1=$ac_default_prefix/share/config.site
2152   ac_site_file2=$ac_default_prefix/etc/config.site
2153 fi
2154 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2155 do
2156   test "x$ac_site_file" = xNONE && continue
2157   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2158     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2159 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2160     sed 's/^/| /' "$ac_site_file" >&5
2161     . "$ac_site_file" \
2162       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2164 as_fn_error $? "failed to load site script $ac_site_file
2165 See \`config.log' for more details" "$LINENO" 5; }
2166   fi
2167 done
2168
2169 if test -r "$cache_file"; then
2170   # Some versions of bash will fail to source /dev/null (special files
2171   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2172   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2173     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2174 $as_echo "$as_me: loading cache $cache_file" >&6;}
2175     case $cache_file in
2176       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2177       *)                      . "./$cache_file";;
2178     esac
2179   fi
2180 else
2181   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2182 $as_echo "$as_me: creating cache $cache_file" >&6;}
2183   >$cache_file
2184 fi
2185
2186 # Check that the precious variables saved in the cache have kept the same
2187 # value.
2188 ac_cache_corrupted=false
2189 for ac_var in $ac_precious_vars; do
2190   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2191   eval ac_new_set=\$ac_env_${ac_var}_set
2192   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2193   eval ac_new_val=\$ac_env_${ac_var}_value
2194   case $ac_old_set,$ac_new_set in
2195     set,)
2196       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2197 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2198       ac_cache_corrupted=: ;;
2199     ,set)
2200       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2201 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2202       ac_cache_corrupted=: ;;
2203     ,);;
2204     *)
2205       if test "x$ac_old_val" != "x$ac_new_val"; then
2206         # differences in whitespace do not lead to failure.
2207         ac_old_val_w=`echo x $ac_old_val`
2208         ac_new_val_w=`echo x $ac_new_val`
2209         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2210           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2211 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2212           ac_cache_corrupted=:
2213         else
2214           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2215 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2216           eval $ac_var=\$ac_old_val
2217         fi
2218         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2219 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2220         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2221 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2222       fi;;
2223   esac
2224   # Pass precious variables to config.status.
2225   if test "$ac_new_set" = set; then
2226     case $ac_new_val in
2227     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2228     *) ac_arg=$ac_var=$ac_new_val ;;
2229     esac
2230     case " $ac_configure_args " in
2231       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2232       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2233     esac
2234   fi
2235 done
2236 if $ac_cache_corrupted; then
2237   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2239   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2240 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2241   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2242 fi
2243 ## -------------------- ##
2244 ## Main body of script. ##
2245 ## -------------------- ##
2246
2247 ac_ext=c
2248 ac_cpp='$CPP $CPPFLAGS'
2249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2252
2253
2254
2255
2256 ac_config_headers="$ac_config_headers config.h"
2257
2258 ac_aux_dir=
2259 for ac_dir in . "$srcdir"/.; do
2260   if test -f "$ac_dir/install-sh"; then
2261     ac_aux_dir=$ac_dir
2262     ac_install_sh="$ac_aux_dir/install-sh -c"
2263     break
2264   elif test -f "$ac_dir/install.sh"; then
2265     ac_aux_dir=$ac_dir
2266     ac_install_sh="$ac_aux_dir/install.sh -c"
2267     break
2268   elif test -f "$ac_dir/shtool"; then
2269     ac_aux_dir=$ac_dir
2270     ac_install_sh="$ac_aux_dir/shtool install -c"
2271     break
2272   fi
2273 done
2274 if test -z "$ac_aux_dir"; then
2275   as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2276 fi
2277
2278 # These three variables are undocumented and unsupported,
2279 # and are intended to be withdrawn in a future Autoconf release.
2280 # They can cause serious problems if a builder's source tree is in a directory
2281 # whose full name contains unusual characters.
2282 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2283 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2284 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2285
2286
2287
2288 # Initialize Automake
2289 am__api_version='1.15'
2290
2291 # Find a good install program.  We prefer a C program (faster),
2292 # so one script is as good as another.  But avoid the broken or
2293 # incompatible versions:
2294 # SysV /etc/install, /usr/sbin/install
2295 # SunOS /usr/etc/install
2296 # IRIX /sbin/install
2297 # AIX /bin/install
2298 # AmigaOS /C/install, which installs bootblocks on floppy discs
2299 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2300 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2301 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2302 # OS/2's system install, which has a completely different semantic
2303 # ./install, which can be erroneously created by make from ./install.sh.
2304 # Reject install programs that cannot install multiple files.
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2306 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2307 if test -z "$INSTALL"; then
2308 if ${ac_cv_path_install+:} false; then :
2309   $as_echo_n "(cached) " >&6
2310 else
2311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2312 for as_dir in $PATH
2313 do
2314   IFS=$as_save_IFS
2315   test -z "$as_dir" && as_dir=.
2316     # Account for people who put trailing slashes in PATH elements.
2317 case $as_dir/ in #((
2318   ./ | .// | /[cC]/* | \
2319   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2320   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2321   /usr/ucb/* ) ;;
2322   *)
2323     # OSF1 and SCO ODT 3.0 have their own names for install.
2324     # Don't use installbsd from OSF since it installs stuff as root
2325     # by default.
2326     for ac_prog in ginstall scoinst install; do
2327       for ac_exec_ext in '' $ac_executable_extensions; do
2328         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2329           if test $ac_prog = install &&
2330             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2331             # AIX install.  It has an incompatible calling convention.
2332             :
2333           elif test $ac_prog = install &&
2334             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2335             # program-specific install script used by HP pwplus--don't use.
2336             :
2337           else
2338             rm -rf conftest.one conftest.two conftest.dir
2339             echo one > conftest.one
2340             echo two > conftest.two
2341             mkdir conftest.dir
2342             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2343               test -s conftest.one && test -s conftest.two &&
2344               test -s conftest.dir/conftest.one &&
2345               test -s conftest.dir/conftest.two
2346             then
2347               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2348               break 3
2349             fi
2350           fi
2351         fi
2352       done
2353     done
2354     ;;
2355 esac
2356
2357   done
2358 IFS=$as_save_IFS
2359
2360 rm -rf conftest.one conftest.two conftest.dir
2361
2362 fi
2363   if test "${ac_cv_path_install+set}" = set; then
2364     INSTALL=$ac_cv_path_install
2365   else
2366     # As a last resort, use the slow shell script.  Don't cache a
2367     # value for INSTALL within a source directory, because that will
2368     # break other packages using the cache if that directory is
2369     # removed, or if the value is a relative name.
2370     INSTALL=$ac_install_sh
2371   fi
2372 fi
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2374 $as_echo "$INSTALL" >&6; }
2375
2376 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2377 # It thinks the first close brace ends the variable substitution.
2378 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2379
2380 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2381
2382 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2383
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2385 $as_echo_n "checking whether build environment is sane... " >&6; }
2386 # Reject unsafe characters in $srcdir or the absolute working directory
2387 # name.  Accept space and tab only in the latter.
2388 am_lf='
2389 '
2390 case `pwd` in
2391   *[\\\"\#\$\&\'\`$am_lf]*)
2392     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2393 esac
2394 case $srcdir in
2395   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2396     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2397 esac
2398
2399 # Do 'set' in a subshell so we don't clobber the current shell's
2400 # arguments.  Must try -L first in case configure is actually a
2401 # symlink; some systems play weird games with the mod time of symlinks
2402 # (eg FreeBSD returns the mod time of the symlink's containing
2403 # directory).
2404 if (
2405    am_has_slept=no
2406    for am_try in 1 2; do
2407      echo "timestamp, slept: $am_has_slept" > conftest.file
2408      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2409      if test "$*" = "X"; then
2410         # -L didn't work.
2411         set X `ls -t "$srcdir/configure" conftest.file`
2412      fi
2413      if test "$*" != "X $srcdir/configure conftest.file" \
2414         && test "$*" != "X conftest.file $srcdir/configure"; then
2415
2416         # If neither matched, then we have a broken ls.  This can happen
2417         # if, for instance, CONFIG_SHELL is bash and it inherits a
2418         # broken ls alias from the environment.  This has actually
2419         # happened.  Such a system could not be considered "sane".
2420         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2421   alias in your environment" "$LINENO" 5
2422      fi
2423      if test "$2" = conftest.file || test $am_try -eq 2; then
2424        break
2425      fi
2426      # Just in case.
2427      sleep 1
2428      am_has_slept=yes
2429    done
2430    test "$2" = conftest.file
2431    )
2432 then
2433    # Ok.
2434    :
2435 else
2436    as_fn_error $? "newly created file is older than distributed files!
2437 Check your system clock" "$LINENO" 5
2438 fi
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2440 $as_echo "yes" >&6; }
2441 # If we didn't sleep, we still need to ensure time stamps of config.status and
2442 # generated files are strictly newer.
2443 am_sleep_pid=
2444 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2445   ( sleep 1 ) &
2446   am_sleep_pid=$!
2447 fi
2448
2449 rm -f conftest.file
2450
2451 test "$program_prefix" != NONE &&
2452   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2453 # Use a double $ so make ignores it.
2454 test "$program_suffix" != NONE &&
2455   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2456 # Double any \ or $.
2457 # By default was `s,x,x', remove it if useless.
2458 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2459 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2460
2461 # Expand $ac_aux_dir to an absolute path.
2462 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2463
2464 if test x"${MISSING+set}" != xset; then
2465   case $am_aux_dir in
2466   *\ * | *\     *)
2467     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2468   *)
2469     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2470   esac
2471 fi
2472 # Use eval to expand $SHELL
2473 if eval "$MISSING --is-lightweight"; then
2474   am_missing_run="$MISSING "
2475 else
2476   am_missing_run=
2477   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2478 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2479 fi
2480
2481 if test x"${install_sh+set}" != xset; then
2482   case $am_aux_dir in
2483   *\ * | *\     *)
2484     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2485   *)
2486     install_sh="\${SHELL} $am_aux_dir/install-sh"
2487   esac
2488 fi
2489
2490 # Installed binaries are usually stripped using 'strip' when the user
2491 # run "make install-strip".  However 'strip' might not be the right
2492 # tool to use in cross-compilation environments, therefore Automake
2493 # will honor the 'STRIP' environment variable to overrule this program.
2494 if test "$cross_compiling" != no; then
2495   if test -n "$ac_tool_prefix"; then
2496   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2497 set dummy ${ac_tool_prefix}strip; ac_word=$2
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2499 $as_echo_n "checking for $ac_word... " >&6; }
2500 if ${ac_cv_prog_STRIP+:} false; then :
2501   $as_echo_n "(cached) " >&6
2502 else
2503   if test -n "$STRIP"; then
2504   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2505 else
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 for as_dir in $PATH
2508 do
2509   IFS=$as_save_IFS
2510   test -z "$as_dir" && as_dir=.
2511     for ac_exec_ext in '' $ac_executable_extensions; do
2512   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2513     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2514     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2515     break 2
2516   fi
2517 done
2518   done
2519 IFS=$as_save_IFS
2520
2521 fi
2522 fi
2523 STRIP=$ac_cv_prog_STRIP
2524 if test -n "$STRIP"; then
2525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2526 $as_echo "$STRIP" >&6; }
2527 else
2528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2529 $as_echo "no" >&6; }
2530 fi
2531
2532
2533 fi
2534 if test -z "$ac_cv_prog_STRIP"; then
2535   ac_ct_STRIP=$STRIP
2536   # Extract the first word of "strip", so it can be a program name with args.
2537 set dummy strip; ac_word=$2
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2539 $as_echo_n "checking for $ac_word... " >&6; }
2540 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2541   $as_echo_n "(cached) " >&6
2542 else
2543   if test -n "$ac_ct_STRIP"; then
2544   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2545 else
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 for as_dir in $PATH
2548 do
2549   IFS=$as_save_IFS
2550   test -z "$as_dir" && as_dir=.
2551     for ac_exec_ext in '' $ac_executable_extensions; do
2552   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2553     ac_cv_prog_ac_ct_STRIP="strip"
2554     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2555     break 2
2556   fi
2557 done
2558   done
2559 IFS=$as_save_IFS
2560
2561 fi
2562 fi
2563 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2564 if test -n "$ac_ct_STRIP"; then
2565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2566 $as_echo "$ac_ct_STRIP" >&6; }
2567 else
2568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2569 $as_echo "no" >&6; }
2570 fi
2571
2572   if test "x$ac_ct_STRIP" = x; then
2573     STRIP=":"
2574   else
2575     case $cross_compiling:$ac_tool_warned in
2576 yes:)
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2578 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2579 ac_tool_warned=yes ;;
2580 esac
2581     STRIP=$ac_ct_STRIP
2582   fi
2583 else
2584   STRIP="$ac_cv_prog_STRIP"
2585 fi
2586
2587 fi
2588 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2589
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2591 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2592 if test -z "$MKDIR_P"; then
2593   if ${ac_cv_path_mkdir+:} false; then :
2594   $as_echo_n "(cached) " >&6
2595 else
2596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2598 do
2599   IFS=$as_save_IFS
2600   test -z "$as_dir" && as_dir=.
2601     for ac_prog in mkdir gmkdir; do
2602          for ac_exec_ext in '' $ac_executable_extensions; do
2603            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2604            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2605              'mkdir (GNU coreutils) '* | \
2606              'mkdir (coreutils) '* | \
2607              'mkdir (fileutils) '4.1*)
2608                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2609                break 3;;
2610            esac
2611          done
2612        done
2613   done
2614 IFS=$as_save_IFS
2615
2616 fi
2617
2618   test -d ./--version && rmdir ./--version
2619   if test "${ac_cv_path_mkdir+set}" = set; then
2620     MKDIR_P="$ac_cv_path_mkdir -p"
2621   else
2622     # As a last resort, use the slow shell script.  Don't cache a
2623     # value for MKDIR_P within a source directory, because that will
2624     # break other packages using the cache if that directory is
2625     # removed, or if the value is a relative name.
2626     MKDIR_P="$ac_install_sh -d"
2627   fi
2628 fi
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2630 $as_echo "$MKDIR_P" >&6; }
2631
2632 for ac_prog in gawk mawk nawk awk
2633 do
2634   # Extract the first word of "$ac_prog", so it can be a program name with args.
2635 set dummy $ac_prog; ac_word=$2
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2637 $as_echo_n "checking for $ac_word... " >&6; }
2638 if ${ac_cv_prog_AWK+:} false; then :
2639   $as_echo_n "(cached) " >&6
2640 else
2641   if test -n "$AWK"; then
2642   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2643 else
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 for as_dir in $PATH
2646 do
2647   IFS=$as_save_IFS
2648   test -z "$as_dir" && as_dir=.
2649     for ac_exec_ext in '' $ac_executable_extensions; do
2650   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2651     ac_cv_prog_AWK="$ac_prog"
2652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2653     break 2
2654   fi
2655 done
2656   done
2657 IFS=$as_save_IFS
2658
2659 fi
2660 fi
2661 AWK=$ac_cv_prog_AWK
2662 if test -n "$AWK"; then
2663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2664 $as_echo "$AWK" >&6; }
2665 else
2666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2667 $as_echo "no" >&6; }
2668 fi
2669
2670
2671   test -n "$AWK" && break
2672 done
2673
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2675 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2676 set x ${MAKE-make}
2677 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2678 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2679   $as_echo_n "(cached) " >&6
2680 else
2681   cat >conftest.make <<\_ACEOF
2682 SHELL = /bin/sh
2683 all:
2684         @echo '@@@%%%=$(MAKE)=@@@%%%'
2685 _ACEOF
2686 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2687 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2688   *@@@%%%=?*=@@@%%%*)
2689     eval ac_cv_prog_make_${ac_make}_set=yes;;
2690   *)
2691     eval ac_cv_prog_make_${ac_make}_set=no;;
2692 esac
2693 rm -f conftest.make
2694 fi
2695 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2697 $as_echo "yes" >&6; }
2698   SET_MAKE=
2699 else
2700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2701 $as_echo "no" >&6; }
2702   SET_MAKE="MAKE=${MAKE-make}"
2703 fi
2704
2705 rm -rf .tst 2>/dev/null
2706 mkdir .tst 2>/dev/null
2707 if test -d .tst; then
2708   am__leading_dot=.
2709 else
2710   am__leading_dot=_
2711 fi
2712 rmdir .tst 2>/dev/null
2713
2714 # Check whether --enable-silent-rules was given.
2715 if test "${enable_silent_rules+set}" = set; then :
2716   enableval=$enable_silent_rules;
2717 fi
2718
2719 case $enable_silent_rules in # (((
2720   yes) AM_DEFAULT_VERBOSITY=0;;
2721    no) AM_DEFAULT_VERBOSITY=1;;
2722     *) AM_DEFAULT_VERBOSITY=1;;
2723 esac
2724 am_make=${MAKE-make}
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2726 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2727 if ${am_cv_make_support_nested_variables+:} false; then :
2728   $as_echo_n "(cached) " >&6
2729 else
2730   if $as_echo 'TRUE=$(BAR$(V))
2731 BAR0=false
2732 BAR1=true
2733 V=1
2734 am__doit:
2735         @$(TRUE)
2736 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2737   am_cv_make_support_nested_variables=yes
2738 else
2739   am_cv_make_support_nested_variables=no
2740 fi
2741 fi
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2743 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2744 if test $am_cv_make_support_nested_variables = yes; then
2745     AM_V='$(V)'
2746   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2747 else
2748   AM_V=$AM_DEFAULT_VERBOSITY
2749   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2750 fi
2751 AM_BACKSLASH='\'
2752
2753 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2754   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2755   # is not polluted with repeated "-I."
2756   am__isrc=' -I$(srcdir)'
2757   # test to see if srcdir already configured
2758   if test -f $srcdir/config.status; then
2759     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2760   fi
2761 fi
2762
2763 # test whether we have cygpath
2764 if test -z "$CYGPATH_W"; then
2765   if (cygpath --version) >/dev/null 2>/dev/null; then
2766     CYGPATH_W='cygpath -w'
2767   else
2768     CYGPATH_W=echo
2769   fi
2770 fi
2771
2772
2773 # Define the identity of the package.
2774  PACKAGE='xf86-input-mtrack'
2775  VERSION='0.2.0'
2776
2777
2778 cat >>confdefs.h <<_ACEOF
2779 #define PACKAGE "$PACKAGE"
2780 _ACEOF
2781
2782
2783 cat >>confdefs.h <<_ACEOF
2784 #define VERSION "$VERSION"
2785 _ACEOF
2786
2787 # Some tools Automake needs.
2788
2789 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2790
2791
2792 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2793
2794
2795 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2796
2797
2798 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2799
2800
2801 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2802
2803 # For better backward compatibility.  To be removed once Automake 1.9.x
2804 # dies out for good.  For more background, see:
2805 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2806 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2807 mkdir_p='$(MKDIR_P)'
2808
2809 # We need awk for the "check" target (and possibly the TAP driver).  The
2810 # system "awk" is bad on some platforms.
2811 # Always define AMTAR for backward compatibility.  Yes, it's still used
2812 # in the wild :-(  We should find a proper way to deprecate it ...
2813 AMTAR='$${TAR-tar}'
2814
2815
2816 # We'll loop over all known methods to create a tar archive until one works.
2817 _am_tools='gnutar  pax cpio none'
2818
2819 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2820
2821
2822
2823
2824
2825
2826 # POSIX will say in a future version that running "rm -f" with no argument
2827 # is OK; and we want to be able to make that assumption in our Makefile
2828 # recipes.  So use an aggressive probe to check that the usage we want is
2829 # actually supported "in the wild" to an acceptable degree.
2830 # See automake bug#10828.
2831 # To make any issue more visible, cause the running configure to be aborted
2832 # by default if the 'rm' program in use doesn't match our expectations; the
2833 # user can still override this though.
2834 if rm -f && rm -fr && rm -rf; then : OK; else
2835   cat >&2 <<'END'
2836 Oops!
2837
2838 Your 'rm' program seems unable to run without file operands specified
2839 on the command line, even when the '-f' option is present.  This is contrary
2840 to the behaviour of most rm programs out there, and not conforming with
2841 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2842
2843 Please tell bug-automake@gnu.org about your system, including the value
2844 of your $PATH and any error possibly output before this message.  This
2845 can help us improve future automake versions.
2846
2847 END
2848   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2849     echo 'Configuration will proceed anyway, since you have set the' >&2
2850     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2851     echo >&2
2852   else
2853     cat >&2 <<'END'
2854 Aborting the configuration process, to ensure you take notice of the issue.
2855
2856 You can download and install GNU coreutils to get an 'rm' implementation
2857 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2858
2859 If you want to complete the configuration process using your problematic
2860 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2861 to "yes", and re-run configure.
2862
2863 END
2864     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2865   fi
2866 fi
2867
2868
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2870 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2871     # Check whether --enable-maintainer-mode was given.
2872 if test "${enable_maintainer_mode+set}" = set; then :
2873   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2874 else
2875   USE_MAINTAINER_MODE=no
2876 fi
2877
2878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2879 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2880    if test $USE_MAINTAINER_MODE = yes; then
2881   MAINTAINER_MODE_TRUE=
2882   MAINTAINER_MODE_FALSE='#'
2883 else
2884   MAINTAINER_MODE_TRUE='#'
2885   MAINTAINER_MODE_FALSE=
2886 fi
2887
2888   MAINT=$MAINTAINER_MODE_TRUE
2889
2890
2891
2892 # Initialize libtool
2893 # Check whether --enable-static was given.
2894 if test "${enable_static+set}" = set; then :
2895   enableval=$enable_static; p=${PACKAGE-default}
2896     case $enableval in
2897     yes) enable_static=yes ;;
2898     no) enable_static=no ;;
2899     *)
2900      enable_static=no
2901       # Look at the argument we got.  We use all the common list separators.
2902       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
2903       for pkg in $enableval; do
2904         IFS=$lt_save_ifs
2905         if test "X$pkg" = "X$p"; then
2906           enable_static=yes
2907         fi
2908       done
2909       IFS=$lt_save_ifs
2910       ;;
2911     esac
2912 else
2913   enable_static=no
2914 fi
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924 case `pwd` in
2925   *\ * | *\     *)
2926     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2927 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2928 esac
2929
2930
2931
2932 macro_version='2.4.6'
2933 macro_revision='2.4.6'
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947 ltmain=$ac_aux_dir/ltmain.sh
2948
2949 # Make sure we can run config.sub.
2950 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2951   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2952
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2954 $as_echo_n "checking build system type... " >&6; }
2955 if ${ac_cv_build+:} false; then :
2956   $as_echo_n "(cached) " >&6
2957 else
2958   ac_build_alias=$build_alias
2959 test "x$ac_build_alias" = x &&
2960   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2961 test "x$ac_build_alias" = x &&
2962   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2963 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2964   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2965
2966 fi
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2968 $as_echo "$ac_cv_build" >&6; }
2969 case $ac_cv_build in
2970 *-*-*) ;;
2971 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2972 esac
2973 build=$ac_cv_build
2974 ac_save_IFS=$IFS; IFS='-'
2975 set x $ac_cv_build
2976 shift
2977 build_cpu=$1
2978 build_vendor=$2
2979 shift; shift
2980 # Remember, the first character of IFS is used to create $*,
2981 # except with old shells:
2982 build_os=$*
2983 IFS=$ac_save_IFS
2984 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2985
2986
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2988 $as_echo_n "checking host system type... " >&6; }
2989 if ${ac_cv_host+:} false; then :
2990   $as_echo_n "(cached) " >&6
2991 else
2992   if test "x$host_alias" = x; then
2993   ac_cv_host=$ac_cv_build
2994 else
2995   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2996     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2997 fi
2998
2999 fi
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3001 $as_echo "$ac_cv_host" >&6; }
3002 case $ac_cv_host in
3003 *-*-*) ;;
3004 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3005 esac
3006 host=$ac_cv_host
3007 ac_save_IFS=$IFS; IFS='-'
3008 set x $ac_cv_host
3009 shift
3010 host_cpu=$1
3011 host_vendor=$2
3012 shift; shift
3013 # Remember, the first character of IFS is used to create $*,
3014 # except with old shells:
3015 host_os=$*
3016 IFS=$ac_save_IFS
3017 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3018
3019
3020 # Backslashify metacharacters that are still active within
3021 # double-quoted strings.
3022 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3023
3024 # Same as above, but do not quote variable references.
3025 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3026
3027 # Sed substitution to delay expansion of an escaped shell variable in a
3028 # double_quote_subst'ed string.
3029 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3030
3031 # Sed substitution to delay expansion of an escaped single quote.
3032 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3033
3034 # Sed substitution to avoid accidental globbing in evaled expressions
3035 no_glob_subst='s/\*/\\\*/g'
3036
3037 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3038 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3039 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3040
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3042 $as_echo_n "checking how to print strings... " >&6; }
3043 # Test print first, because it will be a builtin if present.
3044 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3045    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3046   ECHO='print -r --'
3047 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3048   ECHO='printf %s\n'
3049 else
3050   # Use this function as a fallback that always works.
3051   func_fallback_echo ()
3052   {
3053     eval 'cat <<_LTECHO_EOF
3054 $1
3055 _LTECHO_EOF'
3056   }
3057   ECHO='func_fallback_echo'
3058 fi
3059
3060 # func_echo_all arg...
3061 # Invoke $ECHO with all args, space-separated.
3062 func_echo_all ()
3063 {
3064     $ECHO ""
3065 }
3066
3067 case $ECHO in
3068   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3069 $as_echo "printf" >&6; } ;;
3070   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3071 $as_echo "print -r" >&6; } ;;
3072   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3073 $as_echo "cat" >&6; } ;;
3074 esac
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089 DEPDIR="${am__leading_dot}deps"
3090
3091 ac_config_commands="$ac_config_commands depfiles"
3092
3093
3094 am_make=${MAKE-make}
3095 cat > confinc << 'END'
3096 am__doit:
3097         @echo this is the am__doit target
3098 .PHONY: am__doit
3099 END
3100 # If we don't find an include directive, just comment out the code.
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3102 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3103 am__include="#"
3104 am__quote=
3105 _am_result=none
3106 # First try GNU make style include.
3107 echo "include confinc" > confmf
3108 # Ignore all kinds of additional output from 'make'.
3109 case `$am_make -s -f confmf 2> /dev/null` in #(
3110 *the\ am__doit\ target*)
3111   am__include=include
3112   am__quote=
3113   _am_result=GNU
3114   ;;
3115 esac
3116 # Now try BSD make style include.
3117 if test "$am__include" = "#"; then
3118    echo '.include "confinc"' > confmf
3119    case `$am_make -s -f confmf 2> /dev/null` in #(
3120    *the\ am__doit\ target*)
3121      am__include=.include
3122      am__quote="\""
3123      _am_result=BSD
3124      ;;
3125    esac
3126 fi
3127
3128
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3130 $as_echo "$_am_result" >&6; }
3131 rm -f confinc confmf
3132
3133 # Check whether --enable-dependency-tracking was given.
3134 if test "${enable_dependency_tracking+set}" = set; then :
3135   enableval=$enable_dependency_tracking;
3136 fi
3137
3138 if test "x$enable_dependency_tracking" != xno; then
3139   am_depcomp="$ac_aux_dir/depcomp"
3140   AMDEPBACKSLASH='\'
3141   am__nodep='_no'
3142 fi
3143  if test "x$enable_dependency_tracking" != xno; then
3144   AMDEP_TRUE=
3145   AMDEP_FALSE='#'
3146 else
3147   AMDEP_TRUE='#'
3148   AMDEP_FALSE=
3149 fi
3150
3151
3152 ac_ext=c
3153 ac_cpp='$CPP $CPPFLAGS'
3154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3157 if test -n "$ac_tool_prefix"; then
3158   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3159 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3161 $as_echo_n "checking for $ac_word... " >&6; }
3162 if ${ac_cv_prog_CC+:} false; then :
3163   $as_echo_n "(cached) " >&6
3164 else
3165   if test -n "$CC"; then
3166   ac_cv_prog_CC="$CC" # Let the user override the test.
3167 else
3168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 for as_dir in $PATH
3170 do
3171   IFS=$as_save_IFS
3172   test -z "$as_dir" && as_dir=.
3173     for ac_exec_ext in '' $ac_executable_extensions; do
3174   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3175     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3176     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3177     break 2
3178   fi
3179 done
3180   done
3181 IFS=$as_save_IFS
3182
3183 fi
3184 fi
3185 CC=$ac_cv_prog_CC
3186 if test -n "$CC"; then
3187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3188 $as_echo "$CC" >&6; }
3189 else
3190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191 $as_echo "no" >&6; }
3192 fi
3193
3194
3195 fi
3196 if test -z "$ac_cv_prog_CC"; then
3197   ac_ct_CC=$CC
3198   # Extract the first word of "gcc", so it can be a program name with args.
3199 set dummy gcc; ac_word=$2
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3201 $as_echo_n "checking for $ac_word... " >&6; }
3202 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3203   $as_echo_n "(cached) " >&6
3204 else
3205   if test -n "$ac_ct_CC"; then
3206   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3207 else
3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 for as_dir in $PATH
3210 do
3211   IFS=$as_save_IFS
3212   test -z "$as_dir" && as_dir=.
3213     for ac_exec_ext in '' $ac_executable_extensions; do
3214   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3215     ac_cv_prog_ac_ct_CC="gcc"
3216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3217     break 2
3218   fi
3219 done
3220   done
3221 IFS=$as_save_IFS
3222
3223 fi
3224 fi
3225 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3226 if test -n "$ac_ct_CC"; then
3227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3228 $as_echo "$ac_ct_CC" >&6; }
3229 else
3230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231 $as_echo "no" >&6; }
3232 fi
3233
3234   if test "x$ac_ct_CC" = x; then
3235     CC=""
3236   else
3237     case $cross_compiling:$ac_tool_warned in
3238 yes:)
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3241 ac_tool_warned=yes ;;
3242 esac
3243     CC=$ac_ct_CC
3244   fi
3245 else
3246   CC="$ac_cv_prog_CC"
3247 fi
3248
3249 if test -z "$CC"; then
3250           if test -n "$ac_tool_prefix"; then
3251     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3252 set dummy ${ac_tool_prefix}cc; ac_word=$2
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3254 $as_echo_n "checking for $ac_word... " >&6; }
3255 if ${ac_cv_prog_CC+:} false; then :
3256   $as_echo_n "(cached) " >&6
3257 else
3258   if test -n "$CC"; then
3259   ac_cv_prog_CC="$CC" # Let the user override the test.
3260 else
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 for as_dir in $PATH
3263 do
3264   IFS=$as_save_IFS
3265   test -z "$as_dir" && as_dir=.
3266     for ac_exec_ext in '' $ac_executable_extensions; do
3267   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3268     ac_cv_prog_CC="${ac_tool_prefix}cc"
3269     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3270     break 2
3271   fi
3272 done
3273   done
3274 IFS=$as_save_IFS
3275
3276 fi
3277 fi
3278 CC=$ac_cv_prog_CC
3279 if test -n "$CC"; then
3280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3281 $as_echo "$CC" >&6; }
3282 else
3283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284 $as_echo "no" >&6; }
3285 fi
3286
3287
3288   fi
3289 fi
3290 if test -z "$CC"; then
3291   # Extract the first word of "cc", so it can be a program name with args.
3292 set dummy cc; ac_word=$2
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3294 $as_echo_n "checking for $ac_word... " >&6; }
3295 if ${ac_cv_prog_CC+:} false; then :
3296   $as_echo_n "(cached) " >&6
3297 else
3298   if test -n "$CC"; then
3299   ac_cv_prog_CC="$CC" # Let the user override the test.
3300 else
3301   ac_prog_rejected=no
3302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303 for as_dir in $PATH
3304 do
3305   IFS=$as_save_IFS
3306   test -z "$as_dir" && as_dir=.
3307     for ac_exec_ext in '' $ac_executable_extensions; do
3308   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3309     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3310        ac_prog_rejected=yes
3311        continue
3312      fi
3313     ac_cv_prog_CC="cc"
3314     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3315     break 2
3316   fi
3317 done
3318   done
3319 IFS=$as_save_IFS
3320
3321 if test $ac_prog_rejected = yes; then
3322   # We found a bogon in the path, so make sure we never use it.
3323   set dummy $ac_cv_prog_CC
3324   shift
3325   if test $# != 0; then
3326     # We chose a different compiler from the bogus one.
3327     # However, it has the same basename, so the bogon will be chosen
3328     # first if we set CC to just the basename; use the full file name.
3329     shift
3330     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3331   fi
3332 fi
3333 fi
3334 fi
3335 CC=$ac_cv_prog_CC
3336 if test -n "$CC"; then
3337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3338 $as_echo "$CC" >&6; }
3339 else
3340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3341 $as_echo "no" >&6; }
3342 fi
3343
3344
3345 fi
3346 if test -z "$CC"; then
3347   if test -n "$ac_tool_prefix"; then
3348   for ac_prog in cl.exe
3349   do
3350     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3351 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3353 $as_echo_n "checking for $ac_word... " >&6; }
3354 if ${ac_cv_prog_CC+:} false; then :
3355   $as_echo_n "(cached) " >&6
3356 else
3357   if test -n "$CC"; then
3358   ac_cv_prog_CC="$CC" # Let the user override the test.
3359 else
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361 for as_dir in $PATH
3362 do
3363   IFS=$as_save_IFS
3364   test -z "$as_dir" && as_dir=.
3365     for ac_exec_ext in '' $ac_executable_extensions; do
3366   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3367     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3369     break 2
3370   fi
3371 done
3372   done
3373 IFS=$as_save_IFS
3374
3375 fi
3376 fi
3377 CC=$ac_cv_prog_CC
3378 if test -n "$CC"; then
3379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3380 $as_echo "$CC" >&6; }
3381 else
3382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3383 $as_echo "no" >&6; }
3384 fi
3385
3386
3387     test -n "$CC" && break
3388   done
3389 fi
3390 if test -z "$CC"; then
3391   ac_ct_CC=$CC
3392   for ac_prog in cl.exe
3393 do
3394   # Extract the first word of "$ac_prog", so it can be a program name with args.
3395 set dummy $ac_prog; ac_word=$2
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3397 $as_echo_n "checking for $ac_word... " >&6; }
3398 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3399   $as_echo_n "(cached) " >&6
3400 else
3401   if test -n "$ac_ct_CC"; then
3402   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3403 else
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 for as_dir in $PATH
3406 do
3407   IFS=$as_save_IFS
3408   test -z "$as_dir" && as_dir=.
3409     for ac_exec_ext in '' $ac_executable_extensions; do
3410   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3411     ac_cv_prog_ac_ct_CC="$ac_prog"
3412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3413     break 2
3414   fi
3415 done
3416   done
3417 IFS=$as_save_IFS
3418
3419 fi
3420 fi
3421 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3422 if test -n "$ac_ct_CC"; then
3423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3424 $as_echo "$ac_ct_CC" >&6; }
3425 else
3426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3427 $as_echo "no" >&6; }
3428 fi
3429
3430
3431   test -n "$ac_ct_CC" && break
3432 done
3433
3434   if test "x$ac_ct_CC" = x; then
3435     CC=""
3436   else
3437     case $cross_compiling:$ac_tool_warned in
3438 yes:)
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3441 ac_tool_warned=yes ;;
3442 esac
3443     CC=$ac_ct_CC
3444   fi
3445 fi
3446
3447 fi
3448
3449
3450 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3452 as_fn_error $? "no acceptable C compiler found in \$PATH
3453 See \`config.log' for more details" "$LINENO" 5; }
3454
3455 # Provide some information about the compiler.
3456 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3457 set X $ac_compile
3458 ac_compiler=$2
3459 for ac_option in --version -v -V -qversion; do
3460   { { ac_try="$ac_compiler $ac_option >&5"
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_compiler $ac_option >&5") 2>conftest.err
3468   ac_status=$?
3469   if test -s conftest.err; then
3470     sed '10a\
3471 ... rest of stderr output deleted ...
3472          10q' conftest.err >conftest.er1
3473     cat conftest.er1 >&5
3474   fi
3475   rm -f conftest.er1 conftest.err
3476   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3477   test $ac_status = 0; }
3478 done
3479
3480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 /* end confdefs.h.  */
3482
3483 int
3484 main ()
3485 {
3486
3487   ;
3488   return 0;
3489 }
3490 _ACEOF
3491 ac_clean_files_save=$ac_clean_files
3492 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3493 # Try to create an executable without -o first, disregard a.out.
3494 # It will help us diagnose broken compilers, and finding out an intuition
3495 # of exeext.
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3497 $as_echo_n "checking whether the C compiler works... " >&6; }
3498 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3499
3500 # The possible output files:
3501 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3502
3503 ac_rmfiles=
3504 for ac_file in $ac_files
3505 do
3506   case $ac_file in
3507     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3508     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3509   esac
3510 done
3511 rm -f $ac_rmfiles
3512
3513 if { { ac_try="$ac_link_default"
3514 case "(($ac_try" in
3515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516   *) ac_try_echo=$ac_try;;
3517 esac
3518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3519 $as_echo "$ac_try_echo"; } >&5
3520   (eval "$ac_link_default") 2>&5
3521   ac_status=$?
3522   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3523   test $ac_status = 0; }; then :
3524   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3525 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3526 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3527 # so that the user can short-circuit this test for compilers unknown to
3528 # Autoconf.
3529 for ac_file in $ac_files ''
3530 do
3531   test -f "$ac_file" || continue
3532   case $ac_file in
3533     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3534         ;;
3535     [ab].out )
3536         # We found the default executable, but exeext='' is most
3537         # certainly right.
3538         break;;
3539     *.* )
3540         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3541         then :; else
3542            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3543         fi
3544         # We set ac_cv_exeext here because the later test for it is not
3545         # safe: cross compilers may not add the suffix if given an `-o'
3546         # argument, so we may need to know it at that point already.
3547         # Even if this section looks crufty: it has the advantage of
3548         # actually working.
3549         break;;
3550     * )
3551         break;;
3552   esac
3553 done
3554 test "$ac_cv_exeext" = no && ac_cv_exeext=
3555
3556 else
3557   ac_file=''
3558 fi
3559 if test -z "$ac_file"; then :
3560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3561 $as_echo "no" >&6; }
3562 $as_echo "$as_me: failed program was:" >&5
3563 sed 's/^/| /' conftest.$ac_ext >&5
3564
3565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3567 as_fn_error 77 "C compiler cannot create executables
3568 See \`config.log' for more details" "$LINENO" 5; }
3569 else
3570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3571 $as_echo "yes" >&6; }
3572 fi
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3574 $as_echo_n "checking for C compiler default output file name... " >&6; }
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3576 $as_echo "$ac_file" >&6; }
3577 ac_exeext=$ac_cv_exeext
3578
3579 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3580 ac_clean_files=$ac_clean_files_save
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3582 $as_echo_n "checking for suffix of executables... " >&6; }
3583 if { { ac_try="$ac_link"
3584 case "(($ac_try" in
3585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586   *) ac_try_echo=$ac_try;;
3587 esac
3588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3589 $as_echo "$ac_try_echo"; } >&5
3590   (eval "$ac_link") 2>&5
3591   ac_status=$?
3592   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3593   test $ac_status = 0; }; then :
3594   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3595 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3596 # work properly (i.e., refer to `conftest.exe'), while it won't with
3597 # `rm'.
3598 for ac_file in conftest.exe conftest conftest.*; do
3599   test -f "$ac_file" || continue
3600   case $ac_file in
3601     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3602     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3603           break;;
3604     * ) break;;
3605   esac
3606 done
3607 else
3608   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3610 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3611 See \`config.log' for more details" "$LINENO" 5; }
3612 fi
3613 rm -f conftest conftest$ac_cv_exeext
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3615 $as_echo "$ac_cv_exeext" >&6; }
3616
3617 rm -f conftest.$ac_ext
3618 EXEEXT=$ac_cv_exeext
3619 ac_exeext=$EXEEXT
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h.  */
3622 #include <stdio.h>
3623 int
3624 main ()
3625 {
3626 FILE *f = fopen ("conftest.out", "w");
3627  return ferror (f) || fclose (f) != 0;
3628
3629   ;
3630   return 0;
3631 }
3632 _ACEOF
3633 ac_clean_files="$ac_clean_files conftest.out"
3634 # Check that the compiler produces executables we can run.  If not, either
3635 # the compiler is broken, or we cross compile.
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3637 $as_echo_n "checking whether we are cross compiling... " >&6; }
3638 if test "$cross_compiling" != yes; then
3639   { { ac_try="$ac_link"
3640 case "(($ac_try" in
3641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642   *) ac_try_echo=$ac_try;;
3643 esac
3644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3645 $as_echo "$ac_try_echo"; } >&5
3646   (eval "$ac_link") 2>&5
3647   ac_status=$?
3648   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3649   test $ac_status = 0; }
3650   if { ac_try='./conftest$ac_cv_exeext'
3651   { { case "(($ac_try" in
3652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653   *) ac_try_echo=$ac_try;;
3654 esac
3655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3656 $as_echo "$ac_try_echo"; } >&5
3657   (eval "$ac_try") 2>&5
3658   ac_status=$?
3659   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3660   test $ac_status = 0; }; }; then
3661     cross_compiling=no
3662   else
3663     if test "$cross_compiling" = maybe; then
3664         cross_compiling=yes
3665     else
3666         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3668 as_fn_error $? "cannot run C compiled programs.
3669 If you meant to cross compile, use \`--host'.
3670 See \`config.log' for more details" "$LINENO" 5; }
3671     fi
3672   fi
3673 fi
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3675 $as_echo "$cross_compiling" >&6; }
3676
3677 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3678 ac_clean_files=$ac_clean_files_save
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3680 $as_echo_n "checking for suffix of object files... " >&6; }
3681 if ${ac_cv_objext+:} false; then :
3682   $as_echo_n "(cached) " >&6
3683 else
3684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685 /* end confdefs.h.  */
3686
3687 int
3688 main ()
3689 {
3690
3691   ;
3692   return 0;
3693 }
3694 _ACEOF
3695 rm -f conftest.o conftest.obj
3696 if { { ac_try="$ac_compile"
3697 case "(($ac_try" in
3698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699   *) ac_try_echo=$ac_try;;
3700 esac
3701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3702 $as_echo "$ac_try_echo"; } >&5
3703   (eval "$ac_compile") 2>&5
3704   ac_status=$?
3705   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3706   test $ac_status = 0; }; then :
3707   for ac_file in conftest.o conftest.obj conftest.*; do
3708   test -f "$ac_file" || continue;
3709   case $ac_file in
3710     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3711     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3712        break;;
3713   esac
3714 done
3715 else
3716   $as_echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3718
3719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3721 as_fn_error $? "cannot compute suffix of object files: cannot compile
3722 See \`config.log' for more details" "$LINENO" 5; }
3723 fi
3724 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3725 fi
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3727 $as_echo "$ac_cv_objext" >&6; }
3728 OBJEXT=$ac_cv_objext
3729 ac_objext=$OBJEXT
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3731 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3732 if ${ac_cv_c_compiler_gnu+:} false; then :
3733   $as_echo_n "(cached) " >&6
3734 else
3735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736 /* end confdefs.h.  */
3737
3738 int
3739 main ()
3740 {
3741 #ifndef __GNUC__
3742        choke me
3743 #endif
3744
3745   ;
3746   return 0;
3747 }
3748 _ACEOF
3749 if ac_fn_c_try_compile "$LINENO"; then :
3750   ac_compiler_gnu=yes
3751 else
3752   ac_compiler_gnu=no
3753 fi
3754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3755 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3756
3757 fi
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3759 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3760 if test $ac_compiler_gnu = yes; then
3761   GCC=yes
3762 else
3763   GCC=
3764 fi
3765 ac_test_CFLAGS=${CFLAGS+set}
3766 ac_save_CFLAGS=$CFLAGS
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3768 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3769 if ${ac_cv_prog_cc_g+:} false; then :
3770   $as_echo_n "(cached) " >&6
3771 else
3772   ac_save_c_werror_flag=$ac_c_werror_flag
3773    ac_c_werror_flag=yes
3774    ac_cv_prog_cc_g=no
3775    CFLAGS="-g"
3776    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h.  */
3778
3779 int
3780 main ()
3781 {
3782
3783   ;
3784   return 0;
3785 }
3786 _ACEOF
3787 if ac_fn_c_try_compile "$LINENO"; then :
3788   ac_cv_prog_cc_g=yes
3789 else
3790   CFLAGS=""
3791       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792 /* end confdefs.h.  */
3793
3794 int
3795 main ()
3796 {
3797
3798   ;
3799   return 0;
3800 }
3801 _ACEOF
3802 if ac_fn_c_try_compile "$LINENO"; then :
3803
3804 else
3805   ac_c_werror_flag=$ac_save_c_werror_flag
3806          CFLAGS="-g"
3807          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3808 /* end confdefs.h.  */
3809
3810 int
3811 main ()
3812 {
3813
3814   ;
3815   return 0;
3816 }
3817 _ACEOF
3818 if ac_fn_c_try_compile "$LINENO"; then :
3819   ac_cv_prog_cc_g=yes
3820 fi
3821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3822 fi
3823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3824 fi
3825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3826    ac_c_werror_flag=$ac_save_c_werror_flag
3827 fi
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3829 $as_echo "$ac_cv_prog_cc_g" >&6; }
3830 if test "$ac_test_CFLAGS" = set; then
3831   CFLAGS=$ac_save_CFLAGS
3832 elif test $ac_cv_prog_cc_g = yes; then
3833   if test "$GCC" = yes; then
3834     CFLAGS="-g -O2"
3835   else
3836     CFLAGS="-g"
3837   fi
3838 else
3839   if test "$GCC" = yes; then
3840     CFLAGS="-O2"
3841   else
3842     CFLAGS=
3843   fi
3844 fi
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3846 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3847 if ${ac_cv_prog_cc_c89+:} false; then :
3848   $as_echo_n "(cached) " >&6
3849 else
3850   ac_cv_prog_cc_c89=no
3851 ac_save_CC=$CC
3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h.  */
3854 #include <stdarg.h>
3855 #include <stdio.h>
3856 struct stat;
3857 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3858 struct buf { int x; };
3859 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3860 static char *e (p, i)
3861      char **p;
3862      int i;
3863 {
3864   return p[i];
3865 }
3866 static char *f (char * (*g) (char **, int), char **p, ...)
3867 {
3868   char *s;
3869   va_list v;
3870   va_start (v,p);
3871   s = g (p, va_arg (v,int));
3872   va_end (v);
3873   return s;
3874 }
3875
3876 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3877    function prototypes and stuff, but not '\xHH' hex character constants.
3878    These don't provoke an error unfortunately, instead are silently treated
3879    as 'x'.  The following induces an error, until -std is added to get
3880    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3881    array size at least.  It's necessary to write '\x00'==0 to get something
3882    that's true only with -std.  */
3883 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3884
3885 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3886    inside strings and character constants.  */
3887 #define FOO(x) 'x'
3888 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3889
3890 int test (int i, double x);
3891 struct s1 {int (*f) (int a);};
3892 struct s2 {int (*f) (double a);};
3893 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3894 int argc;
3895 char **argv;
3896 int
3897 main ()
3898 {
3899 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3900   ;
3901   return 0;
3902 }
3903 _ACEOF
3904 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3905         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3906 do
3907   CC="$ac_save_CC $ac_arg"
3908   if ac_fn_c_try_compile "$LINENO"; then :
3909   ac_cv_prog_cc_c89=$ac_arg
3910 fi
3911 rm -f core conftest.err conftest.$ac_objext
3912   test "x$ac_cv_prog_cc_c89" != "xno" && break
3913 done
3914 rm -f conftest.$ac_ext
3915 CC=$ac_save_CC
3916
3917 fi
3918 # AC_CACHE_VAL
3919 case "x$ac_cv_prog_cc_c89" in
3920   x)
3921     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3922 $as_echo "none needed" >&6; } ;;
3923   xno)
3924     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3925 $as_echo "unsupported" >&6; } ;;
3926   *)
3927     CC="$CC $ac_cv_prog_cc_c89"
3928     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3929 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3930 esac
3931 if test "x$ac_cv_prog_cc_c89" != xno; then :
3932
3933 fi
3934
3935 ac_ext=c
3936 ac_cpp='$CPP $CPPFLAGS'
3937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3940
3941 ac_ext=c
3942 ac_cpp='$CPP $CPPFLAGS'
3943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3947 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3948 if ${am_cv_prog_cc_c_o+:} false; then :
3949   $as_echo_n "(cached) " >&6
3950 else
3951   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h.  */
3953
3954 int
3955 main ()
3956 {
3957
3958   ;
3959   return 0;
3960 }
3961 _ACEOF
3962   # Make sure it works both with $CC and with simple cc.
3963   # Following AC_PROG_CC_C_O, we do the test twice because some
3964   # compilers refuse to overwrite an existing .o file with -o,
3965   # though they will create one.
3966   am_cv_prog_cc_c_o=yes
3967   for am_i in 1 2; do
3968     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3969    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3970    ac_status=$?
3971    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972    (exit $ac_status); } \
3973          && test -f conftest2.$ac_objext; then
3974       : OK
3975     else
3976       am_cv_prog_cc_c_o=no
3977       break
3978     fi
3979   done
3980   rm -f core conftest*
3981   unset am_i
3982 fi
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3984 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3985 if test "$am_cv_prog_cc_c_o" != yes; then
3986    # Losing compiler, so override with the script.
3987    # FIXME: It is wrong to rewrite CC.
3988    # But if we don't then we get into trouble of one sort or another.
3989    # A longer-term fix would be to have automake use am__CC in this case,
3990    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3991    CC="$am_aux_dir/compile $CC"
3992 fi
3993 ac_ext=c
3994 ac_cpp='$CPP $CPPFLAGS'
3995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3998
3999
4000 depcc="$CC"   am_compiler_list=
4001
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4003 $as_echo_n "checking dependency style of $depcc... " >&6; }
4004 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4005   $as_echo_n "(cached) " >&6
4006 else
4007   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4008   # We make a subdir and do the tests there.  Otherwise we can end up
4009   # making bogus files that we don't know about and never remove.  For
4010   # instance it was reported that on HP-UX the gcc test will end up
4011   # making a dummy file named 'D' -- because '-MD' means "put the output
4012   # in D".
4013   rm -rf conftest.dir
4014   mkdir conftest.dir
4015   # Copy depcomp to subdir because otherwise we won't find it if we're
4016   # using a relative directory.
4017   cp "$am_depcomp" conftest.dir
4018   cd conftest.dir
4019   # We will build objects and dependencies in a subdirectory because
4020   # it helps to detect inapplicable dependency modes.  For instance
4021   # both Tru64's cc and ICC support -MD to output dependencies as a
4022   # side effect of compilation, but ICC will put the dependencies in
4023   # the current directory while Tru64 will put them in the object
4024   # directory.
4025   mkdir sub
4026
4027   am_cv_CC_dependencies_compiler_type=none
4028   if test "$am_compiler_list" = ""; then
4029      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4030   fi
4031   am__universal=false
4032   case " $depcc " in #(
4033      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4034      esac
4035
4036   for depmode in $am_compiler_list; do
4037     # Setup a source with many dependencies, because some compilers
4038     # like to wrap large dependency lists on column 80 (with \), and
4039     # we should not choose a depcomp mode which is confused by this.
4040     #
4041     # We need to recreate these files for each test, as the compiler may
4042     # overwrite some of them when testing with obscure command lines.
4043     # This happens at least with the AIX C compiler.
4044     : > sub/conftest.c
4045     for i in 1 2 3 4 5 6; do
4046       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4047       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4048       # Solaris 10 /bin/sh.
4049       echo '/* dummy */' > sub/conftst$i.h
4050     done
4051     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4052
4053     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4054     # mode.  It turns out that the SunPro C++ compiler does not properly
4055     # handle '-M -o', and we need to detect this.  Also, some Intel
4056     # versions had trouble with output in subdirs.
4057     am__obj=sub/conftest.${OBJEXT-o}
4058     am__minus_obj="-o $am__obj"
4059     case $depmode in
4060     gcc)
4061       # This depmode causes a compiler race in universal mode.
4062       test "$am__universal" = false || continue
4063       ;;
4064     nosideeffect)
4065       # After this tag, mechanisms are not by side-effect, so they'll
4066       # only be used when explicitly requested.
4067       if test "x$enable_dependency_tracking" = xyes; then
4068         continue
4069       else
4070         break
4071       fi
4072       ;;
4073     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4074       # This compiler won't grok '-c -o', but also, the minuso test has
4075       # not run yet.  These depmodes are late enough in the game, and
4076       # so weak that their functioning should not be impacted.
4077       am__obj=conftest.${OBJEXT-o}
4078       am__minus_obj=
4079       ;;
4080     none) break ;;
4081     esac
4082     if depmode=$depmode \
4083        source=sub/conftest.c object=$am__obj \
4084        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4085        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4086          >/dev/null 2>conftest.err &&
4087        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4088        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4089        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4090        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4091       # icc doesn't choke on unknown options, it will just issue warnings
4092       # or remarks (even with -Werror).  So we grep stderr for any message
4093       # that says an option was ignored or not supported.
4094       # When given -MP, icc 7.0 and 7.1 complain thusly:
4095       #   icc: Command line warning: ignoring option '-M'; no argument required
4096       # The diagnosis changed in icc 8.0:
4097       #   icc: Command line remark: option '-MP' not supported
4098       if (grep 'ignoring option' conftest.err ||
4099           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4100         am_cv_CC_dependencies_compiler_type=$depmode
4101         break
4102       fi
4103     fi
4104   done
4105
4106   cd ..
4107   rm -rf conftest.dir
4108 else
4109   am_cv_CC_dependencies_compiler_type=none
4110 fi
4111
4112 fi
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4114 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4115 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4116
4117  if
4118   test "x$enable_dependency_tracking" != xno \
4119   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4120   am__fastdepCC_TRUE=
4121   am__fastdepCC_FALSE='#'
4122 else
4123   am__fastdepCC_TRUE='#'
4124   am__fastdepCC_FALSE=
4125 fi
4126
4127
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4129 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4130 if ${ac_cv_path_SED+:} false; then :
4131   $as_echo_n "(cached) " >&6
4132 else
4133             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4134      for ac_i in 1 2 3 4 5 6 7; do
4135        ac_script="$ac_script$as_nl$ac_script"
4136      done
4137      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4138      { ac_script=; unset ac_script;}
4139      if test -z "$SED"; then
4140   ac_path_SED_found=false
4141   # Loop through the user's path and test for each of PROGNAME-LIST
4142   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143 for as_dir in $PATH
4144 do
4145   IFS=$as_save_IFS
4146   test -z "$as_dir" && as_dir=.
4147     for ac_prog in sed gsed; do
4148     for ac_exec_ext in '' $ac_executable_extensions; do
4149       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4150       as_fn_executable_p "$ac_path_SED" || continue
4151 # Check for GNU ac_path_SED and select it if it is found.
4152   # Check for GNU $ac_path_SED
4153 case `"$ac_path_SED" --version 2>&1` in
4154 *GNU*)
4155   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4156 *)
4157   ac_count=0
4158   $as_echo_n 0123456789 >"conftest.in"
4159   while :
4160   do
4161     cat "conftest.in" "conftest.in" >"conftest.tmp"
4162     mv "conftest.tmp" "conftest.in"
4163     cp "conftest.in" "conftest.nl"
4164     $as_echo '' >> "conftest.nl"
4165     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4166     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4167     as_fn_arith $ac_count + 1 && ac_count=$as_val
4168     if test $ac_count -gt ${ac_path_SED_max-0}; then
4169       # Best one so far, save it but keep looking for a better one
4170       ac_cv_path_SED="$ac_path_SED"
4171       ac_path_SED_max=$ac_count
4172     fi
4173     # 10*(2^10) chars as input seems more than enough
4174     test $ac_count -gt 10 && break
4175   done
4176   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4177 esac
4178
4179       $ac_path_SED_found && break 3
4180     done
4181   done
4182   done
4183 IFS=$as_save_IFS
4184   if test -z "$ac_cv_path_SED"; then
4185     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4186   fi
4187 else
4188   ac_cv_path_SED=$SED
4189 fi
4190
4191 fi
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4193 $as_echo "$ac_cv_path_SED" >&6; }
4194  SED="$ac_cv_path_SED"
4195   rm -f conftest.sed
4196
4197 test -z "$SED" && SED=sed
4198 Xsed="$SED -e 1s/^X//"
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4211 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4212 if ${ac_cv_path_GREP+:} false; then :
4213   $as_echo_n "(cached) " >&6
4214 else
4215   if test -z "$GREP"; then
4216   ac_path_GREP_found=false
4217   # Loop through the user's path and test for each of PROGNAME-LIST
4218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4220 do
4221   IFS=$as_save_IFS
4222   test -z "$as_dir" && as_dir=.
4223     for ac_prog in grep ggrep; do
4224     for ac_exec_ext in '' $ac_executable_extensions; do
4225       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4226       as_fn_executable_p "$ac_path_GREP" || continue
4227 # Check for GNU ac_path_GREP and select it if it is found.
4228   # Check for GNU $ac_path_GREP
4229 case `"$ac_path_GREP" --version 2>&1` in
4230 *GNU*)
4231   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4232 *)
4233   ac_count=0
4234   $as_echo_n 0123456789 >"conftest.in"
4235   while :
4236   do
4237     cat "conftest.in" "conftest.in" >"conftest.tmp"
4238     mv "conftest.tmp" "conftest.in"
4239     cp "conftest.in" "conftest.nl"
4240     $as_echo 'GREP' >> "conftest.nl"
4241     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4242     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4243     as_fn_arith $ac_count + 1 && ac_count=$as_val
4244     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4245       # Best one so far, save it but keep looking for a better one
4246       ac_cv_path_GREP="$ac_path_GREP"
4247       ac_path_GREP_max=$ac_count
4248     fi
4249     # 10*(2^10) chars as input seems more than enough
4250     test $ac_count -gt 10 && break
4251   done
4252   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4253 esac
4254
4255       $ac_path_GREP_found && break 3
4256     done
4257   done
4258   done
4259 IFS=$as_save_IFS
4260   if test -z "$ac_cv_path_GREP"; then
4261     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4262   fi
4263 else
4264   ac_cv_path_GREP=$GREP
4265 fi
4266
4267 fi
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4269 $as_echo "$ac_cv_path_GREP" >&6; }
4270  GREP="$ac_cv_path_GREP"
4271
4272
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4274 $as_echo_n "checking for egrep... " >&6; }
4275 if ${ac_cv_path_EGREP+:} false; then :
4276   $as_echo_n "(cached) " >&6
4277 else
4278   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4279    then ac_cv_path_EGREP="$GREP -E"
4280    else
4281      if test -z "$EGREP"; then
4282   ac_path_EGREP_found=false
4283   # Loop through the user's path and test for each of PROGNAME-LIST
4284   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4286 do
4287   IFS=$as_save_IFS
4288   test -z "$as_dir" && as_dir=.
4289     for ac_prog in egrep; do
4290     for ac_exec_ext in '' $ac_executable_extensions; do
4291       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4292       as_fn_executable_p "$ac_path_EGREP" || continue
4293 # Check for GNU ac_path_EGREP and select it if it is found.
4294   # Check for GNU $ac_path_EGREP
4295 case `"$ac_path_EGREP" --version 2>&1` in
4296 *GNU*)
4297   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4298 *)
4299   ac_count=0
4300   $as_echo_n 0123456789 >"conftest.in"
4301   while :
4302   do
4303     cat "conftest.in" "conftest.in" >"conftest.tmp"
4304     mv "conftest.tmp" "conftest.in"
4305     cp "conftest.in" "conftest.nl"
4306     $as_echo 'EGREP' >> "conftest.nl"
4307     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4308     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4309     as_fn_arith $ac_count + 1 && ac_count=$as_val
4310     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4311       # Best one so far, save it but keep looking for a better one
4312       ac_cv_path_EGREP="$ac_path_EGREP"
4313       ac_path_EGREP_max=$ac_count
4314     fi
4315     # 10*(2^10) chars as input seems more than enough
4316     test $ac_count -gt 10 && break
4317   done
4318   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4319 esac
4320
4321       $ac_path_EGREP_found && break 3
4322     done
4323   done
4324   done
4325 IFS=$as_save_IFS
4326   if test -z "$ac_cv_path_EGREP"; then
4327     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4328   fi
4329 else
4330   ac_cv_path_EGREP=$EGREP
4331 fi
4332
4333    fi
4334 fi
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4336 $as_echo "$ac_cv_path_EGREP" >&6; }
4337  EGREP="$ac_cv_path_EGREP"
4338
4339
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4341 $as_echo_n "checking for fgrep... " >&6; }
4342 if ${ac_cv_path_FGREP+:} false; then :
4343   $as_echo_n "(cached) " >&6
4344 else
4345   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4346    then ac_cv_path_FGREP="$GREP -F"
4347    else
4348      if test -z "$FGREP"; then
4349   ac_path_FGREP_found=false
4350   # Loop through the user's path and test for each of PROGNAME-LIST
4351   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4353 do
4354   IFS=$as_save_IFS
4355   test -z "$as_dir" && as_dir=.
4356     for ac_prog in fgrep; do
4357     for ac_exec_ext in '' $ac_executable_extensions; do
4358       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4359       as_fn_executable_p "$ac_path_FGREP" || continue
4360 # Check for GNU ac_path_FGREP and select it if it is found.
4361   # Check for GNU $ac_path_FGREP
4362 case `"$ac_path_FGREP" --version 2>&1` in
4363 *GNU*)
4364   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4365 *)
4366   ac_count=0
4367   $as_echo_n 0123456789 >"conftest.in"
4368   while :
4369   do
4370     cat "conftest.in" "conftest.in" >"conftest.tmp"
4371     mv "conftest.tmp" "conftest.in"
4372     cp "conftest.in" "conftest.nl"
4373     $as_echo 'FGREP' >> "conftest.nl"
4374     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4375     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4376     as_fn_arith $ac_count + 1 && ac_count=$as_val
4377     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4378       # Best one so far, save it but keep looking for a better one
4379       ac_cv_path_FGREP="$ac_path_FGREP"
4380       ac_path_FGREP_max=$ac_count
4381     fi
4382     # 10*(2^10) chars as input seems more than enough
4383     test $ac_count -gt 10 && break
4384   done
4385   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4386 esac
4387
4388       $ac_path_FGREP_found && break 3
4389     done
4390   done
4391   done
4392 IFS=$as_save_IFS
4393   if test -z "$ac_cv_path_FGREP"; then
4394     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4395   fi
4396 else
4397   ac_cv_path_FGREP=$FGREP
4398 fi
4399
4400    fi
4401 fi
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4403 $as_echo "$ac_cv_path_FGREP" >&6; }
4404  FGREP="$ac_cv_path_FGREP"
4405
4406
4407 test -z "$GREP" && GREP=grep
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427 # Check whether --with-gnu-ld was given.
4428 if test "${with_gnu_ld+set}" = set; then :
4429   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4430 else
4431   with_gnu_ld=no
4432 fi
4433
4434 ac_prog=ld
4435 if test yes = "$GCC"; then
4436   # Check if gcc -print-prog-name=ld gives a path.
4437   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4438 $as_echo_n "checking for ld used by $CC... " >&6; }
4439   case $host in
4440   *-*-mingw*)
4441     # gcc leaves a trailing carriage return, which upsets mingw
4442     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4443   *)
4444     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4445   esac
4446   case $ac_prog in
4447     # Accept absolute paths.
4448     [\\/]* | ?:[\\/]*)
4449       re_direlt='/[^/][^/]*/\.\./'
4450       # Canonicalize the pathname of ld
4451       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4452       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4453         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4454       done
4455       test -z "$LD" && LD=$ac_prog
4456       ;;
4457   "")
4458     # If it fails, then pretend we aren't using GCC.
4459     ac_prog=ld
4460     ;;
4461   *)
4462     # If it is relative, then search for the first ld in PATH.
4463     with_gnu_ld=unknown
4464     ;;
4465   esac
4466 elif test yes = "$with_gnu_ld"; then
4467   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4468 $as_echo_n "checking for GNU ld... " >&6; }
4469 else
4470   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4471 $as_echo_n "checking for non-GNU ld... " >&6; }
4472 fi
4473 if ${lt_cv_path_LD+:} false; then :
4474   $as_echo_n "(cached) " >&6
4475 else
4476   if test -z "$LD"; then
4477   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4478   for ac_dir in $PATH; do
4479     IFS=$lt_save_ifs
4480     test -z "$ac_dir" && ac_dir=.
4481     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4482       lt_cv_path_LD=$ac_dir/$ac_prog
4483       # Check to see if the program is GNU ld.  I'd rather use --version,
4484       # but apparently some variants of GNU ld only accept -v.
4485       # Break only if it was the GNU/non-GNU ld that we prefer.
4486       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4487       *GNU* | *'with BFD'*)
4488         test no != "$with_gnu_ld" && break
4489         ;;
4490       *)
4491         test yes != "$with_gnu_ld" && break
4492         ;;
4493       esac
4494     fi
4495   done
4496   IFS=$lt_save_ifs
4497 else
4498   lt_cv_path_LD=$LD # Let the user override the test with a path.
4499 fi
4500 fi
4501
4502 LD=$lt_cv_path_LD
4503 if test -n "$LD"; then
4504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4505 $as_echo "$LD" >&6; }
4506 else
4507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4508 $as_echo "no" >&6; }
4509 fi
4510 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4512 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4513 if ${lt_cv_prog_gnu_ld+:} false; then :
4514   $as_echo_n "(cached) " >&6
4515 else
4516   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4517 case `$LD -v 2>&1 </dev/null` in
4518 *GNU* | *'with BFD'*)
4519   lt_cv_prog_gnu_ld=yes
4520   ;;
4521 *)
4522   lt_cv_prog_gnu_ld=no
4523   ;;
4524 esac
4525 fi
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4527 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4528 with_gnu_ld=$lt_cv_prog_gnu_ld
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4539 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4540 if ${lt_cv_path_NM+:} false; then :
4541   $as_echo_n "(cached) " >&6
4542 else
4543   if test -n "$NM"; then
4544   # Let the user override the test.
4545   lt_cv_path_NM=$NM
4546 else
4547   lt_nm_to_check=${ac_tool_prefix}nm
4548   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4549     lt_nm_to_check="$lt_nm_to_check nm"
4550   fi
4551   for lt_tmp_nm in $lt_nm_to_check; do
4552     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4553     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4554       IFS=$lt_save_ifs
4555       test -z "$ac_dir" && ac_dir=.
4556       tmp_nm=$ac_dir/$lt_tmp_nm
4557       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4558         # Check to see if the nm accepts a BSD-compat flag.
4559         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4560         #   nm: unknown option "B" ignored
4561         # Tru64's nm complains that /dev/null is an invalid object file
4562         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4563         case $build_os in
4564         mingw*) lt_bad_file=conftest.nm/nofile ;;
4565         *) lt_bad_file=/dev/null ;;
4566         esac
4567         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4568         *$lt_bad_file* | *'Invalid file or object type'*)
4569           lt_cv_path_NM="$tmp_nm -B"
4570           break 2
4571           ;;
4572         *)
4573           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4574           */dev/null*)
4575             lt_cv_path_NM="$tmp_nm -p"
4576             break 2
4577             ;;
4578           *)
4579             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4580             continue # so that we can try to find one that supports BSD flags
4581             ;;
4582           esac
4583           ;;
4584         esac
4585       fi
4586     done
4587     IFS=$lt_save_ifs
4588   done
4589   : ${lt_cv_path_NM=no}
4590 fi
4591 fi
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4593 $as_echo "$lt_cv_path_NM" >&6; }
4594 if test no != "$lt_cv_path_NM"; then
4595   NM=$lt_cv_path_NM
4596 else
4597   # Didn't find any BSD compatible name lister, look for dumpbin.
4598   if test -n "$DUMPBIN"; then :
4599     # Let the user override the test.
4600   else
4601     if test -n "$ac_tool_prefix"; then
4602   for ac_prog in dumpbin "link -dump"
4603   do
4604     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4605 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4607 $as_echo_n "checking for $ac_word... " >&6; }
4608 if ${ac_cv_prog_DUMPBIN+:} false; then :
4609   $as_echo_n "(cached) " >&6
4610 else
4611   if test -n "$DUMPBIN"; then
4612   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4613 else
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH
4616 do
4617   IFS=$as_save_IFS
4618   test -z "$as_dir" && as_dir=.
4619     for ac_exec_ext in '' $ac_executable_extensions; do
4620   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4621     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4623     break 2
4624   fi
4625 done
4626   done
4627 IFS=$as_save_IFS
4628
4629 fi
4630 fi
4631 DUMPBIN=$ac_cv_prog_DUMPBIN
4632 if test -n "$DUMPBIN"; then
4633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4634 $as_echo "$DUMPBIN" >&6; }
4635 else
4636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4637 $as_echo "no" >&6; }
4638 fi
4639
4640
4641     test -n "$DUMPBIN" && break
4642   done
4643 fi
4644 if test -z "$DUMPBIN"; then
4645   ac_ct_DUMPBIN=$DUMPBIN
4646   for ac_prog in dumpbin "link -dump"
4647 do
4648   # Extract the first word of "$ac_prog", so it can be a program name with args.
4649 set dummy $ac_prog; ac_word=$2
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4651 $as_echo_n "checking for $ac_word... " >&6; }
4652 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4653   $as_echo_n "(cached) " >&6
4654 else
4655   if test -n "$ac_ct_DUMPBIN"; then
4656   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4657 else
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in $PATH
4660 do
4661   IFS=$as_save_IFS
4662   test -z "$as_dir" && as_dir=.
4663     for ac_exec_ext in '' $ac_executable_extensions; do
4664   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4665     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4667     break 2
4668   fi
4669 done
4670   done
4671 IFS=$as_save_IFS
4672
4673 fi
4674 fi
4675 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4676 if test -n "$ac_ct_DUMPBIN"; then
4677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4678 $as_echo "$ac_ct_DUMPBIN" >&6; }
4679 else
4680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4681 $as_echo "no" >&6; }
4682 fi
4683
4684
4685   test -n "$ac_ct_DUMPBIN" && break
4686 done
4687
4688   if test "x$ac_ct_DUMPBIN" = x; then
4689     DUMPBIN=":"
4690   else
4691     case $cross_compiling:$ac_tool_warned in
4692 yes:)
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4695 ac_tool_warned=yes ;;
4696 esac
4697     DUMPBIN=$ac_ct_DUMPBIN
4698   fi
4699 fi
4700
4701     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4702     *COFF*)
4703       DUMPBIN="$DUMPBIN -symbols -headers"
4704       ;;
4705     *)
4706       DUMPBIN=:
4707       ;;
4708     esac
4709   fi
4710
4711   if test : != "$DUMPBIN"; then
4712     NM=$DUMPBIN
4713   fi
4714 fi
4715 test -z "$NM" && NM=nm
4716
4717
4718
4719
4720
4721
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4723 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4724 if ${lt_cv_nm_interface+:} false; then :
4725   $as_echo_n "(cached) " >&6
4726 else
4727   lt_cv_nm_interface="BSD nm"
4728   echo "int some_variable = 0;" > conftest.$ac_ext
4729   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4730   (eval "$ac_compile" 2>conftest.err)
4731   cat conftest.err >&5
4732   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4733   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4734   cat conftest.err >&5
4735   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4736   cat conftest.out >&5
4737   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4738     lt_cv_nm_interface="MS dumpbin"
4739   fi
4740   rm -f conftest*
4741 fi
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4743 $as_echo "$lt_cv_nm_interface" >&6; }
4744
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4746 $as_echo_n "checking whether ln -s works... " >&6; }
4747 LN_S=$as_ln_s
4748 if test "$LN_S" = "ln -s"; then
4749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4750 $as_echo "yes" >&6; }
4751 else
4752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4753 $as_echo "no, using $LN_S" >&6; }
4754 fi
4755
4756 # find the maximum length of command line arguments
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4758 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4759 if ${lt_cv_sys_max_cmd_len+:} false; then :
4760   $as_echo_n "(cached) " >&6
4761 else
4762     i=0
4763   teststring=ABCD
4764
4765   case $build_os in
4766   msdosdjgpp*)
4767     # On DJGPP, this test can blow up pretty badly due to problems in libc
4768     # (any single argument exceeding 2000 bytes causes a buffer overrun
4769     # during glob expansion).  Even if it were fixed, the result of this
4770     # check would be larger than it should be.
4771     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4772     ;;
4773
4774   gnu*)
4775     # Under GNU Hurd, this test is not required because there is
4776     # no limit to the length of command line arguments.
4777     # Libtool will interpret -1 as no limit whatsoever
4778     lt_cv_sys_max_cmd_len=-1;
4779     ;;
4780
4781   cygwin* | mingw* | cegcc*)
4782     # On Win9x/ME, this test blows up -- it succeeds, but takes
4783     # about 5 minutes as the teststring grows exponentially.
4784     # Worse, since 9x/ME are not pre-emptively multitasking,
4785     # you end up with a "frozen" computer, even though with patience
4786     # the test eventually succeeds (with a max line length of 256k).
4787     # Instead, let's just punt: use the minimum linelength reported by
4788     # all of the supported platforms: 8192 (on NT/2K/XP).
4789     lt_cv_sys_max_cmd_len=8192;
4790     ;;
4791
4792   mint*)
4793     # On MiNT this can take a long time and run out of memory.
4794     lt_cv_sys_max_cmd_len=8192;
4795     ;;
4796
4797   amigaos*)
4798     # On AmigaOS with pdksh, this test takes hours, literally.
4799     # So we just punt and use a minimum line length of 8192.
4800     lt_cv_sys_max_cmd_len=8192;
4801     ;;
4802
4803   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4804     # This has been around since 386BSD, at least.  Likely further.
4805     if test -x /sbin/sysctl; then
4806       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4807     elif test -x /usr/sbin/sysctl; then
4808       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4809     else
4810       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4811     fi
4812     # And add a safety zone
4813     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4814     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4815     ;;
4816
4817   interix*)
4818     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4819     lt_cv_sys_max_cmd_len=196608
4820     ;;
4821
4822   os2*)
4823     # The test takes a long time on OS/2.
4824     lt_cv_sys_max_cmd_len=8192
4825     ;;
4826
4827   osf*)
4828     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4829     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4830     # nice to cause kernel panics so lets avoid the loop below.
4831     # First set a reasonable default.
4832     lt_cv_sys_max_cmd_len=16384
4833     #
4834     if test -x /sbin/sysconfig; then
4835       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4836         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4837       esac
4838     fi
4839     ;;
4840   sco3.2v5*)
4841     lt_cv_sys_max_cmd_len=102400
4842     ;;
4843   sysv5* | sco5v6* | sysv4.2uw2*)
4844     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4845     if test -n "$kargmax"; then
4846       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4847     else
4848       lt_cv_sys_max_cmd_len=32768
4849     fi
4850     ;;
4851   *)
4852     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4853     if test -n "$lt_cv_sys_max_cmd_len" && \
4854        test undefined != "$lt_cv_sys_max_cmd_len"; then
4855       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4856       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4857     else
4858       # Make teststring a little bigger before we do anything with it.
4859       # a 1K string should be a reasonable start.
4860       for i in 1 2 3 4 5 6 7 8; do
4861         teststring=$teststring$teststring
4862       done
4863       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4864       # If test is not a shell built-in, we'll probably end up computing a
4865       # maximum length that is only half of the actual maximum length, but
4866       # we can't tell.
4867       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4868                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4869               test 17 != "$i" # 1/2 MB should be enough
4870       do
4871         i=`expr $i + 1`
4872         teststring=$teststring$teststring
4873       done
4874       # Only check the string length outside the loop.
4875       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4876       teststring=
4877       # Add a significant safety factor because C++ compilers can tack on
4878       # massive amounts of additional arguments before passing them to the
4879       # linker.  It appears as though 1/2 is a usable value.
4880       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4881     fi
4882     ;;
4883   esac
4884
4885 fi
4886
4887 if test -n "$lt_cv_sys_max_cmd_len"; then
4888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4889 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4890 else
4891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4892 $as_echo "none" >&6; }
4893 fi
4894 max_cmd_len=$lt_cv_sys_max_cmd_len
4895
4896
4897
4898
4899
4900
4901 : ${CP="cp -f"}
4902 : ${MV="mv -f"}
4903 : ${RM="rm -f"}
4904
4905 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4906   lt_unset=unset
4907 else
4908   lt_unset=false
4909 fi
4910
4911
4912
4913
4914
4915 # test EBCDIC or ASCII
4916 case `echo X|tr X '\101'` in
4917  A) # ASCII based system
4918     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4919   lt_SP2NL='tr \040 \012'
4920   lt_NL2SP='tr \015\012 \040\040'
4921   ;;
4922  *) # EBCDIC based system
4923   lt_SP2NL='tr \100 \n'
4924   lt_NL2SP='tr \r\n \100\100'
4925   ;;
4926 esac
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4937 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4938 if ${lt_cv_to_host_file_cmd+:} false; then :
4939   $as_echo_n "(cached) " >&6
4940 else
4941   case $host in
4942   *-*-mingw* )
4943     case $build in
4944       *-*-mingw* ) # actually msys
4945         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4946         ;;
4947       *-*-cygwin* )
4948         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4949         ;;
4950       * ) # otherwise, assume *nix
4951         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4952         ;;
4953     esac
4954     ;;
4955   *-*-cygwin* )
4956     case $build in
4957       *-*-mingw* ) # actually msys
4958         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4959         ;;
4960       *-*-cygwin* )
4961         lt_cv_to_host_file_cmd=func_convert_file_noop
4962         ;;
4963       * ) # otherwise, assume *nix
4964         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4965         ;;
4966     esac
4967     ;;
4968   * ) # unhandled hosts (and "normal" native builds)
4969     lt_cv_to_host_file_cmd=func_convert_file_noop
4970     ;;
4971 esac
4972
4973 fi
4974
4975 to_host_file_cmd=$lt_cv_to_host_file_cmd
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4977 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4978
4979
4980
4981
4982
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4984 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4985 if ${lt_cv_to_tool_file_cmd+:} false; then :
4986   $as_echo_n "(cached) " >&6
4987 else
4988   #assume ordinary cross tools, or native build.
4989 lt_cv_to_tool_file_cmd=func_convert_file_noop
4990 case $host in
4991   *-*-mingw* )
4992     case $build in
4993       *-*-mingw* ) # actually msys
4994         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4995         ;;
4996     esac
4997     ;;
4998 esac
4999
5000 fi
5001
5002 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5004 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5005
5006
5007
5008
5009
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5011 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5012 if ${lt_cv_ld_reload_flag+:} false; then :
5013   $as_echo_n "(cached) " >&6
5014 else
5015   lt_cv_ld_reload_flag='-r'
5016 fi
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5018 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5019 reload_flag=$lt_cv_ld_reload_flag
5020 case $reload_flag in
5021 "" | " "*) ;;
5022 *) reload_flag=" $reload_flag" ;;
5023 esac
5024 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5025 case $host_os in
5026   cygwin* | mingw* | pw32* | cegcc*)
5027     if test yes != "$GCC"; then
5028       reload_cmds=false
5029     fi
5030     ;;
5031   darwin*)
5032     if test yes = "$GCC"; then
5033       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5034     else
5035       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5036     fi
5037     ;;
5038 esac
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048 if test -n "$ac_tool_prefix"; then
5049   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5050 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5052 $as_echo_n "checking for $ac_word... " >&6; }
5053 if ${ac_cv_prog_OBJDUMP+:} false; then :
5054   $as_echo_n "(cached) " >&6
5055 else
5056   if test -n "$OBJDUMP"; then
5057   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5058 else
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 for as_dir in $PATH
5061 do
5062   IFS=$as_save_IFS
5063   test -z "$as_dir" && as_dir=.
5064     for ac_exec_ext in '' $ac_executable_extensions; do
5065   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5066     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5068     break 2
5069   fi
5070 done
5071   done
5072 IFS=$as_save_IFS
5073
5074 fi
5075 fi
5076 OBJDUMP=$ac_cv_prog_OBJDUMP
5077 if test -n "$OBJDUMP"; then
5078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5079 $as_echo "$OBJDUMP" >&6; }
5080 else
5081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5082 $as_echo "no" >&6; }
5083 fi
5084
5085
5086 fi
5087 if test -z "$ac_cv_prog_OBJDUMP"; then
5088   ac_ct_OBJDUMP=$OBJDUMP
5089   # Extract the first word of "objdump", so it can be a program name with args.
5090 set dummy objdump; ac_word=$2
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5092 $as_echo_n "checking for $ac_word... " >&6; }
5093 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5094   $as_echo_n "(cached) " >&6
5095 else
5096   if test -n "$ac_ct_OBJDUMP"; then
5097   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5098 else
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 for as_dir in $PATH
5101 do
5102   IFS=$as_save_IFS
5103   test -z "$as_dir" && as_dir=.
5104     for ac_exec_ext in '' $ac_executable_extensions; do
5105   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5106     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5108     break 2
5109   fi
5110 done
5111   done
5112 IFS=$as_save_IFS
5113
5114 fi
5115 fi
5116 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5117 if test -n "$ac_ct_OBJDUMP"; then
5118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5119 $as_echo "$ac_ct_OBJDUMP" >&6; }
5120 else
5121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5122 $as_echo "no" >&6; }
5123 fi
5124
5125   if test "x$ac_ct_OBJDUMP" = x; then
5126     OBJDUMP="false"
5127   else
5128     case $cross_compiling:$ac_tool_warned in
5129 yes:)
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5132 ac_tool_warned=yes ;;
5133 esac
5134     OBJDUMP=$ac_ct_OBJDUMP
5135   fi
5136 else
5137   OBJDUMP="$ac_cv_prog_OBJDUMP"
5138 fi
5139
5140 test -z "$OBJDUMP" && OBJDUMP=objdump
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5151 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5152 if ${lt_cv_deplibs_check_method+:} false; then :
5153   $as_echo_n "(cached) " >&6
5154 else
5155   lt_cv_file_magic_cmd='$MAGIC_CMD'
5156 lt_cv_file_magic_test_file=
5157 lt_cv_deplibs_check_method='unknown'
5158 # Need to set the preceding variable on all platforms that support
5159 # interlibrary dependencies.
5160 # 'none' -- dependencies not supported.
5161 # 'unknown' -- same as none, but documents that we really don't know.
5162 # 'pass_all' -- all dependencies passed with no checks.
5163 # 'test_compile' -- check by making test program.
5164 # 'file_magic [[regex]]' -- check by looking for files in library path
5165 # that responds to the $file_magic_cmd with a given extended regex.
5166 # If you have 'file' or equivalent on your system and you're not sure
5167 # whether 'pass_all' will *always* work, you probably want this one.
5168
5169 case $host_os in
5170 aix[4-9]*)
5171   lt_cv_deplibs_check_method=pass_all
5172   ;;
5173
5174 beos*)
5175   lt_cv_deplibs_check_method=pass_all
5176   ;;
5177
5178 bsdi[45]*)
5179   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5180   lt_cv_file_magic_cmd='/usr/bin/file -L'
5181   lt_cv_file_magic_test_file=/shlib/libc.so
5182   ;;
5183
5184 cygwin*)
5185   # func_win32_libid is a shell function defined in ltmain.sh
5186   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5187   lt_cv_file_magic_cmd='func_win32_libid'
5188   ;;
5189
5190 mingw* | pw32*)
5191   # Base MSYS/MinGW do not provide the 'file' command needed by
5192   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5193   # unless we find 'file', for example because we are cross-compiling.
5194   if ( file / ) >/dev/null 2>&1; then
5195     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5196     lt_cv_file_magic_cmd='func_win32_libid'
5197   else
5198     # Keep this pattern in sync with the one in func_win32_libid.
5199     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5200     lt_cv_file_magic_cmd='$OBJDUMP -f'
5201   fi
5202   ;;
5203
5204 cegcc*)
5205   # use the weaker test based on 'objdump'. See mingw*.
5206   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5207   lt_cv_file_magic_cmd='$OBJDUMP -f'
5208   ;;
5209
5210 darwin* | rhapsody*)
5211   lt_cv_deplibs_check_method=pass_all
5212   ;;
5213
5214 freebsd* | dragonfly*)
5215   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5216     case $host_cpu in
5217     i*86 )
5218       # Not sure whether the presence of OpenBSD here was a mistake.
5219       # Let's accept both of them until this is cleared up.
5220       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5221       lt_cv_file_magic_cmd=/usr/bin/file
5222       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5223       ;;
5224     esac
5225   else
5226     lt_cv_deplibs_check_method=pass_all
5227   fi
5228   ;;
5229
5230 haiku*)
5231   lt_cv_deplibs_check_method=pass_all
5232   ;;
5233
5234 hpux10.20* | hpux11*)
5235   lt_cv_file_magic_cmd=/usr/bin/file
5236   case $host_cpu in
5237   ia64*)
5238     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5239     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5240     ;;
5241   hppa*64*)
5242     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]'
5243     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5244     ;;
5245   *)
5246     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5247     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5248     ;;
5249   esac
5250   ;;
5251
5252 interix[3-9]*)
5253   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5254   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5255   ;;
5256
5257 irix5* | irix6* | nonstopux*)
5258   case $LD in
5259   *-32|*"-32 ") libmagic=32-bit;;
5260   *-n32|*"-n32 ") libmagic=N32;;
5261   *-64|*"-64 ") libmagic=64-bit;;
5262   *) libmagic=never-match;;
5263   esac
5264   lt_cv_deplibs_check_method=pass_all
5265   ;;
5266
5267 # This must be glibc/ELF.
5268 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5269   lt_cv_deplibs_check_method=pass_all
5270   ;;
5271
5272 netbsd* | netbsdelf*-gnu)
5273   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5274     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5275   else
5276     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5277   fi
5278   ;;
5279
5280 newos6*)
5281   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5282   lt_cv_file_magic_cmd=/usr/bin/file
5283   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5284   ;;
5285
5286 *nto* | *qnx*)
5287   lt_cv_deplibs_check_method=pass_all
5288   ;;
5289
5290 openbsd* | bitrig*)
5291   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5292     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5293   else
5294     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5295   fi
5296   ;;
5297
5298 osf3* | osf4* | osf5*)
5299   lt_cv_deplibs_check_method=pass_all
5300   ;;
5301
5302 rdos*)
5303   lt_cv_deplibs_check_method=pass_all
5304   ;;
5305
5306 solaris*)
5307   lt_cv_deplibs_check_method=pass_all
5308   ;;
5309
5310 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5311   lt_cv_deplibs_check_method=pass_all
5312   ;;
5313
5314 sysv4 | sysv4.3*)
5315   case $host_vendor in
5316   motorola)
5317     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]'
5318     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5319     ;;
5320   ncr)
5321     lt_cv_deplibs_check_method=pass_all
5322     ;;
5323   sequent)
5324     lt_cv_file_magic_cmd='/bin/file'
5325     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5326     ;;
5327   sni)
5328     lt_cv_file_magic_cmd='/bin/file'
5329     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5330     lt_cv_file_magic_test_file=/lib/libc.so
5331     ;;
5332   siemens)
5333     lt_cv_deplibs_check_method=pass_all
5334     ;;
5335   pc)
5336     lt_cv_deplibs_check_method=pass_all
5337     ;;
5338   esac
5339   ;;
5340
5341 tpf*)
5342   lt_cv_deplibs_check_method=pass_all
5343   ;;
5344 os2*)
5345   lt_cv_deplibs_check_method=pass_all
5346   ;;
5347 esac
5348
5349 fi
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5351 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5352
5353 file_magic_glob=
5354 want_nocaseglob=no
5355 if test "$build" = "$host"; then
5356   case $host_os in
5357   mingw* | pw32*)
5358     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5359       want_nocaseglob=yes
5360     else
5361       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5362     fi
5363     ;;
5364   esac
5365 fi
5366
5367 file_magic_cmd=$lt_cv_file_magic_cmd
5368 deplibs_check_method=$lt_cv_deplibs_check_method
5369 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392 if test -n "$ac_tool_prefix"; then
5393   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5394 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5396 $as_echo_n "checking for $ac_word... " >&6; }
5397 if ${ac_cv_prog_DLLTOOL+:} false; then :
5398   $as_echo_n "(cached) " >&6
5399 else
5400   if test -n "$DLLTOOL"; then
5401   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5402 else
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 for as_dir in $PATH
5405 do
5406   IFS=$as_save_IFS
5407   test -z "$as_dir" && as_dir=.
5408     for ac_exec_ext in '' $ac_executable_extensions; do
5409   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5410     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5412     break 2
5413   fi
5414 done
5415   done
5416 IFS=$as_save_IFS
5417
5418 fi
5419 fi
5420 DLLTOOL=$ac_cv_prog_DLLTOOL
5421 if test -n "$DLLTOOL"; then
5422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5423 $as_echo "$DLLTOOL" >&6; }
5424 else
5425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5426 $as_echo "no" >&6; }
5427 fi
5428
5429
5430 fi
5431 if test -z "$ac_cv_prog_DLLTOOL"; then
5432   ac_ct_DLLTOOL=$DLLTOOL
5433   # Extract the first word of "dlltool", so it can be a program name with args.
5434 set dummy dlltool; ac_word=$2
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5436 $as_echo_n "checking for $ac_word... " >&6; }
5437 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5438   $as_echo_n "(cached) " >&6
5439 else
5440   if test -n "$ac_ct_DLLTOOL"; then
5441   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5442 else
5443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444 for as_dir in $PATH
5445 do
5446   IFS=$as_save_IFS
5447   test -z "$as_dir" && as_dir=.
5448     for ac_exec_ext in '' $ac_executable_extensions; do
5449   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5450     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5452     break 2
5453   fi
5454 done
5455   done
5456 IFS=$as_save_IFS
5457
5458 fi
5459 fi
5460 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5461 if test -n "$ac_ct_DLLTOOL"; then
5462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5463 $as_echo "$ac_ct_DLLTOOL" >&6; }
5464 else
5465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466 $as_echo "no" >&6; }
5467 fi
5468
5469   if test "x$ac_ct_DLLTOOL" = x; then
5470     DLLTOOL="false"
5471   else
5472     case $cross_compiling:$ac_tool_warned in
5473 yes:)
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5476 ac_tool_warned=yes ;;
5477 esac
5478     DLLTOOL=$ac_ct_DLLTOOL
5479   fi
5480 else
5481   DLLTOOL="$ac_cv_prog_DLLTOOL"
5482 fi
5483
5484 test -z "$DLLTOOL" && DLLTOOL=dlltool
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5496 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5497 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5498   $as_echo_n "(cached) " >&6
5499 else
5500   lt_cv_sharedlib_from_linklib_cmd='unknown'
5501
5502 case $host_os in
5503 cygwin* | mingw* | pw32* | cegcc*)
5504   # two different shell functions defined in ltmain.sh;
5505   # decide which one to use based on capabilities of $DLLTOOL
5506   case `$DLLTOOL --help 2>&1` in
5507   *--identify-strict*)
5508     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5509     ;;
5510   *)
5511     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5512     ;;
5513   esac
5514   ;;
5515 *)
5516   # fallback: assume linklib IS sharedlib
5517   lt_cv_sharedlib_from_linklib_cmd=$ECHO
5518   ;;
5519 esac
5520
5521 fi
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5523 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5524 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5525 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5526
5527
5528
5529
5530
5531
5532
5533
5534 if test -n "$ac_tool_prefix"; then
5535   for ac_prog in ar
5536   do
5537     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5538 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5540 $as_echo_n "checking for $ac_word... " >&6; }
5541 if ${ac_cv_prog_AR+:} false; then :
5542   $as_echo_n "(cached) " >&6
5543 else
5544   if test -n "$AR"; then
5545   ac_cv_prog_AR="$AR" # Let the user override the test.
5546 else
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548 for as_dir in $PATH
5549 do
5550   IFS=$as_save_IFS
5551   test -z "$as_dir" && as_dir=.
5552     for ac_exec_ext in '' $ac_executable_extensions; do
5553   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5554     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5556     break 2
5557   fi
5558 done
5559   done
5560 IFS=$as_save_IFS
5561
5562 fi
5563 fi
5564 AR=$ac_cv_prog_AR
5565 if test -n "$AR"; then
5566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5567 $as_echo "$AR" >&6; }
5568 else
5569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5570 $as_echo "no" >&6; }
5571 fi
5572
5573
5574     test -n "$AR" && break
5575   done
5576 fi
5577 if test -z "$AR"; then
5578   ac_ct_AR=$AR
5579   for ac_prog in ar
5580 do
5581   # Extract the first word of "$ac_prog", so it can be a program name with args.
5582 set dummy $ac_prog; ac_word=$2
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5584 $as_echo_n "checking for $ac_word... " >&6; }
5585 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5586   $as_echo_n "(cached) " >&6
5587 else
5588   if test -n "$ac_ct_AR"; then
5589   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5590 else
5591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5592 for as_dir in $PATH
5593 do
5594   IFS=$as_save_IFS
5595   test -z "$as_dir" && as_dir=.
5596     for ac_exec_ext in '' $ac_executable_extensions; do
5597   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5598     ac_cv_prog_ac_ct_AR="$ac_prog"
5599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5600     break 2
5601   fi
5602 done
5603   done
5604 IFS=$as_save_IFS
5605
5606 fi
5607 fi
5608 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5609 if test -n "$ac_ct_AR"; then
5610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5611 $as_echo "$ac_ct_AR" >&6; }
5612 else
5613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5614 $as_echo "no" >&6; }
5615 fi
5616
5617
5618   test -n "$ac_ct_AR" && break
5619 done
5620
5621   if test "x$ac_ct_AR" = x; then
5622     AR="false"
5623   else
5624     case $cross_compiling:$ac_tool_warned in
5625 yes:)
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5628 ac_tool_warned=yes ;;
5629 esac
5630     AR=$ac_ct_AR
5631   fi
5632 fi
5633
5634 : ${AR=ar}
5635 : ${AR_FLAGS=cru}
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5648 $as_echo_n "checking for archiver @FILE support... " >&6; }
5649 if ${lt_cv_ar_at_file+:} false; then :
5650   $as_echo_n "(cached) " >&6
5651 else
5652   lt_cv_ar_at_file=no
5653    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5654 /* end confdefs.h.  */
5655
5656 int
5657 main ()
5658 {
5659
5660   ;
5661   return 0;
5662 }
5663 _ACEOF
5664 if ac_fn_c_try_compile "$LINENO"; then :
5665   echo conftest.$ac_objext > conftest.lst
5666       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5667       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5668   (eval $lt_ar_try) 2>&5
5669   ac_status=$?
5670   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5671   test $ac_status = 0; }
5672       if test 0 -eq "$ac_status"; then
5673         # Ensure the archiver fails upon bogus file names.
5674         rm -f conftest.$ac_objext libconftest.a
5675         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5676   (eval $lt_ar_try) 2>&5
5677   ac_status=$?
5678   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5679   test $ac_status = 0; }
5680         if test 0 -ne "$ac_status"; then
5681           lt_cv_ar_at_file=@
5682         fi
5683       fi
5684       rm -f conftest.* libconftest.a
5685
5686 fi
5687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5688
5689 fi
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5691 $as_echo "$lt_cv_ar_at_file" >&6; }
5692
5693 if test no = "$lt_cv_ar_at_file"; then
5694   archiver_list_spec=
5695 else
5696   archiver_list_spec=$lt_cv_ar_at_file
5697 fi
5698
5699
5700
5701
5702
5703
5704
5705 if test -n "$ac_tool_prefix"; then
5706   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5707 set dummy ${ac_tool_prefix}strip; ac_word=$2
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5709 $as_echo_n "checking for $ac_word... " >&6; }
5710 if ${ac_cv_prog_STRIP+:} false; then :
5711   $as_echo_n "(cached) " >&6
5712 else
5713   if test -n "$STRIP"; then
5714   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5715 else
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717 for as_dir in $PATH
5718 do
5719   IFS=$as_save_IFS
5720   test -z "$as_dir" && as_dir=.
5721     for ac_exec_ext in '' $ac_executable_extensions; do
5722   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5723     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5725     break 2
5726   fi
5727 done
5728   done
5729 IFS=$as_save_IFS
5730
5731 fi
5732 fi
5733 STRIP=$ac_cv_prog_STRIP
5734 if test -n "$STRIP"; then
5735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5736 $as_echo "$STRIP" >&6; }
5737 else
5738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5739 $as_echo "no" >&6; }
5740 fi
5741
5742
5743 fi
5744 if test -z "$ac_cv_prog_STRIP"; then
5745   ac_ct_STRIP=$STRIP
5746   # Extract the first word of "strip", so it can be a program name with args.
5747 set dummy strip; ac_word=$2
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5749 $as_echo_n "checking for $ac_word... " >&6; }
5750 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5751   $as_echo_n "(cached) " >&6
5752 else
5753   if test -n "$ac_ct_STRIP"; then
5754   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5755 else
5756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 for as_dir in $PATH
5758 do
5759   IFS=$as_save_IFS
5760   test -z "$as_dir" && as_dir=.
5761     for ac_exec_ext in '' $ac_executable_extensions; do
5762   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5763     ac_cv_prog_ac_ct_STRIP="strip"
5764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5765     break 2
5766   fi
5767 done
5768   done
5769 IFS=$as_save_IFS
5770
5771 fi
5772 fi
5773 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5774 if test -n "$ac_ct_STRIP"; then
5775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5776 $as_echo "$ac_ct_STRIP" >&6; }
5777 else
5778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5779 $as_echo "no" >&6; }
5780 fi
5781
5782   if test "x$ac_ct_STRIP" = x; then
5783     STRIP=":"
5784   else
5785     case $cross_compiling:$ac_tool_warned in
5786 yes:)
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5789 ac_tool_warned=yes ;;
5790 esac
5791     STRIP=$ac_ct_STRIP
5792   fi
5793 else
5794   STRIP="$ac_cv_prog_STRIP"
5795 fi
5796
5797 test -z "$STRIP" && STRIP=:
5798
5799
5800
5801
5802
5803
5804 if test -n "$ac_tool_prefix"; then
5805   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5806 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5808 $as_echo_n "checking for $ac_word... " >&6; }
5809 if ${ac_cv_prog_RANLIB+:} false; then :
5810   $as_echo_n "(cached) " >&6
5811 else
5812   if test -n "$RANLIB"; then
5813   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5814 else
5815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5816 for as_dir in $PATH
5817 do
5818   IFS=$as_save_IFS
5819   test -z "$as_dir" && as_dir=.
5820     for ac_exec_ext in '' $ac_executable_extensions; do
5821   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5822     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5824     break 2
5825   fi
5826 done
5827   done
5828 IFS=$as_save_IFS
5829
5830 fi
5831 fi
5832 RANLIB=$ac_cv_prog_RANLIB
5833 if test -n "$RANLIB"; then
5834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5835 $as_echo "$RANLIB" >&6; }
5836 else
5837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5838 $as_echo "no" >&6; }
5839 fi
5840
5841
5842 fi
5843 if test -z "$ac_cv_prog_RANLIB"; then
5844   ac_ct_RANLIB=$RANLIB
5845   # Extract the first word of "ranlib", so it can be a program name with args.
5846 set dummy ranlib; ac_word=$2
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5848 $as_echo_n "checking for $ac_word... " >&6; }
5849 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5850   $as_echo_n "(cached) " >&6
5851 else
5852   if test -n "$ac_ct_RANLIB"; then
5853   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5854 else
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856 for as_dir in $PATH
5857 do
5858   IFS=$as_save_IFS
5859   test -z "$as_dir" && as_dir=.
5860     for ac_exec_ext in '' $ac_executable_extensions; do
5861   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5862     ac_cv_prog_ac_ct_RANLIB="ranlib"
5863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5864     break 2
5865   fi
5866 done
5867   done
5868 IFS=$as_save_IFS
5869
5870 fi
5871 fi
5872 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5873 if test -n "$ac_ct_RANLIB"; then
5874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5875 $as_echo "$ac_ct_RANLIB" >&6; }
5876 else
5877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878 $as_echo "no" >&6; }
5879 fi
5880
5881   if test "x$ac_ct_RANLIB" = x; then
5882     RANLIB=":"
5883   else
5884     case $cross_compiling:$ac_tool_warned in
5885 yes:)
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5888 ac_tool_warned=yes ;;
5889 esac
5890     RANLIB=$ac_ct_RANLIB
5891   fi
5892 else
5893   RANLIB="$ac_cv_prog_RANLIB"
5894 fi
5895
5896 test -z "$RANLIB" && RANLIB=:
5897
5898
5899
5900
5901
5902
5903 # Determine commands to create old-style static archives.
5904 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5905 old_postinstall_cmds='chmod 644 $oldlib'
5906 old_postuninstall_cmds=
5907
5908 if test -n "$RANLIB"; then
5909   case $host_os in
5910   bitrig* | openbsd*)
5911     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5912     ;;
5913   *)
5914     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5915     ;;
5916   esac
5917   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5918 fi
5919
5920 case $host_os in
5921   darwin*)
5922     lock_old_archive_extraction=yes ;;
5923   *)
5924     lock_old_archive_extraction=no ;;
5925 esac
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965 # If no C compiler was specified, use CC.
5966 LTCC=${LTCC-"$CC"}
5967
5968 # If no C compiler flags were specified, use CFLAGS.
5969 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5970
5971 # Allow CC to be a program name with arguments.
5972 compiler=$CC
5973
5974
5975 # Check for command to grab the raw symbol name followed by C symbol from nm.
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5977 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5978 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5979   $as_echo_n "(cached) " >&6
5980 else
5981
5982 # These are sane defaults that work on at least a few old systems.
5983 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5984
5985 # Character class describing NM global symbol codes.
5986 symcode='[BCDEGRST]'
5987
5988 # Regexp to match symbols that can be accessed directly from C.
5989 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5990
5991 # Define system-specific variables.
5992 case $host_os in
5993 aix*)
5994   symcode='[BCDT]'
5995   ;;
5996 cygwin* | mingw* | pw32* | cegcc*)
5997   symcode='[ABCDGISTW]'
5998   ;;
5999 hpux*)
6000   if test ia64 = "$host_cpu"; then
6001     symcode='[ABCDEGRST]'
6002   fi
6003   ;;
6004 irix* | nonstopux*)
6005   symcode='[BCDEGRST]'
6006   ;;
6007 osf*)
6008   symcode='[BCDEGQRST]'
6009   ;;
6010 solaris*)
6011   symcode='[BDRT]'
6012   ;;
6013 sco3.2v5*)
6014   symcode='[DT]'
6015   ;;
6016 sysv4.2uw2*)
6017   symcode='[DT]'
6018   ;;
6019 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6020   symcode='[ABDT]'
6021   ;;
6022 sysv4)
6023   symcode='[DFNSTU]'
6024   ;;
6025 esac
6026
6027 # If we're using GNU nm, then use its standard symbol codes.
6028 case `$NM -V 2>&1` in
6029 *GNU* | *'with BFD'*)
6030   symcode='[ABCDGIRSTW]' ;;
6031 esac
6032
6033 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6034   # Gets list of data symbols to import.
6035   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6036   # Adjust the below global symbol transforms to fixup imported variables.
6037   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6038   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6039   lt_c_name_lib_hook="\
6040   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6041   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6042 else
6043   # Disable hooks by default.
6044   lt_cv_sys_global_symbol_to_import=
6045   lt_cdecl_hook=
6046   lt_c_name_hook=
6047   lt_c_name_lib_hook=
6048 fi
6049
6050 # Transform an extracted symbol line into a proper C declaration.
6051 # Some systems (esp. on ia64) link data and code symbols differently,
6052 # so use this general approach.
6053 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6054 $lt_cdecl_hook\
6055 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6056 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6057
6058 # Transform an extracted symbol line into symbol name and symbol address
6059 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6060 $lt_c_name_hook\
6061 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6062 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6063
6064 # Transform an extracted symbol line into symbol name with lib prefix and
6065 # symbol address.
6066 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6067 $lt_c_name_lib_hook\
6068 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6069 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6070 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6071
6072 # Handle CRLF in mingw tool chain
6073 opt_cr=
6074 case $build_os in
6075 mingw*)
6076   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6077   ;;
6078 esac
6079
6080 # Try without a prefix underscore, then with it.
6081 for ac_symprfx in "" "_"; do
6082
6083   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6084   symxfrm="\\1 $ac_symprfx\\2 \\2"
6085
6086   # Write the raw and C identifiers.
6087   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6088     # Fake it for dumpbin and say T for any non-static function,
6089     # D for any global variable and I for any imported variable.
6090     # Also find C++ and __fastcall symbols from MSVC++,
6091     # which start with @ or ?.
6092     lt_cv_sys_global_symbol_pipe="$AWK '"\
6093 "     {last_section=section; section=\$ 3};"\
6094 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6095 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6096 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6097 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6098 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6099 "     \$ 0!~/External *\|/{next};"\
6100 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6101 "     {if(hide[section]) next};"\
6102 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6103 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6104 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6105 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6106 "     ' prfx=^$ac_symprfx"
6107   else
6108     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6109   fi
6110   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6111
6112   # Check to see that the pipe works correctly.
6113   pipe_works=no
6114
6115   rm -f conftest*
6116   cat > conftest.$ac_ext <<_LT_EOF
6117 #ifdef __cplusplus
6118 extern "C" {
6119 #endif
6120 char nm_test_var;
6121 void nm_test_func(void);
6122 void nm_test_func(void){}
6123 #ifdef __cplusplus
6124 }
6125 #endif
6126 int main(){nm_test_var='a';nm_test_func();return(0);}
6127 _LT_EOF
6128
6129   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6130   (eval $ac_compile) 2>&5
6131   ac_status=$?
6132   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6133   test $ac_status = 0; }; then
6134     # Now try to grab the symbols.
6135     nlist=conftest.nm
6136     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6137   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6138   ac_status=$?
6139   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6140   test $ac_status = 0; } && test -s "$nlist"; then
6141       # Try sorting and uniquifying the output.
6142       if sort "$nlist" | uniq > "$nlist"T; then
6143         mv -f "$nlist"T "$nlist"
6144       else
6145         rm -f "$nlist"T
6146       fi
6147
6148       # Make sure that we snagged all the symbols we need.
6149       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6150         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6151           cat <<_LT_EOF > conftest.$ac_ext
6152 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6153 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6154 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6155    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6156 # define LT_DLSYM_CONST
6157 #elif defined __osf__
6158 /* This system does not cope well with relocations in const data.  */
6159 # define LT_DLSYM_CONST
6160 #else
6161 # define LT_DLSYM_CONST const
6162 #endif
6163
6164 #ifdef __cplusplus
6165 extern "C" {
6166 #endif
6167
6168 _LT_EOF
6169           # Now generate the symbol file.
6170           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6171
6172           cat <<_LT_EOF >> conftest.$ac_ext
6173
6174 /* The mapping between symbol names and symbols.  */
6175 LT_DLSYM_CONST struct {
6176   const char *name;
6177   void       *address;
6178 }
6179 lt__PROGRAM__LTX_preloaded_symbols[] =
6180 {
6181   { "@PROGRAM@", (void *) 0 },
6182 _LT_EOF
6183           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6184           cat <<\_LT_EOF >> conftest.$ac_ext
6185   {0, (void *) 0}
6186 };
6187
6188 /* This works around a problem in FreeBSD linker */
6189 #ifdef FREEBSD_WORKAROUND
6190 static const void *lt_preloaded_setup() {
6191   return lt__PROGRAM__LTX_preloaded_symbols;
6192 }
6193 #endif
6194
6195 #ifdef __cplusplus
6196 }
6197 #endif
6198 _LT_EOF
6199           # Now try linking the two files.
6200           mv conftest.$ac_objext conftstm.$ac_objext
6201           lt_globsym_save_LIBS=$LIBS
6202           lt_globsym_save_CFLAGS=$CFLAGS
6203           LIBS=conftstm.$ac_objext
6204           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6205           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6206   (eval $ac_link) 2>&5
6207   ac_status=$?
6208   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6209   test $ac_status = 0; } && test -s conftest$ac_exeext; then
6210             pipe_works=yes
6211           fi
6212           LIBS=$lt_globsym_save_LIBS
6213           CFLAGS=$lt_globsym_save_CFLAGS
6214         else
6215           echo "cannot find nm_test_func in $nlist" >&5
6216         fi
6217       else
6218         echo "cannot find nm_test_var in $nlist" >&5
6219       fi
6220     else
6221       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6222     fi
6223   else
6224     echo "$progname: failed program was:" >&5
6225     cat conftest.$ac_ext >&5
6226   fi
6227   rm -rf conftest* conftst*
6228
6229   # Do not use the global_symbol_pipe unless it works.
6230   if test yes = "$pipe_works"; then
6231     break
6232   else
6233     lt_cv_sys_global_symbol_pipe=
6234   fi
6235 done
6236
6237 fi
6238
6239 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6240   lt_cv_sys_global_symbol_to_cdecl=
6241 fi
6242 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6244 $as_echo "failed" >&6; }
6245 else
6246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6247 $as_echo "ok" >&6; }
6248 fi
6249
6250 # Response file support.
6251 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6252   nm_file_list_spec='@'
6253 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6254   nm_file_list_spec='@'
6255 fi
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6294 $as_echo_n "checking for sysroot... " >&6; }
6295
6296 # Check whether --with-sysroot was given.
6297 if test "${with_sysroot+set}" = set; then :
6298   withval=$with_sysroot;
6299 else
6300   with_sysroot=no
6301 fi
6302
6303
6304 lt_sysroot=
6305 case $with_sysroot in #(
6306  yes)
6307    if test yes = "$GCC"; then
6308      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6309    fi
6310    ;; #(
6311  /*)
6312    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6313    ;; #(
6314  no|'')
6315    ;; #(
6316  *)
6317    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6318 $as_echo "$with_sysroot" >&6; }
6319    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6320    ;;
6321 esac
6322
6323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6324 $as_echo "${lt_sysroot:-no}" >&6; }
6325
6326
6327
6328
6329
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6331 $as_echo_n "checking for a working dd... " >&6; }
6332 if ${ac_cv_path_lt_DD+:} false; then :
6333   $as_echo_n "(cached) " >&6
6334 else
6335   printf 0123456789abcdef0123456789abcdef >conftest.i
6336 cat conftest.i conftest.i >conftest2.i
6337 : ${lt_DD:=$DD}
6338 if test -z "$lt_DD"; then
6339   ac_path_lt_DD_found=false
6340   # Loop through the user's path and test for each of PROGNAME-LIST
6341   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342 for as_dir in $PATH
6343 do
6344   IFS=$as_save_IFS
6345   test -z "$as_dir" && as_dir=.
6346     for ac_prog in dd; do
6347     for ac_exec_ext in '' $ac_executable_extensions; do
6348       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6349       as_fn_executable_p "$ac_path_lt_DD" || continue
6350 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6351   cmp -s conftest.i conftest.out \
6352   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6353 fi
6354       $ac_path_lt_DD_found && break 3
6355     done
6356   done
6357   done
6358 IFS=$as_save_IFS
6359   if test -z "$ac_cv_path_lt_DD"; then
6360     :
6361   fi
6362 else
6363   ac_cv_path_lt_DD=$lt_DD
6364 fi
6365
6366 rm -f conftest.i conftest2.i conftest.out
6367 fi
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6369 $as_echo "$ac_cv_path_lt_DD" >&6; }
6370
6371
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6373 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6374 if ${lt_cv_truncate_bin+:} false; then :
6375   $as_echo_n "(cached) " >&6
6376 else
6377   printf 0123456789abcdef0123456789abcdef >conftest.i
6378 cat conftest.i conftest.i >conftest2.i
6379 lt_cv_truncate_bin=
6380 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6381   cmp -s conftest.i conftest.out \
6382   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6383 fi
6384 rm -f conftest.i conftest2.i conftest.out
6385 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6386 fi
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6388 $as_echo "$lt_cv_truncate_bin" >&6; }
6389
6390
6391
6392
6393
6394
6395
6396 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6397 func_cc_basename ()
6398 {
6399     for cc_temp in $*""; do
6400       case $cc_temp in
6401         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6402         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6403         \-*) ;;
6404         *) break;;
6405       esac
6406     done
6407     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6408 }
6409
6410 # Check whether --enable-libtool-lock was given.
6411 if test "${enable_libtool_lock+set}" = set; then :
6412   enableval=$enable_libtool_lock;
6413 fi
6414
6415 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6416
6417 # Some flags need to be propagated to the compiler or linker for good
6418 # libtool support.
6419 case $host in
6420 ia64-*-hpux*)
6421   # Find out what ABI is being produced by ac_compile, and set mode
6422   # options accordingly.
6423   echo 'int i;' > conftest.$ac_ext
6424   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6425   (eval $ac_compile) 2>&5
6426   ac_status=$?
6427   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6428   test $ac_status = 0; }; then
6429     case `/usr/bin/file conftest.$ac_objext` in
6430       *ELF-32*)
6431         HPUX_IA64_MODE=32
6432         ;;
6433       *ELF-64*)
6434         HPUX_IA64_MODE=64
6435         ;;
6436     esac
6437   fi
6438   rm -rf conftest*
6439   ;;
6440 *-*-irix6*)
6441   # Find out what ABI is being produced by ac_compile, and set linker
6442   # options accordingly.
6443   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6444   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6445   (eval $ac_compile) 2>&5
6446   ac_status=$?
6447   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6448   test $ac_status = 0; }; then
6449     if test yes = "$lt_cv_prog_gnu_ld"; then
6450       case `/usr/bin/file conftest.$ac_objext` in
6451         *32-bit*)
6452           LD="${LD-ld} -melf32bsmip"
6453           ;;
6454         *N32*)
6455           LD="${LD-ld} -melf32bmipn32"
6456           ;;
6457         *64-bit*)
6458           LD="${LD-ld} -melf64bmip"
6459         ;;
6460       esac
6461     else
6462       case `/usr/bin/file conftest.$ac_objext` in
6463         *32-bit*)
6464           LD="${LD-ld} -32"
6465           ;;
6466         *N32*)
6467           LD="${LD-ld} -n32"
6468           ;;
6469         *64-bit*)
6470           LD="${LD-ld} -64"
6471           ;;
6472       esac
6473     fi
6474   fi
6475   rm -rf conftest*
6476   ;;
6477
6478 mips64*-*linux*)
6479   # Find out what ABI is being produced by ac_compile, and set linker
6480   # options accordingly.
6481   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6482   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6483   (eval $ac_compile) 2>&5
6484   ac_status=$?
6485   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6486   test $ac_status = 0; }; then
6487     emul=elf
6488     case `/usr/bin/file conftest.$ac_objext` in
6489       *32-bit*)
6490         emul="${emul}32"
6491         ;;
6492       *64-bit*)
6493         emul="${emul}64"
6494         ;;
6495     esac
6496     case `/usr/bin/file conftest.$ac_objext` in
6497       *MSB*)
6498         emul="${emul}btsmip"
6499         ;;
6500       *LSB*)
6501         emul="${emul}ltsmip"
6502         ;;
6503     esac
6504     case `/usr/bin/file conftest.$ac_objext` in
6505       *N32*)
6506         emul="${emul}n32"
6507         ;;
6508     esac
6509     LD="${LD-ld} -m $emul"
6510   fi
6511   rm -rf conftest*
6512   ;;
6513
6514 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6515 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6516   # Find out what ABI is being produced by ac_compile, and set linker
6517   # options accordingly.  Note that the listed cases only cover the
6518   # situations where additional linker options are needed (such as when
6519   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6520   # vice versa); the common cases where no linker options are needed do
6521   # not appear in the list.
6522   echo 'int i;' > conftest.$ac_ext
6523   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6524   (eval $ac_compile) 2>&5
6525   ac_status=$?
6526   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6527   test $ac_status = 0; }; then
6528     case `/usr/bin/file conftest.o` in
6529       *32-bit*)
6530         case $host in
6531           x86_64-*kfreebsd*-gnu)
6532             LD="${LD-ld} -m elf_i386_fbsd"
6533             ;;
6534           x86_64-*linux*)
6535             case `/usr/bin/file conftest.o` in
6536               *x86-64*)
6537                 LD="${LD-ld} -m elf32_x86_64"
6538                 ;;
6539               *)
6540                 LD="${LD-ld} -m elf_i386"
6541                 ;;
6542             esac
6543             ;;
6544           powerpc64le-*linux*)
6545             LD="${LD-ld} -m elf32lppclinux"
6546             ;;
6547           powerpc64-*linux*)
6548             LD="${LD-ld} -m elf32ppclinux"
6549             ;;
6550           s390x-*linux*)
6551             LD="${LD-ld} -m elf_s390"
6552             ;;
6553           sparc64-*linux*)
6554             LD="${LD-ld} -m elf32_sparc"
6555             ;;
6556         esac
6557         ;;
6558       *64-bit*)
6559         case $host in
6560           x86_64-*kfreebsd*-gnu)
6561             LD="${LD-ld} -m elf_x86_64_fbsd"
6562             ;;
6563           x86_64-*linux*)
6564             LD="${LD-ld} -m elf_x86_64"
6565             ;;
6566           powerpcle-*linux*)
6567             LD="${LD-ld} -m elf64lppc"
6568             ;;
6569           powerpc-*linux*)
6570             LD="${LD-ld} -m elf64ppc"
6571             ;;
6572           s390*-*linux*|s390*-*tpf*)
6573             LD="${LD-ld} -m elf64_s390"
6574             ;;
6575           sparc*-*linux*)
6576             LD="${LD-ld} -m elf64_sparc"
6577             ;;
6578         esac
6579         ;;
6580     esac
6581   fi
6582   rm -rf conftest*
6583   ;;
6584
6585 *-*-sco3.2v5*)
6586   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6587   SAVE_CFLAGS=$CFLAGS
6588   CFLAGS="$CFLAGS -belf"
6589   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6590 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6591 if ${lt_cv_cc_needs_belf+:} false; then :
6592   $as_echo_n "(cached) " >&6
6593 else
6594   ac_ext=c
6595 ac_cpp='$CPP $CPPFLAGS'
6596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6599
6600      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6601 /* end confdefs.h.  */
6602
6603 int
6604 main ()
6605 {
6606
6607   ;
6608   return 0;
6609 }
6610 _ACEOF
6611 if ac_fn_c_try_link "$LINENO"; then :
6612   lt_cv_cc_needs_belf=yes
6613 else
6614   lt_cv_cc_needs_belf=no
6615 fi
6616 rm -f core conftest.err conftest.$ac_objext \
6617     conftest$ac_exeext conftest.$ac_ext
6618      ac_ext=c
6619 ac_cpp='$CPP $CPPFLAGS'
6620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6623
6624 fi
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6626 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6627   if test yes != "$lt_cv_cc_needs_belf"; then
6628     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6629     CFLAGS=$SAVE_CFLAGS
6630   fi
6631   ;;
6632 *-*solaris*)
6633   # Find out what ABI is being produced by ac_compile, and set linker
6634   # options accordingly.
6635   echo 'int i;' > conftest.$ac_ext
6636   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6637   (eval $ac_compile) 2>&5
6638   ac_status=$?
6639   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6640   test $ac_status = 0; }; then
6641     case `/usr/bin/file conftest.o` in
6642     *64-bit*)
6643       case $lt_cv_prog_gnu_ld in
6644       yes*)
6645         case $host in
6646         i?86-*-solaris*|x86_64-*-solaris*)
6647           LD="${LD-ld} -m elf_x86_64"
6648           ;;
6649         sparc*-*-solaris*)
6650           LD="${LD-ld} -m elf64_sparc"
6651           ;;
6652         esac
6653         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6654         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6655           LD=${LD-ld}_sol2
6656         fi
6657         ;;
6658       *)
6659         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6660           LD="${LD-ld} -64"
6661         fi
6662         ;;
6663       esac
6664       ;;
6665     esac
6666   fi
6667   rm -rf conftest*
6668   ;;
6669 esac
6670
6671 need_locks=$enable_libtool_lock
6672
6673 if test -n "$ac_tool_prefix"; then
6674   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6675 set dummy ${ac_tool_prefix}mt; ac_word=$2
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6677 $as_echo_n "checking for $ac_word... " >&6; }
6678 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6679   $as_echo_n "(cached) " >&6
6680 else
6681   if test -n "$MANIFEST_TOOL"; then
6682   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6683 else
6684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685 for as_dir in $PATH
6686 do
6687   IFS=$as_save_IFS
6688   test -z "$as_dir" && as_dir=.
6689     for ac_exec_ext in '' $ac_executable_extensions; do
6690   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6691     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6693     break 2
6694   fi
6695 done
6696   done
6697 IFS=$as_save_IFS
6698
6699 fi
6700 fi
6701 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6702 if test -n "$MANIFEST_TOOL"; then
6703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6704 $as_echo "$MANIFEST_TOOL" >&6; }
6705 else
6706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6707 $as_echo "no" >&6; }
6708 fi
6709
6710
6711 fi
6712 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6713   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6714   # Extract the first word of "mt", so it can be a program name with args.
6715 set dummy mt; ac_word=$2
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717 $as_echo_n "checking for $ac_word... " >&6; }
6718 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6719   $as_echo_n "(cached) " >&6
6720 else
6721   if test -n "$ac_ct_MANIFEST_TOOL"; then
6722   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6723 else
6724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725 for as_dir in $PATH
6726 do
6727   IFS=$as_save_IFS
6728   test -z "$as_dir" && as_dir=.
6729     for ac_exec_ext in '' $ac_executable_extensions; do
6730   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6731     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6733     break 2
6734   fi
6735 done
6736   done
6737 IFS=$as_save_IFS
6738
6739 fi
6740 fi
6741 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6742 if test -n "$ac_ct_MANIFEST_TOOL"; then
6743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6744 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6745 else
6746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6747 $as_echo "no" >&6; }
6748 fi
6749
6750   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6751     MANIFEST_TOOL=":"
6752   else
6753     case $cross_compiling:$ac_tool_warned in
6754 yes:)
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6757 ac_tool_warned=yes ;;
6758 esac
6759     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6760   fi
6761 else
6762   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6763 fi
6764
6765 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6767 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6768 if ${lt_cv_path_mainfest_tool+:} false; then :
6769   $as_echo_n "(cached) " >&6
6770 else
6771   lt_cv_path_mainfest_tool=no
6772   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6773   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6774   cat conftest.err >&5
6775   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6776     lt_cv_path_mainfest_tool=yes
6777   fi
6778   rm -f conftest*
6779 fi
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6781 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6782 if test yes != "$lt_cv_path_mainfest_tool"; then
6783   MANIFEST_TOOL=:
6784 fi
6785
6786
6787
6788
6789
6790
6791   case $host_os in
6792     rhapsody* | darwin*)
6793     if test -n "$ac_tool_prefix"; then
6794   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6795 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6797 $as_echo_n "checking for $ac_word... " >&6; }
6798 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6799   $as_echo_n "(cached) " >&6
6800 else
6801   if test -n "$DSYMUTIL"; then
6802   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6803 else
6804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805 for as_dir in $PATH
6806 do
6807   IFS=$as_save_IFS
6808   test -z "$as_dir" && as_dir=.
6809     for ac_exec_ext in '' $ac_executable_extensions; do
6810   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6811     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6813     break 2
6814   fi
6815 done
6816   done
6817 IFS=$as_save_IFS
6818
6819 fi
6820 fi
6821 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6822 if test -n "$DSYMUTIL"; then
6823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6824 $as_echo "$DSYMUTIL" >&6; }
6825 else
6826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6827 $as_echo "no" >&6; }
6828 fi
6829
6830
6831 fi
6832 if test -z "$ac_cv_prog_DSYMUTIL"; then
6833   ac_ct_DSYMUTIL=$DSYMUTIL
6834   # Extract the first word of "dsymutil", so it can be a program name with args.
6835 set dummy dsymutil; ac_word=$2
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837 $as_echo_n "checking for $ac_word... " >&6; }
6838 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6839   $as_echo_n "(cached) " >&6
6840 else
6841   if test -n "$ac_ct_DSYMUTIL"; then
6842   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6843 else
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 for as_dir in $PATH
6846 do
6847   IFS=$as_save_IFS
6848   test -z "$as_dir" && as_dir=.
6849     for ac_exec_ext in '' $ac_executable_extensions; do
6850   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6851     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6853     break 2
6854   fi
6855 done
6856   done
6857 IFS=$as_save_IFS
6858
6859 fi
6860 fi
6861 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6862 if test -n "$ac_ct_DSYMUTIL"; then
6863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6864 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6865 else
6866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6867 $as_echo "no" >&6; }
6868 fi
6869
6870   if test "x$ac_ct_DSYMUTIL" = x; then
6871     DSYMUTIL=":"
6872   else
6873     case $cross_compiling:$ac_tool_warned in
6874 yes:)
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6877 ac_tool_warned=yes ;;
6878 esac
6879     DSYMUTIL=$ac_ct_DSYMUTIL
6880   fi
6881 else
6882   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6883 fi
6884
6885     if test -n "$ac_tool_prefix"; then
6886   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6887 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6889 $as_echo_n "checking for $ac_word... " >&6; }
6890 if ${ac_cv_prog_NMEDIT+:} false; then :
6891   $as_echo_n "(cached) " >&6
6892 else
6893   if test -n "$NMEDIT"; then
6894   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6895 else
6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 for as_dir in $PATH
6898 do
6899   IFS=$as_save_IFS
6900   test -z "$as_dir" && as_dir=.
6901     for ac_exec_ext in '' $ac_executable_extensions; do
6902   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6903     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6905     break 2
6906   fi
6907 done
6908   done
6909 IFS=$as_save_IFS
6910
6911 fi
6912 fi
6913 NMEDIT=$ac_cv_prog_NMEDIT
6914 if test -n "$NMEDIT"; then
6915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6916 $as_echo "$NMEDIT" >&6; }
6917 else
6918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6919 $as_echo "no" >&6; }
6920 fi
6921
6922
6923 fi
6924 if test -z "$ac_cv_prog_NMEDIT"; then
6925   ac_ct_NMEDIT=$NMEDIT
6926   # Extract the first word of "nmedit", so it can be a program name with args.
6927 set dummy nmedit; ac_word=$2
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6929 $as_echo_n "checking for $ac_word... " >&6; }
6930 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6931   $as_echo_n "(cached) " >&6
6932 else
6933   if test -n "$ac_ct_NMEDIT"; then
6934   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6935 else
6936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937 for as_dir in $PATH
6938 do
6939   IFS=$as_save_IFS
6940   test -z "$as_dir" && as_dir=.
6941     for ac_exec_ext in '' $ac_executable_extensions; do
6942   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6943     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6945     break 2
6946   fi
6947 done
6948   done
6949 IFS=$as_save_IFS
6950
6951 fi
6952 fi
6953 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6954 if test -n "$ac_ct_NMEDIT"; then
6955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6956 $as_echo "$ac_ct_NMEDIT" >&6; }
6957 else
6958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6959 $as_echo "no" >&6; }
6960 fi
6961
6962   if test "x$ac_ct_NMEDIT" = x; then
6963     NMEDIT=":"
6964   else
6965     case $cross_compiling:$ac_tool_warned in
6966 yes:)
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6969 ac_tool_warned=yes ;;
6970 esac
6971     NMEDIT=$ac_ct_NMEDIT
6972   fi
6973 else
6974   NMEDIT="$ac_cv_prog_NMEDIT"
6975 fi
6976
6977     if test -n "$ac_tool_prefix"; then
6978   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6979 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6981 $as_echo_n "checking for $ac_word... " >&6; }
6982 if ${ac_cv_prog_LIPO+:} false; then :
6983   $as_echo_n "(cached) " >&6
6984 else
6985   if test -n "$LIPO"; then
6986   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6987 else
6988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989 for as_dir in $PATH
6990 do
6991   IFS=$as_save_IFS
6992   test -z "$as_dir" && as_dir=.
6993     for ac_exec_ext in '' $ac_executable_extensions; do
6994   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6995     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6996     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6997     break 2
6998   fi
6999 done
7000   done
7001 IFS=$as_save_IFS
7002
7003 fi
7004 fi
7005 LIPO=$ac_cv_prog_LIPO
7006 if test -n "$LIPO"; then
7007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7008 $as_echo "$LIPO" >&6; }
7009 else
7010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7011 $as_echo "no" >&6; }
7012 fi
7013
7014
7015 fi
7016 if test -z "$ac_cv_prog_LIPO"; then
7017   ac_ct_LIPO=$LIPO
7018   # Extract the first word of "lipo", so it can be a program name with args.
7019 set dummy lipo; ac_word=$2
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7021 $as_echo_n "checking for $ac_word... " >&6; }
7022 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7023   $as_echo_n "(cached) " >&6
7024 else
7025   if test -n "$ac_ct_LIPO"; then
7026   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7027 else
7028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029 for as_dir in $PATH
7030 do
7031   IFS=$as_save_IFS
7032   test -z "$as_dir" && as_dir=.
7033     for ac_exec_ext in '' $ac_executable_extensions; do
7034   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7035     ac_cv_prog_ac_ct_LIPO="lipo"
7036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7037     break 2
7038   fi
7039 done
7040   done
7041 IFS=$as_save_IFS
7042
7043 fi
7044 fi
7045 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7046 if test -n "$ac_ct_LIPO"; then
7047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7048 $as_echo "$ac_ct_LIPO" >&6; }
7049 else
7050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7051 $as_echo "no" >&6; }
7052 fi
7053
7054   if test "x$ac_ct_LIPO" = x; then
7055     LIPO=":"
7056   else
7057     case $cross_compiling:$ac_tool_warned in
7058 yes:)
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7060 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7061 ac_tool_warned=yes ;;
7062 esac
7063     LIPO=$ac_ct_LIPO
7064   fi
7065 else
7066   LIPO="$ac_cv_prog_LIPO"
7067 fi
7068
7069     if test -n "$ac_tool_prefix"; then
7070   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7071 set dummy ${ac_tool_prefix}otool; ac_word=$2
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7073 $as_echo_n "checking for $ac_word... " >&6; }
7074 if ${ac_cv_prog_OTOOL+:} false; then :
7075   $as_echo_n "(cached) " >&6
7076 else
7077   if test -n "$OTOOL"; then
7078   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7079 else
7080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081 for as_dir in $PATH
7082 do
7083   IFS=$as_save_IFS
7084   test -z "$as_dir" && as_dir=.
7085     for ac_exec_ext in '' $ac_executable_extensions; do
7086   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7087     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7089     break 2
7090   fi
7091 done
7092   done
7093 IFS=$as_save_IFS
7094
7095 fi
7096 fi
7097 OTOOL=$ac_cv_prog_OTOOL
7098 if test -n "$OTOOL"; then
7099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7100 $as_echo "$OTOOL" >&6; }
7101 else
7102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7103 $as_echo "no" >&6; }
7104 fi
7105
7106
7107 fi
7108 if test -z "$ac_cv_prog_OTOOL"; then
7109   ac_ct_OTOOL=$OTOOL
7110   # Extract the first word of "otool", so it can be a program name with args.
7111 set dummy otool; ac_word=$2
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7113 $as_echo_n "checking for $ac_word... " >&6; }
7114 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7115   $as_echo_n "(cached) " >&6
7116 else
7117   if test -n "$ac_ct_OTOOL"; then
7118   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7119 else
7120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 for as_dir in $PATH
7122 do
7123   IFS=$as_save_IFS
7124   test -z "$as_dir" && as_dir=.
7125     for ac_exec_ext in '' $ac_executable_extensions; do
7126   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7127     ac_cv_prog_ac_ct_OTOOL="otool"
7128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7129     break 2
7130   fi
7131 done
7132   done
7133 IFS=$as_save_IFS
7134
7135 fi
7136 fi
7137 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7138 if test -n "$ac_ct_OTOOL"; then
7139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7140 $as_echo "$ac_ct_OTOOL" >&6; }
7141 else
7142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7143 $as_echo "no" >&6; }
7144 fi
7145
7146   if test "x$ac_ct_OTOOL" = x; then
7147     OTOOL=":"
7148   else
7149     case $cross_compiling:$ac_tool_warned in
7150 yes:)
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7153 ac_tool_warned=yes ;;
7154 esac
7155     OTOOL=$ac_ct_OTOOL
7156   fi
7157 else
7158   OTOOL="$ac_cv_prog_OTOOL"
7159 fi
7160
7161     if test -n "$ac_tool_prefix"; then
7162   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7163 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7165 $as_echo_n "checking for $ac_word... " >&6; }
7166 if ${ac_cv_prog_OTOOL64+:} false; then :
7167   $as_echo_n "(cached) " >&6
7168 else
7169   if test -n "$OTOOL64"; then
7170   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7171 else
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 for as_dir in $PATH
7174 do
7175   IFS=$as_save_IFS
7176   test -z "$as_dir" && as_dir=.
7177     for ac_exec_ext in '' $ac_executable_extensions; do
7178   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7179     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7180     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7181     break 2
7182   fi
7183 done
7184   done
7185 IFS=$as_save_IFS
7186
7187 fi
7188 fi
7189 OTOOL64=$ac_cv_prog_OTOOL64
7190 if test -n "$OTOOL64"; then
7191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7192 $as_echo "$OTOOL64" >&6; }
7193 else
7194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195 $as_echo "no" >&6; }
7196 fi
7197
7198
7199 fi
7200 if test -z "$ac_cv_prog_OTOOL64"; then
7201   ac_ct_OTOOL64=$OTOOL64
7202   # Extract the first word of "otool64", so it can be a program name with args.
7203 set dummy otool64; ac_word=$2
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205 $as_echo_n "checking for $ac_word... " >&6; }
7206 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7207   $as_echo_n "(cached) " >&6
7208 else
7209   if test -n "$ac_ct_OTOOL64"; then
7210   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7211 else
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 for as_dir in $PATH
7214 do
7215   IFS=$as_save_IFS
7216   test -z "$as_dir" && as_dir=.
7217     for ac_exec_ext in '' $ac_executable_extensions; do
7218   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7219     ac_cv_prog_ac_ct_OTOOL64="otool64"
7220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7221     break 2
7222   fi
7223 done
7224   done
7225 IFS=$as_save_IFS
7226
7227 fi
7228 fi
7229 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7230 if test -n "$ac_ct_OTOOL64"; then
7231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7232 $as_echo "$ac_ct_OTOOL64" >&6; }
7233 else
7234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235 $as_echo "no" >&6; }
7236 fi
7237
7238   if test "x$ac_ct_OTOOL64" = x; then
7239     OTOOL64=":"
7240   else
7241     case $cross_compiling:$ac_tool_warned in
7242 yes:)
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7245 ac_tool_warned=yes ;;
7246 esac
7247     OTOOL64=$ac_ct_OTOOL64
7248   fi
7249 else
7250   OTOOL64="$ac_cv_prog_OTOOL64"
7251 fi
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7280 $as_echo_n "checking for -single_module linker flag... " >&6; }
7281 if ${lt_cv_apple_cc_single_mod+:} false; then :
7282   $as_echo_n "(cached) " >&6
7283 else
7284   lt_cv_apple_cc_single_mod=no
7285       if test -z "$LT_MULTI_MODULE"; then
7286         # By default we will add the -single_module flag. You can override
7287         # by either setting the environment variable LT_MULTI_MODULE
7288         # non-empty at configure time, or by adding -multi_module to the
7289         # link flags.
7290         rm -rf libconftest.dylib*
7291         echo "int foo(void){return 1;}" > conftest.c
7292         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7293 -dynamiclib -Wl,-single_module conftest.c" >&5
7294         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7295           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7296         _lt_result=$?
7297         # If there is a non-empty error log, and "single_module"
7298         # appears in it, assume the flag caused a linker warning
7299         if test -s conftest.err && $GREP single_module conftest.err; then
7300           cat conftest.err >&5
7301         # Otherwise, if the output was created with a 0 exit code from
7302         # the compiler, it worked.
7303         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7304           lt_cv_apple_cc_single_mod=yes
7305         else
7306           cat conftest.err >&5
7307         fi
7308         rm -rf libconftest.dylib*
7309         rm -f conftest.*
7310       fi
7311 fi
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7313 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7314
7315     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7316 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7317 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7318   $as_echo_n "(cached) " >&6
7319 else
7320   lt_cv_ld_exported_symbols_list=no
7321       save_LDFLAGS=$LDFLAGS
7322       echo "_main" > conftest.sym
7323       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7324       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7325 /* end confdefs.h.  */
7326
7327 int
7328 main ()
7329 {
7330
7331   ;
7332   return 0;
7333 }
7334 _ACEOF
7335 if ac_fn_c_try_link "$LINENO"; then :
7336   lt_cv_ld_exported_symbols_list=yes
7337 else
7338   lt_cv_ld_exported_symbols_list=no
7339 fi
7340 rm -f core conftest.err conftest.$ac_objext \
7341     conftest$ac_exeext conftest.$ac_ext
7342         LDFLAGS=$save_LDFLAGS
7343
7344 fi
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7346 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7347
7348     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7349 $as_echo_n "checking for -force_load linker flag... " >&6; }
7350 if ${lt_cv_ld_force_load+:} false; then :
7351   $as_echo_n "(cached) " >&6
7352 else
7353   lt_cv_ld_force_load=no
7354       cat > conftest.c << _LT_EOF
7355 int forced_loaded() { return 2;}
7356 _LT_EOF
7357       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7358       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7359       echo "$AR cru libconftest.a conftest.o" >&5
7360       $AR cru libconftest.a conftest.o 2>&5
7361       echo "$RANLIB libconftest.a" >&5
7362       $RANLIB libconftest.a 2>&5
7363       cat > conftest.c << _LT_EOF
7364 int main() { return 0;}
7365 _LT_EOF
7366       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7367       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7368       _lt_result=$?
7369       if test -s conftest.err && $GREP force_load conftest.err; then
7370         cat conftest.err >&5
7371       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7372         lt_cv_ld_force_load=yes
7373       else
7374         cat conftest.err >&5
7375       fi
7376         rm -f conftest.err libconftest.a conftest conftest.c
7377         rm -rf conftest.dSYM
7378
7379 fi
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7381 $as_echo "$lt_cv_ld_force_load" >&6; }
7382     case $host_os in
7383     rhapsody* | darwin1.[012])
7384       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7385     darwin1.*)
7386       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7387     darwin*) # darwin 5.x on
7388       # if running on 10.5 or later, the deployment target defaults
7389       # to the OS version, if on x86, and 10.4, the deployment
7390       # target defaults to 10.4. Don't you love it?
7391       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7392         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7393           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7394         10.[012][,.]*)
7395           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7396         10.*)
7397           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7398       esac
7399     ;;
7400   esac
7401     if test yes = "$lt_cv_apple_cc_single_mod"; then
7402       _lt_dar_single_mod='$single_module'
7403     fi
7404     if test yes = "$lt_cv_ld_exported_symbols_list"; then
7405       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7406     else
7407       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7408     fi
7409     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7410       _lt_dsymutil='~$DSYMUTIL $lib || :'
7411     else
7412       _lt_dsymutil=
7413     fi
7414     ;;
7415   esac
7416
7417 # func_munge_path_list VARIABLE PATH
7418 # -----------------------------------
7419 # VARIABLE is name of variable containing _space_ separated list of
7420 # directories to be munged by the contents of PATH, which is string
7421 # having a format:
7422 # "DIR[:DIR]:"
7423 #       string "DIR[ DIR]" will be prepended to VARIABLE
7424 # ":DIR[:DIR]"
7425 #       string "DIR[ DIR]" will be appended to VARIABLE
7426 # "DIRP[:DIRP]::[DIRA:]DIRA"
7427 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7428 #       "DIRA[ DIRA]" will be appended to VARIABLE
7429 # "DIR[:DIR]"
7430 #       VARIABLE will be replaced by "DIR[ DIR]"
7431 func_munge_path_list ()
7432 {
7433     case x$2 in
7434     x)
7435         ;;
7436     *:)
7437         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7438         ;;
7439     x:*)
7440         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7441         ;;
7442     *::*)
7443         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7444         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7445         ;;
7446     *)
7447         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7448         ;;
7449     esac
7450 }
7451
7452 ac_ext=c
7453 ac_cpp='$CPP $CPPFLAGS'
7454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7458 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7459 # On Suns, sometimes $CPP names a directory.
7460 if test -n "$CPP" && test -d "$CPP"; then
7461   CPP=
7462 fi
7463 if test -z "$CPP"; then
7464   if ${ac_cv_prog_CPP+:} false; then :
7465   $as_echo_n "(cached) " >&6
7466 else
7467       # Double quotes because CPP needs to be expanded
7468     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7469     do
7470       ac_preproc_ok=false
7471 for ac_c_preproc_warn_flag in '' yes
7472 do
7473   # Use a header file that comes with gcc, so configuring glibc
7474   # with a fresh cross-compiler works.
7475   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7476   # <limits.h> exists even on freestanding compilers.
7477   # On the NeXT, cc -E runs the code through the compiler's parser,
7478   # not just through cpp. "Syntax error" is here to catch this case.
7479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7480 /* end confdefs.h.  */
7481 #ifdef __STDC__
7482 # include <limits.h>
7483 #else
7484 # include <assert.h>
7485 #endif
7486                      Syntax error
7487 _ACEOF
7488 if ac_fn_c_try_cpp "$LINENO"; then :
7489
7490 else
7491   # Broken: fails on valid input.
7492 continue
7493 fi
7494 rm -f conftest.err conftest.i conftest.$ac_ext
7495
7496   # OK, works on sane cases.  Now check whether nonexistent headers
7497   # can be detected and how.
7498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7499 /* end confdefs.h.  */
7500 #include <ac_nonexistent.h>
7501 _ACEOF
7502 if ac_fn_c_try_cpp "$LINENO"; then :
7503   # Broken: success on invalid input.
7504 continue
7505 else
7506   # Passes both tests.
7507 ac_preproc_ok=:
7508 break
7509 fi
7510 rm -f conftest.err conftest.i conftest.$ac_ext
7511
7512 done
7513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7514 rm -f conftest.i conftest.err conftest.$ac_ext
7515 if $ac_preproc_ok; then :
7516   break
7517 fi
7518
7519     done
7520     ac_cv_prog_CPP=$CPP
7521
7522 fi
7523   CPP=$ac_cv_prog_CPP
7524 else
7525   ac_cv_prog_CPP=$CPP
7526 fi
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7528 $as_echo "$CPP" >&6; }
7529 ac_preproc_ok=false
7530 for ac_c_preproc_warn_flag in '' yes
7531 do
7532   # Use a header file that comes with gcc, so configuring glibc
7533   # with a fresh cross-compiler works.
7534   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7535   # <limits.h> exists even on freestanding compilers.
7536   # On the NeXT, cc -E runs the code through the compiler's parser,
7537   # not just through cpp. "Syntax error" is here to catch this case.
7538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7539 /* end confdefs.h.  */
7540 #ifdef __STDC__
7541 # include <limits.h>
7542 #else
7543 # include <assert.h>
7544 #endif
7545                      Syntax error
7546 _ACEOF
7547 if ac_fn_c_try_cpp "$LINENO"; then :
7548
7549 else
7550   # Broken: fails on valid input.
7551 continue
7552 fi
7553 rm -f conftest.err conftest.i conftest.$ac_ext
7554
7555   # OK, works on sane cases.  Now check whether nonexistent headers
7556   # can be detected and how.
7557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7558 /* end confdefs.h.  */
7559 #include <ac_nonexistent.h>
7560 _ACEOF
7561 if ac_fn_c_try_cpp "$LINENO"; then :
7562   # Broken: success on invalid input.
7563 continue
7564 else
7565   # Passes both tests.
7566 ac_preproc_ok=:
7567 break
7568 fi
7569 rm -f conftest.err conftest.i conftest.$ac_ext
7570
7571 done
7572 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7573 rm -f conftest.i conftest.err conftest.$ac_ext
7574 if $ac_preproc_ok; then :
7575
7576 else
7577   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7579 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7580 See \`config.log' for more details" "$LINENO" 5; }
7581 fi
7582
7583 ac_ext=c
7584 ac_cpp='$CPP $CPPFLAGS'
7585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7588
7589
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7591 $as_echo_n "checking for ANSI C header files... " >&6; }
7592 if ${ac_cv_header_stdc+:} false; then :
7593   $as_echo_n "(cached) " >&6
7594 else
7595   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7596 /* end confdefs.h.  */
7597 #include <stdlib.h>
7598 #include <stdarg.h>
7599 #include <string.h>
7600 #include <float.h>
7601
7602 int
7603 main ()
7604 {
7605
7606   ;
7607   return 0;
7608 }
7609 _ACEOF
7610 if ac_fn_c_try_compile "$LINENO"; then :
7611   ac_cv_header_stdc=yes
7612 else
7613   ac_cv_header_stdc=no
7614 fi
7615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7616
7617 if test $ac_cv_header_stdc = yes; then
7618   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7620 /* end confdefs.h.  */
7621 #include <string.h>
7622
7623 _ACEOF
7624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7625   $EGREP "memchr" >/dev/null 2>&1; then :
7626
7627 else
7628   ac_cv_header_stdc=no
7629 fi
7630 rm -f conftest*
7631
7632 fi
7633
7634 if test $ac_cv_header_stdc = yes; then
7635   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7637 /* end confdefs.h.  */
7638 #include <stdlib.h>
7639
7640 _ACEOF
7641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7642   $EGREP "free" >/dev/null 2>&1; then :
7643
7644 else
7645   ac_cv_header_stdc=no
7646 fi
7647 rm -f conftest*
7648
7649 fi
7650
7651 if test $ac_cv_header_stdc = yes; then
7652   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7653   if test "$cross_compiling" = yes; then :
7654   :
7655 else
7656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7657 /* end confdefs.h.  */
7658 #include <ctype.h>
7659 #include <stdlib.h>
7660 #if ((' ' & 0x0FF) == 0x020)
7661 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7662 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7663 #else
7664 # define ISLOWER(c) \
7665                    (('a' <= (c) && (c) <= 'i') \
7666                      || ('j' <= (c) && (c) <= 'r') \
7667                      || ('s' <= (c) && (c) <= 'z'))
7668 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7669 #endif
7670
7671 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7672 int
7673 main ()
7674 {
7675   int i;
7676   for (i = 0; i < 256; i++)
7677     if (XOR (islower (i), ISLOWER (i))
7678         || toupper (i) != TOUPPER (i))
7679       return 2;
7680   return 0;
7681 }
7682 _ACEOF
7683 if ac_fn_c_try_run "$LINENO"; then :
7684
7685 else
7686   ac_cv_header_stdc=no
7687 fi
7688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7689   conftest.$ac_objext conftest.beam conftest.$ac_ext
7690 fi
7691
7692 fi
7693 fi
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7695 $as_echo "$ac_cv_header_stdc" >&6; }
7696 if test $ac_cv_header_stdc = yes; then
7697
7698 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7699
7700 fi
7701
7702 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7703 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7704                   inttypes.h stdint.h unistd.h
7705 do :
7706   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7707 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7708 "
7709 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7710   cat >>confdefs.h <<_ACEOF
7711 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7712 _ACEOF
7713
7714 fi
7715
7716 done
7717
7718
7719 for ac_header in dlfcn.h
7720 do :
7721   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7722 "
7723 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7724   cat >>confdefs.h <<_ACEOF
7725 #define HAVE_DLFCN_H 1
7726 _ACEOF
7727
7728 fi
7729
7730 done
7731
7732
7733
7734
7735
7736 # Set options
7737
7738
7739
7740         enable_dlopen=no
7741
7742
7743   enable_win32_dll=no
7744
7745
7746             # Check whether --enable-shared was given.
7747 if test "${enable_shared+set}" = set; then :
7748   enableval=$enable_shared; p=${PACKAGE-default}
7749     case $enableval in
7750     yes) enable_shared=yes ;;
7751     no) enable_shared=no ;;
7752     *)
7753       enable_shared=no
7754       # Look at the argument we got.  We use all the common list separators.
7755       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7756       for pkg in $enableval; do
7757         IFS=$lt_save_ifs
7758         if test "X$pkg" = "X$p"; then
7759           enable_shared=yes
7760         fi
7761       done
7762       IFS=$lt_save_ifs
7763       ;;
7764     esac
7765 else
7766   enable_shared=yes
7767 fi
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779 # Check whether --with-pic was given.
7780 if test "${with_pic+set}" = set; then :
7781   withval=$with_pic; lt_p=${PACKAGE-default}
7782     case $withval in
7783     yes|no) pic_mode=$withval ;;
7784     *)
7785       pic_mode=default
7786       # Look at the argument we got.  We use all the common list separators.
7787       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7788       for lt_pkg in $withval; do
7789         IFS=$lt_save_ifs
7790         if test "X$lt_pkg" = "X$lt_p"; then
7791           pic_mode=yes
7792         fi
7793       done
7794       IFS=$lt_save_ifs
7795       ;;
7796     esac
7797 else
7798   pic_mode=default
7799 fi
7800
7801
7802
7803
7804
7805
7806
7807
7808   # Check whether --enable-fast-install was given.
7809 if test "${enable_fast_install+set}" = set; then :
7810   enableval=$enable_fast_install; p=${PACKAGE-default}
7811     case $enableval in
7812     yes) enable_fast_install=yes ;;
7813     no) enable_fast_install=no ;;
7814     *)
7815       enable_fast_install=no
7816       # Look at the argument we got.  We use all the common list separators.
7817       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7818       for pkg in $enableval; do
7819         IFS=$lt_save_ifs
7820         if test "X$pkg" = "X$p"; then
7821           enable_fast_install=yes
7822         fi
7823       done
7824       IFS=$lt_save_ifs
7825       ;;
7826     esac
7827 else
7828   enable_fast_install=yes
7829 fi
7830
7831
7832
7833
7834
7835
7836
7837
7838   shared_archive_member_spec=
7839 case $host,$enable_shared in
7840 power*-*-aix[5-9]*,yes)
7841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7842 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7843
7844 # Check whether --with-aix-soname was given.
7845 if test "${with_aix_soname+set}" = set; then :
7846   withval=$with_aix_soname; case $withval in
7847     aix|svr4|both)
7848       ;;
7849     *)
7850       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7851       ;;
7852     esac
7853     lt_cv_with_aix_soname=$with_aix_soname
7854 else
7855   if ${lt_cv_with_aix_soname+:} false; then :
7856   $as_echo_n "(cached) " >&6
7857 else
7858   lt_cv_with_aix_soname=aix
7859 fi
7860
7861     with_aix_soname=$lt_cv_with_aix_soname
7862 fi
7863
7864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7865 $as_echo "$with_aix_soname" >&6; }
7866   if test aix != "$with_aix_soname"; then
7867     # For the AIX way of multilib, we name the shared archive member
7868     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7869     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7870     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7871     # the AIX toolchain works better with OBJECT_MODE set (default 32).
7872     if test 64 = "${OBJECT_MODE-32}"; then
7873       shared_archive_member_spec=shr_64
7874     else
7875       shared_archive_member_spec=shr
7876     fi
7877   fi
7878   ;;
7879 *)
7880   with_aix_soname=aix
7881   ;;
7882 esac
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893 # This can be used to rebuild libtool when needed
7894 LIBTOOL_DEPS=$ltmain
7895
7896 # Always use our own libtool.
7897 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928 test -z "$LN_S" && LN_S="ln -s"
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943 if test -n "${ZSH_VERSION+set}"; then
7944    setopt NO_GLOB_SUBST
7945 fi
7946
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7948 $as_echo_n "checking for objdir... " >&6; }
7949 if ${lt_cv_objdir+:} false; then :
7950   $as_echo_n "(cached) " >&6
7951 else
7952   rm -f .libs 2>/dev/null
7953 mkdir .libs 2>/dev/null
7954 if test -d .libs; then
7955   lt_cv_objdir=.libs
7956 else
7957   # MS-DOS does not allow filenames that begin with a dot.
7958   lt_cv_objdir=_libs
7959 fi
7960 rmdir .libs 2>/dev/null
7961 fi
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7963 $as_echo "$lt_cv_objdir" >&6; }
7964 objdir=$lt_cv_objdir
7965
7966
7967
7968
7969
7970 cat >>confdefs.h <<_ACEOF
7971 #define LT_OBJDIR "$lt_cv_objdir/"
7972 _ACEOF
7973
7974
7975
7976
7977 case $host_os in
7978 aix3*)
7979   # AIX sometimes has problems with the GCC collect2 program.  For some
7980   # reason, if we set the COLLECT_NAMES environment variable, the problems
7981   # vanish in a puff of smoke.
7982   if test set != "${COLLECT_NAMES+set}"; then
7983     COLLECT_NAMES=
7984     export COLLECT_NAMES
7985   fi
7986   ;;
7987 esac
7988
7989 # Global variables:
7990 ofile=libtool
7991 can_build_shared=yes
7992
7993 # All known linkers require a '.a' archive for static linking (except MSVC,
7994 # which needs '.lib').
7995 libext=a
7996
7997 with_gnu_ld=$lt_cv_prog_gnu_ld
7998
7999 old_CC=$CC
8000 old_CFLAGS=$CFLAGS
8001
8002 # Set sane defaults for various variables
8003 test -z "$CC" && CC=cc
8004 test -z "$LTCC" && LTCC=$CC
8005 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8006 test -z "$LD" && LD=ld
8007 test -z "$ac_objext" && ac_objext=o
8008
8009 func_cc_basename $compiler
8010 cc_basename=$func_cc_basename_result
8011
8012
8013 # Only perform the check for file, if the check method requires it
8014 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8015 case $deplibs_check_method in
8016 file_magic*)
8017   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8018     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8019 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8020 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8021   $as_echo_n "(cached) " >&6
8022 else
8023   case $MAGIC_CMD in
8024 [\\/*] |  ?:[\\/]*)
8025   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8026   ;;
8027 *)
8028   lt_save_MAGIC_CMD=$MAGIC_CMD
8029   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8030   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8031   for ac_dir in $ac_dummy; do
8032     IFS=$lt_save_ifs
8033     test -z "$ac_dir" && ac_dir=.
8034     if test -f "$ac_dir/${ac_tool_prefix}file"; then
8035       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8036       if test -n "$file_magic_test_file"; then
8037         case $deplibs_check_method in
8038         "file_magic "*)
8039           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8040           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8041           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8042             $EGREP "$file_magic_regex" > /dev/null; then
8043             :
8044           else
8045             cat <<_LT_EOF 1>&2
8046
8047 *** Warning: the command libtool uses to detect shared libraries,
8048 *** $file_magic_cmd, produces output that libtool cannot recognize.
8049 *** The result is that libtool may fail to recognize shared libraries
8050 *** as such.  This will affect the creation of libtool libraries that
8051 *** depend on shared libraries, but programs linked with such libtool
8052 *** libraries will work regardless of this problem.  Nevertheless, you
8053 *** may want to report the problem to your system manager and/or to
8054 *** bug-libtool@gnu.org
8055
8056 _LT_EOF
8057           fi ;;
8058         esac
8059       fi
8060       break
8061     fi
8062   done
8063   IFS=$lt_save_ifs
8064   MAGIC_CMD=$lt_save_MAGIC_CMD
8065   ;;
8066 esac
8067 fi
8068
8069 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8070 if test -n "$MAGIC_CMD"; then
8071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8072 $as_echo "$MAGIC_CMD" >&6; }
8073 else
8074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8075 $as_echo "no" >&6; }
8076 fi
8077
8078
8079
8080
8081
8082 if test -z "$lt_cv_path_MAGIC_CMD"; then
8083   if test -n "$ac_tool_prefix"; then
8084     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8085 $as_echo_n "checking for file... " >&6; }
8086 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8087   $as_echo_n "(cached) " >&6
8088 else
8089   case $MAGIC_CMD in
8090 [\\/*] |  ?:[\\/]*)
8091   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8092   ;;
8093 *)
8094   lt_save_MAGIC_CMD=$MAGIC_CMD
8095   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8096   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8097   for ac_dir in $ac_dummy; do
8098     IFS=$lt_save_ifs
8099     test -z "$ac_dir" && ac_dir=.
8100     if test -f "$ac_dir/file"; then
8101       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8102       if test -n "$file_magic_test_file"; then
8103         case $deplibs_check_method in
8104         "file_magic "*)
8105           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8106           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8107           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8108             $EGREP "$file_magic_regex" > /dev/null; then
8109             :
8110           else
8111             cat <<_LT_EOF 1>&2
8112
8113 *** Warning: the command libtool uses to detect shared libraries,
8114 *** $file_magic_cmd, produces output that libtool cannot recognize.
8115 *** The result is that libtool may fail to recognize shared libraries
8116 *** as such.  This will affect the creation of libtool libraries that
8117 *** depend on shared libraries, but programs linked with such libtool
8118 *** libraries will work regardless of this problem.  Nevertheless, you
8119 *** may want to report the problem to your system manager and/or to
8120 *** bug-libtool@gnu.org
8121
8122 _LT_EOF
8123           fi ;;
8124         esac
8125       fi
8126       break
8127     fi
8128   done
8129   IFS=$lt_save_ifs
8130   MAGIC_CMD=$lt_save_MAGIC_CMD
8131   ;;
8132 esac
8133 fi
8134
8135 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8136 if test -n "$MAGIC_CMD"; then
8137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8138 $as_echo "$MAGIC_CMD" >&6; }
8139 else
8140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8141 $as_echo "no" >&6; }
8142 fi
8143
8144
8145   else
8146     MAGIC_CMD=:
8147   fi
8148 fi
8149
8150   fi
8151   ;;
8152 esac
8153
8154 # Use C for the default configuration in the libtool script
8155
8156 lt_save_CC=$CC
8157 ac_ext=c
8158 ac_cpp='$CPP $CPPFLAGS'
8159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8162
8163
8164 # Source file extension for C test sources.
8165 ac_ext=c
8166
8167 # Object file extension for compiled C test sources.
8168 objext=o
8169 objext=$objext
8170
8171 # Code to be used in simple compile tests
8172 lt_simple_compile_test_code="int some_variable = 0;"
8173
8174 # Code to be used in simple link tests
8175 lt_simple_link_test_code='int main(){return(0);}'
8176
8177
8178
8179
8180
8181
8182
8183 # If no C compiler was specified, use CC.
8184 LTCC=${LTCC-"$CC"}
8185
8186 # If no C compiler flags were specified, use CFLAGS.
8187 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8188
8189 # Allow CC to be a program name with arguments.
8190 compiler=$CC
8191
8192 # Save the default compiler, since it gets overwritten when the other
8193 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8194 compiler_DEFAULT=$CC
8195
8196 # save warnings/boilerplate of simple test code
8197 ac_outfile=conftest.$ac_objext
8198 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8199 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8200 _lt_compiler_boilerplate=`cat conftest.err`
8201 $RM conftest*
8202
8203 ac_outfile=conftest.$ac_objext
8204 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8205 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8206 _lt_linker_boilerplate=`cat conftest.err`
8207 $RM -r conftest*
8208
8209
8210 ## CAVEAT EMPTOR:
8211 ## There is no encapsulation within the following macros, do not change
8212 ## the running order or otherwise move them around unless you know exactly
8213 ## what you are doing...
8214 if test -n "$compiler"; then
8215
8216 lt_prog_compiler_no_builtin_flag=
8217
8218 if test yes = "$GCC"; then
8219   case $cc_basename in
8220   nvcc*)
8221     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8222   *)
8223     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8224   esac
8225
8226   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8227 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8228 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8229   $as_echo_n "(cached) " >&6
8230 else
8231   lt_cv_prog_compiler_rtti_exceptions=no
8232    ac_outfile=conftest.$ac_objext
8233    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8234    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8235    # Insert the option either (1) after the last *FLAGS variable, or
8236    # (2) before a word containing "conftest.", or (3) at the end.
8237    # Note that $ac_compile itself does not contain backslashes and begins
8238    # with a dollar sign (not a hyphen), so the echo should work correctly.
8239    # The option is referenced via a variable to avoid confusing sed.
8240    lt_compile=`echo "$ac_compile" | $SED \
8241    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8242    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8243    -e 's:$: $lt_compiler_flag:'`
8244    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8245    (eval "$lt_compile" 2>conftest.err)
8246    ac_status=$?
8247    cat conftest.err >&5
8248    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249    if (exit $ac_status) && test -s "$ac_outfile"; then
8250      # The compiler can only warn and ignore the option if not recognized
8251      # So say no if there are warnings other than the usual output.
8252      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8253      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8254      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8255        lt_cv_prog_compiler_rtti_exceptions=yes
8256      fi
8257    fi
8258    $RM conftest*
8259
8260 fi
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8262 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8263
8264 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8265     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8266 else
8267     :
8268 fi
8269
8270 fi
8271
8272
8273
8274
8275
8276
8277   lt_prog_compiler_wl=
8278 lt_prog_compiler_pic=
8279 lt_prog_compiler_static=
8280
8281
8282   if test yes = "$GCC"; then
8283     lt_prog_compiler_wl='-Wl,'
8284     lt_prog_compiler_static='-static'
8285
8286     case $host_os in
8287       aix*)
8288       # All AIX code is PIC.
8289       if test ia64 = "$host_cpu"; then
8290         # AIX 5 now supports IA64 processor
8291         lt_prog_compiler_static='-Bstatic'
8292       fi
8293       lt_prog_compiler_pic='-fPIC'
8294       ;;
8295
8296     amigaos*)
8297       case $host_cpu in
8298       powerpc)
8299             # see comment about AmigaOS4 .so support
8300             lt_prog_compiler_pic='-fPIC'
8301         ;;
8302       m68k)
8303             # FIXME: we need at least 68020 code to build shared libraries, but
8304             # adding the '-m68020' flag to GCC prevents building anything better,
8305             # like '-m68040'.
8306             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8307         ;;
8308       esac
8309       ;;
8310
8311     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8312       # PIC is the default for these OSes.
8313       ;;
8314
8315     mingw* | cygwin* | pw32* | os2* | cegcc*)
8316       # This hack is so that the source file can tell whether it is being
8317       # built for inclusion in a dll (and should export symbols for example).
8318       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8319       # (--disable-auto-import) libraries
8320       lt_prog_compiler_pic='-DDLL_EXPORT'
8321       case $host_os in
8322       os2*)
8323         lt_prog_compiler_static='$wl-static'
8324         ;;
8325       esac
8326       ;;
8327
8328     darwin* | rhapsody*)
8329       # PIC is the default on this platform
8330       # Common symbols not allowed in MH_DYLIB files
8331       lt_prog_compiler_pic='-fno-common'
8332       ;;
8333
8334     haiku*)
8335       # PIC is the default for Haiku.
8336       # The "-static" flag exists, but is broken.
8337       lt_prog_compiler_static=
8338       ;;
8339
8340     hpux*)
8341       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8342       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8343       # sets the default TLS model and affects inlining.
8344       case $host_cpu in
8345       hppa*64*)
8346         # +Z the default
8347         ;;
8348       *)
8349         lt_prog_compiler_pic='-fPIC'
8350         ;;
8351       esac
8352       ;;
8353
8354     interix[3-9]*)
8355       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8356       # Instead, we relocate shared libraries at runtime.
8357       ;;
8358
8359     msdosdjgpp*)
8360       # Just because we use GCC doesn't mean we suddenly get shared libraries
8361       # on systems that don't support them.
8362       lt_prog_compiler_can_build_shared=no
8363       enable_shared=no
8364       ;;
8365
8366     *nto* | *qnx*)
8367       # QNX uses GNU C++, but need to define -shared option too, otherwise
8368       # it will coredump.
8369       lt_prog_compiler_pic='-fPIC -shared'
8370       ;;
8371
8372     sysv4*MP*)
8373       if test -d /usr/nec; then
8374         lt_prog_compiler_pic=-Kconform_pic
8375       fi
8376       ;;
8377
8378     *)
8379       lt_prog_compiler_pic='-fPIC'
8380       ;;
8381     esac
8382
8383     case $cc_basename in
8384     nvcc*) # Cuda Compiler Driver 2.2
8385       lt_prog_compiler_wl='-Xlinker '
8386       if test -n "$lt_prog_compiler_pic"; then
8387         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8388       fi
8389       ;;
8390     esac
8391   else
8392     # PORTME Check for flag to pass linker flags through the system compiler.
8393     case $host_os in
8394     aix*)
8395       lt_prog_compiler_wl='-Wl,'
8396       if test ia64 = "$host_cpu"; then
8397         # AIX 5 now supports IA64 processor
8398         lt_prog_compiler_static='-Bstatic'
8399       else
8400         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8401       fi
8402       ;;
8403
8404     darwin* | rhapsody*)
8405       # PIC is the default on this platform
8406       # Common symbols not allowed in MH_DYLIB files
8407       lt_prog_compiler_pic='-fno-common'
8408       case $cc_basename in
8409       nagfor*)
8410         # NAG Fortran compiler
8411         lt_prog_compiler_wl='-Wl,-Wl,,'
8412         lt_prog_compiler_pic='-PIC'
8413         lt_prog_compiler_static='-Bstatic'
8414         ;;
8415       esac
8416       ;;
8417
8418     mingw* | cygwin* | pw32* | os2* | cegcc*)
8419       # This hack is so that the source file can tell whether it is being
8420       # built for inclusion in a dll (and should export symbols for example).
8421       lt_prog_compiler_pic='-DDLL_EXPORT'
8422       case $host_os in
8423       os2*)
8424         lt_prog_compiler_static='$wl-static'
8425         ;;
8426       esac
8427       ;;
8428
8429     hpux9* | hpux10* | hpux11*)
8430       lt_prog_compiler_wl='-Wl,'
8431       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8432       # not for PA HP-UX.
8433       case $host_cpu in
8434       hppa*64*|ia64*)
8435         # +Z the default
8436         ;;
8437       *)
8438         lt_prog_compiler_pic='+Z'
8439         ;;
8440       esac
8441       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8442       lt_prog_compiler_static='$wl-a ${wl}archive'
8443       ;;
8444
8445     irix5* | irix6* | nonstopux*)
8446       lt_prog_compiler_wl='-Wl,'
8447       # PIC (with -KPIC) is the default.
8448       lt_prog_compiler_static='-non_shared'
8449       ;;
8450
8451     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8452       case $cc_basename in
8453       # old Intel for x86_64, which still supported -KPIC.
8454       ecc*)
8455         lt_prog_compiler_wl='-Wl,'
8456         lt_prog_compiler_pic='-KPIC'
8457         lt_prog_compiler_static='-static'
8458         ;;
8459       # icc used to be incompatible with GCC.
8460       # ICC 10 doesn't accept -KPIC any more.
8461       icc* | ifort*)
8462         lt_prog_compiler_wl='-Wl,'
8463         lt_prog_compiler_pic='-fPIC'
8464         lt_prog_compiler_static='-static'
8465         ;;
8466       # Lahey Fortran 8.1.
8467       lf95*)
8468         lt_prog_compiler_wl='-Wl,'
8469         lt_prog_compiler_pic='--shared'
8470         lt_prog_compiler_static='--static'
8471         ;;
8472       nagfor*)
8473         # NAG Fortran compiler
8474         lt_prog_compiler_wl='-Wl,-Wl,,'
8475         lt_prog_compiler_pic='-PIC'
8476         lt_prog_compiler_static='-Bstatic'
8477         ;;
8478       tcc*)
8479         # Fabrice Bellard et al's Tiny C Compiler
8480         lt_prog_compiler_wl='-Wl,'
8481         lt_prog_compiler_pic='-fPIC'
8482         lt_prog_compiler_static='-static'
8483         ;;
8484       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8485         # Portland Group compilers (*not* the Pentium gcc compiler,
8486         # which looks to be a dead project)
8487         lt_prog_compiler_wl='-Wl,'
8488         lt_prog_compiler_pic='-fpic'
8489         lt_prog_compiler_static='-Bstatic'
8490         ;;
8491       ccc*)
8492         lt_prog_compiler_wl='-Wl,'
8493         # All Alpha code is PIC.
8494         lt_prog_compiler_static='-non_shared'
8495         ;;
8496       xl* | bgxl* | bgf* | mpixl*)
8497         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8498         lt_prog_compiler_wl='-Wl,'
8499         lt_prog_compiler_pic='-qpic'
8500         lt_prog_compiler_static='-qstaticlink'
8501         ;;
8502       *)
8503         case `$CC -V 2>&1 | sed 5q` in
8504         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8505           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8506           lt_prog_compiler_pic='-KPIC'
8507           lt_prog_compiler_static='-Bstatic'
8508           lt_prog_compiler_wl=''
8509           ;;
8510         *Sun\ F* | *Sun*Fortran*)
8511           lt_prog_compiler_pic='-KPIC'
8512           lt_prog_compiler_static='-Bstatic'
8513           lt_prog_compiler_wl='-Qoption ld '
8514           ;;
8515         *Sun\ C*)
8516           # Sun C 5.9
8517           lt_prog_compiler_pic='-KPIC'
8518           lt_prog_compiler_static='-Bstatic'
8519           lt_prog_compiler_wl='-Wl,'
8520           ;;
8521         *Intel*\ [CF]*Compiler*)
8522           lt_prog_compiler_wl='-Wl,'
8523           lt_prog_compiler_pic='-fPIC'
8524           lt_prog_compiler_static='-static'
8525           ;;
8526         *Portland\ Group*)
8527           lt_prog_compiler_wl='-Wl,'
8528           lt_prog_compiler_pic='-fpic'
8529           lt_prog_compiler_static='-Bstatic'
8530           ;;
8531         esac
8532         ;;
8533       esac
8534       ;;
8535
8536     newsos6)
8537       lt_prog_compiler_pic='-KPIC'
8538       lt_prog_compiler_static='-Bstatic'
8539       ;;
8540
8541     *nto* | *qnx*)
8542       # QNX uses GNU C++, but need to define -shared option too, otherwise
8543       # it will coredump.
8544       lt_prog_compiler_pic='-fPIC -shared'
8545       ;;
8546
8547     osf3* | osf4* | osf5*)
8548       lt_prog_compiler_wl='-Wl,'
8549       # All OSF/1 code is PIC.
8550       lt_prog_compiler_static='-non_shared'
8551       ;;
8552
8553     rdos*)
8554       lt_prog_compiler_static='-non_shared'
8555       ;;
8556
8557     solaris*)
8558       lt_prog_compiler_pic='-KPIC'
8559       lt_prog_compiler_static='-Bstatic'
8560       case $cc_basename in
8561       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8562         lt_prog_compiler_wl='-Qoption ld ';;
8563       *)
8564         lt_prog_compiler_wl='-Wl,';;
8565       esac
8566       ;;
8567
8568     sunos4*)
8569       lt_prog_compiler_wl='-Qoption ld '
8570       lt_prog_compiler_pic='-PIC'
8571       lt_prog_compiler_static='-Bstatic'
8572       ;;
8573
8574     sysv4 | sysv4.2uw2* | sysv4.3*)
8575       lt_prog_compiler_wl='-Wl,'
8576       lt_prog_compiler_pic='-KPIC'
8577       lt_prog_compiler_static='-Bstatic'
8578       ;;
8579
8580     sysv4*MP*)
8581       if test -d /usr/nec; then
8582         lt_prog_compiler_pic='-Kconform_pic'
8583         lt_prog_compiler_static='-Bstatic'
8584       fi
8585       ;;
8586
8587     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8588       lt_prog_compiler_wl='-Wl,'
8589       lt_prog_compiler_pic='-KPIC'
8590       lt_prog_compiler_static='-Bstatic'
8591       ;;
8592
8593     unicos*)
8594       lt_prog_compiler_wl='-Wl,'
8595       lt_prog_compiler_can_build_shared=no
8596       ;;
8597
8598     uts4*)
8599       lt_prog_compiler_pic='-pic'
8600       lt_prog_compiler_static='-Bstatic'
8601       ;;
8602
8603     *)
8604       lt_prog_compiler_can_build_shared=no
8605       ;;
8606     esac
8607   fi
8608
8609 case $host_os in
8610   # For platforms that do not support PIC, -DPIC is meaningless:
8611   *djgpp*)
8612     lt_prog_compiler_pic=
8613     ;;
8614   *)
8615     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8616     ;;
8617 esac
8618
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8620 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8621 if ${lt_cv_prog_compiler_pic+:} false; then :
8622   $as_echo_n "(cached) " >&6
8623 else
8624   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8625 fi
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8627 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8628 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8629
8630 #
8631 # Check to make sure the PIC flag actually works.
8632 #
8633 if test -n "$lt_prog_compiler_pic"; then
8634   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8635 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8636 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8637   $as_echo_n "(cached) " >&6
8638 else
8639   lt_cv_prog_compiler_pic_works=no
8640    ac_outfile=conftest.$ac_objext
8641    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8642    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8643    # Insert the option either (1) after the last *FLAGS variable, or
8644    # (2) before a word containing "conftest.", or (3) at the end.
8645    # Note that $ac_compile itself does not contain backslashes and begins
8646    # with a dollar sign (not a hyphen), so the echo should work correctly.
8647    # The option is referenced via a variable to avoid confusing sed.
8648    lt_compile=`echo "$ac_compile" | $SED \
8649    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8650    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8651    -e 's:$: $lt_compiler_flag:'`
8652    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8653    (eval "$lt_compile" 2>conftest.err)
8654    ac_status=$?
8655    cat conftest.err >&5
8656    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657    if (exit $ac_status) && test -s "$ac_outfile"; then
8658      # The compiler can only warn and ignore the option if not recognized
8659      # So say no if there are warnings other than the usual output.
8660      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8661      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8662      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8663        lt_cv_prog_compiler_pic_works=yes
8664      fi
8665    fi
8666    $RM conftest*
8667
8668 fi
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8670 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8671
8672 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8673     case $lt_prog_compiler_pic in
8674      "" | " "*) ;;
8675      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8676      esac
8677 else
8678     lt_prog_compiler_pic=
8679      lt_prog_compiler_can_build_shared=no
8680 fi
8681
8682 fi
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694 #
8695 # Check to make sure the static flag actually works.
8696 #
8697 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8699 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8700 if ${lt_cv_prog_compiler_static_works+:} false; then :
8701   $as_echo_n "(cached) " >&6
8702 else
8703   lt_cv_prog_compiler_static_works=no
8704    save_LDFLAGS=$LDFLAGS
8705    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8706    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8707    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8708      # The linker can only warn and ignore the option if not recognized
8709      # So say no if there are warnings
8710      if test -s conftest.err; then
8711        # Append any errors to the config.log.
8712        cat conftest.err 1>&5
8713        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8714        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8715        if diff conftest.exp conftest.er2 >/dev/null; then
8716          lt_cv_prog_compiler_static_works=yes
8717        fi
8718      else
8719        lt_cv_prog_compiler_static_works=yes
8720      fi
8721    fi
8722    $RM -r conftest*
8723    LDFLAGS=$save_LDFLAGS
8724
8725 fi
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8727 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8728
8729 if test yes = "$lt_cv_prog_compiler_static_works"; then
8730     :
8731 else
8732     lt_prog_compiler_static=
8733 fi
8734
8735
8736
8737
8738
8739
8740
8741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8742 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8743 if ${lt_cv_prog_compiler_c_o+:} false; then :
8744   $as_echo_n "(cached) " >&6
8745 else
8746   lt_cv_prog_compiler_c_o=no
8747    $RM -r conftest 2>/dev/null
8748    mkdir conftest
8749    cd conftest
8750    mkdir out
8751    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8752
8753    lt_compiler_flag="-o out/conftest2.$ac_objext"
8754    # Insert the option either (1) after the last *FLAGS variable, or
8755    # (2) before a word containing "conftest.", or (3) at the end.
8756    # Note that $ac_compile itself does not contain backslashes and begins
8757    # with a dollar sign (not a hyphen), so the echo should work correctly.
8758    lt_compile=`echo "$ac_compile" | $SED \
8759    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8760    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8761    -e 's:$: $lt_compiler_flag:'`
8762    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8763    (eval "$lt_compile" 2>out/conftest.err)
8764    ac_status=$?
8765    cat out/conftest.err >&5
8766    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8768    then
8769      # The compiler can only warn and ignore the option if not recognized
8770      # So say no if there are warnings
8771      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8772      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8773      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8774        lt_cv_prog_compiler_c_o=yes
8775      fi
8776    fi
8777    chmod u+w . 2>&5
8778    $RM conftest*
8779    # SGI C++ compiler will create directory out/ii_files/ for
8780    # template instantiation
8781    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8782    $RM out/* && rmdir out
8783    cd ..
8784    $RM -r conftest
8785    $RM conftest*
8786
8787 fi
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8789 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8790
8791
8792
8793
8794
8795
8796   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8797 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8798 if ${lt_cv_prog_compiler_c_o+:} false; then :
8799   $as_echo_n "(cached) " >&6
8800 else
8801   lt_cv_prog_compiler_c_o=no
8802    $RM -r conftest 2>/dev/null
8803    mkdir conftest
8804    cd conftest
8805    mkdir out
8806    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8807
8808    lt_compiler_flag="-o out/conftest2.$ac_objext"
8809    # Insert the option either (1) after the last *FLAGS variable, or
8810    # (2) before a word containing "conftest.", or (3) at the end.
8811    # Note that $ac_compile itself does not contain backslashes and begins
8812    # with a dollar sign (not a hyphen), so the echo should work correctly.
8813    lt_compile=`echo "$ac_compile" | $SED \
8814    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8815    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8816    -e 's:$: $lt_compiler_flag:'`
8817    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8818    (eval "$lt_compile" 2>out/conftest.err)
8819    ac_status=$?
8820    cat out/conftest.err >&5
8821    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8823    then
8824      # The compiler can only warn and ignore the option if not recognized
8825      # So say no if there are warnings
8826      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8827      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8828      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8829        lt_cv_prog_compiler_c_o=yes
8830      fi
8831    fi
8832    chmod u+w . 2>&5
8833    $RM conftest*
8834    # SGI C++ compiler will create directory out/ii_files/ for
8835    # template instantiation
8836    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8837    $RM out/* && rmdir out
8838    cd ..
8839    $RM -r conftest
8840    $RM conftest*
8841
8842 fi
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8844 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8845
8846
8847
8848
8849 hard_links=nottested
8850 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8851   # do not overwrite the value of need_locks provided by the user
8852   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8853 $as_echo_n "checking if we can lock with hard links... " >&6; }
8854   hard_links=yes
8855   $RM conftest*
8856   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8857   touch conftest.a
8858   ln conftest.a conftest.b 2>&5 || hard_links=no
8859   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8861 $as_echo "$hard_links" >&6; }
8862   if test no = "$hard_links"; then
8863     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8864 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8865     need_locks=warn
8866   fi
8867 else
8868   need_locks=no
8869 fi
8870
8871
8872
8873
8874
8875
8876   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8877 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8878
8879   runpath_var=
8880   allow_undefined_flag=
8881   always_export_symbols=no
8882   archive_cmds=
8883   archive_expsym_cmds=
8884   compiler_needs_object=no
8885   enable_shared_with_static_runtimes=no
8886   export_dynamic_flag_spec=
8887   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8888   hardcode_automatic=no
8889   hardcode_direct=no
8890   hardcode_direct_absolute=no
8891   hardcode_libdir_flag_spec=
8892   hardcode_libdir_separator=
8893   hardcode_minus_L=no
8894   hardcode_shlibpath_var=unsupported
8895   inherit_rpath=no
8896   link_all_deplibs=unknown
8897   module_cmds=
8898   module_expsym_cmds=
8899   old_archive_from_new_cmds=
8900   old_archive_from_expsyms_cmds=
8901   thread_safe_flag_spec=
8902   whole_archive_flag_spec=
8903   # include_expsyms should be a list of space-separated symbols to be *always*
8904   # included in the symbol list
8905   include_expsyms=
8906   # exclude_expsyms can be an extended regexp of symbols to exclude
8907   # it will be wrapped by ' (' and ')$', so one must not match beginning or
8908   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8909   # as well as any symbol that contains 'd'.
8910   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8911   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8912   # platforms (ab)use it in PIC code, but their linkers get confused if
8913   # the symbol is explicitly referenced.  Since portable code cannot
8914   # rely on this symbol name, it's probably fine to never include it in
8915   # preloaded symbol tables.
8916   # Exclude shared library initialization/finalization symbols.
8917   extract_expsyms_cmds=
8918
8919   case $host_os in
8920   cygwin* | mingw* | pw32* | cegcc*)
8921     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8922     # When not using gcc, we currently assume that we are using
8923     # Microsoft Visual C++.
8924     if test yes != "$GCC"; then
8925       with_gnu_ld=no
8926     fi
8927     ;;
8928   interix*)
8929     # we just hope/assume this is gcc and not c89 (= MSVC++)
8930     with_gnu_ld=yes
8931     ;;
8932   openbsd* | bitrig*)
8933     with_gnu_ld=no
8934     ;;
8935   linux* | k*bsd*-gnu | gnu*)
8936     link_all_deplibs=no
8937     ;;
8938   esac
8939
8940   ld_shlibs=yes
8941
8942   # On some targets, GNU ld is compatible enough with the native linker
8943   # that we're better off using the native interface for both.
8944   lt_use_gnu_ld_interface=no
8945   if test yes = "$with_gnu_ld"; then
8946     case $host_os in
8947       aix*)
8948         # The AIX port of GNU ld has always aspired to compatibility
8949         # with the native linker.  However, as the warning in the GNU ld
8950         # block says, versions before 2.19.5* couldn't really create working
8951         # shared libraries, regardless of the interface used.
8952         case `$LD -v 2>&1` in
8953           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8954           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8955           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8956           *)
8957             lt_use_gnu_ld_interface=yes
8958             ;;
8959         esac
8960         ;;
8961       *)
8962         lt_use_gnu_ld_interface=yes
8963         ;;
8964     esac
8965   fi
8966
8967   if test yes = "$lt_use_gnu_ld_interface"; then
8968     # If archive_cmds runs LD, not CC, wlarc should be empty
8969     wlarc='$wl'
8970
8971     # Set some defaults for GNU ld with shared library support. These
8972     # are reset later if shared libraries are not supported. Putting them
8973     # here allows them to be overridden if necessary.
8974     runpath_var=LD_RUN_PATH
8975     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8976     export_dynamic_flag_spec='$wl--export-dynamic'
8977     # ancient GNU ld didn't support --whole-archive et. al.
8978     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8979       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8980     else
8981       whole_archive_flag_spec=
8982     fi
8983     supports_anon_versioning=no
8984     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8985       *GNU\ gold*) supports_anon_versioning=yes ;;
8986       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8987       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8988       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8989       *\ 2.11.*) ;; # other 2.11 versions
8990       *) supports_anon_versioning=yes ;;
8991     esac
8992
8993     # See if GNU ld supports shared libraries.
8994     case $host_os in
8995     aix[3-9]*)
8996       # On AIX/PPC, the GNU linker is very broken
8997       if test ia64 != "$host_cpu"; then
8998         ld_shlibs=no
8999         cat <<_LT_EOF 1>&2
9000
9001 *** Warning: the GNU linker, at least up to release 2.19, is reported
9002 *** to be unable to reliably create shared libraries on AIX.
9003 *** Therefore, libtool is disabling shared libraries support.  If you
9004 *** really care for shared libraries, you may want to install binutils
9005 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9006 *** You will then need to restart the configuration process.
9007
9008 _LT_EOF
9009       fi
9010       ;;
9011
9012     amigaos*)
9013       case $host_cpu in
9014       powerpc)
9015             # see comment about AmigaOS4 .so support
9016             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9017             archive_expsym_cmds=''
9018         ;;
9019       m68k)
9020             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)'
9021             hardcode_libdir_flag_spec='-L$libdir'
9022             hardcode_minus_L=yes
9023         ;;
9024       esac
9025       ;;
9026
9027     beos*)
9028       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9029         allow_undefined_flag=unsupported
9030         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9031         # support --undefined.  This deserves some investigation.  FIXME
9032         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9033       else
9034         ld_shlibs=no
9035       fi
9036       ;;
9037
9038     cygwin* | mingw* | pw32* | cegcc*)
9039       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9040       # as there is no search path for DLLs.
9041       hardcode_libdir_flag_spec='-L$libdir'
9042       export_dynamic_flag_spec='$wl--export-all-symbols'
9043       allow_undefined_flag=unsupported
9044       always_export_symbols=no
9045       enable_shared_with_static_runtimes=yes
9046       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'
9047       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9048
9049       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9050         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9051         # If the export-symbols file already is a .def file, use it as
9052         # is; otherwise, prepend EXPORTS...
9053         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9054           cp $export_symbols $output_objdir/$soname.def;
9055         else
9056           echo EXPORTS > $output_objdir/$soname.def;
9057           cat $export_symbols >> $output_objdir/$soname.def;
9058         fi~
9059         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9060       else
9061         ld_shlibs=no
9062       fi
9063       ;;
9064
9065     haiku*)
9066       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9067       link_all_deplibs=yes
9068       ;;
9069
9070     os2*)
9071       hardcode_libdir_flag_spec='-L$libdir'
9072       hardcode_minus_L=yes
9073       allow_undefined_flag=unsupported
9074       shrext_cmds=.dll
9075       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9076         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9077         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9078         $ECHO EXPORTS >> $output_objdir/$libname.def~
9079         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9080         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9081         emximp -o $lib $output_objdir/$libname.def'
9082       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9083         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9084         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9085         $ECHO EXPORTS >> $output_objdir/$libname.def~
9086         prefix_cmds="$SED"~
9087         if test EXPORTS = "`$SED 1q $export_symbols`"; then
9088           prefix_cmds="$prefix_cmds -e 1d";
9089         fi~
9090         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9091         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9092         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9093         emximp -o $lib $output_objdir/$libname.def'
9094       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9095       enable_shared_with_static_runtimes=yes
9096       ;;
9097
9098     interix[3-9]*)
9099       hardcode_direct=no
9100       hardcode_shlibpath_var=no
9101       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9102       export_dynamic_flag_spec='$wl-E'
9103       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9104       # Instead, shared libraries are loaded at an image base (0x10000000 by
9105       # default) and relocated if they conflict, which is a slow very memory
9106       # consuming and fragmenting process.  To avoid this, we pick a random,
9107       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9108       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9109       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9110       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'
9111       ;;
9112
9113     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9114       tmp_diet=no
9115       if test linux-dietlibc = "$host_os"; then
9116         case $cc_basename in
9117           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9118         esac
9119       fi
9120       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9121          && test no = "$tmp_diet"
9122       then
9123         tmp_addflag=' $pic_flag'
9124         tmp_sharedflag='-shared'
9125         case $cc_basename,$host_cpu in
9126         pgcc*)                          # Portland Group C compiler
9127           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'
9128           tmp_addflag=' $pic_flag'
9129           ;;
9130         pgf77* | pgf90* | pgf95* | pgfortran*)
9131                                         # Portland Group f77 and f90 compilers
9132           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'
9133           tmp_addflag=' $pic_flag -Mnomain' ;;
9134         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9135           tmp_addflag=' -i_dynamic' ;;
9136         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9137           tmp_addflag=' -i_dynamic -nofor_main' ;;
9138         ifc* | ifort*)                  # Intel Fortran compiler
9139           tmp_addflag=' -nofor_main' ;;
9140         lf95*)                          # Lahey Fortran 8.1
9141           whole_archive_flag_spec=
9142           tmp_sharedflag='--shared' ;;
9143         nagfor*)                        # NAGFOR 5.3
9144           tmp_sharedflag='-Wl,-shared' ;;
9145         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9146           tmp_sharedflag='-qmkshrobj'
9147           tmp_addflag= ;;
9148         nvcc*)  # Cuda Compiler Driver 2.2
9149           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'
9150           compiler_needs_object=yes
9151           ;;
9152         esac
9153         case `$CC -V 2>&1 | sed 5q` in
9154         *Sun\ C*)                       # Sun C 5.9
9155           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'
9156           compiler_needs_object=yes
9157           tmp_sharedflag='-G' ;;
9158         *Sun\ F*)                       # Sun Fortran 8.3
9159           tmp_sharedflag='-G' ;;
9160         esac
9161         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9162
9163         if test yes = "$supports_anon_versioning"; then
9164           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9165             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9166             echo "local: *; };" >> $output_objdir/$libname.ver~
9167             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9168         fi
9169
9170         case $cc_basename in
9171         tcc*)
9172           export_dynamic_flag_spec='-rdynamic'
9173           ;;
9174         xlf* | bgf* | bgxlf* | mpixlf*)
9175           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9176           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9177           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9178           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9179           if test yes = "$supports_anon_versioning"; then
9180             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9181               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9182               echo "local: *; };" >> $output_objdir/$libname.ver~
9183               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9184           fi
9185           ;;
9186         esac
9187       else
9188         ld_shlibs=no
9189       fi
9190       ;;
9191
9192     netbsd* | netbsdelf*-gnu)
9193       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9194         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9195         wlarc=
9196       else
9197         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9198         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9199       fi
9200       ;;
9201
9202     solaris*)
9203       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9204         ld_shlibs=no
9205         cat <<_LT_EOF 1>&2
9206
9207 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9208 *** create shared libraries on Solaris systems.  Therefore, libtool
9209 *** is disabling shared libraries support.  We urge you to upgrade GNU
9210 *** binutils to release 2.9.1 or newer.  Another option is to modify
9211 *** your PATH or compiler configuration so that the native linker is
9212 *** used, and then restart.
9213
9214 _LT_EOF
9215       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9216         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9217         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9218       else
9219         ld_shlibs=no
9220       fi
9221       ;;
9222
9223     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9224       case `$LD -v 2>&1` in
9225         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9226         ld_shlibs=no
9227         cat <<_LT_EOF 1>&2
9228
9229 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9230 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9231 *** is disabling shared libraries support.  We urge you to upgrade GNU
9232 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9233 *** your PATH or compiler configuration so that the native linker is
9234 *** used, and then restart.
9235
9236 _LT_EOF
9237         ;;
9238         *)
9239           # For security reasons, it is highly recommended that you always
9240           # use absolute paths for naming shared libraries, and exclude the
9241           # DT_RUNPATH tag from executables and libraries.  But doing so
9242           # requires that you compile everything twice, which is a pain.
9243           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9244             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9245             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9246             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9247           else
9248             ld_shlibs=no
9249           fi
9250         ;;
9251       esac
9252       ;;
9253
9254     sunos4*)
9255       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9256       wlarc=
9257       hardcode_direct=yes
9258       hardcode_shlibpath_var=no
9259       ;;
9260
9261     *)
9262       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9263         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9264         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9265       else
9266         ld_shlibs=no
9267       fi
9268       ;;
9269     esac
9270
9271     if test no = "$ld_shlibs"; then
9272       runpath_var=
9273       hardcode_libdir_flag_spec=
9274       export_dynamic_flag_spec=
9275       whole_archive_flag_spec=
9276     fi
9277   else
9278     # PORTME fill in a description of your system's linker (not GNU ld)
9279     case $host_os in
9280     aix3*)
9281       allow_undefined_flag=unsupported
9282       always_export_symbols=yes
9283       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'
9284       # Note: this linker hardcodes the directories in LIBPATH if there
9285       # are no directories specified by -L.
9286       hardcode_minus_L=yes
9287       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9288         # Neither direct hardcoding nor static linking is supported with a
9289         # broken collect2.
9290         hardcode_direct=unsupported
9291       fi
9292       ;;
9293
9294     aix[4-9]*)
9295       if test ia64 = "$host_cpu"; then
9296         # On IA64, the linker does run time linking by default, so we don't
9297         # have to do anything special.
9298         aix_use_runtimelinking=no
9299         exp_sym_flag='-Bexport'
9300         no_entry_flag=
9301       else
9302         # If we're using GNU nm, then we don't want the "-C" option.
9303         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9304         # Without the "-l" option, or with the "-B" option, AIX nm treats
9305         # weak defined symbols like other global defined symbols, whereas
9306         # GNU nm marks them as "W".
9307         # While the 'weak' keyword is ignored in the Export File, we need
9308         # it in the Import File for the 'aix-soname' feature, so we have
9309         # to replace the "-B" option with "-P" for AIX nm.
9310         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9311           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9312         else
9313           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9314         fi
9315         aix_use_runtimelinking=no
9316
9317         # Test if we are trying to use run time linking or normal
9318         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9319         # have runtime linking enabled, and use it for executables.
9320         # For shared libraries, we enable/disable runtime linking
9321         # depending on the kind of the shared library created -
9322         # when "with_aix_soname,aix_use_runtimelinking" is:
9323         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9324         # "aix,yes"  lib.so          shared, rtl:yes, for executables
9325         #            lib.a           static archive
9326         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
9327         #            lib.a(lib.so.V) shared, rtl:no,  for executables
9328         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9329         #            lib.a(lib.so.V) shared, rtl:no
9330         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9331         #            lib.a           static archive
9332         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9333           for ld_flag in $LDFLAGS; do
9334           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9335             aix_use_runtimelinking=yes
9336             break
9337           fi
9338           done
9339           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9340             # With aix-soname=svr4, we create the lib.so.V shared archives only,
9341             # so we don't have lib.a shared libs to link our executables.
9342             # We have to force runtime linking in this case.
9343             aix_use_runtimelinking=yes
9344             LDFLAGS="$LDFLAGS -Wl,-brtl"
9345           fi
9346           ;;
9347         esac
9348
9349         exp_sym_flag='-bexport'
9350         no_entry_flag='-bnoentry'
9351       fi
9352
9353       # When large executables or shared objects are built, AIX ld can
9354       # have problems creating the table of contents.  If linking a library
9355       # or program results in "error TOC overflow" add -mminimal-toc to
9356       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9357       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9358
9359       archive_cmds=''
9360       hardcode_direct=yes
9361       hardcode_direct_absolute=yes
9362       hardcode_libdir_separator=':'
9363       link_all_deplibs=yes
9364       file_list_spec='$wl-f,'
9365       case $with_aix_soname,$aix_use_runtimelinking in
9366       aix,*) ;; # traditional, no import file
9367       svr4,* | *,yes) # use import file
9368         # The Import File defines what to hardcode.
9369         hardcode_direct=no
9370         hardcode_direct_absolute=no
9371         ;;
9372       esac
9373
9374       if test yes = "$GCC"; then
9375         case $host_os in aix4.[012]|aix4.[012].*)
9376         # We only want to do this on AIX 4.2 and lower, the check
9377         # below for broken collect2 doesn't work under 4.3+
9378           collect2name=`$CC -print-prog-name=collect2`
9379           if test -f "$collect2name" &&
9380            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9381           then
9382           # We have reworked collect2
9383           :
9384           else
9385           # We have old collect2
9386           hardcode_direct=unsupported
9387           # It fails to find uninstalled libraries when the uninstalled
9388           # path is not listed in the libpath.  Setting hardcode_minus_L
9389           # to unsupported forces relinking
9390           hardcode_minus_L=yes
9391           hardcode_libdir_flag_spec='-L$libdir'
9392           hardcode_libdir_separator=
9393           fi
9394           ;;
9395         esac
9396         shared_flag='-shared'
9397         if test yes = "$aix_use_runtimelinking"; then
9398           shared_flag="$shared_flag "'$wl-G'
9399         fi
9400         # Need to ensure runtime linking is disabled for the traditional
9401         # shared library, or the linker may eventually find shared libraries
9402         # /with/ Import File - we do not want to mix them.
9403         shared_flag_aix='-shared'
9404         shared_flag_svr4='-shared $wl-G'
9405       else
9406         # not using gcc
9407         if test ia64 = "$host_cpu"; then
9408         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9409         # chokes on -Wl,-G. The following line is correct:
9410           shared_flag='-G'
9411         else
9412           if test yes = "$aix_use_runtimelinking"; then
9413             shared_flag='$wl-G'
9414           else
9415             shared_flag='$wl-bM:SRE'
9416           fi
9417           shared_flag_aix='$wl-bM:SRE'
9418           shared_flag_svr4='$wl-G'
9419         fi
9420       fi
9421
9422       export_dynamic_flag_spec='$wl-bexpall'
9423       # It seems that -bexpall does not export symbols beginning with
9424       # underscore (_), so it is better to generate a list of symbols to export.
9425       always_export_symbols=yes
9426       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9427         # Warning - without using the other runtime loading flags (-brtl),
9428         # -berok will link without error, but may produce a broken library.
9429         allow_undefined_flag='-berok'
9430         # Determine the default libpath from the value encoded in an
9431         # empty executable.
9432         if test set = "${lt_cv_aix_libpath+set}"; then
9433   aix_libpath=$lt_cv_aix_libpath
9434 else
9435   if ${lt_cv_aix_libpath_+:} false; then :
9436   $as_echo_n "(cached) " >&6
9437 else
9438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9439 /* end confdefs.h.  */
9440
9441 int
9442 main ()
9443 {
9444
9445   ;
9446   return 0;
9447 }
9448 _ACEOF
9449 if ac_fn_c_try_link "$LINENO"; then :
9450
9451   lt_aix_libpath_sed='
9452       /Import File Strings/,/^$/ {
9453           /^0/ {
9454               s/^0  *\([^ ]*\) *$/\1/
9455               p
9456           }
9457       }'
9458   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9459   # Check for a 64-bit object if we didn't find anything.
9460   if test -z "$lt_cv_aix_libpath_"; then
9461     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9462   fi
9463 fi
9464 rm -f core conftest.err conftest.$ac_objext \
9465     conftest$ac_exeext conftest.$ac_ext
9466   if test -z "$lt_cv_aix_libpath_"; then
9467     lt_cv_aix_libpath_=/usr/lib:/lib
9468   fi
9469
9470 fi
9471
9472   aix_libpath=$lt_cv_aix_libpath_
9473 fi
9474
9475         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9476         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9477       else
9478         if test ia64 = "$host_cpu"; then
9479           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9480           allow_undefined_flag="-z nodefs"
9481           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"
9482         else
9483          # Determine the default libpath from the value encoded in an
9484          # empty executable.
9485          if test set = "${lt_cv_aix_libpath+set}"; then
9486   aix_libpath=$lt_cv_aix_libpath
9487 else
9488   if ${lt_cv_aix_libpath_+:} false; then :
9489   $as_echo_n "(cached) " >&6
9490 else
9491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9492 /* end confdefs.h.  */
9493
9494 int
9495 main ()
9496 {
9497
9498   ;
9499   return 0;
9500 }
9501 _ACEOF
9502 if ac_fn_c_try_link "$LINENO"; then :
9503
9504   lt_aix_libpath_sed='
9505       /Import File Strings/,/^$/ {
9506           /^0/ {
9507               s/^0  *\([^ ]*\) *$/\1/
9508               p
9509           }
9510       }'
9511   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9512   # Check for a 64-bit object if we didn't find anything.
9513   if test -z "$lt_cv_aix_libpath_"; then
9514     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9515   fi
9516 fi
9517 rm -f core conftest.err conftest.$ac_objext \
9518     conftest$ac_exeext conftest.$ac_ext
9519   if test -z "$lt_cv_aix_libpath_"; then
9520     lt_cv_aix_libpath_=/usr/lib:/lib
9521   fi
9522
9523 fi
9524
9525   aix_libpath=$lt_cv_aix_libpath_
9526 fi
9527
9528          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9529           # Warning - without using the other run time loading flags,
9530           # -berok will link without error, but may produce a broken library.
9531           no_undefined_flag=' $wl-bernotok'
9532           allow_undefined_flag=' $wl-berok'
9533           if test yes = "$with_gnu_ld"; then
9534             # We only use this code for GNU lds that support --whole-archive.
9535             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9536           else
9537             # Exported symbols can be pulled into shared objects from archives
9538             whole_archive_flag_spec='$convenience'
9539           fi
9540           archive_cmds_need_lc=yes
9541           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9542           # -brtl affects multiple linker settings, -berok does not and is overridden later
9543           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9544           if test svr4 != "$with_aix_soname"; then
9545             # This is similar to how AIX traditionally builds its shared libraries.
9546             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9547           fi
9548           if test aix != "$with_aix_soname"; then
9549             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9550           else
9551             # used by -dlpreopen to get the symbols
9552             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9553           fi
9554           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9555         fi
9556       fi
9557       ;;
9558
9559     amigaos*)
9560       case $host_cpu in
9561       powerpc)
9562             # see comment about AmigaOS4 .so support
9563             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9564             archive_expsym_cmds=''
9565         ;;
9566       m68k)
9567             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)'
9568             hardcode_libdir_flag_spec='-L$libdir'
9569             hardcode_minus_L=yes
9570         ;;
9571       esac
9572       ;;
9573
9574     bsdi[45]*)
9575       export_dynamic_flag_spec=-rdynamic
9576       ;;
9577
9578     cygwin* | mingw* | pw32* | cegcc*)
9579       # When not using gcc, we currently assume that we are using
9580       # Microsoft Visual C++.
9581       # hardcode_libdir_flag_spec is actually meaningless, as there is
9582       # no search path for DLLs.
9583       case $cc_basename in
9584       cl*)
9585         # Native MSVC
9586         hardcode_libdir_flag_spec=' '
9587         allow_undefined_flag=unsupported
9588         always_export_symbols=yes
9589         file_list_spec='@'
9590         # Tell ltmain to make .lib files, not .a files.
9591         libext=lib
9592         # Tell ltmain to make .dll files, not .so files.
9593         shrext_cmds=.dll
9594         # FIXME: Setting linknames here is a bad hack.
9595         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9596         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9597             cp "$export_symbols" "$output_objdir/$soname.def";
9598             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9599           else
9600             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9601           fi~
9602           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9603           linknames='
9604         # The linker will not automatically build a static lib if we build a DLL.
9605         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9606         enable_shared_with_static_runtimes=yes
9607         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9608         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9609         # Don't use ranlib
9610         old_postinstall_cmds='chmod 644 $oldlib'
9611         postlink_cmds='lt_outputfile="@OUTPUT@"~
9612           lt_tool_outputfile="@TOOL_OUTPUT@"~
9613           case $lt_outputfile in
9614             *.exe|*.EXE) ;;
9615             *)
9616               lt_outputfile=$lt_outputfile.exe
9617               lt_tool_outputfile=$lt_tool_outputfile.exe
9618               ;;
9619           esac~
9620           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9621             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9622             $RM "$lt_outputfile.manifest";
9623           fi'
9624         ;;
9625       *)
9626         # Assume MSVC wrapper
9627         hardcode_libdir_flag_spec=' '
9628         allow_undefined_flag=unsupported
9629         # Tell ltmain to make .lib files, not .a files.
9630         libext=lib
9631         # Tell ltmain to make .dll files, not .so files.
9632         shrext_cmds=.dll
9633         # FIXME: Setting linknames here is a bad hack.
9634         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9635         # The linker will automatically build a .lib file if we build a DLL.
9636         old_archive_from_new_cmds='true'
9637         # FIXME: Should let the user specify the lib program.
9638         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9639         enable_shared_with_static_runtimes=yes
9640         ;;
9641       esac
9642       ;;
9643
9644     darwin* | rhapsody*)
9645
9646
9647   archive_cmds_need_lc=no
9648   hardcode_direct=no
9649   hardcode_automatic=yes
9650   hardcode_shlibpath_var=unsupported
9651   if test yes = "$lt_cv_ld_force_load"; then
9652     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\"`'
9653
9654   else
9655     whole_archive_flag_spec=''
9656   fi
9657   link_all_deplibs=yes
9658   allow_undefined_flag=$_lt_dar_allow_undefined
9659   case $cc_basename in
9660      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9661      *) _lt_dar_can_shared=$GCC ;;
9662   esac
9663   if test yes = "$_lt_dar_can_shared"; then
9664     output_verbose_link_cmd=func_echo_all
9665     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9666     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9667     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"
9668     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"
9669
9670   else
9671   ld_shlibs=no
9672   fi
9673
9674       ;;
9675
9676     dgux*)
9677       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9678       hardcode_libdir_flag_spec='-L$libdir'
9679       hardcode_shlibpath_var=no
9680       ;;
9681
9682     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9683     # support.  Future versions do this automatically, but an explicit c++rt0.o
9684     # does not break anything, and helps significantly (at the cost of a little
9685     # extra space).
9686     freebsd2.2*)
9687       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9688       hardcode_libdir_flag_spec='-R$libdir'
9689       hardcode_direct=yes
9690       hardcode_shlibpath_var=no
9691       ;;
9692
9693     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9694     freebsd2.*)
9695       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9696       hardcode_direct=yes
9697       hardcode_minus_L=yes
9698       hardcode_shlibpath_var=no
9699       ;;
9700
9701     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9702     freebsd* | dragonfly*)
9703       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9704       hardcode_libdir_flag_spec='-R$libdir'
9705       hardcode_direct=yes
9706       hardcode_shlibpath_var=no
9707       ;;
9708
9709     hpux9*)
9710       if test yes = "$GCC"; then
9711         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9712       else
9713         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9714       fi
9715       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9716       hardcode_libdir_separator=:
9717       hardcode_direct=yes
9718
9719       # hardcode_minus_L: Not really in the search PATH,
9720       # but as the default location of the library.
9721       hardcode_minus_L=yes
9722       export_dynamic_flag_spec='$wl-E'
9723       ;;
9724
9725     hpux10*)
9726       if test yes,no = "$GCC,$with_gnu_ld"; then
9727         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9728       else
9729         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9730       fi
9731       if test no = "$with_gnu_ld"; then
9732         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9733         hardcode_libdir_separator=:
9734         hardcode_direct=yes
9735         hardcode_direct_absolute=yes
9736         export_dynamic_flag_spec='$wl-E'
9737         # hardcode_minus_L: Not really in the search PATH,
9738         # but as the default location of the library.
9739         hardcode_minus_L=yes
9740       fi
9741       ;;
9742
9743     hpux11*)
9744       if test yes,no = "$GCC,$with_gnu_ld"; then
9745         case $host_cpu in
9746         hppa*64*)
9747           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9748           ;;
9749         ia64*)
9750           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9751           ;;
9752         *)
9753           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9754           ;;
9755         esac
9756       else
9757         case $host_cpu in
9758         hppa*64*)
9759           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9760           ;;
9761         ia64*)
9762           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9763           ;;
9764         *)
9765
9766           # Older versions of the 11.00 compiler do not understand -b yet
9767           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9768           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9769 $as_echo_n "checking if $CC understands -b... " >&6; }
9770 if ${lt_cv_prog_compiler__b+:} false; then :
9771   $as_echo_n "(cached) " >&6
9772 else
9773   lt_cv_prog_compiler__b=no
9774    save_LDFLAGS=$LDFLAGS
9775    LDFLAGS="$LDFLAGS -b"
9776    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9777    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9778      # The linker can only warn and ignore the option if not recognized
9779      # So say no if there are warnings
9780      if test -s conftest.err; then
9781        # Append any errors to the config.log.
9782        cat conftest.err 1>&5
9783        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9784        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9785        if diff conftest.exp conftest.er2 >/dev/null; then
9786          lt_cv_prog_compiler__b=yes
9787        fi
9788      else
9789        lt_cv_prog_compiler__b=yes
9790      fi
9791    fi
9792    $RM -r conftest*
9793    LDFLAGS=$save_LDFLAGS
9794
9795 fi
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9797 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9798
9799 if test yes = "$lt_cv_prog_compiler__b"; then
9800     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9801 else
9802     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9803 fi
9804
9805           ;;
9806         esac
9807       fi
9808       if test no = "$with_gnu_ld"; then
9809         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9810         hardcode_libdir_separator=:
9811
9812         case $host_cpu in
9813         hppa*64*|ia64*)
9814           hardcode_direct=no
9815           hardcode_shlibpath_var=no
9816           ;;
9817         *)
9818           hardcode_direct=yes
9819           hardcode_direct_absolute=yes
9820           export_dynamic_flag_spec='$wl-E'
9821
9822           # hardcode_minus_L: Not really in the search PATH,
9823           # but as the default location of the library.
9824           hardcode_minus_L=yes
9825           ;;
9826         esac
9827       fi
9828       ;;
9829
9830     irix5* | irix6* | nonstopux*)
9831       if test yes = "$GCC"; then
9832         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'
9833         # Try to use the -exported_symbol ld option, if it does not
9834         # work, assume that -exports_file does not work either and
9835         # implicitly export all symbols.
9836         # This should be the same for all languages, so no per-tag cache variable.
9837         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9838 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9839 if ${lt_cv_irix_exported_symbol+:} false; then :
9840   $as_echo_n "(cached) " >&6
9841 else
9842   save_LDFLAGS=$LDFLAGS
9843            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9844            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9845 /* end confdefs.h.  */
9846 int foo (void) { return 0; }
9847 _ACEOF
9848 if ac_fn_c_try_link "$LINENO"; then :
9849   lt_cv_irix_exported_symbol=yes
9850 else
9851   lt_cv_irix_exported_symbol=no
9852 fi
9853 rm -f core conftest.err conftest.$ac_objext \
9854     conftest$ac_exeext conftest.$ac_ext
9855            LDFLAGS=$save_LDFLAGS
9856 fi
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9858 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9859         if test yes = "$lt_cv_irix_exported_symbol"; then
9860           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'
9861         fi
9862         link_all_deplibs=no
9863       else
9864         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'
9865         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'
9866       fi
9867       archive_cmds_need_lc='no'
9868       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9869       hardcode_libdir_separator=:
9870       inherit_rpath=yes
9871       link_all_deplibs=yes
9872       ;;
9873
9874     linux*)
9875       case $cc_basename in
9876       tcc*)
9877         # Fabrice Bellard et al's Tiny C Compiler
9878         ld_shlibs=yes
9879         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9880         ;;
9881       esac
9882       ;;
9883
9884     netbsd* | netbsdelf*-gnu)
9885       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9886         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9887       else
9888         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9889       fi
9890       hardcode_libdir_flag_spec='-R$libdir'
9891       hardcode_direct=yes
9892       hardcode_shlibpath_var=no
9893       ;;
9894
9895     newsos6)
9896       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9897       hardcode_direct=yes
9898       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9899       hardcode_libdir_separator=:
9900       hardcode_shlibpath_var=no
9901       ;;
9902
9903     *nto* | *qnx*)
9904       ;;
9905
9906     openbsd* | bitrig*)
9907       if test -f /usr/libexec/ld.so; then
9908         hardcode_direct=yes
9909         hardcode_shlibpath_var=no
9910         hardcode_direct_absolute=yes
9911         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9912           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9913           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9914           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9915           export_dynamic_flag_spec='$wl-E'
9916         else
9917           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9918           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9919         fi
9920       else
9921         ld_shlibs=no
9922       fi
9923       ;;
9924
9925     os2*)
9926       hardcode_libdir_flag_spec='-L$libdir'
9927       hardcode_minus_L=yes
9928       allow_undefined_flag=unsupported
9929       shrext_cmds=.dll
9930       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9931         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9932         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9933         $ECHO EXPORTS >> $output_objdir/$libname.def~
9934         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9935         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9936         emximp -o $lib $output_objdir/$libname.def'
9937       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9938         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9939         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9940         $ECHO EXPORTS >> $output_objdir/$libname.def~
9941         prefix_cmds="$SED"~
9942         if test EXPORTS = "`$SED 1q $export_symbols`"; then
9943           prefix_cmds="$prefix_cmds -e 1d";
9944         fi~
9945         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9946         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9947         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9948         emximp -o $lib $output_objdir/$libname.def'
9949       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9950       enable_shared_with_static_runtimes=yes
9951       ;;
9952
9953     osf3*)
9954       if test yes = "$GCC"; then
9955         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9956         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'
9957       else
9958         allow_undefined_flag=' -expect_unresolved \*'
9959         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'
9960       fi
9961       archive_cmds_need_lc='no'
9962       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9963       hardcode_libdir_separator=:
9964       ;;
9965
9966     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9967       if test yes = "$GCC"; then
9968         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9969         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'
9970         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9971       else
9972         allow_undefined_flag=' -expect_unresolved \*'
9973         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'
9974         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~
9975           $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'
9976
9977         # Both c and cxx compiler support -rpath directly
9978         hardcode_libdir_flag_spec='-rpath $libdir'
9979       fi
9980       archive_cmds_need_lc='no'
9981       hardcode_libdir_separator=:
9982       ;;
9983
9984     solaris*)
9985       no_undefined_flag=' -z defs'
9986       if test yes = "$GCC"; then
9987         wlarc='$wl'
9988         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9989         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9990           $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'
9991       else
9992         case `$CC -V 2>&1` in
9993         *"Compilers 5.0"*)
9994           wlarc=''
9995           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9996           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9997             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9998           ;;
9999         *)
10000           wlarc='$wl'
10001           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10002           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10003             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10004           ;;
10005         esac
10006       fi
10007       hardcode_libdir_flag_spec='-R$libdir'
10008       hardcode_shlibpath_var=no
10009       case $host_os in
10010       solaris2.[0-5] | solaris2.[0-5].*) ;;
10011       *)
10012         # The compiler driver will combine and reorder linker options,
10013         # but understands '-z linker_flag'.  GCC discards it without '$wl',
10014         # but is careful enough not to reorder.
10015         # Supported since Solaris 2.6 (maybe 2.5.1?)
10016         if test yes = "$GCC"; then
10017           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10018         else
10019           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10020         fi
10021         ;;
10022       esac
10023       link_all_deplibs=yes
10024       ;;
10025
10026     sunos4*)
10027       if test sequent = "$host_vendor"; then
10028         # Use $CC to link under sequent, because it throws in some extra .o
10029         # files that make .init and .fini sections work.
10030         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10031       else
10032         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10033       fi
10034       hardcode_libdir_flag_spec='-L$libdir'
10035       hardcode_direct=yes
10036       hardcode_minus_L=yes
10037       hardcode_shlibpath_var=no
10038       ;;
10039
10040     sysv4)
10041       case $host_vendor in
10042         sni)
10043           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10044           hardcode_direct=yes # is this really true???
10045         ;;
10046         siemens)
10047           ## LD is ld it makes a PLAMLIB
10048           ## CC just makes a GrossModule.
10049           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10050           reload_cmds='$CC -r -o $output$reload_objs'
10051           hardcode_direct=no
10052         ;;
10053         motorola)
10054           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10055           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10056         ;;
10057       esac
10058       runpath_var='LD_RUN_PATH'
10059       hardcode_shlibpath_var=no
10060       ;;
10061
10062     sysv4.3*)
10063       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10064       hardcode_shlibpath_var=no
10065       export_dynamic_flag_spec='-Bexport'
10066       ;;
10067
10068     sysv4*MP*)
10069       if test -d /usr/nec; then
10070         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10071         hardcode_shlibpath_var=no
10072         runpath_var=LD_RUN_PATH
10073         hardcode_runpath_var=yes
10074         ld_shlibs=yes
10075       fi
10076       ;;
10077
10078     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10079       no_undefined_flag='$wl-z,text'
10080       archive_cmds_need_lc=no
10081       hardcode_shlibpath_var=no
10082       runpath_var='LD_RUN_PATH'
10083
10084       if test yes = "$GCC"; then
10085         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10086         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10087       else
10088         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10089         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10090       fi
10091       ;;
10092
10093     sysv5* | sco3.2v5* | sco5v6*)
10094       # Note: We CANNOT use -z defs as we might desire, because we do not
10095       # link with -lc, and that would cause any symbols used from libc to
10096       # always be unresolved, which means just about no library would
10097       # ever link correctly.  If we're not using GNU ld we use -z text
10098       # though, which does catch some bad symbols but isn't as heavy-handed
10099       # as -z defs.
10100       no_undefined_flag='$wl-z,text'
10101       allow_undefined_flag='$wl-z,nodefs'
10102       archive_cmds_need_lc=no
10103       hardcode_shlibpath_var=no
10104       hardcode_libdir_flag_spec='$wl-R,$libdir'
10105       hardcode_libdir_separator=':'
10106       link_all_deplibs=yes
10107       export_dynamic_flag_spec='$wl-Bexport'
10108       runpath_var='LD_RUN_PATH'
10109
10110       if test yes = "$GCC"; then
10111         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10112         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10113       else
10114         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10115         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10116       fi
10117       ;;
10118
10119     uts4*)
10120       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10121       hardcode_libdir_flag_spec='-L$libdir'
10122       hardcode_shlibpath_var=no
10123       ;;
10124
10125     *)
10126       ld_shlibs=no
10127       ;;
10128     esac
10129
10130     if test sni = "$host_vendor"; then
10131       case $host in
10132       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10133         export_dynamic_flag_spec='$wl-Blargedynsym'
10134         ;;
10135       esac
10136     fi
10137   fi
10138
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10140 $as_echo "$ld_shlibs" >&6; }
10141 test no = "$ld_shlibs" && can_build_shared=no
10142
10143 with_gnu_ld=$with_gnu_ld
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159 #
10160 # Do we need to explicitly link libc?
10161 #
10162 case "x$archive_cmds_need_lc" in
10163 x|xyes)
10164   # Assume -lc should be added
10165   archive_cmds_need_lc=yes
10166
10167   if test yes,yes = "$GCC,$enable_shared"; then
10168     case $archive_cmds in
10169     *'~'*)
10170       # FIXME: we may have to deal with multi-command sequences.
10171       ;;
10172     '$CC '*)
10173       # Test whether the compiler implicitly links with -lc since on some
10174       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10175       # to ld, don't add -lc before -lgcc.
10176       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10177 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10178 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10179   $as_echo_n "(cached) " >&6
10180 else
10181   $RM conftest*
10182         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10183
10184         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10185   (eval $ac_compile) 2>&5
10186   ac_status=$?
10187   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10188   test $ac_status = 0; } 2>conftest.err; then
10189           soname=conftest
10190           lib=conftest
10191           libobjs=conftest.$ac_objext
10192           deplibs=
10193           wl=$lt_prog_compiler_wl
10194           pic_flag=$lt_prog_compiler_pic
10195           compiler_flags=-v
10196           linker_flags=-v
10197           verstring=
10198           output_objdir=.
10199           libname=conftest
10200           lt_save_allow_undefined_flag=$allow_undefined_flag
10201           allow_undefined_flag=
10202           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10203   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10204   ac_status=$?
10205   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10206   test $ac_status = 0; }
10207           then
10208             lt_cv_archive_cmds_need_lc=no
10209           else
10210             lt_cv_archive_cmds_need_lc=yes
10211           fi
10212           allow_undefined_flag=$lt_save_allow_undefined_flag
10213         else
10214           cat conftest.err 1>&5
10215         fi
10216         $RM conftest*
10217
10218 fi
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10220 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10221       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10222       ;;
10223     esac
10224   fi
10225   ;;
10226 esac
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10380 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10381
10382 if test yes = "$GCC"; then
10383   case $host_os in
10384     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10385     *) lt_awk_arg='/^libraries:/' ;;
10386   esac
10387   case $host_os in
10388     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10389     *) lt_sed_strip_eq='s|=/|/|g' ;;
10390   esac
10391   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10392   case $lt_search_path_spec in
10393   *\;*)
10394     # if the path contains ";" then we assume it to be the separator
10395     # otherwise default to the standard path separator (i.e. ":") - it is
10396     # assumed that no part of a normal pathname contains ";" but that should
10397     # okay in the real world where ";" in dirpaths is itself problematic.
10398     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10399     ;;
10400   *)
10401     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10402     ;;
10403   esac
10404   # Ok, now we have the path, separated by spaces, we can step through it
10405   # and add multilib dir if necessary...
10406   lt_tmp_lt_search_path_spec=
10407   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10408   # ...but if some path component already ends with the multilib dir we assume
10409   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10410   case "$lt_multi_os_dir; $lt_search_path_spec " in
10411   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10412     lt_multi_os_dir=
10413     ;;
10414   esac
10415   for lt_sys_path in $lt_search_path_spec; do
10416     if test -d "$lt_sys_path$lt_multi_os_dir"; then
10417       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10418     elif test -n "$lt_multi_os_dir"; then
10419       test -d "$lt_sys_path" && \
10420         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10421     fi
10422   done
10423   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10424 BEGIN {RS = " "; FS = "/|\n";} {
10425   lt_foo = "";
10426   lt_count = 0;
10427   for (lt_i = NF; lt_i > 0; lt_i--) {
10428     if ($lt_i != "" && $lt_i != ".") {
10429       if ($lt_i == "..") {
10430         lt_count++;
10431       } else {
10432         if (lt_count == 0) {
10433           lt_foo = "/" $lt_i lt_foo;
10434         } else {
10435           lt_count--;
10436         }
10437       }
10438     }
10439   }
10440   if (lt_foo != "") { lt_freq[lt_foo]++; }
10441   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10442 }'`
10443   # AWK program above erroneously prepends '/' to C:/dos/paths
10444   # for these hosts.
10445   case $host_os in
10446     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10447       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10448   esac
10449   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10450 else
10451   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10452 fi
10453 library_names_spec=
10454 libname_spec='lib$name'
10455 soname_spec=
10456 shrext_cmds=.so
10457 postinstall_cmds=
10458 postuninstall_cmds=
10459 finish_cmds=
10460 finish_eval=
10461 shlibpath_var=
10462 shlibpath_overrides_runpath=unknown
10463 version_type=none
10464 dynamic_linker="$host_os ld.so"
10465 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10466 need_lib_prefix=unknown
10467 hardcode_into_libs=no
10468
10469 # when you set need_version to no, make sure it does not cause -set_version
10470 # flags to be left without arguments
10471 need_version=unknown
10472
10473
10474
10475 case $host_os in
10476 aix3*)
10477   version_type=linux # correct to gnu/linux during the next big refactor
10478   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10479   shlibpath_var=LIBPATH
10480
10481   # AIX 3 has no versioning support, so we append a major version to the name.
10482   soname_spec='$libname$release$shared_ext$major'
10483   ;;
10484
10485 aix[4-9]*)
10486   version_type=linux # correct to gnu/linux during the next big refactor
10487   need_lib_prefix=no
10488   need_version=no
10489   hardcode_into_libs=yes
10490   if test ia64 = "$host_cpu"; then
10491     # AIX 5 supports IA64
10492     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10493     shlibpath_var=LD_LIBRARY_PATH
10494   else
10495     # With GCC up to 2.95.x, collect2 would create an import file
10496     # for dependence libraries.  The import file would start with
10497     # the line '#! .'.  This would cause the generated library to
10498     # depend on '.', always an invalid library.  This was fixed in
10499     # development snapshots of GCC prior to 3.0.
10500     case $host_os in
10501       aix4 | aix4.[01] | aix4.[01].*)
10502       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10503            echo ' yes '
10504            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10505         :
10506       else
10507         can_build_shared=no
10508       fi
10509       ;;
10510     esac
10511     # Using Import Files as archive members, it is possible to support
10512     # filename-based versioning of shared library archives on AIX. While
10513     # this would work for both with and without runtime linking, it will
10514     # prevent static linking of such archives. So we do filename-based
10515     # shared library versioning with .so extension only, which is used
10516     # when both runtime linking and shared linking is enabled.
10517     # Unfortunately, runtime linking may impact performance, so we do
10518     # not want this to be the default eventually. Also, we use the
10519     # versioned .so libs for executables only if there is the -brtl
10520     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10521     # To allow for filename-based versioning support, we need to create
10522     # libNAME.so.V as an archive file, containing:
10523     # *) an Import File, referring to the versioned filename of the
10524     #    archive as well as the shared archive member, telling the
10525     #    bitwidth (32 or 64) of that shared object, and providing the
10526     #    list of exported symbols of that shared object, eventually
10527     #    decorated with the 'weak' keyword
10528     # *) the shared object with the F_LOADONLY flag set, to really avoid
10529     #    it being seen by the linker.
10530     # At run time we better use the real file rather than another symlink,
10531     # but for link time we create the symlink libNAME.so -> libNAME.so.V
10532
10533     case $with_aix_soname,$aix_use_runtimelinking in
10534     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10535     # soname into executable. Probably we can add versioning support to
10536     # collect2, so additional links can be useful in future.
10537     aix,yes) # traditional libtool
10538       dynamic_linker='AIX unversionable lib.so'
10539       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10540       # instead of lib<name>.a to let people know that these are not
10541       # typical AIX shared libraries.
10542       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10543       ;;
10544     aix,no) # traditional AIX only
10545       dynamic_linker='AIX lib.a(lib.so.V)'
10546       # We preserve .a as extension for shared libraries through AIX4.2
10547       # and later when we are not doing run time linking.
10548       library_names_spec='$libname$release.a $libname.a'
10549       soname_spec='$libname$release$shared_ext$major'
10550       ;;
10551     svr4,*) # full svr4 only
10552       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10553       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10554       # We do not specify a path in Import Files, so LIBPATH fires.
10555       shlibpath_overrides_runpath=yes
10556       ;;
10557     *,yes) # both, prefer svr4
10558       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10559       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10560       # unpreferred sharedlib libNAME.a needs extra handling
10561       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10562       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10563       # We do not specify a path in Import Files, so LIBPATH fires.
10564       shlibpath_overrides_runpath=yes
10565       ;;
10566     *,no) # both, prefer aix
10567       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10568       library_names_spec='$libname$release.a $libname.a'
10569       soname_spec='$libname$release$shared_ext$major'
10570       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10571       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10572       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10573       ;;
10574     esac
10575     shlibpath_var=LIBPATH
10576   fi
10577   ;;
10578
10579 amigaos*)
10580   case $host_cpu in
10581   powerpc)
10582     # Since July 2007 AmigaOS4 officially supports .so libraries.
10583     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10584     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10585     ;;
10586   m68k)
10587     library_names_spec='$libname.ixlibrary $libname.a'
10588     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10589     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10590     ;;
10591   esac
10592   ;;
10593
10594 beos*)
10595   library_names_spec='$libname$shared_ext'
10596   dynamic_linker="$host_os ld.so"
10597   shlibpath_var=LIBRARY_PATH
10598   ;;
10599
10600 bsdi[45]*)
10601   version_type=linux # correct to gnu/linux during the next big refactor
10602   need_version=no
10603   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10604   soname_spec='$libname$release$shared_ext$major'
10605   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10606   shlibpath_var=LD_LIBRARY_PATH
10607   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10608   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10609   # the default ld.so.conf also contains /usr/contrib/lib and
10610   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10611   # libtool to hard-code these into programs
10612   ;;
10613
10614 cygwin* | mingw* | pw32* | cegcc*)
10615   version_type=windows
10616   shrext_cmds=.dll
10617   need_version=no
10618   need_lib_prefix=no
10619
10620   case $GCC,$cc_basename in
10621   yes,*)
10622     # gcc
10623     library_names_spec='$libname.dll.a'
10624     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10625     postinstall_cmds='base_file=`basename \$file`~
10626       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10627       dldir=$destdir/`dirname \$dlpath`~
10628       test -d \$dldir || mkdir -p \$dldir~
10629       $install_prog $dir/$dlname \$dldir/$dlname~
10630       chmod a+x \$dldir/$dlname~
10631       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10632         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10633       fi'
10634     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10635       dlpath=$dir/\$dldll~
10636        $RM \$dlpath'
10637     shlibpath_overrides_runpath=yes
10638
10639     case $host_os in
10640     cygwin*)
10641       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10642       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10643
10644       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10645       ;;
10646     mingw* | cegcc*)
10647       # MinGW DLLs use traditional 'lib' prefix
10648       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10649       ;;
10650     pw32*)
10651       # pw32 DLLs use 'pw' prefix rather than 'lib'
10652       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10653       ;;
10654     esac
10655     dynamic_linker='Win32 ld.exe'
10656     ;;
10657
10658   *,cl*)
10659     # Native MSVC
10660     libname_spec='$name'
10661     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10662     library_names_spec='$libname.dll.lib'
10663
10664     case $build_os in
10665     mingw*)
10666       sys_lib_search_path_spec=
10667       lt_save_ifs=$IFS
10668       IFS=';'
10669       for lt_path in $LIB
10670       do
10671         IFS=$lt_save_ifs
10672         # Let DOS variable expansion print the short 8.3 style file name.
10673         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10674         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10675       done
10676       IFS=$lt_save_ifs
10677       # Convert to MSYS style.
10678       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10679       ;;
10680     cygwin*)
10681       # Convert to unix form, then to dos form, then back to unix form
10682       # but this time dos style (no spaces!) so that the unix form looks
10683       # like /cygdrive/c/PROGRA~1:/cygdr...
10684       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10685       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10686       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10687       ;;
10688     *)
10689       sys_lib_search_path_spec=$LIB
10690       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10691         # It is most probably a Windows format PATH.
10692         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10693       else
10694         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10695       fi
10696       # FIXME: find the short name or the path components, as spaces are
10697       # common. (e.g. "Program Files" -> "PROGRA~1")
10698       ;;
10699     esac
10700
10701     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10702     postinstall_cmds='base_file=`basename \$file`~
10703       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10704       dldir=$destdir/`dirname \$dlpath`~
10705       test -d \$dldir || mkdir -p \$dldir~
10706       $install_prog $dir/$dlname \$dldir/$dlname'
10707     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10708       dlpath=$dir/\$dldll~
10709        $RM \$dlpath'
10710     shlibpath_overrides_runpath=yes
10711     dynamic_linker='Win32 link.exe'
10712     ;;
10713
10714   *)
10715     # Assume MSVC wrapper
10716     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10717     dynamic_linker='Win32 ld.exe'
10718     ;;
10719   esac
10720   # FIXME: first we should search . and the directory the executable is in
10721   shlibpath_var=PATH
10722   ;;
10723
10724 darwin* | rhapsody*)
10725   dynamic_linker="$host_os dyld"
10726   version_type=darwin
10727   need_lib_prefix=no
10728   need_version=no
10729   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10730   soname_spec='$libname$release$major$shared_ext'
10731   shlibpath_overrides_runpath=yes
10732   shlibpath_var=DYLD_LIBRARY_PATH
10733   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10734
10735   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10736   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10737   ;;
10738
10739 dgux*)
10740   version_type=linux # correct to gnu/linux during the next big refactor
10741   need_lib_prefix=no
10742   need_version=no
10743   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10744   soname_spec='$libname$release$shared_ext$major'
10745   shlibpath_var=LD_LIBRARY_PATH
10746   ;;
10747
10748 freebsd* | dragonfly*)
10749   # DragonFly does not have aout.  When/if they implement a new
10750   # versioning mechanism, adjust this.
10751   if test -x /usr/bin/objformat; then
10752     objformat=`/usr/bin/objformat`
10753   else
10754     case $host_os in
10755     freebsd[23].*) objformat=aout ;;
10756     *) objformat=elf ;;
10757     esac
10758   fi
10759   version_type=freebsd-$objformat
10760   case $version_type in
10761     freebsd-elf*)
10762       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10763       soname_spec='$libname$release$shared_ext$major'
10764       need_version=no
10765       need_lib_prefix=no
10766       ;;
10767     freebsd-*)
10768       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10769       need_version=yes
10770       ;;
10771   esac
10772   shlibpath_var=LD_LIBRARY_PATH
10773   case $host_os in
10774   freebsd2.*)
10775     shlibpath_overrides_runpath=yes
10776     ;;
10777   freebsd3.[01]* | freebsdelf3.[01]*)
10778     shlibpath_overrides_runpath=yes
10779     hardcode_into_libs=yes
10780     ;;
10781   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10782   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10783     shlibpath_overrides_runpath=no
10784     hardcode_into_libs=yes
10785     ;;
10786   *) # from 4.6 on, and DragonFly
10787     shlibpath_overrides_runpath=yes
10788     hardcode_into_libs=yes
10789     ;;
10790   esac
10791   ;;
10792
10793 haiku*)
10794   version_type=linux # correct to gnu/linux during the next big refactor
10795   need_lib_prefix=no
10796   need_version=no
10797   dynamic_linker="$host_os runtime_loader"
10798   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10799   soname_spec='$libname$release$shared_ext$major'
10800   shlibpath_var=LIBRARY_PATH
10801   shlibpath_overrides_runpath=no
10802   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10803   hardcode_into_libs=yes
10804   ;;
10805
10806 hpux9* | hpux10* | hpux11*)
10807   # Give a soname corresponding to the major version so that dld.sl refuses to
10808   # link against other versions.
10809   version_type=sunos
10810   need_lib_prefix=no
10811   need_version=no
10812   case $host_cpu in
10813   ia64*)
10814     shrext_cmds='.so'
10815     hardcode_into_libs=yes
10816     dynamic_linker="$host_os dld.so"
10817     shlibpath_var=LD_LIBRARY_PATH
10818     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10819     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10820     soname_spec='$libname$release$shared_ext$major'
10821     if test 32 = "$HPUX_IA64_MODE"; then
10822       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10823       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10824     else
10825       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10826       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10827     fi
10828     ;;
10829   hppa*64*)
10830     shrext_cmds='.sl'
10831     hardcode_into_libs=yes
10832     dynamic_linker="$host_os dld.sl"
10833     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10834     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10835     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10836     soname_spec='$libname$release$shared_ext$major'
10837     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10838     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10839     ;;
10840   *)
10841     shrext_cmds='.sl'
10842     dynamic_linker="$host_os dld.sl"
10843     shlibpath_var=SHLIB_PATH
10844     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10845     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10846     soname_spec='$libname$release$shared_ext$major'
10847     ;;
10848   esac
10849   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10850   postinstall_cmds='chmod 555 $lib'
10851   # or fails outright, so override atomically:
10852   install_override_mode=555
10853   ;;
10854
10855 interix[3-9]*)
10856   version_type=linux # correct to gnu/linux during the next big refactor
10857   need_lib_prefix=no
10858   need_version=no
10859   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10860   soname_spec='$libname$release$shared_ext$major'
10861   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10862   shlibpath_var=LD_LIBRARY_PATH
10863   shlibpath_overrides_runpath=no
10864   hardcode_into_libs=yes
10865   ;;
10866
10867 irix5* | irix6* | nonstopux*)
10868   case $host_os in
10869     nonstopux*) version_type=nonstopux ;;
10870     *)
10871         if test yes = "$lt_cv_prog_gnu_ld"; then
10872                 version_type=linux # correct to gnu/linux during the next big refactor
10873         else
10874                 version_type=irix
10875         fi ;;
10876   esac
10877   need_lib_prefix=no
10878   need_version=no
10879   soname_spec='$libname$release$shared_ext$major'
10880   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10881   case $host_os in
10882   irix5* | nonstopux*)
10883     libsuff= shlibsuff=
10884     ;;
10885   *)
10886     case $LD in # libtool.m4 will add one of these switches to LD
10887     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10888       libsuff= shlibsuff= libmagic=32-bit;;
10889     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10890       libsuff=32 shlibsuff=N32 libmagic=N32;;
10891     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10892       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10893     *) libsuff= shlibsuff= libmagic=never-match;;
10894     esac
10895     ;;
10896   esac
10897   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10898   shlibpath_overrides_runpath=no
10899   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10900   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10901   hardcode_into_libs=yes
10902   ;;
10903
10904 # No shared lib support for Linux oldld, aout, or coff.
10905 linux*oldld* | linux*aout* | linux*coff*)
10906   dynamic_linker=no
10907   ;;
10908
10909 linux*android*)
10910   version_type=none # Android doesn't support versioned libraries.
10911   need_lib_prefix=no
10912   need_version=no
10913   library_names_spec='$libname$release$shared_ext'
10914   soname_spec='$libname$release$shared_ext'
10915   finish_cmds=
10916   shlibpath_var=LD_LIBRARY_PATH
10917   shlibpath_overrides_runpath=yes
10918
10919   # This implies no fast_install, which is unacceptable.
10920   # Some rework will be needed to allow for fast_install
10921   # before this can be enabled.
10922   hardcode_into_libs=yes
10923
10924   dynamic_linker='Android linker'
10925   # Don't embed -rpath directories since the linker doesn't support them.
10926   hardcode_libdir_flag_spec='-L$libdir'
10927   ;;
10928
10929 # This must be glibc/ELF.
10930 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10931   version_type=linux # correct to gnu/linux during the next big refactor
10932   need_lib_prefix=no
10933   need_version=no
10934   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10935   soname_spec='$libname$release$shared_ext$major'
10936   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10937   shlibpath_var=LD_LIBRARY_PATH
10938   shlibpath_overrides_runpath=no
10939
10940   # Some binutils ld are patched to set DT_RUNPATH
10941   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10942   $as_echo_n "(cached) " >&6
10943 else
10944   lt_cv_shlibpath_overrides_runpath=no
10945     save_LDFLAGS=$LDFLAGS
10946     save_libdir=$libdir
10947     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10948          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10949     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10950 /* end confdefs.h.  */
10951
10952 int
10953 main ()
10954 {
10955
10956   ;
10957   return 0;
10958 }
10959 _ACEOF
10960 if ac_fn_c_try_link "$LINENO"; then :
10961   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10962   lt_cv_shlibpath_overrides_runpath=yes
10963 fi
10964 fi
10965 rm -f core conftest.err conftest.$ac_objext \
10966     conftest$ac_exeext conftest.$ac_ext
10967     LDFLAGS=$save_LDFLAGS
10968     libdir=$save_libdir
10969
10970 fi
10971
10972   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10973
10974   # This implies no fast_install, which is unacceptable.
10975   # Some rework will be needed to allow for fast_install
10976   # before this can be enabled.
10977   hardcode_into_libs=yes
10978
10979   # Ideally, we could use ldconfig to report *all* directores which are
10980   # searched for libraries, however this is still not possible.  Aside from not
10981   # being certain /sbin/ldconfig is available, command
10982   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10983   # even though it is searched at run-time.  Try to do the best guess by
10984   # appending ld.so.conf contents (and includes) to the search path.
10985   if test -f /etc/ld.so.conf; then
10986     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' ' '`
10987     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10988   fi
10989
10990   # We used to test for /lib/ld.so.1 and disable shared libraries on
10991   # powerpc, because MkLinux only supported shared libraries with the
10992   # GNU dynamic linker.  Since this was broken with cross compilers,
10993   # most powerpc-linux boxes support dynamic linking these days and
10994   # people can always --disable-shared, the test was removed, and we
10995   # assume the GNU/Linux dynamic linker is in use.
10996   dynamic_linker='GNU/Linux ld.so'
10997   ;;
10998
10999 netbsdelf*-gnu)
11000   version_type=linux
11001   need_lib_prefix=no
11002   need_version=no
11003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11004   soname_spec='${libname}${release}${shared_ext}$major'
11005   shlibpath_var=LD_LIBRARY_PATH
11006   shlibpath_overrides_runpath=no
11007   hardcode_into_libs=yes
11008   dynamic_linker='NetBSD ld.elf_so'
11009   ;;
11010
11011 netbsd*)
11012   version_type=sunos
11013   need_lib_prefix=no
11014   need_version=no
11015   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11016     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11017     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11018     dynamic_linker='NetBSD (a.out) ld.so'
11019   else
11020     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11021     soname_spec='$libname$release$shared_ext$major'
11022     dynamic_linker='NetBSD ld.elf_so'
11023   fi
11024   shlibpath_var=LD_LIBRARY_PATH
11025   shlibpath_overrides_runpath=yes
11026   hardcode_into_libs=yes
11027   ;;
11028
11029 newsos6)
11030   version_type=linux # correct to gnu/linux during the next big refactor
11031   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11032   shlibpath_var=LD_LIBRARY_PATH
11033   shlibpath_overrides_runpath=yes
11034   ;;
11035
11036 *nto* | *qnx*)
11037   version_type=qnx
11038   need_lib_prefix=no
11039   need_version=no
11040   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11041   soname_spec='$libname$release$shared_ext$major'
11042   shlibpath_var=LD_LIBRARY_PATH
11043   shlibpath_overrides_runpath=no
11044   hardcode_into_libs=yes
11045   dynamic_linker='ldqnx.so'
11046   ;;
11047
11048 openbsd* | bitrig*)
11049   version_type=sunos
11050   sys_lib_dlsearch_path_spec=/usr/lib
11051   need_lib_prefix=no
11052   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11053     need_version=no
11054   else
11055     need_version=yes
11056   fi
11057   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11058   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11059   shlibpath_var=LD_LIBRARY_PATH
11060   shlibpath_overrides_runpath=yes
11061   ;;
11062
11063 os2*)
11064   libname_spec='$name'
11065   version_type=windows
11066   shrext_cmds=.dll
11067   need_version=no
11068   need_lib_prefix=no
11069   # OS/2 can only load a DLL with a base name of 8 characters or less.
11070   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11071     v=$($ECHO $release$versuffix | tr -d .-);
11072     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11073     $ECHO $n$v`$shared_ext'
11074   library_names_spec='${libname}_dll.$libext'
11075   dynamic_linker='OS/2 ld.exe'
11076   shlibpath_var=BEGINLIBPATH
11077   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11078   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11079   postinstall_cmds='base_file=`basename \$file`~
11080     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11081     dldir=$destdir/`dirname \$dlpath`~
11082     test -d \$dldir || mkdir -p \$dldir~
11083     $install_prog $dir/$dlname \$dldir/$dlname~
11084     chmod a+x \$dldir/$dlname~
11085     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11086       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11087     fi'
11088   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11089     dlpath=$dir/\$dldll~
11090     $RM \$dlpath'
11091   ;;
11092
11093 osf3* | osf4* | osf5*)
11094   version_type=osf
11095   need_lib_prefix=no
11096   need_version=no
11097   soname_spec='$libname$release$shared_ext$major'
11098   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11099   shlibpath_var=LD_LIBRARY_PATH
11100   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11101   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11102   ;;
11103
11104 rdos*)
11105   dynamic_linker=no
11106   ;;
11107
11108 solaris*)
11109   version_type=linux # correct to gnu/linux during the next big refactor
11110   need_lib_prefix=no
11111   need_version=no
11112   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11113   soname_spec='$libname$release$shared_ext$major'
11114   shlibpath_var=LD_LIBRARY_PATH
11115   shlibpath_overrides_runpath=yes
11116   hardcode_into_libs=yes
11117   # ldd complains unless libraries are executable
11118   postinstall_cmds='chmod +x $lib'
11119   ;;
11120
11121 sunos4*)
11122   version_type=sunos
11123   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11124   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11125   shlibpath_var=LD_LIBRARY_PATH
11126   shlibpath_overrides_runpath=yes
11127   if test yes = "$with_gnu_ld"; then
11128     need_lib_prefix=no
11129   fi
11130   need_version=yes
11131   ;;
11132
11133 sysv4 | sysv4.3*)
11134   version_type=linux # correct to gnu/linux during the next big refactor
11135   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11136   soname_spec='$libname$release$shared_ext$major'
11137   shlibpath_var=LD_LIBRARY_PATH
11138   case $host_vendor in
11139     sni)
11140       shlibpath_overrides_runpath=no
11141       need_lib_prefix=no
11142       runpath_var=LD_RUN_PATH
11143       ;;
11144     siemens)
11145       need_lib_prefix=no
11146       ;;
11147     motorola)
11148       need_lib_prefix=no
11149       need_version=no
11150       shlibpath_overrides_runpath=no
11151       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11152       ;;
11153   esac
11154   ;;
11155
11156 sysv4*MP*)
11157   if test -d /usr/nec; then
11158     version_type=linux # correct to gnu/linux during the next big refactor
11159     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11160     soname_spec='$libname$shared_ext.$major'
11161     shlibpath_var=LD_LIBRARY_PATH
11162   fi
11163   ;;
11164
11165 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11166   version_type=sco
11167   need_lib_prefix=no
11168   need_version=no
11169   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11170   soname_spec='$libname$release$shared_ext$major'
11171   shlibpath_var=LD_LIBRARY_PATH
11172   shlibpath_overrides_runpath=yes
11173   hardcode_into_libs=yes
11174   if test yes = "$with_gnu_ld"; then
11175     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11176   else
11177     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11178     case $host_os in
11179       sco3.2v5*)
11180         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11181         ;;
11182     esac
11183   fi
11184   sys_lib_dlsearch_path_spec='/usr/lib'
11185   ;;
11186
11187 tpf*)
11188   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11189   version_type=linux # correct to gnu/linux during the next big refactor
11190   need_lib_prefix=no
11191   need_version=no
11192   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11193   shlibpath_var=LD_LIBRARY_PATH
11194   shlibpath_overrides_runpath=no
11195   hardcode_into_libs=yes
11196   ;;
11197
11198 uts4*)
11199   version_type=linux # correct to gnu/linux during the next big refactor
11200   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11201   soname_spec='$libname$release$shared_ext$major'
11202   shlibpath_var=LD_LIBRARY_PATH
11203   ;;
11204
11205 *)
11206   dynamic_linker=no
11207   ;;
11208 esac
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11210 $as_echo "$dynamic_linker" >&6; }
11211 test no = "$dynamic_linker" && can_build_shared=no
11212
11213 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11214 if test yes = "$GCC"; then
11215   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11216 fi
11217
11218 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11219   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11220 fi
11221
11222 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11223   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11224 fi
11225
11226 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11227 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11228
11229 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11230 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11231
11232 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11233 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11332 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11333 hardcode_action=
11334 if test -n "$hardcode_libdir_flag_spec" ||
11335    test -n "$runpath_var" ||
11336    test yes = "$hardcode_automatic"; then
11337
11338   # We can hardcode non-existent directories.
11339   if test no != "$hardcode_direct" &&
11340      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11341      # have to relink, otherwise we might link with an installed library
11342      # when we should be linking with a yet-to-be-installed one
11343      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11344      test no != "$hardcode_minus_L"; then
11345     # Linking always hardcodes the temporary library directory.
11346     hardcode_action=relink
11347   else
11348     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11349     hardcode_action=immediate
11350   fi
11351 else
11352   # We cannot hardcode anything, or else we can only hardcode existing
11353   # directories.
11354   hardcode_action=unsupported
11355 fi
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11357 $as_echo "$hardcode_action" >&6; }
11358
11359 if test relink = "$hardcode_action" ||
11360    test yes = "$inherit_rpath"; then
11361   # Fast installation is not supported
11362   enable_fast_install=no
11363 elif test yes = "$shlibpath_overrides_runpath" ||
11364      test no = "$enable_shared"; then
11365   # Fast installation is not necessary
11366   enable_fast_install=needless
11367 fi
11368
11369
11370
11371
11372
11373
11374   if test yes != "$enable_dlopen"; then
11375   enable_dlopen=unknown
11376   enable_dlopen_self=unknown
11377   enable_dlopen_self_static=unknown
11378 else
11379   lt_cv_dlopen=no
11380   lt_cv_dlopen_libs=
11381
11382   case $host_os in
11383   beos*)
11384     lt_cv_dlopen=load_add_on
11385     lt_cv_dlopen_libs=
11386     lt_cv_dlopen_self=yes
11387     ;;
11388
11389   mingw* | pw32* | cegcc*)
11390     lt_cv_dlopen=LoadLibrary
11391     lt_cv_dlopen_libs=
11392     ;;
11393
11394   cygwin*)
11395     lt_cv_dlopen=dlopen
11396     lt_cv_dlopen_libs=
11397     ;;
11398
11399   darwin*)
11400     # if libdl is installed we need to link against it
11401     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11402 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11403 if ${ac_cv_lib_dl_dlopen+:} false; then :
11404   $as_echo_n "(cached) " >&6
11405 else
11406   ac_check_lib_save_LIBS=$LIBS
11407 LIBS="-ldl  $LIBS"
11408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11409 /* end confdefs.h.  */
11410
11411 /* Override any GCC internal prototype to avoid an error.
11412    Use char because int might match the return type of a GCC
11413    builtin and then its argument prototype would still apply.  */
11414 #ifdef __cplusplus
11415 extern "C"
11416 #endif
11417 char dlopen ();
11418 int
11419 main ()
11420 {
11421 return dlopen ();
11422   ;
11423   return 0;
11424 }
11425 _ACEOF
11426 if ac_fn_c_try_link "$LINENO"; then :
11427   ac_cv_lib_dl_dlopen=yes
11428 else
11429   ac_cv_lib_dl_dlopen=no
11430 fi
11431 rm -f core conftest.err conftest.$ac_objext \
11432     conftest$ac_exeext conftest.$ac_ext
11433 LIBS=$ac_check_lib_save_LIBS
11434 fi
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11436 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11437 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11438   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11439 else
11440
11441     lt_cv_dlopen=dyld
11442     lt_cv_dlopen_libs=
11443     lt_cv_dlopen_self=yes
11444
11445 fi
11446
11447     ;;
11448
11449   tpf*)
11450     # Don't try to run any link tests for TPF.  We know it's impossible
11451     # because TPF is a cross-compiler, and we know how we open DSOs.
11452     lt_cv_dlopen=dlopen
11453     lt_cv_dlopen_libs=
11454     lt_cv_dlopen_self=no
11455     ;;
11456
11457   *)
11458     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11459 if test "x$ac_cv_func_shl_load" = xyes; then :
11460   lt_cv_dlopen=shl_load
11461 else
11462   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11463 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11464 if ${ac_cv_lib_dld_shl_load+:} false; then :
11465   $as_echo_n "(cached) " >&6
11466 else
11467   ac_check_lib_save_LIBS=$LIBS
11468 LIBS="-ldld  $LIBS"
11469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11470 /* end confdefs.h.  */
11471
11472 /* Override any GCC internal prototype to avoid an error.
11473    Use char because int might match the return type of a GCC
11474    builtin and then its argument prototype would still apply.  */
11475 #ifdef __cplusplus
11476 extern "C"
11477 #endif
11478 char shl_load ();
11479 int
11480 main ()
11481 {
11482 return shl_load ();
11483   ;
11484   return 0;
11485 }
11486 _ACEOF
11487 if ac_fn_c_try_link "$LINENO"; then :
11488   ac_cv_lib_dld_shl_load=yes
11489 else
11490   ac_cv_lib_dld_shl_load=no
11491 fi
11492 rm -f core conftest.err conftest.$ac_objext \
11493     conftest$ac_exeext conftest.$ac_ext
11494 LIBS=$ac_check_lib_save_LIBS
11495 fi
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11497 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11498 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11499   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11500 else
11501   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11502 if test "x$ac_cv_func_dlopen" = xyes; then :
11503   lt_cv_dlopen=dlopen
11504 else
11505   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11506 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11507 if ${ac_cv_lib_dl_dlopen+:} false; then :
11508   $as_echo_n "(cached) " >&6
11509 else
11510   ac_check_lib_save_LIBS=$LIBS
11511 LIBS="-ldl  $LIBS"
11512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11513 /* end confdefs.h.  */
11514
11515 /* Override any GCC internal prototype to avoid an error.
11516    Use char because int might match the return type of a GCC
11517    builtin and then its argument prototype would still apply.  */
11518 #ifdef __cplusplus
11519 extern "C"
11520 #endif
11521 char dlopen ();
11522 int
11523 main ()
11524 {
11525 return dlopen ();
11526   ;
11527   return 0;
11528 }
11529 _ACEOF
11530 if ac_fn_c_try_link "$LINENO"; then :
11531   ac_cv_lib_dl_dlopen=yes
11532 else
11533   ac_cv_lib_dl_dlopen=no
11534 fi
11535 rm -f core conftest.err conftest.$ac_objext \
11536     conftest$ac_exeext conftest.$ac_ext
11537 LIBS=$ac_check_lib_save_LIBS
11538 fi
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11540 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11541 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11542   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11543 else
11544   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11545 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11546 if ${ac_cv_lib_svld_dlopen+:} false; then :
11547   $as_echo_n "(cached) " >&6
11548 else
11549   ac_check_lib_save_LIBS=$LIBS
11550 LIBS="-lsvld  $LIBS"
11551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11552 /* end confdefs.h.  */
11553
11554 /* Override any GCC internal prototype to avoid an error.
11555    Use char because int might match the return type of a GCC
11556    builtin and then its argument prototype would still apply.  */
11557 #ifdef __cplusplus
11558 extern "C"
11559 #endif
11560 char dlopen ();
11561 int
11562 main ()
11563 {
11564 return dlopen ();
11565   ;
11566   return 0;
11567 }
11568 _ACEOF
11569 if ac_fn_c_try_link "$LINENO"; then :
11570   ac_cv_lib_svld_dlopen=yes
11571 else
11572   ac_cv_lib_svld_dlopen=no
11573 fi
11574 rm -f core conftest.err conftest.$ac_objext \
11575     conftest$ac_exeext conftest.$ac_ext
11576 LIBS=$ac_check_lib_save_LIBS
11577 fi
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11579 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11580 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11581   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11582 else
11583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11584 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11585 if ${ac_cv_lib_dld_dld_link+:} false; then :
11586   $as_echo_n "(cached) " >&6
11587 else
11588   ac_check_lib_save_LIBS=$LIBS
11589 LIBS="-ldld  $LIBS"
11590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11591 /* end confdefs.h.  */
11592
11593 /* Override any GCC internal prototype to avoid an error.
11594    Use char because int might match the return type of a GCC
11595    builtin and then its argument prototype would still apply.  */
11596 #ifdef __cplusplus
11597 extern "C"
11598 #endif
11599 char dld_link ();
11600 int
11601 main ()
11602 {
11603 return dld_link ();
11604   ;
11605   return 0;
11606 }
11607 _ACEOF
11608 if ac_fn_c_try_link "$LINENO"; then :
11609   ac_cv_lib_dld_dld_link=yes
11610 else
11611   ac_cv_lib_dld_dld_link=no
11612 fi
11613 rm -f core conftest.err conftest.$ac_objext \
11614     conftest$ac_exeext conftest.$ac_ext
11615 LIBS=$ac_check_lib_save_LIBS
11616 fi
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11618 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11619 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11620   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11621 fi
11622
11623
11624 fi
11625
11626
11627 fi
11628
11629
11630 fi
11631
11632
11633 fi
11634
11635
11636 fi
11637
11638     ;;
11639   esac
11640
11641   if test no = "$lt_cv_dlopen"; then
11642     enable_dlopen=no
11643   else
11644     enable_dlopen=yes
11645   fi
11646
11647   case $lt_cv_dlopen in
11648   dlopen)
11649     save_CPPFLAGS=$CPPFLAGS
11650     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11651
11652     save_LDFLAGS=$LDFLAGS
11653     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11654
11655     save_LIBS=$LIBS
11656     LIBS="$lt_cv_dlopen_libs $LIBS"
11657
11658     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11659 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11660 if ${lt_cv_dlopen_self+:} false; then :
11661   $as_echo_n "(cached) " >&6
11662 else
11663           if test yes = "$cross_compiling"; then :
11664   lt_cv_dlopen_self=cross
11665 else
11666   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11667   lt_status=$lt_dlunknown
11668   cat > conftest.$ac_ext <<_LT_EOF
11669 #line $LINENO "configure"
11670 #include "confdefs.h"
11671
11672 #if HAVE_DLFCN_H
11673 #include <dlfcn.h>
11674 #endif
11675
11676 #include <stdio.h>
11677
11678 #ifdef RTLD_GLOBAL
11679 #  define LT_DLGLOBAL           RTLD_GLOBAL
11680 #else
11681 #  ifdef DL_GLOBAL
11682 #    define LT_DLGLOBAL         DL_GLOBAL
11683 #  else
11684 #    define LT_DLGLOBAL         0
11685 #  endif
11686 #endif
11687
11688 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11689    find out it does not work in some platform. */
11690 #ifndef LT_DLLAZY_OR_NOW
11691 #  ifdef RTLD_LAZY
11692 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11693 #  else
11694 #    ifdef DL_LAZY
11695 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11696 #    else
11697 #      ifdef RTLD_NOW
11698 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11699 #      else
11700 #        ifdef DL_NOW
11701 #          define LT_DLLAZY_OR_NOW      DL_NOW
11702 #        else
11703 #          define LT_DLLAZY_OR_NOW      0
11704 #        endif
11705 #      endif
11706 #    endif
11707 #  endif
11708 #endif
11709
11710 /* When -fvisibility=hidden is used, assume the code has been annotated
11711    correspondingly for the symbols needed.  */
11712 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11713 int fnord () __attribute__((visibility("default")));
11714 #endif
11715
11716 int fnord () { return 42; }
11717 int main ()
11718 {
11719   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11720   int status = $lt_dlunknown;
11721
11722   if (self)
11723     {
11724       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11725       else
11726         {
11727           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11728           else puts (dlerror ());
11729         }
11730       /* dlclose (self); */
11731     }
11732   else
11733     puts (dlerror ());
11734
11735   return status;
11736 }
11737 _LT_EOF
11738   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11739   (eval $ac_link) 2>&5
11740   ac_status=$?
11741   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11742   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11743     (./conftest; exit; ) >&5 2>/dev/null
11744     lt_status=$?
11745     case x$lt_status in
11746       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11747       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11748       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11749     esac
11750   else :
11751     # compilation failed
11752     lt_cv_dlopen_self=no
11753   fi
11754 fi
11755 rm -fr conftest*
11756
11757
11758 fi
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11760 $as_echo "$lt_cv_dlopen_self" >&6; }
11761
11762     if test yes = "$lt_cv_dlopen_self"; then
11763       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11764       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11765 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11766 if ${lt_cv_dlopen_self_static+:} false; then :
11767   $as_echo_n "(cached) " >&6
11768 else
11769           if test yes = "$cross_compiling"; then :
11770   lt_cv_dlopen_self_static=cross
11771 else
11772   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11773   lt_status=$lt_dlunknown
11774   cat > conftest.$ac_ext <<_LT_EOF
11775 #line $LINENO "configure"
11776 #include "confdefs.h"
11777
11778 #if HAVE_DLFCN_H
11779 #include <dlfcn.h>
11780 #endif
11781
11782 #include <stdio.h>
11783
11784 #ifdef RTLD_GLOBAL
11785 #  define LT_DLGLOBAL           RTLD_GLOBAL
11786 #else
11787 #  ifdef DL_GLOBAL
11788 #    define LT_DLGLOBAL         DL_GLOBAL
11789 #  else
11790 #    define LT_DLGLOBAL         0
11791 #  endif
11792 #endif
11793
11794 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11795    find out it does not work in some platform. */
11796 #ifndef LT_DLLAZY_OR_NOW
11797 #  ifdef RTLD_LAZY
11798 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11799 #  else
11800 #    ifdef DL_LAZY
11801 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11802 #    else
11803 #      ifdef RTLD_NOW
11804 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11805 #      else
11806 #        ifdef DL_NOW
11807 #          define LT_DLLAZY_OR_NOW      DL_NOW
11808 #        else
11809 #          define LT_DLLAZY_OR_NOW      0
11810 #        endif
11811 #      endif
11812 #    endif
11813 #  endif
11814 #endif
11815
11816 /* When -fvisibility=hidden is used, assume the code has been annotated
11817    correspondingly for the symbols needed.  */
11818 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11819 int fnord () __attribute__((visibility("default")));
11820 #endif
11821
11822 int fnord () { return 42; }
11823 int main ()
11824 {
11825   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11826   int status = $lt_dlunknown;
11827
11828   if (self)
11829     {
11830       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11831       else
11832         {
11833           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11834           else puts (dlerror ());
11835         }
11836       /* dlclose (self); */
11837     }
11838   else
11839     puts (dlerror ());
11840
11841   return status;
11842 }
11843 _LT_EOF
11844   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11845   (eval $ac_link) 2>&5
11846   ac_status=$?
11847   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11848   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11849     (./conftest; exit; ) >&5 2>/dev/null
11850     lt_status=$?
11851     case x$lt_status in
11852       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11853       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11854       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11855     esac
11856   else :
11857     # compilation failed
11858     lt_cv_dlopen_self_static=no
11859   fi
11860 fi
11861 rm -fr conftest*
11862
11863
11864 fi
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11866 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11867     fi
11868
11869     CPPFLAGS=$save_CPPFLAGS
11870     LDFLAGS=$save_LDFLAGS
11871     LIBS=$save_LIBS
11872     ;;
11873   esac
11874
11875   case $lt_cv_dlopen_self in
11876   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11877   *) enable_dlopen_self=unknown ;;
11878   esac
11879
11880   case $lt_cv_dlopen_self_static in
11881   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11882   *) enable_dlopen_self_static=unknown ;;
11883   esac
11884 fi
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902 striplib=
11903 old_striplib=
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11905 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11906 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11907   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11908   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11910 $as_echo "yes" >&6; }
11911 else
11912 # FIXME - insert some real tests, host_os isn't really good enough
11913   case $host_os in
11914   darwin*)
11915     if test -n "$STRIP"; then
11916       striplib="$STRIP -x"
11917       old_striplib="$STRIP -S"
11918       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11919 $as_echo "yes" >&6; }
11920     else
11921       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11922 $as_echo "no" >&6; }
11923     fi
11924     ;;
11925   *)
11926     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11927 $as_echo "no" >&6; }
11928     ;;
11929   esac
11930 fi
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943   # Report what library types will actually be built
11944   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11945 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11947 $as_echo "$can_build_shared" >&6; }
11948
11949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11950 $as_echo_n "checking whether to build shared libraries... " >&6; }
11951   test no = "$can_build_shared" && enable_shared=no
11952
11953   # On AIX, shared libraries and static libraries use the same namespace, and
11954   # are all built from PIC.
11955   case $host_os in
11956   aix3*)
11957     test yes = "$enable_shared" && enable_static=no
11958     if test -n "$RANLIB"; then
11959       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11960       postinstall_cmds='$RANLIB $lib'
11961     fi
11962     ;;
11963
11964   aix[4-9]*)
11965     if test ia64 != "$host_cpu"; then
11966       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11967       yes,aix,yes) ;;                   # shared object as lib.so file only
11968       yes,svr4,*) ;;                    # shared object as lib.so archive member only
11969       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
11970       esac
11971     fi
11972     ;;
11973   esac
11974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11975 $as_echo "$enable_shared" >&6; }
11976
11977   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11978 $as_echo_n "checking whether to build static libraries... " >&6; }
11979   # Make sure either enable_shared or enable_static is yes.
11980   test yes = "$enable_shared" || enable_static=yes
11981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11982 $as_echo "$enable_static" >&6; }
11983
11984
11985
11986
11987 fi
11988 ac_ext=c
11989 ac_cpp='$CPP $CPPFLAGS'
11990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11993
11994 CC=$lt_save_CC
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010         ac_config_commands="$ac_config_commands libtool"
12011
12012
12013
12014
12015 # Only expand once:
12016
12017
12018
12019 # Initialize X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12032 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12033 if ${ac_cv_prog_cc_c99+:} false; then :
12034   $as_echo_n "(cached) " >&6
12035 else
12036   ac_cv_prog_cc_c99=no
12037 ac_save_CC=$CC
12038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12039 /* end confdefs.h.  */
12040 #include <stdarg.h>
12041 #include <stdbool.h>
12042 #include <stdlib.h>
12043 #include <wchar.h>
12044 #include <stdio.h>
12045
12046 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
12047 #define debug(...) fprintf (stderr, __VA_ARGS__)
12048 #define showlist(...) puts (#__VA_ARGS__)
12049 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12050 static void
12051 test_varargs_macros (void)
12052 {
12053   int x = 1234;
12054   int y = 5678;
12055   debug ("Flag");
12056   debug ("X = %d\n", x);
12057   showlist (The first, second, and third items.);
12058   report (x>y, "x is %d but y is %d", x, y);
12059 }
12060
12061 // Check long long types.
12062 #define BIG64 18446744073709551615ull
12063 #define BIG32 4294967295ul
12064 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12065 #if !BIG_OK
12066   your preprocessor is broken;
12067 #endif
12068 #if BIG_OK
12069 #else
12070   your preprocessor is broken;
12071 #endif
12072 static long long int bignum = -9223372036854775807LL;
12073 static unsigned long long int ubignum = BIG64;
12074
12075 struct incomplete_array
12076 {
12077   int datasize;
12078   double data[];
12079 };
12080
12081 struct named_init {
12082   int number;
12083   const wchar_t *name;
12084   double average;
12085 };
12086
12087 typedef const char *ccp;
12088
12089 static inline int
12090 test_restrict (ccp restrict text)
12091 {
12092   // See if C++-style comments work.
12093   // Iterate through items via the restricted pointer.
12094   // Also check for declarations in for loops.
12095   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12096     continue;
12097   return 0;
12098 }
12099
12100 // Check varargs and va_copy.
12101 static void
12102 test_varargs (const char *format, ...)
12103 {
12104   va_list args;
12105   va_start (args, format);
12106   va_list args_copy;
12107   va_copy (args_copy, args);
12108
12109   const char *str;
12110   int number;
12111   float fnumber;
12112
12113   while (*format)
12114     {
12115       switch (*format++)
12116         {
12117         case 's': // string
12118           str = va_arg (args_copy, const char *);
12119           break;
12120         case 'd': // int
12121           number = va_arg (args_copy, int);
12122           break;
12123         case 'f': // float
12124           fnumber = va_arg (args_copy, double);
12125           break;
12126         default:
12127           break;
12128         }
12129     }
12130   va_end (args_copy);
12131   va_end (args);
12132 }
12133
12134 int
12135 main ()
12136 {
12137
12138   // Check bool.
12139   _Bool success = false;
12140
12141   // Check restrict.
12142   if (test_restrict ("String literal") == 0)
12143     success = true;
12144   char *restrict newvar = "Another string";
12145
12146   // Check varargs.
12147   test_varargs ("s, d' f .", "string", 65, 34.234);
12148   test_varargs_macros ();
12149
12150   // Check flexible array members.
12151   struct incomplete_array *ia =
12152     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12153   ia->datasize = 10;
12154   for (int i = 0; i < ia->datasize; ++i)
12155     ia->data[i] = i * 1.234;
12156
12157   // Check named initializers.
12158   struct named_init ni = {
12159     .number = 34,
12160     .name = L"Test wide string",
12161     .average = 543.34343,
12162   };
12163
12164   ni.number = 58;
12165
12166   int dynamic_array[ni.number];
12167   dynamic_array[ni.number - 1] = 543;
12168
12169   // work around unused variable warnings
12170   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12171           || dynamic_array[ni.number - 1] != 543);
12172
12173   ;
12174   return 0;
12175 }
12176 _ACEOF
12177 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12178 do
12179   CC="$ac_save_CC $ac_arg"
12180   if ac_fn_c_try_compile "$LINENO"; then :
12181   ac_cv_prog_cc_c99=$ac_arg
12182 fi
12183 rm -f core conftest.err conftest.$ac_objext
12184   test "x$ac_cv_prog_cc_c99" != "xno" && break
12185 done
12186 rm -f conftest.$ac_ext
12187 CC=$ac_save_CC
12188
12189 fi
12190 # AC_CACHE_VAL
12191 case "x$ac_cv_prog_cc_c99" in
12192   x)
12193     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12194 $as_echo "none needed" >&6; } ;;
12195   xno)
12196     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12197 $as_echo "unsupported" >&6; } ;;
12198   *)
12199     CC="$CC $ac_cv_prog_cc_c99"
12200     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12201 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12202 esac
12203 if test "x$ac_cv_prog_cc_c99" != xno; then :
12204
12205 fi
12206
12207
12208
12209
12210
12211
12212 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12213 if test "x$ac_cv_have_decl___clang__" = xyes; then :
12214   CLANGCC="yes"
12215 else
12216   CLANGCC="no"
12217 fi
12218
12219 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12220 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12221   INTELCC="yes"
12222 else
12223   INTELCC="no"
12224 fi
12225
12226 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12227 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12228   SUNCC="yes"
12229 else
12230   SUNCC="no"
12231 fi
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12242         if test -n "$ac_tool_prefix"; then
12243   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12244 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12246 $as_echo_n "checking for $ac_word... " >&6; }
12247 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12248   $as_echo_n "(cached) " >&6
12249 else
12250   case $PKG_CONFIG in
12251   [\\/]* | ?:[\\/]*)
12252   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12253   ;;
12254   *)
12255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12256 for as_dir in $PATH
12257 do
12258   IFS=$as_save_IFS
12259   test -z "$as_dir" && as_dir=.
12260     for ac_exec_ext in '' $ac_executable_extensions; do
12261   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12262     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12264     break 2
12265   fi
12266 done
12267   done
12268 IFS=$as_save_IFS
12269
12270   ;;
12271 esac
12272 fi
12273 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12274 if test -n "$PKG_CONFIG"; then
12275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12276 $as_echo "$PKG_CONFIG" >&6; }
12277 else
12278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12279 $as_echo "no" >&6; }
12280 fi
12281
12282
12283 fi
12284 if test -z "$ac_cv_path_PKG_CONFIG"; then
12285   ac_pt_PKG_CONFIG=$PKG_CONFIG
12286   # Extract the first word of "pkg-config", so it can be a program name with args.
12287 set dummy pkg-config; ac_word=$2
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12289 $as_echo_n "checking for $ac_word... " >&6; }
12290 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12291   $as_echo_n "(cached) " >&6
12292 else
12293   case $ac_pt_PKG_CONFIG in
12294   [\\/]* | ?:[\\/]*)
12295   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12296   ;;
12297   *)
12298   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12299 for as_dir in $PATH
12300 do
12301   IFS=$as_save_IFS
12302   test -z "$as_dir" && as_dir=.
12303     for ac_exec_ext in '' $ac_executable_extensions; do
12304   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12305     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12307     break 2
12308   fi
12309 done
12310   done
12311 IFS=$as_save_IFS
12312
12313   ;;
12314 esac
12315 fi
12316 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12317 if test -n "$ac_pt_PKG_CONFIG"; then
12318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12319 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12320 else
12321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12322 $as_echo "no" >&6; }
12323 fi
12324
12325   if test "x$ac_pt_PKG_CONFIG" = x; then
12326     PKG_CONFIG=""
12327   else
12328     case $cross_compiling:$ac_tool_warned in
12329 yes:)
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12332 ac_tool_warned=yes ;;
12333 esac
12334     PKG_CONFIG=$ac_pt_PKG_CONFIG
12335   fi
12336 else
12337   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12338 fi
12339
12340 fi
12341 if test -n "$PKG_CONFIG"; then
12342         _pkg_min_version=0.9.0
12343         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12344 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12345         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12346                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12347 $as_echo "yes" >&6; }
12348         else
12349                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12350 $as_echo "no" >&6; }
12351                 PKG_CONFIG=""
12352         fi
12353 fi
12354
12355
12356
12357
12358
12359 # Check whether --enable-selective-werror was given.
12360 if test "${enable_selective_werror+set}" = set; then :
12361   enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12362 else
12363   SELECTIVE_WERROR=yes
12364 fi
12365
12366
12367
12368
12369
12370 # -v is too short to test reliably with XORG_TESTSET_CFLAG
12371 if test "x$SUNCC" = "xyes"; then
12372     BASE_CFLAGS="-v"
12373 else
12374     BASE_CFLAGS=""
12375 fi
12376
12377 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391 xorg_testset_save_CFLAGS="$CFLAGS"
12392
12393 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12394         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12395         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12396 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12397 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12398   $as_echo_n "(cached) " >&6
12399 else
12400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12401 /* end confdefs.h.  */
12402 int i;
12403 _ACEOF
12404 if ac_fn_c_try_compile "$LINENO"; then :
12405   xorg_cv_cc_flag_unknown_warning_option=yes
12406 else
12407   xorg_cv_cc_flag_unknown_warning_option=no
12408 fi
12409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12410 fi
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12412 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12413         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12414         CFLAGS="$xorg_testset_save_CFLAGS"
12415 fi
12416
12417 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12418         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12419                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12420         fi
12421         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12422         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12423 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12424 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12425   $as_echo_n "(cached) " >&6
12426 else
12427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12428 /* end confdefs.h.  */
12429 int i;
12430 _ACEOF
12431 if ac_fn_c_try_compile "$LINENO"; then :
12432   xorg_cv_cc_flag_unused_command_line_argument=yes
12433 else
12434   xorg_cv_cc_flag_unused_command_line_argument=no
12435 fi
12436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12437 fi
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12439 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12440         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12441         CFLAGS="$xorg_testset_save_CFLAGS"
12442 fi
12443
12444 found="no"
12445
12446         if test $found = "no" ; then
12447                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12448                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12449                 fi
12450
12451                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12452                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12453                 fi
12454
12455                 CFLAGS="$CFLAGS -Wall"
12456
12457                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12458 $as_echo_n "checking if $CC supports -Wall... " >&6; }
12459                 cacheid=xorg_cv_cc_flag__Wall
12460                 if eval \${$cacheid+:} false; then :
12461   $as_echo_n "(cached) " >&6
12462 else
12463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12464 /* end confdefs.h.  */
12465 int i;
12466 int
12467 main ()
12468 {
12469
12470   ;
12471   return 0;
12472 }
12473 _ACEOF
12474 if ac_fn_c_try_link "$LINENO"; then :
12475   eval $cacheid=yes
12476 else
12477   eval $cacheid=no
12478 fi
12479 rm -f core conftest.err conftest.$ac_objext \
12480     conftest$ac_exeext conftest.$ac_ext
12481 fi
12482
12483
12484                 CFLAGS="$xorg_testset_save_CFLAGS"
12485
12486                 eval supported=\$$cacheid
12487                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12488 $as_echo "$supported" >&6; }
12489                 if test "$supported" = "yes" ; then
12490                         BASE_CFLAGS="$BASE_CFLAGS -Wall"
12491                         found="yes"
12492                 fi
12493         fi
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509 xorg_testset_save_CFLAGS="$CFLAGS"
12510
12511 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12512         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12513         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12514 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12515 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12516   $as_echo_n "(cached) " >&6
12517 else
12518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12519 /* end confdefs.h.  */
12520 int i;
12521 _ACEOF
12522 if ac_fn_c_try_compile "$LINENO"; then :
12523   xorg_cv_cc_flag_unknown_warning_option=yes
12524 else
12525   xorg_cv_cc_flag_unknown_warning_option=no
12526 fi
12527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12528 fi
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12530 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12531         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12532         CFLAGS="$xorg_testset_save_CFLAGS"
12533 fi
12534
12535 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12536         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12537                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12538         fi
12539         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12540         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12541 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12542 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12543   $as_echo_n "(cached) " >&6
12544 else
12545   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12546 /* end confdefs.h.  */
12547 int i;
12548 _ACEOF
12549 if ac_fn_c_try_compile "$LINENO"; then :
12550   xorg_cv_cc_flag_unused_command_line_argument=yes
12551 else
12552   xorg_cv_cc_flag_unused_command_line_argument=no
12553 fi
12554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12555 fi
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12557 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12558         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12559         CFLAGS="$xorg_testset_save_CFLAGS"
12560 fi
12561
12562 found="no"
12563
12564         if test $found = "no" ; then
12565                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12566                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12567                 fi
12568
12569                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12570                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12571                 fi
12572
12573                 CFLAGS="$CFLAGS -Wpointer-arith"
12574
12575                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12576 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12577                 cacheid=xorg_cv_cc_flag__Wpointer_arith
12578                 if eval \${$cacheid+:} false; then :
12579   $as_echo_n "(cached) " >&6
12580 else
12581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12582 /* end confdefs.h.  */
12583 int i;
12584 int
12585 main ()
12586 {
12587
12588   ;
12589   return 0;
12590 }
12591 _ACEOF
12592 if ac_fn_c_try_link "$LINENO"; then :
12593   eval $cacheid=yes
12594 else
12595   eval $cacheid=no
12596 fi
12597 rm -f core conftest.err conftest.$ac_objext \
12598     conftest$ac_exeext conftest.$ac_ext
12599 fi
12600
12601
12602                 CFLAGS="$xorg_testset_save_CFLAGS"
12603
12604                 eval supported=\$$cacheid
12605                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12606 $as_echo "$supported" >&6; }
12607                 if test "$supported" = "yes" ; then
12608                         BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12609                         found="yes"
12610                 fi
12611         fi
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627 xorg_testset_save_CFLAGS="$CFLAGS"
12628
12629 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12630         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12631         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12632 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12633 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12634   $as_echo_n "(cached) " >&6
12635 else
12636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12637 /* end confdefs.h.  */
12638 int i;
12639 _ACEOF
12640 if ac_fn_c_try_compile "$LINENO"; then :
12641   xorg_cv_cc_flag_unknown_warning_option=yes
12642 else
12643   xorg_cv_cc_flag_unknown_warning_option=no
12644 fi
12645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12646 fi
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12648 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12649         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12650         CFLAGS="$xorg_testset_save_CFLAGS"
12651 fi
12652
12653 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12654         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12655                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12656         fi
12657         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12658         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12659 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12660 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12661   $as_echo_n "(cached) " >&6
12662 else
12663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12664 /* end confdefs.h.  */
12665 int i;
12666 _ACEOF
12667 if ac_fn_c_try_compile "$LINENO"; then :
12668   xorg_cv_cc_flag_unused_command_line_argument=yes
12669 else
12670   xorg_cv_cc_flag_unused_command_line_argument=no
12671 fi
12672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12673 fi
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12675 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12676         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12677         CFLAGS="$xorg_testset_save_CFLAGS"
12678 fi
12679
12680 found="no"
12681
12682         if test $found = "no" ; then
12683                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12684                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12685                 fi
12686
12687                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12688                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12689                 fi
12690
12691                 CFLAGS="$CFLAGS -Wmissing-declarations"
12692
12693                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12694 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12695                 cacheid=xorg_cv_cc_flag__Wmissing_declarations
12696                 if eval \${$cacheid+:} false; then :
12697   $as_echo_n "(cached) " >&6
12698 else
12699   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12700 /* end confdefs.h.  */
12701 int i;
12702 int
12703 main ()
12704 {
12705
12706   ;
12707   return 0;
12708 }
12709 _ACEOF
12710 if ac_fn_c_try_link "$LINENO"; then :
12711   eval $cacheid=yes
12712 else
12713   eval $cacheid=no
12714 fi
12715 rm -f core conftest.err conftest.$ac_objext \
12716     conftest$ac_exeext conftest.$ac_ext
12717 fi
12718
12719
12720                 CFLAGS="$xorg_testset_save_CFLAGS"
12721
12722                 eval supported=\$$cacheid
12723                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12724 $as_echo "$supported" >&6; }
12725                 if test "$supported" = "yes" ; then
12726                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12727                         found="yes"
12728                 fi
12729         fi
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745 xorg_testset_save_CFLAGS="$CFLAGS"
12746
12747 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12748         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12749         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12750 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12751 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12752   $as_echo_n "(cached) " >&6
12753 else
12754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12755 /* end confdefs.h.  */
12756 int i;
12757 _ACEOF
12758 if ac_fn_c_try_compile "$LINENO"; then :
12759   xorg_cv_cc_flag_unknown_warning_option=yes
12760 else
12761   xorg_cv_cc_flag_unknown_warning_option=no
12762 fi
12763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12764 fi
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12766 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12767         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12768         CFLAGS="$xorg_testset_save_CFLAGS"
12769 fi
12770
12771 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12772         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12773                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12774         fi
12775         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12776         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12777 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12778 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12779   $as_echo_n "(cached) " >&6
12780 else
12781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12782 /* end confdefs.h.  */
12783 int i;
12784 _ACEOF
12785 if ac_fn_c_try_compile "$LINENO"; then :
12786   xorg_cv_cc_flag_unused_command_line_argument=yes
12787 else
12788   xorg_cv_cc_flag_unused_command_line_argument=no
12789 fi
12790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12791 fi
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12793 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12794         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12795         CFLAGS="$xorg_testset_save_CFLAGS"
12796 fi
12797
12798 found="no"
12799
12800         if test $found = "no" ; then
12801                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12802                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12803                 fi
12804
12805                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12806                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12807                 fi
12808
12809                 CFLAGS="$CFLAGS -Wformat=2"
12810
12811                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12812 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12813                 cacheid=xorg_cv_cc_flag__Wformat_2
12814                 if eval \${$cacheid+:} false; then :
12815   $as_echo_n "(cached) " >&6
12816 else
12817   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12818 /* end confdefs.h.  */
12819 int i;
12820 int
12821 main ()
12822 {
12823
12824   ;
12825   return 0;
12826 }
12827 _ACEOF
12828 if ac_fn_c_try_link "$LINENO"; then :
12829   eval $cacheid=yes
12830 else
12831   eval $cacheid=no
12832 fi
12833 rm -f core conftest.err conftest.$ac_objext \
12834     conftest$ac_exeext conftest.$ac_ext
12835 fi
12836
12837
12838                 CFLAGS="$xorg_testset_save_CFLAGS"
12839
12840                 eval supported=\$$cacheid
12841                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12842 $as_echo "$supported" >&6; }
12843                 if test "$supported" = "yes" ; then
12844                         BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12845                         found="yes"
12846                 fi
12847         fi
12848
12849         if test $found = "no" ; then
12850                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12851                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12852                 fi
12853
12854                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12855                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12856                 fi
12857
12858                 CFLAGS="$CFLAGS -Wformat"
12859
12860                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12861 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12862                 cacheid=xorg_cv_cc_flag__Wformat
12863                 if eval \${$cacheid+:} false; then :
12864   $as_echo_n "(cached) " >&6
12865 else
12866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12867 /* end confdefs.h.  */
12868 int i;
12869 int
12870 main ()
12871 {
12872
12873   ;
12874   return 0;
12875 }
12876 _ACEOF
12877 if ac_fn_c_try_link "$LINENO"; then :
12878   eval $cacheid=yes
12879 else
12880   eval $cacheid=no
12881 fi
12882 rm -f core conftest.err conftest.$ac_objext \
12883     conftest$ac_exeext conftest.$ac_ext
12884 fi
12885
12886
12887                 CFLAGS="$xorg_testset_save_CFLAGS"
12888
12889                 eval supported=\$$cacheid
12890                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12891 $as_echo "$supported" >&6; }
12892                 if test "$supported" = "yes" ; then
12893                         BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12894                         found="yes"
12895                 fi
12896         fi
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914 xorg_testset_save_CFLAGS="$CFLAGS"
12915
12916 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12917         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12918         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12919 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12920 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12921   $as_echo_n "(cached) " >&6
12922 else
12923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12924 /* end confdefs.h.  */
12925 int i;
12926 _ACEOF
12927 if ac_fn_c_try_compile "$LINENO"; then :
12928   xorg_cv_cc_flag_unknown_warning_option=yes
12929 else
12930   xorg_cv_cc_flag_unknown_warning_option=no
12931 fi
12932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12933 fi
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12935 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12936         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12937         CFLAGS="$xorg_testset_save_CFLAGS"
12938 fi
12939
12940 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12941         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12942                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12943         fi
12944         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12945         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12946 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12947 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12948   $as_echo_n "(cached) " >&6
12949 else
12950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12951 /* end confdefs.h.  */
12952 int i;
12953 _ACEOF
12954 if ac_fn_c_try_compile "$LINENO"; then :
12955   xorg_cv_cc_flag_unused_command_line_argument=yes
12956 else
12957   xorg_cv_cc_flag_unused_command_line_argument=no
12958 fi
12959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12960 fi
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12962 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12963         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12964         CFLAGS="$xorg_testset_save_CFLAGS"
12965 fi
12966
12967 found="no"
12968
12969         if test $found = "no" ; then
12970                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12971                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12972                 fi
12973
12974                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12975                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12976                 fi
12977
12978                 CFLAGS="$CFLAGS -Wstrict-prototypes"
12979
12980                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12981 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12982                 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12983                 if eval \${$cacheid+:} false; then :
12984   $as_echo_n "(cached) " >&6
12985 else
12986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12987 /* end confdefs.h.  */
12988 int i;
12989 int
12990 main ()
12991 {
12992
12993   ;
12994   return 0;
12995 }
12996 _ACEOF
12997 if ac_fn_c_try_link "$LINENO"; then :
12998   eval $cacheid=yes
12999 else
13000   eval $cacheid=no
13001 fi
13002 rm -f core conftest.err conftest.$ac_objext \
13003     conftest$ac_exeext conftest.$ac_ext
13004 fi
13005
13006
13007                 CFLAGS="$xorg_testset_save_CFLAGS"
13008
13009                 eval supported=\$$cacheid
13010                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13011 $as_echo "$supported" >&6; }
13012                 if test "$supported" = "yes" ; then
13013                         BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13014                         found="yes"
13015                 fi
13016         fi
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032 xorg_testset_save_CFLAGS="$CFLAGS"
13033
13034 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13035         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13036         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13037 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13038 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13039   $as_echo_n "(cached) " >&6
13040 else
13041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13042 /* end confdefs.h.  */
13043 int i;
13044 _ACEOF
13045 if ac_fn_c_try_compile "$LINENO"; then :
13046   xorg_cv_cc_flag_unknown_warning_option=yes
13047 else
13048   xorg_cv_cc_flag_unknown_warning_option=no
13049 fi
13050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13051 fi
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13053 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13054         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13055         CFLAGS="$xorg_testset_save_CFLAGS"
13056 fi
13057
13058 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13059         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13060                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13061         fi
13062         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13063         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13064 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13065 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13066   $as_echo_n "(cached) " >&6
13067 else
13068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13069 /* end confdefs.h.  */
13070 int i;
13071 _ACEOF
13072 if ac_fn_c_try_compile "$LINENO"; then :
13073   xorg_cv_cc_flag_unused_command_line_argument=yes
13074 else
13075   xorg_cv_cc_flag_unused_command_line_argument=no
13076 fi
13077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13078 fi
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13080 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13081         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13082         CFLAGS="$xorg_testset_save_CFLAGS"
13083 fi
13084
13085 found="no"
13086
13087         if test $found = "no" ; then
13088                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13089                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13090                 fi
13091
13092                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13093                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13094                 fi
13095
13096                 CFLAGS="$CFLAGS -Wmissing-prototypes"
13097
13098                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13099 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13100                 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13101                 if eval \${$cacheid+:} false; then :
13102   $as_echo_n "(cached) " >&6
13103 else
13104   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13105 /* end confdefs.h.  */
13106 int i;
13107 int
13108 main ()
13109 {
13110
13111   ;
13112   return 0;
13113 }
13114 _ACEOF
13115 if ac_fn_c_try_link "$LINENO"; then :
13116   eval $cacheid=yes
13117 else
13118   eval $cacheid=no
13119 fi
13120 rm -f core conftest.err conftest.$ac_objext \
13121     conftest$ac_exeext conftest.$ac_ext
13122 fi
13123
13124
13125                 CFLAGS="$xorg_testset_save_CFLAGS"
13126
13127                 eval supported=\$$cacheid
13128                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13129 $as_echo "$supported" >&6; }
13130                 if test "$supported" = "yes" ; then
13131                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13132                         found="yes"
13133                 fi
13134         fi
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150 xorg_testset_save_CFLAGS="$CFLAGS"
13151
13152 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13153         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13154         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13155 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13156 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13157   $as_echo_n "(cached) " >&6
13158 else
13159   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13160 /* end confdefs.h.  */
13161 int i;
13162 _ACEOF
13163 if ac_fn_c_try_compile "$LINENO"; then :
13164   xorg_cv_cc_flag_unknown_warning_option=yes
13165 else
13166   xorg_cv_cc_flag_unknown_warning_option=no
13167 fi
13168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13169 fi
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13171 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13172         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13173         CFLAGS="$xorg_testset_save_CFLAGS"
13174 fi
13175
13176 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13177         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13178                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13179         fi
13180         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13181         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13182 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13183 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13184   $as_echo_n "(cached) " >&6
13185 else
13186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13187 /* end confdefs.h.  */
13188 int i;
13189 _ACEOF
13190 if ac_fn_c_try_compile "$LINENO"; then :
13191   xorg_cv_cc_flag_unused_command_line_argument=yes
13192 else
13193   xorg_cv_cc_flag_unused_command_line_argument=no
13194 fi
13195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13196 fi
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13198 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13199         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13200         CFLAGS="$xorg_testset_save_CFLAGS"
13201 fi
13202
13203 found="no"
13204
13205         if test $found = "no" ; then
13206                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13207                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13208                 fi
13209
13210                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13211                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13212                 fi
13213
13214                 CFLAGS="$CFLAGS -Wnested-externs"
13215
13216                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13217 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13218                 cacheid=xorg_cv_cc_flag__Wnested_externs
13219                 if eval \${$cacheid+:} false; then :
13220   $as_echo_n "(cached) " >&6
13221 else
13222   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13223 /* end confdefs.h.  */
13224 int i;
13225 int
13226 main ()
13227 {
13228
13229   ;
13230   return 0;
13231 }
13232 _ACEOF
13233 if ac_fn_c_try_link "$LINENO"; then :
13234   eval $cacheid=yes
13235 else
13236   eval $cacheid=no
13237 fi
13238 rm -f core conftest.err conftest.$ac_objext \
13239     conftest$ac_exeext conftest.$ac_ext
13240 fi
13241
13242
13243                 CFLAGS="$xorg_testset_save_CFLAGS"
13244
13245                 eval supported=\$$cacheid
13246                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13247 $as_echo "$supported" >&6; }
13248                 if test "$supported" = "yes" ; then
13249                         BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13250                         found="yes"
13251                 fi
13252         fi
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268 xorg_testset_save_CFLAGS="$CFLAGS"
13269
13270 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13271         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13272         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13273 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13274 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13275   $as_echo_n "(cached) " >&6
13276 else
13277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13278 /* end confdefs.h.  */
13279 int i;
13280 _ACEOF
13281 if ac_fn_c_try_compile "$LINENO"; then :
13282   xorg_cv_cc_flag_unknown_warning_option=yes
13283 else
13284   xorg_cv_cc_flag_unknown_warning_option=no
13285 fi
13286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13287 fi
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13289 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13290         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13291         CFLAGS="$xorg_testset_save_CFLAGS"
13292 fi
13293
13294 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13295         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13296                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13297         fi
13298         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13299         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13300 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13301 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13302   $as_echo_n "(cached) " >&6
13303 else
13304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13305 /* end confdefs.h.  */
13306 int i;
13307 _ACEOF
13308 if ac_fn_c_try_compile "$LINENO"; then :
13309   xorg_cv_cc_flag_unused_command_line_argument=yes
13310 else
13311   xorg_cv_cc_flag_unused_command_line_argument=no
13312 fi
13313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13314 fi
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13316 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13317         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13318         CFLAGS="$xorg_testset_save_CFLAGS"
13319 fi
13320
13321 found="no"
13322
13323         if test $found = "no" ; then
13324                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13325                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13326                 fi
13327
13328                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13329                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13330                 fi
13331
13332                 CFLAGS="$CFLAGS -Wbad-function-cast"
13333
13334                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13335 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13336                 cacheid=xorg_cv_cc_flag__Wbad_function_cast
13337                 if eval \${$cacheid+:} false; then :
13338   $as_echo_n "(cached) " >&6
13339 else
13340   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13341 /* end confdefs.h.  */
13342 int i;
13343 int
13344 main ()
13345 {
13346
13347   ;
13348   return 0;
13349 }
13350 _ACEOF
13351 if ac_fn_c_try_link "$LINENO"; then :
13352   eval $cacheid=yes
13353 else
13354   eval $cacheid=no
13355 fi
13356 rm -f core conftest.err conftest.$ac_objext \
13357     conftest$ac_exeext conftest.$ac_ext
13358 fi
13359
13360
13361                 CFLAGS="$xorg_testset_save_CFLAGS"
13362
13363                 eval supported=\$$cacheid
13364                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13365 $as_echo "$supported" >&6; }
13366                 if test "$supported" = "yes" ; then
13367                         BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13368                         found="yes"
13369                 fi
13370         fi
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386 xorg_testset_save_CFLAGS="$CFLAGS"
13387
13388 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13389         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13390         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13391 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13392 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13393   $as_echo_n "(cached) " >&6
13394 else
13395   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13396 /* end confdefs.h.  */
13397 int i;
13398 _ACEOF
13399 if ac_fn_c_try_compile "$LINENO"; then :
13400   xorg_cv_cc_flag_unknown_warning_option=yes
13401 else
13402   xorg_cv_cc_flag_unknown_warning_option=no
13403 fi
13404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13405 fi
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13407 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13408         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13409         CFLAGS="$xorg_testset_save_CFLAGS"
13410 fi
13411
13412 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13413         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13414                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13415         fi
13416         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13417         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13418 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13419 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13420   $as_echo_n "(cached) " >&6
13421 else
13422   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13423 /* end confdefs.h.  */
13424 int i;
13425 _ACEOF
13426 if ac_fn_c_try_compile "$LINENO"; then :
13427   xorg_cv_cc_flag_unused_command_line_argument=yes
13428 else
13429   xorg_cv_cc_flag_unused_command_line_argument=no
13430 fi
13431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13432 fi
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13434 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13435         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13436         CFLAGS="$xorg_testset_save_CFLAGS"
13437 fi
13438
13439 found="no"
13440
13441         if test $found = "no" ; then
13442                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13443                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13444                 fi
13445
13446                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13447                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13448                 fi
13449
13450                 CFLAGS="$CFLAGS -Wold-style-definition"
13451
13452                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13453 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13454                 cacheid=xorg_cv_cc_flag__Wold_style_definition
13455                 if eval \${$cacheid+:} false; then :
13456   $as_echo_n "(cached) " >&6
13457 else
13458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13459 /* end confdefs.h.  */
13460 int i;
13461 int
13462 main ()
13463 {
13464
13465   ;
13466   return 0;
13467 }
13468 _ACEOF
13469 if ac_fn_c_try_link "$LINENO"; then :
13470   eval $cacheid=yes
13471 else
13472   eval $cacheid=no
13473 fi
13474 rm -f core conftest.err conftest.$ac_objext \
13475     conftest$ac_exeext conftest.$ac_ext
13476 fi
13477
13478
13479                 CFLAGS="$xorg_testset_save_CFLAGS"
13480
13481                 eval supported=\$$cacheid
13482                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13483 $as_echo "$supported" >&6; }
13484                 if test "$supported" = "yes" ; then
13485                         BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13486                         found="yes"
13487                 fi
13488         fi
13489
13490         if test $found = "no" ; then
13491                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13492                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13493                 fi
13494
13495                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13496                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13497                 fi
13498
13499                 CFLAGS="$CFLAGS -fd"
13500
13501                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13502 $as_echo_n "checking if $CC supports -fd... " >&6; }
13503                 cacheid=xorg_cv_cc_flag__fd
13504                 if eval \${$cacheid+:} false; then :
13505   $as_echo_n "(cached) " >&6
13506 else
13507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13508 /* end confdefs.h.  */
13509 int i;
13510 int
13511 main ()
13512 {
13513
13514   ;
13515   return 0;
13516 }
13517 _ACEOF
13518 if ac_fn_c_try_link "$LINENO"; then :
13519   eval $cacheid=yes
13520 else
13521   eval $cacheid=no
13522 fi
13523 rm -f core conftest.err conftest.$ac_objext \
13524     conftest$ac_exeext conftest.$ac_ext
13525 fi
13526
13527
13528                 CFLAGS="$xorg_testset_save_CFLAGS"
13529
13530                 eval supported=\$$cacheid
13531                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13532 $as_echo "$supported" >&6; }
13533                 if test "$supported" = "yes" ; then
13534                         BASE_CFLAGS="$BASE_CFLAGS -fd"
13535                         found="yes"
13536                 fi
13537         fi
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553 xorg_testset_save_CFLAGS="$CFLAGS"
13554
13555 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13556         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13557         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13558 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13559 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13560   $as_echo_n "(cached) " >&6
13561 else
13562   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13563 /* end confdefs.h.  */
13564 int i;
13565 _ACEOF
13566 if ac_fn_c_try_compile "$LINENO"; then :
13567   xorg_cv_cc_flag_unknown_warning_option=yes
13568 else
13569   xorg_cv_cc_flag_unknown_warning_option=no
13570 fi
13571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13572 fi
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13574 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13575         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13576         CFLAGS="$xorg_testset_save_CFLAGS"
13577 fi
13578
13579 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13580         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13581                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13582         fi
13583         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13584         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13585 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13586 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13587   $as_echo_n "(cached) " >&6
13588 else
13589   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13590 /* end confdefs.h.  */
13591 int i;
13592 _ACEOF
13593 if ac_fn_c_try_compile "$LINENO"; then :
13594   xorg_cv_cc_flag_unused_command_line_argument=yes
13595 else
13596   xorg_cv_cc_flag_unused_command_line_argument=no
13597 fi
13598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13599 fi
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13601 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13602         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13603         CFLAGS="$xorg_testset_save_CFLAGS"
13604 fi
13605
13606 found="no"
13607
13608         if test $found = "no" ; then
13609                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13610                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13611                 fi
13612
13613                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13614                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13615                 fi
13616
13617                 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13618
13619                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13620 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13621                 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13622                 if eval \${$cacheid+:} false; then :
13623   $as_echo_n "(cached) " >&6
13624 else
13625   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13626 /* end confdefs.h.  */
13627 int i;
13628 int
13629 main ()
13630 {
13631
13632   ;
13633   return 0;
13634 }
13635 _ACEOF
13636 if ac_fn_c_try_link "$LINENO"; then :
13637   eval $cacheid=yes
13638 else
13639   eval $cacheid=no
13640 fi
13641 rm -f core conftest.err conftest.$ac_objext \
13642     conftest$ac_exeext conftest.$ac_ext
13643 fi
13644
13645
13646                 CFLAGS="$xorg_testset_save_CFLAGS"
13647
13648                 eval supported=\$$cacheid
13649                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13650 $as_echo "$supported" >&6; }
13651                 if test "$supported" = "yes" ; then
13652                         BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13653                         found="yes"
13654                 fi
13655         fi
13656
13657
13658
13659
13660
13661 # This chunk adds additional warnings that could catch undesired effects.
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675 xorg_testset_save_CFLAGS="$CFLAGS"
13676
13677 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13678         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13679         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13680 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13681 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13682   $as_echo_n "(cached) " >&6
13683 else
13684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13685 /* end confdefs.h.  */
13686 int i;
13687 _ACEOF
13688 if ac_fn_c_try_compile "$LINENO"; then :
13689   xorg_cv_cc_flag_unknown_warning_option=yes
13690 else
13691   xorg_cv_cc_flag_unknown_warning_option=no
13692 fi
13693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13694 fi
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13696 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13697         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13698         CFLAGS="$xorg_testset_save_CFLAGS"
13699 fi
13700
13701 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13702         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13703                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13704         fi
13705         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13706         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13707 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13708 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13709   $as_echo_n "(cached) " >&6
13710 else
13711   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13712 /* end confdefs.h.  */
13713 int i;
13714 _ACEOF
13715 if ac_fn_c_try_compile "$LINENO"; then :
13716   xorg_cv_cc_flag_unused_command_line_argument=yes
13717 else
13718   xorg_cv_cc_flag_unused_command_line_argument=no
13719 fi
13720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13721 fi
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13723 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13724         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13725         CFLAGS="$xorg_testset_save_CFLAGS"
13726 fi
13727
13728 found="no"
13729
13730         if test $found = "no" ; then
13731                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13732                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13733                 fi
13734
13735                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13736                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13737                 fi
13738
13739                 CFLAGS="$CFLAGS -Wunused"
13740
13741                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13742 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
13743                 cacheid=xorg_cv_cc_flag__Wunused
13744                 if eval \${$cacheid+:} false; then :
13745   $as_echo_n "(cached) " >&6
13746 else
13747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13748 /* end confdefs.h.  */
13749 int i;
13750 int
13751 main ()
13752 {
13753
13754   ;
13755   return 0;
13756 }
13757 _ACEOF
13758 if ac_fn_c_try_link "$LINENO"; then :
13759   eval $cacheid=yes
13760 else
13761   eval $cacheid=no
13762 fi
13763 rm -f core conftest.err conftest.$ac_objext \
13764     conftest$ac_exeext conftest.$ac_ext
13765 fi
13766
13767
13768                 CFLAGS="$xorg_testset_save_CFLAGS"
13769
13770                 eval supported=\$$cacheid
13771                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13772 $as_echo "$supported" >&6; }
13773                 if test "$supported" = "yes" ; then
13774                         BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13775                         found="yes"
13776                 fi
13777         fi
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793 xorg_testset_save_CFLAGS="$CFLAGS"
13794
13795 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13796         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13797         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13798 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13799 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13800   $as_echo_n "(cached) " >&6
13801 else
13802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13803 /* end confdefs.h.  */
13804 int i;
13805 _ACEOF
13806 if ac_fn_c_try_compile "$LINENO"; then :
13807   xorg_cv_cc_flag_unknown_warning_option=yes
13808 else
13809   xorg_cv_cc_flag_unknown_warning_option=no
13810 fi
13811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13812 fi
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13814 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13815         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13816         CFLAGS="$xorg_testset_save_CFLAGS"
13817 fi
13818
13819 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13820         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13821                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13822         fi
13823         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13824         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13825 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13826 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13827   $as_echo_n "(cached) " >&6
13828 else
13829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13830 /* end confdefs.h.  */
13831 int i;
13832 _ACEOF
13833 if ac_fn_c_try_compile "$LINENO"; then :
13834   xorg_cv_cc_flag_unused_command_line_argument=yes
13835 else
13836   xorg_cv_cc_flag_unused_command_line_argument=no
13837 fi
13838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13839 fi
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13841 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13842         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13843         CFLAGS="$xorg_testset_save_CFLAGS"
13844 fi
13845
13846 found="no"
13847
13848         if test $found = "no" ; then
13849                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13850                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13851                 fi
13852
13853                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13854                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13855                 fi
13856
13857                 CFLAGS="$CFLAGS -Wuninitialized"
13858
13859                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13860 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13861                 cacheid=xorg_cv_cc_flag__Wuninitialized
13862                 if eval \${$cacheid+:} false; then :
13863   $as_echo_n "(cached) " >&6
13864 else
13865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13866 /* end confdefs.h.  */
13867 int i;
13868 int
13869 main ()
13870 {
13871
13872   ;
13873   return 0;
13874 }
13875 _ACEOF
13876 if ac_fn_c_try_link "$LINENO"; then :
13877   eval $cacheid=yes
13878 else
13879   eval $cacheid=no
13880 fi
13881 rm -f core conftest.err conftest.$ac_objext \
13882     conftest$ac_exeext conftest.$ac_ext
13883 fi
13884
13885
13886                 CFLAGS="$xorg_testset_save_CFLAGS"
13887
13888                 eval supported=\$$cacheid
13889                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13890 $as_echo "$supported" >&6; }
13891                 if test "$supported" = "yes" ; then
13892                         BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13893                         found="yes"
13894                 fi
13895         fi
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911 xorg_testset_save_CFLAGS="$CFLAGS"
13912
13913 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13914         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13915         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13916 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13917 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13918   $as_echo_n "(cached) " >&6
13919 else
13920   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13921 /* end confdefs.h.  */
13922 int i;
13923 _ACEOF
13924 if ac_fn_c_try_compile "$LINENO"; then :
13925   xorg_cv_cc_flag_unknown_warning_option=yes
13926 else
13927   xorg_cv_cc_flag_unknown_warning_option=no
13928 fi
13929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13930 fi
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13932 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13933         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13934         CFLAGS="$xorg_testset_save_CFLAGS"
13935 fi
13936
13937 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13938         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13939                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13940         fi
13941         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13942         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13943 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13944 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13945   $as_echo_n "(cached) " >&6
13946 else
13947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13948 /* end confdefs.h.  */
13949 int i;
13950 _ACEOF
13951 if ac_fn_c_try_compile "$LINENO"; then :
13952   xorg_cv_cc_flag_unused_command_line_argument=yes
13953 else
13954   xorg_cv_cc_flag_unused_command_line_argument=no
13955 fi
13956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13957 fi
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13959 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13960         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13961         CFLAGS="$xorg_testset_save_CFLAGS"
13962 fi
13963
13964 found="no"
13965
13966         if test $found = "no" ; then
13967                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13968                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13969                 fi
13970
13971                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13972                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13973                 fi
13974
13975                 CFLAGS="$CFLAGS -Wshadow"
13976
13977                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13978 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13979                 cacheid=xorg_cv_cc_flag__Wshadow
13980                 if eval \${$cacheid+:} false; then :
13981   $as_echo_n "(cached) " >&6
13982 else
13983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13984 /* end confdefs.h.  */
13985 int i;
13986 int
13987 main ()
13988 {
13989
13990   ;
13991   return 0;
13992 }
13993 _ACEOF
13994 if ac_fn_c_try_link "$LINENO"; then :
13995   eval $cacheid=yes
13996 else
13997   eval $cacheid=no
13998 fi
13999 rm -f core conftest.err conftest.$ac_objext \
14000     conftest$ac_exeext conftest.$ac_ext
14001 fi
14002
14003
14004                 CFLAGS="$xorg_testset_save_CFLAGS"
14005
14006                 eval supported=\$$cacheid
14007                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14008 $as_echo "$supported" >&6; }
14009                 if test "$supported" = "yes" ; then
14010                         BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14011                         found="yes"
14012                 fi
14013         fi
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029 xorg_testset_save_CFLAGS="$CFLAGS"
14030
14031 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14032         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14033         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14034 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14035 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14036   $as_echo_n "(cached) " >&6
14037 else
14038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14039 /* end confdefs.h.  */
14040 int i;
14041 _ACEOF
14042 if ac_fn_c_try_compile "$LINENO"; then :
14043   xorg_cv_cc_flag_unknown_warning_option=yes
14044 else
14045   xorg_cv_cc_flag_unknown_warning_option=no
14046 fi
14047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14048 fi
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14050 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14051         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14052         CFLAGS="$xorg_testset_save_CFLAGS"
14053 fi
14054
14055 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14056         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14057                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14058         fi
14059         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14060         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14061 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14062 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14063   $as_echo_n "(cached) " >&6
14064 else
14065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14066 /* end confdefs.h.  */
14067 int i;
14068 _ACEOF
14069 if ac_fn_c_try_compile "$LINENO"; then :
14070   xorg_cv_cc_flag_unused_command_line_argument=yes
14071 else
14072   xorg_cv_cc_flag_unused_command_line_argument=no
14073 fi
14074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14075 fi
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14077 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14078         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14079         CFLAGS="$xorg_testset_save_CFLAGS"
14080 fi
14081
14082 found="no"
14083
14084         if test $found = "no" ; then
14085                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14086                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14087                 fi
14088
14089                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14090                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14091                 fi
14092
14093                 CFLAGS="$CFLAGS -Wmissing-noreturn"
14094
14095                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14096 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14097                 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14098                 if eval \${$cacheid+:} false; then :
14099   $as_echo_n "(cached) " >&6
14100 else
14101   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14102 /* end confdefs.h.  */
14103 int i;
14104 int
14105 main ()
14106 {
14107
14108   ;
14109   return 0;
14110 }
14111 _ACEOF
14112 if ac_fn_c_try_link "$LINENO"; then :
14113   eval $cacheid=yes
14114 else
14115   eval $cacheid=no
14116 fi
14117 rm -f core conftest.err conftest.$ac_objext \
14118     conftest$ac_exeext conftest.$ac_ext
14119 fi
14120
14121
14122                 CFLAGS="$xorg_testset_save_CFLAGS"
14123
14124                 eval supported=\$$cacheid
14125                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14126 $as_echo "$supported" >&6; }
14127                 if test "$supported" = "yes" ; then
14128                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14129                         found="yes"
14130                 fi
14131         fi
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147 xorg_testset_save_CFLAGS="$CFLAGS"
14148
14149 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14150         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14151         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14152 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14153 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14154   $as_echo_n "(cached) " >&6
14155 else
14156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14157 /* end confdefs.h.  */
14158 int i;
14159 _ACEOF
14160 if ac_fn_c_try_compile "$LINENO"; then :
14161   xorg_cv_cc_flag_unknown_warning_option=yes
14162 else
14163   xorg_cv_cc_flag_unknown_warning_option=no
14164 fi
14165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14166 fi
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14168 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14169         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14170         CFLAGS="$xorg_testset_save_CFLAGS"
14171 fi
14172
14173 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14174         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14175                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14176         fi
14177         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14178         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14179 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14180 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14181   $as_echo_n "(cached) " >&6
14182 else
14183   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14184 /* end confdefs.h.  */
14185 int i;
14186 _ACEOF
14187 if ac_fn_c_try_compile "$LINENO"; then :
14188   xorg_cv_cc_flag_unused_command_line_argument=yes
14189 else
14190   xorg_cv_cc_flag_unused_command_line_argument=no
14191 fi
14192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14193 fi
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14195 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14196         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14197         CFLAGS="$xorg_testset_save_CFLAGS"
14198 fi
14199
14200 found="no"
14201
14202         if test $found = "no" ; then
14203                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14204                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14205                 fi
14206
14207                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14208                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14209                 fi
14210
14211                 CFLAGS="$CFLAGS -Wmissing-format-attribute"
14212
14213                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14214 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14215                 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14216                 if eval \${$cacheid+:} false; then :
14217   $as_echo_n "(cached) " >&6
14218 else
14219   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14220 /* end confdefs.h.  */
14221 int i;
14222 int
14223 main ()
14224 {
14225
14226   ;
14227   return 0;
14228 }
14229 _ACEOF
14230 if ac_fn_c_try_link "$LINENO"; then :
14231   eval $cacheid=yes
14232 else
14233   eval $cacheid=no
14234 fi
14235 rm -f core conftest.err conftest.$ac_objext \
14236     conftest$ac_exeext conftest.$ac_ext
14237 fi
14238
14239
14240                 CFLAGS="$xorg_testset_save_CFLAGS"
14241
14242                 eval supported=\$$cacheid
14243                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14244 $as_echo "$supported" >&6; }
14245                 if test "$supported" = "yes" ; then
14246                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14247                         found="yes"
14248                 fi
14249         fi
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265 xorg_testset_save_CFLAGS="$CFLAGS"
14266
14267 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14268         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14269         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14270 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14271 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14272   $as_echo_n "(cached) " >&6
14273 else
14274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14275 /* end confdefs.h.  */
14276 int i;
14277 _ACEOF
14278 if ac_fn_c_try_compile "$LINENO"; then :
14279   xorg_cv_cc_flag_unknown_warning_option=yes
14280 else
14281   xorg_cv_cc_flag_unknown_warning_option=no
14282 fi
14283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14284 fi
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14286 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14287         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14288         CFLAGS="$xorg_testset_save_CFLAGS"
14289 fi
14290
14291 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14292         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14293                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14294         fi
14295         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14296         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14297 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14298 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14299   $as_echo_n "(cached) " >&6
14300 else
14301   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14302 /* end confdefs.h.  */
14303 int i;
14304 _ACEOF
14305 if ac_fn_c_try_compile "$LINENO"; then :
14306   xorg_cv_cc_flag_unused_command_line_argument=yes
14307 else
14308   xorg_cv_cc_flag_unused_command_line_argument=no
14309 fi
14310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14311 fi
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14313 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14314         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14315         CFLAGS="$xorg_testset_save_CFLAGS"
14316 fi
14317
14318 found="no"
14319
14320         if test $found = "no" ; then
14321                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14322                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14323                 fi
14324
14325                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14326                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14327                 fi
14328
14329                 CFLAGS="$CFLAGS -Wredundant-decls"
14330
14331                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14332 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14333                 cacheid=xorg_cv_cc_flag__Wredundant_decls
14334                 if eval \${$cacheid+:} false; then :
14335   $as_echo_n "(cached) " >&6
14336 else
14337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14338 /* end confdefs.h.  */
14339 int i;
14340 int
14341 main ()
14342 {
14343
14344   ;
14345   return 0;
14346 }
14347 _ACEOF
14348 if ac_fn_c_try_link "$LINENO"; then :
14349   eval $cacheid=yes
14350 else
14351   eval $cacheid=no
14352 fi
14353 rm -f core conftest.err conftest.$ac_objext \
14354     conftest$ac_exeext conftest.$ac_ext
14355 fi
14356
14357
14358                 CFLAGS="$xorg_testset_save_CFLAGS"
14359
14360                 eval supported=\$$cacheid
14361                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14362 $as_echo "$supported" >&6; }
14363                 if test "$supported" = "yes" ; then
14364                         BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14365                         found="yes"
14366                 fi
14367         fi
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383 xorg_testset_save_CFLAGS="$CFLAGS"
14384
14385 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14386         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14387         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14388 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14389 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14390   $as_echo_n "(cached) " >&6
14391 else
14392   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14393 /* end confdefs.h.  */
14394 int i;
14395 _ACEOF
14396 if ac_fn_c_try_compile "$LINENO"; then :
14397   xorg_cv_cc_flag_unknown_warning_option=yes
14398 else
14399   xorg_cv_cc_flag_unknown_warning_option=no
14400 fi
14401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14402 fi
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14404 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14405         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14406         CFLAGS="$xorg_testset_save_CFLAGS"
14407 fi
14408
14409 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14410         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14411                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14412         fi
14413         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14414         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14415 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14416 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14417   $as_echo_n "(cached) " >&6
14418 else
14419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14420 /* end confdefs.h.  */
14421 int i;
14422 _ACEOF
14423 if ac_fn_c_try_compile "$LINENO"; then :
14424   xorg_cv_cc_flag_unused_command_line_argument=yes
14425 else
14426   xorg_cv_cc_flag_unused_command_line_argument=no
14427 fi
14428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14429 fi
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14431 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14432         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14433         CFLAGS="$xorg_testset_save_CFLAGS"
14434 fi
14435
14436 found="no"
14437
14438         if test $found = "no" ; then
14439                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14440                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14441                 fi
14442
14443                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14444                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14445                 fi
14446
14447                 CFLAGS="$CFLAGS -Wlogical-op"
14448
14449                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14450 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14451                 cacheid=xorg_cv_cc_flag__Wlogical_op
14452                 if eval \${$cacheid+:} false; then :
14453   $as_echo_n "(cached) " >&6
14454 else
14455   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14456 /* end confdefs.h.  */
14457 int i;
14458 int
14459 main ()
14460 {
14461
14462   ;
14463   return 0;
14464 }
14465 _ACEOF
14466 if ac_fn_c_try_link "$LINENO"; then :
14467   eval $cacheid=yes
14468 else
14469   eval $cacheid=no
14470 fi
14471 rm -f core conftest.err conftest.$ac_objext \
14472     conftest$ac_exeext conftest.$ac_ext
14473 fi
14474
14475
14476                 CFLAGS="$xorg_testset_save_CFLAGS"
14477
14478                 eval supported=\$$cacheid
14479                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14480 $as_echo "$supported" >&6; }
14481                 if test "$supported" = "yes" ; then
14482                         BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14483                         found="yes"
14484                 fi
14485         fi
14486
14487
14488
14489 # These are currently disabled because they are noisy.  They will be enabled
14490 # in the future once the codebase is sufficiently modernized to silence
14491 # them.  For now, I don't want them to drown out the other warnings.
14492 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14493 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14494 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14495
14496 # Turn some warnings into errors, so we don't accidently get successful builds
14497 # when there are problems that should be fixed.
14498
14499 if test "x$SELECTIVE_WERROR" = "xyes" ; then
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513 xorg_testset_save_CFLAGS="$CFLAGS"
14514
14515 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14516         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14517         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14518 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14519 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14520   $as_echo_n "(cached) " >&6
14521 else
14522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14523 /* end confdefs.h.  */
14524 int i;
14525 _ACEOF
14526 if ac_fn_c_try_compile "$LINENO"; then :
14527   xorg_cv_cc_flag_unknown_warning_option=yes
14528 else
14529   xorg_cv_cc_flag_unknown_warning_option=no
14530 fi
14531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14532 fi
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14534 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14535         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14536         CFLAGS="$xorg_testset_save_CFLAGS"
14537 fi
14538
14539 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14540         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14541                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14542         fi
14543         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14544         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14545 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14546 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14547   $as_echo_n "(cached) " >&6
14548 else
14549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14550 /* end confdefs.h.  */
14551 int i;
14552 _ACEOF
14553 if ac_fn_c_try_compile "$LINENO"; then :
14554   xorg_cv_cc_flag_unused_command_line_argument=yes
14555 else
14556   xorg_cv_cc_flag_unused_command_line_argument=no
14557 fi
14558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14559 fi
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14561 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14562         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14563         CFLAGS="$xorg_testset_save_CFLAGS"
14564 fi
14565
14566 found="no"
14567
14568         if test $found = "no" ; then
14569                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14570                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14571                 fi
14572
14573                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14574                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14575                 fi
14576
14577                 CFLAGS="$CFLAGS -Werror=implicit"
14578
14579                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14580 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14581                 cacheid=xorg_cv_cc_flag__Werror_implicit
14582                 if eval \${$cacheid+:} false; then :
14583   $as_echo_n "(cached) " >&6
14584 else
14585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14586 /* end confdefs.h.  */
14587 int i;
14588 int
14589 main ()
14590 {
14591
14592   ;
14593   return 0;
14594 }
14595 _ACEOF
14596 if ac_fn_c_try_link "$LINENO"; then :
14597   eval $cacheid=yes
14598 else
14599   eval $cacheid=no
14600 fi
14601 rm -f core conftest.err conftest.$ac_objext \
14602     conftest$ac_exeext conftest.$ac_ext
14603 fi
14604
14605
14606                 CFLAGS="$xorg_testset_save_CFLAGS"
14607
14608                 eval supported=\$$cacheid
14609                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14610 $as_echo "$supported" >&6; }
14611                 if test "$supported" = "yes" ; then
14612                         BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14613                         found="yes"
14614                 fi
14615         fi
14616
14617         if test $found = "no" ; then
14618                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14619                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14620                 fi
14621
14622                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14623                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14624                 fi
14625
14626                 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14627
14628                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14629 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14630                 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14631                 if eval \${$cacheid+:} false; then :
14632   $as_echo_n "(cached) " >&6
14633 else
14634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14635 /* end confdefs.h.  */
14636 int i;
14637 int
14638 main ()
14639 {
14640
14641   ;
14642   return 0;
14643 }
14644 _ACEOF
14645 if ac_fn_c_try_link "$LINENO"; then :
14646   eval $cacheid=yes
14647 else
14648   eval $cacheid=no
14649 fi
14650 rm -f core conftest.err conftest.$ac_objext \
14651     conftest$ac_exeext conftest.$ac_ext
14652 fi
14653
14654
14655                 CFLAGS="$xorg_testset_save_CFLAGS"
14656
14657                 eval supported=\$$cacheid
14658                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14659 $as_echo "$supported" >&6; }
14660                 if test "$supported" = "yes" ; then
14661                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14662                         found="yes"
14663                 fi
14664         fi
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680 xorg_testset_save_CFLAGS="$CFLAGS"
14681
14682 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14683         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14684         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14685 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14686 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14687   $as_echo_n "(cached) " >&6
14688 else
14689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14690 /* end confdefs.h.  */
14691 int i;
14692 _ACEOF
14693 if ac_fn_c_try_compile "$LINENO"; then :
14694   xorg_cv_cc_flag_unknown_warning_option=yes
14695 else
14696   xorg_cv_cc_flag_unknown_warning_option=no
14697 fi
14698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14699 fi
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14701 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14702         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14703         CFLAGS="$xorg_testset_save_CFLAGS"
14704 fi
14705
14706 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14707         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14708                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14709         fi
14710         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14711         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14712 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14713 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14714   $as_echo_n "(cached) " >&6
14715 else
14716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14717 /* end confdefs.h.  */
14718 int i;
14719 _ACEOF
14720 if ac_fn_c_try_compile "$LINENO"; then :
14721   xorg_cv_cc_flag_unused_command_line_argument=yes
14722 else
14723   xorg_cv_cc_flag_unused_command_line_argument=no
14724 fi
14725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14726 fi
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14728 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14729         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14730         CFLAGS="$xorg_testset_save_CFLAGS"
14731 fi
14732
14733 found="no"
14734
14735         if test $found = "no" ; then
14736                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14737                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14738                 fi
14739
14740                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14741                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14742                 fi
14743
14744                 CFLAGS="$CFLAGS -Werror=nonnull"
14745
14746                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14747 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14748                 cacheid=xorg_cv_cc_flag__Werror_nonnull
14749                 if eval \${$cacheid+:} false; then :
14750   $as_echo_n "(cached) " >&6
14751 else
14752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14753 /* end confdefs.h.  */
14754 int i;
14755 int
14756 main ()
14757 {
14758
14759   ;
14760   return 0;
14761 }
14762 _ACEOF
14763 if ac_fn_c_try_link "$LINENO"; then :
14764   eval $cacheid=yes
14765 else
14766   eval $cacheid=no
14767 fi
14768 rm -f core conftest.err conftest.$ac_objext \
14769     conftest$ac_exeext conftest.$ac_ext
14770 fi
14771
14772
14773                 CFLAGS="$xorg_testset_save_CFLAGS"
14774
14775                 eval supported=\$$cacheid
14776                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14777 $as_echo "$supported" >&6; }
14778                 if test "$supported" = "yes" ; then
14779                         BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14780                         found="yes"
14781                 fi
14782         fi
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798 xorg_testset_save_CFLAGS="$CFLAGS"
14799
14800 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14801         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14802         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14803 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14804 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14805   $as_echo_n "(cached) " >&6
14806 else
14807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14808 /* end confdefs.h.  */
14809 int i;
14810 _ACEOF
14811 if ac_fn_c_try_compile "$LINENO"; then :
14812   xorg_cv_cc_flag_unknown_warning_option=yes
14813 else
14814   xorg_cv_cc_flag_unknown_warning_option=no
14815 fi
14816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14817 fi
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14819 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14820         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14821         CFLAGS="$xorg_testset_save_CFLAGS"
14822 fi
14823
14824 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14825         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14826                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14827         fi
14828         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14829         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14830 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14831 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14832   $as_echo_n "(cached) " >&6
14833 else
14834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14835 /* end confdefs.h.  */
14836 int i;
14837 _ACEOF
14838 if ac_fn_c_try_compile "$LINENO"; then :
14839   xorg_cv_cc_flag_unused_command_line_argument=yes
14840 else
14841   xorg_cv_cc_flag_unused_command_line_argument=no
14842 fi
14843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14844 fi
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14846 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14847         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14848         CFLAGS="$xorg_testset_save_CFLAGS"
14849 fi
14850
14851 found="no"
14852
14853         if test $found = "no" ; then
14854                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14855                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14856                 fi
14857
14858                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14859                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14860                 fi
14861
14862                 CFLAGS="$CFLAGS -Werror=init-self"
14863
14864                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14865 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14866                 cacheid=xorg_cv_cc_flag__Werror_init_self
14867                 if eval \${$cacheid+:} false; then :
14868   $as_echo_n "(cached) " >&6
14869 else
14870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14871 /* end confdefs.h.  */
14872 int i;
14873 int
14874 main ()
14875 {
14876
14877   ;
14878   return 0;
14879 }
14880 _ACEOF
14881 if ac_fn_c_try_link "$LINENO"; then :
14882   eval $cacheid=yes
14883 else
14884   eval $cacheid=no
14885 fi
14886 rm -f core conftest.err conftest.$ac_objext \
14887     conftest$ac_exeext conftest.$ac_ext
14888 fi
14889
14890
14891                 CFLAGS="$xorg_testset_save_CFLAGS"
14892
14893                 eval supported=\$$cacheid
14894                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14895 $as_echo "$supported" >&6; }
14896                 if test "$supported" = "yes" ; then
14897                         BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14898                         found="yes"
14899                 fi
14900         fi
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916 xorg_testset_save_CFLAGS="$CFLAGS"
14917
14918 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14919         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14920         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14921 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14922 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14923   $as_echo_n "(cached) " >&6
14924 else
14925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14926 /* end confdefs.h.  */
14927 int i;
14928 _ACEOF
14929 if ac_fn_c_try_compile "$LINENO"; then :
14930   xorg_cv_cc_flag_unknown_warning_option=yes
14931 else
14932   xorg_cv_cc_flag_unknown_warning_option=no
14933 fi
14934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14935 fi
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14937 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14938         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14939         CFLAGS="$xorg_testset_save_CFLAGS"
14940 fi
14941
14942 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14943         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14944                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14945         fi
14946         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14947         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14948 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14949 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14950   $as_echo_n "(cached) " >&6
14951 else
14952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14953 /* end confdefs.h.  */
14954 int i;
14955 _ACEOF
14956 if ac_fn_c_try_compile "$LINENO"; then :
14957   xorg_cv_cc_flag_unused_command_line_argument=yes
14958 else
14959   xorg_cv_cc_flag_unused_command_line_argument=no
14960 fi
14961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14962 fi
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14964 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14965         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14966         CFLAGS="$xorg_testset_save_CFLAGS"
14967 fi
14968
14969 found="no"
14970
14971         if test $found = "no" ; then
14972                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14973                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14974                 fi
14975
14976                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14977                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14978                 fi
14979
14980                 CFLAGS="$CFLAGS -Werror=main"
14981
14982                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14983 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14984                 cacheid=xorg_cv_cc_flag__Werror_main
14985                 if eval \${$cacheid+:} false; then :
14986   $as_echo_n "(cached) " >&6
14987 else
14988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14989 /* end confdefs.h.  */
14990 int i;
14991 int
14992 main ()
14993 {
14994
14995   ;
14996   return 0;
14997 }
14998 _ACEOF
14999 if ac_fn_c_try_link "$LINENO"; then :
15000   eval $cacheid=yes
15001 else
15002   eval $cacheid=no
15003 fi
15004 rm -f core conftest.err conftest.$ac_objext \
15005     conftest$ac_exeext conftest.$ac_ext
15006 fi
15007
15008
15009                 CFLAGS="$xorg_testset_save_CFLAGS"
15010
15011                 eval supported=\$$cacheid
15012                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15013 $as_echo "$supported" >&6; }
15014                 if test "$supported" = "yes" ; then
15015                         BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15016                         found="yes"
15017                 fi
15018         fi
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034 xorg_testset_save_CFLAGS="$CFLAGS"
15035
15036 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15037         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15038         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15039 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15040 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15041   $as_echo_n "(cached) " >&6
15042 else
15043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15044 /* end confdefs.h.  */
15045 int i;
15046 _ACEOF
15047 if ac_fn_c_try_compile "$LINENO"; then :
15048   xorg_cv_cc_flag_unknown_warning_option=yes
15049 else
15050   xorg_cv_cc_flag_unknown_warning_option=no
15051 fi
15052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15053 fi
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15055 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15056         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15057         CFLAGS="$xorg_testset_save_CFLAGS"
15058 fi
15059
15060 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15061         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15062                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15063         fi
15064         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15065         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15066 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15067 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15068   $as_echo_n "(cached) " >&6
15069 else
15070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15071 /* end confdefs.h.  */
15072 int i;
15073 _ACEOF
15074 if ac_fn_c_try_compile "$LINENO"; then :
15075   xorg_cv_cc_flag_unused_command_line_argument=yes
15076 else
15077   xorg_cv_cc_flag_unused_command_line_argument=no
15078 fi
15079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15080 fi
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15082 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15083         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15084         CFLAGS="$xorg_testset_save_CFLAGS"
15085 fi
15086
15087 found="no"
15088
15089         if test $found = "no" ; then
15090                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15091                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15092                 fi
15093
15094                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15095                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15096                 fi
15097
15098                 CFLAGS="$CFLAGS -Werror=missing-braces"
15099
15100                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15101 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15102                 cacheid=xorg_cv_cc_flag__Werror_missing_braces
15103                 if eval \${$cacheid+:} false; then :
15104   $as_echo_n "(cached) " >&6
15105 else
15106   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15107 /* end confdefs.h.  */
15108 int i;
15109 int
15110 main ()
15111 {
15112
15113   ;
15114   return 0;
15115 }
15116 _ACEOF
15117 if ac_fn_c_try_link "$LINENO"; then :
15118   eval $cacheid=yes
15119 else
15120   eval $cacheid=no
15121 fi
15122 rm -f core conftest.err conftest.$ac_objext \
15123     conftest$ac_exeext conftest.$ac_ext
15124 fi
15125
15126
15127                 CFLAGS="$xorg_testset_save_CFLAGS"
15128
15129                 eval supported=\$$cacheid
15130                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15131 $as_echo "$supported" >&6; }
15132                 if test "$supported" = "yes" ; then
15133                         BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15134                         found="yes"
15135                 fi
15136         fi
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152 xorg_testset_save_CFLAGS="$CFLAGS"
15153
15154 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15155         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15156         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15157 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15158 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15159   $as_echo_n "(cached) " >&6
15160 else
15161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15162 /* end confdefs.h.  */
15163 int i;
15164 _ACEOF
15165 if ac_fn_c_try_compile "$LINENO"; then :
15166   xorg_cv_cc_flag_unknown_warning_option=yes
15167 else
15168   xorg_cv_cc_flag_unknown_warning_option=no
15169 fi
15170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15171 fi
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15173 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15174         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15175         CFLAGS="$xorg_testset_save_CFLAGS"
15176 fi
15177
15178 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15179         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15180                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15181         fi
15182         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15183         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15184 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15185 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15186   $as_echo_n "(cached) " >&6
15187 else
15188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15189 /* end confdefs.h.  */
15190 int i;
15191 _ACEOF
15192 if ac_fn_c_try_compile "$LINENO"; then :
15193   xorg_cv_cc_flag_unused_command_line_argument=yes
15194 else
15195   xorg_cv_cc_flag_unused_command_line_argument=no
15196 fi
15197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15198 fi
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15200 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15201         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15202         CFLAGS="$xorg_testset_save_CFLAGS"
15203 fi
15204
15205 found="no"
15206
15207         if test $found = "no" ; then
15208                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15209                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15210                 fi
15211
15212                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15213                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15214                 fi
15215
15216                 CFLAGS="$CFLAGS -Werror=sequence-point"
15217
15218                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15219 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15220                 cacheid=xorg_cv_cc_flag__Werror_sequence_point
15221                 if eval \${$cacheid+:} false; then :
15222   $as_echo_n "(cached) " >&6
15223 else
15224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15225 /* end confdefs.h.  */
15226 int i;
15227 int
15228 main ()
15229 {
15230
15231   ;
15232   return 0;
15233 }
15234 _ACEOF
15235 if ac_fn_c_try_link "$LINENO"; then :
15236   eval $cacheid=yes
15237 else
15238   eval $cacheid=no
15239 fi
15240 rm -f core conftest.err conftest.$ac_objext \
15241     conftest$ac_exeext conftest.$ac_ext
15242 fi
15243
15244
15245                 CFLAGS="$xorg_testset_save_CFLAGS"
15246
15247                 eval supported=\$$cacheid
15248                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15249 $as_echo "$supported" >&6; }
15250                 if test "$supported" = "yes" ; then
15251                         BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15252                         found="yes"
15253                 fi
15254         fi
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270 xorg_testset_save_CFLAGS="$CFLAGS"
15271
15272 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15273         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15274         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15275 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15276 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15277   $as_echo_n "(cached) " >&6
15278 else
15279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15280 /* end confdefs.h.  */
15281 int i;
15282 _ACEOF
15283 if ac_fn_c_try_compile "$LINENO"; then :
15284   xorg_cv_cc_flag_unknown_warning_option=yes
15285 else
15286   xorg_cv_cc_flag_unknown_warning_option=no
15287 fi
15288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15289 fi
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15291 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15292         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15293         CFLAGS="$xorg_testset_save_CFLAGS"
15294 fi
15295
15296 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15297         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15298                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15299         fi
15300         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15301         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15302 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15303 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15304   $as_echo_n "(cached) " >&6
15305 else
15306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15307 /* end confdefs.h.  */
15308 int i;
15309 _ACEOF
15310 if ac_fn_c_try_compile "$LINENO"; then :
15311   xorg_cv_cc_flag_unused_command_line_argument=yes
15312 else
15313   xorg_cv_cc_flag_unused_command_line_argument=no
15314 fi
15315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15316 fi
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15318 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15319         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15320         CFLAGS="$xorg_testset_save_CFLAGS"
15321 fi
15322
15323 found="no"
15324
15325         if test $found = "no" ; then
15326                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15327                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15328                 fi
15329
15330                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15331                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15332                 fi
15333
15334                 CFLAGS="$CFLAGS -Werror=return-type"
15335
15336                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15337 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15338                 cacheid=xorg_cv_cc_flag__Werror_return_type
15339                 if eval \${$cacheid+:} false; then :
15340   $as_echo_n "(cached) " >&6
15341 else
15342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15343 /* end confdefs.h.  */
15344 int i;
15345 int
15346 main ()
15347 {
15348
15349   ;
15350   return 0;
15351 }
15352 _ACEOF
15353 if ac_fn_c_try_link "$LINENO"; then :
15354   eval $cacheid=yes
15355 else
15356   eval $cacheid=no
15357 fi
15358 rm -f core conftest.err conftest.$ac_objext \
15359     conftest$ac_exeext conftest.$ac_ext
15360 fi
15361
15362
15363                 CFLAGS="$xorg_testset_save_CFLAGS"
15364
15365                 eval supported=\$$cacheid
15366                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15367 $as_echo "$supported" >&6; }
15368                 if test "$supported" = "yes" ; then
15369                         BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15370                         found="yes"
15371                 fi
15372         fi
15373
15374         if test $found = "no" ; then
15375                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15376                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15377                 fi
15378
15379                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15380                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15381                 fi
15382
15383                 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15384
15385                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15386 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15387                 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15388                 if eval \${$cacheid+:} false; then :
15389   $as_echo_n "(cached) " >&6
15390 else
15391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15392 /* end confdefs.h.  */
15393 int i;
15394 int
15395 main ()
15396 {
15397
15398   ;
15399   return 0;
15400 }
15401 _ACEOF
15402 if ac_fn_c_try_link "$LINENO"; then :
15403   eval $cacheid=yes
15404 else
15405   eval $cacheid=no
15406 fi
15407 rm -f core conftest.err conftest.$ac_objext \
15408     conftest$ac_exeext conftest.$ac_ext
15409 fi
15410
15411
15412                 CFLAGS="$xorg_testset_save_CFLAGS"
15413
15414                 eval supported=\$$cacheid
15415                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15416 $as_echo "$supported" >&6; }
15417                 if test "$supported" = "yes" ; then
15418                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15419                         found="yes"
15420                 fi
15421         fi
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437 xorg_testset_save_CFLAGS="$CFLAGS"
15438
15439 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15440         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15441         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15442 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15443 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15444   $as_echo_n "(cached) " >&6
15445 else
15446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15447 /* end confdefs.h.  */
15448 int i;
15449 _ACEOF
15450 if ac_fn_c_try_compile "$LINENO"; then :
15451   xorg_cv_cc_flag_unknown_warning_option=yes
15452 else
15453   xorg_cv_cc_flag_unknown_warning_option=no
15454 fi
15455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15456 fi
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15458 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15459         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15460         CFLAGS="$xorg_testset_save_CFLAGS"
15461 fi
15462
15463 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15464         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15465                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15466         fi
15467         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15468         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15469 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15470 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15471   $as_echo_n "(cached) " >&6
15472 else
15473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15474 /* end confdefs.h.  */
15475 int i;
15476 _ACEOF
15477 if ac_fn_c_try_compile "$LINENO"; then :
15478   xorg_cv_cc_flag_unused_command_line_argument=yes
15479 else
15480   xorg_cv_cc_flag_unused_command_line_argument=no
15481 fi
15482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15483 fi
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15485 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15486         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15487         CFLAGS="$xorg_testset_save_CFLAGS"
15488 fi
15489
15490 found="no"
15491
15492         if test $found = "no" ; then
15493                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15494                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15495                 fi
15496
15497                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15498                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15499                 fi
15500
15501                 CFLAGS="$CFLAGS -Werror=trigraphs"
15502
15503                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15504 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15505                 cacheid=xorg_cv_cc_flag__Werror_trigraphs
15506                 if eval \${$cacheid+:} false; then :
15507   $as_echo_n "(cached) " >&6
15508 else
15509   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15510 /* end confdefs.h.  */
15511 int i;
15512 int
15513 main ()
15514 {
15515
15516   ;
15517   return 0;
15518 }
15519 _ACEOF
15520 if ac_fn_c_try_link "$LINENO"; then :
15521   eval $cacheid=yes
15522 else
15523   eval $cacheid=no
15524 fi
15525 rm -f core conftest.err conftest.$ac_objext \
15526     conftest$ac_exeext conftest.$ac_ext
15527 fi
15528
15529
15530                 CFLAGS="$xorg_testset_save_CFLAGS"
15531
15532                 eval supported=\$$cacheid
15533                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15534 $as_echo "$supported" >&6; }
15535                 if test "$supported" = "yes" ; then
15536                         BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15537                         found="yes"
15538                 fi
15539         fi
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555 xorg_testset_save_CFLAGS="$CFLAGS"
15556
15557 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15558         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15559         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15560 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15561 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15562   $as_echo_n "(cached) " >&6
15563 else
15564   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15565 /* end confdefs.h.  */
15566 int i;
15567 _ACEOF
15568 if ac_fn_c_try_compile "$LINENO"; then :
15569   xorg_cv_cc_flag_unknown_warning_option=yes
15570 else
15571   xorg_cv_cc_flag_unknown_warning_option=no
15572 fi
15573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15574 fi
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15576 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15577         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15578         CFLAGS="$xorg_testset_save_CFLAGS"
15579 fi
15580
15581 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15582         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15583                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15584         fi
15585         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15586         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15587 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15588 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15589   $as_echo_n "(cached) " >&6
15590 else
15591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15592 /* end confdefs.h.  */
15593 int i;
15594 _ACEOF
15595 if ac_fn_c_try_compile "$LINENO"; then :
15596   xorg_cv_cc_flag_unused_command_line_argument=yes
15597 else
15598   xorg_cv_cc_flag_unused_command_line_argument=no
15599 fi
15600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15601 fi
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15603 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15604         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15605         CFLAGS="$xorg_testset_save_CFLAGS"
15606 fi
15607
15608 found="no"
15609
15610         if test $found = "no" ; then
15611                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15612                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15613                 fi
15614
15615                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15616                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15617                 fi
15618
15619                 CFLAGS="$CFLAGS -Werror=array-bounds"
15620
15621                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15622 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15623                 cacheid=xorg_cv_cc_flag__Werror_array_bounds
15624                 if eval \${$cacheid+:} false; then :
15625   $as_echo_n "(cached) " >&6
15626 else
15627   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15628 /* end confdefs.h.  */
15629 int i;
15630 int
15631 main ()
15632 {
15633
15634   ;
15635   return 0;
15636 }
15637 _ACEOF
15638 if ac_fn_c_try_link "$LINENO"; then :
15639   eval $cacheid=yes
15640 else
15641   eval $cacheid=no
15642 fi
15643 rm -f core conftest.err conftest.$ac_objext \
15644     conftest$ac_exeext conftest.$ac_ext
15645 fi
15646
15647
15648                 CFLAGS="$xorg_testset_save_CFLAGS"
15649
15650                 eval supported=\$$cacheid
15651                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15652 $as_echo "$supported" >&6; }
15653                 if test "$supported" = "yes" ; then
15654                         BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15655                         found="yes"
15656                 fi
15657         fi
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673 xorg_testset_save_CFLAGS="$CFLAGS"
15674
15675 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15676         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15677         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15678 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15679 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15680   $as_echo_n "(cached) " >&6
15681 else
15682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15683 /* end confdefs.h.  */
15684 int i;
15685 _ACEOF
15686 if ac_fn_c_try_compile "$LINENO"; then :
15687   xorg_cv_cc_flag_unknown_warning_option=yes
15688 else
15689   xorg_cv_cc_flag_unknown_warning_option=no
15690 fi
15691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15692 fi
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15694 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15695         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15696         CFLAGS="$xorg_testset_save_CFLAGS"
15697 fi
15698
15699 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15700         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15701                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15702         fi
15703         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15704         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15705 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15706 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15707   $as_echo_n "(cached) " >&6
15708 else
15709   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15710 /* end confdefs.h.  */
15711 int i;
15712 _ACEOF
15713 if ac_fn_c_try_compile "$LINENO"; then :
15714   xorg_cv_cc_flag_unused_command_line_argument=yes
15715 else
15716   xorg_cv_cc_flag_unused_command_line_argument=no
15717 fi
15718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15719 fi
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15721 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15722         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15723         CFLAGS="$xorg_testset_save_CFLAGS"
15724 fi
15725
15726 found="no"
15727
15728         if test $found = "no" ; then
15729                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15730                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15731                 fi
15732
15733                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15734                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15735                 fi
15736
15737                 CFLAGS="$CFLAGS -Werror=write-strings"
15738
15739                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15740 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15741                 cacheid=xorg_cv_cc_flag__Werror_write_strings
15742                 if eval \${$cacheid+:} false; then :
15743   $as_echo_n "(cached) " >&6
15744 else
15745   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15746 /* end confdefs.h.  */
15747 int i;
15748 int
15749 main ()
15750 {
15751
15752   ;
15753   return 0;
15754 }
15755 _ACEOF
15756 if ac_fn_c_try_link "$LINENO"; then :
15757   eval $cacheid=yes
15758 else
15759   eval $cacheid=no
15760 fi
15761 rm -f core conftest.err conftest.$ac_objext \
15762     conftest$ac_exeext conftest.$ac_ext
15763 fi
15764
15765
15766                 CFLAGS="$xorg_testset_save_CFLAGS"
15767
15768                 eval supported=\$$cacheid
15769                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15770 $as_echo "$supported" >&6; }
15771                 if test "$supported" = "yes" ; then
15772                         BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15773                         found="yes"
15774                 fi
15775         fi
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791 xorg_testset_save_CFLAGS="$CFLAGS"
15792
15793 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15794         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15795         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15796 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15797 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15798   $as_echo_n "(cached) " >&6
15799 else
15800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15801 /* end confdefs.h.  */
15802 int i;
15803 _ACEOF
15804 if ac_fn_c_try_compile "$LINENO"; then :
15805   xorg_cv_cc_flag_unknown_warning_option=yes
15806 else
15807   xorg_cv_cc_flag_unknown_warning_option=no
15808 fi
15809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15810 fi
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15812 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15813         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15814         CFLAGS="$xorg_testset_save_CFLAGS"
15815 fi
15816
15817 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15818         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15819                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15820         fi
15821         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15822         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15823 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15824 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15825   $as_echo_n "(cached) " >&6
15826 else
15827   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15828 /* end confdefs.h.  */
15829 int i;
15830 _ACEOF
15831 if ac_fn_c_try_compile "$LINENO"; then :
15832   xorg_cv_cc_flag_unused_command_line_argument=yes
15833 else
15834   xorg_cv_cc_flag_unused_command_line_argument=no
15835 fi
15836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15837 fi
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15839 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15840         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15841         CFLAGS="$xorg_testset_save_CFLAGS"
15842 fi
15843
15844 found="no"
15845
15846         if test $found = "no" ; then
15847                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15848                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15849                 fi
15850
15851                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15852                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15853                 fi
15854
15855                 CFLAGS="$CFLAGS -Werror=address"
15856
15857                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15858 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15859                 cacheid=xorg_cv_cc_flag__Werror_address
15860                 if eval \${$cacheid+:} false; then :
15861   $as_echo_n "(cached) " >&6
15862 else
15863   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15864 /* end confdefs.h.  */
15865 int i;
15866 int
15867 main ()
15868 {
15869
15870   ;
15871   return 0;
15872 }
15873 _ACEOF
15874 if ac_fn_c_try_link "$LINENO"; then :
15875   eval $cacheid=yes
15876 else
15877   eval $cacheid=no
15878 fi
15879 rm -f core conftest.err conftest.$ac_objext \
15880     conftest$ac_exeext conftest.$ac_ext
15881 fi
15882
15883
15884                 CFLAGS="$xorg_testset_save_CFLAGS"
15885
15886                 eval supported=\$$cacheid
15887                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15888 $as_echo "$supported" >&6; }
15889                 if test "$supported" = "yes" ; then
15890                         BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15891                         found="yes"
15892                 fi
15893         fi
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909 xorg_testset_save_CFLAGS="$CFLAGS"
15910
15911 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15912         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15913         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15914 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15915 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_cc_flag_unknown_warning_option=yes
15924 else
15925   xorg_cv_cc_flag_unknown_warning_option=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_cc_flag_unknown_warning_option" >&5
15930 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15931         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15932         CFLAGS="$xorg_testset_save_CFLAGS"
15933 fi
15934
15935 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15936         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15937                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15938         fi
15939         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15940         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15941 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15942 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15943   $as_echo_n "(cached) " >&6
15944 else
15945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15946 /* end confdefs.h.  */
15947 int i;
15948 _ACEOF
15949 if ac_fn_c_try_compile "$LINENO"; then :
15950   xorg_cv_cc_flag_unused_command_line_argument=yes
15951 else
15952   xorg_cv_cc_flag_unused_command_line_argument=no
15953 fi
15954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15955 fi
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15957 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15958         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15959         CFLAGS="$xorg_testset_save_CFLAGS"
15960 fi
15961
15962 found="no"
15963
15964         if test $found = "no" ; then
15965                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15966                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15967                 fi
15968
15969                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15970                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15971                 fi
15972
15973                 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15974
15975                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15976 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15977                 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
15978                 if eval \${$cacheid+:} false; then :
15979   $as_echo_n "(cached) " >&6
15980 else
15981   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15982 /* end confdefs.h.  */
15983 int i;
15984 int
15985 main ()
15986 {
15987
15988   ;
15989   return 0;
15990 }
15991 _ACEOF
15992 if ac_fn_c_try_link "$LINENO"; then :
15993   eval $cacheid=yes
15994 else
15995   eval $cacheid=no
15996 fi
15997 rm -f core conftest.err conftest.$ac_objext \
15998     conftest$ac_exeext conftest.$ac_ext
15999 fi
16000
16001
16002                 CFLAGS="$xorg_testset_save_CFLAGS"
16003
16004                 eval supported=\$$cacheid
16005                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16006 $as_echo "$supported" >&6; }
16007                 if test "$supported" = "yes" ; then
16008                         BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16009                         found="yes"
16010                 fi
16011         fi
16012
16013         if test $found = "no" ; then
16014                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16015                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16016                 fi
16017
16018                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16019                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16020                 fi
16021
16022                 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16023
16024                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16025 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16026                 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16027                 if eval \${$cacheid+:} false; then :
16028   $as_echo_n "(cached) " >&6
16029 else
16030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16031 /* end confdefs.h.  */
16032 int i;
16033 int
16034 main ()
16035 {
16036
16037   ;
16038   return 0;
16039 }
16040 _ACEOF
16041 if ac_fn_c_try_link "$LINENO"; then :
16042   eval $cacheid=yes
16043 else
16044   eval $cacheid=no
16045 fi
16046 rm -f core conftest.err conftest.$ac_objext \
16047     conftest$ac_exeext conftest.$ac_ext
16048 fi
16049
16050
16051                 CFLAGS="$xorg_testset_save_CFLAGS"
16052
16053                 eval supported=\$$cacheid
16054                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16055 $as_echo "$supported" >&6; }
16056                 if test "$supported" = "yes" ; then
16057                         BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16058                         found="yes"
16059                 fi
16060         fi
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076 xorg_testset_save_CFLAGS="$CFLAGS"
16077
16078 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16079         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16080         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16081 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16082 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16083   $as_echo_n "(cached) " >&6
16084 else
16085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16086 /* end confdefs.h.  */
16087 int i;
16088 _ACEOF
16089 if ac_fn_c_try_compile "$LINENO"; then :
16090   xorg_cv_cc_flag_unknown_warning_option=yes
16091 else
16092   xorg_cv_cc_flag_unknown_warning_option=no
16093 fi
16094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16095 fi
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16097 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16098         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16099         CFLAGS="$xorg_testset_save_CFLAGS"
16100 fi
16101
16102 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16103         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16104                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16105         fi
16106         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16107         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16108 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16109 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16110   $as_echo_n "(cached) " >&6
16111 else
16112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16113 /* end confdefs.h.  */
16114 int i;
16115 _ACEOF
16116 if ac_fn_c_try_compile "$LINENO"; then :
16117   xorg_cv_cc_flag_unused_command_line_argument=yes
16118 else
16119   xorg_cv_cc_flag_unused_command_line_argument=no
16120 fi
16121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16122 fi
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16124 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16125         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16126         CFLAGS="$xorg_testset_save_CFLAGS"
16127 fi
16128
16129 found="no"
16130
16131         if test $found = "no" ; then
16132                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16133                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16134                 fi
16135
16136                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16137                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16138                 fi
16139
16140                 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16141
16142                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16143 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16144                 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16145                 if eval \${$cacheid+:} false; then :
16146   $as_echo_n "(cached) " >&6
16147 else
16148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16149 /* end confdefs.h.  */
16150 int i;
16151 int
16152 main ()
16153 {
16154
16155   ;
16156   return 0;
16157 }
16158 _ACEOF
16159 if ac_fn_c_try_link "$LINENO"; then :
16160   eval $cacheid=yes
16161 else
16162   eval $cacheid=no
16163 fi
16164 rm -f core conftest.err conftest.$ac_objext \
16165     conftest$ac_exeext conftest.$ac_ext
16166 fi
16167
16168
16169                 CFLAGS="$xorg_testset_save_CFLAGS"
16170
16171                 eval supported=\$$cacheid
16172                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16173 $as_echo "$supported" >&6; }
16174                 if test "$supported" = "yes" ; then
16175                         BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16176                         found="yes"
16177                 fi
16178         fi
16179
16180  # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16181 else
16182 { $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
16183 $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;}
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197 xorg_testset_save_CFLAGS="$CFLAGS"
16198
16199 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16200         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16201         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16202 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16203 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16204   $as_echo_n "(cached) " >&6
16205 else
16206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16207 /* end confdefs.h.  */
16208 int i;
16209 _ACEOF
16210 if ac_fn_c_try_compile "$LINENO"; then :
16211   xorg_cv_cc_flag_unknown_warning_option=yes
16212 else
16213   xorg_cv_cc_flag_unknown_warning_option=no
16214 fi
16215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16216 fi
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16218 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16219         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16220         CFLAGS="$xorg_testset_save_CFLAGS"
16221 fi
16222
16223 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16224         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16225                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16226         fi
16227         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16228         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16229 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16230 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16231   $as_echo_n "(cached) " >&6
16232 else
16233   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16234 /* end confdefs.h.  */
16235 int i;
16236 _ACEOF
16237 if ac_fn_c_try_compile "$LINENO"; then :
16238   xorg_cv_cc_flag_unused_command_line_argument=yes
16239 else
16240   xorg_cv_cc_flag_unused_command_line_argument=no
16241 fi
16242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16243 fi
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16245 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16246         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16247         CFLAGS="$xorg_testset_save_CFLAGS"
16248 fi
16249
16250 found="no"
16251
16252         if test $found = "no" ; then
16253                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16254                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16255                 fi
16256
16257                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16258                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16259                 fi
16260
16261                 CFLAGS="$CFLAGS -Wimplicit"
16262
16263                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16264 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16265                 cacheid=xorg_cv_cc_flag__Wimplicit
16266                 if eval \${$cacheid+:} false; then :
16267   $as_echo_n "(cached) " >&6
16268 else
16269   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16270 /* end confdefs.h.  */
16271 int i;
16272 int
16273 main ()
16274 {
16275
16276   ;
16277   return 0;
16278 }
16279 _ACEOF
16280 if ac_fn_c_try_link "$LINENO"; then :
16281   eval $cacheid=yes
16282 else
16283   eval $cacheid=no
16284 fi
16285 rm -f core conftest.err conftest.$ac_objext \
16286     conftest$ac_exeext conftest.$ac_ext
16287 fi
16288
16289
16290                 CFLAGS="$xorg_testset_save_CFLAGS"
16291
16292                 eval supported=\$$cacheid
16293                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16294 $as_echo "$supported" >&6; }
16295                 if test "$supported" = "yes" ; then
16296                         BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16297                         found="yes"
16298                 fi
16299         fi
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315 xorg_testset_save_CFLAGS="$CFLAGS"
16316
16317 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16318         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16319         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16320 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16321 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16322   $as_echo_n "(cached) " >&6
16323 else
16324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16325 /* end confdefs.h.  */
16326 int i;
16327 _ACEOF
16328 if ac_fn_c_try_compile "$LINENO"; then :
16329   xorg_cv_cc_flag_unknown_warning_option=yes
16330 else
16331   xorg_cv_cc_flag_unknown_warning_option=no
16332 fi
16333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16334 fi
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16336 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16337         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16338         CFLAGS="$xorg_testset_save_CFLAGS"
16339 fi
16340
16341 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16342         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16343                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16344         fi
16345         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16346         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16347 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16348 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16349   $as_echo_n "(cached) " >&6
16350 else
16351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16352 /* end confdefs.h.  */
16353 int i;
16354 _ACEOF
16355 if ac_fn_c_try_compile "$LINENO"; then :
16356   xorg_cv_cc_flag_unused_command_line_argument=yes
16357 else
16358   xorg_cv_cc_flag_unused_command_line_argument=no
16359 fi
16360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16361 fi
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16363 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16364         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16365         CFLAGS="$xorg_testset_save_CFLAGS"
16366 fi
16367
16368 found="no"
16369
16370         if test $found = "no" ; then
16371                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16372                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16373                 fi
16374
16375                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16376                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16377                 fi
16378
16379                 CFLAGS="$CFLAGS -Wnonnull"
16380
16381                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16382 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16383                 cacheid=xorg_cv_cc_flag__Wnonnull
16384                 if eval \${$cacheid+:} false; then :
16385   $as_echo_n "(cached) " >&6
16386 else
16387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16388 /* end confdefs.h.  */
16389 int i;
16390 int
16391 main ()
16392 {
16393
16394   ;
16395   return 0;
16396 }
16397 _ACEOF
16398 if ac_fn_c_try_link "$LINENO"; then :
16399   eval $cacheid=yes
16400 else
16401   eval $cacheid=no
16402 fi
16403 rm -f core conftest.err conftest.$ac_objext \
16404     conftest$ac_exeext conftest.$ac_ext
16405 fi
16406
16407
16408                 CFLAGS="$xorg_testset_save_CFLAGS"
16409
16410                 eval supported=\$$cacheid
16411                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16412 $as_echo "$supported" >&6; }
16413                 if test "$supported" = "yes" ; then
16414                         BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16415                         found="yes"
16416                 fi
16417         fi
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433 xorg_testset_save_CFLAGS="$CFLAGS"
16434
16435 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16436         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16437         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16438 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16439 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16440   $as_echo_n "(cached) " >&6
16441 else
16442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16443 /* end confdefs.h.  */
16444 int i;
16445 _ACEOF
16446 if ac_fn_c_try_compile "$LINENO"; then :
16447   xorg_cv_cc_flag_unknown_warning_option=yes
16448 else
16449   xorg_cv_cc_flag_unknown_warning_option=no
16450 fi
16451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16452 fi
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16454 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16455         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16456         CFLAGS="$xorg_testset_save_CFLAGS"
16457 fi
16458
16459 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16460         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16461                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16462         fi
16463         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16464         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16465 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16466 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16467   $as_echo_n "(cached) " >&6
16468 else
16469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16470 /* end confdefs.h.  */
16471 int i;
16472 _ACEOF
16473 if ac_fn_c_try_compile "$LINENO"; then :
16474   xorg_cv_cc_flag_unused_command_line_argument=yes
16475 else
16476   xorg_cv_cc_flag_unused_command_line_argument=no
16477 fi
16478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16479 fi
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16481 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16482         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16483         CFLAGS="$xorg_testset_save_CFLAGS"
16484 fi
16485
16486 found="no"
16487
16488         if test $found = "no" ; then
16489                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16490                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16491                 fi
16492
16493                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16494                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16495                 fi
16496
16497                 CFLAGS="$CFLAGS -Winit-self"
16498
16499                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16500 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16501                 cacheid=xorg_cv_cc_flag__Winit_self
16502                 if eval \${$cacheid+:} false; then :
16503   $as_echo_n "(cached) " >&6
16504 else
16505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16506 /* end confdefs.h.  */
16507 int i;
16508 int
16509 main ()
16510 {
16511
16512   ;
16513   return 0;
16514 }
16515 _ACEOF
16516 if ac_fn_c_try_link "$LINENO"; then :
16517   eval $cacheid=yes
16518 else
16519   eval $cacheid=no
16520 fi
16521 rm -f core conftest.err conftest.$ac_objext \
16522     conftest$ac_exeext conftest.$ac_ext
16523 fi
16524
16525
16526                 CFLAGS="$xorg_testset_save_CFLAGS"
16527
16528                 eval supported=\$$cacheid
16529                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16530 $as_echo "$supported" >&6; }
16531                 if test "$supported" = "yes" ; then
16532                         BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16533                         found="yes"
16534                 fi
16535         fi
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551 xorg_testset_save_CFLAGS="$CFLAGS"
16552
16553 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16554         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16555         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16556 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16557 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16558   $as_echo_n "(cached) " >&6
16559 else
16560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16561 /* end confdefs.h.  */
16562 int i;
16563 _ACEOF
16564 if ac_fn_c_try_compile "$LINENO"; then :
16565   xorg_cv_cc_flag_unknown_warning_option=yes
16566 else
16567   xorg_cv_cc_flag_unknown_warning_option=no
16568 fi
16569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16570 fi
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16572 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16573         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16574         CFLAGS="$xorg_testset_save_CFLAGS"
16575 fi
16576
16577 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16578         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16579                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16580         fi
16581         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16582         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16583 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16584 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_cc_flag_unused_command_line_argument=yes
16593 else
16594   xorg_cv_cc_flag_unused_command_line_argument=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_cc_flag_unused_command_line_argument" >&5
16599 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16600         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16601         CFLAGS="$xorg_testset_save_CFLAGS"
16602 fi
16603
16604 found="no"
16605
16606         if test $found = "no" ; then
16607                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16608                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16609                 fi
16610
16611                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16612                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16613                 fi
16614
16615                 CFLAGS="$CFLAGS -Wmain"
16616
16617                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16618 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
16619                 cacheid=xorg_cv_cc_flag__Wmain
16620                 if eval \${$cacheid+:} false; then :
16621   $as_echo_n "(cached) " >&6
16622 else
16623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16624 /* end confdefs.h.  */
16625 int i;
16626 int
16627 main ()
16628 {
16629
16630   ;
16631   return 0;
16632 }
16633 _ACEOF
16634 if ac_fn_c_try_link "$LINENO"; then :
16635   eval $cacheid=yes
16636 else
16637   eval $cacheid=no
16638 fi
16639 rm -f core conftest.err conftest.$ac_objext \
16640     conftest$ac_exeext conftest.$ac_ext
16641 fi
16642
16643
16644                 CFLAGS="$xorg_testset_save_CFLAGS"
16645
16646                 eval supported=\$$cacheid
16647                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16648 $as_echo "$supported" >&6; }
16649                 if test "$supported" = "yes" ; then
16650                         BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16651                         found="yes"
16652                 fi
16653         fi
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669 xorg_testset_save_CFLAGS="$CFLAGS"
16670
16671 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16672         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16673         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16674 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16675 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16676   $as_echo_n "(cached) " >&6
16677 else
16678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16679 /* end confdefs.h.  */
16680 int i;
16681 _ACEOF
16682 if ac_fn_c_try_compile "$LINENO"; then :
16683   xorg_cv_cc_flag_unknown_warning_option=yes
16684 else
16685   xorg_cv_cc_flag_unknown_warning_option=no
16686 fi
16687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16688 fi
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16690 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16691         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16692         CFLAGS="$xorg_testset_save_CFLAGS"
16693 fi
16694
16695 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16696         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16697                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16698         fi
16699         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16700         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16701 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16702 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16703   $as_echo_n "(cached) " >&6
16704 else
16705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16706 /* end confdefs.h.  */
16707 int i;
16708 _ACEOF
16709 if ac_fn_c_try_compile "$LINENO"; then :
16710   xorg_cv_cc_flag_unused_command_line_argument=yes
16711 else
16712   xorg_cv_cc_flag_unused_command_line_argument=no
16713 fi
16714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16715 fi
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16717 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16718         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16719         CFLAGS="$xorg_testset_save_CFLAGS"
16720 fi
16721
16722 found="no"
16723
16724         if test $found = "no" ; then
16725                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16726                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16727                 fi
16728
16729                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16730                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16731                 fi
16732
16733                 CFLAGS="$CFLAGS -Wmissing-braces"
16734
16735                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16736 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16737                 cacheid=xorg_cv_cc_flag__Wmissing_braces
16738                 if eval \${$cacheid+:} false; then :
16739   $as_echo_n "(cached) " >&6
16740 else
16741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16742 /* end confdefs.h.  */
16743 int i;
16744 int
16745 main ()
16746 {
16747
16748   ;
16749   return 0;
16750 }
16751 _ACEOF
16752 if ac_fn_c_try_link "$LINENO"; then :
16753   eval $cacheid=yes
16754 else
16755   eval $cacheid=no
16756 fi
16757 rm -f core conftest.err conftest.$ac_objext \
16758     conftest$ac_exeext conftest.$ac_ext
16759 fi
16760
16761
16762                 CFLAGS="$xorg_testset_save_CFLAGS"
16763
16764                 eval supported=\$$cacheid
16765                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16766 $as_echo "$supported" >&6; }
16767                 if test "$supported" = "yes" ; then
16768                         BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16769                         found="yes"
16770                 fi
16771         fi
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787 xorg_testset_save_CFLAGS="$CFLAGS"
16788
16789 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16790         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16791         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16792 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16793 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16794   $as_echo_n "(cached) " >&6
16795 else
16796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16797 /* end confdefs.h.  */
16798 int i;
16799 _ACEOF
16800 if ac_fn_c_try_compile "$LINENO"; then :
16801   xorg_cv_cc_flag_unknown_warning_option=yes
16802 else
16803   xorg_cv_cc_flag_unknown_warning_option=no
16804 fi
16805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16806 fi
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16808 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16809         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16810         CFLAGS="$xorg_testset_save_CFLAGS"
16811 fi
16812
16813 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16814         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16815                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16816         fi
16817         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16818         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16819 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16820 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16821   $as_echo_n "(cached) " >&6
16822 else
16823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16824 /* end confdefs.h.  */
16825 int i;
16826 _ACEOF
16827 if ac_fn_c_try_compile "$LINENO"; then :
16828   xorg_cv_cc_flag_unused_command_line_argument=yes
16829 else
16830   xorg_cv_cc_flag_unused_command_line_argument=no
16831 fi
16832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16833 fi
16834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16835 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16836         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16837         CFLAGS="$xorg_testset_save_CFLAGS"
16838 fi
16839
16840 found="no"
16841
16842         if test $found = "no" ; then
16843                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16844                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16845                 fi
16846
16847                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16848                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16849                 fi
16850
16851                 CFLAGS="$CFLAGS -Wsequence-point"
16852
16853                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16854 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16855                 cacheid=xorg_cv_cc_flag__Wsequence_point
16856                 if eval \${$cacheid+:} false; then :
16857   $as_echo_n "(cached) " >&6
16858 else
16859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16860 /* end confdefs.h.  */
16861 int i;
16862 int
16863 main ()
16864 {
16865
16866   ;
16867   return 0;
16868 }
16869 _ACEOF
16870 if ac_fn_c_try_link "$LINENO"; then :
16871   eval $cacheid=yes
16872 else
16873   eval $cacheid=no
16874 fi
16875 rm -f core conftest.err conftest.$ac_objext \
16876     conftest$ac_exeext conftest.$ac_ext
16877 fi
16878
16879
16880                 CFLAGS="$xorg_testset_save_CFLAGS"
16881
16882                 eval supported=\$$cacheid
16883                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16884 $as_echo "$supported" >&6; }
16885                 if test "$supported" = "yes" ; then
16886                         BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16887                         found="yes"
16888                 fi
16889         fi
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905 xorg_testset_save_CFLAGS="$CFLAGS"
16906
16907 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16908         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16909         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16910 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16911 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16912   $as_echo_n "(cached) " >&6
16913 else
16914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16915 /* end confdefs.h.  */
16916 int i;
16917 _ACEOF
16918 if ac_fn_c_try_compile "$LINENO"; then :
16919   xorg_cv_cc_flag_unknown_warning_option=yes
16920 else
16921   xorg_cv_cc_flag_unknown_warning_option=no
16922 fi
16923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16924 fi
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16926 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16927         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16928         CFLAGS="$xorg_testset_save_CFLAGS"
16929 fi
16930
16931 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16932         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16933                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16934         fi
16935         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16936         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16937 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16938 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16939   $as_echo_n "(cached) " >&6
16940 else
16941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16942 /* end confdefs.h.  */
16943 int i;
16944 _ACEOF
16945 if ac_fn_c_try_compile "$LINENO"; then :
16946   xorg_cv_cc_flag_unused_command_line_argument=yes
16947 else
16948   xorg_cv_cc_flag_unused_command_line_argument=no
16949 fi
16950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16951 fi
16952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16953 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16954         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16955         CFLAGS="$xorg_testset_save_CFLAGS"
16956 fi
16957
16958 found="no"
16959
16960         if test $found = "no" ; then
16961                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16962                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16963                 fi
16964
16965                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16966                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16967                 fi
16968
16969                 CFLAGS="$CFLAGS -Wreturn-type"
16970
16971                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16972 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16973                 cacheid=xorg_cv_cc_flag__Wreturn_type
16974                 if eval \${$cacheid+:} false; then :
16975   $as_echo_n "(cached) " >&6
16976 else
16977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16978 /* end confdefs.h.  */
16979 int i;
16980 int
16981 main ()
16982 {
16983
16984   ;
16985   return 0;
16986 }
16987 _ACEOF
16988 if ac_fn_c_try_link "$LINENO"; then :
16989   eval $cacheid=yes
16990 else
16991   eval $cacheid=no
16992 fi
16993 rm -f core conftest.err conftest.$ac_objext \
16994     conftest$ac_exeext conftest.$ac_ext
16995 fi
16996
16997
16998                 CFLAGS="$xorg_testset_save_CFLAGS"
16999
17000                 eval supported=\$$cacheid
17001                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17002 $as_echo "$supported" >&6; }
17003                 if test "$supported" = "yes" ; then
17004                         BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17005                         found="yes"
17006                 fi
17007         fi
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023 xorg_testset_save_CFLAGS="$CFLAGS"
17024
17025 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17026         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17027         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17028 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17029 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17030   $as_echo_n "(cached) " >&6
17031 else
17032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17033 /* end confdefs.h.  */
17034 int i;
17035 _ACEOF
17036 if ac_fn_c_try_compile "$LINENO"; then :
17037   xorg_cv_cc_flag_unknown_warning_option=yes
17038 else
17039   xorg_cv_cc_flag_unknown_warning_option=no
17040 fi
17041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17042 fi
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17044 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17045         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17046         CFLAGS="$xorg_testset_save_CFLAGS"
17047 fi
17048
17049 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17050         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17051                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17052         fi
17053         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17054         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17055 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17056 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17057   $as_echo_n "(cached) " >&6
17058 else
17059   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17060 /* end confdefs.h.  */
17061 int i;
17062 _ACEOF
17063 if ac_fn_c_try_compile "$LINENO"; then :
17064   xorg_cv_cc_flag_unused_command_line_argument=yes
17065 else
17066   xorg_cv_cc_flag_unused_command_line_argument=no
17067 fi
17068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17069 fi
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17071 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17072         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17073         CFLAGS="$xorg_testset_save_CFLAGS"
17074 fi
17075
17076 found="no"
17077
17078         if test $found = "no" ; then
17079                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17080                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17081                 fi
17082
17083                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17084                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17085                 fi
17086
17087                 CFLAGS="$CFLAGS -Wtrigraphs"
17088
17089                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17090 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17091                 cacheid=xorg_cv_cc_flag__Wtrigraphs
17092                 if eval \${$cacheid+:} false; then :
17093   $as_echo_n "(cached) " >&6
17094 else
17095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17096 /* end confdefs.h.  */
17097 int i;
17098 int
17099 main ()
17100 {
17101
17102   ;
17103   return 0;
17104 }
17105 _ACEOF
17106 if ac_fn_c_try_link "$LINENO"; then :
17107   eval $cacheid=yes
17108 else
17109   eval $cacheid=no
17110 fi
17111 rm -f core conftest.err conftest.$ac_objext \
17112     conftest$ac_exeext conftest.$ac_ext
17113 fi
17114
17115
17116                 CFLAGS="$xorg_testset_save_CFLAGS"
17117
17118                 eval supported=\$$cacheid
17119                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17120 $as_echo "$supported" >&6; }
17121                 if test "$supported" = "yes" ; then
17122                         BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17123                         found="yes"
17124                 fi
17125         fi
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141 xorg_testset_save_CFLAGS="$CFLAGS"
17142
17143 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17144         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17145         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17146 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17147 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17148   $as_echo_n "(cached) " >&6
17149 else
17150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17151 /* end confdefs.h.  */
17152 int i;
17153 _ACEOF
17154 if ac_fn_c_try_compile "$LINENO"; then :
17155   xorg_cv_cc_flag_unknown_warning_option=yes
17156 else
17157   xorg_cv_cc_flag_unknown_warning_option=no
17158 fi
17159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17160 fi
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17162 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17163         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17164         CFLAGS="$xorg_testset_save_CFLAGS"
17165 fi
17166
17167 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17168         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17169                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17170         fi
17171         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17172         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17173 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17174 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17175   $as_echo_n "(cached) " >&6
17176 else
17177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17178 /* end confdefs.h.  */
17179 int i;
17180 _ACEOF
17181 if ac_fn_c_try_compile "$LINENO"; then :
17182   xorg_cv_cc_flag_unused_command_line_argument=yes
17183 else
17184   xorg_cv_cc_flag_unused_command_line_argument=no
17185 fi
17186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17187 fi
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17189 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17190         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17191         CFLAGS="$xorg_testset_save_CFLAGS"
17192 fi
17193
17194 found="no"
17195
17196         if test $found = "no" ; then
17197                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17198                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17199                 fi
17200
17201                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17202                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17203                 fi
17204
17205                 CFLAGS="$CFLAGS -Warray-bounds"
17206
17207                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17208 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17209                 cacheid=xorg_cv_cc_flag__Warray_bounds
17210                 if eval \${$cacheid+:} false; then :
17211   $as_echo_n "(cached) " >&6
17212 else
17213   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17214 /* end confdefs.h.  */
17215 int i;
17216 int
17217 main ()
17218 {
17219
17220   ;
17221   return 0;
17222 }
17223 _ACEOF
17224 if ac_fn_c_try_link "$LINENO"; then :
17225   eval $cacheid=yes
17226 else
17227   eval $cacheid=no
17228 fi
17229 rm -f core conftest.err conftest.$ac_objext \
17230     conftest$ac_exeext conftest.$ac_ext
17231 fi
17232
17233
17234                 CFLAGS="$xorg_testset_save_CFLAGS"
17235
17236                 eval supported=\$$cacheid
17237                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17238 $as_echo "$supported" >&6; }
17239                 if test "$supported" = "yes" ; then
17240                         BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17241                         found="yes"
17242                 fi
17243         fi
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259 xorg_testset_save_CFLAGS="$CFLAGS"
17260
17261 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17262         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17263         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17264 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17265 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17266   $as_echo_n "(cached) " >&6
17267 else
17268   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17269 /* end confdefs.h.  */
17270 int i;
17271 _ACEOF
17272 if ac_fn_c_try_compile "$LINENO"; then :
17273   xorg_cv_cc_flag_unknown_warning_option=yes
17274 else
17275   xorg_cv_cc_flag_unknown_warning_option=no
17276 fi
17277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17278 fi
17279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17280 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17281         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17282         CFLAGS="$xorg_testset_save_CFLAGS"
17283 fi
17284
17285 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17286         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17287                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17288         fi
17289         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17290         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17291 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17292 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17293   $as_echo_n "(cached) " >&6
17294 else
17295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17296 /* end confdefs.h.  */
17297 int i;
17298 _ACEOF
17299 if ac_fn_c_try_compile "$LINENO"; then :
17300   xorg_cv_cc_flag_unused_command_line_argument=yes
17301 else
17302   xorg_cv_cc_flag_unused_command_line_argument=no
17303 fi
17304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17305 fi
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17307 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17308         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17309         CFLAGS="$xorg_testset_save_CFLAGS"
17310 fi
17311
17312 found="no"
17313
17314         if test $found = "no" ; then
17315                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17316                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17317                 fi
17318
17319                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17320                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17321                 fi
17322
17323                 CFLAGS="$CFLAGS -Wwrite-strings"
17324
17325                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17326 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17327                 cacheid=xorg_cv_cc_flag__Wwrite_strings
17328                 if eval \${$cacheid+:} false; then :
17329   $as_echo_n "(cached) " >&6
17330 else
17331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17332 /* end confdefs.h.  */
17333 int i;
17334 int
17335 main ()
17336 {
17337
17338   ;
17339   return 0;
17340 }
17341 _ACEOF
17342 if ac_fn_c_try_link "$LINENO"; then :
17343   eval $cacheid=yes
17344 else
17345   eval $cacheid=no
17346 fi
17347 rm -f core conftest.err conftest.$ac_objext \
17348     conftest$ac_exeext conftest.$ac_ext
17349 fi
17350
17351
17352                 CFLAGS="$xorg_testset_save_CFLAGS"
17353
17354                 eval supported=\$$cacheid
17355                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17356 $as_echo "$supported" >&6; }
17357                 if test "$supported" = "yes" ; then
17358                         BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17359                         found="yes"
17360                 fi
17361         fi
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377 xorg_testset_save_CFLAGS="$CFLAGS"
17378
17379 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17380         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17381         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17382 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17383 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17384   $as_echo_n "(cached) " >&6
17385 else
17386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17387 /* end confdefs.h.  */
17388 int i;
17389 _ACEOF
17390 if ac_fn_c_try_compile "$LINENO"; then :
17391   xorg_cv_cc_flag_unknown_warning_option=yes
17392 else
17393   xorg_cv_cc_flag_unknown_warning_option=no
17394 fi
17395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17396 fi
17397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17398 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17399         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17400         CFLAGS="$xorg_testset_save_CFLAGS"
17401 fi
17402
17403 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17404         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17405                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17406         fi
17407         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17408         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17409 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17410 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17411   $as_echo_n "(cached) " >&6
17412 else
17413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17414 /* end confdefs.h.  */
17415 int i;
17416 _ACEOF
17417 if ac_fn_c_try_compile "$LINENO"; then :
17418   xorg_cv_cc_flag_unused_command_line_argument=yes
17419 else
17420   xorg_cv_cc_flag_unused_command_line_argument=no
17421 fi
17422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17423 fi
17424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17425 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17426         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17427         CFLAGS="$xorg_testset_save_CFLAGS"
17428 fi
17429
17430 found="no"
17431
17432         if test $found = "no" ; then
17433                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17434                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17435                 fi
17436
17437                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17438                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17439                 fi
17440
17441                 CFLAGS="$CFLAGS -Waddress"
17442
17443                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17444 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
17445                 cacheid=xorg_cv_cc_flag__Waddress
17446                 if eval \${$cacheid+:} false; then :
17447   $as_echo_n "(cached) " >&6
17448 else
17449   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17450 /* end confdefs.h.  */
17451 int i;
17452 int
17453 main ()
17454 {
17455
17456   ;
17457   return 0;
17458 }
17459 _ACEOF
17460 if ac_fn_c_try_link "$LINENO"; then :
17461   eval $cacheid=yes
17462 else
17463   eval $cacheid=no
17464 fi
17465 rm -f core conftest.err conftest.$ac_objext \
17466     conftest$ac_exeext conftest.$ac_ext
17467 fi
17468
17469
17470                 CFLAGS="$xorg_testset_save_CFLAGS"
17471
17472                 eval supported=\$$cacheid
17473                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17474 $as_echo "$supported" >&6; }
17475                 if test "$supported" = "yes" ; then
17476                         BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17477                         found="yes"
17478                 fi
17479         fi
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495 xorg_testset_save_CFLAGS="$CFLAGS"
17496
17497 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17498         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17499         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17500 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17501 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17502   $as_echo_n "(cached) " >&6
17503 else
17504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17505 /* end confdefs.h.  */
17506 int i;
17507 _ACEOF
17508 if ac_fn_c_try_compile "$LINENO"; then :
17509   xorg_cv_cc_flag_unknown_warning_option=yes
17510 else
17511   xorg_cv_cc_flag_unknown_warning_option=no
17512 fi
17513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17514 fi
17515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17516 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17517         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17518         CFLAGS="$xorg_testset_save_CFLAGS"
17519 fi
17520
17521 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17522         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17523                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17524         fi
17525         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17526         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17527 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17528 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17529   $as_echo_n "(cached) " >&6
17530 else
17531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17532 /* end confdefs.h.  */
17533 int i;
17534 _ACEOF
17535 if ac_fn_c_try_compile "$LINENO"; then :
17536   xorg_cv_cc_flag_unused_command_line_argument=yes
17537 else
17538   xorg_cv_cc_flag_unused_command_line_argument=no
17539 fi
17540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17541 fi
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17543 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17544         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17545         CFLAGS="$xorg_testset_save_CFLAGS"
17546 fi
17547
17548 found="no"
17549
17550         if test $found = "no" ; then
17551                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17552                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17553                 fi
17554
17555                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17556                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17557                 fi
17558
17559                 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17560
17561                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17562 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17563                 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17564                 if eval \${$cacheid+:} false; then :
17565   $as_echo_n "(cached) " >&6
17566 else
17567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17568 /* end confdefs.h.  */
17569 int i;
17570 int
17571 main ()
17572 {
17573
17574   ;
17575   return 0;
17576 }
17577 _ACEOF
17578 if ac_fn_c_try_link "$LINENO"; then :
17579   eval $cacheid=yes
17580 else
17581   eval $cacheid=no
17582 fi
17583 rm -f core conftest.err conftest.$ac_objext \
17584     conftest$ac_exeext conftest.$ac_ext
17585 fi
17586
17587
17588                 CFLAGS="$xorg_testset_save_CFLAGS"
17589
17590                 eval supported=\$$cacheid
17591                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17592 $as_echo "$supported" >&6; }
17593                 if test "$supported" = "yes" ; then
17594                         BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17595                         found="yes"
17596                 fi
17597         fi
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613 xorg_testset_save_CFLAGS="$CFLAGS"
17614
17615 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17616         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17617         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17618 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17619 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17620   $as_echo_n "(cached) " >&6
17621 else
17622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17623 /* end confdefs.h.  */
17624 int i;
17625 _ACEOF
17626 if ac_fn_c_try_compile "$LINENO"; then :
17627   xorg_cv_cc_flag_unknown_warning_option=yes
17628 else
17629   xorg_cv_cc_flag_unknown_warning_option=no
17630 fi
17631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17632 fi
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17634 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17635         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17636         CFLAGS="$xorg_testset_save_CFLAGS"
17637 fi
17638
17639 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17640         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17641                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17642         fi
17643         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17644         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17645 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17646 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17647   $as_echo_n "(cached) " >&6
17648 else
17649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17650 /* end confdefs.h.  */
17651 int i;
17652 _ACEOF
17653 if ac_fn_c_try_compile "$LINENO"; then :
17654   xorg_cv_cc_flag_unused_command_line_argument=yes
17655 else
17656   xorg_cv_cc_flag_unused_command_line_argument=no
17657 fi
17658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17659 fi
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17661 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17662         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17663         CFLAGS="$xorg_testset_save_CFLAGS"
17664 fi
17665
17666 found="no"
17667
17668         if test $found = "no" ; then
17669                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17670                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17671                 fi
17672
17673                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17674                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17675                 fi
17676
17677                 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17678
17679                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17680 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17681                 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17682                 if eval \${$cacheid+:} false; then :
17683   $as_echo_n "(cached) " >&6
17684 else
17685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17686 /* end confdefs.h.  */
17687 int i;
17688 int
17689 main ()
17690 {
17691
17692   ;
17693   return 0;
17694 }
17695 _ACEOF
17696 if ac_fn_c_try_link "$LINENO"; then :
17697   eval $cacheid=yes
17698 else
17699   eval $cacheid=no
17700 fi
17701 rm -f core conftest.err conftest.$ac_objext \
17702     conftest$ac_exeext conftest.$ac_ext
17703 fi
17704
17705
17706                 CFLAGS="$xorg_testset_save_CFLAGS"
17707
17708                 eval supported=\$$cacheid
17709                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17710 $as_echo "$supported" >&6; }
17711                 if test "$supported" = "yes" ; then
17712                         BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17713                         found="yes"
17714                 fi
17715         fi
17716
17717
17718 fi
17719
17720
17721
17722
17723
17724
17725
17726                 CWARNFLAGS="$BASE_CFLAGS"
17727                 if  test "x$GCC" = xyes ; then
17728                     CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17729                 fi
17730
17731
17732
17733
17734
17735
17736
17737
17738 # Check whether --enable-strict-compilation was given.
17739 if test "${enable_strict_compilation+set}" = set; then :
17740   enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17741 else
17742   STRICT_COMPILE=no
17743 fi
17744
17745
17746
17747
17748
17749
17750 STRICT_CFLAGS=""
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764 xorg_testset_save_CFLAGS="$CFLAGS"
17765
17766 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17767         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17768         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17769 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17770 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17771   $as_echo_n "(cached) " >&6
17772 else
17773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17774 /* end confdefs.h.  */
17775 int i;
17776 _ACEOF
17777 if ac_fn_c_try_compile "$LINENO"; then :
17778   xorg_cv_cc_flag_unknown_warning_option=yes
17779 else
17780   xorg_cv_cc_flag_unknown_warning_option=no
17781 fi
17782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17783 fi
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17785 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17786         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17787         CFLAGS="$xorg_testset_save_CFLAGS"
17788 fi
17789
17790 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17791         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17792                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17793         fi
17794         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17795         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17796 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17797 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17798   $as_echo_n "(cached) " >&6
17799 else
17800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17801 /* end confdefs.h.  */
17802 int i;
17803 _ACEOF
17804 if ac_fn_c_try_compile "$LINENO"; then :
17805   xorg_cv_cc_flag_unused_command_line_argument=yes
17806 else
17807   xorg_cv_cc_flag_unused_command_line_argument=no
17808 fi
17809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17810 fi
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17812 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17813         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17814         CFLAGS="$xorg_testset_save_CFLAGS"
17815 fi
17816
17817 found="no"
17818
17819         if test $found = "no" ; then
17820                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17821                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17822                 fi
17823
17824                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17825                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17826                 fi
17827
17828                 CFLAGS="$CFLAGS -pedantic"
17829
17830                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17831 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17832                 cacheid=xorg_cv_cc_flag__pedantic
17833                 if eval \${$cacheid+:} false; then :
17834   $as_echo_n "(cached) " >&6
17835 else
17836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17837 /* end confdefs.h.  */
17838 int i;
17839 int
17840 main ()
17841 {
17842
17843   ;
17844   return 0;
17845 }
17846 _ACEOF
17847 if ac_fn_c_try_link "$LINENO"; then :
17848   eval $cacheid=yes
17849 else
17850   eval $cacheid=no
17851 fi
17852 rm -f core conftest.err conftest.$ac_objext \
17853     conftest$ac_exeext conftest.$ac_ext
17854 fi
17855
17856
17857                 CFLAGS="$xorg_testset_save_CFLAGS"
17858
17859                 eval supported=\$$cacheid
17860                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17861 $as_echo "$supported" >&6; }
17862                 if test "$supported" = "yes" ; then
17863                         STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17864                         found="yes"
17865                 fi
17866         fi
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882 xorg_testset_save_CFLAGS="$CFLAGS"
17883
17884 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17885         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17886         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17887 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17888 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17889   $as_echo_n "(cached) " >&6
17890 else
17891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17892 /* end confdefs.h.  */
17893 int i;
17894 _ACEOF
17895 if ac_fn_c_try_compile "$LINENO"; then :
17896   xorg_cv_cc_flag_unknown_warning_option=yes
17897 else
17898   xorg_cv_cc_flag_unknown_warning_option=no
17899 fi
17900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17901 fi
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17903 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17904         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17905         CFLAGS="$xorg_testset_save_CFLAGS"
17906 fi
17907
17908 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17909         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17910                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17911         fi
17912         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17913         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17914 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17915 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17916   $as_echo_n "(cached) " >&6
17917 else
17918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17919 /* end confdefs.h.  */
17920 int i;
17921 _ACEOF
17922 if ac_fn_c_try_compile "$LINENO"; then :
17923   xorg_cv_cc_flag_unused_command_line_argument=yes
17924 else
17925   xorg_cv_cc_flag_unused_command_line_argument=no
17926 fi
17927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17928 fi
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17930 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17931         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17932         CFLAGS="$xorg_testset_save_CFLAGS"
17933 fi
17934
17935 found="no"
17936
17937         if test $found = "no" ; then
17938                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17939                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17940                 fi
17941
17942                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17943                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17944                 fi
17945
17946                 CFLAGS="$CFLAGS -Werror"
17947
17948                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17949 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17950                 cacheid=xorg_cv_cc_flag__Werror
17951                 if eval \${$cacheid+:} false; then :
17952   $as_echo_n "(cached) " >&6
17953 else
17954   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17955 /* end confdefs.h.  */
17956 int i;
17957 int
17958 main ()
17959 {
17960
17961   ;
17962   return 0;
17963 }
17964 _ACEOF
17965 if ac_fn_c_try_link "$LINENO"; then :
17966   eval $cacheid=yes
17967 else
17968   eval $cacheid=no
17969 fi
17970 rm -f core conftest.err conftest.$ac_objext \
17971     conftest$ac_exeext conftest.$ac_ext
17972 fi
17973
17974
17975                 CFLAGS="$xorg_testset_save_CFLAGS"
17976
17977                 eval supported=\$$cacheid
17978                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17979 $as_echo "$supported" >&6; }
17980                 if test "$supported" = "yes" ; then
17981                         STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17982                         found="yes"
17983                 fi
17984         fi
17985
17986         if test $found = "no" ; then
17987                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17988                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17989                 fi
17990
17991                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17992                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17993                 fi
17994
17995                 CFLAGS="$CFLAGS -errwarn"
17996
17997                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17998 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17999                 cacheid=xorg_cv_cc_flag__errwarn
18000                 if eval \${$cacheid+:} false; then :
18001   $as_echo_n "(cached) " >&6
18002 else
18003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18004 /* end confdefs.h.  */
18005 int i;
18006 int
18007 main ()
18008 {
18009
18010   ;
18011   return 0;
18012 }
18013 _ACEOF
18014 if ac_fn_c_try_link "$LINENO"; then :
18015   eval $cacheid=yes
18016 else
18017   eval $cacheid=no
18018 fi
18019 rm -f core conftest.err conftest.$ac_objext \
18020     conftest$ac_exeext conftest.$ac_ext
18021 fi
18022
18023
18024                 CFLAGS="$xorg_testset_save_CFLAGS"
18025
18026                 eval supported=\$$cacheid
18027                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18028 $as_echo "$supported" >&6; }
18029                 if test "$supported" = "yes" ; then
18030                         STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18031                         found="yes"
18032                 fi
18033         fi
18034
18035
18036
18037 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18038 # activate it with -Werror, so we add it here explicitly.
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052 xorg_testset_save_CFLAGS="$CFLAGS"
18053
18054 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18055         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18056         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18057 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18058 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18059   $as_echo_n "(cached) " >&6
18060 else
18061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18062 /* end confdefs.h.  */
18063 int i;
18064 _ACEOF
18065 if ac_fn_c_try_compile "$LINENO"; then :
18066   xorg_cv_cc_flag_unknown_warning_option=yes
18067 else
18068   xorg_cv_cc_flag_unknown_warning_option=no
18069 fi
18070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18071 fi
18072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18073 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18074         xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18075         CFLAGS="$xorg_testset_save_CFLAGS"
18076 fi
18077
18078 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18079         if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18080                 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18081         fi
18082         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18083         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18084 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18085 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18086   $as_echo_n "(cached) " >&6
18087 else
18088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18089 /* end confdefs.h.  */
18090 int i;
18091 _ACEOF
18092 if ac_fn_c_try_compile "$LINENO"; then :
18093   xorg_cv_cc_flag_unused_command_line_argument=yes
18094 else
18095   xorg_cv_cc_flag_unused_command_line_argument=no
18096 fi
18097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18098 fi
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18100 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18101         xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18102         CFLAGS="$xorg_testset_save_CFLAGS"
18103 fi
18104
18105 found="no"
18106
18107         if test $found = "no" ; then
18108                 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18109                         CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18110                 fi
18111
18112                 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18113                         CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18114                 fi
18115
18116                 CFLAGS="$CFLAGS -Werror=attributes"
18117
18118                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18119 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18120                 cacheid=xorg_cv_cc_flag__Werror_attributes
18121                 if eval \${$cacheid+:} false; then :
18122   $as_echo_n "(cached) " >&6
18123 else
18124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18125 /* end confdefs.h.  */
18126 int i;
18127 int
18128 main ()
18129 {
18130
18131   ;
18132   return 0;
18133 }
18134 _ACEOF
18135 if ac_fn_c_try_link "$LINENO"; then :
18136   eval $cacheid=yes
18137 else
18138   eval $cacheid=no
18139 fi
18140 rm -f core conftest.err conftest.$ac_objext \
18141     conftest$ac_exeext conftest.$ac_ext
18142 fi
18143
18144
18145                 CFLAGS="$xorg_testset_save_CFLAGS"
18146
18147                 eval supported=\$$cacheid
18148                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18149 $as_echo "$supported" >&6; }
18150                 if test "$supported" = "yes" ; then
18151                         STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18152                         found="yes"
18153                 fi
18154         fi
18155
18156
18157
18158 if test "x$STRICT_COMPILE" = "xyes"; then
18159     BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18160     CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18161 fi
18162
18163
18164
18165
18166
18167
18168 cat >>confdefs.h <<_ACEOF
18169 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18170 _ACEOF
18171
18172         PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18173         if test "x$PVM" = "x"; then
18174                 PVM="0"
18175         fi
18176
18177 cat >>confdefs.h <<_ACEOF
18178 #define PACKAGE_VERSION_MINOR $PVM
18179 _ACEOF
18180
18181         PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18182         if test "x$PVP" = "x"; then
18183                 PVP="0"
18184         fi
18185
18186 cat >>confdefs.h <<_ACEOF
18187 #define PACKAGE_VERSION_PATCHLEVEL $PVP
18188 _ACEOF
18189
18190
18191
18192 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
18193 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18194 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
18195 echo 'git directory not found: installing possibly empty changelog.' >&2)"
18196
18197
18198
18199
18200 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18201 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18202 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18203 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
18204 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
18205
18206
18207
18208
18209
18210
18211 if test x$APP_MAN_SUFFIX = x    ; then
18212     APP_MAN_SUFFIX=1
18213 fi
18214 if test x$APP_MAN_DIR = x    ; then
18215     APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18216 fi
18217
18218 if test x$LIB_MAN_SUFFIX = x    ; then
18219     LIB_MAN_SUFFIX=3
18220 fi
18221 if test x$LIB_MAN_DIR = x    ; then
18222     LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18223 fi
18224
18225 if test x$FILE_MAN_SUFFIX = x    ; then
18226     case $host_os in
18227         solaris*)       FILE_MAN_SUFFIX=4  ;;
18228         *)              FILE_MAN_SUFFIX=5  ;;
18229     esac
18230 fi
18231 if test x$FILE_MAN_DIR = x    ; then
18232     FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18233 fi
18234
18235 if test x$MISC_MAN_SUFFIX = x    ; then
18236     case $host_os in
18237         solaris*)       MISC_MAN_SUFFIX=5  ;;
18238         *)              MISC_MAN_SUFFIX=7  ;;
18239     esac
18240 fi
18241 if test x$MISC_MAN_DIR = x    ; then
18242     MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18243 fi
18244
18245 if test x$DRIVER_MAN_SUFFIX = x    ; then
18246     case $host_os in
18247         solaris*)       DRIVER_MAN_SUFFIX=7  ;;
18248         *)              DRIVER_MAN_SUFFIX=4  ;;
18249     esac
18250 fi
18251 if test x$DRIVER_MAN_DIR = x    ; then
18252     DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18253 fi
18254
18255 if test x$ADMIN_MAN_SUFFIX = x    ; then
18256     case $host_os in
18257         solaris*)       ADMIN_MAN_SUFFIX=1m ;;
18258         *)              ADMIN_MAN_SUFFIX=8  ;;
18259     esac
18260 fi
18261 if test x$ADMIN_MAN_DIR = x    ; then
18262     ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18263 fi
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279 XORG_MAN_PAGE="X Version 11"
18280
18281 MAN_SUBSTS="\
18282         -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18283         -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18284         -e 's|__xservername__|Xorg|g' \
18285         -e 's|__xconfigfile__|xorg.conf|g' \
18286         -e 's|__projectroot__|\$(prefix)|g' \
18287         -e 's|__apploaddir__|\$(appdefaultdir)|g' \
18288         -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18289         -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18290         -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18291         -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18292         -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18293         -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18294
18295
18296
18297 # Check whether --enable-silent-rules was given.
18298 if test "${enable_silent_rules+set}" = set; then :
18299   enableval=$enable_silent_rules;
18300 fi
18301
18302 case $enable_silent_rules in # (((
18303   yes) AM_DEFAULT_VERBOSITY=0;;
18304    no) AM_DEFAULT_VERBOSITY=1;;
18305     *) AM_DEFAULT_VERBOSITY=0;;
18306 esac
18307 am_make=${MAKE-make}
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18309 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18310 if ${am_cv_make_support_nested_variables+:} false; then :
18311   $as_echo_n "(cached) " >&6
18312 else
18313   if $as_echo 'TRUE=$(BAR$(V))
18314 BAR0=false
18315 BAR1=true
18316 V=1
18317 am__doit:
18318         @$(TRUE)
18319 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18320   am_cv_make_support_nested_variables=yes
18321 else
18322   am_cv_make_support_nested_variables=no
18323 fi
18324 fi
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18326 $as_echo "$am_cv_make_support_nested_variables" >&6; }
18327 if test $am_cv_make_support_nested_variables = yes; then
18328     AM_V='$(V)'
18329   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18330 else
18331   AM_V=$AM_DEFAULT_VERBOSITY
18332   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18333 fi
18334 AM_BACKSLASH='\'
18335
18336
18337
18338 # Checks for libraries.
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mtdev_open in -lmtdev" >&5
18340 $as_echo_n "checking for mtdev_open in -lmtdev... " >&6; }
18341 if ${ac_cv_lib_mtdev_mtdev_open+:} false; then :
18342   $as_echo_n "(cached) " >&6
18343 else
18344   ac_check_lib_save_LIBS=$LIBS
18345 LIBS="-lmtdev  $LIBS"
18346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18347 /* end confdefs.h.  */
18348
18349 /* Override any GCC internal prototype to avoid an error.
18350    Use char because int might match the return type of a GCC
18351    builtin and then its argument prototype would still apply.  */
18352 #ifdef __cplusplus
18353 extern "C"
18354 #endif
18355 char mtdev_open ();
18356 int
18357 main ()
18358 {
18359 return mtdev_open ();
18360   ;
18361   return 0;
18362 }
18363 _ACEOF
18364 if ac_fn_c_try_link "$LINENO"; then :
18365   ac_cv_lib_mtdev_mtdev_open=yes
18366 else
18367   ac_cv_lib_mtdev_mtdev_open=no
18368 fi
18369 rm -f core conftest.err conftest.$ac_objext \
18370     conftest$ac_exeext conftest.$ac_ext
18371 LIBS=$ac_check_lib_save_LIBS
18372 fi
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtdev_mtdev_open" >&5
18374 $as_echo "$ac_cv_lib_mtdev_mtdev_open" >&6; }
18375 if test "x$ac_cv_lib_mtdev_mtdev_open" = xyes; then :
18376   cat >>confdefs.h <<_ACEOF
18377 #define HAVE_LIBMTDEV 1
18378 _ACEOF
18379
18380   LIBS="-lmtdev $LIBS"
18381
18382 fi
18383
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2 in -lm" >&5
18385 $as_echo_n "checking for atan2 in -lm... " >&6; }
18386 if ${ac_cv_lib_m_atan2+:} false; then :
18387   $as_echo_n "(cached) " >&6
18388 else
18389   ac_check_lib_save_LIBS=$LIBS
18390 LIBS="-lm  $LIBS"
18391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18392 /* end confdefs.h.  */
18393
18394 /* Override any GCC internal prototype to avoid an error.
18395    Use char because int might match the return type of a GCC
18396    builtin and then its argument prototype would still apply.  */
18397 #ifdef __cplusplus
18398 extern "C"
18399 #endif
18400 char atan2 ();
18401 int
18402 main ()
18403 {
18404 return atan2 ();
18405   ;
18406   return 0;
18407 }
18408 _ACEOF
18409 if ac_fn_c_try_link "$LINENO"; then :
18410   ac_cv_lib_m_atan2=yes
18411 else
18412   ac_cv_lib_m_atan2=no
18413 fi
18414 rm -f core conftest.err conftest.$ac_objext \
18415     conftest$ac_exeext conftest.$ac_ext
18416 LIBS=$ac_check_lib_save_LIBS
18417 fi
18418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atan2" >&5
18419 $as_echo "$ac_cv_lib_m_atan2" >&6; }
18420 if test "x$ac_cv_lib_m_atan2" = xyes; then :
18421   cat >>confdefs.h <<_ACEOF
18422 #define HAVE_LIBM 1
18423 _ACEOF
18424
18425   LIBS="-lm $LIBS"
18426
18427 fi
18428
18429
18430 # Obtain compiler/linker options for the mtrack driver dependencies
18431
18432 pkg_failed=no
18433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18434 $as_echo_n "checking for XORG... " >&6; }
18435
18436 if test -n "$XORG_CFLAGS"; then
18437     pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18438  elif test -n "$PKG_CONFIG"; then
18439     if test -n "$PKG_CONFIG" && \
18440     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.7 xproto inputproto \$REQUIRED_MODULES\""; } >&5
18441   ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.7 xproto inputproto $REQUIRED_MODULES") 2>&5
18442   ac_status=$?
18443   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18444   test $ac_status = 0; }; then
18445   pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.7 xproto inputproto $REQUIRED_MODULES" 2>/dev/null`
18446                       test "x$?" != "x0" && pkg_failed=yes
18447 else
18448   pkg_failed=yes
18449 fi
18450  else
18451     pkg_failed=untried
18452 fi
18453 if test -n "$XORG_LIBS"; then
18454     pkg_cv_XORG_LIBS="$XORG_LIBS"
18455  elif test -n "$PKG_CONFIG"; then
18456     if test -n "$PKG_CONFIG" && \
18457     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.7 xproto inputproto \$REQUIRED_MODULES\""; } >&5
18458   ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.7 xproto inputproto $REQUIRED_MODULES") 2>&5
18459   ac_status=$?
18460   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18461   test $ac_status = 0; }; then
18462   pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.7 xproto inputproto $REQUIRED_MODULES" 2>/dev/null`
18463                       test "x$?" != "x0" && pkg_failed=yes
18464 else
18465   pkg_failed=yes
18466 fi
18467  else
18468     pkg_failed=untried
18469 fi
18470
18471
18472
18473 if test $pkg_failed = yes; then
18474         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18475 $as_echo "no" >&6; }
18476
18477 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18478         _pkg_short_errors_supported=yes
18479 else
18480         _pkg_short_errors_supported=no
18481 fi
18482         if test $_pkg_short_errors_supported = yes; then
18483                 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.7 xproto inputproto $REQUIRED_MODULES" 2>&1`
18484         else
18485                 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.7 xproto inputproto $REQUIRED_MODULES" 2>&1`
18486         fi
18487         # Put the nasty error message in config.log where it belongs
18488         echo "$XORG_PKG_ERRORS" >&5
18489
18490         as_fn_error $? "Package requirements (xorg-server >= 1.7 xproto inputproto $REQUIRED_MODULES) were not met:
18491
18492 $XORG_PKG_ERRORS
18493
18494 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18495 installed software in a non-standard prefix.
18496
18497 Alternatively, you may set the environment variables XORG_CFLAGS
18498 and XORG_LIBS to avoid the need to call pkg-config.
18499 See the pkg-config man page for more details." "$LINENO" 5
18500 elif test $pkg_failed = untried; then
18501         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18502 $as_echo "no" >&6; }
18503         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18505 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18506 is in your PATH or set the PKG_CONFIG environment variable to the full
18507 path to pkg-config.
18508
18509 Alternatively, you may set the environment variables XORG_CFLAGS
18510 and XORG_LIBS to avoid the need to call pkg-config.
18511 See the pkg-config man page for more details.
18512
18513 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18514 See \`config.log' for more details" "$LINENO" 5; }
18515 else
18516         XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18517         XORG_LIBS=$pkg_cv_XORG_LIBS
18518         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18519 $as_echo "yes" >&6; }
18520
18521 fi
18522
18523 # Set driver name
18524 DRIVER_NAME=mtrack
18525
18526
18527 # configure option for module install directory
18528
18529 # Check whether --with-xorg-module-dir was given.
18530 if test "${with_xorg_module_dir+set}" = set; then :
18531   withval=$with_xorg_module_dir; moduledir="$withval"
18532 else
18533   moduledir="$libdir/xorg/modules"
18534 fi
18535
18536 inputdir=${moduledir}/input
18537
18538
18539 # configure option to build extra tools
18540 # Check whether --enable-tools was given.
18541 if test "${enable_tools+set}" = set; then :
18542   enableval=$enable_tools; ENABLE_TOOLS=yes
18543 else
18544   ENABLE_TOOLS=no
18545 fi
18546
18547  if test "x$ENABLE_TOOLS" = xyes; then
18548   BUILD_TOOLS_TRUE=
18549   BUILD_TOOLS_FALSE='#'
18550 else
18551   BUILD_TOOLS_TRUE='#'
18552   BUILD_TOOLS_FALSE=
18553 fi
18554
18555
18556 # configure option to enable gesture ate debugging
18557 # Check whether --enable-debug-gestures was given.
18558 if test "${enable_debug_gestures+set}" = set; then :
18559   enableval=$enable_debug_gestures; DEBUG_GESTURES=yes
18560 else
18561   DEBUG_GESTURES=no
18562 fi
18563
18564 if test "x$DEBUG_GESTURES" = xyes; then
18565
18566 $as_echo "#define DEBUG_GESTURES 1" >>confdefs.h
18567
18568 fi
18569
18570 # configure option to enable multitouch state debugging
18571 # Check whether --enable-debug-mtstate was given.
18572 if test "${enable_debug_mtstate+set}" = set; then :
18573   enableval=$enable_debug_mtstate; DEBUG_MTSTATE=yes
18574 else
18575   DEBUG_MTSTATE=no
18576 fi
18577
18578 if test "x$DEBUG_MTSTATE" = xyes; then
18579
18580 $as_echo "#define DEBUG_MTSTATE 1" >>confdefs.h
18581
18582 fi
18583
18584 # configure option to enable property debugging
18585 # Check whether --enable-debug-props was given.
18586 if test "${enable_debug_props+set}" = set; then :
18587   enableval=$enable_debug_props; DEBUG_PROPS=yes
18588 else
18589   DEBUG_PROPS=no
18590 fi
18591
18592 if test "x$DEBUG_PROPS" = xyes; then
18593
18594 $as_echo "#define DEBUG_PROPS 1" >>confdefs.h
18595
18596 fi
18597
18598 # configure option to enable driver debugging
18599 # Check whether --enable-debug-driver was given.
18600 if test "${enable_debug_driver+set}" = set; then :
18601   enableval=$enable_debug_driver; DEBUG_DRIVER=yes
18602 else
18603   DEBUG_DRIVER=no
18604 fi
18605
18606 if test "x$DEBUG_DRIVER" = xyes; then
18607
18608 $as_echo "#define DEBUG_DRIVER 1" >>confdefs.h
18609
18610 fi
18611
18612
18613 # configure option to enable all debugging
18614 # Check whether --enable-debug was given.
18615 if test "${enable_debug+set}" = set; then :
18616   enableval=$enable_debug; DEBUG_ALL=$enableval
18617 else
18618   DEBUG_ALL=no
18619 fi
18620
18621 if test "x$DEBUG_ALL" = xyes; then
18622
18623 $as_echo "#define DEBUG_GESTURES 1" >>confdefs.h
18624
18625
18626 $as_echo "#define DEBUG_MTSTATE 1" >>confdefs.h
18627
18628
18629 $as_echo "#define DEBUG_PROPS 1" >>confdefs.h
18630
18631
18632 $as_echo "#define DEBUG_DRIVER 1" >>confdefs.h
18633
18634 fi
18635
18636 # Everything else
18637 ac_ext=c
18638 ac_cpp='$CPP $CPPFLAGS'
18639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18642 if test -n "$ac_tool_prefix"; then
18643   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18644 set dummy ${ac_tool_prefix}gcc; ac_word=$2
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18646 $as_echo_n "checking for $ac_word... " >&6; }
18647 if ${ac_cv_prog_CC+:} false; then :
18648   $as_echo_n "(cached) " >&6
18649 else
18650   if test -n "$CC"; then
18651   ac_cv_prog_CC="$CC" # Let the user override the test.
18652 else
18653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18654 for as_dir in $PATH
18655 do
18656   IFS=$as_save_IFS
18657   test -z "$as_dir" && as_dir=.
18658     for ac_exec_ext in '' $ac_executable_extensions; do
18659   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18660     ac_cv_prog_CC="${ac_tool_prefix}gcc"
18661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18662     break 2
18663   fi
18664 done
18665   done
18666 IFS=$as_save_IFS
18667
18668 fi
18669 fi
18670 CC=$ac_cv_prog_CC
18671 if test -n "$CC"; then
18672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18673 $as_echo "$CC" >&6; }
18674 else
18675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18676 $as_echo "no" >&6; }
18677 fi
18678
18679
18680 fi
18681 if test -z "$ac_cv_prog_CC"; then
18682   ac_ct_CC=$CC
18683   # Extract the first word of "gcc", so it can be a program name with args.
18684 set dummy gcc; ac_word=$2
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18686 $as_echo_n "checking for $ac_word... " >&6; }
18687 if ${ac_cv_prog_ac_ct_CC+:} false; then :
18688   $as_echo_n "(cached) " >&6
18689 else
18690   if test -n "$ac_ct_CC"; then
18691   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18692 else
18693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18694 for as_dir in $PATH
18695 do
18696   IFS=$as_save_IFS
18697   test -z "$as_dir" && as_dir=.
18698     for ac_exec_ext in '' $ac_executable_extensions; do
18699   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18700     ac_cv_prog_ac_ct_CC="gcc"
18701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18702     break 2
18703   fi
18704 done
18705   done
18706 IFS=$as_save_IFS
18707
18708 fi
18709 fi
18710 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18711 if test -n "$ac_ct_CC"; then
18712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
18713 $as_echo "$ac_ct_CC" >&6; }
18714 else
18715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18716 $as_echo "no" >&6; }
18717 fi
18718
18719   if test "x$ac_ct_CC" = x; then
18720     CC=""
18721   else
18722     case $cross_compiling:$ac_tool_warned in
18723 yes:)
18724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18726 ac_tool_warned=yes ;;
18727 esac
18728     CC=$ac_ct_CC
18729   fi
18730 else
18731   CC="$ac_cv_prog_CC"
18732 fi
18733
18734 if test -z "$CC"; then
18735           if test -n "$ac_tool_prefix"; then
18736     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18737 set dummy ${ac_tool_prefix}cc; ac_word=$2
18738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18739 $as_echo_n "checking for $ac_word... " >&6; }
18740 if ${ac_cv_prog_CC+:} false; then :
18741   $as_echo_n "(cached) " >&6
18742 else
18743   if test -n "$CC"; then
18744   ac_cv_prog_CC="$CC" # Let the user override the test.
18745 else
18746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18747 for as_dir in $PATH
18748 do
18749   IFS=$as_save_IFS
18750   test -z "$as_dir" && as_dir=.
18751     for ac_exec_ext in '' $ac_executable_extensions; do
18752   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18753     ac_cv_prog_CC="${ac_tool_prefix}cc"
18754     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18755     break 2
18756   fi
18757 done
18758   done
18759 IFS=$as_save_IFS
18760
18761 fi
18762 fi
18763 CC=$ac_cv_prog_CC
18764 if test -n "$CC"; then
18765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18766 $as_echo "$CC" >&6; }
18767 else
18768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18769 $as_echo "no" >&6; }
18770 fi
18771
18772
18773   fi
18774 fi
18775 if test -z "$CC"; then
18776   # Extract the first word of "cc", so it can be a program name with args.
18777 set dummy cc; ac_word=$2
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18779 $as_echo_n "checking for $ac_word... " >&6; }
18780 if ${ac_cv_prog_CC+:} false; then :
18781   $as_echo_n "(cached) " >&6
18782 else
18783   if test -n "$CC"; then
18784   ac_cv_prog_CC="$CC" # Let the user override the test.
18785 else
18786   ac_prog_rejected=no
18787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18788 for as_dir in $PATH
18789 do
18790   IFS=$as_save_IFS
18791   test -z "$as_dir" && as_dir=.
18792     for ac_exec_ext in '' $ac_executable_extensions; do
18793   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18794     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18795        ac_prog_rejected=yes
18796        continue
18797      fi
18798     ac_cv_prog_CC="cc"
18799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18800     break 2
18801   fi
18802 done
18803   done
18804 IFS=$as_save_IFS
18805
18806 if test $ac_prog_rejected = yes; then
18807   # We found a bogon in the path, so make sure we never use it.
18808   set dummy $ac_cv_prog_CC
18809   shift
18810   if test $# != 0; then
18811     # We chose a different compiler from the bogus one.
18812     # However, it has the same basename, so the bogon will be chosen
18813     # first if we set CC to just the basename; use the full file name.
18814     shift
18815     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
18816   fi
18817 fi
18818 fi
18819 fi
18820 CC=$ac_cv_prog_CC
18821 if test -n "$CC"; then
18822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18823 $as_echo "$CC" >&6; }
18824 else
18825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18826 $as_echo "no" >&6; }
18827 fi
18828
18829
18830 fi
18831 if test -z "$CC"; then
18832   if test -n "$ac_tool_prefix"; then
18833   for ac_prog in cl.exe
18834   do
18835     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18836 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18838 $as_echo_n "checking for $ac_word... " >&6; }
18839 if ${ac_cv_prog_CC+:} false; then :
18840   $as_echo_n "(cached) " >&6
18841 else
18842   if test -n "$CC"; then
18843   ac_cv_prog_CC="$CC" # Let the user override the test.
18844 else
18845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18846 for as_dir in $PATH
18847 do
18848   IFS=$as_save_IFS
18849   test -z "$as_dir" && as_dir=.
18850     for ac_exec_ext in '' $ac_executable_extensions; do
18851   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18852     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18854     break 2
18855   fi
18856 done
18857   done
18858 IFS=$as_save_IFS
18859
18860 fi
18861 fi
18862 CC=$ac_cv_prog_CC
18863 if test -n "$CC"; then
18864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18865 $as_echo "$CC" >&6; }
18866 else
18867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18868 $as_echo "no" >&6; }
18869 fi
18870
18871
18872     test -n "$CC" && break
18873   done
18874 fi
18875 if test -z "$CC"; then
18876   ac_ct_CC=$CC
18877   for ac_prog in cl.exe
18878 do
18879   # Extract the first word of "$ac_prog", so it can be a program name with args.
18880 set dummy $ac_prog; ac_word=$2
18881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18882 $as_echo_n "checking for $ac_word... " >&6; }
18883 if ${ac_cv_prog_ac_ct_CC+:} false; then :
18884   $as_echo_n "(cached) " >&6
18885 else
18886   if test -n "$ac_ct_CC"; then
18887   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18888 else
18889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18890 for as_dir in $PATH
18891 do
18892   IFS=$as_save_IFS
18893   test -z "$as_dir" && as_dir=.
18894     for ac_exec_ext in '' $ac_executable_extensions; do
18895   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18896     ac_cv_prog_ac_ct_CC="$ac_prog"
18897     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18898     break 2
18899   fi
18900 done
18901   done
18902 IFS=$as_save_IFS
18903
18904 fi
18905 fi
18906 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18907 if test -n "$ac_ct_CC"; then
18908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
18909 $as_echo "$ac_ct_CC" >&6; }
18910 else
18911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18912 $as_echo "no" >&6; }
18913 fi
18914
18915
18916   test -n "$ac_ct_CC" && break
18917 done
18918
18919   if test "x$ac_ct_CC" = x; then
18920     CC=""
18921   else
18922     case $cross_compiling:$ac_tool_warned in
18923 yes:)
18924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18926 ac_tool_warned=yes ;;
18927 esac
18928     CC=$ac_ct_CC
18929   fi
18930 fi
18931
18932 fi
18933
18934
18935 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18937 as_fn_error $? "no acceptable C compiler found in \$PATH
18938 See \`config.log' for more details" "$LINENO" 5; }
18939
18940 # Provide some information about the compiler.
18941 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
18942 set X $ac_compile
18943 ac_compiler=$2
18944 for ac_option in --version -v -V -qversion; do
18945   { { ac_try="$ac_compiler $ac_option >&5"
18946 case "(($ac_try" in
18947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18948   *) ac_try_echo=$ac_try;;
18949 esac
18950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18951 $as_echo "$ac_try_echo"; } >&5
18952   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18953   ac_status=$?
18954   if test -s conftest.err; then
18955     sed '10a\
18956 ... rest of stderr output deleted ...
18957          10q' conftest.err >conftest.er1
18958     cat conftest.er1 >&5
18959   fi
18960   rm -f conftest.er1 conftest.err
18961   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18962   test $ac_status = 0; }
18963 done
18964
18965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
18966 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
18967 if ${ac_cv_c_compiler_gnu+:} false; then :
18968   $as_echo_n "(cached) " >&6
18969 else
18970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18971 /* end confdefs.h.  */
18972
18973 int
18974 main ()
18975 {
18976 #ifndef __GNUC__
18977        choke me
18978 #endif
18979
18980   ;
18981   return 0;
18982 }
18983 _ACEOF
18984 if ac_fn_c_try_compile "$LINENO"; then :
18985   ac_compiler_gnu=yes
18986 else
18987   ac_compiler_gnu=no
18988 fi
18989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18990 ac_cv_c_compiler_gnu=$ac_compiler_gnu
18991
18992 fi
18993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
18994 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
18995 if test $ac_compiler_gnu = yes; then
18996   GCC=yes
18997 else
18998   GCC=
18999 fi
19000 ac_test_CFLAGS=${CFLAGS+set}
19001 ac_save_CFLAGS=$CFLAGS
19002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
19003 $as_echo_n "checking whether $CC accepts -g... " >&6; }
19004 if ${ac_cv_prog_cc_g+:} false; then :
19005   $as_echo_n "(cached) " >&6
19006 else
19007   ac_save_c_werror_flag=$ac_c_werror_flag
19008    ac_c_werror_flag=yes
19009    ac_cv_prog_cc_g=no
19010    CFLAGS="-g"
19011    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19012 /* end confdefs.h.  */
19013
19014 int
19015 main ()
19016 {
19017
19018   ;
19019   return 0;
19020 }
19021 _ACEOF
19022 if ac_fn_c_try_compile "$LINENO"; then :
19023   ac_cv_prog_cc_g=yes
19024 else
19025   CFLAGS=""
19026       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19027 /* end confdefs.h.  */
19028
19029 int
19030 main ()
19031 {
19032
19033   ;
19034   return 0;
19035 }
19036 _ACEOF
19037 if ac_fn_c_try_compile "$LINENO"; then :
19038
19039 else
19040   ac_c_werror_flag=$ac_save_c_werror_flag
19041          CFLAGS="-g"
19042          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19043 /* end confdefs.h.  */
19044
19045 int
19046 main ()
19047 {
19048
19049   ;
19050   return 0;
19051 }
19052 _ACEOF
19053 if ac_fn_c_try_compile "$LINENO"; then :
19054   ac_cv_prog_cc_g=yes
19055 fi
19056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19057 fi
19058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19059 fi
19060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19061    ac_c_werror_flag=$ac_save_c_werror_flag
19062 fi
19063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
19064 $as_echo "$ac_cv_prog_cc_g" >&6; }
19065 if test "$ac_test_CFLAGS" = set; then
19066   CFLAGS=$ac_save_CFLAGS
19067 elif test $ac_cv_prog_cc_g = yes; then
19068   if test "$GCC" = yes; then
19069     CFLAGS="-g -O2"
19070   else
19071     CFLAGS="-g"
19072   fi
19073 else
19074   if test "$GCC" = yes; then
19075     CFLAGS="-O2"
19076   else
19077     CFLAGS=
19078   fi
19079 fi
19080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
19081 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
19082 if ${ac_cv_prog_cc_c89+:} false; then :
19083   $as_echo_n "(cached) " >&6
19084 else
19085   ac_cv_prog_cc_c89=no
19086 ac_save_CC=$CC
19087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19088 /* end confdefs.h.  */
19089 #include <stdarg.h>
19090 #include <stdio.h>
19091 struct stat;
19092 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19093 struct buf { int x; };
19094 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19095 static char *e (p, i)
19096      char **p;
19097      int i;
19098 {
19099   return p[i];
19100 }
19101 static char *f (char * (*g) (char **, int), char **p, ...)
19102 {
19103   char *s;
19104   va_list v;
19105   va_start (v,p);
19106   s = g (p, va_arg (v,int));
19107   va_end (v);
19108   return s;
19109 }
19110
19111 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19112    function prototypes and stuff, but not '\xHH' hex character constants.
19113    These don't provoke an error unfortunately, instead are silently treated
19114    as 'x'.  The following induces an error, until -std is added to get
19115    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19116    array size at least.  It's necessary to write '\x00'==0 to get something
19117    that's true only with -std.  */
19118 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19119
19120 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19121    inside strings and character constants.  */
19122 #define FOO(x) 'x'
19123 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19124
19125 int test (int i, double x);
19126 struct s1 {int (*f) (int a);};
19127 struct s2 {int (*f) (double a);};
19128 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19129 int argc;
19130 char **argv;
19131 int
19132 main ()
19133 {
19134 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19135   ;
19136   return 0;
19137 }
19138 _ACEOF
19139 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19140         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19141 do
19142   CC="$ac_save_CC $ac_arg"
19143   if ac_fn_c_try_compile "$LINENO"; then :
19144   ac_cv_prog_cc_c89=$ac_arg
19145 fi
19146 rm -f core conftest.err conftest.$ac_objext
19147   test "x$ac_cv_prog_cc_c89" != "xno" && break
19148 done
19149 rm -f conftest.$ac_ext
19150 CC=$ac_save_CC
19151
19152 fi
19153 # AC_CACHE_VAL
19154 case "x$ac_cv_prog_cc_c89" in
19155   x)
19156     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
19157 $as_echo "none needed" >&6; } ;;
19158   xno)
19159     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
19160 $as_echo "unsupported" >&6; } ;;
19161   *)
19162     CC="$CC $ac_cv_prog_cc_c89"
19163     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
19164 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
19165 esac
19166 if test "x$ac_cv_prog_cc_c89" != xno; then :
19167
19168 fi
19169
19170 ac_ext=c
19171 ac_cpp='$CPP $CPPFLAGS'
19172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19175
19176 ac_ext=c
19177 ac_cpp='$CPP $CPPFLAGS'
19178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
19182 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
19183 if ${am_cv_prog_cc_c_o+:} false; then :
19184   $as_echo_n "(cached) " >&6
19185 else
19186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19187 /* end confdefs.h.  */
19188
19189 int
19190 main ()
19191 {
19192
19193   ;
19194   return 0;
19195 }
19196 _ACEOF
19197   # Make sure it works both with $CC and with simple cc.
19198   # Following AC_PROG_CC_C_O, we do the test twice because some
19199   # compilers refuse to overwrite an existing .o file with -o,
19200   # though they will create one.
19201   am_cv_prog_cc_c_o=yes
19202   for am_i in 1 2; do
19203     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
19204    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
19205    ac_status=$?
19206    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207    (exit $ac_status); } \
19208          && test -f conftest2.$ac_objext; then
19209       : OK
19210     else
19211       am_cv_prog_cc_c_o=no
19212       break
19213     fi
19214   done
19215   rm -f core conftest*
19216   unset am_i
19217 fi
19218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
19219 $as_echo "$am_cv_prog_cc_c_o" >&6; }
19220 if test "$am_cv_prog_cc_c_o" != yes; then
19221    # Losing compiler, so override with the script.
19222    # FIXME: It is wrong to rewrite CC.
19223    # But if we don't then we get into trouble of one sort or another.
19224    # A longer-term fix would be to have automake use am__CC in this case,
19225    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19226    CC="$am_aux_dir/compile $CC"
19227 fi
19228 ac_ext=c
19229 ac_cpp='$CPP $CPPFLAGS'
19230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19233
19234
19235 depcc="$CC"   am_compiler_list=
19236
19237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
19238 $as_echo_n "checking dependency style of $depcc... " >&6; }
19239 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
19240   $as_echo_n "(cached) " >&6
19241 else
19242   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19243   # We make a subdir and do the tests there.  Otherwise we can end up
19244   # making bogus files that we don't know about and never remove.  For
19245   # instance it was reported that on HP-UX the gcc test will end up
19246   # making a dummy file named 'D' -- because '-MD' means "put the output
19247   # in D".
19248   rm -rf conftest.dir
19249   mkdir conftest.dir
19250   # Copy depcomp to subdir because otherwise we won't find it if we're
19251   # using a relative directory.
19252   cp "$am_depcomp" conftest.dir
19253   cd conftest.dir
19254   # We will build objects and dependencies in a subdirectory because
19255   # it helps to detect inapplicable dependency modes.  For instance
19256   # both Tru64's cc and ICC support -MD to output dependencies as a
19257   # side effect of compilation, but ICC will put the dependencies in
19258   # the current directory while Tru64 will put them in the object
19259   # directory.
19260   mkdir sub
19261
19262   am_cv_CC_dependencies_compiler_type=none
19263   if test "$am_compiler_list" = ""; then
19264      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19265   fi
19266   am__universal=false
19267   case " $depcc " in #(
19268      *\ -arch\ *\ -arch\ *) am__universal=true ;;
19269      esac
19270
19271   for depmode in $am_compiler_list; do
19272     # Setup a source with many dependencies, because some compilers
19273     # like to wrap large dependency lists on column 80 (with \), and
19274     # we should not choose a depcomp mode which is confused by this.
19275     #
19276     # We need to recreate these files for each test, as the compiler may
19277     # overwrite some of them when testing with obscure command lines.
19278     # This happens at least with the AIX C compiler.
19279     : > sub/conftest.c
19280     for i in 1 2 3 4 5 6; do
19281       echo '#include "conftst'$i'.h"' >> sub/conftest.c
19282       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
19283       # Solaris 10 /bin/sh.
19284       echo '/* dummy */' > sub/conftst$i.h
19285     done
19286     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19287
19288     # We check with '-c' and '-o' for the sake of the "dashmstdout"
19289     # mode.  It turns out that the SunPro C++ compiler does not properly
19290     # handle '-M -o', and we need to detect this.  Also, some Intel
19291     # versions had trouble with output in subdirs.
19292     am__obj=sub/conftest.${OBJEXT-o}
19293     am__minus_obj="-o $am__obj"
19294     case $depmode in
19295     gcc)
19296       # This depmode causes a compiler race in universal mode.
19297       test "$am__universal" = false || continue
19298       ;;
19299     nosideeffect)
19300       # After this tag, mechanisms are not by side-effect, so they'll
19301       # only be used when explicitly requested.
19302       if test "x$enable_dependency_tracking" = xyes; then
19303         continue
19304       else
19305         break
19306       fi
19307       ;;
19308     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
19309       # This compiler won't grok '-c -o', but also, the minuso test has
19310       # not run yet.  These depmodes are late enough in the game, and
19311       # so weak that their functioning should not be impacted.
19312       am__obj=conftest.${OBJEXT-o}
19313       am__minus_obj=
19314       ;;
19315     none) break ;;
19316     esac
19317     if depmode=$depmode \
19318        source=sub/conftest.c object=$am__obj \
19319        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19320        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
19321          >/dev/null 2>conftest.err &&
19322        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19323        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19324        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
19325        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19326       # icc doesn't choke on unknown options, it will just issue warnings
19327       # or remarks (even with -Werror).  So we grep stderr for any message
19328       # that says an option was ignored or not supported.
19329       # When given -MP, icc 7.0 and 7.1 complain thusly:
19330       #   icc: Command line warning: ignoring option '-M'; no argument required
19331       # The diagnosis changed in icc 8.0:
19332       #   icc: Command line remark: option '-MP' not supported
19333       if (grep 'ignoring option' conftest.err ||
19334           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19335         am_cv_CC_dependencies_compiler_type=$depmode
19336         break
19337       fi
19338     fi
19339   done
19340
19341   cd ..
19342   rm -rf conftest.dir
19343 else
19344   am_cv_CC_dependencies_compiler_type=none
19345 fi
19346
19347 fi
19348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
19349 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
19350 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19351
19352  if
19353   test "x$enable_dependency_tracking" != xno \
19354   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19355   am__fastdepCC_TRUE=
19356   am__fastdepCC_FALSE='#'
19357 else
19358   am__fastdepCC_TRUE='#'
19359   am__fastdepCC_FALSE=
19360 fi
19361
19362
19363
19364 ac_config_files="$ac_config_files Makefile"
19365
19366 cat >confcache <<\_ACEOF
19367 # This file is a shell script that caches the results of configure
19368 # tests run on this system so they can be shared between configure
19369 # scripts and configure runs, see configure's option --config-cache.
19370 # It is not useful on other systems.  If it contains results you don't
19371 # want to keep, you may remove or edit it.
19372 #
19373 # config.status only pays attention to the cache file if you give it
19374 # the --recheck option to rerun configure.
19375 #
19376 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19377 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19378 # following values.
19379
19380 _ACEOF
19381
19382 # The following way of writing the cache mishandles newlines in values,
19383 # but we know of no workaround that is simple, portable, and efficient.
19384 # So, we kill variables containing newlines.
19385 # Ultrix sh set writes to stderr and can't be redirected directly,
19386 # and sets the high bit in the cache file unless we assign to the vars.
19387 (
19388   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19389     eval ac_val=\$$ac_var
19390     case $ac_val in #(
19391     *${as_nl}*)
19392       case $ac_var in #(
19393       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19394 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19395       esac
19396       case $ac_var in #(
19397       _ | IFS | as_nl) ;; #(
19398       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19399       *) { eval $ac_var=; unset $ac_var;} ;;
19400       esac ;;
19401     esac
19402   done
19403
19404   (set) 2>&1 |
19405     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19406     *${as_nl}ac_space=\ *)
19407       # `set' does not quote correctly, so add quotes: double-quote
19408       # substitution turns \\\\ into \\, and sed turns \\ into \.
19409       sed -n \
19410         "s/'/'\\\\''/g;
19411           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19412       ;; #(
19413     *)
19414       # `set' quotes correctly as required by POSIX, so do not add quotes.
19415       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19416       ;;
19417     esac |
19418     sort
19419 ) |
19420   sed '
19421      /^ac_cv_env_/b end
19422      t clear
19423      :clear
19424      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19425      t end
19426      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19427      :end' >>confcache
19428 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19429   if test -w "$cache_file"; then
19430     if test "x$cache_file" != "x/dev/null"; then
19431       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19432 $as_echo "$as_me: updating cache $cache_file" >&6;}
19433       if test ! -f "$cache_file" || test -h "$cache_file"; then
19434         cat confcache >"$cache_file"
19435       else
19436         case $cache_file in #(
19437         */* | ?:*)
19438           mv -f confcache "$cache_file"$$ &&
19439           mv -f "$cache_file"$$ "$cache_file" ;; #(
19440         *)
19441           mv -f confcache "$cache_file" ;;
19442         esac
19443       fi
19444     fi
19445   else
19446     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19447 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19448   fi
19449 fi
19450 rm -f confcache
19451
19452 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19453 # Let make expand exec_prefix.
19454 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19455
19456 DEFS=-DHAVE_CONFIG_H
19457
19458 ac_libobjs=
19459 ac_ltlibobjs=
19460 U=
19461 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19462   # 1. Remove the extension, and $U if already installed.
19463   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19464   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19465   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19466   #    will be set to the directory where LIBOBJS objects are built.
19467   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19468   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19469 done
19470 LIBOBJS=$ac_libobjs
19471
19472 LTLIBOBJS=$ac_ltlibobjs
19473
19474
19475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19476 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19477    if test -n "$am_sleep_pid"; then
19478      # Hide warnings about reused PIDs.
19479      wait $am_sleep_pid 2>/dev/null
19480    fi
19481    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19482 $as_echo "done" >&6; }
19483  if test -n "$EXEEXT"; then
19484   am__EXEEXT_TRUE=
19485   am__EXEEXT_FALSE='#'
19486 else
19487   am__EXEEXT_TRUE='#'
19488   am__EXEEXT_FALSE=
19489 fi
19490
19491 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19492   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19493 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19494 fi
19495 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19496   as_fn_error $? "conditional \"AMDEP\" was never defined.
19497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19498 fi
19499 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19500   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19502 fi
19503 if test -z "${BUILD_TOOLS_TRUE}" && test -z "${BUILD_TOOLS_FALSE}"; then
19504   as_fn_error $? "conditional \"BUILD_TOOLS\" was never defined.
19505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19506 fi
19507 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19508   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19509 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19510 fi
19511
19512 : "${CONFIG_STATUS=./config.status}"
19513 ac_write_fail=0
19514 ac_clean_files_save=$ac_clean_files
19515 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19516 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19517 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19518 as_write_fail=0
19519 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19520 #! $SHELL
19521 # Generated by $as_me.
19522 # Run this file to recreate the current configuration.
19523 # Compiler output produced by configure, useful for debugging
19524 # configure, is in config.log if it exists.
19525
19526 debug=false
19527 ac_cs_recheck=false
19528 ac_cs_silent=false
19529
19530 SHELL=\${CONFIG_SHELL-$SHELL}
19531 export SHELL
19532 _ASEOF
19533 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19534 ## -------------------- ##
19535 ## M4sh Initialization. ##
19536 ## -------------------- ##
19537
19538 # Be more Bourne compatible
19539 DUALCASE=1; export DUALCASE # for MKS sh
19540 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19541   emulate sh
19542   NULLCMD=:
19543   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19544   # is contrary to our usage.  Disable this feature.
19545   alias -g '${1+"$@"}'='"$@"'
19546   setopt NO_GLOB_SUBST
19547 else
19548   case `(set -o) 2>/dev/null` in #(
19549   *posix*) :
19550     set -o posix ;; #(
19551   *) :
19552      ;;
19553 esac
19554 fi
19555
19556
19557 as_nl='
19558 '
19559 export as_nl
19560 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19561 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19562 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19563 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19564 # Prefer a ksh shell builtin over an external printf program on Solaris,
19565 # but without wasting forks for bash or zsh.
19566 if test -z "$BASH_VERSION$ZSH_VERSION" \
19567     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19568   as_echo='print -r --'
19569   as_echo_n='print -rn --'
19570 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19571   as_echo='printf %s\n'
19572   as_echo_n='printf %s'
19573 else
19574   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19575     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19576     as_echo_n='/usr/ucb/echo -n'
19577   else
19578     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19579     as_echo_n_body='eval
19580       arg=$1;
19581       case $arg in #(
19582       *"$as_nl"*)
19583         expr "X$arg" : "X\\(.*\\)$as_nl";
19584         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19585       esac;
19586       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19587     '
19588     export as_echo_n_body
19589     as_echo_n='sh -c $as_echo_n_body as_echo'
19590   fi
19591   export as_echo_body
19592   as_echo='sh -c $as_echo_body as_echo'
19593 fi
19594
19595 # The user is always right.
19596 if test "${PATH_SEPARATOR+set}" != set; then
19597   PATH_SEPARATOR=:
19598   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19599     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19600       PATH_SEPARATOR=';'
19601   }
19602 fi
19603
19604
19605 # IFS
19606 # We need space, tab and new line, in precisely that order.  Quoting is
19607 # there to prevent editors from complaining about space-tab.
19608 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19609 # splitting by setting IFS to empty value.)
19610 IFS=" ""        $as_nl"
19611
19612 # Find who we are.  Look in the path if we contain no directory separator.
19613 as_myself=
19614 case $0 in #((
19615   *[\\/]* ) as_myself=$0 ;;
19616   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19617 for as_dir in $PATH
19618 do
19619   IFS=$as_save_IFS
19620   test -z "$as_dir" && as_dir=.
19621     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19622   done
19623 IFS=$as_save_IFS
19624
19625      ;;
19626 esac
19627 # We did not find ourselves, most probably we were run as `sh COMMAND'
19628 # in which case we are not to be found in the path.
19629 if test "x$as_myself" = x; then
19630   as_myself=$0
19631 fi
19632 if test ! -f "$as_myself"; then
19633   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19634   exit 1
19635 fi
19636
19637 # Unset variables that we do not need and which cause bugs (e.g. in
19638 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19639 # suppresses any "Segmentation fault" message there.  '((' could
19640 # trigger a bug in pdksh 5.2.14.
19641 for as_var in BASH_ENV ENV MAIL MAILPATH
19642 do eval test x\${$as_var+set} = xset \
19643   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19644 done
19645 PS1='$ '
19646 PS2='> '
19647 PS4='+ '
19648
19649 # NLS nuisances.
19650 LC_ALL=C
19651 export LC_ALL
19652 LANGUAGE=C
19653 export LANGUAGE
19654
19655 # CDPATH.
19656 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19657
19658
19659 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19660 # ----------------------------------------
19661 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19662 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19663 # script with STATUS, using 1 if that was 0.
19664 as_fn_error ()
19665 {
19666   as_status=$1; test $as_status -eq 0 && as_status=1
19667   if test "$4"; then
19668     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19669     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19670   fi
19671   $as_echo "$as_me: error: $2" >&2
19672   as_fn_exit $as_status
19673 } # as_fn_error
19674
19675
19676 # as_fn_set_status STATUS
19677 # -----------------------
19678 # Set $? to STATUS, without forking.
19679 as_fn_set_status ()
19680 {
19681   return $1
19682 } # as_fn_set_status
19683
19684 # as_fn_exit STATUS
19685 # -----------------
19686 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19687 as_fn_exit ()
19688 {
19689   set +e
19690   as_fn_set_status $1
19691   exit $1
19692 } # as_fn_exit
19693
19694 # as_fn_unset VAR
19695 # ---------------
19696 # Portably unset VAR.
19697 as_fn_unset ()
19698 {
19699   { eval $1=; unset $1;}
19700 }
19701 as_unset=as_fn_unset
19702 # as_fn_append VAR VALUE
19703 # ----------------------
19704 # Append the text in VALUE to the end of the definition contained in VAR. Take
19705 # advantage of any shell optimizations that allow amortized linear growth over
19706 # repeated appends, instead of the typical quadratic growth present in naive
19707 # implementations.
19708 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19709   eval 'as_fn_append ()
19710   {
19711     eval $1+=\$2
19712   }'
19713 else
19714   as_fn_append ()
19715   {
19716     eval $1=\$$1\$2
19717   }
19718 fi # as_fn_append
19719
19720 # as_fn_arith ARG...
19721 # ------------------
19722 # Perform arithmetic evaluation on the ARGs, and store the result in the
19723 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19724 # must be portable across $(()) and expr.
19725 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19726   eval 'as_fn_arith ()
19727   {
19728     as_val=$(( $* ))
19729   }'
19730 else
19731   as_fn_arith ()
19732   {
19733     as_val=`expr "$@" || test $? -eq 1`
19734   }
19735 fi # as_fn_arith
19736
19737
19738 if expr a : '\(a\)' >/dev/null 2>&1 &&
19739    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19740   as_expr=expr
19741 else
19742   as_expr=false
19743 fi
19744
19745 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19746   as_basename=basename
19747 else
19748   as_basename=false
19749 fi
19750
19751 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19752   as_dirname=dirname
19753 else
19754   as_dirname=false
19755 fi
19756
19757 as_me=`$as_basename -- "$0" ||
19758 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19759          X"$0" : 'X\(//\)$' \| \
19760          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19761 $as_echo X/"$0" |
19762     sed '/^.*\/\([^/][^/]*\)\/*$/{
19763             s//\1/
19764             q
19765           }
19766           /^X\/\(\/\/\)$/{
19767             s//\1/
19768             q
19769           }
19770           /^X\/\(\/\).*/{
19771             s//\1/
19772             q
19773           }
19774           s/.*/./; q'`
19775
19776 # Avoid depending upon Character Ranges.
19777 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19778 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19779 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19780 as_cr_digits='0123456789'
19781 as_cr_alnum=$as_cr_Letters$as_cr_digits
19782
19783 ECHO_C= ECHO_N= ECHO_T=
19784 case `echo -n x` in #(((((
19785 -n*)
19786   case `echo 'xy\c'` in
19787   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19788   xy)  ECHO_C='\c';;
19789   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19790        ECHO_T=' ';;
19791   esac;;
19792 *)
19793   ECHO_N='-n';;
19794 esac
19795
19796 rm -f conf$$ conf$$.exe conf$$.file
19797 if test -d conf$$.dir; then
19798   rm -f conf$$.dir/conf$$.file
19799 else
19800   rm -f conf$$.dir
19801   mkdir conf$$.dir 2>/dev/null
19802 fi
19803 if (echo >conf$$.file) 2>/dev/null; then
19804   if ln -s conf$$.file conf$$ 2>/dev/null; then
19805     as_ln_s='ln -s'
19806     # ... but there are two gotchas:
19807     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19808     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19809     # In both cases, we have to default to `cp -pR'.
19810     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19811       as_ln_s='cp -pR'
19812   elif ln conf$$.file conf$$ 2>/dev/null; then
19813     as_ln_s=ln
19814   else
19815     as_ln_s='cp -pR'
19816   fi
19817 else
19818   as_ln_s='cp -pR'
19819 fi
19820 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19821 rmdir conf$$.dir 2>/dev/null
19822
19823
19824 # as_fn_mkdir_p
19825 # -------------
19826 # Create "$as_dir" as a directory, including parents if necessary.
19827 as_fn_mkdir_p ()
19828 {
19829
19830   case $as_dir in #(
19831   -*) as_dir=./$as_dir;;
19832   esac
19833   test -d "$as_dir" || eval $as_mkdir_p || {
19834     as_dirs=
19835     while :; do
19836       case $as_dir in #(
19837       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19838       *) as_qdir=$as_dir;;
19839       esac
19840       as_dirs="'$as_qdir' $as_dirs"
19841       as_dir=`$as_dirname -- "$as_dir" ||
19842 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19843          X"$as_dir" : 'X\(//\)[^/]' \| \
19844          X"$as_dir" : 'X\(//\)$' \| \
19845          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19846 $as_echo X"$as_dir" |
19847     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19848             s//\1/
19849             q
19850           }
19851           /^X\(\/\/\)[^/].*/{
19852             s//\1/
19853             q
19854           }
19855           /^X\(\/\/\)$/{
19856             s//\1/
19857             q
19858           }
19859           /^X\(\/\).*/{
19860             s//\1/
19861             q
19862           }
19863           s/.*/./; q'`
19864       test -d "$as_dir" && break
19865     done
19866     test -z "$as_dirs" || eval "mkdir $as_dirs"
19867   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19868
19869
19870 } # as_fn_mkdir_p
19871 if mkdir -p . 2>/dev/null; then
19872   as_mkdir_p='mkdir -p "$as_dir"'
19873 else
19874   test -d ./-p && rmdir ./-p
19875   as_mkdir_p=false
19876 fi
19877
19878
19879 # as_fn_executable_p FILE
19880 # -----------------------
19881 # Test if FILE is an executable regular file.
19882 as_fn_executable_p ()
19883 {
19884   test -f "$1" && test -x "$1"
19885 } # as_fn_executable_p
19886 as_test_x='test -x'
19887 as_executable_p=as_fn_executable_p
19888
19889 # Sed expression to map a string onto a valid CPP name.
19890 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19891
19892 # Sed expression to map a string onto a valid variable name.
19893 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19894
19895
19896 exec 6>&1
19897 ## ----------------------------------- ##
19898 ## Main body of $CONFIG_STATUS script. ##
19899 ## ----------------------------------- ##
19900 _ASEOF
19901 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19902
19903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19904 # Save the log message, to keep $0 and so on meaningful, and to
19905 # report actual input values of CONFIG_FILES etc. instead of their
19906 # values after options handling.
19907 ac_log="
19908 This file was extended by xf86-input-mtrack $as_me 0.2.0, which was
19909 generated by GNU Autoconf 2.69.  Invocation command line was
19910
19911   CONFIG_FILES    = $CONFIG_FILES
19912   CONFIG_HEADERS  = $CONFIG_HEADERS
19913   CONFIG_LINKS    = $CONFIG_LINKS
19914   CONFIG_COMMANDS = $CONFIG_COMMANDS
19915   $ $0 $@
19916
19917 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19918 "
19919
19920 _ACEOF
19921
19922 case $ac_config_files in *"
19923 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19924 esac
19925
19926 case $ac_config_headers in *"
19927 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19928 esac
19929
19930
19931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19932 # Files that config.status was made for.
19933 config_files="$ac_config_files"
19934 config_headers="$ac_config_headers"
19935 config_commands="$ac_config_commands"
19936
19937 _ACEOF
19938
19939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19940 ac_cs_usage="\
19941 \`$as_me' instantiates files and other configuration actions
19942 from templates according to the current configuration.  Unless the files
19943 and actions are specified as TAGs, all are instantiated by default.
19944
19945 Usage: $0 [OPTION]... [TAG]...
19946
19947   -h, --help       print this help, then exit
19948   -V, --version    print version number and configuration settings, then exit
19949       --config     print configuration, then exit
19950   -q, --quiet, --silent
19951                    do not print progress messages
19952   -d, --debug      don't remove temporary files
19953       --recheck    update $as_me by reconfiguring in the same conditions
19954       --file=FILE[:TEMPLATE]
19955                    instantiate the configuration file FILE
19956       --header=FILE[:TEMPLATE]
19957                    instantiate the configuration header FILE
19958
19959 Configuration files:
19960 $config_files
19961
19962 Configuration headers:
19963 $config_headers
19964
19965 Configuration commands:
19966 $config_commands
19967
19968 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19969
19970 _ACEOF
19971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19972 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19973 ac_cs_version="\\
19974 xf86-input-mtrack config.status 0.2.0
19975 configured by $0, generated by GNU Autoconf 2.69,
19976   with options \\"\$ac_cs_config\\"
19977
19978 Copyright (C) 2012 Free Software Foundation, Inc.
19979 This config.status script is free software; the Free Software Foundation
19980 gives unlimited permission to copy, distribute and modify it."
19981
19982 ac_pwd='$ac_pwd'
19983 srcdir='$srcdir'
19984 INSTALL='$INSTALL'
19985 MKDIR_P='$MKDIR_P'
19986 AWK='$AWK'
19987 test -n "\$AWK" || AWK=awk
19988 _ACEOF
19989
19990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19991 # The default lists apply if the user does not specify any file.
19992 ac_need_defaults=:
19993 while test $# != 0
19994 do
19995   case $1 in
19996   --*=?*)
19997     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19998     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19999     ac_shift=:
20000     ;;
20001   --*=)
20002     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20003     ac_optarg=
20004     ac_shift=:
20005     ;;
20006   *)
20007     ac_option=$1
20008     ac_optarg=$2
20009     ac_shift=shift
20010     ;;
20011   esac
20012
20013   case $ac_option in
20014   # Handling of the options.
20015   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20016     ac_cs_recheck=: ;;
20017   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20018     $as_echo "$ac_cs_version"; exit ;;
20019   --config | --confi | --conf | --con | --co | --c )
20020     $as_echo "$ac_cs_config"; exit ;;
20021   --debug | --debu | --deb | --de | --d | -d )
20022     debug=: ;;
20023   --file | --fil | --fi | --f )
20024     $ac_shift
20025     case $ac_optarg in
20026     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20027     '') as_fn_error $? "missing file argument" ;;
20028     esac
20029     as_fn_append CONFIG_FILES " '$ac_optarg'"
20030     ac_need_defaults=false;;
20031   --header | --heade | --head | --hea )
20032     $ac_shift
20033     case $ac_optarg in
20034     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20035     esac
20036     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20037     ac_need_defaults=false;;
20038   --he | --h)
20039     # Conflict between --help and --header
20040     as_fn_error $? "ambiguous option: \`$1'
20041 Try \`$0 --help' for more information.";;
20042   --help | --hel | -h )
20043     $as_echo "$ac_cs_usage"; exit ;;
20044   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20045   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20046     ac_cs_silent=: ;;
20047
20048   # This is an error.
20049   -*) as_fn_error $? "unrecognized option: \`$1'
20050 Try \`$0 --help' for more information." ;;
20051
20052   *) as_fn_append ac_config_targets " $1"
20053      ac_need_defaults=false ;;
20054
20055   esac
20056   shift
20057 done
20058
20059 ac_configure_extra_args=
20060
20061 if $ac_cs_silent; then
20062   exec 6>/dev/null
20063   ac_configure_extra_args="$ac_configure_extra_args --silent"
20064 fi
20065
20066 _ACEOF
20067 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20068 if \$ac_cs_recheck; then
20069   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20070   shift
20071   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20072   CONFIG_SHELL='$SHELL'
20073   export CONFIG_SHELL
20074   exec "\$@"
20075 fi
20076
20077 _ACEOF
20078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20079 exec 5>>config.log
20080 {
20081   echo
20082   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20083 ## Running $as_me. ##
20084 _ASBOX
20085   $as_echo "$ac_log"
20086 } >&5
20087
20088 _ACEOF
20089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20090 #
20091 # INIT-COMMANDS
20092 #
20093 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20094
20095
20096 # The HP-UX ksh and POSIX shell print the target directory to stdout
20097 # if CDPATH is set.
20098 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20099
20100 sed_quote_subst='$sed_quote_subst'
20101 double_quote_subst='$double_quote_subst'
20102 delay_variable_subst='$delay_variable_subst'
20103 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20104 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20105 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20106 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20107 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20108 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20109 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20110 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20111 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20112 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20113 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20114 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20115 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20116 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20117 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20118 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20119 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20120 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20121 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20122 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20123 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20124 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20125 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20126 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20127 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20128 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20129 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20130 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20131 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20132 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20133 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20134 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20135 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20136 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20137 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20138 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20139 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20140 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20141 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20142 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20143 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20144 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20145 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20146 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20147 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20148 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20149 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20150 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20151 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20152 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20153 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20154 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20155 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20156 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20157 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20158 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20159 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20160 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20161 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"`'
20162 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20163 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20164 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20165 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20166 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20167 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20168 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20169 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20170 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20171 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20172 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20173 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20174 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20175 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20176 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20177 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20178 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20179 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20180 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20181 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20182 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20183 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20184 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20185 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20186 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20187 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20188 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20189 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20190 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20191 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20192 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20193 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20194 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20195 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20196 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20197 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20198 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20199 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20200 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20201 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20202 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20203 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20204 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20205 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20206 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20207 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20208 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20209 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20210 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20211 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20212 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20213 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20214 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20215 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20216 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20217 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20218 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20219 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20220 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20221 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20222 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20223 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20224 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20225 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20226 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20227 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20228 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20229 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20230 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20231 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20232 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20233 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20234 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20235 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20236 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20237 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20238
20239 LTCC='$LTCC'
20240 LTCFLAGS='$LTCFLAGS'
20241 compiler='$compiler_DEFAULT'
20242
20243 # A function that is used when there is no print builtin or printf.
20244 func_fallback_echo ()
20245 {
20246   eval 'cat <<_LTECHO_EOF
20247 \$1
20248 _LTECHO_EOF'
20249 }
20250
20251 # Quote evaled strings.
20252 for var in SHELL \
20253 ECHO \
20254 PATH_SEPARATOR \
20255 SED \
20256 GREP \
20257 EGREP \
20258 FGREP \
20259 LD \
20260 NM \
20261 LN_S \
20262 lt_SP2NL \
20263 lt_NL2SP \
20264 reload_flag \
20265 OBJDUMP \
20266 deplibs_check_method \
20267 file_magic_cmd \
20268 file_magic_glob \
20269 want_nocaseglob \
20270 DLLTOOL \
20271 sharedlib_from_linklib_cmd \
20272 AR \
20273 AR_FLAGS \
20274 archiver_list_spec \
20275 STRIP \
20276 RANLIB \
20277 CC \
20278 CFLAGS \
20279 compiler \
20280 lt_cv_sys_global_symbol_pipe \
20281 lt_cv_sys_global_symbol_to_cdecl \
20282 lt_cv_sys_global_symbol_to_import \
20283 lt_cv_sys_global_symbol_to_c_name_address \
20284 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20285 lt_cv_nm_interface \
20286 nm_file_list_spec \
20287 lt_cv_truncate_bin \
20288 lt_prog_compiler_no_builtin_flag \
20289 lt_prog_compiler_pic \
20290 lt_prog_compiler_wl \
20291 lt_prog_compiler_static \
20292 lt_cv_prog_compiler_c_o \
20293 need_locks \
20294 MANIFEST_TOOL \
20295 DSYMUTIL \
20296 NMEDIT \
20297 LIPO \
20298 OTOOL \
20299 OTOOL64 \
20300 shrext_cmds \
20301 export_dynamic_flag_spec \
20302 whole_archive_flag_spec \
20303 compiler_needs_object \
20304 with_gnu_ld \
20305 allow_undefined_flag \
20306 no_undefined_flag \
20307 hardcode_libdir_flag_spec \
20308 hardcode_libdir_separator \
20309 exclude_expsyms \
20310 include_expsyms \
20311 file_list_spec \
20312 variables_saved_for_relink \
20313 libname_spec \
20314 library_names_spec \
20315 soname_spec \
20316 install_override_mode \
20317 finish_eval \
20318 old_striplib \
20319 striplib; do
20320     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20321     *[\\\\\\\`\\"\\\$]*)
20322       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20323       ;;
20324     *)
20325       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20326       ;;
20327     esac
20328 done
20329
20330 # Double-quote double-evaled strings.
20331 for var in reload_cmds \
20332 old_postinstall_cmds \
20333 old_postuninstall_cmds \
20334 old_archive_cmds \
20335 extract_expsyms_cmds \
20336 old_archive_from_new_cmds \
20337 old_archive_from_expsyms_cmds \
20338 archive_cmds \
20339 archive_expsym_cmds \
20340 module_cmds \
20341 module_expsym_cmds \
20342 export_symbols_cmds \
20343 prelink_cmds \
20344 postlink_cmds \
20345 postinstall_cmds \
20346 postuninstall_cmds \
20347 finish_cmds \
20348 sys_lib_search_path_spec \
20349 configure_time_dlsearch_path \
20350 configure_time_lt_sys_library_path; do
20351     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20352     *[\\\\\\\`\\"\\\$]*)
20353       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20354       ;;
20355     *)
20356       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20357       ;;
20358     esac
20359 done
20360
20361 ac_aux_dir='$ac_aux_dir'
20362
20363 # See if we are running on zsh, and set the options that allow our
20364 # commands through without removal of \ escapes INIT.
20365 if test -n "\${ZSH_VERSION+set}"; then
20366    setopt NO_GLOB_SUBST
20367 fi
20368
20369
20370     PACKAGE='$PACKAGE'
20371     VERSION='$VERSION'
20372     RM='$RM'
20373     ofile='$ofile'
20374
20375
20376
20377
20378 _ACEOF
20379
20380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20381
20382 # Handling of arguments.
20383 for ac_config_target in $ac_config_targets
20384 do
20385   case $ac_config_target in
20386     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20387     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20388     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20389     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20390
20391   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20392   esac
20393 done
20394
20395
20396 # If the user did not use the arguments to specify the items to instantiate,
20397 # then the envvar interface is used.  Set only those that are not.
20398 # We use the long form for the default assignment because of an extremely
20399 # bizarre bug on SunOS 4.1.3.
20400 if $ac_need_defaults; then
20401   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20402   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20403   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20404 fi
20405
20406 # Have a temporary directory for convenience.  Make it in the build tree
20407 # simply because there is no reason against having it here, and in addition,
20408 # creating and moving files from /tmp can sometimes cause problems.
20409 # Hook for its removal unless debugging.
20410 # Note that there is a small window in which the directory will not be cleaned:
20411 # after its creation but before its name has been assigned to `$tmp'.
20412 $debug ||
20413 {
20414   tmp= ac_tmp=
20415   trap 'exit_status=$?
20416   : "${ac_tmp:=$tmp}"
20417   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20418 ' 0
20419   trap 'as_fn_exit 1' 1 2 13 15
20420 }
20421 # Create a (secure) tmp directory for tmp files.
20422
20423 {
20424   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20425   test -d "$tmp"
20426 }  ||
20427 {
20428   tmp=./conf$$-$RANDOM
20429   (umask 077 && mkdir "$tmp")
20430 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20431 ac_tmp=$tmp
20432
20433 # Set up the scripts for CONFIG_FILES section.
20434 # No need to generate them if there are no CONFIG_FILES.
20435 # This happens for instance with `./config.status config.h'.
20436 if test -n "$CONFIG_FILES"; then
20437
20438
20439 ac_cr=`echo X | tr X '\015'`
20440 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20441 # But we know of no other shell where ac_cr would be empty at this
20442 # point, so we can use a bashism as a fallback.
20443 if test "x$ac_cr" = x; then
20444   eval ac_cr=\$\'\\r\'
20445 fi
20446 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20447 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20448   ac_cs_awk_cr='\\r'
20449 else
20450   ac_cs_awk_cr=$ac_cr
20451 fi
20452
20453 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20454 _ACEOF
20455
20456
20457 {
20458   echo "cat >conf$$subs.awk <<_ACEOF" &&
20459   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20460   echo "_ACEOF"
20461 } >conf$$subs.sh ||
20462   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20463 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20464 ac_delim='%!_!# '
20465 for ac_last_try in false false false false false :; do
20466   . ./conf$$subs.sh ||
20467     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20468
20469   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20470   if test $ac_delim_n = $ac_delim_num; then
20471     break
20472   elif $ac_last_try; then
20473     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20474   else
20475     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20476   fi
20477 done
20478 rm -f conf$$subs.sh
20479
20480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20481 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20482 _ACEOF
20483 sed -n '
20484 h
20485 s/^/S["/; s/!.*/"]=/
20486 p
20487 g
20488 s/^[^!]*!//
20489 :repl
20490 t repl
20491 s/'"$ac_delim"'$//
20492 t delim
20493 :nl
20494 h
20495 s/\(.\{148\}\)..*/\1/
20496 t more1
20497 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20498 p
20499 n
20500 b repl
20501 :more1
20502 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20503 p
20504 g
20505 s/.\{148\}//
20506 t nl
20507 :delim
20508 h
20509 s/\(.\{148\}\)..*/\1/
20510 t more2
20511 s/["\\]/\\&/g; s/^/"/; s/$/"/
20512 p
20513 b
20514 :more2
20515 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20516 p
20517 g
20518 s/.\{148\}//
20519 t delim
20520 ' <conf$$subs.awk | sed '
20521 /^[^""]/{
20522   N
20523   s/\n//
20524 }
20525 ' >>$CONFIG_STATUS || ac_write_fail=1
20526 rm -f conf$$subs.awk
20527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20528 _ACAWK
20529 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20530   for (key in S) S_is_set[key] = 1
20531   FS = "\a"
20532
20533 }
20534 {
20535   line = $ 0
20536   nfields = split(line, field, "@")
20537   substed = 0
20538   len = length(field[1])
20539   for (i = 2; i < nfields; i++) {
20540     key = field[i]
20541     keylen = length(key)
20542     if (S_is_set[key]) {
20543       value = S[key]
20544       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20545       len += length(value) + length(field[++i])
20546       substed = 1
20547     } else
20548       len += 1 + keylen
20549   }
20550
20551   print line
20552 }
20553
20554 _ACAWK
20555 _ACEOF
20556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20557 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20558   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20559 else
20560   cat
20561 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20562   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20563 _ACEOF
20564
20565 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20566 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20567 # trailing colons and then remove the whole line if VPATH becomes empty
20568 # (actually we leave an empty line to preserve line numbers).
20569 if test "x$srcdir" = x.; then
20570   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
20571 h
20572 s///
20573 s/^/:/
20574 s/[      ]*$/:/
20575 s/:\$(srcdir):/:/g
20576 s/:\${srcdir}:/:/g
20577 s/:@srcdir@:/:/g
20578 s/^:*//
20579 s/:*$//
20580 x
20581 s/\(=[   ]*\).*/\1/
20582 G
20583 s/\n//
20584 s/^[^=]*=[       ]*$//
20585 }'
20586 fi
20587
20588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20589 fi # test -n "$CONFIG_FILES"
20590
20591 # Set up the scripts for CONFIG_HEADERS section.
20592 # No need to generate them if there are no CONFIG_HEADERS.
20593 # This happens for instance with `./config.status Makefile'.
20594 if test -n "$CONFIG_HEADERS"; then
20595 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20596 BEGIN {
20597 _ACEOF
20598
20599 # Transform confdefs.h into an awk script `defines.awk', embedded as
20600 # here-document in config.status, that substitutes the proper values into
20601 # config.h.in to produce config.h.
20602
20603 # Create a delimiter string that does not exist in confdefs.h, to ease
20604 # handling of long lines.
20605 ac_delim='%!_!# '
20606 for ac_last_try in false false :; do
20607   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20608   if test -z "$ac_tt"; then
20609     break
20610   elif $ac_last_try; then
20611     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20612   else
20613     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20614   fi
20615 done
20616
20617 # For the awk script, D is an array of macro values keyed by name,
20618 # likewise P contains macro parameters if any.  Preserve backslash
20619 # newline sequences.
20620
20621 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20622 sed -n '
20623 s/.\{148\}/&'"$ac_delim"'/g
20624 t rset
20625 :rset
20626 s/^[     ]*#[    ]*define[       ][      ]*/ /
20627 t def
20628 d
20629 :def
20630 s/\\$//
20631 t bsnl
20632 s/["\\]/\\&/g
20633 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20634 D["\1"]=" \3"/p
20635 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
20636 d
20637 :bsnl
20638 s/["\\]/\\&/g
20639 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20640 D["\1"]=" \3\\\\\\n"\\/p
20641 t cont
20642 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20643 t cont
20644 d
20645 :cont
20646 n
20647 s/.\{148\}/&'"$ac_delim"'/g
20648 t clear
20649 :clear
20650 s/\\$//
20651 t bsnlc
20652 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20653 d
20654 :bsnlc
20655 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20656 b cont
20657 ' <confdefs.h | sed '
20658 s/'"$ac_delim"'/"\\\
20659 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20660
20661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20662   for (key in D) D_is_set[key] = 1
20663   FS = "\a"
20664 }
20665 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20666   line = \$ 0
20667   split(line, arg, " ")
20668   if (arg[1] == "#") {
20669     defundef = arg[2]
20670     mac1 = arg[3]
20671   } else {
20672     defundef = substr(arg[1], 2)
20673     mac1 = arg[2]
20674   }
20675   split(mac1, mac2, "(") #)
20676   macro = mac2[1]
20677   prefix = substr(line, 1, index(line, defundef) - 1)
20678   if (D_is_set[macro]) {
20679     # Preserve the white space surrounding the "#".
20680     print prefix "define", macro P[macro] D[macro]
20681     next
20682   } else {
20683     # Replace #undef with comments.  This is necessary, for example,
20684     # in the case of _POSIX_SOURCE, which is predefined and required
20685     # on some systems where configure will not decide to define it.
20686     if (defundef == "undef") {
20687       print "/*", prefix defundef, macro, "*/"
20688       next
20689     }
20690   }
20691 }
20692 { print }
20693 _ACAWK
20694 _ACEOF
20695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20696   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20697 fi # test -n "$CONFIG_HEADERS"
20698
20699
20700 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20701 shift
20702 for ac_tag
20703 do
20704   case $ac_tag in
20705   :[FHLC]) ac_mode=$ac_tag; continue;;
20706   esac
20707   case $ac_mode$ac_tag in
20708   :[FHL]*:*);;
20709   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20710   :[FH]-) ac_tag=-:-;;
20711   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20712   esac
20713   ac_save_IFS=$IFS
20714   IFS=:
20715   set x $ac_tag
20716   IFS=$ac_save_IFS
20717   shift
20718   ac_file=$1
20719   shift
20720
20721   case $ac_mode in
20722   :L) ac_source=$1;;
20723   :[FH])
20724     ac_file_inputs=
20725     for ac_f
20726     do
20727       case $ac_f in
20728       -) ac_f="$ac_tmp/stdin";;
20729       *) # Look for the file first in the build tree, then in the source tree
20730          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20731          # because $ac_f cannot contain `:'.
20732          test -f "$ac_f" ||
20733            case $ac_f in
20734            [\\/$]*) false;;
20735            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20736            esac ||
20737            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20738       esac
20739       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20740       as_fn_append ac_file_inputs " '$ac_f'"
20741     done
20742
20743     # Let's still pretend it is `configure' which instantiates (i.e., don't
20744     # use $as_me), people would be surprised to read:
20745     #    /* config.h.  Generated by config.status.  */
20746     configure_input='Generated from '`
20747           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20748         `' by configure.'
20749     if test x"$ac_file" != x-; then
20750       configure_input="$ac_file.  $configure_input"
20751       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20752 $as_echo "$as_me: creating $ac_file" >&6;}
20753     fi
20754     # Neutralize special characters interpreted by sed in replacement strings.
20755     case $configure_input in #(
20756     *\&* | *\|* | *\\* )
20757        ac_sed_conf_input=`$as_echo "$configure_input" |
20758        sed 's/[\\\\&|]/\\\\&/g'`;; #(
20759     *) ac_sed_conf_input=$configure_input;;
20760     esac
20761
20762     case $ac_tag in
20763     *:-:* | *:-) cat >"$ac_tmp/stdin" \
20764       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20765     esac
20766     ;;
20767   esac
20768
20769   ac_dir=`$as_dirname -- "$ac_file" ||
20770 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20771          X"$ac_file" : 'X\(//\)[^/]' \| \
20772          X"$ac_file" : 'X\(//\)$' \| \
20773          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20774 $as_echo X"$ac_file" |
20775     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20776             s//\1/
20777             q
20778           }
20779           /^X\(\/\/\)[^/].*/{
20780             s//\1/
20781             q
20782           }
20783           /^X\(\/\/\)$/{
20784             s//\1/
20785             q
20786           }
20787           /^X\(\/\).*/{
20788             s//\1/
20789             q
20790           }
20791           s/.*/./; q'`
20792   as_dir="$ac_dir"; as_fn_mkdir_p
20793   ac_builddir=.
20794
20795 case "$ac_dir" in
20796 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20797 *)
20798   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20799   # A ".." for each directory in $ac_dir_suffix.
20800   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20801   case $ac_top_builddir_sub in
20802   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20803   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20804   esac ;;
20805 esac
20806 ac_abs_top_builddir=$ac_pwd
20807 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20808 # for backward compatibility:
20809 ac_top_builddir=$ac_top_build_prefix
20810
20811 case $srcdir in
20812   .)  # We are building in place.
20813     ac_srcdir=.
20814     ac_top_srcdir=$ac_top_builddir_sub
20815     ac_abs_top_srcdir=$ac_pwd ;;
20816   [\\/]* | ?:[\\/]* )  # Absolute name.
20817     ac_srcdir=$srcdir$ac_dir_suffix;
20818     ac_top_srcdir=$srcdir
20819     ac_abs_top_srcdir=$srcdir ;;
20820   *) # Relative name.
20821     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20822     ac_top_srcdir=$ac_top_build_prefix$srcdir
20823     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20824 esac
20825 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20826
20827
20828   case $ac_mode in
20829   :F)
20830   #
20831   # CONFIG_FILE
20832   #
20833
20834   case $INSTALL in
20835   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20836   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20837   esac
20838   ac_MKDIR_P=$MKDIR_P
20839   case $MKDIR_P in
20840   [\\/$]* | ?:[\\/]* ) ;;
20841   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20842   esac
20843 _ACEOF
20844
20845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20846 # If the template does not know about datarootdir, expand it.
20847 # FIXME: This hack should be removed a few years after 2.60.
20848 ac_datarootdir_hack=; ac_datarootdir_seen=
20849 ac_sed_dataroot='
20850 /datarootdir/ {
20851   p
20852   q
20853 }
20854 /@datadir@/p
20855 /@docdir@/p
20856 /@infodir@/p
20857 /@localedir@/p
20858 /@mandir@/p'
20859 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20860 *datarootdir*) ac_datarootdir_seen=yes;;
20861 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20862   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20863 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20864 _ACEOF
20865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20866   ac_datarootdir_hack='
20867   s&@datadir@&$datadir&g
20868   s&@docdir@&$docdir&g
20869   s&@infodir@&$infodir&g
20870   s&@localedir@&$localedir&g
20871   s&@mandir@&$mandir&g
20872   s&\\\${datarootdir}&$datarootdir&g' ;;
20873 esac
20874 _ACEOF
20875
20876 # Neutralize VPATH when `$srcdir' = `.'.
20877 # Shell code in configure.ac might set extrasub.
20878 # FIXME: do we really want to maintain this feature?
20879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20880 ac_sed_extra="$ac_vpsub
20881 $extrasub
20882 _ACEOF
20883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20884 :t
20885 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20886 s|@configure_input@|$ac_sed_conf_input|;t t
20887 s&@top_builddir@&$ac_top_builddir_sub&;t t
20888 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20889 s&@srcdir@&$ac_srcdir&;t t
20890 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20891 s&@top_srcdir@&$ac_top_srcdir&;t t
20892 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20893 s&@builddir@&$ac_builddir&;t t
20894 s&@abs_builddir@&$ac_abs_builddir&;t t
20895 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20896 s&@INSTALL@&$ac_INSTALL&;t t
20897 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20898 $ac_datarootdir_hack
20899 "
20900 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20901   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20902
20903 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20904   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20905   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
20906       "$ac_tmp/out"`; test -z "$ac_out"; } &&
20907   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20908 which seems to be undefined.  Please make sure it is defined" >&5
20909 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20910 which seems to be undefined.  Please make sure it is defined" >&2;}
20911
20912   rm -f "$ac_tmp/stdin"
20913   case $ac_file in
20914   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20915   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20916   esac \
20917   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20918  ;;
20919   :H)
20920   #
20921   # CONFIG_HEADER
20922   #
20923   if test x"$ac_file" != x-; then
20924     {
20925       $as_echo "/* $configure_input  */" \
20926       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20927     } >"$ac_tmp/config.h" \
20928       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20929     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20930       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20931 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20932     else
20933       rm -f "$ac_file"
20934       mv "$ac_tmp/config.h" "$ac_file" \
20935         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20936     fi
20937   else
20938     $as_echo "/* $configure_input  */" \
20939       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20940       || as_fn_error $? "could not create -" "$LINENO" 5
20941   fi
20942 # Compute "$ac_file"'s index in $config_headers.
20943 _am_arg="$ac_file"
20944 _am_stamp_count=1
20945 for _am_header in $config_headers :; do
20946   case $_am_header in
20947     $_am_arg | $_am_arg:* )
20948       break ;;
20949     * )
20950       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20951   esac
20952 done
20953 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20954 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20955          X"$_am_arg" : 'X\(//\)[^/]' \| \
20956          X"$_am_arg" : 'X\(//\)$' \| \
20957          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20958 $as_echo X"$_am_arg" |
20959     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20960             s//\1/
20961             q
20962           }
20963           /^X\(\/\/\)[^/].*/{
20964             s//\1/
20965             q
20966           }
20967           /^X\(\/\/\)$/{
20968             s//\1/
20969             q
20970           }
20971           /^X\(\/\).*/{
20972             s//\1/
20973             q
20974           }
20975           s/.*/./; q'`/stamp-h$_am_stamp_count
20976  ;;
20977
20978   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20979 $as_echo "$as_me: executing $ac_file commands" >&6;}
20980  ;;
20981   esac
20982
20983
20984   case $ac_file$ac_mode in
20985     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20986   # Older Autoconf quotes --file arguments for eval, but not when files
20987   # are listed without --file.  Let's play safe and only enable the eval
20988   # if we detect the quoting.
20989   case $CONFIG_FILES in
20990   *\'*) eval set x "$CONFIG_FILES" ;;
20991   *)   set x $CONFIG_FILES ;;
20992   esac
20993   shift
20994   for mf
20995   do
20996     # Strip MF so we end up with the name of the file.
20997     mf=`echo "$mf" | sed -e 's/:.*$//'`
20998     # Check whether this is an Automake generated Makefile or not.
20999     # We used to match only the files named 'Makefile.in', but
21000     # some people rename them; so instead we look at the file content.
21001     # Grep'ing the first line is not enough: some people post-process
21002     # each Makefile.in and add a new line on top of each file to say so.
21003     # Grep'ing the whole file is not good either: AIX grep has a line
21004     # limit of 2048, but all sed's we know have understand at least 4000.
21005     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21006       dirpart=`$as_dirname -- "$mf" ||
21007 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21008          X"$mf" : 'X\(//\)[^/]' \| \
21009          X"$mf" : 'X\(//\)$' \| \
21010          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21011 $as_echo X"$mf" |
21012     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21013             s//\1/
21014             q
21015           }
21016           /^X\(\/\/\)[^/].*/{
21017             s//\1/
21018             q
21019           }
21020           /^X\(\/\/\)$/{
21021             s//\1/
21022             q
21023           }
21024           /^X\(\/\).*/{
21025             s//\1/
21026             q
21027           }
21028           s/.*/./; q'`
21029     else
21030       continue
21031     fi
21032     # Extract the definition of DEPDIR, am__include, and am__quote
21033     # from the Makefile without running 'make'.
21034     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21035     test -z "$DEPDIR" && continue
21036     am__include=`sed -n 's/^am__include = //p' < "$mf"`
21037     test -z "$am__include" && continue
21038     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21039     # Find all dependency output files, they are included files with
21040     # $(DEPDIR) in their names.  We invoke sed twice because it is the
21041     # simplest approach to changing $(DEPDIR) to its actual value in the
21042     # expansion.
21043     for file in `sed -n "
21044       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21045          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21046       # Make sure the directory exists.
21047       test -f "$dirpart/$file" && continue
21048       fdir=`$as_dirname -- "$file" ||
21049 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21050          X"$file" : 'X\(//\)[^/]' \| \
21051          X"$file" : 'X\(//\)$' \| \
21052          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21053 $as_echo X"$file" |
21054     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21055             s//\1/
21056             q
21057           }
21058           /^X\(\/\/\)[^/].*/{
21059             s//\1/
21060             q
21061           }
21062           /^X\(\/\/\)$/{
21063             s//\1/
21064             q
21065           }
21066           /^X\(\/\).*/{
21067             s//\1/
21068             q
21069           }
21070           s/.*/./; q'`
21071       as_dir=$dirpart/$fdir; as_fn_mkdir_p
21072       # echo "creating $dirpart/$file"
21073       echo '# dummy' > "$dirpart/$file"
21074     done
21075   done
21076 }
21077  ;;
21078     "libtool":C)
21079
21080     # See if we are running on zsh, and set the options that allow our
21081     # commands through without removal of \ escapes.
21082     if test -n "${ZSH_VERSION+set}"; then
21083       setopt NO_GLOB_SUBST
21084     fi
21085
21086     cfgfile=${ofile}T
21087     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21088     $RM "$cfgfile"
21089
21090     cat <<_LT_EOF >> "$cfgfile"
21091 #! $SHELL
21092 # Generated automatically by $as_me ($PACKAGE) $VERSION
21093 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21094 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21095
21096 # Provide generalized library-building support services.
21097 # Written by Gordon Matzigkeit, 1996
21098
21099 # Copyright (C) 2014 Free Software Foundation, Inc.
21100 # This is free software; see the source for copying conditions.  There is NO
21101 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21102
21103 # GNU Libtool is free software; you can redistribute it and/or modify
21104 # it under the terms of the GNU General Public License as published by
21105 # the Free Software Foundation; either version 2 of of the License, or
21106 # (at your option) any later version.
21107 #
21108 # As a special exception to the GNU General Public License, if you
21109 # distribute this file as part of a program or library that is built
21110 # using GNU Libtool, you may include this file under the  same
21111 # distribution terms that you use for the rest of that program.
21112 #
21113 # GNU Libtool is distributed in the hope that it will be useful, but
21114 # WITHOUT ANY WARRANTY; without even the implied warranty of
21115 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21116 # GNU General Public License for more details.
21117 #
21118 # You should have received a copy of the GNU General Public License
21119 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
21120
21121
21122 # The names of the tagged configurations supported by this script.
21123 available_tags=''
21124
21125 # Configured defaults for sys_lib_dlsearch_path munging.
21126 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21127
21128 # ### BEGIN LIBTOOL CONFIG
21129
21130 # Whether or not to build static libraries.
21131 build_old_libs=$enable_static
21132
21133 # Which release of libtool.m4 was used?
21134 macro_version=$macro_version
21135 macro_revision=$macro_revision
21136
21137 # Whether or not to build shared libraries.
21138 build_libtool_libs=$enable_shared
21139
21140 # What type of objects to build.
21141 pic_mode=$pic_mode
21142
21143 # Whether or not to optimize for fast installation.
21144 fast_install=$enable_fast_install
21145
21146 # Shared archive member basename,for filename based shared library versioning on AIX.
21147 shared_archive_member_spec=$shared_archive_member_spec
21148
21149 # Shell to use when invoking shell scripts.
21150 SHELL=$lt_SHELL
21151
21152 # An echo program that protects backslashes.
21153 ECHO=$lt_ECHO
21154
21155 # The PATH separator for the build system.
21156 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21157
21158 # The host system.
21159 host_alias=$host_alias
21160 host=$host
21161 host_os=$host_os
21162
21163 # The build system.
21164 build_alias=$build_alias
21165 build=$build
21166 build_os=$build_os
21167
21168 # A sed program that does not truncate output.
21169 SED=$lt_SED
21170
21171 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21172 Xsed="\$SED -e 1s/^X//"
21173
21174 # A grep program that handles long lines.
21175 GREP=$lt_GREP
21176
21177 # An ERE matcher.
21178 EGREP=$lt_EGREP
21179
21180 # A literal string matcher.
21181 FGREP=$lt_FGREP
21182
21183 # A BSD- or MS-compatible name lister.
21184 NM=$lt_NM
21185
21186 # Whether we need soft or hard links.
21187 LN_S=$lt_LN_S
21188
21189 # What is the maximum length of a command?
21190 max_cmd_len=$max_cmd_len
21191
21192 # Object file suffix (normally "o").
21193 objext=$ac_objext
21194
21195 # Executable file suffix (normally "").
21196 exeext=$exeext
21197
21198 # whether the shell understands "unset".
21199 lt_unset=$lt_unset
21200
21201 # turn spaces into newlines.
21202 SP2NL=$lt_lt_SP2NL
21203
21204 # turn newlines into spaces.
21205 NL2SP=$lt_lt_NL2SP
21206
21207 # convert \$build file names to \$host format.
21208 to_host_file_cmd=$lt_cv_to_host_file_cmd
21209
21210 # convert \$build files to toolchain format.
21211 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21212
21213 # An object symbol dumper.
21214 OBJDUMP=$lt_OBJDUMP
21215
21216 # Method to check whether dependent libraries are shared objects.
21217 deplibs_check_method=$lt_deplibs_check_method
21218
21219 # Command to use when deplibs_check_method = "file_magic".
21220 file_magic_cmd=$lt_file_magic_cmd
21221
21222 # How to find potential files when deplibs_check_method = "file_magic".
21223 file_magic_glob=$lt_file_magic_glob
21224
21225 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21226 want_nocaseglob=$lt_want_nocaseglob
21227
21228 # DLL creation program.
21229 DLLTOOL=$lt_DLLTOOL
21230
21231 # Command to associate shared and link libraries.
21232 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21233
21234 # The archiver.
21235 AR=$lt_AR
21236
21237 # Flags to create an archive.
21238 AR_FLAGS=$lt_AR_FLAGS
21239
21240 # How to feed a file listing to the archiver.
21241 archiver_list_spec=$lt_archiver_list_spec
21242
21243 # A symbol stripping program.
21244 STRIP=$lt_STRIP
21245
21246 # Commands used to install an old-style archive.
21247 RANLIB=$lt_RANLIB
21248 old_postinstall_cmds=$lt_old_postinstall_cmds
21249 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21250
21251 # Whether to use a lock for old archive extraction.
21252 lock_old_archive_extraction=$lock_old_archive_extraction
21253
21254 # A C compiler.
21255 LTCC=$lt_CC
21256
21257 # LTCC compiler flags.
21258 LTCFLAGS=$lt_CFLAGS
21259
21260 # Take the output of nm and produce a listing of raw symbols and C names.
21261 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21262
21263 # Transform the output of nm in a proper C declaration.
21264 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21265
21266 # Transform the output of nm into a list of symbols to manually relocate.
21267 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21268
21269 # Transform the output of nm in a C name address pair.
21270 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21271
21272 # Transform the output of nm in a C name address pair when lib prefix is needed.
21273 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21274
21275 # The name lister interface.
21276 nm_interface=$lt_lt_cv_nm_interface
21277
21278 # Specify filename containing input files for \$NM.
21279 nm_file_list_spec=$lt_nm_file_list_spec
21280
21281 # The root where to search for dependent libraries,and where our libraries should be installed.
21282 lt_sysroot=$lt_sysroot
21283
21284 # Command to truncate a binary pipe.
21285 lt_truncate_bin=$lt_lt_cv_truncate_bin
21286
21287 # The name of the directory that contains temporary libtool files.
21288 objdir=$objdir
21289
21290 # Used to examine libraries when file_magic_cmd begins with "file".
21291 MAGIC_CMD=$MAGIC_CMD
21292
21293 # Must we lock files when doing compilation?
21294 need_locks=$lt_need_locks
21295
21296 # Manifest tool.
21297 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21298
21299 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21300 DSYMUTIL=$lt_DSYMUTIL
21301
21302 # Tool to change global to local symbols on Mac OS X.
21303 NMEDIT=$lt_NMEDIT
21304
21305 # Tool to manipulate fat objects and archives on Mac OS X.
21306 LIPO=$lt_LIPO
21307
21308 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21309 OTOOL=$lt_OTOOL
21310
21311 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21312 OTOOL64=$lt_OTOOL64
21313
21314 # Old archive suffix (normally "a").
21315 libext=$libext
21316
21317 # Shared library suffix (normally ".so").
21318 shrext_cmds=$lt_shrext_cmds
21319
21320 # The commands to extract the exported symbol list from a shared archive.
21321 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21322
21323 # Variables whose values should be saved in libtool wrapper scripts and
21324 # restored at link time.
21325 variables_saved_for_relink=$lt_variables_saved_for_relink
21326
21327 # Do we need the "lib" prefix for modules?
21328 need_lib_prefix=$need_lib_prefix
21329
21330 # Do we need a version for libraries?
21331 need_version=$need_version
21332
21333 # Library versioning type.
21334 version_type=$version_type
21335
21336 # Shared library runtime path variable.
21337 runpath_var=$runpath_var
21338
21339 # Shared library path variable.
21340 shlibpath_var=$shlibpath_var
21341
21342 # Is shlibpath searched before the hard-coded library search path?
21343 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21344
21345 # Format of library name prefix.
21346 libname_spec=$lt_libname_spec
21347
21348 # List of archive names.  First name is the real one, the rest are links.
21349 # The last name is the one that the linker finds with -lNAME
21350 library_names_spec=$lt_library_names_spec
21351
21352 # The coded name of the library, if different from the real name.
21353 soname_spec=$lt_soname_spec
21354
21355 # Permission mode override for installation of shared libraries.
21356 install_override_mode=$lt_install_override_mode
21357
21358 # Command to use after installation of a shared archive.
21359 postinstall_cmds=$lt_postinstall_cmds
21360
21361 # Command to use after uninstallation of a shared archive.
21362 postuninstall_cmds=$lt_postuninstall_cmds
21363
21364 # Commands used to finish a libtool library installation in a directory.
21365 finish_cmds=$lt_finish_cmds
21366
21367 # As "finish_cmds", except a single script fragment to be evaled but
21368 # not shown.
21369 finish_eval=$lt_finish_eval
21370
21371 # Whether we should hardcode library paths into libraries.
21372 hardcode_into_libs=$hardcode_into_libs
21373
21374 # Compile-time system search path for libraries.
21375 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21376
21377 # Detected run-time system search path for libraries.
21378 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21379
21380 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21381 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21382
21383 # Whether dlopen is supported.
21384 dlopen_support=$enable_dlopen
21385
21386 # Whether dlopen of programs is supported.
21387 dlopen_self=$enable_dlopen_self
21388
21389 # Whether dlopen of statically linked programs is supported.
21390 dlopen_self_static=$enable_dlopen_self_static
21391
21392 # Commands to strip libraries.
21393 old_striplib=$lt_old_striplib
21394 striplib=$lt_striplib
21395
21396
21397 # The linker used to build libraries.
21398 LD=$lt_LD
21399
21400 # How to create reloadable object files.
21401 reload_flag=$lt_reload_flag
21402 reload_cmds=$lt_reload_cmds
21403
21404 # Commands used to build an old-style archive.
21405 old_archive_cmds=$lt_old_archive_cmds
21406
21407 # A language specific compiler.
21408 CC=$lt_compiler
21409
21410 # Is the compiler the GNU compiler?
21411 with_gcc=$GCC
21412
21413 # Compiler flag to turn off builtin functions.
21414 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21415
21416 # Additional compiler flags for building library objects.
21417 pic_flag=$lt_lt_prog_compiler_pic
21418
21419 # How to pass a linker flag through the compiler.
21420 wl=$lt_lt_prog_compiler_wl
21421
21422 # Compiler flag to prevent dynamic linking.
21423 link_static_flag=$lt_lt_prog_compiler_static
21424
21425 # Does compiler simultaneously support -c and -o options?
21426 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21427
21428 # Whether or not to add -lc for building shared libraries.
21429 build_libtool_need_lc=$archive_cmds_need_lc
21430
21431 # Whether or not to disallow shared libs when runtime libs are static.
21432 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21433
21434 # Compiler flag to allow reflexive dlopens.
21435 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21436
21437 # Compiler flag to generate shared objects directly from archives.
21438 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21439
21440 # Whether the compiler copes with passing no objects directly.
21441 compiler_needs_object=$lt_compiler_needs_object
21442
21443 # Create an old-style archive from a shared archive.
21444 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21445
21446 # Create a temporary old-style archive to link instead of a shared archive.
21447 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21448
21449 # Commands used to build a shared archive.
21450 archive_cmds=$lt_archive_cmds
21451 archive_expsym_cmds=$lt_archive_expsym_cmds
21452
21453 # Commands used to build a loadable module if different from building
21454 # a shared archive.
21455 module_cmds=$lt_module_cmds
21456 module_expsym_cmds=$lt_module_expsym_cmds
21457
21458 # Whether we are building with GNU ld or not.
21459 with_gnu_ld=$lt_with_gnu_ld
21460
21461 # Flag that allows shared libraries with undefined symbols to be built.
21462 allow_undefined_flag=$lt_allow_undefined_flag
21463
21464 # Flag that enforces no undefined symbols.
21465 no_undefined_flag=$lt_no_undefined_flag
21466
21467 # Flag to hardcode \$libdir into a binary during linking.
21468 # This must work even if \$libdir does not exist
21469 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21470
21471 # Whether we need a single "-rpath" flag with a separated argument.
21472 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21473
21474 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21475 # DIR into the resulting binary.
21476 hardcode_direct=$hardcode_direct
21477
21478 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21479 # DIR into the resulting binary and the resulting library dependency is
21480 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21481 # library is relocated.
21482 hardcode_direct_absolute=$hardcode_direct_absolute
21483
21484 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21485 # into the resulting binary.
21486 hardcode_minus_L=$hardcode_minus_L
21487
21488 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21489 # into the resulting binary.
21490 hardcode_shlibpath_var=$hardcode_shlibpath_var
21491
21492 # Set to "yes" if building a shared library automatically hardcodes DIR
21493 # into the library and all subsequent libraries and executables linked
21494 # against it.
21495 hardcode_automatic=$hardcode_automatic
21496
21497 # Set to yes if linker adds runtime paths of dependent libraries
21498 # to runtime path list.
21499 inherit_rpath=$inherit_rpath
21500
21501 # Whether libtool must link a program against all its dependency libraries.
21502 link_all_deplibs=$link_all_deplibs
21503
21504 # Set to "yes" if exported symbols are required.
21505 always_export_symbols=$always_export_symbols
21506
21507 # The commands to list exported symbols.
21508 export_symbols_cmds=$lt_export_symbols_cmds
21509
21510 # Symbols that should not be listed in the preloaded symbols.
21511 exclude_expsyms=$lt_exclude_expsyms
21512
21513 # Symbols that must always be exported.
21514 include_expsyms=$lt_include_expsyms
21515
21516 # Commands necessary for linking programs (against libraries) with templates.
21517 prelink_cmds=$lt_prelink_cmds
21518
21519 # Commands necessary for finishing linking programs.
21520 postlink_cmds=$lt_postlink_cmds
21521
21522 # Specify filename containing input files.
21523 file_list_spec=$lt_file_list_spec
21524
21525 # How to hardcode a shared library path into an executable.
21526 hardcode_action=$hardcode_action
21527
21528 # ### END LIBTOOL CONFIG
21529
21530 _LT_EOF
21531
21532     cat <<'_LT_EOF' >> "$cfgfile"
21533
21534 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21535
21536 # func_munge_path_list VARIABLE PATH
21537 # -----------------------------------
21538 # VARIABLE is name of variable containing _space_ separated list of
21539 # directories to be munged by the contents of PATH, which is string
21540 # having a format:
21541 # "DIR[:DIR]:"
21542 #       string "DIR[ DIR]" will be prepended to VARIABLE
21543 # ":DIR[:DIR]"
21544 #       string "DIR[ DIR]" will be appended to VARIABLE
21545 # "DIRP[:DIRP]::[DIRA:]DIRA"
21546 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21547 #       "DIRA[ DIRA]" will be appended to VARIABLE
21548 # "DIR[:DIR]"
21549 #       VARIABLE will be replaced by "DIR[ DIR]"
21550 func_munge_path_list ()
21551 {
21552     case x$2 in
21553     x)
21554         ;;
21555     *:)
21556         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21557         ;;
21558     x:*)
21559         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21560         ;;
21561     *::*)
21562         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21563         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21564         ;;
21565     *)
21566         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21567         ;;
21568     esac
21569 }
21570
21571
21572 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21573 func_cc_basename ()
21574 {
21575     for cc_temp in $*""; do
21576       case $cc_temp in
21577         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21578         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21579         \-*) ;;
21580         *) break;;
21581       esac
21582     done
21583     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21584 }
21585
21586
21587 # ### END FUNCTIONS SHARED WITH CONFIGURE
21588
21589 _LT_EOF
21590
21591   case $host_os in
21592   aix3*)
21593     cat <<\_LT_EOF >> "$cfgfile"
21594 # AIX sometimes has problems with the GCC collect2 program.  For some
21595 # reason, if we set the COLLECT_NAMES environment variable, the problems
21596 # vanish in a puff of smoke.
21597 if test set != "${COLLECT_NAMES+set}"; then
21598   COLLECT_NAMES=
21599   export COLLECT_NAMES
21600 fi
21601 _LT_EOF
21602     ;;
21603   esac
21604
21605
21606 ltmain=$ac_aux_dir/ltmain.sh
21607
21608
21609   # We use sed instead of cat because bash on DJGPP gets confused if
21610   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21611   # text mode, it properly converts lines to CR/LF.  This bash problem
21612   # is reportedly fixed, but why not run on old versions too?
21613   sed '$q' "$ltmain" >> "$cfgfile" \
21614      || (rm -f "$cfgfile"; exit 1)
21615
21616    mv -f "$cfgfile" "$ofile" ||
21617     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21618   chmod +x "$ofile"
21619
21620  ;;
21621
21622   esac
21623 done # for ac_tag
21624
21625
21626 as_fn_exit 0
21627 _ACEOF
21628 ac_clean_files=$ac_clean_files_save
21629
21630 test $ac_write_fail = 0 ||
21631   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21632
21633
21634 # configure is writing to config.log, and then calls config.status.
21635 # config.status does its own redirection, appending to config.log.
21636 # Unfortunately, on DOS this fails, as config.log is still kept open
21637 # by configure, so config.status won't be able to write to it; its
21638 # output is simply discarded.  So we exec the FD to /dev/null,
21639 # effectively closing config.log, so it can be properly (re)opened and
21640 # appended to by config.status.  When coming back to configure, we
21641 # need to make the FD available again.
21642 if test "$no_create" != yes; then
21643   ac_cs_success=:
21644   ac_config_status_args=
21645   test "$silent" = yes &&
21646     ac_config_status_args="$ac_config_status_args --quiet"
21647   exec 5>/dev/null
21648   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21649   exec 5>>config.log
21650   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21651   # would make configure fail if this is the last instruction.
21652   $ac_cs_success || as_fn_exit 1
21653 fi
21654 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21655   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21656 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21657 fi
21658
21659