configure revision 57ba8e8b
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xf86-video-vesa 2.3.4.
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
18DUALCASE=1; export DUALCASE # for MKS sh
19if 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
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_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.
45if 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 --'
49elif (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'
52else
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'
72fi
73
74# The user is always right.
75if 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  }
81fi
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.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
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
102IFS=$as_save_IFS
103
104     ;;
105esac
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.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
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.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export 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.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $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
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if 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
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -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
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
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
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
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
244fi; }
245IFS=$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.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $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
267exit 255
268fi
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
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_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.
317as_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.
327as_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.
375as_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.
385if (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  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # 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.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # 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.
420as_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
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_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.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_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
512ECHO_C= ECHO_N= ECHO_T=
513case `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';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (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
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_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.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 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.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='xf86-video-vesa'
593PACKAGE_TARNAME='xf86-video-vesa'
594PACKAGE_VERSION='2.3.4'
595PACKAGE_STRING='xf86-video-vesa 2.3.4'
596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
597PACKAGE_URL=''
598
599ac_unique_file="Makefile.am"
600# Factoring default headers for most tests.
601ac_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
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639LIBOBJS
640DRIVER_NAME
641PCIACCESS_LIBS
642PCIACCESS_CFLAGS
643XEXT_LIBS
644XEXT_CFLAGS
645XORG_LIBS
646XORG_CFLAGS
647moduledir
648OTOOL64
649OTOOL
650LIPO
651NMEDIT
652DSYMUTIL
653MANIFEST_TOOL
654RANLIB
655ac_ct_AR
656AR
657DLLTOOL
658OBJDUMP
659LN_S
660NM
661ac_ct_DUMPBIN
662DUMPBIN
663LD
664FGREP
665LIBTOOL
666MAN_SUBSTS
667XORG_MAN_PAGE
668ADMIN_MAN_DIR
669DRIVER_MAN_DIR
670MISC_MAN_DIR
671FILE_MAN_DIR
672LIB_MAN_DIR
673APP_MAN_DIR
674ADMIN_MAN_SUFFIX
675DRIVER_MAN_SUFFIX
676MISC_MAN_SUFFIX
677FILE_MAN_SUFFIX
678LIB_MAN_SUFFIX
679APP_MAN_SUFFIX
680SED
681host_os
682host_vendor
683host_cpu
684host
685build_os
686build_vendor
687build_cpu
688build
689INSTALL_CMD
690PKG_CONFIG_LIBDIR
691PKG_CONFIG_PATH
692PKG_CONFIG
693CHANGELOG_CMD
694STRICT_CFLAGS
695CWARNFLAGS
696BASE_CFLAGS
697EGREP
698GREP
699CPP
700am__fastdepCC_FALSE
701am__fastdepCC_TRUE
702CCDEPMODE
703am__nodep
704AMDEPBACKSLASH
705AMDEP_FALSE
706AMDEP_TRUE
707am__quote
708am__include
709DEPDIR
710OBJEXT
711EXEEXT
712ac_ct_CC
713CPPFLAGS
714LDFLAGS
715CFLAGS
716CC
717AM_BACKSLASH
718AM_DEFAULT_VERBOSITY
719AM_DEFAULT_V
720AM_V
721am__untar
722am__tar
723AMTAR
724am__leading_dot
725SET_MAKE
726AWK
727mkdir_p
728MKDIR_P
729INSTALL_STRIP_PROGRAM
730STRIP
731install_sh
732MAKEINFO
733AUTOHEADER
734AUTOMAKE
735AUTOCONF
736ACLOCAL
737VERSION
738PACKAGE
739CYGPATH_W
740am__isrc
741INSTALL_DATA
742INSTALL_SCRIPT
743INSTALL_PROGRAM
744target_alias
745host_alias
746build_alias
747LIBS
748ECHO_T
749ECHO_N
750ECHO_C
751DEFS
752mandir
753localedir
754libdir
755psdir
756pdfdir
757dvidir
758htmldir
759infodir
760docdir
761oldincludedir
762includedir
763localstatedir
764sharedstatedir
765sysconfdir
766datadir
767datarootdir
768libexecdir
769sbindir
770bindir
771program_transform_name
772prefix
773exec_prefix
774PACKAGE_URL
775PACKAGE_BUGREPORT
776PACKAGE_STRING
777PACKAGE_VERSION
778PACKAGE_TARNAME
779PACKAGE_NAME
780PATH_SEPARATOR
781SHELL'
782ac_subst_files=''
783ac_user_opts='
784enable_option_checking
785enable_silent_rules
786enable_dependency_tracking
787enable_selective_werror
788enable_strict_compilation
789enable_static
790enable_shared
791with_pic
792enable_fast_install
793with_gnu_ld
794with_sysroot
795enable_libtool_lock
796with_xorg_module_dir
797'
798      ac_precious_vars='build_alias
799host_alias
800target_alias
801CC
802CFLAGS
803LDFLAGS
804LIBS
805CPPFLAGS
806CPP
807PKG_CONFIG
808PKG_CONFIG_PATH
809PKG_CONFIG_LIBDIR
810XORG_CFLAGS
811XORG_LIBS
812XEXT_CFLAGS
813XEXT_LIBS
814PCIACCESS_CFLAGS
815PCIACCESS_LIBS'
816
817
818# Initialize some variables set by options.
819ac_init_help=
820ac_init_version=false
821ac_unrecognized_opts=
822ac_unrecognized_sep=
823# The variables have the same names as the options, with
824# dashes changed to underlines.
825cache_file=/dev/null
826exec_prefix=NONE
827no_create=
828no_recursion=
829prefix=NONE
830program_prefix=NONE
831program_suffix=NONE
832program_transform_name=s,x,x,
833silent=
834site=
835srcdir=
836verbose=
837x_includes=NONE
838x_libraries=NONE
839
840# Installation directory options.
841# These are left unexpanded so users can "make install exec_prefix=/foo"
842# and all the variables that are supposed to be based on exec_prefix
843# by default will actually change.
844# Use braces instead of parens because sh, perl, etc. also accept them.
845# (The list follows the same order as the GNU Coding Standards.)
846bindir='${exec_prefix}/bin'
847sbindir='${exec_prefix}/sbin'
848libexecdir='${exec_prefix}/libexec'
849datarootdir='${prefix}/share'
850datadir='${datarootdir}'
851sysconfdir='${prefix}/etc'
852sharedstatedir='${prefix}/com'
853localstatedir='${prefix}/var'
854includedir='${prefix}/include'
855oldincludedir='/usr/include'
856docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857infodir='${datarootdir}/info'
858htmldir='${docdir}'
859dvidir='${docdir}'
860pdfdir='${docdir}'
861psdir='${docdir}'
862libdir='${exec_prefix}/lib'
863localedir='${datarootdir}/locale'
864mandir='${datarootdir}/man'
865
866ac_prev=
867ac_dashdash=
868for ac_option
869do
870  # If the previous option needs an argument, assign it.
871  if test -n "$ac_prev"; then
872    eval $ac_prev=\$ac_option
873    ac_prev=
874    continue
875  fi
876
877  case $ac_option in
878  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879  *=)   ac_optarg= ;;
880  *)    ac_optarg=yes ;;
881  esac
882
883  # Accept the important Cygnus configure options, so we can diagnose typos.
884
885  case $ac_dashdash$ac_option in
886  --)
887    ac_dashdash=yes ;;
888
889  -bindir | --bindir | --bindi | --bind | --bin | --bi)
890    ac_prev=bindir ;;
891  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892    bindir=$ac_optarg ;;
893
894  -build | --build | --buil | --bui | --bu)
895    ac_prev=build_alias ;;
896  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897    build_alias=$ac_optarg ;;
898
899  -cache-file | --cache-file | --cache-fil | --cache-fi \
900  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901    ac_prev=cache_file ;;
902  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904    cache_file=$ac_optarg ;;
905
906  --config-cache | -C)
907    cache_file=config.cache ;;
908
909  -datadir | --datadir | --datadi | --datad)
910    ac_prev=datadir ;;
911  -datadir=* | --datadir=* | --datadi=* | --datad=*)
912    datadir=$ac_optarg ;;
913
914  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915  | --dataroo | --dataro | --datar)
916    ac_prev=datarootdir ;;
917  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919    datarootdir=$ac_optarg ;;
920
921  -disable-* | --disable-*)
922    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923    # Reject names that are not valid shell variable names.
924    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925      as_fn_error $? "invalid feature name: $ac_useropt"
926    ac_useropt_orig=$ac_useropt
927    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928    case $ac_user_opts in
929      *"
930"enable_$ac_useropt"
931"*) ;;
932      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933	 ac_unrecognized_sep=', ';;
934    esac
935    eval enable_$ac_useropt=no ;;
936
937  -docdir | --docdir | --docdi | --doc | --do)
938    ac_prev=docdir ;;
939  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940    docdir=$ac_optarg ;;
941
942  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943    ac_prev=dvidir ;;
944  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945    dvidir=$ac_optarg ;;
946
947  -enable-* | --enable-*)
948    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
949    # Reject names that are not valid shell variable names.
950    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951      as_fn_error $? "invalid feature name: $ac_useropt"
952    ac_useropt_orig=$ac_useropt
953    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954    case $ac_user_opts in
955      *"
956"enable_$ac_useropt"
957"*) ;;
958      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
959	 ac_unrecognized_sep=', ';;
960    esac
961    eval enable_$ac_useropt=\$ac_optarg ;;
962
963  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
964  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
965  | --exec | --exe | --ex)
966    ac_prev=exec_prefix ;;
967  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
968  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
969  | --exec=* | --exe=* | --ex=*)
970    exec_prefix=$ac_optarg ;;
971
972  -gas | --gas | --ga | --g)
973    # Obsolete; use --with-gas.
974    with_gas=yes ;;
975
976  -help | --help | --hel | --he | -h)
977    ac_init_help=long ;;
978  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
979    ac_init_help=recursive ;;
980  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
981    ac_init_help=short ;;
982
983  -host | --host | --hos | --ho)
984    ac_prev=host_alias ;;
985  -host=* | --host=* | --hos=* | --ho=*)
986    host_alias=$ac_optarg ;;
987
988  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
989    ac_prev=htmldir ;;
990  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
991  | --ht=*)
992    htmldir=$ac_optarg ;;
993
994  -includedir | --includedir | --includedi | --included | --include \
995  | --includ | --inclu | --incl | --inc)
996    ac_prev=includedir ;;
997  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
998  | --includ=* | --inclu=* | --incl=* | --inc=*)
999    includedir=$ac_optarg ;;
1000
1001  -infodir | --infodir | --infodi | --infod | --info | --inf)
1002    ac_prev=infodir ;;
1003  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1004    infodir=$ac_optarg ;;
1005
1006  -libdir | --libdir | --libdi | --libd)
1007    ac_prev=libdir ;;
1008  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1009    libdir=$ac_optarg ;;
1010
1011  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1012  | --libexe | --libex | --libe)
1013    ac_prev=libexecdir ;;
1014  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1015  | --libexe=* | --libex=* | --libe=*)
1016    libexecdir=$ac_optarg ;;
1017
1018  -localedir | --localedir | --localedi | --localed | --locale)
1019    ac_prev=localedir ;;
1020  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1021    localedir=$ac_optarg ;;
1022
1023  -localstatedir | --localstatedir | --localstatedi | --localstated \
1024  | --localstate | --localstat | --localsta | --localst | --locals)
1025    ac_prev=localstatedir ;;
1026  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1027  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1028    localstatedir=$ac_optarg ;;
1029
1030  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1031    ac_prev=mandir ;;
1032  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1033    mandir=$ac_optarg ;;
1034
1035  -nfp | --nfp | --nf)
1036    # Obsolete; use --without-fp.
1037    with_fp=no ;;
1038
1039  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1040  | --no-cr | --no-c | -n)
1041    no_create=yes ;;
1042
1043  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045    no_recursion=yes ;;
1046
1047  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1048  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1049  | --oldin | --oldi | --old | --ol | --o)
1050    ac_prev=oldincludedir ;;
1051  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1052  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1053  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1054    oldincludedir=$ac_optarg ;;
1055
1056  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1057    ac_prev=prefix ;;
1058  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1059    prefix=$ac_optarg ;;
1060
1061  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1062  | --program-pre | --program-pr | --program-p)
1063    ac_prev=program_prefix ;;
1064  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1065  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1066    program_prefix=$ac_optarg ;;
1067
1068  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1069  | --program-suf | --program-su | --program-s)
1070    ac_prev=program_suffix ;;
1071  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1072  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1073    program_suffix=$ac_optarg ;;
1074
1075  -program-transform-name | --program-transform-name \
1076  | --program-transform-nam | --program-transform-na \
1077  | --program-transform-n | --program-transform- \
1078  | --program-transform | --program-transfor \
1079  | --program-transfo | --program-transf \
1080  | --program-trans | --program-tran \
1081  | --progr-tra | --program-tr | --program-t)
1082    ac_prev=program_transform_name ;;
1083  -program-transform-name=* | --program-transform-name=* \
1084  | --program-transform-nam=* | --program-transform-na=* \
1085  | --program-transform-n=* | --program-transform-=* \
1086  | --program-transform=* | --program-transfor=* \
1087  | --program-transfo=* | --program-transf=* \
1088  | --program-trans=* | --program-tran=* \
1089  | --progr-tra=* | --program-tr=* | --program-t=*)
1090    program_transform_name=$ac_optarg ;;
1091
1092  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1093    ac_prev=pdfdir ;;
1094  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1095    pdfdir=$ac_optarg ;;
1096
1097  -psdir | --psdir | --psdi | --psd | --ps)
1098    ac_prev=psdir ;;
1099  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1100    psdir=$ac_optarg ;;
1101
1102  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103  | -silent | --silent | --silen | --sile | --sil)
1104    silent=yes ;;
1105
1106  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1107    ac_prev=sbindir ;;
1108  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1109  | --sbi=* | --sb=*)
1110    sbindir=$ac_optarg ;;
1111
1112  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1113  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1114  | --sharedst | --shareds | --shared | --share | --shar \
1115  | --sha | --sh)
1116    ac_prev=sharedstatedir ;;
1117  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1118  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1119  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1120  | --sha=* | --sh=*)
1121    sharedstatedir=$ac_optarg ;;
1122
1123  -site | --site | --sit)
1124    ac_prev=site ;;
1125  -site=* | --site=* | --sit=*)
1126    site=$ac_optarg ;;
1127
1128  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1129    ac_prev=srcdir ;;
1130  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1131    srcdir=$ac_optarg ;;
1132
1133  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1134  | --syscon | --sysco | --sysc | --sys | --sy)
1135    ac_prev=sysconfdir ;;
1136  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1137  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1138    sysconfdir=$ac_optarg ;;
1139
1140  -target | --target | --targe | --targ | --tar | --ta | --t)
1141    ac_prev=target_alias ;;
1142  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1143    target_alias=$ac_optarg ;;
1144
1145  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1146    verbose=yes ;;
1147
1148  -version | --version | --versio | --versi | --vers | -V)
1149    ac_init_version=: ;;
1150
1151  -with-* | --with-*)
1152    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1153    # Reject names that are not valid shell variable names.
1154    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155      as_fn_error $? "invalid package name: $ac_useropt"
1156    ac_useropt_orig=$ac_useropt
1157    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158    case $ac_user_opts in
1159      *"
1160"with_$ac_useropt"
1161"*) ;;
1162      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1163	 ac_unrecognized_sep=', ';;
1164    esac
1165    eval with_$ac_useropt=\$ac_optarg ;;
1166
1167  -without-* | --without-*)
1168    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1169    # Reject names that are not valid shell variable names.
1170    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171      as_fn_error $? "invalid package name: $ac_useropt"
1172    ac_useropt_orig=$ac_useropt
1173    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174    case $ac_user_opts in
1175      *"
1176"with_$ac_useropt"
1177"*) ;;
1178      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1179	 ac_unrecognized_sep=', ';;
1180    esac
1181    eval with_$ac_useropt=no ;;
1182
1183  --x)
1184    # Obsolete; use --with-x.
1185    with_x=yes ;;
1186
1187  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1188  | --x-incl | --x-inc | --x-in | --x-i)
1189    ac_prev=x_includes ;;
1190  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1191  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1192    x_includes=$ac_optarg ;;
1193
1194  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1195  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1196    ac_prev=x_libraries ;;
1197  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1198  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1199    x_libraries=$ac_optarg ;;
1200
1201  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1202Try \`$0 --help' for more information"
1203    ;;
1204
1205  *=*)
1206    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1207    # Reject names that are not valid shell variable names.
1208    case $ac_envvar in #(
1209      '' | [0-9]* | *[!_$as_cr_alnum]* )
1210      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1211    esac
1212    eval $ac_envvar=\$ac_optarg
1213    export $ac_envvar ;;
1214
1215  *)
1216    # FIXME: should be removed in autoconf 3.0.
1217    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1218    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1220    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1221    ;;
1222
1223  esac
1224done
1225
1226if test -n "$ac_prev"; then
1227  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1228  as_fn_error $? "missing argument to $ac_option"
1229fi
1230
1231if test -n "$ac_unrecognized_opts"; then
1232  case $enable_option_checking in
1233    no) ;;
1234    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1235    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1236  esac
1237fi
1238
1239# Check all directory arguments for consistency.
1240for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1241		datadir sysconfdir sharedstatedir localstatedir includedir \
1242		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1243		libdir localedir mandir
1244do
1245  eval ac_val=\$$ac_var
1246  # Remove trailing slashes.
1247  case $ac_val in
1248    */ )
1249      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1250      eval $ac_var=\$ac_val;;
1251  esac
1252  # Be sure to have absolute directory names.
1253  case $ac_val in
1254    [\\/$]* | ?:[\\/]* )  continue;;
1255    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1256  esac
1257  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1258done
1259
1260# There might be people who depend on the old broken behavior: `$host'
1261# used to hold the argument of --host etc.
1262# FIXME: To remove some day.
1263build=$build_alias
1264host=$host_alias
1265target=$target_alias
1266
1267# FIXME: To remove some day.
1268if test "x$host_alias" != x; then
1269  if test "x$build_alias" = x; then
1270    cross_compiling=maybe
1271  elif test "x$build_alias" != "x$host_alias"; then
1272    cross_compiling=yes
1273  fi
1274fi
1275
1276ac_tool_prefix=
1277test -n "$host_alias" && ac_tool_prefix=$host_alias-
1278
1279test "$silent" = yes && exec 6>/dev/null
1280
1281
1282ac_pwd=`pwd` && test -n "$ac_pwd" &&
1283ac_ls_di=`ls -di .` &&
1284ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1285  as_fn_error $? "working directory cannot be determined"
1286test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1287  as_fn_error $? "pwd does not report name of working directory"
1288
1289
1290# Find the source files, if location was not specified.
1291if test -z "$srcdir"; then
1292  ac_srcdir_defaulted=yes
1293  # Try the directory containing this script, then the parent directory.
1294  ac_confdir=`$as_dirname -- "$as_myself" ||
1295$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1296	 X"$as_myself" : 'X\(//\)[^/]' \| \
1297	 X"$as_myself" : 'X\(//\)$' \| \
1298	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1299$as_echo X"$as_myself" |
1300    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1301	    s//\1/
1302	    q
1303	  }
1304	  /^X\(\/\/\)[^/].*/{
1305	    s//\1/
1306	    q
1307	  }
1308	  /^X\(\/\/\)$/{
1309	    s//\1/
1310	    q
1311	  }
1312	  /^X\(\/\).*/{
1313	    s//\1/
1314	    q
1315	  }
1316	  s/.*/./; q'`
1317  srcdir=$ac_confdir
1318  if test ! -r "$srcdir/$ac_unique_file"; then
1319    srcdir=..
1320  fi
1321else
1322  ac_srcdir_defaulted=no
1323fi
1324if test ! -r "$srcdir/$ac_unique_file"; then
1325  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1326  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1327fi
1328ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1329ac_abs_confdir=`(
1330	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1331	pwd)`
1332# When building in place, set srcdir=.
1333if test "$ac_abs_confdir" = "$ac_pwd"; then
1334  srcdir=.
1335fi
1336# Remove unnecessary trailing slashes from srcdir.
1337# Double slashes in file names in object file debugging info
1338# mess up M-x gdb in Emacs.
1339case $srcdir in
1340*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1341esac
1342for ac_var in $ac_precious_vars; do
1343  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1344  eval ac_env_${ac_var}_value=\$${ac_var}
1345  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1346  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1347done
1348
1349#
1350# Report the --help message.
1351#
1352if test "$ac_init_help" = "long"; then
1353  # Omit some internal or obsolete options to make the list less imposing.
1354  # This message is too long to be a string in the A/UX 3.1 sh.
1355  cat <<_ACEOF
1356\`configure' configures xf86-video-vesa 2.3.4 to adapt to many kinds of systems.
1357
1358Usage: $0 [OPTION]... [VAR=VALUE]...
1359
1360To assign environment variables (e.g., CC, CFLAGS...), specify them as
1361VAR=VALUE.  See below for descriptions of some of the useful variables.
1362
1363Defaults for the options are specified in brackets.
1364
1365Configuration:
1366  -h, --help              display this help and exit
1367      --help=short        display options specific to this package
1368      --help=recursive    display the short help of all the included packages
1369  -V, --version           display version information and exit
1370  -q, --quiet, --silent   do not print \`checking ...' messages
1371      --cache-file=FILE   cache test results in FILE [disabled]
1372  -C, --config-cache      alias for \`--cache-file=config.cache'
1373  -n, --no-create         do not create output files
1374      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1375
1376Installation directories:
1377  --prefix=PREFIX         install architecture-independent files in PREFIX
1378                          [$ac_default_prefix]
1379  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1380                          [PREFIX]
1381
1382By default, \`make install' will install all the files in
1383\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1384an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1385for instance \`--prefix=\$HOME'.
1386
1387For better control, use the options below.
1388
1389Fine tuning of the installation directories:
1390  --bindir=DIR            user executables [EPREFIX/bin]
1391  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1392  --libexecdir=DIR        program executables [EPREFIX/libexec]
1393  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1394  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1395  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1396  --libdir=DIR            object code libraries [EPREFIX/lib]
1397  --includedir=DIR        C header files [PREFIX/include]
1398  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1399  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1400  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1401  --infodir=DIR           info documentation [DATAROOTDIR/info]
1402  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1403  --mandir=DIR            man documentation [DATAROOTDIR/man]
1404  --docdir=DIR            documentation root [DATAROOTDIR/doc/xf86-video-vesa]
1405  --htmldir=DIR           html documentation [DOCDIR]
1406  --dvidir=DIR            dvi documentation [DOCDIR]
1407  --pdfdir=DIR            pdf documentation [DOCDIR]
1408  --psdir=DIR             ps documentation [DOCDIR]
1409_ACEOF
1410
1411  cat <<\_ACEOF
1412
1413Program names:
1414  --program-prefix=PREFIX            prepend PREFIX to installed program names
1415  --program-suffix=SUFFIX            append SUFFIX to installed program names
1416  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1417
1418System types:
1419  --build=BUILD     configure for building on BUILD [guessed]
1420  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1421_ACEOF
1422fi
1423
1424if test -n "$ac_init_help"; then
1425  case $ac_init_help in
1426     short | recursive ) echo "Configuration of xf86-video-vesa 2.3.4:";;
1427   esac
1428  cat <<\_ACEOF
1429
1430Optional Features:
1431  --disable-option-checking  ignore unrecognized --enable/--with options
1432  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1433  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1434  --enable-silent-rules   less verbose build output (undo: "make V=1")
1435  --disable-silent-rules  verbose build output (undo: "make V=0")
1436  --enable-dependency-tracking
1437                          do not reject slow dependency extractors
1438  --disable-dependency-tracking
1439                          speeds up one-time build
1440  --disable-selective-werror
1441                          Turn off selective compiler errors. (default:
1442                          enabled)
1443  --enable-strict-compilation
1444                          Enable all warnings from compiler and make them
1445                          errors (default: disabled)
1446  --enable-static[=PKGS]  build static libraries [default=no]
1447  --enable-shared[=PKGS]  build shared libraries [default=yes]
1448  --enable-fast-install[=PKGS]
1449                          optimize for fast installation [default=yes]
1450  --disable-libtool-lock  avoid locking (might break parallel builds)
1451
1452Optional Packages:
1453  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1454  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1455  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1456                          both]
1457  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1458  --with-sysroot=DIR Search for dependent libraries within DIR
1459                        (or the compiler's sysroot if not specified).
1460  --with-xorg-module-dir=DIR
1461
1462Some influential environment variables:
1463  CC          C compiler command
1464  CFLAGS      C compiler flags
1465  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1466              nonstandard directory <lib dir>
1467  LIBS        libraries to pass to the linker, e.g. -l<library>
1468  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1469              you have headers in a nonstandard directory <include dir>
1470  CPP         C preprocessor
1471  PKG_CONFIG  path to pkg-config utility
1472  PKG_CONFIG_PATH
1473              directories to add to pkg-config's search path
1474  PKG_CONFIG_LIBDIR
1475              path overriding pkg-config's built-in search path
1476  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1477  XORG_LIBS   linker flags for XORG, overriding pkg-config
1478  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1479  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1480  PCIACCESS_CFLAGS
1481              C compiler flags for PCIACCESS, overriding pkg-config
1482  PCIACCESS_LIBS
1483              linker flags for PCIACCESS, overriding pkg-config
1484
1485Use these variables to override the choices made by `configure' or to help
1486it to find libraries and programs with nonstandard names/locations.
1487
1488Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1489_ACEOF
1490ac_status=$?
1491fi
1492
1493if test "$ac_init_help" = "recursive"; then
1494  # If there are subdirs, report their specific --help.
1495  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1496    test -d "$ac_dir" ||
1497      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1498      continue
1499    ac_builddir=.
1500
1501case "$ac_dir" in
1502.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503*)
1504  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1505  # A ".." for each directory in $ac_dir_suffix.
1506  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1507  case $ac_top_builddir_sub in
1508  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1510  esac ;;
1511esac
1512ac_abs_top_builddir=$ac_pwd
1513ac_abs_builddir=$ac_pwd$ac_dir_suffix
1514# for backward compatibility:
1515ac_top_builddir=$ac_top_build_prefix
1516
1517case $srcdir in
1518  .)  # We are building in place.
1519    ac_srcdir=.
1520    ac_top_srcdir=$ac_top_builddir_sub
1521    ac_abs_top_srcdir=$ac_pwd ;;
1522  [\\/]* | ?:[\\/]* )  # Absolute name.
1523    ac_srcdir=$srcdir$ac_dir_suffix;
1524    ac_top_srcdir=$srcdir
1525    ac_abs_top_srcdir=$srcdir ;;
1526  *) # Relative name.
1527    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1528    ac_top_srcdir=$ac_top_build_prefix$srcdir
1529    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1530esac
1531ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1532
1533    cd "$ac_dir" || { ac_status=$?; continue; }
1534    # Check for guested configure.
1535    if test -f "$ac_srcdir/configure.gnu"; then
1536      echo &&
1537      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1538    elif test -f "$ac_srcdir/configure"; then
1539      echo &&
1540      $SHELL "$ac_srcdir/configure" --help=recursive
1541    else
1542      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1543    fi || ac_status=$?
1544    cd "$ac_pwd" || { ac_status=$?; break; }
1545  done
1546fi
1547
1548test -n "$ac_init_help" && exit $ac_status
1549if $ac_init_version; then
1550  cat <<\_ACEOF
1551xf86-video-vesa configure 2.3.4
1552generated by GNU Autoconf 2.69
1553
1554Copyright (C) 2012 Free Software Foundation, Inc.
1555This configure script is free software; the Free Software Foundation
1556gives unlimited permission to copy, distribute and modify it.
1557_ACEOF
1558  exit
1559fi
1560
1561## ------------------------ ##
1562## Autoconf initialization. ##
1563## ------------------------ ##
1564
1565# ac_fn_c_try_compile LINENO
1566# --------------------------
1567# Try to compile conftest.$ac_ext, and return whether this succeeded.
1568ac_fn_c_try_compile ()
1569{
1570  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571  rm -f conftest.$ac_objext
1572  if { { ac_try="$ac_compile"
1573case "(($ac_try" in
1574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1575  *) ac_try_echo=$ac_try;;
1576esac
1577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1578$as_echo "$ac_try_echo"; } >&5
1579  (eval "$ac_compile") 2>conftest.err
1580  ac_status=$?
1581  if test -s conftest.err; then
1582    grep -v '^ *+' conftest.err >conftest.er1
1583    cat conftest.er1 >&5
1584    mv -f conftest.er1 conftest.err
1585  fi
1586  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587  test $ac_status = 0; } && {
1588	 test -z "$ac_c_werror_flag" ||
1589	 test ! -s conftest.err
1590       } && test -s conftest.$ac_objext; then :
1591  ac_retval=0
1592else
1593  $as_echo "$as_me: failed program was:" >&5
1594sed 's/^/| /' conftest.$ac_ext >&5
1595
1596	ac_retval=1
1597fi
1598  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1599  as_fn_set_status $ac_retval
1600
1601} # ac_fn_c_try_compile
1602
1603# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1604# ---------------------------------------------
1605# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1606# accordingly.
1607ac_fn_c_check_decl ()
1608{
1609  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610  as_decl_name=`echo $2|sed 's/ *(.*//'`
1611  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1612  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1613$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1614if eval \${$3+:} false; then :
1615  $as_echo_n "(cached) " >&6
1616else
1617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1618/* end confdefs.h.  */
1619$4
1620int
1621main ()
1622{
1623#ifndef $as_decl_name
1624#ifdef __cplusplus
1625  (void) $as_decl_use;
1626#else
1627  (void) $as_decl_name;
1628#endif
1629#endif
1630
1631  ;
1632  return 0;
1633}
1634_ACEOF
1635if ac_fn_c_try_compile "$LINENO"; then :
1636  eval "$3=yes"
1637else
1638  eval "$3=no"
1639fi
1640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1641fi
1642eval ac_res=\$$3
1643	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1644$as_echo "$ac_res" >&6; }
1645  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646
1647} # ac_fn_c_check_decl
1648
1649# ac_fn_c_try_cpp LINENO
1650# ----------------------
1651# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1652ac_fn_c_try_cpp ()
1653{
1654  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655  if { { ac_try="$ac_cpp conftest.$ac_ext"
1656case "(($ac_try" in
1657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658  *) ac_try_echo=$ac_try;;
1659esac
1660eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661$as_echo "$ac_try_echo"; } >&5
1662  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1663  ac_status=$?
1664  if test -s conftest.err; then
1665    grep -v '^ *+' conftest.err >conftest.er1
1666    cat conftest.er1 >&5
1667    mv -f conftest.er1 conftest.err
1668  fi
1669  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670  test $ac_status = 0; } > conftest.i && {
1671	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1672	 test ! -s conftest.err
1673       }; then :
1674  ac_retval=0
1675else
1676  $as_echo "$as_me: failed program was:" >&5
1677sed 's/^/| /' conftest.$ac_ext >&5
1678
1679    ac_retval=1
1680fi
1681  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682  as_fn_set_status $ac_retval
1683
1684} # ac_fn_c_try_cpp
1685
1686# ac_fn_c_try_run LINENO
1687# ----------------------
1688# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1689# that executables *can* be run.
1690ac_fn_c_try_run ()
1691{
1692  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693  if { { ac_try="$ac_link"
1694case "(($ac_try" in
1695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696  *) ac_try_echo=$ac_try;;
1697esac
1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699$as_echo "$ac_try_echo"; } >&5
1700  (eval "$ac_link") 2>&5
1701  ac_status=$?
1702  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1704  { { case "(($ac_try" in
1705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706  *) ac_try_echo=$ac_try;;
1707esac
1708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709$as_echo "$ac_try_echo"; } >&5
1710  (eval "$ac_try") 2>&5
1711  ac_status=$?
1712  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713  test $ac_status = 0; }; }; then :
1714  ac_retval=0
1715else
1716  $as_echo "$as_me: program exited with status $ac_status" >&5
1717       $as_echo "$as_me: failed program was:" >&5
1718sed 's/^/| /' conftest.$ac_ext >&5
1719
1720       ac_retval=$ac_status
1721fi
1722  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1723  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724  as_fn_set_status $ac_retval
1725
1726} # ac_fn_c_try_run
1727
1728# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1729# -------------------------------------------------------
1730# Tests whether HEADER exists and can be compiled using the include files in
1731# INCLUDES, setting the cache variable VAR accordingly.
1732ac_fn_c_check_header_compile ()
1733{
1734  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736$as_echo_n "checking for $2... " >&6; }
1737if eval \${$3+:} false; then :
1738  $as_echo_n "(cached) " >&6
1739else
1740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741/* end confdefs.h.  */
1742$4
1743#include <$2>
1744_ACEOF
1745if ac_fn_c_try_compile "$LINENO"; then :
1746  eval "$3=yes"
1747else
1748  eval "$3=no"
1749fi
1750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1751fi
1752eval ac_res=\$$3
1753	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1754$as_echo "$ac_res" >&6; }
1755  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756
1757} # ac_fn_c_check_header_compile
1758
1759# ac_fn_c_try_link LINENO
1760# -----------------------
1761# Try to link conftest.$ac_ext, and return whether this succeeded.
1762ac_fn_c_try_link ()
1763{
1764  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765  rm -f conftest.$ac_objext conftest$ac_exeext
1766  if { { ac_try="$ac_link"
1767case "(($ac_try" in
1768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769  *) ac_try_echo=$ac_try;;
1770esac
1771eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772$as_echo "$ac_try_echo"; } >&5
1773  (eval "$ac_link") 2>conftest.err
1774  ac_status=$?
1775  if test -s conftest.err; then
1776    grep -v '^ *+' conftest.err >conftest.er1
1777    cat conftest.er1 >&5
1778    mv -f conftest.er1 conftest.err
1779  fi
1780  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781  test $ac_status = 0; } && {
1782	 test -z "$ac_c_werror_flag" ||
1783	 test ! -s conftest.err
1784       } && test -s conftest$ac_exeext && {
1785	 test "$cross_compiling" = yes ||
1786	 test -x conftest$ac_exeext
1787       }; then :
1788  ac_retval=0
1789else
1790  $as_echo "$as_me: failed program was:" >&5
1791sed 's/^/| /' conftest.$ac_ext >&5
1792
1793	ac_retval=1
1794fi
1795  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1796  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1797  # interfere with the next link command; also delete a directory that is
1798  # left behind by Apple's compiler.  We do this before executing the actions.
1799  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1800  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801  as_fn_set_status $ac_retval
1802
1803} # ac_fn_c_try_link
1804
1805# ac_fn_c_check_func LINENO FUNC VAR
1806# ----------------------------------
1807# Tests whether FUNC exists, setting the cache variable VAR accordingly
1808ac_fn_c_check_func ()
1809{
1810  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812$as_echo_n "checking for $2... " >&6; }
1813if eval \${$3+:} false; then :
1814  $as_echo_n "(cached) " >&6
1815else
1816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817/* end confdefs.h.  */
1818/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1819   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1820#define $2 innocuous_$2
1821
1822/* System header to define __stub macros and hopefully few prototypes,
1823    which can conflict with char $2 (); below.
1824    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1825    <limits.h> exists even on freestanding compilers.  */
1826
1827#ifdef __STDC__
1828# include <limits.h>
1829#else
1830# include <assert.h>
1831#endif
1832
1833#undef $2
1834
1835/* Override any GCC internal prototype to avoid an error.
1836   Use char because int might match the return type of a GCC
1837   builtin and then its argument prototype would still apply.  */
1838#ifdef __cplusplus
1839extern "C"
1840#endif
1841char $2 ();
1842/* The GNU C library defines this for functions which it implements
1843    to always fail with ENOSYS.  Some functions are actually named
1844    something starting with __ and the normal name is an alias.  */
1845#if defined __stub_$2 || defined __stub___$2
1846choke me
1847#endif
1848
1849int
1850main ()
1851{
1852return $2 ();
1853  ;
1854  return 0;
1855}
1856_ACEOF
1857if ac_fn_c_try_link "$LINENO"; then :
1858  eval "$3=yes"
1859else
1860  eval "$3=no"
1861fi
1862rm -f core conftest.err conftest.$ac_objext \
1863    conftest$ac_exeext conftest.$ac_ext
1864fi
1865eval ac_res=\$$3
1866	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867$as_echo "$ac_res" >&6; }
1868  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869
1870} # ac_fn_c_check_func
1871cat >config.log <<_ACEOF
1872This file contains any messages produced by compilers while
1873running configure, to aid debugging if configure makes a mistake.
1874
1875It was created by xf86-video-vesa $as_me 2.3.4, which was
1876generated by GNU Autoconf 2.69.  Invocation command line was
1877
1878  $ $0 $@
1879
1880_ACEOF
1881exec 5>>config.log
1882{
1883cat <<_ASUNAME
1884## --------- ##
1885## Platform. ##
1886## --------- ##
1887
1888hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1889uname -m = `(uname -m) 2>/dev/null || echo unknown`
1890uname -r = `(uname -r) 2>/dev/null || echo unknown`
1891uname -s = `(uname -s) 2>/dev/null || echo unknown`
1892uname -v = `(uname -v) 2>/dev/null || echo unknown`
1893
1894/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1895/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1896
1897/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1898/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1899/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1900/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1901/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1902/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1903/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1904
1905_ASUNAME
1906
1907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908for as_dir in $PATH
1909do
1910  IFS=$as_save_IFS
1911  test -z "$as_dir" && as_dir=.
1912    $as_echo "PATH: $as_dir"
1913  done
1914IFS=$as_save_IFS
1915
1916} >&5
1917
1918cat >&5 <<_ACEOF
1919
1920
1921## ----------- ##
1922## Core tests. ##
1923## ----------- ##
1924
1925_ACEOF
1926
1927
1928# Keep a trace of the command line.
1929# Strip out --no-create and --no-recursion so they do not pile up.
1930# Strip out --silent because we don't want to record it for future runs.
1931# Also quote any args containing shell meta-characters.
1932# Make two passes to allow for proper duplicate-argument suppression.
1933ac_configure_args=
1934ac_configure_args0=
1935ac_configure_args1=
1936ac_must_keep_next=false
1937for ac_pass in 1 2
1938do
1939  for ac_arg
1940  do
1941    case $ac_arg in
1942    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1943    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1944    | -silent | --silent | --silen | --sile | --sil)
1945      continue ;;
1946    *\'*)
1947      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1948    esac
1949    case $ac_pass in
1950    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1951    2)
1952      as_fn_append ac_configure_args1 " '$ac_arg'"
1953      if test $ac_must_keep_next = true; then
1954	ac_must_keep_next=false # Got value, back to normal.
1955      else
1956	case $ac_arg in
1957	  *=* | --config-cache | -C | -disable-* | --disable-* \
1958	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1959	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1960	  | -with-* | --with-* | -without-* | --without-* | --x)
1961	    case "$ac_configure_args0 " in
1962	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1963	    esac
1964	    ;;
1965	  -* ) ac_must_keep_next=true ;;
1966	esac
1967      fi
1968      as_fn_append ac_configure_args " '$ac_arg'"
1969      ;;
1970    esac
1971  done
1972done
1973{ ac_configure_args0=; unset ac_configure_args0;}
1974{ ac_configure_args1=; unset ac_configure_args1;}
1975
1976# When interrupted or exit'd, cleanup temporary files, and complete
1977# config.log.  We remove comments because anyway the quotes in there
1978# would cause problems or look ugly.
1979# WARNING: Use '\'' to represent an apostrophe within the trap.
1980# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1981trap 'exit_status=$?
1982  # Save into config.log some information that might help in debugging.
1983  {
1984    echo
1985
1986    $as_echo "## ---------------- ##
1987## Cache variables. ##
1988## ---------------- ##"
1989    echo
1990    # The following way of writing the cache mishandles newlines in values,
1991(
1992  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1993    eval ac_val=\$$ac_var
1994    case $ac_val in #(
1995    *${as_nl}*)
1996      case $ac_var in #(
1997      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1998$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1999      esac
2000      case $ac_var in #(
2001      _ | IFS | as_nl) ;; #(
2002      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2003      *) { eval $ac_var=; unset $ac_var;} ;;
2004      esac ;;
2005    esac
2006  done
2007  (set) 2>&1 |
2008    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2009    *${as_nl}ac_space=\ *)
2010      sed -n \
2011	"s/'\''/'\''\\\\'\'''\''/g;
2012	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2013      ;; #(
2014    *)
2015      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2016      ;;
2017    esac |
2018    sort
2019)
2020    echo
2021
2022    $as_echo "## ----------------- ##
2023## Output variables. ##
2024## ----------------- ##"
2025    echo
2026    for ac_var in $ac_subst_vars
2027    do
2028      eval ac_val=\$$ac_var
2029      case $ac_val in
2030      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2031      esac
2032      $as_echo "$ac_var='\''$ac_val'\''"
2033    done | sort
2034    echo
2035
2036    if test -n "$ac_subst_files"; then
2037      $as_echo "## ------------------- ##
2038## File substitutions. ##
2039## ------------------- ##"
2040      echo
2041      for ac_var in $ac_subst_files
2042      do
2043	eval ac_val=\$$ac_var
2044	case $ac_val in
2045	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2046	esac
2047	$as_echo "$ac_var='\''$ac_val'\''"
2048      done | sort
2049      echo
2050    fi
2051
2052    if test -s confdefs.h; then
2053      $as_echo "## ----------- ##
2054## confdefs.h. ##
2055## ----------- ##"
2056      echo
2057      cat confdefs.h
2058      echo
2059    fi
2060    test "$ac_signal" != 0 &&
2061      $as_echo "$as_me: caught signal $ac_signal"
2062    $as_echo "$as_me: exit $exit_status"
2063  } >&5
2064  rm -f core *.core core.conftest.* &&
2065    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2066    exit $exit_status
2067' 0
2068for ac_signal in 1 2 13 15; do
2069  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2070done
2071ac_signal=0
2072
2073# confdefs.h avoids OS command line length limits that DEFS can exceed.
2074rm -f -r conftest* confdefs.h
2075
2076$as_echo "/* confdefs.h */" > confdefs.h
2077
2078# Predefined preprocessor variables.
2079
2080cat >>confdefs.h <<_ACEOF
2081#define PACKAGE_NAME "$PACKAGE_NAME"
2082_ACEOF
2083
2084cat >>confdefs.h <<_ACEOF
2085#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2086_ACEOF
2087
2088cat >>confdefs.h <<_ACEOF
2089#define PACKAGE_VERSION "$PACKAGE_VERSION"
2090_ACEOF
2091
2092cat >>confdefs.h <<_ACEOF
2093#define PACKAGE_STRING "$PACKAGE_STRING"
2094_ACEOF
2095
2096cat >>confdefs.h <<_ACEOF
2097#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2098_ACEOF
2099
2100cat >>confdefs.h <<_ACEOF
2101#define PACKAGE_URL "$PACKAGE_URL"
2102_ACEOF
2103
2104
2105# Let the site file select an alternate cache file if it wants to.
2106# Prefer an explicitly selected file to automatically selected ones.
2107ac_site_file1=NONE
2108ac_site_file2=NONE
2109if test -n "$CONFIG_SITE"; then
2110  # We do not want a PATH search for config.site.
2111  case $CONFIG_SITE in #((
2112    -*)  ac_site_file1=./$CONFIG_SITE;;
2113    */*) ac_site_file1=$CONFIG_SITE;;
2114    *)   ac_site_file1=./$CONFIG_SITE;;
2115  esac
2116elif test "x$prefix" != xNONE; then
2117  ac_site_file1=$prefix/share/config.site
2118  ac_site_file2=$prefix/etc/config.site
2119else
2120  ac_site_file1=$ac_default_prefix/share/config.site
2121  ac_site_file2=$ac_default_prefix/etc/config.site
2122fi
2123for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2124do
2125  test "x$ac_site_file" = xNONE && continue
2126  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2127    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2128$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2129    sed 's/^/| /' "$ac_site_file" >&5
2130    . "$ac_site_file" \
2131      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2132$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2133as_fn_error $? "failed to load site script $ac_site_file
2134See \`config.log' for more details" "$LINENO" 5; }
2135  fi
2136done
2137
2138if test -r "$cache_file"; then
2139  # Some versions of bash will fail to source /dev/null (special files
2140  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2141  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2142    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2143$as_echo "$as_me: loading cache $cache_file" >&6;}
2144    case $cache_file in
2145      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2146      *)                      . "./$cache_file";;
2147    esac
2148  fi
2149else
2150  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2151$as_echo "$as_me: creating cache $cache_file" >&6;}
2152  >$cache_file
2153fi
2154
2155# Check that the precious variables saved in the cache have kept the same
2156# value.
2157ac_cache_corrupted=false
2158for ac_var in $ac_precious_vars; do
2159  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2160  eval ac_new_set=\$ac_env_${ac_var}_set
2161  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2162  eval ac_new_val=\$ac_env_${ac_var}_value
2163  case $ac_old_set,$ac_new_set in
2164    set,)
2165      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2166$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2167      ac_cache_corrupted=: ;;
2168    ,set)
2169      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2170$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2171      ac_cache_corrupted=: ;;
2172    ,);;
2173    *)
2174      if test "x$ac_old_val" != "x$ac_new_val"; then
2175	# differences in whitespace do not lead to failure.
2176	ac_old_val_w=`echo x $ac_old_val`
2177	ac_new_val_w=`echo x $ac_new_val`
2178	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2179	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2180$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2181	  ac_cache_corrupted=:
2182	else
2183	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2184$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2185	  eval $ac_var=\$ac_old_val
2186	fi
2187	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2188$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2189	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2190$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2191      fi;;
2192  esac
2193  # Pass precious variables to config.status.
2194  if test "$ac_new_set" = set; then
2195    case $ac_new_val in
2196    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2197    *) ac_arg=$ac_var=$ac_new_val ;;
2198    esac
2199    case " $ac_configure_args " in
2200      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2201      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2202    esac
2203  fi
2204done
2205if $ac_cache_corrupted; then
2206  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2207$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2208  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2209$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2210  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2211fi
2212## -------------------- ##
2213## Main body of script. ##
2214## -------------------- ##
2215
2216ac_ext=c
2217ac_cpp='$CPP $CPPFLAGS'
2218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2220ac_compiler_gnu=$ac_cv_c_compiler_gnu
2221
2222
2223
2224ac_config_headers="$ac_config_headers config.h"
2225
2226ac_aux_dir=
2227for ac_dir in . "$srcdir"/.; do
2228  if test -f "$ac_dir/install-sh"; then
2229    ac_aux_dir=$ac_dir
2230    ac_install_sh="$ac_aux_dir/install-sh -c"
2231    break
2232  elif test -f "$ac_dir/install.sh"; then
2233    ac_aux_dir=$ac_dir
2234    ac_install_sh="$ac_aux_dir/install.sh -c"
2235    break
2236  elif test -f "$ac_dir/shtool"; then
2237    ac_aux_dir=$ac_dir
2238    ac_install_sh="$ac_aux_dir/shtool install -c"
2239    break
2240  fi
2241done
2242if test -z "$ac_aux_dir"; then
2243  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2244fi
2245
2246# These three variables are undocumented and unsupported,
2247# and are intended to be withdrawn in a future Autoconf release.
2248# They can cause serious problems if a builder's source tree is in a directory
2249# whose full name contains unusual characters.
2250ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2251ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2252ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2253
2254
2255
2256# Initialize Automake
2257am__api_version='1.15'
2258
2259# Find a good install program.  We prefer a C program (faster),
2260# so one script is as good as another.  But avoid the broken or
2261# incompatible versions:
2262# SysV /etc/install, /usr/sbin/install
2263# SunOS /usr/etc/install
2264# IRIX /sbin/install
2265# AIX /bin/install
2266# AmigaOS /C/install, which installs bootblocks on floppy discs
2267# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2268# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2269# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2270# OS/2's system install, which has a completely different semantic
2271# ./install, which can be erroneously created by make from ./install.sh.
2272# Reject install programs that cannot install multiple files.
2273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2274$as_echo_n "checking for a BSD-compatible install... " >&6; }
2275if test -z "$INSTALL"; then
2276if ${ac_cv_path_install+:} false; then :
2277  $as_echo_n "(cached) " >&6
2278else
2279  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280for as_dir in $PATH
2281do
2282  IFS=$as_save_IFS
2283  test -z "$as_dir" && as_dir=.
2284    # Account for people who put trailing slashes in PATH elements.
2285case $as_dir/ in #((
2286  ./ | .// | /[cC]/* | \
2287  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2288  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2289  /usr/ucb/* ) ;;
2290  *)
2291    # OSF1 and SCO ODT 3.0 have their own names for install.
2292    # Don't use installbsd from OSF since it installs stuff as root
2293    # by default.
2294    for ac_prog in ginstall scoinst install; do
2295      for ac_exec_ext in '' $ac_executable_extensions; do
2296	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2297	  if test $ac_prog = install &&
2298	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2299	    # AIX install.  It has an incompatible calling convention.
2300	    :
2301	  elif test $ac_prog = install &&
2302	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2303	    # program-specific install script used by HP pwplus--don't use.
2304	    :
2305	  else
2306	    rm -rf conftest.one conftest.two conftest.dir
2307	    echo one > conftest.one
2308	    echo two > conftest.two
2309	    mkdir conftest.dir
2310	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2311	      test -s conftest.one && test -s conftest.two &&
2312	      test -s conftest.dir/conftest.one &&
2313	      test -s conftest.dir/conftest.two
2314	    then
2315	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2316	      break 3
2317	    fi
2318	  fi
2319	fi
2320      done
2321    done
2322    ;;
2323esac
2324
2325  done
2326IFS=$as_save_IFS
2327
2328rm -rf conftest.one conftest.two conftest.dir
2329
2330fi
2331  if test "${ac_cv_path_install+set}" = set; then
2332    INSTALL=$ac_cv_path_install
2333  else
2334    # As a last resort, use the slow shell script.  Don't cache a
2335    # value for INSTALL within a source directory, because that will
2336    # break other packages using the cache if that directory is
2337    # removed, or if the value is a relative name.
2338    INSTALL=$ac_install_sh
2339  fi
2340fi
2341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2342$as_echo "$INSTALL" >&6; }
2343
2344# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2345# It thinks the first close brace ends the variable substitution.
2346test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2347
2348test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2349
2350test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2351
2352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2353$as_echo_n "checking whether build environment is sane... " >&6; }
2354# Reject unsafe characters in $srcdir or the absolute working directory
2355# name.  Accept space and tab only in the latter.
2356am_lf='
2357'
2358case `pwd` in
2359  *[\\\"\#\$\&\'\`$am_lf]*)
2360    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2361esac
2362case $srcdir in
2363  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2364    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2365esac
2366
2367# Do 'set' in a subshell so we don't clobber the current shell's
2368# arguments.  Must try -L first in case configure is actually a
2369# symlink; some systems play weird games with the mod time of symlinks
2370# (eg FreeBSD returns the mod time of the symlink's containing
2371# directory).
2372if (
2373   am_has_slept=no
2374   for am_try in 1 2; do
2375     echo "timestamp, slept: $am_has_slept" > conftest.file
2376     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2377     if test "$*" = "X"; then
2378	# -L didn't work.
2379	set X `ls -t "$srcdir/configure" conftest.file`
2380     fi
2381     if test "$*" != "X $srcdir/configure conftest.file" \
2382	&& test "$*" != "X conftest.file $srcdir/configure"; then
2383
2384	# If neither matched, then we have a broken ls.  This can happen
2385	# if, for instance, CONFIG_SHELL is bash and it inherits a
2386	# broken ls alias from the environment.  This has actually
2387	# happened.  Such a system could not be considered "sane".
2388	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2389  alias in your environment" "$LINENO" 5
2390     fi
2391     if test "$2" = conftest.file || test $am_try -eq 2; then
2392       break
2393     fi
2394     # Just in case.
2395     sleep 1
2396     am_has_slept=yes
2397   done
2398   test "$2" = conftest.file
2399   )
2400then
2401   # Ok.
2402   :
2403else
2404   as_fn_error $? "newly created file is older than distributed files!
2405Check your system clock" "$LINENO" 5
2406fi
2407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2408$as_echo "yes" >&6; }
2409# If we didn't sleep, we still need to ensure time stamps of config.status and
2410# generated files are strictly newer.
2411am_sleep_pid=
2412if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2413  ( sleep 1 ) &
2414  am_sleep_pid=$!
2415fi
2416
2417rm -f conftest.file
2418
2419test "$program_prefix" != NONE &&
2420  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2421# Use a double $ so make ignores it.
2422test "$program_suffix" != NONE &&
2423  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2424# Double any \ or $.
2425# By default was `s,x,x', remove it if useless.
2426ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2427program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2428
2429# Expand $ac_aux_dir to an absolute path.
2430am_aux_dir=`cd "$ac_aux_dir" && pwd`
2431
2432if test x"${MISSING+set}" != xset; then
2433  case $am_aux_dir in
2434  *\ * | *\	*)
2435    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2436  *)
2437    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2438  esac
2439fi
2440# Use eval to expand $SHELL
2441if eval "$MISSING --is-lightweight"; then
2442  am_missing_run="$MISSING "
2443else
2444  am_missing_run=
2445  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2446$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2447fi
2448
2449if test x"${install_sh+set}" != xset; then
2450  case $am_aux_dir in
2451  *\ * | *\	*)
2452    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2453  *)
2454    install_sh="\${SHELL} $am_aux_dir/install-sh"
2455  esac
2456fi
2457
2458# Installed binaries are usually stripped using 'strip' when the user
2459# run "make install-strip".  However 'strip' might not be the right
2460# tool to use in cross-compilation environments, therefore Automake
2461# will honor the 'STRIP' environment variable to overrule this program.
2462if test "$cross_compiling" != no; then
2463  if test -n "$ac_tool_prefix"; then
2464  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2465set dummy ${ac_tool_prefix}strip; ac_word=$2
2466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2467$as_echo_n "checking for $ac_word... " >&6; }
2468if ${ac_cv_prog_STRIP+:} false; then :
2469  $as_echo_n "(cached) " >&6
2470else
2471  if test -n "$STRIP"; then
2472  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2473else
2474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475for as_dir in $PATH
2476do
2477  IFS=$as_save_IFS
2478  test -z "$as_dir" && as_dir=.
2479    for ac_exec_ext in '' $ac_executable_extensions; do
2480  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2481    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2482    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2483    break 2
2484  fi
2485done
2486  done
2487IFS=$as_save_IFS
2488
2489fi
2490fi
2491STRIP=$ac_cv_prog_STRIP
2492if test -n "$STRIP"; then
2493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2494$as_echo "$STRIP" >&6; }
2495else
2496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2497$as_echo "no" >&6; }
2498fi
2499
2500
2501fi
2502if test -z "$ac_cv_prog_STRIP"; then
2503  ac_ct_STRIP=$STRIP
2504  # Extract the first word of "strip", so it can be a program name with args.
2505set dummy strip; ac_word=$2
2506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2507$as_echo_n "checking for $ac_word... " >&6; }
2508if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2509  $as_echo_n "(cached) " >&6
2510else
2511  if test -n "$ac_ct_STRIP"; then
2512  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2513else
2514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515for as_dir in $PATH
2516do
2517  IFS=$as_save_IFS
2518  test -z "$as_dir" && as_dir=.
2519    for ac_exec_ext in '' $ac_executable_extensions; do
2520  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2521    ac_cv_prog_ac_ct_STRIP="strip"
2522    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2523    break 2
2524  fi
2525done
2526  done
2527IFS=$as_save_IFS
2528
2529fi
2530fi
2531ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2532if test -n "$ac_ct_STRIP"; then
2533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2534$as_echo "$ac_ct_STRIP" >&6; }
2535else
2536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2537$as_echo "no" >&6; }
2538fi
2539
2540  if test "x$ac_ct_STRIP" = x; then
2541    STRIP=":"
2542  else
2543    case $cross_compiling:$ac_tool_warned in
2544yes:)
2545{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2546$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2547ac_tool_warned=yes ;;
2548esac
2549    STRIP=$ac_ct_STRIP
2550  fi
2551else
2552  STRIP="$ac_cv_prog_STRIP"
2553fi
2554
2555fi
2556INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2557
2558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2559$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2560if test -z "$MKDIR_P"; then
2561  if ${ac_cv_path_mkdir+:} false; then :
2562  $as_echo_n "(cached) " >&6
2563else
2564  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2566do
2567  IFS=$as_save_IFS
2568  test -z "$as_dir" && as_dir=.
2569    for ac_prog in mkdir gmkdir; do
2570	 for ac_exec_ext in '' $ac_executable_extensions; do
2571	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2572	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2573	     'mkdir (GNU coreutils) '* | \
2574	     'mkdir (coreutils) '* | \
2575	     'mkdir (fileutils) '4.1*)
2576	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2577	       break 3;;
2578	   esac
2579	 done
2580       done
2581  done
2582IFS=$as_save_IFS
2583
2584fi
2585
2586  test -d ./--version && rmdir ./--version
2587  if test "${ac_cv_path_mkdir+set}" = set; then
2588    MKDIR_P="$ac_cv_path_mkdir -p"
2589  else
2590    # As a last resort, use the slow shell script.  Don't cache a
2591    # value for MKDIR_P within a source directory, because that will
2592    # break other packages using the cache if that directory is
2593    # removed, or if the value is a relative name.
2594    MKDIR_P="$ac_install_sh -d"
2595  fi
2596fi
2597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2598$as_echo "$MKDIR_P" >&6; }
2599
2600for ac_prog in gawk mawk nawk awk
2601do
2602  # Extract the first word of "$ac_prog", so it can be a program name with args.
2603set dummy $ac_prog; ac_word=$2
2604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2605$as_echo_n "checking for $ac_word... " >&6; }
2606if ${ac_cv_prog_AWK+:} false; then :
2607  $as_echo_n "(cached) " >&6
2608else
2609  if test -n "$AWK"; then
2610  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2611else
2612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613for as_dir in $PATH
2614do
2615  IFS=$as_save_IFS
2616  test -z "$as_dir" && as_dir=.
2617    for ac_exec_ext in '' $ac_executable_extensions; do
2618  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2619    ac_cv_prog_AWK="$ac_prog"
2620    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2621    break 2
2622  fi
2623done
2624  done
2625IFS=$as_save_IFS
2626
2627fi
2628fi
2629AWK=$ac_cv_prog_AWK
2630if test -n "$AWK"; then
2631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2632$as_echo "$AWK" >&6; }
2633else
2634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2635$as_echo "no" >&6; }
2636fi
2637
2638
2639  test -n "$AWK" && break
2640done
2641
2642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2643$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2644set x ${MAKE-make}
2645ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2646if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2647  $as_echo_n "(cached) " >&6
2648else
2649  cat >conftest.make <<\_ACEOF
2650SHELL = /bin/sh
2651all:
2652	@echo '@@@%%%=$(MAKE)=@@@%%%'
2653_ACEOF
2654# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2655case `${MAKE-make} -f conftest.make 2>/dev/null` in
2656  *@@@%%%=?*=@@@%%%*)
2657    eval ac_cv_prog_make_${ac_make}_set=yes;;
2658  *)
2659    eval ac_cv_prog_make_${ac_make}_set=no;;
2660esac
2661rm -f conftest.make
2662fi
2663if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2665$as_echo "yes" >&6; }
2666  SET_MAKE=
2667else
2668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669$as_echo "no" >&6; }
2670  SET_MAKE="MAKE=${MAKE-make}"
2671fi
2672
2673rm -rf .tst 2>/dev/null
2674mkdir .tst 2>/dev/null
2675if test -d .tst; then
2676  am__leading_dot=.
2677else
2678  am__leading_dot=_
2679fi
2680rmdir .tst 2>/dev/null
2681
2682# Check whether --enable-silent-rules was given.
2683if test "${enable_silent_rules+set}" = set; then :
2684  enableval=$enable_silent_rules;
2685fi
2686
2687case $enable_silent_rules in # (((
2688  yes) AM_DEFAULT_VERBOSITY=0;;
2689   no) AM_DEFAULT_VERBOSITY=1;;
2690    *) AM_DEFAULT_VERBOSITY=1;;
2691esac
2692am_make=${MAKE-make}
2693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2694$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2695if ${am_cv_make_support_nested_variables+:} false; then :
2696  $as_echo_n "(cached) " >&6
2697else
2698  if $as_echo 'TRUE=$(BAR$(V))
2699BAR0=false
2700BAR1=true
2701V=1
2702am__doit:
2703	@$(TRUE)
2704.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2705  am_cv_make_support_nested_variables=yes
2706else
2707  am_cv_make_support_nested_variables=no
2708fi
2709fi
2710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2711$as_echo "$am_cv_make_support_nested_variables" >&6; }
2712if test $am_cv_make_support_nested_variables = yes; then
2713    AM_V='$(V)'
2714  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2715else
2716  AM_V=$AM_DEFAULT_VERBOSITY
2717  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2718fi
2719AM_BACKSLASH='\'
2720
2721if test "`cd $srcdir && pwd`" != "`pwd`"; then
2722  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2723  # is not polluted with repeated "-I."
2724  am__isrc=' -I$(srcdir)'
2725  # test to see if srcdir already configured
2726  if test -f $srcdir/config.status; then
2727    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2728  fi
2729fi
2730
2731# test whether we have cygpath
2732if test -z "$CYGPATH_W"; then
2733  if (cygpath --version) >/dev/null 2>/dev/null; then
2734    CYGPATH_W='cygpath -w'
2735  else
2736    CYGPATH_W=echo
2737  fi
2738fi
2739
2740
2741# Define the identity of the package.
2742 PACKAGE='xf86-video-vesa'
2743 VERSION='2.3.4'
2744
2745
2746cat >>confdefs.h <<_ACEOF
2747#define PACKAGE "$PACKAGE"
2748_ACEOF
2749
2750
2751cat >>confdefs.h <<_ACEOF
2752#define VERSION "$VERSION"
2753_ACEOF
2754
2755# Some tools Automake needs.
2756
2757ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2758
2759
2760AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2761
2762
2763AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2764
2765
2766AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2767
2768
2769MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2770
2771# For better backward compatibility.  To be removed once Automake 1.9.x
2772# dies out for good.  For more background, see:
2773# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2774# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2775mkdir_p='$(MKDIR_P)'
2776
2777# We need awk for the "check" target (and possibly the TAP driver).  The
2778# system "awk" is bad on some platforms.
2779# Always define AMTAR for backward compatibility.  Yes, it's still used
2780# in the wild :-(  We should find a proper way to deprecate it ...
2781AMTAR='$${TAR-tar}'
2782
2783
2784# We'll loop over all known methods to create a tar archive until one works.
2785_am_tools='gnutar  pax cpio none'
2786
2787am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2788
2789
2790
2791
2792
2793
2794# POSIX will say in a future version that running "rm -f" with no argument
2795# is OK; and we want to be able to make that assumption in our Makefile
2796# recipes.  So use an aggressive probe to check that the usage we want is
2797# actually supported "in the wild" to an acceptable degree.
2798# See automake bug#10828.
2799# To make any issue more visible, cause the running configure to be aborted
2800# by default if the 'rm' program in use doesn't match our expectations; the
2801# user can still override this though.
2802if rm -f && rm -fr && rm -rf; then : OK; else
2803  cat >&2 <<'END'
2804Oops!
2805
2806Your 'rm' program seems unable to run without file operands specified
2807on the command line, even when the '-f' option is present.  This is contrary
2808to the behaviour of most rm programs out there, and not conforming with
2809the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2810
2811Please tell bug-automake@gnu.org about your system, including the value
2812of your $PATH and any error possibly output before this message.  This
2813can help us improve future automake versions.
2814
2815END
2816  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2817    echo 'Configuration will proceed anyway, since you have set the' >&2
2818    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2819    echo >&2
2820  else
2821    cat >&2 <<'END'
2822Aborting the configuration process, to ensure you take notice of the issue.
2823
2824You can download and install GNU coreutils to get an 'rm' implementation
2825that behaves properly: <http://www.gnu.org/software/coreutils/>.
2826
2827If you want to complete the configuration process using your problematic
2828'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2829to "yes", and re-run configure.
2830
2831END
2832    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2833  fi
2834fi
2835
2836
2837# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849DEPDIR="${am__leading_dot}deps"
2850
2851ac_config_commands="$ac_config_commands depfiles"
2852
2853
2854am_make=${MAKE-make}
2855cat > confinc << 'END'
2856am__doit:
2857	@echo this is the am__doit target
2858.PHONY: am__doit
2859END
2860# If we don't find an include directive, just comment out the code.
2861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2862$as_echo_n "checking for style of include used by $am_make... " >&6; }
2863am__include="#"
2864am__quote=
2865_am_result=none
2866# First try GNU make style include.
2867echo "include confinc" > confmf
2868# Ignore all kinds of additional output from 'make'.
2869case `$am_make -s -f confmf 2> /dev/null` in #(
2870*the\ am__doit\ target*)
2871  am__include=include
2872  am__quote=
2873  _am_result=GNU
2874  ;;
2875esac
2876# Now try BSD make style include.
2877if test "$am__include" = "#"; then
2878   echo '.include "confinc"' > confmf
2879   case `$am_make -s -f confmf 2> /dev/null` in #(
2880   *the\ am__doit\ target*)
2881     am__include=.include
2882     am__quote="\""
2883     _am_result=BSD
2884     ;;
2885   esac
2886fi
2887
2888
2889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2890$as_echo "$_am_result" >&6; }
2891rm -f confinc confmf
2892
2893# Check whether --enable-dependency-tracking was given.
2894if test "${enable_dependency_tracking+set}" = set; then :
2895  enableval=$enable_dependency_tracking;
2896fi
2897
2898if test "x$enable_dependency_tracking" != xno; then
2899  am_depcomp="$ac_aux_dir/depcomp"
2900  AMDEPBACKSLASH='\'
2901  am__nodep='_no'
2902fi
2903 if test "x$enable_dependency_tracking" != xno; then
2904  AMDEP_TRUE=
2905  AMDEP_FALSE='#'
2906else
2907  AMDEP_TRUE='#'
2908  AMDEP_FALSE=
2909fi
2910
2911
2912ac_ext=c
2913ac_cpp='$CPP $CPPFLAGS'
2914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2916ac_compiler_gnu=$ac_cv_c_compiler_gnu
2917if test -n "$ac_tool_prefix"; then
2918  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2919set dummy ${ac_tool_prefix}gcc; ac_word=$2
2920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2921$as_echo_n "checking for $ac_word... " >&6; }
2922if ${ac_cv_prog_CC+:} false; then :
2923  $as_echo_n "(cached) " >&6
2924else
2925  if test -n "$CC"; then
2926  ac_cv_prog_CC="$CC" # Let the user override the test.
2927else
2928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929for as_dir in $PATH
2930do
2931  IFS=$as_save_IFS
2932  test -z "$as_dir" && as_dir=.
2933    for ac_exec_ext in '' $ac_executable_extensions; do
2934  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2935    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2936    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2937    break 2
2938  fi
2939done
2940  done
2941IFS=$as_save_IFS
2942
2943fi
2944fi
2945CC=$ac_cv_prog_CC
2946if test -n "$CC"; then
2947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2948$as_echo "$CC" >&6; }
2949else
2950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951$as_echo "no" >&6; }
2952fi
2953
2954
2955fi
2956if test -z "$ac_cv_prog_CC"; then
2957  ac_ct_CC=$CC
2958  # Extract the first word of "gcc", so it can be a program name with args.
2959set dummy gcc; ac_word=$2
2960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961$as_echo_n "checking for $ac_word... " >&6; }
2962if ${ac_cv_prog_ac_ct_CC+:} false; then :
2963  $as_echo_n "(cached) " >&6
2964else
2965  if test -n "$ac_ct_CC"; then
2966  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2967else
2968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969for as_dir in $PATH
2970do
2971  IFS=$as_save_IFS
2972  test -z "$as_dir" && as_dir=.
2973    for ac_exec_ext in '' $ac_executable_extensions; do
2974  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2975    ac_cv_prog_ac_ct_CC="gcc"
2976    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2977    break 2
2978  fi
2979done
2980  done
2981IFS=$as_save_IFS
2982
2983fi
2984fi
2985ac_ct_CC=$ac_cv_prog_ac_ct_CC
2986if test -n "$ac_ct_CC"; then
2987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2988$as_echo "$ac_ct_CC" >&6; }
2989else
2990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991$as_echo "no" >&6; }
2992fi
2993
2994  if test "x$ac_ct_CC" = x; then
2995    CC=""
2996  else
2997    case $cross_compiling:$ac_tool_warned in
2998yes:)
2999{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3000$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3001ac_tool_warned=yes ;;
3002esac
3003    CC=$ac_ct_CC
3004  fi
3005else
3006  CC="$ac_cv_prog_CC"
3007fi
3008
3009if test -z "$CC"; then
3010          if test -n "$ac_tool_prefix"; then
3011    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3012set dummy ${ac_tool_prefix}cc; ac_word=$2
3013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3014$as_echo_n "checking for $ac_word... " >&6; }
3015if ${ac_cv_prog_CC+:} false; then :
3016  $as_echo_n "(cached) " >&6
3017else
3018  if test -n "$CC"; then
3019  ac_cv_prog_CC="$CC" # Let the user override the test.
3020else
3021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022for as_dir in $PATH
3023do
3024  IFS=$as_save_IFS
3025  test -z "$as_dir" && as_dir=.
3026    for ac_exec_ext in '' $ac_executable_extensions; do
3027  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3028    ac_cv_prog_CC="${ac_tool_prefix}cc"
3029    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3030    break 2
3031  fi
3032done
3033  done
3034IFS=$as_save_IFS
3035
3036fi
3037fi
3038CC=$ac_cv_prog_CC
3039if test -n "$CC"; then
3040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3041$as_echo "$CC" >&6; }
3042else
3043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3044$as_echo "no" >&6; }
3045fi
3046
3047
3048  fi
3049fi
3050if test -z "$CC"; then
3051  # Extract the first word of "cc", so it can be a program name with args.
3052set dummy cc; ac_word=$2
3053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3054$as_echo_n "checking for $ac_word... " >&6; }
3055if ${ac_cv_prog_CC+:} false; then :
3056  $as_echo_n "(cached) " >&6
3057else
3058  if test -n "$CC"; then
3059  ac_cv_prog_CC="$CC" # Let the user override the test.
3060else
3061  ac_prog_rejected=no
3062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063for as_dir in $PATH
3064do
3065  IFS=$as_save_IFS
3066  test -z "$as_dir" && as_dir=.
3067    for ac_exec_ext in '' $ac_executable_extensions; do
3068  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3069    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3070       ac_prog_rejected=yes
3071       continue
3072     fi
3073    ac_cv_prog_CC="cc"
3074    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3075    break 2
3076  fi
3077done
3078  done
3079IFS=$as_save_IFS
3080
3081if test $ac_prog_rejected = yes; then
3082  # We found a bogon in the path, so make sure we never use it.
3083  set dummy $ac_cv_prog_CC
3084  shift
3085  if test $# != 0; then
3086    # We chose a different compiler from the bogus one.
3087    # However, it has the same basename, so the bogon will be chosen
3088    # first if we set CC to just the basename; use the full file name.
3089    shift
3090    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3091  fi
3092fi
3093fi
3094fi
3095CC=$ac_cv_prog_CC
3096if test -n "$CC"; then
3097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3098$as_echo "$CC" >&6; }
3099else
3100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3101$as_echo "no" >&6; }
3102fi
3103
3104
3105fi
3106if test -z "$CC"; then
3107  if test -n "$ac_tool_prefix"; then
3108  for ac_prog in cl.exe
3109  do
3110    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3111set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3113$as_echo_n "checking for $ac_word... " >&6; }
3114if ${ac_cv_prog_CC+:} false; then :
3115  $as_echo_n "(cached) " >&6
3116else
3117  if test -n "$CC"; then
3118  ac_cv_prog_CC="$CC" # Let the user override the test.
3119else
3120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121for as_dir in $PATH
3122do
3123  IFS=$as_save_IFS
3124  test -z "$as_dir" && as_dir=.
3125    for ac_exec_ext in '' $ac_executable_extensions; do
3126  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3127    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3128    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3129    break 2
3130  fi
3131done
3132  done
3133IFS=$as_save_IFS
3134
3135fi
3136fi
3137CC=$ac_cv_prog_CC
3138if test -n "$CC"; then
3139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3140$as_echo "$CC" >&6; }
3141else
3142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143$as_echo "no" >&6; }
3144fi
3145
3146
3147    test -n "$CC" && break
3148  done
3149fi
3150if test -z "$CC"; then
3151  ac_ct_CC=$CC
3152  for ac_prog in cl.exe
3153do
3154  # Extract the first word of "$ac_prog", so it can be a program name with args.
3155set dummy $ac_prog; ac_word=$2
3156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157$as_echo_n "checking for $ac_word... " >&6; }
3158if ${ac_cv_prog_ac_ct_CC+:} false; then :
3159  $as_echo_n "(cached) " >&6
3160else
3161  if test -n "$ac_ct_CC"; then
3162  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3163else
3164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165for as_dir in $PATH
3166do
3167  IFS=$as_save_IFS
3168  test -z "$as_dir" && as_dir=.
3169    for ac_exec_ext in '' $ac_executable_extensions; do
3170  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3171    ac_cv_prog_ac_ct_CC="$ac_prog"
3172    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3173    break 2
3174  fi
3175done
3176  done
3177IFS=$as_save_IFS
3178
3179fi
3180fi
3181ac_ct_CC=$ac_cv_prog_ac_ct_CC
3182if test -n "$ac_ct_CC"; then
3183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3184$as_echo "$ac_ct_CC" >&6; }
3185else
3186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187$as_echo "no" >&6; }
3188fi
3189
3190
3191  test -n "$ac_ct_CC" && break
3192done
3193
3194  if test "x$ac_ct_CC" = x; then
3195    CC=""
3196  else
3197    case $cross_compiling:$ac_tool_warned in
3198yes:)
3199{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3200$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3201ac_tool_warned=yes ;;
3202esac
3203    CC=$ac_ct_CC
3204  fi
3205fi
3206
3207fi
3208
3209
3210test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3211$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3212as_fn_error $? "no acceptable C compiler found in \$PATH
3213See \`config.log' for more details" "$LINENO" 5; }
3214
3215# Provide some information about the compiler.
3216$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3217set X $ac_compile
3218ac_compiler=$2
3219for ac_option in --version -v -V -qversion; do
3220  { { ac_try="$ac_compiler $ac_option >&5"
3221case "(($ac_try" in
3222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223  *) ac_try_echo=$ac_try;;
3224esac
3225eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3226$as_echo "$ac_try_echo"; } >&5
3227  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3228  ac_status=$?
3229  if test -s conftest.err; then
3230    sed '10a\
3231... rest of stderr output deleted ...
3232         10q' conftest.err >conftest.er1
3233    cat conftest.er1 >&5
3234  fi
3235  rm -f conftest.er1 conftest.err
3236  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3237  test $ac_status = 0; }
3238done
3239
3240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3241/* end confdefs.h.  */
3242
3243int
3244main ()
3245{
3246
3247  ;
3248  return 0;
3249}
3250_ACEOF
3251ac_clean_files_save=$ac_clean_files
3252ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3253# Try to create an executable without -o first, disregard a.out.
3254# It will help us diagnose broken compilers, and finding out an intuition
3255# of exeext.
3256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3257$as_echo_n "checking whether the C compiler works... " >&6; }
3258ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3259
3260# The possible output files:
3261ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3262
3263ac_rmfiles=
3264for ac_file in $ac_files
3265do
3266  case $ac_file in
3267    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3268    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3269  esac
3270done
3271rm -f $ac_rmfiles
3272
3273if { { ac_try="$ac_link_default"
3274case "(($ac_try" in
3275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276  *) ac_try_echo=$ac_try;;
3277esac
3278eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3279$as_echo "$ac_try_echo"; } >&5
3280  (eval "$ac_link_default") 2>&5
3281  ac_status=$?
3282  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3283  test $ac_status = 0; }; then :
3284  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3285# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3286# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3287# so that the user can short-circuit this test for compilers unknown to
3288# Autoconf.
3289for ac_file in $ac_files ''
3290do
3291  test -f "$ac_file" || continue
3292  case $ac_file in
3293    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3294	;;
3295    [ab].out )
3296	# We found the default executable, but exeext='' is most
3297	# certainly right.
3298	break;;
3299    *.* )
3300	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3301	then :; else
3302	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3303	fi
3304	# We set ac_cv_exeext here because the later test for it is not
3305	# safe: cross compilers may not add the suffix if given an `-o'
3306	# argument, so we may need to know it at that point already.
3307	# Even if this section looks crufty: it has the advantage of
3308	# actually working.
3309	break;;
3310    * )
3311	break;;
3312  esac
3313done
3314test "$ac_cv_exeext" = no && ac_cv_exeext=
3315
3316else
3317  ac_file=''
3318fi
3319if test -z "$ac_file"; then :
3320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321$as_echo "no" >&6; }
3322$as_echo "$as_me: failed program was:" >&5
3323sed 's/^/| /' conftest.$ac_ext >&5
3324
3325{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3326$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3327as_fn_error 77 "C compiler cannot create executables
3328See \`config.log' for more details" "$LINENO" 5; }
3329else
3330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3331$as_echo "yes" >&6; }
3332fi
3333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3334$as_echo_n "checking for C compiler default output file name... " >&6; }
3335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3336$as_echo "$ac_file" >&6; }
3337ac_exeext=$ac_cv_exeext
3338
3339rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3340ac_clean_files=$ac_clean_files_save
3341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3342$as_echo_n "checking for suffix of executables... " >&6; }
3343if { { ac_try="$ac_link"
3344case "(($ac_try" in
3345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346  *) ac_try_echo=$ac_try;;
3347esac
3348eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3349$as_echo "$ac_try_echo"; } >&5
3350  (eval "$ac_link") 2>&5
3351  ac_status=$?
3352  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3353  test $ac_status = 0; }; then :
3354  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3355# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3356# work properly (i.e., refer to `conftest.exe'), while it won't with
3357# `rm'.
3358for ac_file in conftest.exe conftest conftest.*; do
3359  test -f "$ac_file" || continue
3360  case $ac_file in
3361    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3362    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3363	  break;;
3364    * ) break;;
3365  esac
3366done
3367else
3368  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3369$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3370as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3371See \`config.log' for more details" "$LINENO" 5; }
3372fi
3373rm -f conftest conftest$ac_cv_exeext
3374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3375$as_echo "$ac_cv_exeext" >&6; }
3376
3377rm -f conftest.$ac_ext
3378EXEEXT=$ac_cv_exeext
3379ac_exeext=$EXEEXT
3380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381/* end confdefs.h.  */
3382#include <stdio.h>
3383int
3384main ()
3385{
3386FILE *f = fopen ("conftest.out", "w");
3387 return ferror (f) || fclose (f) != 0;
3388
3389  ;
3390  return 0;
3391}
3392_ACEOF
3393ac_clean_files="$ac_clean_files conftest.out"
3394# Check that the compiler produces executables we can run.  If not, either
3395# the compiler is broken, or we cross compile.
3396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3397$as_echo_n "checking whether we are cross compiling... " >&6; }
3398if test "$cross_compiling" != yes; then
3399  { { ac_try="$ac_link"
3400case "(($ac_try" in
3401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402  *) ac_try_echo=$ac_try;;
3403esac
3404eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3405$as_echo "$ac_try_echo"; } >&5
3406  (eval "$ac_link") 2>&5
3407  ac_status=$?
3408  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3409  test $ac_status = 0; }
3410  if { ac_try='./conftest$ac_cv_exeext'
3411  { { case "(($ac_try" in
3412  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413  *) ac_try_echo=$ac_try;;
3414esac
3415eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3416$as_echo "$ac_try_echo"; } >&5
3417  (eval "$ac_try") 2>&5
3418  ac_status=$?
3419  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3420  test $ac_status = 0; }; }; then
3421    cross_compiling=no
3422  else
3423    if test "$cross_compiling" = maybe; then
3424	cross_compiling=yes
3425    else
3426	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3427$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3428as_fn_error $? "cannot run C compiled programs.
3429If you meant to cross compile, use \`--host'.
3430See \`config.log' for more details" "$LINENO" 5; }
3431    fi
3432  fi
3433fi
3434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3435$as_echo "$cross_compiling" >&6; }
3436
3437rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3438ac_clean_files=$ac_clean_files_save
3439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3440$as_echo_n "checking for suffix of object files... " >&6; }
3441if ${ac_cv_objext+:} false; then :
3442  $as_echo_n "(cached) " >&6
3443else
3444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445/* end confdefs.h.  */
3446
3447int
3448main ()
3449{
3450
3451  ;
3452  return 0;
3453}
3454_ACEOF
3455rm -f conftest.o conftest.obj
3456if { { ac_try="$ac_compile"
3457case "(($ac_try" in
3458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459  *) ac_try_echo=$ac_try;;
3460esac
3461eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3462$as_echo "$ac_try_echo"; } >&5
3463  (eval "$ac_compile") 2>&5
3464  ac_status=$?
3465  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3466  test $ac_status = 0; }; then :
3467  for ac_file in conftest.o conftest.obj conftest.*; do
3468  test -f "$ac_file" || continue;
3469  case $ac_file in
3470    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3471    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3472       break;;
3473  esac
3474done
3475else
3476  $as_echo "$as_me: failed program was:" >&5
3477sed 's/^/| /' conftest.$ac_ext >&5
3478
3479{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3480$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3481as_fn_error $? "cannot compute suffix of object files: cannot compile
3482See \`config.log' for more details" "$LINENO" 5; }
3483fi
3484rm -f conftest.$ac_cv_objext conftest.$ac_ext
3485fi
3486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3487$as_echo "$ac_cv_objext" >&6; }
3488OBJEXT=$ac_cv_objext
3489ac_objext=$OBJEXT
3490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3491$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3492if ${ac_cv_c_compiler_gnu+:} false; then :
3493  $as_echo_n "(cached) " >&6
3494else
3495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496/* end confdefs.h.  */
3497
3498int
3499main ()
3500{
3501#ifndef __GNUC__
3502       choke me
3503#endif
3504
3505  ;
3506  return 0;
3507}
3508_ACEOF
3509if ac_fn_c_try_compile "$LINENO"; then :
3510  ac_compiler_gnu=yes
3511else
3512  ac_compiler_gnu=no
3513fi
3514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3515ac_cv_c_compiler_gnu=$ac_compiler_gnu
3516
3517fi
3518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3519$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3520if test $ac_compiler_gnu = yes; then
3521  GCC=yes
3522else
3523  GCC=
3524fi
3525ac_test_CFLAGS=${CFLAGS+set}
3526ac_save_CFLAGS=$CFLAGS
3527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3528$as_echo_n "checking whether $CC accepts -g... " >&6; }
3529if ${ac_cv_prog_cc_g+:} false; then :
3530  $as_echo_n "(cached) " >&6
3531else
3532  ac_save_c_werror_flag=$ac_c_werror_flag
3533   ac_c_werror_flag=yes
3534   ac_cv_prog_cc_g=no
3535   CFLAGS="-g"
3536   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537/* end confdefs.h.  */
3538
3539int
3540main ()
3541{
3542
3543  ;
3544  return 0;
3545}
3546_ACEOF
3547if ac_fn_c_try_compile "$LINENO"; then :
3548  ac_cv_prog_cc_g=yes
3549else
3550  CFLAGS=""
3551      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3552/* end confdefs.h.  */
3553
3554int
3555main ()
3556{
3557
3558  ;
3559  return 0;
3560}
3561_ACEOF
3562if ac_fn_c_try_compile "$LINENO"; then :
3563
3564else
3565  ac_c_werror_flag=$ac_save_c_werror_flag
3566	 CFLAGS="-g"
3567	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568/* end confdefs.h.  */
3569
3570int
3571main ()
3572{
3573
3574  ;
3575  return 0;
3576}
3577_ACEOF
3578if ac_fn_c_try_compile "$LINENO"; then :
3579  ac_cv_prog_cc_g=yes
3580fi
3581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3582fi
3583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3584fi
3585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586   ac_c_werror_flag=$ac_save_c_werror_flag
3587fi
3588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3589$as_echo "$ac_cv_prog_cc_g" >&6; }
3590if test "$ac_test_CFLAGS" = set; then
3591  CFLAGS=$ac_save_CFLAGS
3592elif test $ac_cv_prog_cc_g = yes; then
3593  if test "$GCC" = yes; then
3594    CFLAGS="-g -O2"
3595  else
3596    CFLAGS="-g"
3597  fi
3598else
3599  if test "$GCC" = yes; then
3600    CFLAGS="-O2"
3601  else
3602    CFLAGS=
3603  fi
3604fi
3605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3606$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3607if ${ac_cv_prog_cc_c89+:} false; then :
3608  $as_echo_n "(cached) " >&6
3609else
3610  ac_cv_prog_cc_c89=no
3611ac_save_CC=$CC
3612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613/* end confdefs.h.  */
3614#include <stdarg.h>
3615#include <stdio.h>
3616struct stat;
3617/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3618struct buf { int x; };
3619FILE * (*rcsopen) (struct buf *, struct stat *, int);
3620static char *e (p, i)
3621     char **p;
3622     int i;
3623{
3624  return p[i];
3625}
3626static char *f (char * (*g) (char **, int), char **p, ...)
3627{
3628  char *s;
3629  va_list v;
3630  va_start (v,p);
3631  s = g (p, va_arg (v,int));
3632  va_end (v);
3633  return s;
3634}
3635
3636/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3637   function prototypes and stuff, but not '\xHH' hex character constants.
3638   These don't provoke an error unfortunately, instead are silently treated
3639   as 'x'.  The following induces an error, until -std is added to get
3640   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3641   array size at least.  It's necessary to write '\x00'==0 to get something
3642   that's true only with -std.  */
3643int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3644
3645/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3646   inside strings and character constants.  */
3647#define FOO(x) 'x'
3648int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3649
3650int test (int i, double x);
3651struct s1 {int (*f) (int a);};
3652struct s2 {int (*f) (double a);};
3653int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3654int argc;
3655char **argv;
3656int
3657main ()
3658{
3659return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3660  ;
3661  return 0;
3662}
3663_ACEOF
3664for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3665	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3666do
3667  CC="$ac_save_CC $ac_arg"
3668  if ac_fn_c_try_compile "$LINENO"; then :
3669  ac_cv_prog_cc_c89=$ac_arg
3670fi
3671rm -f core conftest.err conftest.$ac_objext
3672  test "x$ac_cv_prog_cc_c89" != "xno" && break
3673done
3674rm -f conftest.$ac_ext
3675CC=$ac_save_CC
3676
3677fi
3678# AC_CACHE_VAL
3679case "x$ac_cv_prog_cc_c89" in
3680  x)
3681    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3682$as_echo "none needed" >&6; } ;;
3683  xno)
3684    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3685$as_echo "unsupported" >&6; } ;;
3686  *)
3687    CC="$CC $ac_cv_prog_cc_c89"
3688    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3689$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3690esac
3691if test "x$ac_cv_prog_cc_c89" != xno; then :
3692
3693fi
3694
3695ac_ext=c
3696ac_cpp='$CPP $CPPFLAGS'
3697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3699ac_compiler_gnu=$ac_cv_c_compiler_gnu
3700
3701ac_ext=c
3702ac_cpp='$CPP $CPPFLAGS'
3703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3705ac_compiler_gnu=$ac_cv_c_compiler_gnu
3706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3707$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3708if ${am_cv_prog_cc_c_o+:} false; then :
3709  $as_echo_n "(cached) " >&6
3710else
3711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712/* end confdefs.h.  */
3713
3714int
3715main ()
3716{
3717
3718  ;
3719  return 0;
3720}
3721_ACEOF
3722  # Make sure it works both with $CC and with simple cc.
3723  # Following AC_PROG_CC_C_O, we do the test twice because some
3724  # compilers refuse to overwrite an existing .o file with -o,
3725  # though they will create one.
3726  am_cv_prog_cc_c_o=yes
3727  for am_i in 1 2; do
3728    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3729   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3730   ac_status=$?
3731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732   (exit $ac_status); } \
3733         && test -f conftest2.$ac_objext; then
3734      : OK
3735    else
3736      am_cv_prog_cc_c_o=no
3737      break
3738    fi
3739  done
3740  rm -f core conftest*
3741  unset am_i
3742fi
3743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3744$as_echo "$am_cv_prog_cc_c_o" >&6; }
3745if test "$am_cv_prog_cc_c_o" != yes; then
3746   # Losing compiler, so override with the script.
3747   # FIXME: It is wrong to rewrite CC.
3748   # But if we don't then we get into trouble of one sort or another.
3749   # A longer-term fix would be to have automake use am__CC in this case,
3750   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3751   CC="$am_aux_dir/compile $CC"
3752fi
3753ac_ext=c
3754ac_cpp='$CPP $CPPFLAGS'
3755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3757ac_compiler_gnu=$ac_cv_c_compiler_gnu
3758
3759
3760depcc="$CC"   am_compiler_list=
3761
3762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3763$as_echo_n "checking dependency style of $depcc... " >&6; }
3764if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3765  $as_echo_n "(cached) " >&6
3766else
3767  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3768  # We make a subdir and do the tests there.  Otherwise we can end up
3769  # making bogus files that we don't know about and never remove.  For
3770  # instance it was reported that on HP-UX the gcc test will end up
3771  # making a dummy file named 'D' -- because '-MD' means "put the output
3772  # in D".
3773  rm -rf conftest.dir
3774  mkdir conftest.dir
3775  # Copy depcomp to subdir because otherwise we won't find it if we're
3776  # using a relative directory.
3777  cp "$am_depcomp" conftest.dir
3778  cd conftest.dir
3779  # We will build objects and dependencies in a subdirectory because
3780  # it helps to detect inapplicable dependency modes.  For instance
3781  # both Tru64's cc and ICC support -MD to output dependencies as a
3782  # side effect of compilation, but ICC will put the dependencies in
3783  # the current directory while Tru64 will put them in the object
3784  # directory.
3785  mkdir sub
3786
3787  am_cv_CC_dependencies_compiler_type=none
3788  if test "$am_compiler_list" = ""; then
3789     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3790  fi
3791  am__universal=false
3792  case " $depcc " in #(
3793     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3794     esac
3795
3796  for depmode in $am_compiler_list; do
3797    # Setup a source with many dependencies, because some compilers
3798    # like to wrap large dependency lists on column 80 (with \), and
3799    # we should not choose a depcomp mode which is confused by this.
3800    #
3801    # We need to recreate these files for each test, as the compiler may
3802    # overwrite some of them when testing with obscure command lines.
3803    # This happens at least with the AIX C compiler.
3804    : > sub/conftest.c
3805    for i in 1 2 3 4 5 6; do
3806      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3807      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3808      # Solaris 10 /bin/sh.
3809      echo '/* dummy */' > sub/conftst$i.h
3810    done
3811    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3812
3813    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3814    # mode.  It turns out that the SunPro C++ compiler does not properly
3815    # handle '-M -o', and we need to detect this.  Also, some Intel
3816    # versions had trouble with output in subdirs.
3817    am__obj=sub/conftest.${OBJEXT-o}
3818    am__minus_obj="-o $am__obj"
3819    case $depmode in
3820    gcc)
3821      # This depmode causes a compiler race in universal mode.
3822      test "$am__universal" = false || continue
3823      ;;
3824    nosideeffect)
3825      # After this tag, mechanisms are not by side-effect, so they'll
3826      # only be used when explicitly requested.
3827      if test "x$enable_dependency_tracking" = xyes; then
3828	continue
3829      else
3830	break
3831      fi
3832      ;;
3833    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3834      # This compiler won't grok '-c -o', but also, the minuso test has
3835      # not run yet.  These depmodes are late enough in the game, and
3836      # so weak that their functioning should not be impacted.
3837      am__obj=conftest.${OBJEXT-o}
3838      am__minus_obj=
3839      ;;
3840    none) break ;;
3841    esac
3842    if depmode=$depmode \
3843       source=sub/conftest.c object=$am__obj \
3844       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3845       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3846         >/dev/null 2>conftest.err &&
3847       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3848       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3849       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3850       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3851      # icc doesn't choke on unknown options, it will just issue warnings
3852      # or remarks (even with -Werror).  So we grep stderr for any message
3853      # that says an option was ignored or not supported.
3854      # When given -MP, icc 7.0 and 7.1 complain thusly:
3855      #   icc: Command line warning: ignoring option '-M'; no argument required
3856      # The diagnosis changed in icc 8.0:
3857      #   icc: Command line remark: option '-MP' not supported
3858      if (grep 'ignoring option' conftest.err ||
3859          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3860        am_cv_CC_dependencies_compiler_type=$depmode
3861        break
3862      fi
3863    fi
3864  done
3865
3866  cd ..
3867  rm -rf conftest.dir
3868else
3869  am_cv_CC_dependencies_compiler_type=none
3870fi
3871
3872fi
3873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3874$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3875CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3876
3877 if
3878  test "x$enable_dependency_tracking" != xno \
3879  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3880  am__fastdepCC_TRUE=
3881  am__fastdepCC_FALSE='#'
3882else
3883  am__fastdepCC_TRUE='#'
3884  am__fastdepCC_FALSE=
3885fi
3886
3887
3888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3889$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3890if ${ac_cv_prog_cc_c99+:} false; then :
3891  $as_echo_n "(cached) " >&6
3892else
3893  ac_cv_prog_cc_c99=no
3894ac_save_CC=$CC
3895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896/* end confdefs.h.  */
3897#include <stdarg.h>
3898#include <stdbool.h>
3899#include <stdlib.h>
3900#include <wchar.h>
3901#include <stdio.h>
3902
3903// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3904#define debug(...) fprintf (stderr, __VA_ARGS__)
3905#define showlist(...) puts (#__VA_ARGS__)
3906#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3907static void
3908test_varargs_macros (void)
3909{
3910  int x = 1234;
3911  int y = 5678;
3912  debug ("Flag");
3913  debug ("X = %d\n", x);
3914  showlist (The first, second, and third items.);
3915  report (x>y, "x is %d but y is %d", x, y);
3916}
3917
3918// Check long long types.
3919#define BIG64 18446744073709551615ull
3920#define BIG32 4294967295ul
3921#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3922#if !BIG_OK
3923  your preprocessor is broken;
3924#endif
3925#if BIG_OK
3926#else
3927  your preprocessor is broken;
3928#endif
3929static long long int bignum = -9223372036854775807LL;
3930static unsigned long long int ubignum = BIG64;
3931
3932struct incomplete_array
3933{
3934  int datasize;
3935  double data[];
3936};
3937
3938struct named_init {
3939  int number;
3940  const wchar_t *name;
3941  double average;
3942};
3943
3944typedef const char *ccp;
3945
3946static inline int
3947test_restrict (ccp restrict text)
3948{
3949  // See if C++-style comments work.
3950  // Iterate through items via the restricted pointer.
3951  // Also check for declarations in for loops.
3952  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3953    continue;
3954  return 0;
3955}
3956
3957// Check varargs and va_copy.
3958static void
3959test_varargs (const char *format, ...)
3960{
3961  va_list args;
3962  va_start (args, format);
3963  va_list args_copy;
3964  va_copy (args_copy, args);
3965
3966  const char *str;
3967  int number;
3968  float fnumber;
3969
3970  while (*format)
3971    {
3972      switch (*format++)
3973	{
3974	case 's': // string
3975	  str = va_arg (args_copy, const char *);
3976	  break;
3977	case 'd': // int
3978	  number = va_arg (args_copy, int);
3979	  break;
3980	case 'f': // float
3981	  fnumber = va_arg (args_copy, double);
3982	  break;
3983	default:
3984	  break;
3985	}
3986    }
3987  va_end (args_copy);
3988  va_end (args);
3989}
3990
3991int
3992main ()
3993{
3994
3995  // Check bool.
3996  _Bool success = false;
3997
3998  // Check restrict.
3999  if (test_restrict ("String literal") == 0)
4000    success = true;
4001  char *restrict newvar = "Another string";
4002
4003  // Check varargs.
4004  test_varargs ("s, d' f .", "string", 65, 34.234);
4005  test_varargs_macros ();
4006
4007  // Check flexible array members.
4008  struct incomplete_array *ia =
4009    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4010  ia->datasize = 10;
4011  for (int i = 0; i < ia->datasize; ++i)
4012    ia->data[i] = i * 1.234;
4013
4014  // Check named initializers.
4015  struct named_init ni = {
4016    .number = 34,
4017    .name = L"Test wide string",
4018    .average = 543.34343,
4019  };
4020
4021  ni.number = 58;
4022
4023  int dynamic_array[ni.number];
4024  dynamic_array[ni.number - 1] = 543;
4025
4026  // work around unused variable warnings
4027  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4028	  || dynamic_array[ni.number - 1] != 543);
4029
4030  ;
4031  return 0;
4032}
4033_ACEOF
4034for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4035do
4036  CC="$ac_save_CC $ac_arg"
4037  if ac_fn_c_try_compile "$LINENO"; then :
4038  ac_cv_prog_cc_c99=$ac_arg
4039fi
4040rm -f core conftest.err conftest.$ac_objext
4041  test "x$ac_cv_prog_cc_c99" != "xno" && break
4042done
4043rm -f conftest.$ac_ext
4044CC=$ac_save_CC
4045
4046fi
4047# AC_CACHE_VAL
4048case "x$ac_cv_prog_cc_c99" in
4049  x)
4050    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4051$as_echo "none needed" >&6; } ;;
4052  xno)
4053    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4054$as_echo "unsupported" >&6; } ;;
4055  *)
4056    CC="$CC $ac_cv_prog_cc_c99"
4057    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4058$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4059esac
4060if test "x$ac_cv_prog_cc_c99" != xno; then :
4061
4062fi
4063
4064
4065
4066ac_ext=c
4067ac_cpp='$CPP $CPPFLAGS'
4068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4070ac_compiler_gnu=$ac_cv_c_compiler_gnu
4071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4072$as_echo_n "checking how to run the C preprocessor... " >&6; }
4073# On Suns, sometimes $CPP names a directory.
4074if test -n "$CPP" && test -d "$CPP"; then
4075  CPP=
4076fi
4077if test -z "$CPP"; then
4078  if ${ac_cv_prog_CPP+:} false; then :
4079  $as_echo_n "(cached) " >&6
4080else
4081      # Double quotes because CPP needs to be expanded
4082    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4083    do
4084      ac_preproc_ok=false
4085for ac_c_preproc_warn_flag in '' yes
4086do
4087  # Use a header file that comes with gcc, so configuring glibc
4088  # with a fresh cross-compiler works.
4089  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4090  # <limits.h> exists even on freestanding compilers.
4091  # On the NeXT, cc -E runs the code through the compiler's parser,
4092  # not just through cpp. "Syntax error" is here to catch this case.
4093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094/* end confdefs.h.  */
4095#ifdef __STDC__
4096# include <limits.h>
4097#else
4098# include <assert.h>
4099#endif
4100		     Syntax error
4101_ACEOF
4102if ac_fn_c_try_cpp "$LINENO"; then :
4103
4104else
4105  # Broken: fails on valid input.
4106continue
4107fi
4108rm -f conftest.err conftest.i conftest.$ac_ext
4109
4110  # OK, works on sane cases.  Now check whether nonexistent headers
4111  # can be detected and how.
4112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113/* end confdefs.h.  */
4114#include <ac_nonexistent.h>
4115_ACEOF
4116if ac_fn_c_try_cpp "$LINENO"; then :
4117  # Broken: success on invalid input.
4118continue
4119else
4120  # Passes both tests.
4121ac_preproc_ok=:
4122break
4123fi
4124rm -f conftest.err conftest.i conftest.$ac_ext
4125
4126done
4127# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4128rm -f conftest.i conftest.err conftest.$ac_ext
4129if $ac_preproc_ok; then :
4130  break
4131fi
4132
4133    done
4134    ac_cv_prog_CPP=$CPP
4135
4136fi
4137  CPP=$ac_cv_prog_CPP
4138else
4139  ac_cv_prog_CPP=$CPP
4140fi
4141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4142$as_echo "$CPP" >&6; }
4143ac_preproc_ok=false
4144for ac_c_preproc_warn_flag in '' yes
4145do
4146  # Use a header file that comes with gcc, so configuring glibc
4147  # with a fresh cross-compiler works.
4148  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4149  # <limits.h> exists even on freestanding compilers.
4150  # On the NeXT, cc -E runs the code through the compiler's parser,
4151  # not just through cpp. "Syntax error" is here to catch this case.
4152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153/* end confdefs.h.  */
4154#ifdef __STDC__
4155# include <limits.h>
4156#else
4157# include <assert.h>
4158#endif
4159		     Syntax error
4160_ACEOF
4161if ac_fn_c_try_cpp "$LINENO"; then :
4162
4163else
4164  # Broken: fails on valid input.
4165continue
4166fi
4167rm -f conftest.err conftest.i conftest.$ac_ext
4168
4169  # OK, works on sane cases.  Now check whether nonexistent headers
4170  # can be detected and how.
4171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172/* end confdefs.h.  */
4173#include <ac_nonexistent.h>
4174_ACEOF
4175if ac_fn_c_try_cpp "$LINENO"; then :
4176  # Broken: success on invalid input.
4177continue
4178else
4179  # Passes both tests.
4180ac_preproc_ok=:
4181break
4182fi
4183rm -f conftest.err conftest.i conftest.$ac_ext
4184
4185done
4186# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4187rm -f conftest.i conftest.err conftest.$ac_ext
4188if $ac_preproc_ok; then :
4189
4190else
4191  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4192$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4193as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4194See \`config.log' for more details" "$LINENO" 5; }
4195fi
4196
4197ac_ext=c
4198ac_cpp='$CPP $CPPFLAGS'
4199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4201ac_compiler_gnu=$ac_cv_c_compiler_gnu
4202
4203
4204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4205$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4206if ${ac_cv_path_GREP+:} false; then :
4207  $as_echo_n "(cached) " >&6
4208else
4209  if test -z "$GREP"; then
4210  ac_path_GREP_found=false
4211  # Loop through the user's path and test for each of PROGNAME-LIST
4212  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4214do
4215  IFS=$as_save_IFS
4216  test -z "$as_dir" && as_dir=.
4217    for ac_prog in grep ggrep; do
4218    for ac_exec_ext in '' $ac_executable_extensions; do
4219      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4220      as_fn_executable_p "$ac_path_GREP" || continue
4221# Check for GNU ac_path_GREP and select it if it is found.
4222  # Check for GNU $ac_path_GREP
4223case `"$ac_path_GREP" --version 2>&1` in
4224*GNU*)
4225  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4226*)
4227  ac_count=0
4228  $as_echo_n 0123456789 >"conftest.in"
4229  while :
4230  do
4231    cat "conftest.in" "conftest.in" >"conftest.tmp"
4232    mv "conftest.tmp" "conftest.in"
4233    cp "conftest.in" "conftest.nl"
4234    $as_echo 'GREP' >> "conftest.nl"
4235    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4236    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4237    as_fn_arith $ac_count + 1 && ac_count=$as_val
4238    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4239      # Best one so far, save it but keep looking for a better one
4240      ac_cv_path_GREP="$ac_path_GREP"
4241      ac_path_GREP_max=$ac_count
4242    fi
4243    # 10*(2^10) chars as input seems more than enough
4244    test $ac_count -gt 10 && break
4245  done
4246  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4247esac
4248
4249      $ac_path_GREP_found && break 3
4250    done
4251  done
4252  done
4253IFS=$as_save_IFS
4254  if test -z "$ac_cv_path_GREP"; then
4255    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4256  fi
4257else
4258  ac_cv_path_GREP=$GREP
4259fi
4260
4261fi
4262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4263$as_echo "$ac_cv_path_GREP" >&6; }
4264 GREP="$ac_cv_path_GREP"
4265
4266
4267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4268$as_echo_n "checking for egrep... " >&6; }
4269if ${ac_cv_path_EGREP+:} false; then :
4270  $as_echo_n "(cached) " >&6
4271else
4272  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4273   then ac_cv_path_EGREP="$GREP -E"
4274   else
4275     if test -z "$EGREP"; then
4276  ac_path_EGREP_found=false
4277  # Loop through the user's path and test for each of PROGNAME-LIST
4278  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4280do
4281  IFS=$as_save_IFS
4282  test -z "$as_dir" && as_dir=.
4283    for ac_prog in egrep; do
4284    for ac_exec_ext in '' $ac_executable_extensions; do
4285      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4286      as_fn_executable_p "$ac_path_EGREP" || continue
4287# Check for GNU ac_path_EGREP and select it if it is found.
4288  # Check for GNU $ac_path_EGREP
4289case `"$ac_path_EGREP" --version 2>&1` in
4290*GNU*)
4291  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4292*)
4293  ac_count=0
4294  $as_echo_n 0123456789 >"conftest.in"
4295  while :
4296  do
4297    cat "conftest.in" "conftest.in" >"conftest.tmp"
4298    mv "conftest.tmp" "conftest.in"
4299    cp "conftest.in" "conftest.nl"
4300    $as_echo 'EGREP' >> "conftest.nl"
4301    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4302    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4303    as_fn_arith $ac_count + 1 && ac_count=$as_val
4304    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4305      # Best one so far, save it but keep looking for a better one
4306      ac_cv_path_EGREP="$ac_path_EGREP"
4307      ac_path_EGREP_max=$ac_count
4308    fi
4309    # 10*(2^10) chars as input seems more than enough
4310    test $ac_count -gt 10 && break
4311  done
4312  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4313esac
4314
4315      $ac_path_EGREP_found && break 3
4316    done
4317  done
4318  done
4319IFS=$as_save_IFS
4320  if test -z "$ac_cv_path_EGREP"; then
4321    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4322  fi
4323else
4324  ac_cv_path_EGREP=$EGREP
4325fi
4326
4327   fi
4328fi
4329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4330$as_echo "$ac_cv_path_EGREP" >&6; }
4331 EGREP="$ac_cv_path_EGREP"
4332
4333
4334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4335$as_echo_n "checking for ANSI C header files... " >&6; }
4336if ${ac_cv_header_stdc+:} false; then :
4337  $as_echo_n "(cached) " >&6
4338else
4339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340/* end confdefs.h.  */
4341#include <stdlib.h>
4342#include <stdarg.h>
4343#include <string.h>
4344#include <float.h>
4345
4346int
4347main ()
4348{
4349
4350  ;
4351  return 0;
4352}
4353_ACEOF
4354if ac_fn_c_try_compile "$LINENO"; then :
4355  ac_cv_header_stdc=yes
4356else
4357  ac_cv_header_stdc=no
4358fi
4359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4360
4361if test $ac_cv_header_stdc = yes; then
4362  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364/* end confdefs.h.  */
4365#include <string.h>
4366
4367_ACEOF
4368if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4369  $EGREP "memchr" >/dev/null 2>&1; then :
4370
4371else
4372  ac_cv_header_stdc=no
4373fi
4374rm -f conftest*
4375
4376fi
4377
4378if test $ac_cv_header_stdc = yes; then
4379  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381/* end confdefs.h.  */
4382#include <stdlib.h>
4383
4384_ACEOF
4385if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4386  $EGREP "free" >/dev/null 2>&1; then :
4387
4388else
4389  ac_cv_header_stdc=no
4390fi
4391rm -f conftest*
4392
4393fi
4394
4395if test $ac_cv_header_stdc = yes; then
4396  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4397  if test "$cross_compiling" = yes; then :
4398  :
4399else
4400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401/* end confdefs.h.  */
4402#include <ctype.h>
4403#include <stdlib.h>
4404#if ((' ' & 0x0FF) == 0x020)
4405# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4406# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4407#else
4408# define ISLOWER(c) \
4409		   (('a' <= (c) && (c) <= 'i') \
4410		     || ('j' <= (c) && (c) <= 'r') \
4411		     || ('s' <= (c) && (c) <= 'z'))
4412# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4413#endif
4414
4415#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4416int
4417main ()
4418{
4419  int i;
4420  for (i = 0; i < 256; i++)
4421    if (XOR (islower (i), ISLOWER (i))
4422	|| toupper (i) != TOUPPER (i))
4423      return 2;
4424  return 0;
4425}
4426_ACEOF
4427if ac_fn_c_try_run "$LINENO"; then :
4428
4429else
4430  ac_cv_header_stdc=no
4431fi
4432rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4433  conftest.$ac_objext conftest.beam conftest.$ac_ext
4434fi
4435
4436fi
4437fi
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4439$as_echo "$ac_cv_header_stdc" >&6; }
4440if test $ac_cv_header_stdc = yes; then
4441
4442$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4443
4444fi
4445
4446# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4447for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4448		  inttypes.h stdint.h unistd.h
4449do :
4450  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4451ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4452"
4453if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4454  cat >>confdefs.h <<_ACEOF
4455#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4456_ACEOF
4457
4458fi
4459
4460done
4461
4462
4463
4464
4465
4466
4467ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4468if test "x$ac_cv_have_decl___clang__" = xyes; then :
4469  CLANGCC="yes"
4470else
4471  CLANGCC="no"
4472fi
4473
4474ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4475if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4476  INTELCC="yes"
4477else
4478  INTELCC="no"
4479fi
4480
4481ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4482if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4483  SUNCC="yes"
4484else
4485  SUNCC="no"
4486fi
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4497	if test -n "$ac_tool_prefix"; then
4498  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4499set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4501$as_echo_n "checking for $ac_word... " >&6; }
4502if ${ac_cv_path_PKG_CONFIG+:} false; then :
4503  $as_echo_n "(cached) " >&6
4504else
4505  case $PKG_CONFIG in
4506  [\\/]* | ?:[\\/]*)
4507  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4508  ;;
4509  *)
4510  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511for as_dir in $PATH
4512do
4513  IFS=$as_save_IFS
4514  test -z "$as_dir" && as_dir=.
4515    for ac_exec_ext in '' $ac_executable_extensions; do
4516  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4517    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4518    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4519    break 2
4520  fi
4521done
4522  done
4523IFS=$as_save_IFS
4524
4525  ;;
4526esac
4527fi
4528PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4529if test -n "$PKG_CONFIG"; then
4530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4531$as_echo "$PKG_CONFIG" >&6; }
4532else
4533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4534$as_echo "no" >&6; }
4535fi
4536
4537
4538fi
4539if test -z "$ac_cv_path_PKG_CONFIG"; then
4540  ac_pt_PKG_CONFIG=$PKG_CONFIG
4541  # Extract the first word of "pkg-config", so it can be a program name with args.
4542set dummy pkg-config; ac_word=$2
4543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4544$as_echo_n "checking for $ac_word... " >&6; }
4545if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4546  $as_echo_n "(cached) " >&6
4547else
4548  case $ac_pt_PKG_CONFIG in
4549  [\\/]* | ?:[\\/]*)
4550  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4551  ;;
4552  *)
4553  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554for as_dir in $PATH
4555do
4556  IFS=$as_save_IFS
4557  test -z "$as_dir" && as_dir=.
4558    for ac_exec_ext in '' $ac_executable_extensions; do
4559  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4560    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4561    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4562    break 2
4563  fi
4564done
4565  done
4566IFS=$as_save_IFS
4567
4568  ;;
4569esac
4570fi
4571ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4572if test -n "$ac_pt_PKG_CONFIG"; then
4573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4574$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4575else
4576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577$as_echo "no" >&6; }
4578fi
4579
4580  if test "x$ac_pt_PKG_CONFIG" = x; then
4581    PKG_CONFIG=""
4582  else
4583    case $cross_compiling:$ac_tool_warned in
4584yes:)
4585{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4586$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4587ac_tool_warned=yes ;;
4588esac
4589    PKG_CONFIG=$ac_pt_PKG_CONFIG
4590  fi
4591else
4592  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4593fi
4594
4595fi
4596if test -n "$PKG_CONFIG"; then
4597	_pkg_min_version=0.9.0
4598	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4599$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4600	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4601		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4602$as_echo "yes" >&6; }
4603	else
4604		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4605$as_echo "no" >&6; }
4606		PKG_CONFIG=""
4607	fi
4608fi
4609# Make sure we can run config.sub.
4610$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4611  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4612
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4614$as_echo_n "checking build system type... " >&6; }
4615if ${ac_cv_build+:} false; then :
4616  $as_echo_n "(cached) " >&6
4617else
4618  ac_build_alias=$build_alias
4619test "x$ac_build_alias" = x &&
4620  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4621test "x$ac_build_alias" = x &&
4622  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4623ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4624  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4625
4626fi
4627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4628$as_echo "$ac_cv_build" >&6; }
4629case $ac_cv_build in
4630*-*-*) ;;
4631*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4632esac
4633build=$ac_cv_build
4634ac_save_IFS=$IFS; IFS='-'
4635set x $ac_cv_build
4636shift
4637build_cpu=$1
4638build_vendor=$2
4639shift; shift
4640# Remember, the first character of IFS is used to create $*,
4641# except with old shells:
4642build_os=$*
4643IFS=$ac_save_IFS
4644case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4645
4646
4647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4648$as_echo_n "checking host system type... " >&6; }
4649if ${ac_cv_host+:} false; then :
4650  $as_echo_n "(cached) " >&6
4651else
4652  if test "x$host_alias" = x; then
4653  ac_cv_host=$ac_cv_build
4654else
4655  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4656    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4657fi
4658
4659fi
4660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4661$as_echo "$ac_cv_host" >&6; }
4662case $ac_cv_host in
4663*-*-*) ;;
4664*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4665esac
4666host=$ac_cv_host
4667ac_save_IFS=$IFS; IFS='-'
4668set x $ac_cv_host
4669shift
4670host_cpu=$1
4671host_vendor=$2
4672shift; shift
4673# Remember, the first character of IFS is used to create $*,
4674# except with old shells:
4675host_os=$*
4676IFS=$ac_save_IFS
4677case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4678
4679
4680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4681$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4682if ${ac_cv_path_SED+:} false; then :
4683  $as_echo_n "(cached) " >&6
4684else
4685            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4686     for ac_i in 1 2 3 4 5 6 7; do
4687       ac_script="$ac_script$as_nl$ac_script"
4688     done
4689     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4690     { ac_script=; unset ac_script;}
4691     if test -z "$SED"; then
4692  ac_path_SED_found=false
4693  # Loop through the user's path and test for each of PROGNAME-LIST
4694  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695for as_dir in $PATH
4696do
4697  IFS=$as_save_IFS
4698  test -z "$as_dir" && as_dir=.
4699    for ac_prog in sed gsed; do
4700    for ac_exec_ext in '' $ac_executable_extensions; do
4701      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4702      as_fn_executable_p "$ac_path_SED" || continue
4703# Check for GNU ac_path_SED and select it if it is found.
4704  # Check for GNU $ac_path_SED
4705case `"$ac_path_SED" --version 2>&1` in
4706*GNU*)
4707  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4708*)
4709  ac_count=0
4710  $as_echo_n 0123456789 >"conftest.in"
4711  while :
4712  do
4713    cat "conftest.in" "conftest.in" >"conftest.tmp"
4714    mv "conftest.tmp" "conftest.in"
4715    cp "conftest.in" "conftest.nl"
4716    $as_echo '' >> "conftest.nl"
4717    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4718    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4719    as_fn_arith $ac_count + 1 && ac_count=$as_val
4720    if test $ac_count -gt ${ac_path_SED_max-0}; then
4721      # Best one so far, save it but keep looking for a better one
4722      ac_cv_path_SED="$ac_path_SED"
4723      ac_path_SED_max=$ac_count
4724    fi
4725    # 10*(2^10) chars as input seems more than enough
4726    test $ac_count -gt 10 && break
4727  done
4728  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4729esac
4730
4731      $ac_path_SED_found && break 3
4732    done
4733  done
4734  done
4735IFS=$as_save_IFS
4736  if test -z "$ac_cv_path_SED"; then
4737    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4738  fi
4739else
4740  ac_cv_path_SED=$SED
4741fi
4742
4743fi
4744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4745$as_echo "$ac_cv_path_SED" >&6; }
4746 SED="$ac_cv_path_SED"
4747  rm -f conftest.sed
4748
4749
4750
4751
4752
4753
4754# Check whether --enable-selective-werror was given.
4755if test "${enable_selective_werror+set}" = set; then :
4756  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4757else
4758  SELECTIVE_WERROR=yes
4759fi
4760
4761
4762
4763
4764
4765# -v is too short to test reliably with XORG_TESTSET_CFLAG
4766if test "x$SUNCC" = "xyes"; then
4767    BASE_CFLAGS="-v"
4768else
4769    BASE_CFLAGS=""
4770fi
4771
4772# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786xorg_testset_save_CFLAGS="$CFLAGS"
4787
4788if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4789	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4790	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4791$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4792if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4793  $as_echo_n "(cached) " >&6
4794else
4795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796/* end confdefs.h.  */
4797int i;
4798_ACEOF
4799if ac_fn_c_try_compile "$LINENO"; then :
4800  xorg_cv_cc_flag_unknown_warning_option=yes
4801else
4802  xorg_cv_cc_flag_unknown_warning_option=no
4803fi
4804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805fi
4806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4807$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4808	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4809	CFLAGS="$xorg_testset_save_CFLAGS"
4810fi
4811
4812if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4813	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4814		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4815	fi
4816	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4817	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4818$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4819if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4820  $as_echo_n "(cached) " >&6
4821else
4822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4823/* end confdefs.h.  */
4824int i;
4825_ACEOF
4826if ac_fn_c_try_compile "$LINENO"; then :
4827  xorg_cv_cc_flag_unused_command_line_argument=yes
4828else
4829  xorg_cv_cc_flag_unused_command_line_argument=no
4830fi
4831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4832fi
4833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4834$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4835	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4836	CFLAGS="$xorg_testset_save_CFLAGS"
4837fi
4838
4839found="no"
4840
4841	if test $found = "no" ; then
4842		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4843			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4844		fi
4845
4846		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4847			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4848		fi
4849
4850		CFLAGS="$CFLAGS -Wall"
4851
4852		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4853$as_echo_n "checking if $CC supports -Wall... " >&6; }
4854		cacheid=xorg_cv_cc_flag__Wall
4855		if eval \${$cacheid+:} false; then :
4856  $as_echo_n "(cached) " >&6
4857else
4858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4859/* end confdefs.h.  */
4860int i;
4861int
4862main ()
4863{
4864
4865  ;
4866  return 0;
4867}
4868_ACEOF
4869if ac_fn_c_try_link "$LINENO"; then :
4870  eval $cacheid=yes
4871else
4872  eval $cacheid=no
4873fi
4874rm -f core conftest.err conftest.$ac_objext \
4875    conftest$ac_exeext conftest.$ac_ext
4876fi
4877
4878
4879		CFLAGS="$xorg_testset_save_CFLAGS"
4880
4881		eval supported=\$$cacheid
4882		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4883$as_echo "$supported" >&6; }
4884		if test "$supported" = "yes" ; then
4885			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4886			found="yes"
4887		fi
4888	fi
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904xorg_testset_save_CFLAGS="$CFLAGS"
4905
4906if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4907	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4908	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4909$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4910if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4911  $as_echo_n "(cached) " >&6
4912else
4913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914/* end confdefs.h.  */
4915int i;
4916_ACEOF
4917if ac_fn_c_try_compile "$LINENO"; then :
4918  xorg_cv_cc_flag_unknown_warning_option=yes
4919else
4920  xorg_cv_cc_flag_unknown_warning_option=no
4921fi
4922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4923fi
4924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4925$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4926	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4927	CFLAGS="$xorg_testset_save_CFLAGS"
4928fi
4929
4930if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4931	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4932		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4933	fi
4934	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4935	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4936$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4937if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4938  $as_echo_n "(cached) " >&6
4939else
4940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4941/* end confdefs.h.  */
4942int i;
4943_ACEOF
4944if ac_fn_c_try_compile "$LINENO"; then :
4945  xorg_cv_cc_flag_unused_command_line_argument=yes
4946else
4947  xorg_cv_cc_flag_unused_command_line_argument=no
4948fi
4949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4950fi
4951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4952$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4953	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4954	CFLAGS="$xorg_testset_save_CFLAGS"
4955fi
4956
4957found="no"
4958
4959	if test $found = "no" ; then
4960		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4961			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4962		fi
4963
4964		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4965			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4966		fi
4967
4968		CFLAGS="$CFLAGS -Wpointer-arith"
4969
4970		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4971$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4972		cacheid=xorg_cv_cc_flag__Wpointer_arith
4973		if eval \${$cacheid+:} false; then :
4974  $as_echo_n "(cached) " >&6
4975else
4976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977/* end confdefs.h.  */
4978int i;
4979int
4980main ()
4981{
4982
4983  ;
4984  return 0;
4985}
4986_ACEOF
4987if ac_fn_c_try_link "$LINENO"; then :
4988  eval $cacheid=yes
4989else
4990  eval $cacheid=no
4991fi
4992rm -f core conftest.err conftest.$ac_objext \
4993    conftest$ac_exeext conftest.$ac_ext
4994fi
4995
4996
4997		CFLAGS="$xorg_testset_save_CFLAGS"
4998
4999		eval supported=\$$cacheid
5000		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5001$as_echo "$supported" >&6; }
5002		if test "$supported" = "yes" ; then
5003			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5004			found="yes"
5005		fi
5006	fi
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022xorg_testset_save_CFLAGS="$CFLAGS"
5023
5024if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5025	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5026	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5027$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5028if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5029  $as_echo_n "(cached) " >&6
5030else
5031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5032/* end confdefs.h.  */
5033int i;
5034_ACEOF
5035if ac_fn_c_try_compile "$LINENO"; then :
5036  xorg_cv_cc_flag_unknown_warning_option=yes
5037else
5038  xorg_cv_cc_flag_unknown_warning_option=no
5039fi
5040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5041fi
5042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5043$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5044	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5045	CFLAGS="$xorg_testset_save_CFLAGS"
5046fi
5047
5048if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5049	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5050		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5051	fi
5052	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5053	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5054$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5055if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5056  $as_echo_n "(cached) " >&6
5057else
5058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5059/* end confdefs.h.  */
5060int i;
5061_ACEOF
5062if ac_fn_c_try_compile "$LINENO"; then :
5063  xorg_cv_cc_flag_unused_command_line_argument=yes
5064else
5065  xorg_cv_cc_flag_unused_command_line_argument=no
5066fi
5067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5068fi
5069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5070$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5071	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5072	CFLAGS="$xorg_testset_save_CFLAGS"
5073fi
5074
5075found="no"
5076
5077	if test $found = "no" ; then
5078		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5079			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5080		fi
5081
5082		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5083			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5084		fi
5085
5086		CFLAGS="$CFLAGS -Wmissing-declarations"
5087
5088		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5089$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5090		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5091		if eval \${$cacheid+:} false; then :
5092  $as_echo_n "(cached) " >&6
5093else
5094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5095/* end confdefs.h.  */
5096int i;
5097int
5098main ()
5099{
5100
5101  ;
5102  return 0;
5103}
5104_ACEOF
5105if ac_fn_c_try_link "$LINENO"; then :
5106  eval $cacheid=yes
5107else
5108  eval $cacheid=no
5109fi
5110rm -f core conftest.err conftest.$ac_objext \
5111    conftest$ac_exeext conftest.$ac_ext
5112fi
5113
5114
5115		CFLAGS="$xorg_testset_save_CFLAGS"
5116
5117		eval supported=\$$cacheid
5118		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5119$as_echo "$supported" >&6; }
5120		if test "$supported" = "yes" ; then
5121			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5122			found="yes"
5123		fi
5124	fi
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140xorg_testset_save_CFLAGS="$CFLAGS"
5141
5142if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5143	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5144	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5145$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5146if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5147  $as_echo_n "(cached) " >&6
5148else
5149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150/* end confdefs.h.  */
5151int i;
5152_ACEOF
5153if ac_fn_c_try_compile "$LINENO"; then :
5154  xorg_cv_cc_flag_unknown_warning_option=yes
5155else
5156  xorg_cv_cc_flag_unknown_warning_option=no
5157fi
5158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5159fi
5160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5161$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5162	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5163	CFLAGS="$xorg_testset_save_CFLAGS"
5164fi
5165
5166if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5167	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5168		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5169	fi
5170	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5171	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5172$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5173if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5174  $as_echo_n "(cached) " >&6
5175else
5176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177/* end confdefs.h.  */
5178int i;
5179_ACEOF
5180if ac_fn_c_try_compile "$LINENO"; then :
5181  xorg_cv_cc_flag_unused_command_line_argument=yes
5182else
5183  xorg_cv_cc_flag_unused_command_line_argument=no
5184fi
5185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5186fi
5187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5188$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5189	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5190	CFLAGS="$xorg_testset_save_CFLAGS"
5191fi
5192
5193found="no"
5194
5195	if test $found = "no" ; then
5196		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5197			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5198		fi
5199
5200		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5201			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5202		fi
5203
5204		CFLAGS="$CFLAGS -Wformat=2"
5205
5206		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5207$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5208		cacheid=xorg_cv_cc_flag__Wformat_2
5209		if eval \${$cacheid+:} false; then :
5210  $as_echo_n "(cached) " >&6
5211else
5212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213/* end confdefs.h.  */
5214int i;
5215int
5216main ()
5217{
5218
5219  ;
5220  return 0;
5221}
5222_ACEOF
5223if ac_fn_c_try_link "$LINENO"; then :
5224  eval $cacheid=yes
5225else
5226  eval $cacheid=no
5227fi
5228rm -f core conftest.err conftest.$ac_objext \
5229    conftest$ac_exeext conftest.$ac_ext
5230fi
5231
5232
5233		CFLAGS="$xorg_testset_save_CFLAGS"
5234
5235		eval supported=\$$cacheid
5236		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5237$as_echo "$supported" >&6; }
5238		if test "$supported" = "yes" ; then
5239			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5240			found="yes"
5241		fi
5242	fi
5243
5244	if test $found = "no" ; then
5245		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5246			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5247		fi
5248
5249		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5250			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5251		fi
5252
5253		CFLAGS="$CFLAGS -Wformat"
5254
5255		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5256$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5257		cacheid=xorg_cv_cc_flag__Wformat
5258		if eval \${$cacheid+:} false; then :
5259  $as_echo_n "(cached) " >&6
5260else
5261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262/* end confdefs.h.  */
5263int i;
5264int
5265main ()
5266{
5267
5268  ;
5269  return 0;
5270}
5271_ACEOF
5272if ac_fn_c_try_link "$LINENO"; then :
5273  eval $cacheid=yes
5274else
5275  eval $cacheid=no
5276fi
5277rm -f core conftest.err conftest.$ac_objext \
5278    conftest$ac_exeext conftest.$ac_ext
5279fi
5280
5281
5282		CFLAGS="$xorg_testset_save_CFLAGS"
5283
5284		eval supported=\$$cacheid
5285		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5286$as_echo "$supported" >&6; }
5287		if test "$supported" = "yes" ; then
5288			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5289			found="yes"
5290		fi
5291	fi
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309xorg_testset_save_CFLAGS="$CFLAGS"
5310
5311if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5312	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5313	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5314$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5315if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5316  $as_echo_n "(cached) " >&6
5317else
5318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5319/* end confdefs.h.  */
5320int i;
5321_ACEOF
5322if ac_fn_c_try_compile "$LINENO"; then :
5323  xorg_cv_cc_flag_unknown_warning_option=yes
5324else
5325  xorg_cv_cc_flag_unknown_warning_option=no
5326fi
5327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5328fi
5329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5330$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5331	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5332	CFLAGS="$xorg_testset_save_CFLAGS"
5333fi
5334
5335if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5336	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5337		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5338	fi
5339	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5340	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5341$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5342if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5343  $as_echo_n "(cached) " >&6
5344else
5345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5346/* end confdefs.h.  */
5347int i;
5348_ACEOF
5349if ac_fn_c_try_compile "$LINENO"; then :
5350  xorg_cv_cc_flag_unused_command_line_argument=yes
5351else
5352  xorg_cv_cc_flag_unused_command_line_argument=no
5353fi
5354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5355fi
5356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5357$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5358	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5359	CFLAGS="$xorg_testset_save_CFLAGS"
5360fi
5361
5362found="no"
5363
5364	if test $found = "no" ; then
5365		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5366			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5367		fi
5368
5369		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5370			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5371		fi
5372
5373		CFLAGS="$CFLAGS -Wstrict-prototypes"
5374
5375		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5376$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5377		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5378		if eval \${$cacheid+:} false; then :
5379  $as_echo_n "(cached) " >&6
5380else
5381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382/* end confdefs.h.  */
5383int i;
5384int
5385main ()
5386{
5387
5388  ;
5389  return 0;
5390}
5391_ACEOF
5392if ac_fn_c_try_link "$LINENO"; then :
5393  eval $cacheid=yes
5394else
5395  eval $cacheid=no
5396fi
5397rm -f core conftest.err conftest.$ac_objext \
5398    conftest$ac_exeext conftest.$ac_ext
5399fi
5400
5401
5402		CFLAGS="$xorg_testset_save_CFLAGS"
5403
5404		eval supported=\$$cacheid
5405		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5406$as_echo "$supported" >&6; }
5407		if test "$supported" = "yes" ; then
5408			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5409			found="yes"
5410		fi
5411	fi
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427xorg_testset_save_CFLAGS="$CFLAGS"
5428
5429if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5430	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5431	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5432$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5433if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5434  $as_echo_n "(cached) " >&6
5435else
5436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5437/* end confdefs.h.  */
5438int i;
5439_ACEOF
5440if ac_fn_c_try_compile "$LINENO"; then :
5441  xorg_cv_cc_flag_unknown_warning_option=yes
5442else
5443  xorg_cv_cc_flag_unknown_warning_option=no
5444fi
5445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5446fi
5447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5448$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5449	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5450	CFLAGS="$xorg_testset_save_CFLAGS"
5451fi
5452
5453if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5454	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5455		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5456	fi
5457	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5458	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5459$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5460if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5461  $as_echo_n "(cached) " >&6
5462else
5463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464/* end confdefs.h.  */
5465int i;
5466_ACEOF
5467if ac_fn_c_try_compile "$LINENO"; then :
5468  xorg_cv_cc_flag_unused_command_line_argument=yes
5469else
5470  xorg_cv_cc_flag_unused_command_line_argument=no
5471fi
5472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5473fi
5474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5475$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5476	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5477	CFLAGS="$xorg_testset_save_CFLAGS"
5478fi
5479
5480found="no"
5481
5482	if test $found = "no" ; then
5483		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5484			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5485		fi
5486
5487		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5488			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5489		fi
5490
5491		CFLAGS="$CFLAGS -Wmissing-prototypes"
5492
5493		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5494$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5495		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5496		if eval \${$cacheid+:} false; then :
5497  $as_echo_n "(cached) " >&6
5498else
5499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5500/* end confdefs.h.  */
5501int i;
5502int
5503main ()
5504{
5505
5506  ;
5507  return 0;
5508}
5509_ACEOF
5510if ac_fn_c_try_link "$LINENO"; then :
5511  eval $cacheid=yes
5512else
5513  eval $cacheid=no
5514fi
5515rm -f core conftest.err conftest.$ac_objext \
5516    conftest$ac_exeext conftest.$ac_ext
5517fi
5518
5519
5520		CFLAGS="$xorg_testset_save_CFLAGS"
5521
5522		eval supported=\$$cacheid
5523		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5524$as_echo "$supported" >&6; }
5525		if test "$supported" = "yes" ; then
5526			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5527			found="yes"
5528		fi
5529	fi
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545xorg_testset_save_CFLAGS="$CFLAGS"
5546
5547if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5548	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5549	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5550$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5551if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5552  $as_echo_n "(cached) " >&6
5553else
5554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5555/* end confdefs.h.  */
5556int i;
5557_ACEOF
5558if ac_fn_c_try_compile "$LINENO"; then :
5559  xorg_cv_cc_flag_unknown_warning_option=yes
5560else
5561  xorg_cv_cc_flag_unknown_warning_option=no
5562fi
5563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5564fi
5565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5566$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5567	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5568	CFLAGS="$xorg_testset_save_CFLAGS"
5569fi
5570
5571if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5572	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5573		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5574	fi
5575	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5576	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5577$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5578if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5579  $as_echo_n "(cached) " >&6
5580else
5581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5582/* end confdefs.h.  */
5583int i;
5584_ACEOF
5585if ac_fn_c_try_compile "$LINENO"; then :
5586  xorg_cv_cc_flag_unused_command_line_argument=yes
5587else
5588  xorg_cv_cc_flag_unused_command_line_argument=no
5589fi
5590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5591fi
5592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5593$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5594	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5595	CFLAGS="$xorg_testset_save_CFLAGS"
5596fi
5597
5598found="no"
5599
5600	if test $found = "no" ; then
5601		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5602			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5603		fi
5604
5605		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5606			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5607		fi
5608
5609		CFLAGS="$CFLAGS -Wnested-externs"
5610
5611		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5612$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5613		cacheid=xorg_cv_cc_flag__Wnested_externs
5614		if eval \${$cacheid+:} false; then :
5615  $as_echo_n "(cached) " >&6
5616else
5617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618/* end confdefs.h.  */
5619int i;
5620int
5621main ()
5622{
5623
5624  ;
5625  return 0;
5626}
5627_ACEOF
5628if ac_fn_c_try_link "$LINENO"; then :
5629  eval $cacheid=yes
5630else
5631  eval $cacheid=no
5632fi
5633rm -f core conftest.err conftest.$ac_objext \
5634    conftest$ac_exeext conftest.$ac_ext
5635fi
5636
5637
5638		CFLAGS="$xorg_testset_save_CFLAGS"
5639
5640		eval supported=\$$cacheid
5641		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5642$as_echo "$supported" >&6; }
5643		if test "$supported" = "yes" ; then
5644			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5645			found="yes"
5646		fi
5647	fi
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663xorg_testset_save_CFLAGS="$CFLAGS"
5664
5665if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5666	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5667	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5668$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5669if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5670  $as_echo_n "(cached) " >&6
5671else
5672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5673/* end confdefs.h.  */
5674int i;
5675_ACEOF
5676if ac_fn_c_try_compile "$LINENO"; then :
5677  xorg_cv_cc_flag_unknown_warning_option=yes
5678else
5679  xorg_cv_cc_flag_unknown_warning_option=no
5680fi
5681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5682fi
5683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5684$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5685	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5686	CFLAGS="$xorg_testset_save_CFLAGS"
5687fi
5688
5689if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5690	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5691		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5692	fi
5693	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5694	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5695$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5696if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5697  $as_echo_n "(cached) " >&6
5698else
5699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5700/* end confdefs.h.  */
5701int i;
5702_ACEOF
5703if ac_fn_c_try_compile "$LINENO"; then :
5704  xorg_cv_cc_flag_unused_command_line_argument=yes
5705else
5706  xorg_cv_cc_flag_unused_command_line_argument=no
5707fi
5708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5709fi
5710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5711$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5712	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5713	CFLAGS="$xorg_testset_save_CFLAGS"
5714fi
5715
5716found="no"
5717
5718	if test $found = "no" ; then
5719		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5720			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5721		fi
5722
5723		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5724			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5725		fi
5726
5727		CFLAGS="$CFLAGS -Wbad-function-cast"
5728
5729		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5730$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5731		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5732		if eval \${$cacheid+:} false; then :
5733  $as_echo_n "(cached) " >&6
5734else
5735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5736/* end confdefs.h.  */
5737int i;
5738int
5739main ()
5740{
5741
5742  ;
5743  return 0;
5744}
5745_ACEOF
5746if ac_fn_c_try_link "$LINENO"; then :
5747  eval $cacheid=yes
5748else
5749  eval $cacheid=no
5750fi
5751rm -f core conftest.err conftest.$ac_objext \
5752    conftest$ac_exeext conftest.$ac_ext
5753fi
5754
5755
5756		CFLAGS="$xorg_testset_save_CFLAGS"
5757
5758		eval supported=\$$cacheid
5759		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5760$as_echo "$supported" >&6; }
5761		if test "$supported" = "yes" ; then
5762			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5763			found="yes"
5764		fi
5765	fi
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781xorg_testset_save_CFLAGS="$CFLAGS"
5782
5783if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5784	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5785	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5786$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5787if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5788  $as_echo_n "(cached) " >&6
5789else
5790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5791/* end confdefs.h.  */
5792int i;
5793_ACEOF
5794if ac_fn_c_try_compile "$LINENO"; then :
5795  xorg_cv_cc_flag_unknown_warning_option=yes
5796else
5797  xorg_cv_cc_flag_unknown_warning_option=no
5798fi
5799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5800fi
5801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5802$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5803	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5804	CFLAGS="$xorg_testset_save_CFLAGS"
5805fi
5806
5807if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5808	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5809		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5810	fi
5811	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5812	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5813$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5814if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5815  $as_echo_n "(cached) " >&6
5816else
5817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5818/* end confdefs.h.  */
5819int i;
5820_ACEOF
5821if ac_fn_c_try_compile "$LINENO"; then :
5822  xorg_cv_cc_flag_unused_command_line_argument=yes
5823else
5824  xorg_cv_cc_flag_unused_command_line_argument=no
5825fi
5826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5827fi
5828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5829$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5830	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5831	CFLAGS="$xorg_testset_save_CFLAGS"
5832fi
5833
5834found="no"
5835
5836	if test $found = "no" ; then
5837		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5838			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5839		fi
5840
5841		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5842			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5843		fi
5844
5845		CFLAGS="$CFLAGS -Wold-style-definition"
5846
5847		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5848$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5849		cacheid=xorg_cv_cc_flag__Wold_style_definition
5850		if eval \${$cacheid+:} false; then :
5851  $as_echo_n "(cached) " >&6
5852else
5853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854/* end confdefs.h.  */
5855int i;
5856int
5857main ()
5858{
5859
5860  ;
5861  return 0;
5862}
5863_ACEOF
5864if ac_fn_c_try_link "$LINENO"; then :
5865  eval $cacheid=yes
5866else
5867  eval $cacheid=no
5868fi
5869rm -f core conftest.err conftest.$ac_objext \
5870    conftest$ac_exeext conftest.$ac_ext
5871fi
5872
5873
5874		CFLAGS="$xorg_testset_save_CFLAGS"
5875
5876		eval supported=\$$cacheid
5877		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5878$as_echo "$supported" >&6; }
5879		if test "$supported" = "yes" ; then
5880			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5881			found="yes"
5882		fi
5883	fi
5884
5885	if test $found = "no" ; then
5886		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5887			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5888		fi
5889
5890		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5891			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5892		fi
5893
5894		CFLAGS="$CFLAGS -fd"
5895
5896		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5897$as_echo_n "checking if $CC supports -fd... " >&6; }
5898		cacheid=xorg_cv_cc_flag__fd
5899		if eval \${$cacheid+:} false; then :
5900  $as_echo_n "(cached) " >&6
5901else
5902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5903/* end confdefs.h.  */
5904int i;
5905int
5906main ()
5907{
5908
5909  ;
5910  return 0;
5911}
5912_ACEOF
5913if ac_fn_c_try_link "$LINENO"; then :
5914  eval $cacheid=yes
5915else
5916  eval $cacheid=no
5917fi
5918rm -f core conftest.err conftest.$ac_objext \
5919    conftest$ac_exeext conftest.$ac_ext
5920fi
5921
5922
5923		CFLAGS="$xorg_testset_save_CFLAGS"
5924
5925		eval supported=\$$cacheid
5926		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5927$as_echo "$supported" >&6; }
5928		if test "$supported" = "yes" ; then
5929			BASE_CFLAGS="$BASE_CFLAGS -fd"
5930			found="yes"
5931		fi
5932	fi
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948xorg_testset_save_CFLAGS="$CFLAGS"
5949
5950if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5951	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5952	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5953$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5954if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5955  $as_echo_n "(cached) " >&6
5956else
5957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5958/* end confdefs.h.  */
5959int i;
5960_ACEOF
5961if ac_fn_c_try_compile "$LINENO"; then :
5962  xorg_cv_cc_flag_unknown_warning_option=yes
5963else
5964  xorg_cv_cc_flag_unknown_warning_option=no
5965fi
5966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5967fi
5968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5969$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5970	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5971	CFLAGS="$xorg_testset_save_CFLAGS"
5972fi
5973
5974if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5975	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5976		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5977	fi
5978	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5979	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5980$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5981if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5982  $as_echo_n "(cached) " >&6
5983else
5984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5985/* end confdefs.h.  */
5986int i;
5987_ACEOF
5988if ac_fn_c_try_compile "$LINENO"; then :
5989  xorg_cv_cc_flag_unused_command_line_argument=yes
5990else
5991  xorg_cv_cc_flag_unused_command_line_argument=no
5992fi
5993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5994fi
5995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5996$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5997	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5998	CFLAGS="$xorg_testset_save_CFLAGS"
5999fi
6000
6001found="no"
6002
6003	if test $found = "no" ; then
6004		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6005			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6006		fi
6007
6008		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6009			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6010		fi
6011
6012		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6013
6014		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6015$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6016		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6017		if eval \${$cacheid+:} false; then :
6018  $as_echo_n "(cached) " >&6
6019else
6020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6021/* end confdefs.h.  */
6022int i;
6023int
6024main ()
6025{
6026
6027  ;
6028  return 0;
6029}
6030_ACEOF
6031if ac_fn_c_try_link "$LINENO"; then :
6032  eval $cacheid=yes
6033else
6034  eval $cacheid=no
6035fi
6036rm -f core conftest.err conftest.$ac_objext \
6037    conftest$ac_exeext conftest.$ac_ext
6038fi
6039
6040
6041		CFLAGS="$xorg_testset_save_CFLAGS"
6042
6043		eval supported=\$$cacheid
6044		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6045$as_echo "$supported" >&6; }
6046		if test "$supported" = "yes" ; then
6047			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6048			found="yes"
6049		fi
6050	fi
6051
6052
6053
6054
6055
6056# This chunk adds additional warnings that could catch undesired effects.
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070xorg_testset_save_CFLAGS="$CFLAGS"
6071
6072if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6073	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6074	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6075$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6076if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6077  $as_echo_n "(cached) " >&6
6078else
6079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6080/* end confdefs.h.  */
6081int i;
6082_ACEOF
6083if ac_fn_c_try_compile "$LINENO"; then :
6084  xorg_cv_cc_flag_unknown_warning_option=yes
6085else
6086  xorg_cv_cc_flag_unknown_warning_option=no
6087fi
6088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6089fi
6090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6091$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6092	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6093	CFLAGS="$xorg_testset_save_CFLAGS"
6094fi
6095
6096if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6097	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6098		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6099	fi
6100	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6101	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6102$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6103if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6104  $as_echo_n "(cached) " >&6
6105else
6106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6107/* end confdefs.h.  */
6108int i;
6109_ACEOF
6110if ac_fn_c_try_compile "$LINENO"; then :
6111  xorg_cv_cc_flag_unused_command_line_argument=yes
6112else
6113  xorg_cv_cc_flag_unused_command_line_argument=no
6114fi
6115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6116fi
6117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6118$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6119	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6120	CFLAGS="$xorg_testset_save_CFLAGS"
6121fi
6122
6123found="no"
6124
6125	if test $found = "no" ; then
6126		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6127			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6128		fi
6129
6130		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6131			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6132		fi
6133
6134		CFLAGS="$CFLAGS -Wunused"
6135
6136		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6137$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6138		cacheid=xorg_cv_cc_flag__Wunused
6139		if eval \${$cacheid+:} false; then :
6140  $as_echo_n "(cached) " >&6
6141else
6142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6143/* end confdefs.h.  */
6144int i;
6145int
6146main ()
6147{
6148
6149  ;
6150  return 0;
6151}
6152_ACEOF
6153if ac_fn_c_try_link "$LINENO"; then :
6154  eval $cacheid=yes
6155else
6156  eval $cacheid=no
6157fi
6158rm -f core conftest.err conftest.$ac_objext \
6159    conftest$ac_exeext conftest.$ac_ext
6160fi
6161
6162
6163		CFLAGS="$xorg_testset_save_CFLAGS"
6164
6165		eval supported=\$$cacheid
6166		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6167$as_echo "$supported" >&6; }
6168		if test "$supported" = "yes" ; then
6169			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6170			found="yes"
6171		fi
6172	fi
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188xorg_testset_save_CFLAGS="$CFLAGS"
6189
6190if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6191	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6192	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6193$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6194if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6195  $as_echo_n "(cached) " >&6
6196else
6197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6198/* end confdefs.h.  */
6199int i;
6200_ACEOF
6201if ac_fn_c_try_compile "$LINENO"; then :
6202  xorg_cv_cc_flag_unknown_warning_option=yes
6203else
6204  xorg_cv_cc_flag_unknown_warning_option=no
6205fi
6206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6207fi
6208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6209$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6210	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6211	CFLAGS="$xorg_testset_save_CFLAGS"
6212fi
6213
6214if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6215	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6216		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6217	fi
6218	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6219	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6220$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6221if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6222  $as_echo_n "(cached) " >&6
6223else
6224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225/* end confdefs.h.  */
6226int i;
6227_ACEOF
6228if ac_fn_c_try_compile "$LINENO"; then :
6229  xorg_cv_cc_flag_unused_command_line_argument=yes
6230else
6231  xorg_cv_cc_flag_unused_command_line_argument=no
6232fi
6233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6234fi
6235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6236$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6237	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6238	CFLAGS="$xorg_testset_save_CFLAGS"
6239fi
6240
6241found="no"
6242
6243	if test $found = "no" ; then
6244		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6245			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6246		fi
6247
6248		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6249			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6250		fi
6251
6252		CFLAGS="$CFLAGS -Wuninitialized"
6253
6254		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6255$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6256		cacheid=xorg_cv_cc_flag__Wuninitialized
6257		if eval \${$cacheid+:} false; then :
6258  $as_echo_n "(cached) " >&6
6259else
6260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6261/* end confdefs.h.  */
6262int i;
6263int
6264main ()
6265{
6266
6267  ;
6268  return 0;
6269}
6270_ACEOF
6271if ac_fn_c_try_link "$LINENO"; then :
6272  eval $cacheid=yes
6273else
6274  eval $cacheid=no
6275fi
6276rm -f core conftest.err conftest.$ac_objext \
6277    conftest$ac_exeext conftest.$ac_ext
6278fi
6279
6280
6281		CFLAGS="$xorg_testset_save_CFLAGS"
6282
6283		eval supported=\$$cacheid
6284		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6285$as_echo "$supported" >&6; }
6286		if test "$supported" = "yes" ; then
6287			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6288			found="yes"
6289		fi
6290	fi
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306xorg_testset_save_CFLAGS="$CFLAGS"
6307
6308if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6309	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6310	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6311$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6312if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6313  $as_echo_n "(cached) " >&6
6314else
6315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316/* end confdefs.h.  */
6317int i;
6318_ACEOF
6319if ac_fn_c_try_compile "$LINENO"; then :
6320  xorg_cv_cc_flag_unknown_warning_option=yes
6321else
6322  xorg_cv_cc_flag_unknown_warning_option=no
6323fi
6324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6325fi
6326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6327$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6328	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6329	CFLAGS="$xorg_testset_save_CFLAGS"
6330fi
6331
6332if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6333	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6334		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6335	fi
6336	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6337	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6338$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6339if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6340  $as_echo_n "(cached) " >&6
6341else
6342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6343/* end confdefs.h.  */
6344int i;
6345_ACEOF
6346if ac_fn_c_try_compile "$LINENO"; then :
6347  xorg_cv_cc_flag_unused_command_line_argument=yes
6348else
6349  xorg_cv_cc_flag_unused_command_line_argument=no
6350fi
6351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6352fi
6353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6354$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6355	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6356	CFLAGS="$xorg_testset_save_CFLAGS"
6357fi
6358
6359found="no"
6360
6361	if test $found = "no" ; then
6362		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6363			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6364		fi
6365
6366		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6367			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6368		fi
6369
6370		CFLAGS="$CFLAGS -Wshadow"
6371
6372		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6373$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6374		cacheid=xorg_cv_cc_flag__Wshadow
6375		if eval \${$cacheid+:} false; then :
6376  $as_echo_n "(cached) " >&6
6377else
6378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6379/* end confdefs.h.  */
6380int i;
6381int
6382main ()
6383{
6384
6385  ;
6386  return 0;
6387}
6388_ACEOF
6389if ac_fn_c_try_link "$LINENO"; then :
6390  eval $cacheid=yes
6391else
6392  eval $cacheid=no
6393fi
6394rm -f core conftest.err conftest.$ac_objext \
6395    conftest$ac_exeext conftest.$ac_ext
6396fi
6397
6398
6399		CFLAGS="$xorg_testset_save_CFLAGS"
6400
6401		eval supported=\$$cacheid
6402		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6403$as_echo "$supported" >&6; }
6404		if test "$supported" = "yes" ; then
6405			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6406			found="yes"
6407		fi
6408	fi
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424xorg_testset_save_CFLAGS="$CFLAGS"
6425
6426if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6427	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6428	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6429$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6430if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6431  $as_echo_n "(cached) " >&6
6432else
6433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6434/* end confdefs.h.  */
6435int i;
6436_ACEOF
6437if ac_fn_c_try_compile "$LINENO"; then :
6438  xorg_cv_cc_flag_unknown_warning_option=yes
6439else
6440  xorg_cv_cc_flag_unknown_warning_option=no
6441fi
6442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6443fi
6444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6445$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6446	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6447	CFLAGS="$xorg_testset_save_CFLAGS"
6448fi
6449
6450if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6451	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6452		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6453	fi
6454	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6455	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6456$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6457if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6458  $as_echo_n "(cached) " >&6
6459else
6460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461/* end confdefs.h.  */
6462int i;
6463_ACEOF
6464if ac_fn_c_try_compile "$LINENO"; then :
6465  xorg_cv_cc_flag_unused_command_line_argument=yes
6466else
6467  xorg_cv_cc_flag_unused_command_line_argument=no
6468fi
6469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6470fi
6471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6472$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6473	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6474	CFLAGS="$xorg_testset_save_CFLAGS"
6475fi
6476
6477found="no"
6478
6479	if test $found = "no" ; then
6480		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6481			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6482		fi
6483
6484		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6485			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6486		fi
6487
6488		CFLAGS="$CFLAGS -Wmissing-noreturn"
6489
6490		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6491$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6492		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6493		if eval \${$cacheid+:} false; then :
6494  $as_echo_n "(cached) " >&6
6495else
6496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6497/* end confdefs.h.  */
6498int i;
6499int
6500main ()
6501{
6502
6503  ;
6504  return 0;
6505}
6506_ACEOF
6507if ac_fn_c_try_link "$LINENO"; then :
6508  eval $cacheid=yes
6509else
6510  eval $cacheid=no
6511fi
6512rm -f core conftest.err conftest.$ac_objext \
6513    conftest$ac_exeext conftest.$ac_ext
6514fi
6515
6516
6517		CFLAGS="$xorg_testset_save_CFLAGS"
6518
6519		eval supported=\$$cacheid
6520		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6521$as_echo "$supported" >&6; }
6522		if test "$supported" = "yes" ; then
6523			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6524			found="yes"
6525		fi
6526	fi
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542xorg_testset_save_CFLAGS="$CFLAGS"
6543
6544if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6545	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6546	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6547$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6548if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6549  $as_echo_n "(cached) " >&6
6550else
6551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552/* end confdefs.h.  */
6553int i;
6554_ACEOF
6555if ac_fn_c_try_compile "$LINENO"; then :
6556  xorg_cv_cc_flag_unknown_warning_option=yes
6557else
6558  xorg_cv_cc_flag_unknown_warning_option=no
6559fi
6560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6561fi
6562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6563$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6564	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6565	CFLAGS="$xorg_testset_save_CFLAGS"
6566fi
6567
6568if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6569	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6570		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6571	fi
6572	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6573	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6574$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6575if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6576  $as_echo_n "(cached) " >&6
6577else
6578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6579/* end confdefs.h.  */
6580int i;
6581_ACEOF
6582if ac_fn_c_try_compile "$LINENO"; then :
6583  xorg_cv_cc_flag_unused_command_line_argument=yes
6584else
6585  xorg_cv_cc_flag_unused_command_line_argument=no
6586fi
6587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6588fi
6589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6590$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6591	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6592	CFLAGS="$xorg_testset_save_CFLAGS"
6593fi
6594
6595found="no"
6596
6597	if test $found = "no" ; then
6598		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6599			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6600		fi
6601
6602		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6603			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6604		fi
6605
6606		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6607
6608		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6609$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6610		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6611		if eval \${$cacheid+:} false; then :
6612  $as_echo_n "(cached) " >&6
6613else
6614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6615/* end confdefs.h.  */
6616int i;
6617int
6618main ()
6619{
6620
6621  ;
6622  return 0;
6623}
6624_ACEOF
6625if ac_fn_c_try_link "$LINENO"; then :
6626  eval $cacheid=yes
6627else
6628  eval $cacheid=no
6629fi
6630rm -f core conftest.err conftest.$ac_objext \
6631    conftest$ac_exeext conftest.$ac_ext
6632fi
6633
6634
6635		CFLAGS="$xorg_testset_save_CFLAGS"
6636
6637		eval supported=\$$cacheid
6638		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6639$as_echo "$supported" >&6; }
6640		if test "$supported" = "yes" ; then
6641			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6642			found="yes"
6643		fi
6644	fi
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660xorg_testset_save_CFLAGS="$CFLAGS"
6661
6662if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6663	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6664	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6665$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6666if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6667  $as_echo_n "(cached) " >&6
6668else
6669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670/* end confdefs.h.  */
6671int i;
6672_ACEOF
6673if ac_fn_c_try_compile "$LINENO"; then :
6674  xorg_cv_cc_flag_unknown_warning_option=yes
6675else
6676  xorg_cv_cc_flag_unknown_warning_option=no
6677fi
6678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6679fi
6680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6681$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6682	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6683	CFLAGS="$xorg_testset_save_CFLAGS"
6684fi
6685
6686if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6687	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6688		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6689	fi
6690	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6691	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6692$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6693if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6694  $as_echo_n "(cached) " >&6
6695else
6696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6697/* end confdefs.h.  */
6698int i;
6699_ACEOF
6700if ac_fn_c_try_compile "$LINENO"; then :
6701  xorg_cv_cc_flag_unused_command_line_argument=yes
6702else
6703  xorg_cv_cc_flag_unused_command_line_argument=no
6704fi
6705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6706fi
6707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6708$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6709	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6710	CFLAGS="$xorg_testset_save_CFLAGS"
6711fi
6712
6713found="no"
6714
6715	if test $found = "no" ; then
6716		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6717			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6718		fi
6719
6720		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6721			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6722		fi
6723
6724		CFLAGS="$CFLAGS -Wredundant-decls"
6725
6726		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6727$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6728		cacheid=xorg_cv_cc_flag__Wredundant_decls
6729		if eval \${$cacheid+:} false; then :
6730  $as_echo_n "(cached) " >&6
6731else
6732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6733/* end confdefs.h.  */
6734int i;
6735int
6736main ()
6737{
6738
6739  ;
6740  return 0;
6741}
6742_ACEOF
6743if ac_fn_c_try_link "$LINENO"; then :
6744  eval $cacheid=yes
6745else
6746  eval $cacheid=no
6747fi
6748rm -f core conftest.err conftest.$ac_objext \
6749    conftest$ac_exeext conftest.$ac_ext
6750fi
6751
6752
6753		CFLAGS="$xorg_testset_save_CFLAGS"
6754
6755		eval supported=\$$cacheid
6756		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6757$as_echo "$supported" >&6; }
6758		if test "$supported" = "yes" ; then
6759			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6760			found="yes"
6761		fi
6762	fi
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778xorg_testset_save_CFLAGS="$CFLAGS"
6779
6780if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6781	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6782	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6783$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6784if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6785  $as_echo_n "(cached) " >&6
6786else
6787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6788/* end confdefs.h.  */
6789int i;
6790_ACEOF
6791if ac_fn_c_try_compile "$LINENO"; then :
6792  xorg_cv_cc_flag_unknown_warning_option=yes
6793else
6794  xorg_cv_cc_flag_unknown_warning_option=no
6795fi
6796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6797fi
6798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6799$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6800	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6801	CFLAGS="$xorg_testset_save_CFLAGS"
6802fi
6803
6804if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6805	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6806		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6807	fi
6808	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6809	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6810$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6811if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6812  $as_echo_n "(cached) " >&6
6813else
6814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6815/* end confdefs.h.  */
6816int i;
6817_ACEOF
6818if ac_fn_c_try_compile "$LINENO"; then :
6819  xorg_cv_cc_flag_unused_command_line_argument=yes
6820else
6821  xorg_cv_cc_flag_unused_command_line_argument=no
6822fi
6823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6824fi
6825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6826$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6827	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6828	CFLAGS="$xorg_testset_save_CFLAGS"
6829fi
6830
6831found="no"
6832
6833	if test $found = "no" ; then
6834		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6835			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6836		fi
6837
6838		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6839			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6840		fi
6841
6842		CFLAGS="$CFLAGS -Wlogical-op"
6843
6844		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6845$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6846		cacheid=xorg_cv_cc_flag__Wlogical_op
6847		if eval \${$cacheid+:} false; then :
6848  $as_echo_n "(cached) " >&6
6849else
6850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851/* end confdefs.h.  */
6852int i;
6853int
6854main ()
6855{
6856
6857  ;
6858  return 0;
6859}
6860_ACEOF
6861if ac_fn_c_try_link "$LINENO"; then :
6862  eval $cacheid=yes
6863else
6864  eval $cacheid=no
6865fi
6866rm -f core conftest.err conftest.$ac_objext \
6867    conftest$ac_exeext conftest.$ac_ext
6868fi
6869
6870
6871		CFLAGS="$xorg_testset_save_CFLAGS"
6872
6873		eval supported=\$$cacheid
6874		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6875$as_echo "$supported" >&6; }
6876		if test "$supported" = "yes" ; then
6877			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6878			found="yes"
6879		fi
6880	fi
6881
6882
6883
6884# These are currently disabled because they are noisy.  They will be enabled
6885# in the future once the codebase is sufficiently modernized to silence
6886# them.  For now, I don't want them to drown out the other warnings.
6887# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6888# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6889# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6890
6891# Turn some warnings into errors, so we don't accidently get successful builds
6892# when there are problems that should be fixed.
6893
6894if test "x$SELECTIVE_WERROR" = "xyes" ; then
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908xorg_testset_save_CFLAGS="$CFLAGS"
6909
6910if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6911	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6912	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6913$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6914if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6915  $as_echo_n "(cached) " >&6
6916else
6917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6918/* end confdefs.h.  */
6919int i;
6920_ACEOF
6921if ac_fn_c_try_compile "$LINENO"; then :
6922  xorg_cv_cc_flag_unknown_warning_option=yes
6923else
6924  xorg_cv_cc_flag_unknown_warning_option=no
6925fi
6926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6927fi
6928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6929$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6930	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6931	CFLAGS="$xorg_testset_save_CFLAGS"
6932fi
6933
6934if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6935	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6936		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6937	fi
6938	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6939	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6940$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6941if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6942  $as_echo_n "(cached) " >&6
6943else
6944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6945/* end confdefs.h.  */
6946int i;
6947_ACEOF
6948if ac_fn_c_try_compile "$LINENO"; then :
6949  xorg_cv_cc_flag_unused_command_line_argument=yes
6950else
6951  xorg_cv_cc_flag_unused_command_line_argument=no
6952fi
6953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6954fi
6955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6956$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6957	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6958	CFLAGS="$xorg_testset_save_CFLAGS"
6959fi
6960
6961found="no"
6962
6963	if test $found = "no" ; then
6964		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6965			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6966		fi
6967
6968		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6969			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6970		fi
6971
6972		CFLAGS="$CFLAGS -Werror=implicit"
6973
6974		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6975$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6976		cacheid=xorg_cv_cc_flag__Werror_implicit
6977		if eval \${$cacheid+:} false; then :
6978  $as_echo_n "(cached) " >&6
6979else
6980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6981/* end confdefs.h.  */
6982int i;
6983int
6984main ()
6985{
6986
6987  ;
6988  return 0;
6989}
6990_ACEOF
6991if ac_fn_c_try_link "$LINENO"; then :
6992  eval $cacheid=yes
6993else
6994  eval $cacheid=no
6995fi
6996rm -f core conftest.err conftest.$ac_objext \
6997    conftest$ac_exeext conftest.$ac_ext
6998fi
6999
7000
7001		CFLAGS="$xorg_testset_save_CFLAGS"
7002
7003		eval supported=\$$cacheid
7004		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7005$as_echo "$supported" >&6; }
7006		if test "$supported" = "yes" ; then
7007			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7008			found="yes"
7009		fi
7010	fi
7011
7012	if test $found = "no" ; then
7013		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7014			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7015		fi
7016
7017		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7018			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7019		fi
7020
7021		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7022
7023		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7024$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7025		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7026		if eval \${$cacheid+:} false; then :
7027  $as_echo_n "(cached) " >&6
7028else
7029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7030/* end confdefs.h.  */
7031int i;
7032int
7033main ()
7034{
7035
7036  ;
7037  return 0;
7038}
7039_ACEOF
7040if ac_fn_c_try_link "$LINENO"; then :
7041  eval $cacheid=yes
7042else
7043  eval $cacheid=no
7044fi
7045rm -f core conftest.err conftest.$ac_objext \
7046    conftest$ac_exeext conftest.$ac_ext
7047fi
7048
7049
7050		CFLAGS="$xorg_testset_save_CFLAGS"
7051
7052		eval supported=\$$cacheid
7053		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7054$as_echo "$supported" >&6; }
7055		if test "$supported" = "yes" ; then
7056			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7057			found="yes"
7058		fi
7059	fi
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075xorg_testset_save_CFLAGS="$CFLAGS"
7076
7077if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7078	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7079	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7080$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7081if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7082  $as_echo_n "(cached) " >&6
7083else
7084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7085/* end confdefs.h.  */
7086int i;
7087_ACEOF
7088if ac_fn_c_try_compile "$LINENO"; then :
7089  xorg_cv_cc_flag_unknown_warning_option=yes
7090else
7091  xorg_cv_cc_flag_unknown_warning_option=no
7092fi
7093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7094fi
7095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7096$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7097	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7098	CFLAGS="$xorg_testset_save_CFLAGS"
7099fi
7100
7101if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7102	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7103		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7104	fi
7105	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7106	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7107$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7108if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7109  $as_echo_n "(cached) " >&6
7110else
7111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7112/* end confdefs.h.  */
7113int i;
7114_ACEOF
7115if ac_fn_c_try_compile "$LINENO"; then :
7116  xorg_cv_cc_flag_unused_command_line_argument=yes
7117else
7118  xorg_cv_cc_flag_unused_command_line_argument=no
7119fi
7120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7121fi
7122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7123$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7124	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7125	CFLAGS="$xorg_testset_save_CFLAGS"
7126fi
7127
7128found="no"
7129
7130	if test $found = "no" ; then
7131		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7132			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7133		fi
7134
7135		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7136			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7137		fi
7138
7139		CFLAGS="$CFLAGS -Werror=nonnull"
7140
7141		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7142$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7143		cacheid=xorg_cv_cc_flag__Werror_nonnull
7144		if eval \${$cacheid+:} false; then :
7145  $as_echo_n "(cached) " >&6
7146else
7147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7148/* end confdefs.h.  */
7149int i;
7150int
7151main ()
7152{
7153
7154  ;
7155  return 0;
7156}
7157_ACEOF
7158if ac_fn_c_try_link "$LINENO"; then :
7159  eval $cacheid=yes
7160else
7161  eval $cacheid=no
7162fi
7163rm -f core conftest.err conftest.$ac_objext \
7164    conftest$ac_exeext conftest.$ac_ext
7165fi
7166
7167
7168		CFLAGS="$xorg_testset_save_CFLAGS"
7169
7170		eval supported=\$$cacheid
7171		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7172$as_echo "$supported" >&6; }
7173		if test "$supported" = "yes" ; then
7174			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7175			found="yes"
7176		fi
7177	fi
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193xorg_testset_save_CFLAGS="$CFLAGS"
7194
7195if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7196	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7197	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7198$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7199if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7200  $as_echo_n "(cached) " >&6
7201else
7202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7203/* end confdefs.h.  */
7204int i;
7205_ACEOF
7206if ac_fn_c_try_compile "$LINENO"; then :
7207  xorg_cv_cc_flag_unknown_warning_option=yes
7208else
7209  xorg_cv_cc_flag_unknown_warning_option=no
7210fi
7211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7212fi
7213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7214$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7215	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7216	CFLAGS="$xorg_testset_save_CFLAGS"
7217fi
7218
7219if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7220	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7221		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7222	fi
7223	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7224	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7225$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7226if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7227  $as_echo_n "(cached) " >&6
7228else
7229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7230/* end confdefs.h.  */
7231int i;
7232_ACEOF
7233if ac_fn_c_try_compile "$LINENO"; then :
7234  xorg_cv_cc_flag_unused_command_line_argument=yes
7235else
7236  xorg_cv_cc_flag_unused_command_line_argument=no
7237fi
7238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7239fi
7240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7241$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7242	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7243	CFLAGS="$xorg_testset_save_CFLAGS"
7244fi
7245
7246found="no"
7247
7248	if test $found = "no" ; then
7249		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7250			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7251		fi
7252
7253		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7254			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7255		fi
7256
7257		CFLAGS="$CFLAGS -Werror=init-self"
7258
7259		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7260$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7261		cacheid=xorg_cv_cc_flag__Werror_init_self
7262		if eval \${$cacheid+:} false; then :
7263  $as_echo_n "(cached) " >&6
7264else
7265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266/* end confdefs.h.  */
7267int i;
7268int
7269main ()
7270{
7271
7272  ;
7273  return 0;
7274}
7275_ACEOF
7276if ac_fn_c_try_link "$LINENO"; then :
7277  eval $cacheid=yes
7278else
7279  eval $cacheid=no
7280fi
7281rm -f core conftest.err conftest.$ac_objext \
7282    conftest$ac_exeext conftest.$ac_ext
7283fi
7284
7285
7286		CFLAGS="$xorg_testset_save_CFLAGS"
7287
7288		eval supported=\$$cacheid
7289		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7290$as_echo "$supported" >&6; }
7291		if test "$supported" = "yes" ; then
7292			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7293			found="yes"
7294		fi
7295	fi
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311xorg_testset_save_CFLAGS="$CFLAGS"
7312
7313if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7314	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7315	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7316$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7317if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7318  $as_echo_n "(cached) " >&6
7319else
7320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7321/* end confdefs.h.  */
7322int i;
7323_ACEOF
7324if ac_fn_c_try_compile "$LINENO"; then :
7325  xorg_cv_cc_flag_unknown_warning_option=yes
7326else
7327  xorg_cv_cc_flag_unknown_warning_option=no
7328fi
7329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7330fi
7331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7332$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7333	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7334	CFLAGS="$xorg_testset_save_CFLAGS"
7335fi
7336
7337if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7338	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7339		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7340	fi
7341	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7342	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7343$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7344if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7345  $as_echo_n "(cached) " >&6
7346else
7347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7348/* end confdefs.h.  */
7349int i;
7350_ACEOF
7351if ac_fn_c_try_compile "$LINENO"; then :
7352  xorg_cv_cc_flag_unused_command_line_argument=yes
7353else
7354  xorg_cv_cc_flag_unused_command_line_argument=no
7355fi
7356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357fi
7358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7359$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7360	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7361	CFLAGS="$xorg_testset_save_CFLAGS"
7362fi
7363
7364found="no"
7365
7366	if test $found = "no" ; then
7367		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7368			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7369		fi
7370
7371		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7372			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7373		fi
7374
7375		CFLAGS="$CFLAGS -Werror=main"
7376
7377		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7378$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7379		cacheid=xorg_cv_cc_flag__Werror_main
7380		if eval \${$cacheid+:} false; then :
7381  $as_echo_n "(cached) " >&6
7382else
7383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7384/* end confdefs.h.  */
7385int i;
7386int
7387main ()
7388{
7389
7390  ;
7391  return 0;
7392}
7393_ACEOF
7394if ac_fn_c_try_link "$LINENO"; then :
7395  eval $cacheid=yes
7396else
7397  eval $cacheid=no
7398fi
7399rm -f core conftest.err conftest.$ac_objext \
7400    conftest$ac_exeext conftest.$ac_ext
7401fi
7402
7403
7404		CFLAGS="$xorg_testset_save_CFLAGS"
7405
7406		eval supported=\$$cacheid
7407		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7408$as_echo "$supported" >&6; }
7409		if test "$supported" = "yes" ; then
7410			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7411			found="yes"
7412		fi
7413	fi
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429xorg_testset_save_CFLAGS="$CFLAGS"
7430
7431if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7432	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7433	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7434$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7435if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7436  $as_echo_n "(cached) " >&6
7437else
7438  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7439/* end confdefs.h.  */
7440int i;
7441_ACEOF
7442if ac_fn_c_try_compile "$LINENO"; then :
7443  xorg_cv_cc_flag_unknown_warning_option=yes
7444else
7445  xorg_cv_cc_flag_unknown_warning_option=no
7446fi
7447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7448fi
7449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7450$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7451	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7452	CFLAGS="$xorg_testset_save_CFLAGS"
7453fi
7454
7455if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7456	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7457		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7458	fi
7459	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7460	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7461$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7462if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7463  $as_echo_n "(cached) " >&6
7464else
7465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7466/* end confdefs.h.  */
7467int i;
7468_ACEOF
7469if ac_fn_c_try_compile "$LINENO"; then :
7470  xorg_cv_cc_flag_unused_command_line_argument=yes
7471else
7472  xorg_cv_cc_flag_unused_command_line_argument=no
7473fi
7474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7475fi
7476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7477$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7478	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7479	CFLAGS="$xorg_testset_save_CFLAGS"
7480fi
7481
7482found="no"
7483
7484	if test $found = "no" ; then
7485		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7486			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7487		fi
7488
7489		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7490			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7491		fi
7492
7493		CFLAGS="$CFLAGS -Werror=missing-braces"
7494
7495		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7496$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7497		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7498		if eval \${$cacheid+:} false; then :
7499  $as_echo_n "(cached) " >&6
7500else
7501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7502/* end confdefs.h.  */
7503int i;
7504int
7505main ()
7506{
7507
7508  ;
7509  return 0;
7510}
7511_ACEOF
7512if ac_fn_c_try_link "$LINENO"; then :
7513  eval $cacheid=yes
7514else
7515  eval $cacheid=no
7516fi
7517rm -f core conftest.err conftest.$ac_objext \
7518    conftest$ac_exeext conftest.$ac_ext
7519fi
7520
7521
7522		CFLAGS="$xorg_testset_save_CFLAGS"
7523
7524		eval supported=\$$cacheid
7525		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7526$as_echo "$supported" >&6; }
7527		if test "$supported" = "yes" ; then
7528			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7529			found="yes"
7530		fi
7531	fi
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547xorg_testset_save_CFLAGS="$CFLAGS"
7548
7549if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7550	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7551	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7552$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7553if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7554  $as_echo_n "(cached) " >&6
7555else
7556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557/* end confdefs.h.  */
7558int i;
7559_ACEOF
7560if ac_fn_c_try_compile "$LINENO"; then :
7561  xorg_cv_cc_flag_unknown_warning_option=yes
7562else
7563  xorg_cv_cc_flag_unknown_warning_option=no
7564fi
7565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7566fi
7567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7568$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7569	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7570	CFLAGS="$xorg_testset_save_CFLAGS"
7571fi
7572
7573if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7574	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7575		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7576	fi
7577	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7578	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7579$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7580if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7581  $as_echo_n "(cached) " >&6
7582else
7583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7584/* end confdefs.h.  */
7585int i;
7586_ACEOF
7587if ac_fn_c_try_compile "$LINENO"; then :
7588  xorg_cv_cc_flag_unused_command_line_argument=yes
7589else
7590  xorg_cv_cc_flag_unused_command_line_argument=no
7591fi
7592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7593fi
7594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7595$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7596	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7597	CFLAGS="$xorg_testset_save_CFLAGS"
7598fi
7599
7600found="no"
7601
7602	if test $found = "no" ; then
7603		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7604			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7605		fi
7606
7607		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7608			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7609		fi
7610
7611		CFLAGS="$CFLAGS -Werror=sequence-point"
7612
7613		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7614$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7615		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7616		if eval \${$cacheid+:} false; then :
7617  $as_echo_n "(cached) " >&6
7618else
7619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7620/* end confdefs.h.  */
7621int i;
7622int
7623main ()
7624{
7625
7626  ;
7627  return 0;
7628}
7629_ACEOF
7630if ac_fn_c_try_link "$LINENO"; then :
7631  eval $cacheid=yes
7632else
7633  eval $cacheid=no
7634fi
7635rm -f core conftest.err conftest.$ac_objext \
7636    conftest$ac_exeext conftest.$ac_ext
7637fi
7638
7639
7640		CFLAGS="$xorg_testset_save_CFLAGS"
7641
7642		eval supported=\$$cacheid
7643		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7644$as_echo "$supported" >&6; }
7645		if test "$supported" = "yes" ; then
7646			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7647			found="yes"
7648		fi
7649	fi
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665xorg_testset_save_CFLAGS="$CFLAGS"
7666
7667if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7668	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7669	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7670$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7671if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7672  $as_echo_n "(cached) " >&6
7673else
7674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7675/* end confdefs.h.  */
7676int i;
7677_ACEOF
7678if ac_fn_c_try_compile "$LINENO"; then :
7679  xorg_cv_cc_flag_unknown_warning_option=yes
7680else
7681  xorg_cv_cc_flag_unknown_warning_option=no
7682fi
7683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7684fi
7685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7686$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7687	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7688	CFLAGS="$xorg_testset_save_CFLAGS"
7689fi
7690
7691if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7692	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7693		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7694	fi
7695	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7696	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7697$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7698if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7699  $as_echo_n "(cached) " >&6
7700else
7701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7702/* end confdefs.h.  */
7703int i;
7704_ACEOF
7705if ac_fn_c_try_compile "$LINENO"; then :
7706  xorg_cv_cc_flag_unused_command_line_argument=yes
7707else
7708  xorg_cv_cc_flag_unused_command_line_argument=no
7709fi
7710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7711fi
7712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7713$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7714	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7715	CFLAGS="$xorg_testset_save_CFLAGS"
7716fi
7717
7718found="no"
7719
7720	if test $found = "no" ; then
7721		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7722			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7723		fi
7724
7725		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7726			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7727		fi
7728
7729		CFLAGS="$CFLAGS -Werror=return-type"
7730
7731		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7732$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7733		cacheid=xorg_cv_cc_flag__Werror_return_type
7734		if eval \${$cacheid+:} false; then :
7735  $as_echo_n "(cached) " >&6
7736else
7737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7738/* end confdefs.h.  */
7739int i;
7740int
7741main ()
7742{
7743
7744  ;
7745  return 0;
7746}
7747_ACEOF
7748if ac_fn_c_try_link "$LINENO"; then :
7749  eval $cacheid=yes
7750else
7751  eval $cacheid=no
7752fi
7753rm -f core conftest.err conftest.$ac_objext \
7754    conftest$ac_exeext conftest.$ac_ext
7755fi
7756
7757
7758		CFLAGS="$xorg_testset_save_CFLAGS"
7759
7760		eval supported=\$$cacheid
7761		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7762$as_echo "$supported" >&6; }
7763		if test "$supported" = "yes" ; then
7764			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7765			found="yes"
7766		fi
7767	fi
7768
7769	if test $found = "no" ; then
7770		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7771			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7772		fi
7773
7774		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7775			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7776		fi
7777
7778		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7779
7780		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7781$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7782		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7783		if eval \${$cacheid+:} false; then :
7784  $as_echo_n "(cached) " >&6
7785else
7786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787/* end confdefs.h.  */
7788int i;
7789int
7790main ()
7791{
7792
7793  ;
7794  return 0;
7795}
7796_ACEOF
7797if ac_fn_c_try_link "$LINENO"; then :
7798  eval $cacheid=yes
7799else
7800  eval $cacheid=no
7801fi
7802rm -f core conftest.err conftest.$ac_objext \
7803    conftest$ac_exeext conftest.$ac_ext
7804fi
7805
7806
7807		CFLAGS="$xorg_testset_save_CFLAGS"
7808
7809		eval supported=\$$cacheid
7810		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7811$as_echo "$supported" >&6; }
7812		if test "$supported" = "yes" ; then
7813			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7814			found="yes"
7815		fi
7816	fi
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832xorg_testset_save_CFLAGS="$CFLAGS"
7833
7834if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7835	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7836	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7837$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7838if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7839  $as_echo_n "(cached) " >&6
7840else
7841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7842/* end confdefs.h.  */
7843int i;
7844_ACEOF
7845if ac_fn_c_try_compile "$LINENO"; then :
7846  xorg_cv_cc_flag_unknown_warning_option=yes
7847else
7848  xorg_cv_cc_flag_unknown_warning_option=no
7849fi
7850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7851fi
7852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7853$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7854	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7855	CFLAGS="$xorg_testset_save_CFLAGS"
7856fi
7857
7858if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7859	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7860		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7861	fi
7862	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7863	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7864$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7865if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7866  $as_echo_n "(cached) " >&6
7867else
7868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7869/* end confdefs.h.  */
7870int i;
7871_ACEOF
7872if ac_fn_c_try_compile "$LINENO"; then :
7873  xorg_cv_cc_flag_unused_command_line_argument=yes
7874else
7875  xorg_cv_cc_flag_unused_command_line_argument=no
7876fi
7877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7878fi
7879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7880$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7881	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7882	CFLAGS="$xorg_testset_save_CFLAGS"
7883fi
7884
7885found="no"
7886
7887	if test $found = "no" ; then
7888		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7889			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7890		fi
7891
7892		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7893			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7894		fi
7895
7896		CFLAGS="$CFLAGS -Werror=trigraphs"
7897
7898		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7899$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7900		cacheid=xorg_cv_cc_flag__Werror_trigraphs
7901		if eval \${$cacheid+:} false; then :
7902  $as_echo_n "(cached) " >&6
7903else
7904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7905/* end confdefs.h.  */
7906int i;
7907int
7908main ()
7909{
7910
7911  ;
7912  return 0;
7913}
7914_ACEOF
7915if ac_fn_c_try_link "$LINENO"; then :
7916  eval $cacheid=yes
7917else
7918  eval $cacheid=no
7919fi
7920rm -f core conftest.err conftest.$ac_objext \
7921    conftest$ac_exeext conftest.$ac_ext
7922fi
7923
7924
7925		CFLAGS="$xorg_testset_save_CFLAGS"
7926
7927		eval supported=\$$cacheid
7928		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7929$as_echo "$supported" >&6; }
7930		if test "$supported" = "yes" ; then
7931			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7932			found="yes"
7933		fi
7934	fi
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950xorg_testset_save_CFLAGS="$CFLAGS"
7951
7952if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7953	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7954	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7955$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7956if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7957  $as_echo_n "(cached) " >&6
7958else
7959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960/* end confdefs.h.  */
7961int i;
7962_ACEOF
7963if ac_fn_c_try_compile "$LINENO"; then :
7964  xorg_cv_cc_flag_unknown_warning_option=yes
7965else
7966  xorg_cv_cc_flag_unknown_warning_option=no
7967fi
7968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7969fi
7970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7971$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7972	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7973	CFLAGS="$xorg_testset_save_CFLAGS"
7974fi
7975
7976if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7977	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7978		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7979	fi
7980	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7981	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7982$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7983if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7984  $as_echo_n "(cached) " >&6
7985else
7986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987/* end confdefs.h.  */
7988int i;
7989_ACEOF
7990if ac_fn_c_try_compile "$LINENO"; then :
7991  xorg_cv_cc_flag_unused_command_line_argument=yes
7992else
7993  xorg_cv_cc_flag_unused_command_line_argument=no
7994fi
7995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7996fi
7997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7998$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7999	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8000	CFLAGS="$xorg_testset_save_CFLAGS"
8001fi
8002
8003found="no"
8004
8005	if test $found = "no" ; then
8006		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8007			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8008		fi
8009
8010		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8011			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8012		fi
8013
8014		CFLAGS="$CFLAGS -Werror=array-bounds"
8015
8016		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8017$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8018		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8019		if eval \${$cacheid+:} false; then :
8020  $as_echo_n "(cached) " >&6
8021else
8022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8023/* end confdefs.h.  */
8024int i;
8025int
8026main ()
8027{
8028
8029  ;
8030  return 0;
8031}
8032_ACEOF
8033if ac_fn_c_try_link "$LINENO"; then :
8034  eval $cacheid=yes
8035else
8036  eval $cacheid=no
8037fi
8038rm -f core conftest.err conftest.$ac_objext \
8039    conftest$ac_exeext conftest.$ac_ext
8040fi
8041
8042
8043		CFLAGS="$xorg_testset_save_CFLAGS"
8044
8045		eval supported=\$$cacheid
8046		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8047$as_echo "$supported" >&6; }
8048		if test "$supported" = "yes" ; then
8049			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8050			found="yes"
8051		fi
8052	fi
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068xorg_testset_save_CFLAGS="$CFLAGS"
8069
8070if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8071	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8072	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8073$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8074if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8075  $as_echo_n "(cached) " >&6
8076else
8077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8078/* end confdefs.h.  */
8079int i;
8080_ACEOF
8081if ac_fn_c_try_compile "$LINENO"; then :
8082  xorg_cv_cc_flag_unknown_warning_option=yes
8083else
8084  xorg_cv_cc_flag_unknown_warning_option=no
8085fi
8086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8087fi
8088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8089$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8090	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8091	CFLAGS="$xorg_testset_save_CFLAGS"
8092fi
8093
8094if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8095	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8096		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8097	fi
8098	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8099	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8100$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8101if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8102  $as_echo_n "(cached) " >&6
8103else
8104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8105/* end confdefs.h.  */
8106int i;
8107_ACEOF
8108if ac_fn_c_try_compile "$LINENO"; then :
8109  xorg_cv_cc_flag_unused_command_line_argument=yes
8110else
8111  xorg_cv_cc_flag_unused_command_line_argument=no
8112fi
8113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8114fi
8115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8116$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8117	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8118	CFLAGS="$xorg_testset_save_CFLAGS"
8119fi
8120
8121found="no"
8122
8123	if test $found = "no" ; then
8124		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8125			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8126		fi
8127
8128		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8129			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8130		fi
8131
8132		CFLAGS="$CFLAGS -Werror=write-strings"
8133
8134		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8135$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8136		cacheid=xorg_cv_cc_flag__Werror_write_strings
8137		if eval \${$cacheid+:} false; then :
8138  $as_echo_n "(cached) " >&6
8139else
8140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8141/* end confdefs.h.  */
8142int i;
8143int
8144main ()
8145{
8146
8147  ;
8148  return 0;
8149}
8150_ACEOF
8151if ac_fn_c_try_link "$LINENO"; then :
8152  eval $cacheid=yes
8153else
8154  eval $cacheid=no
8155fi
8156rm -f core conftest.err conftest.$ac_objext \
8157    conftest$ac_exeext conftest.$ac_ext
8158fi
8159
8160
8161		CFLAGS="$xorg_testset_save_CFLAGS"
8162
8163		eval supported=\$$cacheid
8164		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8165$as_echo "$supported" >&6; }
8166		if test "$supported" = "yes" ; then
8167			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8168			found="yes"
8169		fi
8170	fi
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186xorg_testset_save_CFLAGS="$CFLAGS"
8187
8188if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8189	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8190	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8191$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8192if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8193  $as_echo_n "(cached) " >&6
8194else
8195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8196/* end confdefs.h.  */
8197int i;
8198_ACEOF
8199if ac_fn_c_try_compile "$LINENO"; then :
8200  xorg_cv_cc_flag_unknown_warning_option=yes
8201else
8202  xorg_cv_cc_flag_unknown_warning_option=no
8203fi
8204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8205fi
8206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8207$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8208	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8209	CFLAGS="$xorg_testset_save_CFLAGS"
8210fi
8211
8212if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8213	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8214		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8215	fi
8216	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8217	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8218$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8219if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8220  $as_echo_n "(cached) " >&6
8221else
8222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8223/* end confdefs.h.  */
8224int i;
8225_ACEOF
8226if ac_fn_c_try_compile "$LINENO"; then :
8227  xorg_cv_cc_flag_unused_command_line_argument=yes
8228else
8229  xorg_cv_cc_flag_unused_command_line_argument=no
8230fi
8231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8232fi
8233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8234$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8235	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8236	CFLAGS="$xorg_testset_save_CFLAGS"
8237fi
8238
8239found="no"
8240
8241	if test $found = "no" ; then
8242		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8243			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8244		fi
8245
8246		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8247			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8248		fi
8249
8250		CFLAGS="$CFLAGS -Werror=address"
8251
8252		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8253$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8254		cacheid=xorg_cv_cc_flag__Werror_address
8255		if eval \${$cacheid+:} false; then :
8256  $as_echo_n "(cached) " >&6
8257else
8258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8259/* end confdefs.h.  */
8260int i;
8261int
8262main ()
8263{
8264
8265  ;
8266  return 0;
8267}
8268_ACEOF
8269if ac_fn_c_try_link "$LINENO"; then :
8270  eval $cacheid=yes
8271else
8272  eval $cacheid=no
8273fi
8274rm -f core conftest.err conftest.$ac_objext \
8275    conftest$ac_exeext conftest.$ac_ext
8276fi
8277
8278
8279		CFLAGS="$xorg_testset_save_CFLAGS"
8280
8281		eval supported=\$$cacheid
8282		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8283$as_echo "$supported" >&6; }
8284		if test "$supported" = "yes" ; then
8285			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8286			found="yes"
8287		fi
8288	fi
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304xorg_testset_save_CFLAGS="$CFLAGS"
8305
8306if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8307	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8308	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8309$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8310if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8311  $as_echo_n "(cached) " >&6
8312else
8313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8314/* end confdefs.h.  */
8315int i;
8316_ACEOF
8317if ac_fn_c_try_compile "$LINENO"; then :
8318  xorg_cv_cc_flag_unknown_warning_option=yes
8319else
8320  xorg_cv_cc_flag_unknown_warning_option=no
8321fi
8322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8323fi
8324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8325$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8326	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8327	CFLAGS="$xorg_testset_save_CFLAGS"
8328fi
8329
8330if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8331	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8332		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8333	fi
8334	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8335	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8336$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8337if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8338  $as_echo_n "(cached) " >&6
8339else
8340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8341/* end confdefs.h.  */
8342int i;
8343_ACEOF
8344if ac_fn_c_try_compile "$LINENO"; then :
8345  xorg_cv_cc_flag_unused_command_line_argument=yes
8346else
8347  xorg_cv_cc_flag_unused_command_line_argument=no
8348fi
8349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8350fi
8351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8352$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8353	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8354	CFLAGS="$xorg_testset_save_CFLAGS"
8355fi
8356
8357found="no"
8358
8359	if test $found = "no" ; then
8360		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8361			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8362		fi
8363
8364		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8365			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8366		fi
8367
8368		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8369
8370		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8371$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8372		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8373		if eval \${$cacheid+:} false; then :
8374  $as_echo_n "(cached) " >&6
8375else
8376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8377/* end confdefs.h.  */
8378int i;
8379int
8380main ()
8381{
8382
8383  ;
8384  return 0;
8385}
8386_ACEOF
8387if ac_fn_c_try_link "$LINENO"; then :
8388  eval $cacheid=yes
8389else
8390  eval $cacheid=no
8391fi
8392rm -f core conftest.err conftest.$ac_objext \
8393    conftest$ac_exeext conftest.$ac_ext
8394fi
8395
8396
8397		CFLAGS="$xorg_testset_save_CFLAGS"
8398
8399		eval supported=\$$cacheid
8400		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8401$as_echo "$supported" >&6; }
8402		if test "$supported" = "yes" ; then
8403			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8404			found="yes"
8405		fi
8406	fi
8407
8408	if test $found = "no" ; then
8409		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8410			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8411		fi
8412
8413		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8414			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8415		fi
8416
8417		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8418
8419		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8420$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8421		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8422		if eval \${$cacheid+:} false; then :
8423  $as_echo_n "(cached) " >&6
8424else
8425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8426/* end confdefs.h.  */
8427int i;
8428int
8429main ()
8430{
8431
8432  ;
8433  return 0;
8434}
8435_ACEOF
8436if ac_fn_c_try_link "$LINENO"; then :
8437  eval $cacheid=yes
8438else
8439  eval $cacheid=no
8440fi
8441rm -f core conftest.err conftest.$ac_objext \
8442    conftest$ac_exeext conftest.$ac_ext
8443fi
8444
8445
8446		CFLAGS="$xorg_testset_save_CFLAGS"
8447
8448		eval supported=\$$cacheid
8449		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8450$as_echo "$supported" >&6; }
8451		if test "$supported" = "yes" ; then
8452			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8453			found="yes"
8454		fi
8455	fi
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471xorg_testset_save_CFLAGS="$CFLAGS"
8472
8473if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8474	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8475	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8476$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8477if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8478  $as_echo_n "(cached) " >&6
8479else
8480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8481/* end confdefs.h.  */
8482int i;
8483_ACEOF
8484if ac_fn_c_try_compile "$LINENO"; then :
8485  xorg_cv_cc_flag_unknown_warning_option=yes
8486else
8487  xorg_cv_cc_flag_unknown_warning_option=no
8488fi
8489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8490fi
8491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8492$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8493	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8494	CFLAGS="$xorg_testset_save_CFLAGS"
8495fi
8496
8497if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8498	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8499		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8500	fi
8501	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8502	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8503$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8504if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8505  $as_echo_n "(cached) " >&6
8506else
8507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8508/* end confdefs.h.  */
8509int i;
8510_ACEOF
8511if ac_fn_c_try_compile "$LINENO"; then :
8512  xorg_cv_cc_flag_unused_command_line_argument=yes
8513else
8514  xorg_cv_cc_flag_unused_command_line_argument=no
8515fi
8516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8517fi
8518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8519$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8520	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8521	CFLAGS="$xorg_testset_save_CFLAGS"
8522fi
8523
8524found="no"
8525
8526	if test $found = "no" ; then
8527		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8528			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8529		fi
8530
8531		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8532			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8533		fi
8534
8535		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8536
8537		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8538$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8539		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8540		if eval \${$cacheid+:} false; then :
8541  $as_echo_n "(cached) " >&6
8542else
8543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8544/* end confdefs.h.  */
8545int i;
8546int
8547main ()
8548{
8549
8550  ;
8551  return 0;
8552}
8553_ACEOF
8554if ac_fn_c_try_link "$LINENO"; then :
8555  eval $cacheid=yes
8556else
8557  eval $cacheid=no
8558fi
8559rm -f core conftest.err conftest.$ac_objext \
8560    conftest$ac_exeext conftest.$ac_ext
8561fi
8562
8563
8564		CFLAGS="$xorg_testset_save_CFLAGS"
8565
8566		eval supported=\$$cacheid
8567		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8568$as_echo "$supported" >&6; }
8569		if test "$supported" = "yes" ; then
8570			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8571			found="yes"
8572		fi
8573	fi
8574
8575 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8576else
8577{ $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
8578$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;}
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592xorg_testset_save_CFLAGS="$CFLAGS"
8593
8594if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8595	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8596	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8597$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8598if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8599  $as_echo_n "(cached) " >&6
8600else
8601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8602/* end confdefs.h.  */
8603int i;
8604_ACEOF
8605if ac_fn_c_try_compile "$LINENO"; then :
8606  xorg_cv_cc_flag_unknown_warning_option=yes
8607else
8608  xorg_cv_cc_flag_unknown_warning_option=no
8609fi
8610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8611fi
8612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8613$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8614	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8615	CFLAGS="$xorg_testset_save_CFLAGS"
8616fi
8617
8618if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8619	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8620		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8621	fi
8622	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8623	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8624$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8625if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8626  $as_echo_n "(cached) " >&6
8627else
8628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8629/* end confdefs.h.  */
8630int i;
8631_ACEOF
8632if ac_fn_c_try_compile "$LINENO"; then :
8633  xorg_cv_cc_flag_unused_command_line_argument=yes
8634else
8635  xorg_cv_cc_flag_unused_command_line_argument=no
8636fi
8637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8638fi
8639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8640$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8641	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8642	CFLAGS="$xorg_testset_save_CFLAGS"
8643fi
8644
8645found="no"
8646
8647	if test $found = "no" ; then
8648		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8649			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8650		fi
8651
8652		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8653			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8654		fi
8655
8656		CFLAGS="$CFLAGS -Wimplicit"
8657
8658		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8659$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8660		cacheid=xorg_cv_cc_flag__Wimplicit
8661		if eval \${$cacheid+:} false; then :
8662  $as_echo_n "(cached) " >&6
8663else
8664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8665/* end confdefs.h.  */
8666int i;
8667int
8668main ()
8669{
8670
8671  ;
8672  return 0;
8673}
8674_ACEOF
8675if ac_fn_c_try_link "$LINENO"; then :
8676  eval $cacheid=yes
8677else
8678  eval $cacheid=no
8679fi
8680rm -f core conftest.err conftest.$ac_objext \
8681    conftest$ac_exeext conftest.$ac_ext
8682fi
8683
8684
8685		CFLAGS="$xorg_testset_save_CFLAGS"
8686
8687		eval supported=\$$cacheid
8688		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8689$as_echo "$supported" >&6; }
8690		if test "$supported" = "yes" ; then
8691			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8692			found="yes"
8693		fi
8694	fi
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710xorg_testset_save_CFLAGS="$CFLAGS"
8711
8712if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8713	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8714	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8715$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8716if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8717  $as_echo_n "(cached) " >&6
8718else
8719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8720/* end confdefs.h.  */
8721int i;
8722_ACEOF
8723if ac_fn_c_try_compile "$LINENO"; then :
8724  xorg_cv_cc_flag_unknown_warning_option=yes
8725else
8726  xorg_cv_cc_flag_unknown_warning_option=no
8727fi
8728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8729fi
8730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8731$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8732	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8733	CFLAGS="$xorg_testset_save_CFLAGS"
8734fi
8735
8736if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8737	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8738		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8739	fi
8740	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8741	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8742$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8743if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8744  $as_echo_n "(cached) " >&6
8745else
8746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8747/* end confdefs.h.  */
8748int i;
8749_ACEOF
8750if ac_fn_c_try_compile "$LINENO"; then :
8751  xorg_cv_cc_flag_unused_command_line_argument=yes
8752else
8753  xorg_cv_cc_flag_unused_command_line_argument=no
8754fi
8755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8756fi
8757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8758$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8759	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8760	CFLAGS="$xorg_testset_save_CFLAGS"
8761fi
8762
8763found="no"
8764
8765	if test $found = "no" ; then
8766		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8767			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8768		fi
8769
8770		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8771			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8772		fi
8773
8774		CFLAGS="$CFLAGS -Wnonnull"
8775
8776		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8777$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8778		cacheid=xorg_cv_cc_flag__Wnonnull
8779		if eval \${$cacheid+:} false; then :
8780  $as_echo_n "(cached) " >&6
8781else
8782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8783/* end confdefs.h.  */
8784int i;
8785int
8786main ()
8787{
8788
8789  ;
8790  return 0;
8791}
8792_ACEOF
8793if ac_fn_c_try_link "$LINENO"; then :
8794  eval $cacheid=yes
8795else
8796  eval $cacheid=no
8797fi
8798rm -f core conftest.err conftest.$ac_objext \
8799    conftest$ac_exeext conftest.$ac_ext
8800fi
8801
8802
8803		CFLAGS="$xorg_testset_save_CFLAGS"
8804
8805		eval supported=\$$cacheid
8806		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8807$as_echo "$supported" >&6; }
8808		if test "$supported" = "yes" ; then
8809			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8810			found="yes"
8811		fi
8812	fi
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828xorg_testset_save_CFLAGS="$CFLAGS"
8829
8830if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8831	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8832	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8833$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8834if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8835  $as_echo_n "(cached) " >&6
8836else
8837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8838/* end confdefs.h.  */
8839int i;
8840_ACEOF
8841if ac_fn_c_try_compile "$LINENO"; then :
8842  xorg_cv_cc_flag_unknown_warning_option=yes
8843else
8844  xorg_cv_cc_flag_unknown_warning_option=no
8845fi
8846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8847fi
8848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8849$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8850	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8851	CFLAGS="$xorg_testset_save_CFLAGS"
8852fi
8853
8854if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8855	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8856		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8857	fi
8858	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8859	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8860$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8861if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8862  $as_echo_n "(cached) " >&6
8863else
8864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8865/* end confdefs.h.  */
8866int i;
8867_ACEOF
8868if ac_fn_c_try_compile "$LINENO"; then :
8869  xorg_cv_cc_flag_unused_command_line_argument=yes
8870else
8871  xorg_cv_cc_flag_unused_command_line_argument=no
8872fi
8873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8874fi
8875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8876$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8877	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8878	CFLAGS="$xorg_testset_save_CFLAGS"
8879fi
8880
8881found="no"
8882
8883	if test $found = "no" ; then
8884		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8885			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8886		fi
8887
8888		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8889			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8890		fi
8891
8892		CFLAGS="$CFLAGS -Winit-self"
8893
8894		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8895$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8896		cacheid=xorg_cv_cc_flag__Winit_self
8897		if eval \${$cacheid+:} false; then :
8898  $as_echo_n "(cached) " >&6
8899else
8900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8901/* end confdefs.h.  */
8902int i;
8903int
8904main ()
8905{
8906
8907  ;
8908  return 0;
8909}
8910_ACEOF
8911if ac_fn_c_try_link "$LINENO"; then :
8912  eval $cacheid=yes
8913else
8914  eval $cacheid=no
8915fi
8916rm -f core conftest.err conftest.$ac_objext \
8917    conftest$ac_exeext conftest.$ac_ext
8918fi
8919
8920
8921		CFLAGS="$xorg_testset_save_CFLAGS"
8922
8923		eval supported=\$$cacheid
8924		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8925$as_echo "$supported" >&6; }
8926		if test "$supported" = "yes" ; then
8927			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8928			found="yes"
8929		fi
8930	fi
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946xorg_testset_save_CFLAGS="$CFLAGS"
8947
8948if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8949	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8950	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8951$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8952if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8953  $as_echo_n "(cached) " >&6
8954else
8955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8956/* end confdefs.h.  */
8957int i;
8958_ACEOF
8959if ac_fn_c_try_compile "$LINENO"; then :
8960  xorg_cv_cc_flag_unknown_warning_option=yes
8961else
8962  xorg_cv_cc_flag_unknown_warning_option=no
8963fi
8964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8965fi
8966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8967$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8968	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8969	CFLAGS="$xorg_testset_save_CFLAGS"
8970fi
8971
8972if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8973	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8974		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8975	fi
8976	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8977	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8978$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8979if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8980  $as_echo_n "(cached) " >&6
8981else
8982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8983/* end confdefs.h.  */
8984int i;
8985_ACEOF
8986if ac_fn_c_try_compile "$LINENO"; then :
8987  xorg_cv_cc_flag_unused_command_line_argument=yes
8988else
8989  xorg_cv_cc_flag_unused_command_line_argument=no
8990fi
8991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8992fi
8993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8994$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8995	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8996	CFLAGS="$xorg_testset_save_CFLAGS"
8997fi
8998
8999found="no"
9000
9001	if test $found = "no" ; then
9002		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9003			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9004		fi
9005
9006		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9007			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9008		fi
9009
9010		CFLAGS="$CFLAGS -Wmain"
9011
9012		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9013$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9014		cacheid=xorg_cv_cc_flag__Wmain
9015		if eval \${$cacheid+:} false; then :
9016  $as_echo_n "(cached) " >&6
9017else
9018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9019/* end confdefs.h.  */
9020int i;
9021int
9022main ()
9023{
9024
9025  ;
9026  return 0;
9027}
9028_ACEOF
9029if ac_fn_c_try_link "$LINENO"; then :
9030  eval $cacheid=yes
9031else
9032  eval $cacheid=no
9033fi
9034rm -f core conftest.err conftest.$ac_objext \
9035    conftest$ac_exeext conftest.$ac_ext
9036fi
9037
9038
9039		CFLAGS="$xorg_testset_save_CFLAGS"
9040
9041		eval supported=\$$cacheid
9042		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9043$as_echo "$supported" >&6; }
9044		if test "$supported" = "yes" ; then
9045			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9046			found="yes"
9047		fi
9048	fi
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064xorg_testset_save_CFLAGS="$CFLAGS"
9065
9066if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9067	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9068	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9069$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9070if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9071  $as_echo_n "(cached) " >&6
9072else
9073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9074/* end confdefs.h.  */
9075int i;
9076_ACEOF
9077if ac_fn_c_try_compile "$LINENO"; then :
9078  xorg_cv_cc_flag_unknown_warning_option=yes
9079else
9080  xorg_cv_cc_flag_unknown_warning_option=no
9081fi
9082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9083fi
9084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9085$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9086	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9087	CFLAGS="$xorg_testset_save_CFLAGS"
9088fi
9089
9090if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9091	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9092		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9093	fi
9094	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9095	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9096$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9097if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9098  $as_echo_n "(cached) " >&6
9099else
9100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9101/* end confdefs.h.  */
9102int i;
9103_ACEOF
9104if ac_fn_c_try_compile "$LINENO"; then :
9105  xorg_cv_cc_flag_unused_command_line_argument=yes
9106else
9107  xorg_cv_cc_flag_unused_command_line_argument=no
9108fi
9109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9110fi
9111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9112$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9113	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9114	CFLAGS="$xorg_testset_save_CFLAGS"
9115fi
9116
9117found="no"
9118
9119	if test $found = "no" ; then
9120		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9121			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9122		fi
9123
9124		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9125			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9126		fi
9127
9128		CFLAGS="$CFLAGS -Wmissing-braces"
9129
9130		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9131$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9132		cacheid=xorg_cv_cc_flag__Wmissing_braces
9133		if eval \${$cacheid+:} false; then :
9134  $as_echo_n "(cached) " >&6
9135else
9136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9137/* end confdefs.h.  */
9138int i;
9139int
9140main ()
9141{
9142
9143  ;
9144  return 0;
9145}
9146_ACEOF
9147if ac_fn_c_try_link "$LINENO"; then :
9148  eval $cacheid=yes
9149else
9150  eval $cacheid=no
9151fi
9152rm -f core conftest.err conftest.$ac_objext \
9153    conftest$ac_exeext conftest.$ac_ext
9154fi
9155
9156
9157		CFLAGS="$xorg_testset_save_CFLAGS"
9158
9159		eval supported=\$$cacheid
9160		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9161$as_echo "$supported" >&6; }
9162		if test "$supported" = "yes" ; then
9163			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9164			found="yes"
9165		fi
9166	fi
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182xorg_testset_save_CFLAGS="$CFLAGS"
9183
9184if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9185	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9186	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9187$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9188if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9189  $as_echo_n "(cached) " >&6
9190else
9191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9192/* end confdefs.h.  */
9193int i;
9194_ACEOF
9195if ac_fn_c_try_compile "$LINENO"; then :
9196  xorg_cv_cc_flag_unknown_warning_option=yes
9197else
9198  xorg_cv_cc_flag_unknown_warning_option=no
9199fi
9200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9201fi
9202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9203$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9204	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9205	CFLAGS="$xorg_testset_save_CFLAGS"
9206fi
9207
9208if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9209	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9210		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9211	fi
9212	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9213	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9214$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9215if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9216  $as_echo_n "(cached) " >&6
9217else
9218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9219/* end confdefs.h.  */
9220int i;
9221_ACEOF
9222if ac_fn_c_try_compile "$LINENO"; then :
9223  xorg_cv_cc_flag_unused_command_line_argument=yes
9224else
9225  xorg_cv_cc_flag_unused_command_line_argument=no
9226fi
9227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9228fi
9229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9230$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9231	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9232	CFLAGS="$xorg_testset_save_CFLAGS"
9233fi
9234
9235found="no"
9236
9237	if test $found = "no" ; then
9238		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9239			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9240		fi
9241
9242		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9243			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9244		fi
9245
9246		CFLAGS="$CFLAGS -Wsequence-point"
9247
9248		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9249$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9250		cacheid=xorg_cv_cc_flag__Wsequence_point
9251		if eval \${$cacheid+:} false; then :
9252  $as_echo_n "(cached) " >&6
9253else
9254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9255/* end confdefs.h.  */
9256int i;
9257int
9258main ()
9259{
9260
9261  ;
9262  return 0;
9263}
9264_ACEOF
9265if ac_fn_c_try_link "$LINENO"; then :
9266  eval $cacheid=yes
9267else
9268  eval $cacheid=no
9269fi
9270rm -f core conftest.err conftest.$ac_objext \
9271    conftest$ac_exeext conftest.$ac_ext
9272fi
9273
9274
9275		CFLAGS="$xorg_testset_save_CFLAGS"
9276
9277		eval supported=\$$cacheid
9278		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9279$as_echo "$supported" >&6; }
9280		if test "$supported" = "yes" ; then
9281			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9282			found="yes"
9283		fi
9284	fi
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300xorg_testset_save_CFLAGS="$CFLAGS"
9301
9302if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9303	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9304	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9305$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9306if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9307  $as_echo_n "(cached) " >&6
9308else
9309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9310/* end confdefs.h.  */
9311int i;
9312_ACEOF
9313if ac_fn_c_try_compile "$LINENO"; then :
9314  xorg_cv_cc_flag_unknown_warning_option=yes
9315else
9316  xorg_cv_cc_flag_unknown_warning_option=no
9317fi
9318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9319fi
9320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9321$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9322	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9323	CFLAGS="$xorg_testset_save_CFLAGS"
9324fi
9325
9326if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9327	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9328		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9329	fi
9330	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9331	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9332$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9333if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9334  $as_echo_n "(cached) " >&6
9335else
9336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9337/* end confdefs.h.  */
9338int i;
9339_ACEOF
9340if ac_fn_c_try_compile "$LINENO"; then :
9341  xorg_cv_cc_flag_unused_command_line_argument=yes
9342else
9343  xorg_cv_cc_flag_unused_command_line_argument=no
9344fi
9345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9346fi
9347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9348$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9349	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9350	CFLAGS="$xorg_testset_save_CFLAGS"
9351fi
9352
9353found="no"
9354
9355	if test $found = "no" ; then
9356		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9357			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9358		fi
9359
9360		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9361			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9362		fi
9363
9364		CFLAGS="$CFLAGS -Wreturn-type"
9365
9366		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9367$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9368		cacheid=xorg_cv_cc_flag__Wreturn_type
9369		if eval \${$cacheid+:} false; then :
9370  $as_echo_n "(cached) " >&6
9371else
9372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9373/* end confdefs.h.  */
9374int i;
9375int
9376main ()
9377{
9378
9379  ;
9380  return 0;
9381}
9382_ACEOF
9383if ac_fn_c_try_link "$LINENO"; then :
9384  eval $cacheid=yes
9385else
9386  eval $cacheid=no
9387fi
9388rm -f core conftest.err conftest.$ac_objext \
9389    conftest$ac_exeext conftest.$ac_ext
9390fi
9391
9392
9393		CFLAGS="$xorg_testset_save_CFLAGS"
9394
9395		eval supported=\$$cacheid
9396		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9397$as_echo "$supported" >&6; }
9398		if test "$supported" = "yes" ; then
9399			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9400			found="yes"
9401		fi
9402	fi
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418xorg_testset_save_CFLAGS="$CFLAGS"
9419
9420if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9421	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9422	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9423$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9424if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9425  $as_echo_n "(cached) " >&6
9426else
9427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9428/* end confdefs.h.  */
9429int i;
9430_ACEOF
9431if ac_fn_c_try_compile "$LINENO"; then :
9432  xorg_cv_cc_flag_unknown_warning_option=yes
9433else
9434  xorg_cv_cc_flag_unknown_warning_option=no
9435fi
9436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9437fi
9438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9439$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9440	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9441	CFLAGS="$xorg_testset_save_CFLAGS"
9442fi
9443
9444if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9445	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9446		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9447	fi
9448	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9449	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9450$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9451if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9452  $as_echo_n "(cached) " >&6
9453else
9454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9455/* end confdefs.h.  */
9456int i;
9457_ACEOF
9458if ac_fn_c_try_compile "$LINENO"; then :
9459  xorg_cv_cc_flag_unused_command_line_argument=yes
9460else
9461  xorg_cv_cc_flag_unused_command_line_argument=no
9462fi
9463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9464fi
9465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9466$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9467	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9468	CFLAGS="$xorg_testset_save_CFLAGS"
9469fi
9470
9471found="no"
9472
9473	if test $found = "no" ; then
9474		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9475			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9476		fi
9477
9478		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9479			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9480		fi
9481
9482		CFLAGS="$CFLAGS -Wtrigraphs"
9483
9484		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9485$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9486		cacheid=xorg_cv_cc_flag__Wtrigraphs
9487		if eval \${$cacheid+:} false; then :
9488  $as_echo_n "(cached) " >&6
9489else
9490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9491/* end confdefs.h.  */
9492int i;
9493int
9494main ()
9495{
9496
9497  ;
9498  return 0;
9499}
9500_ACEOF
9501if ac_fn_c_try_link "$LINENO"; then :
9502  eval $cacheid=yes
9503else
9504  eval $cacheid=no
9505fi
9506rm -f core conftest.err conftest.$ac_objext \
9507    conftest$ac_exeext conftest.$ac_ext
9508fi
9509
9510
9511		CFLAGS="$xorg_testset_save_CFLAGS"
9512
9513		eval supported=\$$cacheid
9514		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9515$as_echo "$supported" >&6; }
9516		if test "$supported" = "yes" ; then
9517			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9518			found="yes"
9519		fi
9520	fi
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536xorg_testset_save_CFLAGS="$CFLAGS"
9537
9538if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9539	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9540	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9541$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9542if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9543  $as_echo_n "(cached) " >&6
9544else
9545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9546/* end confdefs.h.  */
9547int i;
9548_ACEOF
9549if ac_fn_c_try_compile "$LINENO"; then :
9550  xorg_cv_cc_flag_unknown_warning_option=yes
9551else
9552  xorg_cv_cc_flag_unknown_warning_option=no
9553fi
9554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9555fi
9556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9557$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9558	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9559	CFLAGS="$xorg_testset_save_CFLAGS"
9560fi
9561
9562if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9563	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9564		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9565	fi
9566	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9567	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9568$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9569if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9570  $as_echo_n "(cached) " >&6
9571else
9572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9573/* end confdefs.h.  */
9574int i;
9575_ACEOF
9576if ac_fn_c_try_compile "$LINENO"; then :
9577  xorg_cv_cc_flag_unused_command_line_argument=yes
9578else
9579  xorg_cv_cc_flag_unused_command_line_argument=no
9580fi
9581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9582fi
9583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9584$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9585	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9586	CFLAGS="$xorg_testset_save_CFLAGS"
9587fi
9588
9589found="no"
9590
9591	if test $found = "no" ; then
9592		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9593			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9594		fi
9595
9596		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9597			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9598		fi
9599
9600		CFLAGS="$CFLAGS -Warray-bounds"
9601
9602		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9603$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9604		cacheid=xorg_cv_cc_flag__Warray_bounds
9605		if eval \${$cacheid+:} false; then :
9606  $as_echo_n "(cached) " >&6
9607else
9608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9609/* end confdefs.h.  */
9610int i;
9611int
9612main ()
9613{
9614
9615  ;
9616  return 0;
9617}
9618_ACEOF
9619if ac_fn_c_try_link "$LINENO"; then :
9620  eval $cacheid=yes
9621else
9622  eval $cacheid=no
9623fi
9624rm -f core conftest.err conftest.$ac_objext \
9625    conftest$ac_exeext conftest.$ac_ext
9626fi
9627
9628
9629		CFLAGS="$xorg_testset_save_CFLAGS"
9630
9631		eval supported=\$$cacheid
9632		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9633$as_echo "$supported" >&6; }
9634		if test "$supported" = "yes" ; then
9635			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9636			found="yes"
9637		fi
9638	fi
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654xorg_testset_save_CFLAGS="$CFLAGS"
9655
9656if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9657	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9658	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9659$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9660if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9661  $as_echo_n "(cached) " >&6
9662else
9663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9664/* end confdefs.h.  */
9665int i;
9666_ACEOF
9667if ac_fn_c_try_compile "$LINENO"; then :
9668  xorg_cv_cc_flag_unknown_warning_option=yes
9669else
9670  xorg_cv_cc_flag_unknown_warning_option=no
9671fi
9672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9673fi
9674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9675$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9676	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9677	CFLAGS="$xorg_testset_save_CFLAGS"
9678fi
9679
9680if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9681	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9682		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9683	fi
9684	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9685	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9686$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9687if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9688  $as_echo_n "(cached) " >&6
9689else
9690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9691/* end confdefs.h.  */
9692int i;
9693_ACEOF
9694if ac_fn_c_try_compile "$LINENO"; then :
9695  xorg_cv_cc_flag_unused_command_line_argument=yes
9696else
9697  xorg_cv_cc_flag_unused_command_line_argument=no
9698fi
9699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9700fi
9701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9702$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9703	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9704	CFLAGS="$xorg_testset_save_CFLAGS"
9705fi
9706
9707found="no"
9708
9709	if test $found = "no" ; then
9710		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9711			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9712		fi
9713
9714		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9715			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9716		fi
9717
9718		CFLAGS="$CFLAGS -Wwrite-strings"
9719
9720		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9721$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9722		cacheid=xorg_cv_cc_flag__Wwrite_strings
9723		if eval \${$cacheid+:} false; then :
9724  $as_echo_n "(cached) " >&6
9725else
9726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9727/* end confdefs.h.  */
9728int i;
9729int
9730main ()
9731{
9732
9733  ;
9734  return 0;
9735}
9736_ACEOF
9737if ac_fn_c_try_link "$LINENO"; then :
9738  eval $cacheid=yes
9739else
9740  eval $cacheid=no
9741fi
9742rm -f core conftest.err conftest.$ac_objext \
9743    conftest$ac_exeext conftest.$ac_ext
9744fi
9745
9746
9747		CFLAGS="$xorg_testset_save_CFLAGS"
9748
9749		eval supported=\$$cacheid
9750		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9751$as_echo "$supported" >&6; }
9752		if test "$supported" = "yes" ; then
9753			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9754			found="yes"
9755		fi
9756	fi
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772xorg_testset_save_CFLAGS="$CFLAGS"
9773
9774if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9775	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9776	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9777$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9778if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9779  $as_echo_n "(cached) " >&6
9780else
9781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9782/* end confdefs.h.  */
9783int i;
9784_ACEOF
9785if ac_fn_c_try_compile "$LINENO"; then :
9786  xorg_cv_cc_flag_unknown_warning_option=yes
9787else
9788  xorg_cv_cc_flag_unknown_warning_option=no
9789fi
9790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9791fi
9792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9793$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9794	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9795	CFLAGS="$xorg_testset_save_CFLAGS"
9796fi
9797
9798if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9799	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9800		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9801	fi
9802	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9803	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9804$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9805if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9806  $as_echo_n "(cached) " >&6
9807else
9808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9809/* end confdefs.h.  */
9810int i;
9811_ACEOF
9812if ac_fn_c_try_compile "$LINENO"; then :
9813  xorg_cv_cc_flag_unused_command_line_argument=yes
9814else
9815  xorg_cv_cc_flag_unused_command_line_argument=no
9816fi
9817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9818fi
9819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9820$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9821	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9822	CFLAGS="$xorg_testset_save_CFLAGS"
9823fi
9824
9825found="no"
9826
9827	if test $found = "no" ; then
9828		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9829			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9830		fi
9831
9832		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9833			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9834		fi
9835
9836		CFLAGS="$CFLAGS -Waddress"
9837
9838		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9839$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9840		cacheid=xorg_cv_cc_flag__Waddress
9841		if eval \${$cacheid+:} false; then :
9842  $as_echo_n "(cached) " >&6
9843else
9844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9845/* end confdefs.h.  */
9846int i;
9847int
9848main ()
9849{
9850
9851  ;
9852  return 0;
9853}
9854_ACEOF
9855if ac_fn_c_try_link "$LINENO"; then :
9856  eval $cacheid=yes
9857else
9858  eval $cacheid=no
9859fi
9860rm -f core conftest.err conftest.$ac_objext \
9861    conftest$ac_exeext conftest.$ac_ext
9862fi
9863
9864
9865		CFLAGS="$xorg_testset_save_CFLAGS"
9866
9867		eval supported=\$$cacheid
9868		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9869$as_echo "$supported" >&6; }
9870		if test "$supported" = "yes" ; then
9871			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9872			found="yes"
9873		fi
9874	fi
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890xorg_testset_save_CFLAGS="$CFLAGS"
9891
9892if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9893	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9894	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9895$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9896if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9897  $as_echo_n "(cached) " >&6
9898else
9899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9900/* end confdefs.h.  */
9901int i;
9902_ACEOF
9903if ac_fn_c_try_compile "$LINENO"; then :
9904  xorg_cv_cc_flag_unknown_warning_option=yes
9905else
9906  xorg_cv_cc_flag_unknown_warning_option=no
9907fi
9908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9909fi
9910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9911$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9912	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9913	CFLAGS="$xorg_testset_save_CFLAGS"
9914fi
9915
9916if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9917	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9918		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9919	fi
9920	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9921	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9922$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9923if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9924  $as_echo_n "(cached) " >&6
9925else
9926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927/* end confdefs.h.  */
9928int i;
9929_ACEOF
9930if ac_fn_c_try_compile "$LINENO"; then :
9931  xorg_cv_cc_flag_unused_command_line_argument=yes
9932else
9933  xorg_cv_cc_flag_unused_command_line_argument=no
9934fi
9935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9936fi
9937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9938$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9939	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9940	CFLAGS="$xorg_testset_save_CFLAGS"
9941fi
9942
9943found="no"
9944
9945	if test $found = "no" ; then
9946		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9947			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9948		fi
9949
9950		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9951			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9952		fi
9953
9954		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9955
9956		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9957$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9958		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9959		if eval \${$cacheid+:} false; then :
9960  $as_echo_n "(cached) " >&6
9961else
9962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9963/* end confdefs.h.  */
9964int i;
9965int
9966main ()
9967{
9968
9969  ;
9970  return 0;
9971}
9972_ACEOF
9973if ac_fn_c_try_link "$LINENO"; then :
9974  eval $cacheid=yes
9975else
9976  eval $cacheid=no
9977fi
9978rm -f core conftest.err conftest.$ac_objext \
9979    conftest$ac_exeext conftest.$ac_ext
9980fi
9981
9982
9983		CFLAGS="$xorg_testset_save_CFLAGS"
9984
9985		eval supported=\$$cacheid
9986		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9987$as_echo "$supported" >&6; }
9988		if test "$supported" = "yes" ; then
9989			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9990			found="yes"
9991		fi
9992	fi
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008xorg_testset_save_CFLAGS="$CFLAGS"
10009
10010if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10011	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10012	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10013$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10014if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10015  $as_echo_n "(cached) " >&6
10016else
10017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10018/* end confdefs.h.  */
10019int i;
10020_ACEOF
10021if ac_fn_c_try_compile "$LINENO"; then :
10022  xorg_cv_cc_flag_unknown_warning_option=yes
10023else
10024  xorg_cv_cc_flag_unknown_warning_option=no
10025fi
10026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10027fi
10028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10029$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10030	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10031	CFLAGS="$xorg_testset_save_CFLAGS"
10032fi
10033
10034if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10035	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10036		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10037	fi
10038	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10039	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10040$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10041if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10042  $as_echo_n "(cached) " >&6
10043else
10044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10045/* end confdefs.h.  */
10046int i;
10047_ACEOF
10048if ac_fn_c_try_compile "$LINENO"; then :
10049  xorg_cv_cc_flag_unused_command_line_argument=yes
10050else
10051  xorg_cv_cc_flag_unused_command_line_argument=no
10052fi
10053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10054fi
10055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10056$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10057	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10058	CFLAGS="$xorg_testset_save_CFLAGS"
10059fi
10060
10061found="no"
10062
10063	if test $found = "no" ; then
10064		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10065			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10066		fi
10067
10068		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10069			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10070		fi
10071
10072		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10073
10074		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10075$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10076		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10077		if eval \${$cacheid+:} false; then :
10078  $as_echo_n "(cached) " >&6
10079else
10080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10081/* end confdefs.h.  */
10082int i;
10083int
10084main ()
10085{
10086
10087  ;
10088  return 0;
10089}
10090_ACEOF
10091if ac_fn_c_try_link "$LINENO"; then :
10092  eval $cacheid=yes
10093else
10094  eval $cacheid=no
10095fi
10096rm -f core conftest.err conftest.$ac_objext \
10097    conftest$ac_exeext conftest.$ac_ext
10098fi
10099
10100
10101		CFLAGS="$xorg_testset_save_CFLAGS"
10102
10103		eval supported=\$$cacheid
10104		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10105$as_echo "$supported" >&6; }
10106		if test "$supported" = "yes" ; then
10107			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10108			found="yes"
10109		fi
10110	fi
10111
10112
10113fi
10114
10115
10116
10117
10118
10119
10120
10121		CWARNFLAGS="$BASE_CFLAGS"
10122		if  test "x$GCC" = xyes ; then
10123		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10124		fi
10125
10126
10127
10128
10129
10130
10131
10132
10133# Check whether --enable-strict-compilation was given.
10134if test "${enable_strict_compilation+set}" = set; then :
10135  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10136else
10137  STRICT_COMPILE=no
10138fi
10139
10140
10141
10142
10143
10144
10145STRICT_CFLAGS=""
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159xorg_testset_save_CFLAGS="$CFLAGS"
10160
10161if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10162	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10163	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10164$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10165if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10166  $as_echo_n "(cached) " >&6
10167else
10168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10169/* end confdefs.h.  */
10170int i;
10171_ACEOF
10172if ac_fn_c_try_compile "$LINENO"; then :
10173  xorg_cv_cc_flag_unknown_warning_option=yes
10174else
10175  xorg_cv_cc_flag_unknown_warning_option=no
10176fi
10177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10178fi
10179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10180$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10181	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10182	CFLAGS="$xorg_testset_save_CFLAGS"
10183fi
10184
10185if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10186	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10187		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10188	fi
10189	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10190	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10191$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10192if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10193  $as_echo_n "(cached) " >&6
10194else
10195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10196/* end confdefs.h.  */
10197int i;
10198_ACEOF
10199if ac_fn_c_try_compile "$LINENO"; then :
10200  xorg_cv_cc_flag_unused_command_line_argument=yes
10201else
10202  xorg_cv_cc_flag_unused_command_line_argument=no
10203fi
10204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10205fi
10206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10207$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10208	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10209	CFLAGS="$xorg_testset_save_CFLAGS"
10210fi
10211
10212found="no"
10213
10214	if test $found = "no" ; then
10215		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10216			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10217		fi
10218
10219		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10220			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10221		fi
10222
10223		CFLAGS="$CFLAGS -pedantic"
10224
10225		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10226$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10227		cacheid=xorg_cv_cc_flag__pedantic
10228		if eval \${$cacheid+:} false; then :
10229  $as_echo_n "(cached) " >&6
10230else
10231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10232/* end confdefs.h.  */
10233int i;
10234int
10235main ()
10236{
10237
10238  ;
10239  return 0;
10240}
10241_ACEOF
10242if ac_fn_c_try_link "$LINENO"; then :
10243  eval $cacheid=yes
10244else
10245  eval $cacheid=no
10246fi
10247rm -f core conftest.err conftest.$ac_objext \
10248    conftest$ac_exeext conftest.$ac_ext
10249fi
10250
10251
10252		CFLAGS="$xorg_testset_save_CFLAGS"
10253
10254		eval supported=\$$cacheid
10255		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10256$as_echo "$supported" >&6; }
10257		if test "$supported" = "yes" ; then
10258			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10259			found="yes"
10260		fi
10261	fi
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277xorg_testset_save_CFLAGS="$CFLAGS"
10278
10279if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10280	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10281	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10282$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10283if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10284  $as_echo_n "(cached) " >&6
10285else
10286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10287/* end confdefs.h.  */
10288int i;
10289_ACEOF
10290if ac_fn_c_try_compile "$LINENO"; then :
10291  xorg_cv_cc_flag_unknown_warning_option=yes
10292else
10293  xorg_cv_cc_flag_unknown_warning_option=no
10294fi
10295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10296fi
10297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10298$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10299	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10300	CFLAGS="$xorg_testset_save_CFLAGS"
10301fi
10302
10303if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10304	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10305		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10306	fi
10307	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10308	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10309$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10310if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10311  $as_echo_n "(cached) " >&6
10312else
10313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10314/* end confdefs.h.  */
10315int i;
10316_ACEOF
10317if ac_fn_c_try_compile "$LINENO"; then :
10318  xorg_cv_cc_flag_unused_command_line_argument=yes
10319else
10320  xorg_cv_cc_flag_unused_command_line_argument=no
10321fi
10322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10323fi
10324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10325$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10326	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10327	CFLAGS="$xorg_testset_save_CFLAGS"
10328fi
10329
10330found="no"
10331
10332	if test $found = "no" ; then
10333		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10334			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10335		fi
10336
10337		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10338			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10339		fi
10340
10341		CFLAGS="$CFLAGS -Werror"
10342
10343		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10344$as_echo_n "checking if $CC supports -Werror... " >&6; }
10345		cacheid=xorg_cv_cc_flag__Werror
10346		if eval \${$cacheid+:} false; then :
10347  $as_echo_n "(cached) " >&6
10348else
10349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10350/* end confdefs.h.  */
10351int i;
10352int
10353main ()
10354{
10355
10356  ;
10357  return 0;
10358}
10359_ACEOF
10360if ac_fn_c_try_link "$LINENO"; then :
10361  eval $cacheid=yes
10362else
10363  eval $cacheid=no
10364fi
10365rm -f core conftest.err conftest.$ac_objext \
10366    conftest$ac_exeext conftest.$ac_ext
10367fi
10368
10369
10370		CFLAGS="$xorg_testset_save_CFLAGS"
10371
10372		eval supported=\$$cacheid
10373		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10374$as_echo "$supported" >&6; }
10375		if test "$supported" = "yes" ; then
10376			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10377			found="yes"
10378		fi
10379	fi
10380
10381	if test $found = "no" ; then
10382		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10383			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10384		fi
10385
10386		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10387			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10388		fi
10389
10390		CFLAGS="$CFLAGS -errwarn"
10391
10392		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10393$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10394		cacheid=xorg_cv_cc_flag__errwarn
10395		if eval \${$cacheid+:} false; then :
10396  $as_echo_n "(cached) " >&6
10397else
10398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10399/* end confdefs.h.  */
10400int i;
10401int
10402main ()
10403{
10404
10405  ;
10406  return 0;
10407}
10408_ACEOF
10409if ac_fn_c_try_link "$LINENO"; then :
10410  eval $cacheid=yes
10411else
10412  eval $cacheid=no
10413fi
10414rm -f core conftest.err conftest.$ac_objext \
10415    conftest$ac_exeext conftest.$ac_ext
10416fi
10417
10418
10419		CFLAGS="$xorg_testset_save_CFLAGS"
10420
10421		eval supported=\$$cacheid
10422		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10423$as_echo "$supported" >&6; }
10424		if test "$supported" = "yes" ; then
10425			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10426			found="yes"
10427		fi
10428	fi
10429
10430
10431
10432# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10433# activate it with -Werror, so we add it here explicitly.
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447xorg_testset_save_CFLAGS="$CFLAGS"
10448
10449if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10450	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10451	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10452$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10453if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10454  $as_echo_n "(cached) " >&6
10455else
10456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10457/* end confdefs.h.  */
10458int i;
10459_ACEOF
10460if ac_fn_c_try_compile "$LINENO"; then :
10461  xorg_cv_cc_flag_unknown_warning_option=yes
10462else
10463  xorg_cv_cc_flag_unknown_warning_option=no
10464fi
10465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10466fi
10467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10468$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10469	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10470	CFLAGS="$xorg_testset_save_CFLAGS"
10471fi
10472
10473if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10474	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10475		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10476	fi
10477	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10478	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10479$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10480if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10481  $as_echo_n "(cached) " >&6
10482else
10483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10484/* end confdefs.h.  */
10485int i;
10486_ACEOF
10487if ac_fn_c_try_compile "$LINENO"; then :
10488  xorg_cv_cc_flag_unused_command_line_argument=yes
10489else
10490  xorg_cv_cc_flag_unused_command_line_argument=no
10491fi
10492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10493fi
10494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10495$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10496	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10497	CFLAGS="$xorg_testset_save_CFLAGS"
10498fi
10499
10500found="no"
10501
10502	if test $found = "no" ; then
10503		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10504			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10505		fi
10506
10507		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10508			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10509		fi
10510
10511		CFLAGS="$CFLAGS -Werror=attributes"
10512
10513		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10514$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10515		cacheid=xorg_cv_cc_flag__Werror_attributes
10516		if eval \${$cacheid+:} false; then :
10517  $as_echo_n "(cached) " >&6
10518else
10519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10520/* end confdefs.h.  */
10521int i;
10522int
10523main ()
10524{
10525
10526  ;
10527  return 0;
10528}
10529_ACEOF
10530if ac_fn_c_try_link "$LINENO"; then :
10531  eval $cacheid=yes
10532else
10533  eval $cacheid=no
10534fi
10535rm -f core conftest.err conftest.$ac_objext \
10536    conftest$ac_exeext conftest.$ac_ext
10537fi
10538
10539
10540		CFLAGS="$xorg_testset_save_CFLAGS"
10541
10542		eval supported=\$$cacheid
10543		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10544$as_echo "$supported" >&6; }
10545		if test "$supported" = "yes" ; then
10546			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10547			found="yes"
10548		fi
10549	fi
10550
10551
10552
10553if test "x$STRICT_COMPILE" = "xyes"; then
10554    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10555    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10556fi
10557
10558
10559
10560
10561
10562
10563cat >>confdefs.h <<_ACEOF
10564#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10565_ACEOF
10566
10567	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10568	if test "x$PVM" = "x"; then
10569		PVM="0"
10570	fi
10571
10572cat >>confdefs.h <<_ACEOF
10573#define PACKAGE_VERSION_MINOR $PVM
10574_ACEOF
10575
10576	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10577	if test "x$PVP" = "x"; then
10578		PVP="0"
10579	fi
10580
10581cat >>confdefs.h <<_ACEOF
10582#define PACKAGE_VERSION_PATCHLEVEL $PVP
10583_ACEOF
10584
10585
10586
10587CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10588mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10589|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10590echo 'git directory not found: installing possibly empty changelog.' >&2)"
10591
10592
10593
10594
10595macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10596INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10597mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10598|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10599echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10600
10601
10602
10603
10604
10605
10606if test x$APP_MAN_SUFFIX = x    ; then
10607    APP_MAN_SUFFIX=1
10608fi
10609if test x$APP_MAN_DIR = x    ; then
10610    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10611fi
10612
10613if test x$LIB_MAN_SUFFIX = x    ; then
10614    LIB_MAN_SUFFIX=3
10615fi
10616if test x$LIB_MAN_DIR = x    ; then
10617    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10618fi
10619
10620if test x$FILE_MAN_SUFFIX = x    ; then
10621    case $host_os in
10622	solaris*)	FILE_MAN_SUFFIX=4  ;;
10623	*)		FILE_MAN_SUFFIX=5  ;;
10624    esac
10625fi
10626if test x$FILE_MAN_DIR = x    ; then
10627    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10628fi
10629
10630if test x$MISC_MAN_SUFFIX = x    ; then
10631    case $host_os in
10632	solaris*)	MISC_MAN_SUFFIX=5  ;;
10633	*)		MISC_MAN_SUFFIX=7  ;;
10634    esac
10635fi
10636if test x$MISC_MAN_DIR = x    ; then
10637    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10638fi
10639
10640if test x$DRIVER_MAN_SUFFIX = x    ; then
10641    case $host_os in
10642	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10643	*)		DRIVER_MAN_SUFFIX=4  ;;
10644    esac
10645fi
10646if test x$DRIVER_MAN_DIR = x    ; then
10647    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10648fi
10649
10650if test x$ADMIN_MAN_SUFFIX = x    ; then
10651    case $host_os in
10652	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10653	*)		ADMIN_MAN_SUFFIX=8  ;;
10654    esac
10655fi
10656if test x$ADMIN_MAN_DIR = x    ; then
10657    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10658fi
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674XORG_MAN_PAGE="X Version 11"
10675
10676MAN_SUBSTS="\
10677	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10678	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10679	-e 's|__xservername__|Xorg|g' \
10680	-e 's|__xconfigfile__|xorg.conf|g' \
10681	-e 's|__projectroot__|\$(prefix)|g' \
10682	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10683	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10684	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10685	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10686	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10687	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10688	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10689
10690
10691
10692# Check whether --enable-silent-rules was given.
10693if test "${enable_silent_rules+set}" = set; then :
10694  enableval=$enable_silent_rules;
10695fi
10696
10697case $enable_silent_rules in # (((
10698  yes) AM_DEFAULT_VERBOSITY=0;;
10699   no) AM_DEFAULT_VERBOSITY=1;;
10700    *) AM_DEFAULT_VERBOSITY=0;;
10701esac
10702am_make=${MAKE-make}
10703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10704$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10705if ${am_cv_make_support_nested_variables+:} false; then :
10706  $as_echo_n "(cached) " >&6
10707else
10708  if $as_echo 'TRUE=$(BAR$(V))
10709BAR0=false
10710BAR1=true
10711V=1
10712am__doit:
10713	@$(TRUE)
10714.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10715  am_cv_make_support_nested_variables=yes
10716else
10717  am_cv_make_support_nested_variables=no
10718fi
10719fi
10720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10721$as_echo "$am_cv_make_support_nested_variables" >&6; }
10722if test $am_cv_make_support_nested_variables = yes; then
10723    AM_V='$(V)'
10724  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10725else
10726  AM_V=$AM_DEFAULT_VERBOSITY
10727  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10728fi
10729AM_BACKSLASH='\'
10730
10731
10732
10733# Initialize libtool
10734# Check whether --enable-static was given.
10735if test "${enable_static+set}" = set; then :
10736  enableval=$enable_static; p=${PACKAGE-default}
10737    case $enableval in
10738    yes) enable_static=yes ;;
10739    no) enable_static=no ;;
10740    *)
10741     enable_static=no
10742      # Look at the argument we got.  We use all the common list separators.
10743      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10744      for pkg in $enableval; do
10745	IFS="$lt_save_ifs"
10746	if test "X$pkg" = "X$p"; then
10747	  enable_static=yes
10748	fi
10749      done
10750      IFS="$lt_save_ifs"
10751      ;;
10752    esac
10753else
10754  enable_static=no
10755fi
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765case `pwd` in
10766  *\ * | *\	*)
10767    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10768$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10769esac
10770
10771
10772
10773macro_version='2.4.2'
10774macro_revision='1.3337'
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788ltmain="$ac_aux_dir/ltmain.sh"
10789
10790# Backslashify metacharacters that are still active within
10791# double-quoted strings.
10792sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10793
10794# Same as above, but do not quote variable references.
10795double_quote_subst='s/\(["`\\]\)/\\\1/g'
10796
10797# Sed substitution to delay expansion of an escaped shell variable in a
10798# double_quote_subst'ed string.
10799delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10800
10801# Sed substitution to delay expansion of an escaped single quote.
10802delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10803
10804# Sed substitution to avoid accidental globbing in evaled expressions
10805no_glob_subst='s/\*/\\\*/g'
10806
10807ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10808ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10809ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10810
10811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10812$as_echo_n "checking how to print strings... " >&6; }
10813# Test print first, because it will be a builtin if present.
10814if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10815   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10816  ECHO='print -r --'
10817elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10818  ECHO='printf %s\n'
10819else
10820  # Use this function as a fallback that always works.
10821  func_fallback_echo ()
10822  {
10823    eval 'cat <<_LTECHO_EOF
10824$1
10825_LTECHO_EOF'
10826  }
10827  ECHO='func_fallback_echo'
10828fi
10829
10830# func_echo_all arg...
10831# Invoke $ECHO with all args, space-separated.
10832func_echo_all ()
10833{
10834    $ECHO ""
10835}
10836
10837case "$ECHO" in
10838  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10839$as_echo "printf" >&6; } ;;
10840  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10841$as_echo "print -r" >&6; } ;;
10842  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10843$as_echo "cat" >&6; } ;;
10844esac
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10860$as_echo_n "checking for a sed that does not truncate output... " >&6; }
10861if ${ac_cv_path_SED+:} false; then :
10862  $as_echo_n "(cached) " >&6
10863else
10864            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10865     for ac_i in 1 2 3 4 5 6 7; do
10866       ac_script="$ac_script$as_nl$ac_script"
10867     done
10868     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10869     { ac_script=; unset ac_script;}
10870     if test -z "$SED"; then
10871  ac_path_SED_found=false
10872  # Loop through the user's path and test for each of PROGNAME-LIST
10873  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10874for as_dir in $PATH
10875do
10876  IFS=$as_save_IFS
10877  test -z "$as_dir" && as_dir=.
10878    for ac_prog in sed gsed; do
10879    for ac_exec_ext in '' $ac_executable_extensions; do
10880      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10881      as_fn_executable_p "$ac_path_SED" || continue
10882# Check for GNU ac_path_SED and select it if it is found.
10883  # Check for GNU $ac_path_SED
10884case `"$ac_path_SED" --version 2>&1` in
10885*GNU*)
10886  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10887*)
10888  ac_count=0
10889  $as_echo_n 0123456789 >"conftest.in"
10890  while :
10891  do
10892    cat "conftest.in" "conftest.in" >"conftest.tmp"
10893    mv "conftest.tmp" "conftest.in"
10894    cp "conftest.in" "conftest.nl"
10895    $as_echo '' >> "conftest.nl"
10896    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10897    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10898    as_fn_arith $ac_count + 1 && ac_count=$as_val
10899    if test $ac_count -gt ${ac_path_SED_max-0}; then
10900      # Best one so far, save it but keep looking for a better one
10901      ac_cv_path_SED="$ac_path_SED"
10902      ac_path_SED_max=$ac_count
10903    fi
10904    # 10*(2^10) chars as input seems more than enough
10905    test $ac_count -gt 10 && break
10906  done
10907  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10908esac
10909
10910      $ac_path_SED_found && break 3
10911    done
10912  done
10913  done
10914IFS=$as_save_IFS
10915  if test -z "$ac_cv_path_SED"; then
10916    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10917  fi
10918else
10919  ac_cv_path_SED=$SED
10920fi
10921
10922fi
10923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10924$as_echo "$ac_cv_path_SED" >&6; }
10925 SED="$ac_cv_path_SED"
10926  rm -f conftest.sed
10927
10928test -z "$SED" && SED=sed
10929Xsed="$SED -e 1s/^X//"
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10942$as_echo_n "checking for fgrep... " >&6; }
10943if ${ac_cv_path_FGREP+:} false; then :
10944  $as_echo_n "(cached) " >&6
10945else
10946  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10947   then ac_cv_path_FGREP="$GREP -F"
10948   else
10949     if test -z "$FGREP"; then
10950  ac_path_FGREP_found=false
10951  # Loop through the user's path and test for each of PROGNAME-LIST
10952  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10953for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10954do
10955  IFS=$as_save_IFS
10956  test -z "$as_dir" && as_dir=.
10957    for ac_prog in fgrep; do
10958    for ac_exec_ext in '' $ac_executable_extensions; do
10959      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10960      as_fn_executable_p "$ac_path_FGREP" || continue
10961# Check for GNU ac_path_FGREP and select it if it is found.
10962  # Check for GNU $ac_path_FGREP
10963case `"$ac_path_FGREP" --version 2>&1` in
10964*GNU*)
10965  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10966*)
10967  ac_count=0
10968  $as_echo_n 0123456789 >"conftest.in"
10969  while :
10970  do
10971    cat "conftest.in" "conftest.in" >"conftest.tmp"
10972    mv "conftest.tmp" "conftest.in"
10973    cp "conftest.in" "conftest.nl"
10974    $as_echo 'FGREP' >> "conftest.nl"
10975    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10976    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10977    as_fn_arith $ac_count + 1 && ac_count=$as_val
10978    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10979      # Best one so far, save it but keep looking for a better one
10980      ac_cv_path_FGREP="$ac_path_FGREP"
10981      ac_path_FGREP_max=$ac_count
10982    fi
10983    # 10*(2^10) chars as input seems more than enough
10984    test $ac_count -gt 10 && break
10985  done
10986  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10987esac
10988
10989      $ac_path_FGREP_found && break 3
10990    done
10991  done
10992  done
10993IFS=$as_save_IFS
10994  if test -z "$ac_cv_path_FGREP"; then
10995    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10996  fi
10997else
10998  ac_cv_path_FGREP=$FGREP
10999fi
11000
11001   fi
11002fi
11003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11004$as_echo "$ac_cv_path_FGREP" >&6; }
11005 FGREP="$ac_cv_path_FGREP"
11006
11007
11008test -z "$GREP" && GREP=grep
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028# Check whether --with-gnu-ld was given.
11029if test "${with_gnu_ld+set}" = set; then :
11030  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11031else
11032  with_gnu_ld=no
11033fi
11034
11035ac_prog=ld
11036if test "$GCC" = yes; then
11037  # Check if gcc -print-prog-name=ld gives a path.
11038  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11039$as_echo_n "checking for ld used by $CC... " >&6; }
11040  case $host in
11041  *-*-mingw*)
11042    # gcc leaves a trailing carriage return which upsets mingw
11043    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11044  *)
11045    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11046  esac
11047  case $ac_prog in
11048    # Accept absolute paths.
11049    [\\/]* | ?:[\\/]*)
11050      re_direlt='/[^/][^/]*/\.\./'
11051      # Canonicalize the pathname of ld
11052      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11053      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11054	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11055      done
11056      test -z "$LD" && LD="$ac_prog"
11057      ;;
11058  "")
11059    # If it fails, then pretend we aren't using GCC.
11060    ac_prog=ld
11061    ;;
11062  *)
11063    # If it is relative, then search for the first ld in PATH.
11064    with_gnu_ld=unknown
11065    ;;
11066  esac
11067elif test "$with_gnu_ld" = yes; then
11068  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11069$as_echo_n "checking for GNU ld... " >&6; }
11070else
11071  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11072$as_echo_n "checking for non-GNU ld... " >&6; }
11073fi
11074if ${lt_cv_path_LD+:} false; then :
11075  $as_echo_n "(cached) " >&6
11076else
11077  if test -z "$LD"; then
11078  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11079  for ac_dir in $PATH; do
11080    IFS="$lt_save_ifs"
11081    test -z "$ac_dir" && ac_dir=.
11082    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11083      lt_cv_path_LD="$ac_dir/$ac_prog"
11084      # Check to see if the program is GNU ld.  I'd rather use --version,
11085      # but apparently some variants of GNU ld only accept -v.
11086      # Break only if it was the GNU/non-GNU ld that we prefer.
11087      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11088      *GNU* | *'with BFD'*)
11089	test "$with_gnu_ld" != no && break
11090	;;
11091      *)
11092	test "$with_gnu_ld" != yes && break
11093	;;
11094      esac
11095    fi
11096  done
11097  IFS="$lt_save_ifs"
11098else
11099  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11100fi
11101fi
11102
11103LD="$lt_cv_path_LD"
11104if test -n "$LD"; then
11105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11106$as_echo "$LD" >&6; }
11107else
11108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11109$as_echo "no" >&6; }
11110fi
11111test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11113$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11114if ${lt_cv_prog_gnu_ld+:} false; then :
11115  $as_echo_n "(cached) " >&6
11116else
11117  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11118case `$LD -v 2>&1 </dev/null` in
11119*GNU* | *'with BFD'*)
11120  lt_cv_prog_gnu_ld=yes
11121  ;;
11122*)
11123  lt_cv_prog_gnu_ld=no
11124  ;;
11125esac
11126fi
11127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11128$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11129with_gnu_ld=$lt_cv_prog_gnu_ld
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11140$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11141if ${lt_cv_path_NM+:} false; then :
11142  $as_echo_n "(cached) " >&6
11143else
11144  if test -n "$NM"; then
11145  # Let the user override the test.
11146  lt_cv_path_NM="$NM"
11147else
11148  lt_nm_to_check="${ac_tool_prefix}nm"
11149  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11150    lt_nm_to_check="$lt_nm_to_check nm"
11151  fi
11152  for lt_tmp_nm in $lt_nm_to_check; do
11153    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11154    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11155      IFS="$lt_save_ifs"
11156      test -z "$ac_dir" && ac_dir=.
11157      tmp_nm="$ac_dir/$lt_tmp_nm"
11158      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11159	# Check to see if the nm accepts a BSD-compat flag.
11160	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
11161	#   nm: unknown option "B" ignored
11162	# Tru64's nm complains that /dev/null is an invalid object file
11163	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11164	*/dev/null* | *'Invalid file or object type'*)
11165	  lt_cv_path_NM="$tmp_nm -B"
11166	  break
11167	  ;;
11168	*)
11169	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11170	  */dev/null*)
11171	    lt_cv_path_NM="$tmp_nm -p"
11172	    break
11173	    ;;
11174	  *)
11175	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11176	    continue # so that we can try to find one that supports BSD flags
11177	    ;;
11178	  esac
11179	  ;;
11180	esac
11181      fi
11182    done
11183    IFS="$lt_save_ifs"
11184  done
11185  : ${lt_cv_path_NM=no}
11186fi
11187fi
11188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11189$as_echo "$lt_cv_path_NM" >&6; }
11190if test "$lt_cv_path_NM" != "no"; then
11191  NM="$lt_cv_path_NM"
11192else
11193  # Didn't find any BSD compatible name lister, look for dumpbin.
11194  if test -n "$DUMPBIN"; then :
11195    # Let the user override the test.
11196  else
11197    if test -n "$ac_tool_prefix"; then
11198  for ac_prog in dumpbin "link -dump"
11199  do
11200    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11201set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11203$as_echo_n "checking for $ac_word... " >&6; }
11204if ${ac_cv_prog_DUMPBIN+:} false; then :
11205  $as_echo_n "(cached) " >&6
11206else
11207  if test -n "$DUMPBIN"; then
11208  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11209else
11210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11211for as_dir in $PATH
11212do
11213  IFS=$as_save_IFS
11214  test -z "$as_dir" && as_dir=.
11215    for ac_exec_ext in '' $ac_executable_extensions; do
11216  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11217    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11218    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11219    break 2
11220  fi
11221done
11222  done
11223IFS=$as_save_IFS
11224
11225fi
11226fi
11227DUMPBIN=$ac_cv_prog_DUMPBIN
11228if test -n "$DUMPBIN"; then
11229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11230$as_echo "$DUMPBIN" >&6; }
11231else
11232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11233$as_echo "no" >&6; }
11234fi
11235
11236
11237    test -n "$DUMPBIN" && break
11238  done
11239fi
11240if test -z "$DUMPBIN"; then
11241  ac_ct_DUMPBIN=$DUMPBIN
11242  for ac_prog in dumpbin "link -dump"
11243do
11244  # Extract the first word of "$ac_prog", so it can be a program name with args.
11245set dummy $ac_prog; ac_word=$2
11246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11247$as_echo_n "checking for $ac_word... " >&6; }
11248if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11249  $as_echo_n "(cached) " >&6
11250else
11251  if test -n "$ac_ct_DUMPBIN"; then
11252  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11253else
11254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11255for as_dir in $PATH
11256do
11257  IFS=$as_save_IFS
11258  test -z "$as_dir" && as_dir=.
11259    for ac_exec_ext in '' $ac_executable_extensions; do
11260  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11261    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11262    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11263    break 2
11264  fi
11265done
11266  done
11267IFS=$as_save_IFS
11268
11269fi
11270fi
11271ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11272if test -n "$ac_ct_DUMPBIN"; then
11273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11274$as_echo "$ac_ct_DUMPBIN" >&6; }
11275else
11276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11277$as_echo "no" >&6; }
11278fi
11279
11280
11281  test -n "$ac_ct_DUMPBIN" && break
11282done
11283
11284  if test "x$ac_ct_DUMPBIN" = x; then
11285    DUMPBIN=":"
11286  else
11287    case $cross_compiling:$ac_tool_warned in
11288yes:)
11289{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11290$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11291ac_tool_warned=yes ;;
11292esac
11293    DUMPBIN=$ac_ct_DUMPBIN
11294  fi
11295fi
11296
11297    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11298    *COFF*)
11299      DUMPBIN="$DUMPBIN -symbols"
11300      ;;
11301    *)
11302      DUMPBIN=:
11303      ;;
11304    esac
11305  fi
11306
11307  if test "$DUMPBIN" != ":"; then
11308    NM="$DUMPBIN"
11309  fi
11310fi
11311test -z "$NM" && NM=nm
11312
11313
11314
11315
11316
11317
11318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11319$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11320if ${lt_cv_nm_interface+:} false; then :
11321  $as_echo_n "(cached) " >&6
11322else
11323  lt_cv_nm_interface="BSD nm"
11324  echo "int some_variable = 0;" > conftest.$ac_ext
11325  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11326  (eval "$ac_compile" 2>conftest.err)
11327  cat conftest.err >&5
11328  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11329  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11330  cat conftest.err >&5
11331  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11332  cat conftest.out >&5
11333  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11334    lt_cv_nm_interface="MS dumpbin"
11335  fi
11336  rm -f conftest*
11337fi
11338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11339$as_echo "$lt_cv_nm_interface" >&6; }
11340
11341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11342$as_echo_n "checking whether ln -s works... " >&6; }
11343LN_S=$as_ln_s
11344if test "$LN_S" = "ln -s"; then
11345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11346$as_echo "yes" >&6; }
11347else
11348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11349$as_echo "no, using $LN_S" >&6; }
11350fi
11351
11352# find the maximum length of command line arguments
11353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11354$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11355if ${lt_cv_sys_max_cmd_len+:} false; then :
11356  $as_echo_n "(cached) " >&6
11357else
11358    i=0
11359  teststring="ABCD"
11360
11361  case $build_os in
11362  msdosdjgpp*)
11363    # On DJGPP, this test can blow up pretty badly due to problems in libc
11364    # (any single argument exceeding 2000 bytes causes a buffer overrun
11365    # during glob expansion).  Even if it were fixed, the result of this
11366    # check would be larger than it should be.
11367    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11368    ;;
11369
11370  gnu*)
11371    # Under GNU Hurd, this test is not required because there is
11372    # no limit to the length of command line arguments.
11373    # Libtool will interpret -1 as no limit whatsoever
11374    lt_cv_sys_max_cmd_len=-1;
11375    ;;
11376
11377  cygwin* | mingw* | cegcc*)
11378    # On Win9x/ME, this test blows up -- it succeeds, but takes
11379    # about 5 minutes as the teststring grows exponentially.
11380    # Worse, since 9x/ME are not pre-emptively multitasking,
11381    # you end up with a "frozen" computer, even though with patience
11382    # the test eventually succeeds (with a max line length of 256k).
11383    # Instead, let's just punt: use the minimum linelength reported by
11384    # all of the supported platforms: 8192 (on NT/2K/XP).
11385    lt_cv_sys_max_cmd_len=8192;
11386    ;;
11387
11388  mint*)
11389    # On MiNT this can take a long time and run out of memory.
11390    lt_cv_sys_max_cmd_len=8192;
11391    ;;
11392
11393  amigaos*)
11394    # On AmigaOS with pdksh, this test takes hours, literally.
11395    # So we just punt and use a minimum line length of 8192.
11396    lt_cv_sys_max_cmd_len=8192;
11397    ;;
11398
11399  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11400    # This has been around since 386BSD, at least.  Likely further.
11401    if test -x /sbin/sysctl; then
11402      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11403    elif test -x /usr/sbin/sysctl; then
11404      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11405    else
11406      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11407    fi
11408    # And add a safety zone
11409    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11410    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11411    ;;
11412
11413  interix*)
11414    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11415    lt_cv_sys_max_cmd_len=196608
11416    ;;
11417
11418  os2*)
11419    # The test takes a long time on OS/2.
11420    lt_cv_sys_max_cmd_len=8192
11421    ;;
11422
11423  osf*)
11424    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11425    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11426    # nice to cause kernel panics so lets avoid the loop below.
11427    # First set a reasonable default.
11428    lt_cv_sys_max_cmd_len=16384
11429    #
11430    if test -x /sbin/sysconfig; then
11431      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11432        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11433      esac
11434    fi
11435    ;;
11436  sco3.2v5*)
11437    lt_cv_sys_max_cmd_len=102400
11438    ;;
11439  sysv5* | sco5v6* | sysv4.2uw2*)
11440    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11441    if test -n "$kargmax"; then
11442      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11443    else
11444      lt_cv_sys_max_cmd_len=32768
11445    fi
11446    ;;
11447  *)
11448    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11449    if test -n "$lt_cv_sys_max_cmd_len"; then
11450      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11451      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11452    else
11453      # Make teststring a little bigger before we do anything with it.
11454      # a 1K string should be a reasonable start.
11455      for i in 1 2 3 4 5 6 7 8 ; do
11456        teststring=$teststring$teststring
11457      done
11458      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11459      # If test is not a shell built-in, we'll probably end up computing a
11460      # maximum length that is only half of the actual maximum length, but
11461      # we can't tell.
11462      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11463	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11464	      test $i != 17 # 1/2 MB should be enough
11465      do
11466        i=`expr $i + 1`
11467        teststring=$teststring$teststring
11468      done
11469      # Only check the string length outside the loop.
11470      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11471      teststring=
11472      # Add a significant safety factor because C++ compilers can tack on
11473      # massive amounts of additional arguments before passing them to the
11474      # linker.  It appears as though 1/2 is a usable value.
11475      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11476    fi
11477    ;;
11478  esac
11479
11480fi
11481
11482if test -n $lt_cv_sys_max_cmd_len ; then
11483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11484$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11485else
11486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11487$as_echo "none" >&6; }
11488fi
11489max_cmd_len=$lt_cv_sys_max_cmd_len
11490
11491
11492
11493
11494
11495
11496: ${CP="cp -f"}
11497: ${MV="mv -f"}
11498: ${RM="rm -f"}
11499
11500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11501$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11502# Try some XSI features
11503xsi_shell=no
11504( _lt_dummy="a/b/c"
11505  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11506      = c,a/b,b/c, \
11507    && eval 'test $(( 1 + 1 )) -eq 2 \
11508    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11509  && xsi_shell=yes
11510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11511$as_echo "$xsi_shell" >&6; }
11512
11513
11514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11515$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11516lt_shell_append=no
11517( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11518    >/dev/null 2>&1 \
11519  && lt_shell_append=yes
11520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11521$as_echo "$lt_shell_append" >&6; }
11522
11523
11524if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11525  lt_unset=unset
11526else
11527  lt_unset=false
11528fi
11529
11530
11531
11532
11533
11534# test EBCDIC or ASCII
11535case `echo X|tr X '\101'` in
11536 A) # ASCII based system
11537    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11538  lt_SP2NL='tr \040 \012'
11539  lt_NL2SP='tr \015\012 \040\040'
11540  ;;
11541 *) # EBCDIC based system
11542  lt_SP2NL='tr \100 \n'
11543  lt_NL2SP='tr \r\n \100\100'
11544  ;;
11545esac
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11556$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11557if ${lt_cv_to_host_file_cmd+:} false; then :
11558  $as_echo_n "(cached) " >&6
11559else
11560  case $host in
11561  *-*-mingw* )
11562    case $build in
11563      *-*-mingw* ) # actually msys
11564        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11565        ;;
11566      *-*-cygwin* )
11567        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11568        ;;
11569      * ) # otherwise, assume *nix
11570        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11571        ;;
11572    esac
11573    ;;
11574  *-*-cygwin* )
11575    case $build in
11576      *-*-mingw* ) # actually msys
11577        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11578        ;;
11579      *-*-cygwin* )
11580        lt_cv_to_host_file_cmd=func_convert_file_noop
11581        ;;
11582      * ) # otherwise, assume *nix
11583        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11584        ;;
11585    esac
11586    ;;
11587  * ) # unhandled hosts (and "normal" native builds)
11588    lt_cv_to_host_file_cmd=func_convert_file_noop
11589    ;;
11590esac
11591
11592fi
11593
11594to_host_file_cmd=$lt_cv_to_host_file_cmd
11595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11596$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11597
11598
11599
11600
11601
11602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11603$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11604if ${lt_cv_to_tool_file_cmd+:} false; then :
11605  $as_echo_n "(cached) " >&6
11606else
11607  #assume ordinary cross tools, or native build.
11608lt_cv_to_tool_file_cmd=func_convert_file_noop
11609case $host in
11610  *-*-mingw* )
11611    case $build in
11612      *-*-mingw* ) # actually msys
11613        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11614        ;;
11615    esac
11616    ;;
11617esac
11618
11619fi
11620
11621to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11623$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11624
11625
11626
11627
11628
11629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11630$as_echo_n "checking for $LD option to reload object files... " >&6; }
11631if ${lt_cv_ld_reload_flag+:} false; then :
11632  $as_echo_n "(cached) " >&6
11633else
11634  lt_cv_ld_reload_flag='-r'
11635fi
11636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11637$as_echo "$lt_cv_ld_reload_flag" >&6; }
11638reload_flag=$lt_cv_ld_reload_flag
11639case $reload_flag in
11640"" | " "*) ;;
11641*) reload_flag=" $reload_flag" ;;
11642esac
11643reload_cmds='$LD$reload_flag -o $output$reload_objs'
11644case $host_os in
11645  cygwin* | mingw* | pw32* | cegcc*)
11646    if test "$GCC" != yes; then
11647      reload_cmds=false
11648    fi
11649    ;;
11650  darwin*)
11651    if test "$GCC" = yes; then
11652      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11653    else
11654      reload_cmds='$LD$reload_flag -o $output$reload_objs'
11655    fi
11656    ;;
11657esac
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667if test -n "$ac_tool_prefix"; then
11668  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11669set dummy ${ac_tool_prefix}objdump; ac_word=$2
11670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11671$as_echo_n "checking for $ac_word... " >&6; }
11672if ${ac_cv_prog_OBJDUMP+:} false; then :
11673  $as_echo_n "(cached) " >&6
11674else
11675  if test -n "$OBJDUMP"; then
11676  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11677else
11678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11679for as_dir in $PATH
11680do
11681  IFS=$as_save_IFS
11682  test -z "$as_dir" && as_dir=.
11683    for ac_exec_ext in '' $ac_executable_extensions; do
11684  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11685    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11686    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11687    break 2
11688  fi
11689done
11690  done
11691IFS=$as_save_IFS
11692
11693fi
11694fi
11695OBJDUMP=$ac_cv_prog_OBJDUMP
11696if test -n "$OBJDUMP"; then
11697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11698$as_echo "$OBJDUMP" >&6; }
11699else
11700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11701$as_echo "no" >&6; }
11702fi
11703
11704
11705fi
11706if test -z "$ac_cv_prog_OBJDUMP"; then
11707  ac_ct_OBJDUMP=$OBJDUMP
11708  # Extract the first word of "objdump", so it can be a program name with args.
11709set dummy objdump; ac_word=$2
11710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11711$as_echo_n "checking for $ac_word... " >&6; }
11712if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11713  $as_echo_n "(cached) " >&6
11714else
11715  if test -n "$ac_ct_OBJDUMP"; then
11716  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11717else
11718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11719for as_dir in $PATH
11720do
11721  IFS=$as_save_IFS
11722  test -z "$as_dir" && as_dir=.
11723    for ac_exec_ext in '' $ac_executable_extensions; do
11724  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11725    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11726    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11727    break 2
11728  fi
11729done
11730  done
11731IFS=$as_save_IFS
11732
11733fi
11734fi
11735ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11736if test -n "$ac_ct_OBJDUMP"; then
11737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11738$as_echo "$ac_ct_OBJDUMP" >&6; }
11739else
11740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11741$as_echo "no" >&6; }
11742fi
11743
11744  if test "x$ac_ct_OBJDUMP" = x; then
11745    OBJDUMP="false"
11746  else
11747    case $cross_compiling:$ac_tool_warned in
11748yes:)
11749{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11750$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11751ac_tool_warned=yes ;;
11752esac
11753    OBJDUMP=$ac_ct_OBJDUMP
11754  fi
11755else
11756  OBJDUMP="$ac_cv_prog_OBJDUMP"
11757fi
11758
11759test -z "$OBJDUMP" && OBJDUMP=objdump
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11770$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11771if ${lt_cv_deplibs_check_method+:} false; then :
11772  $as_echo_n "(cached) " >&6
11773else
11774  lt_cv_file_magic_cmd='$MAGIC_CMD'
11775lt_cv_file_magic_test_file=
11776lt_cv_deplibs_check_method='unknown'
11777# Need to set the preceding variable on all platforms that support
11778# interlibrary dependencies.
11779# 'none' -- dependencies not supported.
11780# `unknown' -- same as none, but documents that we really don't know.
11781# 'pass_all' -- all dependencies passed with no checks.
11782# 'test_compile' -- check by making test program.
11783# 'file_magic [[regex]]' -- check by looking for files in library path
11784# which responds to the $file_magic_cmd with a given extended regex.
11785# If you have `file' or equivalent on your system and you're not sure
11786# whether `pass_all' will *always* work, you probably want this one.
11787
11788case $host_os in
11789aix[4-9]*)
11790  lt_cv_deplibs_check_method=pass_all
11791  ;;
11792
11793beos*)
11794  lt_cv_deplibs_check_method=pass_all
11795  ;;
11796
11797bsdi[45]*)
11798  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11799  lt_cv_file_magic_cmd='/usr/bin/file -L'
11800  lt_cv_file_magic_test_file=/shlib/libc.so
11801  ;;
11802
11803cygwin*)
11804  # func_win32_libid is a shell function defined in ltmain.sh
11805  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11806  lt_cv_file_magic_cmd='func_win32_libid'
11807  ;;
11808
11809mingw* | pw32*)
11810  # Base MSYS/MinGW do not provide the 'file' command needed by
11811  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11812  # unless we find 'file', for example because we are cross-compiling.
11813  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11814  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11815    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11816    lt_cv_file_magic_cmd='func_win32_libid'
11817  else
11818    # Keep this pattern in sync with the one in func_win32_libid.
11819    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11820    lt_cv_file_magic_cmd='$OBJDUMP -f'
11821  fi
11822  ;;
11823
11824cegcc*)
11825  # use the weaker test based on 'objdump'. See mingw*.
11826  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11827  lt_cv_file_magic_cmd='$OBJDUMP -f'
11828  ;;
11829
11830darwin* | rhapsody*)
11831  lt_cv_deplibs_check_method=pass_all
11832  ;;
11833
11834freebsd* | dragonfly*)
11835  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11836    case $host_cpu in
11837    i*86 )
11838      # Not sure whether the presence of OpenBSD here was a mistake.
11839      # Let's accept both of them until this is cleared up.
11840      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11841      lt_cv_file_magic_cmd=/usr/bin/file
11842      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11843      ;;
11844    esac
11845  else
11846    lt_cv_deplibs_check_method=pass_all
11847  fi
11848  ;;
11849
11850gnu*)
11851  lt_cv_deplibs_check_method=pass_all
11852  ;;
11853
11854haiku*)
11855  lt_cv_deplibs_check_method=pass_all
11856  ;;
11857
11858hpux10.20* | hpux11*)
11859  lt_cv_file_magic_cmd=/usr/bin/file
11860  case $host_cpu in
11861  ia64*)
11862    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11863    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11864    ;;
11865  hppa*64*)
11866    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]'
11867    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11868    ;;
11869  *)
11870    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11871    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11872    ;;
11873  esac
11874  ;;
11875
11876interix[3-9]*)
11877  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11878  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11879  ;;
11880
11881irix5* | irix6* | nonstopux*)
11882  case $LD in
11883  *-32|*"-32 ") libmagic=32-bit;;
11884  *-n32|*"-n32 ") libmagic=N32;;
11885  *-64|*"-64 ") libmagic=64-bit;;
11886  *) libmagic=never-match;;
11887  esac
11888  lt_cv_deplibs_check_method=pass_all
11889  ;;
11890
11891# This must be glibc/ELF.
11892linux* | k*bsd*-gnu | kopensolaris*-gnu)
11893  lt_cv_deplibs_check_method=pass_all
11894  ;;
11895
11896netbsd*)
11897  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11898    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11899  else
11900    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11901  fi
11902  ;;
11903
11904newos6*)
11905  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11906  lt_cv_file_magic_cmd=/usr/bin/file
11907  lt_cv_file_magic_test_file=/usr/lib/libnls.so
11908  ;;
11909
11910*nto* | *qnx*)
11911  lt_cv_deplibs_check_method=pass_all
11912  ;;
11913
11914openbsd*)
11915  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11916    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11917  else
11918    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11919  fi
11920  ;;
11921
11922osf3* | osf4* | osf5*)
11923  lt_cv_deplibs_check_method=pass_all
11924  ;;
11925
11926rdos*)
11927  lt_cv_deplibs_check_method=pass_all
11928  ;;
11929
11930solaris*)
11931  lt_cv_deplibs_check_method=pass_all
11932  ;;
11933
11934sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11935  lt_cv_deplibs_check_method=pass_all
11936  ;;
11937
11938sysv4 | sysv4.3*)
11939  case $host_vendor in
11940  motorola)
11941    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]'
11942    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11943    ;;
11944  ncr)
11945    lt_cv_deplibs_check_method=pass_all
11946    ;;
11947  sequent)
11948    lt_cv_file_magic_cmd='/bin/file'
11949    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11950    ;;
11951  sni)
11952    lt_cv_file_magic_cmd='/bin/file'
11953    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11954    lt_cv_file_magic_test_file=/lib/libc.so
11955    ;;
11956  siemens)
11957    lt_cv_deplibs_check_method=pass_all
11958    ;;
11959  pc)
11960    lt_cv_deplibs_check_method=pass_all
11961    ;;
11962  esac
11963  ;;
11964
11965tpf*)
11966  lt_cv_deplibs_check_method=pass_all
11967  ;;
11968esac
11969
11970fi
11971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11972$as_echo "$lt_cv_deplibs_check_method" >&6; }
11973
11974file_magic_glob=
11975want_nocaseglob=no
11976if test "$build" = "$host"; then
11977  case $host_os in
11978  mingw* | pw32*)
11979    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11980      want_nocaseglob=yes
11981    else
11982      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11983    fi
11984    ;;
11985  esac
11986fi
11987
11988file_magic_cmd=$lt_cv_file_magic_cmd
11989deplibs_check_method=$lt_cv_deplibs_check_method
11990test -z "$deplibs_check_method" && deplibs_check_method=unknown
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013if test -n "$ac_tool_prefix"; then
12014  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12015set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12017$as_echo_n "checking for $ac_word... " >&6; }
12018if ${ac_cv_prog_DLLTOOL+:} false; then :
12019  $as_echo_n "(cached) " >&6
12020else
12021  if test -n "$DLLTOOL"; then
12022  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12023else
12024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12025for as_dir in $PATH
12026do
12027  IFS=$as_save_IFS
12028  test -z "$as_dir" && as_dir=.
12029    for ac_exec_ext in '' $ac_executable_extensions; do
12030  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12031    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12032    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12033    break 2
12034  fi
12035done
12036  done
12037IFS=$as_save_IFS
12038
12039fi
12040fi
12041DLLTOOL=$ac_cv_prog_DLLTOOL
12042if test -n "$DLLTOOL"; then
12043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12044$as_echo "$DLLTOOL" >&6; }
12045else
12046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12047$as_echo "no" >&6; }
12048fi
12049
12050
12051fi
12052if test -z "$ac_cv_prog_DLLTOOL"; then
12053  ac_ct_DLLTOOL=$DLLTOOL
12054  # Extract the first word of "dlltool", so it can be a program name with args.
12055set dummy dlltool; ac_word=$2
12056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12057$as_echo_n "checking for $ac_word... " >&6; }
12058if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12059  $as_echo_n "(cached) " >&6
12060else
12061  if test -n "$ac_ct_DLLTOOL"; then
12062  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12063else
12064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12065for as_dir in $PATH
12066do
12067  IFS=$as_save_IFS
12068  test -z "$as_dir" && as_dir=.
12069    for ac_exec_ext in '' $ac_executable_extensions; do
12070  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12071    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12072    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12073    break 2
12074  fi
12075done
12076  done
12077IFS=$as_save_IFS
12078
12079fi
12080fi
12081ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12082if test -n "$ac_ct_DLLTOOL"; then
12083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12084$as_echo "$ac_ct_DLLTOOL" >&6; }
12085else
12086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12087$as_echo "no" >&6; }
12088fi
12089
12090  if test "x$ac_ct_DLLTOOL" = x; then
12091    DLLTOOL="false"
12092  else
12093    case $cross_compiling:$ac_tool_warned in
12094yes:)
12095{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12096$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12097ac_tool_warned=yes ;;
12098esac
12099    DLLTOOL=$ac_ct_DLLTOOL
12100  fi
12101else
12102  DLLTOOL="$ac_cv_prog_DLLTOOL"
12103fi
12104
12105test -z "$DLLTOOL" && DLLTOOL=dlltool
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12117$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12118if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12119  $as_echo_n "(cached) " >&6
12120else
12121  lt_cv_sharedlib_from_linklib_cmd='unknown'
12122
12123case $host_os in
12124cygwin* | mingw* | pw32* | cegcc*)
12125  # two different shell functions defined in ltmain.sh
12126  # decide which to use based on capabilities of $DLLTOOL
12127  case `$DLLTOOL --help 2>&1` in
12128  *--identify-strict*)
12129    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12130    ;;
12131  *)
12132    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12133    ;;
12134  esac
12135  ;;
12136*)
12137  # fallback: assume linklib IS sharedlib
12138  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12139  ;;
12140esac
12141
12142fi
12143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12144$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12145sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12146test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12147
12148
12149
12150
12151
12152
12153
12154if test -n "$ac_tool_prefix"; then
12155  for ac_prog in ar
12156  do
12157    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12158set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12160$as_echo_n "checking for $ac_word... " >&6; }
12161if ${ac_cv_prog_AR+:} false; then :
12162  $as_echo_n "(cached) " >&6
12163else
12164  if test -n "$AR"; then
12165  ac_cv_prog_AR="$AR" # Let the user override the test.
12166else
12167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12168for as_dir in $PATH
12169do
12170  IFS=$as_save_IFS
12171  test -z "$as_dir" && as_dir=.
12172    for ac_exec_ext in '' $ac_executable_extensions; do
12173  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12174    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12175    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12176    break 2
12177  fi
12178done
12179  done
12180IFS=$as_save_IFS
12181
12182fi
12183fi
12184AR=$ac_cv_prog_AR
12185if test -n "$AR"; then
12186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12187$as_echo "$AR" >&6; }
12188else
12189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12190$as_echo "no" >&6; }
12191fi
12192
12193
12194    test -n "$AR" && break
12195  done
12196fi
12197if test -z "$AR"; then
12198  ac_ct_AR=$AR
12199  for ac_prog in ar
12200do
12201  # Extract the first word of "$ac_prog", so it can be a program name with args.
12202set dummy $ac_prog; ac_word=$2
12203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12204$as_echo_n "checking for $ac_word... " >&6; }
12205if ${ac_cv_prog_ac_ct_AR+:} false; then :
12206  $as_echo_n "(cached) " >&6
12207else
12208  if test -n "$ac_ct_AR"; then
12209  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12210else
12211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12212for as_dir in $PATH
12213do
12214  IFS=$as_save_IFS
12215  test -z "$as_dir" && as_dir=.
12216    for ac_exec_ext in '' $ac_executable_extensions; do
12217  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12218    ac_cv_prog_ac_ct_AR="$ac_prog"
12219    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12220    break 2
12221  fi
12222done
12223  done
12224IFS=$as_save_IFS
12225
12226fi
12227fi
12228ac_ct_AR=$ac_cv_prog_ac_ct_AR
12229if test -n "$ac_ct_AR"; then
12230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12231$as_echo "$ac_ct_AR" >&6; }
12232else
12233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12234$as_echo "no" >&6; }
12235fi
12236
12237
12238  test -n "$ac_ct_AR" && break
12239done
12240
12241  if test "x$ac_ct_AR" = x; then
12242    AR="false"
12243  else
12244    case $cross_compiling:$ac_tool_warned in
12245yes:)
12246{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12247$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12248ac_tool_warned=yes ;;
12249esac
12250    AR=$ac_ct_AR
12251  fi
12252fi
12253
12254: ${AR=ar}
12255: ${AR_FLAGS=cru}
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12268$as_echo_n "checking for archiver @FILE support... " >&6; }
12269if ${lt_cv_ar_at_file+:} false; then :
12270  $as_echo_n "(cached) " >&6
12271else
12272  lt_cv_ar_at_file=no
12273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12274/* end confdefs.h.  */
12275
12276int
12277main ()
12278{
12279
12280  ;
12281  return 0;
12282}
12283_ACEOF
12284if ac_fn_c_try_compile "$LINENO"; then :
12285  echo conftest.$ac_objext > conftest.lst
12286      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12287      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12288  (eval $lt_ar_try) 2>&5
12289  ac_status=$?
12290  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12291  test $ac_status = 0; }
12292      if test "$ac_status" -eq 0; then
12293	# Ensure the archiver fails upon bogus file names.
12294	rm -f conftest.$ac_objext libconftest.a
12295	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12296  (eval $lt_ar_try) 2>&5
12297  ac_status=$?
12298  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12299  test $ac_status = 0; }
12300	if test "$ac_status" -ne 0; then
12301          lt_cv_ar_at_file=@
12302        fi
12303      fi
12304      rm -f conftest.* libconftest.a
12305
12306fi
12307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12308
12309fi
12310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12311$as_echo "$lt_cv_ar_at_file" >&6; }
12312
12313if test "x$lt_cv_ar_at_file" = xno; then
12314  archiver_list_spec=
12315else
12316  archiver_list_spec=$lt_cv_ar_at_file
12317fi
12318
12319
12320
12321
12322
12323
12324
12325if test -n "$ac_tool_prefix"; then
12326  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12327set dummy ${ac_tool_prefix}strip; ac_word=$2
12328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12329$as_echo_n "checking for $ac_word... " >&6; }
12330if ${ac_cv_prog_STRIP+:} false; then :
12331  $as_echo_n "(cached) " >&6
12332else
12333  if test -n "$STRIP"; then
12334  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12335else
12336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12337for as_dir in $PATH
12338do
12339  IFS=$as_save_IFS
12340  test -z "$as_dir" && as_dir=.
12341    for ac_exec_ext in '' $ac_executable_extensions; do
12342  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12343    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12344    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12345    break 2
12346  fi
12347done
12348  done
12349IFS=$as_save_IFS
12350
12351fi
12352fi
12353STRIP=$ac_cv_prog_STRIP
12354if test -n "$STRIP"; then
12355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12356$as_echo "$STRIP" >&6; }
12357else
12358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12359$as_echo "no" >&6; }
12360fi
12361
12362
12363fi
12364if test -z "$ac_cv_prog_STRIP"; then
12365  ac_ct_STRIP=$STRIP
12366  # Extract the first word of "strip", so it can be a program name with args.
12367set dummy strip; ac_word=$2
12368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12369$as_echo_n "checking for $ac_word... " >&6; }
12370if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12371  $as_echo_n "(cached) " >&6
12372else
12373  if test -n "$ac_ct_STRIP"; then
12374  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12375else
12376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12377for as_dir in $PATH
12378do
12379  IFS=$as_save_IFS
12380  test -z "$as_dir" && as_dir=.
12381    for ac_exec_ext in '' $ac_executable_extensions; do
12382  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12383    ac_cv_prog_ac_ct_STRIP="strip"
12384    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12385    break 2
12386  fi
12387done
12388  done
12389IFS=$as_save_IFS
12390
12391fi
12392fi
12393ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12394if test -n "$ac_ct_STRIP"; then
12395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12396$as_echo "$ac_ct_STRIP" >&6; }
12397else
12398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12399$as_echo "no" >&6; }
12400fi
12401
12402  if test "x$ac_ct_STRIP" = x; then
12403    STRIP=":"
12404  else
12405    case $cross_compiling:$ac_tool_warned in
12406yes:)
12407{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12408$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12409ac_tool_warned=yes ;;
12410esac
12411    STRIP=$ac_ct_STRIP
12412  fi
12413else
12414  STRIP="$ac_cv_prog_STRIP"
12415fi
12416
12417test -z "$STRIP" && STRIP=:
12418
12419
12420
12421
12422
12423
12424if test -n "$ac_tool_prefix"; then
12425  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12426set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12428$as_echo_n "checking for $ac_word... " >&6; }
12429if ${ac_cv_prog_RANLIB+:} false; then :
12430  $as_echo_n "(cached) " >&6
12431else
12432  if test -n "$RANLIB"; then
12433  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12434else
12435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12436for as_dir in $PATH
12437do
12438  IFS=$as_save_IFS
12439  test -z "$as_dir" && as_dir=.
12440    for ac_exec_ext in '' $ac_executable_extensions; do
12441  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12442    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12443    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12444    break 2
12445  fi
12446done
12447  done
12448IFS=$as_save_IFS
12449
12450fi
12451fi
12452RANLIB=$ac_cv_prog_RANLIB
12453if test -n "$RANLIB"; then
12454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12455$as_echo "$RANLIB" >&6; }
12456else
12457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12458$as_echo "no" >&6; }
12459fi
12460
12461
12462fi
12463if test -z "$ac_cv_prog_RANLIB"; then
12464  ac_ct_RANLIB=$RANLIB
12465  # Extract the first word of "ranlib", so it can be a program name with args.
12466set dummy ranlib; ac_word=$2
12467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12468$as_echo_n "checking for $ac_word... " >&6; }
12469if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12470  $as_echo_n "(cached) " >&6
12471else
12472  if test -n "$ac_ct_RANLIB"; then
12473  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12474else
12475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12476for as_dir in $PATH
12477do
12478  IFS=$as_save_IFS
12479  test -z "$as_dir" && as_dir=.
12480    for ac_exec_ext in '' $ac_executable_extensions; do
12481  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12482    ac_cv_prog_ac_ct_RANLIB="ranlib"
12483    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12484    break 2
12485  fi
12486done
12487  done
12488IFS=$as_save_IFS
12489
12490fi
12491fi
12492ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12493if test -n "$ac_ct_RANLIB"; then
12494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12495$as_echo "$ac_ct_RANLIB" >&6; }
12496else
12497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12498$as_echo "no" >&6; }
12499fi
12500
12501  if test "x$ac_ct_RANLIB" = x; then
12502    RANLIB=":"
12503  else
12504    case $cross_compiling:$ac_tool_warned in
12505yes:)
12506{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12507$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12508ac_tool_warned=yes ;;
12509esac
12510    RANLIB=$ac_ct_RANLIB
12511  fi
12512else
12513  RANLIB="$ac_cv_prog_RANLIB"
12514fi
12515
12516test -z "$RANLIB" && RANLIB=:
12517
12518
12519
12520
12521
12522
12523# Determine commands to create old-style static archives.
12524old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12525old_postinstall_cmds='chmod 644 $oldlib'
12526old_postuninstall_cmds=
12527
12528if test -n "$RANLIB"; then
12529  case $host_os in
12530  openbsd*)
12531    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12532    ;;
12533  *)
12534    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12535    ;;
12536  esac
12537  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12538fi
12539
12540case $host_os in
12541  darwin*)
12542    lock_old_archive_extraction=yes ;;
12543  *)
12544    lock_old_archive_extraction=no ;;
12545esac
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585# If no C compiler was specified, use CC.
12586LTCC=${LTCC-"$CC"}
12587
12588# If no C compiler flags were specified, use CFLAGS.
12589LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12590
12591# Allow CC to be a program name with arguments.
12592compiler=$CC
12593
12594
12595# Check for command to grab the raw symbol name followed by C symbol from nm.
12596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12597$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12598if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12599  $as_echo_n "(cached) " >&6
12600else
12601
12602# These are sane defaults that work on at least a few old systems.
12603# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12604
12605# Character class describing NM global symbol codes.
12606symcode='[BCDEGRST]'
12607
12608# Regexp to match symbols that can be accessed directly from C.
12609sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12610
12611# Define system-specific variables.
12612case $host_os in
12613aix*)
12614  symcode='[BCDT]'
12615  ;;
12616cygwin* | mingw* | pw32* | cegcc*)
12617  symcode='[ABCDGISTW]'
12618  ;;
12619hpux*)
12620  if test "$host_cpu" = ia64; then
12621    symcode='[ABCDEGRST]'
12622  fi
12623  ;;
12624irix* | nonstopux*)
12625  symcode='[BCDEGRST]'
12626  ;;
12627osf*)
12628  symcode='[BCDEGQRST]'
12629  ;;
12630solaris*)
12631  symcode='[BDRT]'
12632  ;;
12633sco3.2v5*)
12634  symcode='[DT]'
12635  ;;
12636sysv4.2uw2*)
12637  symcode='[DT]'
12638  ;;
12639sysv5* | sco5v6* | unixware* | OpenUNIX*)
12640  symcode='[ABDT]'
12641  ;;
12642sysv4)
12643  symcode='[DFNSTU]'
12644  ;;
12645esac
12646
12647# If we're using GNU nm, then use its standard symbol codes.
12648case `$NM -V 2>&1` in
12649*GNU* | *'with BFD'*)
12650  symcode='[ABCDGIRSTW]' ;;
12651esac
12652
12653# Transform an extracted symbol line into a proper C declaration.
12654# Some systems (esp. on ia64) link data and code symbols differently,
12655# so use this general approach.
12656lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12657
12658# Transform an extracted symbol line into symbol name and symbol address
12659lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
12660lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
12661
12662# Handle CRLF in mingw tool chain
12663opt_cr=
12664case $build_os in
12665mingw*)
12666  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12667  ;;
12668esac
12669
12670# Try without a prefix underscore, then with it.
12671for ac_symprfx in "" "_"; do
12672
12673  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12674  symxfrm="\\1 $ac_symprfx\\2 \\2"
12675
12676  # Write the raw and C identifiers.
12677  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12678    # Fake it for dumpbin and say T for any non-static function
12679    # and D for any global variable.
12680    # Also find C++ and __fastcall symbols from MSVC++,
12681    # which start with @ or ?.
12682    lt_cv_sys_global_symbol_pipe="$AWK '"\
12683"     {last_section=section; section=\$ 3};"\
12684"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12685"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12686"     \$ 0!~/External *\|/{next};"\
12687"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12688"     {if(hide[section]) next};"\
12689"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12690"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12691"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
12692"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12693"     ' prfx=^$ac_symprfx"
12694  else
12695    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12696  fi
12697  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12698
12699  # Check to see that the pipe works correctly.
12700  pipe_works=no
12701
12702  rm -f conftest*
12703  cat > conftest.$ac_ext <<_LT_EOF
12704#ifdef __cplusplus
12705extern "C" {
12706#endif
12707char nm_test_var;
12708void nm_test_func(void);
12709void nm_test_func(void){}
12710#ifdef __cplusplus
12711}
12712#endif
12713int main(){nm_test_var='a';nm_test_func();return(0);}
12714_LT_EOF
12715
12716  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12717  (eval $ac_compile) 2>&5
12718  ac_status=$?
12719  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12720  test $ac_status = 0; }; then
12721    # Now try to grab the symbols.
12722    nlist=conftest.nm
12723    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12724  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12725  ac_status=$?
12726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12727  test $ac_status = 0; } && test -s "$nlist"; then
12728      # Try sorting and uniquifying the output.
12729      if sort "$nlist" | uniq > "$nlist"T; then
12730	mv -f "$nlist"T "$nlist"
12731      else
12732	rm -f "$nlist"T
12733      fi
12734
12735      # Make sure that we snagged all the symbols we need.
12736      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12737	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12738	  cat <<_LT_EOF > conftest.$ac_ext
12739/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12740#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12741/* DATA imports from DLLs on WIN32 con't be const, because runtime
12742   relocations are performed -- see ld's documentation on pseudo-relocs.  */
12743# define LT_DLSYM_CONST
12744#elif defined(__osf__)
12745/* This system does not cope well with relocations in const data.  */
12746# define LT_DLSYM_CONST
12747#else
12748# define LT_DLSYM_CONST const
12749#endif
12750
12751#ifdef __cplusplus
12752extern "C" {
12753#endif
12754
12755_LT_EOF
12756	  # Now generate the symbol file.
12757	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12758
12759	  cat <<_LT_EOF >> conftest.$ac_ext
12760
12761/* The mapping between symbol names and symbols.  */
12762LT_DLSYM_CONST struct {
12763  const char *name;
12764  void       *address;
12765}
12766lt__PROGRAM__LTX_preloaded_symbols[] =
12767{
12768  { "@PROGRAM@", (void *) 0 },
12769_LT_EOF
12770	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12771	  cat <<\_LT_EOF >> conftest.$ac_ext
12772  {0, (void *) 0}
12773};
12774
12775/* This works around a problem in FreeBSD linker */
12776#ifdef FREEBSD_WORKAROUND
12777static const void *lt_preloaded_setup() {
12778  return lt__PROGRAM__LTX_preloaded_symbols;
12779}
12780#endif
12781
12782#ifdef __cplusplus
12783}
12784#endif
12785_LT_EOF
12786	  # Now try linking the two files.
12787	  mv conftest.$ac_objext conftstm.$ac_objext
12788	  lt_globsym_save_LIBS=$LIBS
12789	  lt_globsym_save_CFLAGS=$CFLAGS
12790	  LIBS="conftstm.$ac_objext"
12791	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12792	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12793  (eval $ac_link) 2>&5
12794  ac_status=$?
12795  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12796  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12797	    pipe_works=yes
12798	  fi
12799	  LIBS=$lt_globsym_save_LIBS
12800	  CFLAGS=$lt_globsym_save_CFLAGS
12801	else
12802	  echo "cannot find nm_test_func in $nlist" >&5
12803	fi
12804      else
12805	echo "cannot find nm_test_var in $nlist" >&5
12806      fi
12807    else
12808      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12809    fi
12810  else
12811    echo "$progname: failed program was:" >&5
12812    cat conftest.$ac_ext >&5
12813  fi
12814  rm -rf conftest* conftst*
12815
12816  # Do not use the global_symbol_pipe unless it works.
12817  if test "$pipe_works" = yes; then
12818    break
12819  else
12820    lt_cv_sys_global_symbol_pipe=
12821  fi
12822done
12823
12824fi
12825
12826if test -z "$lt_cv_sys_global_symbol_pipe"; then
12827  lt_cv_sys_global_symbol_to_cdecl=
12828fi
12829if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12831$as_echo "failed" >&6; }
12832else
12833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12834$as_echo "ok" >&6; }
12835fi
12836
12837# Response file support.
12838if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12839  nm_file_list_spec='@'
12840elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12841  nm_file_list_spec='@'
12842fi
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12871$as_echo_n "checking for sysroot... " >&6; }
12872
12873# Check whether --with-sysroot was given.
12874if test "${with_sysroot+set}" = set; then :
12875  withval=$with_sysroot;
12876else
12877  with_sysroot=no
12878fi
12879
12880
12881lt_sysroot=
12882case ${with_sysroot} in #(
12883 yes)
12884   if test "$GCC" = yes; then
12885     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12886   fi
12887   ;; #(
12888 /*)
12889   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12890   ;; #(
12891 no|'')
12892   ;; #(
12893 *)
12894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12895$as_echo "${with_sysroot}" >&6; }
12896   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12897   ;;
12898esac
12899
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12901$as_echo "${lt_sysroot:-no}" >&6; }
12902
12903
12904
12905
12906
12907# Check whether --enable-libtool-lock was given.
12908if test "${enable_libtool_lock+set}" = set; then :
12909  enableval=$enable_libtool_lock;
12910fi
12911
12912test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12913
12914# Some flags need to be propagated to the compiler or linker for good
12915# libtool support.
12916case $host in
12917ia64-*-hpux*)
12918  # Find out which ABI we are using.
12919  echo 'int i;' > conftest.$ac_ext
12920  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12921  (eval $ac_compile) 2>&5
12922  ac_status=$?
12923  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12924  test $ac_status = 0; }; then
12925    case `/usr/bin/file conftest.$ac_objext` in
12926      *ELF-32*)
12927	HPUX_IA64_MODE="32"
12928	;;
12929      *ELF-64*)
12930	HPUX_IA64_MODE="64"
12931	;;
12932    esac
12933  fi
12934  rm -rf conftest*
12935  ;;
12936*-*-irix6*)
12937  # Find out which ABI we are using.
12938  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12939  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12940  (eval $ac_compile) 2>&5
12941  ac_status=$?
12942  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12943  test $ac_status = 0; }; then
12944    if test "$lt_cv_prog_gnu_ld" = yes; then
12945      case `/usr/bin/file conftest.$ac_objext` in
12946	*32-bit*)
12947	  LD="${LD-ld} -melf32bsmip"
12948	  ;;
12949	*N32*)
12950	  LD="${LD-ld} -melf32bmipn32"
12951	  ;;
12952	*64-bit*)
12953	  LD="${LD-ld} -melf64bmip"
12954	;;
12955      esac
12956    else
12957      case `/usr/bin/file conftest.$ac_objext` in
12958	*32-bit*)
12959	  LD="${LD-ld} -32"
12960	  ;;
12961	*N32*)
12962	  LD="${LD-ld} -n32"
12963	  ;;
12964	*64-bit*)
12965	  LD="${LD-ld} -64"
12966	  ;;
12967      esac
12968    fi
12969  fi
12970  rm -rf conftest*
12971  ;;
12972
12973x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
12974s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12975  # Find out which ABI we are using.
12976  echo 'int i;' > conftest.$ac_ext
12977  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12978  (eval $ac_compile) 2>&5
12979  ac_status=$?
12980  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12981  test $ac_status = 0; }; then
12982    case `/usr/bin/file conftest.o` in
12983      *32-bit*)
12984	case $host in
12985	  x86_64-*kfreebsd*-gnu)
12986	    LD="${LD-ld} -m elf_i386_fbsd"
12987	    ;;
12988	  x86_64-*linux*)
12989	    LD="${LD-ld} -m elf_i386"
12990	    ;;
12991	  powerpc64le-*linux*)
12992	    LD="${LD-ld} -m elf32lppclinux"
12993	    ;;
12994	  powerpc64-*linux*)
12995	    LD="${LD-ld} -m elf32ppclinux"
12996	    ;;
12997	  s390x-*linux*)
12998	    LD="${LD-ld} -m elf_s390"
12999	    ;;
13000	  sparc64-*linux*)
13001	    LD="${LD-ld} -m elf32_sparc"
13002	    ;;
13003	esac
13004	;;
13005      *64-bit*)
13006	case $host in
13007	  x86_64-*kfreebsd*-gnu)
13008	    LD="${LD-ld} -m elf_x86_64_fbsd"
13009	    ;;
13010	  x86_64-*linux*)
13011	    LD="${LD-ld} -m elf_x86_64"
13012	    ;;
13013	  powerpcle-*linux*)
13014	    LD="${LD-ld} -m elf64lppc"
13015	    ;;
13016	  powerpc-*linux*)
13017	    LD="${LD-ld} -m elf64ppc"
13018	    ;;
13019	  s390*-*linux*|s390*-*tpf*)
13020	    LD="${LD-ld} -m elf64_s390"
13021	    ;;
13022	  sparc*-*linux*)
13023	    LD="${LD-ld} -m elf64_sparc"
13024	    ;;
13025	esac
13026	;;
13027    esac
13028  fi
13029  rm -rf conftest*
13030  ;;
13031
13032*-*-sco3.2v5*)
13033  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13034  SAVE_CFLAGS="$CFLAGS"
13035  CFLAGS="$CFLAGS -belf"
13036  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13037$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13038if ${lt_cv_cc_needs_belf+:} false; then :
13039  $as_echo_n "(cached) " >&6
13040else
13041  ac_ext=c
13042ac_cpp='$CPP $CPPFLAGS'
13043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13045ac_compiler_gnu=$ac_cv_c_compiler_gnu
13046
13047     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13048/* end confdefs.h.  */
13049
13050int
13051main ()
13052{
13053
13054  ;
13055  return 0;
13056}
13057_ACEOF
13058if ac_fn_c_try_link "$LINENO"; then :
13059  lt_cv_cc_needs_belf=yes
13060else
13061  lt_cv_cc_needs_belf=no
13062fi
13063rm -f core conftest.err conftest.$ac_objext \
13064    conftest$ac_exeext conftest.$ac_ext
13065     ac_ext=c
13066ac_cpp='$CPP $CPPFLAGS'
13067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13069ac_compiler_gnu=$ac_cv_c_compiler_gnu
13070
13071fi
13072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13073$as_echo "$lt_cv_cc_needs_belf" >&6; }
13074  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13075    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13076    CFLAGS="$SAVE_CFLAGS"
13077  fi
13078  ;;
13079*-*solaris*)
13080  # Find out which ABI we are using.
13081  echo 'int i;' > conftest.$ac_ext
13082  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13083  (eval $ac_compile) 2>&5
13084  ac_status=$?
13085  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13086  test $ac_status = 0; }; then
13087    case `/usr/bin/file conftest.o` in
13088    *64-bit*)
13089      case $lt_cv_prog_gnu_ld in
13090      yes*)
13091        case $host in
13092        i?86-*-solaris*)
13093          LD="${LD-ld} -m elf_x86_64"
13094          ;;
13095        sparc*-*-solaris*)
13096          LD="${LD-ld} -m elf64_sparc"
13097          ;;
13098        esac
13099        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
13100        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13101          LD="${LD-ld}_sol2"
13102        fi
13103        ;;
13104      *)
13105	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13106	  LD="${LD-ld} -64"
13107	fi
13108	;;
13109      esac
13110      ;;
13111    esac
13112  fi
13113  rm -rf conftest*
13114  ;;
13115esac
13116
13117need_locks="$enable_libtool_lock"
13118
13119if test -n "$ac_tool_prefix"; then
13120  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13121set dummy ${ac_tool_prefix}mt; ac_word=$2
13122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13123$as_echo_n "checking for $ac_word... " >&6; }
13124if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13125  $as_echo_n "(cached) " >&6
13126else
13127  if test -n "$MANIFEST_TOOL"; then
13128  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13129else
13130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13131for as_dir in $PATH
13132do
13133  IFS=$as_save_IFS
13134  test -z "$as_dir" && as_dir=.
13135    for ac_exec_ext in '' $ac_executable_extensions; do
13136  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13137    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13138    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13139    break 2
13140  fi
13141done
13142  done
13143IFS=$as_save_IFS
13144
13145fi
13146fi
13147MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13148if test -n "$MANIFEST_TOOL"; then
13149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13150$as_echo "$MANIFEST_TOOL" >&6; }
13151else
13152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13153$as_echo "no" >&6; }
13154fi
13155
13156
13157fi
13158if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13159  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13160  # Extract the first word of "mt", so it can be a program name with args.
13161set dummy mt; ac_word=$2
13162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13163$as_echo_n "checking for $ac_word... " >&6; }
13164if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13165  $as_echo_n "(cached) " >&6
13166else
13167  if test -n "$ac_ct_MANIFEST_TOOL"; then
13168  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13169else
13170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13171for as_dir in $PATH
13172do
13173  IFS=$as_save_IFS
13174  test -z "$as_dir" && as_dir=.
13175    for ac_exec_ext in '' $ac_executable_extensions; do
13176  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13177    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13178    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13179    break 2
13180  fi
13181done
13182  done
13183IFS=$as_save_IFS
13184
13185fi
13186fi
13187ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13188if test -n "$ac_ct_MANIFEST_TOOL"; then
13189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13190$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13191else
13192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13193$as_echo "no" >&6; }
13194fi
13195
13196  if test "x$ac_ct_MANIFEST_TOOL" = x; then
13197    MANIFEST_TOOL=":"
13198  else
13199    case $cross_compiling:$ac_tool_warned in
13200yes:)
13201{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13202$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13203ac_tool_warned=yes ;;
13204esac
13205    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13206  fi
13207else
13208  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13209fi
13210
13211test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13213$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13214if ${lt_cv_path_mainfest_tool+:} false; then :
13215  $as_echo_n "(cached) " >&6
13216else
13217  lt_cv_path_mainfest_tool=no
13218  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13219  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13220  cat conftest.err >&5
13221  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13222    lt_cv_path_mainfest_tool=yes
13223  fi
13224  rm -f conftest*
13225fi
13226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13227$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13228if test "x$lt_cv_path_mainfest_tool" != xyes; then
13229  MANIFEST_TOOL=:
13230fi
13231
13232
13233
13234
13235
13236
13237  case $host_os in
13238    rhapsody* | darwin*)
13239    if test -n "$ac_tool_prefix"; then
13240  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13241set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13243$as_echo_n "checking for $ac_word... " >&6; }
13244if ${ac_cv_prog_DSYMUTIL+:} false; then :
13245  $as_echo_n "(cached) " >&6
13246else
13247  if test -n "$DSYMUTIL"; then
13248  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13249else
13250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13251for as_dir in $PATH
13252do
13253  IFS=$as_save_IFS
13254  test -z "$as_dir" && as_dir=.
13255    for ac_exec_ext in '' $ac_executable_extensions; do
13256  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13257    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13258    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13259    break 2
13260  fi
13261done
13262  done
13263IFS=$as_save_IFS
13264
13265fi
13266fi
13267DSYMUTIL=$ac_cv_prog_DSYMUTIL
13268if test -n "$DSYMUTIL"; then
13269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13270$as_echo "$DSYMUTIL" >&6; }
13271else
13272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13273$as_echo "no" >&6; }
13274fi
13275
13276
13277fi
13278if test -z "$ac_cv_prog_DSYMUTIL"; then
13279  ac_ct_DSYMUTIL=$DSYMUTIL
13280  # Extract the first word of "dsymutil", so it can be a program name with args.
13281set dummy dsymutil; ac_word=$2
13282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13283$as_echo_n "checking for $ac_word... " >&6; }
13284if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13285  $as_echo_n "(cached) " >&6
13286else
13287  if test -n "$ac_ct_DSYMUTIL"; then
13288  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13289else
13290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13291for as_dir in $PATH
13292do
13293  IFS=$as_save_IFS
13294  test -z "$as_dir" && as_dir=.
13295    for ac_exec_ext in '' $ac_executable_extensions; do
13296  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13297    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13298    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13299    break 2
13300  fi
13301done
13302  done
13303IFS=$as_save_IFS
13304
13305fi
13306fi
13307ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13308if test -n "$ac_ct_DSYMUTIL"; then
13309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13310$as_echo "$ac_ct_DSYMUTIL" >&6; }
13311else
13312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13313$as_echo "no" >&6; }
13314fi
13315
13316  if test "x$ac_ct_DSYMUTIL" = x; then
13317    DSYMUTIL=":"
13318  else
13319    case $cross_compiling:$ac_tool_warned in
13320yes:)
13321{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13322$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13323ac_tool_warned=yes ;;
13324esac
13325    DSYMUTIL=$ac_ct_DSYMUTIL
13326  fi
13327else
13328  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13329fi
13330
13331    if test -n "$ac_tool_prefix"; then
13332  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13333set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13335$as_echo_n "checking for $ac_word... " >&6; }
13336if ${ac_cv_prog_NMEDIT+:} false; then :
13337  $as_echo_n "(cached) " >&6
13338else
13339  if test -n "$NMEDIT"; then
13340  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13341else
13342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13343for as_dir in $PATH
13344do
13345  IFS=$as_save_IFS
13346  test -z "$as_dir" && as_dir=.
13347    for ac_exec_ext in '' $ac_executable_extensions; do
13348  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13349    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13350    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13351    break 2
13352  fi
13353done
13354  done
13355IFS=$as_save_IFS
13356
13357fi
13358fi
13359NMEDIT=$ac_cv_prog_NMEDIT
13360if test -n "$NMEDIT"; then
13361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13362$as_echo "$NMEDIT" >&6; }
13363else
13364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13365$as_echo "no" >&6; }
13366fi
13367
13368
13369fi
13370if test -z "$ac_cv_prog_NMEDIT"; then
13371  ac_ct_NMEDIT=$NMEDIT
13372  # Extract the first word of "nmedit", so it can be a program name with args.
13373set dummy nmedit; ac_word=$2
13374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13375$as_echo_n "checking for $ac_word... " >&6; }
13376if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13377  $as_echo_n "(cached) " >&6
13378else
13379  if test -n "$ac_ct_NMEDIT"; then
13380  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13381else
13382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13383for as_dir in $PATH
13384do
13385  IFS=$as_save_IFS
13386  test -z "$as_dir" && as_dir=.
13387    for ac_exec_ext in '' $ac_executable_extensions; do
13388  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13389    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13390    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13391    break 2
13392  fi
13393done
13394  done
13395IFS=$as_save_IFS
13396
13397fi
13398fi
13399ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13400if test -n "$ac_ct_NMEDIT"; then
13401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13402$as_echo "$ac_ct_NMEDIT" >&6; }
13403else
13404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13405$as_echo "no" >&6; }
13406fi
13407
13408  if test "x$ac_ct_NMEDIT" = x; then
13409    NMEDIT=":"
13410  else
13411    case $cross_compiling:$ac_tool_warned in
13412yes:)
13413{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13414$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13415ac_tool_warned=yes ;;
13416esac
13417    NMEDIT=$ac_ct_NMEDIT
13418  fi
13419else
13420  NMEDIT="$ac_cv_prog_NMEDIT"
13421fi
13422
13423    if test -n "$ac_tool_prefix"; then
13424  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13425set dummy ${ac_tool_prefix}lipo; ac_word=$2
13426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13427$as_echo_n "checking for $ac_word... " >&6; }
13428if ${ac_cv_prog_LIPO+:} false; then :
13429  $as_echo_n "(cached) " >&6
13430else
13431  if test -n "$LIPO"; then
13432  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13433else
13434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13435for as_dir in $PATH
13436do
13437  IFS=$as_save_IFS
13438  test -z "$as_dir" && as_dir=.
13439    for ac_exec_ext in '' $ac_executable_extensions; do
13440  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13441    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13442    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13443    break 2
13444  fi
13445done
13446  done
13447IFS=$as_save_IFS
13448
13449fi
13450fi
13451LIPO=$ac_cv_prog_LIPO
13452if test -n "$LIPO"; then
13453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13454$as_echo "$LIPO" >&6; }
13455else
13456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13457$as_echo "no" >&6; }
13458fi
13459
13460
13461fi
13462if test -z "$ac_cv_prog_LIPO"; then
13463  ac_ct_LIPO=$LIPO
13464  # Extract the first word of "lipo", so it can be a program name with args.
13465set dummy lipo; ac_word=$2
13466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13467$as_echo_n "checking for $ac_word... " >&6; }
13468if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13469  $as_echo_n "(cached) " >&6
13470else
13471  if test -n "$ac_ct_LIPO"; then
13472  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13473else
13474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13475for as_dir in $PATH
13476do
13477  IFS=$as_save_IFS
13478  test -z "$as_dir" && as_dir=.
13479    for ac_exec_ext in '' $ac_executable_extensions; do
13480  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13481    ac_cv_prog_ac_ct_LIPO="lipo"
13482    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13483    break 2
13484  fi
13485done
13486  done
13487IFS=$as_save_IFS
13488
13489fi
13490fi
13491ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13492if test -n "$ac_ct_LIPO"; then
13493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13494$as_echo "$ac_ct_LIPO" >&6; }
13495else
13496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13497$as_echo "no" >&6; }
13498fi
13499
13500  if test "x$ac_ct_LIPO" = x; then
13501    LIPO=":"
13502  else
13503    case $cross_compiling:$ac_tool_warned in
13504yes:)
13505{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13506$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13507ac_tool_warned=yes ;;
13508esac
13509    LIPO=$ac_ct_LIPO
13510  fi
13511else
13512  LIPO="$ac_cv_prog_LIPO"
13513fi
13514
13515    if test -n "$ac_tool_prefix"; then
13516  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13517set dummy ${ac_tool_prefix}otool; ac_word=$2
13518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13519$as_echo_n "checking for $ac_word... " >&6; }
13520if ${ac_cv_prog_OTOOL+:} false; then :
13521  $as_echo_n "(cached) " >&6
13522else
13523  if test -n "$OTOOL"; then
13524  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13525else
13526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13527for as_dir in $PATH
13528do
13529  IFS=$as_save_IFS
13530  test -z "$as_dir" && as_dir=.
13531    for ac_exec_ext in '' $ac_executable_extensions; do
13532  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13533    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13534    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13535    break 2
13536  fi
13537done
13538  done
13539IFS=$as_save_IFS
13540
13541fi
13542fi
13543OTOOL=$ac_cv_prog_OTOOL
13544if test -n "$OTOOL"; then
13545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13546$as_echo "$OTOOL" >&6; }
13547else
13548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13549$as_echo "no" >&6; }
13550fi
13551
13552
13553fi
13554if test -z "$ac_cv_prog_OTOOL"; then
13555  ac_ct_OTOOL=$OTOOL
13556  # Extract the first word of "otool", so it can be a program name with args.
13557set dummy otool; ac_word=$2
13558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13559$as_echo_n "checking for $ac_word... " >&6; }
13560if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13561  $as_echo_n "(cached) " >&6
13562else
13563  if test -n "$ac_ct_OTOOL"; then
13564  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13565else
13566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13567for as_dir in $PATH
13568do
13569  IFS=$as_save_IFS
13570  test -z "$as_dir" && as_dir=.
13571    for ac_exec_ext in '' $ac_executable_extensions; do
13572  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13573    ac_cv_prog_ac_ct_OTOOL="otool"
13574    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13575    break 2
13576  fi
13577done
13578  done
13579IFS=$as_save_IFS
13580
13581fi
13582fi
13583ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13584if test -n "$ac_ct_OTOOL"; then
13585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13586$as_echo "$ac_ct_OTOOL" >&6; }
13587else
13588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13589$as_echo "no" >&6; }
13590fi
13591
13592  if test "x$ac_ct_OTOOL" = x; then
13593    OTOOL=":"
13594  else
13595    case $cross_compiling:$ac_tool_warned in
13596yes:)
13597{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13598$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13599ac_tool_warned=yes ;;
13600esac
13601    OTOOL=$ac_ct_OTOOL
13602  fi
13603else
13604  OTOOL="$ac_cv_prog_OTOOL"
13605fi
13606
13607    if test -n "$ac_tool_prefix"; then
13608  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13609set dummy ${ac_tool_prefix}otool64; ac_word=$2
13610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13611$as_echo_n "checking for $ac_word... " >&6; }
13612if ${ac_cv_prog_OTOOL64+:} false; then :
13613  $as_echo_n "(cached) " >&6
13614else
13615  if test -n "$OTOOL64"; then
13616  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13617else
13618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13619for as_dir in $PATH
13620do
13621  IFS=$as_save_IFS
13622  test -z "$as_dir" && as_dir=.
13623    for ac_exec_ext in '' $ac_executable_extensions; do
13624  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13625    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13626    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13627    break 2
13628  fi
13629done
13630  done
13631IFS=$as_save_IFS
13632
13633fi
13634fi
13635OTOOL64=$ac_cv_prog_OTOOL64
13636if test -n "$OTOOL64"; then
13637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13638$as_echo "$OTOOL64" >&6; }
13639else
13640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13641$as_echo "no" >&6; }
13642fi
13643
13644
13645fi
13646if test -z "$ac_cv_prog_OTOOL64"; then
13647  ac_ct_OTOOL64=$OTOOL64
13648  # Extract the first word of "otool64", so it can be a program name with args.
13649set dummy otool64; ac_word=$2
13650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13651$as_echo_n "checking for $ac_word... " >&6; }
13652if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13653  $as_echo_n "(cached) " >&6
13654else
13655  if test -n "$ac_ct_OTOOL64"; then
13656  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13657else
13658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13659for as_dir in $PATH
13660do
13661  IFS=$as_save_IFS
13662  test -z "$as_dir" && as_dir=.
13663    for ac_exec_ext in '' $ac_executable_extensions; do
13664  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13665    ac_cv_prog_ac_ct_OTOOL64="otool64"
13666    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13667    break 2
13668  fi
13669done
13670  done
13671IFS=$as_save_IFS
13672
13673fi
13674fi
13675ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13676if test -n "$ac_ct_OTOOL64"; then
13677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13678$as_echo "$ac_ct_OTOOL64" >&6; }
13679else
13680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13681$as_echo "no" >&6; }
13682fi
13683
13684  if test "x$ac_ct_OTOOL64" = x; then
13685    OTOOL64=":"
13686  else
13687    case $cross_compiling:$ac_tool_warned in
13688yes:)
13689{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13690$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13691ac_tool_warned=yes ;;
13692esac
13693    OTOOL64=$ac_ct_OTOOL64
13694  fi
13695else
13696  OTOOL64="$ac_cv_prog_OTOOL64"
13697fi
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13726$as_echo_n "checking for -single_module linker flag... " >&6; }
13727if ${lt_cv_apple_cc_single_mod+:} false; then :
13728  $as_echo_n "(cached) " >&6
13729else
13730  lt_cv_apple_cc_single_mod=no
13731      if test -z "${LT_MULTI_MODULE}"; then
13732	# By default we will add the -single_module flag. You can override
13733	# by either setting the environment variable LT_MULTI_MODULE
13734	# non-empty at configure time, or by adding -multi_module to the
13735	# link flags.
13736	rm -rf libconftest.dylib*
13737	echo "int foo(void){return 1;}" > conftest.c
13738	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13739-dynamiclib -Wl,-single_module conftest.c" >&5
13740	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13741	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13742        _lt_result=$?
13743	# If there is a non-empty error log, and "single_module"
13744	# appears in it, assume the flag caused a linker warning
13745        if test -s conftest.err && $GREP single_module conftest.err; then
13746	  cat conftest.err >&5
13747	# Otherwise, if the output was created with a 0 exit code from
13748	# the compiler, it worked.
13749	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13750	  lt_cv_apple_cc_single_mod=yes
13751	else
13752	  cat conftest.err >&5
13753	fi
13754	rm -rf libconftest.dylib*
13755	rm -f conftest.*
13756      fi
13757fi
13758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13759$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13760
13761    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13762$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13763if ${lt_cv_ld_exported_symbols_list+:} false; then :
13764  $as_echo_n "(cached) " >&6
13765else
13766  lt_cv_ld_exported_symbols_list=no
13767      save_LDFLAGS=$LDFLAGS
13768      echo "_main" > conftest.sym
13769      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13770      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13771/* end confdefs.h.  */
13772
13773int
13774main ()
13775{
13776
13777  ;
13778  return 0;
13779}
13780_ACEOF
13781if ac_fn_c_try_link "$LINENO"; then :
13782  lt_cv_ld_exported_symbols_list=yes
13783else
13784  lt_cv_ld_exported_symbols_list=no
13785fi
13786rm -f core conftest.err conftest.$ac_objext \
13787    conftest$ac_exeext conftest.$ac_ext
13788	LDFLAGS="$save_LDFLAGS"
13789
13790fi
13791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13792$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13793
13794    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13795$as_echo_n "checking for -force_load linker flag... " >&6; }
13796if ${lt_cv_ld_force_load+:} false; then :
13797  $as_echo_n "(cached) " >&6
13798else
13799  lt_cv_ld_force_load=no
13800      cat > conftest.c << _LT_EOF
13801int forced_loaded() { return 2;}
13802_LT_EOF
13803      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13804      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13805      echo "$AR cru libconftest.a conftest.o" >&5
13806      $AR cru libconftest.a conftest.o 2>&5
13807      echo "$RANLIB libconftest.a" >&5
13808      $RANLIB libconftest.a 2>&5
13809      cat > conftest.c << _LT_EOF
13810int main() { return 0;}
13811_LT_EOF
13812      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13813      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13814      _lt_result=$?
13815      if test -s conftest.err && $GREP force_load conftest.err; then
13816	cat conftest.err >&5
13817      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13818	lt_cv_ld_force_load=yes
13819      else
13820	cat conftest.err >&5
13821      fi
13822        rm -f conftest.err libconftest.a conftest conftest.c
13823        rm -rf conftest.dSYM
13824
13825fi
13826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13827$as_echo "$lt_cv_ld_force_load" >&6; }
13828    case $host_os in
13829    rhapsody* | darwin1.[012])
13830      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13831    darwin1.*)
13832      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13833    darwin*) # darwin 5.x on
13834      # if running on 10.5 or later, the deployment target defaults
13835      # to the OS version, if on x86, and 10.4, the deployment
13836      # target defaults to 10.4. Don't you love it?
13837      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13838	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13839	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13840	10.[012]*)
13841	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13842	10.*)
13843	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13844      esac
13845    ;;
13846  esac
13847    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13848      _lt_dar_single_mod='$single_module'
13849    fi
13850    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13851      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13852    else
13853      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13854    fi
13855    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13856      _lt_dsymutil='~$DSYMUTIL $lib || :'
13857    else
13858      _lt_dsymutil=
13859    fi
13860    ;;
13861  esac
13862
13863for ac_header in dlfcn.h
13864do :
13865  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13866"
13867if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13868  cat >>confdefs.h <<_ACEOF
13869#define HAVE_DLFCN_H 1
13870_ACEOF
13871
13872fi
13873
13874done
13875
13876
13877
13878
13879
13880# Set options
13881
13882
13883
13884        enable_dlopen=no
13885
13886
13887  enable_win32_dll=no
13888
13889
13890            # Check whether --enable-shared was given.
13891if test "${enable_shared+set}" = set; then :
13892  enableval=$enable_shared; p=${PACKAGE-default}
13893    case $enableval in
13894    yes) enable_shared=yes ;;
13895    no) enable_shared=no ;;
13896    *)
13897      enable_shared=no
13898      # Look at the argument we got.  We use all the common list separators.
13899      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13900      for pkg in $enableval; do
13901	IFS="$lt_save_ifs"
13902	if test "X$pkg" = "X$p"; then
13903	  enable_shared=yes
13904	fi
13905      done
13906      IFS="$lt_save_ifs"
13907      ;;
13908    esac
13909else
13910  enable_shared=yes
13911fi
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923# Check whether --with-pic was given.
13924if test "${with_pic+set}" = set; then :
13925  withval=$with_pic; lt_p=${PACKAGE-default}
13926    case $withval in
13927    yes|no) pic_mode=$withval ;;
13928    *)
13929      pic_mode=default
13930      # Look at the argument we got.  We use all the common list separators.
13931      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13932      for lt_pkg in $withval; do
13933	IFS="$lt_save_ifs"
13934	if test "X$lt_pkg" = "X$lt_p"; then
13935	  pic_mode=yes
13936	fi
13937      done
13938      IFS="$lt_save_ifs"
13939      ;;
13940    esac
13941else
13942  pic_mode=default
13943fi
13944
13945
13946test -z "$pic_mode" && pic_mode=default
13947
13948
13949
13950
13951
13952
13953
13954  # Check whether --enable-fast-install was given.
13955if test "${enable_fast_install+set}" = set; then :
13956  enableval=$enable_fast_install; p=${PACKAGE-default}
13957    case $enableval in
13958    yes) enable_fast_install=yes ;;
13959    no) enable_fast_install=no ;;
13960    *)
13961      enable_fast_install=no
13962      # Look at the argument we got.  We use all the common list separators.
13963      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13964      for pkg in $enableval; do
13965	IFS="$lt_save_ifs"
13966	if test "X$pkg" = "X$p"; then
13967	  enable_fast_install=yes
13968	fi
13969      done
13970      IFS="$lt_save_ifs"
13971      ;;
13972    esac
13973else
13974  enable_fast_install=yes
13975fi
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987# This can be used to rebuild libtool when needed
13988LIBTOOL_DEPS="$ltmain"
13989
13990# Always use our own libtool.
13991LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022test -z "$LN_S" && LN_S="ln -s"
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037if test -n "${ZSH_VERSION+set}" ; then
14038   setopt NO_GLOB_SUBST
14039fi
14040
14041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14042$as_echo_n "checking for objdir... " >&6; }
14043if ${lt_cv_objdir+:} false; then :
14044  $as_echo_n "(cached) " >&6
14045else
14046  rm -f .libs 2>/dev/null
14047mkdir .libs 2>/dev/null
14048if test -d .libs; then
14049  lt_cv_objdir=.libs
14050else
14051  # MS-DOS does not allow filenames that begin with a dot.
14052  lt_cv_objdir=_libs
14053fi
14054rmdir .libs 2>/dev/null
14055fi
14056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14057$as_echo "$lt_cv_objdir" >&6; }
14058objdir=$lt_cv_objdir
14059
14060
14061
14062
14063
14064cat >>confdefs.h <<_ACEOF
14065#define LT_OBJDIR "$lt_cv_objdir/"
14066_ACEOF
14067
14068
14069
14070
14071case $host_os in
14072aix3*)
14073  # AIX sometimes has problems with the GCC collect2 program.  For some
14074  # reason, if we set the COLLECT_NAMES environment variable, the problems
14075  # vanish in a puff of smoke.
14076  if test "X${COLLECT_NAMES+set}" != Xset; then
14077    COLLECT_NAMES=
14078    export COLLECT_NAMES
14079  fi
14080  ;;
14081esac
14082
14083# Global variables:
14084ofile=libtool
14085can_build_shared=yes
14086
14087# All known linkers require a `.a' archive for static linking (except MSVC,
14088# which needs '.lib').
14089libext=a
14090
14091with_gnu_ld="$lt_cv_prog_gnu_ld"
14092
14093old_CC="$CC"
14094old_CFLAGS="$CFLAGS"
14095
14096# Set sane defaults for various variables
14097test -z "$CC" && CC=cc
14098test -z "$LTCC" && LTCC=$CC
14099test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14100test -z "$LD" && LD=ld
14101test -z "$ac_objext" && ac_objext=o
14102
14103for cc_temp in $compiler""; do
14104  case $cc_temp in
14105    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14106    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14107    \-*) ;;
14108    *) break;;
14109  esac
14110done
14111cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14112
14113
14114# Only perform the check for file, if the check method requires it
14115test -z "$MAGIC_CMD" && MAGIC_CMD=file
14116case $deplibs_check_method in
14117file_magic*)
14118  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14119    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14120$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14121if ${lt_cv_path_MAGIC_CMD+:} false; then :
14122  $as_echo_n "(cached) " >&6
14123else
14124  case $MAGIC_CMD in
14125[\\/*] |  ?:[\\/]*)
14126  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14127  ;;
14128*)
14129  lt_save_MAGIC_CMD="$MAGIC_CMD"
14130  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14131  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14132  for ac_dir in $ac_dummy; do
14133    IFS="$lt_save_ifs"
14134    test -z "$ac_dir" && ac_dir=.
14135    if test -f $ac_dir/${ac_tool_prefix}file; then
14136      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14137      if test -n "$file_magic_test_file"; then
14138	case $deplibs_check_method in
14139	"file_magic "*)
14140	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14141	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14142	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14143	    $EGREP "$file_magic_regex" > /dev/null; then
14144	    :
14145	  else
14146	    cat <<_LT_EOF 1>&2
14147
14148*** Warning: the command libtool uses to detect shared libraries,
14149*** $file_magic_cmd, produces output that libtool cannot recognize.
14150*** The result is that libtool may fail to recognize shared libraries
14151*** as such.  This will affect the creation of libtool libraries that
14152*** depend on shared libraries, but programs linked with such libtool
14153*** libraries will work regardless of this problem.  Nevertheless, you
14154*** may want to report the problem to your system manager and/or to
14155*** bug-libtool@gnu.org
14156
14157_LT_EOF
14158	  fi ;;
14159	esac
14160      fi
14161      break
14162    fi
14163  done
14164  IFS="$lt_save_ifs"
14165  MAGIC_CMD="$lt_save_MAGIC_CMD"
14166  ;;
14167esac
14168fi
14169
14170MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14171if test -n "$MAGIC_CMD"; then
14172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14173$as_echo "$MAGIC_CMD" >&6; }
14174else
14175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14176$as_echo "no" >&6; }
14177fi
14178
14179
14180
14181
14182
14183if test -z "$lt_cv_path_MAGIC_CMD"; then
14184  if test -n "$ac_tool_prefix"; then
14185    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14186$as_echo_n "checking for file... " >&6; }
14187if ${lt_cv_path_MAGIC_CMD+:} false; then :
14188  $as_echo_n "(cached) " >&6
14189else
14190  case $MAGIC_CMD in
14191[\\/*] |  ?:[\\/]*)
14192  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14193  ;;
14194*)
14195  lt_save_MAGIC_CMD="$MAGIC_CMD"
14196  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14197  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14198  for ac_dir in $ac_dummy; do
14199    IFS="$lt_save_ifs"
14200    test -z "$ac_dir" && ac_dir=.
14201    if test -f $ac_dir/file; then
14202      lt_cv_path_MAGIC_CMD="$ac_dir/file"
14203      if test -n "$file_magic_test_file"; then
14204	case $deplibs_check_method in
14205	"file_magic "*)
14206	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14207	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14208	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14209	    $EGREP "$file_magic_regex" > /dev/null; then
14210	    :
14211	  else
14212	    cat <<_LT_EOF 1>&2
14213
14214*** Warning: the command libtool uses to detect shared libraries,
14215*** $file_magic_cmd, produces output that libtool cannot recognize.
14216*** The result is that libtool may fail to recognize shared libraries
14217*** as such.  This will affect the creation of libtool libraries that
14218*** depend on shared libraries, but programs linked with such libtool
14219*** libraries will work regardless of this problem.  Nevertheless, you
14220*** may want to report the problem to your system manager and/or to
14221*** bug-libtool@gnu.org
14222
14223_LT_EOF
14224	  fi ;;
14225	esac
14226      fi
14227      break
14228    fi
14229  done
14230  IFS="$lt_save_ifs"
14231  MAGIC_CMD="$lt_save_MAGIC_CMD"
14232  ;;
14233esac
14234fi
14235
14236MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14237if test -n "$MAGIC_CMD"; then
14238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14239$as_echo "$MAGIC_CMD" >&6; }
14240else
14241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14242$as_echo "no" >&6; }
14243fi
14244
14245
14246  else
14247    MAGIC_CMD=:
14248  fi
14249fi
14250
14251  fi
14252  ;;
14253esac
14254
14255# Use C for the default configuration in the libtool script
14256
14257lt_save_CC="$CC"
14258ac_ext=c
14259ac_cpp='$CPP $CPPFLAGS'
14260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14262ac_compiler_gnu=$ac_cv_c_compiler_gnu
14263
14264
14265# Source file extension for C test sources.
14266ac_ext=c
14267
14268# Object file extension for compiled C test sources.
14269objext=o
14270objext=$objext
14271
14272# Code to be used in simple compile tests
14273lt_simple_compile_test_code="int some_variable = 0;"
14274
14275# Code to be used in simple link tests
14276lt_simple_link_test_code='int main(){return(0);}'
14277
14278
14279
14280
14281
14282
14283
14284# If no C compiler was specified, use CC.
14285LTCC=${LTCC-"$CC"}
14286
14287# If no C compiler flags were specified, use CFLAGS.
14288LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14289
14290# Allow CC to be a program name with arguments.
14291compiler=$CC
14292
14293# Save the default compiler, since it gets overwritten when the other
14294# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14295compiler_DEFAULT=$CC
14296
14297# save warnings/boilerplate of simple test code
14298ac_outfile=conftest.$ac_objext
14299echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14300eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14301_lt_compiler_boilerplate=`cat conftest.err`
14302$RM conftest*
14303
14304ac_outfile=conftest.$ac_objext
14305echo "$lt_simple_link_test_code" >conftest.$ac_ext
14306eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14307_lt_linker_boilerplate=`cat conftest.err`
14308$RM -r conftest*
14309
14310
14311if test -n "$compiler"; then
14312
14313lt_prog_compiler_no_builtin_flag=
14314
14315if test "$GCC" = yes; then
14316  case $cc_basename in
14317  nvcc*)
14318    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14319  *)
14320    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14321  esac
14322
14323  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14324$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14325if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14326  $as_echo_n "(cached) " >&6
14327else
14328  lt_cv_prog_compiler_rtti_exceptions=no
14329   ac_outfile=conftest.$ac_objext
14330   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14331   lt_compiler_flag="-fno-rtti -fno-exceptions"
14332   # Insert the option either (1) after the last *FLAGS variable, or
14333   # (2) before a word containing "conftest.", or (3) at the end.
14334   # Note that $ac_compile itself does not contain backslashes and begins
14335   # with a dollar sign (not a hyphen), so the echo should work correctly.
14336   # The option is referenced via a variable to avoid confusing sed.
14337   lt_compile=`echo "$ac_compile" | $SED \
14338   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14339   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14340   -e 's:$: $lt_compiler_flag:'`
14341   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14342   (eval "$lt_compile" 2>conftest.err)
14343   ac_status=$?
14344   cat conftest.err >&5
14345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346   if (exit $ac_status) && test -s "$ac_outfile"; then
14347     # The compiler can only warn and ignore the option if not recognized
14348     # So say no if there are warnings other than the usual output.
14349     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14350     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14351     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14352       lt_cv_prog_compiler_rtti_exceptions=yes
14353     fi
14354   fi
14355   $RM conftest*
14356
14357fi
14358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14359$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14360
14361if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14362    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14363else
14364    :
14365fi
14366
14367fi
14368
14369
14370
14371
14372
14373
14374  lt_prog_compiler_wl=
14375lt_prog_compiler_pic=
14376lt_prog_compiler_static=
14377
14378
14379  if test "$GCC" = yes; then
14380    lt_prog_compiler_wl='-Wl,'
14381    lt_prog_compiler_static='-static'
14382
14383    case $host_os in
14384      aix*)
14385      # All AIX code is PIC.
14386      if test "$host_cpu" = ia64; then
14387	# AIX 5 now supports IA64 processor
14388	lt_prog_compiler_static='-Bstatic'
14389      fi
14390      ;;
14391
14392    amigaos*)
14393      case $host_cpu in
14394      powerpc)
14395            # see comment about AmigaOS4 .so support
14396            lt_prog_compiler_pic='-fPIC'
14397        ;;
14398      m68k)
14399            # FIXME: we need at least 68020 code to build shared libraries, but
14400            # adding the `-m68020' flag to GCC prevents building anything better,
14401            # like `-m68040'.
14402            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14403        ;;
14404      esac
14405      ;;
14406
14407    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14408      # PIC is the default for these OSes.
14409      ;;
14410
14411    mingw* | cygwin* | pw32* | os2* | cegcc*)
14412      # This hack is so that the source file can tell whether it is being
14413      # built for inclusion in a dll (and should export symbols for example).
14414      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14415      # (--disable-auto-import) libraries
14416      lt_prog_compiler_pic='-DDLL_EXPORT'
14417      ;;
14418
14419    darwin* | rhapsody*)
14420      # PIC is the default on this platform
14421      # Common symbols not allowed in MH_DYLIB files
14422      lt_prog_compiler_pic='-fno-common'
14423      ;;
14424
14425    haiku*)
14426      # PIC is the default for Haiku.
14427      # The "-static" flag exists, but is broken.
14428      lt_prog_compiler_static=
14429      ;;
14430
14431    hpux*)
14432      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14433      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14434      # sets the default TLS model and affects inlining.
14435      case $host_cpu in
14436      hppa*64*)
14437	# +Z the default
14438	;;
14439      *)
14440	lt_prog_compiler_pic='-fPIC'
14441	;;
14442      esac
14443      ;;
14444
14445    interix[3-9]*)
14446      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14447      # Instead, we relocate shared libraries at runtime.
14448      ;;
14449
14450    msdosdjgpp*)
14451      # Just because we use GCC doesn't mean we suddenly get shared libraries
14452      # on systems that don't support them.
14453      lt_prog_compiler_can_build_shared=no
14454      enable_shared=no
14455      ;;
14456
14457    *nto* | *qnx*)
14458      # QNX uses GNU C++, but need to define -shared option too, otherwise
14459      # it will coredump.
14460      lt_prog_compiler_pic='-fPIC -shared'
14461      ;;
14462
14463    sysv4*MP*)
14464      if test -d /usr/nec; then
14465	lt_prog_compiler_pic=-Kconform_pic
14466      fi
14467      ;;
14468
14469    *)
14470      lt_prog_compiler_pic='-fPIC'
14471      ;;
14472    esac
14473
14474    case $cc_basename in
14475    nvcc*) # Cuda Compiler Driver 2.2
14476      lt_prog_compiler_wl='-Xlinker '
14477      if test -n "$lt_prog_compiler_pic"; then
14478        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14479      fi
14480      ;;
14481    esac
14482  else
14483    # PORTME Check for flag to pass linker flags through the system compiler.
14484    case $host_os in
14485    aix*)
14486      lt_prog_compiler_wl='-Wl,'
14487      if test "$host_cpu" = ia64; then
14488	# AIX 5 now supports IA64 processor
14489	lt_prog_compiler_static='-Bstatic'
14490      else
14491	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14492      fi
14493      ;;
14494
14495    mingw* | cygwin* | pw32* | os2* | cegcc*)
14496      # This hack is so that the source file can tell whether it is being
14497      # built for inclusion in a dll (and should export symbols for example).
14498      lt_prog_compiler_pic='-DDLL_EXPORT'
14499      ;;
14500
14501    hpux9* | hpux10* | hpux11*)
14502      lt_prog_compiler_wl='-Wl,'
14503      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14504      # not for PA HP-UX.
14505      case $host_cpu in
14506      hppa*64*|ia64*)
14507	# +Z the default
14508	;;
14509      *)
14510	lt_prog_compiler_pic='+Z'
14511	;;
14512      esac
14513      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14514      lt_prog_compiler_static='${wl}-a ${wl}archive'
14515      ;;
14516
14517    irix5* | irix6* | nonstopux*)
14518      lt_prog_compiler_wl='-Wl,'
14519      # PIC (with -KPIC) is the default.
14520      lt_prog_compiler_static='-non_shared'
14521      ;;
14522
14523    linux* | k*bsd*-gnu | kopensolaris*-gnu)
14524      case $cc_basename in
14525      # old Intel for x86_64 which still supported -KPIC.
14526      ecc*)
14527	lt_prog_compiler_wl='-Wl,'
14528	lt_prog_compiler_pic='-KPIC'
14529	lt_prog_compiler_static='-static'
14530        ;;
14531      # icc used to be incompatible with GCC.
14532      # ICC 10 doesn't accept -KPIC any more.
14533      icc* | ifort*)
14534	lt_prog_compiler_wl='-Wl,'
14535	lt_prog_compiler_pic='-fPIC'
14536	lt_prog_compiler_static='-static'
14537        ;;
14538      # Lahey Fortran 8.1.
14539      lf95*)
14540	lt_prog_compiler_wl='-Wl,'
14541	lt_prog_compiler_pic='--shared'
14542	lt_prog_compiler_static='--static'
14543	;;
14544      nagfor*)
14545	# NAG Fortran compiler
14546	lt_prog_compiler_wl='-Wl,-Wl,,'
14547	lt_prog_compiler_pic='-PIC'
14548	lt_prog_compiler_static='-Bstatic'
14549	;;
14550      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14551        # Portland Group compilers (*not* the Pentium gcc compiler,
14552	# which looks to be a dead project)
14553	lt_prog_compiler_wl='-Wl,'
14554	lt_prog_compiler_pic='-fpic'
14555	lt_prog_compiler_static='-Bstatic'
14556        ;;
14557      ccc*)
14558        lt_prog_compiler_wl='-Wl,'
14559        # All Alpha code is PIC.
14560        lt_prog_compiler_static='-non_shared'
14561        ;;
14562      xl* | bgxl* | bgf* | mpixl*)
14563	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14564	lt_prog_compiler_wl='-Wl,'
14565	lt_prog_compiler_pic='-qpic'
14566	lt_prog_compiler_static='-qstaticlink'
14567	;;
14568      *)
14569	case `$CC -V 2>&1 | sed 5q` in
14570	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14571	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14572	  lt_prog_compiler_pic='-KPIC'
14573	  lt_prog_compiler_static='-Bstatic'
14574	  lt_prog_compiler_wl=''
14575	  ;;
14576	*Sun\ F* | *Sun*Fortran*)
14577	  lt_prog_compiler_pic='-KPIC'
14578	  lt_prog_compiler_static='-Bstatic'
14579	  lt_prog_compiler_wl='-Qoption ld '
14580	  ;;
14581	*Sun\ C*)
14582	  # Sun C 5.9
14583	  lt_prog_compiler_pic='-KPIC'
14584	  lt_prog_compiler_static='-Bstatic'
14585	  lt_prog_compiler_wl='-Wl,'
14586	  ;;
14587        *Intel*\ [CF]*Compiler*)
14588	  lt_prog_compiler_wl='-Wl,'
14589	  lt_prog_compiler_pic='-fPIC'
14590	  lt_prog_compiler_static='-static'
14591	  ;;
14592	*Portland\ Group*)
14593	  lt_prog_compiler_wl='-Wl,'
14594	  lt_prog_compiler_pic='-fpic'
14595	  lt_prog_compiler_static='-Bstatic'
14596	  ;;
14597	esac
14598	;;
14599      esac
14600      ;;
14601
14602    newsos6)
14603      lt_prog_compiler_pic='-KPIC'
14604      lt_prog_compiler_static='-Bstatic'
14605      ;;
14606
14607    *nto* | *qnx*)
14608      # QNX uses GNU C++, but need to define -shared option too, otherwise
14609      # it will coredump.
14610      lt_prog_compiler_pic='-fPIC -shared'
14611      ;;
14612
14613    osf3* | osf4* | osf5*)
14614      lt_prog_compiler_wl='-Wl,'
14615      # All OSF/1 code is PIC.
14616      lt_prog_compiler_static='-non_shared'
14617      ;;
14618
14619    rdos*)
14620      lt_prog_compiler_static='-non_shared'
14621      ;;
14622
14623    solaris*)
14624      lt_prog_compiler_pic='-KPIC'
14625      lt_prog_compiler_static='-Bstatic'
14626      case $cc_basename in
14627      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14628	lt_prog_compiler_wl='-Qoption ld ';;
14629      *)
14630	lt_prog_compiler_wl='-Wl,';;
14631      esac
14632      ;;
14633
14634    sunos4*)
14635      lt_prog_compiler_wl='-Qoption ld '
14636      lt_prog_compiler_pic='-PIC'
14637      lt_prog_compiler_static='-Bstatic'
14638      ;;
14639
14640    sysv4 | sysv4.2uw2* | sysv4.3*)
14641      lt_prog_compiler_wl='-Wl,'
14642      lt_prog_compiler_pic='-KPIC'
14643      lt_prog_compiler_static='-Bstatic'
14644      ;;
14645
14646    sysv4*MP*)
14647      if test -d /usr/nec ;then
14648	lt_prog_compiler_pic='-Kconform_pic'
14649	lt_prog_compiler_static='-Bstatic'
14650      fi
14651      ;;
14652
14653    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14654      lt_prog_compiler_wl='-Wl,'
14655      lt_prog_compiler_pic='-KPIC'
14656      lt_prog_compiler_static='-Bstatic'
14657      ;;
14658
14659    unicos*)
14660      lt_prog_compiler_wl='-Wl,'
14661      lt_prog_compiler_can_build_shared=no
14662      ;;
14663
14664    uts4*)
14665      lt_prog_compiler_pic='-pic'
14666      lt_prog_compiler_static='-Bstatic'
14667      ;;
14668
14669    *)
14670      lt_prog_compiler_can_build_shared=no
14671      ;;
14672    esac
14673  fi
14674
14675case $host_os in
14676  # For platforms which do not support PIC, -DPIC is meaningless:
14677  *djgpp*)
14678    lt_prog_compiler_pic=
14679    ;;
14680  *)
14681    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14682    ;;
14683esac
14684
14685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14686$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14687if ${lt_cv_prog_compiler_pic+:} false; then :
14688  $as_echo_n "(cached) " >&6
14689else
14690  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14691fi
14692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14693$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14694lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14695
14696#
14697# Check to make sure the PIC flag actually works.
14698#
14699if test -n "$lt_prog_compiler_pic"; then
14700  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14701$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14702if ${lt_cv_prog_compiler_pic_works+:} false; then :
14703  $as_echo_n "(cached) " >&6
14704else
14705  lt_cv_prog_compiler_pic_works=no
14706   ac_outfile=conftest.$ac_objext
14707   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14708   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14709   # Insert the option either (1) after the last *FLAGS variable, or
14710   # (2) before a word containing "conftest.", or (3) at the end.
14711   # Note that $ac_compile itself does not contain backslashes and begins
14712   # with a dollar sign (not a hyphen), so the echo should work correctly.
14713   # The option is referenced via a variable to avoid confusing sed.
14714   lt_compile=`echo "$ac_compile" | $SED \
14715   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14716   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14717   -e 's:$: $lt_compiler_flag:'`
14718   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14719   (eval "$lt_compile" 2>conftest.err)
14720   ac_status=$?
14721   cat conftest.err >&5
14722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723   if (exit $ac_status) && test -s "$ac_outfile"; then
14724     # The compiler can only warn and ignore the option if not recognized
14725     # So say no if there are warnings other than the usual output.
14726     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14727     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14728     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14729       lt_cv_prog_compiler_pic_works=yes
14730     fi
14731   fi
14732   $RM conftest*
14733
14734fi
14735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14736$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14737
14738if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14739    case $lt_prog_compiler_pic in
14740     "" | " "*) ;;
14741     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14742     esac
14743else
14744    lt_prog_compiler_pic=
14745     lt_prog_compiler_can_build_shared=no
14746fi
14747
14748fi
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760#
14761# Check to make sure the static flag actually works.
14762#
14763wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14765$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14766if ${lt_cv_prog_compiler_static_works+:} false; then :
14767  $as_echo_n "(cached) " >&6
14768else
14769  lt_cv_prog_compiler_static_works=no
14770   save_LDFLAGS="$LDFLAGS"
14771   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14772   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14773   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14774     # The linker can only warn and ignore the option if not recognized
14775     # So say no if there are warnings
14776     if test -s conftest.err; then
14777       # Append any errors to the config.log.
14778       cat conftest.err 1>&5
14779       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14780       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14781       if diff conftest.exp conftest.er2 >/dev/null; then
14782         lt_cv_prog_compiler_static_works=yes
14783       fi
14784     else
14785       lt_cv_prog_compiler_static_works=yes
14786     fi
14787   fi
14788   $RM -r conftest*
14789   LDFLAGS="$save_LDFLAGS"
14790
14791fi
14792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14793$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14794
14795if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14796    :
14797else
14798    lt_prog_compiler_static=
14799fi
14800
14801
14802
14803
14804
14805
14806
14807  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14808$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14809if ${lt_cv_prog_compiler_c_o+:} false; then :
14810  $as_echo_n "(cached) " >&6
14811else
14812  lt_cv_prog_compiler_c_o=no
14813   $RM -r conftest 2>/dev/null
14814   mkdir conftest
14815   cd conftest
14816   mkdir out
14817   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14818
14819   lt_compiler_flag="-o out/conftest2.$ac_objext"
14820   # Insert the option either (1) after the last *FLAGS variable, or
14821   # (2) before a word containing "conftest.", or (3) at the end.
14822   # Note that $ac_compile itself does not contain backslashes and begins
14823   # with a dollar sign (not a hyphen), so the echo should work correctly.
14824   lt_compile=`echo "$ac_compile" | $SED \
14825   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14826   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14827   -e 's:$: $lt_compiler_flag:'`
14828   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14829   (eval "$lt_compile" 2>out/conftest.err)
14830   ac_status=$?
14831   cat out/conftest.err >&5
14832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14834   then
14835     # The compiler can only warn and ignore the option if not recognized
14836     # So say no if there are warnings
14837     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14838     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14839     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14840       lt_cv_prog_compiler_c_o=yes
14841     fi
14842   fi
14843   chmod u+w . 2>&5
14844   $RM conftest*
14845   # SGI C++ compiler will create directory out/ii_files/ for
14846   # template instantiation
14847   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14848   $RM out/* && rmdir out
14849   cd ..
14850   $RM -r conftest
14851   $RM conftest*
14852
14853fi
14854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14855$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14856
14857
14858
14859
14860
14861
14862  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14863$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14864if ${lt_cv_prog_compiler_c_o+:} false; then :
14865  $as_echo_n "(cached) " >&6
14866else
14867  lt_cv_prog_compiler_c_o=no
14868   $RM -r conftest 2>/dev/null
14869   mkdir conftest
14870   cd conftest
14871   mkdir out
14872   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14873
14874   lt_compiler_flag="-o out/conftest2.$ac_objext"
14875   # Insert the option either (1) after the last *FLAGS variable, or
14876   # (2) before a word containing "conftest.", or (3) at the end.
14877   # Note that $ac_compile itself does not contain backslashes and begins
14878   # with a dollar sign (not a hyphen), so the echo should work correctly.
14879   lt_compile=`echo "$ac_compile" | $SED \
14880   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14881   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14882   -e 's:$: $lt_compiler_flag:'`
14883   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14884   (eval "$lt_compile" 2>out/conftest.err)
14885   ac_status=$?
14886   cat out/conftest.err >&5
14887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14889   then
14890     # The compiler can only warn and ignore the option if not recognized
14891     # So say no if there are warnings
14892     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14893     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14894     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14895       lt_cv_prog_compiler_c_o=yes
14896     fi
14897   fi
14898   chmod u+w . 2>&5
14899   $RM conftest*
14900   # SGI C++ compiler will create directory out/ii_files/ for
14901   # template instantiation
14902   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14903   $RM out/* && rmdir out
14904   cd ..
14905   $RM -r conftest
14906   $RM conftest*
14907
14908fi
14909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14910$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14911
14912
14913
14914
14915hard_links="nottested"
14916if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14917  # do not overwrite the value of need_locks provided by the user
14918  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14919$as_echo_n "checking if we can lock with hard links... " >&6; }
14920  hard_links=yes
14921  $RM conftest*
14922  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14923  touch conftest.a
14924  ln conftest.a conftest.b 2>&5 || hard_links=no
14925  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14927$as_echo "$hard_links" >&6; }
14928  if test "$hard_links" = no; then
14929    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14930$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14931    need_locks=warn
14932  fi
14933else
14934  need_locks=no
14935fi
14936
14937
14938
14939
14940
14941
14942  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14943$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14944
14945  runpath_var=
14946  allow_undefined_flag=
14947  always_export_symbols=no
14948  archive_cmds=
14949  archive_expsym_cmds=
14950  compiler_needs_object=no
14951  enable_shared_with_static_runtimes=no
14952  export_dynamic_flag_spec=
14953  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14954  hardcode_automatic=no
14955  hardcode_direct=no
14956  hardcode_direct_absolute=no
14957  hardcode_libdir_flag_spec=
14958  hardcode_libdir_separator=
14959  hardcode_minus_L=no
14960  hardcode_shlibpath_var=unsupported
14961  inherit_rpath=no
14962  link_all_deplibs=unknown
14963  module_cmds=
14964  module_expsym_cmds=
14965  old_archive_from_new_cmds=
14966  old_archive_from_expsyms_cmds=
14967  thread_safe_flag_spec=
14968  whole_archive_flag_spec=
14969  # include_expsyms should be a list of space-separated symbols to be *always*
14970  # included in the symbol list
14971  include_expsyms=
14972  # exclude_expsyms can be an extended regexp of symbols to exclude
14973  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14974  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14975  # as well as any symbol that contains `d'.
14976  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14977  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14978  # platforms (ab)use it in PIC code, but their linkers get confused if
14979  # the symbol is explicitly referenced.  Since portable code cannot
14980  # rely on this symbol name, it's probably fine to never include it in
14981  # preloaded symbol tables.
14982  # Exclude shared library initialization/finalization symbols.
14983  extract_expsyms_cmds=
14984
14985  case $host_os in
14986  cygwin* | mingw* | pw32* | cegcc*)
14987    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14988    # When not using gcc, we currently assume that we are using
14989    # Microsoft Visual C++.
14990    if test "$GCC" != yes; then
14991      with_gnu_ld=no
14992    fi
14993    ;;
14994  interix*)
14995    # we just hope/assume this is gcc and not c89 (= MSVC++)
14996    with_gnu_ld=yes
14997    ;;
14998  openbsd*)
14999    with_gnu_ld=no
15000    ;;
15001  esac
15002
15003  ld_shlibs=yes
15004
15005  # On some targets, GNU ld is compatible enough with the native linker
15006  # that we're better off using the native interface for both.
15007  lt_use_gnu_ld_interface=no
15008  if test "$with_gnu_ld" = yes; then
15009    case $host_os in
15010      aix*)
15011	# The AIX port of GNU ld has always aspired to compatibility
15012	# with the native linker.  However, as the warning in the GNU ld
15013	# block says, versions before 2.19.5* couldn't really create working
15014	# shared libraries, regardless of the interface used.
15015	case `$LD -v 2>&1` in
15016	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15017	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15018	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15019	  *)
15020	    lt_use_gnu_ld_interface=yes
15021	    ;;
15022	esac
15023	;;
15024      *)
15025	lt_use_gnu_ld_interface=yes
15026	;;
15027    esac
15028  fi
15029
15030  if test "$lt_use_gnu_ld_interface" = yes; then
15031    # If archive_cmds runs LD, not CC, wlarc should be empty
15032    wlarc='${wl}'
15033
15034    # Set some defaults for GNU ld with shared library support. These
15035    # are reset later if shared libraries are not supported. Putting them
15036    # here allows them to be overridden if necessary.
15037    runpath_var=LD_RUN_PATH
15038    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15039    export_dynamic_flag_spec='${wl}--export-dynamic'
15040    # ancient GNU ld didn't support --whole-archive et. al.
15041    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15042      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15043    else
15044      whole_archive_flag_spec=
15045    fi
15046    supports_anon_versioning=no
15047    case `$LD -v 2>&1` in
15048      *GNU\ gold*) supports_anon_versioning=yes ;;
15049      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15050      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15051      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15052      *\ 2.11.*) ;; # other 2.11 versions
15053      *) supports_anon_versioning=yes ;;
15054    esac
15055
15056    # See if GNU ld supports shared libraries.
15057    case $host_os in
15058    aix[3-9]*)
15059      # On AIX/PPC, the GNU linker is very broken
15060      if test "$host_cpu" != ia64; then
15061	ld_shlibs=no
15062	cat <<_LT_EOF 1>&2
15063
15064*** Warning: the GNU linker, at least up to release 2.19, is reported
15065*** to be unable to reliably create shared libraries on AIX.
15066*** Therefore, libtool is disabling shared libraries support.  If you
15067*** really care for shared libraries, you may want to install binutils
15068*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15069*** You will then need to restart the configuration process.
15070
15071_LT_EOF
15072      fi
15073      ;;
15074
15075    amigaos*)
15076      case $host_cpu in
15077      powerpc)
15078            # see comment about AmigaOS4 .so support
15079            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15080            archive_expsym_cmds=''
15081        ;;
15082      m68k)
15083            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)'
15084            hardcode_libdir_flag_spec='-L$libdir'
15085            hardcode_minus_L=yes
15086        ;;
15087      esac
15088      ;;
15089
15090    beos*)
15091      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15092	allow_undefined_flag=unsupported
15093	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15094	# support --undefined.  This deserves some investigation.  FIXME
15095	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15096      else
15097	ld_shlibs=no
15098      fi
15099      ;;
15100
15101    cygwin* | mingw* | pw32* | cegcc*)
15102      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15103      # as there is no search path for DLLs.
15104      hardcode_libdir_flag_spec='-L$libdir'
15105      export_dynamic_flag_spec='${wl}--export-all-symbols'
15106      allow_undefined_flag=unsupported
15107      always_export_symbols=no
15108      enable_shared_with_static_runtimes=yes
15109      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'
15110      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15111
15112      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15113        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15114	# If the export-symbols file already is a .def file (1st line
15115	# is EXPORTS), use it as is; otherwise, prepend...
15116	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15117	  cp $export_symbols $output_objdir/$soname.def;
15118	else
15119	  echo EXPORTS > $output_objdir/$soname.def;
15120	  cat $export_symbols >> $output_objdir/$soname.def;
15121	fi~
15122	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15123      else
15124	ld_shlibs=no
15125      fi
15126      ;;
15127
15128    haiku*)
15129      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15130      link_all_deplibs=yes
15131      ;;
15132
15133    interix[3-9]*)
15134      hardcode_direct=no
15135      hardcode_shlibpath_var=no
15136      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15137      export_dynamic_flag_spec='${wl}-E'
15138      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15139      # Instead, shared libraries are loaded at an image base (0x10000000 by
15140      # default) and relocated if they conflict, which is a slow very memory
15141      # consuming and fragmenting process.  To avoid this, we pick a random,
15142      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15143      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15144      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15145      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'
15146      ;;
15147
15148    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15149      tmp_diet=no
15150      if test "$host_os" = linux-dietlibc; then
15151	case $cc_basename in
15152	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
15153	esac
15154      fi
15155      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15156	 && test "$tmp_diet" = no
15157      then
15158	tmp_addflag=' $pic_flag'
15159	tmp_sharedflag='-shared'
15160	case $cc_basename,$host_cpu in
15161        pgcc*)				# Portland Group C compiler
15162	  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'
15163	  tmp_addflag=' $pic_flag'
15164	  ;;
15165	pgf77* | pgf90* | pgf95* | pgfortran*)
15166					# Portland Group f77 and f90 compilers
15167	  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'
15168	  tmp_addflag=' $pic_flag -Mnomain' ;;
15169	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15170	  tmp_addflag=' -i_dynamic' ;;
15171	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15172	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15173	ifc* | ifort*)			# Intel Fortran compiler
15174	  tmp_addflag=' -nofor_main' ;;
15175	lf95*)				# Lahey Fortran 8.1
15176	  whole_archive_flag_spec=
15177	  tmp_sharedflag='--shared' ;;
15178	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15179	  tmp_sharedflag='-qmkshrobj'
15180	  tmp_addflag= ;;
15181	nvcc*)	# Cuda Compiler Driver 2.2
15182	  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'
15183	  compiler_needs_object=yes
15184	  ;;
15185	esac
15186	case `$CC -V 2>&1 | sed 5q` in
15187	*Sun\ C*)			# Sun C 5.9
15188	  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'
15189	  compiler_needs_object=yes
15190	  tmp_sharedflag='-G' ;;
15191	*Sun\ F*)			# Sun Fortran 8.3
15192	  tmp_sharedflag='-G' ;;
15193	esac
15194	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15195
15196        if test "x$supports_anon_versioning" = xyes; then
15197          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15198	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15199	    echo "local: *; };" >> $output_objdir/$libname.ver~
15200	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15201        fi
15202
15203	case $cc_basename in
15204	xlf* | bgf* | bgxlf* | mpixlf*)
15205	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15206	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15207	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15208	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15209	  if test "x$supports_anon_versioning" = xyes; then
15210	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15211	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15212	      echo "local: *; };" >> $output_objdir/$libname.ver~
15213	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15214	  fi
15215	  ;;
15216	esac
15217      else
15218        ld_shlibs=no
15219      fi
15220      ;;
15221
15222    netbsd*)
15223      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15224	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15225	wlarc=
15226      else
15227	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15228	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15229      fi
15230      ;;
15231
15232    solaris*)
15233      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15234	ld_shlibs=no
15235	cat <<_LT_EOF 1>&2
15236
15237*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15238*** create shared libraries on Solaris systems.  Therefore, libtool
15239*** is disabling shared libraries support.  We urge you to upgrade GNU
15240*** binutils to release 2.9.1 or newer.  Another option is to modify
15241*** your PATH or compiler configuration so that the native linker is
15242*** used, and then restart.
15243
15244_LT_EOF
15245      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15246	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15247	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15248      else
15249	ld_shlibs=no
15250      fi
15251      ;;
15252
15253    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15254      case `$LD -v 2>&1` in
15255        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15256	ld_shlibs=no
15257	cat <<_LT_EOF 1>&2
15258
15259*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15260*** reliably create shared libraries on SCO systems.  Therefore, libtool
15261*** is disabling shared libraries support.  We urge you to upgrade GNU
15262*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15263*** your PATH or compiler configuration so that the native linker is
15264*** used, and then restart.
15265
15266_LT_EOF
15267	;;
15268	*)
15269	  # For security reasons, it is highly recommended that you always
15270	  # use absolute paths for naming shared libraries, and exclude the
15271	  # DT_RUNPATH tag from executables and libraries.  But doing so
15272	  # requires that you compile everything twice, which is a pain.
15273	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15274	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15275	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15276	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15277	  else
15278	    ld_shlibs=no
15279	  fi
15280	;;
15281      esac
15282      ;;
15283
15284    sunos4*)
15285      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15286      wlarc=
15287      hardcode_direct=yes
15288      hardcode_shlibpath_var=no
15289      ;;
15290
15291    *)
15292      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15293	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15294	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15295      else
15296	ld_shlibs=no
15297      fi
15298      ;;
15299    esac
15300
15301    if test "$ld_shlibs" = no; then
15302      runpath_var=
15303      hardcode_libdir_flag_spec=
15304      export_dynamic_flag_spec=
15305      whole_archive_flag_spec=
15306    fi
15307  else
15308    # PORTME fill in a description of your system's linker (not GNU ld)
15309    case $host_os in
15310    aix3*)
15311      allow_undefined_flag=unsupported
15312      always_export_symbols=yes
15313      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'
15314      # Note: this linker hardcodes the directories in LIBPATH if there
15315      # are no directories specified by -L.
15316      hardcode_minus_L=yes
15317      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15318	# Neither direct hardcoding nor static linking is supported with a
15319	# broken collect2.
15320	hardcode_direct=unsupported
15321      fi
15322      ;;
15323
15324    aix[4-9]*)
15325      if test "$host_cpu" = ia64; then
15326	# On IA64, the linker does run time linking by default, so we don't
15327	# have to do anything special.
15328	aix_use_runtimelinking=no
15329	exp_sym_flag='-Bexport'
15330	no_entry_flag=""
15331      else
15332	# If we're using GNU nm, then we don't want the "-C" option.
15333	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15334	# Also, AIX nm treats weak defined symbols like other global
15335	# defined symbols, whereas GNU nm marks them as "W".
15336	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15337	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15338	else
15339	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15340	fi
15341	aix_use_runtimelinking=no
15342
15343	# Test if we are trying to use run time linking or normal
15344	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15345	# need to do runtime linking.
15346	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15347	  for ld_flag in $LDFLAGS; do
15348	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15349	    aix_use_runtimelinking=yes
15350	    break
15351	  fi
15352	  done
15353	  ;;
15354	esac
15355
15356	exp_sym_flag='-bexport'
15357	no_entry_flag='-bnoentry'
15358      fi
15359
15360      # When large executables or shared objects are built, AIX ld can
15361      # have problems creating the table of contents.  If linking a library
15362      # or program results in "error TOC overflow" add -mminimal-toc to
15363      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15364      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15365
15366      archive_cmds=''
15367      hardcode_direct=yes
15368      hardcode_direct_absolute=yes
15369      hardcode_libdir_separator=':'
15370      link_all_deplibs=yes
15371      file_list_spec='${wl}-f,'
15372
15373      if test "$GCC" = yes; then
15374	case $host_os in aix4.[012]|aix4.[012].*)
15375	# We only want to do this on AIX 4.2 and lower, the check
15376	# below for broken collect2 doesn't work under 4.3+
15377	  collect2name=`${CC} -print-prog-name=collect2`
15378	  if test -f "$collect2name" &&
15379	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15380	  then
15381	  # We have reworked collect2
15382	  :
15383	  else
15384	  # We have old collect2
15385	  hardcode_direct=unsupported
15386	  # It fails to find uninstalled libraries when the uninstalled
15387	  # path is not listed in the libpath.  Setting hardcode_minus_L
15388	  # to unsupported forces relinking
15389	  hardcode_minus_L=yes
15390	  hardcode_libdir_flag_spec='-L$libdir'
15391	  hardcode_libdir_separator=
15392	  fi
15393	  ;;
15394	esac
15395	shared_flag='-shared'
15396	if test "$aix_use_runtimelinking" = yes; then
15397	  shared_flag="$shared_flag "'${wl}-G'
15398	fi
15399      else
15400	# not using gcc
15401	if test "$host_cpu" = ia64; then
15402	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15403	# chokes on -Wl,-G. The following line is correct:
15404	  shared_flag='-G'
15405	else
15406	  if test "$aix_use_runtimelinking" = yes; then
15407	    shared_flag='${wl}-G'
15408	  else
15409	    shared_flag='${wl}-bM:SRE'
15410	  fi
15411	fi
15412      fi
15413
15414      export_dynamic_flag_spec='${wl}-bexpall'
15415      # It seems that -bexpall does not export symbols beginning with
15416      # underscore (_), so it is better to generate a list of symbols to export.
15417      always_export_symbols=yes
15418      if test "$aix_use_runtimelinking" = yes; then
15419	# Warning - without using the other runtime loading flags (-brtl),
15420	# -berok will link without error, but may produce a broken library.
15421	allow_undefined_flag='-berok'
15422        # Determine the default libpath from the value encoded in an
15423        # empty executable.
15424        if test "${lt_cv_aix_libpath+set}" = set; then
15425  aix_libpath=$lt_cv_aix_libpath
15426else
15427  if ${lt_cv_aix_libpath_+:} false; then :
15428  $as_echo_n "(cached) " >&6
15429else
15430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15431/* end confdefs.h.  */
15432
15433int
15434main ()
15435{
15436
15437  ;
15438  return 0;
15439}
15440_ACEOF
15441if ac_fn_c_try_link "$LINENO"; then :
15442
15443  lt_aix_libpath_sed='
15444      /Import File Strings/,/^$/ {
15445	  /^0/ {
15446	      s/^0  *\([^ ]*\) *$/\1/
15447	      p
15448	  }
15449      }'
15450  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15451  # Check for a 64-bit object if we didn't find anything.
15452  if test -z "$lt_cv_aix_libpath_"; then
15453    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15454  fi
15455fi
15456rm -f core conftest.err conftest.$ac_objext \
15457    conftest$ac_exeext conftest.$ac_ext
15458  if test -z "$lt_cv_aix_libpath_"; then
15459    lt_cv_aix_libpath_="/usr/lib:/lib"
15460  fi
15461
15462fi
15463
15464  aix_libpath=$lt_cv_aix_libpath_
15465fi
15466
15467        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15468        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15469      else
15470	if test "$host_cpu" = ia64; then
15471	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15472	  allow_undefined_flag="-z nodefs"
15473	  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"
15474	else
15475	 # Determine the default libpath from the value encoded in an
15476	 # empty executable.
15477	 if test "${lt_cv_aix_libpath+set}" = set; then
15478  aix_libpath=$lt_cv_aix_libpath
15479else
15480  if ${lt_cv_aix_libpath_+:} false; then :
15481  $as_echo_n "(cached) " >&6
15482else
15483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15484/* end confdefs.h.  */
15485
15486int
15487main ()
15488{
15489
15490  ;
15491  return 0;
15492}
15493_ACEOF
15494if ac_fn_c_try_link "$LINENO"; then :
15495
15496  lt_aix_libpath_sed='
15497      /Import File Strings/,/^$/ {
15498	  /^0/ {
15499	      s/^0  *\([^ ]*\) *$/\1/
15500	      p
15501	  }
15502      }'
15503  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15504  # Check for a 64-bit object if we didn't find anything.
15505  if test -z "$lt_cv_aix_libpath_"; then
15506    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15507  fi
15508fi
15509rm -f core conftest.err conftest.$ac_objext \
15510    conftest$ac_exeext conftest.$ac_ext
15511  if test -z "$lt_cv_aix_libpath_"; then
15512    lt_cv_aix_libpath_="/usr/lib:/lib"
15513  fi
15514
15515fi
15516
15517  aix_libpath=$lt_cv_aix_libpath_
15518fi
15519
15520	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15521	  # Warning - without using the other run time loading flags,
15522	  # -berok will link without error, but may produce a broken library.
15523	  no_undefined_flag=' ${wl}-bernotok'
15524	  allow_undefined_flag=' ${wl}-berok'
15525	  if test "$with_gnu_ld" = yes; then
15526	    # We only use this code for GNU lds that support --whole-archive.
15527	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15528	  else
15529	    # Exported symbols can be pulled into shared objects from archives
15530	    whole_archive_flag_spec='$convenience'
15531	  fi
15532	  archive_cmds_need_lc=yes
15533	  # This is similar to how AIX traditionally builds its shared libraries.
15534	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15535	fi
15536      fi
15537      ;;
15538
15539    amigaos*)
15540      case $host_cpu in
15541      powerpc)
15542            # see comment about AmigaOS4 .so support
15543            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15544            archive_expsym_cmds=''
15545        ;;
15546      m68k)
15547            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)'
15548            hardcode_libdir_flag_spec='-L$libdir'
15549            hardcode_minus_L=yes
15550        ;;
15551      esac
15552      ;;
15553
15554    bsdi[45]*)
15555      export_dynamic_flag_spec=-rdynamic
15556      ;;
15557
15558    cygwin* | mingw* | pw32* | cegcc*)
15559      # When not using gcc, we currently assume that we are using
15560      # Microsoft Visual C++.
15561      # hardcode_libdir_flag_spec is actually meaningless, as there is
15562      # no search path for DLLs.
15563      case $cc_basename in
15564      cl*)
15565	# Native MSVC
15566	hardcode_libdir_flag_spec=' '
15567	allow_undefined_flag=unsupported
15568	always_export_symbols=yes
15569	file_list_spec='@'
15570	# Tell ltmain to make .lib files, not .a files.
15571	libext=lib
15572	# Tell ltmain to make .dll files, not .so files.
15573	shrext_cmds=".dll"
15574	# FIXME: Setting linknames here is a bad hack.
15575	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15576	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15577	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15578	  else
15579	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15580	  fi~
15581	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15582	  linknames='
15583	# The linker will not automatically build a static lib if we build a DLL.
15584	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15585	enable_shared_with_static_runtimes=yes
15586	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15587	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15588	# Don't use ranlib
15589	old_postinstall_cmds='chmod 644 $oldlib'
15590	postlink_cmds='lt_outputfile="@OUTPUT@"~
15591	  lt_tool_outputfile="@TOOL_OUTPUT@"~
15592	  case $lt_outputfile in
15593	    *.exe|*.EXE) ;;
15594	    *)
15595	      lt_outputfile="$lt_outputfile.exe"
15596	      lt_tool_outputfile="$lt_tool_outputfile.exe"
15597	      ;;
15598	  esac~
15599	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15600	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15601	    $RM "$lt_outputfile.manifest";
15602	  fi'
15603	;;
15604      *)
15605	# Assume MSVC wrapper
15606	hardcode_libdir_flag_spec=' '
15607	allow_undefined_flag=unsupported
15608	# Tell ltmain to make .lib files, not .a files.
15609	libext=lib
15610	# Tell ltmain to make .dll files, not .so files.
15611	shrext_cmds=".dll"
15612	# FIXME: Setting linknames here is a bad hack.
15613	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15614	# The linker will automatically build a .lib file if we build a DLL.
15615	old_archive_from_new_cmds='true'
15616	# FIXME: Should let the user specify the lib program.
15617	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15618	enable_shared_with_static_runtimes=yes
15619	;;
15620      esac
15621      ;;
15622
15623    darwin* | rhapsody*)
15624
15625
15626  archive_cmds_need_lc=no
15627  hardcode_direct=no
15628  hardcode_automatic=yes
15629  hardcode_shlibpath_var=unsupported
15630  if test "$lt_cv_ld_force_load" = "yes"; then
15631    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\"`'
15632
15633  else
15634    whole_archive_flag_spec=''
15635  fi
15636  link_all_deplibs=yes
15637  allow_undefined_flag="$_lt_dar_allow_undefined"
15638  case $cc_basename in
15639     ifort*) _lt_dar_can_shared=yes ;;
15640     *) _lt_dar_can_shared=$GCC ;;
15641  esac
15642  if test "$_lt_dar_can_shared" = "yes"; then
15643    output_verbose_link_cmd=func_echo_all
15644    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15645    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15646    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}"
15647    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}"
15648
15649  else
15650  ld_shlibs=no
15651  fi
15652
15653      ;;
15654
15655    dgux*)
15656      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15657      hardcode_libdir_flag_spec='-L$libdir'
15658      hardcode_shlibpath_var=no
15659      ;;
15660
15661    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15662    # support.  Future versions do this automatically, but an explicit c++rt0.o
15663    # does not break anything, and helps significantly (at the cost of a little
15664    # extra space).
15665    freebsd2.2*)
15666      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15667      hardcode_libdir_flag_spec='-R$libdir'
15668      hardcode_direct=yes
15669      hardcode_shlibpath_var=no
15670      ;;
15671
15672    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15673    freebsd2.*)
15674      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15675      hardcode_direct=yes
15676      hardcode_minus_L=yes
15677      hardcode_shlibpath_var=no
15678      ;;
15679
15680    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15681    freebsd* | dragonfly*)
15682      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15683      hardcode_libdir_flag_spec='-R$libdir'
15684      hardcode_direct=yes
15685      hardcode_shlibpath_var=no
15686      ;;
15687
15688    hpux9*)
15689      if test "$GCC" = yes; then
15690	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15691      else
15692	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15693      fi
15694      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15695      hardcode_libdir_separator=:
15696      hardcode_direct=yes
15697
15698      # hardcode_minus_L: Not really in the search PATH,
15699      # but as the default location of the library.
15700      hardcode_minus_L=yes
15701      export_dynamic_flag_spec='${wl}-E'
15702      ;;
15703
15704    hpux10*)
15705      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15706	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15707      else
15708	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15709      fi
15710      if test "$with_gnu_ld" = no; then
15711	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15712	hardcode_libdir_separator=:
15713	hardcode_direct=yes
15714	hardcode_direct_absolute=yes
15715	export_dynamic_flag_spec='${wl}-E'
15716	# hardcode_minus_L: Not really in the search PATH,
15717	# but as the default location of the library.
15718	hardcode_minus_L=yes
15719      fi
15720      ;;
15721
15722    hpux11*)
15723      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15724	case $host_cpu in
15725	hppa*64*)
15726	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15727	  ;;
15728	ia64*)
15729	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15730	  ;;
15731	*)
15732	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15733	  ;;
15734	esac
15735      else
15736	case $host_cpu in
15737	hppa*64*)
15738	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15739	  ;;
15740	ia64*)
15741	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15742	  ;;
15743	*)
15744
15745	  # Older versions of the 11.00 compiler do not understand -b yet
15746	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15747	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15748$as_echo_n "checking if $CC understands -b... " >&6; }
15749if ${lt_cv_prog_compiler__b+:} false; then :
15750  $as_echo_n "(cached) " >&6
15751else
15752  lt_cv_prog_compiler__b=no
15753   save_LDFLAGS="$LDFLAGS"
15754   LDFLAGS="$LDFLAGS -b"
15755   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15756   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15757     # The linker can only warn and ignore the option if not recognized
15758     # So say no if there are warnings
15759     if test -s conftest.err; then
15760       # Append any errors to the config.log.
15761       cat conftest.err 1>&5
15762       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15763       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15764       if diff conftest.exp conftest.er2 >/dev/null; then
15765         lt_cv_prog_compiler__b=yes
15766       fi
15767     else
15768       lt_cv_prog_compiler__b=yes
15769     fi
15770   fi
15771   $RM -r conftest*
15772   LDFLAGS="$save_LDFLAGS"
15773
15774fi
15775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15776$as_echo "$lt_cv_prog_compiler__b" >&6; }
15777
15778if test x"$lt_cv_prog_compiler__b" = xyes; then
15779    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15780else
15781    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15782fi
15783
15784	  ;;
15785	esac
15786      fi
15787      if test "$with_gnu_ld" = no; then
15788	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15789	hardcode_libdir_separator=:
15790
15791	case $host_cpu in
15792	hppa*64*|ia64*)
15793	  hardcode_direct=no
15794	  hardcode_shlibpath_var=no
15795	  ;;
15796	*)
15797	  hardcode_direct=yes
15798	  hardcode_direct_absolute=yes
15799	  export_dynamic_flag_spec='${wl}-E'
15800
15801	  # hardcode_minus_L: Not really in the search PATH,
15802	  # but as the default location of the library.
15803	  hardcode_minus_L=yes
15804	  ;;
15805	esac
15806      fi
15807      ;;
15808
15809    irix5* | irix6* | nonstopux*)
15810      if test "$GCC" = yes; then
15811	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'
15812	# Try to use the -exported_symbol ld option, if it does not
15813	# work, assume that -exports_file does not work either and
15814	# implicitly export all symbols.
15815	# This should be the same for all languages, so no per-tag cache variable.
15816	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15817$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15818if ${lt_cv_irix_exported_symbol+:} false; then :
15819  $as_echo_n "(cached) " >&6
15820else
15821  save_LDFLAGS="$LDFLAGS"
15822	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15823	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15824/* end confdefs.h.  */
15825int foo (void) { return 0; }
15826_ACEOF
15827if ac_fn_c_try_link "$LINENO"; then :
15828  lt_cv_irix_exported_symbol=yes
15829else
15830  lt_cv_irix_exported_symbol=no
15831fi
15832rm -f core conftest.err conftest.$ac_objext \
15833    conftest$ac_exeext conftest.$ac_ext
15834           LDFLAGS="$save_LDFLAGS"
15835fi
15836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15837$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15838	if test "$lt_cv_irix_exported_symbol" = yes; then
15839          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'
15840	fi
15841      else
15842	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'
15843	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'
15844      fi
15845      archive_cmds_need_lc='no'
15846      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15847      hardcode_libdir_separator=:
15848      inherit_rpath=yes
15849      link_all_deplibs=yes
15850      ;;
15851
15852    netbsd*)
15853      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15854	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15855      else
15856	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15857      fi
15858      hardcode_libdir_flag_spec='-R$libdir'
15859      hardcode_direct=yes
15860      hardcode_shlibpath_var=no
15861      ;;
15862
15863    newsos6)
15864      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15865      hardcode_direct=yes
15866      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15867      hardcode_libdir_separator=:
15868      hardcode_shlibpath_var=no
15869      ;;
15870
15871    *nto* | *qnx*)
15872      ;;
15873
15874    openbsd*)
15875      if test -f /usr/libexec/ld.so; then
15876	hardcode_direct=yes
15877	hardcode_shlibpath_var=no
15878	hardcode_direct_absolute=yes
15879	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15880	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15881	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15882	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15883	  export_dynamic_flag_spec='${wl}-E'
15884	else
15885	  case $host_os in
15886	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15887	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15888	     hardcode_libdir_flag_spec='-R$libdir'
15889	     ;;
15890	   *)
15891	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15892	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15893	     ;;
15894	  esac
15895	fi
15896      else
15897	ld_shlibs=no
15898      fi
15899      ;;
15900
15901    os2*)
15902      hardcode_libdir_flag_spec='-L$libdir'
15903      hardcode_minus_L=yes
15904      allow_undefined_flag=unsupported
15905      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15906      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15907      ;;
15908
15909    osf3*)
15910      if test "$GCC" = yes; then
15911	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15912	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'
15913      else
15914	allow_undefined_flag=' -expect_unresolved \*'
15915	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'
15916      fi
15917      archive_cmds_need_lc='no'
15918      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15919      hardcode_libdir_separator=:
15920      ;;
15921
15922    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15923      if test "$GCC" = yes; then
15924	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15925	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'
15926	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15927      else
15928	allow_undefined_flag=' -expect_unresolved \*'
15929	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'
15930	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~
15931	$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'
15932
15933	# Both c and cxx compiler support -rpath directly
15934	hardcode_libdir_flag_spec='-rpath $libdir'
15935      fi
15936      archive_cmds_need_lc='no'
15937      hardcode_libdir_separator=:
15938      ;;
15939
15940    solaris*)
15941      no_undefined_flag=' -z defs'
15942      if test "$GCC" = yes; then
15943	wlarc='${wl}'
15944	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15945	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15946	  $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'
15947      else
15948	case `$CC -V 2>&1` in
15949	*"Compilers 5.0"*)
15950	  wlarc=''
15951	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15952	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15953	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15954	  ;;
15955	*)
15956	  wlarc='${wl}'
15957	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15958	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15959	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15960	  ;;
15961	esac
15962      fi
15963      hardcode_libdir_flag_spec='-R$libdir'
15964      hardcode_shlibpath_var=no
15965      case $host_os in
15966      solaris2.[0-5] | solaris2.[0-5].*) ;;
15967      *)
15968	# The compiler driver will combine and reorder linker options,
15969	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15970	# but is careful enough not to reorder.
15971	# Supported since Solaris 2.6 (maybe 2.5.1?)
15972	if test "$GCC" = yes; then
15973	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15974	else
15975	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15976	fi
15977	;;
15978      esac
15979      link_all_deplibs=yes
15980      ;;
15981
15982    sunos4*)
15983      if test "x$host_vendor" = xsequent; then
15984	# Use $CC to link under sequent, because it throws in some extra .o
15985	# files that make .init and .fini sections work.
15986	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15987      else
15988	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15989      fi
15990      hardcode_libdir_flag_spec='-L$libdir'
15991      hardcode_direct=yes
15992      hardcode_minus_L=yes
15993      hardcode_shlibpath_var=no
15994      ;;
15995
15996    sysv4)
15997      case $host_vendor in
15998	sni)
15999	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16000	  hardcode_direct=yes # is this really true???
16001	;;
16002	siemens)
16003	  ## LD is ld it makes a PLAMLIB
16004	  ## CC just makes a GrossModule.
16005	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16006	  reload_cmds='$CC -r -o $output$reload_objs'
16007	  hardcode_direct=no
16008        ;;
16009	motorola)
16010	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16011	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16012	;;
16013      esac
16014      runpath_var='LD_RUN_PATH'
16015      hardcode_shlibpath_var=no
16016      ;;
16017
16018    sysv4.3*)
16019      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16020      hardcode_shlibpath_var=no
16021      export_dynamic_flag_spec='-Bexport'
16022      ;;
16023
16024    sysv4*MP*)
16025      if test -d /usr/nec; then
16026	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16027	hardcode_shlibpath_var=no
16028	runpath_var=LD_RUN_PATH
16029	hardcode_runpath_var=yes
16030	ld_shlibs=yes
16031      fi
16032      ;;
16033
16034    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16035      no_undefined_flag='${wl}-z,text'
16036      archive_cmds_need_lc=no
16037      hardcode_shlibpath_var=no
16038      runpath_var='LD_RUN_PATH'
16039
16040      if test "$GCC" = yes; then
16041	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16042	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16043      else
16044	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16045	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16046      fi
16047      ;;
16048
16049    sysv5* | sco3.2v5* | sco5v6*)
16050      # Note: We can NOT use -z defs as we might desire, because we do not
16051      # link with -lc, and that would cause any symbols used from libc to
16052      # always be unresolved, which means just about no library would
16053      # ever link correctly.  If we're not using GNU ld we use -z text
16054      # though, which does catch some bad symbols but isn't as heavy-handed
16055      # as -z defs.
16056      no_undefined_flag='${wl}-z,text'
16057      allow_undefined_flag='${wl}-z,nodefs'
16058      archive_cmds_need_lc=no
16059      hardcode_shlibpath_var=no
16060      hardcode_libdir_flag_spec='${wl}-R,$libdir'
16061      hardcode_libdir_separator=':'
16062      link_all_deplibs=yes
16063      export_dynamic_flag_spec='${wl}-Bexport'
16064      runpath_var='LD_RUN_PATH'
16065
16066      if test "$GCC" = yes; then
16067	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16068	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16069      else
16070	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16071	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16072      fi
16073      ;;
16074
16075    uts4*)
16076      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16077      hardcode_libdir_flag_spec='-L$libdir'
16078      hardcode_shlibpath_var=no
16079      ;;
16080
16081    *)
16082      ld_shlibs=no
16083      ;;
16084    esac
16085
16086    if test x$host_vendor = xsni; then
16087      case $host in
16088      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16089	export_dynamic_flag_spec='${wl}-Blargedynsym'
16090	;;
16091      esac
16092    fi
16093  fi
16094
16095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16096$as_echo "$ld_shlibs" >&6; }
16097test "$ld_shlibs" = no && can_build_shared=no
16098
16099with_gnu_ld=$with_gnu_ld
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115#
16116# Do we need to explicitly link libc?
16117#
16118case "x$archive_cmds_need_lc" in
16119x|xyes)
16120  # Assume -lc should be added
16121  archive_cmds_need_lc=yes
16122
16123  if test "$enable_shared" = yes && test "$GCC" = yes; then
16124    case $archive_cmds in
16125    *'~'*)
16126      # FIXME: we may have to deal with multi-command sequences.
16127      ;;
16128    '$CC '*)
16129      # Test whether the compiler implicitly links with -lc since on some
16130      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16131      # to ld, don't add -lc before -lgcc.
16132      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16133$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16134if ${lt_cv_archive_cmds_need_lc+:} false; then :
16135  $as_echo_n "(cached) " >&6
16136else
16137  $RM conftest*
16138	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16139
16140	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16141  (eval $ac_compile) 2>&5
16142  ac_status=$?
16143  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16144  test $ac_status = 0; } 2>conftest.err; then
16145	  soname=conftest
16146	  lib=conftest
16147	  libobjs=conftest.$ac_objext
16148	  deplibs=
16149	  wl=$lt_prog_compiler_wl
16150	  pic_flag=$lt_prog_compiler_pic
16151	  compiler_flags=-v
16152	  linker_flags=-v
16153	  verstring=
16154	  output_objdir=.
16155	  libname=conftest
16156	  lt_save_allow_undefined_flag=$allow_undefined_flag
16157	  allow_undefined_flag=
16158	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16159  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16160  ac_status=$?
16161  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16162  test $ac_status = 0; }
16163	  then
16164	    lt_cv_archive_cmds_need_lc=no
16165	  else
16166	    lt_cv_archive_cmds_need_lc=yes
16167	  fi
16168	  allow_undefined_flag=$lt_save_allow_undefined_flag
16169	else
16170	  cat conftest.err 1>&5
16171	fi
16172	$RM conftest*
16173
16174fi
16175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16176$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16177      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16178      ;;
16179    esac
16180  fi
16181  ;;
16182esac
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16336$as_echo_n "checking dynamic linker characteristics... " >&6; }
16337
16338if test "$GCC" = yes; then
16339  case $host_os in
16340    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16341    *) lt_awk_arg="/^libraries:/" ;;
16342  esac
16343  case $host_os in
16344    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16345    *) lt_sed_strip_eq="s,=/,/,g" ;;
16346  esac
16347  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16348  case $lt_search_path_spec in
16349  *\;*)
16350    # if the path contains ";" then we assume it to be the separator
16351    # otherwise default to the standard path separator (i.e. ":") - it is
16352    # assumed that no part of a normal pathname contains ";" but that should
16353    # okay in the real world where ";" in dirpaths is itself problematic.
16354    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16355    ;;
16356  *)
16357    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16358    ;;
16359  esac
16360  # Ok, now we have the path, separated by spaces, we can step through it
16361  # and add multilib dir if necessary.
16362  lt_tmp_lt_search_path_spec=
16363  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16364  for lt_sys_path in $lt_search_path_spec; do
16365    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16366      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16367    else
16368      test -d "$lt_sys_path" && \
16369	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16370    fi
16371  done
16372  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16373BEGIN {RS=" "; FS="/|\n";} {
16374  lt_foo="";
16375  lt_count=0;
16376  for (lt_i = NF; lt_i > 0; lt_i--) {
16377    if ($lt_i != "" && $lt_i != ".") {
16378      if ($lt_i == "..") {
16379        lt_count++;
16380      } else {
16381        if (lt_count == 0) {
16382          lt_foo="/" $lt_i lt_foo;
16383        } else {
16384          lt_count--;
16385        }
16386      }
16387    }
16388  }
16389  if (lt_foo != "") { lt_freq[lt_foo]++; }
16390  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16391}'`
16392  # AWK program above erroneously prepends '/' to C:/dos/paths
16393  # for these hosts.
16394  case $host_os in
16395    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16396      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16397  esac
16398  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16399else
16400  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16401fi
16402library_names_spec=
16403libname_spec='lib$name'
16404soname_spec=
16405shrext_cmds=".so"
16406postinstall_cmds=
16407postuninstall_cmds=
16408finish_cmds=
16409finish_eval=
16410shlibpath_var=
16411shlibpath_overrides_runpath=unknown
16412version_type=none
16413dynamic_linker="$host_os ld.so"
16414sys_lib_dlsearch_path_spec="/lib /usr/lib"
16415need_lib_prefix=unknown
16416hardcode_into_libs=no
16417
16418# when you set need_version to no, make sure it does not cause -set_version
16419# flags to be left without arguments
16420need_version=unknown
16421
16422case $host_os in
16423aix3*)
16424  version_type=linux # correct to gnu/linux during the next big refactor
16425  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16426  shlibpath_var=LIBPATH
16427
16428  # AIX 3 has no versioning support, so we append a major version to the name.
16429  soname_spec='${libname}${release}${shared_ext}$major'
16430  ;;
16431
16432aix[4-9]*)
16433  version_type=linux # correct to gnu/linux during the next big refactor
16434  need_lib_prefix=no
16435  need_version=no
16436  hardcode_into_libs=yes
16437  if test "$host_cpu" = ia64; then
16438    # AIX 5 supports IA64
16439    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16440    shlibpath_var=LD_LIBRARY_PATH
16441  else
16442    # With GCC up to 2.95.x, collect2 would create an import file
16443    # for dependence libraries.  The import file would start with
16444    # the line `#! .'.  This would cause the generated library to
16445    # depend on `.', always an invalid library.  This was fixed in
16446    # development snapshots of GCC prior to 3.0.
16447    case $host_os in
16448      aix4 | aix4.[01] | aix4.[01].*)
16449      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16450	   echo ' yes '
16451	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16452	:
16453      else
16454	can_build_shared=no
16455      fi
16456      ;;
16457    esac
16458    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16459    # soname into executable. Probably we can add versioning support to
16460    # collect2, so additional links can be useful in future.
16461    if test "$aix_use_runtimelinking" = yes; then
16462      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16463      # instead of lib<name>.a to let people know that these are not
16464      # typical AIX shared libraries.
16465      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16466    else
16467      # We preserve .a as extension for shared libraries through AIX4.2
16468      # and later when we are not doing run time linking.
16469      library_names_spec='${libname}${release}.a $libname.a'
16470      soname_spec='${libname}${release}${shared_ext}$major'
16471    fi
16472    shlibpath_var=LIBPATH
16473  fi
16474  ;;
16475
16476amigaos*)
16477  case $host_cpu in
16478  powerpc)
16479    # Since July 2007 AmigaOS4 officially supports .so libraries.
16480    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16481    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16482    ;;
16483  m68k)
16484    library_names_spec='$libname.ixlibrary $libname.a'
16485    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16486    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16487    ;;
16488  esac
16489  ;;
16490
16491beos*)
16492  library_names_spec='${libname}${shared_ext}'
16493  dynamic_linker="$host_os ld.so"
16494  shlibpath_var=LIBRARY_PATH
16495  ;;
16496
16497bsdi[45]*)
16498  version_type=linux # correct to gnu/linux during the next big refactor
16499  need_version=no
16500  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16501  soname_spec='${libname}${release}${shared_ext}$major'
16502  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16503  shlibpath_var=LD_LIBRARY_PATH
16504  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16505  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16506  # the default ld.so.conf also contains /usr/contrib/lib and
16507  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16508  # libtool to hard-code these into programs
16509  ;;
16510
16511cygwin* | mingw* | pw32* | cegcc*)
16512  version_type=windows
16513  shrext_cmds=".dll"
16514  need_version=no
16515  need_lib_prefix=no
16516
16517  case $GCC,$cc_basename in
16518  yes,*)
16519    # gcc
16520    library_names_spec='$libname.dll.a'
16521    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16522    postinstall_cmds='base_file=`basename \${file}`~
16523      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16524      dldir=$destdir/`dirname \$dlpath`~
16525      test -d \$dldir || mkdir -p \$dldir~
16526      $install_prog $dir/$dlname \$dldir/$dlname~
16527      chmod a+x \$dldir/$dlname~
16528      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16529        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16530      fi'
16531    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16532      dlpath=$dir/\$dldll~
16533       $RM \$dlpath'
16534    shlibpath_overrides_runpath=yes
16535
16536    case $host_os in
16537    cygwin*)
16538      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16539      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16540
16541      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16542      ;;
16543    mingw* | cegcc*)
16544      # MinGW DLLs use traditional 'lib' prefix
16545      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16546      ;;
16547    pw32*)
16548      # pw32 DLLs use 'pw' prefix rather than 'lib'
16549      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16550      ;;
16551    esac
16552    dynamic_linker='Win32 ld.exe'
16553    ;;
16554
16555  *,cl*)
16556    # Native MSVC
16557    libname_spec='$name'
16558    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16559    library_names_spec='${libname}.dll.lib'
16560
16561    case $build_os in
16562    mingw*)
16563      sys_lib_search_path_spec=
16564      lt_save_ifs=$IFS
16565      IFS=';'
16566      for lt_path in $LIB
16567      do
16568        IFS=$lt_save_ifs
16569        # Let DOS variable expansion print the short 8.3 style file name.
16570        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16571        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16572      done
16573      IFS=$lt_save_ifs
16574      # Convert to MSYS style.
16575      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16576      ;;
16577    cygwin*)
16578      # Convert to unix form, then to dos form, then back to unix form
16579      # but this time dos style (no spaces!) so that the unix form looks
16580      # like /cygdrive/c/PROGRA~1:/cygdr...
16581      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16582      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16583      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16584      ;;
16585    *)
16586      sys_lib_search_path_spec="$LIB"
16587      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16588        # It is most probably a Windows format PATH.
16589        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16590      else
16591        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16592      fi
16593      # FIXME: find the short name or the path components, as spaces are
16594      # common. (e.g. "Program Files" -> "PROGRA~1")
16595      ;;
16596    esac
16597
16598    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16599    postinstall_cmds='base_file=`basename \${file}`~
16600      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16601      dldir=$destdir/`dirname \$dlpath`~
16602      test -d \$dldir || mkdir -p \$dldir~
16603      $install_prog $dir/$dlname \$dldir/$dlname'
16604    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16605      dlpath=$dir/\$dldll~
16606       $RM \$dlpath'
16607    shlibpath_overrides_runpath=yes
16608    dynamic_linker='Win32 link.exe'
16609    ;;
16610
16611  *)
16612    # Assume MSVC wrapper
16613    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16614    dynamic_linker='Win32 ld.exe'
16615    ;;
16616  esac
16617  # FIXME: first we should search . and the directory the executable is in
16618  shlibpath_var=PATH
16619  ;;
16620
16621darwin* | rhapsody*)
16622  dynamic_linker="$host_os dyld"
16623  version_type=darwin
16624  need_lib_prefix=no
16625  need_version=no
16626  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16627  soname_spec='${libname}${release}${major}$shared_ext'
16628  shlibpath_overrides_runpath=yes
16629  shlibpath_var=DYLD_LIBRARY_PATH
16630  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16631
16632  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16633  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16634  ;;
16635
16636dgux*)
16637  version_type=linux # correct to gnu/linux during the next big refactor
16638  need_lib_prefix=no
16639  need_version=no
16640  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16641  soname_spec='${libname}${release}${shared_ext}$major'
16642  shlibpath_var=LD_LIBRARY_PATH
16643  ;;
16644
16645freebsd* | dragonfly*)
16646  # DragonFly does not have aout.  When/if they implement a new
16647  # versioning mechanism, adjust this.
16648  if test -x /usr/bin/objformat; then
16649    objformat=`/usr/bin/objformat`
16650  else
16651    case $host_os in
16652    freebsd[23].*) objformat=aout ;;
16653    *) objformat=elf ;;
16654    esac
16655  fi
16656  version_type=freebsd-$objformat
16657  case $version_type in
16658    freebsd-elf*)
16659      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16660      need_version=no
16661      need_lib_prefix=no
16662      ;;
16663    freebsd-*)
16664      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16665      need_version=yes
16666      ;;
16667  esac
16668  shlibpath_var=LD_LIBRARY_PATH
16669  case $host_os in
16670  freebsd2.*)
16671    shlibpath_overrides_runpath=yes
16672    ;;
16673  freebsd3.[01]* | freebsdelf3.[01]*)
16674    shlibpath_overrides_runpath=yes
16675    hardcode_into_libs=yes
16676    ;;
16677  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16678  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16679    shlibpath_overrides_runpath=no
16680    hardcode_into_libs=yes
16681    ;;
16682  *) # from 4.6 on, and DragonFly
16683    shlibpath_overrides_runpath=yes
16684    hardcode_into_libs=yes
16685    ;;
16686  esac
16687  ;;
16688
16689gnu*)
16690  version_type=linux # correct to gnu/linux during the next big refactor
16691  need_lib_prefix=no
16692  need_version=no
16693  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16694  soname_spec='${libname}${release}${shared_ext}$major'
16695  shlibpath_var=LD_LIBRARY_PATH
16696  shlibpath_overrides_runpath=no
16697  hardcode_into_libs=yes
16698  ;;
16699
16700haiku*)
16701  version_type=linux # correct to gnu/linux during the next big refactor
16702  need_lib_prefix=no
16703  need_version=no
16704  dynamic_linker="$host_os runtime_loader"
16705  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16706  soname_spec='${libname}${release}${shared_ext}$major'
16707  shlibpath_var=LIBRARY_PATH
16708  shlibpath_overrides_runpath=yes
16709  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16710  hardcode_into_libs=yes
16711  ;;
16712
16713hpux9* | hpux10* | hpux11*)
16714  # Give a soname corresponding to the major version so that dld.sl refuses to
16715  # link against other versions.
16716  version_type=sunos
16717  need_lib_prefix=no
16718  need_version=no
16719  case $host_cpu in
16720  ia64*)
16721    shrext_cmds='.so'
16722    hardcode_into_libs=yes
16723    dynamic_linker="$host_os dld.so"
16724    shlibpath_var=LD_LIBRARY_PATH
16725    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16726    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16727    soname_spec='${libname}${release}${shared_ext}$major'
16728    if test "X$HPUX_IA64_MODE" = X32; then
16729      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16730    else
16731      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16732    fi
16733    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16734    ;;
16735  hppa*64*)
16736    shrext_cmds='.sl'
16737    hardcode_into_libs=yes
16738    dynamic_linker="$host_os dld.sl"
16739    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16740    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16741    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16742    soname_spec='${libname}${release}${shared_ext}$major'
16743    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16744    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16745    ;;
16746  *)
16747    shrext_cmds='.sl'
16748    dynamic_linker="$host_os dld.sl"
16749    shlibpath_var=SHLIB_PATH
16750    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16751    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16752    soname_spec='${libname}${release}${shared_ext}$major'
16753    ;;
16754  esac
16755  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16756  postinstall_cmds='chmod 555 $lib'
16757  # or fails outright, so override atomically:
16758  install_override_mode=555
16759  ;;
16760
16761interix[3-9]*)
16762  version_type=linux # correct to gnu/linux during the next big refactor
16763  need_lib_prefix=no
16764  need_version=no
16765  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16766  soname_spec='${libname}${release}${shared_ext}$major'
16767  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16768  shlibpath_var=LD_LIBRARY_PATH
16769  shlibpath_overrides_runpath=no
16770  hardcode_into_libs=yes
16771  ;;
16772
16773irix5* | irix6* | nonstopux*)
16774  case $host_os in
16775    nonstopux*) version_type=nonstopux ;;
16776    *)
16777	if test "$lt_cv_prog_gnu_ld" = yes; then
16778		version_type=linux # correct to gnu/linux during the next big refactor
16779	else
16780		version_type=irix
16781	fi ;;
16782  esac
16783  need_lib_prefix=no
16784  need_version=no
16785  soname_spec='${libname}${release}${shared_ext}$major'
16786  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16787  case $host_os in
16788  irix5* | nonstopux*)
16789    libsuff= shlibsuff=
16790    ;;
16791  *)
16792    case $LD in # libtool.m4 will add one of these switches to LD
16793    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16794      libsuff= shlibsuff= libmagic=32-bit;;
16795    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16796      libsuff=32 shlibsuff=N32 libmagic=N32;;
16797    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16798      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16799    *) libsuff= shlibsuff= libmagic=never-match;;
16800    esac
16801    ;;
16802  esac
16803  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16804  shlibpath_overrides_runpath=no
16805  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16806  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16807  hardcode_into_libs=yes
16808  ;;
16809
16810# No shared lib support for Linux oldld, aout, or coff.
16811linux*oldld* | linux*aout* | linux*coff*)
16812  dynamic_linker=no
16813  ;;
16814
16815# This must be glibc/ELF.
16816linux* | k*bsd*-gnu | kopensolaris*-gnu)
16817  version_type=linux # correct to gnu/linux during the next big refactor
16818  need_lib_prefix=no
16819  need_version=no
16820  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16821  soname_spec='${libname}${release}${shared_ext}$major'
16822  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16823  shlibpath_var=LD_LIBRARY_PATH
16824  shlibpath_overrides_runpath=no
16825
16826  # Some binutils ld are patched to set DT_RUNPATH
16827  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16828  $as_echo_n "(cached) " >&6
16829else
16830  lt_cv_shlibpath_overrides_runpath=no
16831    save_LDFLAGS=$LDFLAGS
16832    save_libdir=$libdir
16833    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16834	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16835    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16836/* end confdefs.h.  */
16837
16838int
16839main ()
16840{
16841
16842  ;
16843  return 0;
16844}
16845_ACEOF
16846if ac_fn_c_try_link "$LINENO"; then :
16847  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16848  lt_cv_shlibpath_overrides_runpath=yes
16849fi
16850fi
16851rm -f core conftest.err conftest.$ac_objext \
16852    conftest$ac_exeext conftest.$ac_ext
16853    LDFLAGS=$save_LDFLAGS
16854    libdir=$save_libdir
16855
16856fi
16857
16858  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16859
16860  # This implies no fast_install, which is unacceptable.
16861  # Some rework will be needed to allow for fast_install
16862  # before this can be enabled.
16863  hardcode_into_libs=yes
16864
16865  # Add ABI-specific directories to the system library path.
16866  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16867
16868  # Append ld.so.conf contents to the search path
16869  if test -f /etc/ld.so.conf; then
16870    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' ' '`
16871    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16872
16873  fi
16874
16875  # We used to test for /lib/ld.so.1 and disable shared libraries on
16876  # powerpc, because MkLinux only supported shared libraries with the
16877  # GNU dynamic linker.  Since this was broken with cross compilers,
16878  # most powerpc-linux boxes support dynamic linking these days and
16879  # people can always --disable-shared, the test was removed, and we
16880  # assume the GNU/Linux dynamic linker is in use.
16881  dynamic_linker='GNU/Linux ld.so'
16882  ;;
16883
16884netbsd*)
16885  version_type=sunos
16886  need_lib_prefix=no
16887  need_version=no
16888  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16889    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16890    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16891    dynamic_linker='NetBSD (a.out) ld.so'
16892  else
16893    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16894    soname_spec='${libname}${release}${shared_ext}$major'
16895    dynamic_linker='NetBSD ld.elf_so'
16896  fi
16897  shlibpath_var=LD_LIBRARY_PATH
16898  shlibpath_overrides_runpath=yes
16899  hardcode_into_libs=yes
16900  ;;
16901
16902newsos6)
16903  version_type=linux # correct to gnu/linux during the next big refactor
16904  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16905  shlibpath_var=LD_LIBRARY_PATH
16906  shlibpath_overrides_runpath=yes
16907  ;;
16908
16909*nto* | *qnx*)
16910  version_type=qnx
16911  need_lib_prefix=no
16912  need_version=no
16913  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16914  soname_spec='${libname}${release}${shared_ext}$major'
16915  shlibpath_var=LD_LIBRARY_PATH
16916  shlibpath_overrides_runpath=no
16917  hardcode_into_libs=yes
16918  dynamic_linker='ldqnx.so'
16919  ;;
16920
16921openbsd*)
16922  version_type=sunos
16923  sys_lib_dlsearch_path_spec="/usr/lib"
16924  need_lib_prefix=no
16925  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16926  case $host_os in
16927    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
16928    *)				need_version=no  ;;
16929  esac
16930  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16931  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16932  shlibpath_var=LD_LIBRARY_PATH
16933  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16934    case $host_os in
16935      openbsd2.[89] | openbsd2.[89].*)
16936	shlibpath_overrides_runpath=no
16937	;;
16938      *)
16939	shlibpath_overrides_runpath=yes
16940	;;
16941      esac
16942  else
16943    shlibpath_overrides_runpath=yes
16944  fi
16945  ;;
16946
16947os2*)
16948  libname_spec='$name'
16949  shrext_cmds=".dll"
16950  need_lib_prefix=no
16951  library_names_spec='$libname${shared_ext} $libname.a'
16952  dynamic_linker='OS/2 ld.exe'
16953  shlibpath_var=LIBPATH
16954  ;;
16955
16956osf3* | osf4* | osf5*)
16957  version_type=osf
16958  need_lib_prefix=no
16959  need_version=no
16960  soname_spec='${libname}${release}${shared_ext}$major'
16961  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16962  shlibpath_var=LD_LIBRARY_PATH
16963  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16964  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16965  ;;
16966
16967rdos*)
16968  dynamic_linker=no
16969  ;;
16970
16971solaris*)
16972  version_type=linux # correct to gnu/linux during the next big refactor
16973  need_lib_prefix=no
16974  need_version=no
16975  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16976  soname_spec='${libname}${release}${shared_ext}$major'
16977  shlibpath_var=LD_LIBRARY_PATH
16978  shlibpath_overrides_runpath=yes
16979  hardcode_into_libs=yes
16980  # ldd complains unless libraries are executable
16981  postinstall_cmds='chmod +x $lib'
16982  ;;
16983
16984sunos4*)
16985  version_type=sunos
16986  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16987  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16988  shlibpath_var=LD_LIBRARY_PATH
16989  shlibpath_overrides_runpath=yes
16990  if test "$with_gnu_ld" = yes; then
16991    need_lib_prefix=no
16992  fi
16993  need_version=yes
16994  ;;
16995
16996sysv4 | sysv4.3*)
16997  version_type=linux # correct to gnu/linux during the next big refactor
16998  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16999  soname_spec='${libname}${release}${shared_ext}$major'
17000  shlibpath_var=LD_LIBRARY_PATH
17001  case $host_vendor in
17002    sni)
17003      shlibpath_overrides_runpath=no
17004      need_lib_prefix=no
17005      runpath_var=LD_RUN_PATH
17006      ;;
17007    siemens)
17008      need_lib_prefix=no
17009      ;;
17010    motorola)
17011      need_lib_prefix=no
17012      need_version=no
17013      shlibpath_overrides_runpath=no
17014      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17015      ;;
17016  esac
17017  ;;
17018
17019sysv4*MP*)
17020  if test -d /usr/nec ;then
17021    version_type=linux # correct to gnu/linux during the next big refactor
17022    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17023    soname_spec='$libname${shared_ext}.$major'
17024    shlibpath_var=LD_LIBRARY_PATH
17025  fi
17026  ;;
17027
17028sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17029  version_type=freebsd-elf
17030  need_lib_prefix=no
17031  need_version=no
17032  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17033  soname_spec='${libname}${release}${shared_ext}$major'
17034  shlibpath_var=LD_LIBRARY_PATH
17035  shlibpath_overrides_runpath=yes
17036  hardcode_into_libs=yes
17037  if test "$with_gnu_ld" = yes; then
17038    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17039  else
17040    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17041    case $host_os in
17042      sco3.2v5*)
17043        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17044	;;
17045    esac
17046  fi
17047  sys_lib_dlsearch_path_spec='/usr/lib'
17048  ;;
17049
17050tpf*)
17051  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17052  version_type=linux # correct to gnu/linux during the next big refactor
17053  need_lib_prefix=no
17054  need_version=no
17055  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17056  shlibpath_var=LD_LIBRARY_PATH
17057  shlibpath_overrides_runpath=no
17058  hardcode_into_libs=yes
17059  ;;
17060
17061uts4*)
17062  version_type=linux # correct to gnu/linux during the next big refactor
17063  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17064  soname_spec='${libname}${release}${shared_ext}$major'
17065  shlibpath_var=LD_LIBRARY_PATH
17066  ;;
17067
17068*)
17069  dynamic_linker=no
17070  ;;
17071esac
17072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17073$as_echo "$dynamic_linker" >&6; }
17074test "$dynamic_linker" = no && can_build_shared=no
17075
17076variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17077if test "$GCC" = yes; then
17078  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17079fi
17080
17081if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17082  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17083fi
17084if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17085  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17086fi
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17180$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17181hardcode_action=
17182if test -n "$hardcode_libdir_flag_spec" ||
17183   test -n "$runpath_var" ||
17184   test "X$hardcode_automatic" = "Xyes" ; then
17185
17186  # We can hardcode non-existent directories.
17187  if test "$hardcode_direct" != no &&
17188     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17189     # have to relink, otherwise we might link with an installed library
17190     # when we should be linking with a yet-to-be-installed one
17191     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17192     test "$hardcode_minus_L" != no; then
17193    # Linking always hardcodes the temporary library directory.
17194    hardcode_action=relink
17195  else
17196    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17197    hardcode_action=immediate
17198  fi
17199else
17200  # We cannot hardcode anything, or else we can only hardcode existing
17201  # directories.
17202  hardcode_action=unsupported
17203fi
17204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17205$as_echo "$hardcode_action" >&6; }
17206
17207if test "$hardcode_action" = relink ||
17208   test "$inherit_rpath" = yes; then
17209  # Fast installation is not supported
17210  enable_fast_install=no
17211elif test "$shlibpath_overrides_runpath" = yes ||
17212     test "$enable_shared" = no; then
17213  # Fast installation is not necessary
17214  enable_fast_install=needless
17215fi
17216
17217
17218
17219
17220
17221
17222  if test "x$enable_dlopen" != xyes; then
17223  enable_dlopen=unknown
17224  enable_dlopen_self=unknown
17225  enable_dlopen_self_static=unknown
17226else
17227  lt_cv_dlopen=no
17228  lt_cv_dlopen_libs=
17229
17230  case $host_os in
17231  beos*)
17232    lt_cv_dlopen="load_add_on"
17233    lt_cv_dlopen_libs=
17234    lt_cv_dlopen_self=yes
17235    ;;
17236
17237  mingw* | pw32* | cegcc*)
17238    lt_cv_dlopen="LoadLibrary"
17239    lt_cv_dlopen_libs=
17240    ;;
17241
17242  cygwin*)
17243    lt_cv_dlopen="dlopen"
17244    lt_cv_dlopen_libs=
17245    ;;
17246
17247  darwin*)
17248  # if libdl is installed we need to link against it
17249    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17250$as_echo_n "checking for dlopen in -ldl... " >&6; }
17251if ${ac_cv_lib_dl_dlopen+:} false; then :
17252  $as_echo_n "(cached) " >&6
17253else
17254  ac_check_lib_save_LIBS=$LIBS
17255LIBS="-ldl  $LIBS"
17256cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17257/* end confdefs.h.  */
17258
17259/* Override any GCC internal prototype to avoid an error.
17260   Use char because int might match the return type of a GCC
17261   builtin and then its argument prototype would still apply.  */
17262#ifdef __cplusplus
17263extern "C"
17264#endif
17265char dlopen ();
17266int
17267main ()
17268{
17269return dlopen ();
17270  ;
17271  return 0;
17272}
17273_ACEOF
17274if ac_fn_c_try_link "$LINENO"; then :
17275  ac_cv_lib_dl_dlopen=yes
17276else
17277  ac_cv_lib_dl_dlopen=no
17278fi
17279rm -f core conftest.err conftest.$ac_objext \
17280    conftest$ac_exeext conftest.$ac_ext
17281LIBS=$ac_check_lib_save_LIBS
17282fi
17283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17284$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17285if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17286  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17287else
17288
17289    lt_cv_dlopen="dyld"
17290    lt_cv_dlopen_libs=
17291    lt_cv_dlopen_self=yes
17292
17293fi
17294
17295    ;;
17296
17297  *)
17298    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17299if test "x$ac_cv_func_shl_load" = xyes; then :
17300  lt_cv_dlopen="shl_load"
17301else
17302  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17303$as_echo_n "checking for shl_load in -ldld... " >&6; }
17304if ${ac_cv_lib_dld_shl_load+:} false; then :
17305  $as_echo_n "(cached) " >&6
17306else
17307  ac_check_lib_save_LIBS=$LIBS
17308LIBS="-ldld  $LIBS"
17309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17310/* end confdefs.h.  */
17311
17312/* Override any GCC internal prototype to avoid an error.
17313   Use char because int might match the return type of a GCC
17314   builtin and then its argument prototype would still apply.  */
17315#ifdef __cplusplus
17316extern "C"
17317#endif
17318char shl_load ();
17319int
17320main ()
17321{
17322return shl_load ();
17323  ;
17324  return 0;
17325}
17326_ACEOF
17327if ac_fn_c_try_link "$LINENO"; then :
17328  ac_cv_lib_dld_shl_load=yes
17329else
17330  ac_cv_lib_dld_shl_load=no
17331fi
17332rm -f core conftest.err conftest.$ac_objext \
17333    conftest$ac_exeext conftest.$ac_ext
17334LIBS=$ac_check_lib_save_LIBS
17335fi
17336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17337$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17338if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17339  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17340else
17341  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17342if test "x$ac_cv_func_dlopen" = xyes; then :
17343  lt_cv_dlopen="dlopen"
17344else
17345  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17346$as_echo_n "checking for dlopen in -ldl... " >&6; }
17347if ${ac_cv_lib_dl_dlopen+:} false; then :
17348  $as_echo_n "(cached) " >&6
17349else
17350  ac_check_lib_save_LIBS=$LIBS
17351LIBS="-ldl  $LIBS"
17352cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17353/* end confdefs.h.  */
17354
17355/* Override any GCC internal prototype to avoid an error.
17356   Use char because int might match the return type of a GCC
17357   builtin and then its argument prototype would still apply.  */
17358#ifdef __cplusplus
17359extern "C"
17360#endif
17361char dlopen ();
17362int
17363main ()
17364{
17365return dlopen ();
17366  ;
17367  return 0;
17368}
17369_ACEOF
17370if ac_fn_c_try_link "$LINENO"; then :
17371  ac_cv_lib_dl_dlopen=yes
17372else
17373  ac_cv_lib_dl_dlopen=no
17374fi
17375rm -f core conftest.err conftest.$ac_objext \
17376    conftest$ac_exeext conftest.$ac_ext
17377LIBS=$ac_check_lib_save_LIBS
17378fi
17379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17380$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17381if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17382  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17383else
17384  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17385$as_echo_n "checking for dlopen in -lsvld... " >&6; }
17386if ${ac_cv_lib_svld_dlopen+:} false; then :
17387  $as_echo_n "(cached) " >&6
17388else
17389  ac_check_lib_save_LIBS=$LIBS
17390LIBS="-lsvld  $LIBS"
17391cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17392/* end confdefs.h.  */
17393
17394/* Override any GCC internal prototype to avoid an error.
17395   Use char because int might match the return type of a GCC
17396   builtin and then its argument prototype would still apply.  */
17397#ifdef __cplusplus
17398extern "C"
17399#endif
17400char dlopen ();
17401int
17402main ()
17403{
17404return dlopen ();
17405  ;
17406  return 0;
17407}
17408_ACEOF
17409if ac_fn_c_try_link "$LINENO"; then :
17410  ac_cv_lib_svld_dlopen=yes
17411else
17412  ac_cv_lib_svld_dlopen=no
17413fi
17414rm -f core conftest.err conftest.$ac_objext \
17415    conftest$ac_exeext conftest.$ac_ext
17416LIBS=$ac_check_lib_save_LIBS
17417fi
17418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17419$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17420if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17421  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17422else
17423  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17424$as_echo_n "checking for dld_link in -ldld... " >&6; }
17425if ${ac_cv_lib_dld_dld_link+:} false; then :
17426  $as_echo_n "(cached) " >&6
17427else
17428  ac_check_lib_save_LIBS=$LIBS
17429LIBS="-ldld  $LIBS"
17430cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17431/* end confdefs.h.  */
17432
17433/* Override any GCC internal prototype to avoid an error.
17434   Use char because int might match the return type of a GCC
17435   builtin and then its argument prototype would still apply.  */
17436#ifdef __cplusplus
17437extern "C"
17438#endif
17439char dld_link ();
17440int
17441main ()
17442{
17443return dld_link ();
17444  ;
17445  return 0;
17446}
17447_ACEOF
17448if ac_fn_c_try_link "$LINENO"; then :
17449  ac_cv_lib_dld_dld_link=yes
17450else
17451  ac_cv_lib_dld_dld_link=no
17452fi
17453rm -f core conftest.err conftest.$ac_objext \
17454    conftest$ac_exeext conftest.$ac_ext
17455LIBS=$ac_check_lib_save_LIBS
17456fi
17457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17458$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17459if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17460  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17461fi
17462
17463
17464fi
17465
17466
17467fi
17468
17469
17470fi
17471
17472
17473fi
17474
17475
17476fi
17477
17478    ;;
17479  esac
17480
17481  if test "x$lt_cv_dlopen" != xno; then
17482    enable_dlopen=yes
17483  else
17484    enable_dlopen=no
17485  fi
17486
17487  case $lt_cv_dlopen in
17488  dlopen)
17489    save_CPPFLAGS="$CPPFLAGS"
17490    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17491
17492    save_LDFLAGS="$LDFLAGS"
17493    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17494
17495    save_LIBS="$LIBS"
17496    LIBS="$lt_cv_dlopen_libs $LIBS"
17497
17498    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17499$as_echo_n "checking whether a program can dlopen itself... " >&6; }
17500if ${lt_cv_dlopen_self+:} false; then :
17501  $as_echo_n "(cached) " >&6
17502else
17503  	  if test "$cross_compiling" = yes; then :
17504  lt_cv_dlopen_self=cross
17505else
17506  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17507  lt_status=$lt_dlunknown
17508  cat > conftest.$ac_ext <<_LT_EOF
17509#line $LINENO "configure"
17510#include "confdefs.h"
17511
17512#if HAVE_DLFCN_H
17513#include <dlfcn.h>
17514#endif
17515
17516#include <stdio.h>
17517
17518#ifdef RTLD_GLOBAL
17519#  define LT_DLGLOBAL		RTLD_GLOBAL
17520#else
17521#  ifdef DL_GLOBAL
17522#    define LT_DLGLOBAL		DL_GLOBAL
17523#  else
17524#    define LT_DLGLOBAL		0
17525#  endif
17526#endif
17527
17528/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17529   find out it does not work in some platform. */
17530#ifndef LT_DLLAZY_OR_NOW
17531#  ifdef RTLD_LAZY
17532#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17533#  else
17534#    ifdef DL_LAZY
17535#      define LT_DLLAZY_OR_NOW		DL_LAZY
17536#    else
17537#      ifdef RTLD_NOW
17538#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17539#      else
17540#        ifdef DL_NOW
17541#          define LT_DLLAZY_OR_NOW	DL_NOW
17542#        else
17543#          define LT_DLLAZY_OR_NOW	0
17544#        endif
17545#      endif
17546#    endif
17547#  endif
17548#endif
17549
17550/* When -fvisbility=hidden is used, assume the code has been annotated
17551   correspondingly for the symbols needed.  */
17552#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17553int fnord () __attribute__((visibility("default")));
17554#endif
17555
17556int fnord () { return 42; }
17557int main ()
17558{
17559  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17560  int status = $lt_dlunknown;
17561
17562  if (self)
17563    {
17564      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17565      else
17566        {
17567	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17568          else puts (dlerror ());
17569	}
17570      /* dlclose (self); */
17571    }
17572  else
17573    puts (dlerror ());
17574
17575  return status;
17576}
17577_LT_EOF
17578  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17579  (eval $ac_link) 2>&5
17580  ac_status=$?
17581  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17582  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17583    (./conftest; exit; ) >&5 2>/dev/null
17584    lt_status=$?
17585    case x$lt_status in
17586      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17587      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17588      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17589    esac
17590  else :
17591    # compilation failed
17592    lt_cv_dlopen_self=no
17593  fi
17594fi
17595rm -fr conftest*
17596
17597
17598fi
17599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17600$as_echo "$lt_cv_dlopen_self" >&6; }
17601
17602    if test "x$lt_cv_dlopen_self" = xyes; then
17603      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17604      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17605$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17606if ${lt_cv_dlopen_self_static+:} false; then :
17607  $as_echo_n "(cached) " >&6
17608else
17609  	  if test "$cross_compiling" = yes; then :
17610  lt_cv_dlopen_self_static=cross
17611else
17612  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17613  lt_status=$lt_dlunknown
17614  cat > conftest.$ac_ext <<_LT_EOF
17615#line $LINENO "configure"
17616#include "confdefs.h"
17617
17618#if HAVE_DLFCN_H
17619#include <dlfcn.h>
17620#endif
17621
17622#include <stdio.h>
17623
17624#ifdef RTLD_GLOBAL
17625#  define LT_DLGLOBAL		RTLD_GLOBAL
17626#else
17627#  ifdef DL_GLOBAL
17628#    define LT_DLGLOBAL		DL_GLOBAL
17629#  else
17630#    define LT_DLGLOBAL		0
17631#  endif
17632#endif
17633
17634/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17635   find out it does not work in some platform. */
17636#ifndef LT_DLLAZY_OR_NOW
17637#  ifdef RTLD_LAZY
17638#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17639#  else
17640#    ifdef DL_LAZY
17641#      define LT_DLLAZY_OR_NOW		DL_LAZY
17642#    else
17643#      ifdef RTLD_NOW
17644#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17645#      else
17646#        ifdef DL_NOW
17647#          define LT_DLLAZY_OR_NOW	DL_NOW
17648#        else
17649#          define LT_DLLAZY_OR_NOW	0
17650#        endif
17651#      endif
17652#    endif
17653#  endif
17654#endif
17655
17656/* When -fvisbility=hidden is used, assume the code has been annotated
17657   correspondingly for the symbols needed.  */
17658#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17659int fnord () __attribute__((visibility("default")));
17660#endif
17661
17662int fnord () { return 42; }
17663int main ()
17664{
17665  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17666  int status = $lt_dlunknown;
17667
17668  if (self)
17669    {
17670      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17671      else
17672        {
17673	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17674          else puts (dlerror ());
17675	}
17676      /* dlclose (self); */
17677    }
17678  else
17679    puts (dlerror ());
17680
17681  return status;
17682}
17683_LT_EOF
17684  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17685  (eval $ac_link) 2>&5
17686  ac_status=$?
17687  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17688  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17689    (./conftest; exit; ) >&5 2>/dev/null
17690    lt_status=$?
17691    case x$lt_status in
17692      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17693      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17694      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17695    esac
17696  else :
17697    # compilation failed
17698    lt_cv_dlopen_self_static=no
17699  fi
17700fi
17701rm -fr conftest*
17702
17703
17704fi
17705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17706$as_echo "$lt_cv_dlopen_self_static" >&6; }
17707    fi
17708
17709    CPPFLAGS="$save_CPPFLAGS"
17710    LDFLAGS="$save_LDFLAGS"
17711    LIBS="$save_LIBS"
17712    ;;
17713  esac
17714
17715  case $lt_cv_dlopen_self in
17716  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17717  *) enable_dlopen_self=unknown ;;
17718  esac
17719
17720  case $lt_cv_dlopen_self_static in
17721  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17722  *) enable_dlopen_self_static=unknown ;;
17723  esac
17724fi
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742striplib=
17743old_striplib=
17744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17745$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17746if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17747  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17748  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17750$as_echo "yes" >&6; }
17751else
17752# FIXME - insert some real tests, host_os isn't really good enough
17753  case $host_os in
17754  darwin*)
17755    if test -n "$STRIP" ; then
17756      striplib="$STRIP -x"
17757      old_striplib="$STRIP -S"
17758      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17759$as_echo "yes" >&6; }
17760    else
17761      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17762$as_echo "no" >&6; }
17763    fi
17764    ;;
17765  *)
17766    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17767$as_echo "no" >&6; }
17768    ;;
17769  esac
17770fi
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783  # Report which library types will actually be built
17784  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17785$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17787$as_echo "$can_build_shared" >&6; }
17788
17789  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17790$as_echo_n "checking whether to build shared libraries... " >&6; }
17791  test "$can_build_shared" = "no" && enable_shared=no
17792
17793  # On AIX, shared libraries and static libraries use the same namespace, and
17794  # are all built from PIC.
17795  case $host_os in
17796  aix3*)
17797    test "$enable_shared" = yes && enable_static=no
17798    if test -n "$RANLIB"; then
17799      archive_cmds="$archive_cmds~\$RANLIB \$lib"
17800      postinstall_cmds='$RANLIB $lib'
17801    fi
17802    ;;
17803
17804  aix[4-9]*)
17805    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17806      test "$enable_shared" = yes && enable_static=no
17807    fi
17808    ;;
17809  esac
17810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17811$as_echo "$enable_shared" >&6; }
17812
17813  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17814$as_echo_n "checking whether to build static libraries... " >&6; }
17815  # Make sure either enable_shared or enable_static is yes.
17816  test "$enable_shared" = yes || enable_static=yes
17817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17818$as_echo "$enable_static" >&6; }
17819
17820
17821
17822
17823fi
17824ac_ext=c
17825ac_cpp='$CPP $CPPFLAGS'
17826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17828ac_compiler_gnu=$ac_cv_c_compiler_gnu
17829
17830CC="$lt_save_CC"
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846        ac_config_commands="$ac_config_commands libtool"
17847
17848
17849
17850
17851# Only expand once:
17852
17853
17854
17855
17856
17857# Define a configure option for an alternate module directory
17858
17859# Check whether --with-xorg-module-dir was given.
17860if test "${with_xorg_module_dir+set}" = set; then :
17861  withval=$with_xorg_module_dir;  moduledir="$withval"
17862else
17863   moduledir="$libdir/xorg/modules"
17864fi
17865
17866
17867
17868# Store the list of server defined optional extensions in REQUIRED_MODULES
17869
17870
17871	SAVE_CFLAGS="$CFLAGS"
17872	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17873	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17874/* end confdefs.h.  */
17875
17876#include "xorg-server.h"
17877#if !defined RANDR
17878#error RANDR not defined
17879#endif
17880
17881int
17882main ()
17883{
17884
17885  ;
17886  return 0;
17887}
17888_ACEOF
17889if ac_fn_c_try_compile "$LINENO"; then :
17890  _EXT_CHECK=yes
17891else
17892  _EXT_CHECK=no
17893fi
17894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17895	CFLAGS="$SAVE_CFLAGS"
17896	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
17897$as_echo_n "checking if RANDR is defined... " >&6; }
17898	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17899$as_echo "$_EXT_CHECK" >&6; }
17900	if test "$_EXT_CHECK" != no; then
17901		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
17902	fi
17903
17904
17905
17906	SAVE_CFLAGS="$CFLAGS"
17907	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17908	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17909/* end confdefs.h.  */
17910
17911#include "xorg-server.h"
17912#if !defined RENDER
17913#error RENDER not defined
17914#endif
17915
17916int
17917main ()
17918{
17919
17920  ;
17921  return 0;
17922}
17923_ACEOF
17924if ac_fn_c_try_compile "$LINENO"; then :
17925  _EXT_CHECK=yes
17926else
17927  _EXT_CHECK=no
17928fi
17929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17930	CFLAGS="$SAVE_CFLAGS"
17931	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
17932$as_echo_n "checking if RENDER is defined... " >&6; }
17933	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17934$as_echo "$_EXT_CHECK" >&6; }
17935	if test "$_EXT_CHECK" != no; then
17936		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
17937	fi
17938
17939
17940
17941	SAVE_CFLAGS="$CFLAGS"
17942	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17943	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17944/* end confdefs.h.  */
17945
17946#include "xorg-server.h"
17947#if !defined DPMSExtension
17948#error DPMSExtension not defined
17949#endif
17950
17951int
17952main ()
17953{
17954
17955  ;
17956  return 0;
17957}
17958_ACEOF
17959if ac_fn_c_try_compile "$LINENO"; then :
17960  _EXT_CHECK=yes
17961else
17962  _EXT_CHECK=no
17963fi
17964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17965	CFLAGS="$SAVE_CFLAGS"
17966	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
17967$as_echo_n "checking if DPMSExtension is defined... " >&6; }
17968	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17969$as_echo "$_EXT_CHECK" >&6; }
17970	if test "$_EXT_CHECK" != no; then
17971		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
17972	fi
17973
17974
17975# Obtain compiler/linker options for the driver dependencies
17976
17977pkg_failed=no
17978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
17979$as_echo_n "checking for XORG... " >&6; }
17980
17981if test -n "$XORG_CFLAGS"; then
17982    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
17983 elif test -n "$PKG_CONFIG"; then
17984    if test -n "$PKG_CONFIG" && \
17985    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17986  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES") 2>&5
17987  ac_status=$?
17988  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17989  test $ac_status = 0; }; then
17990  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17991		      test "x$?" != "x0" && pkg_failed=yes
17992else
17993  pkg_failed=yes
17994fi
17995 else
17996    pkg_failed=untried
17997fi
17998if test -n "$XORG_LIBS"; then
17999    pkg_cv_XORG_LIBS="$XORG_LIBS"
18000 elif test -n "$PKG_CONFIG"; then
18001    if test -n "$PKG_CONFIG" && \
18002    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18003  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES") 2>&5
18004  ac_status=$?
18005  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18006  test $ac_status = 0; }; then
18007  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18008		      test "x$?" != "x0" && pkg_failed=yes
18009else
18010  pkg_failed=yes
18011fi
18012 else
18013    pkg_failed=untried
18014fi
18015
18016
18017
18018if test $pkg_failed = yes; then
18019   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18020$as_echo "no" >&6; }
18021
18022if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18023        _pkg_short_errors_supported=yes
18024else
18025        _pkg_short_errors_supported=no
18026fi
18027        if test $_pkg_short_errors_supported = yes; then
18028	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18029        else
18030	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18031        fi
18032	# Put the nasty error message in config.log where it belongs
18033	echo "$XORG_PKG_ERRORS" >&5
18034
18035	as_fn_error $? "Package requirements (xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES) were not met:
18036
18037$XORG_PKG_ERRORS
18038
18039Consider adjusting the PKG_CONFIG_PATH environment variable if you
18040installed software in a non-standard prefix.
18041
18042Alternatively, you may set the environment variables XORG_CFLAGS
18043and XORG_LIBS to avoid the need to call pkg-config.
18044See the pkg-config man page for more details." "$LINENO" 5
18045elif test $pkg_failed = untried; then
18046     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18047$as_echo "no" >&6; }
18048	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18049$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18050as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18051is in your PATH or set the PKG_CONFIG environment variable to the full
18052path to pkg-config.
18053
18054Alternatively, you may set the environment variables XORG_CFLAGS
18055and XORG_LIBS to avoid the need to call pkg-config.
18056See the pkg-config man page for more details.
18057
18058To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18059See \`config.log' for more details" "$LINENO" 5; }
18060else
18061	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18062	XORG_LIBS=$pkg_cv_XORG_LIBS
18063        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18064$as_echo "yes" >&6; }
18065
18066fi
18067
18068pkg_failed=no
18069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
18070$as_echo_n "checking for XEXT... " >&6; }
18071
18072if test -n "$XEXT_CFLAGS"; then
18073    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
18074 elif test -n "$PKG_CONFIG"; then
18075    if test -n "$PKG_CONFIG" && \
18076    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18077  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18078  ac_status=$?
18079  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18080  test $ac_status = 0; }; then
18081  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
18082		      test "x$?" != "x0" && pkg_failed=yes
18083else
18084  pkg_failed=yes
18085fi
18086 else
18087    pkg_failed=untried
18088fi
18089if test -n "$XEXT_LIBS"; then
18090    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
18091 elif test -n "$PKG_CONFIG"; then
18092    if test -n "$PKG_CONFIG" && \
18093    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18094  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18095  ac_status=$?
18096  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18097  test $ac_status = 0; }; then
18098  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
18099		      test "x$?" != "x0" && pkg_failed=yes
18100else
18101  pkg_failed=yes
18102fi
18103 else
18104    pkg_failed=untried
18105fi
18106
18107
18108
18109if test $pkg_failed = yes; then
18110   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18111$as_echo "no" >&6; }
18112
18113if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18114        _pkg_short_errors_supported=yes
18115else
18116        _pkg_short_errors_supported=no
18117fi
18118        if test $_pkg_short_errors_supported = yes; then
18119	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18120        else
18121	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18122        fi
18123	# Put the nasty error message in config.log where it belongs
18124	echo "$XEXT_PKG_ERRORS" >&5
18125
18126	HAVE_XEXTPROTO_71="no"
18127elif test $pkg_failed = untried; then
18128     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18129$as_echo "no" >&6; }
18130	HAVE_XEXTPROTO_71="no"
18131else
18132	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
18133	XEXT_LIBS=$pkg_cv_XEXT_LIBS
18134        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18135$as_echo "yes" >&6; }
18136	HAVE_XEXTPROTO_71="yes"
18137fi
18138
18139if test "x$HAVE_XEXTPROTO_71" = xyes; then
18140
18141$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
18142
18143fi
18144
18145save_CFLAGS="$CFLAGS"
18146CFLAGS="$XORG_CFLAGS"
18147ac_fn_c_check_decl "$LINENO" "xf86ConfigIsaEntity" "ac_cv_have_decl_xf86ConfigIsaEntity" "#include \"xf86.h\"
18148"
18149if test "x$ac_cv_have_decl_xf86ConfigIsaEntity" = xyes; then :
18150
18151$as_echo "#define HAVE_ISA 1" >>confdefs.h
18152
18153fi
18154
18155CFLAGS="$save_CFLAGS"
18156
18157save_CFLAGS="$CFLAGS"
18158CFLAGS="$XORG_CFLAGS"
18159ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18160"
18161if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18162  XSERVER_LIBPCIACCESS=yes
18163else
18164  XSERVER_LIBPCIACCESS=no
18165fi
18166
18167CFLAGS="$save_CFLAGS"
18168
18169if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18170
18171pkg_failed=no
18172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18173$as_echo_n "checking for PCIACCESS... " >&6; }
18174
18175if test -n "$PCIACCESS_CFLAGS"; then
18176    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18177 elif test -n "$PKG_CONFIG"; then
18178    if test -n "$PKG_CONFIG" && \
18179    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5
18180  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5
18181  ac_status=$?
18182  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18183  test $ac_status = 0; }; then
18184  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.12.901" 2>/dev/null`
18185		      test "x$?" != "x0" && pkg_failed=yes
18186else
18187  pkg_failed=yes
18188fi
18189 else
18190    pkg_failed=untried
18191fi
18192if test -n "$PCIACCESS_LIBS"; then
18193    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18194 elif test -n "$PKG_CONFIG"; then
18195    if test -n "$PKG_CONFIG" && \
18196    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5
18197  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5
18198  ac_status=$?
18199  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18200  test $ac_status = 0; }; then
18201  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.12.901" 2>/dev/null`
18202		      test "x$?" != "x0" && pkg_failed=yes
18203else
18204  pkg_failed=yes
18205fi
18206 else
18207    pkg_failed=untried
18208fi
18209
18210
18211
18212if test $pkg_failed = yes; then
18213   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18214$as_echo "no" >&6; }
18215
18216if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18217        _pkg_short_errors_supported=yes
18218else
18219        _pkg_short_errors_supported=no
18220fi
18221        if test $_pkg_short_errors_supported = yes; then
18222	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1`
18223        else
18224	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1`
18225        fi
18226	# Put the nasty error message in config.log where it belongs
18227	echo "$PCIACCESS_PKG_ERRORS" >&5
18228
18229	as_fn_error $? "Package requirements (pciaccess >= 0.12.901) were not met:
18230
18231$PCIACCESS_PKG_ERRORS
18232
18233Consider adjusting the PKG_CONFIG_PATH environment variable if you
18234installed software in a non-standard prefix.
18235
18236Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18237and PCIACCESS_LIBS to avoid the need to call pkg-config.
18238See the pkg-config man page for more details." "$LINENO" 5
18239elif test $pkg_failed = untried; then
18240     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18241$as_echo "no" >&6; }
18242	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18244as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18245is in your PATH or set the PKG_CONFIG environment variable to the full
18246path to pkg-config.
18247
18248Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18249and PCIACCESS_LIBS to avoid the need to call pkg-config.
18250See the pkg-config man page for more details.
18251
18252To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18253See \`config.log' for more details" "$LINENO" 5; }
18254else
18255	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18256	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18257        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18258$as_echo "yes" >&6; }
18259
18260fi
18261fi
18262
18263# Checks for libraries.
18264
18265DRIVER_NAME=vesa
18266
18267
18268ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
18269
18270cat >confcache <<\_ACEOF
18271# This file is a shell script that caches the results of configure
18272# tests run on this system so they can be shared between configure
18273# scripts and configure runs, see configure's option --config-cache.
18274# It is not useful on other systems.  If it contains results you don't
18275# want to keep, you may remove or edit it.
18276#
18277# config.status only pays attention to the cache file if you give it
18278# the --recheck option to rerun configure.
18279#
18280# `ac_cv_env_foo' variables (set or unset) will be overridden when
18281# loading this file, other *unset* `ac_cv_foo' will be assigned the
18282# following values.
18283
18284_ACEOF
18285
18286# The following way of writing the cache mishandles newlines in values,
18287# but we know of no workaround that is simple, portable, and efficient.
18288# So, we kill variables containing newlines.
18289# Ultrix sh set writes to stderr and can't be redirected directly,
18290# and sets the high bit in the cache file unless we assign to the vars.
18291(
18292  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18293    eval ac_val=\$$ac_var
18294    case $ac_val in #(
18295    *${as_nl}*)
18296      case $ac_var in #(
18297      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18298$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18299      esac
18300      case $ac_var in #(
18301      _ | IFS | as_nl) ;; #(
18302      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18303      *) { eval $ac_var=; unset $ac_var;} ;;
18304      esac ;;
18305    esac
18306  done
18307
18308  (set) 2>&1 |
18309    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18310    *${as_nl}ac_space=\ *)
18311      # `set' does not quote correctly, so add quotes: double-quote
18312      # substitution turns \\\\ into \\, and sed turns \\ into \.
18313      sed -n \
18314	"s/'/'\\\\''/g;
18315	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18316      ;; #(
18317    *)
18318      # `set' quotes correctly as required by POSIX, so do not add quotes.
18319      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18320      ;;
18321    esac |
18322    sort
18323) |
18324  sed '
18325     /^ac_cv_env_/b end
18326     t clear
18327     :clear
18328     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18329     t end
18330     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18331     :end' >>confcache
18332if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18333  if test -w "$cache_file"; then
18334    if test "x$cache_file" != "x/dev/null"; then
18335      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18336$as_echo "$as_me: updating cache $cache_file" >&6;}
18337      if test ! -f "$cache_file" || test -h "$cache_file"; then
18338	cat confcache >"$cache_file"
18339      else
18340        case $cache_file in #(
18341        */* | ?:*)
18342	  mv -f confcache "$cache_file"$$ &&
18343	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18344        *)
18345	  mv -f confcache "$cache_file" ;;
18346	esac
18347      fi
18348    fi
18349  else
18350    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18351$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18352  fi
18353fi
18354rm -f confcache
18355
18356test "x$prefix" = xNONE && prefix=$ac_default_prefix
18357# Let make expand exec_prefix.
18358test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18359
18360DEFS=-DHAVE_CONFIG_H
18361
18362ac_libobjs=
18363ac_ltlibobjs=
18364U=
18365for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18366  # 1. Remove the extension, and $U if already installed.
18367  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18368  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18369  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18370  #    will be set to the directory where LIBOBJS objects are built.
18371  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18372  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18373done
18374LIBOBJS=$ac_libobjs
18375
18376LTLIBOBJS=$ac_ltlibobjs
18377
18378
18379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18380$as_echo_n "checking that generated files are newer than configure... " >&6; }
18381   if test -n "$am_sleep_pid"; then
18382     # Hide warnings about reused PIDs.
18383     wait $am_sleep_pid 2>/dev/null
18384   fi
18385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18386$as_echo "done" >&6; }
18387 if test -n "$EXEEXT"; then
18388  am__EXEEXT_TRUE=
18389  am__EXEEXT_FALSE='#'
18390else
18391  am__EXEEXT_TRUE='#'
18392  am__EXEEXT_FALSE=
18393fi
18394
18395if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18396  as_fn_error $? "conditional \"AMDEP\" was never defined.
18397Usually this means the macro was only invoked conditionally." "$LINENO" 5
18398fi
18399if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18400  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18401Usually this means the macro was only invoked conditionally." "$LINENO" 5
18402fi
18403
18404: "${CONFIG_STATUS=./config.status}"
18405ac_write_fail=0
18406ac_clean_files_save=$ac_clean_files
18407ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18408{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18409$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18410as_write_fail=0
18411cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18412#! $SHELL
18413# Generated by $as_me.
18414# Run this file to recreate the current configuration.
18415# Compiler output produced by configure, useful for debugging
18416# configure, is in config.log if it exists.
18417
18418debug=false
18419ac_cs_recheck=false
18420ac_cs_silent=false
18421
18422SHELL=\${CONFIG_SHELL-$SHELL}
18423export SHELL
18424_ASEOF
18425cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18426## -------------------- ##
18427## M4sh Initialization. ##
18428## -------------------- ##
18429
18430# Be more Bourne compatible
18431DUALCASE=1; export DUALCASE # for MKS sh
18432if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18433  emulate sh
18434  NULLCMD=:
18435  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18436  # is contrary to our usage.  Disable this feature.
18437  alias -g '${1+"$@"}'='"$@"'
18438  setopt NO_GLOB_SUBST
18439else
18440  case `(set -o) 2>/dev/null` in #(
18441  *posix*) :
18442    set -o posix ;; #(
18443  *) :
18444     ;;
18445esac
18446fi
18447
18448
18449as_nl='
18450'
18451export as_nl
18452# Printing a long string crashes Solaris 7 /usr/bin/printf.
18453as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18454as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18455as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18456# Prefer a ksh shell builtin over an external printf program on Solaris,
18457# but without wasting forks for bash or zsh.
18458if test -z "$BASH_VERSION$ZSH_VERSION" \
18459    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18460  as_echo='print -r --'
18461  as_echo_n='print -rn --'
18462elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18463  as_echo='printf %s\n'
18464  as_echo_n='printf %s'
18465else
18466  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18467    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18468    as_echo_n='/usr/ucb/echo -n'
18469  else
18470    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18471    as_echo_n_body='eval
18472      arg=$1;
18473      case $arg in #(
18474      *"$as_nl"*)
18475	expr "X$arg" : "X\\(.*\\)$as_nl";
18476	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18477      esac;
18478      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18479    '
18480    export as_echo_n_body
18481    as_echo_n='sh -c $as_echo_n_body as_echo'
18482  fi
18483  export as_echo_body
18484  as_echo='sh -c $as_echo_body as_echo'
18485fi
18486
18487# The user is always right.
18488if test "${PATH_SEPARATOR+set}" != set; then
18489  PATH_SEPARATOR=:
18490  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18491    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18492      PATH_SEPARATOR=';'
18493  }
18494fi
18495
18496
18497# IFS
18498# We need space, tab and new line, in precisely that order.  Quoting is
18499# there to prevent editors from complaining about space-tab.
18500# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18501# splitting by setting IFS to empty value.)
18502IFS=" ""	$as_nl"
18503
18504# Find who we are.  Look in the path if we contain no directory separator.
18505as_myself=
18506case $0 in #((
18507  *[\\/]* ) as_myself=$0 ;;
18508  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18509for as_dir in $PATH
18510do
18511  IFS=$as_save_IFS
18512  test -z "$as_dir" && as_dir=.
18513    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18514  done
18515IFS=$as_save_IFS
18516
18517     ;;
18518esac
18519# We did not find ourselves, most probably we were run as `sh COMMAND'
18520# in which case we are not to be found in the path.
18521if test "x$as_myself" = x; then
18522  as_myself=$0
18523fi
18524if test ! -f "$as_myself"; then
18525  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18526  exit 1
18527fi
18528
18529# Unset variables that we do not need and which cause bugs (e.g. in
18530# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18531# suppresses any "Segmentation fault" message there.  '((' could
18532# trigger a bug in pdksh 5.2.14.
18533for as_var in BASH_ENV ENV MAIL MAILPATH
18534do eval test x\${$as_var+set} = xset \
18535  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18536done
18537PS1='$ '
18538PS2='> '
18539PS4='+ '
18540
18541# NLS nuisances.
18542LC_ALL=C
18543export LC_ALL
18544LANGUAGE=C
18545export LANGUAGE
18546
18547# CDPATH.
18548(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18549
18550
18551# as_fn_error STATUS ERROR [LINENO LOG_FD]
18552# ----------------------------------------
18553# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18554# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18555# script with STATUS, using 1 if that was 0.
18556as_fn_error ()
18557{
18558  as_status=$1; test $as_status -eq 0 && as_status=1
18559  if test "$4"; then
18560    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18561    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18562  fi
18563  $as_echo "$as_me: error: $2" >&2
18564  as_fn_exit $as_status
18565} # as_fn_error
18566
18567
18568# as_fn_set_status STATUS
18569# -----------------------
18570# Set $? to STATUS, without forking.
18571as_fn_set_status ()
18572{
18573  return $1
18574} # as_fn_set_status
18575
18576# as_fn_exit STATUS
18577# -----------------
18578# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18579as_fn_exit ()
18580{
18581  set +e
18582  as_fn_set_status $1
18583  exit $1
18584} # as_fn_exit
18585
18586# as_fn_unset VAR
18587# ---------------
18588# Portably unset VAR.
18589as_fn_unset ()
18590{
18591  { eval $1=; unset $1;}
18592}
18593as_unset=as_fn_unset
18594# as_fn_append VAR VALUE
18595# ----------------------
18596# Append the text in VALUE to the end of the definition contained in VAR. Take
18597# advantage of any shell optimizations that allow amortized linear growth over
18598# repeated appends, instead of the typical quadratic growth present in naive
18599# implementations.
18600if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18601  eval 'as_fn_append ()
18602  {
18603    eval $1+=\$2
18604  }'
18605else
18606  as_fn_append ()
18607  {
18608    eval $1=\$$1\$2
18609  }
18610fi # as_fn_append
18611
18612# as_fn_arith ARG...
18613# ------------------
18614# Perform arithmetic evaluation on the ARGs, and store the result in the
18615# global $as_val. Take advantage of shells that can avoid forks. The arguments
18616# must be portable across $(()) and expr.
18617if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18618  eval 'as_fn_arith ()
18619  {
18620    as_val=$(( $* ))
18621  }'
18622else
18623  as_fn_arith ()
18624  {
18625    as_val=`expr "$@" || test $? -eq 1`
18626  }
18627fi # as_fn_arith
18628
18629
18630if expr a : '\(a\)' >/dev/null 2>&1 &&
18631   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18632  as_expr=expr
18633else
18634  as_expr=false
18635fi
18636
18637if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18638  as_basename=basename
18639else
18640  as_basename=false
18641fi
18642
18643if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18644  as_dirname=dirname
18645else
18646  as_dirname=false
18647fi
18648
18649as_me=`$as_basename -- "$0" ||
18650$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18651	 X"$0" : 'X\(//\)$' \| \
18652	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18653$as_echo X/"$0" |
18654    sed '/^.*\/\([^/][^/]*\)\/*$/{
18655	    s//\1/
18656	    q
18657	  }
18658	  /^X\/\(\/\/\)$/{
18659	    s//\1/
18660	    q
18661	  }
18662	  /^X\/\(\/\).*/{
18663	    s//\1/
18664	    q
18665	  }
18666	  s/.*/./; q'`
18667
18668# Avoid depending upon Character Ranges.
18669as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18670as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18671as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18672as_cr_digits='0123456789'
18673as_cr_alnum=$as_cr_Letters$as_cr_digits
18674
18675ECHO_C= ECHO_N= ECHO_T=
18676case `echo -n x` in #(((((
18677-n*)
18678  case `echo 'xy\c'` in
18679  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18680  xy)  ECHO_C='\c';;
18681  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18682       ECHO_T='	';;
18683  esac;;
18684*)
18685  ECHO_N='-n';;
18686esac
18687
18688rm -f conf$$ conf$$.exe conf$$.file
18689if test -d conf$$.dir; then
18690  rm -f conf$$.dir/conf$$.file
18691else
18692  rm -f conf$$.dir
18693  mkdir conf$$.dir 2>/dev/null
18694fi
18695if (echo >conf$$.file) 2>/dev/null; then
18696  if ln -s conf$$.file conf$$ 2>/dev/null; then
18697    as_ln_s='ln -s'
18698    # ... but there are two gotchas:
18699    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18700    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18701    # In both cases, we have to default to `cp -pR'.
18702    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18703      as_ln_s='cp -pR'
18704  elif ln conf$$.file conf$$ 2>/dev/null; then
18705    as_ln_s=ln
18706  else
18707    as_ln_s='cp -pR'
18708  fi
18709else
18710  as_ln_s='cp -pR'
18711fi
18712rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18713rmdir conf$$.dir 2>/dev/null
18714
18715
18716# as_fn_mkdir_p
18717# -------------
18718# Create "$as_dir" as a directory, including parents if necessary.
18719as_fn_mkdir_p ()
18720{
18721
18722  case $as_dir in #(
18723  -*) as_dir=./$as_dir;;
18724  esac
18725  test -d "$as_dir" || eval $as_mkdir_p || {
18726    as_dirs=
18727    while :; do
18728      case $as_dir in #(
18729      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18730      *) as_qdir=$as_dir;;
18731      esac
18732      as_dirs="'$as_qdir' $as_dirs"
18733      as_dir=`$as_dirname -- "$as_dir" ||
18734$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18735	 X"$as_dir" : 'X\(//\)[^/]' \| \
18736	 X"$as_dir" : 'X\(//\)$' \| \
18737	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18738$as_echo X"$as_dir" |
18739    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18740	    s//\1/
18741	    q
18742	  }
18743	  /^X\(\/\/\)[^/].*/{
18744	    s//\1/
18745	    q
18746	  }
18747	  /^X\(\/\/\)$/{
18748	    s//\1/
18749	    q
18750	  }
18751	  /^X\(\/\).*/{
18752	    s//\1/
18753	    q
18754	  }
18755	  s/.*/./; q'`
18756      test -d "$as_dir" && break
18757    done
18758    test -z "$as_dirs" || eval "mkdir $as_dirs"
18759  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18760
18761
18762} # as_fn_mkdir_p
18763if mkdir -p . 2>/dev/null; then
18764  as_mkdir_p='mkdir -p "$as_dir"'
18765else
18766  test -d ./-p && rmdir ./-p
18767  as_mkdir_p=false
18768fi
18769
18770
18771# as_fn_executable_p FILE
18772# -----------------------
18773# Test if FILE is an executable regular file.
18774as_fn_executable_p ()
18775{
18776  test -f "$1" && test -x "$1"
18777} # as_fn_executable_p
18778as_test_x='test -x'
18779as_executable_p=as_fn_executable_p
18780
18781# Sed expression to map a string onto a valid CPP name.
18782as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18783
18784# Sed expression to map a string onto a valid variable name.
18785as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18786
18787
18788exec 6>&1
18789## ----------------------------------- ##
18790## Main body of $CONFIG_STATUS script. ##
18791## ----------------------------------- ##
18792_ASEOF
18793test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18794
18795cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18796# Save the log message, to keep $0 and so on meaningful, and to
18797# report actual input values of CONFIG_FILES etc. instead of their
18798# values after options handling.
18799ac_log="
18800This file was extended by xf86-video-vesa $as_me 2.3.4, which was
18801generated by GNU Autoconf 2.69.  Invocation command line was
18802
18803  CONFIG_FILES    = $CONFIG_FILES
18804  CONFIG_HEADERS  = $CONFIG_HEADERS
18805  CONFIG_LINKS    = $CONFIG_LINKS
18806  CONFIG_COMMANDS = $CONFIG_COMMANDS
18807  $ $0 $@
18808
18809on `(hostname || uname -n) 2>/dev/null | sed 1q`
18810"
18811
18812_ACEOF
18813
18814case $ac_config_files in *"
18815"*) set x $ac_config_files; shift; ac_config_files=$*;;
18816esac
18817
18818case $ac_config_headers in *"
18819"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18820esac
18821
18822
18823cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18824# Files that config.status was made for.
18825config_files="$ac_config_files"
18826config_headers="$ac_config_headers"
18827config_commands="$ac_config_commands"
18828
18829_ACEOF
18830
18831cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18832ac_cs_usage="\
18833\`$as_me' instantiates files and other configuration actions
18834from templates according to the current configuration.  Unless the files
18835and actions are specified as TAGs, all are instantiated by default.
18836
18837Usage: $0 [OPTION]... [TAG]...
18838
18839  -h, --help       print this help, then exit
18840  -V, --version    print version number and configuration settings, then exit
18841      --config     print configuration, then exit
18842  -q, --quiet, --silent
18843                   do not print progress messages
18844  -d, --debug      don't remove temporary files
18845      --recheck    update $as_me by reconfiguring in the same conditions
18846      --file=FILE[:TEMPLATE]
18847                   instantiate the configuration file FILE
18848      --header=FILE[:TEMPLATE]
18849                   instantiate the configuration header FILE
18850
18851Configuration files:
18852$config_files
18853
18854Configuration headers:
18855$config_headers
18856
18857Configuration commands:
18858$config_commands
18859
18860Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18861
18862_ACEOF
18863cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18864ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18865ac_cs_version="\\
18866xf86-video-vesa config.status 2.3.4
18867configured by $0, generated by GNU Autoconf 2.69,
18868  with options \\"\$ac_cs_config\\"
18869
18870Copyright (C) 2012 Free Software Foundation, Inc.
18871This config.status script is free software; the Free Software Foundation
18872gives unlimited permission to copy, distribute and modify it."
18873
18874ac_pwd='$ac_pwd'
18875srcdir='$srcdir'
18876INSTALL='$INSTALL'
18877MKDIR_P='$MKDIR_P'
18878AWK='$AWK'
18879test -n "\$AWK" || AWK=awk
18880_ACEOF
18881
18882cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18883# The default lists apply if the user does not specify any file.
18884ac_need_defaults=:
18885while test $# != 0
18886do
18887  case $1 in
18888  --*=?*)
18889    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18890    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18891    ac_shift=:
18892    ;;
18893  --*=)
18894    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18895    ac_optarg=
18896    ac_shift=:
18897    ;;
18898  *)
18899    ac_option=$1
18900    ac_optarg=$2
18901    ac_shift=shift
18902    ;;
18903  esac
18904
18905  case $ac_option in
18906  # Handling of the options.
18907  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18908    ac_cs_recheck=: ;;
18909  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18910    $as_echo "$ac_cs_version"; exit ;;
18911  --config | --confi | --conf | --con | --co | --c )
18912    $as_echo "$ac_cs_config"; exit ;;
18913  --debug | --debu | --deb | --de | --d | -d )
18914    debug=: ;;
18915  --file | --fil | --fi | --f )
18916    $ac_shift
18917    case $ac_optarg in
18918    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18919    '') as_fn_error $? "missing file argument" ;;
18920    esac
18921    as_fn_append CONFIG_FILES " '$ac_optarg'"
18922    ac_need_defaults=false;;
18923  --header | --heade | --head | --hea )
18924    $ac_shift
18925    case $ac_optarg in
18926    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18927    esac
18928    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18929    ac_need_defaults=false;;
18930  --he | --h)
18931    # Conflict between --help and --header
18932    as_fn_error $? "ambiguous option: \`$1'
18933Try \`$0 --help' for more information.";;
18934  --help | --hel | -h )
18935    $as_echo "$ac_cs_usage"; exit ;;
18936  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18937  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18938    ac_cs_silent=: ;;
18939
18940  # This is an error.
18941  -*) as_fn_error $? "unrecognized option: \`$1'
18942Try \`$0 --help' for more information." ;;
18943
18944  *) as_fn_append ac_config_targets " $1"
18945     ac_need_defaults=false ;;
18946
18947  esac
18948  shift
18949done
18950
18951ac_configure_extra_args=
18952
18953if $ac_cs_silent; then
18954  exec 6>/dev/null
18955  ac_configure_extra_args="$ac_configure_extra_args --silent"
18956fi
18957
18958_ACEOF
18959cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18960if \$ac_cs_recheck; then
18961  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18962  shift
18963  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18964  CONFIG_SHELL='$SHELL'
18965  export CONFIG_SHELL
18966  exec "\$@"
18967fi
18968
18969_ACEOF
18970cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18971exec 5>>config.log
18972{
18973  echo
18974  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18975## Running $as_me. ##
18976_ASBOX
18977  $as_echo "$ac_log"
18978} >&5
18979
18980_ACEOF
18981cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18982#
18983# INIT-COMMANDS
18984#
18985AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18986
18987
18988# The HP-UX ksh and POSIX shell print the target directory to stdout
18989# if CDPATH is set.
18990(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18991
18992sed_quote_subst='$sed_quote_subst'
18993double_quote_subst='$double_quote_subst'
18994delay_variable_subst='$delay_variable_subst'
18995enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18996macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18997macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18998enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18999pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19000enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19001SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19002ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19003PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19004host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19005host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19006host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19007build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19008build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19009build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19010SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19011Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19012GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19013EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19014FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19015LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19016NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19017LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19018max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19019ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19020exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19021lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19022lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19023lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19024lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19025lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19026reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19027reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19028OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19029deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19030file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19031file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19032want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19033DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19034sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19035AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19036AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19037archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19038STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19039RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19040old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19041old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19042old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19043lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19044CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19045CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19046compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19047GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19048lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19049lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19050lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19051lt_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"`'
19052nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19053lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19054objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19055MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19056lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19057lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19058lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19059lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19060lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19061need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19062MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19063DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19064NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19065LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19066OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19067OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19068libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19069shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19070extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19071archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19072enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19073export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19074whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19075compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19076old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19077old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19078archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19079archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19080module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19081module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19082with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19083allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19084no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19085hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19086hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19087hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19088hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19089hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19090hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19091hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19092inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19093link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19094always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19095export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19096exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19097include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19098prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19099postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19100file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19101variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19102need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19103need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19104version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19105runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19106shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19107shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19108libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19109library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19110soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19111install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19112postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19113postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19114finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19115finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19116hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19117sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19118sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19119hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19120enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19121enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19122enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19123old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19124striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19125
19126LTCC='$LTCC'
19127LTCFLAGS='$LTCFLAGS'
19128compiler='$compiler_DEFAULT'
19129
19130# A function that is used when there is no print builtin or printf.
19131func_fallback_echo ()
19132{
19133  eval 'cat <<_LTECHO_EOF
19134\$1
19135_LTECHO_EOF'
19136}
19137
19138# Quote evaled strings.
19139for var in SHELL \
19140ECHO \
19141PATH_SEPARATOR \
19142SED \
19143GREP \
19144EGREP \
19145FGREP \
19146LD \
19147NM \
19148LN_S \
19149lt_SP2NL \
19150lt_NL2SP \
19151reload_flag \
19152OBJDUMP \
19153deplibs_check_method \
19154file_magic_cmd \
19155file_magic_glob \
19156want_nocaseglob \
19157DLLTOOL \
19158sharedlib_from_linklib_cmd \
19159AR \
19160AR_FLAGS \
19161archiver_list_spec \
19162STRIP \
19163RANLIB \
19164CC \
19165CFLAGS \
19166compiler \
19167lt_cv_sys_global_symbol_pipe \
19168lt_cv_sys_global_symbol_to_cdecl \
19169lt_cv_sys_global_symbol_to_c_name_address \
19170lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19171nm_file_list_spec \
19172lt_prog_compiler_no_builtin_flag \
19173lt_prog_compiler_pic \
19174lt_prog_compiler_wl \
19175lt_prog_compiler_static \
19176lt_cv_prog_compiler_c_o \
19177need_locks \
19178MANIFEST_TOOL \
19179DSYMUTIL \
19180NMEDIT \
19181LIPO \
19182OTOOL \
19183OTOOL64 \
19184shrext_cmds \
19185export_dynamic_flag_spec \
19186whole_archive_flag_spec \
19187compiler_needs_object \
19188with_gnu_ld \
19189allow_undefined_flag \
19190no_undefined_flag \
19191hardcode_libdir_flag_spec \
19192hardcode_libdir_separator \
19193exclude_expsyms \
19194include_expsyms \
19195file_list_spec \
19196variables_saved_for_relink \
19197libname_spec \
19198library_names_spec \
19199soname_spec \
19200install_override_mode \
19201finish_eval \
19202old_striplib \
19203striplib; do
19204    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19205    *[\\\\\\\`\\"\\\$]*)
19206      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19207      ;;
19208    *)
19209      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19210      ;;
19211    esac
19212done
19213
19214# Double-quote double-evaled strings.
19215for var in reload_cmds \
19216old_postinstall_cmds \
19217old_postuninstall_cmds \
19218old_archive_cmds \
19219extract_expsyms_cmds \
19220old_archive_from_new_cmds \
19221old_archive_from_expsyms_cmds \
19222archive_cmds \
19223archive_expsym_cmds \
19224module_cmds \
19225module_expsym_cmds \
19226export_symbols_cmds \
19227prelink_cmds \
19228postlink_cmds \
19229postinstall_cmds \
19230postuninstall_cmds \
19231finish_cmds \
19232sys_lib_search_path_spec \
19233sys_lib_dlsearch_path_spec; do
19234    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19235    *[\\\\\\\`\\"\\\$]*)
19236      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19237      ;;
19238    *)
19239      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19240      ;;
19241    esac
19242done
19243
19244ac_aux_dir='$ac_aux_dir'
19245xsi_shell='$xsi_shell'
19246lt_shell_append='$lt_shell_append'
19247
19248# See if we are running on zsh, and set the options which allow our
19249# commands through without removal of \ escapes INIT.
19250if test -n "\${ZSH_VERSION+set}" ; then
19251   setopt NO_GLOB_SUBST
19252fi
19253
19254
19255    PACKAGE='$PACKAGE'
19256    VERSION='$VERSION'
19257    TIMESTAMP='$TIMESTAMP'
19258    RM='$RM'
19259    ofile='$ofile'
19260
19261
19262
19263
19264_ACEOF
19265
19266cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19267
19268# Handling of arguments.
19269for ac_config_target in $ac_config_targets
19270do
19271  case $ac_config_target in
19272    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19273    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19274    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19275    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19276    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19277    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19278
19279  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19280  esac
19281done
19282
19283
19284# If the user did not use the arguments to specify the items to instantiate,
19285# then the envvar interface is used.  Set only those that are not.
19286# We use the long form for the default assignment because of an extremely
19287# bizarre bug on SunOS 4.1.3.
19288if $ac_need_defaults; then
19289  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19290  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19291  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19292fi
19293
19294# Have a temporary directory for convenience.  Make it in the build tree
19295# simply because there is no reason against having it here, and in addition,
19296# creating and moving files from /tmp can sometimes cause problems.
19297# Hook for its removal unless debugging.
19298# Note that there is a small window in which the directory will not be cleaned:
19299# after its creation but before its name has been assigned to `$tmp'.
19300$debug ||
19301{
19302  tmp= ac_tmp=
19303  trap 'exit_status=$?
19304  : "${ac_tmp:=$tmp}"
19305  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19306' 0
19307  trap 'as_fn_exit 1' 1 2 13 15
19308}
19309# Create a (secure) tmp directory for tmp files.
19310
19311{
19312  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19313  test -d "$tmp"
19314}  ||
19315{
19316  tmp=./conf$$-$RANDOM
19317  (umask 077 && mkdir "$tmp")
19318} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19319ac_tmp=$tmp
19320
19321# Set up the scripts for CONFIG_FILES section.
19322# No need to generate them if there are no CONFIG_FILES.
19323# This happens for instance with `./config.status config.h'.
19324if test -n "$CONFIG_FILES"; then
19325
19326
19327ac_cr=`echo X | tr X '\015'`
19328# On cygwin, bash can eat \r inside `` if the user requested igncr.
19329# But we know of no other shell where ac_cr would be empty at this
19330# point, so we can use a bashism as a fallback.
19331if test "x$ac_cr" = x; then
19332  eval ac_cr=\$\'\\r\'
19333fi
19334ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19335if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19336  ac_cs_awk_cr='\\r'
19337else
19338  ac_cs_awk_cr=$ac_cr
19339fi
19340
19341echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19342_ACEOF
19343
19344
19345{
19346  echo "cat >conf$$subs.awk <<_ACEOF" &&
19347  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19348  echo "_ACEOF"
19349} >conf$$subs.sh ||
19350  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19351ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19352ac_delim='%!_!# '
19353for ac_last_try in false false false false false :; do
19354  . ./conf$$subs.sh ||
19355    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19356
19357  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19358  if test $ac_delim_n = $ac_delim_num; then
19359    break
19360  elif $ac_last_try; then
19361    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19362  else
19363    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19364  fi
19365done
19366rm -f conf$$subs.sh
19367
19368cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19369cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19370_ACEOF
19371sed -n '
19372h
19373s/^/S["/; s/!.*/"]=/
19374p
19375g
19376s/^[^!]*!//
19377:repl
19378t repl
19379s/'"$ac_delim"'$//
19380t delim
19381:nl
19382h
19383s/\(.\{148\}\)..*/\1/
19384t more1
19385s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19386p
19387n
19388b repl
19389:more1
19390s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19391p
19392g
19393s/.\{148\}//
19394t nl
19395:delim
19396h
19397s/\(.\{148\}\)..*/\1/
19398t more2
19399s/["\\]/\\&/g; s/^/"/; s/$/"/
19400p
19401b
19402:more2
19403s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19404p
19405g
19406s/.\{148\}//
19407t delim
19408' <conf$$subs.awk | sed '
19409/^[^""]/{
19410  N
19411  s/\n//
19412}
19413' >>$CONFIG_STATUS || ac_write_fail=1
19414rm -f conf$$subs.awk
19415cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19416_ACAWK
19417cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19418  for (key in S) S_is_set[key] = 1
19419  FS = ""
19420
19421}
19422{
19423  line = $ 0
19424  nfields = split(line, field, "@")
19425  substed = 0
19426  len = length(field[1])
19427  for (i = 2; i < nfields; i++) {
19428    key = field[i]
19429    keylen = length(key)
19430    if (S_is_set[key]) {
19431      value = S[key]
19432      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19433      len += length(value) + length(field[++i])
19434      substed = 1
19435    } else
19436      len += 1 + keylen
19437  }
19438
19439  print line
19440}
19441
19442_ACAWK
19443_ACEOF
19444cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19445if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19446  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19447else
19448  cat
19449fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19450  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19451_ACEOF
19452
19453# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19454# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19455# trailing colons and then remove the whole line if VPATH becomes empty
19456# (actually we leave an empty line to preserve line numbers).
19457if test "x$srcdir" = x.; then
19458  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19459h
19460s///
19461s/^/:/
19462s/[	 ]*$/:/
19463s/:\$(srcdir):/:/g
19464s/:\${srcdir}:/:/g
19465s/:@srcdir@:/:/g
19466s/^:*//
19467s/:*$//
19468x
19469s/\(=[	 ]*\).*/\1/
19470G
19471s/\n//
19472s/^[^=]*=[	 ]*$//
19473}'
19474fi
19475
19476cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19477fi # test -n "$CONFIG_FILES"
19478
19479# Set up the scripts for CONFIG_HEADERS section.
19480# No need to generate them if there are no CONFIG_HEADERS.
19481# This happens for instance with `./config.status Makefile'.
19482if test -n "$CONFIG_HEADERS"; then
19483cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19484BEGIN {
19485_ACEOF
19486
19487# Transform confdefs.h into an awk script `defines.awk', embedded as
19488# here-document in config.status, that substitutes the proper values into
19489# config.h.in to produce config.h.
19490
19491# Create a delimiter string that does not exist in confdefs.h, to ease
19492# handling of long lines.
19493ac_delim='%!_!# '
19494for ac_last_try in false false :; do
19495  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19496  if test -z "$ac_tt"; then
19497    break
19498  elif $ac_last_try; then
19499    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19500  else
19501    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19502  fi
19503done
19504
19505# For the awk script, D is an array of macro values keyed by name,
19506# likewise P contains macro parameters if any.  Preserve backslash
19507# newline sequences.
19508
19509ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19510sed -n '
19511s/.\{148\}/&'"$ac_delim"'/g
19512t rset
19513:rset
19514s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19515t def
19516d
19517:def
19518s/\\$//
19519t bsnl
19520s/["\\]/\\&/g
19521s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19522D["\1"]=" \3"/p
19523s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19524d
19525:bsnl
19526s/["\\]/\\&/g
19527s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19528D["\1"]=" \3\\\\\\n"\\/p
19529t cont
19530s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19531t cont
19532d
19533:cont
19534n
19535s/.\{148\}/&'"$ac_delim"'/g
19536t clear
19537:clear
19538s/\\$//
19539t bsnlc
19540s/["\\]/\\&/g; s/^/"/; s/$/"/p
19541d
19542:bsnlc
19543s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19544b cont
19545' <confdefs.h | sed '
19546s/'"$ac_delim"'/"\\\
19547"/g' >>$CONFIG_STATUS || ac_write_fail=1
19548
19549cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19550  for (key in D) D_is_set[key] = 1
19551  FS = ""
19552}
19553/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19554  line = \$ 0
19555  split(line, arg, " ")
19556  if (arg[1] == "#") {
19557    defundef = arg[2]
19558    mac1 = arg[3]
19559  } else {
19560    defundef = substr(arg[1], 2)
19561    mac1 = arg[2]
19562  }
19563  split(mac1, mac2, "(") #)
19564  macro = mac2[1]
19565  prefix = substr(line, 1, index(line, defundef) - 1)
19566  if (D_is_set[macro]) {
19567    # Preserve the white space surrounding the "#".
19568    print prefix "define", macro P[macro] D[macro]
19569    next
19570  } else {
19571    # Replace #undef with comments.  This is necessary, for example,
19572    # in the case of _POSIX_SOURCE, which is predefined and required
19573    # on some systems where configure will not decide to define it.
19574    if (defundef == "undef") {
19575      print "/*", prefix defundef, macro, "*/"
19576      next
19577    }
19578  }
19579}
19580{ print }
19581_ACAWK
19582_ACEOF
19583cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19584  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19585fi # test -n "$CONFIG_HEADERS"
19586
19587
19588eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19589shift
19590for ac_tag
19591do
19592  case $ac_tag in
19593  :[FHLC]) ac_mode=$ac_tag; continue;;
19594  esac
19595  case $ac_mode$ac_tag in
19596  :[FHL]*:*);;
19597  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19598  :[FH]-) ac_tag=-:-;;
19599  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19600  esac
19601  ac_save_IFS=$IFS
19602  IFS=:
19603  set x $ac_tag
19604  IFS=$ac_save_IFS
19605  shift
19606  ac_file=$1
19607  shift
19608
19609  case $ac_mode in
19610  :L) ac_source=$1;;
19611  :[FH])
19612    ac_file_inputs=
19613    for ac_f
19614    do
19615      case $ac_f in
19616      -) ac_f="$ac_tmp/stdin";;
19617      *) # Look for the file first in the build tree, then in the source tree
19618	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19619	 # because $ac_f cannot contain `:'.
19620	 test -f "$ac_f" ||
19621	   case $ac_f in
19622	   [\\/$]*) false;;
19623	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19624	   esac ||
19625	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19626      esac
19627      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19628      as_fn_append ac_file_inputs " '$ac_f'"
19629    done
19630
19631    # Let's still pretend it is `configure' which instantiates (i.e., don't
19632    # use $as_me), people would be surprised to read:
19633    #    /* config.h.  Generated by config.status.  */
19634    configure_input='Generated from '`
19635	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19636	`' by configure.'
19637    if test x"$ac_file" != x-; then
19638      configure_input="$ac_file.  $configure_input"
19639      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19640$as_echo "$as_me: creating $ac_file" >&6;}
19641    fi
19642    # Neutralize special characters interpreted by sed in replacement strings.
19643    case $configure_input in #(
19644    *\&* | *\|* | *\\* )
19645       ac_sed_conf_input=`$as_echo "$configure_input" |
19646       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19647    *) ac_sed_conf_input=$configure_input;;
19648    esac
19649
19650    case $ac_tag in
19651    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19652      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19653    esac
19654    ;;
19655  esac
19656
19657  ac_dir=`$as_dirname -- "$ac_file" ||
19658$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19659	 X"$ac_file" : 'X\(//\)[^/]' \| \
19660	 X"$ac_file" : 'X\(//\)$' \| \
19661	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19662$as_echo X"$ac_file" |
19663    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19664	    s//\1/
19665	    q
19666	  }
19667	  /^X\(\/\/\)[^/].*/{
19668	    s//\1/
19669	    q
19670	  }
19671	  /^X\(\/\/\)$/{
19672	    s//\1/
19673	    q
19674	  }
19675	  /^X\(\/\).*/{
19676	    s//\1/
19677	    q
19678	  }
19679	  s/.*/./; q'`
19680  as_dir="$ac_dir"; as_fn_mkdir_p
19681  ac_builddir=.
19682
19683case "$ac_dir" in
19684.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19685*)
19686  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19687  # A ".." for each directory in $ac_dir_suffix.
19688  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19689  case $ac_top_builddir_sub in
19690  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19691  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19692  esac ;;
19693esac
19694ac_abs_top_builddir=$ac_pwd
19695ac_abs_builddir=$ac_pwd$ac_dir_suffix
19696# for backward compatibility:
19697ac_top_builddir=$ac_top_build_prefix
19698
19699case $srcdir in
19700  .)  # We are building in place.
19701    ac_srcdir=.
19702    ac_top_srcdir=$ac_top_builddir_sub
19703    ac_abs_top_srcdir=$ac_pwd ;;
19704  [\\/]* | ?:[\\/]* )  # Absolute name.
19705    ac_srcdir=$srcdir$ac_dir_suffix;
19706    ac_top_srcdir=$srcdir
19707    ac_abs_top_srcdir=$srcdir ;;
19708  *) # Relative name.
19709    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19710    ac_top_srcdir=$ac_top_build_prefix$srcdir
19711    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19712esac
19713ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19714
19715
19716  case $ac_mode in
19717  :F)
19718  #
19719  # CONFIG_FILE
19720  #
19721
19722  case $INSTALL in
19723  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19724  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19725  esac
19726  ac_MKDIR_P=$MKDIR_P
19727  case $MKDIR_P in
19728  [\\/$]* | ?:[\\/]* ) ;;
19729  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19730  esac
19731_ACEOF
19732
19733cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19734# If the template does not know about datarootdir, expand it.
19735# FIXME: This hack should be removed a few years after 2.60.
19736ac_datarootdir_hack=; ac_datarootdir_seen=
19737ac_sed_dataroot='
19738/datarootdir/ {
19739  p
19740  q
19741}
19742/@datadir@/p
19743/@docdir@/p
19744/@infodir@/p
19745/@localedir@/p
19746/@mandir@/p'
19747case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19748*datarootdir*) ac_datarootdir_seen=yes;;
19749*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19750  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19751$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19752_ACEOF
19753cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19754  ac_datarootdir_hack='
19755  s&@datadir@&$datadir&g
19756  s&@docdir@&$docdir&g
19757  s&@infodir@&$infodir&g
19758  s&@localedir@&$localedir&g
19759  s&@mandir@&$mandir&g
19760  s&\\\${datarootdir}&$datarootdir&g' ;;
19761esac
19762_ACEOF
19763
19764# Neutralize VPATH when `$srcdir' = `.'.
19765# Shell code in configure.ac might set extrasub.
19766# FIXME: do we really want to maintain this feature?
19767cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19768ac_sed_extra="$ac_vpsub
19769$extrasub
19770_ACEOF
19771cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19772:t
19773/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19774s|@configure_input@|$ac_sed_conf_input|;t t
19775s&@top_builddir@&$ac_top_builddir_sub&;t t
19776s&@top_build_prefix@&$ac_top_build_prefix&;t t
19777s&@srcdir@&$ac_srcdir&;t t
19778s&@abs_srcdir@&$ac_abs_srcdir&;t t
19779s&@top_srcdir@&$ac_top_srcdir&;t t
19780s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19781s&@builddir@&$ac_builddir&;t t
19782s&@abs_builddir@&$ac_abs_builddir&;t t
19783s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19784s&@INSTALL@&$ac_INSTALL&;t t
19785s&@MKDIR_P@&$ac_MKDIR_P&;t t
19786$ac_datarootdir_hack
19787"
19788eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19789  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19790
19791test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19792  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19793  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19794      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19795  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19796which seems to be undefined.  Please make sure it is defined" >&5
19797$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19798which seems to be undefined.  Please make sure it is defined" >&2;}
19799
19800  rm -f "$ac_tmp/stdin"
19801  case $ac_file in
19802  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19803  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19804  esac \
19805  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19806 ;;
19807  :H)
19808  #
19809  # CONFIG_HEADER
19810  #
19811  if test x"$ac_file" != x-; then
19812    {
19813      $as_echo "/* $configure_input  */" \
19814      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19815    } >"$ac_tmp/config.h" \
19816      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19817    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19818      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19819$as_echo "$as_me: $ac_file is unchanged" >&6;}
19820    else
19821      rm -f "$ac_file"
19822      mv "$ac_tmp/config.h" "$ac_file" \
19823	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19824    fi
19825  else
19826    $as_echo "/* $configure_input  */" \
19827      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19828      || as_fn_error $? "could not create -" "$LINENO" 5
19829  fi
19830# Compute "$ac_file"'s index in $config_headers.
19831_am_arg="$ac_file"
19832_am_stamp_count=1
19833for _am_header in $config_headers :; do
19834  case $_am_header in
19835    $_am_arg | $_am_arg:* )
19836      break ;;
19837    * )
19838      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19839  esac
19840done
19841echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19842$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19843	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19844	 X"$_am_arg" : 'X\(//\)$' \| \
19845	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19846$as_echo X"$_am_arg" |
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'`/stamp-h$_am_stamp_count
19864 ;;
19865
19866  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19867$as_echo "$as_me: executing $ac_file commands" >&6;}
19868 ;;
19869  esac
19870
19871
19872  case $ac_file$ac_mode in
19873    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19874  # Older Autoconf quotes --file arguments for eval, but not when files
19875  # are listed without --file.  Let's play safe and only enable the eval
19876  # if we detect the quoting.
19877  case $CONFIG_FILES in
19878  *\'*) eval set x "$CONFIG_FILES" ;;
19879  *)   set x $CONFIG_FILES ;;
19880  esac
19881  shift
19882  for mf
19883  do
19884    # Strip MF so we end up with the name of the file.
19885    mf=`echo "$mf" | sed -e 's/:.*$//'`
19886    # Check whether this is an Automake generated Makefile or not.
19887    # We used to match only the files named 'Makefile.in', but
19888    # some people rename them; so instead we look at the file content.
19889    # Grep'ing the first line is not enough: some people post-process
19890    # each Makefile.in and add a new line on top of each file to say so.
19891    # Grep'ing the whole file is not good either: AIX grep has a line
19892    # limit of 2048, but all sed's we know have understand at least 4000.
19893    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19894      dirpart=`$as_dirname -- "$mf" ||
19895$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19896	 X"$mf" : 'X\(//\)[^/]' \| \
19897	 X"$mf" : 'X\(//\)$' \| \
19898	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19899$as_echo X"$mf" |
19900    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19901	    s//\1/
19902	    q
19903	  }
19904	  /^X\(\/\/\)[^/].*/{
19905	    s//\1/
19906	    q
19907	  }
19908	  /^X\(\/\/\)$/{
19909	    s//\1/
19910	    q
19911	  }
19912	  /^X\(\/\).*/{
19913	    s//\1/
19914	    q
19915	  }
19916	  s/.*/./; q'`
19917    else
19918      continue
19919    fi
19920    # Extract the definition of DEPDIR, am__include, and am__quote
19921    # from the Makefile without running 'make'.
19922    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19923    test -z "$DEPDIR" && continue
19924    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19925    test -z "$am__include" && continue
19926    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19927    # Find all dependency output files, they are included files with
19928    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19929    # simplest approach to changing $(DEPDIR) to its actual value in the
19930    # expansion.
19931    for file in `sed -n "
19932      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19933	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19934      # Make sure the directory exists.
19935      test -f "$dirpart/$file" && continue
19936      fdir=`$as_dirname -- "$file" ||
19937$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19938	 X"$file" : 'X\(//\)[^/]' \| \
19939	 X"$file" : 'X\(//\)$' \| \
19940	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19941$as_echo X"$file" |
19942    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19943	    s//\1/
19944	    q
19945	  }
19946	  /^X\(\/\/\)[^/].*/{
19947	    s//\1/
19948	    q
19949	  }
19950	  /^X\(\/\/\)$/{
19951	    s//\1/
19952	    q
19953	  }
19954	  /^X\(\/\).*/{
19955	    s//\1/
19956	    q
19957	  }
19958	  s/.*/./; q'`
19959      as_dir=$dirpart/$fdir; as_fn_mkdir_p
19960      # echo "creating $dirpart/$file"
19961      echo '# dummy' > "$dirpart/$file"
19962    done
19963  done
19964}
19965 ;;
19966    "libtool":C)
19967
19968    # See if we are running on zsh, and set the options which allow our
19969    # commands through without removal of \ escapes.
19970    if test -n "${ZSH_VERSION+set}" ; then
19971      setopt NO_GLOB_SUBST
19972    fi
19973
19974    cfgfile="${ofile}T"
19975    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19976    $RM "$cfgfile"
19977
19978    cat <<_LT_EOF >> "$cfgfile"
19979#! $SHELL
19980
19981# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19982# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19983# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19984# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19985#
19986#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19987#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19988#                 Foundation, Inc.
19989#   Written by Gordon Matzigkeit, 1996
19990#
19991#   This file is part of GNU Libtool.
19992#
19993# GNU Libtool is free software; you can redistribute it and/or
19994# modify it under the terms of the GNU General Public License as
19995# published by the Free Software Foundation; either version 2 of
19996# the License, or (at your option) any later version.
19997#
19998# As a special exception to the GNU General Public License,
19999# if you distribute this file as part of a program or library that
20000# is built using GNU Libtool, you may include this file under the
20001# same distribution terms that you use for the rest of that program.
20002#
20003# GNU Libtool is distributed in the hope that it will be useful,
20004# but WITHOUT ANY WARRANTY; without even the implied warranty of
20005# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20006# GNU General Public License for more details.
20007#
20008# You should have received a copy of the GNU General Public License
20009# along with GNU Libtool; see the file COPYING.  If not, a copy
20010# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20011# obtained by writing to the Free Software Foundation, Inc.,
20012# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20013
20014
20015# The names of the tagged configurations supported by this script.
20016available_tags=""
20017
20018# ### BEGIN LIBTOOL CONFIG
20019
20020# Whether or not to build static libraries.
20021build_old_libs=$enable_static
20022
20023# Which release of libtool.m4 was used?
20024macro_version=$macro_version
20025macro_revision=$macro_revision
20026
20027# Whether or not to build shared libraries.
20028build_libtool_libs=$enable_shared
20029
20030# What type of objects to build.
20031pic_mode=$pic_mode
20032
20033# Whether or not to optimize for fast installation.
20034fast_install=$enable_fast_install
20035
20036# Shell to use when invoking shell scripts.
20037SHELL=$lt_SHELL
20038
20039# An echo program that protects backslashes.
20040ECHO=$lt_ECHO
20041
20042# The PATH separator for the build system.
20043PATH_SEPARATOR=$lt_PATH_SEPARATOR
20044
20045# The host system.
20046host_alias=$host_alias
20047host=$host
20048host_os=$host_os
20049
20050# The build system.
20051build_alias=$build_alias
20052build=$build
20053build_os=$build_os
20054
20055# A sed program that does not truncate output.
20056SED=$lt_SED
20057
20058# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20059Xsed="\$SED -e 1s/^X//"
20060
20061# A grep program that handles long lines.
20062GREP=$lt_GREP
20063
20064# An ERE matcher.
20065EGREP=$lt_EGREP
20066
20067# A literal string matcher.
20068FGREP=$lt_FGREP
20069
20070# A BSD- or MS-compatible name lister.
20071NM=$lt_NM
20072
20073# Whether we need soft or hard links.
20074LN_S=$lt_LN_S
20075
20076# What is the maximum length of a command?
20077max_cmd_len=$max_cmd_len
20078
20079# Object file suffix (normally "o").
20080objext=$ac_objext
20081
20082# Executable file suffix (normally "").
20083exeext=$exeext
20084
20085# whether the shell understands "unset".
20086lt_unset=$lt_unset
20087
20088# turn spaces into newlines.
20089SP2NL=$lt_lt_SP2NL
20090
20091# turn newlines into spaces.
20092NL2SP=$lt_lt_NL2SP
20093
20094# convert \$build file names to \$host format.
20095to_host_file_cmd=$lt_cv_to_host_file_cmd
20096
20097# convert \$build files to toolchain format.
20098to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20099
20100# An object symbol dumper.
20101OBJDUMP=$lt_OBJDUMP
20102
20103# Method to check whether dependent libraries are shared objects.
20104deplibs_check_method=$lt_deplibs_check_method
20105
20106# Command to use when deplibs_check_method = "file_magic".
20107file_magic_cmd=$lt_file_magic_cmd
20108
20109# How to find potential files when deplibs_check_method = "file_magic".
20110file_magic_glob=$lt_file_magic_glob
20111
20112# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20113want_nocaseglob=$lt_want_nocaseglob
20114
20115# DLL creation program.
20116DLLTOOL=$lt_DLLTOOL
20117
20118# Command to associate shared and link libraries.
20119sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20120
20121# The archiver.
20122AR=$lt_AR
20123
20124# Flags to create an archive.
20125AR_FLAGS=$lt_AR_FLAGS
20126
20127# How to feed a file listing to the archiver.
20128archiver_list_spec=$lt_archiver_list_spec
20129
20130# A symbol stripping program.
20131STRIP=$lt_STRIP
20132
20133# Commands used to install an old-style archive.
20134RANLIB=$lt_RANLIB
20135old_postinstall_cmds=$lt_old_postinstall_cmds
20136old_postuninstall_cmds=$lt_old_postuninstall_cmds
20137
20138# Whether to use a lock for old archive extraction.
20139lock_old_archive_extraction=$lock_old_archive_extraction
20140
20141# A C compiler.
20142LTCC=$lt_CC
20143
20144# LTCC compiler flags.
20145LTCFLAGS=$lt_CFLAGS
20146
20147# Take the output of nm and produce a listing of raw symbols and C names.
20148global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20149
20150# Transform the output of nm in a proper C declaration.
20151global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20152
20153# Transform the output of nm in a C name address pair.
20154global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20155
20156# Transform the output of nm in a C name address pair when lib prefix is needed.
20157global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20158
20159# Specify filename containing input files for \$NM.
20160nm_file_list_spec=$lt_nm_file_list_spec
20161
20162# The root where to search for dependent libraries,and in which our libraries should be installed.
20163lt_sysroot=$lt_sysroot
20164
20165# The name of the directory that contains temporary libtool files.
20166objdir=$objdir
20167
20168# Used to examine libraries when file_magic_cmd begins with "file".
20169MAGIC_CMD=$MAGIC_CMD
20170
20171# Must we lock files when doing compilation?
20172need_locks=$lt_need_locks
20173
20174# Manifest tool.
20175MANIFEST_TOOL=$lt_MANIFEST_TOOL
20176
20177# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20178DSYMUTIL=$lt_DSYMUTIL
20179
20180# Tool to change global to local symbols on Mac OS X.
20181NMEDIT=$lt_NMEDIT
20182
20183# Tool to manipulate fat objects and archives on Mac OS X.
20184LIPO=$lt_LIPO
20185
20186# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20187OTOOL=$lt_OTOOL
20188
20189# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20190OTOOL64=$lt_OTOOL64
20191
20192# Old archive suffix (normally "a").
20193libext=$libext
20194
20195# Shared library suffix (normally ".so").
20196shrext_cmds=$lt_shrext_cmds
20197
20198# The commands to extract the exported symbol list from a shared archive.
20199extract_expsyms_cmds=$lt_extract_expsyms_cmds
20200
20201# Variables whose values should be saved in libtool wrapper scripts and
20202# restored at link time.
20203variables_saved_for_relink=$lt_variables_saved_for_relink
20204
20205# Do we need the "lib" prefix for modules?
20206need_lib_prefix=$need_lib_prefix
20207
20208# Do we need a version for libraries?
20209need_version=$need_version
20210
20211# Library versioning type.
20212version_type=$version_type
20213
20214# Shared library runtime path variable.
20215runpath_var=$runpath_var
20216
20217# Shared library path variable.
20218shlibpath_var=$shlibpath_var
20219
20220# Is shlibpath searched before the hard-coded library search path?
20221shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20222
20223# Format of library name prefix.
20224libname_spec=$lt_libname_spec
20225
20226# List of archive names.  First name is the real one, the rest are links.
20227# The last name is the one that the linker finds with -lNAME
20228library_names_spec=$lt_library_names_spec
20229
20230# The coded name of the library, if different from the real name.
20231soname_spec=$lt_soname_spec
20232
20233# Permission mode override for installation of shared libraries.
20234install_override_mode=$lt_install_override_mode
20235
20236# Command to use after installation of a shared archive.
20237postinstall_cmds=$lt_postinstall_cmds
20238
20239# Command to use after uninstallation of a shared archive.
20240postuninstall_cmds=$lt_postuninstall_cmds
20241
20242# Commands used to finish a libtool library installation in a directory.
20243finish_cmds=$lt_finish_cmds
20244
20245# As "finish_cmds", except a single script fragment to be evaled but
20246# not shown.
20247finish_eval=$lt_finish_eval
20248
20249# Whether we should hardcode library paths into libraries.
20250hardcode_into_libs=$hardcode_into_libs
20251
20252# Compile-time system search path for libraries.
20253sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20254
20255# Run-time system search path for libraries.
20256sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20257
20258# Whether dlopen is supported.
20259dlopen_support=$enable_dlopen
20260
20261# Whether dlopen of programs is supported.
20262dlopen_self=$enable_dlopen_self
20263
20264# Whether dlopen of statically linked programs is supported.
20265dlopen_self_static=$enable_dlopen_self_static
20266
20267# Commands to strip libraries.
20268old_striplib=$lt_old_striplib
20269striplib=$lt_striplib
20270
20271
20272# The linker used to build libraries.
20273LD=$lt_LD
20274
20275# How to create reloadable object files.
20276reload_flag=$lt_reload_flag
20277reload_cmds=$lt_reload_cmds
20278
20279# Commands used to build an old-style archive.
20280old_archive_cmds=$lt_old_archive_cmds
20281
20282# A language specific compiler.
20283CC=$lt_compiler
20284
20285# Is the compiler the GNU compiler?
20286with_gcc=$GCC
20287
20288# Compiler flag to turn off builtin functions.
20289no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20290
20291# Additional compiler flags for building library objects.
20292pic_flag=$lt_lt_prog_compiler_pic
20293
20294# How to pass a linker flag through the compiler.
20295wl=$lt_lt_prog_compiler_wl
20296
20297# Compiler flag to prevent dynamic linking.
20298link_static_flag=$lt_lt_prog_compiler_static
20299
20300# Does compiler simultaneously support -c and -o options?
20301compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20302
20303# Whether or not to add -lc for building shared libraries.
20304build_libtool_need_lc=$archive_cmds_need_lc
20305
20306# Whether or not to disallow shared libs when runtime libs are static.
20307allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20308
20309# Compiler flag to allow reflexive dlopens.
20310export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20311
20312# Compiler flag to generate shared objects directly from archives.
20313whole_archive_flag_spec=$lt_whole_archive_flag_spec
20314
20315# Whether the compiler copes with passing no objects directly.
20316compiler_needs_object=$lt_compiler_needs_object
20317
20318# Create an old-style archive from a shared archive.
20319old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20320
20321# Create a temporary old-style archive to link instead of a shared archive.
20322old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20323
20324# Commands used to build a shared archive.
20325archive_cmds=$lt_archive_cmds
20326archive_expsym_cmds=$lt_archive_expsym_cmds
20327
20328# Commands used to build a loadable module if different from building
20329# a shared archive.
20330module_cmds=$lt_module_cmds
20331module_expsym_cmds=$lt_module_expsym_cmds
20332
20333# Whether we are building with GNU ld or not.
20334with_gnu_ld=$lt_with_gnu_ld
20335
20336# Flag that allows shared libraries with undefined symbols to be built.
20337allow_undefined_flag=$lt_allow_undefined_flag
20338
20339# Flag that enforces no undefined symbols.
20340no_undefined_flag=$lt_no_undefined_flag
20341
20342# Flag to hardcode \$libdir into a binary during linking.
20343# This must work even if \$libdir does not exist
20344hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20345
20346# Whether we need a single "-rpath" flag with a separated argument.
20347hardcode_libdir_separator=$lt_hardcode_libdir_separator
20348
20349# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20350# DIR into the resulting binary.
20351hardcode_direct=$hardcode_direct
20352
20353# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20354# DIR into the resulting binary and the resulting library dependency is
20355# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20356# library is relocated.
20357hardcode_direct_absolute=$hardcode_direct_absolute
20358
20359# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20360# into the resulting binary.
20361hardcode_minus_L=$hardcode_minus_L
20362
20363# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20364# into the resulting binary.
20365hardcode_shlibpath_var=$hardcode_shlibpath_var
20366
20367# Set to "yes" if building a shared library automatically hardcodes DIR
20368# into the library and all subsequent libraries and executables linked
20369# against it.
20370hardcode_automatic=$hardcode_automatic
20371
20372# Set to yes if linker adds runtime paths of dependent libraries
20373# to runtime path list.
20374inherit_rpath=$inherit_rpath
20375
20376# Whether libtool must link a program against all its dependency libraries.
20377link_all_deplibs=$link_all_deplibs
20378
20379# Set to "yes" if exported symbols are required.
20380always_export_symbols=$always_export_symbols
20381
20382# The commands to list exported symbols.
20383export_symbols_cmds=$lt_export_symbols_cmds
20384
20385# Symbols that should not be listed in the preloaded symbols.
20386exclude_expsyms=$lt_exclude_expsyms
20387
20388# Symbols that must always be exported.
20389include_expsyms=$lt_include_expsyms
20390
20391# Commands necessary for linking programs (against libraries) with templates.
20392prelink_cmds=$lt_prelink_cmds
20393
20394# Commands necessary for finishing linking programs.
20395postlink_cmds=$lt_postlink_cmds
20396
20397# Specify filename containing input files.
20398file_list_spec=$lt_file_list_spec
20399
20400# How to hardcode a shared library path into an executable.
20401hardcode_action=$hardcode_action
20402
20403# ### END LIBTOOL CONFIG
20404
20405_LT_EOF
20406
20407  case $host_os in
20408  aix3*)
20409    cat <<\_LT_EOF >> "$cfgfile"
20410# AIX sometimes has problems with the GCC collect2 program.  For some
20411# reason, if we set the COLLECT_NAMES environment variable, the problems
20412# vanish in a puff of smoke.
20413if test "X${COLLECT_NAMES+set}" != Xset; then
20414  COLLECT_NAMES=
20415  export COLLECT_NAMES
20416fi
20417_LT_EOF
20418    ;;
20419  esac
20420
20421
20422ltmain="$ac_aux_dir/ltmain.sh"
20423
20424
20425  # We use sed instead of cat because bash on DJGPP gets confused if
20426  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20427  # text mode, it properly converts lines to CR/LF.  This bash problem
20428  # is reportedly fixed, but why not run on old versions too?
20429  sed '$q' "$ltmain" >> "$cfgfile" \
20430     || (rm -f "$cfgfile"; exit 1)
20431
20432  if test x"$xsi_shell" = xyes; then
20433  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20434func_dirname ()\
20435{\
20436\    case ${1} in\
20437\      */*) func_dirname_result="${1%/*}${2}" ;;\
20438\      *  ) func_dirname_result="${3}" ;;\
20439\    esac\
20440} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20441  && mv -f "$cfgfile.tmp" "$cfgfile" \
20442    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20443test 0 -eq $? || _lt_function_replace_fail=:
20444
20445
20446  sed -e '/^func_basename ()$/,/^} # func_basename /c\
20447func_basename ()\
20448{\
20449\    func_basename_result="${1##*/}"\
20450} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20451  && mv -f "$cfgfile.tmp" "$cfgfile" \
20452    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20453test 0 -eq $? || _lt_function_replace_fail=:
20454
20455
20456  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20457func_dirname_and_basename ()\
20458{\
20459\    case ${1} in\
20460\      */*) func_dirname_result="${1%/*}${2}" ;;\
20461\      *  ) func_dirname_result="${3}" ;;\
20462\    esac\
20463\    func_basename_result="${1##*/}"\
20464} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20465  && mv -f "$cfgfile.tmp" "$cfgfile" \
20466    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20467test 0 -eq $? || _lt_function_replace_fail=:
20468
20469
20470  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20471func_stripname ()\
20472{\
20473\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20474\    # positional parameters, so assign one to ordinary parameter first.\
20475\    func_stripname_result=${3}\
20476\    func_stripname_result=${func_stripname_result#"${1}"}\
20477\    func_stripname_result=${func_stripname_result%"${2}"}\
20478} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20479  && mv -f "$cfgfile.tmp" "$cfgfile" \
20480    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20481test 0 -eq $? || _lt_function_replace_fail=:
20482
20483
20484  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20485func_split_long_opt ()\
20486{\
20487\    func_split_long_opt_name=${1%%=*}\
20488\    func_split_long_opt_arg=${1#*=}\
20489} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20490  && mv -f "$cfgfile.tmp" "$cfgfile" \
20491    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20492test 0 -eq $? || _lt_function_replace_fail=:
20493
20494
20495  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20496func_split_short_opt ()\
20497{\
20498\    func_split_short_opt_arg=${1#??}\
20499\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20500} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20501  && mv -f "$cfgfile.tmp" "$cfgfile" \
20502    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20503test 0 -eq $? || _lt_function_replace_fail=:
20504
20505
20506  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20507func_lo2o ()\
20508{\
20509\    case ${1} in\
20510\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20511\      *)    func_lo2o_result=${1} ;;\
20512\    esac\
20513} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20514  && mv -f "$cfgfile.tmp" "$cfgfile" \
20515    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20516test 0 -eq $? || _lt_function_replace_fail=:
20517
20518
20519  sed -e '/^func_xform ()$/,/^} # func_xform /c\
20520func_xform ()\
20521{\
20522    func_xform_result=${1%.*}.lo\
20523} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20524  && mv -f "$cfgfile.tmp" "$cfgfile" \
20525    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20526test 0 -eq $? || _lt_function_replace_fail=:
20527
20528
20529  sed -e '/^func_arith ()$/,/^} # func_arith /c\
20530func_arith ()\
20531{\
20532    func_arith_result=$(( $* ))\
20533} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20534  && mv -f "$cfgfile.tmp" "$cfgfile" \
20535    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20536test 0 -eq $? || _lt_function_replace_fail=:
20537
20538
20539  sed -e '/^func_len ()$/,/^} # func_len /c\
20540func_len ()\
20541{\
20542    func_len_result=${#1}\
20543} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20544  && mv -f "$cfgfile.tmp" "$cfgfile" \
20545    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20546test 0 -eq $? || _lt_function_replace_fail=:
20547
20548fi
20549
20550if test x"$lt_shell_append" = xyes; then
20551  sed -e '/^func_append ()$/,/^} # func_append /c\
20552func_append ()\
20553{\
20554    eval "${1}+=\\${2}"\
20555} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20556  && mv -f "$cfgfile.tmp" "$cfgfile" \
20557    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20558test 0 -eq $? || _lt_function_replace_fail=:
20559
20560
20561  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20562func_append_quoted ()\
20563{\
20564\    func_quote_for_eval "${2}"\
20565\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20566} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20567  && mv -f "$cfgfile.tmp" "$cfgfile" \
20568    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20569test 0 -eq $? || _lt_function_replace_fail=:
20570
20571
20572  # Save a `func_append' function call where possible by direct use of '+='
20573  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20574    && mv -f "$cfgfile.tmp" "$cfgfile" \
20575      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20576  test 0 -eq $? || _lt_function_replace_fail=:
20577else
20578  # Save a `func_append' function call even when '+=' is not available
20579  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20580    && mv -f "$cfgfile.tmp" "$cfgfile" \
20581      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20582  test 0 -eq $? || _lt_function_replace_fail=:
20583fi
20584
20585if test x"$_lt_function_replace_fail" = x":"; then
20586  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20587$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20588fi
20589
20590
20591   mv -f "$cfgfile" "$ofile" ||
20592    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20593  chmod +x "$ofile"
20594
20595 ;;
20596
20597  esac
20598done # for ac_tag
20599
20600
20601as_fn_exit 0
20602_ACEOF
20603ac_clean_files=$ac_clean_files_save
20604
20605test $ac_write_fail = 0 ||
20606  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20607
20608
20609# configure is writing to config.log, and then calls config.status.
20610# config.status does its own redirection, appending to config.log.
20611# Unfortunately, on DOS this fails, as config.log is still kept open
20612# by configure, so config.status won't be able to write to it; its
20613# output is simply discarded.  So we exec the FD to /dev/null,
20614# effectively closing config.log, so it can be properly (re)opened and
20615# appended to by config.status.  When coming back to configure, we
20616# need to make the FD available again.
20617if test "$no_create" != yes; then
20618  ac_cs_success=:
20619  ac_config_status_args=
20620  test "$silent" = yes &&
20621    ac_config_status_args="$ac_config_status_args --quiet"
20622  exec 5>/dev/null
20623  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20624  exec 5>>config.log
20625  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20626  # would make configure fail if this is the last instruction.
20627  $ac_cs_success || as_fn_exit 1
20628fi
20629if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20630  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20631$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20632fi
20633
20634