configure revision 3aa15f76
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libXvMC 1.0.10.
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
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || 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='libXvMC'
593PACKAGE_TARNAME='libXvMC'
594PACKAGE_VERSION='1.0.10'
595PACKAGE_STRING='libXvMC 1.0.10'
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
640LINT_FALSE
641LINT_TRUE
642LINT_FLAGS
643LINT
644DLOPEN_LIBS
645XVMC_LIBS
646XVMC_CFLAGS
647XTMALLOC_ZERO_CFLAGS
648XMALLOC_ZERO_CFLAGS
649MALLOC_ZERO_CFLAGS
650MAN_SUBSTS
651XORG_MAN_PAGE
652ADMIN_MAN_DIR
653DRIVER_MAN_DIR
654MISC_MAN_DIR
655FILE_MAN_DIR
656LIB_MAN_DIR
657APP_MAN_DIR
658ADMIN_MAN_SUFFIX
659DRIVER_MAN_SUFFIX
660MISC_MAN_SUFFIX
661FILE_MAN_SUFFIX
662LIB_MAN_SUFFIX
663APP_MAN_SUFFIX
664INSTALL_CMD
665PKG_CONFIG_LIBDIR
666PKG_CONFIG_PATH
667PKG_CONFIG
668CHANGELOG_CMD
669STRICT_CFLAGS
670CWARNFLAGS
671BASE_CFLAGS
672CPP
673OTOOL64
674OTOOL
675LIPO
676NMEDIT
677DSYMUTIL
678MANIFEST_TOOL
679RANLIB
680ac_ct_AR
681AR
682DLLTOOL
683OBJDUMP
684LN_S
685NM
686ac_ct_DUMPBIN
687DUMPBIN
688LD
689FGREP
690EGREP
691GREP
692SED
693am__fastdepCC_FALSE
694am__fastdepCC_TRUE
695CCDEPMODE
696am__nodep
697AMDEPBACKSLASH
698AMDEP_FALSE
699AMDEP_TRUE
700am__quote
701am__include
702DEPDIR
703OBJEXT
704EXEEXT
705ac_ct_CC
706CPPFLAGS
707LDFLAGS
708CFLAGS
709CC
710host_os
711host_vendor
712host_cpu
713host
714build_os
715build_vendor
716build_cpu
717build
718LIBTOOL
719AM_BACKSLASH
720AM_DEFAULT_VERBOSITY
721AM_DEFAULT_V
722AM_V
723am__untar
724am__tar
725AMTAR
726am__leading_dot
727SET_MAKE
728AWK
729mkdir_p
730MKDIR_P
731INSTALL_STRIP_PROGRAM
732STRIP
733install_sh
734MAKEINFO
735AUTOHEADER
736AUTOMAKE
737AUTOCONF
738ACLOCAL
739VERSION
740PACKAGE
741CYGPATH_W
742am__isrc
743INSTALL_DATA
744INSTALL_SCRIPT
745INSTALL_PROGRAM
746target_alias
747host_alias
748build_alias
749LIBS
750ECHO_T
751ECHO_N
752ECHO_C
753DEFS
754mandir
755localedir
756libdir
757psdir
758pdfdir
759dvidir
760htmldir
761infodir
762docdir
763oldincludedir
764includedir
765localstatedir
766sharedstatedir
767sysconfdir
768datadir
769datarootdir
770libexecdir
771sbindir
772bindir
773program_transform_name
774prefix
775exec_prefix
776PACKAGE_URL
777PACKAGE_BUGREPORT
778PACKAGE_STRING
779PACKAGE_VERSION
780PACKAGE_TARNAME
781PACKAGE_NAME
782PATH_SEPARATOR
783SHELL'
784ac_subst_files=''
785ac_user_opts='
786enable_option_checking
787enable_silent_rules
788enable_shared
789enable_static
790with_pic
791enable_fast_install
792enable_dependency_tracking
793with_gnu_ld
794with_sysroot
795enable_libtool_lock
796enable_selective_werror
797enable_strict_compilation
798enable_malloc0returnsnull
799with_lint
800'
801      ac_precious_vars='build_alias
802host_alias
803target_alias
804CC
805CFLAGS
806LDFLAGS
807LIBS
808CPPFLAGS
809CPP
810PKG_CONFIG
811PKG_CONFIG_PATH
812PKG_CONFIG_LIBDIR
813XVMC_CFLAGS
814XVMC_LIBS
815LINT
816LINT_FLAGS'
817
818
819# Initialize some variables set by options.
820ac_init_help=
821ac_init_version=false
822ac_unrecognized_opts=
823ac_unrecognized_sep=
824# The variables have the same names as the options, with
825# dashes changed to underlines.
826cache_file=/dev/null
827exec_prefix=NONE
828no_create=
829no_recursion=
830prefix=NONE
831program_prefix=NONE
832program_suffix=NONE
833program_transform_name=s,x,x,
834silent=
835site=
836srcdir=
837verbose=
838x_includes=NONE
839x_libraries=NONE
840
841# Installation directory options.
842# These are left unexpanded so users can "make install exec_prefix=/foo"
843# and all the variables that are supposed to be based on exec_prefix
844# by default will actually change.
845# Use braces instead of parens because sh, perl, etc. also accept them.
846# (The list follows the same order as the GNU Coding Standards.)
847bindir='${exec_prefix}/bin'
848sbindir='${exec_prefix}/sbin'
849libexecdir='${exec_prefix}/libexec'
850datarootdir='${prefix}/share'
851datadir='${datarootdir}'
852sysconfdir='${prefix}/etc'
853sharedstatedir='${prefix}/com'
854localstatedir='${prefix}/var'
855includedir='${prefix}/include'
856oldincludedir='/usr/include'
857docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858infodir='${datarootdir}/info'
859htmldir='${docdir}'
860dvidir='${docdir}'
861pdfdir='${docdir}'
862psdir='${docdir}'
863libdir='${exec_prefix}/lib'
864localedir='${datarootdir}/locale'
865mandir='${datarootdir}/man'
866
867ac_prev=
868ac_dashdash=
869for ac_option
870do
871  # If the previous option needs an argument, assign it.
872  if test -n "$ac_prev"; then
873    eval $ac_prev=\$ac_option
874    ac_prev=
875    continue
876  fi
877
878  case $ac_option in
879  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880  *=)   ac_optarg= ;;
881  *)    ac_optarg=yes ;;
882  esac
883
884  # Accept the important Cygnus configure options, so we can diagnose typos.
885
886  case $ac_dashdash$ac_option in
887  --)
888    ac_dashdash=yes ;;
889
890  -bindir | --bindir | --bindi | --bind | --bin | --bi)
891    ac_prev=bindir ;;
892  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893    bindir=$ac_optarg ;;
894
895  -build | --build | --buil | --bui | --bu)
896    ac_prev=build_alias ;;
897  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898    build_alias=$ac_optarg ;;
899
900  -cache-file | --cache-file | --cache-fil | --cache-fi \
901  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902    ac_prev=cache_file ;;
903  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905    cache_file=$ac_optarg ;;
906
907  --config-cache | -C)
908    cache_file=config.cache ;;
909
910  -datadir | --datadir | --datadi | --datad)
911    ac_prev=datadir ;;
912  -datadir=* | --datadir=* | --datadi=* | --datad=*)
913    datadir=$ac_optarg ;;
914
915  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916  | --dataroo | --dataro | --datar)
917    ac_prev=datarootdir ;;
918  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920    datarootdir=$ac_optarg ;;
921
922  -disable-* | --disable-*)
923    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924    # Reject names that are not valid shell variable names.
925    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926      as_fn_error $? "invalid feature name: $ac_useropt"
927    ac_useropt_orig=$ac_useropt
928    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929    case $ac_user_opts in
930      *"
931"enable_$ac_useropt"
932"*) ;;
933      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
934	 ac_unrecognized_sep=', ';;
935    esac
936    eval enable_$ac_useropt=no ;;
937
938  -docdir | --docdir | --docdi | --doc | --do)
939    ac_prev=docdir ;;
940  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
941    docdir=$ac_optarg ;;
942
943  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944    ac_prev=dvidir ;;
945  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
946    dvidir=$ac_optarg ;;
947
948  -enable-* | --enable-*)
949    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
950    # Reject names that are not valid shell variable names.
951    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952      as_fn_error $? "invalid feature name: $ac_useropt"
953    ac_useropt_orig=$ac_useropt
954    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955    case $ac_user_opts in
956      *"
957"enable_$ac_useropt"
958"*) ;;
959      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
960	 ac_unrecognized_sep=', ';;
961    esac
962    eval enable_$ac_useropt=\$ac_optarg ;;
963
964  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966  | --exec | --exe | --ex)
967    ac_prev=exec_prefix ;;
968  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970  | --exec=* | --exe=* | --ex=*)
971    exec_prefix=$ac_optarg ;;
972
973  -gas | --gas | --ga | --g)
974    # Obsolete; use --with-gas.
975    with_gas=yes ;;
976
977  -help | --help | --hel | --he | -h)
978    ac_init_help=long ;;
979  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980    ac_init_help=recursive ;;
981  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982    ac_init_help=short ;;
983
984  -host | --host | --hos | --ho)
985    ac_prev=host_alias ;;
986  -host=* | --host=* | --hos=* | --ho=*)
987    host_alias=$ac_optarg ;;
988
989  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
990    ac_prev=htmldir ;;
991  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
992  | --ht=*)
993    htmldir=$ac_optarg ;;
994
995  -includedir | --includedir | --includedi | --included | --include \
996  | --includ | --inclu | --incl | --inc)
997    ac_prev=includedir ;;
998  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999  | --includ=* | --inclu=* | --incl=* | --inc=*)
1000    includedir=$ac_optarg ;;
1001
1002  -infodir | --infodir | --infodi | --infod | --info | --inf)
1003    ac_prev=infodir ;;
1004  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005    infodir=$ac_optarg ;;
1006
1007  -libdir | --libdir | --libdi | --libd)
1008    ac_prev=libdir ;;
1009  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010    libdir=$ac_optarg ;;
1011
1012  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013  | --libexe | --libex | --libe)
1014    ac_prev=libexecdir ;;
1015  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016  | --libexe=* | --libex=* | --libe=*)
1017    libexecdir=$ac_optarg ;;
1018
1019  -localedir | --localedir | --localedi | --localed | --locale)
1020    ac_prev=localedir ;;
1021  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022    localedir=$ac_optarg ;;
1023
1024  -localstatedir | --localstatedir | --localstatedi | --localstated \
1025  | --localstate | --localstat | --localsta | --localst | --locals)
1026    ac_prev=localstatedir ;;
1027  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029    localstatedir=$ac_optarg ;;
1030
1031  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1032    ac_prev=mandir ;;
1033  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034    mandir=$ac_optarg ;;
1035
1036  -nfp | --nfp | --nf)
1037    # Obsolete; use --without-fp.
1038    with_fp=no ;;
1039
1040  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041  | --no-cr | --no-c | -n)
1042    no_create=yes ;;
1043
1044  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046    no_recursion=yes ;;
1047
1048  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050  | --oldin | --oldi | --old | --ol | --o)
1051    ac_prev=oldincludedir ;;
1052  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055    oldincludedir=$ac_optarg ;;
1056
1057  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1058    ac_prev=prefix ;;
1059  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060    prefix=$ac_optarg ;;
1061
1062  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063  | --program-pre | --program-pr | --program-p)
1064    ac_prev=program_prefix ;;
1065  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067    program_prefix=$ac_optarg ;;
1068
1069  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070  | --program-suf | --program-su | --program-s)
1071    ac_prev=program_suffix ;;
1072  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074    program_suffix=$ac_optarg ;;
1075
1076  -program-transform-name | --program-transform-name \
1077  | --program-transform-nam | --program-transform-na \
1078  | --program-transform-n | --program-transform- \
1079  | --program-transform | --program-transfor \
1080  | --program-transfo | --program-transf \
1081  | --program-trans | --program-tran \
1082  | --progr-tra | --program-tr | --program-t)
1083    ac_prev=program_transform_name ;;
1084  -program-transform-name=* | --program-transform-name=* \
1085  | --program-transform-nam=* | --program-transform-na=* \
1086  | --program-transform-n=* | --program-transform-=* \
1087  | --program-transform=* | --program-transfor=* \
1088  | --program-transfo=* | --program-transf=* \
1089  | --program-trans=* | --program-tran=* \
1090  | --progr-tra=* | --program-tr=* | --program-t=*)
1091    program_transform_name=$ac_optarg ;;
1092
1093  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1094    ac_prev=pdfdir ;;
1095  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096    pdfdir=$ac_optarg ;;
1097
1098  -psdir | --psdir | --psdi | --psd | --ps)
1099    ac_prev=psdir ;;
1100  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1101    psdir=$ac_optarg ;;
1102
1103  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104  | -silent | --silent | --silen | --sile | --sil)
1105    silent=yes ;;
1106
1107  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108    ac_prev=sbindir ;;
1109  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110  | --sbi=* | --sb=*)
1111    sbindir=$ac_optarg ;;
1112
1113  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115  | --sharedst | --shareds | --shared | --share | --shar \
1116  | --sha | --sh)
1117    ac_prev=sharedstatedir ;;
1118  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121  | --sha=* | --sh=*)
1122    sharedstatedir=$ac_optarg ;;
1123
1124  -site | --site | --sit)
1125    ac_prev=site ;;
1126  -site=* | --site=* | --sit=*)
1127    site=$ac_optarg ;;
1128
1129  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130    ac_prev=srcdir ;;
1131  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132    srcdir=$ac_optarg ;;
1133
1134  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135  | --syscon | --sysco | --sysc | --sys | --sy)
1136    ac_prev=sysconfdir ;;
1137  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139    sysconfdir=$ac_optarg ;;
1140
1141  -target | --target | --targe | --targ | --tar | --ta | --t)
1142    ac_prev=target_alias ;;
1143  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144    target_alias=$ac_optarg ;;
1145
1146  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147    verbose=yes ;;
1148
1149  -version | --version | --versio | --versi | --vers | -V)
1150    ac_init_version=: ;;
1151
1152  -with-* | --with-*)
1153    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154    # Reject names that are not valid shell variable names.
1155    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156      as_fn_error $? "invalid package name: $ac_useropt"
1157    ac_useropt_orig=$ac_useropt
1158    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159    case $ac_user_opts in
1160      *"
1161"with_$ac_useropt"
1162"*) ;;
1163      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1164	 ac_unrecognized_sep=', ';;
1165    esac
1166    eval with_$ac_useropt=\$ac_optarg ;;
1167
1168  -without-* | --without-*)
1169    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1170    # Reject names that are not valid shell variable names.
1171    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172      as_fn_error $? "invalid package name: $ac_useropt"
1173    ac_useropt_orig=$ac_useropt
1174    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175    case $ac_user_opts in
1176      *"
1177"with_$ac_useropt"
1178"*) ;;
1179      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1180	 ac_unrecognized_sep=', ';;
1181    esac
1182    eval with_$ac_useropt=no ;;
1183
1184  --x)
1185    # Obsolete; use --with-x.
1186    with_x=yes ;;
1187
1188  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1189  | --x-incl | --x-inc | --x-in | --x-i)
1190    ac_prev=x_includes ;;
1191  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1192  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1193    x_includes=$ac_optarg ;;
1194
1195  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1196  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1197    ac_prev=x_libraries ;;
1198  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1199  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1200    x_libraries=$ac_optarg ;;
1201
1202  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1203Try \`$0 --help' for more information"
1204    ;;
1205
1206  *=*)
1207    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1208    # Reject names that are not valid shell variable names.
1209    case $ac_envvar in #(
1210      '' | [0-9]* | *[!_$as_cr_alnum]* )
1211      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1212    esac
1213    eval $ac_envvar=\$ac_optarg
1214    export $ac_envvar ;;
1215
1216  *)
1217    # FIXME: should be removed in autoconf 3.0.
1218    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1219    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1221    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1222    ;;
1223
1224  esac
1225done
1226
1227if test -n "$ac_prev"; then
1228  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1229  as_fn_error $? "missing argument to $ac_option"
1230fi
1231
1232if test -n "$ac_unrecognized_opts"; then
1233  case $enable_option_checking in
1234    no) ;;
1235    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1236    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1237  esac
1238fi
1239
1240# Check all directory arguments for consistency.
1241for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1242		datadir sysconfdir sharedstatedir localstatedir includedir \
1243		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1244		libdir localedir mandir
1245do
1246  eval ac_val=\$$ac_var
1247  # Remove trailing slashes.
1248  case $ac_val in
1249    */ )
1250      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1251      eval $ac_var=\$ac_val;;
1252  esac
1253  # Be sure to have absolute directory names.
1254  case $ac_val in
1255    [\\/$]* | ?:[\\/]* )  continue;;
1256    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1257  esac
1258  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1259done
1260
1261# There might be people who depend on the old broken behavior: `$host'
1262# used to hold the argument of --host etc.
1263# FIXME: To remove some day.
1264build=$build_alias
1265host=$host_alias
1266target=$target_alias
1267
1268# FIXME: To remove some day.
1269if test "x$host_alias" != x; then
1270  if test "x$build_alias" = x; then
1271    cross_compiling=maybe
1272  elif test "x$build_alias" != "x$host_alias"; then
1273    cross_compiling=yes
1274  fi
1275fi
1276
1277ac_tool_prefix=
1278test -n "$host_alias" && ac_tool_prefix=$host_alias-
1279
1280test "$silent" = yes && exec 6>/dev/null
1281
1282
1283ac_pwd=`pwd` && test -n "$ac_pwd" &&
1284ac_ls_di=`ls -di .` &&
1285ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1286  as_fn_error $? "working directory cannot be determined"
1287test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1288  as_fn_error $? "pwd does not report name of working directory"
1289
1290
1291# Find the source files, if location was not specified.
1292if test -z "$srcdir"; then
1293  ac_srcdir_defaulted=yes
1294  # Try the directory containing this script, then the parent directory.
1295  ac_confdir=`$as_dirname -- "$as_myself" ||
1296$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1297	 X"$as_myself" : 'X\(//\)[^/]' \| \
1298	 X"$as_myself" : 'X\(//\)$' \| \
1299	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1300$as_echo X"$as_myself" |
1301    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1302	    s//\1/
1303	    q
1304	  }
1305	  /^X\(\/\/\)[^/].*/{
1306	    s//\1/
1307	    q
1308	  }
1309	  /^X\(\/\/\)$/{
1310	    s//\1/
1311	    q
1312	  }
1313	  /^X\(\/\).*/{
1314	    s//\1/
1315	    q
1316	  }
1317	  s/.*/./; q'`
1318  srcdir=$ac_confdir
1319  if test ! -r "$srcdir/$ac_unique_file"; then
1320    srcdir=..
1321  fi
1322else
1323  ac_srcdir_defaulted=no
1324fi
1325if test ! -r "$srcdir/$ac_unique_file"; then
1326  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1327  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1328fi
1329ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1330ac_abs_confdir=`(
1331	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1332	pwd)`
1333# When building in place, set srcdir=.
1334if test "$ac_abs_confdir" = "$ac_pwd"; then
1335  srcdir=.
1336fi
1337# Remove unnecessary trailing slashes from srcdir.
1338# Double slashes in file names in object file debugging info
1339# mess up M-x gdb in Emacs.
1340case $srcdir in
1341*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1342esac
1343for ac_var in $ac_precious_vars; do
1344  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1345  eval ac_env_${ac_var}_value=\$${ac_var}
1346  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1347  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1348done
1349
1350#
1351# Report the --help message.
1352#
1353if test "$ac_init_help" = "long"; then
1354  # Omit some internal or obsolete options to make the list less imposing.
1355  # This message is too long to be a string in the A/UX 3.1 sh.
1356  cat <<_ACEOF
1357\`configure' configures libXvMC 1.0.10 to adapt to many kinds of systems.
1358
1359Usage: $0 [OPTION]... [VAR=VALUE]...
1360
1361To assign environment variables (e.g., CC, CFLAGS...), specify them as
1362VAR=VALUE.  See below for descriptions of some of the useful variables.
1363
1364Defaults for the options are specified in brackets.
1365
1366Configuration:
1367  -h, --help              display this help and exit
1368      --help=short        display options specific to this package
1369      --help=recursive    display the short help of all the included packages
1370  -V, --version           display version information and exit
1371  -q, --quiet, --silent   do not print \`checking ...' messages
1372      --cache-file=FILE   cache test results in FILE [disabled]
1373  -C, --config-cache      alias for \`--cache-file=config.cache'
1374  -n, --no-create         do not create output files
1375      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1376
1377Installation directories:
1378  --prefix=PREFIX         install architecture-independent files in PREFIX
1379                          [$ac_default_prefix]
1380  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1381                          [PREFIX]
1382
1383By default, \`make install' will install all the files in
1384\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1385an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1386for instance \`--prefix=\$HOME'.
1387
1388For better control, use the options below.
1389
1390Fine tuning of the installation directories:
1391  --bindir=DIR            user executables [EPREFIX/bin]
1392  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1393  --libexecdir=DIR        program executables [EPREFIX/libexec]
1394  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1395  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1396  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1397  --libdir=DIR            object code libraries [EPREFIX/lib]
1398  --includedir=DIR        C header files [PREFIX/include]
1399  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1400  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1401  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1402  --infodir=DIR           info documentation [DATAROOTDIR/info]
1403  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1404  --mandir=DIR            man documentation [DATAROOTDIR/man]
1405  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXvMC]
1406  --htmldir=DIR           html documentation [DOCDIR]
1407  --dvidir=DIR            dvi documentation [DOCDIR]
1408  --pdfdir=DIR            pdf documentation [DOCDIR]
1409  --psdir=DIR             ps documentation [DOCDIR]
1410_ACEOF
1411
1412  cat <<\_ACEOF
1413
1414Program names:
1415  --program-prefix=PREFIX            prepend PREFIX to installed program names
1416  --program-suffix=SUFFIX            append SUFFIX to installed program names
1417  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1418
1419System types:
1420  --build=BUILD     configure for building on BUILD [guessed]
1421  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1422_ACEOF
1423fi
1424
1425if test -n "$ac_init_help"; then
1426  case $ac_init_help in
1427     short | recursive ) echo "Configuration of libXvMC 1.0.10:";;
1428   esac
1429  cat <<\_ACEOF
1430
1431Optional Features:
1432  --disable-option-checking  ignore unrecognized --enable/--with options
1433  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1434  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1435  --enable-silent-rules   less verbose build output (undo: "make V=1")
1436  --disable-silent-rules  verbose build output (undo: "make V=0")
1437  --enable-shared[=PKGS]  build shared libraries [default=yes]
1438  --enable-static[=PKGS]  build static libraries [default=yes]
1439  --enable-fast-install[=PKGS]
1440                          optimize for fast installation [default=yes]
1441  --enable-dependency-tracking
1442                          do not reject slow dependency extractors
1443  --disable-dependency-tracking
1444                          speeds up one-time build
1445  --disable-libtool-lock  avoid locking (might break parallel builds)
1446  --disable-selective-werror
1447                          Turn off selective compiler errors. (default:
1448                          enabled)
1449  --enable-strict-compilation
1450                          Enable all warnings from compiler and make them
1451                          errors (default: disabled)
1452  --enable-malloc0returnsnull
1453                          malloc(0) returns NULL (default: auto)
1454
1455Optional Packages:
1456  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1457  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1458  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1459                          both]
1460  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1461  --with-sysroot=DIR Search for dependent libraries within DIR
1462                        (or the compiler's sysroot if not specified).
1463  --with-lint             Use a lint-style source code checker (default:
1464                          disabled)
1465
1466Some influential environment variables:
1467  CC          C compiler command
1468  CFLAGS      C compiler flags
1469  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1470              nonstandard directory <lib dir>
1471  LIBS        libraries to pass to the linker, e.g. -l<library>
1472  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1473              you have headers in a nonstandard directory <include dir>
1474  CPP         C preprocessor
1475  PKG_CONFIG  path to pkg-config utility
1476  PKG_CONFIG_PATH
1477              directories to add to pkg-config's search path
1478  PKG_CONFIG_LIBDIR
1479              path overriding pkg-config's built-in search path
1480  XVMC_CFLAGS C compiler flags for XVMC, overriding pkg-config
1481  XVMC_LIBS   linker flags for XVMC, overriding pkg-config
1482  LINT        Path to a lint-style command
1483  LINT_FLAGS  Flags for the lint-style command
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
1551libXvMC configure 1.0.10
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_try_link LINENO
1604# -----------------------
1605# Try to link conftest.$ac_ext, and return whether this succeeded.
1606ac_fn_c_try_link ()
1607{
1608  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609  rm -f conftest.$ac_objext conftest$ac_exeext
1610  if { { ac_try="$ac_link"
1611case "(($ac_try" in
1612  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1613  *) ac_try_echo=$ac_try;;
1614esac
1615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1616$as_echo "$ac_try_echo"; } >&5
1617  (eval "$ac_link") 2>conftest.err
1618  ac_status=$?
1619  if test -s conftest.err; then
1620    grep -v '^ *+' conftest.err >conftest.er1
1621    cat conftest.er1 >&5
1622    mv -f conftest.er1 conftest.err
1623  fi
1624  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625  test $ac_status = 0; } && {
1626	 test -z "$ac_c_werror_flag" ||
1627	 test ! -s conftest.err
1628       } && test -s conftest$ac_exeext && {
1629	 test "$cross_compiling" = yes ||
1630	 test -x conftest$ac_exeext
1631       }; then :
1632  ac_retval=0
1633else
1634  $as_echo "$as_me: failed program was:" >&5
1635sed 's/^/| /' conftest.$ac_ext >&5
1636
1637	ac_retval=1
1638fi
1639  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1640  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1641  # interfere with the next link command; also delete a directory that is
1642  # left behind by Apple's compiler.  We do this before executing the actions.
1643  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1644  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645  as_fn_set_status $ac_retval
1646
1647} # ac_fn_c_try_link
1648
1649# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1650# -------------------------------------------------------
1651# Tests whether HEADER exists and can be compiled using the include files in
1652# INCLUDES, setting the cache variable VAR accordingly.
1653ac_fn_c_check_header_compile ()
1654{
1655  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1657$as_echo_n "checking for $2... " >&6; }
1658if eval \${$3+:} false; then :
1659  $as_echo_n "(cached) " >&6
1660else
1661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1662/* end confdefs.h.  */
1663$4
1664#include <$2>
1665_ACEOF
1666if ac_fn_c_try_compile "$LINENO"; then :
1667  eval "$3=yes"
1668else
1669  eval "$3=no"
1670fi
1671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1672fi
1673eval ac_res=\$$3
1674	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1675$as_echo "$ac_res" >&6; }
1676  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677
1678} # ac_fn_c_check_header_compile
1679
1680# ac_fn_c_try_cpp LINENO
1681# ----------------------
1682# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1683ac_fn_c_try_cpp ()
1684{
1685  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686  if { { ac_try="$ac_cpp conftest.$ac_ext"
1687case "(($ac_try" in
1688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689  *) ac_try_echo=$ac_try;;
1690esac
1691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692$as_echo "$ac_try_echo"; } >&5
1693  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1694  ac_status=$?
1695  if test -s conftest.err; then
1696    grep -v '^ *+' conftest.err >conftest.er1
1697    cat conftest.er1 >&5
1698    mv -f conftest.er1 conftest.err
1699  fi
1700  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701  test $ac_status = 0; } > conftest.i && {
1702	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1703	 test ! -s conftest.err
1704       }; then :
1705  ac_retval=0
1706else
1707  $as_echo "$as_me: failed program was:" >&5
1708sed 's/^/| /' conftest.$ac_ext >&5
1709
1710    ac_retval=1
1711fi
1712  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713  as_fn_set_status $ac_retval
1714
1715} # ac_fn_c_try_cpp
1716
1717# ac_fn_c_try_run LINENO
1718# ----------------------
1719# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1720# that executables *can* be run.
1721ac_fn_c_try_run ()
1722{
1723  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724  if { { ac_try="$ac_link"
1725case "(($ac_try" in
1726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727  *) ac_try_echo=$ac_try;;
1728esac
1729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730$as_echo "$ac_try_echo"; } >&5
1731  (eval "$ac_link") 2>&5
1732  ac_status=$?
1733  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1735  { { case "(($ac_try" in
1736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737  *) ac_try_echo=$ac_try;;
1738esac
1739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740$as_echo "$ac_try_echo"; } >&5
1741  (eval "$ac_try") 2>&5
1742  ac_status=$?
1743  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744  test $ac_status = 0; }; }; then :
1745  ac_retval=0
1746else
1747  $as_echo "$as_me: program exited with status $ac_status" >&5
1748       $as_echo "$as_me: failed program was:" >&5
1749sed 's/^/| /' conftest.$ac_ext >&5
1750
1751       ac_retval=$ac_status
1752fi
1753  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1754  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755  as_fn_set_status $ac_retval
1756
1757} # ac_fn_c_try_run
1758
1759# ac_fn_c_check_func LINENO FUNC VAR
1760# ----------------------------------
1761# Tests whether FUNC exists, setting the cache variable VAR accordingly
1762ac_fn_c_check_func ()
1763{
1764  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1766$as_echo_n "checking for $2... " >&6; }
1767if eval \${$3+:} false; then :
1768  $as_echo_n "(cached) " >&6
1769else
1770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1771/* end confdefs.h.  */
1772/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1773   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1774#define $2 innocuous_$2
1775
1776/* System header to define __stub macros and hopefully few prototypes,
1777    which can conflict with char $2 (); below.
1778    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1779    <limits.h> exists even on freestanding compilers.  */
1780
1781#ifdef __STDC__
1782# include <limits.h>
1783#else
1784# include <assert.h>
1785#endif
1786
1787#undef $2
1788
1789/* Override any GCC internal prototype to avoid an error.
1790   Use char because int might match the return type of a GCC
1791   builtin and then its argument prototype would still apply.  */
1792#ifdef __cplusplus
1793extern "C"
1794#endif
1795char $2 ();
1796/* The GNU C library defines this for functions which it implements
1797    to always fail with ENOSYS.  Some functions are actually named
1798    something starting with __ and the normal name is an alias.  */
1799#if defined __stub_$2 || defined __stub___$2
1800choke me
1801#endif
1802
1803int
1804main ()
1805{
1806return $2 ();
1807  ;
1808  return 0;
1809}
1810_ACEOF
1811if ac_fn_c_try_link "$LINENO"; then :
1812  eval "$3=yes"
1813else
1814  eval "$3=no"
1815fi
1816rm -f core conftest.err conftest.$ac_objext \
1817    conftest$ac_exeext conftest.$ac_ext
1818fi
1819eval ac_res=\$$3
1820	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1821$as_echo "$ac_res" >&6; }
1822  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823
1824} # ac_fn_c_check_func
1825
1826# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1827# ---------------------------------------------
1828# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1829# accordingly.
1830ac_fn_c_check_decl ()
1831{
1832  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833  as_decl_name=`echo $2|sed 's/ *(.*//'`
1834  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1835  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1836$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1837if eval \${$3+:} false; then :
1838  $as_echo_n "(cached) " >&6
1839else
1840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841/* end confdefs.h.  */
1842$4
1843int
1844main ()
1845{
1846#ifndef $as_decl_name
1847#ifdef __cplusplus
1848  (void) $as_decl_use;
1849#else
1850  (void) $as_decl_name;
1851#endif
1852#endif
1853
1854  ;
1855  return 0;
1856}
1857_ACEOF
1858if ac_fn_c_try_compile "$LINENO"; then :
1859  eval "$3=yes"
1860else
1861  eval "$3=no"
1862fi
1863rm -f core conftest.err conftest.$ac_objext 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_decl
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 libXvMC $as_me 1.0.10, 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
2226
2227# Initialize Automake
2228am__api_version='1.14'
2229
2230ac_aux_dir=
2231for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2232  if 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/install.sh"; then
2237    ac_aux_dir=$ac_dir
2238    ac_install_sh="$ac_aux_dir/install.sh -c"
2239    break
2240  elif test -f "$ac_dir/shtool"; then
2241    ac_aux_dir=$ac_dir
2242    ac_install_sh="$ac_aux_dir/shtool install -c"
2243    break
2244  fi
2245done
2246if test -z "$ac_aux_dir"; then
2247  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2248fi
2249
2250# These three variables are undocumented and unsupported,
2251# and are intended to be withdrawn in a future Autoconf release.
2252# They can cause serious problems if a builder's source tree is in a directory
2253# whose full name contains unusual characters.
2254ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2255ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2256ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2257
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}" != 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='libXvMC'
2743 VERSION='1.0.10'
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.  The system "awk" is bad on
2778# 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# Initialize libtool
2837case `pwd` in
2838  *\ * | *\	*)
2839    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2840$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2841esac
2842
2843
2844
2845macro_version='2.4.2'
2846macro_revision='1.3337'
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860ltmain="$ac_aux_dir/ltmain.sh"
2861
2862# Make sure we can run config.sub.
2863$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2864  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2865
2866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2867$as_echo_n "checking build system type... " >&6; }
2868if ${ac_cv_build+:} false; then :
2869  $as_echo_n "(cached) " >&6
2870else
2871  ac_build_alias=$build_alias
2872test "x$ac_build_alias" = x &&
2873  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2874test "x$ac_build_alias" = x &&
2875  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2876ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2877  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2878
2879fi
2880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2881$as_echo "$ac_cv_build" >&6; }
2882case $ac_cv_build in
2883*-*-*) ;;
2884*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2885esac
2886build=$ac_cv_build
2887ac_save_IFS=$IFS; IFS='-'
2888set x $ac_cv_build
2889shift
2890build_cpu=$1
2891build_vendor=$2
2892shift; shift
2893# Remember, the first character of IFS is used to create $*,
2894# except with old shells:
2895build_os=$*
2896IFS=$ac_save_IFS
2897case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2898
2899
2900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2901$as_echo_n "checking host system type... " >&6; }
2902if ${ac_cv_host+:} false; then :
2903  $as_echo_n "(cached) " >&6
2904else
2905  if test "x$host_alias" = x; then
2906  ac_cv_host=$ac_cv_build
2907else
2908  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2909    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2910fi
2911
2912fi
2913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2914$as_echo "$ac_cv_host" >&6; }
2915case $ac_cv_host in
2916*-*-*) ;;
2917*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2918esac
2919host=$ac_cv_host
2920ac_save_IFS=$IFS; IFS='-'
2921set x $ac_cv_host
2922shift
2923host_cpu=$1
2924host_vendor=$2
2925shift; shift
2926# Remember, the first character of IFS is used to create $*,
2927# except with old shells:
2928host_os=$*
2929IFS=$ac_save_IFS
2930case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2931
2932
2933# Backslashify metacharacters that are still active within
2934# double-quoted strings.
2935sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2936
2937# Same as above, but do not quote variable references.
2938double_quote_subst='s/\(["`\\]\)/\\\1/g'
2939
2940# Sed substitution to delay expansion of an escaped shell variable in a
2941# double_quote_subst'ed string.
2942delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2943
2944# Sed substitution to delay expansion of an escaped single quote.
2945delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2946
2947# Sed substitution to avoid accidental globbing in evaled expressions
2948no_glob_subst='s/\*/\\\*/g'
2949
2950ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2951ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2952ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2953
2954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2955$as_echo_n "checking how to print strings... " >&6; }
2956# Test print first, because it will be a builtin if present.
2957if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2958   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2959  ECHO='print -r --'
2960elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2961  ECHO='printf %s\n'
2962else
2963  # Use this function as a fallback that always works.
2964  func_fallback_echo ()
2965  {
2966    eval 'cat <<_LTECHO_EOF
2967$1
2968_LTECHO_EOF'
2969  }
2970  ECHO='func_fallback_echo'
2971fi
2972
2973# func_echo_all arg...
2974# Invoke $ECHO with all args, space-separated.
2975func_echo_all ()
2976{
2977    $ECHO ""
2978}
2979
2980case "$ECHO" in
2981  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2982$as_echo "printf" >&6; } ;;
2983  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2984$as_echo "print -r" >&6; } ;;
2985  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2986$as_echo "cat" >&6; } ;;
2987esac
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002DEPDIR="${am__leading_dot}deps"
3003
3004ac_config_commands="$ac_config_commands depfiles"
3005
3006
3007am_make=${MAKE-make}
3008cat > confinc << 'END'
3009am__doit:
3010	@echo this is the am__doit target
3011.PHONY: am__doit
3012END
3013# If we don't find an include directive, just comment out the code.
3014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3015$as_echo_n "checking for style of include used by $am_make... " >&6; }
3016am__include="#"
3017am__quote=
3018_am_result=none
3019# First try GNU make style include.
3020echo "include confinc" > confmf
3021# Ignore all kinds of additional output from 'make'.
3022case `$am_make -s -f confmf 2> /dev/null` in #(
3023*the\ am__doit\ target*)
3024  am__include=include
3025  am__quote=
3026  _am_result=GNU
3027  ;;
3028esac
3029# Now try BSD make style include.
3030if test "$am__include" = "#"; then
3031   echo '.include "confinc"' > confmf
3032   case `$am_make -s -f confmf 2> /dev/null` in #(
3033   *the\ am__doit\ target*)
3034     am__include=.include
3035     am__quote="\""
3036     _am_result=BSD
3037     ;;
3038   esac
3039fi
3040
3041
3042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3043$as_echo "$_am_result" >&6; }
3044rm -f confinc confmf
3045
3046# Check whether --enable-dependency-tracking was given.
3047if test "${enable_dependency_tracking+set}" = set; then :
3048  enableval=$enable_dependency_tracking;
3049fi
3050
3051if test "x$enable_dependency_tracking" != xno; then
3052  am_depcomp="$ac_aux_dir/depcomp"
3053  AMDEPBACKSLASH='\'
3054  am__nodep='_no'
3055fi
3056 if test "x$enable_dependency_tracking" != xno; then
3057  AMDEP_TRUE=
3058  AMDEP_FALSE='#'
3059else
3060  AMDEP_TRUE='#'
3061  AMDEP_FALSE=
3062fi
3063
3064
3065ac_ext=c
3066ac_cpp='$CPP $CPPFLAGS'
3067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3069ac_compiler_gnu=$ac_cv_c_compiler_gnu
3070if test -n "$ac_tool_prefix"; then
3071  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3072set dummy ${ac_tool_prefix}gcc; ac_word=$2
3073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3074$as_echo_n "checking for $ac_word... " >&6; }
3075if ${ac_cv_prog_CC+:} false; then :
3076  $as_echo_n "(cached) " >&6
3077else
3078  if test -n "$CC"; then
3079  ac_cv_prog_CC="$CC" # Let the user override the test.
3080else
3081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082for as_dir in $PATH
3083do
3084  IFS=$as_save_IFS
3085  test -z "$as_dir" && as_dir=.
3086    for ac_exec_ext in '' $ac_executable_extensions; do
3087  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3089    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3090    break 2
3091  fi
3092done
3093  done
3094IFS=$as_save_IFS
3095
3096fi
3097fi
3098CC=$ac_cv_prog_CC
3099if test -n "$CC"; then
3100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3101$as_echo "$CC" >&6; }
3102else
3103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104$as_echo "no" >&6; }
3105fi
3106
3107
3108fi
3109if test -z "$ac_cv_prog_CC"; then
3110  ac_ct_CC=$CC
3111  # Extract the first word of "gcc", so it can be a program name with args.
3112set dummy gcc; ac_word=$2
3113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114$as_echo_n "checking for $ac_word... " >&6; }
3115if ${ac_cv_prog_ac_ct_CC+:} false; then :
3116  $as_echo_n "(cached) " >&6
3117else
3118  if test -n "$ac_ct_CC"; then
3119  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3120else
3121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122for as_dir in $PATH
3123do
3124  IFS=$as_save_IFS
3125  test -z "$as_dir" && as_dir=.
3126    for ac_exec_ext in '' $ac_executable_extensions; do
3127  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3128    ac_cv_prog_ac_ct_CC="gcc"
3129    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3130    break 2
3131  fi
3132done
3133  done
3134IFS=$as_save_IFS
3135
3136fi
3137fi
3138ac_ct_CC=$ac_cv_prog_ac_ct_CC
3139if test -n "$ac_ct_CC"; then
3140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3141$as_echo "$ac_ct_CC" >&6; }
3142else
3143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144$as_echo "no" >&6; }
3145fi
3146
3147  if test "x$ac_ct_CC" = x; then
3148    CC=""
3149  else
3150    case $cross_compiling:$ac_tool_warned in
3151yes:)
3152{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3153$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3154ac_tool_warned=yes ;;
3155esac
3156    CC=$ac_ct_CC
3157  fi
3158else
3159  CC="$ac_cv_prog_CC"
3160fi
3161
3162if test -z "$CC"; then
3163          if test -n "$ac_tool_prefix"; then
3164    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3165set dummy ${ac_tool_prefix}cc; ac_word=$2
3166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167$as_echo_n "checking for $ac_word... " >&6; }
3168if ${ac_cv_prog_CC+:} false; then :
3169  $as_echo_n "(cached) " >&6
3170else
3171  if test -n "$CC"; then
3172  ac_cv_prog_CC="$CC" # Let the user override the test.
3173else
3174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175for as_dir in $PATH
3176do
3177  IFS=$as_save_IFS
3178  test -z "$as_dir" && as_dir=.
3179    for ac_exec_ext in '' $ac_executable_extensions; do
3180  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181    ac_cv_prog_CC="${ac_tool_prefix}cc"
3182    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3183    break 2
3184  fi
3185done
3186  done
3187IFS=$as_save_IFS
3188
3189fi
3190fi
3191CC=$ac_cv_prog_CC
3192if test -n "$CC"; then
3193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3194$as_echo "$CC" >&6; }
3195else
3196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197$as_echo "no" >&6; }
3198fi
3199
3200
3201  fi
3202fi
3203if test -z "$CC"; then
3204  # Extract the first word of "cc", so it can be a program name with args.
3205set dummy cc; ac_word=$2
3206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3207$as_echo_n "checking for $ac_word... " >&6; }
3208if ${ac_cv_prog_CC+:} false; then :
3209  $as_echo_n "(cached) " >&6
3210else
3211  if test -n "$CC"; then
3212  ac_cv_prog_CC="$CC" # Let the user override the test.
3213else
3214  ac_prog_rejected=no
3215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216for as_dir in $PATH
3217do
3218  IFS=$as_save_IFS
3219  test -z "$as_dir" && as_dir=.
3220    for ac_exec_ext in '' $ac_executable_extensions; do
3221  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3222    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3223       ac_prog_rejected=yes
3224       continue
3225     fi
3226    ac_cv_prog_CC="cc"
3227    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3228    break 2
3229  fi
3230done
3231  done
3232IFS=$as_save_IFS
3233
3234if test $ac_prog_rejected = yes; then
3235  # We found a bogon in the path, so make sure we never use it.
3236  set dummy $ac_cv_prog_CC
3237  shift
3238  if test $# != 0; then
3239    # We chose a different compiler from the bogus one.
3240    # However, it has the same basename, so the bogon will be chosen
3241    # first if we set CC to just the basename; use the full file name.
3242    shift
3243    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3244  fi
3245fi
3246fi
3247fi
3248CC=$ac_cv_prog_CC
3249if test -n "$CC"; then
3250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3251$as_echo "$CC" >&6; }
3252else
3253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254$as_echo "no" >&6; }
3255fi
3256
3257
3258fi
3259if test -z "$CC"; then
3260  if test -n "$ac_tool_prefix"; then
3261  for ac_prog in cl.exe
3262  do
3263    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3264set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266$as_echo_n "checking for $ac_word... " >&6; }
3267if ${ac_cv_prog_CC+:} false; then :
3268  $as_echo_n "(cached) " >&6
3269else
3270  if test -n "$CC"; then
3271  ac_cv_prog_CC="$CC" # Let the user override the test.
3272else
3273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274for as_dir in $PATH
3275do
3276  IFS=$as_save_IFS
3277  test -z "$as_dir" && as_dir=.
3278    for ac_exec_ext in '' $ac_executable_extensions; do
3279  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3280    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3281    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3282    break 2
3283  fi
3284done
3285  done
3286IFS=$as_save_IFS
3287
3288fi
3289fi
3290CC=$ac_cv_prog_CC
3291if test -n "$CC"; then
3292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3293$as_echo "$CC" >&6; }
3294else
3295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296$as_echo "no" >&6; }
3297fi
3298
3299
3300    test -n "$CC" && break
3301  done
3302fi
3303if test -z "$CC"; then
3304  ac_ct_CC=$CC
3305  for ac_prog in cl.exe
3306do
3307  # Extract the first word of "$ac_prog", so it can be a program name with args.
3308set dummy $ac_prog; ac_word=$2
3309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3310$as_echo_n "checking for $ac_word... " >&6; }
3311if ${ac_cv_prog_ac_ct_CC+:} false; then :
3312  $as_echo_n "(cached) " >&6
3313else
3314  if test -n "$ac_ct_CC"; then
3315  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3316else
3317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318for as_dir in $PATH
3319do
3320  IFS=$as_save_IFS
3321  test -z "$as_dir" && as_dir=.
3322    for ac_exec_ext in '' $ac_executable_extensions; do
3323  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3324    ac_cv_prog_ac_ct_CC="$ac_prog"
3325    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3326    break 2
3327  fi
3328done
3329  done
3330IFS=$as_save_IFS
3331
3332fi
3333fi
3334ac_ct_CC=$ac_cv_prog_ac_ct_CC
3335if test -n "$ac_ct_CC"; then
3336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3337$as_echo "$ac_ct_CC" >&6; }
3338else
3339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3340$as_echo "no" >&6; }
3341fi
3342
3343
3344  test -n "$ac_ct_CC" && break
3345done
3346
3347  if test "x$ac_ct_CC" = x; then
3348    CC=""
3349  else
3350    case $cross_compiling:$ac_tool_warned in
3351yes:)
3352{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3354ac_tool_warned=yes ;;
3355esac
3356    CC=$ac_ct_CC
3357  fi
3358fi
3359
3360fi
3361
3362
3363test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3365as_fn_error $? "no acceptable C compiler found in \$PATH
3366See \`config.log' for more details" "$LINENO" 5; }
3367
3368# Provide some information about the compiler.
3369$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3370set X $ac_compile
3371ac_compiler=$2
3372for ac_option in --version -v -V -qversion; do
3373  { { ac_try="$ac_compiler $ac_option >&5"
3374case "(($ac_try" in
3375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376  *) ac_try_echo=$ac_try;;
3377esac
3378eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3379$as_echo "$ac_try_echo"; } >&5
3380  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3381  ac_status=$?
3382  if test -s conftest.err; then
3383    sed '10a\
3384... rest of stderr output deleted ...
3385         10q' conftest.err >conftest.er1
3386    cat conftest.er1 >&5
3387  fi
3388  rm -f conftest.er1 conftest.err
3389  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390  test $ac_status = 0; }
3391done
3392
3393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394/* end confdefs.h.  */
3395
3396int
3397main ()
3398{
3399
3400  ;
3401  return 0;
3402}
3403_ACEOF
3404ac_clean_files_save=$ac_clean_files
3405ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3406# Try to create an executable without -o first, disregard a.out.
3407# It will help us diagnose broken compilers, and finding out an intuition
3408# of exeext.
3409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3410$as_echo_n "checking whether the C compiler works... " >&6; }
3411ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3412
3413# The possible output files:
3414ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3415
3416ac_rmfiles=
3417for ac_file in $ac_files
3418do
3419  case $ac_file in
3420    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3421    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3422  esac
3423done
3424rm -f $ac_rmfiles
3425
3426if { { ac_try="$ac_link_default"
3427case "(($ac_try" in
3428  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429  *) ac_try_echo=$ac_try;;
3430esac
3431eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432$as_echo "$ac_try_echo"; } >&5
3433  (eval "$ac_link_default") 2>&5
3434  ac_status=$?
3435  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3436  test $ac_status = 0; }; then :
3437  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3438# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3439# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3440# so that the user can short-circuit this test for compilers unknown to
3441# Autoconf.
3442for ac_file in $ac_files ''
3443do
3444  test -f "$ac_file" || continue
3445  case $ac_file in
3446    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3447	;;
3448    [ab].out )
3449	# We found the default executable, but exeext='' is most
3450	# certainly right.
3451	break;;
3452    *.* )
3453	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3454	then :; else
3455	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3456	fi
3457	# We set ac_cv_exeext here because the later test for it is not
3458	# safe: cross compilers may not add the suffix if given an `-o'
3459	# argument, so we may need to know it at that point already.
3460	# Even if this section looks crufty: it has the advantage of
3461	# actually working.
3462	break;;
3463    * )
3464	break;;
3465  esac
3466done
3467test "$ac_cv_exeext" = no && ac_cv_exeext=
3468
3469else
3470  ac_file=''
3471fi
3472if test -z "$ac_file"; then :
3473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474$as_echo "no" >&6; }
3475$as_echo "$as_me: failed program was:" >&5
3476sed 's/^/| /' conftest.$ac_ext >&5
3477
3478{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3479$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3480as_fn_error 77 "C compiler cannot create executables
3481See \`config.log' for more details" "$LINENO" 5; }
3482else
3483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3484$as_echo "yes" >&6; }
3485fi
3486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3487$as_echo_n "checking for C compiler default output file name... " >&6; }
3488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3489$as_echo "$ac_file" >&6; }
3490ac_exeext=$ac_cv_exeext
3491
3492rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3493ac_clean_files=$ac_clean_files_save
3494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3495$as_echo_n "checking for suffix of executables... " >&6; }
3496if { { ac_try="$ac_link"
3497case "(($ac_try" in
3498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499  *) ac_try_echo=$ac_try;;
3500esac
3501eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3502$as_echo "$ac_try_echo"; } >&5
3503  (eval "$ac_link") 2>&5
3504  ac_status=$?
3505  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3506  test $ac_status = 0; }; then :
3507  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3508# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3509# work properly (i.e., refer to `conftest.exe'), while it won't with
3510# `rm'.
3511for ac_file in conftest.exe conftest conftest.*; do
3512  test -f "$ac_file" || continue
3513  case $ac_file in
3514    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3515    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3516	  break;;
3517    * ) break;;
3518  esac
3519done
3520else
3521  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3522$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3523as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3524See \`config.log' for more details" "$LINENO" 5; }
3525fi
3526rm -f conftest conftest$ac_cv_exeext
3527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3528$as_echo "$ac_cv_exeext" >&6; }
3529
3530rm -f conftest.$ac_ext
3531EXEEXT=$ac_cv_exeext
3532ac_exeext=$EXEEXT
3533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534/* end confdefs.h.  */
3535#include <stdio.h>
3536int
3537main ()
3538{
3539FILE *f = fopen ("conftest.out", "w");
3540 return ferror (f) || fclose (f) != 0;
3541
3542  ;
3543  return 0;
3544}
3545_ACEOF
3546ac_clean_files="$ac_clean_files conftest.out"
3547# Check that the compiler produces executables we can run.  If not, either
3548# the compiler is broken, or we cross compile.
3549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3550$as_echo_n "checking whether we are cross compiling... " >&6; }
3551if test "$cross_compiling" != yes; then
3552  { { ac_try="$ac_link"
3553case "(($ac_try" in
3554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555  *) ac_try_echo=$ac_try;;
3556esac
3557eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3558$as_echo "$ac_try_echo"; } >&5
3559  (eval "$ac_link") 2>&5
3560  ac_status=$?
3561  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3562  test $ac_status = 0; }
3563  if { ac_try='./conftest$ac_cv_exeext'
3564  { { case "(($ac_try" in
3565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566  *) ac_try_echo=$ac_try;;
3567esac
3568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3569$as_echo "$ac_try_echo"; } >&5
3570  (eval "$ac_try") 2>&5
3571  ac_status=$?
3572  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573  test $ac_status = 0; }; }; then
3574    cross_compiling=no
3575  else
3576    if test "$cross_compiling" = maybe; then
3577	cross_compiling=yes
3578    else
3579	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3580$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3581as_fn_error $? "cannot run C compiled programs.
3582If you meant to cross compile, use \`--host'.
3583See \`config.log' for more details" "$LINENO" 5; }
3584    fi
3585  fi
3586fi
3587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3588$as_echo "$cross_compiling" >&6; }
3589
3590rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3591ac_clean_files=$ac_clean_files_save
3592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3593$as_echo_n "checking for suffix of object files... " >&6; }
3594if ${ac_cv_objext+:} false; then :
3595  $as_echo_n "(cached) " >&6
3596else
3597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598/* end confdefs.h.  */
3599
3600int
3601main ()
3602{
3603
3604  ;
3605  return 0;
3606}
3607_ACEOF
3608rm -f conftest.o conftest.obj
3609if { { ac_try="$ac_compile"
3610case "(($ac_try" in
3611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612  *) ac_try_echo=$ac_try;;
3613esac
3614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3615$as_echo "$ac_try_echo"; } >&5
3616  (eval "$ac_compile") 2>&5
3617  ac_status=$?
3618  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3619  test $ac_status = 0; }; then :
3620  for ac_file in conftest.o conftest.obj conftest.*; do
3621  test -f "$ac_file" || continue;
3622  case $ac_file in
3623    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3624    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3625       break;;
3626  esac
3627done
3628else
3629  $as_echo "$as_me: failed program was:" >&5
3630sed 's/^/| /' conftest.$ac_ext >&5
3631
3632{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3633$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3634as_fn_error $? "cannot compute suffix of object files: cannot compile
3635See \`config.log' for more details" "$LINENO" 5; }
3636fi
3637rm -f conftest.$ac_cv_objext conftest.$ac_ext
3638fi
3639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3640$as_echo "$ac_cv_objext" >&6; }
3641OBJEXT=$ac_cv_objext
3642ac_objext=$OBJEXT
3643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3644$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3645if ${ac_cv_c_compiler_gnu+:} false; then :
3646  $as_echo_n "(cached) " >&6
3647else
3648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649/* end confdefs.h.  */
3650
3651int
3652main ()
3653{
3654#ifndef __GNUC__
3655       choke me
3656#endif
3657
3658  ;
3659  return 0;
3660}
3661_ACEOF
3662if ac_fn_c_try_compile "$LINENO"; then :
3663  ac_compiler_gnu=yes
3664else
3665  ac_compiler_gnu=no
3666fi
3667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3668ac_cv_c_compiler_gnu=$ac_compiler_gnu
3669
3670fi
3671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3672$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3673if test $ac_compiler_gnu = yes; then
3674  GCC=yes
3675else
3676  GCC=
3677fi
3678ac_test_CFLAGS=${CFLAGS+set}
3679ac_save_CFLAGS=$CFLAGS
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3681$as_echo_n "checking whether $CC accepts -g... " >&6; }
3682if ${ac_cv_prog_cc_g+:} false; then :
3683  $as_echo_n "(cached) " >&6
3684else
3685  ac_save_c_werror_flag=$ac_c_werror_flag
3686   ac_c_werror_flag=yes
3687   ac_cv_prog_cc_g=no
3688   CFLAGS="-g"
3689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690/* end confdefs.h.  */
3691
3692int
3693main ()
3694{
3695
3696  ;
3697  return 0;
3698}
3699_ACEOF
3700if ac_fn_c_try_compile "$LINENO"; then :
3701  ac_cv_prog_cc_g=yes
3702else
3703  CFLAGS=""
3704      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705/* end confdefs.h.  */
3706
3707int
3708main ()
3709{
3710
3711  ;
3712  return 0;
3713}
3714_ACEOF
3715if ac_fn_c_try_compile "$LINENO"; then :
3716
3717else
3718  ac_c_werror_flag=$ac_save_c_werror_flag
3719	 CFLAGS="-g"
3720	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721/* end confdefs.h.  */
3722
3723int
3724main ()
3725{
3726
3727  ;
3728  return 0;
3729}
3730_ACEOF
3731if ac_fn_c_try_compile "$LINENO"; then :
3732  ac_cv_prog_cc_g=yes
3733fi
3734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735fi
3736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3737fi
3738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3739   ac_c_werror_flag=$ac_save_c_werror_flag
3740fi
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3742$as_echo "$ac_cv_prog_cc_g" >&6; }
3743if test "$ac_test_CFLAGS" = set; then
3744  CFLAGS=$ac_save_CFLAGS
3745elif test $ac_cv_prog_cc_g = yes; then
3746  if test "$GCC" = yes; then
3747    CFLAGS="-g -O2"
3748  else
3749    CFLAGS="-g"
3750  fi
3751else
3752  if test "$GCC" = yes; then
3753    CFLAGS="-O2"
3754  else
3755    CFLAGS=
3756  fi
3757fi
3758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3759$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3760if ${ac_cv_prog_cc_c89+:} false; then :
3761  $as_echo_n "(cached) " >&6
3762else
3763  ac_cv_prog_cc_c89=no
3764ac_save_CC=$CC
3765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766/* end confdefs.h.  */
3767#include <stdarg.h>
3768#include <stdio.h>
3769struct stat;
3770/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3771struct buf { int x; };
3772FILE * (*rcsopen) (struct buf *, struct stat *, int);
3773static char *e (p, i)
3774     char **p;
3775     int i;
3776{
3777  return p[i];
3778}
3779static char *f (char * (*g) (char **, int), char **p, ...)
3780{
3781  char *s;
3782  va_list v;
3783  va_start (v,p);
3784  s = g (p, va_arg (v,int));
3785  va_end (v);
3786  return s;
3787}
3788
3789/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3790   function prototypes and stuff, but not '\xHH' hex character constants.
3791   These don't provoke an error unfortunately, instead are silently treated
3792   as 'x'.  The following induces an error, until -std is added to get
3793   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3794   array size at least.  It's necessary to write '\x00'==0 to get something
3795   that's true only with -std.  */
3796int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3797
3798/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3799   inside strings and character constants.  */
3800#define FOO(x) 'x'
3801int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3802
3803int test (int i, double x);
3804struct s1 {int (*f) (int a);};
3805struct s2 {int (*f) (double a);};
3806int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3807int argc;
3808char **argv;
3809int
3810main ()
3811{
3812return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3813  ;
3814  return 0;
3815}
3816_ACEOF
3817for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3818	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3819do
3820  CC="$ac_save_CC $ac_arg"
3821  if ac_fn_c_try_compile "$LINENO"; then :
3822  ac_cv_prog_cc_c89=$ac_arg
3823fi
3824rm -f core conftest.err conftest.$ac_objext
3825  test "x$ac_cv_prog_cc_c89" != "xno" && break
3826done
3827rm -f conftest.$ac_ext
3828CC=$ac_save_CC
3829
3830fi
3831# AC_CACHE_VAL
3832case "x$ac_cv_prog_cc_c89" in
3833  x)
3834    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3835$as_echo "none needed" >&6; } ;;
3836  xno)
3837    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3838$as_echo "unsupported" >&6; } ;;
3839  *)
3840    CC="$CC $ac_cv_prog_cc_c89"
3841    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3842$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3843esac
3844if test "x$ac_cv_prog_cc_c89" != xno; then :
3845
3846fi
3847
3848ac_ext=c
3849ac_cpp='$CPP $CPPFLAGS'
3850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3852ac_compiler_gnu=$ac_cv_c_compiler_gnu
3853
3854ac_ext=c
3855ac_cpp='$CPP $CPPFLAGS'
3856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3858ac_compiler_gnu=$ac_cv_c_compiler_gnu
3859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3860$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3861if ${am_cv_prog_cc_c_o+:} false; then :
3862  $as_echo_n "(cached) " >&6
3863else
3864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865/* end confdefs.h.  */
3866
3867int
3868main ()
3869{
3870
3871  ;
3872  return 0;
3873}
3874_ACEOF
3875  # Make sure it works both with $CC and with simple cc.
3876  # Following AC_PROG_CC_C_O, we do the test twice because some
3877  # compilers refuse to overwrite an existing .o file with -o,
3878  # though they will create one.
3879  am_cv_prog_cc_c_o=yes
3880  for am_i in 1 2; do
3881    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3882   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3883   ac_status=$?
3884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885   (exit $ac_status); } \
3886         && test -f conftest2.$ac_objext; then
3887      : OK
3888    else
3889      am_cv_prog_cc_c_o=no
3890      break
3891    fi
3892  done
3893  rm -f core conftest*
3894  unset am_i
3895fi
3896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3897$as_echo "$am_cv_prog_cc_c_o" >&6; }
3898if test "$am_cv_prog_cc_c_o" != yes; then
3899   # Losing compiler, so override with the script.
3900   # FIXME: It is wrong to rewrite CC.
3901   # But if we don't then we get into trouble of one sort or another.
3902   # A longer-term fix would be to have automake use am__CC in this case,
3903   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3904   CC="$am_aux_dir/compile $CC"
3905fi
3906ac_ext=c
3907ac_cpp='$CPP $CPPFLAGS'
3908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3910ac_compiler_gnu=$ac_cv_c_compiler_gnu
3911
3912
3913depcc="$CC"   am_compiler_list=
3914
3915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3916$as_echo_n "checking dependency style of $depcc... " >&6; }
3917if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3918  $as_echo_n "(cached) " >&6
3919else
3920  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3921  # We make a subdir and do the tests there.  Otherwise we can end up
3922  # making bogus files that we don't know about and never remove.  For
3923  # instance it was reported that on HP-UX the gcc test will end up
3924  # making a dummy file named 'D' -- because '-MD' means "put the output
3925  # in D".
3926  rm -rf conftest.dir
3927  mkdir conftest.dir
3928  # Copy depcomp to subdir because otherwise we won't find it if we're
3929  # using a relative directory.
3930  cp "$am_depcomp" conftest.dir
3931  cd conftest.dir
3932  # We will build objects and dependencies in a subdirectory because
3933  # it helps to detect inapplicable dependency modes.  For instance
3934  # both Tru64's cc and ICC support -MD to output dependencies as a
3935  # side effect of compilation, but ICC will put the dependencies in
3936  # the current directory while Tru64 will put them in the object
3937  # directory.
3938  mkdir sub
3939
3940  am_cv_CC_dependencies_compiler_type=none
3941  if test "$am_compiler_list" = ""; then
3942     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3943  fi
3944  am__universal=false
3945  case " $depcc " in #(
3946     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3947     esac
3948
3949  for depmode in $am_compiler_list; do
3950    # Setup a source with many dependencies, because some compilers
3951    # like to wrap large dependency lists on column 80 (with \), and
3952    # we should not choose a depcomp mode which is confused by this.
3953    #
3954    # We need to recreate these files for each test, as the compiler may
3955    # overwrite some of them when testing with obscure command lines.
3956    # This happens at least with the AIX C compiler.
3957    : > sub/conftest.c
3958    for i in 1 2 3 4 5 6; do
3959      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3960      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3961      # Solaris 10 /bin/sh.
3962      echo '/* dummy */' > sub/conftst$i.h
3963    done
3964    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3965
3966    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3967    # mode.  It turns out that the SunPro C++ compiler does not properly
3968    # handle '-M -o', and we need to detect this.  Also, some Intel
3969    # versions had trouble with output in subdirs.
3970    am__obj=sub/conftest.${OBJEXT-o}
3971    am__minus_obj="-o $am__obj"
3972    case $depmode in
3973    gcc)
3974      # This depmode causes a compiler race in universal mode.
3975      test "$am__universal" = false || continue
3976      ;;
3977    nosideeffect)
3978      # After this tag, mechanisms are not by side-effect, so they'll
3979      # only be used when explicitly requested.
3980      if test "x$enable_dependency_tracking" = xyes; then
3981	continue
3982      else
3983	break
3984      fi
3985      ;;
3986    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3987      # This compiler won't grok '-c -o', but also, the minuso test has
3988      # not run yet.  These depmodes are late enough in the game, and
3989      # so weak that their functioning should not be impacted.
3990      am__obj=conftest.${OBJEXT-o}
3991      am__minus_obj=
3992      ;;
3993    none) break ;;
3994    esac
3995    if depmode=$depmode \
3996       source=sub/conftest.c object=$am__obj \
3997       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3998       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3999         >/dev/null 2>conftest.err &&
4000       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4001       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4002       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4003       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4004      # icc doesn't choke on unknown options, it will just issue warnings
4005      # or remarks (even with -Werror).  So we grep stderr for any message
4006      # that says an option was ignored or not supported.
4007      # When given -MP, icc 7.0 and 7.1 complain thusly:
4008      #   icc: Command line warning: ignoring option '-M'; no argument required
4009      # The diagnosis changed in icc 8.0:
4010      #   icc: Command line remark: option '-MP' not supported
4011      if (grep 'ignoring option' conftest.err ||
4012          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4013        am_cv_CC_dependencies_compiler_type=$depmode
4014        break
4015      fi
4016    fi
4017  done
4018
4019  cd ..
4020  rm -rf conftest.dir
4021else
4022  am_cv_CC_dependencies_compiler_type=none
4023fi
4024
4025fi
4026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4027$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4028CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4029
4030 if
4031  test "x$enable_dependency_tracking" != xno \
4032  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4033  am__fastdepCC_TRUE=
4034  am__fastdepCC_FALSE='#'
4035else
4036  am__fastdepCC_TRUE='#'
4037  am__fastdepCC_FALSE=
4038fi
4039
4040
4041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4042$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4043if ${ac_cv_path_SED+:} false; then :
4044  $as_echo_n "(cached) " >&6
4045else
4046            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4047     for ac_i in 1 2 3 4 5 6 7; do
4048       ac_script="$ac_script$as_nl$ac_script"
4049     done
4050     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4051     { ac_script=; unset ac_script;}
4052     if test -z "$SED"; then
4053  ac_path_SED_found=false
4054  # Loop through the user's path and test for each of PROGNAME-LIST
4055  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056for as_dir in $PATH
4057do
4058  IFS=$as_save_IFS
4059  test -z "$as_dir" && as_dir=.
4060    for ac_prog in sed gsed; do
4061    for ac_exec_ext in '' $ac_executable_extensions; do
4062      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4063      as_fn_executable_p "$ac_path_SED" || continue
4064# Check for GNU ac_path_SED and select it if it is found.
4065  # Check for GNU $ac_path_SED
4066case `"$ac_path_SED" --version 2>&1` in
4067*GNU*)
4068  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4069*)
4070  ac_count=0
4071  $as_echo_n 0123456789 >"conftest.in"
4072  while :
4073  do
4074    cat "conftest.in" "conftest.in" >"conftest.tmp"
4075    mv "conftest.tmp" "conftest.in"
4076    cp "conftest.in" "conftest.nl"
4077    $as_echo '' >> "conftest.nl"
4078    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4079    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4080    as_fn_arith $ac_count + 1 && ac_count=$as_val
4081    if test $ac_count -gt ${ac_path_SED_max-0}; then
4082      # Best one so far, save it but keep looking for a better one
4083      ac_cv_path_SED="$ac_path_SED"
4084      ac_path_SED_max=$ac_count
4085    fi
4086    # 10*(2^10) chars as input seems more than enough
4087    test $ac_count -gt 10 && break
4088  done
4089  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4090esac
4091
4092      $ac_path_SED_found && break 3
4093    done
4094  done
4095  done
4096IFS=$as_save_IFS
4097  if test -z "$ac_cv_path_SED"; then
4098    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4099  fi
4100else
4101  ac_cv_path_SED=$SED
4102fi
4103
4104fi
4105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4106$as_echo "$ac_cv_path_SED" >&6; }
4107 SED="$ac_cv_path_SED"
4108  rm -f conftest.sed
4109
4110test -z "$SED" && SED=sed
4111Xsed="$SED -e 1s/^X//"
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4124$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4125if ${ac_cv_path_GREP+:} false; then :
4126  $as_echo_n "(cached) " >&6
4127else
4128  if test -z "$GREP"; then
4129  ac_path_GREP_found=false
4130  # Loop through the user's path and test for each of PROGNAME-LIST
4131  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4133do
4134  IFS=$as_save_IFS
4135  test -z "$as_dir" && as_dir=.
4136    for ac_prog in grep ggrep; do
4137    for ac_exec_ext in '' $ac_executable_extensions; do
4138      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4139      as_fn_executable_p "$ac_path_GREP" || continue
4140# Check for GNU ac_path_GREP and select it if it is found.
4141  # Check for GNU $ac_path_GREP
4142case `"$ac_path_GREP" --version 2>&1` in
4143*GNU*)
4144  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4145*)
4146  ac_count=0
4147  $as_echo_n 0123456789 >"conftest.in"
4148  while :
4149  do
4150    cat "conftest.in" "conftest.in" >"conftest.tmp"
4151    mv "conftest.tmp" "conftest.in"
4152    cp "conftest.in" "conftest.nl"
4153    $as_echo 'GREP' >> "conftest.nl"
4154    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4155    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4156    as_fn_arith $ac_count + 1 && ac_count=$as_val
4157    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4158      # Best one so far, save it but keep looking for a better one
4159      ac_cv_path_GREP="$ac_path_GREP"
4160      ac_path_GREP_max=$ac_count
4161    fi
4162    # 10*(2^10) chars as input seems more than enough
4163    test $ac_count -gt 10 && break
4164  done
4165  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4166esac
4167
4168      $ac_path_GREP_found && break 3
4169    done
4170  done
4171  done
4172IFS=$as_save_IFS
4173  if test -z "$ac_cv_path_GREP"; then
4174    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4175  fi
4176else
4177  ac_cv_path_GREP=$GREP
4178fi
4179
4180fi
4181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4182$as_echo "$ac_cv_path_GREP" >&6; }
4183 GREP="$ac_cv_path_GREP"
4184
4185
4186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4187$as_echo_n "checking for egrep... " >&6; }
4188if ${ac_cv_path_EGREP+:} false; then :
4189  $as_echo_n "(cached) " >&6
4190else
4191  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4192   then ac_cv_path_EGREP="$GREP -E"
4193   else
4194     if test -z "$EGREP"; then
4195  ac_path_EGREP_found=false
4196  # Loop through the user's path and test for each of PROGNAME-LIST
4197  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4199do
4200  IFS=$as_save_IFS
4201  test -z "$as_dir" && as_dir=.
4202    for ac_prog in egrep; do
4203    for ac_exec_ext in '' $ac_executable_extensions; do
4204      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4205      as_fn_executable_p "$ac_path_EGREP" || continue
4206# Check for GNU ac_path_EGREP and select it if it is found.
4207  # Check for GNU $ac_path_EGREP
4208case `"$ac_path_EGREP" --version 2>&1` in
4209*GNU*)
4210  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4211*)
4212  ac_count=0
4213  $as_echo_n 0123456789 >"conftest.in"
4214  while :
4215  do
4216    cat "conftest.in" "conftest.in" >"conftest.tmp"
4217    mv "conftest.tmp" "conftest.in"
4218    cp "conftest.in" "conftest.nl"
4219    $as_echo 'EGREP' >> "conftest.nl"
4220    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4221    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4222    as_fn_arith $ac_count + 1 && ac_count=$as_val
4223    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4224      # Best one so far, save it but keep looking for a better one
4225      ac_cv_path_EGREP="$ac_path_EGREP"
4226      ac_path_EGREP_max=$ac_count
4227    fi
4228    # 10*(2^10) chars as input seems more than enough
4229    test $ac_count -gt 10 && break
4230  done
4231  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4232esac
4233
4234      $ac_path_EGREP_found && break 3
4235    done
4236  done
4237  done
4238IFS=$as_save_IFS
4239  if test -z "$ac_cv_path_EGREP"; then
4240    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4241  fi
4242else
4243  ac_cv_path_EGREP=$EGREP
4244fi
4245
4246   fi
4247fi
4248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4249$as_echo "$ac_cv_path_EGREP" >&6; }
4250 EGREP="$ac_cv_path_EGREP"
4251
4252
4253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4254$as_echo_n "checking for fgrep... " >&6; }
4255if ${ac_cv_path_FGREP+:} false; then :
4256  $as_echo_n "(cached) " >&6
4257else
4258  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4259   then ac_cv_path_FGREP="$GREP -F"
4260   else
4261     if test -z "$FGREP"; then
4262  ac_path_FGREP_found=false
4263  # Loop through the user's path and test for each of PROGNAME-LIST
4264  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4265for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4266do
4267  IFS=$as_save_IFS
4268  test -z "$as_dir" && as_dir=.
4269    for ac_prog in fgrep; do
4270    for ac_exec_ext in '' $ac_executable_extensions; do
4271      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4272      as_fn_executable_p "$ac_path_FGREP" || continue
4273# Check for GNU ac_path_FGREP and select it if it is found.
4274  # Check for GNU $ac_path_FGREP
4275case `"$ac_path_FGREP" --version 2>&1` in
4276*GNU*)
4277  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4278*)
4279  ac_count=0
4280  $as_echo_n 0123456789 >"conftest.in"
4281  while :
4282  do
4283    cat "conftest.in" "conftest.in" >"conftest.tmp"
4284    mv "conftest.tmp" "conftest.in"
4285    cp "conftest.in" "conftest.nl"
4286    $as_echo 'FGREP' >> "conftest.nl"
4287    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4288    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4289    as_fn_arith $ac_count + 1 && ac_count=$as_val
4290    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4291      # Best one so far, save it but keep looking for a better one
4292      ac_cv_path_FGREP="$ac_path_FGREP"
4293      ac_path_FGREP_max=$ac_count
4294    fi
4295    # 10*(2^10) chars as input seems more than enough
4296    test $ac_count -gt 10 && break
4297  done
4298  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4299esac
4300
4301      $ac_path_FGREP_found && break 3
4302    done
4303  done
4304  done
4305IFS=$as_save_IFS
4306  if test -z "$ac_cv_path_FGREP"; then
4307    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4308  fi
4309else
4310  ac_cv_path_FGREP=$FGREP
4311fi
4312
4313   fi
4314fi
4315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4316$as_echo "$ac_cv_path_FGREP" >&6; }
4317 FGREP="$ac_cv_path_FGREP"
4318
4319
4320test -z "$GREP" && GREP=grep
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340# Check whether --with-gnu-ld was given.
4341if test "${with_gnu_ld+set}" = set; then :
4342  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4343else
4344  with_gnu_ld=no
4345fi
4346
4347ac_prog=ld
4348if test "$GCC" = yes; then
4349  # Check if gcc -print-prog-name=ld gives a path.
4350  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4351$as_echo_n "checking for ld used by $CC... " >&6; }
4352  case $host in
4353  *-*-mingw*)
4354    # gcc leaves a trailing carriage return which upsets mingw
4355    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4356  *)
4357    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4358  esac
4359  case $ac_prog in
4360    # Accept absolute paths.
4361    [\\/]* | ?:[\\/]*)
4362      re_direlt='/[^/][^/]*/\.\./'
4363      # Canonicalize the pathname of ld
4364      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4365      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4366	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4367      done
4368      test -z "$LD" && LD="$ac_prog"
4369      ;;
4370  "")
4371    # If it fails, then pretend we aren't using GCC.
4372    ac_prog=ld
4373    ;;
4374  *)
4375    # If it is relative, then search for the first ld in PATH.
4376    with_gnu_ld=unknown
4377    ;;
4378  esac
4379elif test "$with_gnu_ld" = yes; then
4380  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4381$as_echo_n "checking for GNU ld... " >&6; }
4382else
4383  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4384$as_echo_n "checking for non-GNU ld... " >&6; }
4385fi
4386if ${lt_cv_path_LD+:} false; then :
4387  $as_echo_n "(cached) " >&6
4388else
4389  if test -z "$LD"; then
4390  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4391  for ac_dir in $PATH; do
4392    IFS="$lt_save_ifs"
4393    test -z "$ac_dir" && ac_dir=.
4394    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4395      lt_cv_path_LD="$ac_dir/$ac_prog"
4396      # Check to see if the program is GNU ld.  I'd rather use --version,
4397      # but apparently some variants of GNU ld only accept -v.
4398      # Break only if it was the GNU/non-GNU ld that we prefer.
4399      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4400      *GNU* | *'with BFD'*)
4401	test "$with_gnu_ld" != no && break
4402	;;
4403      *)
4404	test "$with_gnu_ld" != yes && break
4405	;;
4406      esac
4407    fi
4408  done
4409  IFS="$lt_save_ifs"
4410else
4411  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4412fi
4413fi
4414
4415LD="$lt_cv_path_LD"
4416if test -n "$LD"; then
4417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4418$as_echo "$LD" >&6; }
4419else
4420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4421$as_echo "no" >&6; }
4422fi
4423test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4425$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4426if ${lt_cv_prog_gnu_ld+:} false; then :
4427  $as_echo_n "(cached) " >&6
4428else
4429  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4430case `$LD -v 2>&1 </dev/null` in
4431*GNU* | *'with BFD'*)
4432  lt_cv_prog_gnu_ld=yes
4433  ;;
4434*)
4435  lt_cv_prog_gnu_ld=no
4436  ;;
4437esac
4438fi
4439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4440$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4441with_gnu_ld=$lt_cv_prog_gnu_ld
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4452$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4453if ${lt_cv_path_NM+:} false; then :
4454  $as_echo_n "(cached) " >&6
4455else
4456  if test -n "$NM"; then
4457  # Let the user override the test.
4458  lt_cv_path_NM="$NM"
4459else
4460  lt_nm_to_check="${ac_tool_prefix}nm"
4461  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4462    lt_nm_to_check="$lt_nm_to_check nm"
4463  fi
4464  for lt_tmp_nm in $lt_nm_to_check; do
4465    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4466    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4467      IFS="$lt_save_ifs"
4468      test -z "$ac_dir" && ac_dir=.
4469      tmp_nm="$ac_dir/$lt_tmp_nm"
4470      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4471	# Check to see if the nm accepts a BSD-compat flag.
4472	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4473	#   nm: unknown option "B" ignored
4474	# Tru64's nm complains that /dev/null is an invalid object file
4475	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4476	*/dev/null* | *'Invalid file or object type'*)
4477	  lt_cv_path_NM="$tmp_nm -B"
4478	  break
4479	  ;;
4480	*)
4481	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4482	  */dev/null*)
4483	    lt_cv_path_NM="$tmp_nm -p"
4484	    break
4485	    ;;
4486	  *)
4487	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4488	    continue # so that we can try to find one that supports BSD flags
4489	    ;;
4490	  esac
4491	  ;;
4492	esac
4493      fi
4494    done
4495    IFS="$lt_save_ifs"
4496  done
4497  : ${lt_cv_path_NM=no}
4498fi
4499fi
4500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4501$as_echo "$lt_cv_path_NM" >&6; }
4502if test "$lt_cv_path_NM" != "no"; then
4503  NM="$lt_cv_path_NM"
4504else
4505  # Didn't find any BSD compatible name lister, look for dumpbin.
4506  if test -n "$DUMPBIN"; then :
4507    # Let the user override the test.
4508  else
4509    if test -n "$ac_tool_prefix"; then
4510  for ac_prog in dumpbin "link -dump"
4511  do
4512    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4513set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4515$as_echo_n "checking for $ac_word... " >&6; }
4516if ${ac_cv_prog_DUMPBIN+:} false; then :
4517  $as_echo_n "(cached) " >&6
4518else
4519  if test -n "$DUMPBIN"; then
4520  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4521else
4522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523for as_dir in $PATH
4524do
4525  IFS=$as_save_IFS
4526  test -z "$as_dir" && as_dir=.
4527    for ac_exec_ext in '' $ac_executable_extensions; do
4528  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4529    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4530    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4531    break 2
4532  fi
4533done
4534  done
4535IFS=$as_save_IFS
4536
4537fi
4538fi
4539DUMPBIN=$ac_cv_prog_DUMPBIN
4540if test -n "$DUMPBIN"; then
4541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4542$as_echo "$DUMPBIN" >&6; }
4543else
4544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4545$as_echo "no" >&6; }
4546fi
4547
4548
4549    test -n "$DUMPBIN" && break
4550  done
4551fi
4552if test -z "$DUMPBIN"; then
4553  ac_ct_DUMPBIN=$DUMPBIN
4554  for ac_prog in dumpbin "link -dump"
4555do
4556  # Extract the first word of "$ac_prog", so it can be a program name with args.
4557set dummy $ac_prog; ac_word=$2
4558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4559$as_echo_n "checking for $ac_word... " >&6; }
4560if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4561  $as_echo_n "(cached) " >&6
4562else
4563  if test -n "$ac_ct_DUMPBIN"; then
4564  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4565else
4566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567for as_dir in $PATH
4568do
4569  IFS=$as_save_IFS
4570  test -z "$as_dir" && as_dir=.
4571    for ac_exec_ext in '' $ac_executable_extensions; do
4572  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4573    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4574    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4575    break 2
4576  fi
4577done
4578  done
4579IFS=$as_save_IFS
4580
4581fi
4582fi
4583ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4584if test -n "$ac_ct_DUMPBIN"; then
4585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4586$as_echo "$ac_ct_DUMPBIN" >&6; }
4587else
4588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4589$as_echo "no" >&6; }
4590fi
4591
4592
4593  test -n "$ac_ct_DUMPBIN" && break
4594done
4595
4596  if test "x$ac_ct_DUMPBIN" = x; then
4597    DUMPBIN=":"
4598  else
4599    case $cross_compiling:$ac_tool_warned in
4600yes:)
4601{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4602$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4603ac_tool_warned=yes ;;
4604esac
4605    DUMPBIN=$ac_ct_DUMPBIN
4606  fi
4607fi
4608
4609    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4610    *COFF*)
4611      DUMPBIN="$DUMPBIN -symbols"
4612      ;;
4613    *)
4614      DUMPBIN=:
4615      ;;
4616    esac
4617  fi
4618
4619  if test "$DUMPBIN" != ":"; then
4620    NM="$DUMPBIN"
4621  fi
4622fi
4623test -z "$NM" && NM=nm
4624
4625
4626
4627
4628
4629
4630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4631$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4632if ${lt_cv_nm_interface+:} false; then :
4633  $as_echo_n "(cached) " >&6
4634else
4635  lt_cv_nm_interface="BSD nm"
4636  echo "int some_variable = 0;" > conftest.$ac_ext
4637  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4638  (eval "$ac_compile" 2>conftest.err)
4639  cat conftest.err >&5
4640  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4641  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4642  cat conftest.err >&5
4643  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4644  cat conftest.out >&5
4645  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4646    lt_cv_nm_interface="MS dumpbin"
4647  fi
4648  rm -f conftest*
4649fi
4650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4651$as_echo "$lt_cv_nm_interface" >&6; }
4652
4653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4654$as_echo_n "checking whether ln -s works... " >&6; }
4655LN_S=$as_ln_s
4656if test "$LN_S" = "ln -s"; then
4657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4658$as_echo "yes" >&6; }
4659else
4660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4661$as_echo "no, using $LN_S" >&6; }
4662fi
4663
4664# find the maximum length of command line arguments
4665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4666$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4667if ${lt_cv_sys_max_cmd_len+:} false; then :
4668  $as_echo_n "(cached) " >&6
4669else
4670    i=0
4671  teststring="ABCD"
4672
4673  case $build_os in
4674  msdosdjgpp*)
4675    # On DJGPP, this test can blow up pretty badly due to problems in libc
4676    # (any single argument exceeding 2000 bytes causes a buffer overrun
4677    # during glob expansion).  Even if it were fixed, the result of this
4678    # check would be larger than it should be.
4679    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4680    ;;
4681
4682  gnu*)
4683    # Under GNU Hurd, this test is not required because there is
4684    # no limit to the length of command line arguments.
4685    # Libtool will interpret -1 as no limit whatsoever
4686    lt_cv_sys_max_cmd_len=-1;
4687    ;;
4688
4689  cygwin* | mingw* | cegcc*)
4690    # On Win9x/ME, this test blows up -- it succeeds, but takes
4691    # about 5 minutes as the teststring grows exponentially.
4692    # Worse, since 9x/ME are not pre-emptively multitasking,
4693    # you end up with a "frozen" computer, even though with patience
4694    # the test eventually succeeds (with a max line length of 256k).
4695    # Instead, let's just punt: use the minimum linelength reported by
4696    # all of the supported platforms: 8192 (on NT/2K/XP).
4697    lt_cv_sys_max_cmd_len=8192;
4698    ;;
4699
4700  mint*)
4701    # On MiNT this can take a long time and run out of memory.
4702    lt_cv_sys_max_cmd_len=8192;
4703    ;;
4704
4705  amigaos*)
4706    # On AmigaOS with pdksh, this test takes hours, literally.
4707    # So we just punt and use a minimum line length of 8192.
4708    lt_cv_sys_max_cmd_len=8192;
4709    ;;
4710
4711  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4712    # This has been around since 386BSD, at least.  Likely further.
4713    if test -x /sbin/sysctl; then
4714      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4715    elif test -x /usr/sbin/sysctl; then
4716      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4717    else
4718      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4719    fi
4720    # And add a safety zone
4721    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4722    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4723    ;;
4724
4725  interix*)
4726    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4727    lt_cv_sys_max_cmd_len=196608
4728    ;;
4729
4730  os2*)
4731    # The test takes a long time on OS/2.
4732    lt_cv_sys_max_cmd_len=8192
4733    ;;
4734
4735  osf*)
4736    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4737    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4738    # nice to cause kernel panics so lets avoid the loop below.
4739    # First set a reasonable default.
4740    lt_cv_sys_max_cmd_len=16384
4741    #
4742    if test -x /sbin/sysconfig; then
4743      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4744        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4745      esac
4746    fi
4747    ;;
4748  sco3.2v5*)
4749    lt_cv_sys_max_cmd_len=102400
4750    ;;
4751  sysv5* | sco5v6* | sysv4.2uw2*)
4752    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4753    if test -n "$kargmax"; then
4754      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4755    else
4756      lt_cv_sys_max_cmd_len=32768
4757    fi
4758    ;;
4759  *)
4760    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4761    if test -n "$lt_cv_sys_max_cmd_len" && \
4762	test undefined != "$lt_cv_sys_max_cmd_len"; then
4763      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4764      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4765    else
4766      # Make teststring a little bigger before we do anything with it.
4767      # a 1K string should be a reasonable start.
4768      for i in 1 2 3 4 5 6 7 8 ; do
4769        teststring=$teststring$teststring
4770      done
4771      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4772      # If test is not a shell built-in, we'll probably end up computing a
4773      # maximum length that is only half of the actual maximum length, but
4774      # we can't tell.
4775      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4776	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4777	      test $i != 17 # 1/2 MB should be enough
4778      do
4779        i=`expr $i + 1`
4780        teststring=$teststring$teststring
4781      done
4782      # Only check the string length outside the loop.
4783      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4784      teststring=
4785      # Add a significant safety factor because C++ compilers can tack on
4786      # massive amounts of additional arguments before passing them to the
4787      # linker.  It appears as though 1/2 is a usable value.
4788      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4789    fi
4790    ;;
4791  esac
4792
4793fi
4794
4795if test -n $lt_cv_sys_max_cmd_len ; then
4796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4797$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4798else
4799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4800$as_echo "none" >&6; }
4801fi
4802max_cmd_len=$lt_cv_sys_max_cmd_len
4803
4804
4805
4806
4807
4808
4809: ${CP="cp -f"}
4810: ${MV="mv -f"}
4811: ${RM="rm -f"}
4812
4813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4814$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4815# Try some XSI features
4816xsi_shell=no
4817( _lt_dummy="a/b/c"
4818  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4819      = c,a/b,b/c, \
4820    && eval 'test $(( 1 + 1 )) -eq 2 \
4821    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4822  && xsi_shell=yes
4823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4824$as_echo "$xsi_shell" >&6; }
4825
4826
4827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4828$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4829lt_shell_append=no
4830( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4831    >/dev/null 2>&1 \
4832  && lt_shell_append=yes
4833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4834$as_echo "$lt_shell_append" >&6; }
4835
4836
4837if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4838  lt_unset=unset
4839else
4840  lt_unset=false
4841fi
4842
4843
4844
4845
4846
4847# test EBCDIC or ASCII
4848case `echo X|tr X '\101'` in
4849 A) # ASCII based system
4850    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4851  lt_SP2NL='tr \040 \012'
4852  lt_NL2SP='tr \015\012 \040\040'
4853  ;;
4854 *) # EBCDIC based system
4855  lt_SP2NL='tr \100 \n'
4856  lt_NL2SP='tr \r\n \100\100'
4857  ;;
4858esac
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4869$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4870if ${lt_cv_to_host_file_cmd+:} false; then :
4871  $as_echo_n "(cached) " >&6
4872else
4873  case $host in
4874  *-*-mingw* )
4875    case $build in
4876      *-*-mingw* ) # actually msys
4877        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4878        ;;
4879      *-*-cygwin* )
4880        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4881        ;;
4882      * ) # otherwise, assume *nix
4883        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4884        ;;
4885    esac
4886    ;;
4887  *-*-cygwin* )
4888    case $build in
4889      *-*-mingw* ) # actually msys
4890        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4891        ;;
4892      *-*-cygwin* )
4893        lt_cv_to_host_file_cmd=func_convert_file_noop
4894        ;;
4895      * ) # otherwise, assume *nix
4896        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4897        ;;
4898    esac
4899    ;;
4900  * ) # unhandled hosts (and "normal" native builds)
4901    lt_cv_to_host_file_cmd=func_convert_file_noop
4902    ;;
4903esac
4904
4905fi
4906
4907to_host_file_cmd=$lt_cv_to_host_file_cmd
4908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4909$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4910
4911
4912
4913
4914
4915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4916$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4917if ${lt_cv_to_tool_file_cmd+:} false; then :
4918  $as_echo_n "(cached) " >&6
4919else
4920  #assume ordinary cross tools, or native build.
4921lt_cv_to_tool_file_cmd=func_convert_file_noop
4922case $host in
4923  *-*-mingw* )
4924    case $build in
4925      *-*-mingw* ) # actually msys
4926        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4927        ;;
4928    esac
4929    ;;
4930esac
4931
4932fi
4933
4934to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4936$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4937
4938
4939
4940
4941
4942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4943$as_echo_n "checking for $LD option to reload object files... " >&6; }
4944if ${lt_cv_ld_reload_flag+:} false; then :
4945  $as_echo_n "(cached) " >&6
4946else
4947  lt_cv_ld_reload_flag='-r'
4948fi
4949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4950$as_echo "$lt_cv_ld_reload_flag" >&6; }
4951reload_flag=$lt_cv_ld_reload_flag
4952case $reload_flag in
4953"" | " "*) ;;
4954*) reload_flag=" $reload_flag" ;;
4955esac
4956reload_cmds='$LD$reload_flag -o $output$reload_objs'
4957case $host_os in
4958  cygwin* | mingw* | pw32* | cegcc*)
4959    if test "$GCC" != yes; then
4960      reload_cmds=false
4961    fi
4962    ;;
4963  darwin*)
4964    if test "$GCC" = yes; then
4965      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4966    else
4967      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4968    fi
4969    ;;
4970esac
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980if test -n "$ac_tool_prefix"; then
4981  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4982set dummy ${ac_tool_prefix}objdump; ac_word=$2
4983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4984$as_echo_n "checking for $ac_word... " >&6; }
4985if ${ac_cv_prog_OBJDUMP+:} false; then :
4986  $as_echo_n "(cached) " >&6
4987else
4988  if test -n "$OBJDUMP"; then
4989  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4990else
4991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992for as_dir in $PATH
4993do
4994  IFS=$as_save_IFS
4995  test -z "$as_dir" && as_dir=.
4996    for ac_exec_ext in '' $ac_executable_extensions; do
4997  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4998    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4999    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5000    break 2
5001  fi
5002done
5003  done
5004IFS=$as_save_IFS
5005
5006fi
5007fi
5008OBJDUMP=$ac_cv_prog_OBJDUMP
5009if test -n "$OBJDUMP"; then
5010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5011$as_echo "$OBJDUMP" >&6; }
5012else
5013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5014$as_echo "no" >&6; }
5015fi
5016
5017
5018fi
5019if test -z "$ac_cv_prog_OBJDUMP"; then
5020  ac_ct_OBJDUMP=$OBJDUMP
5021  # Extract the first word of "objdump", so it can be a program name with args.
5022set dummy objdump; ac_word=$2
5023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024$as_echo_n "checking for $ac_word... " >&6; }
5025if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5026  $as_echo_n "(cached) " >&6
5027else
5028  if test -n "$ac_ct_OBJDUMP"; then
5029  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5030else
5031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032for as_dir in $PATH
5033do
5034  IFS=$as_save_IFS
5035  test -z "$as_dir" && as_dir=.
5036    for ac_exec_ext in '' $ac_executable_extensions; do
5037  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5038    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5039    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5040    break 2
5041  fi
5042done
5043  done
5044IFS=$as_save_IFS
5045
5046fi
5047fi
5048ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5049if test -n "$ac_ct_OBJDUMP"; then
5050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5051$as_echo "$ac_ct_OBJDUMP" >&6; }
5052else
5053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5054$as_echo "no" >&6; }
5055fi
5056
5057  if test "x$ac_ct_OBJDUMP" = x; then
5058    OBJDUMP="false"
5059  else
5060    case $cross_compiling:$ac_tool_warned in
5061yes:)
5062{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5063$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5064ac_tool_warned=yes ;;
5065esac
5066    OBJDUMP=$ac_ct_OBJDUMP
5067  fi
5068else
5069  OBJDUMP="$ac_cv_prog_OBJDUMP"
5070fi
5071
5072test -z "$OBJDUMP" && OBJDUMP=objdump
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5083$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5084if ${lt_cv_deplibs_check_method+:} false; then :
5085  $as_echo_n "(cached) " >&6
5086else
5087  lt_cv_file_magic_cmd='$MAGIC_CMD'
5088lt_cv_file_magic_test_file=
5089lt_cv_deplibs_check_method='unknown'
5090# Need to set the preceding variable on all platforms that support
5091# interlibrary dependencies.
5092# 'none' -- dependencies not supported.
5093# `unknown' -- same as none, but documents that we really don't know.
5094# 'pass_all' -- all dependencies passed with no checks.
5095# 'test_compile' -- check by making test program.
5096# 'file_magic [[regex]]' -- check by looking for files in library path
5097# which responds to the $file_magic_cmd with a given extended regex.
5098# If you have `file' or equivalent on your system and you're not sure
5099# whether `pass_all' will *always* work, you probably want this one.
5100
5101case $host_os in
5102aix[4-9]*)
5103  lt_cv_deplibs_check_method=pass_all
5104  ;;
5105
5106beos*)
5107  lt_cv_deplibs_check_method=pass_all
5108  ;;
5109
5110bsdi[45]*)
5111  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5112  lt_cv_file_magic_cmd='/usr/bin/file -L'
5113  lt_cv_file_magic_test_file=/shlib/libc.so
5114  ;;
5115
5116cygwin*)
5117  # func_win32_libid is a shell function defined in ltmain.sh
5118  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5119  lt_cv_file_magic_cmd='func_win32_libid'
5120  ;;
5121
5122mingw* | pw32*)
5123  # Base MSYS/MinGW do not provide the 'file' command needed by
5124  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5125  # unless we find 'file', for example because we are cross-compiling.
5126  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5127  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5128    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5129    lt_cv_file_magic_cmd='func_win32_libid'
5130  else
5131    # Keep this pattern in sync with the one in func_win32_libid.
5132    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5133    lt_cv_file_magic_cmd='$OBJDUMP -f'
5134  fi
5135  ;;
5136
5137cegcc*)
5138  # use the weaker test based on 'objdump'. See mingw*.
5139  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5140  lt_cv_file_magic_cmd='$OBJDUMP -f'
5141  ;;
5142
5143darwin* | rhapsody*)
5144  lt_cv_deplibs_check_method=pass_all
5145  ;;
5146
5147freebsd* | dragonfly*)
5148  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5149    case $host_cpu in
5150    i*86 )
5151      # Not sure whether the presence of OpenBSD here was a mistake.
5152      # Let's accept both of them until this is cleared up.
5153      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5154      lt_cv_file_magic_cmd=/usr/bin/file
5155      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5156      ;;
5157    esac
5158  else
5159    lt_cv_deplibs_check_method=pass_all
5160  fi
5161  ;;
5162
5163haiku*)
5164  lt_cv_deplibs_check_method=pass_all
5165  ;;
5166
5167hpux10.20* | hpux11*)
5168  lt_cv_file_magic_cmd=/usr/bin/file
5169  case $host_cpu in
5170  ia64*)
5171    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5172    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5173    ;;
5174  hppa*64*)
5175    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]'
5176    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5177    ;;
5178  *)
5179    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5180    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5181    ;;
5182  esac
5183  ;;
5184
5185interix[3-9]*)
5186  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5187  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5188  ;;
5189
5190irix5* | irix6* | nonstopux*)
5191  case $LD in
5192  *-32|*"-32 ") libmagic=32-bit;;
5193  *-n32|*"-n32 ") libmagic=N32;;
5194  *-64|*"-64 ") libmagic=64-bit;;
5195  *) libmagic=never-match;;
5196  esac
5197  lt_cv_deplibs_check_method=pass_all
5198  ;;
5199
5200# This must be glibc/ELF.
5201linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5202  lt_cv_deplibs_check_method=pass_all
5203  ;;
5204
5205netbsd* | netbsdelf*-gnu)
5206  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5207    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5208  else
5209    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5210  fi
5211  ;;
5212
5213newos6*)
5214  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5215  lt_cv_file_magic_cmd=/usr/bin/file
5216  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5217  ;;
5218
5219*nto* | *qnx*)
5220  lt_cv_deplibs_check_method=pass_all
5221  ;;
5222
5223openbsd*)
5224  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5225    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5226  else
5227    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5228  fi
5229  ;;
5230
5231osf3* | osf4* | osf5*)
5232  lt_cv_deplibs_check_method=pass_all
5233  ;;
5234
5235rdos*)
5236  lt_cv_deplibs_check_method=pass_all
5237  ;;
5238
5239solaris*)
5240  lt_cv_deplibs_check_method=pass_all
5241  ;;
5242
5243sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5244  lt_cv_deplibs_check_method=pass_all
5245  ;;
5246
5247sysv4 | sysv4.3*)
5248  case $host_vendor in
5249  motorola)
5250    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]'
5251    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5252    ;;
5253  ncr)
5254    lt_cv_deplibs_check_method=pass_all
5255    ;;
5256  sequent)
5257    lt_cv_file_magic_cmd='/bin/file'
5258    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5259    ;;
5260  sni)
5261    lt_cv_file_magic_cmd='/bin/file'
5262    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5263    lt_cv_file_magic_test_file=/lib/libc.so
5264    ;;
5265  siemens)
5266    lt_cv_deplibs_check_method=pass_all
5267    ;;
5268  pc)
5269    lt_cv_deplibs_check_method=pass_all
5270    ;;
5271  esac
5272  ;;
5273
5274tpf*)
5275  lt_cv_deplibs_check_method=pass_all
5276  ;;
5277esac
5278
5279fi
5280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5281$as_echo "$lt_cv_deplibs_check_method" >&6; }
5282
5283file_magic_glob=
5284want_nocaseglob=no
5285if test "$build" = "$host"; then
5286  case $host_os in
5287  mingw* | pw32*)
5288    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5289      want_nocaseglob=yes
5290    else
5291      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5292    fi
5293    ;;
5294  esac
5295fi
5296
5297file_magic_cmd=$lt_cv_file_magic_cmd
5298deplibs_check_method=$lt_cv_deplibs_check_method
5299test -z "$deplibs_check_method" && deplibs_check_method=unknown
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322if test -n "$ac_tool_prefix"; then
5323  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5324set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5326$as_echo_n "checking for $ac_word... " >&6; }
5327if ${ac_cv_prog_DLLTOOL+:} false; then :
5328  $as_echo_n "(cached) " >&6
5329else
5330  if test -n "$DLLTOOL"; then
5331  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5332else
5333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334for as_dir in $PATH
5335do
5336  IFS=$as_save_IFS
5337  test -z "$as_dir" && as_dir=.
5338    for ac_exec_ext in '' $ac_executable_extensions; do
5339  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5340    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5341    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5342    break 2
5343  fi
5344done
5345  done
5346IFS=$as_save_IFS
5347
5348fi
5349fi
5350DLLTOOL=$ac_cv_prog_DLLTOOL
5351if test -n "$DLLTOOL"; then
5352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5353$as_echo "$DLLTOOL" >&6; }
5354else
5355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5356$as_echo "no" >&6; }
5357fi
5358
5359
5360fi
5361if test -z "$ac_cv_prog_DLLTOOL"; then
5362  ac_ct_DLLTOOL=$DLLTOOL
5363  # Extract the first word of "dlltool", so it can be a program name with args.
5364set dummy dlltool; ac_word=$2
5365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5366$as_echo_n "checking for $ac_word... " >&6; }
5367if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5368  $as_echo_n "(cached) " >&6
5369else
5370  if test -n "$ac_ct_DLLTOOL"; then
5371  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5372else
5373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5374for as_dir in $PATH
5375do
5376  IFS=$as_save_IFS
5377  test -z "$as_dir" && as_dir=.
5378    for ac_exec_ext in '' $ac_executable_extensions; do
5379  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5380    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5381    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5382    break 2
5383  fi
5384done
5385  done
5386IFS=$as_save_IFS
5387
5388fi
5389fi
5390ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5391if test -n "$ac_ct_DLLTOOL"; then
5392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5393$as_echo "$ac_ct_DLLTOOL" >&6; }
5394else
5395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5396$as_echo "no" >&6; }
5397fi
5398
5399  if test "x$ac_ct_DLLTOOL" = x; then
5400    DLLTOOL="false"
5401  else
5402    case $cross_compiling:$ac_tool_warned in
5403yes:)
5404{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5405$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5406ac_tool_warned=yes ;;
5407esac
5408    DLLTOOL=$ac_ct_DLLTOOL
5409  fi
5410else
5411  DLLTOOL="$ac_cv_prog_DLLTOOL"
5412fi
5413
5414test -z "$DLLTOOL" && DLLTOOL=dlltool
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5426$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5427if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5428  $as_echo_n "(cached) " >&6
5429else
5430  lt_cv_sharedlib_from_linklib_cmd='unknown'
5431
5432case $host_os in
5433cygwin* | mingw* | pw32* | cegcc*)
5434  # two different shell functions defined in ltmain.sh
5435  # decide which to use based on capabilities of $DLLTOOL
5436  case `$DLLTOOL --help 2>&1` in
5437  *--identify-strict*)
5438    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5439    ;;
5440  *)
5441    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5442    ;;
5443  esac
5444  ;;
5445*)
5446  # fallback: assume linklib IS sharedlib
5447  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5448  ;;
5449esac
5450
5451fi
5452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5453$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5454sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5455test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5456
5457
5458
5459
5460
5461
5462
5463
5464if test -n "$ac_tool_prefix"; then
5465  for ac_prog in ar
5466  do
5467    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5468set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5470$as_echo_n "checking for $ac_word... " >&6; }
5471if ${ac_cv_prog_AR+:} false; then :
5472  $as_echo_n "(cached) " >&6
5473else
5474  if test -n "$AR"; then
5475  ac_cv_prog_AR="$AR" # Let the user override the test.
5476else
5477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5478for as_dir in $PATH
5479do
5480  IFS=$as_save_IFS
5481  test -z "$as_dir" && as_dir=.
5482    for ac_exec_ext in '' $ac_executable_extensions; do
5483  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5484    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5485    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5486    break 2
5487  fi
5488done
5489  done
5490IFS=$as_save_IFS
5491
5492fi
5493fi
5494AR=$ac_cv_prog_AR
5495if test -n "$AR"; then
5496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5497$as_echo "$AR" >&6; }
5498else
5499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5500$as_echo "no" >&6; }
5501fi
5502
5503
5504    test -n "$AR" && break
5505  done
5506fi
5507if test -z "$AR"; then
5508  ac_ct_AR=$AR
5509  for ac_prog in ar
5510do
5511  # Extract the first word of "$ac_prog", so it can be a program name with args.
5512set dummy $ac_prog; ac_word=$2
5513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5514$as_echo_n "checking for $ac_word... " >&6; }
5515if ${ac_cv_prog_ac_ct_AR+:} false; then :
5516  $as_echo_n "(cached) " >&6
5517else
5518  if test -n "$ac_ct_AR"; then
5519  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5520else
5521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5522for as_dir in $PATH
5523do
5524  IFS=$as_save_IFS
5525  test -z "$as_dir" && as_dir=.
5526    for ac_exec_ext in '' $ac_executable_extensions; do
5527  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5528    ac_cv_prog_ac_ct_AR="$ac_prog"
5529    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5530    break 2
5531  fi
5532done
5533  done
5534IFS=$as_save_IFS
5535
5536fi
5537fi
5538ac_ct_AR=$ac_cv_prog_ac_ct_AR
5539if test -n "$ac_ct_AR"; then
5540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5541$as_echo "$ac_ct_AR" >&6; }
5542else
5543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544$as_echo "no" >&6; }
5545fi
5546
5547
5548  test -n "$ac_ct_AR" && break
5549done
5550
5551  if test "x$ac_ct_AR" = x; then
5552    AR="false"
5553  else
5554    case $cross_compiling:$ac_tool_warned in
5555yes:)
5556{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5557$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5558ac_tool_warned=yes ;;
5559esac
5560    AR=$ac_ct_AR
5561  fi
5562fi
5563
5564: ${AR=ar}
5565: ${AR_FLAGS=cru}
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5578$as_echo_n "checking for archiver @FILE support... " >&6; }
5579if ${lt_cv_ar_at_file+:} false; then :
5580  $as_echo_n "(cached) " >&6
5581else
5582  lt_cv_ar_at_file=no
5583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5584/* end confdefs.h.  */
5585
5586int
5587main ()
5588{
5589
5590  ;
5591  return 0;
5592}
5593_ACEOF
5594if ac_fn_c_try_compile "$LINENO"; then :
5595  echo conftest.$ac_objext > conftest.lst
5596      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5597      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5598  (eval $lt_ar_try) 2>&5
5599  ac_status=$?
5600  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5601  test $ac_status = 0; }
5602      if test "$ac_status" -eq 0; then
5603	# Ensure the archiver fails upon bogus file names.
5604	rm -f conftest.$ac_objext libconftest.a
5605	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5606  (eval $lt_ar_try) 2>&5
5607  ac_status=$?
5608  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5609  test $ac_status = 0; }
5610	if test "$ac_status" -ne 0; then
5611          lt_cv_ar_at_file=@
5612        fi
5613      fi
5614      rm -f conftest.* libconftest.a
5615
5616fi
5617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5618
5619fi
5620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5621$as_echo "$lt_cv_ar_at_file" >&6; }
5622
5623if test "x$lt_cv_ar_at_file" = xno; then
5624  archiver_list_spec=
5625else
5626  archiver_list_spec=$lt_cv_ar_at_file
5627fi
5628
5629
5630
5631
5632
5633
5634
5635if test -n "$ac_tool_prefix"; then
5636  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5637set dummy ${ac_tool_prefix}strip; ac_word=$2
5638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5639$as_echo_n "checking for $ac_word... " >&6; }
5640if ${ac_cv_prog_STRIP+:} false; then :
5641  $as_echo_n "(cached) " >&6
5642else
5643  if test -n "$STRIP"; then
5644  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5645else
5646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647for as_dir in $PATH
5648do
5649  IFS=$as_save_IFS
5650  test -z "$as_dir" && as_dir=.
5651    for ac_exec_ext in '' $ac_executable_extensions; do
5652  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5653    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5654    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5655    break 2
5656  fi
5657done
5658  done
5659IFS=$as_save_IFS
5660
5661fi
5662fi
5663STRIP=$ac_cv_prog_STRIP
5664if test -n "$STRIP"; then
5665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5666$as_echo "$STRIP" >&6; }
5667else
5668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669$as_echo "no" >&6; }
5670fi
5671
5672
5673fi
5674if test -z "$ac_cv_prog_STRIP"; then
5675  ac_ct_STRIP=$STRIP
5676  # Extract the first word of "strip", so it can be a program name with args.
5677set dummy strip; ac_word=$2
5678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5679$as_echo_n "checking for $ac_word... " >&6; }
5680if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5681  $as_echo_n "(cached) " >&6
5682else
5683  if test -n "$ac_ct_STRIP"; then
5684  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5685else
5686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687for as_dir in $PATH
5688do
5689  IFS=$as_save_IFS
5690  test -z "$as_dir" && as_dir=.
5691    for ac_exec_ext in '' $ac_executable_extensions; do
5692  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5693    ac_cv_prog_ac_ct_STRIP="strip"
5694    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5695    break 2
5696  fi
5697done
5698  done
5699IFS=$as_save_IFS
5700
5701fi
5702fi
5703ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5704if test -n "$ac_ct_STRIP"; then
5705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5706$as_echo "$ac_ct_STRIP" >&6; }
5707else
5708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709$as_echo "no" >&6; }
5710fi
5711
5712  if test "x$ac_ct_STRIP" = x; then
5713    STRIP=":"
5714  else
5715    case $cross_compiling:$ac_tool_warned in
5716yes:)
5717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5719ac_tool_warned=yes ;;
5720esac
5721    STRIP=$ac_ct_STRIP
5722  fi
5723else
5724  STRIP="$ac_cv_prog_STRIP"
5725fi
5726
5727test -z "$STRIP" && STRIP=:
5728
5729
5730
5731
5732
5733
5734if test -n "$ac_tool_prefix"; then
5735  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5736set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5738$as_echo_n "checking for $ac_word... " >&6; }
5739if ${ac_cv_prog_RANLIB+:} false; then :
5740  $as_echo_n "(cached) " >&6
5741else
5742  if test -n "$RANLIB"; then
5743  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5744else
5745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746for as_dir in $PATH
5747do
5748  IFS=$as_save_IFS
5749  test -z "$as_dir" && as_dir=.
5750    for ac_exec_ext in '' $ac_executable_extensions; do
5751  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5752    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5753    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5754    break 2
5755  fi
5756done
5757  done
5758IFS=$as_save_IFS
5759
5760fi
5761fi
5762RANLIB=$ac_cv_prog_RANLIB
5763if test -n "$RANLIB"; then
5764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5765$as_echo "$RANLIB" >&6; }
5766else
5767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5768$as_echo "no" >&6; }
5769fi
5770
5771
5772fi
5773if test -z "$ac_cv_prog_RANLIB"; then
5774  ac_ct_RANLIB=$RANLIB
5775  # Extract the first word of "ranlib", so it can be a program name with args.
5776set dummy ranlib; ac_word=$2
5777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5778$as_echo_n "checking for $ac_word... " >&6; }
5779if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5780  $as_echo_n "(cached) " >&6
5781else
5782  if test -n "$ac_ct_RANLIB"; then
5783  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5784else
5785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786for as_dir in $PATH
5787do
5788  IFS=$as_save_IFS
5789  test -z "$as_dir" && as_dir=.
5790    for ac_exec_ext in '' $ac_executable_extensions; do
5791  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5792    ac_cv_prog_ac_ct_RANLIB="ranlib"
5793    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5794    break 2
5795  fi
5796done
5797  done
5798IFS=$as_save_IFS
5799
5800fi
5801fi
5802ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5803if test -n "$ac_ct_RANLIB"; then
5804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5805$as_echo "$ac_ct_RANLIB" >&6; }
5806else
5807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5808$as_echo "no" >&6; }
5809fi
5810
5811  if test "x$ac_ct_RANLIB" = x; then
5812    RANLIB=":"
5813  else
5814    case $cross_compiling:$ac_tool_warned in
5815yes:)
5816{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5817$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5818ac_tool_warned=yes ;;
5819esac
5820    RANLIB=$ac_ct_RANLIB
5821  fi
5822else
5823  RANLIB="$ac_cv_prog_RANLIB"
5824fi
5825
5826test -z "$RANLIB" && RANLIB=:
5827
5828
5829
5830
5831
5832
5833# Determine commands to create old-style static archives.
5834old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5835old_postinstall_cmds='chmod 644 $oldlib'
5836old_postuninstall_cmds=
5837
5838if test -n "$RANLIB"; then
5839  case $host_os in
5840  openbsd*)
5841    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5842    ;;
5843  *)
5844    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5845    ;;
5846  esac
5847  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5848fi
5849
5850case $host_os in
5851  darwin*)
5852    lock_old_archive_extraction=yes ;;
5853  *)
5854    lock_old_archive_extraction=no ;;
5855esac
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895# If no C compiler was specified, use CC.
5896LTCC=${LTCC-"$CC"}
5897
5898# If no C compiler flags were specified, use CFLAGS.
5899LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5900
5901# Allow CC to be a program name with arguments.
5902compiler=$CC
5903
5904
5905# Check for command to grab the raw symbol name followed by C symbol from nm.
5906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5907$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5908if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5909  $as_echo_n "(cached) " >&6
5910else
5911
5912# These are sane defaults that work on at least a few old systems.
5913# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5914
5915# Character class describing NM global symbol codes.
5916symcode='[BCDEGRST]'
5917
5918# Regexp to match symbols that can be accessed directly from C.
5919sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5920
5921# Define system-specific variables.
5922case $host_os in
5923aix*)
5924  symcode='[BCDT]'
5925  ;;
5926cygwin* | mingw* | pw32* | cegcc*)
5927  symcode='[ABCDGISTW]'
5928  ;;
5929hpux*)
5930  if test "$host_cpu" = ia64; then
5931    symcode='[ABCDEGRST]'
5932  fi
5933  ;;
5934irix* | nonstopux*)
5935  symcode='[BCDEGRST]'
5936  ;;
5937osf*)
5938  symcode='[BCDEGQRST]'
5939  ;;
5940solaris*)
5941  symcode='[BDRT]'
5942  ;;
5943sco3.2v5*)
5944  symcode='[DT]'
5945  ;;
5946sysv4.2uw2*)
5947  symcode='[DT]'
5948  ;;
5949sysv5* | sco5v6* | unixware* | OpenUNIX*)
5950  symcode='[ABDT]'
5951  ;;
5952sysv4)
5953  symcode='[DFNSTU]'
5954  ;;
5955esac
5956
5957# If we're using GNU nm, then use its standard symbol codes.
5958case `$NM -V 2>&1` in
5959*GNU* | *'with BFD'*)
5960  symcode='[ABCDGIRSTW]' ;;
5961esac
5962
5963# Transform an extracted symbol line into a proper C declaration.
5964# Some systems (esp. on ia64) link data and code symbols differently,
5965# so use this general approach.
5966lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5967
5968# Transform an extracted symbol line into symbol name and symbol address
5969lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5970lt_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'"
5971
5972# Handle CRLF in mingw tool chain
5973opt_cr=
5974case $build_os in
5975mingw*)
5976  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5977  ;;
5978esac
5979
5980# Try without a prefix underscore, then with it.
5981for ac_symprfx in "" "_"; do
5982
5983  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5984  symxfrm="\\1 $ac_symprfx\\2 \\2"
5985
5986  # Write the raw and C identifiers.
5987  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5988    # Fake it for dumpbin and say T for any non-static function
5989    # and D for any global variable.
5990    # Also find C++ and __fastcall symbols from MSVC++,
5991    # which start with @ or ?.
5992    lt_cv_sys_global_symbol_pipe="$AWK '"\
5993"     {last_section=section; section=\$ 3};"\
5994"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5995"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5996"     \$ 0!~/External *\|/{next};"\
5997"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5998"     {if(hide[section]) next};"\
5999"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6000"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6001"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6002"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6003"     ' prfx=^$ac_symprfx"
6004  else
6005    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6006  fi
6007  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6008
6009  # Check to see that the pipe works correctly.
6010  pipe_works=no
6011
6012  rm -f conftest*
6013  cat > conftest.$ac_ext <<_LT_EOF
6014#ifdef __cplusplus
6015extern "C" {
6016#endif
6017char nm_test_var;
6018void nm_test_func(void);
6019void nm_test_func(void){}
6020#ifdef __cplusplus
6021}
6022#endif
6023int main(){nm_test_var='a';nm_test_func();return(0);}
6024_LT_EOF
6025
6026  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6027  (eval $ac_compile) 2>&5
6028  ac_status=$?
6029  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6030  test $ac_status = 0; }; then
6031    # Now try to grab the symbols.
6032    nlist=conftest.nm
6033    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6034  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6035  ac_status=$?
6036  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6037  test $ac_status = 0; } && test -s "$nlist"; then
6038      # Try sorting and uniquifying the output.
6039      if sort "$nlist" | uniq > "$nlist"T; then
6040	mv -f "$nlist"T "$nlist"
6041      else
6042	rm -f "$nlist"T
6043      fi
6044
6045      # Make sure that we snagged all the symbols we need.
6046      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6047	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6048	  cat <<_LT_EOF > conftest.$ac_ext
6049/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6050#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6051/* DATA imports from DLLs on WIN32 con't be const, because runtime
6052   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6053# define LT_DLSYM_CONST
6054#elif defined(__osf__)
6055/* This system does not cope well with relocations in const data.  */
6056# define LT_DLSYM_CONST
6057#else
6058# define LT_DLSYM_CONST const
6059#endif
6060
6061#ifdef __cplusplus
6062extern "C" {
6063#endif
6064
6065_LT_EOF
6066	  # Now generate the symbol file.
6067	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6068
6069	  cat <<_LT_EOF >> conftest.$ac_ext
6070
6071/* The mapping between symbol names and symbols.  */
6072LT_DLSYM_CONST struct {
6073  const char *name;
6074  void       *address;
6075}
6076lt__PROGRAM__LTX_preloaded_symbols[] =
6077{
6078  { "@PROGRAM@", (void *) 0 },
6079_LT_EOF
6080	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6081	  cat <<\_LT_EOF >> conftest.$ac_ext
6082  {0, (void *) 0}
6083};
6084
6085/* This works around a problem in FreeBSD linker */
6086#ifdef FREEBSD_WORKAROUND
6087static const void *lt_preloaded_setup() {
6088  return lt__PROGRAM__LTX_preloaded_symbols;
6089}
6090#endif
6091
6092#ifdef __cplusplus
6093}
6094#endif
6095_LT_EOF
6096	  # Now try linking the two files.
6097	  mv conftest.$ac_objext conftstm.$ac_objext
6098	  lt_globsym_save_LIBS=$LIBS
6099	  lt_globsym_save_CFLAGS=$CFLAGS
6100	  LIBS="conftstm.$ac_objext"
6101	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6102	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6103  (eval $ac_link) 2>&5
6104  ac_status=$?
6105  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6106  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6107	    pipe_works=yes
6108	  fi
6109	  LIBS=$lt_globsym_save_LIBS
6110	  CFLAGS=$lt_globsym_save_CFLAGS
6111	else
6112	  echo "cannot find nm_test_func in $nlist" >&5
6113	fi
6114      else
6115	echo "cannot find nm_test_var in $nlist" >&5
6116      fi
6117    else
6118      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6119    fi
6120  else
6121    echo "$progname: failed program was:" >&5
6122    cat conftest.$ac_ext >&5
6123  fi
6124  rm -rf conftest* conftst*
6125
6126  # Do not use the global_symbol_pipe unless it works.
6127  if test "$pipe_works" = yes; then
6128    break
6129  else
6130    lt_cv_sys_global_symbol_pipe=
6131  fi
6132done
6133
6134fi
6135
6136if test -z "$lt_cv_sys_global_symbol_pipe"; then
6137  lt_cv_sys_global_symbol_to_cdecl=
6138fi
6139if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6141$as_echo "failed" >&6; }
6142else
6143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6144$as_echo "ok" >&6; }
6145fi
6146
6147# Response file support.
6148if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6149  nm_file_list_spec='@'
6150elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6151  nm_file_list_spec='@'
6152fi
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6181$as_echo_n "checking for sysroot... " >&6; }
6182
6183# Check whether --with-sysroot was given.
6184if test "${with_sysroot+set}" = set; then :
6185  withval=$with_sysroot;
6186else
6187  with_sysroot=no
6188fi
6189
6190
6191lt_sysroot=
6192case ${with_sysroot} in #(
6193 yes)
6194   if test "$GCC" = yes; then
6195     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6196   fi
6197   ;; #(
6198 /*)
6199   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6200   ;; #(
6201 no|'')
6202   ;; #(
6203 *)
6204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6205$as_echo "${with_sysroot}" >&6; }
6206   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6207   ;;
6208esac
6209
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6211$as_echo "${lt_sysroot:-no}" >&6; }
6212
6213
6214
6215
6216
6217# Check whether --enable-libtool-lock was given.
6218if test "${enable_libtool_lock+set}" = set; then :
6219  enableval=$enable_libtool_lock;
6220fi
6221
6222test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6223
6224# Some flags need to be propagated to the compiler or linker for good
6225# libtool support.
6226case $host in
6227ia64-*-hpux*)
6228  # Find out which ABI we are using.
6229  echo 'int i;' > conftest.$ac_ext
6230  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6231  (eval $ac_compile) 2>&5
6232  ac_status=$?
6233  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6234  test $ac_status = 0; }; then
6235    case `/usr/bin/file conftest.$ac_objext` in
6236      *ELF-32*)
6237	HPUX_IA64_MODE="32"
6238	;;
6239      *ELF-64*)
6240	HPUX_IA64_MODE="64"
6241	;;
6242    esac
6243  fi
6244  rm -rf conftest*
6245  ;;
6246*-*-irix6*)
6247  # Find out which ABI we are using.
6248  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6249  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6250  (eval $ac_compile) 2>&5
6251  ac_status=$?
6252  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6253  test $ac_status = 0; }; then
6254    if test "$lt_cv_prog_gnu_ld" = yes; then
6255      case `/usr/bin/file conftest.$ac_objext` in
6256	*32-bit*)
6257	  LD="${LD-ld} -melf32bsmip"
6258	  ;;
6259	*N32*)
6260	  LD="${LD-ld} -melf32bmipn32"
6261	  ;;
6262	*64-bit*)
6263	  LD="${LD-ld} -melf64bmip"
6264	;;
6265      esac
6266    else
6267      case `/usr/bin/file conftest.$ac_objext` in
6268	*32-bit*)
6269	  LD="${LD-ld} -32"
6270	  ;;
6271	*N32*)
6272	  LD="${LD-ld} -n32"
6273	  ;;
6274	*64-bit*)
6275	  LD="${LD-ld} -64"
6276	  ;;
6277      esac
6278    fi
6279  fi
6280  rm -rf conftest*
6281  ;;
6282
6283x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6284s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6285  # Find out which ABI we are using.
6286  echo 'int i;' > conftest.$ac_ext
6287  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6288  (eval $ac_compile) 2>&5
6289  ac_status=$?
6290  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6291  test $ac_status = 0; }; then
6292    case `/usr/bin/file conftest.o` in
6293      *32-bit*)
6294	case $host in
6295	  x86_64-*kfreebsd*-gnu)
6296	    LD="${LD-ld} -m elf_i386_fbsd"
6297	    ;;
6298	  x86_64-*linux*)
6299	    case `/usr/bin/file conftest.o` in
6300	      *x86-64*)
6301		LD="${LD-ld} -m elf32_x86_64"
6302		;;
6303	      *)
6304		LD="${LD-ld} -m elf_i386"
6305		;;
6306	    esac
6307	    ;;
6308	  powerpc64le-*)
6309	    LD="${LD-ld} -m elf32lppclinux"
6310	    ;;
6311	  powerpc64-*)
6312	    LD="${LD-ld} -m elf32ppclinux"
6313	    ;;
6314	  s390x-*linux*)
6315	    LD="${LD-ld} -m elf_s390"
6316	    ;;
6317	  sparc64-*linux*)
6318	    LD="${LD-ld} -m elf32_sparc"
6319	    ;;
6320	esac
6321	;;
6322      *64-bit*)
6323	case $host in
6324	  x86_64-*kfreebsd*-gnu)
6325	    LD="${LD-ld} -m elf_x86_64_fbsd"
6326	    ;;
6327	  x86_64-*linux*)
6328	    LD="${LD-ld} -m elf_x86_64"
6329	    ;;
6330	  powerpcle-*)
6331	    LD="${LD-ld} -m elf64lppc"
6332	    ;;
6333	  powerpc-*)
6334	    LD="${LD-ld} -m elf64ppc"
6335	    ;;
6336	  s390*-*linux*|s390*-*tpf*)
6337	    LD="${LD-ld} -m elf64_s390"
6338	    ;;
6339	  sparc*-*linux*)
6340	    LD="${LD-ld} -m elf64_sparc"
6341	    ;;
6342	esac
6343	;;
6344    esac
6345  fi
6346  rm -rf conftest*
6347  ;;
6348
6349*-*-sco3.2v5*)
6350  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6351  SAVE_CFLAGS="$CFLAGS"
6352  CFLAGS="$CFLAGS -belf"
6353  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6354$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6355if ${lt_cv_cc_needs_belf+:} false; then :
6356  $as_echo_n "(cached) " >&6
6357else
6358  ac_ext=c
6359ac_cpp='$CPP $CPPFLAGS'
6360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6362ac_compiler_gnu=$ac_cv_c_compiler_gnu
6363
6364     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6365/* end confdefs.h.  */
6366
6367int
6368main ()
6369{
6370
6371  ;
6372  return 0;
6373}
6374_ACEOF
6375if ac_fn_c_try_link "$LINENO"; then :
6376  lt_cv_cc_needs_belf=yes
6377else
6378  lt_cv_cc_needs_belf=no
6379fi
6380rm -f core conftest.err conftest.$ac_objext \
6381    conftest$ac_exeext conftest.$ac_ext
6382     ac_ext=c
6383ac_cpp='$CPP $CPPFLAGS'
6384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6386ac_compiler_gnu=$ac_cv_c_compiler_gnu
6387
6388fi
6389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6390$as_echo "$lt_cv_cc_needs_belf" >&6; }
6391  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6392    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6393    CFLAGS="$SAVE_CFLAGS"
6394  fi
6395  ;;
6396*-*solaris*)
6397  # Find out which ABI we are using.
6398  echo 'int i;' > conftest.$ac_ext
6399  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6400  (eval $ac_compile) 2>&5
6401  ac_status=$?
6402  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6403  test $ac_status = 0; }; then
6404    case `/usr/bin/file conftest.o` in
6405    *64-bit*)
6406      case $lt_cv_prog_gnu_ld in
6407      yes*)
6408        case $host in
6409        i?86-*-solaris*)
6410          LD="${LD-ld} -m elf_x86_64"
6411          ;;
6412        sparc*-*-solaris*)
6413          LD="${LD-ld} -m elf64_sparc"
6414          ;;
6415        esac
6416        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6417        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6418          LD="${LD-ld}_sol2"
6419        fi
6420        ;;
6421      *)
6422	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6423	  LD="${LD-ld} -64"
6424	fi
6425	;;
6426      esac
6427      ;;
6428    esac
6429  fi
6430  rm -rf conftest*
6431  ;;
6432esac
6433
6434need_locks="$enable_libtool_lock"
6435
6436if test -n "$ac_tool_prefix"; then
6437  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6438set dummy ${ac_tool_prefix}mt; ac_word=$2
6439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6440$as_echo_n "checking for $ac_word... " >&6; }
6441if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6442  $as_echo_n "(cached) " >&6
6443else
6444  if test -n "$MANIFEST_TOOL"; then
6445  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6446else
6447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448for as_dir in $PATH
6449do
6450  IFS=$as_save_IFS
6451  test -z "$as_dir" && as_dir=.
6452    for ac_exec_ext in '' $ac_executable_extensions; do
6453  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6454    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6455    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6456    break 2
6457  fi
6458done
6459  done
6460IFS=$as_save_IFS
6461
6462fi
6463fi
6464MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6465if test -n "$MANIFEST_TOOL"; then
6466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6467$as_echo "$MANIFEST_TOOL" >&6; }
6468else
6469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6470$as_echo "no" >&6; }
6471fi
6472
6473
6474fi
6475if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6476  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6477  # Extract the first word of "mt", so it can be a program name with args.
6478set dummy mt; ac_word=$2
6479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6480$as_echo_n "checking for $ac_word... " >&6; }
6481if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6482  $as_echo_n "(cached) " >&6
6483else
6484  if test -n "$ac_ct_MANIFEST_TOOL"; then
6485  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6486else
6487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488for as_dir in $PATH
6489do
6490  IFS=$as_save_IFS
6491  test -z "$as_dir" && as_dir=.
6492    for ac_exec_ext in '' $ac_executable_extensions; do
6493  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6494    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6495    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6496    break 2
6497  fi
6498done
6499  done
6500IFS=$as_save_IFS
6501
6502fi
6503fi
6504ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6505if test -n "$ac_ct_MANIFEST_TOOL"; then
6506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6507$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6508else
6509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6510$as_echo "no" >&6; }
6511fi
6512
6513  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6514    MANIFEST_TOOL=":"
6515  else
6516    case $cross_compiling:$ac_tool_warned in
6517yes:)
6518{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6519$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6520ac_tool_warned=yes ;;
6521esac
6522    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6523  fi
6524else
6525  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6526fi
6527
6528test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6530$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6531if ${lt_cv_path_mainfest_tool+:} false; then :
6532  $as_echo_n "(cached) " >&6
6533else
6534  lt_cv_path_mainfest_tool=no
6535  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6536  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6537  cat conftest.err >&5
6538  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6539    lt_cv_path_mainfest_tool=yes
6540  fi
6541  rm -f conftest*
6542fi
6543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6544$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6545if test "x$lt_cv_path_mainfest_tool" != xyes; then
6546  MANIFEST_TOOL=:
6547fi
6548
6549
6550
6551
6552
6553
6554  case $host_os in
6555    rhapsody* | darwin*)
6556    if test -n "$ac_tool_prefix"; then
6557  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6558set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6560$as_echo_n "checking for $ac_word... " >&6; }
6561if ${ac_cv_prog_DSYMUTIL+:} false; then :
6562  $as_echo_n "(cached) " >&6
6563else
6564  if test -n "$DSYMUTIL"; then
6565  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6566else
6567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6568for as_dir in $PATH
6569do
6570  IFS=$as_save_IFS
6571  test -z "$as_dir" && as_dir=.
6572    for ac_exec_ext in '' $ac_executable_extensions; do
6573  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6574    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6575    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6576    break 2
6577  fi
6578done
6579  done
6580IFS=$as_save_IFS
6581
6582fi
6583fi
6584DSYMUTIL=$ac_cv_prog_DSYMUTIL
6585if test -n "$DSYMUTIL"; then
6586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6587$as_echo "$DSYMUTIL" >&6; }
6588else
6589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6590$as_echo "no" >&6; }
6591fi
6592
6593
6594fi
6595if test -z "$ac_cv_prog_DSYMUTIL"; then
6596  ac_ct_DSYMUTIL=$DSYMUTIL
6597  # Extract the first word of "dsymutil", so it can be a program name with args.
6598set dummy dsymutil; ac_word=$2
6599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6600$as_echo_n "checking for $ac_word... " >&6; }
6601if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6602  $as_echo_n "(cached) " >&6
6603else
6604  if test -n "$ac_ct_DSYMUTIL"; then
6605  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6606else
6607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608for as_dir in $PATH
6609do
6610  IFS=$as_save_IFS
6611  test -z "$as_dir" && as_dir=.
6612    for ac_exec_ext in '' $ac_executable_extensions; do
6613  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6614    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6615    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6616    break 2
6617  fi
6618done
6619  done
6620IFS=$as_save_IFS
6621
6622fi
6623fi
6624ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6625if test -n "$ac_ct_DSYMUTIL"; then
6626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6627$as_echo "$ac_ct_DSYMUTIL" >&6; }
6628else
6629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6630$as_echo "no" >&6; }
6631fi
6632
6633  if test "x$ac_ct_DSYMUTIL" = x; then
6634    DSYMUTIL=":"
6635  else
6636    case $cross_compiling:$ac_tool_warned in
6637yes:)
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6639$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6640ac_tool_warned=yes ;;
6641esac
6642    DSYMUTIL=$ac_ct_DSYMUTIL
6643  fi
6644else
6645  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6646fi
6647
6648    if test -n "$ac_tool_prefix"; then
6649  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6650set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6652$as_echo_n "checking for $ac_word... " >&6; }
6653if ${ac_cv_prog_NMEDIT+:} false; then :
6654  $as_echo_n "(cached) " >&6
6655else
6656  if test -n "$NMEDIT"; then
6657  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6658else
6659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660for as_dir in $PATH
6661do
6662  IFS=$as_save_IFS
6663  test -z "$as_dir" && as_dir=.
6664    for ac_exec_ext in '' $ac_executable_extensions; do
6665  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6666    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6667    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6668    break 2
6669  fi
6670done
6671  done
6672IFS=$as_save_IFS
6673
6674fi
6675fi
6676NMEDIT=$ac_cv_prog_NMEDIT
6677if test -n "$NMEDIT"; then
6678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6679$as_echo "$NMEDIT" >&6; }
6680else
6681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6682$as_echo "no" >&6; }
6683fi
6684
6685
6686fi
6687if test -z "$ac_cv_prog_NMEDIT"; then
6688  ac_ct_NMEDIT=$NMEDIT
6689  # Extract the first word of "nmedit", so it can be a program name with args.
6690set dummy nmedit; ac_word=$2
6691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6692$as_echo_n "checking for $ac_word... " >&6; }
6693if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6694  $as_echo_n "(cached) " >&6
6695else
6696  if test -n "$ac_ct_NMEDIT"; then
6697  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6698else
6699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700for as_dir in $PATH
6701do
6702  IFS=$as_save_IFS
6703  test -z "$as_dir" && as_dir=.
6704    for ac_exec_ext in '' $ac_executable_extensions; do
6705  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6706    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6707    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6708    break 2
6709  fi
6710done
6711  done
6712IFS=$as_save_IFS
6713
6714fi
6715fi
6716ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6717if test -n "$ac_ct_NMEDIT"; then
6718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6719$as_echo "$ac_ct_NMEDIT" >&6; }
6720else
6721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6722$as_echo "no" >&6; }
6723fi
6724
6725  if test "x$ac_ct_NMEDIT" = x; then
6726    NMEDIT=":"
6727  else
6728    case $cross_compiling:$ac_tool_warned in
6729yes:)
6730{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6732ac_tool_warned=yes ;;
6733esac
6734    NMEDIT=$ac_ct_NMEDIT
6735  fi
6736else
6737  NMEDIT="$ac_cv_prog_NMEDIT"
6738fi
6739
6740    if test -n "$ac_tool_prefix"; then
6741  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6742set dummy ${ac_tool_prefix}lipo; ac_word=$2
6743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6744$as_echo_n "checking for $ac_word... " >&6; }
6745if ${ac_cv_prog_LIPO+:} false; then :
6746  $as_echo_n "(cached) " >&6
6747else
6748  if test -n "$LIPO"; then
6749  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6750else
6751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752for as_dir in $PATH
6753do
6754  IFS=$as_save_IFS
6755  test -z "$as_dir" && as_dir=.
6756    for ac_exec_ext in '' $ac_executable_extensions; do
6757  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6758    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6759    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6760    break 2
6761  fi
6762done
6763  done
6764IFS=$as_save_IFS
6765
6766fi
6767fi
6768LIPO=$ac_cv_prog_LIPO
6769if test -n "$LIPO"; then
6770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6771$as_echo "$LIPO" >&6; }
6772else
6773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6774$as_echo "no" >&6; }
6775fi
6776
6777
6778fi
6779if test -z "$ac_cv_prog_LIPO"; then
6780  ac_ct_LIPO=$LIPO
6781  # Extract the first word of "lipo", so it can be a program name with args.
6782set dummy lipo; ac_word=$2
6783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6784$as_echo_n "checking for $ac_word... " >&6; }
6785if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6786  $as_echo_n "(cached) " >&6
6787else
6788  if test -n "$ac_ct_LIPO"; then
6789  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6790else
6791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792for as_dir in $PATH
6793do
6794  IFS=$as_save_IFS
6795  test -z "$as_dir" && as_dir=.
6796    for ac_exec_ext in '' $ac_executable_extensions; do
6797  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6798    ac_cv_prog_ac_ct_LIPO="lipo"
6799    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6800    break 2
6801  fi
6802done
6803  done
6804IFS=$as_save_IFS
6805
6806fi
6807fi
6808ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6809if test -n "$ac_ct_LIPO"; then
6810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6811$as_echo "$ac_ct_LIPO" >&6; }
6812else
6813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6814$as_echo "no" >&6; }
6815fi
6816
6817  if test "x$ac_ct_LIPO" = x; then
6818    LIPO=":"
6819  else
6820    case $cross_compiling:$ac_tool_warned in
6821yes:)
6822{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6824ac_tool_warned=yes ;;
6825esac
6826    LIPO=$ac_ct_LIPO
6827  fi
6828else
6829  LIPO="$ac_cv_prog_LIPO"
6830fi
6831
6832    if test -n "$ac_tool_prefix"; then
6833  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6834set dummy ${ac_tool_prefix}otool; ac_word=$2
6835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6836$as_echo_n "checking for $ac_word... " >&6; }
6837if ${ac_cv_prog_OTOOL+:} false; then :
6838  $as_echo_n "(cached) " >&6
6839else
6840  if test -n "$OTOOL"; then
6841  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6842else
6843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844for as_dir in $PATH
6845do
6846  IFS=$as_save_IFS
6847  test -z "$as_dir" && as_dir=.
6848    for ac_exec_ext in '' $ac_executable_extensions; do
6849  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6850    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6851    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6852    break 2
6853  fi
6854done
6855  done
6856IFS=$as_save_IFS
6857
6858fi
6859fi
6860OTOOL=$ac_cv_prog_OTOOL
6861if test -n "$OTOOL"; then
6862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6863$as_echo "$OTOOL" >&6; }
6864else
6865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6866$as_echo "no" >&6; }
6867fi
6868
6869
6870fi
6871if test -z "$ac_cv_prog_OTOOL"; then
6872  ac_ct_OTOOL=$OTOOL
6873  # Extract the first word of "otool", so it can be a program name with args.
6874set dummy otool; ac_word=$2
6875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6876$as_echo_n "checking for $ac_word... " >&6; }
6877if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6878  $as_echo_n "(cached) " >&6
6879else
6880  if test -n "$ac_ct_OTOOL"; then
6881  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6882else
6883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884for as_dir in $PATH
6885do
6886  IFS=$as_save_IFS
6887  test -z "$as_dir" && as_dir=.
6888    for ac_exec_ext in '' $ac_executable_extensions; do
6889  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6890    ac_cv_prog_ac_ct_OTOOL="otool"
6891    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6892    break 2
6893  fi
6894done
6895  done
6896IFS=$as_save_IFS
6897
6898fi
6899fi
6900ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6901if test -n "$ac_ct_OTOOL"; then
6902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6903$as_echo "$ac_ct_OTOOL" >&6; }
6904else
6905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6906$as_echo "no" >&6; }
6907fi
6908
6909  if test "x$ac_ct_OTOOL" = x; then
6910    OTOOL=":"
6911  else
6912    case $cross_compiling:$ac_tool_warned in
6913yes:)
6914{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6915$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6916ac_tool_warned=yes ;;
6917esac
6918    OTOOL=$ac_ct_OTOOL
6919  fi
6920else
6921  OTOOL="$ac_cv_prog_OTOOL"
6922fi
6923
6924    if test -n "$ac_tool_prefix"; then
6925  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6926set dummy ${ac_tool_prefix}otool64; ac_word=$2
6927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6928$as_echo_n "checking for $ac_word... " >&6; }
6929if ${ac_cv_prog_OTOOL64+:} false; then :
6930  $as_echo_n "(cached) " >&6
6931else
6932  if test -n "$OTOOL64"; then
6933  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6934else
6935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936for as_dir in $PATH
6937do
6938  IFS=$as_save_IFS
6939  test -z "$as_dir" && as_dir=.
6940    for ac_exec_ext in '' $ac_executable_extensions; do
6941  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6942    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6943    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6944    break 2
6945  fi
6946done
6947  done
6948IFS=$as_save_IFS
6949
6950fi
6951fi
6952OTOOL64=$ac_cv_prog_OTOOL64
6953if test -n "$OTOOL64"; then
6954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6955$as_echo "$OTOOL64" >&6; }
6956else
6957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6958$as_echo "no" >&6; }
6959fi
6960
6961
6962fi
6963if test -z "$ac_cv_prog_OTOOL64"; then
6964  ac_ct_OTOOL64=$OTOOL64
6965  # Extract the first word of "otool64", so it can be a program name with args.
6966set dummy otool64; ac_word=$2
6967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6968$as_echo_n "checking for $ac_word... " >&6; }
6969if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6970  $as_echo_n "(cached) " >&6
6971else
6972  if test -n "$ac_ct_OTOOL64"; then
6973  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6974else
6975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976for as_dir in $PATH
6977do
6978  IFS=$as_save_IFS
6979  test -z "$as_dir" && as_dir=.
6980    for ac_exec_ext in '' $ac_executable_extensions; do
6981  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6982    ac_cv_prog_ac_ct_OTOOL64="otool64"
6983    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6984    break 2
6985  fi
6986done
6987  done
6988IFS=$as_save_IFS
6989
6990fi
6991fi
6992ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6993if test -n "$ac_ct_OTOOL64"; then
6994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6995$as_echo "$ac_ct_OTOOL64" >&6; }
6996else
6997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6998$as_echo "no" >&6; }
6999fi
7000
7001  if test "x$ac_ct_OTOOL64" = x; then
7002    OTOOL64=":"
7003  else
7004    case $cross_compiling:$ac_tool_warned in
7005yes:)
7006{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7007$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7008ac_tool_warned=yes ;;
7009esac
7010    OTOOL64=$ac_ct_OTOOL64
7011  fi
7012else
7013  OTOOL64="$ac_cv_prog_OTOOL64"
7014fi
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7043$as_echo_n "checking for -single_module linker flag... " >&6; }
7044if ${lt_cv_apple_cc_single_mod+:} false; then :
7045  $as_echo_n "(cached) " >&6
7046else
7047  lt_cv_apple_cc_single_mod=no
7048      if test -z "${LT_MULTI_MODULE}"; then
7049	# By default we will add the -single_module flag. You can override
7050	# by either setting the environment variable LT_MULTI_MODULE
7051	# non-empty at configure time, or by adding -multi_module to the
7052	# link flags.
7053	rm -rf libconftest.dylib*
7054	echo "int foo(void){return 1;}" > conftest.c
7055	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7056-dynamiclib -Wl,-single_module conftest.c" >&5
7057	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7058	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7059        _lt_result=$?
7060	# If there is a non-empty error log, and "single_module"
7061	# appears in it, assume the flag caused a linker warning
7062        if test -s conftest.err && $GREP single_module conftest.err; then
7063	  cat conftest.err >&5
7064	# Otherwise, if the output was created with a 0 exit code from
7065	# the compiler, it worked.
7066	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7067	  lt_cv_apple_cc_single_mod=yes
7068	else
7069	  cat conftest.err >&5
7070	fi
7071	rm -rf libconftest.dylib*
7072	rm -f conftest.*
7073      fi
7074fi
7075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7076$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7077
7078    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7079$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7080if ${lt_cv_ld_exported_symbols_list+:} false; then :
7081  $as_echo_n "(cached) " >&6
7082else
7083  lt_cv_ld_exported_symbols_list=no
7084      save_LDFLAGS=$LDFLAGS
7085      echo "_main" > conftest.sym
7086      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7087      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7088/* end confdefs.h.  */
7089
7090int
7091main ()
7092{
7093
7094  ;
7095  return 0;
7096}
7097_ACEOF
7098if ac_fn_c_try_link "$LINENO"; then :
7099  lt_cv_ld_exported_symbols_list=yes
7100else
7101  lt_cv_ld_exported_symbols_list=no
7102fi
7103rm -f core conftest.err conftest.$ac_objext \
7104    conftest$ac_exeext conftest.$ac_ext
7105	LDFLAGS="$save_LDFLAGS"
7106
7107fi
7108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7109$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7110
7111    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7112$as_echo_n "checking for -force_load linker flag... " >&6; }
7113if ${lt_cv_ld_force_load+:} false; then :
7114  $as_echo_n "(cached) " >&6
7115else
7116  lt_cv_ld_force_load=no
7117      cat > conftest.c << _LT_EOF
7118int forced_loaded() { return 2;}
7119_LT_EOF
7120      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7121      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7122      echo "$AR cru libconftest.a conftest.o" >&5
7123      $AR cru libconftest.a conftest.o 2>&5
7124      echo "$RANLIB libconftest.a" >&5
7125      $RANLIB libconftest.a 2>&5
7126      cat > conftest.c << _LT_EOF
7127int main() { return 0;}
7128_LT_EOF
7129      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7130      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7131      _lt_result=$?
7132      if test -s conftest.err && $GREP force_load conftest.err; then
7133	cat conftest.err >&5
7134      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7135	lt_cv_ld_force_load=yes
7136      else
7137	cat conftest.err >&5
7138      fi
7139        rm -f conftest.err libconftest.a conftest conftest.c
7140        rm -rf conftest.dSYM
7141
7142fi
7143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7144$as_echo "$lt_cv_ld_force_load" >&6; }
7145    case $host_os in
7146    rhapsody* | darwin1.[012])
7147      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7148    darwin1.*)
7149      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7150    darwin*) # darwin 5.x on
7151      # if running on 10.5 or later, the deployment target defaults
7152      # to the OS version, if on x86, and 10.4, the deployment
7153      # target defaults to 10.4. Don't you love it?
7154      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7155	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7156	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7157	10.[012]*)
7158	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7159	10.*)
7160	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7161      esac
7162    ;;
7163  esac
7164    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7165      _lt_dar_single_mod='$single_module'
7166    fi
7167    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7168      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7169    else
7170      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7171    fi
7172    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7173      _lt_dsymutil='~$DSYMUTIL $lib || :'
7174    else
7175      _lt_dsymutil=
7176    fi
7177    ;;
7178  esac
7179
7180ac_ext=c
7181ac_cpp='$CPP $CPPFLAGS'
7182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7184ac_compiler_gnu=$ac_cv_c_compiler_gnu
7185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7186$as_echo_n "checking how to run the C preprocessor... " >&6; }
7187# On Suns, sometimes $CPP names a directory.
7188if test -n "$CPP" && test -d "$CPP"; then
7189  CPP=
7190fi
7191if test -z "$CPP"; then
7192  if ${ac_cv_prog_CPP+:} false; then :
7193  $as_echo_n "(cached) " >&6
7194else
7195      # Double quotes because CPP needs to be expanded
7196    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7197    do
7198      ac_preproc_ok=false
7199for ac_c_preproc_warn_flag in '' yes
7200do
7201  # Use a header file that comes with gcc, so configuring glibc
7202  # with a fresh cross-compiler works.
7203  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7204  # <limits.h> exists even on freestanding compilers.
7205  # On the NeXT, cc -E runs the code through the compiler's parser,
7206  # not just through cpp. "Syntax error" is here to catch this case.
7207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7208/* end confdefs.h.  */
7209#ifdef __STDC__
7210# include <limits.h>
7211#else
7212# include <assert.h>
7213#endif
7214		     Syntax error
7215_ACEOF
7216if ac_fn_c_try_cpp "$LINENO"; then :
7217
7218else
7219  # Broken: fails on valid input.
7220continue
7221fi
7222rm -f conftest.err conftest.i conftest.$ac_ext
7223
7224  # OK, works on sane cases.  Now check whether nonexistent headers
7225  # can be detected and how.
7226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7227/* end confdefs.h.  */
7228#include <ac_nonexistent.h>
7229_ACEOF
7230if ac_fn_c_try_cpp "$LINENO"; then :
7231  # Broken: success on invalid input.
7232continue
7233else
7234  # Passes both tests.
7235ac_preproc_ok=:
7236break
7237fi
7238rm -f conftest.err conftest.i conftest.$ac_ext
7239
7240done
7241# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7242rm -f conftest.i conftest.err conftest.$ac_ext
7243if $ac_preproc_ok; then :
7244  break
7245fi
7246
7247    done
7248    ac_cv_prog_CPP=$CPP
7249
7250fi
7251  CPP=$ac_cv_prog_CPP
7252else
7253  ac_cv_prog_CPP=$CPP
7254fi
7255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7256$as_echo "$CPP" >&6; }
7257ac_preproc_ok=false
7258for ac_c_preproc_warn_flag in '' yes
7259do
7260  # Use a header file that comes with gcc, so configuring glibc
7261  # with a fresh cross-compiler works.
7262  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7263  # <limits.h> exists even on freestanding compilers.
7264  # On the NeXT, cc -E runs the code through the compiler's parser,
7265  # not just through cpp. "Syntax error" is here to catch this case.
7266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7267/* end confdefs.h.  */
7268#ifdef __STDC__
7269# include <limits.h>
7270#else
7271# include <assert.h>
7272#endif
7273		     Syntax error
7274_ACEOF
7275if ac_fn_c_try_cpp "$LINENO"; then :
7276
7277else
7278  # Broken: fails on valid input.
7279continue
7280fi
7281rm -f conftest.err conftest.i conftest.$ac_ext
7282
7283  # OK, works on sane cases.  Now check whether nonexistent headers
7284  # can be detected and how.
7285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7286/* end confdefs.h.  */
7287#include <ac_nonexistent.h>
7288_ACEOF
7289if ac_fn_c_try_cpp "$LINENO"; then :
7290  # Broken: success on invalid input.
7291continue
7292else
7293  # Passes both tests.
7294ac_preproc_ok=:
7295break
7296fi
7297rm -f conftest.err conftest.i conftest.$ac_ext
7298
7299done
7300# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7301rm -f conftest.i conftest.err conftest.$ac_ext
7302if $ac_preproc_ok; then :
7303
7304else
7305  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7306$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7307as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7308See \`config.log' for more details" "$LINENO" 5; }
7309fi
7310
7311ac_ext=c
7312ac_cpp='$CPP $CPPFLAGS'
7313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7315ac_compiler_gnu=$ac_cv_c_compiler_gnu
7316
7317
7318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7319$as_echo_n "checking for ANSI C header files... " >&6; }
7320if ${ac_cv_header_stdc+:} false; then :
7321  $as_echo_n "(cached) " >&6
7322else
7323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7324/* end confdefs.h.  */
7325#include <stdlib.h>
7326#include <stdarg.h>
7327#include <string.h>
7328#include <float.h>
7329
7330int
7331main ()
7332{
7333
7334  ;
7335  return 0;
7336}
7337_ACEOF
7338if ac_fn_c_try_compile "$LINENO"; then :
7339  ac_cv_header_stdc=yes
7340else
7341  ac_cv_header_stdc=no
7342fi
7343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7344
7345if test $ac_cv_header_stdc = yes; then
7346  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7348/* end confdefs.h.  */
7349#include <string.h>
7350
7351_ACEOF
7352if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7353  $EGREP "memchr" >/dev/null 2>&1; then :
7354
7355else
7356  ac_cv_header_stdc=no
7357fi
7358rm -f conftest*
7359
7360fi
7361
7362if test $ac_cv_header_stdc = yes; then
7363  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365/* end confdefs.h.  */
7366#include <stdlib.h>
7367
7368_ACEOF
7369if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7370  $EGREP "free" >/dev/null 2>&1; then :
7371
7372else
7373  ac_cv_header_stdc=no
7374fi
7375rm -f conftest*
7376
7377fi
7378
7379if test $ac_cv_header_stdc = yes; then
7380  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7381  if test "$cross_compiling" = yes; then :
7382  :
7383else
7384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7385/* end confdefs.h.  */
7386#include <ctype.h>
7387#include <stdlib.h>
7388#if ((' ' & 0x0FF) == 0x020)
7389# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7390# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7391#else
7392# define ISLOWER(c) \
7393		   (('a' <= (c) && (c) <= 'i') \
7394		     || ('j' <= (c) && (c) <= 'r') \
7395		     || ('s' <= (c) && (c) <= 'z'))
7396# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7397#endif
7398
7399#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7400int
7401main ()
7402{
7403  int i;
7404  for (i = 0; i < 256; i++)
7405    if (XOR (islower (i), ISLOWER (i))
7406	|| toupper (i) != TOUPPER (i))
7407      return 2;
7408  return 0;
7409}
7410_ACEOF
7411if ac_fn_c_try_run "$LINENO"; then :
7412
7413else
7414  ac_cv_header_stdc=no
7415fi
7416rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7417  conftest.$ac_objext conftest.beam conftest.$ac_ext
7418fi
7419
7420fi
7421fi
7422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7423$as_echo "$ac_cv_header_stdc" >&6; }
7424if test $ac_cv_header_stdc = yes; then
7425
7426$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7427
7428fi
7429
7430# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7431for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7432		  inttypes.h stdint.h unistd.h
7433do :
7434  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7435ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7436"
7437if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7438  cat >>confdefs.h <<_ACEOF
7439#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7440_ACEOF
7441
7442fi
7443
7444done
7445
7446
7447for ac_header in dlfcn.h
7448do :
7449  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7450"
7451if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7452  cat >>confdefs.h <<_ACEOF
7453#define HAVE_DLFCN_H 1
7454_ACEOF
7455
7456fi
7457
7458done
7459
7460
7461
7462
7463
7464# Set options
7465
7466
7467
7468        enable_dlopen=no
7469
7470
7471  enable_win32_dll=no
7472
7473
7474            # Check whether --enable-shared was given.
7475if test "${enable_shared+set}" = set; then :
7476  enableval=$enable_shared; p=${PACKAGE-default}
7477    case $enableval in
7478    yes) enable_shared=yes ;;
7479    no) enable_shared=no ;;
7480    *)
7481      enable_shared=no
7482      # Look at the argument we got.  We use all the common list separators.
7483      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7484      for pkg in $enableval; do
7485	IFS="$lt_save_ifs"
7486	if test "X$pkg" = "X$p"; then
7487	  enable_shared=yes
7488	fi
7489      done
7490      IFS="$lt_save_ifs"
7491      ;;
7492    esac
7493else
7494  enable_shared=yes
7495fi
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505  # Check whether --enable-static was given.
7506if test "${enable_static+set}" = set; then :
7507  enableval=$enable_static; p=${PACKAGE-default}
7508    case $enableval in
7509    yes) enable_static=yes ;;
7510    no) enable_static=no ;;
7511    *)
7512     enable_static=no
7513      # Look at the argument we got.  We use all the common list separators.
7514      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7515      for pkg in $enableval; do
7516	IFS="$lt_save_ifs"
7517	if test "X$pkg" = "X$p"; then
7518	  enable_static=yes
7519	fi
7520      done
7521      IFS="$lt_save_ifs"
7522      ;;
7523    esac
7524else
7525  enable_static=yes
7526fi
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537# Check whether --with-pic was given.
7538if test "${with_pic+set}" = set; then :
7539  withval=$with_pic; lt_p=${PACKAGE-default}
7540    case $withval in
7541    yes|no) pic_mode=$withval ;;
7542    *)
7543      pic_mode=default
7544      # Look at the argument we got.  We use all the common list separators.
7545      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7546      for lt_pkg in $withval; do
7547	IFS="$lt_save_ifs"
7548	if test "X$lt_pkg" = "X$lt_p"; then
7549	  pic_mode=yes
7550	fi
7551      done
7552      IFS="$lt_save_ifs"
7553      ;;
7554    esac
7555else
7556  pic_mode=default
7557fi
7558
7559
7560test -z "$pic_mode" && pic_mode=default
7561
7562
7563
7564
7565
7566
7567
7568  # Check whether --enable-fast-install was given.
7569if test "${enable_fast_install+set}" = set; then :
7570  enableval=$enable_fast_install; p=${PACKAGE-default}
7571    case $enableval in
7572    yes) enable_fast_install=yes ;;
7573    no) enable_fast_install=no ;;
7574    *)
7575      enable_fast_install=no
7576      # Look at the argument we got.  We use all the common list separators.
7577      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7578      for pkg in $enableval; do
7579	IFS="$lt_save_ifs"
7580	if test "X$pkg" = "X$p"; then
7581	  enable_fast_install=yes
7582	fi
7583      done
7584      IFS="$lt_save_ifs"
7585      ;;
7586    esac
7587else
7588  enable_fast_install=yes
7589fi
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601# This can be used to rebuild libtool when needed
7602LIBTOOL_DEPS="$ltmain"
7603
7604# Always use our own libtool.
7605LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636test -z "$LN_S" && LN_S="ln -s"
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651if test -n "${ZSH_VERSION+set}" ; then
7652   setopt NO_GLOB_SUBST
7653fi
7654
7655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7656$as_echo_n "checking for objdir... " >&6; }
7657if ${lt_cv_objdir+:} false; then :
7658  $as_echo_n "(cached) " >&6
7659else
7660  rm -f .libs 2>/dev/null
7661mkdir .libs 2>/dev/null
7662if test -d .libs; then
7663  lt_cv_objdir=.libs
7664else
7665  # MS-DOS does not allow filenames that begin with a dot.
7666  lt_cv_objdir=_libs
7667fi
7668rmdir .libs 2>/dev/null
7669fi
7670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7671$as_echo "$lt_cv_objdir" >&6; }
7672objdir=$lt_cv_objdir
7673
7674
7675
7676
7677
7678cat >>confdefs.h <<_ACEOF
7679#define LT_OBJDIR "$lt_cv_objdir/"
7680_ACEOF
7681
7682
7683
7684
7685case $host_os in
7686aix3*)
7687  # AIX sometimes has problems with the GCC collect2 program.  For some
7688  # reason, if we set the COLLECT_NAMES environment variable, the problems
7689  # vanish in a puff of smoke.
7690  if test "X${COLLECT_NAMES+set}" != Xset; then
7691    COLLECT_NAMES=
7692    export COLLECT_NAMES
7693  fi
7694  ;;
7695esac
7696
7697# Global variables:
7698ofile=libtool
7699can_build_shared=yes
7700
7701# All known linkers require a `.a' archive for static linking (except MSVC,
7702# which needs '.lib').
7703libext=a
7704
7705with_gnu_ld="$lt_cv_prog_gnu_ld"
7706
7707old_CC="$CC"
7708old_CFLAGS="$CFLAGS"
7709
7710# Set sane defaults for various variables
7711test -z "$CC" && CC=cc
7712test -z "$LTCC" && LTCC=$CC
7713test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7714test -z "$LD" && LD=ld
7715test -z "$ac_objext" && ac_objext=o
7716
7717for cc_temp in $compiler""; do
7718  case $cc_temp in
7719    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7720    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7721    \-*) ;;
7722    *) break;;
7723  esac
7724done
7725cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7726
7727
7728# Only perform the check for file, if the check method requires it
7729test -z "$MAGIC_CMD" && MAGIC_CMD=file
7730case $deplibs_check_method in
7731file_magic*)
7732  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7733    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7734$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7735if ${lt_cv_path_MAGIC_CMD+:} false; then :
7736  $as_echo_n "(cached) " >&6
7737else
7738  case $MAGIC_CMD in
7739[\\/*] |  ?:[\\/]*)
7740  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7741  ;;
7742*)
7743  lt_save_MAGIC_CMD="$MAGIC_CMD"
7744  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7745  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7746  for ac_dir in $ac_dummy; do
7747    IFS="$lt_save_ifs"
7748    test -z "$ac_dir" && ac_dir=.
7749    if test -f $ac_dir/${ac_tool_prefix}file; then
7750      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7751      if test -n "$file_magic_test_file"; then
7752	case $deplibs_check_method in
7753	"file_magic "*)
7754	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7755	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7756	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7757	    $EGREP "$file_magic_regex" > /dev/null; then
7758	    :
7759	  else
7760	    cat <<_LT_EOF 1>&2
7761
7762*** Warning: the command libtool uses to detect shared libraries,
7763*** $file_magic_cmd, produces output that libtool cannot recognize.
7764*** The result is that libtool may fail to recognize shared libraries
7765*** as such.  This will affect the creation of libtool libraries that
7766*** depend on shared libraries, but programs linked with such libtool
7767*** libraries will work regardless of this problem.  Nevertheless, you
7768*** may want to report the problem to your system manager and/or to
7769*** bug-libtool@gnu.org
7770
7771_LT_EOF
7772	  fi ;;
7773	esac
7774      fi
7775      break
7776    fi
7777  done
7778  IFS="$lt_save_ifs"
7779  MAGIC_CMD="$lt_save_MAGIC_CMD"
7780  ;;
7781esac
7782fi
7783
7784MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7785if test -n "$MAGIC_CMD"; then
7786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7787$as_echo "$MAGIC_CMD" >&6; }
7788else
7789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7790$as_echo "no" >&6; }
7791fi
7792
7793
7794
7795
7796
7797if test -z "$lt_cv_path_MAGIC_CMD"; then
7798  if test -n "$ac_tool_prefix"; then
7799    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7800$as_echo_n "checking for file... " >&6; }
7801if ${lt_cv_path_MAGIC_CMD+:} false; then :
7802  $as_echo_n "(cached) " >&6
7803else
7804  case $MAGIC_CMD in
7805[\\/*] |  ?:[\\/]*)
7806  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7807  ;;
7808*)
7809  lt_save_MAGIC_CMD="$MAGIC_CMD"
7810  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7811  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7812  for ac_dir in $ac_dummy; do
7813    IFS="$lt_save_ifs"
7814    test -z "$ac_dir" && ac_dir=.
7815    if test -f $ac_dir/file; then
7816      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7817      if test -n "$file_magic_test_file"; then
7818	case $deplibs_check_method in
7819	"file_magic "*)
7820	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7821	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7822	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7823	    $EGREP "$file_magic_regex" > /dev/null; then
7824	    :
7825	  else
7826	    cat <<_LT_EOF 1>&2
7827
7828*** Warning: the command libtool uses to detect shared libraries,
7829*** $file_magic_cmd, produces output that libtool cannot recognize.
7830*** The result is that libtool may fail to recognize shared libraries
7831*** as such.  This will affect the creation of libtool libraries that
7832*** depend on shared libraries, but programs linked with such libtool
7833*** libraries will work regardless of this problem.  Nevertheless, you
7834*** may want to report the problem to your system manager and/or to
7835*** bug-libtool@gnu.org
7836
7837_LT_EOF
7838	  fi ;;
7839	esac
7840      fi
7841      break
7842    fi
7843  done
7844  IFS="$lt_save_ifs"
7845  MAGIC_CMD="$lt_save_MAGIC_CMD"
7846  ;;
7847esac
7848fi
7849
7850MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7851if test -n "$MAGIC_CMD"; then
7852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7853$as_echo "$MAGIC_CMD" >&6; }
7854else
7855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7856$as_echo "no" >&6; }
7857fi
7858
7859
7860  else
7861    MAGIC_CMD=:
7862  fi
7863fi
7864
7865  fi
7866  ;;
7867esac
7868
7869# Use C for the default configuration in the libtool script
7870
7871lt_save_CC="$CC"
7872ac_ext=c
7873ac_cpp='$CPP $CPPFLAGS'
7874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7876ac_compiler_gnu=$ac_cv_c_compiler_gnu
7877
7878
7879# Source file extension for C test sources.
7880ac_ext=c
7881
7882# Object file extension for compiled C test sources.
7883objext=o
7884objext=$objext
7885
7886# Code to be used in simple compile tests
7887lt_simple_compile_test_code="int some_variable = 0;"
7888
7889# Code to be used in simple link tests
7890lt_simple_link_test_code='int main(){return(0);}'
7891
7892
7893
7894
7895
7896
7897
7898# If no C compiler was specified, use CC.
7899LTCC=${LTCC-"$CC"}
7900
7901# If no C compiler flags were specified, use CFLAGS.
7902LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7903
7904# Allow CC to be a program name with arguments.
7905compiler=$CC
7906
7907# Save the default compiler, since it gets overwritten when the other
7908# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7909compiler_DEFAULT=$CC
7910
7911# save warnings/boilerplate of simple test code
7912ac_outfile=conftest.$ac_objext
7913echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7914eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7915_lt_compiler_boilerplate=`cat conftest.err`
7916$RM conftest*
7917
7918ac_outfile=conftest.$ac_objext
7919echo "$lt_simple_link_test_code" >conftest.$ac_ext
7920eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7921_lt_linker_boilerplate=`cat conftest.err`
7922$RM -r conftest*
7923
7924
7925if test -n "$compiler"; then
7926
7927lt_prog_compiler_no_builtin_flag=
7928
7929if test "$GCC" = yes; then
7930  case $cc_basename in
7931  nvcc*)
7932    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7933  *)
7934    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7935  esac
7936
7937  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7938$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7939if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7940  $as_echo_n "(cached) " >&6
7941else
7942  lt_cv_prog_compiler_rtti_exceptions=no
7943   ac_outfile=conftest.$ac_objext
7944   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7945   lt_compiler_flag="-fno-rtti -fno-exceptions"
7946   # Insert the option either (1) after the last *FLAGS variable, or
7947   # (2) before a word containing "conftest.", or (3) at the end.
7948   # Note that $ac_compile itself does not contain backslashes and begins
7949   # with a dollar sign (not a hyphen), so the echo should work correctly.
7950   # The option is referenced via a variable to avoid confusing sed.
7951   lt_compile=`echo "$ac_compile" | $SED \
7952   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7953   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7954   -e 's:$: $lt_compiler_flag:'`
7955   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7956   (eval "$lt_compile" 2>conftest.err)
7957   ac_status=$?
7958   cat conftest.err >&5
7959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960   if (exit $ac_status) && test -s "$ac_outfile"; then
7961     # The compiler can only warn and ignore the option if not recognized
7962     # So say no if there are warnings other than the usual output.
7963     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7964     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7965     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7966       lt_cv_prog_compiler_rtti_exceptions=yes
7967     fi
7968   fi
7969   $RM conftest*
7970
7971fi
7972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7973$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7974
7975if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7976    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7977else
7978    :
7979fi
7980
7981fi
7982
7983
7984
7985
7986
7987
7988  lt_prog_compiler_wl=
7989lt_prog_compiler_pic=
7990lt_prog_compiler_static=
7991
7992
7993  if test "$GCC" = yes; then
7994    lt_prog_compiler_wl='-Wl,'
7995    lt_prog_compiler_static='-static'
7996
7997    case $host_os in
7998      aix*)
7999      # All AIX code is PIC.
8000      if test "$host_cpu" = ia64; then
8001	# AIX 5 now supports IA64 processor
8002	lt_prog_compiler_static='-Bstatic'
8003      fi
8004      ;;
8005
8006    amigaos*)
8007      case $host_cpu in
8008      powerpc)
8009            # see comment about AmigaOS4 .so support
8010            lt_prog_compiler_pic='-fPIC'
8011        ;;
8012      m68k)
8013            # FIXME: we need at least 68020 code to build shared libraries, but
8014            # adding the `-m68020' flag to GCC prevents building anything better,
8015            # like `-m68040'.
8016            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8017        ;;
8018      esac
8019      ;;
8020
8021    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8022      # PIC is the default for these OSes.
8023      ;;
8024
8025    mingw* | cygwin* | pw32* | os2* | cegcc*)
8026      # This hack is so that the source file can tell whether it is being
8027      # built for inclusion in a dll (and should export symbols for example).
8028      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8029      # (--disable-auto-import) libraries
8030      lt_prog_compiler_pic='-DDLL_EXPORT'
8031      ;;
8032
8033    darwin* | rhapsody*)
8034      # PIC is the default on this platform
8035      # Common symbols not allowed in MH_DYLIB files
8036      lt_prog_compiler_pic='-fno-common'
8037      ;;
8038
8039    haiku*)
8040      # PIC is the default for Haiku.
8041      # The "-static" flag exists, but is broken.
8042      lt_prog_compiler_static=
8043      ;;
8044
8045    hpux*)
8046      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8047      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8048      # sets the default TLS model and affects inlining.
8049      case $host_cpu in
8050      hppa*64*)
8051	# +Z the default
8052	;;
8053      *)
8054	lt_prog_compiler_pic='-fPIC'
8055	;;
8056      esac
8057      ;;
8058
8059    interix[3-9]*)
8060      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8061      # Instead, we relocate shared libraries at runtime.
8062      ;;
8063
8064    msdosdjgpp*)
8065      # Just because we use GCC doesn't mean we suddenly get shared libraries
8066      # on systems that don't support them.
8067      lt_prog_compiler_can_build_shared=no
8068      enable_shared=no
8069      ;;
8070
8071    *nto* | *qnx*)
8072      # QNX uses GNU C++, but need to define -shared option too, otherwise
8073      # it will coredump.
8074      lt_prog_compiler_pic='-fPIC -shared'
8075      ;;
8076
8077    sysv4*MP*)
8078      if test -d /usr/nec; then
8079	lt_prog_compiler_pic=-Kconform_pic
8080      fi
8081      ;;
8082
8083    *)
8084      lt_prog_compiler_pic='-fPIC'
8085      ;;
8086    esac
8087
8088    case $cc_basename in
8089    nvcc*) # Cuda Compiler Driver 2.2
8090      lt_prog_compiler_wl='-Xlinker '
8091      if test -n "$lt_prog_compiler_pic"; then
8092        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8093      fi
8094      ;;
8095    esac
8096  else
8097    # PORTME Check for flag to pass linker flags through the system compiler.
8098    case $host_os in
8099    aix*)
8100      lt_prog_compiler_wl='-Wl,'
8101      if test "$host_cpu" = ia64; then
8102	# AIX 5 now supports IA64 processor
8103	lt_prog_compiler_static='-Bstatic'
8104      else
8105	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8106      fi
8107      ;;
8108
8109    mingw* | cygwin* | pw32* | os2* | cegcc*)
8110      # This hack is so that the source file can tell whether it is being
8111      # built for inclusion in a dll (and should export symbols for example).
8112      lt_prog_compiler_pic='-DDLL_EXPORT'
8113      ;;
8114
8115    hpux9* | hpux10* | hpux11*)
8116      lt_prog_compiler_wl='-Wl,'
8117      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8118      # not for PA HP-UX.
8119      case $host_cpu in
8120      hppa*64*|ia64*)
8121	# +Z the default
8122	;;
8123      *)
8124	lt_prog_compiler_pic='+Z'
8125	;;
8126      esac
8127      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8128      lt_prog_compiler_static='${wl}-a ${wl}archive'
8129      ;;
8130
8131    irix5* | irix6* | nonstopux*)
8132      lt_prog_compiler_wl='-Wl,'
8133      # PIC (with -KPIC) is the default.
8134      lt_prog_compiler_static='-non_shared'
8135      ;;
8136
8137    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8138      case $cc_basename in
8139      # old Intel for x86_64 which still supported -KPIC.
8140      ecc*)
8141	lt_prog_compiler_wl='-Wl,'
8142	lt_prog_compiler_pic='-KPIC'
8143	lt_prog_compiler_static='-static'
8144        ;;
8145      # icc used to be incompatible with GCC.
8146      # ICC 10 doesn't accept -KPIC any more.
8147      icc* | ifort*)
8148	lt_prog_compiler_wl='-Wl,'
8149	lt_prog_compiler_pic='-fPIC'
8150	lt_prog_compiler_static='-static'
8151        ;;
8152      # Lahey Fortran 8.1.
8153      lf95*)
8154	lt_prog_compiler_wl='-Wl,'
8155	lt_prog_compiler_pic='--shared'
8156	lt_prog_compiler_static='--static'
8157	;;
8158      nagfor*)
8159	# NAG Fortran compiler
8160	lt_prog_compiler_wl='-Wl,-Wl,,'
8161	lt_prog_compiler_pic='-PIC'
8162	lt_prog_compiler_static='-Bstatic'
8163	;;
8164      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8165        # Portland Group compilers (*not* the Pentium gcc compiler,
8166	# which looks to be a dead project)
8167	lt_prog_compiler_wl='-Wl,'
8168	lt_prog_compiler_pic='-fpic'
8169	lt_prog_compiler_static='-Bstatic'
8170        ;;
8171      ccc*)
8172        lt_prog_compiler_wl='-Wl,'
8173        # All Alpha code is PIC.
8174        lt_prog_compiler_static='-non_shared'
8175        ;;
8176      xl* | bgxl* | bgf* | mpixl*)
8177	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8178	lt_prog_compiler_wl='-Wl,'
8179	lt_prog_compiler_pic='-qpic'
8180	lt_prog_compiler_static='-qstaticlink'
8181	;;
8182      *)
8183	case `$CC -V 2>&1 | sed 5q` in
8184	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8185	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8186	  lt_prog_compiler_pic='-KPIC'
8187	  lt_prog_compiler_static='-Bstatic'
8188	  lt_prog_compiler_wl=''
8189	  ;;
8190	*Sun\ F* | *Sun*Fortran*)
8191	  lt_prog_compiler_pic='-KPIC'
8192	  lt_prog_compiler_static='-Bstatic'
8193	  lt_prog_compiler_wl='-Qoption ld '
8194	  ;;
8195	*Sun\ C*)
8196	  # Sun C 5.9
8197	  lt_prog_compiler_pic='-KPIC'
8198	  lt_prog_compiler_static='-Bstatic'
8199	  lt_prog_compiler_wl='-Wl,'
8200	  ;;
8201        *Intel*\ [CF]*Compiler*)
8202	  lt_prog_compiler_wl='-Wl,'
8203	  lt_prog_compiler_pic='-fPIC'
8204	  lt_prog_compiler_static='-static'
8205	  ;;
8206	*Portland\ Group*)
8207	  lt_prog_compiler_wl='-Wl,'
8208	  lt_prog_compiler_pic='-fpic'
8209	  lt_prog_compiler_static='-Bstatic'
8210	  ;;
8211	esac
8212	;;
8213      esac
8214      ;;
8215
8216    newsos6)
8217      lt_prog_compiler_pic='-KPIC'
8218      lt_prog_compiler_static='-Bstatic'
8219      ;;
8220
8221    *nto* | *qnx*)
8222      # QNX uses GNU C++, but need to define -shared option too, otherwise
8223      # it will coredump.
8224      lt_prog_compiler_pic='-fPIC -shared'
8225      ;;
8226
8227    osf3* | osf4* | osf5*)
8228      lt_prog_compiler_wl='-Wl,'
8229      # All OSF/1 code is PIC.
8230      lt_prog_compiler_static='-non_shared'
8231      ;;
8232
8233    rdos*)
8234      lt_prog_compiler_static='-non_shared'
8235      ;;
8236
8237    solaris*)
8238      lt_prog_compiler_pic='-KPIC'
8239      lt_prog_compiler_static='-Bstatic'
8240      case $cc_basename in
8241      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8242	lt_prog_compiler_wl='-Qoption ld ';;
8243      *)
8244	lt_prog_compiler_wl='-Wl,';;
8245      esac
8246      ;;
8247
8248    sunos4*)
8249      lt_prog_compiler_wl='-Qoption ld '
8250      lt_prog_compiler_pic='-PIC'
8251      lt_prog_compiler_static='-Bstatic'
8252      ;;
8253
8254    sysv4 | sysv4.2uw2* | sysv4.3*)
8255      lt_prog_compiler_wl='-Wl,'
8256      lt_prog_compiler_pic='-KPIC'
8257      lt_prog_compiler_static='-Bstatic'
8258      ;;
8259
8260    sysv4*MP*)
8261      if test -d /usr/nec ;then
8262	lt_prog_compiler_pic='-Kconform_pic'
8263	lt_prog_compiler_static='-Bstatic'
8264      fi
8265      ;;
8266
8267    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8268      lt_prog_compiler_wl='-Wl,'
8269      lt_prog_compiler_pic='-KPIC'
8270      lt_prog_compiler_static='-Bstatic'
8271      ;;
8272
8273    unicos*)
8274      lt_prog_compiler_wl='-Wl,'
8275      lt_prog_compiler_can_build_shared=no
8276      ;;
8277
8278    uts4*)
8279      lt_prog_compiler_pic='-pic'
8280      lt_prog_compiler_static='-Bstatic'
8281      ;;
8282
8283    *)
8284      lt_prog_compiler_can_build_shared=no
8285      ;;
8286    esac
8287  fi
8288
8289case $host_os in
8290  # For platforms which do not support PIC, -DPIC is meaningless:
8291  *djgpp*)
8292    lt_prog_compiler_pic=
8293    ;;
8294  *)
8295    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8296    ;;
8297esac
8298
8299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8300$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8301if ${lt_cv_prog_compiler_pic+:} false; then :
8302  $as_echo_n "(cached) " >&6
8303else
8304  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8305fi
8306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8307$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8308lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8309
8310#
8311# Check to make sure the PIC flag actually works.
8312#
8313if test -n "$lt_prog_compiler_pic"; then
8314  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8315$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8316if ${lt_cv_prog_compiler_pic_works+:} false; then :
8317  $as_echo_n "(cached) " >&6
8318else
8319  lt_cv_prog_compiler_pic_works=no
8320   ac_outfile=conftest.$ac_objext
8321   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8322   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8323   # Insert the option either (1) after the last *FLAGS variable, or
8324   # (2) before a word containing "conftest.", or (3) at the end.
8325   # Note that $ac_compile itself does not contain backslashes and begins
8326   # with a dollar sign (not a hyphen), so the echo should work correctly.
8327   # The option is referenced via a variable to avoid confusing sed.
8328   lt_compile=`echo "$ac_compile" | $SED \
8329   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8330   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8331   -e 's:$: $lt_compiler_flag:'`
8332   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8333   (eval "$lt_compile" 2>conftest.err)
8334   ac_status=$?
8335   cat conftest.err >&5
8336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337   if (exit $ac_status) && test -s "$ac_outfile"; then
8338     # The compiler can only warn and ignore the option if not recognized
8339     # So say no if there are warnings other than the usual output.
8340     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8341     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8342     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8343       lt_cv_prog_compiler_pic_works=yes
8344     fi
8345   fi
8346   $RM conftest*
8347
8348fi
8349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8350$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8351
8352if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8353    case $lt_prog_compiler_pic in
8354     "" | " "*) ;;
8355     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8356     esac
8357else
8358    lt_prog_compiler_pic=
8359     lt_prog_compiler_can_build_shared=no
8360fi
8361
8362fi
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374#
8375# Check to make sure the static flag actually works.
8376#
8377wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8379$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8380if ${lt_cv_prog_compiler_static_works+:} false; then :
8381  $as_echo_n "(cached) " >&6
8382else
8383  lt_cv_prog_compiler_static_works=no
8384   save_LDFLAGS="$LDFLAGS"
8385   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8386   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8387   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8388     # The linker can only warn and ignore the option if not recognized
8389     # So say no if there are warnings
8390     if test -s conftest.err; then
8391       # Append any errors to the config.log.
8392       cat conftest.err 1>&5
8393       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8394       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8395       if diff conftest.exp conftest.er2 >/dev/null; then
8396         lt_cv_prog_compiler_static_works=yes
8397       fi
8398     else
8399       lt_cv_prog_compiler_static_works=yes
8400     fi
8401   fi
8402   $RM -r conftest*
8403   LDFLAGS="$save_LDFLAGS"
8404
8405fi
8406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8407$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8408
8409if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8410    :
8411else
8412    lt_prog_compiler_static=
8413fi
8414
8415
8416
8417
8418
8419
8420
8421  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8422$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8423if ${lt_cv_prog_compiler_c_o+:} false; then :
8424  $as_echo_n "(cached) " >&6
8425else
8426  lt_cv_prog_compiler_c_o=no
8427   $RM -r conftest 2>/dev/null
8428   mkdir conftest
8429   cd conftest
8430   mkdir out
8431   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8432
8433   lt_compiler_flag="-o out/conftest2.$ac_objext"
8434   # Insert the option either (1) after the last *FLAGS variable, or
8435   # (2) before a word containing "conftest.", or (3) at the end.
8436   # Note that $ac_compile itself does not contain backslashes and begins
8437   # with a dollar sign (not a hyphen), so the echo should work correctly.
8438   lt_compile=`echo "$ac_compile" | $SED \
8439   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8440   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8441   -e 's:$: $lt_compiler_flag:'`
8442   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8443   (eval "$lt_compile" 2>out/conftest.err)
8444   ac_status=$?
8445   cat out/conftest.err >&5
8446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8448   then
8449     # The compiler can only warn and ignore the option if not recognized
8450     # So say no if there are warnings
8451     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8452     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8453     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8454       lt_cv_prog_compiler_c_o=yes
8455     fi
8456   fi
8457   chmod u+w . 2>&5
8458   $RM conftest*
8459   # SGI C++ compiler will create directory out/ii_files/ for
8460   # template instantiation
8461   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8462   $RM out/* && rmdir out
8463   cd ..
8464   $RM -r conftest
8465   $RM conftest*
8466
8467fi
8468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8469$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8470
8471
8472
8473
8474
8475
8476  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8477$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8478if ${lt_cv_prog_compiler_c_o+:} false; then :
8479  $as_echo_n "(cached) " >&6
8480else
8481  lt_cv_prog_compiler_c_o=no
8482   $RM -r conftest 2>/dev/null
8483   mkdir conftest
8484   cd conftest
8485   mkdir out
8486   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8487
8488   lt_compiler_flag="-o out/conftest2.$ac_objext"
8489   # Insert the option either (1) after the last *FLAGS variable, or
8490   # (2) before a word containing "conftest.", or (3) at the end.
8491   # Note that $ac_compile itself does not contain backslashes and begins
8492   # with a dollar sign (not a hyphen), so the echo should work correctly.
8493   lt_compile=`echo "$ac_compile" | $SED \
8494   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8495   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8496   -e 's:$: $lt_compiler_flag:'`
8497   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8498   (eval "$lt_compile" 2>out/conftest.err)
8499   ac_status=$?
8500   cat out/conftest.err >&5
8501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8503   then
8504     # The compiler can only warn and ignore the option if not recognized
8505     # So say no if there are warnings
8506     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8507     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8508     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8509       lt_cv_prog_compiler_c_o=yes
8510     fi
8511   fi
8512   chmod u+w . 2>&5
8513   $RM conftest*
8514   # SGI C++ compiler will create directory out/ii_files/ for
8515   # template instantiation
8516   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8517   $RM out/* && rmdir out
8518   cd ..
8519   $RM -r conftest
8520   $RM conftest*
8521
8522fi
8523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8524$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8525
8526
8527
8528
8529hard_links="nottested"
8530if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8531  # do not overwrite the value of need_locks provided by the user
8532  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8533$as_echo_n "checking if we can lock with hard links... " >&6; }
8534  hard_links=yes
8535  $RM conftest*
8536  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8537  touch conftest.a
8538  ln conftest.a conftest.b 2>&5 || hard_links=no
8539  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8541$as_echo "$hard_links" >&6; }
8542  if test "$hard_links" = no; then
8543    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8544$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8545    need_locks=warn
8546  fi
8547else
8548  need_locks=no
8549fi
8550
8551
8552
8553
8554
8555
8556  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8557$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8558
8559  runpath_var=
8560  allow_undefined_flag=
8561  always_export_symbols=no
8562  archive_cmds=
8563  archive_expsym_cmds=
8564  compiler_needs_object=no
8565  enable_shared_with_static_runtimes=no
8566  export_dynamic_flag_spec=
8567  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8568  hardcode_automatic=no
8569  hardcode_direct=no
8570  hardcode_direct_absolute=no
8571  hardcode_libdir_flag_spec=
8572  hardcode_libdir_separator=
8573  hardcode_minus_L=no
8574  hardcode_shlibpath_var=unsupported
8575  inherit_rpath=no
8576  link_all_deplibs=unknown
8577  module_cmds=
8578  module_expsym_cmds=
8579  old_archive_from_new_cmds=
8580  old_archive_from_expsyms_cmds=
8581  thread_safe_flag_spec=
8582  whole_archive_flag_spec=
8583  # include_expsyms should be a list of space-separated symbols to be *always*
8584  # included in the symbol list
8585  include_expsyms=
8586  # exclude_expsyms can be an extended regexp of symbols to exclude
8587  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8588  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8589  # as well as any symbol that contains `d'.
8590  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8591  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8592  # platforms (ab)use it in PIC code, but their linkers get confused if
8593  # the symbol is explicitly referenced.  Since portable code cannot
8594  # rely on this symbol name, it's probably fine to never include it in
8595  # preloaded symbol tables.
8596  # Exclude shared library initialization/finalization symbols.
8597  extract_expsyms_cmds=
8598
8599  case $host_os in
8600  cygwin* | mingw* | pw32* | cegcc*)
8601    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8602    # When not using gcc, we currently assume that we are using
8603    # Microsoft Visual C++.
8604    if test "$GCC" != yes; then
8605      with_gnu_ld=no
8606    fi
8607    ;;
8608  interix*)
8609    # we just hope/assume this is gcc and not c89 (= MSVC++)
8610    with_gnu_ld=yes
8611    ;;
8612  openbsd*)
8613    with_gnu_ld=no
8614    ;;
8615  linux* | k*bsd*-gnu | gnu*)
8616    link_all_deplibs=no
8617    ;;
8618  esac
8619
8620  ld_shlibs=yes
8621
8622  # On some targets, GNU ld is compatible enough with the native linker
8623  # that we're better off using the native interface for both.
8624  lt_use_gnu_ld_interface=no
8625  if test "$with_gnu_ld" = yes; then
8626    case $host_os in
8627      aix*)
8628	# The AIX port of GNU ld has always aspired to compatibility
8629	# with the native linker.  However, as the warning in the GNU ld
8630	# block says, versions before 2.19.5* couldn't really create working
8631	# shared libraries, regardless of the interface used.
8632	case `$LD -v 2>&1` in
8633	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8634	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8635	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8636	  *)
8637	    lt_use_gnu_ld_interface=yes
8638	    ;;
8639	esac
8640	;;
8641      *)
8642	lt_use_gnu_ld_interface=yes
8643	;;
8644    esac
8645  fi
8646
8647  if test "$lt_use_gnu_ld_interface" = yes; then
8648    # If archive_cmds runs LD, not CC, wlarc should be empty
8649    wlarc='${wl}'
8650
8651    # Set some defaults for GNU ld with shared library support. These
8652    # are reset later if shared libraries are not supported. Putting them
8653    # here allows them to be overridden if necessary.
8654    runpath_var=LD_RUN_PATH
8655    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8656    export_dynamic_flag_spec='${wl}--export-dynamic'
8657    # ancient GNU ld didn't support --whole-archive et. al.
8658    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8659      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8660    else
8661      whole_archive_flag_spec=
8662    fi
8663    supports_anon_versioning=no
8664    case `$LD -v 2>&1` in
8665      *GNU\ gold*) supports_anon_versioning=yes ;;
8666      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8667      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8668      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8669      *\ 2.11.*) ;; # other 2.11 versions
8670      *) supports_anon_versioning=yes ;;
8671    esac
8672
8673    # See if GNU ld supports shared libraries.
8674    case $host_os in
8675    aix[3-9]*)
8676      # On AIX/PPC, the GNU linker is very broken
8677      if test "$host_cpu" != ia64; then
8678	ld_shlibs=no
8679	cat <<_LT_EOF 1>&2
8680
8681*** Warning: the GNU linker, at least up to release 2.19, is reported
8682*** to be unable to reliably create shared libraries on AIX.
8683*** Therefore, libtool is disabling shared libraries support.  If you
8684*** really care for shared libraries, you may want to install binutils
8685*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8686*** You will then need to restart the configuration process.
8687
8688_LT_EOF
8689      fi
8690      ;;
8691
8692    amigaos*)
8693      case $host_cpu in
8694      powerpc)
8695            # see comment about AmigaOS4 .so support
8696            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8697            archive_expsym_cmds=''
8698        ;;
8699      m68k)
8700            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)'
8701            hardcode_libdir_flag_spec='-L$libdir'
8702            hardcode_minus_L=yes
8703        ;;
8704      esac
8705      ;;
8706
8707    beos*)
8708      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8709	allow_undefined_flag=unsupported
8710	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8711	# support --undefined.  This deserves some investigation.  FIXME
8712	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8713      else
8714	ld_shlibs=no
8715      fi
8716      ;;
8717
8718    cygwin* | mingw* | pw32* | cegcc*)
8719      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8720      # as there is no search path for DLLs.
8721      hardcode_libdir_flag_spec='-L$libdir'
8722      export_dynamic_flag_spec='${wl}--export-all-symbols'
8723      allow_undefined_flag=unsupported
8724      always_export_symbols=no
8725      enable_shared_with_static_runtimes=yes
8726      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'
8727      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8728
8729      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8730        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8731	# If the export-symbols file already is a .def file (1st line
8732	# is EXPORTS), use it as is; otherwise, prepend...
8733	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8734	  cp $export_symbols $output_objdir/$soname.def;
8735	else
8736	  echo EXPORTS > $output_objdir/$soname.def;
8737	  cat $export_symbols >> $output_objdir/$soname.def;
8738	fi~
8739	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8740      else
8741	ld_shlibs=no
8742      fi
8743      ;;
8744
8745    haiku*)
8746      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8747      link_all_deplibs=yes
8748      ;;
8749
8750    interix[3-9]*)
8751      hardcode_direct=no
8752      hardcode_shlibpath_var=no
8753      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8754      export_dynamic_flag_spec='${wl}-E'
8755      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8756      # Instead, shared libraries are loaded at an image base (0x10000000 by
8757      # default) and relocated if they conflict, which is a slow very memory
8758      # consuming and fragmenting process.  To avoid this, we pick a random,
8759      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8760      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8761      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8762      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'
8763      ;;
8764
8765    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8766      tmp_diet=no
8767      if test "$host_os" = linux-dietlibc; then
8768	case $cc_basename in
8769	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8770	esac
8771      fi
8772      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8773	 && test "$tmp_diet" = no
8774      then
8775	tmp_addflag=' $pic_flag'
8776	tmp_sharedflag='-shared'
8777	case $cc_basename,$host_cpu in
8778        pgcc*)				# Portland Group C compiler
8779	  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'
8780	  tmp_addflag=' $pic_flag'
8781	  ;;
8782	pgf77* | pgf90* | pgf95* | pgfortran*)
8783					# Portland Group f77 and f90 compilers
8784	  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'
8785	  tmp_addflag=' $pic_flag -Mnomain' ;;
8786	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8787	  tmp_addflag=' -i_dynamic' ;;
8788	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8789	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8790	ifc* | ifort*)			# Intel Fortran compiler
8791	  tmp_addflag=' -nofor_main' ;;
8792	lf95*)				# Lahey Fortran 8.1
8793	  whole_archive_flag_spec=
8794	  tmp_sharedflag='--shared' ;;
8795	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8796	  tmp_sharedflag='-qmkshrobj'
8797	  tmp_addflag= ;;
8798	nvcc*)	# Cuda Compiler Driver 2.2
8799	  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'
8800	  compiler_needs_object=yes
8801	  ;;
8802	esac
8803	case `$CC -V 2>&1 | sed 5q` in
8804	*Sun\ C*)			# Sun C 5.9
8805	  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'
8806	  compiler_needs_object=yes
8807	  tmp_sharedflag='-G' ;;
8808	*Sun\ F*)			# Sun Fortran 8.3
8809	  tmp_sharedflag='-G' ;;
8810	esac
8811	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8812
8813        if test "x$supports_anon_versioning" = xyes; then
8814          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8815	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8816	    echo "local: *; };" >> $output_objdir/$libname.ver~
8817	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8818        fi
8819
8820	case $cc_basename in
8821	xlf* | bgf* | bgxlf* | mpixlf*)
8822	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8823	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8824	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8825	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8826	  if test "x$supports_anon_versioning" = xyes; then
8827	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8828	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8829	      echo "local: *; };" >> $output_objdir/$libname.ver~
8830	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8831	  fi
8832	  ;;
8833	esac
8834      else
8835        ld_shlibs=no
8836      fi
8837      ;;
8838
8839    netbsd* | netbsdelf*-gnu)
8840      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8841	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8842	wlarc=
8843      else
8844	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8845	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8846      fi
8847      ;;
8848
8849    solaris*)
8850      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8851	ld_shlibs=no
8852	cat <<_LT_EOF 1>&2
8853
8854*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8855*** create shared libraries on Solaris systems.  Therefore, libtool
8856*** is disabling shared libraries support.  We urge you to upgrade GNU
8857*** binutils to release 2.9.1 or newer.  Another option is to modify
8858*** your PATH or compiler configuration so that the native linker is
8859*** used, and then restart.
8860
8861_LT_EOF
8862      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8863	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8864	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8865      else
8866	ld_shlibs=no
8867      fi
8868      ;;
8869
8870    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8871      case `$LD -v 2>&1` in
8872        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8873	ld_shlibs=no
8874	cat <<_LT_EOF 1>&2
8875
8876*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8877*** reliably create shared libraries on SCO systems.  Therefore, libtool
8878*** is disabling shared libraries support.  We urge you to upgrade GNU
8879*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8880*** your PATH or compiler configuration so that the native linker is
8881*** used, and then restart.
8882
8883_LT_EOF
8884	;;
8885	*)
8886	  # For security reasons, it is highly recommended that you always
8887	  # use absolute paths for naming shared libraries, and exclude the
8888	  # DT_RUNPATH tag from executables and libraries.  But doing so
8889	  # requires that you compile everything twice, which is a pain.
8890	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8891	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8892	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8893	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8894	  else
8895	    ld_shlibs=no
8896	  fi
8897	;;
8898      esac
8899      ;;
8900
8901    sunos4*)
8902      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8903      wlarc=
8904      hardcode_direct=yes
8905      hardcode_shlibpath_var=no
8906      ;;
8907
8908    *)
8909      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8910	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8911	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8912      else
8913	ld_shlibs=no
8914      fi
8915      ;;
8916    esac
8917
8918    if test "$ld_shlibs" = no; then
8919      runpath_var=
8920      hardcode_libdir_flag_spec=
8921      export_dynamic_flag_spec=
8922      whole_archive_flag_spec=
8923    fi
8924  else
8925    # PORTME fill in a description of your system's linker (not GNU ld)
8926    case $host_os in
8927    aix3*)
8928      allow_undefined_flag=unsupported
8929      always_export_symbols=yes
8930      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'
8931      # Note: this linker hardcodes the directories in LIBPATH if there
8932      # are no directories specified by -L.
8933      hardcode_minus_L=yes
8934      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8935	# Neither direct hardcoding nor static linking is supported with a
8936	# broken collect2.
8937	hardcode_direct=unsupported
8938      fi
8939      ;;
8940
8941    aix[4-9]*)
8942      if test "$host_cpu" = ia64; then
8943	# On IA64, the linker does run time linking by default, so we don't
8944	# have to do anything special.
8945	aix_use_runtimelinking=no
8946	exp_sym_flag='-Bexport'
8947	no_entry_flag=""
8948      else
8949	# If we're using GNU nm, then we don't want the "-C" option.
8950	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8951	# Also, AIX nm treats weak defined symbols like other global
8952	# defined symbols, whereas GNU nm marks them as "W".
8953	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8954	  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'
8955	else
8956	  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'
8957	fi
8958	aix_use_runtimelinking=no
8959
8960	# Test if we are trying to use run time linking or normal
8961	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8962	# need to do runtime linking.
8963	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8964	  for ld_flag in $LDFLAGS; do
8965	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8966	    aix_use_runtimelinking=yes
8967	    break
8968	  fi
8969	  done
8970	  ;;
8971	esac
8972
8973	exp_sym_flag='-bexport'
8974	no_entry_flag='-bnoentry'
8975      fi
8976
8977      # When large executables or shared objects are built, AIX ld can
8978      # have problems creating the table of contents.  If linking a library
8979      # or program results in "error TOC overflow" add -mminimal-toc to
8980      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8981      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8982
8983      archive_cmds=''
8984      hardcode_direct=yes
8985      hardcode_direct_absolute=yes
8986      hardcode_libdir_separator=':'
8987      link_all_deplibs=yes
8988      file_list_spec='${wl}-f,'
8989
8990      if test "$GCC" = yes; then
8991	case $host_os in aix4.[012]|aix4.[012].*)
8992	# We only want to do this on AIX 4.2 and lower, the check
8993	# below for broken collect2 doesn't work under 4.3+
8994	  collect2name=`${CC} -print-prog-name=collect2`
8995	  if test -f "$collect2name" &&
8996	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8997	  then
8998	  # We have reworked collect2
8999	  :
9000	  else
9001	  # We have old collect2
9002	  hardcode_direct=unsupported
9003	  # It fails to find uninstalled libraries when the uninstalled
9004	  # path is not listed in the libpath.  Setting hardcode_minus_L
9005	  # to unsupported forces relinking
9006	  hardcode_minus_L=yes
9007	  hardcode_libdir_flag_spec='-L$libdir'
9008	  hardcode_libdir_separator=
9009	  fi
9010	  ;;
9011	esac
9012	shared_flag='-shared'
9013	if test "$aix_use_runtimelinking" = yes; then
9014	  shared_flag="$shared_flag "'${wl}-G'
9015	fi
9016	link_all_deplibs=no
9017      else
9018	# not using gcc
9019	if test "$host_cpu" = ia64; then
9020	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9021	# chokes on -Wl,-G. The following line is correct:
9022	  shared_flag='-G'
9023	else
9024	  if test "$aix_use_runtimelinking" = yes; then
9025	    shared_flag='${wl}-G'
9026	  else
9027	    shared_flag='${wl}-bM:SRE'
9028	  fi
9029	fi
9030      fi
9031
9032      export_dynamic_flag_spec='${wl}-bexpall'
9033      # It seems that -bexpall does not export symbols beginning with
9034      # underscore (_), so it is better to generate a list of symbols to export.
9035      always_export_symbols=yes
9036      if test "$aix_use_runtimelinking" = yes; then
9037	# Warning - without using the other runtime loading flags (-brtl),
9038	# -berok will link without error, but may produce a broken library.
9039	allow_undefined_flag='-berok'
9040        # Determine the default libpath from the value encoded in an
9041        # empty executable.
9042        if test "${lt_cv_aix_libpath+set}" = set; then
9043  aix_libpath=$lt_cv_aix_libpath
9044else
9045  if ${lt_cv_aix_libpath_+:} false; then :
9046  $as_echo_n "(cached) " >&6
9047else
9048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9049/* end confdefs.h.  */
9050
9051int
9052main ()
9053{
9054
9055  ;
9056  return 0;
9057}
9058_ACEOF
9059if ac_fn_c_try_link "$LINENO"; then :
9060
9061  lt_aix_libpath_sed='
9062      /Import File Strings/,/^$/ {
9063	  /^0/ {
9064	      s/^0  *\([^ ]*\) *$/\1/
9065	      p
9066	  }
9067      }'
9068  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9069  # Check for a 64-bit object if we didn't find anything.
9070  if test -z "$lt_cv_aix_libpath_"; then
9071    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9072  fi
9073fi
9074rm -f core conftest.err conftest.$ac_objext \
9075    conftest$ac_exeext conftest.$ac_ext
9076  if test -z "$lt_cv_aix_libpath_"; then
9077    lt_cv_aix_libpath_="/usr/lib:/lib"
9078  fi
9079
9080fi
9081
9082  aix_libpath=$lt_cv_aix_libpath_
9083fi
9084
9085        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9086        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"
9087      else
9088	if test "$host_cpu" = ia64; then
9089	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9090	  allow_undefined_flag="-z nodefs"
9091	  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"
9092	else
9093	 # Determine the default libpath from the value encoded in an
9094	 # empty executable.
9095	 if test "${lt_cv_aix_libpath+set}" = set; then
9096  aix_libpath=$lt_cv_aix_libpath
9097else
9098  if ${lt_cv_aix_libpath_+:} false; then :
9099  $as_echo_n "(cached) " >&6
9100else
9101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9102/* end confdefs.h.  */
9103
9104int
9105main ()
9106{
9107
9108  ;
9109  return 0;
9110}
9111_ACEOF
9112if ac_fn_c_try_link "$LINENO"; then :
9113
9114  lt_aix_libpath_sed='
9115      /Import File Strings/,/^$/ {
9116	  /^0/ {
9117	      s/^0  *\([^ ]*\) *$/\1/
9118	      p
9119	  }
9120      }'
9121  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9122  # Check for a 64-bit object if we didn't find anything.
9123  if test -z "$lt_cv_aix_libpath_"; then
9124    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9125  fi
9126fi
9127rm -f core conftest.err conftest.$ac_objext \
9128    conftest$ac_exeext conftest.$ac_ext
9129  if test -z "$lt_cv_aix_libpath_"; then
9130    lt_cv_aix_libpath_="/usr/lib:/lib"
9131  fi
9132
9133fi
9134
9135  aix_libpath=$lt_cv_aix_libpath_
9136fi
9137
9138	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9139	  # Warning - without using the other run time loading flags,
9140	  # -berok will link without error, but may produce a broken library.
9141	  no_undefined_flag=' ${wl}-bernotok'
9142	  allow_undefined_flag=' ${wl}-berok'
9143	  if test "$with_gnu_ld" = yes; then
9144	    # We only use this code for GNU lds that support --whole-archive.
9145	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9146	  else
9147	    # Exported symbols can be pulled into shared objects from archives
9148	    whole_archive_flag_spec='$convenience'
9149	  fi
9150	  archive_cmds_need_lc=yes
9151	  # This is similar to how AIX traditionally builds its shared libraries.
9152	  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'
9153	fi
9154      fi
9155      ;;
9156
9157    amigaos*)
9158      case $host_cpu in
9159      powerpc)
9160            # see comment about AmigaOS4 .so support
9161            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9162            archive_expsym_cmds=''
9163        ;;
9164      m68k)
9165            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)'
9166            hardcode_libdir_flag_spec='-L$libdir'
9167            hardcode_minus_L=yes
9168        ;;
9169      esac
9170      ;;
9171
9172    bsdi[45]*)
9173      export_dynamic_flag_spec=-rdynamic
9174      ;;
9175
9176    cygwin* | mingw* | pw32* | cegcc*)
9177      # When not using gcc, we currently assume that we are using
9178      # Microsoft Visual C++.
9179      # hardcode_libdir_flag_spec is actually meaningless, as there is
9180      # no search path for DLLs.
9181      case $cc_basename in
9182      cl*)
9183	# Native MSVC
9184	hardcode_libdir_flag_spec=' '
9185	allow_undefined_flag=unsupported
9186	always_export_symbols=yes
9187	file_list_spec='@'
9188	# Tell ltmain to make .lib files, not .a files.
9189	libext=lib
9190	# Tell ltmain to make .dll files, not .so files.
9191	shrext_cmds=".dll"
9192	# FIXME: Setting linknames here is a bad hack.
9193	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9194	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9195	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9196	  else
9197	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9198	  fi~
9199	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9200	  linknames='
9201	# The linker will not automatically build a static lib if we build a DLL.
9202	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9203	enable_shared_with_static_runtimes=yes
9204	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9205	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9206	# Don't use ranlib
9207	old_postinstall_cmds='chmod 644 $oldlib'
9208	postlink_cmds='lt_outputfile="@OUTPUT@"~
9209	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9210	  case $lt_outputfile in
9211	    *.exe|*.EXE) ;;
9212	    *)
9213	      lt_outputfile="$lt_outputfile.exe"
9214	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9215	      ;;
9216	  esac~
9217	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9218	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9219	    $RM "$lt_outputfile.manifest";
9220	  fi'
9221	;;
9222      *)
9223	# Assume MSVC wrapper
9224	hardcode_libdir_flag_spec=' '
9225	allow_undefined_flag=unsupported
9226	# Tell ltmain to make .lib files, not .a files.
9227	libext=lib
9228	# Tell ltmain to make .dll files, not .so files.
9229	shrext_cmds=".dll"
9230	# FIXME: Setting linknames here is a bad hack.
9231	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9232	# The linker will automatically build a .lib file if we build a DLL.
9233	old_archive_from_new_cmds='true'
9234	# FIXME: Should let the user specify the lib program.
9235	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9236	enable_shared_with_static_runtimes=yes
9237	;;
9238      esac
9239      ;;
9240
9241    darwin* | rhapsody*)
9242
9243
9244  archive_cmds_need_lc=no
9245  hardcode_direct=no
9246  hardcode_automatic=yes
9247  hardcode_shlibpath_var=unsupported
9248  if test "$lt_cv_ld_force_load" = "yes"; then
9249    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\"`'
9250
9251  else
9252    whole_archive_flag_spec=''
9253  fi
9254  link_all_deplibs=yes
9255  allow_undefined_flag="$_lt_dar_allow_undefined"
9256  case $cc_basename in
9257     ifort*) _lt_dar_can_shared=yes ;;
9258     *) _lt_dar_can_shared=$GCC ;;
9259  esac
9260  if test "$_lt_dar_can_shared" = "yes"; then
9261    output_verbose_link_cmd=func_echo_all
9262    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9263    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9264    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}"
9265    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}"
9266
9267  else
9268  ld_shlibs=no
9269  fi
9270
9271      ;;
9272
9273    dgux*)
9274      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9275      hardcode_libdir_flag_spec='-L$libdir'
9276      hardcode_shlibpath_var=no
9277      ;;
9278
9279    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9280    # support.  Future versions do this automatically, but an explicit c++rt0.o
9281    # does not break anything, and helps significantly (at the cost of a little
9282    # extra space).
9283    freebsd2.2*)
9284      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9285      hardcode_libdir_flag_spec='-R$libdir'
9286      hardcode_direct=yes
9287      hardcode_shlibpath_var=no
9288      ;;
9289
9290    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9291    freebsd2.*)
9292      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9293      hardcode_direct=yes
9294      hardcode_minus_L=yes
9295      hardcode_shlibpath_var=no
9296      ;;
9297
9298    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9299    freebsd* | dragonfly*)
9300      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9301      hardcode_libdir_flag_spec='-R$libdir'
9302      hardcode_direct=yes
9303      hardcode_shlibpath_var=no
9304      ;;
9305
9306    hpux9*)
9307      if test "$GCC" = yes; then
9308	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'
9309      else
9310	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'
9311      fi
9312      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9313      hardcode_libdir_separator=:
9314      hardcode_direct=yes
9315
9316      # hardcode_minus_L: Not really in the search PATH,
9317      # but as the default location of the library.
9318      hardcode_minus_L=yes
9319      export_dynamic_flag_spec='${wl}-E'
9320      ;;
9321
9322    hpux10*)
9323      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9324	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9325      else
9326	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9327      fi
9328      if test "$with_gnu_ld" = no; then
9329	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9330	hardcode_libdir_separator=:
9331	hardcode_direct=yes
9332	hardcode_direct_absolute=yes
9333	export_dynamic_flag_spec='${wl}-E'
9334	# hardcode_minus_L: Not really in the search PATH,
9335	# but as the default location of the library.
9336	hardcode_minus_L=yes
9337      fi
9338      ;;
9339
9340    hpux11*)
9341      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9342	case $host_cpu in
9343	hppa*64*)
9344	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9345	  ;;
9346	ia64*)
9347	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9348	  ;;
9349	*)
9350	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9351	  ;;
9352	esac
9353      else
9354	case $host_cpu in
9355	hppa*64*)
9356	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9357	  ;;
9358	ia64*)
9359	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9360	  ;;
9361	*)
9362
9363	  # Older versions of the 11.00 compiler do not understand -b yet
9364	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9365	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9366$as_echo_n "checking if $CC understands -b... " >&6; }
9367if ${lt_cv_prog_compiler__b+:} false; then :
9368  $as_echo_n "(cached) " >&6
9369else
9370  lt_cv_prog_compiler__b=no
9371   save_LDFLAGS="$LDFLAGS"
9372   LDFLAGS="$LDFLAGS -b"
9373   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9374   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9375     # The linker can only warn and ignore the option if not recognized
9376     # So say no if there are warnings
9377     if test -s conftest.err; then
9378       # Append any errors to the config.log.
9379       cat conftest.err 1>&5
9380       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9381       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9382       if diff conftest.exp conftest.er2 >/dev/null; then
9383         lt_cv_prog_compiler__b=yes
9384       fi
9385     else
9386       lt_cv_prog_compiler__b=yes
9387     fi
9388   fi
9389   $RM -r conftest*
9390   LDFLAGS="$save_LDFLAGS"
9391
9392fi
9393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9394$as_echo "$lt_cv_prog_compiler__b" >&6; }
9395
9396if test x"$lt_cv_prog_compiler__b" = xyes; then
9397    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9398else
9399    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9400fi
9401
9402	  ;;
9403	esac
9404      fi
9405      if test "$with_gnu_ld" = no; then
9406	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9407	hardcode_libdir_separator=:
9408
9409	case $host_cpu in
9410	hppa*64*|ia64*)
9411	  hardcode_direct=no
9412	  hardcode_shlibpath_var=no
9413	  ;;
9414	*)
9415	  hardcode_direct=yes
9416	  hardcode_direct_absolute=yes
9417	  export_dynamic_flag_spec='${wl}-E'
9418
9419	  # hardcode_minus_L: Not really in the search PATH,
9420	  # but as the default location of the library.
9421	  hardcode_minus_L=yes
9422	  ;;
9423	esac
9424      fi
9425      ;;
9426
9427    irix5* | irix6* | nonstopux*)
9428      if test "$GCC" = yes; then
9429	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'
9430	# Try to use the -exported_symbol ld option, if it does not
9431	# work, assume that -exports_file does not work either and
9432	# implicitly export all symbols.
9433	# This should be the same for all languages, so no per-tag cache variable.
9434	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9435$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9436if ${lt_cv_irix_exported_symbol+:} false; then :
9437  $as_echo_n "(cached) " >&6
9438else
9439  save_LDFLAGS="$LDFLAGS"
9440	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9441	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9442/* end confdefs.h.  */
9443int foo (void) { return 0; }
9444_ACEOF
9445if ac_fn_c_try_link "$LINENO"; then :
9446  lt_cv_irix_exported_symbol=yes
9447else
9448  lt_cv_irix_exported_symbol=no
9449fi
9450rm -f core conftest.err conftest.$ac_objext \
9451    conftest$ac_exeext conftest.$ac_ext
9452           LDFLAGS="$save_LDFLAGS"
9453fi
9454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9455$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9456	if test "$lt_cv_irix_exported_symbol" = yes; then
9457          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'
9458	fi
9459      else
9460	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'
9461	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'
9462      fi
9463      archive_cmds_need_lc='no'
9464      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9465      hardcode_libdir_separator=:
9466      inherit_rpath=yes
9467      link_all_deplibs=yes
9468      ;;
9469
9470    netbsd* | netbsdelf*-gnu)
9471      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9472	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9473      else
9474	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9475      fi
9476      hardcode_libdir_flag_spec='-R$libdir'
9477      hardcode_direct=yes
9478      hardcode_shlibpath_var=no
9479      ;;
9480
9481    newsos6)
9482      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9483      hardcode_direct=yes
9484      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9485      hardcode_libdir_separator=:
9486      hardcode_shlibpath_var=no
9487      ;;
9488
9489    *nto* | *qnx*)
9490      ;;
9491
9492    openbsd*)
9493      if test -f /usr/libexec/ld.so; then
9494	hardcode_direct=yes
9495	hardcode_shlibpath_var=no
9496	hardcode_direct_absolute=yes
9497	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9498	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9499	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9500	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9501	  export_dynamic_flag_spec='${wl}-E'
9502	else
9503	  case $host_os in
9504	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9505	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9506	     hardcode_libdir_flag_spec='-R$libdir'
9507	     ;;
9508	   *)
9509	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9510	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9511	     ;;
9512	  esac
9513	fi
9514      else
9515	ld_shlibs=no
9516      fi
9517      ;;
9518
9519    os2*)
9520      hardcode_libdir_flag_spec='-L$libdir'
9521      hardcode_minus_L=yes
9522      allow_undefined_flag=unsupported
9523      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'
9524      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9525      ;;
9526
9527    osf3*)
9528      if test "$GCC" = yes; then
9529	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9530	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'
9531      else
9532	allow_undefined_flag=' -expect_unresolved \*'
9533	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'
9534      fi
9535      archive_cmds_need_lc='no'
9536      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9537      hardcode_libdir_separator=:
9538      ;;
9539
9540    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9541      if test "$GCC" = yes; then
9542	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9543	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'
9544	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9545      else
9546	allow_undefined_flag=' -expect_unresolved \*'
9547	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'
9548	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~
9549	$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'
9550
9551	# Both c and cxx compiler support -rpath directly
9552	hardcode_libdir_flag_spec='-rpath $libdir'
9553      fi
9554      archive_cmds_need_lc='no'
9555      hardcode_libdir_separator=:
9556      ;;
9557
9558    solaris*)
9559      no_undefined_flag=' -z defs'
9560      if test "$GCC" = yes; then
9561	wlarc='${wl}'
9562	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9563	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9564	  $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'
9565      else
9566	case `$CC -V 2>&1` in
9567	*"Compilers 5.0"*)
9568	  wlarc=''
9569	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9570	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9571	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9572	  ;;
9573	*)
9574	  wlarc='${wl}'
9575	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9576	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9577	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9578	  ;;
9579	esac
9580      fi
9581      hardcode_libdir_flag_spec='-R$libdir'
9582      hardcode_shlibpath_var=no
9583      case $host_os in
9584      solaris2.[0-5] | solaris2.[0-5].*) ;;
9585      *)
9586	# The compiler driver will combine and reorder linker options,
9587	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9588	# but is careful enough not to reorder.
9589	# Supported since Solaris 2.6 (maybe 2.5.1?)
9590	if test "$GCC" = yes; then
9591	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9592	else
9593	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9594	fi
9595	;;
9596      esac
9597      link_all_deplibs=yes
9598      ;;
9599
9600    sunos4*)
9601      if test "x$host_vendor" = xsequent; then
9602	# Use $CC to link under sequent, because it throws in some extra .o
9603	# files that make .init and .fini sections work.
9604	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9605      else
9606	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9607      fi
9608      hardcode_libdir_flag_spec='-L$libdir'
9609      hardcode_direct=yes
9610      hardcode_minus_L=yes
9611      hardcode_shlibpath_var=no
9612      ;;
9613
9614    sysv4)
9615      case $host_vendor in
9616	sni)
9617	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9618	  hardcode_direct=yes # is this really true???
9619	;;
9620	siemens)
9621	  ## LD is ld it makes a PLAMLIB
9622	  ## CC just makes a GrossModule.
9623	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9624	  reload_cmds='$CC -r -o $output$reload_objs'
9625	  hardcode_direct=no
9626        ;;
9627	motorola)
9628	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9629	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9630	;;
9631      esac
9632      runpath_var='LD_RUN_PATH'
9633      hardcode_shlibpath_var=no
9634      ;;
9635
9636    sysv4.3*)
9637      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9638      hardcode_shlibpath_var=no
9639      export_dynamic_flag_spec='-Bexport'
9640      ;;
9641
9642    sysv4*MP*)
9643      if test -d /usr/nec; then
9644	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9645	hardcode_shlibpath_var=no
9646	runpath_var=LD_RUN_PATH
9647	hardcode_runpath_var=yes
9648	ld_shlibs=yes
9649      fi
9650      ;;
9651
9652    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9653      no_undefined_flag='${wl}-z,text'
9654      archive_cmds_need_lc=no
9655      hardcode_shlibpath_var=no
9656      runpath_var='LD_RUN_PATH'
9657
9658      if test "$GCC" = yes; then
9659	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9660	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9661      else
9662	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9663	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9664      fi
9665      ;;
9666
9667    sysv5* | sco3.2v5* | sco5v6*)
9668      # Note: We can NOT use -z defs as we might desire, because we do not
9669      # link with -lc, and that would cause any symbols used from libc to
9670      # always be unresolved, which means just about no library would
9671      # ever link correctly.  If we're not using GNU ld we use -z text
9672      # though, which does catch some bad symbols but isn't as heavy-handed
9673      # as -z defs.
9674      no_undefined_flag='${wl}-z,text'
9675      allow_undefined_flag='${wl}-z,nodefs'
9676      archive_cmds_need_lc=no
9677      hardcode_shlibpath_var=no
9678      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9679      hardcode_libdir_separator=':'
9680      link_all_deplibs=yes
9681      export_dynamic_flag_spec='${wl}-Bexport'
9682      runpath_var='LD_RUN_PATH'
9683
9684      if test "$GCC" = yes; then
9685	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9686	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9687      else
9688	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9689	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9690      fi
9691      ;;
9692
9693    uts4*)
9694      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9695      hardcode_libdir_flag_spec='-L$libdir'
9696      hardcode_shlibpath_var=no
9697      ;;
9698
9699    *)
9700      ld_shlibs=no
9701      ;;
9702    esac
9703
9704    if test x$host_vendor = xsni; then
9705      case $host in
9706      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9707	export_dynamic_flag_spec='${wl}-Blargedynsym'
9708	;;
9709      esac
9710    fi
9711  fi
9712
9713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9714$as_echo "$ld_shlibs" >&6; }
9715test "$ld_shlibs" = no && can_build_shared=no
9716
9717with_gnu_ld=$with_gnu_ld
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733#
9734# Do we need to explicitly link libc?
9735#
9736case "x$archive_cmds_need_lc" in
9737x|xyes)
9738  # Assume -lc should be added
9739  archive_cmds_need_lc=yes
9740
9741  if test "$enable_shared" = yes && test "$GCC" = yes; then
9742    case $archive_cmds in
9743    *'~'*)
9744      # FIXME: we may have to deal with multi-command sequences.
9745      ;;
9746    '$CC '*)
9747      # Test whether the compiler implicitly links with -lc since on some
9748      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9749      # to ld, don't add -lc before -lgcc.
9750      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9751$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9752if ${lt_cv_archive_cmds_need_lc+:} false; then :
9753  $as_echo_n "(cached) " >&6
9754else
9755  $RM conftest*
9756	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9757
9758	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9759  (eval $ac_compile) 2>&5
9760  ac_status=$?
9761  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9762  test $ac_status = 0; } 2>conftest.err; then
9763	  soname=conftest
9764	  lib=conftest
9765	  libobjs=conftest.$ac_objext
9766	  deplibs=
9767	  wl=$lt_prog_compiler_wl
9768	  pic_flag=$lt_prog_compiler_pic
9769	  compiler_flags=-v
9770	  linker_flags=-v
9771	  verstring=
9772	  output_objdir=.
9773	  libname=conftest
9774	  lt_save_allow_undefined_flag=$allow_undefined_flag
9775	  allow_undefined_flag=
9776	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9777  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9778  ac_status=$?
9779  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9780  test $ac_status = 0; }
9781	  then
9782	    lt_cv_archive_cmds_need_lc=no
9783	  else
9784	    lt_cv_archive_cmds_need_lc=yes
9785	  fi
9786	  allow_undefined_flag=$lt_save_allow_undefined_flag
9787	else
9788	  cat conftest.err 1>&5
9789	fi
9790	$RM conftest*
9791
9792fi
9793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9794$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9795      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9796      ;;
9797    esac
9798  fi
9799  ;;
9800esac
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9954$as_echo_n "checking dynamic linker characteristics... " >&6; }
9955
9956if test "$GCC" = yes; then
9957  case $host_os in
9958    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9959    *) lt_awk_arg="/^libraries:/" ;;
9960  esac
9961  case $host_os in
9962    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9963    *) lt_sed_strip_eq="s,=/,/,g" ;;
9964  esac
9965  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9966  case $lt_search_path_spec in
9967  *\;*)
9968    # if the path contains ";" then we assume it to be the separator
9969    # otherwise default to the standard path separator (i.e. ":") - it is
9970    # assumed that no part of a normal pathname contains ";" but that should
9971    # okay in the real world where ";" in dirpaths is itself problematic.
9972    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9973    ;;
9974  *)
9975    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9976    ;;
9977  esac
9978  # Ok, now we have the path, separated by spaces, we can step through it
9979  # and add multilib dir if necessary.
9980  lt_tmp_lt_search_path_spec=
9981  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9982  for lt_sys_path in $lt_search_path_spec; do
9983    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9984      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9985    else
9986      test -d "$lt_sys_path" && \
9987	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9988    fi
9989  done
9990  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9991BEGIN {RS=" "; FS="/|\n";} {
9992  lt_foo="";
9993  lt_count=0;
9994  for (lt_i = NF; lt_i > 0; lt_i--) {
9995    if ($lt_i != "" && $lt_i != ".") {
9996      if ($lt_i == "..") {
9997        lt_count++;
9998      } else {
9999        if (lt_count == 0) {
10000          lt_foo="/" $lt_i lt_foo;
10001        } else {
10002          lt_count--;
10003        }
10004      }
10005    }
10006  }
10007  if (lt_foo != "") { lt_freq[lt_foo]++; }
10008  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10009}'`
10010  # AWK program above erroneously prepends '/' to C:/dos/paths
10011  # for these hosts.
10012  case $host_os in
10013    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10014      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10015  esac
10016  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10017else
10018  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10019fi
10020library_names_spec=
10021libname_spec='lib$name'
10022soname_spec=
10023shrext_cmds=".so"
10024postinstall_cmds=
10025postuninstall_cmds=
10026finish_cmds=
10027finish_eval=
10028shlibpath_var=
10029shlibpath_overrides_runpath=unknown
10030version_type=none
10031dynamic_linker="$host_os ld.so"
10032sys_lib_dlsearch_path_spec="/lib /usr/lib"
10033need_lib_prefix=unknown
10034hardcode_into_libs=no
10035
10036# when you set need_version to no, make sure it does not cause -set_version
10037# flags to be left without arguments
10038need_version=unknown
10039
10040case $host_os in
10041aix3*)
10042  version_type=linux # correct to gnu/linux during the next big refactor
10043  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10044  shlibpath_var=LIBPATH
10045
10046  # AIX 3 has no versioning support, so we append a major version to the name.
10047  soname_spec='${libname}${release}${shared_ext}$major'
10048  ;;
10049
10050aix[4-9]*)
10051  version_type=linux # correct to gnu/linux during the next big refactor
10052  need_lib_prefix=no
10053  need_version=no
10054  hardcode_into_libs=yes
10055  if test "$host_cpu" = ia64; then
10056    # AIX 5 supports IA64
10057    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10058    shlibpath_var=LD_LIBRARY_PATH
10059  else
10060    # With GCC up to 2.95.x, collect2 would create an import file
10061    # for dependence libraries.  The import file would start with
10062    # the line `#! .'.  This would cause the generated library to
10063    # depend on `.', always an invalid library.  This was fixed in
10064    # development snapshots of GCC prior to 3.0.
10065    case $host_os in
10066      aix4 | aix4.[01] | aix4.[01].*)
10067      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10068	   echo ' yes '
10069	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10070	:
10071      else
10072	can_build_shared=no
10073      fi
10074      ;;
10075    esac
10076    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10077    # soname into executable. Probably we can add versioning support to
10078    # collect2, so additional links can be useful in future.
10079    if test "$aix_use_runtimelinking" = yes; then
10080      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10081      # instead of lib<name>.a to let people know that these are not
10082      # typical AIX shared libraries.
10083      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10084    else
10085      # We preserve .a as extension for shared libraries through AIX4.2
10086      # and later when we are not doing run time linking.
10087      library_names_spec='${libname}${release}.a $libname.a'
10088      soname_spec='${libname}${release}${shared_ext}$major'
10089    fi
10090    shlibpath_var=LIBPATH
10091  fi
10092  ;;
10093
10094amigaos*)
10095  case $host_cpu in
10096  powerpc)
10097    # Since July 2007 AmigaOS4 officially supports .so libraries.
10098    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10099    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10100    ;;
10101  m68k)
10102    library_names_spec='$libname.ixlibrary $libname.a'
10103    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10104    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'
10105    ;;
10106  esac
10107  ;;
10108
10109beos*)
10110  library_names_spec='${libname}${shared_ext}'
10111  dynamic_linker="$host_os ld.so"
10112  shlibpath_var=LIBRARY_PATH
10113  ;;
10114
10115bsdi[45]*)
10116  version_type=linux # correct to gnu/linux during the next big refactor
10117  need_version=no
10118  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10119  soname_spec='${libname}${release}${shared_ext}$major'
10120  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10121  shlibpath_var=LD_LIBRARY_PATH
10122  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10123  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10124  # the default ld.so.conf also contains /usr/contrib/lib and
10125  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10126  # libtool to hard-code these into programs
10127  ;;
10128
10129cygwin* | mingw* | pw32* | cegcc*)
10130  version_type=windows
10131  shrext_cmds=".dll"
10132  need_version=no
10133  need_lib_prefix=no
10134
10135  case $GCC,$cc_basename in
10136  yes,*)
10137    # gcc
10138    library_names_spec='$libname.dll.a'
10139    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10140    postinstall_cmds='base_file=`basename \${file}`~
10141      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10142      dldir=$destdir/`dirname \$dlpath`~
10143      test -d \$dldir || mkdir -p \$dldir~
10144      $install_prog $dir/$dlname \$dldir/$dlname~
10145      chmod a+x \$dldir/$dlname~
10146      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10147        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10148      fi'
10149    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10150      dlpath=$dir/\$dldll~
10151       $RM \$dlpath'
10152    shlibpath_overrides_runpath=yes
10153
10154    case $host_os in
10155    cygwin*)
10156      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10157      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10158
10159      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10160      ;;
10161    mingw* | cegcc*)
10162      # MinGW DLLs use traditional 'lib' prefix
10163      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10164      ;;
10165    pw32*)
10166      # pw32 DLLs use 'pw' prefix rather than 'lib'
10167      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10168      ;;
10169    esac
10170    dynamic_linker='Win32 ld.exe'
10171    ;;
10172
10173  *,cl*)
10174    # Native MSVC
10175    libname_spec='$name'
10176    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10177    library_names_spec='${libname}.dll.lib'
10178
10179    case $build_os in
10180    mingw*)
10181      sys_lib_search_path_spec=
10182      lt_save_ifs=$IFS
10183      IFS=';'
10184      for lt_path in $LIB
10185      do
10186        IFS=$lt_save_ifs
10187        # Let DOS variable expansion print the short 8.3 style file name.
10188        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10189        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10190      done
10191      IFS=$lt_save_ifs
10192      # Convert to MSYS style.
10193      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10194      ;;
10195    cygwin*)
10196      # Convert to unix form, then to dos form, then back to unix form
10197      # but this time dos style (no spaces!) so that the unix form looks
10198      # like /cygdrive/c/PROGRA~1:/cygdr...
10199      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10200      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10201      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10202      ;;
10203    *)
10204      sys_lib_search_path_spec="$LIB"
10205      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10206        # It is most probably a Windows format PATH.
10207        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10208      else
10209        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10210      fi
10211      # FIXME: find the short name or the path components, as spaces are
10212      # common. (e.g. "Program Files" -> "PROGRA~1")
10213      ;;
10214    esac
10215
10216    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10217    postinstall_cmds='base_file=`basename \${file}`~
10218      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10219      dldir=$destdir/`dirname \$dlpath`~
10220      test -d \$dldir || mkdir -p \$dldir~
10221      $install_prog $dir/$dlname \$dldir/$dlname'
10222    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10223      dlpath=$dir/\$dldll~
10224       $RM \$dlpath'
10225    shlibpath_overrides_runpath=yes
10226    dynamic_linker='Win32 link.exe'
10227    ;;
10228
10229  *)
10230    # Assume MSVC wrapper
10231    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10232    dynamic_linker='Win32 ld.exe'
10233    ;;
10234  esac
10235  # FIXME: first we should search . and the directory the executable is in
10236  shlibpath_var=PATH
10237  ;;
10238
10239darwin* | rhapsody*)
10240  dynamic_linker="$host_os dyld"
10241  version_type=darwin
10242  need_lib_prefix=no
10243  need_version=no
10244  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10245  soname_spec='${libname}${release}${major}$shared_ext'
10246  shlibpath_overrides_runpath=yes
10247  shlibpath_var=DYLD_LIBRARY_PATH
10248  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10249
10250  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10251  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10252  ;;
10253
10254dgux*)
10255  version_type=linux # correct to gnu/linux during the next big refactor
10256  need_lib_prefix=no
10257  need_version=no
10258  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10259  soname_spec='${libname}${release}${shared_ext}$major'
10260  shlibpath_var=LD_LIBRARY_PATH
10261  ;;
10262
10263freebsd* | dragonfly*)
10264  # DragonFly does not have aout.  When/if they implement a new
10265  # versioning mechanism, adjust this.
10266  if test -x /usr/bin/objformat; then
10267    objformat=`/usr/bin/objformat`
10268  else
10269    case $host_os in
10270    freebsd[23].*) objformat=aout ;;
10271    *) objformat=elf ;;
10272    esac
10273  fi
10274  version_type=freebsd-$objformat
10275  case $version_type in
10276    freebsd-elf*)
10277      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10278      need_version=no
10279      need_lib_prefix=no
10280      ;;
10281    freebsd-*)
10282      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10283      need_version=yes
10284      ;;
10285  esac
10286  shlibpath_var=LD_LIBRARY_PATH
10287  case $host_os in
10288  freebsd2.*)
10289    shlibpath_overrides_runpath=yes
10290    ;;
10291  freebsd3.[01]* | freebsdelf3.[01]*)
10292    shlibpath_overrides_runpath=yes
10293    hardcode_into_libs=yes
10294    ;;
10295  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10296  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10297    shlibpath_overrides_runpath=no
10298    hardcode_into_libs=yes
10299    ;;
10300  *) # from 4.6 on, and DragonFly
10301    shlibpath_overrides_runpath=yes
10302    hardcode_into_libs=yes
10303    ;;
10304  esac
10305  ;;
10306
10307haiku*)
10308  version_type=linux # correct to gnu/linux during the next big refactor
10309  need_lib_prefix=no
10310  need_version=no
10311  dynamic_linker="$host_os runtime_loader"
10312  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10313  soname_spec='${libname}${release}${shared_ext}$major'
10314  shlibpath_var=LIBRARY_PATH
10315  shlibpath_overrides_runpath=yes
10316  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10317  hardcode_into_libs=yes
10318  ;;
10319
10320hpux9* | hpux10* | hpux11*)
10321  # Give a soname corresponding to the major version so that dld.sl refuses to
10322  # link against other versions.
10323  version_type=sunos
10324  need_lib_prefix=no
10325  need_version=no
10326  case $host_cpu in
10327  ia64*)
10328    shrext_cmds='.so'
10329    hardcode_into_libs=yes
10330    dynamic_linker="$host_os dld.so"
10331    shlibpath_var=LD_LIBRARY_PATH
10332    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10333    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10334    soname_spec='${libname}${release}${shared_ext}$major'
10335    if test "X$HPUX_IA64_MODE" = X32; then
10336      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10337    else
10338      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10339    fi
10340    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10341    ;;
10342  hppa*64*)
10343    shrext_cmds='.sl'
10344    hardcode_into_libs=yes
10345    dynamic_linker="$host_os dld.sl"
10346    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10347    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10348    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10349    soname_spec='${libname}${release}${shared_ext}$major'
10350    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10351    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10352    ;;
10353  *)
10354    shrext_cmds='.sl'
10355    dynamic_linker="$host_os dld.sl"
10356    shlibpath_var=SHLIB_PATH
10357    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10358    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10359    soname_spec='${libname}${release}${shared_ext}$major'
10360    ;;
10361  esac
10362  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10363  postinstall_cmds='chmod 555 $lib'
10364  # or fails outright, so override atomically:
10365  install_override_mode=555
10366  ;;
10367
10368interix[3-9]*)
10369  version_type=linux # correct to gnu/linux during the next big refactor
10370  need_lib_prefix=no
10371  need_version=no
10372  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10373  soname_spec='${libname}${release}${shared_ext}$major'
10374  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10375  shlibpath_var=LD_LIBRARY_PATH
10376  shlibpath_overrides_runpath=no
10377  hardcode_into_libs=yes
10378  ;;
10379
10380irix5* | irix6* | nonstopux*)
10381  case $host_os in
10382    nonstopux*) version_type=nonstopux ;;
10383    *)
10384	if test "$lt_cv_prog_gnu_ld" = yes; then
10385		version_type=linux # correct to gnu/linux during the next big refactor
10386	else
10387		version_type=irix
10388	fi ;;
10389  esac
10390  need_lib_prefix=no
10391  need_version=no
10392  soname_spec='${libname}${release}${shared_ext}$major'
10393  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10394  case $host_os in
10395  irix5* | nonstopux*)
10396    libsuff= shlibsuff=
10397    ;;
10398  *)
10399    case $LD in # libtool.m4 will add one of these switches to LD
10400    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10401      libsuff= shlibsuff= libmagic=32-bit;;
10402    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10403      libsuff=32 shlibsuff=N32 libmagic=N32;;
10404    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10405      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10406    *) libsuff= shlibsuff= libmagic=never-match;;
10407    esac
10408    ;;
10409  esac
10410  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10411  shlibpath_overrides_runpath=no
10412  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10413  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10414  hardcode_into_libs=yes
10415  ;;
10416
10417# No shared lib support for Linux oldld, aout, or coff.
10418linux*oldld* | linux*aout* | linux*coff*)
10419  dynamic_linker=no
10420  ;;
10421
10422# This must be glibc/ELF.
10423linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10424  version_type=linux # correct to gnu/linux during the next big refactor
10425  need_lib_prefix=no
10426  need_version=no
10427  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10428  soname_spec='${libname}${release}${shared_ext}$major'
10429  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10430  shlibpath_var=LD_LIBRARY_PATH
10431  shlibpath_overrides_runpath=no
10432
10433  # Some binutils ld are patched to set DT_RUNPATH
10434  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10435  $as_echo_n "(cached) " >&6
10436else
10437  lt_cv_shlibpath_overrides_runpath=no
10438    save_LDFLAGS=$LDFLAGS
10439    save_libdir=$libdir
10440    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10441	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10442    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10443/* end confdefs.h.  */
10444
10445int
10446main ()
10447{
10448
10449  ;
10450  return 0;
10451}
10452_ACEOF
10453if ac_fn_c_try_link "$LINENO"; then :
10454  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10455  lt_cv_shlibpath_overrides_runpath=yes
10456fi
10457fi
10458rm -f core conftest.err conftest.$ac_objext \
10459    conftest$ac_exeext conftest.$ac_ext
10460    LDFLAGS=$save_LDFLAGS
10461    libdir=$save_libdir
10462
10463fi
10464
10465  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10466
10467  # This implies no fast_install, which is unacceptable.
10468  # Some rework will be needed to allow for fast_install
10469  # before this can be enabled.
10470  hardcode_into_libs=yes
10471
10472  # Append ld.so.conf contents to the search path
10473  if test -f /etc/ld.so.conf; then
10474    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' ' '`
10475    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10476  fi
10477
10478  # We used to test for /lib/ld.so.1 and disable shared libraries on
10479  # powerpc, because MkLinux only supported shared libraries with the
10480  # GNU dynamic linker.  Since this was broken with cross compilers,
10481  # most powerpc-linux boxes support dynamic linking these days and
10482  # people can always --disable-shared, the test was removed, and we
10483  # assume the GNU/Linux dynamic linker is in use.
10484  dynamic_linker='GNU/Linux ld.so'
10485  ;;
10486
10487netbsdelf*-gnu)
10488  version_type=linux
10489  need_lib_prefix=no
10490  need_version=no
10491  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10492  soname_spec='${libname}${release}${shared_ext}$major'
10493  shlibpath_var=LD_LIBRARY_PATH
10494  shlibpath_overrides_runpath=no
10495  hardcode_into_libs=yes
10496  dynamic_linker='NetBSD ld.elf_so'
10497  ;;
10498
10499netbsd*)
10500  version_type=sunos
10501  need_lib_prefix=no
10502  need_version=no
10503  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10504    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10505    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10506    dynamic_linker='NetBSD (a.out) ld.so'
10507  else
10508    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10509    soname_spec='${libname}${release}${shared_ext}$major'
10510    dynamic_linker='NetBSD ld.elf_so'
10511  fi
10512  shlibpath_var=LD_LIBRARY_PATH
10513  shlibpath_overrides_runpath=yes
10514  hardcode_into_libs=yes
10515  ;;
10516
10517newsos6)
10518  version_type=linux # correct to gnu/linux during the next big refactor
10519  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10520  shlibpath_var=LD_LIBRARY_PATH
10521  shlibpath_overrides_runpath=yes
10522  ;;
10523
10524*nto* | *qnx*)
10525  version_type=qnx
10526  need_lib_prefix=no
10527  need_version=no
10528  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10529  soname_spec='${libname}${release}${shared_ext}$major'
10530  shlibpath_var=LD_LIBRARY_PATH
10531  shlibpath_overrides_runpath=no
10532  hardcode_into_libs=yes
10533  dynamic_linker='ldqnx.so'
10534  ;;
10535
10536openbsd*)
10537  version_type=sunos
10538  sys_lib_dlsearch_path_spec="/usr/lib"
10539  need_lib_prefix=no
10540  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10541  case $host_os in
10542    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10543    *)				need_version=no  ;;
10544  esac
10545  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10546  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10547  shlibpath_var=LD_LIBRARY_PATH
10548  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10549    case $host_os in
10550      openbsd2.[89] | openbsd2.[89].*)
10551	shlibpath_overrides_runpath=no
10552	;;
10553      *)
10554	shlibpath_overrides_runpath=yes
10555	;;
10556      esac
10557  else
10558    shlibpath_overrides_runpath=yes
10559  fi
10560  ;;
10561
10562os2*)
10563  libname_spec='$name'
10564  shrext_cmds=".dll"
10565  need_lib_prefix=no
10566  library_names_spec='$libname${shared_ext} $libname.a'
10567  dynamic_linker='OS/2 ld.exe'
10568  shlibpath_var=LIBPATH
10569  ;;
10570
10571osf3* | osf4* | osf5*)
10572  version_type=osf
10573  need_lib_prefix=no
10574  need_version=no
10575  soname_spec='${libname}${release}${shared_ext}$major'
10576  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10577  shlibpath_var=LD_LIBRARY_PATH
10578  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10579  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10580  ;;
10581
10582rdos*)
10583  dynamic_linker=no
10584  ;;
10585
10586solaris*)
10587  version_type=linux # correct to gnu/linux during the next big refactor
10588  need_lib_prefix=no
10589  need_version=no
10590  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10591  soname_spec='${libname}${release}${shared_ext}$major'
10592  shlibpath_var=LD_LIBRARY_PATH
10593  shlibpath_overrides_runpath=yes
10594  hardcode_into_libs=yes
10595  # ldd complains unless libraries are executable
10596  postinstall_cmds='chmod +x $lib'
10597  ;;
10598
10599sunos4*)
10600  version_type=sunos
10601  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10602  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10603  shlibpath_var=LD_LIBRARY_PATH
10604  shlibpath_overrides_runpath=yes
10605  if test "$with_gnu_ld" = yes; then
10606    need_lib_prefix=no
10607  fi
10608  need_version=yes
10609  ;;
10610
10611sysv4 | sysv4.3*)
10612  version_type=linux # correct to gnu/linux during the next big refactor
10613  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10614  soname_spec='${libname}${release}${shared_ext}$major'
10615  shlibpath_var=LD_LIBRARY_PATH
10616  case $host_vendor in
10617    sni)
10618      shlibpath_overrides_runpath=no
10619      need_lib_prefix=no
10620      runpath_var=LD_RUN_PATH
10621      ;;
10622    siemens)
10623      need_lib_prefix=no
10624      ;;
10625    motorola)
10626      need_lib_prefix=no
10627      need_version=no
10628      shlibpath_overrides_runpath=no
10629      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10630      ;;
10631  esac
10632  ;;
10633
10634sysv4*MP*)
10635  if test -d /usr/nec ;then
10636    version_type=linux # correct to gnu/linux during the next big refactor
10637    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10638    soname_spec='$libname${shared_ext}.$major'
10639    shlibpath_var=LD_LIBRARY_PATH
10640  fi
10641  ;;
10642
10643sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10644  version_type=freebsd-elf
10645  need_lib_prefix=no
10646  need_version=no
10647  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10648  soname_spec='${libname}${release}${shared_ext}$major'
10649  shlibpath_var=LD_LIBRARY_PATH
10650  shlibpath_overrides_runpath=yes
10651  hardcode_into_libs=yes
10652  if test "$with_gnu_ld" = yes; then
10653    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10654  else
10655    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10656    case $host_os in
10657      sco3.2v5*)
10658        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10659	;;
10660    esac
10661  fi
10662  sys_lib_dlsearch_path_spec='/usr/lib'
10663  ;;
10664
10665tpf*)
10666  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10667  version_type=linux # correct to gnu/linux during the next big refactor
10668  need_lib_prefix=no
10669  need_version=no
10670  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10671  shlibpath_var=LD_LIBRARY_PATH
10672  shlibpath_overrides_runpath=no
10673  hardcode_into_libs=yes
10674  ;;
10675
10676uts4*)
10677  version_type=linux # correct to gnu/linux during the next big refactor
10678  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10679  soname_spec='${libname}${release}${shared_ext}$major'
10680  shlibpath_var=LD_LIBRARY_PATH
10681  ;;
10682
10683*)
10684  dynamic_linker=no
10685  ;;
10686esac
10687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10688$as_echo "$dynamic_linker" >&6; }
10689test "$dynamic_linker" = no && can_build_shared=no
10690
10691variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10692if test "$GCC" = yes; then
10693  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10694fi
10695
10696if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10697  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10698fi
10699if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10700  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10701fi
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10795$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10796hardcode_action=
10797if test -n "$hardcode_libdir_flag_spec" ||
10798   test -n "$runpath_var" ||
10799   test "X$hardcode_automatic" = "Xyes" ; then
10800
10801  # We can hardcode non-existent directories.
10802  if test "$hardcode_direct" != no &&
10803     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10804     # have to relink, otherwise we might link with an installed library
10805     # when we should be linking with a yet-to-be-installed one
10806     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10807     test "$hardcode_minus_L" != no; then
10808    # Linking always hardcodes the temporary library directory.
10809    hardcode_action=relink
10810  else
10811    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10812    hardcode_action=immediate
10813  fi
10814else
10815  # We cannot hardcode anything, or else we can only hardcode existing
10816  # directories.
10817  hardcode_action=unsupported
10818fi
10819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10820$as_echo "$hardcode_action" >&6; }
10821
10822if test "$hardcode_action" = relink ||
10823   test "$inherit_rpath" = yes; then
10824  # Fast installation is not supported
10825  enable_fast_install=no
10826elif test "$shlibpath_overrides_runpath" = yes ||
10827     test "$enable_shared" = no; then
10828  # Fast installation is not necessary
10829  enable_fast_install=needless
10830fi
10831
10832
10833
10834
10835
10836
10837  if test "x$enable_dlopen" != xyes; then
10838  enable_dlopen=unknown
10839  enable_dlopen_self=unknown
10840  enable_dlopen_self_static=unknown
10841else
10842  lt_cv_dlopen=no
10843  lt_cv_dlopen_libs=
10844
10845  case $host_os in
10846  beos*)
10847    lt_cv_dlopen="load_add_on"
10848    lt_cv_dlopen_libs=
10849    lt_cv_dlopen_self=yes
10850    ;;
10851
10852  mingw* | pw32* | cegcc*)
10853    lt_cv_dlopen="LoadLibrary"
10854    lt_cv_dlopen_libs=
10855    ;;
10856
10857  cygwin*)
10858    lt_cv_dlopen="dlopen"
10859    lt_cv_dlopen_libs=
10860    ;;
10861
10862  darwin*)
10863  # if libdl is installed we need to link against it
10864    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10865$as_echo_n "checking for dlopen in -ldl... " >&6; }
10866if ${ac_cv_lib_dl_dlopen+:} false; then :
10867  $as_echo_n "(cached) " >&6
10868else
10869  ac_check_lib_save_LIBS=$LIBS
10870LIBS="-ldl  $LIBS"
10871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10872/* end confdefs.h.  */
10873
10874/* Override any GCC internal prototype to avoid an error.
10875   Use char because int might match the return type of a GCC
10876   builtin and then its argument prototype would still apply.  */
10877#ifdef __cplusplus
10878extern "C"
10879#endif
10880char dlopen ();
10881int
10882main ()
10883{
10884return dlopen ();
10885  ;
10886  return 0;
10887}
10888_ACEOF
10889if ac_fn_c_try_link "$LINENO"; then :
10890  ac_cv_lib_dl_dlopen=yes
10891else
10892  ac_cv_lib_dl_dlopen=no
10893fi
10894rm -f core conftest.err conftest.$ac_objext \
10895    conftest$ac_exeext conftest.$ac_ext
10896LIBS=$ac_check_lib_save_LIBS
10897fi
10898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10899$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10900if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10901  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10902else
10903
10904    lt_cv_dlopen="dyld"
10905    lt_cv_dlopen_libs=
10906    lt_cv_dlopen_self=yes
10907
10908fi
10909
10910    ;;
10911
10912  *)
10913    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10914if test "x$ac_cv_func_shl_load" = xyes; then :
10915  lt_cv_dlopen="shl_load"
10916else
10917  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10918$as_echo_n "checking for shl_load in -ldld... " >&6; }
10919if ${ac_cv_lib_dld_shl_load+:} false; then :
10920  $as_echo_n "(cached) " >&6
10921else
10922  ac_check_lib_save_LIBS=$LIBS
10923LIBS="-ldld  $LIBS"
10924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10925/* end confdefs.h.  */
10926
10927/* Override any GCC internal prototype to avoid an error.
10928   Use char because int might match the return type of a GCC
10929   builtin and then its argument prototype would still apply.  */
10930#ifdef __cplusplus
10931extern "C"
10932#endif
10933char shl_load ();
10934int
10935main ()
10936{
10937return shl_load ();
10938  ;
10939  return 0;
10940}
10941_ACEOF
10942if ac_fn_c_try_link "$LINENO"; then :
10943  ac_cv_lib_dld_shl_load=yes
10944else
10945  ac_cv_lib_dld_shl_load=no
10946fi
10947rm -f core conftest.err conftest.$ac_objext \
10948    conftest$ac_exeext conftest.$ac_ext
10949LIBS=$ac_check_lib_save_LIBS
10950fi
10951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10952$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10953if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10954  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10955else
10956  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10957if test "x$ac_cv_func_dlopen" = xyes; then :
10958  lt_cv_dlopen="dlopen"
10959else
10960  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10961$as_echo_n "checking for dlopen in -ldl... " >&6; }
10962if ${ac_cv_lib_dl_dlopen+:} false; then :
10963  $as_echo_n "(cached) " >&6
10964else
10965  ac_check_lib_save_LIBS=$LIBS
10966LIBS="-ldl  $LIBS"
10967cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10968/* end confdefs.h.  */
10969
10970/* Override any GCC internal prototype to avoid an error.
10971   Use char because int might match the return type of a GCC
10972   builtin and then its argument prototype would still apply.  */
10973#ifdef __cplusplus
10974extern "C"
10975#endif
10976char dlopen ();
10977int
10978main ()
10979{
10980return dlopen ();
10981  ;
10982  return 0;
10983}
10984_ACEOF
10985if ac_fn_c_try_link "$LINENO"; then :
10986  ac_cv_lib_dl_dlopen=yes
10987else
10988  ac_cv_lib_dl_dlopen=no
10989fi
10990rm -f core conftest.err conftest.$ac_objext \
10991    conftest$ac_exeext conftest.$ac_ext
10992LIBS=$ac_check_lib_save_LIBS
10993fi
10994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10995$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10996if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10997  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10998else
10999  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11000$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11001if ${ac_cv_lib_svld_dlopen+:} false; then :
11002  $as_echo_n "(cached) " >&6
11003else
11004  ac_check_lib_save_LIBS=$LIBS
11005LIBS="-lsvld  $LIBS"
11006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11007/* end confdefs.h.  */
11008
11009/* Override any GCC internal prototype to avoid an error.
11010   Use char because int might match the return type of a GCC
11011   builtin and then its argument prototype would still apply.  */
11012#ifdef __cplusplus
11013extern "C"
11014#endif
11015char dlopen ();
11016int
11017main ()
11018{
11019return dlopen ();
11020  ;
11021  return 0;
11022}
11023_ACEOF
11024if ac_fn_c_try_link "$LINENO"; then :
11025  ac_cv_lib_svld_dlopen=yes
11026else
11027  ac_cv_lib_svld_dlopen=no
11028fi
11029rm -f core conftest.err conftest.$ac_objext \
11030    conftest$ac_exeext conftest.$ac_ext
11031LIBS=$ac_check_lib_save_LIBS
11032fi
11033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11034$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11035if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11036  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11037else
11038  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11039$as_echo_n "checking for dld_link in -ldld... " >&6; }
11040if ${ac_cv_lib_dld_dld_link+:} false; then :
11041  $as_echo_n "(cached) " >&6
11042else
11043  ac_check_lib_save_LIBS=$LIBS
11044LIBS="-ldld  $LIBS"
11045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11046/* end confdefs.h.  */
11047
11048/* Override any GCC internal prototype to avoid an error.
11049   Use char because int might match the return type of a GCC
11050   builtin and then its argument prototype would still apply.  */
11051#ifdef __cplusplus
11052extern "C"
11053#endif
11054char dld_link ();
11055int
11056main ()
11057{
11058return dld_link ();
11059  ;
11060  return 0;
11061}
11062_ACEOF
11063if ac_fn_c_try_link "$LINENO"; then :
11064  ac_cv_lib_dld_dld_link=yes
11065else
11066  ac_cv_lib_dld_dld_link=no
11067fi
11068rm -f core conftest.err conftest.$ac_objext \
11069    conftest$ac_exeext conftest.$ac_ext
11070LIBS=$ac_check_lib_save_LIBS
11071fi
11072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11073$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11074if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11075  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11076fi
11077
11078
11079fi
11080
11081
11082fi
11083
11084
11085fi
11086
11087
11088fi
11089
11090
11091fi
11092
11093    ;;
11094  esac
11095
11096  if test "x$lt_cv_dlopen" != xno; then
11097    enable_dlopen=yes
11098  else
11099    enable_dlopen=no
11100  fi
11101
11102  case $lt_cv_dlopen in
11103  dlopen)
11104    save_CPPFLAGS="$CPPFLAGS"
11105    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11106
11107    save_LDFLAGS="$LDFLAGS"
11108    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11109
11110    save_LIBS="$LIBS"
11111    LIBS="$lt_cv_dlopen_libs $LIBS"
11112
11113    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11114$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11115if ${lt_cv_dlopen_self+:} false; then :
11116  $as_echo_n "(cached) " >&6
11117else
11118  	  if test "$cross_compiling" = yes; then :
11119  lt_cv_dlopen_self=cross
11120else
11121  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11122  lt_status=$lt_dlunknown
11123  cat > conftest.$ac_ext <<_LT_EOF
11124#line $LINENO "configure"
11125#include "confdefs.h"
11126
11127#if HAVE_DLFCN_H
11128#include <dlfcn.h>
11129#endif
11130
11131#include <stdio.h>
11132
11133#ifdef RTLD_GLOBAL
11134#  define LT_DLGLOBAL		RTLD_GLOBAL
11135#else
11136#  ifdef DL_GLOBAL
11137#    define LT_DLGLOBAL		DL_GLOBAL
11138#  else
11139#    define LT_DLGLOBAL		0
11140#  endif
11141#endif
11142
11143/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11144   find out it does not work in some platform. */
11145#ifndef LT_DLLAZY_OR_NOW
11146#  ifdef RTLD_LAZY
11147#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11148#  else
11149#    ifdef DL_LAZY
11150#      define LT_DLLAZY_OR_NOW		DL_LAZY
11151#    else
11152#      ifdef RTLD_NOW
11153#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11154#      else
11155#        ifdef DL_NOW
11156#          define LT_DLLAZY_OR_NOW	DL_NOW
11157#        else
11158#          define LT_DLLAZY_OR_NOW	0
11159#        endif
11160#      endif
11161#    endif
11162#  endif
11163#endif
11164
11165/* When -fvisbility=hidden is used, assume the code has been annotated
11166   correspondingly for the symbols needed.  */
11167#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11168int fnord () __attribute__((visibility("default")));
11169#endif
11170
11171int fnord () { return 42; }
11172int main ()
11173{
11174  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11175  int status = $lt_dlunknown;
11176
11177  if (self)
11178    {
11179      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11180      else
11181        {
11182	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11183          else puts (dlerror ());
11184	}
11185      /* dlclose (self); */
11186    }
11187  else
11188    puts (dlerror ());
11189
11190  return status;
11191}
11192_LT_EOF
11193  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11194  (eval $ac_link) 2>&5
11195  ac_status=$?
11196  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11197  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11198    (./conftest; exit; ) >&5 2>/dev/null
11199    lt_status=$?
11200    case x$lt_status in
11201      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11202      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11203      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11204    esac
11205  else :
11206    # compilation failed
11207    lt_cv_dlopen_self=no
11208  fi
11209fi
11210rm -fr conftest*
11211
11212
11213fi
11214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11215$as_echo "$lt_cv_dlopen_self" >&6; }
11216
11217    if test "x$lt_cv_dlopen_self" = xyes; then
11218      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11219      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11220$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11221if ${lt_cv_dlopen_self_static+:} false; then :
11222  $as_echo_n "(cached) " >&6
11223else
11224  	  if test "$cross_compiling" = yes; then :
11225  lt_cv_dlopen_self_static=cross
11226else
11227  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11228  lt_status=$lt_dlunknown
11229  cat > conftest.$ac_ext <<_LT_EOF
11230#line $LINENO "configure"
11231#include "confdefs.h"
11232
11233#if HAVE_DLFCN_H
11234#include <dlfcn.h>
11235#endif
11236
11237#include <stdio.h>
11238
11239#ifdef RTLD_GLOBAL
11240#  define LT_DLGLOBAL		RTLD_GLOBAL
11241#else
11242#  ifdef DL_GLOBAL
11243#    define LT_DLGLOBAL		DL_GLOBAL
11244#  else
11245#    define LT_DLGLOBAL		0
11246#  endif
11247#endif
11248
11249/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11250   find out it does not work in some platform. */
11251#ifndef LT_DLLAZY_OR_NOW
11252#  ifdef RTLD_LAZY
11253#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11254#  else
11255#    ifdef DL_LAZY
11256#      define LT_DLLAZY_OR_NOW		DL_LAZY
11257#    else
11258#      ifdef RTLD_NOW
11259#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11260#      else
11261#        ifdef DL_NOW
11262#          define LT_DLLAZY_OR_NOW	DL_NOW
11263#        else
11264#          define LT_DLLAZY_OR_NOW	0
11265#        endif
11266#      endif
11267#    endif
11268#  endif
11269#endif
11270
11271/* When -fvisbility=hidden is used, assume the code has been annotated
11272   correspondingly for the symbols needed.  */
11273#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11274int fnord () __attribute__((visibility("default")));
11275#endif
11276
11277int fnord () { return 42; }
11278int main ()
11279{
11280  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11281  int status = $lt_dlunknown;
11282
11283  if (self)
11284    {
11285      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11286      else
11287        {
11288	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11289          else puts (dlerror ());
11290	}
11291      /* dlclose (self); */
11292    }
11293  else
11294    puts (dlerror ());
11295
11296  return status;
11297}
11298_LT_EOF
11299  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11300  (eval $ac_link) 2>&5
11301  ac_status=$?
11302  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11303  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11304    (./conftest; exit; ) >&5 2>/dev/null
11305    lt_status=$?
11306    case x$lt_status in
11307      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11308      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11309      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11310    esac
11311  else :
11312    # compilation failed
11313    lt_cv_dlopen_self_static=no
11314  fi
11315fi
11316rm -fr conftest*
11317
11318
11319fi
11320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11321$as_echo "$lt_cv_dlopen_self_static" >&6; }
11322    fi
11323
11324    CPPFLAGS="$save_CPPFLAGS"
11325    LDFLAGS="$save_LDFLAGS"
11326    LIBS="$save_LIBS"
11327    ;;
11328  esac
11329
11330  case $lt_cv_dlopen_self in
11331  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11332  *) enable_dlopen_self=unknown ;;
11333  esac
11334
11335  case $lt_cv_dlopen_self_static in
11336  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11337  *) enable_dlopen_self_static=unknown ;;
11338  esac
11339fi
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357striplib=
11358old_striplib=
11359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11360$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11361if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11362  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11363  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11365$as_echo "yes" >&6; }
11366else
11367# FIXME - insert some real tests, host_os isn't really good enough
11368  case $host_os in
11369  darwin*)
11370    if test -n "$STRIP" ; then
11371      striplib="$STRIP -x"
11372      old_striplib="$STRIP -S"
11373      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11374$as_echo "yes" >&6; }
11375    else
11376      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11377$as_echo "no" >&6; }
11378    fi
11379    ;;
11380  *)
11381    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11382$as_echo "no" >&6; }
11383    ;;
11384  esac
11385fi
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398  # Report which library types will actually be built
11399  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11400$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11402$as_echo "$can_build_shared" >&6; }
11403
11404  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11405$as_echo_n "checking whether to build shared libraries... " >&6; }
11406  test "$can_build_shared" = "no" && enable_shared=no
11407
11408  # On AIX, shared libraries and static libraries use the same namespace, and
11409  # are all built from PIC.
11410  case $host_os in
11411  aix3*)
11412    test "$enable_shared" = yes && enable_static=no
11413    if test -n "$RANLIB"; then
11414      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11415      postinstall_cmds='$RANLIB $lib'
11416    fi
11417    ;;
11418
11419  aix[4-9]*)
11420    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11421      test "$enable_shared" = yes && enable_static=no
11422    fi
11423    ;;
11424  esac
11425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11426$as_echo "$enable_shared" >&6; }
11427
11428  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11429$as_echo_n "checking whether to build static libraries... " >&6; }
11430  # Make sure either enable_shared or enable_static is yes.
11431  test "$enable_shared" = yes || enable_static=yes
11432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11433$as_echo "$enable_static" >&6; }
11434
11435
11436
11437
11438fi
11439ac_ext=c
11440ac_cpp='$CPP $CPPFLAGS'
11441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11443ac_compiler_gnu=$ac_cv_c_compiler_gnu
11444
11445CC="$lt_save_CC"
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461        ac_config_commands="$ac_config_commands libtool"
11462
11463
11464
11465
11466# Only expand once:
11467
11468
11469
11470# Require X.Org macros 1.8 or later for AC_PROG_INSTALL
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11483$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11484if ${ac_cv_prog_cc_c99+:} false; then :
11485  $as_echo_n "(cached) " >&6
11486else
11487  ac_cv_prog_cc_c99=no
11488ac_save_CC=$CC
11489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11490/* end confdefs.h.  */
11491#include <stdarg.h>
11492#include <stdbool.h>
11493#include <stdlib.h>
11494#include <wchar.h>
11495#include <stdio.h>
11496
11497// Check varargs macros.  These examples are taken from C99 6.10.3.5.
11498#define debug(...) fprintf (stderr, __VA_ARGS__)
11499#define showlist(...) puts (#__VA_ARGS__)
11500#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11501static void
11502test_varargs_macros (void)
11503{
11504  int x = 1234;
11505  int y = 5678;
11506  debug ("Flag");
11507  debug ("X = %d\n", x);
11508  showlist (The first, second, and third items.);
11509  report (x>y, "x is %d but y is %d", x, y);
11510}
11511
11512// Check long long types.
11513#define BIG64 18446744073709551615ull
11514#define BIG32 4294967295ul
11515#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11516#if !BIG_OK
11517  your preprocessor is broken;
11518#endif
11519#if BIG_OK
11520#else
11521  your preprocessor is broken;
11522#endif
11523static long long int bignum = -9223372036854775807LL;
11524static unsigned long long int ubignum = BIG64;
11525
11526struct incomplete_array
11527{
11528  int datasize;
11529  double data[];
11530};
11531
11532struct named_init {
11533  int number;
11534  const wchar_t *name;
11535  double average;
11536};
11537
11538typedef const char *ccp;
11539
11540static inline int
11541test_restrict (ccp restrict text)
11542{
11543  // See if C++-style comments work.
11544  // Iterate through items via the restricted pointer.
11545  // Also check for declarations in for loops.
11546  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11547    continue;
11548  return 0;
11549}
11550
11551// Check varargs and va_copy.
11552static void
11553test_varargs (const char *format, ...)
11554{
11555  va_list args;
11556  va_start (args, format);
11557  va_list args_copy;
11558  va_copy (args_copy, args);
11559
11560  const char *str;
11561  int number;
11562  float fnumber;
11563
11564  while (*format)
11565    {
11566      switch (*format++)
11567	{
11568	case 's': // string
11569	  str = va_arg (args_copy, const char *);
11570	  break;
11571	case 'd': // int
11572	  number = va_arg (args_copy, int);
11573	  break;
11574	case 'f': // float
11575	  fnumber = va_arg (args_copy, double);
11576	  break;
11577	default:
11578	  break;
11579	}
11580    }
11581  va_end (args_copy);
11582  va_end (args);
11583}
11584
11585int
11586main ()
11587{
11588
11589  // Check bool.
11590  _Bool success = false;
11591
11592  // Check restrict.
11593  if (test_restrict ("String literal") == 0)
11594    success = true;
11595  char *restrict newvar = "Another string";
11596
11597  // Check varargs.
11598  test_varargs ("s, d' f .", "string", 65, 34.234);
11599  test_varargs_macros ();
11600
11601  // Check flexible array members.
11602  struct incomplete_array *ia =
11603    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11604  ia->datasize = 10;
11605  for (int i = 0; i < ia->datasize; ++i)
11606    ia->data[i] = i * 1.234;
11607
11608  // Check named initializers.
11609  struct named_init ni = {
11610    .number = 34,
11611    .name = L"Test wide string",
11612    .average = 543.34343,
11613  };
11614
11615  ni.number = 58;
11616
11617  int dynamic_array[ni.number];
11618  dynamic_array[ni.number - 1] = 543;
11619
11620  // work around unused variable warnings
11621  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11622	  || dynamic_array[ni.number - 1] != 543);
11623
11624  ;
11625  return 0;
11626}
11627_ACEOF
11628for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
11629do
11630  CC="$ac_save_CC $ac_arg"
11631  if ac_fn_c_try_compile "$LINENO"; then :
11632  ac_cv_prog_cc_c99=$ac_arg
11633fi
11634rm -f core conftest.err conftest.$ac_objext
11635  test "x$ac_cv_prog_cc_c99" != "xno" && break
11636done
11637rm -f conftest.$ac_ext
11638CC=$ac_save_CC
11639
11640fi
11641# AC_CACHE_VAL
11642case "x$ac_cv_prog_cc_c99" in
11643  x)
11644    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11645$as_echo "none needed" >&6; } ;;
11646  xno)
11647    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11648$as_echo "unsupported" >&6; } ;;
11649  *)
11650    CC="$CC $ac_cv_prog_cc_c99"
11651    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11652$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11653esac
11654if test "x$ac_cv_prog_cc_c99" != xno; then :
11655
11656fi
11657
11658
11659
11660
11661
11662
11663ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11664if test "x$ac_cv_have_decl___clang__" = xyes; then :
11665  CLANGCC="yes"
11666else
11667  CLANGCC="no"
11668fi
11669
11670ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11671if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11672  INTELCC="yes"
11673else
11674  INTELCC="no"
11675fi
11676
11677ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11678if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11679  SUNCC="yes"
11680else
11681  SUNCC="no"
11682fi
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11693	if test -n "$ac_tool_prefix"; then
11694  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11695set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11697$as_echo_n "checking for $ac_word... " >&6; }
11698if ${ac_cv_path_PKG_CONFIG+:} false; then :
11699  $as_echo_n "(cached) " >&6
11700else
11701  case $PKG_CONFIG in
11702  [\\/]* | ?:[\\/]*)
11703  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11704  ;;
11705  *)
11706  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11707for as_dir in $PATH
11708do
11709  IFS=$as_save_IFS
11710  test -z "$as_dir" && as_dir=.
11711    for ac_exec_ext in '' $ac_executable_extensions; do
11712  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11713    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11714    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11715    break 2
11716  fi
11717done
11718  done
11719IFS=$as_save_IFS
11720
11721  ;;
11722esac
11723fi
11724PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11725if test -n "$PKG_CONFIG"; then
11726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11727$as_echo "$PKG_CONFIG" >&6; }
11728else
11729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11730$as_echo "no" >&6; }
11731fi
11732
11733
11734fi
11735if test -z "$ac_cv_path_PKG_CONFIG"; then
11736  ac_pt_PKG_CONFIG=$PKG_CONFIG
11737  # Extract the first word of "pkg-config", so it can be a program name with args.
11738set dummy pkg-config; ac_word=$2
11739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11740$as_echo_n "checking for $ac_word... " >&6; }
11741if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11742  $as_echo_n "(cached) " >&6
11743else
11744  case $ac_pt_PKG_CONFIG in
11745  [\\/]* | ?:[\\/]*)
11746  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11747  ;;
11748  *)
11749  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11750for as_dir in $PATH
11751do
11752  IFS=$as_save_IFS
11753  test -z "$as_dir" && as_dir=.
11754    for ac_exec_ext in '' $ac_executable_extensions; do
11755  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11756    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11757    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11758    break 2
11759  fi
11760done
11761  done
11762IFS=$as_save_IFS
11763
11764  ;;
11765esac
11766fi
11767ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11768if test -n "$ac_pt_PKG_CONFIG"; then
11769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11770$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11771else
11772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11773$as_echo "no" >&6; }
11774fi
11775
11776  if test "x$ac_pt_PKG_CONFIG" = x; then
11777    PKG_CONFIG=""
11778  else
11779    case $cross_compiling:$ac_tool_warned in
11780yes:)
11781{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11782$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11783ac_tool_warned=yes ;;
11784esac
11785    PKG_CONFIG=$ac_pt_PKG_CONFIG
11786  fi
11787else
11788  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11789fi
11790
11791fi
11792if test -n "$PKG_CONFIG"; then
11793	_pkg_min_version=0.9.0
11794	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11795$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11796	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11797		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11798$as_echo "yes" >&6; }
11799	else
11800		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11801$as_echo "no" >&6; }
11802		PKG_CONFIG=""
11803	fi
11804fi
11805
11806
11807
11808
11809
11810# Check whether --enable-selective-werror was given.
11811if test "${enable_selective_werror+set}" = set; then :
11812  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11813else
11814  SELECTIVE_WERROR=yes
11815fi
11816
11817
11818
11819
11820
11821# -v is too short to test reliably with XORG_TESTSET_CFLAG
11822if test "x$SUNCC" = "xyes"; then
11823    BASE_CFLAGS="-v"
11824else
11825    BASE_CFLAGS=""
11826fi
11827
11828# This chunk of warnings were those that existed in the legacy CWARNFLAGS
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842xorg_testset_save_CFLAGS="$CFLAGS"
11843
11844if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11845	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11846	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11847$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11848if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11849  $as_echo_n "(cached) " >&6
11850else
11851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11852/* end confdefs.h.  */
11853int i;
11854_ACEOF
11855if ac_fn_c_try_compile "$LINENO"; then :
11856  xorg_cv_cc_flag_unknown_warning_option=yes
11857else
11858  xorg_cv_cc_flag_unknown_warning_option=no
11859fi
11860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11861fi
11862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11863$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11864	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11865	CFLAGS="$xorg_testset_save_CFLAGS"
11866fi
11867
11868if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11869	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11870		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11871	fi
11872	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11873	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11874$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11875if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11876  $as_echo_n "(cached) " >&6
11877else
11878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11879/* end confdefs.h.  */
11880int i;
11881_ACEOF
11882if ac_fn_c_try_compile "$LINENO"; then :
11883  xorg_cv_cc_flag_unused_command_line_argument=yes
11884else
11885  xorg_cv_cc_flag_unused_command_line_argument=no
11886fi
11887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11888fi
11889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11890$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11891	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11892	CFLAGS="$xorg_testset_save_CFLAGS"
11893fi
11894
11895found="no"
11896
11897	if test $found = "no" ; then
11898		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11899			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11900		fi
11901
11902		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11903			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11904		fi
11905
11906		CFLAGS="$CFLAGS -Wall"
11907
11908		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
11909$as_echo_n "checking if $CC supports -Wall... " >&6; }
11910		cacheid=xorg_cv_cc_flag__Wall
11911		if eval \${$cacheid+:} false; then :
11912  $as_echo_n "(cached) " >&6
11913else
11914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11915/* end confdefs.h.  */
11916int i;
11917int
11918main ()
11919{
11920
11921  ;
11922  return 0;
11923}
11924_ACEOF
11925if ac_fn_c_try_link "$LINENO"; then :
11926  eval $cacheid=yes
11927else
11928  eval $cacheid=no
11929fi
11930rm -f core conftest.err conftest.$ac_objext \
11931    conftest$ac_exeext conftest.$ac_ext
11932fi
11933
11934
11935		CFLAGS="$xorg_testset_save_CFLAGS"
11936
11937		eval supported=\$$cacheid
11938		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11939$as_echo "$supported" >&6; }
11940		if test "$supported" = "yes" ; then
11941			BASE_CFLAGS="$BASE_CFLAGS -Wall"
11942			found="yes"
11943		fi
11944	fi
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960xorg_testset_save_CFLAGS="$CFLAGS"
11961
11962if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11963	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11964	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11965$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11966if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11967  $as_echo_n "(cached) " >&6
11968else
11969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11970/* end confdefs.h.  */
11971int i;
11972_ACEOF
11973if ac_fn_c_try_compile "$LINENO"; then :
11974  xorg_cv_cc_flag_unknown_warning_option=yes
11975else
11976  xorg_cv_cc_flag_unknown_warning_option=no
11977fi
11978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11979fi
11980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11981$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11982	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11983	CFLAGS="$xorg_testset_save_CFLAGS"
11984fi
11985
11986if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11987	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11988		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11989	fi
11990	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11991	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11992$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11993if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11994  $as_echo_n "(cached) " >&6
11995else
11996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11997/* end confdefs.h.  */
11998int i;
11999_ACEOF
12000if ac_fn_c_try_compile "$LINENO"; then :
12001  xorg_cv_cc_flag_unused_command_line_argument=yes
12002else
12003  xorg_cv_cc_flag_unused_command_line_argument=no
12004fi
12005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12006fi
12007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12008$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12009	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12010	CFLAGS="$xorg_testset_save_CFLAGS"
12011fi
12012
12013found="no"
12014
12015	if test $found = "no" ; then
12016		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12017			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12018		fi
12019
12020		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12021			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12022		fi
12023
12024		CFLAGS="$CFLAGS -Wpointer-arith"
12025
12026		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12027$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12028		cacheid=xorg_cv_cc_flag__Wpointer_arith
12029		if eval \${$cacheid+:} false; then :
12030  $as_echo_n "(cached) " >&6
12031else
12032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12033/* end confdefs.h.  */
12034int i;
12035int
12036main ()
12037{
12038
12039  ;
12040  return 0;
12041}
12042_ACEOF
12043if ac_fn_c_try_link "$LINENO"; then :
12044  eval $cacheid=yes
12045else
12046  eval $cacheid=no
12047fi
12048rm -f core conftest.err conftest.$ac_objext \
12049    conftest$ac_exeext conftest.$ac_ext
12050fi
12051
12052
12053		CFLAGS="$xorg_testset_save_CFLAGS"
12054
12055		eval supported=\$$cacheid
12056		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12057$as_echo "$supported" >&6; }
12058		if test "$supported" = "yes" ; then
12059			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12060			found="yes"
12061		fi
12062	fi
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078xorg_testset_save_CFLAGS="$CFLAGS"
12079
12080if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12081	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12082	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12083$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12084if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12085  $as_echo_n "(cached) " >&6
12086else
12087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12088/* end confdefs.h.  */
12089int i;
12090_ACEOF
12091if ac_fn_c_try_compile "$LINENO"; then :
12092  xorg_cv_cc_flag_unknown_warning_option=yes
12093else
12094  xorg_cv_cc_flag_unknown_warning_option=no
12095fi
12096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12097fi
12098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12099$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12100	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12101	CFLAGS="$xorg_testset_save_CFLAGS"
12102fi
12103
12104if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12105	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12106		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12107	fi
12108	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12109	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12110$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12111if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12112  $as_echo_n "(cached) " >&6
12113else
12114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12115/* end confdefs.h.  */
12116int i;
12117_ACEOF
12118if ac_fn_c_try_compile "$LINENO"; then :
12119  xorg_cv_cc_flag_unused_command_line_argument=yes
12120else
12121  xorg_cv_cc_flag_unused_command_line_argument=no
12122fi
12123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12124fi
12125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12126$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12127	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12128	CFLAGS="$xorg_testset_save_CFLAGS"
12129fi
12130
12131found="no"
12132
12133	if test $found = "no" ; then
12134		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12135			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12136		fi
12137
12138		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12139			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12140		fi
12141
12142		CFLAGS="$CFLAGS -Wmissing-declarations"
12143
12144		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12145$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12146		cacheid=xorg_cv_cc_flag__Wmissing_declarations
12147		if eval \${$cacheid+:} false; then :
12148  $as_echo_n "(cached) " >&6
12149else
12150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12151/* end confdefs.h.  */
12152int i;
12153int
12154main ()
12155{
12156
12157  ;
12158  return 0;
12159}
12160_ACEOF
12161if ac_fn_c_try_link "$LINENO"; then :
12162  eval $cacheid=yes
12163else
12164  eval $cacheid=no
12165fi
12166rm -f core conftest.err conftest.$ac_objext \
12167    conftest$ac_exeext conftest.$ac_ext
12168fi
12169
12170
12171		CFLAGS="$xorg_testset_save_CFLAGS"
12172
12173		eval supported=\$$cacheid
12174		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12175$as_echo "$supported" >&6; }
12176		if test "$supported" = "yes" ; then
12177			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12178			found="yes"
12179		fi
12180	fi
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196xorg_testset_save_CFLAGS="$CFLAGS"
12197
12198if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12199	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12200	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12201$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12202if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12203  $as_echo_n "(cached) " >&6
12204else
12205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12206/* end confdefs.h.  */
12207int i;
12208_ACEOF
12209if ac_fn_c_try_compile "$LINENO"; then :
12210  xorg_cv_cc_flag_unknown_warning_option=yes
12211else
12212  xorg_cv_cc_flag_unknown_warning_option=no
12213fi
12214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12215fi
12216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12217$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12218	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12219	CFLAGS="$xorg_testset_save_CFLAGS"
12220fi
12221
12222if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12223	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12224		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12225	fi
12226	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12227	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12228$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12229if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12230  $as_echo_n "(cached) " >&6
12231else
12232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12233/* end confdefs.h.  */
12234int i;
12235_ACEOF
12236if ac_fn_c_try_compile "$LINENO"; then :
12237  xorg_cv_cc_flag_unused_command_line_argument=yes
12238else
12239  xorg_cv_cc_flag_unused_command_line_argument=no
12240fi
12241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12242fi
12243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12244$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12245	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12246	CFLAGS="$xorg_testset_save_CFLAGS"
12247fi
12248
12249found="no"
12250
12251	if test $found = "no" ; then
12252		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12253			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12254		fi
12255
12256		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12257			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12258		fi
12259
12260		CFLAGS="$CFLAGS -Wformat=2"
12261
12262		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12263$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12264		cacheid=xorg_cv_cc_flag__Wformat_2
12265		if eval \${$cacheid+:} false; then :
12266  $as_echo_n "(cached) " >&6
12267else
12268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12269/* end confdefs.h.  */
12270int i;
12271int
12272main ()
12273{
12274
12275  ;
12276  return 0;
12277}
12278_ACEOF
12279if ac_fn_c_try_link "$LINENO"; then :
12280  eval $cacheid=yes
12281else
12282  eval $cacheid=no
12283fi
12284rm -f core conftest.err conftest.$ac_objext \
12285    conftest$ac_exeext conftest.$ac_ext
12286fi
12287
12288
12289		CFLAGS="$xorg_testset_save_CFLAGS"
12290
12291		eval supported=\$$cacheid
12292		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12293$as_echo "$supported" >&6; }
12294		if test "$supported" = "yes" ; then
12295			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12296			found="yes"
12297		fi
12298	fi
12299
12300	if test $found = "no" ; then
12301		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12302			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12303		fi
12304
12305		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12306			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12307		fi
12308
12309		CFLAGS="$CFLAGS -Wformat"
12310
12311		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12312$as_echo_n "checking if $CC supports -Wformat... " >&6; }
12313		cacheid=xorg_cv_cc_flag__Wformat
12314		if eval \${$cacheid+:} false; then :
12315  $as_echo_n "(cached) " >&6
12316else
12317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12318/* end confdefs.h.  */
12319int i;
12320int
12321main ()
12322{
12323
12324  ;
12325  return 0;
12326}
12327_ACEOF
12328if ac_fn_c_try_link "$LINENO"; then :
12329  eval $cacheid=yes
12330else
12331  eval $cacheid=no
12332fi
12333rm -f core conftest.err conftest.$ac_objext \
12334    conftest$ac_exeext conftest.$ac_ext
12335fi
12336
12337
12338		CFLAGS="$xorg_testset_save_CFLAGS"
12339
12340		eval supported=\$$cacheid
12341		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12342$as_echo "$supported" >&6; }
12343		if test "$supported" = "yes" ; then
12344			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12345			found="yes"
12346		fi
12347	fi
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365xorg_testset_save_CFLAGS="$CFLAGS"
12366
12367if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12368	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12369	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12370$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12371if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12372  $as_echo_n "(cached) " >&6
12373else
12374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12375/* end confdefs.h.  */
12376int i;
12377_ACEOF
12378if ac_fn_c_try_compile "$LINENO"; then :
12379  xorg_cv_cc_flag_unknown_warning_option=yes
12380else
12381  xorg_cv_cc_flag_unknown_warning_option=no
12382fi
12383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12384fi
12385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12386$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12387	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12388	CFLAGS="$xorg_testset_save_CFLAGS"
12389fi
12390
12391if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12392	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12393		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12394	fi
12395	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12396	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12397$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12398if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12399  $as_echo_n "(cached) " >&6
12400else
12401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12402/* end confdefs.h.  */
12403int i;
12404_ACEOF
12405if ac_fn_c_try_compile "$LINENO"; then :
12406  xorg_cv_cc_flag_unused_command_line_argument=yes
12407else
12408  xorg_cv_cc_flag_unused_command_line_argument=no
12409fi
12410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12411fi
12412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12413$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12414	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12415	CFLAGS="$xorg_testset_save_CFLAGS"
12416fi
12417
12418found="no"
12419
12420	if test $found = "no" ; then
12421		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12422			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12423		fi
12424
12425		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12426			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12427		fi
12428
12429		CFLAGS="$CFLAGS -Wstrict-prototypes"
12430
12431		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12432$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12433		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12434		if eval \${$cacheid+:} false; then :
12435  $as_echo_n "(cached) " >&6
12436else
12437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12438/* end confdefs.h.  */
12439int i;
12440int
12441main ()
12442{
12443
12444  ;
12445  return 0;
12446}
12447_ACEOF
12448if ac_fn_c_try_link "$LINENO"; then :
12449  eval $cacheid=yes
12450else
12451  eval $cacheid=no
12452fi
12453rm -f core conftest.err conftest.$ac_objext \
12454    conftest$ac_exeext conftest.$ac_ext
12455fi
12456
12457
12458		CFLAGS="$xorg_testset_save_CFLAGS"
12459
12460		eval supported=\$$cacheid
12461		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12462$as_echo "$supported" >&6; }
12463		if test "$supported" = "yes" ; then
12464			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12465			found="yes"
12466		fi
12467	fi
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483xorg_testset_save_CFLAGS="$CFLAGS"
12484
12485if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12486	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12487	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12488$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12489if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12490  $as_echo_n "(cached) " >&6
12491else
12492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12493/* end confdefs.h.  */
12494int i;
12495_ACEOF
12496if ac_fn_c_try_compile "$LINENO"; then :
12497  xorg_cv_cc_flag_unknown_warning_option=yes
12498else
12499  xorg_cv_cc_flag_unknown_warning_option=no
12500fi
12501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12502fi
12503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12504$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12505	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12506	CFLAGS="$xorg_testset_save_CFLAGS"
12507fi
12508
12509if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12510	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12511		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12512	fi
12513	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12514	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12515$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12516if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12517  $as_echo_n "(cached) " >&6
12518else
12519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12520/* end confdefs.h.  */
12521int i;
12522_ACEOF
12523if ac_fn_c_try_compile "$LINENO"; then :
12524  xorg_cv_cc_flag_unused_command_line_argument=yes
12525else
12526  xorg_cv_cc_flag_unused_command_line_argument=no
12527fi
12528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12529fi
12530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12531$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12532	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12533	CFLAGS="$xorg_testset_save_CFLAGS"
12534fi
12535
12536found="no"
12537
12538	if test $found = "no" ; then
12539		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12540			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12541		fi
12542
12543		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12544			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12545		fi
12546
12547		CFLAGS="$CFLAGS -Wmissing-prototypes"
12548
12549		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12550$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12551		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12552		if eval \${$cacheid+:} false; then :
12553  $as_echo_n "(cached) " >&6
12554else
12555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12556/* end confdefs.h.  */
12557int i;
12558int
12559main ()
12560{
12561
12562  ;
12563  return 0;
12564}
12565_ACEOF
12566if ac_fn_c_try_link "$LINENO"; then :
12567  eval $cacheid=yes
12568else
12569  eval $cacheid=no
12570fi
12571rm -f core conftest.err conftest.$ac_objext \
12572    conftest$ac_exeext conftest.$ac_ext
12573fi
12574
12575
12576		CFLAGS="$xorg_testset_save_CFLAGS"
12577
12578		eval supported=\$$cacheid
12579		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12580$as_echo "$supported" >&6; }
12581		if test "$supported" = "yes" ; then
12582			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12583			found="yes"
12584		fi
12585	fi
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601xorg_testset_save_CFLAGS="$CFLAGS"
12602
12603if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12604	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12605	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12606$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12607if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12608  $as_echo_n "(cached) " >&6
12609else
12610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12611/* end confdefs.h.  */
12612int i;
12613_ACEOF
12614if ac_fn_c_try_compile "$LINENO"; then :
12615  xorg_cv_cc_flag_unknown_warning_option=yes
12616else
12617  xorg_cv_cc_flag_unknown_warning_option=no
12618fi
12619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12620fi
12621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12622$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12623	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12624	CFLAGS="$xorg_testset_save_CFLAGS"
12625fi
12626
12627if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12628	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12629		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12630	fi
12631	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12632	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12633$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12634if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12635  $as_echo_n "(cached) " >&6
12636else
12637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12638/* end confdefs.h.  */
12639int i;
12640_ACEOF
12641if ac_fn_c_try_compile "$LINENO"; then :
12642  xorg_cv_cc_flag_unused_command_line_argument=yes
12643else
12644  xorg_cv_cc_flag_unused_command_line_argument=no
12645fi
12646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12647fi
12648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12649$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12650	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12651	CFLAGS="$xorg_testset_save_CFLAGS"
12652fi
12653
12654found="no"
12655
12656	if test $found = "no" ; then
12657		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12658			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12659		fi
12660
12661		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12662			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12663		fi
12664
12665		CFLAGS="$CFLAGS -Wnested-externs"
12666
12667		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12668$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12669		cacheid=xorg_cv_cc_flag__Wnested_externs
12670		if eval \${$cacheid+:} false; then :
12671  $as_echo_n "(cached) " >&6
12672else
12673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12674/* end confdefs.h.  */
12675int i;
12676int
12677main ()
12678{
12679
12680  ;
12681  return 0;
12682}
12683_ACEOF
12684if ac_fn_c_try_link "$LINENO"; then :
12685  eval $cacheid=yes
12686else
12687  eval $cacheid=no
12688fi
12689rm -f core conftest.err conftest.$ac_objext \
12690    conftest$ac_exeext conftest.$ac_ext
12691fi
12692
12693
12694		CFLAGS="$xorg_testset_save_CFLAGS"
12695
12696		eval supported=\$$cacheid
12697		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12698$as_echo "$supported" >&6; }
12699		if test "$supported" = "yes" ; then
12700			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12701			found="yes"
12702		fi
12703	fi
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719xorg_testset_save_CFLAGS="$CFLAGS"
12720
12721if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12722	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12723	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12724$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12725if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12726  $as_echo_n "(cached) " >&6
12727else
12728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12729/* end confdefs.h.  */
12730int i;
12731_ACEOF
12732if ac_fn_c_try_compile "$LINENO"; then :
12733  xorg_cv_cc_flag_unknown_warning_option=yes
12734else
12735  xorg_cv_cc_flag_unknown_warning_option=no
12736fi
12737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12738fi
12739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12740$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12741	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12742	CFLAGS="$xorg_testset_save_CFLAGS"
12743fi
12744
12745if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12746	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12747		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12748	fi
12749	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12750	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12751$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12752if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12753  $as_echo_n "(cached) " >&6
12754else
12755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12756/* end confdefs.h.  */
12757int i;
12758_ACEOF
12759if ac_fn_c_try_compile "$LINENO"; then :
12760  xorg_cv_cc_flag_unused_command_line_argument=yes
12761else
12762  xorg_cv_cc_flag_unused_command_line_argument=no
12763fi
12764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12765fi
12766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12767$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12768	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12769	CFLAGS="$xorg_testset_save_CFLAGS"
12770fi
12771
12772found="no"
12773
12774	if test $found = "no" ; then
12775		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12776			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12777		fi
12778
12779		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12780			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12781		fi
12782
12783		CFLAGS="$CFLAGS -Wbad-function-cast"
12784
12785		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12786$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12787		cacheid=xorg_cv_cc_flag__Wbad_function_cast
12788		if eval \${$cacheid+:} false; then :
12789  $as_echo_n "(cached) " >&6
12790else
12791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12792/* end confdefs.h.  */
12793int i;
12794int
12795main ()
12796{
12797
12798  ;
12799  return 0;
12800}
12801_ACEOF
12802if ac_fn_c_try_link "$LINENO"; then :
12803  eval $cacheid=yes
12804else
12805  eval $cacheid=no
12806fi
12807rm -f core conftest.err conftest.$ac_objext \
12808    conftest$ac_exeext conftest.$ac_ext
12809fi
12810
12811
12812		CFLAGS="$xorg_testset_save_CFLAGS"
12813
12814		eval supported=\$$cacheid
12815		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12816$as_echo "$supported" >&6; }
12817		if test "$supported" = "yes" ; then
12818			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12819			found="yes"
12820		fi
12821	fi
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837xorg_testset_save_CFLAGS="$CFLAGS"
12838
12839if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12840	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12841	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12842$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12843if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12844  $as_echo_n "(cached) " >&6
12845else
12846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12847/* end confdefs.h.  */
12848int i;
12849_ACEOF
12850if ac_fn_c_try_compile "$LINENO"; then :
12851  xorg_cv_cc_flag_unknown_warning_option=yes
12852else
12853  xorg_cv_cc_flag_unknown_warning_option=no
12854fi
12855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12856fi
12857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12858$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12859	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12860	CFLAGS="$xorg_testset_save_CFLAGS"
12861fi
12862
12863if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12864	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12865		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12866	fi
12867	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12868	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12869$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12870if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12871  $as_echo_n "(cached) " >&6
12872else
12873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12874/* end confdefs.h.  */
12875int i;
12876_ACEOF
12877if ac_fn_c_try_compile "$LINENO"; then :
12878  xorg_cv_cc_flag_unused_command_line_argument=yes
12879else
12880  xorg_cv_cc_flag_unused_command_line_argument=no
12881fi
12882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12883fi
12884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12885$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12886	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12887	CFLAGS="$xorg_testset_save_CFLAGS"
12888fi
12889
12890found="no"
12891
12892	if test $found = "no" ; then
12893		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12894			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12895		fi
12896
12897		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12898			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12899		fi
12900
12901		CFLAGS="$CFLAGS -Wold-style-definition"
12902
12903		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12904$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12905		cacheid=xorg_cv_cc_flag__Wold_style_definition
12906		if eval \${$cacheid+:} false; then :
12907  $as_echo_n "(cached) " >&6
12908else
12909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12910/* end confdefs.h.  */
12911int i;
12912int
12913main ()
12914{
12915
12916  ;
12917  return 0;
12918}
12919_ACEOF
12920if ac_fn_c_try_link "$LINENO"; then :
12921  eval $cacheid=yes
12922else
12923  eval $cacheid=no
12924fi
12925rm -f core conftest.err conftest.$ac_objext \
12926    conftest$ac_exeext conftest.$ac_ext
12927fi
12928
12929
12930		CFLAGS="$xorg_testset_save_CFLAGS"
12931
12932		eval supported=\$$cacheid
12933		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12934$as_echo "$supported" >&6; }
12935		if test "$supported" = "yes" ; then
12936			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12937			found="yes"
12938		fi
12939	fi
12940
12941	if test $found = "no" ; then
12942		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12943			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12944		fi
12945
12946		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12947			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12948		fi
12949
12950		CFLAGS="$CFLAGS -fd"
12951
12952		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
12953$as_echo_n "checking if $CC supports -fd... " >&6; }
12954		cacheid=xorg_cv_cc_flag__fd
12955		if eval \${$cacheid+:} false; then :
12956  $as_echo_n "(cached) " >&6
12957else
12958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12959/* end confdefs.h.  */
12960int i;
12961int
12962main ()
12963{
12964
12965  ;
12966  return 0;
12967}
12968_ACEOF
12969if ac_fn_c_try_link "$LINENO"; then :
12970  eval $cacheid=yes
12971else
12972  eval $cacheid=no
12973fi
12974rm -f core conftest.err conftest.$ac_objext \
12975    conftest$ac_exeext conftest.$ac_ext
12976fi
12977
12978
12979		CFLAGS="$xorg_testset_save_CFLAGS"
12980
12981		eval supported=\$$cacheid
12982		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12983$as_echo "$supported" >&6; }
12984		if test "$supported" = "yes" ; then
12985			BASE_CFLAGS="$BASE_CFLAGS -fd"
12986			found="yes"
12987		fi
12988	fi
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004xorg_testset_save_CFLAGS="$CFLAGS"
13005
13006if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13007	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13008	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13009$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13010if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13011  $as_echo_n "(cached) " >&6
13012else
13013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13014/* end confdefs.h.  */
13015int i;
13016_ACEOF
13017if ac_fn_c_try_compile "$LINENO"; then :
13018  xorg_cv_cc_flag_unknown_warning_option=yes
13019else
13020  xorg_cv_cc_flag_unknown_warning_option=no
13021fi
13022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13023fi
13024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13025$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13026	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13027	CFLAGS="$xorg_testset_save_CFLAGS"
13028fi
13029
13030if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13031	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13032		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13033	fi
13034	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13035	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13036$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13037if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13038  $as_echo_n "(cached) " >&6
13039else
13040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13041/* end confdefs.h.  */
13042int i;
13043_ACEOF
13044if ac_fn_c_try_compile "$LINENO"; then :
13045  xorg_cv_cc_flag_unused_command_line_argument=yes
13046else
13047  xorg_cv_cc_flag_unused_command_line_argument=no
13048fi
13049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13050fi
13051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13052$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13053	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13054	CFLAGS="$xorg_testset_save_CFLAGS"
13055fi
13056
13057found="no"
13058
13059	if test $found = "no" ; then
13060		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13061			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13062		fi
13063
13064		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13065			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13066		fi
13067
13068		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13069
13070		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13071$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13072		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13073		if eval \${$cacheid+:} false; then :
13074  $as_echo_n "(cached) " >&6
13075else
13076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13077/* end confdefs.h.  */
13078int i;
13079int
13080main ()
13081{
13082
13083  ;
13084  return 0;
13085}
13086_ACEOF
13087if ac_fn_c_try_link "$LINENO"; then :
13088  eval $cacheid=yes
13089else
13090  eval $cacheid=no
13091fi
13092rm -f core conftest.err conftest.$ac_objext \
13093    conftest$ac_exeext conftest.$ac_ext
13094fi
13095
13096
13097		CFLAGS="$xorg_testset_save_CFLAGS"
13098
13099		eval supported=\$$cacheid
13100		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13101$as_echo "$supported" >&6; }
13102		if test "$supported" = "yes" ; then
13103			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13104			found="yes"
13105		fi
13106	fi
13107
13108
13109
13110
13111
13112# This chunk adds additional warnings that could catch undesired effects.
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126xorg_testset_save_CFLAGS="$CFLAGS"
13127
13128if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13129	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13130	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13131$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13132if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13133  $as_echo_n "(cached) " >&6
13134else
13135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13136/* end confdefs.h.  */
13137int i;
13138_ACEOF
13139if ac_fn_c_try_compile "$LINENO"; then :
13140  xorg_cv_cc_flag_unknown_warning_option=yes
13141else
13142  xorg_cv_cc_flag_unknown_warning_option=no
13143fi
13144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13145fi
13146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13147$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13148	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13149	CFLAGS="$xorg_testset_save_CFLAGS"
13150fi
13151
13152if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13153	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13154		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13155	fi
13156	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13157	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13158$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13159if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13160  $as_echo_n "(cached) " >&6
13161else
13162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13163/* end confdefs.h.  */
13164int i;
13165_ACEOF
13166if ac_fn_c_try_compile "$LINENO"; then :
13167  xorg_cv_cc_flag_unused_command_line_argument=yes
13168else
13169  xorg_cv_cc_flag_unused_command_line_argument=no
13170fi
13171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13172fi
13173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13174$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13175	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13176	CFLAGS="$xorg_testset_save_CFLAGS"
13177fi
13178
13179found="no"
13180
13181	if test $found = "no" ; then
13182		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13183			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13184		fi
13185
13186		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13187			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13188		fi
13189
13190		CFLAGS="$CFLAGS -Wunused"
13191
13192		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13193$as_echo_n "checking if $CC supports -Wunused... " >&6; }
13194		cacheid=xorg_cv_cc_flag__Wunused
13195		if eval \${$cacheid+:} false; then :
13196  $as_echo_n "(cached) " >&6
13197else
13198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13199/* end confdefs.h.  */
13200int i;
13201int
13202main ()
13203{
13204
13205  ;
13206  return 0;
13207}
13208_ACEOF
13209if ac_fn_c_try_link "$LINENO"; then :
13210  eval $cacheid=yes
13211else
13212  eval $cacheid=no
13213fi
13214rm -f core conftest.err conftest.$ac_objext \
13215    conftest$ac_exeext conftest.$ac_ext
13216fi
13217
13218
13219		CFLAGS="$xorg_testset_save_CFLAGS"
13220
13221		eval supported=\$$cacheid
13222		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13223$as_echo "$supported" >&6; }
13224		if test "$supported" = "yes" ; then
13225			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13226			found="yes"
13227		fi
13228	fi
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244xorg_testset_save_CFLAGS="$CFLAGS"
13245
13246if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13247	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13248	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13249$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13250if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13251  $as_echo_n "(cached) " >&6
13252else
13253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13254/* end confdefs.h.  */
13255int i;
13256_ACEOF
13257if ac_fn_c_try_compile "$LINENO"; then :
13258  xorg_cv_cc_flag_unknown_warning_option=yes
13259else
13260  xorg_cv_cc_flag_unknown_warning_option=no
13261fi
13262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13263fi
13264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13265$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13266	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13267	CFLAGS="$xorg_testset_save_CFLAGS"
13268fi
13269
13270if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13271	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13272		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13273	fi
13274	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13275	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13276$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13277if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13278  $as_echo_n "(cached) " >&6
13279else
13280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13281/* end confdefs.h.  */
13282int i;
13283_ACEOF
13284if ac_fn_c_try_compile "$LINENO"; then :
13285  xorg_cv_cc_flag_unused_command_line_argument=yes
13286else
13287  xorg_cv_cc_flag_unused_command_line_argument=no
13288fi
13289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13290fi
13291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13292$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13293	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13294	CFLAGS="$xorg_testset_save_CFLAGS"
13295fi
13296
13297found="no"
13298
13299	if test $found = "no" ; then
13300		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13301			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13302		fi
13303
13304		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13305			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13306		fi
13307
13308		CFLAGS="$CFLAGS -Wuninitialized"
13309
13310		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13311$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13312		cacheid=xorg_cv_cc_flag__Wuninitialized
13313		if eval \${$cacheid+:} false; then :
13314  $as_echo_n "(cached) " >&6
13315else
13316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13317/* end confdefs.h.  */
13318int i;
13319int
13320main ()
13321{
13322
13323  ;
13324  return 0;
13325}
13326_ACEOF
13327if ac_fn_c_try_link "$LINENO"; then :
13328  eval $cacheid=yes
13329else
13330  eval $cacheid=no
13331fi
13332rm -f core conftest.err conftest.$ac_objext \
13333    conftest$ac_exeext conftest.$ac_ext
13334fi
13335
13336
13337		CFLAGS="$xorg_testset_save_CFLAGS"
13338
13339		eval supported=\$$cacheid
13340		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13341$as_echo "$supported" >&6; }
13342		if test "$supported" = "yes" ; then
13343			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13344			found="yes"
13345		fi
13346	fi
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362xorg_testset_save_CFLAGS="$CFLAGS"
13363
13364if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13365	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13366	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13367$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13368if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13369  $as_echo_n "(cached) " >&6
13370else
13371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13372/* end confdefs.h.  */
13373int i;
13374_ACEOF
13375if ac_fn_c_try_compile "$LINENO"; then :
13376  xorg_cv_cc_flag_unknown_warning_option=yes
13377else
13378  xorg_cv_cc_flag_unknown_warning_option=no
13379fi
13380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13381fi
13382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13383$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13384	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13385	CFLAGS="$xorg_testset_save_CFLAGS"
13386fi
13387
13388if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13389	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13390		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13391	fi
13392	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13393	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13394$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13395if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13396  $as_echo_n "(cached) " >&6
13397else
13398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13399/* end confdefs.h.  */
13400int i;
13401_ACEOF
13402if ac_fn_c_try_compile "$LINENO"; then :
13403  xorg_cv_cc_flag_unused_command_line_argument=yes
13404else
13405  xorg_cv_cc_flag_unused_command_line_argument=no
13406fi
13407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13408fi
13409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13410$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13411	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13412	CFLAGS="$xorg_testset_save_CFLAGS"
13413fi
13414
13415found="no"
13416
13417	if test $found = "no" ; then
13418		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13419			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13420		fi
13421
13422		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13423			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13424		fi
13425
13426		CFLAGS="$CFLAGS -Wshadow"
13427
13428		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13429$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13430		cacheid=xorg_cv_cc_flag__Wshadow
13431		if eval \${$cacheid+:} false; then :
13432  $as_echo_n "(cached) " >&6
13433else
13434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13435/* end confdefs.h.  */
13436int i;
13437int
13438main ()
13439{
13440
13441  ;
13442  return 0;
13443}
13444_ACEOF
13445if ac_fn_c_try_link "$LINENO"; then :
13446  eval $cacheid=yes
13447else
13448  eval $cacheid=no
13449fi
13450rm -f core conftest.err conftest.$ac_objext \
13451    conftest$ac_exeext conftest.$ac_ext
13452fi
13453
13454
13455		CFLAGS="$xorg_testset_save_CFLAGS"
13456
13457		eval supported=\$$cacheid
13458		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13459$as_echo "$supported" >&6; }
13460		if test "$supported" = "yes" ; then
13461			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13462			found="yes"
13463		fi
13464	fi
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480xorg_testset_save_CFLAGS="$CFLAGS"
13481
13482if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13483	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13484	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13485$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13486if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13487  $as_echo_n "(cached) " >&6
13488else
13489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13490/* end confdefs.h.  */
13491int i;
13492_ACEOF
13493if ac_fn_c_try_compile "$LINENO"; then :
13494  xorg_cv_cc_flag_unknown_warning_option=yes
13495else
13496  xorg_cv_cc_flag_unknown_warning_option=no
13497fi
13498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13499fi
13500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13501$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13502	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13503	CFLAGS="$xorg_testset_save_CFLAGS"
13504fi
13505
13506if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13507	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13508		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13509	fi
13510	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13511	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13512$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13513if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13514  $as_echo_n "(cached) " >&6
13515else
13516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13517/* end confdefs.h.  */
13518int i;
13519_ACEOF
13520if ac_fn_c_try_compile "$LINENO"; then :
13521  xorg_cv_cc_flag_unused_command_line_argument=yes
13522else
13523  xorg_cv_cc_flag_unused_command_line_argument=no
13524fi
13525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13526fi
13527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13528$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13529	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13530	CFLAGS="$xorg_testset_save_CFLAGS"
13531fi
13532
13533found="no"
13534
13535	if test $found = "no" ; then
13536		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13537			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13538		fi
13539
13540		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13541			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13542		fi
13543
13544		CFLAGS="$CFLAGS -Wmissing-noreturn"
13545
13546		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13547$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13548		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13549		if eval \${$cacheid+:} false; then :
13550  $as_echo_n "(cached) " >&6
13551else
13552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13553/* end confdefs.h.  */
13554int i;
13555int
13556main ()
13557{
13558
13559  ;
13560  return 0;
13561}
13562_ACEOF
13563if ac_fn_c_try_link "$LINENO"; then :
13564  eval $cacheid=yes
13565else
13566  eval $cacheid=no
13567fi
13568rm -f core conftest.err conftest.$ac_objext \
13569    conftest$ac_exeext conftest.$ac_ext
13570fi
13571
13572
13573		CFLAGS="$xorg_testset_save_CFLAGS"
13574
13575		eval supported=\$$cacheid
13576		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13577$as_echo "$supported" >&6; }
13578		if test "$supported" = "yes" ; then
13579			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13580			found="yes"
13581		fi
13582	fi
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598xorg_testset_save_CFLAGS="$CFLAGS"
13599
13600if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13601	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13602	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13603$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13604if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13605  $as_echo_n "(cached) " >&6
13606else
13607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13608/* end confdefs.h.  */
13609int i;
13610_ACEOF
13611if ac_fn_c_try_compile "$LINENO"; then :
13612  xorg_cv_cc_flag_unknown_warning_option=yes
13613else
13614  xorg_cv_cc_flag_unknown_warning_option=no
13615fi
13616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13617fi
13618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13619$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13620	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13621	CFLAGS="$xorg_testset_save_CFLAGS"
13622fi
13623
13624if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13625	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13626		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13627	fi
13628	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13629	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13630$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13631if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13632  $as_echo_n "(cached) " >&6
13633else
13634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13635/* end confdefs.h.  */
13636int i;
13637_ACEOF
13638if ac_fn_c_try_compile "$LINENO"; then :
13639  xorg_cv_cc_flag_unused_command_line_argument=yes
13640else
13641  xorg_cv_cc_flag_unused_command_line_argument=no
13642fi
13643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13644fi
13645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13646$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13647	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13648	CFLAGS="$xorg_testset_save_CFLAGS"
13649fi
13650
13651found="no"
13652
13653	if test $found = "no" ; then
13654		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13655			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13656		fi
13657
13658		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13659			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13660		fi
13661
13662		CFLAGS="$CFLAGS -Wmissing-format-attribute"
13663
13664		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13665$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13666		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
13667		if eval \${$cacheid+:} false; then :
13668  $as_echo_n "(cached) " >&6
13669else
13670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13671/* end confdefs.h.  */
13672int i;
13673int
13674main ()
13675{
13676
13677  ;
13678  return 0;
13679}
13680_ACEOF
13681if ac_fn_c_try_link "$LINENO"; then :
13682  eval $cacheid=yes
13683else
13684  eval $cacheid=no
13685fi
13686rm -f core conftest.err conftest.$ac_objext \
13687    conftest$ac_exeext conftest.$ac_ext
13688fi
13689
13690
13691		CFLAGS="$xorg_testset_save_CFLAGS"
13692
13693		eval supported=\$$cacheid
13694		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13695$as_echo "$supported" >&6; }
13696		if test "$supported" = "yes" ; then
13697			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13698			found="yes"
13699		fi
13700	fi
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716xorg_testset_save_CFLAGS="$CFLAGS"
13717
13718if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13719	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13720	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13721$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13722if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13723  $as_echo_n "(cached) " >&6
13724else
13725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13726/* end confdefs.h.  */
13727int i;
13728_ACEOF
13729if ac_fn_c_try_compile "$LINENO"; then :
13730  xorg_cv_cc_flag_unknown_warning_option=yes
13731else
13732  xorg_cv_cc_flag_unknown_warning_option=no
13733fi
13734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13735fi
13736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13737$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13738	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13739	CFLAGS="$xorg_testset_save_CFLAGS"
13740fi
13741
13742if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13743	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13744		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13745	fi
13746	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13747	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13748$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13749if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13750  $as_echo_n "(cached) " >&6
13751else
13752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13753/* end confdefs.h.  */
13754int i;
13755_ACEOF
13756if ac_fn_c_try_compile "$LINENO"; then :
13757  xorg_cv_cc_flag_unused_command_line_argument=yes
13758else
13759  xorg_cv_cc_flag_unused_command_line_argument=no
13760fi
13761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13762fi
13763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13764$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13765	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13766	CFLAGS="$xorg_testset_save_CFLAGS"
13767fi
13768
13769found="no"
13770
13771	if test $found = "no" ; then
13772		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13773			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13774		fi
13775
13776		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13777			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13778		fi
13779
13780		CFLAGS="$CFLAGS -Wredundant-decls"
13781
13782		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13783$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13784		cacheid=xorg_cv_cc_flag__Wredundant_decls
13785		if eval \${$cacheid+:} false; then :
13786  $as_echo_n "(cached) " >&6
13787else
13788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13789/* end confdefs.h.  */
13790int i;
13791int
13792main ()
13793{
13794
13795  ;
13796  return 0;
13797}
13798_ACEOF
13799if ac_fn_c_try_link "$LINENO"; then :
13800  eval $cacheid=yes
13801else
13802  eval $cacheid=no
13803fi
13804rm -f core conftest.err conftest.$ac_objext \
13805    conftest$ac_exeext conftest.$ac_ext
13806fi
13807
13808
13809		CFLAGS="$xorg_testset_save_CFLAGS"
13810
13811		eval supported=\$$cacheid
13812		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13813$as_echo "$supported" >&6; }
13814		if test "$supported" = "yes" ; then
13815			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13816			found="yes"
13817		fi
13818	fi
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834xorg_testset_save_CFLAGS="$CFLAGS"
13835
13836if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13837	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13838	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13839$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13840if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13841  $as_echo_n "(cached) " >&6
13842else
13843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13844/* end confdefs.h.  */
13845int i;
13846_ACEOF
13847if ac_fn_c_try_compile "$LINENO"; then :
13848  xorg_cv_cc_flag_unknown_warning_option=yes
13849else
13850  xorg_cv_cc_flag_unknown_warning_option=no
13851fi
13852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13853fi
13854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13855$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13856	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13857	CFLAGS="$xorg_testset_save_CFLAGS"
13858fi
13859
13860if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13861	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13862		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13863	fi
13864	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13865	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13866$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13867if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13868  $as_echo_n "(cached) " >&6
13869else
13870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13871/* end confdefs.h.  */
13872int i;
13873_ACEOF
13874if ac_fn_c_try_compile "$LINENO"; then :
13875  xorg_cv_cc_flag_unused_command_line_argument=yes
13876else
13877  xorg_cv_cc_flag_unused_command_line_argument=no
13878fi
13879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13880fi
13881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13882$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13883	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13884	CFLAGS="$xorg_testset_save_CFLAGS"
13885fi
13886
13887found="no"
13888
13889	if test $found = "no" ; then
13890		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13891			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13892		fi
13893
13894		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13895			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13896		fi
13897
13898		CFLAGS="$CFLAGS -Wlogical-op"
13899
13900		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
13901$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
13902		cacheid=xorg_cv_cc_flag__Wlogical_op
13903		if eval \${$cacheid+:} false; then :
13904  $as_echo_n "(cached) " >&6
13905else
13906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13907/* end confdefs.h.  */
13908int i;
13909int
13910main ()
13911{
13912
13913  ;
13914  return 0;
13915}
13916_ACEOF
13917if ac_fn_c_try_link "$LINENO"; then :
13918  eval $cacheid=yes
13919else
13920  eval $cacheid=no
13921fi
13922rm -f core conftest.err conftest.$ac_objext \
13923    conftest$ac_exeext conftest.$ac_ext
13924fi
13925
13926
13927		CFLAGS="$xorg_testset_save_CFLAGS"
13928
13929		eval supported=\$$cacheid
13930		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13931$as_echo "$supported" >&6; }
13932		if test "$supported" = "yes" ; then
13933			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
13934			found="yes"
13935		fi
13936	fi
13937
13938
13939
13940# These are currently disabled because they are noisy.  They will be enabled
13941# in the future once the codebase is sufficiently modernized to silence
13942# them.  For now, I don't want them to drown out the other warnings.
13943# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13944# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13945# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
13946
13947# Turn some warnings into errors, so we don't accidently get successful builds
13948# when there are problems that should be fixed.
13949
13950if test "x$SELECTIVE_WERROR" = "xyes" ; then
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964xorg_testset_save_CFLAGS="$CFLAGS"
13965
13966if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13967	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13968	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13969$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13970if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13971  $as_echo_n "(cached) " >&6
13972else
13973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13974/* end confdefs.h.  */
13975int i;
13976_ACEOF
13977if ac_fn_c_try_compile "$LINENO"; then :
13978  xorg_cv_cc_flag_unknown_warning_option=yes
13979else
13980  xorg_cv_cc_flag_unknown_warning_option=no
13981fi
13982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13983fi
13984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13985$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13986	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13987	CFLAGS="$xorg_testset_save_CFLAGS"
13988fi
13989
13990if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13991	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13992		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13993	fi
13994	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13995	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13996$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13997if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13998  $as_echo_n "(cached) " >&6
13999else
14000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14001/* end confdefs.h.  */
14002int i;
14003_ACEOF
14004if ac_fn_c_try_compile "$LINENO"; then :
14005  xorg_cv_cc_flag_unused_command_line_argument=yes
14006else
14007  xorg_cv_cc_flag_unused_command_line_argument=no
14008fi
14009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14010fi
14011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14012$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14013	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14014	CFLAGS="$xorg_testset_save_CFLAGS"
14015fi
14016
14017found="no"
14018
14019	if test $found = "no" ; then
14020		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14021			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14022		fi
14023
14024		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14025			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14026		fi
14027
14028		CFLAGS="$CFLAGS -Werror=implicit"
14029
14030		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14031$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14032		cacheid=xorg_cv_cc_flag__Werror_implicit
14033		if eval \${$cacheid+:} false; then :
14034  $as_echo_n "(cached) " >&6
14035else
14036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14037/* end confdefs.h.  */
14038int i;
14039int
14040main ()
14041{
14042
14043  ;
14044  return 0;
14045}
14046_ACEOF
14047if ac_fn_c_try_link "$LINENO"; then :
14048  eval $cacheid=yes
14049else
14050  eval $cacheid=no
14051fi
14052rm -f core conftest.err conftest.$ac_objext \
14053    conftest$ac_exeext conftest.$ac_ext
14054fi
14055
14056
14057		CFLAGS="$xorg_testset_save_CFLAGS"
14058
14059		eval supported=\$$cacheid
14060		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14061$as_echo "$supported" >&6; }
14062		if test "$supported" = "yes" ; then
14063			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14064			found="yes"
14065		fi
14066	fi
14067
14068	if test $found = "no" ; then
14069		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14070			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14071		fi
14072
14073		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14074			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14075		fi
14076
14077		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14078
14079		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14080$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14081		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14082		if eval \${$cacheid+:} false; then :
14083  $as_echo_n "(cached) " >&6
14084else
14085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14086/* end confdefs.h.  */
14087int i;
14088int
14089main ()
14090{
14091
14092  ;
14093  return 0;
14094}
14095_ACEOF
14096if ac_fn_c_try_link "$LINENO"; then :
14097  eval $cacheid=yes
14098else
14099  eval $cacheid=no
14100fi
14101rm -f core conftest.err conftest.$ac_objext \
14102    conftest$ac_exeext conftest.$ac_ext
14103fi
14104
14105
14106		CFLAGS="$xorg_testset_save_CFLAGS"
14107
14108		eval supported=\$$cacheid
14109		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14110$as_echo "$supported" >&6; }
14111		if test "$supported" = "yes" ; then
14112			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14113			found="yes"
14114		fi
14115	fi
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131xorg_testset_save_CFLAGS="$CFLAGS"
14132
14133if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14134	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14135	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14136$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14137if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14138  $as_echo_n "(cached) " >&6
14139else
14140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14141/* end confdefs.h.  */
14142int i;
14143_ACEOF
14144if ac_fn_c_try_compile "$LINENO"; then :
14145  xorg_cv_cc_flag_unknown_warning_option=yes
14146else
14147  xorg_cv_cc_flag_unknown_warning_option=no
14148fi
14149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14150fi
14151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14152$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14153	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14154	CFLAGS="$xorg_testset_save_CFLAGS"
14155fi
14156
14157if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14158	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14159		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14160	fi
14161	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14162	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14163$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14164if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14165  $as_echo_n "(cached) " >&6
14166else
14167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14168/* end confdefs.h.  */
14169int i;
14170_ACEOF
14171if ac_fn_c_try_compile "$LINENO"; then :
14172  xorg_cv_cc_flag_unused_command_line_argument=yes
14173else
14174  xorg_cv_cc_flag_unused_command_line_argument=no
14175fi
14176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14177fi
14178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14179$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14180	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14181	CFLAGS="$xorg_testset_save_CFLAGS"
14182fi
14183
14184found="no"
14185
14186	if test $found = "no" ; then
14187		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14188			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14189		fi
14190
14191		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14192			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14193		fi
14194
14195		CFLAGS="$CFLAGS -Werror=nonnull"
14196
14197		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14198$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14199		cacheid=xorg_cv_cc_flag__Werror_nonnull
14200		if eval \${$cacheid+:} false; then :
14201  $as_echo_n "(cached) " >&6
14202else
14203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14204/* end confdefs.h.  */
14205int i;
14206int
14207main ()
14208{
14209
14210  ;
14211  return 0;
14212}
14213_ACEOF
14214if ac_fn_c_try_link "$LINENO"; then :
14215  eval $cacheid=yes
14216else
14217  eval $cacheid=no
14218fi
14219rm -f core conftest.err conftest.$ac_objext \
14220    conftest$ac_exeext conftest.$ac_ext
14221fi
14222
14223
14224		CFLAGS="$xorg_testset_save_CFLAGS"
14225
14226		eval supported=\$$cacheid
14227		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14228$as_echo "$supported" >&6; }
14229		if test "$supported" = "yes" ; then
14230			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14231			found="yes"
14232		fi
14233	fi
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249xorg_testset_save_CFLAGS="$CFLAGS"
14250
14251if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14252	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14253	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14254$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14255if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14256  $as_echo_n "(cached) " >&6
14257else
14258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14259/* end confdefs.h.  */
14260int i;
14261_ACEOF
14262if ac_fn_c_try_compile "$LINENO"; then :
14263  xorg_cv_cc_flag_unknown_warning_option=yes
14264else
14265  xorg_cv_cc_flag_unknown_warning_option=no
14266fi
14267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14268fi
14269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14270$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14271	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14272	CFLAGS="$xorg_testset_save_CFLAGS"
14273fi
14274
14275if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14276	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14277		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14278	fi
14279	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14280	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14281$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14282if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14283  $as_echo_n "(cached) " >&6
14284else
14285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14286/* end confdefs.h.  */
14287int i;
14288_ACEOF
14289if ac_fn_c_try_compile "$LINENO"; then :
14290  xorg_cv_cc_flag_unused_command_line_argument=yes
14291else
14292  xorg_cv_cc_flag_unused_command_line_argument=no
14293fi
14294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14295fi
14296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14297$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14298	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14299	CFLAGS="$xorg_testset_save_CFLAGS"
14300fi
14301
14302found="no"
14303
14304	if test $found = "no" ; then
14305		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14306			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14307		fi
14308
14309		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14310			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14311		fi
14312
14313		CFLAGS="$CFLAGS -Werror=init-self"
14314
14315		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14316$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14317		cacheid=xorg_cv_cc_flag__Werror_init_self
14318		if eval \${$cacheid+:} false; then :
14319  $as_echo_n "(cached) " >&6
14320else
14321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14322/* end confdefs.h.  */
14323int i;
14324int
14325main ()
14326{
14327
14328  ;
14329  return 0;
14330}
14331_ACEOF
14332if ac_fn_c_try_link "$LINENO"; then :
14333  eval $cacheid=yes
14334else
14335  eval $cacheid=no
14336fi
14337rm -f core conftest.err conftest.$ac_objext \
14338    conftest$ac_exeext conftest.$ac_ext
14339fi
14340
14341
14342		CFLAGS="$xorg_testset_save_CFLAGS"
14343
14344		eval supported=\$$cacheid
14345		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14346$as_echo "$supported" >&6; }
14347		if test "$supported" = "yes" ; then
14348			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14349			found="yes"
14350		fi
14351	fi
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367xorg_testset_save_CFLAGS="$CFLAGS"
14368
14369if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14370	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14371	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14372$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14373if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14374  $as_echo_n "(cached) " >&6
14375else
14376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14377/* end confdefs.h.  */
14378int i;
14379_ACEOF
14380if ac_fn_c_try_compile "$LINENO"; then :
14381  xorg_cv_cc_flag_unknown_warning_option=yes
14382else
14383  xorg_cv_cc_flag_unknown_warning_option=no
14384fi
14385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14386fi
14387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14388$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14389	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14390	CFLAGS="$xorg_testset_save_CFLAGS"
14391fi
14392
14393if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14394	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14395		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14396	fi
14397	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14398	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14399$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14400if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14401  $as_echo_n "(cached) " >&6
14402else
14403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14404/* end confdefs.h.  */
14405int i;
14406_ACEOF
14407if ac_fn_c_try_compile "$LINENO"; then :
14408  xorg_cv_cc_flag_unused_command_line_argument=yes
14409else
14410  xorg_cv_cc_flag_unused_command_line_argument=no
14411fi
14412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14413fi
14414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14415$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14416	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14417	CFLAGS="$xorg_testset_save_CFLAGS"
14418fi
14419
14420found="no"
14421
14422	if test $found = "no" ; then
14423		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14424			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14425		fi
14426
14427		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14428			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14429		fi
14430
14431		CFLAGS="$CFLAGS -Werror=main"
14432
14433		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14434$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14435		cacheid=xorg_cv_cc_flag__Werror_main
14436		if eval \${$cacheid+:} false; then :
14437  $as_echo_n "(cached) " >&6
14438else
14439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14440/* end confdefs.h.  */
14441int i;
14442int
14443main ()
14444{
14445
14446  ;
14447  return 0;
14448}
14449_ACEOF
14450if ac_fn_c_try_link "$LINENO"; then :
14451  eval $cacheid=yes
14452else
14453  eval $cacheid=no
14454fi
14455rm -f core conftest.err conftest.$ac_objext \
14456    conftest$ac_exeext conftest.$ac_ext
14457fi
14458
14459
14460		CFLAGS="$xorg_testset_save_CFLAGS"
14461
14462		eval supported=\$$cacheid
14463		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14464$as_echo "$supported" >&6; }
14465		if test "$supported" = "yes" ; then
14466			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14467			found="yes"
14468		fi
14469	fi
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485xorg_testset_save_CFLAGS="$CFLAGS"
14486
14487if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14488	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14489	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14490$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14491if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14492  $as_echo_n "(cached) " >&6
14493else
14494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14495/* end confdefs.h.  */
14496int i;
14497_ACEOF
14498if ac_fn_c_try_compile "$LINENO"; then :
14499  xorg_cv_cc_flag_unknown_warning_option=yes
14500else
14501  xorg_cv_cc_flag_unknown_warning_option=no
14502fi
14503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14504fi
14505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14506$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14507	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14508	CFLAGS="$xorg_testset_save_CFLAGS"
14509fi
14510
14511if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14512	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14513		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14514	fi
14515	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14516	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14517$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14518if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14519  $as_echo_n "(cached) " >&6
14520else
14521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14522/* end confdefs.h.  */
14523int i;
14524_ACEOF
14525if ac_fn_c_try_compile "$LINENO"; then :
14526  xorg_cv_cc_flag_unused_command_line_argument=yes
14527else
14528  xorg_cv_cc_flag_unused_command_line_argument=no
14529fi
14530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14531fi
14532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14533$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14534	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14535	CFLAGS="$xorg_testset_save_CFLAGS"
14536fi
14537
14538found="no"
14539
14540	if test $found = "no" ; then
14541		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14542			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14543		fi
14544
14545		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14546			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14547		fi
14548
14549		CFLAGS="$CFLAGS -Werror=missing-braces"
14550
14551		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14552$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14553		cacheid=xorg_cv_cc_flag__Werror_missing_braces
14554		if eval \${$cacheid+:} false; then :
14555  $as_echo_n "(cached) " >&6
14556else
14557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14558/* end confdefs.h.  */
14559int i;
14560int
14561main ()
14562{
14563
14564  ;
14565  return 0;
14566}
14567_ACEOF
14568if ac_fn_c_try_link "$LINENO"; then :
14569  eval $cacheid=yes
14570else
14571  eval $cacheid=no
14572fi
14573rm -f core conftest.err conftest.$ac_objext \
14574    conftest$ac_exeext conftest.$ac_ext
14575fi
14576
14577
14578		CFLAGS="$xorg_testset_save_CFLAGS"
14579
14580		eval supported=\$$cacheid
14581		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14582$as_echo "$supported" >&6; }
14583		if test "$supported" = "yes" ; then
14584			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14585			found="yes"
14586		fi
14587	fi
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603xorg_testset_save_CFLAGS="$CFLAGS"
14604
14605if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14606	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14607	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14608$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14609if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14610  $as_echo_n "(cached) " >&6
14611else
14612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14613/* end confdefs.h.  */
14614int i;
14615_ACEOF
14616if ac_fn_c_try_compile "$LINENO"; then :
14617  xorg_cv_cc_flag_unknown_warning_option=yes
14618else
14619  xorg_cv_cc_flag_unknown_warning_option=no
14620fi
14621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14622fi
14623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14624$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14625	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14626	CFLAGS="$xorg_testset_save_CFLAGS"
14627fi
14628
14629if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14630	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14631		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14632	fi
14633	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14634	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14635$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14636if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14637  $as_echo_n "(cached) " >&6
14638else
14639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14640/* end confdefs.h.  */
14641int i;
14642_ACEOF
14643if ac_fn_c_try_compile "$LINENO"; then :
14644  xorg_cv_cc_flag_unused_command_line_argument=yes
14645else
14646  xorg_cv_cc_flag_unused_command_line_argument=no
14647fi
14648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14649fi
14650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14651$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14652	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14653	CFLAGS="$xorg_testset_save_CFLAGS"
14654fi
14655
14656found="no"
14657
14658	if test $found = "no" ; then
14659		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14660			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14661		fi
14662
14663		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14664			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14665		fi
14666
14667		CFLAGS="$CFLAGS -Werror=sequence-point"
14668
14669		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14670$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14671		cacheid=xorg_cv_cc_flag__Werror_sequence_point
14672		if eval \${$cacheid+:} false; then :
14673  $as_echo_n "(cached) " >&6
14674else
14675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14676/* end confdefs.h.  */
14677int i;
14678int
14679main ()
14680{
14681
14682  ;
14683  return 0;
14684}
14685_ACEOF
14686if ac_fn_c_try_link "$LINENO"; then :
14687  eval $cacheid=yes
14688else
14689  eval $cacheid=no
14690fi
14691rm -f core conftest.err conftest.$ac_objext \
14692    conftest$ac_exeext conftest.$ac_ext
14693fi
14694
14695
14696		CFLAGS="$xorg_testset_save_CFLAGS"
14697
14698		eval supported=\$$cacheid
14699		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14700$as_echo "$supported" >&6; }
14701		if test "$supported" = "yes" ; then
14702			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14703			found="yes"
14704		fi
14705	fi
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721xorg_testset_save_CFLAGS="$CFLAGS"
14722
14723if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14724	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14725	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14726$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14727if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14728  $as_echo_n "(cached) " >&6
14729else
14730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14731/* end confdefs.h.  */
14732int i;
14733_ACEOF
14734if ac_fn_c_try_compile "$LINENO"; then :
14735  xorg_cv_cc_flag_unknown_warning_option=yes
14736else
14737  xorg_cv_cc_flag_unknown_warning_option=no
14738fi
14739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14740fi
14741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14742$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14743	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14744	CFLAGS="$xorg_testset_save_CFLAGS"
14745fi
14746
14747if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14748	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14749		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14750	fi
14751	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14752	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14753$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14754if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14755  $as_echo_n "(cached) " >&6
14756else
14757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14758/* end confdefs.h.  */
14759int i;
14760_ACEOF
14761if ac_fn_c_try_compile "$LINENO"; then :
14762  xorg_cv_cc_flag_unused_command_line_argument=yes
14763else
14764  xorg_cv_cc_flag_unused_command_line_argument=no
14765fi
14766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14767fi
14768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14769$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14770	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14771	CFLAGS="$xorg_testset_save_CFLAGS"
14772fi
14773
14774found="no"
14775
14776	if test $found = "no" ; then
14777		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14778			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14779		fi
14780
14781		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14782			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14783		fi
14784
14785		CFLAGS="$CFLAGS -Werror=return-type"
14786
14787		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14788$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14789		cacheid=xorg_cv_cc_flag__Werror_return_type
14790		if eval \${$cacheid+:} false; then :
14791  $as_echo_n "(cached) " >&6
14792else
14793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14794/* end confdefs.h.  */
14795int i;
14796int
14797main ()
14798{
14799
14800  ;
14801  return 0;
14802}
14803_ACEOF
14804if ac_fn_c_try_link "$LINENO"; then :
14805  eval $cacheid=yes
14806else
14807  eval $cacheid=no
14808fi
14809rm -f core conftest.err conftest.$ac_objext \
14810    conftest$ac_exeext conftest.$ac_ext
14811fi
14812
14813
14814		CFLAGS="$xorg_testset_save_CFLAGS"
14815
14816		eval supported=\$$cacheid
14817		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14818$as_echo "$supported" >&6; }
14819		if test "$supported" = "yes" ; then
14820			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14821			found="yes"
14822		fi
14823	fi
14824
14825	if test $found = "no" ; then
14826		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14827			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14828		fi
14829
14830		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14831			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14832		fi
14833
14834		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14835
14836		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14837$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14838		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
14839		if eval \${$cacheid+:} false; then :
14840  $as_echo_n "(cached) " >&6
14841else
14842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14843/* end confdefs.h.  */
14844int i;
14845int
14846main ()
14847{
14848
14849  ;
14850  return 0;
14851}
14852_ACEOF
14853if ac_fn_c_try_link "$LINENO"; then :
14854  eval $cacheid=yes
14855else
14856  eval $cacheid=no
14857fi
14858rm -f core conftest.err conftest.$ac_objext \
14859    conftest$ac_exeext conftest.$ac_ext
14860fi
14861
14862
14863		CFLAGS="$xorg_testset_save_CFLAGS"
14864
14865		eval supported=\$$cacheid
14866		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14867$as_echo "$supported" >&6; }
14868		if test "$supported" = "yes" ; then
14869			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14870			found="yes"
14871		fi
14872	fi
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888xorg_testset_save_CFLAGS="$CFLAGS"
14889
14890if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14891	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14892	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14893$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14894if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14895  $as_echo_n "(cached) " >&6
14896else
14897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14898/* end confdefs.h.  */
14899int i;
14900_ACEOF
14901if ac_fn_c_try_compile "$LINENO"; then :
14902  xorg_cv_cc_flag_unknown_warning_option=yes
14903else
14904  xorg_cv_cc_flag_unknown_warning_option=no
14905fi
14906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14907fi
14908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14909$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14910	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14911	CFLAGS="$xorg_testset_save_CFLAGS"
14912fi
14913
14914if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14915	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14916		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14917	fi
14918	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14919	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14920$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14921if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14922  $as_echo_n "(cached) " >&6
14923else
14924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14925/* end confdefs.h.  */
14926int i;
14927_ACEOF
14928if ac_fn_c_try_compile "$LINENO"; then :
14929  xorg_cv_cc_flag_unused_command_line_argument=yes
14930else
14931  xorg_cv_cc_flag_unused_command_line_argument=no
14932fi
14933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14934fi
14935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14936$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14937	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14938	CFLAGS="$xorg_testset_save_CFLAGS"
14939fi
14940
14941found="no"
14942
14943	if test $found = "no" ; then
14944		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14945			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14946		fi
14947
14948		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14949			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14950		fi
14951
14952		CFLAGS="$CFLAGS -Werror=trigraphs"
14953
14954		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14955$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14956		cacheid=xorg_cv_cc_flag__Werror_trigraphs
14957		if eval \${$cacheid+:} false; then :
14958  $as_echo_n "(cached) " >&6
14959else
14960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14961/* end confdefs.h.  */
14962int i;
14963int
14964main ()
14965{
14966
14967  ;
14968  return 0;
14969}
14970_ACEOF
14971if ac_fn_c_try_link "$LINENO"; then :
14972  eval $cacheid=yes
14973else
14974  eval $cacheid=no
14975fi
14976rm -f core conftest.err conftest.$ac_objext \
14977    conftest$ac_exeext conftest.$ac_ext
14978fi
14979
14980
14981		CFLAGS="$xorg_testset_save_CFLAGS"
14982
14983		eval supported=\$$cacheid
14984		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14985$as_echo "$supported" >&6; }
14986		if test "$supported" = "yes" ; then
14987			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14988			found="yes"
14989		fi
14990	fi
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006xorg_testset_save_CFLAGS="$CFLAGS"
15007
15008if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15009	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15010	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15011$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15012if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15013  $as_echo_n "(cached) " >&6
15014else
15015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15016/* end confdefs.h.  */
15017int i;
15018_ACEOF
15019if ac_fn_c_try_compile "$LINENO"; then :
15020  xorg_cv_cc_flag_unknown_warning_option=yes
15021else
15022  xorg_cv_cc_flag_unknown_warning_option=no
15023fi
15024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15025fi
15026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15027$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15028	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15029	CFLAGS="$xorg_testset_save_CFLAGS"
15030fi
15031
15032if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15033	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15034		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15035	fi
15036	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15037	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15038$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15039if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15040  $as_echo_n "(cached) " >&6
15041else
15042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15043/* end confdefs.h.  */
15044int i;
15045_ACEOF
15046if ac_fn_c_try_compile "$LINENO"; then :
15047  xorg_cv_cc_flag_unused_command_line_argument=yes
15048else
15049  xorg_cv_cc_flag_unused_command_line_argument=no
15050fi
15051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15052fi
15053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15054$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15055	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15056	CFLAGS="$xorg_testset_save_CFLAGS"
15057fi
15058
15059found="no"
15060
15061	if test $found = "no" ; then
15062		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15063			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15064		fi
15065
15066		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15067			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15068		fi
15069
15070		CFLAGS="$CFLAGS -Werror=array-bounds"
15071
15072		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15073$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15074		cacheid=xorg_cv_cc_flag__Werror_array_bounds
15075		if eval \${$cacheid+:} false; then :
15076  $as_echo_n "(cached) " >&6
15077else
15078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15079/* end confdefs.h.  */
15080int i;
15081int
15082main ()
15083{
15084
15085  ;
15086  return 0;
15087}
15088_ACEOF
15089if ac_fn_c_try_link "$LINENO"; then :
15090  eval $cacheid=yes
15091else
15092  eval $cacheid=no
15093fi
15094rm -f core conftest.err conftest.$ac_objext \
15095    conftest$ac_exeext conftest.$ac_ext
15096fi
15097
15098
15099		CFLAGS="$xorg_testset_save_CFLAGS"
15100
15101		eval supported=\$$cacheid
15102		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15103$as_echo "$supported" >&6; }
15104		if test "$supported" = "yes" ; then
15105			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15106			found="yes"
15107		fi
15108	fi
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124xorg_testset_save_CFLAGS="$CFLAGS"
15125
15126if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15127	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15128	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15129$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15130if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15131  $as_echo_n "(cached) " >&6
15132else
15133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15134/* end confdefs.h.  */
15135int i;
15136_ACEOF
15137if ac_fn_c_try_compile "$LINENO"; then :
15138  xorg_cv_cc_flag_unknown_warning_option=yes
15139else
15140  xorg_cv_cc_flag_unknown_warning_option=no
15141fi
15142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15143fi
15144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15145$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15146	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15147	CFLAGS="$xorg_testset_save_CFLAGS"
15148fi
15149
15150if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15151	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15152		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15153	fi
15154	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15155	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15156$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15157if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15158  $as_echo_n "(cached) " >&6
15159else
15160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15161/* end confdefs.h.  */
15162int i;
15163_ACEOF
15164if ac_fn_c_try_compile "$LINENO"; then :
15165  xorg_cv_cc_flag_unused_command_line_argument=yes
15166else
15167  xorg_cv_cc_flag_unused_command_line_argument=no
15168fi
15169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15170fi
15171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15172$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15173	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15174	CFLAGS="$xorg_testset_save_CFLAGS"
15175fi
15176
15177found="no"
15178
15179	if test $found = "no" ; then
15180		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15181			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15182		fi
15183
15184		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15185			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15186		fi
15187
15188		CFLAGS="$CFLAGS -Werror=write-strings"
15189
15190		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15191$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15192		cacheid=xorg_cv_cc_flag__Werror_write_strings
15193		if eval \${$cacheid+:} false; then :
15194  $as_echo_n "(cached) " >&6
15195else
15196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15197/* end confdefs.h.  */
15198int i;
15199int
15200main ()
15201{
15202
15203  ;
15204  return 0;
15205}
15206_ACEOF
15207if ac_fn_c_try_link "$LINENO"; then :
15208  eval $cacheid=yes
15209else
15210  eval $cacheid=no
15211fi
15212rm -f core conftest.err conftest.$ac_objext \
15213    conftest$ac_exeext conftest.$ac_ext
15214fi
15215
15216
15217		CFLAGS="$xorg_testset_save_CFLAGS"
15218
15219		eval supported=\$$cacheid
15220		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15221$as_echo "$supported" >&6; }
15222		if test "$supported" = "yes" ; then
15223			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15224			found="yes"
15225		fi
15226	fi
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242xorg_testset_save_CFLAGS="$CFLAGS"
15243
15244if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15245	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15246	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15247$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15248if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15249  $as_echo_n "(cached) " >&6
15250else
15251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15252/* end confdefs.h.  */
15253int i;
15254_ACEOF
15255if ac_fn_c_try_compile "$LINENO"; then :
15256  xorg_cv_cc_flag_unknown_warning_option=yes
15257else
15258  xorg_cv_cc_flag_unknown_warning_option=no
15259fi
15260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15261fi
15262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15263$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15264	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15265	CFLAGS="$xorg_testset_save_CFLAGS"
15266fi
15267
15268if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15269	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15270		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15271	fi
15272	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15273	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15274$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15275if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15276  $as_echo_n "(cached) " >&6
15277else
15278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15279/* end confdefs.h.  */
15280int i;
15281_ACEOF
15282if ac_fn_c_try_compile "$LINENO"; then :
15283  xorg_cv_cc_flag_unused_command_line_argument=yes
15284else
15285  xorg_cv_cc_flag_unused_command_line_argument=no
15286fi
15287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15288fi
15289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15290$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15291	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15292	CFLAGS="$xorg_testset_save_CFLAGS"
15293fi
15294
15295found="no"
15296
15297	if test $found = "no" ; then
15298		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15299			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15300		fi
15301
15302		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15303			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15304		fi
15305
15306		CFLAGS="$CFLAGS -Werror=address"
15307
15308		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15309$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15310		cacheid=xorg_cv_cc_flag__Werror_address
15311		if eval \${$cacheid+:} false; then :
15312  $as_echo_n "(cached) " >&6
15313else
15314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15315/* end confdefs.h.  */
15316int i;
15317int
15318main ()
15319{
15320
15321  ;
15322  return 0;
15323}
15324_ACEOF
15325if ac_fn_c_try_link "$LINENO"; then :
15326  eval $cacheid=yes
15327else
15328  eval $cacheid=no
15329fi
15330rm -f core conftest.err conftest.$ac_objext \
15331    conftest$ac_exeext conftest.$ac_ext
15332fi
15333
15334
15335		CFLAGS="$xorg_testset_save_CFLAGS"
15336
15337		eval supported=\$$cacheid
15338		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15339$as_echo "$supported" >&6; }
15340		if test "$supported" = "yes" ; then
15341			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15342			found="yes"
15343		fi
15344	fi
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360xorg_testset_save_CFLAGS="$CFLAGS"
15361
15362if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15363	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15364	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15365$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15366if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15367  $as_echo_n "(cached) " >&6
15368else
15369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15370/* end confdefs.h.  */
15371int i;
15372_ACEOF
15373if ac_fn_c_try_compile "$LINENO"; then :
15374  xorg_cv_cc_flag_unknown_warning_option=yes
15375else
15376  xorg_cv_cc_flag_unknown_warning_option=no
15377fi
15378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15379fi
15380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15381$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15382	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15383	CFLAGS="$xorg_testset_save_CFLAGS"
15384fi
15385
15386if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15387	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15388		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15389	fi
15390	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15391	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15392$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15393if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15394  $as_echo_n "(cached) " >&6
15395else
15396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15397/* end confdefs.h.  */
15398int i;
15399_ACEOF
15400if ac_fn_c_try_compile "$LINENO"; then :
15401  xorg_cv_cc_flag_unused_command_line_argument=yes
15402else
15403  xorg_cv_cc_flag_unused_command_line_argument=no
15404fi
15405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15406fi
15407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15408$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15409	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15410	CFLAGS="$xorg_testset_save_CFLAGS"
15411fi
15412
15413found="no"
15414
15415	if test $found = "no" ; then
15416		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15417			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15418		fi
15419
15420		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15421			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15422		fi
15423
15424		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15425
15426		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15427$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15428		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
15429		if eval \${$cacheid+:} false; then :
15430  $as_echo_n "(cached) " >&6
15431else
15432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15433/* end confdefs.h.  */
15434int i;
15435int
15436main ()
15437{
15438
15439  ;
15440  return 0;
15441}
15442_ACEOF
15443if ac_fn_c_try_link "$LINENO"; then :
15444  eval $cacheid=yes
15445else
15446  eval $cacheid=no
15447fi
15448rm -f core conftest.err conftest.$ac_objext \
15449    conftest$ac_exeext conftest.$ac_ext
15450fi
15451
15452
15453		CFLAGS="$xorg_testset_save_CFLAGS"
15454
15455		eval supported=\$$cacheid
15456		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15457$as_echo "$supported" >&6; }
15458		if test "$supported" = "yes" ; then
15459			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15460			found="yes"
15461		fi
15462	fi
15463
15464	if test $found = "no" ; then
15465		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15466			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15467		fi
15468
15469		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15470			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15471		fi
15472
15473		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15474
15475		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15476$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15477		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
15478		if eval \${$cacheid+:} false; then :
15479  $as_echo_n "(cached) " >&6
15480else
15481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15482/* end confdefs.h.  */
15483int i;
15484int
15485main ()
15486{
15487
15488  ;
15489  return 0;
15490}
15491_ACEOF
15492if ac_fn_c_try_link "$LINENO"; then :
15493  eval $cacheid=yes
15494else
15495  eval $cacheid=no
15496fi
15497rm -f core conftest.err conftest.$ac_objext \
15498    conftest$ac_exeext conftest.$ac_ext
15499fi
15500
15501
15502		CFLAGS="$xorg_testset_save_CFLAGS"
15503
15504		eval supported=\$$cacheid
15505		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15506$as_echo "$supported" >&6; }
15507		if test "$supported" = "yes" ; then
15508			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15509			found="yes"
15510		fi
15511	fi
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527xorg_testset_save_CFLAGS="$CFLAGS"
15528
15529if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15530	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15531	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15532$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15533if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15534  $as_echo_n "(cached) " >&6
15535else
15536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15537/* end confdefs.h.  */
15538int i;
15539_ACEOF
15540if ac_fn_c_try_compile "$LINENO"; then :
15541  xorg_cv_cc_flag_unknown_warning_option=yes
15542else
15543  xorg_cv_cc_flag_unknown_warning_option=no
15544fi
15545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15546fi
15547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15548$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15549	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15550	CFLAGS="$xorg_testset_save_CFLAGS"
15551fi
15552
15553if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15554	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15555		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15556	fi
15557	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15558	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15559$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15560if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15561  $as_echo_n "(cached) " >&6
15562else
15563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15564/* end confdefs.h.  */
15565int i;
15566_ACEOF
15567if ac_fn_c_try_compile "$LINENO"; then :
15568  xorg_cv_cc_flag_unused_command_line_argument=yes
15569else
15570  xorg_cv_cc_flag_unused_command_line_argument=no
15571fi
15572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15573fi
15574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15575$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15576	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15577	CFLAGS="$xorg_testset_save_CFLAGS"
15578fi
15579
15580found="no"
15581
15582	if test $found = "no" ; then
15583		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15584			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15585		fi
15586
15587		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15588			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15589		fi
15590
15591		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15592
15593		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15594$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15595		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
15596		if eval \${$cacheid+:} false; then :
15597  $as_echo_n "(cached) " >&6
15598else
15599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15600/* end confdefs.h.  */
15601int i;
15602int
15603main ()
15604{
15605
15606  ;
15607  return 0;
15608}
15609_ACEOF
15610if ac_fn_c_try_link "$LINENO"; then :
15611  eval $cacheid=yes
15612else
15613  eval $cacheid=no
15614fi
15615rm -f core conftest.err conftest.$ac_objext \
15616    conftest$ac_exeext conftest.$ac_ext
15617fi
15618
15619
15620		CFLAGS="$xorg_testset_save_CFLAGS"
15621
15622		eval supported=\$$cacheid
15623		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15624$as_echo "$supported" >&6; }
15625		if test "$supported" = "yes" ; then
15626			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15627			found="yes"
15628		fi
15629	fi
15630
15631 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15632else
15633{ $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
15634$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;}
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648xorg_testset_save_CFLAGS="$CFLAGS"
15649
15650if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15651	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15652	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15653$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15654if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15655  $as_echo_n "(cached) " >&6
15656else
15657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15658/* end confdefs.h.  */
15659int i;
15660_ACEOF
15661if ac_fn_c_try_compile "$LINENO"; then :
15662  xorg_cv_cc_flag_unknown_warning_option=yes
15663else
15664  xorg_cv_cc_flag_unknown_warning_option=no
15665fi
15666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15667fi
15668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15669$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15670	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15671	CFLAGS="$xorg_testset_save_CFLAGS"
15672fi
15673
15674if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15675	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15676		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15677	fi
15678	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15679	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15680$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15681if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15682  $as_echo_n "(cached) " >&6
15683else
15684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15685/* end confdefs.h.  */
15686int i;
15687_ACEOF
15688if ac_fn_c_try_compile "$LINENO"; then :
15689  xorg_cv_cc_flag_unused_command_line_argument=yes
15690else
15691  xorg_cv_cc_flag_unused_command_line_argument=no
15692fi
15693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15694fi
15695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15696$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15697	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15698	CFLAGS="$xorg_testset_save_CFLAGS"
15699fi
15700
15701found="no"
15702
15703	if test $found = "no" ; then
15704		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15705			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15706		fi
15707
15708		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15709			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15710		fi
15711
15712		CFLAGS="$CFLAGS -Wimplicit"
15713
15714		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15715$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15716		cacheid=xorg_cv_cc_flag__Wimplicit
15717		if eval \${$cacheid+:} false; then :
15718  $as_echo_n "(cached) " >&6
15719else
15720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15721/* end confdefs.h.  */
15722int i;
15723int
15724main ()
15725{
15726
15727  ;
15728  return 0;
15729}
15730_ACEOF
15731if ac_fn_c_try_link "$LINENO"; then :
15732  eval $cacheid=yes
15733else
15734  eval $cacheid=no
15735fi
15736rm -f core conftest.err conftest.$ac_objext \
15737    conftest$ac_exeext conftest.$ac_ext
15738fi
15739
15740
15741		CFLAGS="$xorg_testset_save_CFLAGS"
15742
15743		eval supported=\$$cacheid
15744		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15745$as_echo "$supported" >&6; }
15746		if test "$supported" = "yes" ; then
15747			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15748			found="yes"
15749		fi
15750	fi
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766xorg_testset_save_CFLAGS="$CFLAGS"
15767
15768if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15769	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15770	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15771$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15772if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15773  $as_echo_n "(cached) " >&6
15774else
15775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15776/* end confdefs.h.  */
15777int i;
15778_ACEOF
15779if ac_fn_c_try_compile "$LINENO"; then :
15780  xorg_cv_cc_flag_unknown_warning_option=yes
15781else
15782  xorg_cv_cc_flag_unknown_warning_option=no
15783fi
15784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15785fi
15786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15787$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15788	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15789	CFLAGS="$xorg_testset_save_CFLAGS"
15790fi
15791
15792if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15793	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15794		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15795	fi
15796	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15797	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15798$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15799if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15800  $as_echo_n "(cached) " >&6
15801else
15802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15803/* end confdefs.h.  */
15804int i;
15805_ACEOF
15806if ac_fn_c_try_compile "$LINENO"; then :
15807  xorg_cv_cc_flag_unused_command_line_argument=yes
15808else
15809  xorg_cv_cc_flag_unused_command_line_argument=no
15810fi
15811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15812fi
15813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15814$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15815	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15816	CFLAGS="$xorg_testset_save_CFLAGS"
15817fi
15818
15819found="no"
15820
15821	if test $found = "no" ; then
15822		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15823			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15824		fi
15825
15826		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15827			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15828		fi
15829
15830		CFLAGS="$CFLAGS -Wnonnull"
15831
15832		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15833$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15834		cacheid=xorg_cv_cc_flag__Wnonnull
15835		if eval \${$cacheid+:} false; then :
15836  $as_echo_n "(cached) " >&6
15837else
15838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15839/* end confdefs.h.  */
15840int i;
15841int
15842main ()
15843{
15844
15845  ;
15846  return 0;
15847}
15848_ACEOF
15849if ac_fn_c_try_link "$LINENO"; then :
15850  eval $cacheid=yes
15851else
15852  eval $cacheid=no
15853fi
15854rm -f core conftest.err conftest.$ac_objext \
15855    conftest$ac_exeext conftest.$ac_ext
15856fi
15857
15858
15859		CFLAGS="$xorg_testset_save_CFLAGS"
15860
15861		eval supported=\$$cacheid
15862		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15863$as_echo "$supported" >&6; }
15864		if test "$supported" = "yes" ; then
15865			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15866			found="yes"
15867		fi
15868	fi
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884xorg_testset_save_CFLAGS="$CFLAGS"
15885
15886if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15887	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15888	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15889$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15890if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15891  $as_echo_n "(cached) " >&6
15892else
15893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15894/* end confdefs.h.  */
15895int i;
15896_ACEOF
15897if ac_fn_c_try_compile "$LINENO"; then :
15898  xorg_cv_cc_flag_unknown_warning_option=yes
15899else
15900  xorg_cv_cc_flag_unknown_warning_option=no
15901fi
15902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15903fi
15904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15905$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15906	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15907	CFLAGS="$xorg_testset_save_CFLAGS"
15908fi
15909
15910if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15911	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15912		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15913	fi
15914	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15915	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15916$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15917if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15918  $as_echo_n "(cached) " >&6
15919else
15920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15921/* end confdefs.h.  */
15922int i;
15923_ACEOF
15924if ac_fn_c_try_compile "$LINENO"; then :
15925  xorg_cv_cc_flag_unused_command_line_argument=yes
15926else
15927  xorg_cv_cc_flag_unused_command_line_argument=no
15928fi
15929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15930fi
15931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15932$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15933	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15934	CFLAGS="$xorg_testset_save_CFLAGS"
15935fi
15936
15937found="no"
15938
15939	if test $found = "no" ; then
15940		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15941			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15942		fi
15943
15944		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15945			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15946		fi
15947
15948		CFLAGS="$CFLAGS -Winit-self"
15949
15950		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15951$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15952		cacheid=xorg_cv_cc_flag__Winit_self
15953		if eval \${$cacheid+:} false; then :
15954  $as_echo_n "(cached) " >&6
15955else
15956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15957/* end confdefs.h.  */
15958int i;
15959int
15960main ()
15961{
15962
15963  ;
15964  return 0;
15965}
15966_ACEOF
15967if ac_fn_c_try_link "$LINENO"; then :
15968  eval $cacheid=yes
15969else
15970  eval $cacheid=no
15971fi
15972rm -f core conftest.err conftest.$ac_objext \
15973    conftest$ac_exeext conftest.$ac_ext
15974fi
15975
15976
15977		CFLAGS="$xorg_testset_save_CFLAGS"
15978
15979		eval supported=\$$cacheid
15980		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15981$as_echo "$supported" >&6; }
15982		if test "$supported" = "yes" ; then
15983			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15984			found="yes"
15985		fi
15986	fi
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002xorg_testset_save_CFLAGS="$CFLAGS"
16003
16004if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16005	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16006	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16007$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16008if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16009  $as_echo_n "(cached) " >&6
16010else
16011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16012/* end confdefs.h.  */
16013int i;
16014_ACEOF
16015if ac_fn_c_try_compile "$LINENO"; then :
16016  xorg_cv_cc_flag_unknown_warning_option=yes
16017else
16018  xorg_cv_cc_flag_unknown_warning_option=no
16019fi
16020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16021fi
16022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16023$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16024	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16025	CFLAGS="$xorg_testset_save_CFLAGS"
16026fi
16027
16028if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16029	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16030		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16031	fi
16032	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16033	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16034$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16035if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16036  $as_echo_n "(cached) " >&6
16037else
16038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16039/* end confdefs.h.  */
16040int i;
16041_ACEOF
16042if ac_fn_c_try_compile "$LINENO"; then :
16043  xorg_cv_cc_flag_unused_command_line_argument=yes
16044else
16045  xorg_cv_cc_flag_unused_command_line_argument=no
16046fi
16047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16048fi
16049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16050$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16051	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16052	CFLAGS="$xorg_testset_save_CFLAGS"
16053fi
16054
16055found="no"
16056
16057	if test $found = "no" ; then
16058		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16059			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16060		fi
16061
16062		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16063			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16064		fi
16065
16066		CFLAGS="$CFLAGS -Wmain"
16067
16068		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16069$as_echo_n "checking if $CC supports -Wmain... " >&6; }
16070		cacheid=xorg_cv_cc_flag__Wmain
16071		if eval \${$cacheid+:} false; then :
16072  $as_echo_n "(cached) " >&6
16073else
16074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16075/* end confdefs.h.  */
16076int i;
16077int
16078main ()
16079{
16080
16081  ;
16082  return 0;
16083}
16084_ACEOF
16085if ac_fn_c_try_link "$LINENO"; then :
16086  eval $cacheid=yes
16087else
16088  eval $cacheid=no
16089fi
16090rm -f core conftest.err conftest.$ac_objext \
16091    conftest$ac_exeext conftest.$ac_ext
16092fi
16093
16094
16095		CFLAGS="$xorg_testset_save_CFLAGS"
16096
16097		eval supported=\$$cacheid
16098		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16099$as_echo "$supported" >&6; }
16100		if test "$supported" = "yes" ; then
16101			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16102			found="yes"
16103		fi
16104	fi
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120xorg_testset_save_CFLAGS="$CFLAGS"
16121
16122if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16123	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16124	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16125$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16126if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16127  $as_echo_n "(cached) " >&6
16128else
16129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16130/* end confdefs.h.  */
16131int i;
16132_ACEOF
16133if ac_fn_c_try_compile "$LINENO"; then :
16134  xorg_cv_cc_flag_unknown_warning_option=yes
16135else
16136  xorg_cv_cc_flag_unknown_warning_option=no
16137fi
16138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16139fi
16140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16141$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16142	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16143	CFLAGS="$xorg_testset_save_CFLAGS"
16144fi
16145
16146if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16147	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16148		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16149	fi
16150	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16151	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16152$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16153if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16154  $as_echo_n "(cached) " >&6
16155else
16156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16157/* end confdefs.h.  */
16158int i;
16159_ACEOF
16160if ac_fn_c_try_compile "$LINENO"; then :
16161  xorg_cv_cc_flag_unused_command_line_argument=yes
16162else
16163  xorg_cv_cc_flag_unused_command_line_argument=no
16164fi
16165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16166fi
16167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16168$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16169	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16170	CFLAGS="$xorg_testset_save_CFLAGS"
16171fi
16172
16173found="no"
16174
16175	if test $found = "no" ; then
16176		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16177			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16178		fi
16179
16180		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16181			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16182		fi
16183
16184		CFLAGS="$CFLAGS -Wmissing-braces"
16185
16186		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16187$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16188		cacheid=xorg_cv_cc_flag__Wmissing_braces
16189		if eval \${$cacheid+:} false; then :
16190  $as_echo_n "(cached) " >&6
16191else
16192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16193/* end confdefs.h.  */
16194int i;
16195int
16196main ()
16197{
16198
16199  ;
16200  return 0;
16201}
16202_ACEOF
16203if ac_fn_c_try_link "$LINENO"; then :
16204  eval $cacheid=yes
16205else
16206  eval $cacheid=no
16207fi
16208rm -f core conftest.err conftest.$ac_objext \
16209    conftest$ac_exeext conftest.$ac_ext
16210fi
16211
16212
16213		CFLAGS="$xorg_testset_save_CFLAGS"
16214
16215		eval supported=\$$cacheid
16216		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16217$as_echo "$supported" >&6; }
16218		if test "$supported" = "yes" ; then
16219			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16220			found="yes"
16221		fi
16222	fi
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238xorg_testset_save_CFLAGS="$CFLAGS"
16239
16240if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16241	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16242	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16243$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16244if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16245  $as_echo_n "(cached) " >&6
16246else
16247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16248/* end confdefs.h.  */
16249int i;
16250_ACEOF
16251if ac_fn_c_try_compile "$LINENO"; then :
16252  xorg_cv_cc_flag_unknown_warning_option=yes
16253else
16254  xorg_cv_cc_flag_unknown_warning_option=no
16255fi
16256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16257fi
16258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16259$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16260	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16261	CFLAGS="$xorg_testset_save_CFLAGS"
16262fi
16263
16264if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16265	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16266		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16267	fi
16268	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16269	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16270$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16271if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16272  $as_echo_n "(cached) " >&6
16273else
16274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16275/* end confdefs.h.  */
16276int i;
16277_ACEOF
16278if ac_fn_c_try_compile "$LINENO"; then :
16279  xorg_cv_cc_flag_unused_command_line_argument=yes
16280else
16281  xorg_cv_cc_flag_unused_command_line_argument=no
16282fi
16283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16284fi
16285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16286$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16287	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16288	CFLAGS="$xorg_testset_save_CFLAGS"
16289fi
16290
16291found="no"
16292
16293	if test $found = "no" ; then
16294		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16295			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16296		fi
16297
16298		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16299			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16300		fi
16301
16302		CFLAGS="$CFLAGS -Wsequence-point"
16303
16304		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16305$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16306		cacheid=xorg_cv_cc_flag__Wsequence_point
16307		if eval \${$cacheid+:} false; then :
16308  $as_echo_n "(cached) " >&6
16309else
16310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16311/* end confdefs.h.  */
16312int i;
16313int
16314main ()
16315{
16316
16317  ;
16318  return 0;
16319}
16320_ACEOF
16321if ac_fn_c_try_link "$LINENO"; then :
16322  eval $cacheid=yes
16323else
16324  eval $cacheid=no
16325fi
16326rm -f core conftest.err conftest.$ac_objext \
16327    conftest$ac_exeext conftest.$ac_ext
16328fi
16329
16330
16331		CFLAGS="$xorg_testset_save_CFLAGS"
16332
16333		eval supported=\$$cacheid
16334		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16335$as_echo "$supported" >&6; }
16336		if test "$supported" = "yes" ; then
16337			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16338			found="yes"
16339		fi
16340	fi
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356xorg_testset_save_CFLAGS="$CFLAGS"
16357
16358if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16359	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16360	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16361$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16362if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16363  $as_echo_n "(cached) " >&6
16364else
16365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16366/* end confdefs.h.  */
16367int i;
16368_ACEOF
16369if ac_fn_c_try_compile "$LINENO"; then :
16370  xorg_cv_cc_flag_unknown_warning_option=yes
16371else
16372  xorg_cv_cc_flag_unknown_warning_option=no
16373fi
16374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16375fi
16376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16377$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16378	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16379	CFLAGS="$xorg_testset_save_CFLAGS"
16380fi
16381
16382if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16383	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16384		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16385	fi
16386	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16387	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16388$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16389if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16390  $as_echo_n "(cached) " >&6
16391else
16392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16393/* end confdefs.h.  */
16394int i;
16395_ACEOF
16396if ac_fn_c_try_compile "$LINENO"; then :
16397  xorg_cv_cc_flag_unused_command_line_argument=yes
16398else
16399  xorg_cv_cc_flag_unused_command_line_argument=no
16400fi
16401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16402fi
16403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16404$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16405	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16406	CFLAGS="$xorg_testset_save_CFLAGS"
16407fi
16408
16409found="no"
16410
16411	if test $found = "no" ; then
16412		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16413			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16414		fi
16415
16416		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16417			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16418		fi
16419
16420		CFLAGS="$CFLAGS -Wreturn-type"
16421
16422		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16423$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16424		cacheid=xorg_cv_cc_flag__Wreturn_type
16425		if eval \${$cacheid+:} false; then :
16426  $as_echo_n "(cached) " >&6
16427else
16428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16429/* end confdefs.h.  */
16430int i;
16431int
16432main ()
16433{
16434
16435  ;
16436  return 0;
16437}
16438_ACEOF
16439if ac_fn_c_try_link "$LINENO"; then :
16440  eval $cacheid=yes
16441else
16442  eval $cacheid=no
16443fi
16444rm -f core conftest.err conftest.$ac_objext \
16445    conftest$ac_exeext conftest.$ac_ext
16446fi
16447
16448
16449		CFLAGS="$xorg_testset_save_CFLAGS"
16450
16451		eval supported=\$$cacheid
16452		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16453$as_echo "$supported" >&6; }
16454		if test "$supported" = "yes" ; then
16455			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16456			found="yes"
16457		fi
16458	fi
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474xorg_testset_save_CFLAGS="$CFLAGS"
16475
16476if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16477	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16478	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16479$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16480if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16481  $as_echo_n "(cached) " >&6
16482else
16483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16484/* end confdefs.h.  */
16485int i;
16486_ACEOF
16487if ac_fn_c_try_compile "$LINENO"; then :
16488  xorg_cv_cc_flag_unknown_warning_option=yes
16489else
16490  xorg_cv_cc_flag_unknown_warning_option=no
16491fi
16492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16493fi
16494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16495$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16496	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16497	CFLAGS="$xorg_testset_save_CFLAGS"
16498fi
16499
16500if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16501	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16502		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16503	fi
16504	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16505	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16506$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16507if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16508  $as_echo_n "(cached) " >&6
16509else
16510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16511/* end confdefs.h.  */
16512int i;
16513_ACEOF
16514if ac_fn_c_try_compile "$LINENO"; then :
16515  xorg_cv_cc_flag_unused_command_line_argument=yes
16516else
16517  xorg_cv_cc_flag_unused_command_line_argument=no
16518fi
16519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16520fi
16521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16522$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16523	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16524	CFLAGS="$xorg_testset_save_CFLAGS"
16525fi
16526
16527found="no"
16528
16529	if test $found = "no" ; then
16530		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16531			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16532		fi
16533
16534		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16535			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16536		fi
16537
16538		CFLAGS="$CFLAGS -Wtrigraphs"
16539
16540		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16541$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16542		cacheid=xorg_cv_cc_flag__Wtrigraphs
16543		if eval \${$cacheid+:} false; then :
16544  $as_echo_n "(cached) " >&6
16545else
16546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16547/* end confdefs.h.  */
16548int i;
16549int
16550main ()
16551{
16552
16553  ;
16554  return 0;
16555}
16556_ACEOF
16557if ac_fn_c_try_link "$LINENO"; then :
16558  eval $cacheid=yes
16559else
16560  eval $cacheid=no
16561fi
16562rm -f core conftest.err conftest.$ac_objext \
16563    conftest$ac_exeext conftest.$ac_ext
16564fi
16565
16566
16567		CFLAGS="$xorg_testset_save_CFLAGS"
16568
16569		eval supported=\$$cacheid
16570		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16571$as_echo "$supported" >&6; }
16572		if test "$supported" = "yes" ; then
16573			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16574			found="yes"
16575		fi
16576	fi
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592xorg_testset_save_CFLAGS="$CFLAGS"
16593
16594if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16595	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16596	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16597$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16598if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16599  $as_echo_n "(cached) " >&6
16600else
16601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16602/* end confdefs.h.  */
16603int i;
16604_ACEOF
16605if ac_fn_c_try_compile "$LINENO"; then :
16606  xorg_cv_cc_flag_unknown_warning_option=yes
16607else
16608  xorg_cv_cc_flag_unknown_warning_option=no
16609fi
16610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16611fi
16612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16613$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16614	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16615	CFLAGS="$xorg_testset_save_CFLAGS"
16616fi
16617
16618if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16619	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16620		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16621	fi
16622	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16623	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16624$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16625if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16626  $as_echo_n "(cached) " >&6
16627else
16628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16629/* end confdefs.h.  */
16630int i;
16631_ACEOF
16632if ac_fn_c_try_compile "$LINENO"; then :
16633  xorg_cv_cc_flag_unused_command_line_argument=yes
16634else
16635  xorg_cv_cc_flag_unused_command_line_argument=no
16636fi
16637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16638fi
16639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16640$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16641	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16642	CFLAGS="$xorg_testset_save_CFLAGS"
16643fi
16644
16645found="no"
16646
16647	if test $found = "no" ; then
16648		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16649			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16650		fi
16651
16652		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16653			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16654		fi
16655
16656		CFLAGS="$CFLAGS -Warray-bounds"
16657
16658		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16659$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16660		cacheid=xorg_cv_cc_flag__Warray_bounds
16661		if eval \${$cacheid+:} false; then :
16662  $as_echo_n "(cached) " >&6
16663else
16664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16665/* end confdefs.h.  */
16666int i;
16667int
16668main ()
16669{
16670
16671  ;
16672  return 0;
16673}
16674_ACEOF
16675if ac_fn_c_try_link "$LINENO"; then :
16676  eval $cacheid=yes
16677else
16678  eval $cacheid=no
16679fi
16680rm -f core conftest.err conftest.$ac_objext \
16681    conftest$ac_exeext conftest.$ac_ext
16682fi
16683
16684
16685		CFLAGS="$xorg_testset_save_CFLAGS"
16686
16687		eval supported=\$$cacheid
16688		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16689$as_echo "$supported" >&6; }
16690		if test "$supported" = "yes" ; then
16691			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16692			found="yes"
16693		fi
16694	fi
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710xorg_testset_save_CFLAGS="$CFLAGS"
16711
16712if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16713	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16714	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16715$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16716if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16717  $as_echo_n "(cached) " >&6
16718else
16719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16720/* end confdefs.h.  */
16721int i;
16722_ACEOF
16723if ac_fn_c_try_compile "$LINENO"; then :
16724  xorg_cv_cc_flag_unknown_warning_option=yes
16725else
16726  xorg_cv_cc_flag_unknown_warning_option=no
16727fi
16728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16729fi
16730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16731$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16732	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16733	CFLAGS="$xorg_testset_save_CFLAGS"
16734fi
16735
16736if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16737	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16738		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16739	fi
16740	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16741	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16742$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16743if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16744  $as_echo_n "(cached) " >&6
16745else
16746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16747/* end confdefs.h.  */
16748int i;
16749_ACEOF
16750if ac_fn_c_try_compile "$LINENO"; then :
16751  xorg_cv_cc_flag_unused_command_line_argument=yes
16752else
16753  xorg_cv_cc_flag_unused_command_line_argument=no
16754fi
16755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16756fi
16757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16758$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16759	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16760	CFLAGS="$xorg_testset_save_CFLAGS"
16761fi
16762
16763found="no"
16764
16765	if test $found = "no" ; then
16766		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16767			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16768		fi
16769
16770		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16771			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16772		fi
16773
16774		CFLAGS="$CFLAGS -Wwrite-strings"
16775
16776		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16777$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16778		cacheid=xorg_cv_cc_flag__Wwrite_strings
16779		if eval \${$cacheid+:} false; then :
16780  $as_echo_n "(cached) " >&6
16781else
16782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16783/* end confdefs.h.  */
16784int i;
16785int
16786main ()
16787{
16788
16789  ;
16790  return 0;
16791}
16792_ACEOF
16793if ac_fn_c_try_link "$LINENO"; then :
16794  eval $cacheid=yes
16795else
16796  eval $cacheid=no
16797fi
16798rm -f core conftest.err conftest.$ac_objext \
16799    conftest$ac_exeext conftest.$ac_ext
16800fi
16801
16802
16803		CFLAGS="$xorg_testset_save_CFLAGS"
16804
16805		eval supported=\$$cacheid
16806		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16807$as_echo "$supported" >&6; }
16808		if test "$supported" = "yes" ; then
16809			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16810			found="yes"
16811		fi
16812	fi
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828xorg_testset_save_CFLAGS="$CFLAGS"
16829
16830if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16831	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16832	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16833$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16834if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16835  $as_echo_n "(cached) " >&6
16836else
16837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16838/* end confdefs.h.  */
16839int i;
16840_ACEOF
16841if ac_fn_c_try_compile "$LINENO"; then :
16842  xorg_cv_cc_flag_unknown_warning_option=yes
16843else
16844  xorg_cv_cc_flag_unknown_warning_option=no
16845fi
16846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16847fi
16848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16849$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16850	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16851	CFLAGS="$xorg_testset_save_CFLAGS"
16852fi
16853
16854if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16855	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16856		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16857	fi
16858	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16859	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16860$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16861if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16862  $as_echo_n "(cached) " >&6
16863else
16864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16865/* end confdefs.h.  */
16866int i;
16867_ACEOF
16868if ac_fn_c_try_compile "$LINENO"; then :
16869  xorg_cv_cc_flag_unused_command_line_argument=yes
16870else
16871  xorg_cv_cc_flag_unused_command_line_argument=no
16872fi
16873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16874fi
16875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16876$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16877	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16878	CFLAGS="$xorg_testset_save_CFLAGS"
16879fi
16880
16881found="no"
16882
16883	if test $found = "no" ; then
16884		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16885			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16886		fi
16887
16888		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16889			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16890		fi
16891
16892		CFLAGS="$CFLAGS -Waddress"
16893
16894		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16895$as_echo_n "checking if $CC supports -Waddress... " >&6; }
16896		cacheid=xorg_cv_cc_flag__Waddress
16897		if eval \${$cacheid+:} false; then :
16898  $as_echo_n "(cached) " >&6
16899else
16900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16901/* end confdefs.h.  */
16902int i;
16903int
16904main ()
16905{
16906
16907  ;
16908  return 0;
16909}
16910_ACEOF
16911if ac_fn_c_try_link "$LINENO"; then :
16912  eval $cacheid=yes
16913else
16914  eval $cacheid=no
16915fi
16916rm -f core conftest.err conftest.$ac_objext \
16917    conftest$ac_exeext conftest.$ac_ext
16918fi
16919
16920
16921		CFLAGS="$xorg_testset_save_CFLAGS"
16922
16923		eval supported=\$$cacheid
16924		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16925$as_echo "$supported" >&6; }
16926		if test "$supported" = "yes" ; then
16927			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16928			found="yes"
16929		fi
16930	fi
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946xorg_testset_save_CFLAGS="$CFLAGS"
16947
16948if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16949	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16950	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16951$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16952if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16953  $as_echo_n "(cached) " >&6
16954else
16955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16956/* end confdefs.h.  */
16957int i;
16958_ACEOF
16959if ac_fn_c_try_compile "$LINENO"; then :
16960  xorg_cv_cc_flag_unknown_warning_option=yes
16961else
16962  xorg_cv_cc_flag_unknown_warning_option=no
16963fi
16964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16965fi
16966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16967$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16968	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16969	CFLAGS="$xorg_testset_save_CFLAGS"
16970fi
16971
16972if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16973	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16974		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16975	fi
16976	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16977	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16978$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16979if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16980  $as_echo_n "(cached) " >&6
16981else
16982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16983/* end confdefs.h.  */
16984int i;
16985_ACEOF
16986if ac_fn_c_try_compile "$LINENO"; then :
16987  xorg_cv_cc_flag_unused_command_line_argument=yes
16988else
16989  xorg_cv_cc_flag_unused_command_line_argument=no
16990fi
16991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16992fi
16993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16994$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16995	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16996	CFLAGS="$xorg_testset_save_CFLAGS"
16997fi
16998
16999found="no"
17000
17001	if test $found = "no" ; then
17002		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17003			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17004		fi
17005
17006		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17007			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17008		fi
17009
17010		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17011
17012		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17013$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17014		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17015		if eval \${$cacheid+:} false; then :
17016  $as_echo_n "(cached) " >&6
17017else
17018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17019/* end confdefs.h.  */
17020int i;
17021int
17022main ()
17023{
17024
17025  ;
17026  return 0;
17027}
17028_ACEOF
17029if ac_fn_c_try_link "$LINENO"; then :
17030  eval $cacheid=yes
17031else
17032  eval $cacheid=no
17033fi
17034rm -f core conftest.err conftest.$ac_objext \
17035    conftest$ac_exeext conftest.$ac_ext
17036fi
17037
17038
17039		CFLAGS="$xorg_testset_save_CFLAGS"
17040
17041		eval supported=\$$cacheid
17042		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17043$as_echo "$supported" >&6; }
17044		if test "$supported" = "yes" ; then
17045			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17046			found="yes"
17047		fi
17048	fi
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064xorg_testset_save_CFLAGS="$CFLAGS"
17065
17066if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17067	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17068	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17069$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17070if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17071  $as_echo_n "(cached) " >&6
17072else
17073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17074/* end confdefs.h.  */
17075int i;
17076_ACEOF
17077if ac_fn_c_try_compile "$LINENO"; then :
17078  xorg_cv_cc_flag_unknown_warning_option=yes
17079else
17080  xorg_cv_cc_flag_unknown_warning_option=no
17081fi
17082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17083fi
17084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17085$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17086	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17087	CFLAGS="$xorg_testset_save_CFLAGS"
17088fi
17089
17090if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17091	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17092		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17093	fi
17094	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17095	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17096$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17097if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17098  $as_echo_n "(cached) " >&6
17099else
17100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17101/* end confdefs.h.  */
17102int i;
17103_ACEOF
17104if ac_fn_c_try_compile "$LINENO"; then :
17105  xorg_cv_cc_flag_unused_command_line_argument=yes
17106else
17107  xorg_cv_cc_flag_unused_command_line_argument=no
17108fi
17109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17110fi
17111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17112$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17113	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17114	CFLAGS="$xorg_testset_save_CFLAGS"
17115fi
17116
17117found="no"
17118
17119	if test $found = "no" ; then
17120		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17121			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17122		fi
17123
17124		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17125			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17126		fi
17127
17128		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17129
17130		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17131$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17132		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17133		if eval \${$cacheid+:} false; then :
17134  $as_echo_n "(cached) " >&6
17135else
17136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17137/* end confdefs.h.  */
17138int i;
17139int
17140main ()
17141{
17142
17143  ;
17144  return 0;
17145}
17146_ACEOF
17147if ac_fn_c_try_link "$LINENO"; then :
17148  eval $cacheid=yes
17149else
17150  eval $cacheid=no
17151fi
17152rm -f core conftest.err conftest.$ac_objext \
17153    conftest$ac_exeext conftest.$ac_ext
17154fi
17155
17156
17157		CFLAGS="$xorg_testset_save_CFLAGS"
17158
17159		eval supported=\$$cacheid
17160		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17161$as_echo "$supported" >&6; }
17162		if test "$supported" = "yes" ; then
17163			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17164			found="yes"
17165		fi
17166	fi
17167
17168
17169fi
17170
17171
17172
17173
17174
17175
17176
17177		CWARNFLAGS="$BASE_CFLAGS"
17178		if  test "x$GCC" = xyes ; then
17179		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17180		fi
17181
17182
17183
17184
17185
17186
17187
17188
17189# Check whether --enable-strict-compilation was given.
17190if test "${enable_strict_compilation+set}" = set; then :
17191  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17192else
17193  STRICT_COMPILE=no
17194fi
17195
17196
17197
17198
17199
17200
17201STRICT_CFLAGS=""
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215xorg_testset_save_CFLAGS="$CFLAGS"
17216
17217if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17218	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17219	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17220$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17221if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17222  $as_echo_n "(cached) " >&6
17223else
17224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17225/* end confdefs.h.  */
17226int i;
17227_ACEOF
17228if ac_fn_c_try_compile "$LINENO"; then :
17229  xorg_cv_cc_flag_unknown_warning_option=yes
17230else
17231  xorg_cv_cc_flag_unknown_warning_option=no
17232fi
17233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17234fi
17235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17236$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17237	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17238	CFLAGS="$xorg_testset_save_CFLAGS"
17239fi
17240
17241if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17242	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17243		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17244	fi
17245	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17246	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17247$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17248if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17249  $as_echo_n "(cached) " >&6
17250else
17251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17252/* end confdefs.h.  */
17253int i;
17254_ACEOF
17255if ac_fn_c_try_compile "$LINENO"; then :
17256  xorg_cv_cc_flag_unused_command_line_argument=yes
17257else
17258  xorg_cv_cc_flag_unused_command_line_argument=no
17259fi
17260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17261fi
17262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17263$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17264	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17265	CFLAGS="$xorg_testset_save_CFLAGS"
17266fi
17267
17268found="no"
17269
17270	if test $found = "no" ; then
17271		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17272			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17273		fi
17274
17275		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17276			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17277		fi
17278
17279		CFLAGS="$CFLAGS -pedantic"
17280
17281		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17282$as_echo_n "checking if $CC supports -pedantic... " >&6; }
17283		cacheid=xorg_cv_cc_flag__pedantic
17284		if eval \${$cacheid+:} false; then :
17285  $as_echo_n "(cached) " >&6
17286else
17287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17288/* end confdefs.h.  */
17289int i;
17290int
17291main ()
17292{
17293
17294  ;
17295  return 0;
17296}
17297_ACEOF
17298if ac_fn_c_try_link "$LINENO"; then :
17299  eval $cacheid=yes
17300else
17301  eval $cacheid=no
17302fi
17303rm -f core conftest.err conftest.$ac_objext \
17304    conftest$ac_exeext conftest.$ac_ext
17305fi
17306
17307
17308		CFLAGS="$xorg_testset_save_CFLAGS"
17309
17310		eval supported=\$$cacheid
17311		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17312$as_echo "$supported" >&6; }
17313		if test "$supported" = "yes" ; then
17314			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17315			found="yes"
17316		fi
17317	fi
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333xorg_testset_save_CFLAGS="$CFLAGS"
17334
17335if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17336	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17337	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17338$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17339if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17340  $as_echo_n "(cached) " >&6
17341else
17342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17343/* end confdefs.h.  */
17344int i;
17345_ACEOF
17346if ac_fn_c_try_compile "$LINENO"; then :
17347  xorg_cv_cc_flag_unknown_warning_option=yes
17348else
17349  xorg_cv_cc_flag_unknown_warning_option=no
17350fi
17351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17352fi
17353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17354$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17355	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17356	CFLAGS="$xorg_testset_save_CFLAGS"
17357fi
17358
17359if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17360	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17361		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17362	fi
17363	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17364	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17365$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17366if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17367  $as_echo_n "(cached) " >&6
17368else
17369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17370/* end confdefs.h.  */
17371int i;
17372_ACEOF
17373if ac_fn_c_try_compile "$LINENO"; then :
17374  xorg_cv_cc_flag_unused_command_line_argument=yes
17375else
17376  xorg_cv_cc_flag_unused_command_line_argument=no
17377fi
17378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17379fi
17380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17381$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17382	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17383	CFLAGS="$xorg_testset_save_CFLAGS"
17384fi
17385
17386found="no"
17387
17388	if test $found = "no" ; then
17389		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17390			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17391		fi
17392
17393		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17394			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17395		fi
17396
17397		CFLAGS="$CFLAGS -Werror"
17398
17399		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17400$as_echo_n "checking if $CC supports -Werror... " >&6; }
17401		cacheid=xorg_cv_cc_flag__Werror
17402		if eval \${$cacheid+:} false; then :
17403  $as_echo_n "(cached) " >&6
17404else
17405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17406/* end confdefs.h.  */
17407int i;
17408int
17409main ()
17410{
17411
17412  ;
17413  return 0;
17414}
17415_ACEOF
17416if ac_fn_c_try_link "$LINENO"; then :
17417  eval $cacheid=yes
17418else
17419  eval $cacheid=no
17420fi
17421rm -f core conftest.err conftest.$ac_objext \
17422    conftest$ac_exeext conftest.$ac_ext
17423fi
17424
17425
17426		CFLAGS="$xorg_testset_save_CFLAGS"
17427
17428		eval supported=\$$cacheid
17429		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17430$as_echo "$supported" >&6; }
17431		if test "$supported" = "yes" ; then
17432			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17433			found="yes"
17434		fi
17435	fi
17436
17437	if test $found = "no" ; then
17438		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17439			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17440		fi
17441
17442		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17443			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17444		fi
17445
17446		CFLAGS="$CFLAGS -errwarn"
17447
17448		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17449$as_echo_n "checking if $CC supports -errwarn... " >&6; }
17450		cacheid=xorg_cv_cc_flag__errwarn
17451		if eval \${$cacheid+:} false; then :
17452  $as_echo_n "(cached) " >&6
17453else
17454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17455/* end confdefs.h.  */
17456int i;
17457int
17458main ()
17459{
17460
17461  ;
17462  return 0;
17463}
17464_ACEOF
17465if ac_fn_c_try_link "$LINENO"; then :
17466  eval $cacheid=yes
17467else
17468  eval $cacheid=no
17469fi
17470rm -f core conftest.err conftest.$ac_objext \
17471    conftest$ac_exeext conftest.$ac_ext
17472fi
17473
17474
17475		CFLAGS="$xorg_testset_save_CFLAGS"
17476
17477		eval supported=\$$cacheid
17478		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17479$as_echo "$supported" >&6; }
17480		if test "$supported" = "yes" ; then
17481			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17482			found="yes"
17483		fi
17484	fi
17485
17486
17487
17488# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17489# activate it with -Werror, so we add it here explicitly.
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503xorg_testset_save_CFLAGS="$CFLAGS"
17504
17505if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17506	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17507	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17508$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17509if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17510  $as_echo_n "(cached) " >&6
17511else
17512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17513/* end confdefs.h.  */
17514int i;
17515_ACEOF
17516if ac_fn_c_try_compile "$LINENO"; then :
17517  xorg_cv_cc_flag_unknown_warning_option=yes
17518else
17519  xorg_cv_cc_flag_unknown_warning_option=no
17520fi
17521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17522fi
17523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17524$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17525	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17526	CFLAGS="$xorg_testset_save_CFLAGS"
17527fi
17528
17529if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17530	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17531		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17532	fi
17533	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17534	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17535$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17536if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17537  $as_echo_n "(cached) " >&6
17538else
17539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17540/* end confdefs.h.  */
17541int i;
17542_ACEOF
17543if ac_fn_c_try_compile "$LINENO"; then :
17544  xorg_cv_cc_flag_unused_command_line_argument=yes
17545else
17546  xorg_cv_cc_flag_unused_command_line_argument=no
17547fi
17548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17549fi
17550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17551$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17552	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17553	CFLAGS="$xorg_testset_save_CFLAGS"
17554fi
17555
17556found="no"
17557
17558	if test $found = "no" ; then
17559		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17560			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17561		fi
17562
17563		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17564			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17565		fi
17566
17567		CFLAGS="$CFLAGS -Werror=attributes"
17568
17569		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17570$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17571		cacheid=xorg_cv_cc_flag__Werror_attributes
17572		if eval \${$cacheid+:} false; then :
17573  $as_echo_n "(cached) " >&6
17574else
17575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17576/* end confdefs.h.  */
17577int i;
17578int
17579main ()
17580{
17581
17582  ;
17583  return 0;
17584}
17585_ACEOF
17586if ac_fn_c_try_link "$LINENO"; then :
17587  eval $cacheid=yes
17588else
17589  eval $cacheid=no
17590fi
17591rm -f core conftest.err conftest.$ac_objext \
17592    conftest$ac_exeext conftest.$ac_ext
17593fi
17594
17595
17596		CFLAGS="$xorg_testset_save_CFLAGS"
17597
17598		eval supported=\$$cacheid
17599		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17600$as_echo "$supported" >&6; }
17601		if test "$supported" = "yes" ; then
17602			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17603			found="yes"
17604		fi
17605	fi
17606
17607
17608
17609if test "x$STRICT_COMPILE" = "xyes"; then
17610    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17611    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17612fi
17613
17614
17615
17616
17617
17618
17619cat >>confdefs.h <<_ACEOF
17620#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17621_ACEOF
17622
17623	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17624	if test "x$PVM" = "x"; then
17625		PVM="0"
17626	fi
17627
17628cat >>confdefs.h <<_ACEOF
17629#define PACKAGE_VERSION_MINOR $PVM
17630_ACEOF
17631
17632	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17633	if test "x$PVP" = "x"; then
17634		PVP="0"
17635	fi
17636
17637cat >>confdefs.h <<_ACEOF
17638#define PACKAGE_VERSION_PATCHLEVEL $PVP
17639_ACEOF
17640
17641
17642
17643CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17644mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17645|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17646echo 'git directory not found: installing possibly empty changelog.' >&2)"
17647
17648
17649
17650
17651macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17652INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17653mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17654|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17655echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17656
17657
17658
17659
17660
17661
17662if test x$APP_MAN_SUFFIX = x    ; then
17663    APP_MAN_SUFFIX=1
17664fi
17665if test x$APP_MAN_DIR = x    ; then
17666    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17667fi
17668
17669if test x$LIB_MAN_SUFFIX = x    ; then
17670    LIB_MAN_SUFFIX=3
17671fi
17672if test x$LIB_MAN_DIR = x    ; then
17673    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17674fi
17675
17676if test x$FILE_MAN_SUFFIX = x    ; then
17677    case $host_os in
17678	# Solaris 2.0 - 11 use SysV man page sections
17679	solaris2.?|solaris2.1[01])	FILE_MAN_SUFFIX=4  ;;
17680	*)				FILE_MAN_SUFFIX=5  ;;
17681    esac
17682fi
17683if test x$FILE_MAN_DIR = x    ; then
17684    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17685fi
17686
17687if test x$MISC_MAN_SUFFIX = x    ; then
17688    case $host_os in
17689	# Solaris 2.0 - 11 use SysV man page sections
17690	solaris2.?|solaris2.1[01])	MISC_MAN_SUFFIX=5  ;;
17691	*)				MISC_MAN_SUFFIX=7  ;;
17692    esac
17693fi
17694if test x$MISC_MAN_DIR = x    ; then
17695    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17696fi
17697
17698if test x$DRIVER_MAN_SUFFIX = x    ; then
17699    case $host_os in
17700	# Solaris 2.0 - 11 use SysV man page sections
17701	solaris2.?|solaris2.1[01])	DRIVER_MAN_SUFFIX=7  ;;
17702	*)				DRIVER_MAN_SUFFIX=4  ;;
17703    esac
17704fi
17705if test x$DRIVER_MAN_DIR = x    ; then
17706    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17707fi
17708
17709if test x$ADMIN_MAN_SUFFIX = x    ; then
17710    case $host_os in
17711	# Solaris 2.0 - 11 use SysV man page sections
17712	solaris2.?|solaris2.1[01])	ADMIN_MAN_SUFFIX=1m ;;
17713	*)				ADMIN_MAN_SUFFIX=8  ;;
17714    esac
17715fi
17716if test x$ADMIN_MAN_DIR = x    ; then
17717    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17718fi
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734XORG_MAN_PAGE="X Version 11"
17735
17736MAN_SUBSTS="\
17737	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17738	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17739	-e 's|__xservername__|Xorg|g' \
17740	-e 's|__xconfigfile__|xorg.conf|g' \
17741	-e 's|__projectroot__|\$(prefix)|g' \
17742	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
17743	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17744	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17745	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17746	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17747	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17748	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17749
17750
17751
17752# Check whether --enable-silent-rules was given.
17753if test "${enable_silent_rules+set}" = set; then :
17754  enableval=$enable_silent_rules;
17755fi
17756
17757case $enable_silent_rules in # (((
17758  yes) AM_DEFAULT_VERBOSITY=0;;
17759   no) AM_DEFAULT_VERBOSITY=1;;
17760    *) AM_DEFAULT_VERBOSITY=0;;
17761esac
17762am_make=${MAKE-make}
17763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
17764$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
17765if ${am_cv_make_support_nested_variables+:} false; then :
17766  $as_echo_n "(cached) " >&6
17767else
17768  if $as_echo 'TRUE=$(BAR$(V))
17769BAR0=false
17770BAR1=true
17771V=1
17772am__doit:
17773	@$(TRUE)
17774.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
17775  am_cv_make_support_nested_variables=yes
17776else
17777  am_cv_make_support_nested_variables=no
17778fi
17779fi
17780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
17781$as_echo "$am_cv_make_support_nested_variables" >&6; }
17782if test $am_cv_make_support_nested_variables = yes; then
17783    AM_V='$(V)'
17784  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17785else
17786  AM_V=$AM_DEFAULT_VERBOSITY
17787  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17788fi
17789AM_BACKSLASH='\'
17790
17791
17792
17793# Check whether --enable-malloc0returnsnull was given.
17794if test "${enable_malloc0returnsnull+set}" = set; then :
17795  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
17796else
17797  MALLOC_ZERO_RETURNS_NULL=auto
17798fi
17799
17800
17801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
17802$as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
17803if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
17804if ${xorg_cv_malloc0_returns_null+:} false; then :
17805  $as_echo_n "(cached) " >&6
17806else
17807  if test "$cross_compiling" = yes; then :
17808  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17809$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17810as_fn_error $? "cannot run test program while cross compiling
17811See \`config.log' for more details" "$LINENO" 5; }
17812else
17813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17814/* end confdefs.h.  */
17815
17816#include <stdlib.h>
17817
17818int
17819main ()
17820{
17821
17822    char *m0, *r0, *c0, *p;
17823    m0 = malloc(0);
17824    p = malloc(10);
17825    r0 = realloc(p,0);
17826    c0 = calloc(0,10);
17827    exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
17828
17829  ;
17830  return 0;
17831}
17832_ACEOF
17833if ac_fn_c_try_run "$LINENO"; then :
17834  xorg_cv_malloc0_returns_null=yes
17835else
17836  xorg_cv_malloc0_returns_null=no
17837fi
17838rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17839  conftest.$ac_objext conftest.beam conftest.$ac_ext
17840fi
17841
17842fi
17843
17844MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
17845fi
17846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
17847$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
17848
17849if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
17850	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
17851	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
17852	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
17853else
17854	MALLOC_ZERO_CFLAGS=""
17855	XMALLOC_ZERO_CFLAGS=""
17856	XTMALLOC_ZERO_CFLAGS=""
17857fi
17858
17859
17860
17861
17862
17863
17864# Obtain compiler/linker options for depedencies
17865
17866pkg_failed=no
17867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XVMC" >&5
17868$as_echo_n "checking for XVMC... " >&6; }
17869
17870if test -n "$XVMC_CFLAGS"; then
17871    pkg_cv_XVMC_CFLAGS="$XVMC_CFLAGS"
17872 elif test -n "$PKG_CONFIG"; then
17873    if test -n "$PKG_CONFIG" && \
17874    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext xv xextproto videoproto\""; } >&5
17875  ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext xv xextproto videoproto") 2>&5
17876  ac_status=$?
17877  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17878  test $ac_status = 0; }; then
17879  pkg_cv_XVMC_CFLAGS=`$PKG_CONFIG --cflags "x11 >= 1.6 xext xv xextproto videoproto" 2>/dev/null`
17880		      test "x$?" != "x0" && pkg_failed=yes
17881else
17882  pkg_failed=yes
17883fi
17884 else
17885    pkg_failed=untried
17886fi
17887if test -n "$XVMC_LIBS"; then
17888    pkg_cv_XVMC_LIBS="$XVMC_LIBS"
17889 elif test -n "$PKG_CONFIG"; then
17890    if test -n "$PKG_CONFIG" && \
17891    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext xv xextproto videoproto\""; } >&5
17892  ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext xv xextproto videoproto") 2>&5
17893  ac_status=$?
17894  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17895  test $ac_status = 0; }; then
17896  pkg_cv_XVMC_LIBS=`$PKG_CONFIG --libs "x11 >= 1.6 xext xv xextproto videoproto" 2>/dev/null`
17897		      test "x$?" != "x0" && pkg_failed=yes
17898else
17899  pkg_failed=yes
17900fi
17901 else
17902    pkg_failed=untried
17903fi
17904
17905
17906
17907if test $pkg_failed = yes; then
17908   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17909$as_echo "no" >&6; }
17910
17911if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17912        _pkg_short_errors_supported=yes
17913else
17914        _pkg_short_errors_supported=no
17915fi
17916        if test $_pkg_short_errors_supported = yes; then
17917	        XVMC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 >= 1.6 xext xv xextproto videoproto" 2>&1`
17918        else
17919	        XVMC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 >= 1.6 xext xv xextproto videoproto" 2>&1`
17920        fi
17921	# Put the nasty error message in config.log where it belongs
17922	echo "$XVMC_PKG_ERRORS" >&5
17923
17924	as_fn_error $? "Package requirements (x11 >= 1.6 xext xv xextproto videoproto) were not met:
17925
17926$XVMC_PKG_ERRORS
17927
17928Consider adjusting the PKG_CONFIG_PATH environment variable if you
17929installed software in a non-standard prefix.
17930
17931Alternatively, you may set the environment variables XVMC_CFLAGS
17932and XVMC_LIBS to avoid the need to call pkg-config.
17933See the pkg-config man page for more details." "$LINENO" 5
17934elif test $pkg_failed = untried; then
17935     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17936$as_echo "no" >&6; }
17937	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17938$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17939as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17940is in your PATH or set the PKG_CONFIG environment variable to the full
17941path to pkg-config.
17942
17943Alternatively, you may set the environment variables XVMC_CFLAGS
17944and XVMC_LIBS to avoid the need to call pkg-config.
17945See the pkg-config man page for more details.
17946
17947To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17948See \`config.log' for more details" "$LINENO" 5; }
17949else
17950	XVMC_CFLAGS=$pkg_cv_XVMC_CFLAGS
17951	XVMC_LIBS=$pkg_cv_XVMC_LIBS
17952        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17953$as_echo "yes" >&6; }
17954
17955fi
17956
17957# Checks for library functions.
17958for ac_func in shmat
17959do :
17960  ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
17961if test "x$ac_cv_func_shmat" = xyes; then :
17962  cat >>confdefs.h <<_ACEOF
17963#define HAVE_SHMAT 1
17964_ACEOF
17965
17966fi
17967done
17968
17969
17970# Check to see if dlopen is in default libraries (like Solaris, which
17971# has it in libc), or if libdl is needed to get it.
17972ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17973if test "x$ac_cv_func_dlopen" = xyes; then :
17974
17975else
17976  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17977$as_echo_n "checking for dlopen in -ldl... " >&6; }
17978if ${ac_cv_lib_dl_dlopen+:} false; then :
17979  $as_echo_n "(cached) " >&6
17980else
17981  ac_check_lib_save_LIBS=$LIBS
17982LIBS="-ldl  $LIBS"
17983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17984/* end confdefs.h.  */
17985
17986/* Override any GCC internal prototype to avoid an error.
17987   Use char because int might match the return type of a GCC
17988   builtin and then its argument prototype would still apply.  */
17989#ifdef __cplusplus
17990extern "C"
17991#endif
17992char dlopen ();
17993int
17994main ()
17995{
17996return dlopen ();
17997  ;
17998  return 0;
17999}
18000_ACEOF
18001if ac_fn_c_try_link "$LINENO"; then :
18002  ac_cv_lib_dl_dlopen=yes
18003else
18004  ac_cv_lib_dl_dlopen=no
18005fi
18006rm -f core conftest.err conftest.$ac_objext \
18007    conftest$ac_exeext conftest.$ac_ext
18008LIBS=$ac_check_lib_save_LIBS
18009fi
18010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18011$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18012if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18013  DLOPEN_LIBS="-ldl"
18014fi
18015
18016fi
18017
18018
18019
18020# Allow checking code with lint, sparse, etc.
18021
18022
18023
18024
18025
18026# Check whether --with-lint was given.
18027if test "${with_lint+set}" = set; then :
18028  withval=$with_lint; use_lint=$withval
18029else
18030  use_lint=no
18031fi
18032
18033
18034# Obtain platform specific info like program name and options
18035# The lint program on FreeBSD and NetBSD is different from the one on Solaris
18036case $host_os in
18037  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
18038	lint_name=splint
18039	lint_options="-badflag"
18040	;;
18041  *freebsd* | *netbsd*)
18042	lint_name=lint
18043	lint_options="-u -b"
18044	;;
18045  *solaris*)
18046	lint_name=lint
18047	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
18048	;;
18049esac
18050
18051# Test for the presence of the program (either guessed by the code or spelled out by the user)
18052if test "x$use_lint" = x"yes" ; then
18053   # Extract the first word of "$lint_name", so it can be a program name with args.
18054set dummy $lint_name; ac_word=$2
18055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18056$as_echo_n "checking for $ac_word... " >&6; }
18057if ${ac_cv_path_LINT+:} false; then :
18058  $as_echo_n "(cached) " >&6
18059else
18060  case $LINT in
18061  [\\/]* | ?:[\\/]*)
18062  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
18063  ;;
18064  *)
18065  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18066for as_dir in $PATH
18067do
18068  IFS=$as_save_IFS
18069  test -z "$as_dir" && as_dir=.
18070    for ac_exec_ext in '' $ac_executable_extensions; do
18071  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18072    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
18073    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18074    break 2
18075  fi
18076done
18077  done
18078IFS=$as_save_IFS
18079
18080  ;;
18081esac
18082fi
18083LINT=$ac_cv_path_LINT
18084if test -n "$LINT"; then
18085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
18086$as_echo "$LINT" >&6; }
18087else
18088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18089$as_echo "no" >&6; }
18090fi
18091
18092
18093   if test "x$LINT" = "x"; then
18094        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
18095   fi
18096elif test "x$use_lint" = x"no" ; then
18097   if test "x$LINT" != "x"; then
18098      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
18099$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
18100   fi
18101else
18102   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
18103fi
18104
18105# User supplied flags override default flags
18106if test "x$LINT_FLAGS" != "x"; then
18107   lint_options=$LINT_FLAGS
18108fi
18109
18110LINT_FLAGS=$lint_options
18111
18112 if test "x$LINT" != x; then
18113  LINT_TRUE=
18114  LINT_FALSE='#'
18115else
18116  LINT_TRUE='#'
18117  LINT_FALSE=
18118fi
18119
18120
18121
18122LINT_FLAGS="${LINT_FLAGS} ${XVMC_CFLAGS}"
18123
18124ac_config_files="$ac_config_files Makefile include/Makefile include/X11/Makefile include/X11/extensions/Makefile src/Makefile wrapper/Makefile xvmc.pc"
18125
18126cat >confcache <<\_ACEOF
18127# This file is a shell script that caches the results of configure
18128# tests run on this system so they can be shared between configure
18129# scripts and configure runs, see configure's option --config-cache.
18130# It is not useful on other systems.  If it contains results you don't
18131# want to keep, you may remove or edit it.
18132#
18133# config.status only pays attention to the cache file if you give it
18134# the --recheck option to rerun configure.
18135#
18136# `ac_cv_env_foo' variables (set or unset) will be overridden when
18137# loading this file, other *unset* `ac_cv_foo' will be assigned the
18138# following values.
18139
18140_ACEOF
18141
18142# The following way of writing the cache mishandles newlines in values,
18143# but we know of no workaround that is simple, portable, and efficient.
18144# So, we kill variables containing newlines.
18145# Ultrix sh set writes to stderr and can't be redirected directly,
18146# and sets the high bit in the cache file unless we assign to the vars.
18147(
18148  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18149    eval ac_val=\$$ac_var
18150    case $ac_val in #(
18151    *${as_nl}*)
18152      case $ac_var in #(
18153      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18154$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18155      esac
18156      case $ac_var in #(
18157      _ | IFS | as_nl) ;; #(
18158      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18159      *) { eval $ac_var=; unset $ac_var;} ;;
18160      esac ;;
18161    esac
18162  done
18163
18164  (set) 2>&1 |
18165    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18166    *${as_nl}ac_space=\ *)
18167      # `set' does not quote correctly, so add quotes: double-quote
18168      # substitution turns \\\\ into \\, and sed turns \\ into \.
18169      sed -n \
18170	"s/'/'\\\\''/g;
18171	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18172      ;; #(
18173    *)
18174      # `set' quotes correctly as required by POSIX, so do not add quotes.
18175      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18176      ;;
18177    esac |
18178    sort
18179) |
18180  sed '
18181     /^ac_cv_env_/b end
18182     t clear
18183     :clear
18184     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18185     t end
18186     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18187     :end' >>confcache
18188if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18189  if test -w "$cache_file"; then
18190    if test "x$cache_file" != "x/dev/null"; then
18191      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18192$as_echo "$as_me: updating cache $cache_file" >&6;}
18193      if test ! -f "$cache_file" || test -h "$cache_file"; then
18194	cat confcache >"$cache_file"
18195      else
18196        case $cache_file in #(
18197        */* | ?:*)
18198	  mv -f confcache "$cache_file"$$ &&
18199	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18200        *)
18201	  mv -f confcache "$cache_file" ;;
18202	esac
18203      fi
18204    fi
18205  else
18206    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18207$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18208  fi
18209fi
18210rm -f confcache
18211
18212test "x$prefix" = xNONE && prefix=$ac_default_prefix
18213# Let make expand exec_prefix.
18214test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18215
18216DEFS=-DHAVE_CONFIG_H
18217
18218ac_libobjs=
18219ac_ltlibobjs=
18220U=
18221for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18222  # 1. Remove the extension, and $U if already installed.
18223  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18224  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18225  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18226  #    will be set to the directory where LIBOBJS objects are built.
18227  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18228  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18229done
18230LIBOBJS=$ac_libobjs
18231
18232LTLIBOBJS=$ac_ltlibobjs
18233
18234
18235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18236$as_echo_n "checking that generated files are newer than configure... " >&6; }
18237   if test -n "$am_sleep_pid"; then
18238     # Hide warnings about reused PIDs.
18239     wait $am_sleep_pid 2>/dev/null
18240   fi
18241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18242$as_echo "done" >&6; }
18243 if test -n "$EXEEXT"; then
18244  am__EXEEXT_TRUE=
18245  am__EXEEXT_FALSE='#'
18246else
18247  am__EXEEXT_TRUE='#'
18248  am__EXEEXT_FALSE=
18249fi
18250
18251if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18252  as_fn_error $? "conditional \"AMDEP\" was never defined.
18253Usually this means the macro was only invoked conditionally." "$LINENO" 5
18254fi
18255if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18256  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18257Usually this means the macro was only invoked conditionally." "$LINENO" 5
18258fi
18259if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
18260  as_fn_error $? "conditional \"LINT\" was never defined.
18261Usually this means the macro was only invoked conditionally." "$LINENO" 5
18262fi
18263
18264: "${CONFIG_STATUS=./config.status}"
18265ac_write_fail=0
18266ac_clean_files_save=$ac_clean_files
18267ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18268{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18269$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18270as_write_fail=0
18271cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18272#! $SHELL
18273# Generated by $as_me.
18274# Run this file to recreate the current configuration.
18275# Compiler output produced by configure, useful for debugging
18276# configure, is in config.log if it exists.
18277
18278debug=false
18279ac_cs_recheck=false
18280ac_cs_silent=false
18281
18282SHELL=\${CONFIG_SHELL-$SHELL}
18283export SHELL
18284_ASEOF
18285cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18286## -------------------- ##
18287## M4sh Initialization. ##
18288## -------------------- ##
18289
18290# Be more Bourne compatible
18291DUALCASE=1; export DUALCASE # for MKS sh
18292if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18293  emulate sh
18294  NULLCMD=:
18295  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18296  # is contrary to our usage.  Disable this feature.
18297  alias -g '${1+"$@"}'='"$@"'
18298  setopt NO_GLOB_SUBST
18299else
18300  case `(set -o) 2>/dev/null` in #(
18301  *posix*) :
18302    set -o posix ;; #(
18303  *) :
18304     ;;
18305esac
18306fi
18307
18308
18309as_nl='
18310'
18311export as_nl
18312# Printing a long string crashes Solaris 7 /usr/bin/printf.
18313as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18314as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18315as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18316# Prefer a ksh shell builtin over an external printf program on Solaris,
18317# but without wasting forks for bash or zsh.
18318if test -z "$BASH_VERSION$ZSH_VERSION" \
18319    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18320  as_echo='print -r --'
18321  as_echo_n='print -rn --'
18322elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18323  as_echo='printf %s\n'
18324  as_echo_n='printf %s'
18325else
18326  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18327    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18328    as_echo_n='/usr/ucb/echo -n'
18329  else
18330    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18331    as_echo_n_body='eval
18332      arg=$1;
18333      case $arg in #(
18334      *"$as_nl"*)
18335	expr "X$arg" : "X\\(.*\\)$as_nl";
18336	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18337      esac;
18338      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18339    '
18340    export as_echo_n_body
18341    as_echo_n='sh -c $as_echo_n_body as_echo'
18342  fi
18343  export as_echo_body
18344  as_echo='sh -c $as_echo_body as_echo'
18345fi
18346
18347# The user is always right.
18348if test "${PATH_SEPARATOR+set}" != set; then
18349  PATH_SEPARATOR=:
18350  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18351    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18352      PATH_SEPARATOR=';'
18353  }
18354fi
18355
18356
18357# IFS
18358# We need space, tab and new line, in precisely that order.  Quoting is
18359# there to prevent editors from complaining about space-tab.
18360# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18361# splitting by setting IFS to empty value.)
18362IFS=" ""	$as_nl"
18363
18364# Find who we are.  Look in the path if we contain no directory separator.
18365as_myself=
18366case $0 in #((
18367  *[\\/]* ) as_myself=$0 ;;
18368  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18369for as_dir in $PATH
18370do
18371  IFS=$as_save_IFS
18372  test -z "$as_dir" && as_dir=.
18373    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18374  done
18375IFS=$as_save_IFS
18376
18377     ;;
18378esac
18379# We did not find ourselves, most probably we were run as `sh COMMAND'
18380# in which case we are not to be found in the path.
18381if test "x$as_myself" = x; then
18382  as_myself=$0
18383fi
18384if test ! -f "$as_myself"; then
18385  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18386  exit 1
18387fi
18388
18389# Unset variables that we do not need and which cause bugs (e.g. in
18390# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18391# suppresses any "Segmentation fault" message there.  '((' could
18392# trigger a bug in pdksh 5.2.14.
18393for as_var in BASH_ENV ENV MAIL MAILPATH
18394do eval test x\${$as_var+set} = xset \
18395  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18396done
18397PS1='$ '
18398PS2='> '
18399PS4='+ '
18400
18401# NLS nuisances.
18402LC_ALL=C
18403export LC_ALL
18404LANGUAGE=C
18405export LANGUAGE
18406
18407# CDPATH.
18408(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18409
18410
18411# as_fn_error STATUS ERROR [LINENO LOG_FD]
18412# ----------------------------------------
18413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18415# script with STATUS, using 1 if that was 0.
18416as_fn_error ()
18417{
18418  as_status=$1; test $as_status -eq 0 && as_status=1
18419  if test "$4"; then
18420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18422  fi
18423  $as_echo "$as_me: error: $2" >&2
18424  as_fn_exit $as_status
18425} # as_fn_error
18426
18427
18428# as_fn_set_status STATUS
18429# -----------------------
18430# Set $? to STATUS, without forking.
18431as_fn_set_status ()
18432{
18433  return $1
18434} # as_fn_set_status
18435
18436# as_fn_exit STATUS
18437# -----------------
18438# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18439as_fn_exit ()
18440{
18441  set +e
18442  as_fn_set_status $1
18443  exit $1
18444} # as_fn_exit
18445
18446# as_fn_unset VAR
18447# ---------------
18448# Portably unset VAR.
18449as_fn_unset ()
18450{
18451  { eval $1=; unset $1;}
18452}
18453as_unset=as_fn_unset
18454# as_fn_append VAR VALUE
18455# ----------------------
18456# Append the text in VALUE to the end of the definition contained in VAR. Take
18457# advantage of any shell optimizations that allow amortized linear growth over
18458# repeated appends, instead of the typical quadratic growth present in naive
18459# implementations.
18460if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18461  eval 'as_fn_append ()
18462  {
18463    eval $1+=\$2
18464  }'
18465else
18466  as_fn_append ()
18467  {
18468    eval $1=\$$1\$2
18469  }
18470fi # as_fn_append
18471
18472# as_fn_arith ARG...
18473# ------------------
18474# Perform arithmetic evaluation on the ARGs, and store the result in the
18475# global $as_val. Take advantage of shells that can avoid forks. The arguments
18476# must be portable across $(()) and expr.
18477if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18478  eval 'as_fn_arith ()
18479  {
18480    as_val=$(( $* ))
18481  }'
18482else
18483  as_fn_arith ()
18484  {
18485    as_val=`expr "$@" || test $? -eq 1`
18486  }
18487fi # as_fn_arith
18488
18489
18490if expr a : '\(a\)' >/dev/null 2>&1 &&
18491   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18492  as_expr=expr
18493else
18494  as_expr=false
18495fi
18496
18497if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18498  as_basename=basename
18499else
18500  as_basename=false
18501fi
18502
18503if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18504  as_dirname=dirname
18505else
18506  as_dirname=false
18507fi
18508
18509as_me=`$as_basename -- "$0" ||
18510$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18511	 X"$0" : 'X\(//\)$' \| \
18512	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18513$as_echo X/"$0" |
18514    sed '/^.*\/\([^/][^/]*\)\/*$/{
18515	    s//\1/
18516	    q
18517	  }
18518	  /^X\/\(\/\/\)$/{
18519	    s//\1/
18520	    q
18521	  }
18522	  /^X\/\(\/\).*/{
18523	    s//\1/
18524	    q
18525	  }
18526	  s/.*/./; q'`
18527
18528# Avoid depending upon Character Ranges.
18529as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18530as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18531as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18532as_cr_digits='0123456789'
18533as_cr_alnum=$as_cr_Letters$as_cr_digits
18534
18535ECHO_C= ECHO_N= ECHO_T=
18536case `echo -n x` in #(((((
18537-n*)
18538  case `echo 'xy\c'` in
18539  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18540  xy)  ECHO_C='\c';;
18541  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18542       ECHO_T='	';;
18543  esac;;
18544*)
18545  ECHO_N='-n';;
18546esac
18547
18548rm -f conf$$ conf$$.exe conf$$.file
18549if test -d conf$$.dir; then
18550  rm -f conf$$.dir/conf$$.file
18551else
18552  rm -f conf$$.dir
18553  mkdir conf$$.dir 2>/dev/null
18554fi
18555if (echo >conf$$.file) 2>/dev/null; then
18556  if ln -s conf$$.file conf$$ 2>/dev/null; then
18557    as_ln_s='ln -s'
18558    # ... but there are two gotchas:
18559    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18560    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18561    # In both cases, we have to default to `cp -pR'.
18562    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18563      as_ln_s='cp -pR'
18564  elif ln conf$$.file conf$$ 2>/dev/null; then
18565    as_ln_s=ln
18566  else
18567    as_ln_s='cp -pR'
18568  fi
18569else
18570  as_ln_s='cp -pR'
18571fi
18572rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18573rmdir conf$$.dir 2>/dev/null
18574
18575
18576# as_fn_mkdir_p
18577# -------------
18578# Create "$as_dir" as a directory, including parents if necessary.
18579as_fn_mkdir_p ()
18580{
18581
18582  case $as_dir in #(
18583  -*) as_dir=./$as_dir;;
18584  esac
18585  test -d "$as_dir" || eval $as_mkdir_p || {
18586    as_dirs=
18587    while :; do
18588      case $as_dir in #(
18589      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18590      *) as_qdir=$as_dir;;
18591      esac
18592      as_dirs="'$as_qdir' $as_dirs"
18593      as_dir=`$as_dirname -- "$as_dir" ||
18594$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18595	 X"$as_dir" : 'X\(//\)[^/]' \| \
18596	 X"$as_dir" : 'X\(//\)$' \| \
18597	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18598$as_echo X"$as_dir" |
18599    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18600	    s//\1/
18601	    q
18602	  }
18603	  /^X\(\/\/\)[^/].*/{
18604	    s//\1/
18605	    q
18606	  }
18607	  /^X\(\/\/\)$/{
18608	    s//\1/
18609	    q
18610	  }
18611	  /^X\(\/\).*/{
18612	    s//\1/
18613	    q
18614	  }
18615	  s/.*/./; q'`
18616      test -d "$as_dir" && break
18617    done
18618    test -z "$as_dirs" || eval "mkdir $as_dirs"
18619  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18620
18621
18622} # as_fn_mkdir_p
18623if mkdir -p . 2>/dev/null; then
18624  as_mkdir_p='mkdir -p "$as_dir"'
18625else
18626  test -d ./-p && rmdir ./-p
18627  as_mkdir_p=false
18628fi
18629
18630
18631# as_fn_executable_p FILE
18632# -----------------------
18633# Test if FILE is an executable regular file.
18634as_fn_executable_p ()
18635{
18636  test -f "$1" && test -x "$1"
18637} # as_fn_executable_p
18638as_test_x='test -x'
18639as_executable_p=as_fn_executable_p
18640
18641# Sed expression to map a string onto a valid CPP name.
18642as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18643
18644# Sed expression to map a string onto a valid variable name.
18645as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18646
18647
18648exec 6>&1
18649## ----------------------------------- ##
18650## Main body of $CONFIG_STATUS script. ##
18651## ----------------------------------- ##
18652_ASEOF
18653test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18654
18655cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18656# Save the log message, to keep $0 and so on meaningful, and to
18657# report actual input values of CONFIG_FILES etc. instead of their
18658# values after options handling.
18659ac_log="
18660This file was extended by libXvMC $as_me 1.0.10, which was
18661generated by GNU Autoconf 2.69.  Invocation command line was
18662
18663  CONFIG_FILES    = $CONFIG_FILES
18664  CONFIG_HEADERS  = $CONFIG_HEADERS
18665  CONFIG_LINKS    = $CONFIG_LINKS
18666  CONFIG_COMMANDS = $CONFIG_COMMANDS
18667  $ $0 $@
18668
18669on `(hostname || uname -n) 2>/dev/null | sed 1q`
18670"
18671
18672_ACEOF
18673
18674case $ac_config_files in *"
18675"*) set x $ac_config_files; shift; ac_config_files=$*;;
18676esac
18677
18678case $ac_config_headers in *"
18679"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18680esac
18681
18682
18683cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18684# Files that config.status was made for.
18685config_files="$ac_config_files"
18686config_headers="$ac_config_headers"
18687config_commands="$ac_config_commands"
18688
18689_ACEOF
18690
18691cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18692ac_cs_usage="\
18693\`$as_me' instantiates files and other configuration actions
18694from templates according to the current configuration.  Unless the files
18695and actions are specified as TAGs, all are instantiated by default.
18696
18697Usage: $0 [OPTION]... [TAG]...
18698
18699  -h, --help       print this help, then exit
18700  -V, --version    print version number and configuration settings, then exit
18701      --config     print configuration, then exit
18702  -q, --quiet, --silent
18703                   do not print progress messages
18704  -d, --debug      don't remove temporary files
18705      --recheck    update $as_me by reconfiguring in the same conditions
18706      --file=FILE[:TEMPLATE]
18707                   instantiate the configuration file FILE
18708      --header=FILE[:TEMPLATE]
18709                   instantiate the configuration header FILE
18710
18711Configuration files:
18712$config_files
18713
18714Configuration headers:
18715$config_headers
18716
18717Configuration commands:
18718$config_commands
18719
18720Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18721
18722_ACEOF
18723cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18724ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18725ac_cs_version="\\
18726libXvMC config.status 1.0.10
18727configured by $0, generated by GNU Autoconf 2.69,
18728  with options \\"\$ac_cs_config\\"
18729
18730Copyright (C) 2012 Free Software Foundation, Inc.
18731This config.status script is free software; the Free Software Foundation
18732gives unlimited permission to copy, distribute and modify it."
18733
18734ac_pwd='$ac_pwd'
18735srcdir='$srcdir'
18736INSTALL='$INSTALL'
18737MKDIR_P='$MKDIR_P'
18738AWK='$AWK'
18739test -n "\$AWK" || AWK=awk
18740_ACEOF
18741
18742cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18743# The default lists apply if the user does not specify any file.
18744ac_need_defaults=:
18745while test $# != 0
18746do
18747  case $1 in
18748  --*=?*)
18749    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18750    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18751    ac_shift=:
18752    ;;
18753  --*=)
18754    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18755    ac_optarg=
18756    ac_shift=:
18757    ;;
18758  *)
18759    ac_option=$1
18760    ac_optarg=$2
18761    ac_shift=shift
18762    ;;
18763  esac
18764
18765  case $ac_option in
18766  # Handling of the options.
18767  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18768    ac_cs_recheck=: ;;
18769  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18770    $as_echo "$ac_cs_version"; exit ;;
18771  --config | --confi | --conf | --con | --co | --c )
18772    $as_echo "$ac_cs_config"; exit ;;
18773  --debug | --debu | --deb | --de | --d | -d )
18774    debug=: ;;
18775  --file | --fil | --fi | --f )
18776    $ac_shift
18777    case $ac_optarg in
18778    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18779    '') as_fn_error $? "missing file argument" ;;
18780    esac
18781    as_fn_append CONFIG_FILES " '$ac_optarg'"
18782    ac_need_defaults=false;;
18783  --header | --heade | --head | --hea )
18784    $ac_shift
18785    case $ac_optarg in
18786    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18787    esac
18788    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18789    ac_need_defaults=false;;
18790  --he | --h)
18791    # Conflict between --help and --header
18792    as_fn_error $? "ambiguous option: \`$1'
18793Try \`$0 --help' for more information.";;
18794  --help | --hel | -h )
18795    $as_echo "$ac_cs_usage"; exit ;;
18796  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18797  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18798    ac_cs_silent=: ;;
18799
18800  # This is an error.
18801  -*) as_fn_error $? "unrecognized option: \`$1'
18802Try \`$0 --help' for more information." ;;
18803
18804  *) as_fn_append ac_config_targets " $1"
18805     ac_need_defaults=false ;;
18806
18807  esac
18808  shift
18809done
18810
18811ac_configure_extra_args=
18812
18813if $ac_cs_silent; then
18814  exec 6>/dev/null
18815  ac_configure_extra_args="$ac_configure_extra_args --silent"
18816fi
18817
18818_ACEOF
18819cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18820if \$ac_cs_recheck; then
18821  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18822  shift
18823  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18824  CONFIG_SHELL='$SHELL'
18825  export CONFIG_SHELL
18826  exec "\$@"
18827fi
18828
18829_ACEOF
18830cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18831exec 5>>config.log
18832{
18833  echo
18834  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18835## Running $as_me. ##
18836_ASBOX
18837  $as_echo "$ac_log"
18838} >&5
18839
18840_ACEOF
18841cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18842#
18843# INIT-COMMANDS
18844#
18845AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18846
18847
18848# The HP-UX ksh and POSIX shell print the target directory to stdout
18849# if CDPATH is set.
18850(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18851
18852sed_quote_subst='$sed_quote_subst'
18853double_quote_subst='$double_quote_subst'
18854delay_variable_subst='$delay_variable_subst'
18855macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18856macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18857enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18858enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18859pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18860enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18861SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18862ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18863PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18864host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18865host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18866host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18867build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18868build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18869build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18870SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18871Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18872GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18873EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18874FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18875LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18876NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18877LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18878max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18879ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18880exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18881lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18882lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18883lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18884lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18885lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18886reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18887reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18888OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18889deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18890file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18891file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18892want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18893DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18894sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18895AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18896AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18897archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18898STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18899RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18900old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18901old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18902old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18903lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18904CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18905CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18906compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18907GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18908lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18909lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18910lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18911lt_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"`'
18912nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18913lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18914objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18915MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18916lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18917lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18918lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18919lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18920lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18921need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18922MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18923DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18924NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18925LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18926OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18927OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18928libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18929shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18930extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18931archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18932enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18933export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18934whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18935compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18936old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18937old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18938archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18939archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18940module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18941module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18942with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18943allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18944no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18945hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18946hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18947hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18948hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18949hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18950hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18951hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18952inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18953link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18954always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18955export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18956exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18957include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18958prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18959postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18960file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18961variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18962need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18963need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18964version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18965runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18966shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18967shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18968libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18969library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18970soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18971install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18972postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18973postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18974finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18975finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18976hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18977sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18978sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18979hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18980enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18981enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18982enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18983old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18984striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18985
18986LTCC='$LTCC'
18987LTCFLAGS='$LTCFLAGS'
18988compiler='$compiler_DEFAULT'
18989
18990# A function that is used when there is no print builtin or printf.
18991func_fallback_echo ()
18992{
18993  eval 'cat <<_LTECHO_EOF
18994\$1
18995_LTECHO_EOF'
18996}
18997
18998# Quote evaled strings.
18999for var in SHELL \
19000ECHO \
19001PATH_SEPARATOR \
19002SED \
19003GREP \
19004EGREP \
19005FGREP \
19006LD \
19007NM \
19008LN_S \
19009lt_SP2NL \
19010lt_NL2SP \
19011reload_flag \
19012OBJDUMP \
19013deplibs_check_method \
19014file_magic_cmd \
19015file_magic_glob \
19016want_nocaseglob \
19017DLLTOOL \
19018sharedlib_from_linklib_cmd \
19019AR \
19020AR_FLAGS \
19021archiver_list_spec \
19022STRIP \
19023RANLIB \
19024CC \
19025CFLAGS \
19026compiler \
19027lt_cv_sys_global_symbol_pipe \
19028lt_cv_sys_global_symbol_to_cdecl \
19029lt_cv_sys_global_symbol_to_c_name_address \
19030lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19031nm_file_list_spec \
19032lt_prog_compiler_no_builtin_flag \
19033lt_prog_compiler_pic \
19034lt_prog_compiler_wl \
19035lt_prog_compiler_static \
19036lt_cv_prog_compiler_c_o \
19037need_locks \
19038MANIFEST_TOOL \
19039DSYMUTIL \
19040NMEDIT \
19041LIPO \
19042OTOOL \
19043OTOOL64 \
19044shrext_cmds \
19045export_dynamic_flag_spec \
19046whole_archive_flag_spec \
19047compiler_needs_object \
19048with_gnu_ld \
19049allow_undefined_flag \
19050no_undefined_flag \
19051hardcode_libdir_flag_spec \
19052hardcode_libdir_separator \
19053exclude_expsyms \
19054include_expsyms \
19055file_list_spec \
19056variables_saved_for_relink \
19057libname_spec \
19058library_names_spec \
19059soname_spec \
19060install_override_mode \
19061finish_eval \
19062old_striplib \
19063striplib; do
19064    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19065    *[\\\\\\\`\\"\\\$]*)
19066      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19067      ;;
19068    *)
19069      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19070      ;;
19071    esac
19072done
19073
19074# Double-quote double-evaled strings.
19075for var in reload_cmds \
19076old_postinstall_cmds \
19077old_postuninstall_cmds \
19078old_archive_cmds \
19079extract_expsyms_cmds \
19080old_archive_from_new_cmds \
19081old_archive_from_expsyms_cmds \
19082archive_cmds \
19083archive_expsym_cmds \
19084module_cmds \
19085module_expsym_cmds \
19086export_symbols_cmds \
19087prelink_cmds \
19088postlink_cmds \
19089postinstall_cmds \
19090postuninstall_cmds \
19091finish_cmds \
19092sys_lib_search_path_spec \
19093sys_lib_dlsearch_path_spec; do
19094    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19095    *[\\\\\\\`\\"\\\$]*)
19096      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19097      ;;
19098    *)
19099      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19100      ;;
19101    esac
19102done
19103
19104ac_aux_dir='$ac_aux_dir'
19105xsi_shell='$xsi_shell'
19106lt_shell_append='$lt_shell_append'
19107
19108# See if we are running on zsh, and set the options which allow our
19109# commands through without removal of \ escapes INIT.
19110if test -n "\${ZSH_VERSION+set}" ; then
19111   setopt NO_GLOB_SUBST
19112fi
19113
19114
19115    PACKAGE='$PACKAGE'
19116    VERSION='$VERSION'
19117    TIMESTAMP='$TIMESTAMP'
19118    RM='$RM'
19119    ofile='$ofile'
19120
19121
19122
19123
19124_ACEOF
19125
19126cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19127
19128# Handling of arguments.
19129for ac_config_target in $ac_config_targets
19130do
19131  case $ac_config_target in
19132    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19133    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19134    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19135    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19136    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19137    "include/X11/Makefile") CONFIG_FILES="$CONFIG_FILES include/X11/Makefile" ;;
19138    "include/X11/extensions/Makefile") CONFIG_FILES="$CONFIG_FILES include/X11/extensions/Makefile" ;;
19139    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19140    "wrapper/Makefile") CONFIG_FILES="$CONFIG_FILES wrapper/Makefile" ;;
19141    "xvmc.pc") CONFIG_FILES="$CONFIG_FILES xvmc.pc" ;;
19142
19143  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19144  esac
19145done
19146
19147
19148# If the user did not use the arguments to specify the items to instantiate,
19149# then the envvar interface is used.  Set only those that are not.
19150# We use the long form for the default assignment because of an extremely
19151# bizarre bug on SunOS 4.1.3.
19152if $ac_need_defaults; then
19153  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19154  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19155  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19156fi
19157
19158# Have a temporary directory for convenience.  Make it in the build tree
19159# simply because there is no reason against having it here, and in addition,
19160# creating and moving files from /tmp can sometimes cause problems.
19161# Hook for its removal unless debugging.
19162# Note that there is a small window in which the directory will not be cleaned:
19163# after its creation but before its name has been assigned to `$tmp'.
19164$debug ||
19165{
19166  tmp= ac_tmp=
19167  trap 'exit_status=$?
19168  : "${ac_tmp:=$tmp}"
19169  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19170' 0
19171  trap 'as_fn_exit 1' 1 2 13 15
19172}
19173# Create a (secure) tmp directory for tmp files.
19174
19175{
19176  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19177  test -d "$tmp"
19178}  ||
19179{
19180  tmp=./conf$$-$RANDOM
19181  (umask 077 && mkdir "$tmp")
19182} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19183ac_tmp=$tmp
19184
19185# Set up the scripts for CONFIG_FILES section.
19186# No need to generate them if there are no CONFIG_FILES.
19187# This happens for instance with `./config.status config.h'.
19188if test -n "$CONFIG_FILES"; then
19189
19190
19191ac_cr=`echo X | tr X '\015'`
19192# On cygwin, bash can eat \r inside `` if the user requested igncr.
19193# But we know of no other shell where ac_cr would be empty at this
19194# point, so we can use a bashism as a fallback.
19195if test "x$ac_cr" = x; then
19196  eval ac_cr=\$\'\\r\'
19197fi
19198ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19199if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19200  ac_cs_awk_cr='\\r'
19201else
19202  ac_cs_awk_cr=$ac_cr
19203fi
19204
19205echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19206_ACEOF
19207
19208
19209{
19210  echo "cat >conf$$subs.awk <<_ACEOF" &&
19211  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19212  echo "_ACEOF"
19213} >conf$$subs.sh ||
19214  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19215ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19216ac_delim='%!_!# '
19217for ac_last_try in false false false false false :; do
19218  . ./conf$$subs.sh ||
19219    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19220
19221  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19222  if test $ac_delim_n = $ac_delim_num; then
19223    break
19224  elif $ac_last_try; then
19225    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19226  else
19227    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19228  fi
19229done
19230rm -f conf$$subs.sh
19231
19232cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19233cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19234_ACEOF
19235sed -n '
19236h
19237s/^/S["/; s/!.*/"]=/
19238p
19239g
19240s/^[^!]*!//
19241:repl
19242t repl
19243s/'"$ac_delim"'$//
19244t delim
19245:nl
19246h
19247s/\(.\{148\}\)..*/\1/
19248t more1
19249s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19250p
19251n
19252b repl
19253:more1
19254s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19255p
19256g
19257s/.\{148\}//
19258t nl
19259:delim
19260h
19261s/\(.\{148\}\)..*/\1/
19262t more2
19263s/["\\]/\\&/g; s/^/"/; s/$/"/
19264p
19265b
19266:more2
19267s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19268p
19269g
19270s/.\{148\}//
19271t delim
19272' <conf$$subs.awk | sed '
19273/^[^""]/{
19274  N
19275  s/\n//
19276}
19277' >>$CONFIG_STATUS || ac_write_fail=1
19278rm -f conf$$subs.awk
19279cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19280_ACAWK
19281cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19282  for (key in S) S_is_set[key] = 1
19283  FS = ""
19284
19285}
19286{
19287  line = $ 0
19288  nfields = split(line, field, "@")
19289  substed = 0
19290  len = length(field[1])
19291  for (i = 2; i < nfields; i++) {
19292    key = field[i]
19293    keylen = length(key)
19294    if (S_is_set[key]) {
19295      value = S[key]
19296      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19297      len += length(value) + length(field[++i])
19298      substed = 1
19299    } else
19300      len += 1 + keylen
19301  }
19302
19303  print line
19304}
19305
19306_ACAWK
19307_ACEOF
19308cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19309if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19310  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19311else
19312  cat
19313fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19314  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19315_ACEOF
19316
19317# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19318# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19319# trailing colons and then remove the whole line if VPATH becomes empty
19320# (actually we leave an empty line to preserve line numbers).
19321if test "x$srcdir" = x.; then
19322  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19323h
19324s///
19325s/^/:/
19326s/[	 ]*$/:/
19327s/:\$(srcdir):/:/g
19328s/:\${srcdir}:/:/g
19329s/:@srcdir@:/:/g
19330s/^:*//
19331s/:*$//
19332x
19333s/\(=[	 ]*\).*/\1/
19334G
19335s/\n//
19336s/^[^=]*=[	 ]*$//
19337}'
19338fi
19339
19340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19341fi # test -n "$CONFIG_FILES"
19342
19343# Set up the scripts for CONFIG_HEADERS section.
19344# No need to generate them if there are no CONFIG_HEADERS.
19345# This happens for instance with `./config.status Makefile'.
19346if test -n "$CONFIG_HEADERS"; then
19347cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19348BEGIN {
19349_ACEOF
19350
19351# Transform confdefs.h into an awk script `defines.awk', embedded as
19352# here-document in config.status, that substitutes the proper values into
19353# config.h.in to produce config.h.
19354
19355# Create a delimiter string that does not exist in confdefs.h, to ease
19356# handling of long lines.
19357ac_delim='%!_!# '
19358for ac_last_try in false false :; do
19359  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19360  if test -z "$ac_tt"; then
19361    break
19362  elif $ac_last_try; then
19363    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19364  else
19365    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19366  fi
19367done
19368
19369# For the awk script, D is an array of macro values keyed by name,
19370# likewise P contains macro parameters if any.  Preserve backslash
19371# newline sequences.
19372
19373ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19374sed -n '
19375s/.\{148\}/&'"$ac_delim"'/g
19376t rset
19377:rset
19378s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19379t def
19380d
19381:def
19382s/\\$//
19383t bsnl
19384s/["\\]/\\&/g
19385s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19386D["\1"]=" \3"/p
19387s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19388d
19389:bsnl
19390s/["\\]/\\&/g
19391s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19392D["\1"]=" \3\\\\\\n"\\/p
19393t cont
19394s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19395t cont
19396d
19397:cont
19398n
19399s/.\{148\}/&'"$ac_delim"'/g
19400t clear
19401:clear
19402s/\\$//
19403t bsnlc
19404s/["\\]/\\&/g; s/^/"/; s/$/"/p
19405d
19406:bsnlc
19407s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19408b cont
19409' <confdefs.h | sed '
19410s/'"$ac_delim"'/"\\\
19411"/g' >>$CONFIG_STATUS || ac_write_fail=1
19412
19413cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19414  for (key in D) D_is_set[key] = 1
19415  FS = ""
19416}
19417/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19418  line = \$ 0
19419  split(line, arg, " ")
19420  if (arg[1] == "#") {
19421    defundef = arg[2]
19422    mac1 = arg[3]
19423  } else {
19424    defundef = substr(arg[1], 2)
19425    mac1 = arg[2]
19426  }
19427  split(mac1, mac2, "(") #)
19428  macro = mac2[1]
19429  prefix = substr(line, 1, index(line, defundef) - 1)
19430  if (D_is_set[macro]) {
19431    # Preserve the white space surrounding the "#".
19432    print prefix "define", macro P[macro] D[macro]
19433    next
19434  } else {
19435    # Replace #undef with comments.  This is necessary, for example,
19436    # in the case of _POSIX_SOURCE, which is predefined and required
19437    # on some systems where configure will not decide to define it.
19438    if (defundef == "undef") {
19439      print "/*", prefix defundef, macro, "*/"
19440      next
19441    }
19442  }
19443}
19444{ print }
19445_ACAWK
19446_ACEOF
19447cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19448  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19449fi # test -n "$CONFIG_HEADERS"
19450
19451
19452eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19453shift
19454for ac_tag
19455do
19456  case $ac_tag in
19457  :[FHLC]) ac_mode=$ac_tag; continue;;
19458  esac
19459  case $ac_mode$ac_tag in
19460  :[FHL]*:*);;
19461  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19462  :[FH]-) ac_tag=-:-;;
19463  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19464  esac
19465  ac_save_IFS=$IFS
19466  IFS=:
19467  set x $ac_tag
19468  IFS=$ac_save_IFS
19469  shift
19470  ac_file=$1
19471  shift
19472
19473  case $ac_mode in
19474  :L) ac_source=$1;;
19475  :[FH])
19476    ac_file_inputs=
19477    for ac_f
19478    do
19479      case $ac_f in
19480      -) ac_f="$ac_tmp/stdin";;
19481      *) # Look for the file first in the build tree, then in the source tree
19482	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19483	 # because $ac_f cannot contain `:'.
19484	 test -f "$ac_f" ||
19485	   case $ac_f in
19486	   [\\/$]*) false;;
19487	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19488	   esac ||
19489	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19490      esac
19491      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19492      as_fn_append ac_file_inputs " '$ac_f'"
19493    done
19494
19495    # Let's still pretend it is `configure' which instantiates (i.e., don't
19496    # use $as_me), people would be surprised to read:
19497    #    /* config.h.  Generated by config.status.  */
19498    configure_input='Generated from '`
19499	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19500	`' by configure.'
19501    if test x"$ac_file" != x-; then
19502      configure_input="$ac_file.  $configure_input"
19503      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19504$as_echo "$as_me: creating $ac_file" >&6;}
19505    fi
19506    # Neutralize special characters interpreted by sed in replacement strings.
19507    case $configure_input in #(
19508    *\&* | *\|* | *\\* )
19509       ac_sed_conf_input=`$as_echo "$configure_input" |
19510       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19511    *) ac_sed_conf_input=$configure_input;;
19512    esac
19513
19514    case $ac_tag in
19515    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19516      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19517    esac
19518    ;;
19519  esac
19520
19521  ac_dir=`$as_dirname -- "$ac_file" ||
19522$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19523	 X"$ac_file" : 'X\(//\)[^/]' \| \
19524	 X"$ac_file" : 'X\(//\)$' \| \
19525	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19526$as_echo X"$ac_file" |
19527    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19528	    s//\1/
19529	    q
19530	  }
19531	  /^X\(\/\/\)[^/].*/{
19532	    s//\1/
19533	    q
19534	  }
19535	  /^X\(\/\/\)$/{
19536	    s//\1/
19537	    q
19538	  }
19539	  /^X\(\/\).*/{
19540	    s//\1/
19541	    q
19542	  }
19543	  s/.*/./; q'`
19544  as_dir="$ac_dir"; as_fn_mkdir_p
19545  ac_builddir=.
19546
19547case "$ac_dir" in
19548.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19549*)
19550  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19551  # A ".." for each directory in $ac_dir_suffix.
19552  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19553  case $ac_top_builddir_sub in
19554  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19555  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19556  esac ;;
19557esac
19558ac_abs_top_builddir=$ac_pwd
19559ac_abs_builddir=$ac_pwd$ac_dir_suffix
19560# for backward compatibility:
19561ac_top_builddir=$ac_top_build_prefix
19562
19563case $srcdir in
19564  .)  # We are building in place.
19565    ac_srcdir=.
19566    ac_top_srcdir=$ac_top_builddir_sub
19567    ac_abs_top_srcdir=$ac_pwd ;;
19568  [\\/]* | ?:[\\/]* )  # Absolute name.
19569    ac_srcdir=$srcdir$ac_dir_suffix;
19570    ac_top_srcdir=$srcdir
19571    ac_abs_top_srcdir=$srcdir ;;
19572  *) # Relative name.
19573    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19574    ac_top_srcdir=$ac_top_build_prefix$srcdir
19575    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19576esac
19577ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19578
19579
19580  case $ac_mode in
19581  :F)
19582  #
19583  # CONFIG_FILE
19584  #
19585
19586  case $INSTALL in
19587  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19588  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19589  esac
19590  ac_MKDIR_P=$MKDIR_P
19591  case $MKDIR_P in
19592  [\\/$]* | ?:[\\/]* ) ;;
19593  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19594  esac
19595_ACEOF
19596
19597cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19598# If the template does not know about datarootdir, expand it.
19599# FIXME: This hack should be removed a few years after 2.60.
19600ac_datarootdir_hack=; ac_datarootdir_seen=
19601ac_sed_dataroot='
19602/datarootdir/ {
19603  p
19604  q
19605}
19606/@datadir@/p
19607/@docdir@/p
19608/@infodir@/p
19609/@localedir@/p
19610/@mandir@/p'
19611case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19612*datarootdir*) ac_datarootdir_seen=yes;;
19613*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19614  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19615$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19616_ACEOF
19617cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19618  ac_datarootdir_hack='
19619  s&@datadir@&$datadir&g
19620  s&@docdir@&$docdir&g
19621  s&@infodir@&$infodir&g
19622  s&@localedir@&$localedir&g
19623  s&@mandir@&$mandir&g
19624  s&\\\${datarootdir}&$datarootdir&g' ;;
19625esac
19626_ACEOF
19627
19628# Neutralize VPATH when `$srcdir' = `.'.
19629# Shell code in configure.ac might set extrasub.
19630# FIXME: do we really want to maintain this feature?
19631cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19632ac_sed_extra="$ac_vpsub
19633$extrasub
19634_ACEOF
19635cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19636:t
19637/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19638s|@configure_input@|$ac_sed_conf_input|;t t
19639s&@top_builddir@&$ac_top_builddir_sub&;t t
19640s&@top_build_prefix@&$ac_top_build_prefix&;t t
19641s&@srcdir@&$ac_srcdir&;t t
19642s&@abs_srcdir@&$ac_abs_srcdir&;t t
19643s&@top_srcdir@&$ac_top_srcdir&;t t
19644s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19645s&@builddir@&$ac_builddir&;t t
19646s&@abs_builddir@&$ac_abs_builddir&;t t
19647s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19648s&@INSTALL@&$ac_INSTALL&;t t
19649s&@MKDIR_P@&$ac_MKDIR_P&;t t
19650$ac_datarootdir_hack
19651"
19652eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19653  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19654
19655test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19656  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19657  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19658      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19659  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19660which seems to be undefined.  Please make sure it is defined" >&5
19661$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19662which seems to be undefined.  Please make sure it is defined" >&2;}
19663
19664  rm -f "$ac_tmp/stdin"
19665  case $ac_file in
19666  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19667  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19668  esac \
19669  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19670 ;;
19671  :H)
19672  #
19673  # CONFIG_HEADER
19674  #
19675  if test x"$ac_file" != x-; then
19676    {
19677      $as_echo "/* $configure_input  */" \
19678      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19679    } >"$ac_tmp/config.h" \
19680      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19681    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19682      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19683$as_echo "$as_me: $ac_file is unchanged" >&6;}
19684    else
19685      rm -f "$ac_file"
19686      mv "$ac_tmp/config.h" "$ac_file" \
19687	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19688    fi
19689  else
19690    $as_echo "/* $configure_input  */" \
19691      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19692      || as_fn_error $? "could not create -" "$LINENO" 5
19693  fi
19694# Compute "$ac_file"'s index in $config_headers.
19695_am_arg="$ac_file"
19696_am_stamp_count=1
19697for _am_header in $config_headers :; do
19698  case $_am_header in
19699    $_am_arg | $_am_arg:* )
19700      break ;;
19701    * )
19702      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19703  esac
19704done
19705echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19706$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19707	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19708	 X"$_am_arg" : 'X\(//\)$' \| \
19709	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19710$as_echo X"$_am_arg" |
19711    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19712	    s//\1/
19713	    q
19714	  }
19715	  /^X\(\/\/\)[^/].*/{
19716	    s//\1/
19717	    q
19718	  }
19719	  /^X\(\/\/\)$/{
19720	    s//\1/
19721	    q
19722	  }
19723	  /^X\(\/\).*/{
19724	    s//\1/
19725	    q
19726	  }
19727	  s/.*/./; q'`/stamp-h$_am_stamp_count
19728 ;;
19729
19730  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19731$as_echo "$as_me: executing $ac_file commands" >&6;}
19732 ;;
19733  esac
19734
19735
19736  case $ac_file$ac_mode in
19737    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19738  # Older Autoconf quotes --file arguments for eval, but not when files
19739  # are listed without --file.  Let's play safe and only enable the eval
19740  # if we detect the quoting.
19741  case $CONFIG_FILES in
19742  *\'*) eval set x "$CONFIG_FILES" ;;
19743  *)   set x $CONFIG_FILES ;;
19744  esac
19745  shift
19746  for mf
19747  do
19748    # Strip MF so we end up with the name of the file.
19749    mf=`echo "$mf" | sed -e 's/:.*$//'`
19750    # Check whether this is an Automake generated Makefile or not.
19751    # We used to match only the files named 'Makefile.in', but
19752    # some people rename them; so instead we look at the file content.
19753    # Grep'ing the first line is not enough: some people post-process
19754    # each Makefile.in and add a new line on top of each file to say so.
19755    # Grep'ing the whole file is not good either: AIX grep has a line
19756    # limit of 2048, but all sed's we know have understand at least 4000.
19757    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19758      dirpart=`$as_dirname -- "$mf" ||
19759$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19760	 X"$mf" : 'X\(//\)[^/]' \| \
19761	 X"$mf" : 'X\(//\)$' \| \
19762	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19763$as_echo X"$mf" |
19764    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19765	    s//\1/
19766	    q
19767	  }
19768	  /^X\(\/\/\)[^/].*/{
19769	    s//\1/
19770	    q
19771	  }
19772	  /^X\(\/\/\)$/{
19773	    s//\1/
19774	    q
19775	  }
19776	  /^X\(\/\).*/{
19777	    s//\1/
19778	    q
19779	  }
19780	  s/.*/./; q'`
19781    else
19782      continue
19783    fi
19784    # Extract the definition of DEPDIR, am__include, and am__quote
19785    # from the Makefile without running 'make'.
19786    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19787    test -z "$DEPDIR" && continue
19788    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19789    test -z "$am__include" && continue
19790    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19791    # Find all dependency output files, they are included files with
19792    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19793    # simplest approach to changing $(DEPDIR) to its actual value in the
19794    # expansion.
19795    for file in `sed -n "
19796      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19797	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19798      # Make sure the directory exists.
19799      test -f "$dirpart/$file" && continue
19800      fdir=`$as_dirname -- "$file" ||
19801$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19802	 X"$file" : 'X\(//\)[^/]' \| \
19803	 X"$file" : 'X\(//\)$' \| \
19804	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19805$as_echo X"$file" |
19806    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19807	    s//\1/
19808	    q
19809	  }
19810	  /^X\(\/\/\)[^/].*/{
19811	    s//\1/
19812	    q
19813	  }
19814	  /^X\(\/\/\)$/{
19815	    s//\1/
19816	    q
19817	  }
19818	  /^X\(\/\).*/{
19819	    s//\1/
19820	    q
19821	  }
19822	  s/.*/./; q'`
19823      as_dir=$dirpart/$fdir; as_fn_mkdir_p
19824      # echo "creating $dirpart/$file"
19825      echo '# dummy' > "$dirpart/$file"
19826    done
19827  done
19828}
19829 ;;
19830    "libtool":C)
19831
19832    # See if we are running on zsh, and set the options which allow our
19833    # commands through without removal of \ escapes.
19834    if test -n "${ZSH_VERSION+set}" ; then
19835      setopt NO_GLOB_SUBST
19836    fi
19837
19838    cfgfile="${ofile}T"
19839    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19840    $RM "$cfgfile"
19841
19842    cat <<_LT_EOF >> "$cfgfile"
19843#! $SHELL
19844
19845# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19846# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19847# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19848# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19849#
19850#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19851#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19852#                 Foundation, Inc.
19853#   Written by Gordon Matzigkeit, 1996
19854#
19855#   This file is part of GNU Libtool.
19856#
19857# GNU Libtool is free software; you can redistribute it and/or
19858# modify it under the terms of the GNU General Public License as
19859# published by the Free Software Foundation; either version 2 of
19860# the License, or (at your option) any later version.
19861#
19862# As a special exception to the GNU General Public License,
19863# if you distribute this file as part of a program or library that
19864# is built using GNU Libtool, you may include this file under the
19865# same distribution terms that you use for the rest of that program.
19866#
19867# GNU Libtool is distributed in the hope that it will be useful,
19868# but WITHOUT ANY WARRANTY; without even the implied warranty of
19869# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19870# GNU General Public License for more details.
19871#
19872# You should have received a copy of the GNU General Public License
19873# along with GNU Libtool; see the file COPYING.  If not, a copy
19874# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19875# obtained by writing to the Free Software Foundation, Inc.,
19876# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19877
19878
19879# The names of the tagged configurations supported by this script.
19880available_tags=""
19881
19882# ### BEGIN LIBTOOL CONFIG
19883
19884# Which release of libtool.m4 was used?
19885macro_version=$macro_version
19886macro_revision=$macro_revision
19887
19888# Whether or not to build shared libraries.
19889build_libtool_libs=$enable_shared
19890
19891# Whether or not to build static libraries.
19892build_old_libs=$enable_static
19893
19894# What type of objects to build.
19895pic_mode=$pic_mode
19896
19897# Whether or not to optimize for fast installation.
19898fast_install=$enable_fast_install
19899
19900# Shell to use when invoking shell scripts.
19901SHELL=$lt_SHELL
19902
19903# An echo program that protects backslashes.
19904ECHO=$lt_ECHO
19905
19906# The PATH separator for the build system.
19907PATH_SEPARATOR=$lt_PATH_SEPARATOR
19908
19909# The host system.
19910host_alias=$host_alias
19911host=$host
19912host_os=$host_os
19913
19914# The build system.
19915build_alias=$build_alias
19916build=$build
19917build_os=$build_os
19918
19919# A sed program that does not truncate output.
19920SED=$lt_SED
19921
19922# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19923Xsed="\$SED -e 1s/^X//"
19924
19925# A grep program that handles long lines.
19926GREP=$lt_GREP
19927
19928# An ERE matcher.
19929EGREP=$lt_EGREP
19930
19931# A literal string matcher.
19932FGREP=$lt_FGREP
19933
19934# A BSD- or MS-compatible name lister.
19935NM=$lt_NM
19936
19937# Whether we need soft or hard links.
19938LN_S=$lt_LN_S
19939
19940# What is the maximum length of a command?
19941max_cmd_len=$max_cmd_len
19942
19943# Object file suffix (normally "o").
19944objext=$ac_objext
19945
19946# Executable file suffix (normally "").
19947exeext=$exeext
19948
19949# whether the shell understands "unset".
19950lt_unset=$lt_unset
19951
19952# turn spaces into newlines.
19953SP2NL=$lt_lt_SP2NL
19954
19955# turn newlines into spaces.
19956NL2SP=$lt_lt_NL2SP
19957
19958# convert \$build file names to \$host format.
19959to_host_file_cmd=$lt_cv_to_host_file_cmd
19960
19961# convert \$build files to toolchain format.
19962to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19963
19964# An object symbol dumper.
19965OBJDUMP=$lt_OBJDUMP
19966
19967# Method to check whether dependent libraries are shared objects.
19968deplibs_check_method=$lt_deplibs_check_method
19969
19970# Command to use when deplibs_check_method = "file_magic".
19971file_magic_cmd=$lt_file_magic_cmd
19972
19973# How to find potential files when deplibs_check_method = "file_magic".
19974file_magic_glob=$lt_file_magic_glob
19975
19976# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19977want_nocaseglob=$lt_want_nocaseglob
19978
19979# DLL creation program.
19980DLLTOOL=$lt_DLLTOOL
19981
19982# Command to associate shared and link libraries.
19983sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19984
19985# The archiver.
19986AR=$lt_AR
19987
19988# Flags to create an archive.
19989AR_FLAGS=$lt_AR_FLAGS
19990
19991# How to feed a file listing to the archiver.
19992archiver_list_spec=$lt_archiver_list_spec
19993
19994# A symbol stripping program.
19995STRIP=$lt_STRIP
19996
19997# Commands used to install an old-style archive.
19998RANLIB=$lt_RANLIB
19999old_postinstall_cmds=$lt_old_postinstall_cmds
20000old_postuninstall_cmds=$lt_old_postuninstall_cmds
20001
20002# Whether to use a lock for old archive extraction.
20003lock_old_archive_extraction=$lock_old_archive_extraction
20004
20005# A C compiler.
20006LTCC=$lt_CC
20007
20008# LTCC compiler flags.
20009LTCFLAGS=$lt_CFLAGS
20010
20011# Take the output of nm and produce a listing of raw symbols and C names.
20012global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20013
20014# Transform the output of nm in a proper C declaration.
20015global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20016
20017# Transform the output of nm in a C name address pair.
20018global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20019
20020# Transform the output of nm in a C name address pair when lib prefix is needed.
20021global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20022
20023# Specify filename containing input files for \$NM.
20024nm_file_list_spec=$lt_nm_file_list_spec
20025
20026# The root where to search for dependent libraries,and in which our libraries should be installed.
20027lt_sysroot=$lt_sysroot
20028
20029# The name of the directory that contains temporary libtool files.
20030objdir=$objdir
20031
20032# Used to examine libraries when file_magic_cmd begins with "file".
20033MAGIC_CMD=$MAGIC_CMD
20034
20035# Must we lock files when doing compilation?
20036need_locks=$lt_need_locks
20037
20038# Manifest tool.
20039MANIFEST_TOOL=$lt_MANIFEST_TOOL
20040
20041# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20042DSYMUTIL=$lt_DSYMUTIL
20043
20044# Tool to change global to local symbols on Mac OS X.
20045NMEDIT=$lt_NMEDIT
20046
20047# Tool to manipulate fat objects and archives on Mac OS X.
20048LIPO=$lt_LIPO
20049
20050# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20051OTOOL=$lt_OTOOL
20052
20053# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20054OTOOL64=$lt_OTOOL64
20055
20056# Old archive suffix (normally "a").
20057libext=$libext
20058
20059# Shared library suffix (normally ".so").
20060shrext_cmds=$lt_shrext_cmds
20061
20062# The commands to extract the exported symbol list from a shared archive.
20063extract_expsyms_cmds=$lt_extract_expsyms_cmds
20064
20065# Variables whose values should be saved in libtool wrapper scripts and
20066# restored at link time.
20067variables_saved_for_relink=$lt_variables_saved_for_relink
20068
20069# Do we need the "lib" prefix for modules?
20070need_lib_prefix=$need_lib_prefix
20071
20072# Do we need a version for libraries?
20073need_version=$need_version
20074
20075# Library versioning type.
20076version_type=$version_type
20077
20078# Shared library runtime path variable.
20079runpath_var=$runpath_var
20080
20081# Shared library path variable.
20082shlibpath_var=$shlibpath_var
20083
20084# Is shlibpath searched before the hard-coded library search path?
20085shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20086
20087# Format of library name prefix.
20088libname_spec=$lt_libname_spec
20089
20090# List of archive names.  First name is the real one, the rest are links.
20091# The last name is the one that the linker finds with -lNAME
20092library_names_spec=$lt_library_names_spec
20093
20094# The coded name of the library, if different from the real name.
20095soname_spec=$lt_soname_spec
20096
20097# Permission mode override for installation of shared libraries.
20098install_override_mode=$lt_install_override_mode
20099
20100# Command to use after installation of a shared archive.
20101postinstall_cmds=$lt_postinstall_cmds
20102
20103# Command to use after uninstallation of a shared archive.
20104postuninstall_cmds=$lt_postuninstall_cmds
20105
20106# Commands used to finish a libtool library installation in a directory.
20107finish_cmds=$lt_finish_cmds
20108
20109# As "finish_cmds", except a single script fragment to be evaled but
20110# not shown.
20111finish_eval=$lt_finish_eval
20112
20113# Whether we should hardcode library paths into libraries.
20114hardcode_into_libs=$hardcode_into_libs
20115
20116# Compile-time system search path for libraries.
20117sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20118
20119# Run-time system search path for libraries.
20120sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20121
20122# Whether dlopen is supported.
20123dlopen_support=$enable_dlopen
20124
20125# Whether dlopen of programs is supported.
20126dlopen_self=$enable_dlopen_self
20127
20128# Whether dlopen of statically linked programs is supported.
20129dlopen_self_static=$enable_dlopen_self_static
20130
20131# Commands to strip libraries.
20132old_striplib=$lt_old_striplib
20133striplib=$lt_striplib
20134
20135
20136# The linker used to build libraries.
20137LD=$lt_LD
20138
20139# How to create reloadable object files.
20140reload_flag=$lt_reload_flag
20141reload_cmds=$lt_reload_cmds
20142
20143# Commands used to build an old-style archive.
20144old_archive_cmds=$lt_old_archive_cmds
20145
20146# A language specific compiler.
20147CC=$lt_compiler
20148
20149# Is the compiler the GNU compiler?
20150with_gcc=$GCC
20151
20152# Compiler flag to turn off builtin functions.
20153no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20154
20155# Additional compiler flags for building library objects.
20156pic_flag=$lt_lt_prog_compiler_pic
20157
20158# How to pass a linker flag through the compiler.
20159wl=$lt_lt_prog_compiler_wl
20160
20161# Compiler flag to prevent dynamic linking.
20162link_static_flag=$lt_lt_prog_compiler_static
20163
20164# Does compiler simultaneously support -c and -o options?
20165compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20166
20167# Whether or not to add -lc for building shared libraries.
20168build_libtool_need_lc=$archive_cmds_need_lc
20169
20170# Whether or not to disallow shared libs when runtime libs are static.
20171allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20172
20173# Compiler flag to allow reflexive dlopens.
20174export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20175
20176# Compiler flag to generate shared objects directly from archives.
20177whole_archive_flag_spec=$lt_whole_archive_flag_spec
20178
20179# Whether the compiler copes with passing no objects directly.
20180compiler_needs_object=$lt_compiler_needs_object
20181
20182# Create an old-style archive from a shared archive.
20183old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20184
20185# Create a temporary old-style archive to link instead of a shared archive.
20186old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20187
20188# Commands used to build a shared archive.
20189archive_cmds=$lt_archive_cmds
20190archive_expsym_cmds=$lt_archive_expsym_cmds
20191
20192# Commands used to build a loadable module if different from building
20193# a shared archive.
20194module_cmds=$lt_module_cmds
20195module_expsym_cmds=$lt_module_expsym_cmds
20196
20197# Whether we are building with GNU ld or not.
20198with_gnu_ld=$lt_with_gnu_ld
20199
20200# Flag that allows shared libraries with undefined symbols to be built.
20201allow_undefined_flag=$lt_allow_undefined_flag
20202
20203# Flag that enforces no undefined symbols.
20204no_undefined_flag=$lt_no_undefined_flag
20205
20206# Flag to hardcode \$libdir into a binary during linking.
20207# This must work even if \$libdir does not exist
20208hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20209
20210# Whether we need a single "-rpath" flag with a separated argument.
20211hardcode_libdir_separator=$lt_hardcode_libdir_separator
20212
20213# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20214# DIR into the resulting binary.
20215hardcode_direct=$hardcode_direct
20216
20217# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20218# DIR into the resulting binary and the resulting library dependency is
20219# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20220# library is relocated.
20221hardcode_direct_absolute=$hardcode_direct_absolute
20222
20223# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20224# into the resulting binary.
20225hardcode_minus_L=$hardcode_minus_L
20226
20227# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20228# into the resulting binary.
20229hardcode_shlibpath_var=$hardcode_shlibpath_var
20230
20231# Set to "yes" if building a shared library automatically hardcodes DIR
20232# into the library and all subsequent libraries and executables linked
20233# against it.
20234hardcode_automatic=$hardcode_automatic
20235
20236# Set to yes if linker adds runtime paths of dependent libraries
20237# to runtime path list.
20238inherit_rpath=$inherit_rpath
20239
20240# Whether libtool must link a program against all its dependency libraries.
20241link_all_deplibs=$link_all_deplibs
20242
20243# Set to "yes" if exported symbols are required.
20244always_export_symbols=$always_export_symbols
20245
20246# The commands to list exported symbols.
20247export_symbols_cmds=$lt_export_symbols_cmds
20248
20249# Symbols that should not be listed in the preloaded symbols.
20250exclude_expsyms=$lt_exclude_expsyms
20251
20252# Symbols that must always be exported.
20253include_expsyms=$lt_include_expsyms
20254
20255# Commands necessary for linking programs (against libraries) with templates.
20256prelink_cmds=$lt_prelink_cmds
20257
20258# Commands necessary for finishing linking programs.
20259postlink_cmds=$lt_postlink_cmds
20260
20261# Specify filename containing input files.
20262file_list_spec=$lt_file_list_spec
20263
20264# How to hardcode a shared library path into an executable.
20265hardcode_action=$hardcode_action
20266
20267# ### END LIBTOOL CONFIG
20268
20269_LT_EOF
20270
20271  case $host_os in
20272  aix3*)
20273    cat <<\_LT_EOF >> "$cfgfile"
20274# AIX sometimes has problems with the GCC collect2 program.  For some
20275# reason, if we set the COLLECT_NAMES environment variable, the problems
20276# vanish in a puff of smoke.
20277if test "X${COLLECT_NAMES+set}" != Xset; then
20278  COLLECT_NAMES=
20279  export COLLECT_NAMES
20280fi
20281_LT_EOF
20282    ;;
20283  esac
20284
20285
20286ltmain="$ac_aux_dir/ltmain.sh"
20287
20288
20289  # We use sed instead of cat because bash on DJGPP gets confused if
20290  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20291  # text mode, it properly converts lines to CR/LF.  This bash problem
20292  # is reportedly fixed, but why not run on old versions too?
20293  sed '$q' "$ltmain" >> "$cfgfile" \
20294     || (rm -f "$cfgfile"; exit 1)
20295
20296  if test x"$xsi_shell" = xyes; then
20297  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20298func_dirname ()\
20299{\
20300\    case ${1} in\
20301\      */*) func_dirname_result="${1%/*}${2}" ;;\
20302\      *  ) func_dirname_result="${3}" ;;\
20303\    esac\
20304} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20305  && mv -f "$cfgfile.tmp" "$cfgfile" \
20306    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20307test 0 -eq $? || _lt_function_replace_fail=:
20308
20309
20310  sed -e '/^func_basename ()$/,/^} # func_basename /c\
20311func_basename ()\
20312{\
20313\    func_basename_result="${1##*/}"\
20314} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20315  && mv -f "$cfgfile.tmp" "$cfgfile" \
20316    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20317test 0 -eq $? || _lt_function_replace_fail=:
20318
20319
20320  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20321func_dirname_and_basename ()\
20322{\
20323\    case ${1} in\
20324\      */*) func_dirname_result="${1%/*}${2}" ;;\
20325\      *  ) func_dirname_result="${3}" ;;\
20326\    esac\
20327\    func_basename_result="${1##*/}"\
20328} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20329  && mv -f "$cfgfile.tmp" "$cfgfile" \
20330    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20331test 0 -eq $? || _lt_function_replace_fail=:
20332
20333
20334  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20335func_stripname ()\
20336{\
20337\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20338\    # positional parameters, so assign one to ordinary parameter first.\
20339\    func_stripname_result=${3}\
20340\    func_stripname_result=${func_stripname_result#"${1}"}\
20341\    func_stripname_result=${func_stripname_result%"${2}"}\
20342} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20343  && mv -f "$cfgfile.tmp" "$cfgfile" \
20344    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20345test 0 -eq $? || _lt_function_replace_fail=:
20346
20347
20348  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20349func_split_long_opt ()\
20350{\
20351\    func_split_long_opt_name=${1%%=*}\
20352\    func_split_long_opt_arg=${1#*=}\
20353} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20354  && mv -f "$cfgfile.tmp" "$cfgfile" \
20355    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20356test 0 -eq $? || _lt_function_replace_fail=:
20357
20358
20359  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20360func_split_short_opt ()\
20361{\
20362\    func_split_short_opt_arg=${1#??}\
20363\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20364} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20365  && mv -f "$cfgfile.tmp" "$cfgfile" \
20366    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20367test 0 -eq $? || _lt_function_replace_fail=:
20368
20369
20370  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20371func_lo2o ()\
20372{\
20373\    case ${1} in\
20374\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20375\      *)    func_lo2o_result=${1} ;;\
20376\    esac\
20377} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20378  && mv -f "$cfgfile.tmp" "$cfgfile" \
20379    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20380test 0 -eq $? || _lt_function_replace_fail=:
20381
20382
20383  sed -e '/^func_xform ()$/,/^} # func_xform /c\
20384func_xform ()\
20385{\
20386    func_xform_result=${1%.*}.lo\
20387} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20388  && mv -f "$cfgfile.tmp" "$cfgfile" \
20389    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20390test 0 -eq $? || _lt_function_replace_fail=:
20391
20392
20393  sed -e '/^func_arith ()$/,/^} # func_arith /c\
20394func_arith ()\
20395{\
20396    func_arith_result=$(( $* ))\
20397} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20398  && mv -f "$cfgfile.tmp" "$cfgfile" \
20399    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20400test 0 -eq $? || _lt_function_replace_fail=:
20401
20402
20403  sed -e '/^func_len ()$/,/^} # func_len /c\
20404func_len ()\
20405{\
20406    func_len_result=${#1}\
20407} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20408  && mv -f "$cfgfile.tmp" "$cfgfile" \
20409    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20410test 0 -eq $? || _lt_function_replace_fail=:
20411
20412fi
20413
20414if test x"$lt_shell_append" = xyes; then
20415  sed -e '/^func_append ()$/,/^} # func_append /c\
20416func_append ()\
20417{\
20418    eval "${1}+=\\${2}"\
20419} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20420  && mv -f "$cfgfile.tmp" "$cfgfile" \
20421    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20422test 0 -eq $? || _lt_function_replace_fail=:
20423
20424
20425  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20426func_append_quoted ()\
20427{\
20428\    func_quote_for_eval "${2}"\
20429\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20430} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20431  && mv -f "$cfgfile.tmp" "$cfgfile" \
20432    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20433test 0 -eq $? || _lt_function_replace_fail=:
20434
20435
20436  # Save a `func_append' function call where possible by direct use of '+='
20437  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20438    && mv -f "$cfgfile.tmp" "$cfgfile" \
20439      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20440  test 0 -eq $? || _lt_function_replace_fail=:
20441else
20442  # Save a `func_append' function call even when '+=' is not available
20443  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20444    && mv -f "$cfgfile.tmp" "$cfgfile" \
20445      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20446  test 0 -eq $? || _lt_function_replace_fail=:
20447fi
20448
20449if test x"$_lt_function_replace_fail" = x":"; then
20450  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20451$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20452fi
20453
20454
20455   mv -f "$cfgfile" "$ofile" ||
20456    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20457  chmod +x "$ofile"
20458
20459 ;;
20460
20461  esac
20462done # for ac_tag
20463
20464
20465as_fn_exit 0
20466_ACEOF
20467ac_clean_files=$ac_clean_files_save
20468
20469test $ac_write_fail = 0 ||
20470  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20471
20472
20473# configure is writing to config.log, and then calls config.status.
20474# config.status does its own redirection, appending to config.log.
20475# Unfortunately, on DOS this fails, as config.log is still kept open
20476# by configure, so config.status won't be able to write to it; its
20477# output is simply discarded.  So we exec the FD to /dev/null,
20478# effectively closing config.log, so it can be properly (re)opened and
20479# appended to by config.status.  When coming back to configure, we
20480# need to make the FD available again.
20481if test "$no_create" != yes; then
20482  ac_cs_success=:
20483  ac_config_status_args=
20484  test "$silent" = yes &&
20485    ac_config_status_args="$ac_config_status_args --quiet"
20486  exec 5>/dev/null
20487  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20488  exec 5>>config.log
20489  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20490  # would make configure fail if this is the last instruction.
20491  $ac_cs_success || as_fn_exit 1
20492fi
20493if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20494  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20495$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20496fi
20497
20498