configure revision 0eb1301b
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libXi 1.7.7.
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
570as_awk_strverscmp='
571  # Use only awk features that work with 7th edition Unix awk (1978).
572  # My, what an old awk you have, Mr. Solaris!
573  END {
574    while (length(v1) && length(v2)) {
575      # Set d1 to be the next thing to compare from v1, and likewise for d2.
576      # Normally this is a single character, but if v1 and v2 contain digits,
577      # compare them as integers and fractions as strverscmp does.
578      if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
579	# Split v1 and v2 into their leading digit string components d1 and d2,
580	# and advance v1 and v2 past the leading digit strings.
581	for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
582	for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
583	d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
584	d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
585	if (d1 ~ /^0/) {
586	  if (d2 ~ /^0/) {
587	    # Compare two fractions.
588	    while (d1 ~ /^0/ && d2 ~ /^0/) {
589	      d1 = substr(d1, 2); len1--
590	      d2 = substr(d2, 2); len2--
591	    }
592	    if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
593	      # The two components differ in length, and the common prefix
594	      # contains only leading zeros.  Consider the longer to be less.
595	      d1 = -len1
596	      d2 = -len2
597	    } else {
598	      # Otherwise, compare as strings.
599	      d1 = "x" d1
600	      d2 = "x" d2
601	    }
602	  } else {
603	    # A fraction is less than an integer.
604	    exit 1
605	  }
606	} else {
607	  if (d2 ~ /^0/) {
608	    # An integer is greater than a fraction.
609	    exit 2
610	  } else {
611	    # Compare two integers.
612	    d1 += 0
613	    d2 += 0
614	  }
615	}
616      } else {
617	# The normal case, without worrying about digits.
618	d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
619	d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
620      }
621      if (d1 < d2) exit 1
622      if (d1 > d2) exit 2
623    }
624    # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
625    # which mishandles some comparisons of empty strings to integers.
626    if (length(v2)) exit 1
627    if (length(v1)) exit 2
628  }
629'
630
631test -n "$DJDIR" || exec 7<&0 </dev/null
632exec 6>&1
633
634# Name of the host.
635# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
636# so uname gets run too.
637ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
638
639#
640# Initializations.
641#
642ac_default_prefix=/usr/local
643ac_clean_files=
644ac_config_libobj_dir=.
645LIBOBJS=
646cross_compiling=no
647subdirs=
648MFLAGS=
649MAKEFLAGS=
650
651# Identity of this package.
652PACKAGE_NAME='libXi'
653PACKAGE_TARNAME='libXi'
654PACKAGE_VERSION='1.7.7'
655PACKAGE_STRING='libXi 1.7.7'
656PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
657PACKAGE_URL=''
658
659ac_unique_file="Makefile.am"
660# Factoring default headers for most tests.
661ac_includes_default="\
662#include <stdio.h>
663#ifdef HAVE_SYS_TYPES_H
664# include <sys/types.h>
665#endif
666#ifdef HAVE_SYS_STAT_H
667# include <sys/stat.h>
668#endif
669#ifdef STDC_HEADERS
670# include <stdlib.h>
671# include <stddef.h>
672#else
673# ifdef HAVE_STDLIB_H
674#  include <stdlib.h>
675# endif
676#endif
677#ifdef HAVE_STRING_H
678# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
679#  include <memory.h>
680# endif
681# include <string.h>
682#endif
683#ifdef HAVE_STRINGS_H
684# include <strings.h>
685#endif
686#ifdef HAVE_INTTYPES_H
687# include <inttypes.h>
688#endif
689#ifdef HAVE_STDINT_H
690# include <stdint.h>
691#endif
692#ifdef HAVE_UNISTD_H
693# include <unistd.h>
694#endif"
695
696ac_subst_vars='am__EXEEXT_FALSE
697am__EXEEXT_TRUE
698LTLIBOBJS
699LIBOBJS
700INSTALL_MANPAGES_FALSE
701INSTALL_MANPAGES_TRUE
702HAVE_DOCTOOLS_FALSE
703HAVE_DOCTOOLS_TRUE
704XFIXES_LIBS
705XFIXES_CFLAGS
706XI_LIBS
707XI_CFLAGS
708XTMALLOC_ZERO_CFLAGS
709XMALLOC_ZERO_CFLAGS
710MALLOC_ZERO_CFLAGS
711HAVE_ASCIIDOC_FALSE
712HAVE_ASCIIDOC_TRUE
713ASCIIDOC
714HAVE_STYLESHEETS_FALSE
715HAVE_STYLESHEETS_TRUE
716XSL_STYLESHEET
717STYLESHEET_SRCDIR
718XORG_SGML_PATH
719HAVE_XSLTPROC_FALSE
720HAVE_XSLTPROC_TRUE
721XSLTPROC
722HAVE_FOP_FALSE
723HAVE_FOP_TRUE
724FOP
725HAVE_XMLTO_FALSE
726HAVE_XMLTO_TRUE
727HAVE_XMLTO_TEXT_FALSE
728HAVE_XMLTO_TEXT_TRUE
729XMLTO
730ENABLE_SPECS_FALSE
731ENABLE_SPECS_TRUE
732ENABLE_DOCS_FALSE
733ENABLE_DOCS_TRUE
734MAN_SUBSTS
735XORG_MAN_PAGE
736ADMIN_MAN_DIR
737DRIVER_MAN_DIR
738MISC_MAN_DIR
739FILE_MAN_DIR
740LIB_MAN_DIR
741APP_MAN_DIR
742ADMIN_MAN_SUFFIX
743DRIVER_MAN_SUFFIX
744MISC_MAN_SUFFIX
745FILE_MAN_SUFFIX
746LIB_MAN_SUFFIX
747APP_MAN_SUFFIX
748INSTALL_CMD
749PKG_CONFIG_LIBDIR
750PKG_CONFIG_PATH
751PKG_CONFIG
752CHANGELOG_CMD
753STRICT_CFLAGS
754CWARNFLAGS
755BASE_CFLAGS
756CPP
757OTOOL64
758OTOOL
759LIPO
760NMEDIT
761DSYMUTIL
762MANIFEST_TOOL
763RANLIB
764ac_ct_AR
765AR
766DLLTOOL
767OBJDUMP
768LN_S
769NM
770ac_ct_DUMPBIN
771DUMPBIN
772LD
773FGREP
774EGREP
775GREP
776SED
777am__fastdepCC_FALSE
778am__fastdepCC_TRUE
779CCDEPMODE
780am__nodep
781AMDEPBACKSLASH
782AMDEP_FALSE
783AMDEP_TRUE
784am__quote
785am__include
786DEPDIR
787OBJEXT
788EXEEXT
789ac_ct_CC
790CPPFLAGS
791LDFLAGS
792CFLAGS
793CC
794host_os
795host_vendor
796host_cpu
797host
798build_os
799build_vendor
800build_cpu
801build
802LIBTOOL
803AM_BACKSLASH
804AM_DEFAULT_VERBOSITY
805AM_DEFAULT_V
806AM_V
807am__untar
808am__tar
809AMTAR
810am__leading_dot
811SET_MAKE
812AWK
813mkdir_p
814MKDIR_P
815INSTALL_STRIP_PROGRAM
816STRIP
817install_sh
818MAKEINFO
819AUTOHEADER
820AUTOMAKE
821AUTOCONF
822ACLOCAL
823VERSION
824PACKAGE
825CYGPATH_W
826am__isrc
827INSTALL_DATA
828INSTALL_SCRIPT
829INSTALL_PROGRAM
830target_alias
831host_alias
832build_alias
833LIBS
834ECHO_T
835ECHO_N
836ECHO_C
837DEFS
838mandir
839localedir
840libdir
841psdir
842pdfdir
843dvidir
844htmldir
845infodir
846docdir
847oldincludedir
848includedir
849localstatedir
850sharedstatedir
851sysconfdir
852datadir
853datarootdir
854libexecdir
855sbindir
856bindir
857program_transform_name
858prefix
859exec_prefix
860PACKAGE_URL
861PACKAGE_BUGREPORT
862PACKAGE_STRING
863PACKAGE_VERSION
864PACKAGE_TARNAME
865PACKAGE_NAME
866PATH_SEPARATOR
867SHELL'
868ac_subst_files=''
869ac_user_opts='
870enable_option_checking
871enable_silent_rules
872enable_shared
873enable_static
874with_pic
875enable_fast_install
876enable_dependency_tracking
877with_gnu_ld
878with_sysroot
879enable_libtool_lock
880enable_selective_werror
881enable_strict_compilation
882enable_docs
883enable_specs
884with_xmlto
885with_fop
886with_xsltproc
887with_asciidoc
888enable_malloc0returnsnull
889'
890      ac_precious_vars='build_alias
891host_alias
892target_alias
893CC
894CFLAGS
895LDFLAGS
896LIBS
897CPPFLAGS
898CPP
899PKG_CONFIG
900PKG_CONFIG_PATH
901PKG_CONFIG_LIBDIR
902XMLTO
903FOP
904XSLTPROC
905ASCIIDOC
906XI_CFLAGS
907XI_LIBS
908XFIXES_CFLAGS
909XFIXES_LIBS'
910
911
912# Initialize some variables set by options.
913ac_init_help=
914ac_init_version=false
915ac_unrecognized_opts=
916ac_unrecognized_sep=
917# The variables have the same names as the options, with
918# dashes changed to underlines.
919cache_file=/dev/null
920exec_prefix=NONE
921no_create=
922no_recursion=
923prefix=NONE
924program_prefix=NONE
925program_suffix=NONE
926program_transform_name=s,x,x,
927silent=
928site=
929srcdir=
930verbose=
931x_includes=NONE
932x_libraries=NONE
933
934# Installation directory options.
935# These are left unexpanded so users can "make install exec_prefix=/foo"
936# and all the variables that are supposed to be based on exec_prefix
937# by default will actually change.
938# Use braces instead of parens because sh, perl, etc. also accept them.
939# (The list follows the same order as the GNU Coding Standards.)
940bindir='${exec_prefix}/bin'
941sbindir='${exec_prefix}/sbin'
942libexecdir='${exec_prefix}/libexec'
943datarootdir='${prefix}/share'
944datadir='${datarootdir}'
945sysconfdir='${prefix}/etc'
946sharedstatedir='${prefix}/com'
947localstatedir='${prefix}/var'
948includedir='${prefix}/include'
949oldincludedir='/usr/include'
950docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
951infodir='${datarootdir}/info'
952htmldir='${docdir}'
953dvidir='${docdir}'
954pdfdir='${docdir}'
955psdir='${docdir}'
956libdir='${exec_prefix}/lib'
957localedir='${datarootdir}/locale'
958mandir='${datarootdir}/man'
959
960ac_prev=
961ac_dashdash=
962for ac_option
963do
964  # If the previous option needs an argument, assign it.
965  if test -n "$ac_prev"; then
966    eval $ac_prev=\$ac_option
967    ac_prev=
968    continue
969  fi
970
971  case $ac_option in
972  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
973  *=)   ac_optarg= ;;
974  *)    ac_optarg=yes ;;
975  esac
976
977  # Accept the important Cygnus configure options, so we can diagnose typos.
978
979  case $ac_dashdash$ac_option in
980  --)
981    ac_dashdash=yes ;;
982
983  -bindir | --bindir | --bindi | --bind | --bin | --bi)
984    ac_prev=bindir ;;
985  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
986    bindir=$ac_optarg ;;
987
988  -build | --build | --buil | --bui | --bu)
989    ac_prev=build_alias ;;
990  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
991    build_alias=$ac_optarg ;;
992
993  -cache-file | --cache-file | --cache-fil | --cache-fi \
994  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
995    ac_prev=cache_file ;;
996  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
997  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
998    cache_file=$ac_optarg ;;
999
1000  --config-cache | -C)
1001    cache_file=config.cache ;;
1002
1003  -datadir | --datadir | --datadi | --datad)
1004    ac_prev=datadir ;;
1005  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1006    datadir=$ac_optarg ;;
1007
1008  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1009  | --dataroo | --dataro | --datar)
1010    ac_prev=datarootdir ;;
1011  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1012  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1013    datarootdir=$ac_optarg ;;
1014
1015  -disable-* | --disable-*)
1016    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1017    # Reject names that are not valid shell variable names.
1018    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1019      as_fn_error $? "invalid feature name: $ac_useropt"
1020    ac_useropt_orig=$ac_useropt
1021    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022    case $ac_user_opts in
1023      *"
1024"enable_$ac_useropt"
1025"*) ;;
1026      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1027	 ac_unrecognized_sep=', ';;
1028    esac
1029    eval enable_$ac_useropt=no ;;
1030
1031  -docdir | --docdir | --docdi | --doc | --do)
1032    ac_prev=docdir ;;
1033  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1034    docdir=$ac_optarg ;;
1035
1036  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1037    ac_prev=dvidir ;;
1038  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1039    dvidir=$ac_optarg ;;
1040
1041  -enable-* | --enable-*)
1042    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1043    # Reject names that are not valid shell variable names.
1044    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1045      as_fn_error $? "invalid feature name: $ac_useropt"
1046    ac_useropt_orig=$ac_useropt
1047    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048    case $ac_user_opts in
1049      *"
1050"enable_$ac_useropt"
1051"*) ;;
1052      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1053	 ac_unrecognized_sep=', ';;
1054    esac
1055    eval enable_$ac_useropt=\$ac_optarg ;;
1056
1057  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1058  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1059  | --exec | --exe | --ex)
1060    ac_prev=exec_prefix ;;
1061  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1062  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1063  | --exec=* | --exe=* | --ex=*)
1064    exec_prefix=$ac_optarg ;;
1065
1066  -gas | --gas | --ga | --g)
1067    # Obsolete; use --with-gas.
1068    with_gas=yes ;;
1069
1070  -help | --help | --hel | --he | -h)
1071    ac_init_help=long ;;
1072  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1073    ac_init_help=recursive ;;
1074  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1075    ac_init_help=short ;;
1076
1077  -host | --host | --hos | --ho)
1078    ac_prev=host_alias ;;
1079  -host=* | --host=* | --hos=* | --ho=*)
1080    host_alias=$ac_optarg ;;
1081
1082  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1083    ac_prev=htmldir ;;
1084  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1085  | --ht=*)
1086    htmldir=$ac_optarg ;;
1087
1088  -includedir | --includedir | --includedi | --included | --include \
1089  | --includ | --inclu | --incl | --inc)
1090    ac_prev=includedir ;;
1091  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1092  | --includ=* | --inclu=* | --incl=* | --inc=*)
1093    includedir=$ac_optarg ;;
1094
1095  -infodir | --infodir | --infodi | --infod | --info | --inf)
1096    ac_prev=infodir ;;
1097  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1098    infodir=$ac_optarg ;;
1099
1100  -libdir | --libdir | --libdi | --libd)
1101    ac_prev=libdir ;;
1102  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1103    libdir=$ac_optarg ;;
1104
1105  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1106  | --libexe | --libex | --libe)
1107    ac_prev=libexecdir ;;
1108  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1109  | --libexe=* | --libex=* | --libe=*)
1110    libexecdir=$ac_optarg ;;
1111
1112  -localedir | --localedir | --localedi | --localed | --locale)
1113    ac_prev=localedir ;;
1114  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1115    localedir=$ac_optarg ;;
1116
1117  -localstatedir | --localstatedir | --localstatedi | --localstated \
1118  | --localstate | --localstat | --localsta | --localst | --locals)
1119    ac_prev=localstatedir ;;
1120  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1121  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1122    localstatedir=$ac_optarg ;;
1123
1124  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1125    ac_prev=mandir ;;
1126  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1127    mandir=$ac_optarg ;;
1128
1129  -nfp | --nfp | --nf)
1130    # Obsolete; use --without-fp.
1131    with_fp=no ;;
1132
1133  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1134  | --no-cr | --no-c | -n)
1135    no_create=yes ;;
1136
1137  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1138  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1139    no_recursion=yes ;;
1140
1141  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1142  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1143  | --oldin | --oldi | --old | --ol | --o)
1144    ac_prev=oldincludedir ;;
1145  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1146  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1147  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1148    oldincludedir=$ac_optarg ;;
1149
1150  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1151    ac_prev=prefix ;;
1152  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1153    prefix=$ac_optarg ;;
1154
1155  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1156  | --program-pre | --program-pr | --program-p)
1157    ac_prev=program_prefix ;;
1158  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1159  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1160    program_prefix=$ac_optarg ;;
1161
1162  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1163  | --program-suf | --program-su | --program-s)
1164    ac_prev=program_suffix ;;
1165  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1166  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1167    program_suffix=$ac_optarg ;;
1168
1169  -program-transform-name | --program-transform-name \
1170  | --program-transform-nam | --program-transform-na \
1171  | --program-transform-n | --program-transform- \
1172  | --program-transform | --program-transfor \
1173  | --program-transfo | --program-transf \
1174  | --program-trans | --program-tran \
1175  | --progr-tra | --program-tr | --program-t)
1176    ac_prev=program_transform_name ;;
1177  -program-transform-name=* | --program-transform-name=* \
1178  | --program-transform-nam=* | --program-transform-na=* \
1179  | --program-transform-n=* | --program-transform-=* \
1180  | --program-transform=* | --program-transfor=* \
1181  | --program-transfo=* | --program-transf=* \
1182  | --program-trans=* | --program-tran=* \
1183  | --progr-tra=* | --program-tr=* | --program-t=*)
1184    program_transform_name=$ac_optarg ;;
1185
1186  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1187    ac_prev=pdfdir ;;
1188  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1189    pdfdir=$ac_optarg ;;
1190
1191  -psdir | --psdir | --psdi | --psd | --ps)
1192    ac_prev=psdir ;;
1193  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1194    psdir=$ac_optarg ;;
1195
1196  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1197  | -silent | --silent | --silen | --sile | --sil)
1198    silent=yes ;;
1199
1200  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1201    ac_prev=sbindir ;;
1202  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1203  | --sbi=* | --sb=*)
1204    sbindir=$ac_optarg ;;
1205
1206  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1207  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1208  | --sharedst | --shareds | --shared | --share | --shar \
1209  | --sha | --sh)
1210    ac_prev=sharedstatedir ;;
1211  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1212  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1213  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1214  | --sha=* | --sh=*)
1215    sharedstatedir=$ac_optarg ;;
1216
1217  -site | --site | --sit)
1218    ac_prev=site ;;
1219  -site=* | --site=* | --sit=*)
1220    site=$ac_optarg ;;
1221
1222  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1223    ac_prev=srcdir ;;
1224  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1225    srcdir=$ac_optarg ;;
1226
1227  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1228  | --syscon | --sysco | --sysc | --sys | --sy)
1229    ac_prev=sysconfdir ;;
1230  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1231  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1232    sysconfdir=$ac_optarg ;;
1233
1234  -target | --target | --targe | --targ | --tar | --ta | --t)
1235    ac_prev=target_alias ;;
1236  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1237    target_alias=$ac_optarg ;;
1238
1239  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1240    verbose=yes ;;
1241
1242  -version | --version | --versio | --versi | --vers | -V)
1243    ac_init_version=: ;;
1244
1245  -with-* | --with-*)
1246    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1247    # Reject names that are not valid shell variable names.
1248    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1249      as_fn_error $? "invalid package name: $ac_useropt"
1250    ac_useropt_orig=$ac_useropt
1251    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1252    case $ac_user_opts in
1253      *"
1254"with_$ac_useropt"
1255"*) ;;
1256      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1257	 ac_unrecognized_sep=', ';;
1258    esac
1259    eval with_$ac_useropt=\$ac_optarg ;;
1260
1261  -without-* | --without-*)
1262    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1263    # Reject names that are not valid shell variable names.
1264    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1265      as_fn_error $? "invalid package name: $ac_useropt"
1266    ac_useropt_orig=$ac_useropt
1267    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1268    case $ac_user_opts in
1269      *"
1270"with_$ac_useropt"
1271"*) ;;
1272      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1273	 ac_unrecognized_sep=', ';;
1274    esac
1275    eval with_$ac_useropt=no ;;
1276
1277  --x)
1278    # Obsolete; use --with-x.
1279    with_x=yes ;;
1280
1281  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1282  | --x-incl | --x-inc | --x-in | --x-i)
1283    ac_prev=x_includes ;;
1284  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1285  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1286    x_includes=$ac_optarg ;;
1287
1288  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1289  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1290    ac_prev=x_libraries ;;
1291  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1292  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1293    x_libraries=$ac_optarg ;;
1294
1295  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1296Try \`$0 --help' for more information"
1297    ;;
1298
1299  *=*)
1300    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1301    # Reject names that are not valid shell variable names.
1302    case $ac_envvar in #(
1303      '' | [0-9]* | *[!_$as_cr_alnum]* )
1304      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1305    esac
1306    eval $ac_envvar=\$ac_optarg
1307    export $ac_envvar ;;
1308
1309  *)
1310    # FIXME: should be removed in autoconf 3.0.
1311    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1312    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1313      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1314    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1315    ;;
1316
1317  esac
1318done
1319
1320if test -n "$ac_prev"; then
1321  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1322  as_fn_error $? "missing argument to $ac_option"
1323fi
1324
1325if test -n "$ac_unrecognized_opts"; then
1326  case $enable_option_checking in
1327    no) ;;
1328    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1329    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1330  esac
1331fi
1332
1333# Check all directory arguments for consistency.
1334for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1335		datadir sysconfdir sharedstatedir localstatedir includedir \
1336		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1337		libdir localedir mandir
1338do
1339  eval ac_val=\$$ac_var
1340  # Remove trailing slashes.
1341  case $ac_val in
1342    */ )
1343      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1344      eval $ac_var=\$ac_val;;
1345  esac
1346  # Be sure to have absolute directory names.
1347  case $ac_val in
1348    [\\/$]* | ?:[\\/]* )  continue;;
1349    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1350  esac
1351  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1352done
1353
1354# There might be people who depend on the old broken behavior: `$host'
1355# used to hold the argument of --host etc.
1356# FIXME: To remove some day.
1357build=$build_alias
1358host=$host_alias
1359target=$target_alias
1360
1361# FIXME: To remove some day.
1362if test "x$host_alias" != x; then
1363  if test "x$build_alias" = x; then
1364    cross_compiling=maybe
1365  elif test "x$build_alias" != "x$host_alias"; then
1366    cross_compiling=yes
1367  fi
1368fi
1369
1370ac_tool_prefix=
1371test -n "$host_alias" && ac_tool_prefix=$host_alias-
1372
1373test "$silent" = yes && exec 6>/dev/null
1374
1375
1376ac_pwd=`pwd` && test -n "$ac_pwd" &&
1377ac_ls_di=`ls -di .` &&
1378ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1379  as_fn_error $? "working directory cannot be determined"
1380test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1381  as_fn_error $? "pwd does not report name of working directory"
1382
1383
1384# Find the source files, if location was not specified.
1385if test -z "$srcdir"; then
1386  ac_srcdir_defaulted=yes
1387  # Try the directory containing this script, then the parent directory.
1388  ac_confdir=`$as_dirname -- "$as_myself" ||
1389$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1390	 X"$as_myself" : 'X\(//\)[^/]' \| \
1391	 X"$as_myself" : 'X\(//\)$' \| \
1392	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1393$as_echo X"$as_myself" |
1394    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1395	    s//\1/
1396	    q
1397	  }
1398	  /^X\(\/\/\)[^/].*/{
1399	    s//\1/
1400	    q
1401	  }
1402	  /^X\(\/\/\)$/{
1403	    s//\1/
1404	    q
1405	  }
1406	  /^X\(\/\).*/{
1407	    s//\1/
1408	    q
1409	  }
1410	  s/.*/./; q'`
1411  srcdir=$ac_confdir
1412  if test ! -r "$srcdir/$ac_unique_file"; then
1413    srcdir=..
1414  fi
1415else
1416  ac_srcdir_defaulted=no
1417fi
1418if test ! -r "$srcdir/$ac_unique_file"; then
1419  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1420  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1421fi
1422ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1423ac_abs_confdir=`(
1424	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1425	pwd)`
1426# When building in place, set srcdir=.
1427if test "$ac_abs_confdir" = "$ac_pwd"; then
1428  srcdir=.
1429fi
1430# Remove unnecessary trailing slashes from srcdir.
1431# Double slashes in file names in object file debugging info
1432# mess up M-x gdb in Emacs.
1433case $srcdir in
1434*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1435esac
1436for ac_var in $ac_precious_vars; do
1437  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1438  eval ac_env_${ac_var}_value=\$${ac_var}
1439  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1440  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1441done
1442
1443#
1444# Report the --help message.
1445#
1446if test "$ac_init_help" = "long"; then
1447  # Omit some internal or obsolete options to make the list less imposing.
1448  # This message is too long to be a string in the A/UX 3.1 sh.
1449  cat <<_ACEOF
1450\`configure' configures libXi 1.7.7 to adapt to many kinds of systems.
1451
1452Usage: $0 [OPTION]... [VAR=VALUE]...
1453
1454To assign environment variables (e.g., CC, CFLAGS...), specify them as
1455VAR=VALUE.  See below for descriptions of some of the useful variables.
1456
1457Defaults for the options are specified in brackets.
1458
1459Configuration:
1460  -h, --help              display this help and exit
1461      --help=short        display options specific to this package
1462      --help=recursive    display the short help of all the included packages
1463  -V, --version           display version information and exit
1464  -q, --quiet, --silent   do not print \`checking ...' messages
1465      --cache-file=FILE   cache test results in FILE [disabled]
1466  -C, --config-cache      alias for \`--cache-file=config.cache'
1467  -n, --no-create         do not create output files
1468      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1469
1470Installation directories:
1471  --prefix=PREFIX         install architecture-independent files in PREFIX
1472                          [$ac_default_prefix]
1473  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1474                          [PREFIX]
1475
1476By default, \`make install' will install all the files in
1477\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1478an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1479for instance \`--prefix=\$HOME'.
1480
1481For better control, use the options below.
1482
1483Fine tuning of the installation directories:
1484  --bindir=DIR            user executables [EPREFIX/bin]
1485  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1486  --libexecdir=DIR        program executables [EPREFIX/libexec]
1487  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1488  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1489  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1490  --libdir=DIR            object code libraries [EPREFIX/lib]
1491  --includedir=DIR        C header files [PREFIX/include]
1492  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1493  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1494  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1495  --infodir=DIR           info documentation [DATAROOTDIR/info]
1496  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1497  --mandir=DIR            man documentation [DATAROOTDIR/man]
1498  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXi]
1499  --htmldir=DIR           html documentation [DOCDIR]
1500  --dvidir=DIR            dvi documentation [DOCDIR]
1501  --pdfdir=DIR            pdf documentation [DOCDIR]
1502  --psdir=DIR             ps documentation [DOCDIR]
1503_ACEOF
1504
1505  cat <<\_ACEOF
1506
1507Program names:
1508  --program-prefix=PREFIX            prepend PREFIX to installed program names
1509  --program-suffix=SUFFIX            append SUFFIX to installed program names
1510  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1511
1512System types:
1513  --build=BUILD     configure for building on BUILD [guessed]
1514  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1515_ACEOF
1516fi
1517
1518if test -n "$ac_init_help"; then
1519  case $ac_init_help in
1520     short | recursive ) echo "Configuration of libXi 1.7.7:";;
1521   esac
1522  cat <<\_ACEOF
1523
1524Optional Features:
1525  --disable-option-checking  ignore unrecognized --enable/--with options
1526  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1527  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1528  --enable-silent-rules   less verbose build output (undo: "make V=1")
1529  --disable-silent-rules  verbose build output (undo: "make V=0")
1530  --enable-shared[=PKGS]  build shared libraries [default=yes]
1531  --enable-static[=PKGS]  build static libraries [default=yes]
1532  --enable-fast-install[=PKGS]
1533                          optimize for fast installation [default=yes]
1534  --enable-dependency-tracking
1535                          do not reject slow dependency extractors
1536  --disable-dependency-tracking
1537                          speeds up one-time build
1538  --disable-libtool-lock  avoid locking (might break parallel builds)
1539  --disable-selective-werror
1540                          Turn off selective compiler errors. (default:
1541                          enabled)
1542  --enable-strict-compilation
1543                          Enable all warnings from compiler and make them
1544                          errors (default: disabled)
1545  --enable-docs           Enable building the documentation (default: yes)
1546  --enable-specs          Enable building the specs (default: yes)
1547  --enable-malloc0returnsnull
1548                          malloc(0) returns NULL (default: auto)
1549
1550Optional Packages:
1551  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1552  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1553  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1554                          both]
1555  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1556  --with-sysroot=DIR Search for dependent libraries within DIR
1557                        (or the compiler's sysroot if not specified).
1558  --with-xmlto            Use xmlto to regenerate documentation (default:
1559                          auto)
1560  --with-fop              Use fop to regenerate documentation (default: auto)
1561  --with-xsltproc         Use xsltproc for the transformation of XML documents
1562                          (default: auto)
1563  --with-asciidoc         Use asciidoc to regenerate documentation (default:
1564                          auto)
1565
1566Some influential environment variables:
1567  CC          C compiler command
1568  CFLAGS      C compiler flags
1569  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1570              nonstandard directory <lib dir>
1571  LIBS        libraries to pass to the linker, e.g. -l<library>
1572  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1573              you have headers in a nonstandard directory <include dir>
1574  CPP         C preprocessor
1575  PKG_CONFIG  path to pkg-config utility
1576  PKG_CONFIG_PATH
1577              directories to add to pkg-config's search path
1578  PKG_CONFIG_LIBDIR
1579              path overriding pkg-config's built-in search path
1580  XMLTO       Path to xmlto command
1581  FOP         Path to fop command
1582  XSLTPROC    Path to xsltproc command
1583  ASCIIDOC    Path to asciidoc command
1584  XI_CFLAGS   C compiler flags for XI, overriding pkg-config
1585  XI_LIBS     linker flags for XI, overriding pkg-config
1586  XFIXES_CFLAGS
1587              C compiler flags for XFIXES, overriding pkg-config
1588  XFIXES_LIBS linker flags for XFIXES, overriding pkg-config
1589
1590Use these variables to override the choices made by `configure' or to help
1591it to find libraries and programs with nonstandard names/locations.
1592
1593Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1594_ACEOF
1595ac_status=$?
1596fi
1597
1598if test "$ac_init_help" = "recursive"; then
1599  # If there are subdirs, report their specific --help.
1600  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1601    test -d "$ac_dir" ||
1602      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1603      continue
1604    ac_builddir=.
1605
1606case "$ac_dir" in
1607.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1608*)
1609  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1610  # A ".." for each directory in $ac_dir_suffix.
1611  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1612  case $ac_top_builddir_sub in
1613  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1614  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1615  esac ;;
1616esac
1617ac_abs_top_builddir=$ac_pwd
1618ac_abs_builddir=$ac_pwd$ac_dir_suffix
1619# for backward compatibility:
1620ac_top_builddir=$ac_top_build_prefix
1621
1622case $srcdir in
1623  .)  # We are building in place.
1624    ac_srcdir=.
1625    ac_top_srcdir=$ac_top_builddir_sub
1626    ac_abs_top_srcdir=$ac_pwd ;;
1627  [\\/]* | ?:[\\/]* )  # Absolute name.
1628    ac_srcdir=$srcdir$ac_dir_suffix;
1629    ac_top_srcdir=$srcdir
1630    ac_abs_top_srcdir=$srcdir ;;
1631  *) # Relative name.
1632    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1633    ac_top_srcdir=$ac_top_build_prefix$srcdir
1634    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1635esac
1636ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1637
1638    cd "$ac_dir" || { ac_status=$?; continue; }
1639    # Check for guested configure.
1640    if test -f "$ac_srcdir/configure.gnu"; then
1641      echo &&
1642      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1643    elif test -f "$ac_srcdir/configure"; then
1644      echo &&
1645      $SHELL "$ac_srcdir/configure" --help=recursive
1646    else
1647      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1648    fi || ac_status=$?
1649    cd "$ac_pwd" || { ac_status=$?; break; }
1650  done
1651fi
1652
1653test -n "$ac_init_help" && exit $ac_status
1654if $ac_init_version; then
1655  cat <<\_ACEOF
1656libXi configure 1.7.7
1657generated by GNU Autoconf 2.69
1658
1659Copyright (C) 2012 Free Software Foundation, Inc.
1660This configure script is free software; the Free Software Foundation
1661gives unlimited permission to copy, distribute and modify it.
1662_ACEOF
1663  exit
1664fi
1665
1666## ------------------------ ##
1667## Autoconf initialization. ##
1668## ------------------------ ##
1669
1670# ac_fn_c_try_compile LINENO
1671# --------------------------
1672# Try to compile conftest.$ac_ext, and return whether this succeeded.
1673ac_fn_c_try_compile ()
1674{
1675  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676  rm -f conftest.$ac_objext
1677  if { { ac_try="$ac_compile"
1678case "(($ac_try" in
1679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680  *) ac_try_echo=$ac_try;;
1681esac
1682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683$as_echo "$ac_try_echo"; } >&5
1684  (eval "$ac_compile") 2>conftest.err
1685  ac_status=$?
1686  if test -s conftest.err; then
1687    grep -v '^ *+' conftest.err >conftest.er1
1688    cat conftest.er1 >&5
1689    mv -f conftest.er1 conftest.err
1690  fi
1691  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692  test $ac_status = 0; } && {
1693	 test -z "$ac_c_werror_flag" ||
1694	 test ! -s conftest.err
1695       } && test -s conftest.$ac_objext; then :
1696  ac_retval=0
1697else
1698  $as_echo "$as_me: failed program was:" >&5
1699sed 's/^/| /' conftest.$ac_ext >&5
1700
1701	ac_retval=1
1702fi
1703  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704  as_fn_set_status $ac_retval
1705
1706} # ac_fn_c_try_compile
1707
1708# ac_fn_c_try_link LINENO
1709# -----------------------
1710# Try to link conftest.$ac_ext, and return whether this succeeded.
1711ac_fn_c_try_link ()
1712{
1713  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714  rm -f conftest.$ac_objext conftest$ac_exeext
1715  if { { ac_try="$ac_link"
1716case "(($ac_try" in
1717  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718  *) ac_try_echo=$ac_try;;
1719esac
1720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721$as_echo "$ac_try_echo"; } >&5
1722  (eval "$ac_link") 2>conftest.err
1723  ac_status=$?
1724  if test -s conftest.err; then
1725    grep -v '^ *+' conftest.err >conftest.er1
1726    cat conftest.er1 >&5
1727    mv -f conftest.er1 conftest.err
1728  fi
1729  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730  test $ac_status = 0; } && {
1731	 test -z "$ac_c_werror_flag" ||
1732	 test ! -s conftest.err
1733       } && test -s conftest$ac_exeext && {
1734	 test "$cross_compiling" = yes ||
1735	 test -x conftest$ac_exeext
1736       }; then :
1737  ac_retval=0
1738else
1739  $as_echo "$as_me: failed program was:" >&5
1740sed 's/^/| /' conftest.$ac_ext >&5
1741
1742	ac_retval=1
1743fi
1744  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1745  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1746  # interfere with the next link command; also delete a directory that is
1747  # left behind by Apple's compiler.  We do this before executing the actions.
1748  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1749  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750  as_fn_set_status $ac_retval
1751
1752} # ac_fn_c_try_link
1753
1754# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1755# -------------------------------------------------------
1756# Tests whether HEADER exists and can be compiled using the include files in
1757# INCLUDES, setting the cache variable VAR accordingly.
1758ac_fn_c_check_header_compile ()
1759{
1760  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762$as_echo_n "checking for $2... " >&6; }
1763if eval \${$3+:} false; then :
1764  $as_echo_n "(cached) " >&6
1765else
1766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767/* end confdefs.h.  */
1768$4
1769#include <$2>
1770_ACEOF
1771if ac_fn_c_try_compile "$LINENO"; then :
1772  eval "$3=yes"
1773else
1774  eval "$3=no"
1775fi
1776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1777fi
1778eval ac_res=\$$3
1779	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780$as_echo "$ac_res" >&6; }
1781  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782
1783} # ac_fn_c_check_header_compile
1784
1785# ac_fn_c_try_cpp LINENO
1786# ----------------------
1787# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1788ac_fn_c_try_cpp ()
1789{
1790  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791  if { { ac_try="$ac_cpp conftest.$ac_ext"
1792case "(($ac_try" in
1793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794  *) ac_try_echo=$ac_try;;
1795esac
1796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797$as_echo "$ac_try_echo"; } >&5
1798  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1799  ac_status=$?
1800  if test -s conftest.err; then
1801    grep -v '^ *+' conftest.err >conftest.er1
1802    cat conftest.er1 >&5
1803    mv -f conftest.er1 conftest.err
1804  fi
1805  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806  test $ac_status = 0; } > conftest.i && {
1807	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1808	 test ! -s conftest.err
1809       }; then :
1810  ac_retval=0
1811else
1812  $as_echo "$as_me: failed program was:" >&5
1813sed 's/^/| /' conftest.$ac_ext >&5
1814
1815    ac_retval=1
1816fi
1817  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818  as_fn_set_status $ac_retval
1819
1820} # ac_fn_c_try_cpp
1821
1822# ac_fn_c_try_run LINENO
1823# ----------------------
1824# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1825# that executables *can* be run.
1826ac_fn_c_try_run ()
1827{
1828  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829  if { { ac_try="$ac_link"
1830case "(($ac_try" in
1831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832  *) ac_try_echo=$ac_try;;
1833esac
1834eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835$as_echo "$ac_try_echo"; } >&5
1836  (eval "$ac_link") 2>&5
1837  ac_status=$?
1838  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1840  { { case "(($ac_try" in
1841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842  *) ac_try_echo=$ac_try;;
1843esac
1844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845$as_echo "$ac_try_echo"; } >&5
1846  (eval "$ac_try") 2>&5
1847  ac_status=$?
1848  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849  test $ac_status = 0; }; }; then :
1850  ac_retval=0
1851else
1852  $as_echo "$as_me: program exited with status $ac_status" >&5
1853       $as_echo "$as_me: failed program was:" >&5
1854sed 's/^/| /' conftest.$ac_ext >&5
1855
1856       ac_retval=$ac_status
1857fi
1858  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1859  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860  as_fn_set_status $ac_retval
1861
1862} # ac_fn_c_try_run
1863
1864# ac_fn_c_check_func LINENO FUNC VAR
1865# ----------------------------------
1866# Tests whether FUNC exists, setting the cache variable VAR accordingly
1867ac_fn_c_check_func ()
1868{
1869  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871$as_echo_n "checking for $2... " >&6; }
1872if eval \${$3+:} false; then :
1873  $as_echo_n "(cached) " >&6
1874else
1875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876/* end confdefs.h.  */
1877/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1878   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1879#define $2 innocuous_$2
1880
1881/* System header to define __stub macros and hopefully few prototypes,
1882    which can conflict with char $2 (); below.
1883    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1884    <limits.h> exists even on freestanding compilers.  */
1885
1886#ifdef __STDC__
1887# include <limits.h>
1888#else
1889# include <assert.h>
1890#endif
1891
1892#undef $2
1893
1894/* Override any GCC internal prototype to avoid an error.
1895   Use char because int might match the return type of a GCC
1896   builtin and then its argument prototype would still apply.  */
1897#ifdef __cplusplus
1898extern "C"
1899#endif
1900char $2 ();
1901/* The GNU C library defines this for functions which it implements
1902    to always fail with ENOSYS.  Some functions are actually named
1903    something starting with __ and the normal name is an alias.  */
1904#if defined __stub_$2 || defined __stub___$2
1905choke me
1906#endif
1907
1908int
1909main ()
1910{
1911return $2 ();
1912  ;
1913  return 0;
1914}
1915_ACEOF
1916if ac_fn_c_try_link "$LINENO"; then :
1917  eval "$3=yes"
1918else
1919  eval "$3=no"
1920fi
1921rm -f core conftest.err conftest.$ac_objext \
1922    conftest$ac_exeext conftest.$ac_ext
1923fi
1924eval ac_res=\$$3
1925	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1926$as_echo "$ac_res" >&6; }
1927  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1928
1929} # ac_fn_c_check_func
1930
1931# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1932# ---------------------------------------------
1933# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1934# accordingly.
1935ac_fn_c_check_decl ()
1936{
1937  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938  as_decl_name=`echo $2|sed 's/ *(.*//'`
1939  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1940  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1941$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1942if eval \${$3+:} false; then :
1943  $as_echo_n "(cached) " >&6
1944else
1945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946/* end confdefs.h.  */
1947$4
1948int
1949main ()
1950{
1951#ifndef $as_decl_name
1952#ifdef __cplusplus
1953  (void) $as_decl_use;
1954#else
1955  (void) $as_decl_name;
1956#endif
1957#endif
1958
1959  ;
1960  return 0;
1961}
1962_ACEOF
1963if ac_fn_c_try_compile "$LINENO"; then :
1964  eval "$3=yes"
1965else
1966  eval "$3=no"
1967fi
1968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969fi
1970eval ac_res=\$$3
1971	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972$as_echo "$ac_res" >&6; }
1973  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974
1975} # ac_fn_c_check_decl
1976cat >config.log <<_ACEOF
1977This file contains any messages produced by compilers while
1978running configure, to aid debugging if configure makes a mistake.
1979
1980It was created by libXi $as_me 1.7.7, which was
1981generated by GNU Autoconf 2.69.  Invocation command line was
1982
1983  $ $0 $@
1984
1985_ACEOF
1986exec 5>>config.log
1987{
1988cat <<_ASUNAME
1989## --------- ##
1990## Platform. ##
1991## --------- ##
1992
1993hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1994uname -m = `(uname -m) 2>/dev/null || echo unknown`
1995uname -r = `(uname -r) 2>/dev/null || echo unknown`
1996uname -s = `(uname -s) 2>/dev/null || echo unknown`
1997uname -v = `(uname -v) 2>/dev/null || echo unknown`
1998
1999/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2000/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2001
2002/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2003/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2004/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2005/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2006/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2007/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2008/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2009
2010_ASUNAME
2011
2012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013for as_dir in $PATH
2014do
2015  IFS=$as_save_IFS
2016  test -z "$as_dir" && as_dir=.
2017    $as_echo "PATH: $as_dir"
2018  done
2019IFS=$as_save_IFS
2020
2021} >&5
2022
2023cat >&5 <<_ACEOF
2024
2025
2026## ----------- ##
2027## Core tests. ##
2028## ----------- ##
2029
2030_ACEOF
2031
2032
2033# Keep a trace of the command line.
2034# Strip out --no-create and --no-recursion so they do not pile up.
2035# Strip out --silent because we don't want to record it for future runs.
2036# Also quote any args containing shell meta-characters.
2037# Make two passes to allow for proper duplicate-argument suppression.
2038ac_configure_args=
2039ac_configure_args0=
2040ac_configure_args1=
2041ac_must_keep_next=false
2042for ac_pass in 1 2
2043do
2044  for ac_arg
2045  do
2046    case $ac_arg in
2047    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2048    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2049    | -silent | --silent | --silen | --sile | --sil)
2050      continue ;;
2051    *\'*)
2052      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2053    esac
2054    case $ac_pass in
2055    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2056    2)
2057      as_fn_append ac_configure_args1 " '$ac_arg'"
2058      if test $ac_must_keep_next = true; then
2059	ac_must_keep_next=false # Got value, back to normal.
2060      else
2061	case $ac_arg in
2062	  *=* | --config-cache | -C | -disable-* | --disable-* \
2063	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2064	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2065	  | -with-* | --with-* | -without-* | --without-* | --x)
2066	    case "$ac_configure_args0 " in
2067	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2068	    esac
2069	    ;;
2070	  -* ) ac_must_keep_next=true ;;
2071	esac
2072      fi
2073      as_fn_append ac_configure_args " '$ac_arg'"
2074      ;;
2075    esac
2076  done
2077done
2078{ ac_configure_args0=; unset ac_configure_args0;}
2079{ ac_configure_args1=; unset ac_configure_args1;}
2080
2081# When interrupted or exit'd, cleanup temporary files, and complete
2082# config.log.  We remove comments because anyway the quotes in there
2083# would cause problems or look ugly.
2084# WARNING: Use '\'' to represent an apostrophe within the trap.
2085# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2086trap 'exit_status=$?
2087  # Save into config.log some information that might help in debugging.
2088  {
2089    echo
2090
2091    $as_echo "## ---------------- ##
2092## Cache variables. ##
2093## ---------------- ##"
2094    echo
2095    # The following way of writing the cache mishandles newlines in values,
2096(
2097  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2098    eval ac_val=\$$ac_var
2099    case $ac_val in #(
2100    *${as_nl}*)
2101      case $ac_var in #(
2102      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2103$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2104      esac
2105      case $ac_var in #(
2106      _ | IFS | as_nl) ;; #(
2107      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2108      *) { eval $ac_var=; unset $ac_var;} ;;
2109      esac ;;
2110    esac
2111  done
2112  (set) 2>&1 |
2113    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2114    *${as_nl}ac_space=\ *)
2115      sed -n \
2116	"s/'\''/'\''\\\\'\'''\''/g;
2117	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2118      ;; #(
2119    *)
2120      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2121      ;;
2122    esac |
2123    sort
2124)
2125    echo
2126
2127    $as_echo "## ----------------- ##
2128## Output variables. ##
2129## ----------------- ##"
2130    echo
2131    for ac_var in $ac_subst_vars
2132    do
2133      eval ac_val=\$$ac_var
2134      case $ac_val in
2135      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2136      esac
2137      $as_echo "$ac_var='\''$ac_val'\''"
2138    done | sort
2139    echo
2140
2141    if test -n "$ac_subst_files"; then
2142      $as_echo "## ------------------- ##
2143## File substitutions. ##
2144## ------------------- ##"
2145      echo
2146      for ac_var in $ac_subst_files
2147      do
2148	eval ac_val=\$$ac_var
2149	case $ac_val in
2150	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2151	esac
2152	$as_echo "$ac_var='\''$ac_val'\''"
2153      done | sort
2154      echo
2155    fi
2156
2157    if test -s confdefs.h; then
2158      $as_echo "## ----------- ##
2159## confdefs.h. ##
2160## ----------- ##"
2161      echo
2162      cat confdefs.h
2163      echo
2164    fi
2165    test "$ac_signal" != 0 &&
2166      $as_echo "$as_me: caught signal $ac_signal"
2167    $as_echo "$as_me: exit $exit_status"
2168  } >&5
2169  rm -f core *.core core.conftest.* &&
2170    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2171    exit $exit_status
2172' 0
2173for ac_signal in 1 2 13 15; do
2174  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2175done
2176ac_signal=0
2177
2178# confdefs.h avoids OS command line length limits that DEFS can exceed.
2179rm -f -r conftest* confdefs.h
2180
2181$as_echo "/* confdefs.h */" > confdefs.h
2182
2183# Predefined preprocessor variables.
2184
2185cat >>confdefs.h <<_ACEOF
2186#define PACKAGE_NAME "$PACKAGE_NAME"
2187_ACEOF
2188
2189cat >>confdefs.h <<_ACEOF
2190#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2191_ACEOF
2192
2193cat >>confdefs.h <<_ACEOF
2194#define PACKAGE_VERSION "$PACKAGE_VERSION"
2195_ACEOF
2196
2197cat >>confdefs.h <<_ACEOF
2198#define PACKAGE_STRING "$PACKAGE_STRING"
2199_ACEOF
2200
2201cat >>confdefs.h <<_ACEOF
2202#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2203_ACEOF
2204
2205cat >>confdefs.h <<_ACEOF
2206#define PACKAGE_URL "$PACKAGE_URL"
2207_ACEOF
2208
2209
2210# Let the site file select an alternate cache file if it wants to.
2211# Prefer an explicitly selected file to automatically selected ones.
2212ac_site_file1=NONE
2213ac_site_file2=NONE
2214if test -n "$CONFIG_SITE"; then
2215  # We do not want a PATH search for config.site.
2216  case $CONFIG_SITE in #((
2217    -*)  ac_site_file1=./$CONFIG_SITE;;
2218    */*) ac_site_file1=$CONFIG_SITE;;
2219    *)   ac_site_file1=./$CONFIG_SITE;;
2220  esac
2221elif test "x$prefix" != xNONE; then
2222  ac_site_file1=$prefix/share/config.site
2223  ac_site_file2=$prefix/etc/config.site
2224else
2225  ac_site_file1=$ac_default_prefix/share/config.site
2226  ac_site_file2=$ac_default_prefix/etc/config.site
2227fi
2228for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2229do
2230  test "x$ac_site_file" = xNONE && continue
2231  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2232    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2233$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2234    sed 's/^/| /' "$ac_site_file" >&5
2235    . "$ac_site_file" \
2236      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2238as_fn_error $? "failed to load site script $ac_site_file
2239See \`config.log' for more details" "$LINENO" 5; }
2240  fi
2241done
2242
2243if test -r "$cache_file"; then
2244  # Some versions of bash will fail to source /dev/null (special files
2245  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2246  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2247    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2248$as_echo "$as_me: loading cache $cache_file" >&6;}
2249    case $cache_file in
2250      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2251      *)                      . "./$cache_file";;
2252    esac
2253  fi
2254else
2255  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2256$as_echo "$as_me: creating cache $cache_file" >&6;}
2257  >$cache_file
2258fi
2259
2260# Check that the precious variables saved in the cache have kept the same
2261# value.
2262ac_cache_corrupted=false
2263for ac_var in $ac_precious_vars; do
2264  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2265  eval ac_new_set=\$ac_env_${ac_var}_set
2266  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2267  eval ac_new_val=\$ac_env_${ac_var}_value
2268  case $ac_old_set,$ac_new_set in
2269    set,)
2270      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2271$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2272      ac_cache_corrupted=: ;;
2273    ,set)
2274      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2275$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2276      ac_cache_corrupted=: ;;
2277    ,);;
2278    *)
2279      if test "x$ac_old_val" != "x$ac_new_val"; then
2280	# differences in whitespace do not lead to failure.
2281	ac_old_val_w=`echo x $ac_old_val`
2282	ac_new_val_w=`echo x $ac_new_val`
2283	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2284	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2285$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2286	  ac_cache_corrupted=:
2287	else
2288	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2289$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2290	  eval $ac_var=\$ac_old_val
2291	fi
2292	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2293$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2294	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2295$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2296      fi;;
2297  esac
2298  # Pass precious variables to config.status.
2299  if test "$ac_new_set" = set; then
2300    case $ac_new_val in
2301    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2302    *) ac_arg=$ac_var=$ac_new_val ;;
2303    esac
2304    case " $ac_configure_args " in
2305      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2306      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2307    esac
2308  fi
2309done
2310if $ac_cache_corrupted; then
2311  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2312$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2313  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2314$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2315  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2316fi
2317## -------------------- ##
2318## Main body of script. ##
2319## -------------------- ##
2320
2321ac_ext=c
2322ac_cpp='$CPP $CPPFLAGS'
2323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2325ac_compiler_gnu=$ac_cv_c_compiler_gnu
2326
2327
2328
2329ac_config_headers="$ac_config_headers src/config.h"
2330
2331
2332# Initialize Automake
2333am__api_version='1.14'
2334
2335ac_aux_dir=
2336for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2337  if test -f "$ac_dir/install-sh"; then
2338    ac_aux_dir=$ac_dir
2339    ac_install_sh="$ac_aux_dir/install-sh -c"
2340    break
2341  elif test -f "$ac_dir/install.sh"; then
2342    ac_aux_dir=$ac_dir
2343    ac_install_sh="$ac_aux_dir/install.sh -c"
2344    break
2345  elif test -f "$ac_dir/shtool"; then
2346    ac_aux_dir=$ac_dir
2347    ac_install_sh="$ac_aux_dir/shtool install -c"
2348    break
2349  fi
2350done
2351if test -z "$ac_aux_dir"; then
2352  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2353fi
2354
2355# These three variables are undocumented and unsupported,
2356# and are intended to be withdrawn in a future Autoconf release.
2357# They can cause serious problems if a builder's source tree is in a directory
2358# whose full name contains unusual characters.
2359ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2360ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2361ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2362
2363
2364# Find a good install program.  We prefer a C program (faster),
2365# so one script is as good as another.  But avoid the broken or
2366# incompatible versions:
2367# SysV /etc/install, /usr/sbin/install
2368# SunOS /usr/etc/install
2369# IRIX /sbin/install
2370# AIX /bin/install
2371# AmigaOS /C/install, which installs bootblocks on floppy discs
2372# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2373# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2374# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2375# OS/2's system install, which has a completely different semantic
2376# ./install, which can be erroneously created by make from ./install.sh.
2377# Reject install programs that cannot install multiple files.
2378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2379$as_echo_n "checking for a BSD-compatible install... " >&6; }
2380if test -z "$INSTALL"; then
2381if ${ac_cv_path_install+:} false; then :
2382  $as_echo_n "(cached) " >&6
2383else
2384  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385for as_dir in $PATH
2386do
2387  IFS=$as_save_IFS
2388  test -z "$as_dir" && as_dir=.
2389    # Account for people who put trailing slashes in PATH elements.
2390case $as_dir/ in #((
2391  ./ | .// | /[cC]/* | \
2392  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2393  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2394  /usr/ucb/* ) ;;
2395  *)
2396    # OSF1 and SCO ODT 3.0 have their own names for install.
2397    # Don't use installbsd from OSF since it installs stuff as root
2398    # by default.
2399    for ac_prog in ginstall scoinst install; do
2400      for ac_exec_ext in '' $ac_executable_extensions; do
2401	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2402	  if test $ac_prog = install &&
2403	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2404	    # AIX install.  It has an incompatible calling convention.
2405	    :
2406	  elif test $ac_prog = install &&
2407	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2408	    # program-specific install script used by HP pwplus--don't use.
2409	    :
2410	  else
2411	    rm -rf conftest.one conftest.two conftest.dir
2412	    echo one > conftest.one
2413	    echo two > conftest.two
2414	    mkdir conftest.dir
2415	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2416	      test -s conftest.one && test -s conftest.two &&
2417	      test -s conftest.dir/conftest.one &&
2418	      test -s conftest.dir/conftest.two
2419	    then
2420	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2421	      break 3
2422	    fi
2423	  fi
2424	fi
2425      done
2426    done
2427    ;;
2428esac
2429
2430  done
2431IFS=$as_save_IFS
2432
2433rm -rf conftest.one conftest.two conftest.dir
2434
2435fi
2436  if test "${ac_cv_path_install+set}" = set; then
2437    INSTALL=$ac_cv_path_install
2438  else
2439    # As a last resort, use the slow shell script.  Don't cache a
2440    # value for INSTALL within a source directory, because that will
2441    # break other packages using the cache if that directory is
2442    # removed, or if the value is a relative name.
2443    INSTALL=$ac_install_sh
2444  fi
2445fi
2446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2447$as_echo "$INSTALL" >&6; }
2448
2449# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2450# It thinks the first close brace ends the variable substitution.
2451test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2452
2453test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2454
2455test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2456
2457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2458$as_echo_n "checking whether build environment is sane... " >&6; }
2459# Reject unsafe characters in $srcdir or the absolute working directory
2460# name.  Accept space and tab only in the latter.
2461am_lf='
2462'
2463case `pwd` in
2464  *[\\\"\#\$\&\'\`$am_lf]*)
2465    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2466esac
2467case $srcdir in
2468  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2469    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2470esac
2471
2472# Do 'set' in a subshell so we don't clobber the current shell's
2473# arguments.  Must try -L first in case configure is actually a
2474# symlink; some systems play weird games with the mod time of symlinks
2475# (eg FreeBSD returns the mod time of the symlink's containing
2476# directory).
2477if (
2478   am_has_slept=no
2479   for am_try in 1 2; do
2480     echo "timestamp, slept: $am_has_slept" > conftest.file
2481     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2482     if test "$*" = "X"; then
2483	# -L didn't work.
2484	set X `ls -t "$srcdir/configure" conftest.file`
2485     fi
2486     if test "$*" != "X $srcdir/configure conftest.file" \
2487	&& test "$*" != "X conftest.file $srcdir/configure"; then
2488
2489	# If neither matched, then we have a broken ls.  This can happen
2490	# if, for instance, CONFIG_SHELL is bash and it inherits a
2491	# broken ls alias from the environment.  This has actually
2492	# happened.  Such a system could not be considered "sane".
2493	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2494  alias in your environment" "$LINENO" 5
2495     fi
2496     if test "$2" = conftest.file || test $am_try -eq 2; then
2497       break
2498     fi
2499     # Just in case.
2500     sleep 1
2501     am_has_slept=yes
2502   done
2503   test "$2" = conftest.file
2504   )
2505then
2506   # Ok.
2507   :
2508else
2509   as_fn_error $? "newly created file is older than distributed files!
2510Check your system clock" "$LINENO" 5
2511fi
2512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2513$as_echo "yes" >&6; }
2514# If we didn't sleep, we still need to ensure time stamps of config.status and
2515# generated files are strictly newer.
2516am_sleep_pid=
2517if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2518  ( sleep 1 ) &
2519  am_sleep_pid=$!
2520fi
2521
2522rm -f conftest.file
2523
2524test "$program_prefix" != NONE &&
2525  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2526# Use a double $ so make ignores it.
2527test "$program_suffix" != NONE &&
2528  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2529# Double any \ or $.
2530# By default was `s,x,x', remove it if useless.
2531ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2532program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2533
2534# expand $ac_aux_dir to an absolute path
2535am_aux_dir=`cd $ac_aux_dir && pwd`
2536
2537if test x"${MISSING+set}" != xset; then
2538  case $am_aux_dir in
2539  *\ * | *\	*)
2540    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2541  *)
2542    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2543  esac
2544fi
2545# Use eval to expand $SHELL
2546if eval "$MISSING --is-lightweight"; then
2547  am_missing_run="$MISSING "
2548else
2549  am_missing_run=
2550  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2551$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2552fi
2553
2554if test x"${install_sh}" != xset; then
2555  case $am_aux_dir in
2556  *\ * | *\	*)
2557    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2558  *)
2559    install_sh="\${SHELL} $am_aux_dir/install-sh"
2560  esac
2561fi
2562
2563# Installed binaries are usually stripped using 'strip' when the user
2564# run "make install-strip".  However 'strip' might not be the right
2565# tool to use in cross-compilation environments, therefore Automake
2566# will honor the 'STRIP' environment variable to overrule this program.
2567if test "$cross_compiling" != no; then
2568  if test -n "$ac_tool_prefix"; then
2569  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2570set dummy ${ac_tool_prefix}strip; ac_word=$2
2571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2572$as_echo_n "checking for $ac_word... " >&6; }
2573if ${ac_cv_prog_STRIP+:} false; then :
2574  $as_echo_n "(cached) " >&6
2575else
2576  if test -n "$STRIP"; then
2577  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2578else
2579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580for as_dir in $PATH
2581do
2582  IFS=$as_save_IFS
2583  test -z "$as_dir" && as_dir=.
2584    for ac_exec_ext in '' $ac_executable_extensions; do
2585  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2586    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2587    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2588    break 2
2589  fi
2590done
2591  done
2592IFS=$as_save_IFS
2593
2594fi
2595fi
2596STRIP=$ac_cv_prog_STRIP
2597if test -n "$STRIP"; then
2598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2599$as_echo "$STRIP" >&6; }
2600else
2601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2602$as_echo "no" >&6; }
2603fi
2604
2605
2606fi
2607if test -z "$ac_cv_prog_STRIP"; then
2608  ac_ct_STRIP=$STRIP
2609  # Extract the first word of "strip", so it can be a program name with args.
2610set dummy strip; ac_word=$2
2611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2612$as_echo_n "checking for $ac_word... " >&6; }
2613if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2614  $as_echo_n "(cached) " >&6
2615else
2616  if test -n "$ac_ct_STRIP"; then
2617  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2618else
2619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620for as_dir in $PATH
2621do
2622  IFS=$as_save_IFS
2623  test -z "$as_dir" && as_dir=.
2624    for ac_exec_ext in '' $ac_executable_extensions; do
2625  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2626    ac_cv_prog_ac_ct_STRIP="strip"
2627    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2628    break 2
2629  fi
2630done
2631  done
2632IFS=$as_save_IFS
2633
2634fi
2635fi
2636ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2637if test -n "$ac_ct_STRIP"; then
2638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2639$as_echo "$ac_ct_STRIP" >&6; }
2640else
2641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2642$as_echo "no" >&6; }
2643fi
2644
2645  if test "x$ac_ct_STRIP" = x; then
2646    STRIP=":"
2647  else
2648    case $cross_compiling:$ac_tool_warned in
2649yes:)
2650{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2651$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2652ac_tool_warned=yes ;;
2653esac
2654    STRIP=$ac_ct_STRIP
2655  fi
2656else
2657  STRIP="$ac_cv_prog_STRIP"
2658fi
2659
2660fi
2661INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2662
2663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2664$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2665if test -z "$MKDIR_P"; then
2666  if ${ac_cv_path_mkdir+:} false; then :
2667  $as_echo_n "(cached) " >&6
2668else
2669  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2671do
2672  IFS=$as_save_IFS
2673  test -z "$as_dir" && as_dir=.
2674    for ac_prog in mkdir gmkdir; do
2675	 for ac_exec_ext in '' $ac_executable_extensions; do
2676	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2677	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2678	     'mkdir (GNU coreutils) '* | \
2679	     'mkdir (coreutils) '* | \
2680	     'mkdir (fileutils) '4.1*)
2681	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2682	       break 3;;
2683	   esac
2684	 done
2685       done
2686  done
2687IFS=$as_save_IFS
2688
2689fi
2690
2691  test -d ./--version && rmdir ./--version
2692  if test "${ac_cv_path_mkdir+set}" = set; then
2693    MKDIR_P="$ac_cv_path_mkdir -p"
2694  else
2695    # As a last resort, use the slow shell script.  Don't cache a
2696    # value for MKDIR_P within a source directory, because that will
2697    # break other packages using the cache if that directory is
2698    # removed, or if the value is a relative name.
2699    MKDIR_P="$ac_install_sh -d"
2700  fi
2701fi
2702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2703$as_echo "$MKDIR_P" >&6; }
2704
2705for ac_prog in gawk mawk nawk awk
2706do
2707  # Extract the first word of "$ac_prog", so it can be a program name with args.
2708set dummy $ac_prog; ac_word=$2
2709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2710$as_echo_n "checking for $ac_word... " >&6; }
2711if ${ac_cv_prog_AWK+:} false; then :
2712  $as_echo_n "(cached) " >&6
2713else
2714  if test -n "$AWK"; then
2715  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2716else
2717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718for as_dir in $PATH
2719do
2720  IFS=$as_save_IFS
2721  test -z "$as_dir" && as_dir=.
2722    for ac_exec_ext in '' $ac_executable_extensions; do
2723  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2724    ac_cv_prog_AWK="$ac_prog"
2725    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2726    break 2
2727  fi
2728done
2729  done
2730IFS=$as_save_IFS
2731
2732fi
2733fi
2734AWK=$ac_cv_prog_AWK
2735if test -n "$AWK"; then
2736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2737$as_echo "$AWK" >&6; }
2738else
2739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2740$as_echo "no" >&6; }
2741fi
2742
2743
2744  test -n "$AWK" && break
2745done
2746
2747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2748$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2749set x ${MAKE-make}
2750ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2751if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2752  $as_echo_n "(cached) " >&6
2753else
2754  cat >conftest.make <<\_ACEOF
2755SHELL = /bin/sh
2756all:
2757	@echo '@@@%%%=$(MAKE)=@@@%%%'
2758_ACEOF
2759# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2760case `${MAKE-make} -f conftest.make 2>/dev/null` in
2761  *@@@%%%=?*=@@@%%%*)
2762    eval ac_cv_prog_make_${ac_make}_set=yes;;
2763  *)
2764    eval ac_cv_prog_make_${ac_make}_set=no;;
2765esac
2766rm -f conftest.make
2767fi
2768if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2770$as_echo "yes" >&6; }
2771  SET_MAKE=
2772else
2773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2774$as_echo "no" >&6; }
2775  SET_MAKE="MAKE=${MAKE-make}"
2776fi
2777
2778rm -rf .tst 2>/dev/null
2779mkdir .tst 2>/dev/null
2780if test -d .tst; then
2781  am__leading_dot=.
2782else
2783  am__leading_dot=_
2784fi
2785rmdir .tst 2>/dev/null
2786
2787# Check whether --enable-silent-rules was given.
2788if test "${enable_silent_rules+set}" = set; then :
2789  enableval=$enable_silent_rules;
2790fi
2791
2792case $enable_silent_rules in # (((
2793  yes) AM_DEFAULT_VERBOSITY=0;;
2794   no) AM_DEFAULT_VERBOSITY=1;;
2795    *) AM_DEFAULT_VERBOSITY=1;;
2796esac
2797am_make=${MAKE-make}
2798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2799$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2800if ${am_cv_make_support_nested_variables+:} false; then :
2801  $as_echo_n "(cached) " >&6
2802else
2803  if $as_echo 'TRUE=$(BAR$(V))
2804BAR0=false
2805BAR1=true
2806V=1
2807am__doit:
2808	@$(TRUE)
2809.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2810  am_cv_make_support_nested_variables=yes
2811else
2812  am_cv_make_support_nested_variables=no
2813fi
2814fi
2815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2816$as_echo "$am_cv_make_support_nested_variables" >&6; }
2817if test $am_cv_make_support_nested_variables = yes; then
2818    AM_V='$(V)'
2819  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2820else
2821  AM_V=$AM_DEFAULT_VERBOSITY
2822  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2823fi
2824AM_BACKSLASH='\'
2825
2826if test "`cd $srcdir && pwd`" != "`pwd`"; then
2827  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2828  # is not polluted with repeated "-I."
2829  am__isrc=' -I$(srcdir)'
2830  # test to see if srcdir already configured
2831  if test -f $srcdir/config.status; then
2832    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2833  fi
2834fi
2835
2836# test whether we have cygpath
2837if test -z "$CYGPATH_W"; then
2838  if (cygpath --version) >/dev/null 2>/dev/null; then
2839    CYGPATH_W='cygpath -w'
2840  else
2841    CYGPATH_W=echo
2842  fi
2843fi
2844
2845
2846# Define the identity of the package.
2847 PACKAGE='libXi'
2848 VERSION='1.7.7'
2849
2850
2851cat >>confdefs.h <<_ACEOF
2852#define PACKAGE "$PACKAGE"
2853_ACEOF
2854
2855
2856cat >>confdefs.h <<_ACEOF
2857#define VERSION "$VERSION"
2858_ACEOF
2859
2860# Some tools Automake needs.
2861
2862ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2863
2864
2865AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2866
2867
2868AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2869
2870
2871AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2872
2873
2874MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2875
2876# For better backward compatibility.  To be removed once Automake 1.9.x
2877# dies out for good.  For more background, see:
2878# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2879# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2880mkdir_p='$(MKDIR_P)'
2881
2882# We need awk for the "check" target.  The system "awk" is bad on
2883# some platforms.
2884# Always define AMTAR for backward compatibility.  Yes, it's still used
2885# in the wild :-(  We should find a proper way to deprecate it ...
2886AMTAR='$${TAR-tar}'
2887
2888
2889# We'll loop over all known methods to create a tar archive until one works.
2890_am_tools='gnutar  pax cpio none'
2891
2892am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2893
2894
2895
2896
2897
2898
2899# POSIX will say in a future version that running "rm -f" with no argument
2900# is OK; and we want to be able to make that assumption in our Makefile
2901# recipes.  So use an aggressive probe to check that the usage we want is
2902# actually supported "in the wild" to an acceptable degree.
2903# See automake bug#10828.
2904# To make any issue more visible, cause the running configure to be aborted
2905# by default if the 'rm' program in use doesn't match our expectations; the
2906# user can still override this though.
2907if rm -f && rm -fr && rm -rf; then : OK; else
2908  cat >&2 <<'END'
2909Oops!
2910
2911Your 'rm' program seems unable to run without file operands specified
2912on the command line, even when the '-f' option is present.  This is contrary
2913to the behaviour of most rm programs out there, and not conforming with
2914the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2915
2916Please tell bug-automake@gnu.org about your system, including the value
2917of your $PATH and any error possibly output before this message.  This
2918can help us improve future automake versions.
2919
2920END
2921  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2922    echo 'Configuration will proceed anyway, since you have set the' >&2
2923    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2924    echo >&2
2925  else
2926    cat >&2 <<'END'
2927Aborting the configuration process, to ensure you take notice of the issue.
2928
2929You can download and install GNU coreutils to get an 'rm' implementation
2930that behaves properly: <http://www.gnu.org/software/coreutils/>.
2931
2932If you want to complete the configuration process using your problematic
2933'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2934to "yes", and re-run configure.
2935
2936END
2937    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2938  fi
2939fi
2940
2941# Initialize libtool
2942case `pwd` in
2943  *\ * | *\	*)
2944    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2945$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2946esac
2947
2948
2949
2950macro_version='2.4.2'
2951macro_revision='1.3337'
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965ltmain="$ac_aux_dir/ltmain.sh"
2966
2967# Make sure we can run config.sub.
2968$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2969  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2970
2971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2972$as_echo_n "checking build system type... " >&6; }
2973if ${ac_cv_build+:} false; then :
2974  $as_echo_n "(cached) " >&6
2975else
2976  ac_build_alias=$build_alias
2977test "x$ac_build_alias" = x &&
2978  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2979test "x$ac_build_alias" = x &&
2980  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2981ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2982  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2983
2984fi
2985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2986$as_echo "$ac_cv_build" >&6; }
2987case $ac_cv_build in
2988*-*-*) ;;
2989*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2990esac
2991build=$ac_cv_build
2992ac_save_IFS=$IFS; IFS='-'
2993set x $ac_cv_build
2994shift
2995build_cpu=$1
2996build_vendor=$2
2997shift; shift
2998# Remember, the first character of IFS is used to create $*,
2999# except with old shells:
3000build_os=$*
3001IFS=$ac_save_IFS
3002case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3003
3004
3005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3006$as_echo_n "checking host system type... " >&6; }
3007if ${ac_cv_host+:} false; then :
3008  $as_echo_n "(cached) " >&6
3009else
3010  if test "x$host_alias" = x; then
3011  ac_cv_host=$ac_cv_build
3012else
3013  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3014    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3015fi
3016
3017fi
3018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3019$as_echo "$ac_cv_host" >&6; }
3020case $ac_cv_host in
3021*-*-*) ;;
3022*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3023esac
3024host=$ac_cv_host
3025ac_save_IFS=$IFS; IFS='-'
3026set x $ac_cv_host
3027shift
3028host_cpu=$1
3029host_vendor=$2
3030shift; shift
3031# Remember, the first character of IFS is used to create $*,
3032# except with old shells:
3033host_os=$*
3034IFS=$ac_save_IFS
3035case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3036
3037
3038# Backslashify metacharacters that are still active within
3039# double-quoted strings.
3040sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3041
3042# Same as above, but do not quote variable references.
3043double_quote_subst='s/\(["`\\]\)/\\\1/g'
3044
3045# Sed substitution to delay expansion of an escaped shell variable in a
3046# double_quote_subst'ed string.
3047delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3048
3049# Sed substitution to delay expansion of an escaped single quote.
3050delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3051
3052# Sed substitution to avoid accidental globbing in evaled expressions
3053no_glob_subst='s/\*/\\\*/g'
3054
3055ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3056ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3057ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3058
3059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3060$as_echo_n "checking how to print strings... " >&6; }
3061# Test print first, because it will be a builtin if present.
3062if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3063   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3064  ECHO='print -r --'
3065elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3066  ECHO='printf %s\n'
3067else
3068  # Use this function as a fallback that always works.
3069  func_fallback_echo ()
3070  {
3071    eval 'cat <<_LTECHO_EOF
3072$1
3073_LTECHO_EOF'
3074  }
3075  ECHO='func_fallback_echo'
3076fi
3077
3078# func_echo_all arg...
3079# Invoke $ECHO with all args, space-separated.
3080func_echo_all ()
3081{
3082    $ECHO ""
3083}
3084
3085case "$ECHO" in
3086  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3087$as_echo "printf" >&6; } ;;
3088  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3089$as_echo "print -r" >&6; } ;;
3090  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3091$as_echo "cat" >&6; } ;;
3092esac
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107DEPDIR="${am__leading_dot}deps"
3108
3109ac_config_commands="$ac_config_commands depfiles"
3110
3111
3112am_make=${MAKE-make}
3113cat > confinc << 'END'
3114am__doit:
3115	@echo this is the am__doit target
3116.PHONY: am__doit
3117END
3118# If we don't find an include directive, just comment out the code.
3119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3120$as_echo_n "checking for style of include used by $am_make... " >&6; }
3121am__include="#"
3122am__quote=
3123_am_result=none
3124# First try GNU make style include.
3125echo "include confinc" > confmf
3126# Ignore all kinds of additional output from 'make'.
3127case `$am_make -s -f confmf 2> /dev/null` in #(
3128*the\ am__doit\ target*)
3129  am__include=include
3130  am__quote=
3131  _am_result=GNU
3132  ;;
3133esac
3134# Now try BSD make style include.
3135if test "$am__include" = "#"; then
3136   echo '.include "confinc"' > confmf
3137   case `$am_make -s -f confmf 2> /dev/null` in #(
3138   *the\ am__doit\ target*)
3139     am__include=.include
3140     am__quote="\""
3141     _am_result=BSD
3142     ;;
3143   esac
3144fi
3145
3146
3147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3148$as_echo "$_am_result" >&6; }
3149rm -f confinc confmf
3150
3151# Check whether --enable-dependency-tracking was given.
3152if test "${enable_dependency_tracking+set}" = set; then :
3153  enableval=$enable_dependency_tracking;
3154fi
3155
3156if test "x$enable_dependency_tracking" != xno; then
3157  am_depcomp="$ac_aux_dir/depcomp"
3158  AMDEPBACKSLASH='\'
3159  am__nodep='_no'
3160fi
3161 if test "x$enable_dependency_tracking" != xno; then
3162  AMDEP_TRUE=
3163  AMDEP_FALSE='#'
3164else
3165  AMDEP_TRUE='#'
3166  AMDEP_FALSE=
3167fi
3168
3169
3170ac_ext=c
3171ac_cpp='$CPP $CPPFLAGS'
3172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3174ac_compiler_gnu=$ac_cv_c_compiler_gnu
3175if test -n "$ac_tool_prefix"; then
3176  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3177set dummy ${ac_tool_prefix}gcc; ac_word=$2
3178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3179$as_echo_n "checking for $ac_word... " >&6; }
3180if ${ac_cv_prog_CC+:} false; then :
3181  $as_echo_n "(cached) " >&6
3182else
3183  if test -n "$CC"; then
3184  ac_cv_prog_CC="$CC" # Let the user override the test.
3185else
3186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187for as_dir in $PATH
3188do
3189  IFS=$as_save_IFS
3190  test -z "$as_dir" && as_dir=.
3191    for ac_exec_ext in '' $ac_executable_extensions; do
3192  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3193    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3194    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3195    break 2
3196  fi
3197done
3198  done
3199IFS=$as_save_IFS
3200
3201fi
3202fi
3203CC=$ac_cv_prog_CC
3204if test -n "$CC"; then
3205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3206$as_echo "$CC" >&6; }
3207else
3208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209$as_echo "no" >&6; }
3210fi
3211
3212
3213fi
3214if test -z "$ac_cv_prog_CC"; then
3215  ac_ct_CC=$CC
3216  # Extract the first word of "gcc", so it can be a program name with args.
3217set dummy gcc; ac_word=$2
3218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3219$as_echo_n "checking for $ac_word... " >&6; }
3220if ${ac_cv_prog_ac_ct_CC+:} false; then :
3221  $as_echo_n "(cached) " >&6
3222else
3223  if test -n "$ac_ct_CC"; then
3224  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3225else
3226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227for as_dir in $PATH
3228do
3229  IFS=$as_save_IFS
3230  test -z "$as_dir" && as_dir=.
3231    for ac_exec_ext in '' $ac_executable_extensions; do
3232  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3233    ac_cv_prog_ac_ct_CC="gcc"
3234    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3235    break 2
3236  fi
3237done
3238  done
3239IFS=$as_save_IFS
3240
3241fi
3242fi
3243ac_ct_CC=$ac_cv_prog_ac_ct_CC
3244if test -n "$ac_ct_CC"; then
3245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3246$as_echo "$ac_ct_CC" >&6; }
3247else
3248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249$as_echo "no" >&6; }
3250fi
3251
3252  if test "x$ac_ct_CC" = x; then
3253    CC=""
3254  else
3255    case $cross_compiling:$ac_tool_warned in
3256yes:)
3257{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3258$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3259ac_tool_warned=yes ;;
3260esac
3261    CC=$ac_ct_CC
3262  fi
3263else
3264  CC="$ac_cv_prog_CC"
3265fi
3266
3267if test -z "$CC"; then
3268          if test -n "$ac_tool_prefix"; then
3269    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3270set dummy ${ac_tool_prefix}cc; ac_word=$2
3271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3272$as_echo_n "checking for $ac_word... " >&6; }
3273if ${ac_cv_prog_CC+:} false; then :
3274  $as_echo_n "(cached) " >&6
3275else
3276  if test -n "$CC"; then
3277  ac_cv_prog_CC="$CC" # Let the user override the test.
3278else
3279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280for as_dir in $PATH
3281do
3282  IFS=$as_save_IFS
3283  test -z "$as_dir" && as_dir=.
3284    for ac_exec_ext in '' $ac_executable_extensions; do
3285  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3286    ac_cv_prog_CC="${ac_tool_prefix}cc"
3287    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3288    break 2
3289  fi
3290done
3291  done
3292IFS=$as_save_IFS
3293
3294fi
3295fi
3296CC=$ac_cv_prog_CC
3297if test -n "$CC"; then
3298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3299$as_echo "$CC" >&6; }
3300else
3301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302$as_echo "no" >&6; }
3303fi
3304
3305
3306  fi
3307fi
3308if test -z "$CC"; then
3309  # Extract the first word of "cc", so it can be a program name with args.
3310set dummy cc; ac_word=$2
3311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3312$as_echo_n "checking for $ac_word... " >&6; }
3313if ${ac_cv_prog_CC+:} false; then :
3314  $as_echo_n "(cached) " >&6
3315else
3316  if test -n "$CC"; then
3317  ac_cv_prog_CC="$CC" # Let the user override the test.
3318else
3319  ac_prog_rejected=no
3320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321for as_dir in $PATH
3322do
3323  IFS=$as_save_IFS
3324  test -z "$as_dir" && as_dir=.
3325    for ac_exec_ext in '' $ac_executable_extensions; do
3326  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3327    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3328       ac_prog_rejected=yes
3329       continue
3330     fi
3331    ac_cv_prog_CC="cc"
3332    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3333    break 2
3334  fi
3335done
3336  done
3337IFS=$as_save_IFS
3338
3339if test $ac_prog_rejected = yes; then
3340  # We found a bogon in the path, so make sure we never use it.
3341  set dummy $ac_cv_prog_CC
3342  shift
3343  if test $# != 0; then
3344    # We chose a different compiler from the bogus one.
3345    # However, it has the same basename, so the bogon will be chosen
3346    # first if we set CC to just the basename; use the full file name.
3347    shift
3348    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3349  fi
3350fi
3351fi
3352fi
3353CC=$ac_cv_prog_CC
3354if test -n "$CC"; then
3355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3356$as_echo "$CC" >&6; }
3357else
3358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359$as_echo "no" >&6; }
3360fi
3361
3362
3363fi
3364if test -z "$CC"; then
3365  if test -n "$ac_tool_prefix"; then
3366  for ac_prog in cl.exe
3367  do
3368    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3369set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3371$as_echo_n "checking for $ac_word... " >&6; }
3372if ${ac_cv_prog_CC+:} false; then :
3373  $as_echo_n "(cached) " >&6
3374else
3375  if test -n "$CC"; then
3376  ac_cv_prog_CC="$CC" # Let the user override the test.
3377else
3378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379for as_dir in $PATH
3380do
3381  IFS=$as_save_IFS
3382  test -z "$as_dir" && as_dir=.
3383    for ac_exec_ext in '' $ac_executable_extensions; do
3384  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3385    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3386    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3387    break 2
3388  fi
3389done
3390  done
3391IFS=$as_save_IFS
3392
3393fi
3394fi
3395CC=$ac_cv_prog_CC
3396if test -n "$CC"; then
3397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3398$as_echo "$CC" >&6; }
3399else
3400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3401$as_echo "no" >&6; }
3402fi
3403
3404
3405    test -n "$CC" && break
3406  done
3407fi
3408if test -z "$CC"; then
3409  ac_ct_CC=$CC
3410  for ac_prog in cl.exe
3411do
3412  # Extract the first word of "$ac_prog", so it can be a program name with args.
3413set dummy $ac_prog; ac_word=$2
3414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3415$as_echo_n "checking for $ac_word... " >&6; }
3416if ${ac_cv_prog_ac_ct_CC+:} false; then :
3417  $as_echo_n "(cached) " >&6
3418else
3419  if test -n "$ac_ct_CC"; then
3420  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3421else
3422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423for as_dir in $PATH
3424do
3425  IFS=$as_save_IFS
3426  test -z "$as_dir" && as_dir=.
3427    for ac_exec_ext in '' $ac_executable_extensions; do
3428  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3429    ac_cv_prog_ac_ct_CC="$ac_prog"
3430    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3431    break 2
3432  fi
3433done
3434  done
3435IFS=$as_save_IFS
3436
3437fi
3438fi
3439ac_ct_CC=$ac_cv_prog_ac_ct_CC
3440if test -n "$ac_ct_CC"; then
3441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3442$as_echo "$ac_ct_CC" >&6; }
3443else
3444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3445$as_echo "no" >&6; }
3446fi
3447
3448
3449  test -n "$ac_ct_CC" && break
3450done
3451
3452  if test "x$ac_ct_CC" = x; then
3453    CC=""
3454  else
3455    case $cross_compiling:$ac_tool_warned in
3456yes:)
3457{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3458$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3459ac_tool_warned=yes ;;
3460esac
3461    CC=$ac_ct_CC
3462  fi
3463fi
3464
3465fi
3466
3467
3468test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3470as_fn_error $? "no acceptable C compiler found in \$PATH
3471See \`config.log' for more details" "$LINENO" 5; }
3472
3473# Provide some information about the compiler.
3474$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3475set X $ac_compile
3476ac_compiler=$2
3477for ac_option in --version -v -V -qversion; do
3478  { { ac_try="$ac_compiler $ac_option >&5"
3479case "(($ac_try" in
3480  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481  *) ac_try_echo=$ac_try;;
3482esac
3483eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3484$as_echo "$ac_try_echo"; } >&5
3485  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3486  ac_status=$?
3487  if test -s conftest.err; then
3488    sed '10a\
3489... rest of stderr output deleted ...
3490         10q' conftest.err >conftest.er1
3491    cat conftest.er1 >&5
3492  fi
3493  rm -f conftest.er1 conftest.err
3494  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3495  test $ac_status = 0; }
3496done
3497
3498cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499/* end confdefs.h.  */
3500
3501int
3502main ()
3503{
3504
3505  ;
3506  return 0;
3507}
3508_ACEOF
3509ac_clean_files_save=$ac_clean_files
3510ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3511# Try to create an executable without -o first, disregard a.out.
3512# It will help us diagnose broken compilers, and finding out an intuition
3513# of exeext.
3514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3515$as_echo_n "checking whether the C compiler works... " >&6; }
3516ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3517
3518# The possible output files:
3519ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3520
3521ac_rmfiles=
3522for ac_file in $ac_files
3523do
3524  case $ac_file in
3525    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3526    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3527  esac
3528done
3529rm -f $ac_rmfiles
3530
3531if { { ac_try="$ac_link_default"
3532case "(($ac_try" in
3533  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534  *) ac_try_echo=$ac_try;;
3535esac
3536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3537$as_echo "$ac_try_echo"; } >&5
3538  (eval "$ac_link_default") 2>&5
3539  ac_status=$?
3540  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3541  test $ac_status = 0; }; then :
3542  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3543# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3544# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3545# so that the user can short-circuit this test for compilers unknown to
3546# Autoconf.
3547for ac_file in $ac_files ''
3548do
3549  test -f "$ac_file" || continue
3550  case $ac_file in
3551    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3552	;;
3553    [ab].out )
3554	# We found the default executable, but exeext='' is most
3555	# certainly right.
3556	break;;
3557    *.* )
3558	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3559	then :; else
3560	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3561	fi
3562	# We set ac_cv_exeext here because the later test for it is not
3563	# safe: cross compilers may not add the suffix if given an `-o'
3564	# argument, so we may need to know it at that point already.
3565	# Even if this section looks crufty: it has the advantage of
3566	# actually working.
3567	break;;
3568    * )
3569	break;;
3570  esac
3571done
3572test "$ac_cv_exeext" = no && ac_cv_exeext=
3573
3574else
3575  ac_file=''
3576fi
3577if test -z "$ac_file"; then :
3578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579$as_echo "no" >&6; }
3580$as_echo "$as_me: failed program was:" >&5
3581sed 's/^/| /' conftest.$ac_ext >&5
3582
3583{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3585as_fn_error 77 "C compiler cannot create executables
3586See \`config.log' for more details" "$LINENO" 5; }
3587else
3588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3589$as_echo "yes" >&6; }
3590fi
3591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3592$as_echo_n "checking for C compiler default output file name... " >&6; }
3593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3594$as_echo "$ac_file" >&6; }
3595ac_exeext=$ac_cv_exeext
3596
3597rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3598ac_clean_files=$ac_clean_files_save
3599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3600$as_echo_n "checking for suffix of executables... " >&6; }
3601if { { ac_try="$ac_link"
3602case "(($ac_try" in
3603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604  *) ac_try_echo=$ac_try;;
3605esac
3606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3607$as_echo "$ac_try_echo"; } >&5
3608  (eval "$ac_link") 2>&5
3609  ac_status=$?
3610  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3611  test $ac_status = 0; }; then :
3612  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3613# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3614# work properly (i.e., refer to `conftest.exe'), while it won't with
3615# `rm'.
3616for ac_file in conftest.exe conftest conftest.*; do
3617  test -f "$ac_file" || continue
3618  case $ac_file in
3619    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3620    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3621	  break;;
3622    * ) break;;
3623  esac
3624done
3625else
3626  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3627$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3628as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3629See \`config.log' for more details" "$LINENO" 5; }
3630fi
3631rm -f conftest conftest$ac_cv_exeext
3632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3633$as_echo "$ac_cv_exeext" >&6; }
3634
3635rm -f conftest.$ac_ext
3636EXEEXT=$ac_cv_exeext
3637ac_exeext=$EXEEXT
3638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639/* end confdefs.h.  */
3640#include <stdio.h>
3641int
3642main ()
3643{
3644FILE *f = fopen ("conftest.out", "w");
3645 return ferror (f) || fclose (f) != 0;
3646
3647  ;
3648  return 0;
3649}
3650_ACEOF
3651ac_clean_files="$ac_clean_files conftest.out"
3652# Check that the compiler produces executables we can run.  If not, either
3653# the compiler is broken, or we cross compile.
3654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3655$as_echo_n "checking whether we are cross compiling... " >&6; }
3656if test "$cross_compiling" != yes; then
3657  { { ac_try="$ac_link"
3658case "(($ac_try" in
3659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660  *) ac_try_echo=$ac_try;;
3661esac
3662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3663$as_echo "$ac_try_echo"; } >&5
3664  (eval "$ac_link") 2>&5
3665  ac_status=$?
3666  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3667  test $ac_status = 0; }
3668  if { ac_try='./conftest$ac_cv_exeext'
3669  { { case "(($ac_try" in
3670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671  *) ac_try_echo=$ac_try;;
3672esac
3673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3674$as_echo "$ac_try_echo"; } >&5
3675  (eval "$ac_try") 2>&5
3676  ac_status=$?
3677  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3678  test $ac_status = 0; }; }; then
3679    cross_compiling=no
3680  else
3681    if test "$cross_compiling" = maybe; then
3682	cross_compiling=yes
3683    else
3684	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3685$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3686as_fn_error $? "cannot run C compiled programs.
3687If you meant to cross compile, use \`--host'.
3688See \`config.log' for more details" "$LINENO" 5; }
3689    fi
3690  fi
3691fi
3692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3693$as_echo "$cross_compiling" >&6; }
3694
3695rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3696ac_clean_files=$ac_clean_files_save
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3698$as_echo_n "checking for suffix of object files... " >&6; }
3699if ${ac_cv_objext+:} false; then :
3700  $as_echo_n "(cached) " >&6
3701else
3702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703/* end confdefs.h.  */
3704
3705int
3706main ()
3707{
3708
3709  ;
3710  return 0;
3711}
3712_ACEOF
3713rm -f conftest.o conftest.obj
3714if { { ac_try="$ac_compile"
3715case "(($ac_try" in
3716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717  *) ac_try_echo=$ac_try;;
3718esac
3719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3720$as_echo "$ac_try_echo"; } >&5
3721  (eval "$ac_compile") 2>&5
3722  ac_status=$?
3723  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3724  test $ac_status = 0; }; then :
3725  for ac_file in conftest.o conftest.obj conftest.*; do
3726  test -f "$ac_file" || continue;
3727  case $ac_file in
3728    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3729    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3730       break;;
3731  esac
3732done
3733else
3734  $as_echo "$as_me: failed program was:" >&5
3735sed 's/^/| /' conftest.$ac_ext >&5
3736
3737{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3738$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3739as_fn_error $? "cannot compute suffix of object files: cannot compile
3740See \`config.log' for more details" "$LINENO" 5; }
3741fi
3742rm -f conftest.$ac_cv_objext conftest.$ac_ext
3743fi
3744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3745$as_echo "$ac_cv_objext" >&6; }
3746OBJEXT=$ac_cv_objext
3747ac_objext=$OBJEXT
3748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3749$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3750if ${ac_cv_c_compiler_gnu+:} false; then :
3751  $as_echo_n "(cached) " >&6
3752else
3753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754/* end confdefs.h.  */
3755
3756int
3757main ()
3758{
3759#ifndef __GNUC__
3760       choke me
3761#endif
3762
3763  ;
3764  return 0;
3765}
3766_ACEOF
3767if ac_fn_c_try_compile "$LINENO"; then :
3768  ac_compiler_gnu=yes
3769else
3770  ac_compiler_gnu=no
3771fi
3772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3773ac_cv_c_compiler_gnu=$ac_compiler_gnu
3774
3775fi
3776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3777$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3778if test $ac_compiler_gnu = yes; then
3779  GCC=yes
3780else
3781  GCC=
3782fi
3783ac_test_CFLAGS=${CFLAGS+set}
3784ac_save_CFLAGS=$CFLAGS
3785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3786$as_echo_n "checking whether $CC accepts -g... " >&6; }
3787if ${ac_cv_prog_cc_g+:} false; then :
3788  $as_echo_n "(cached) " >&6
3789else
3790  ac_save_c_werror_flag=$ac_c_werror_flag
3791   ac_c_werror_flag=yes
3792   ac_cv_prog_cc_g=no
3793   CFLAGS="-g"
3794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795/* end confdefs.h.  */
3796
3797int
3798main ()
3799{
3800
3801  ;
3802  return 0;
3803}
3804_ACEOF
3805if ac_fn_c_try_compile "$LINENO"; then :
3806  ac_cv_prog_cc_g=yes
3807else
3808  CFLAGS=""
3809      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810/* end confdefs.h.  */
3811
3812int
3813main ()
3814{
3815
3816  ;
3817  return 0;
3818}
3819_ACEOF
3820if ac_fn_c_try_compile "$LINENO"; then :
3821
3822else
3823  ac_c_werror_flag=$ac_save_c_werror_flag
3824	 CFLAGS="-g"
3825	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826/* end confdefs.h.  */
3827
3828int
3829main ()
3830{
3831
3832  ;
3833  return 0;
3834}
3835_ACEOF
3836if ac_fn_c_try_compile "$LINENO"; then :
3837  ac_cv_prog_cc_g=yes
3838fi
3839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3840fi
3841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3842fi
3843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3844   ac_c_werror_flag=$ac_save_c_werror_flag
3845fi
3846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3847$as_echo "$ac_cv_prog_cc_g" >&6; }
3848if test "$ac_test_CFLAGS" = set; then
3849  CFLAGS=$ac_save_CFLAGS
3850elif test $ac_cv_prog_cc_g = yes; then
3851  if test "$GCC" = yes; then
3852    CFLAGS="-g -O2"
3853  else
3854    CFLAGS="-g"
3855  fi
3856else
3857  if test "$GCC" = yes; then
3858    CFLAGS="-O2"
3859  else
3860    CFLAGS=
3861  fi
3862fi
3863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3864$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3865if ${ac_cv_prog_cc_c89+:} false; then :
3866  $as_echo_n "(cached) " >&6
3867else
3868  ac_cv_prog_cc_c89=no
3869ac_save_CC=$CC
3870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871/* end confdefs.h.  */
3872#include <stdarg.h>
3873#include <stdio.h>
3874struct stat;
3875/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3876struct buf { int x; };
3877FILE * (*rcsopen) (struct buf *, struct stat *, int);
3878static char *e (p, i)
3879     char **p;
3880     int i;
3881{
3882  return p[i];
3883}
3884static char *f (char * (*g) (char **, int), char **p, ...)
3885{
3886  char *s;
3887  va_list v;
3888  va_start (v,p);
3889  s = g (p, va_arg (v,int));
3890  va_end (v);
3891  return s;
3892}
3893
3894/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3895   function prototypes and stuff, but not '\xHH' hex character constants.
3896   These don't provoke an error unfortunately, instead are silently treated
3897   as 'x'.  The following induces an error, until -std is added to get
3898   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3899   array size at least.  It's necessary to write '\x00'==0 to get something
3900   that's true only with -std.  */
3901int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3902
3903/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3904   inside strings and character constants.  */
3905#define FOO(x) 'x'
3906int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3907
3908int test (int i, double x);
3909struct s1 {int (*f) (int a);};
3910struct s2 {int (*f) (double a);};
3911int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3912int argc;
3913char **argv;
3914int
3915main ()
3916{
3917return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3918  ;
3919  return 0;
3920}
3921_ACEOF
3922for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3923	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3924do
3925  CC="$ac_save_CC $ac_arg"
3926  if ac_fn_c_try_compile "$LINENO"; then :
3927  ac_cv_prog_cc_c89=$ac_arg
3928fi
3929rm -f core conftest.err conftest.$ac_objext
3930  test "x$ac_cv_prog_cc_c89" != "xno" && break
3931done
3932rm -f conftest.$ac_ext
3933CC=$ac_save_CC
3934
3935fi
3936# AC_CACHE_VAL
3937case "x$ac_cv_prog_cc_c89" in
3938  x)
3939    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3940$as_echo "none needed" >&6; } ;;
3941  xno)
3942    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3943$as_echo "unsupported" >&6; } ;;
3944  *)
3945    CC="$CC $ac_cv_prog_cc_c89"
3946    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3947$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3948esac
3949if test "x$ac_cv_prog_cc_c89" != xno; then :
3950
3951fi
3952
3953ac_ext=c
3954ac_cpp='$CPP $CPPFLAGS'
3955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3957ac_compiler_gnu=$ac_cv_c_compiler_gnu
3958
3959ac_ext=c
3960ac_cpp='$CPP $CPPFLAGS'
3961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3963ac_compiler_gnu=$ac_cv_c_compiler_gnu
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3965$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3966if ${am_cv_prog_cc_c_o+:} false; then :
3967  $as_echo_n "(cached) " >&6
3968else
3969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970/* end confdefs.h.  */
3971
3972int
3973main ()
3974{
3975
3976  ;
3977  return 0;
3978}
3979_ACEOF
3980  # Make sure it works both with $CC and with simple cc.
3981  # Following AC_PROG_CC_C_O, we do the test twice because some
3982  # compilers refuse to overwrite an existing .o file with -o,
3983  # though they will create one.
3984  am_cv_prog_cc_c_o=yes
3985  for am_i in 1 2; do
3986    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3987   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3988   ac_status=$?
3989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990   (exit $ac_status); } \
3991         && test -f conftest2.$ac_objext; then
3992      : OK
3993    else
3994      am_cv_prog_cc_c_o=no
3995      break
3996    fi
3997  done
3998  rm -f core conftest*
3999  unset am_i
4000fi
4001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4002$as_echo "$am_cv_prog_cc_c_o" >&6; }
4003if test "$am_cv_prog_cc_c_o" != yes; then
4004   # Losing compiler, so override with the script.
4005   # FIXME: It is wrong to rewrite CC.
4006   # But if we don't then we get into trouble of one sort or another.
4007   # A longer-term fix would be to have automake use am__CC in this case,
4008   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4009   CC="$am_aux_dir/compile $CC"
4010fi
4011ac_ext=c
4012ac_cpp='$CPP $CPPFLAGS'
4013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4015ac_compiler_gnu=$ac_cv_c_compiler_gnu
4016
4017
4018depcc="$CC"   am_compiler_list=
4019
4020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4021$as_echo_n "checking dependency style of $depcc... " >&6; }
4022if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4023  $as_echo_n "(cached) " >&6
4024else
4025  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4026  # We make a subdir and do the tests there.  Otherwise we can end up
4027  # making bogus files that we don't know about and never remove.  For
4028  # instance it was reported that on HP-UX the gcc test will end up
4029  # making a dummy file named 'D' -- because '-MD' means "put the output
4030  # in D".
4031  rm -rf conftest.dir
4032  mkdir conftest.dir
4033  # Copy depcomp to subdir because otherwise we won't find it if we're
4034  # using a relative directory.
4035  cp "$am_depcomp" conftest.dir
4036  cd conftest.dir
4037  # We will build objects and dependencies in a subdirectory because
4038  # it helps to detect inapplicable dependency modes.  For instance
4039  # both Tru64's cc and ICC support -MD to output dependencies as a
4040  # side effect of compilation, but ICC will put the dependencies in
4041  # the current directory while Tru64 will put them in the object
4042  # directory.
4043  mkdir sub
4044
4045  am_cv_CC_dependencies_compiler_type=none
4046  if test "$am_compiler_list" = ""; then
4047     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4048  fi
4049  am__universal=false
4050  case " $depcc " in #(
4051     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4052     esac
4053
4054  for depmode in $am_compiler_list; do
4055    # Setup a source with many dependencies, because some compilers
4056    # like to wrap large dependency lists on column 80 (with \), and
4057    # we should not choose a depcomp mode which is confused by this.
4058    #
4059    # We need to recreate these files for each test, as the compiler may
4060    # overwrite some of them when testing with obscure command lines.
4061    # This happens at least with the AIX C compiler.
4062    : > sub/conftest.c
4063    for i in 1 2 3 4 5 6; do
4064      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4065      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4066      # Solaris 10 /bin/sh.
4067      echo '/* dummy */' > sub/conftst$i.h
4068    done
4069    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4070
4071    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4072    # mode.  It turns out that the SunPro C++ compiler does not properly
4073    # handle '-M -o', and we need to detect this.  Also, some Intel
4074    # versions had trouble with output in subdirs.
4075    am__obj=sub/conftest.${OBJEXT-o}
4076    am__minus_obj="-o $am__obj"
4077    case $depmode in
4078    gcc)
4079      # This depmode causes a compiler race in universal mode.
4080      test "$am__universal" = false || continue
4081      ;;
4082    nosideeffect)
4083      # After this tag, mechanisms are not by side-effect, so they'll
4084      # only be used when explicitly requested.
4085      if test "x$enable_dependency_tracking" = xyes; then
4086	continue
4087      else
4088	break
4089      fi
4090      ;;
4091    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4092      # This compiler won't grok '-c -o', but also, the minuso test has
4093      # not run yet.  These depmodes are late enough in the game, and
4094      # so weak that their functioning should not be impacted.
4095      am__obj=conftest.${OBJEXT-o}
4096      am__minus_obj=
4097      ;;
4098    none) break ;;
4099    esac
4100    if depmode=$depmode \
4101       source=sub/conftest.c object=$am__obj \
4102       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4103       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4104         >/dev/null 2>conftest.err &&
4105       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4106       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4107       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4108       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4109      # icc doesn't choke on unknown options, it will just issue warnings
4110      # or remarks (even with -Werror).  So we grep stderr for any message
4111      # that says an option was ignored or not supported.
4112      # When given -MP, icc 7.0 and 7.1 complain thusly:
4113      #   icc: Command line warning: ignoring option '-M'; no argument required
4114      # The diagnosis changed in icc 8.0:
4115      #   icc: Command line remark: option '-MP' not supported
4116      if (grep 'ignoring option' conftest.err ||
4117          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4118        am_cv_CC_dependencies_compiler_type=$depmode
4119        break
4120      fi
4121    fi
4122  done
4123
4124  cd ..
4125  rm -rf conftest.dir
4126else
4127  am_cv_CC_dependencies_compiler_type=none
4128fi
4129
4130fi
4131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4132$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4133CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4134
4135 if
4136  test "x$enable_dependency_tracking" != xno \
4137  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4138  am__fastdepCC_TRUE=
4139  am__fastdepCC_FALSE='#'
4140else
4141  am__fastdepCC_TRUE='#'
4142  am__fastdepCC_FALSE=
4143fi
4144
4145
4146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4147$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4148if ${ac_cv_path_SED+:} false; then :
4149  $as_echo_n "(cached) " >&6
4150else
4151            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4152     for ac_i in 1 2 3 4 5 6 7; do
4153       ac_script="$ac_script$as_nl$ac_script"
4154     done
4155     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4156     { ac_script=; unset ac_script;}
4157     if test -z "$SED"; then
4158  ac_path_SED_found=false
4159  # Loop through the user's path and test for each of PROGNAME-LIST
4160  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161for as_dir in $PATH
4162do
4163  IFS=$as_save_IFS
4164  test -z "$as_dir" && as_dir=.
4165    for ac_prog in sed gsed; do
4166    for ac_exec_ext in '' $ac_executable_extensions; do
4167      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4168      as_fn_executable_p "$ac_path_SED" || continue
4169# Check for GNU ac_path_SED and select it if it is found.
4170  # Check for GNU $ac_path_SED
4171case `"$ac_path_SED" --version 2>&1` in
4172*GNU*)
4173  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4174*)
4175  ac_count=0
4176  $as_echo_n 0123456789 >"conftest.in"
4177  while :
4178  do
4179    cat "conftest.in" "conftest.in" >"conftest.tmp"
4180    mv "conftest.tmp" "conftest.in"
4181    cp "conftest.in" "conftest.nl"
4182    $as_echo '' >> "conftest.nl"
4183    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4184    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4185    as_fn_arith $ac_count + 1 && ac_count=$as_val
4186    if test $ac_count -gt ${ac_path_SED_max-0}; then
4187      # Best one so far, save it but keep looking for a better one
4188      ac_cv_path_SED="$ac_path_SED"
4189      ac_path_SED_max=$ac_count
4190    fi
4191    # 10*(2^10) chars as input seems more than enough
4192    test $ac_count -gt 10 && break
4193  done
4194  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4195esac
4196
4197      $ac_path_SED_found && break 3
4198    done
4199  done
4200  done
4201IFS=$as_save_IFS
4202  if test -z "$ac_cv_path_SED"; then
4203    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4204  fi
4205else
4206  ac_cv_path_SED=$SED
4207fi
4208
4209fi
4210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4211$as_echo "$ac_cv_path_SED" >&6; }
4212 SED="$ac_cv_path_SED"
4213  rm -f conftest.sed
4214
4215test -z "$SED" && SED=sed
4216Xsed="$SED -e 1s/^X//"
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4229$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4230if ${ac_cv_path_GREP+:} false; then :
4231  $as_echo_n "(cached) " >&6
4232else
4233  if test -z "$GREP"; then
4234  ac_path_GREP_found=false
4235  # Loop through the user's path and test for each of PROGNAME-LIST
4236  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4238do
4239  IFS=$as_save_IFS
4240  test -z "$as_dir" && as_dir=.
4241    for ac_prog in grep ggrep; do
4242    for ac_exec_ext in '' $ac_executable_extensions; do
4243      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4244      as_fn_executable_p "$ac_path_GREP" || continue
4245# Check for GNU ac_path_GREP and select it if it is found.
4246  # Check for GNU $ac_path_GREP
4247case `"$ac_path_GREP" --version 2>&1` in
4248*GNU*)
4249  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4250*)
4251  ac_count=0
4252  $as_echo_n 0123456789 >"conftest.in"
4253  while :
4254  do
4255    cat "conftest.in" "conftest.in" >"conftest.tmp"
4256    mv "conftest.tmp" "conftest.in"
4257    cp "conftest.in" "conftest.nl"
4258    $as_echo 'GREP' >> "conftest.nl"
4259    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4260    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4261    as_fn_arith $ac_count + 1 && ac_count=$as_val
4262    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4263      # Best one so far, save it but keep looking for a better one
4264      ac_cv_path_GREP="$ac_path_GREP"
4265      ac_path_GREP_max=$ac_count
4266    fi
4267    # 10*(2^10) chars as input seems more than enough
4268    test $ac_count -gt 10 && break
4269  done
4270  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4271esac
4272
4273      $ac_path_GREP_found && break 3
4274    done
4275  done
4276  done
4277IFS=$as_save_IFS
4278  if test -z "$ac_cv_path_GREP"; then
4279    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4280  fi
4281else
4282  ac_cv_path_GREP=$GREP
4283fi
4284
4285fi
4286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4287$as_echo "$ac_cv_path_GREP" >&6; }
4288 GREP="$ac_cv_path_GREP"
4289
4290
4291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4292$as_echo_n "checking for egrep... " >&6; }
4293if ${ac_cv_path_EGREP+:} false; then :
4294  $as_echo_n "(cached) " >&6
4295else
4296  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4297   then ac_cv_path_EGREP="$GREP -E"
4298   else
4299     if test -z "$EGREP"; then
4300  ac_path_EGREP_found=false
4301  # Loop through the user's path and test for each of PROGNAME-LIST
4302  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4304do
4305  IFS=$as_save_IFS
4306  test -z "$as_dir" && as_dir=.
4307    for ac_prog in egrep; do
4308    for ac_exec_ext in '' $ac_executable_extensions; do
4309      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4310      as_fn_executable_p "$ac_path_EGREP" || continue
4311# Check for GNU ac_path_EGREP and select it if it is found.
4312  # Check for GNU $ac_path_EGREP
4313case `"$ac_path_EGREP" --version 2>&1` in
4314*GNU*)
4315  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4316*)
4317  ac_count=0
4318  $as_echo_n 0123456789 >"conftest.in"
4319  while :
4320  do
4321    cat "conftest.in" "conftest.in" >"conftest.tmp"
4322    mv "conftest.tmp" "conftest.in"
4323    cp "conftest.in" "conftest.nl"
4324    $as_echo 'EGREP' >> "conftest.nl"
4325    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4326    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4327    as_fn_arith $ac_count + 1 && ac_count=$as_val
4328    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4329      # Best one so far, save it but keep looking for a better one
4330      ac_cv_path_EGREP="$ac_path_EGREP"
4331      ac_path_EGREP_max=$ac_count
4332    fi
4333    # 10*(2^10) chars as input seems more than enough
4334    test $ac_count -gt 10 && break
4335  done
4336  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4337esac
4338
4339      $ac_path_EGREP_found && break 3
4340    done
4341  done
4342  done
4343IFS=$as_save_IFS
4344  if test -z "$ac_cv_path_EGREP"; then
4345    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4346  fi
4347else
4348  ac_cv_path_EGREP=$EGREP
4349fi
4350
4351   fi
4352fi
4353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4354$as_echo "$ac_cv_path_EGREP" >&6; }
4355 EGREP="$ac_cv_path_EGREP"
4356
4357
4358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4359$as_echo_n "checking for fgrep... " >&6; }
4360if ${ac_cv_path_FGREP+:} false; then :
4361  $as_echo_n "(cached) " >&6
4362else
4363  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4364   then ac_cv_path_FGREP="$GREP -F"
4365   else
4366     if test -z "$FGREP"; then
4367  ac_path_FGREP_found=false
4368  # Loop through the user's path and test for each of PROGNAME-LIST
4369  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4371do
4372  IFS=$as_save_IFS
4373  test -z "$as_dir" && as_dir=.
4374    for ac_prog in fgrep; do
4375    for ac_exec_ext in '' $ac_executable_extensions; do
4376      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4377      as_fn_executable_p "$ac_path_FGREP" || continue
4378# Check for GNU ac_path_FGREP and select it if it is found.
4379  # Check for GNU $ac_path_FGREP
4380case `"$ac_path_FGREP" --version 2>&1` in
4381*GNU*)
4382  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4383*)
4384  ac_count=0
4385  $as_echo_n 0123456789 >"conftest.in"
4386  while :
4387  do
4388    cat "conftest.in" "conftest.in" >"conftest.tmp"
4389    mv "conftest.tmp" "conftest.in"
4390    cp "conftest.in" "conftest.nl"
4391    $as_echo 'FGREP' >> "conftest.nl"
4392    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4393    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4394    as_fn_arith $ac_count + 1 && ac_count=$as_val
4395    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4396      # Best one so far, save it but keep looking for a better one
4397      ac_cv_path_FGREP="$ac_path_FGREP"
4398      ac_path_FGREP_max=$ac_count
4399    fi
4400    # 10*(2^10) chars as input seems more than enough
4401    test $ac_count -gt 10 && break
4402  done
4403  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4404esac
4405
4406      $ac_path_FGREP_found && break 3
4407    done
4408  done
4409  done
4410IFS=$as_save_IFS
4411  if test -z "$ac_cv_path_FGREP"; then
4412    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4413  fi
4414else
4415  ac_cv_path_FGREP=$FGREP
4416fi
4417
4418   fi
4419fi
4420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4421$as_echo "$ac_cv_path_FGREP" >&6; }
4422 FGREP="$ac_cv_path_FGREP"
4423
4424
4425test -z "$GREP" && GREP=grep
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445# Check whether --with-gnu-ld was given.
4446if test "${with_gnu_ld+set}" = set; then :
4447  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4448else
4449  with_gnu_ld=no
4450fi
4451
4452ac_prog=ld
4453if test "$GCC" = yes; then
4454  # Check if gcc -print-prog-name=ld gives a path.
4455  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4456$as_echo_n "checking for ld used by $CC... " >&6; }
4457  case $host in
4458  *-*-mingw*)
4459    # gcc leaves a trailing carriage return which upsets mingw
4460    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4461  *)
4462    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4463  esac
4464  case $ac_prog in
4465    # Accept absolute paths.
4466    [\\/]* | ?:[\\/]*)
4467      re_direlt='/[^/][^/]*/\.\./'
4468      # Canonicalize the pathname of ld
4469      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4470      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4471	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4472      done
4473      test -z "$LD" && LD="$ac_prog"
4474      ;;
4475  "")
4476    # If it fails, then pretend we aren't using GCC.
4477    ac_prog=ld
4478    ;;
4479  *)
4480    # If it is relative, then search for the first ld in PATH.
4481    with_gnu_ld=unknown
4482    ;;
4483  esac
4484elif test "$with_gnu_ld" = yes; then
4485  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4486$as_echo_n "checking for GNU ld... " >&6; }
4487else
4488  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4489$as_echo_n "checking for non-GNU ld... " >&6; }
4490fi
4491if ${lt_cv_path_LD+:} false; then :
4492  $as_echo_n "(cached) " >&6
4493else
4494  if test -z "$LD"; then
4495  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4496  for ac_dir in $PATH; do
4497    IFS="$lt_save_ifs"
4498    test -z "$ac_dir" && ac_dir=.
4499    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4500      lt_cv_path_LD="$ac_dir/$ac_prog"
4501      # Check to see if the program is GNU ld.  I'd rather use --version,
4502      # but apparently some variants of GNU ld only accept -v.
4503      # Break only if it was the GNU/non-GNU ld that we prefer.
4504      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4505      *GNU* | *'with BFD'*)
4506	test "$with_gnu_ld" != no && break
4507	;;
4508      *)
4509	test "$with_gnu_ld" != yes && break
4510	;;
4511      esac
4512    fi
4513  done
4514  IFS="$lt_save_ifs"
4515else
4516  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4517fi
4518fi
4519
4520LD="$lt_cv_path_LD"
4521if test -n "$LD"; then
4522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4523$as_echo "$LD" >&6; }
4524else
4525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4526$as_echo "no" >&6; }
4527fi
4528test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4530$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4531if ${lt_cv_prog_gnu_ld+:} false; then :
4532  $as_echo_n "(cached) " >&6
4533else
4534  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4535case `$LD -v 2>&1 </dev/null` in
4536*GNU* | *'with BFD'*)
4537  lt_cv_prog_gnu_ld=yes
4538  ;;
4539*)
4540  lt_cv_prog_gnu_ld=no
4541  ;;
4542esac
4543fi
4544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4545$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4546with_gnu_ld=$lt_cv_prog_gnu_ld
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4557$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4558if ${lt_cv_path_NM+:} false; then :
4559  $as_echo_n "(cached) " >&6
4560else
4561  if test -n "$NM"; then
4562  # Let the user override the test.
4563  lt_cv_path_NM="$NM"
4564else
4565  lt_nm_to_check="${ac_tool_prefix}nm"
4566  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4567    lt_nm_to_check="$lt_nm_to_check nm"
4568  fi
4569  for lt_tmp_nm in $lt_nm_to_check; do
4570    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4571    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4572      IFS="$lt_save_ifs"
4573      test -z "$ac_dir" && ac_dir=.
4574      tmp_nm="$ac_dir/$lt_tmp_nm"
4575      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4576	# Check to see if the nm accepts a BSD-compat flag.
4577	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4578	#   nm: unknown option "B" ignored
4579	# Tru64's nm complains that /dev/null is an invalid object file
4580	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4581	*/dev/null* | *'Invalid file or object type'*)
4582	  lt_cv_path_NM="$tmp_nm -B"
4583	  break
4584	  ;;
4585	*)
4586	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4587	  */dev/null*)
4588	    lt_cv_path_NM="$tmp_nm -p"
4589	    break
4590	    ;;
4591	  *)
4592	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4593	    continue # so that we can try to find one that supports BSD flags
4594	    ;;
4595	  esac
4596	  ;;
4597	esac
4598      fi
4599    done
4600    IFS="$lt_save_ifs"
4601  done
4602  : ${lt_cv_path_NM=no}
4603fi
4604fi
4605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4606$as_echo "$lt_cv_path_NM" >&6; }
4607if test "$lt_cv_path_NM" != "no"; then
4608  NM="$lt_cv_path_NM"
4609else
4610  # Didn't find any BSD compatible name lister, look for dumpbin.
4611  if test -n "$DUMPBIN"; then :
4612    # Let the user override the test.
4613  else
4614    if test -n "$ac_tool_prefix"; then
4615  for ac_prog in dumpbin "link -dump"
4616  do
4617    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4618set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4620$as_echo_n "checking for $ac_word... " >&6; }
4621if ${ac_cv_prog_DUMPBIN+:} false; then :
4622  $as_echo_n "(cached) " >&6
4623else
4624  if test -n "$DUMPBIN"; then
4625  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4626else
4627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628for as_dir in $PATH
4629do
4630  IFS=$as_save_IFS
4631  test -z "$as_dir" && as_dir=.
4632    for ac_exec_ext in '' $ac_executable_extensions; do
4633  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4634    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4635    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4636    break 2
4637  fi
4638done
4639  done
4640IFS=$as_save_IFS
4641
4642fi
4643fi
4644DUMPBIN=$ac_cv_prog_DUMPBIN
4645if test -n "$DUMPBIN"; then
4646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4647$as_echo "$DUMPBIN" >&6; }
4648else
4649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4650$as_echo "no" >&6; }
4651fi
4652
4653
4654    test -n "$DUMPBIN" && break
4655  done
4656fi
4657if test -z "$DUMPBIN"; then
4658  ac_ct_DUMPBIN=$DUMPBIN
4659  for ac_prog in dumpbin "link -dump"
4660do
4661  # Extract the first word of "$ac_prog", so it can be a program name with args.
4662set dummy $ac_prog; ac_word=$2
4663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4664$as_echo_n "checking for $ac_word... " >&6; }
4665if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4666  $as_echo_n "(cached) " >&6
4667else
4668  if test -n "$ac_ct_DUMPBIN"; then
4669  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4670else
4671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672for as_dir in $PATH
4673do
4674  IFS=$as_save_IFS
4675  test -z "$as_dir" && as_dir=.
4676    for ac_exec_ext in '' $ac_executable_extensions; do
4677  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4678    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4679    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4680    break 2
4681  fi
4682done
4683  done
4684IFS=$as_save_IFS
4685
4686fi
4687fi
4688ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4689if test -n "$ac_ct_DUMPBIN"; then
4690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4691$as_echo "$ac_ct_DUMPBIN" >&6; }
4692else
4693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4694$as_echo "no" >&6; }
4695fi
4696
4697
4698  test -n "$ac_ct_DUMPBIN" && break
4699done
4700
4701  if test "x$ac_ct_DUMPBIN" = x; then
4702    DUMPBIN=":"
4703  else
4704    case $cross_compiling:$ac_tool_warned in
4705yes:)
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4707$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4708ac_tool_warned=yes ;;
4709esac
4710    DUMPBIN=$ac_ct_DUMPBIN
4711  fi
4712fi
4713
4714    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4715    *COFF*)
4716      DUMPBIN="$DUMPBIN -symbols"
4717      ;;
4718    *)
4719      DUMPBIN=:
4720      ;;
4721    esac
4722  fi
4723
4724  if test "$DUMPBIN" != ":"; then
4725    NM="$DUMPBIN"
4726  fi
4727fi
4728test -z "$NM" && NM=nm
4729
4730
4731
4732
4733
4734
4735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4736$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4737if ${lt_cv_nm_interface+:} false; then :
4738  $as_echo_n "(cached) " >&6
4739else
4740  lt_cv_nm_interface="BSD nm"
4741  echo "int some_variable = 0;" > conftest.$ac_ext
4742  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4743  (eval "$ac_compile" 2>conftest.err)
4744  cat conftest.err >&5
4745  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4746  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4747  cat conftest.err >&5
4748  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4749  cat conftest.out >&5
4750  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4751    lt_cv_nm_interface="MS dumpbin"
4752  fi
4753  rm -f conftest*
4754fi
4755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4756$as_echo "$lt_cv_nm_interface" >&6; }
4757
4758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4759$as_echo_n "checking whether ln -s works... " >&6; }
4760LN_S=$as_ln_s
4761if test "$LN_S" = "ln -s"; then
4762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4763$as_echo "yes" >&6; }
4764else
4765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4766$as_echo "no, using $LN_S" >&6; }
4767fi
4768
4769# find the maximum length of command line arguments
4770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4771$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4772if ${lt_cv_sys_max_cmd_len+:} false; then :
4773  $as_echo_n "(cached) " >&6
4774else
4775    i=0
4776  teststring="ABCD"
4777
4778  case $build_os in
4779  msdosdjgpp*)
4780    # On DJGPP, this test can blow up pretty badly due to problems in libc
4781    # (any single argument exceeding 2000 bytes causes a buffer overrun
4782    # during glob expansion).  Even if it were fixed, the result of this
4783    # check would be larger than it should be.
4784    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4785    ;;
4786
4787  gnu*)
4788    # Under GNU Hurd, this test is not required because there is
4789    # no limit to the length of command line arguments.
4790    # Libtool will interpret -1 as no limit whatsoever
4791    lt_cv_sys_max_cmd_len=-1;
4792    ;;
4793
4794  cygwin* | mingw* | cegcc*)
4795    # On Win9x/ME, this test blows up -- it succeeds, but takes
4796    # about 5 minutes as the teststring grows exponentially.
4797    # Worse, since 9x/ME are not pre-emptively multitasking,
4798    # you end up with a "frozen" computer, even though with patience
4799    # the test eventually succeeds (with a max line length of 256k).
4800    # Instead, let's just punt: use the minimum linelength reported by
4801    # all of the supported platforms: 8192 (on NT/2K/XP).
4802    lt_cv_sys_max_cmd_len=8192;
4803    ;;
4804
4805  mint*)
4806    # On MiNT this can take a long time and run out of memory.
4807    lt_cv_sys_max_cmd_len=8192;
4808    ;;
4809
4810  amigaos*)
4811    # On AmigaOS with pdksh, this test takes hours, literally.
4812    # So we just punt and use a minimum line length of 8192.
4813    lt_cv_sys_max_cmd_len=8192;
4814    ;;
4815
4816  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4817    # This has been around since 386BSD, at least.  Likely further.
4818    if test -x /sbin/sysctl; then
4819      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4820    elif test -x /usr/sbin/sysctl; then
4821      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4822    else
4823      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4824    fi
4825    # And add a safety zone
4826    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4827    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4828    ;;
4829
4830  interix*)
4831    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4832    lt_cv_sys_max_cmd_len=196608
4833    ;;
4834
4835  os2*)
4836    # The test takes a long time on OS/2.
4837    lt_cv_sys_max_cmd_len=8192
4838    ;;
4839
4840  osf*)
4841    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4842    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4843    # nice to cause kernel panics so lets avoid the loop below.
4844    # First set a reasonable default.
4845    lt_cv_sys_max_cmd_len=16384
4846    #
4847    if test -x /sbin/sysconfig; then
4848      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4849        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4850      esac
4851    fi
4852    ;;
4853  sco3.2v5*)
4854    lt_cv_sys_max_cmd_len=102400
4855    ;;
4856  sysv5* | sco5v6* | sysv4.2uw2*)
4857    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4858    if test -n "$kargmax"; then
4859      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4860    else
4861      lt_cv_sys_max_cmd_len=32768
4862    fi
4863    ;;
4864  *)
4865    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4866    if test -n "$lt_cv_sys_max_cmd_len" && \
4867	test undefined != "$lt_cv_sys_max_cmd_len"; then
4868      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4869      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4870    else
4871      # Make teststring a little bigger before we do anything with it.
4872      # a 1K string should be a reasonable start.
4873      for i in 1 2 3 4 5 6 7 8 ; do
4874        teststring=$teststring$teststring
4875      done
4876      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4877      # If test is not a shell built-in, we'll probably end up computing a
4878      # maximum length that is only half of the actual maximum length, but
4879      # we can't tell.
4880      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4881	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4882	      test $i != 17 # 1/2 MB should be enough
4883      do
4884        i=`expr $i + 1`
4885        teststring=$teststring$teststring
4886      done
4887      # Only check the string length outside the loop.
4888      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4889      teststring=
4890      # Add a significant safety factor because C++ compilers can tack on
4891      # massive amounts of additional arguments before passing them to the
4892      # linker.  It appears as though 1/2 is a usable value.
4893      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4894    fi
4895    ;;
4896  esac
4897
4898fi
4899
4900if test -n $lt_cv_sys_max_cmd_len ; then
4901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4902$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4903else
4904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4905$as_echo "none" >&6; }
4906fi
4907max_cmd_len=$lt_cv_sys_max_cmd_len
4908
4909
4910
4911
4912
4913
4914: ${CP="cp -f"}
4915: ${MV="mv -f"}
4916: ${RM="rm -f"}
4917
4918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4919$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4920# Try some XSI features
4921xsi_shell=no
4922( _lt_dummy="a/b/c"
4923  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4924      = c,a/b,b/c, \
4925    && eval 'test $(( 1 + 1 )) -eq 2 \
4926    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4927  && xsi_shell=yes
4928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4929$as_echo "$xsi_shell" >&6; }
4930
4931
4932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4933$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4934lt_shell_append=no
4935( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4936    >/dev/null 2>&1 \
4937  && lt_shell_append=yes
4938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4939$as_echo "$lt_shell_append" >&6; }
4940
4941
4942if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4943  lt_unset=unset
4944else
4945  lt_unset=false
4946fi
4947
4948
4949
4950
4951
4952# test EBCDIC or ASCII
4953case `echo X|tr X '\101'` in
4954 A) # ASCII based system
4955    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4956  lt_SP2NL='tr \040 \012'
4957  lt_NL2SP='tr \015\012 \040\040'
4958  ;;
4959 *) # EBCDIC based system
4960  lt_SP2NL='tr \100 \n'
4961  lt_NL2SP='tr \r\n \100\100'
4962  ;;
4963esac
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4974$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4975if ${lt_cv_to_host_file_cmd+:} false; then :
4976  $as_echo_n "(cached) " >&6
4977else
4978  case $host in
4979  *-*-mingw* )
4980    case $build in
4981      *-*-mingw* ) # actually msys
4982        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4983        ;;
4984      *-*-cygwin* )
4985        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4986        ;;
4987      * ) # otherwise, assume *nix
4988        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4989        ;;
4990    esac
4991    ;;
4992  *-*-cygwin* )
4993    case $build in
4994      *-*-mingw* ) # actually msys
4995        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4996        ;;
4997      *-*-cygwin* )
4998        lt_cv_to_host_file_cmd=func_convert_file_noop
4999        ;;
5000      * ) # otherwise, assume *nix
5001        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5002        ;;
5003    esac
5004    ;;
5005  * ) # unhandled hosts (and "normal" native builds)
5006    lt_cv_to_host_file_cmd=func_convert_file_noop
5007    ;;
5008esac
5009
5010fi
5011
5012to_host_file_cmd=$lt_cv_to_host_file_cmd
5013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5014$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5015
5016
5017
5018
5019
5020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5021$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5022if ${lt_cv_to_tool_file_cmd+:} false; then :
5023  $as_echo_n "(cached) " >&6
5024else
5025  #assume ordinary cross tools, or native build.
5026lt_cv_to_tool_file_cmd=func_convert_file_noop
5027case $host in
5028  *-*-mingw* )
5029    case $build in
5030      *-*-mingw* ) # actually msys
5031        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5032        ;;
5033    esac
5034    ;;
5035esac
5036
5037fi
5038
5039to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5041$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5042
5043
5044
5045
5046
5047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5048$as_echo_n "checking for $LD option to reload object files... " >&6; }
5049if ${lt_cv_ld_reload_flag+:} false; then :
5050  $as_echo_n "(cached) " >&6
5051else
5052  lt_cv_ld_reload_flag='-r'
5053fi
5054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5055$as_echo "$lt_cv_ld_reload_flag" >&6; }
5056reload_flag=$lt_cv_ld_reload_flag
5057case $reload_flag in
5058"" | " "*) ;;
5059*) reload_flag=" $reload_flag" ;;
5060esac
5061reload_cmds='$LD$reload_flag -o $output$reload_objs'
5062case $host_os in
5063  cygwin* | mingw* | pw32* | cegcc*)
5064    if test "$GCC" != yes; then
5065      reload_cmds=false
5066    fi
5067    ;;
5068  darwin*)
5069    if test "$GCC" = yes; then
5070      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5071    else
5072      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5073    fi
5074    ;;
5075esac
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085if test -n "$ac_tool_prefix"; then
5086  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5087set dummy ${ac_tool_prefix}objdump; ac_word=$2
5088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5089$as_echo_n "checking for $ac_word... " >&6; }
5090if ${ac_cv_prog_OBJDUMP+:} false; then :
5091  $as_echo_n "(cached) " >&6
5092else
5093  if test -n "$OBJDUMP"; then
5094  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5095else
5096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097for as_dir in $PATH
5098do
5099  IFS=$as_save_IFS
5100  test -z "$as_dir" && as_dir=.
5101    for ac_exec_ext in '' $ac_executable_extensions; do
5102  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5103    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5104    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5105    break 2
5106  fi
5107done
5108  done
5109IFS=$as_save_IFS
5110
5111fi
5112fi
5113OBJDUMP=$ac_cv_prog_OBJDUMP
5114if test -n "$OBJDUMP"; then
5115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5116$as_echo "$OBJDUMP" >&6; }
5117else
5118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119$as_echo "no" >&6; }
5120fi
5121
5122
5123fi
5124if test -z "$ac_cv_prog_OBJDUMP"; then
5125  ac_ct_OBJDUMP=$OBJDUMP
5126  # Extract the first word of "objdump", so it can be a program name with args.
5127set dummy objdump; ac_word=$2
5128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5129$as_echo_n "checking for $ac_word... " >&6; }
5130if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5131  $as_echo_n "(cached) " >&6
5132else
5133  if test -n "$ac_ct_OBJDUMP"; then
5134  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5135else
5136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137for as_dir in $PATH
5138do
5139  IFS=$as_save_IFS
5140  test -z "$as_dir" && as_dir=.
5141    for ac_exec_ext in '' $ac_executable_extensions; do
5142  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5143    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5144    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5145    break 2
5146  fi
5147done
5148  done
5149IFS=$as_save_IFS
5150
5151fi
5152fi
5153ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5154if test -n "$ac_ct_OBJDUMP"; then
5155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5156$as_echo "$ac_ct_OBJDUMP" >&6; }
5157else
5158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159$as_echo "no" >&6; }
5160fi
5161
5162  if test "x$ac_ct_OBJDUMP" = x; then
5163    OBJDUMP="false"
5164  else
5165    case $cross_compiling:$ac_tool_warned in
5166yes:)
5167{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5168$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5169ac_tool_warned=yes ;;
5170esac
5171    OBJDUMP=$ac_ct_OBJDUMP
5172  fi
5173else
5174  OBJDUMP="$ac_cv_prog_OBJDUMP"
5175fi
5176
5177test -z "$OBJDUMP" && OBJDUMP=objdump
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5188$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5189if ${lt_cv_deplibs_check_method+:} false; then :
5190  $as_echo_n "(cached) " >&6
5191else
5192  lt_cv_file_magic_cmd='$MAGIC_CMD'
5193lt_cv_file_magic_test_file=
5194lt_cv_deplibs_check_method='unknown'
5195# Need to set the preceding variable on all platforms that support
5196# interlibrary dependencies.
5197# 'none' -- dependencies not supported.
5198# `unknown' -- same as none, but documents that we really don't know.
5199# 'pass_all' -- all dependencies passed with no checks.
5200# 'test_compile' -- check by making test program.
5201# 'file_magic [[regex]]' -- check by looking for files in library path
5202# which responds to the $file_magic_cmd with a given extended regex.
5203# If you have `file' or equivalent on your system and you're not sure
5204# whether `pass_all' will *always* work, you probably want this one.
5205
5206case $host_os in
5207aix[4-9]*)
5208  lt_cv_deplibs_check_method=pass_all
5209  ;;
5210
5211beos*)
5212  lt_cv_deplibs_check_method=pass_all
5213  ;;
5214
5215bsdi[45]*)
5216  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5217  lt_cv_file_magic_cmd='/usr/bin/file -L'
5218  lt_cv_file_magic_test_file=/shlib/libc.so
5219  ;;
5220
5221cygwin*)
5222  # func_win32_libid is a shell function defined in ltmain.sh
5223  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5224  lt_cv_file_magic_cmd='func_win32_libid'
5225  ;;
5226
5227mingw* | pw32*)
5228  # Base MSYS/MinGW do not provide the 'file' command needed by
5229  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5230  # unless we find 'file', for example because we are cross-compiling.
5231  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5232  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5233    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5234    lt_cv_file_magic_cmd='func_win32_libid'
5235  else
5236    # Keep this pattern in sync with the one in func_win32_libid.
5237    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5238    lt_cv_file_magic_cmd='$OBJDUMP -f'
5239  fi
5240  ;;
5241
5242cegcc*)
5243  # use the weaker test based on 'objdump'. See mingw*.
5244  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5245  lt_cv_file_magic_cmd='$OBJDUMP -f'
5246  ;;
5247
5248darwin* | rhapsody*)
5249  lt_cv_deplibs_check_method=pass_all
5250  ;;
5251
5252freebsd* | dragonfly*)
5253  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5254    case $host_cpu in
5255    i*86 )
5256      # Not sure whether the presence of OpenBSD here was a mistake.
5257      # Let's accept both of them until this is cleared up.
5258      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5259      lt_cv_file_magic_cmd=/usr/bin/file
5260      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5261      ;;
5262    esac
5263  else
5264    lt_cv_deplibs_check_method=pass_all
5265  fi
5266  ;;
5267
5268haiku*)
5269  lt_cv_deplibs_check_method=pass_all
5270  ;;
5271
5272hpux10.20* | hpux11*)
5273  lt_cv_file_magic_cmd=/usr/bin/file
5274  case $host_cpu in
5275  ia64*)
5276    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5277    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5278    ;;
5279  hppa*64*)
5280    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]'
5281    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5282    ;;
5283  *)
5284    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5285    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5286    ;;
5287  esac
5288  ;;
5289
5290interix[3-9]*)
5291  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5292  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5293  ;;
5294
5295irix5* | irix6* | nonstopux*)
5296  case $LD in
5297  *-32|*"-32 ") libmagic=32-bit;;
5298  *-n32|*"-n32 ") libmagic=N32;;
5299  *-64|*"-64 ") libmagic=64-bit;;
5300  *) libmagic=never-match;;
5301  esac
5302  lt_cv_deplibs_check_method=pass_all
5303  ;;
5304
5305# This must be glibc/ELF.
5306linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5307  lt_cv_deplibs_check_method=pass_all
5308  ;;
5309
5310netbsd* | netbsdelf*-gnu)
5311  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5312    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5313  else
5314    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5315  fi
5316  ;;
5317
5318newos6*)
5319  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5320  lt_cv_file_magic_cmd=/usr/bin/file
5321  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5322  ;;
5323
5324*nto* | *qnx*)
5325  lt_cv_deplibs_check_method=pass_all
5326  ;;
5327
5328openbsd*)
5329  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5330    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5331  else
5332    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5333  fi
5334  ;;
5335
5336osf3* | osf4* | osf5*)
5337  lt_cv_deplibs_check_method=pass_all
5338  ;;
5339
5340rdos*)
5341  lt_cv_deplibs_check_method=pass_all
5342  ;;
5343
5344solaris*)
5345  lt_cv_deplibs_check_method=pass_all
5346  ;;
5347
5348sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5349  lt_cv_deplibs_check_method=pass_all
5350  ;;
5351
5352sysv4 | sysv4.3*)
5353  case $host_vendor in
5354  motorola)
5355    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]'
5356    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5357    ;;
5358  ncr)
5359    lt_cv_deplibs_check_method=pass_all
5360    ;;
5361  sequent)
5362    lt_cv_file_magic_cmd='/bin/file'
5363    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5364    ;;
5365  sni)
5366    lt_cv_file_magic_cmd='/bin/file'
5367    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5368    lt_cv_file_magic_test_file=/lib/libc.so
5369    ;;
5370  siemens)
5371    lt_cv_deplibs_check_method=pass_all
5372    ;;
5373  pc)
5374    lt_cv_deplibs_check_method=pass_all
5375    ;;
5376  esac
5377  ;;
5378
5379tpf*)
5380  lt_cv_deplibs_check_method=pass_all
5381  ;;
5382esac
5383
5384fi
5385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5386$as_echo "$lt_cv_deplibs_check_method" >&6; }
5387
5388file_magic_glob=
5389want_nocaseglob=no
5390if test "$build" = "$host"; then
5391  case $host_os in
5392  mingw* | pw32*)
5393    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5394      want_nocaseglob=yes
5395    else
5396      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5397    fi
5398    ;;
5399  esac
5400fi
5401
5402file_magic_cmd=$lt_cv_file_magic_cmd
5403deplibs_check_method=$lt_cv_deplibs_check_method
5404test -z "$deplibs_check_method" && deplibs_check_method=unknown
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427if test -n "$ac_tool_prefix"; then
5428  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5429set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5431$as_echo_n "checking for $ac_word... " >&6; }
5432if ${ac_cv_prog_DLLTOOL+:} false; then :
5433  $as_echo_n "(cached) " >&6
5434else
5435  if test -n "$DLLTOOL"; then
5436  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5437else
5438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5439for as_dir in $PATH
5440do
5441  IFS=$as_save_IFS
5442  test -z "$as_dir" && as_dir=.
5443    for ac_exec_ext in '' $ac_executable_extensions; do
5444  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5445    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5446    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5447    break 2
5448  fi
5449done
5450  done
5451IFS=$as_save_IFS
5452
5453fi
5454fi
5455DLLTOOL=$ac_cv_prog_DLLTOOL
5456if test -n "$DLLTOOL"; then
5457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5458$as_echo "$DLLTOOL" >&6; }
5459else
5460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5461$as_echo "no" >&6; }
5462fi
5463
5464
5465fi
5466if test -z "$ac_cv_prog_DLLTOOL"; then
5467  ac_ct_DLLTOOL=$DLLTOOL
5468  # Extract the first word of "dlltool", so it can be a program name with args.
5469set dummy dlltool; ac_word=$2
5470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5471$as_echo_n "checking for $ac_word... " >&6; }
5472if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5473  $as_echo_n "(cached) " >&6
5474else
5475  if test -n "$ac_ct_DLLTOOL"; then
5476  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5477else
5478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479for as_dir in $PATH
5480do
5481  IFS=$as_save_IFS
5482  test -z "$as_dir" && as_dir=.
5483    for ac_exec_ext in '' $ac_executable_extensions; do
5484  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5485    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5486    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5487    break 2
5488  fi
5489done
5490  done
5491IFS=$as_save_IFS
5492
5493fi
5494fi
5495ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5496if test -n "$ac_ct_DLLTOOL"; then
5497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5498$as_echo "$ac_ct_DLLTOOL" >&6; }
5499else
5500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5501$as_echo "no" >&6; }
5502fi
5503
5504  if test "x$ac_ct_DLLTOOL" = x; then
5505    DLLTOOL="false"
5506  else
5507    case $cross_compiling:$ac_tool_warned in
5508yes:)
5509{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5510$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5511ac_tool_warned=yes ;;
5512esac
5513    DLLTOOL=$ac_ct_DLLTOOL
5514  fi
5515else
5516  DLLTOOL="$ac_cv_prog_DLLTOOL"
5517fi
5518
5519test -z "$DLLTOOL" && DLLTOOL=dlltool
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5531$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5532if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5533  $as_echo_n "(cached) " >&6
5534else
5535  lt_cv_sharedlib_from_linklib_cmd='unknown'
5536
5537case $host_os in
5538cygwin* | mingw* | pw32* | cegcc*)
5539  # two different shell functions defined in ltmain.sh
5540  # decide which to use based on capabilities of $DLLTOOL
5541  case `$DLLTOOL --help 2>&1` in
5542  *--identify-strict*)
5543    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5544    ;;
5545  *)
5546    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5547    ;;
5548  esac
5549  ;;
5550*)
5551  # fallback: assume linklib IS sharedlib
5552  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5553  ;;
5554esac
5555
5556fi
5557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5558$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5559sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5560test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5561
5562
5563
5564
5565
5566
5567
5568
5569if test -n "$ac_tool_prefix"; then
5570  for ac_prog in ar
5571  do
5572    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5573set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5575$as_echo_n "checking for $ac_word... " >&6; }
5576if ${ac_cv_prog_AR+:} false; then :
5577  $as_echo_n "(cached) " >&6
5578else
5579  if test -n "$AR"; then
5580  ac_cv_prog_AR="$AR" # Let the user override the test.
5581else
5582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5583for as_dir in $PATH
5584do
5585  IFS=$as_save_IFS
5586  test -z "$as_dir" && as_dir=.
5587    for ac_exec_ext in '' $ac_executable_extensions; do
5588  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5589    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5590    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5591    break 2
5592  fi
5593done
5594  done
5595IFS=$as_save_IFS
5596
5597fi
5598fi
5599AR=$ac_cv_prog_AR
5600if test -n "$AR"; then
5601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5602$as_echo "$AR" >&6; }
5603else
5604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5605$as_echo "no" >&6; }
5606fi
5607
5608
5609    test -n "$AR" && break
5610  done
5611fi
5612if test -z "$AR"; then
5613  ac_ct_AR=$AR
5614  for ac_prog in ar
5615do
5616  # Extract the first word of "$ac_prog", so it can be a program name with args.
5617set dummy $ac_prog; ac_word=$2
5618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5619$as_echo_n "checking for $ac_word... " >&6; }
5620if ${ac_cv_prog_ac_ct_AR+:} false; then :
5621  $as_echo_n "(cached) " >&6
5622else
5623  if test -n "$ac_ct_AR"; then
5624  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5625else
5626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627for as_dir in $PATH
5628do
5629  IFS=$as_save_IFS
5630  test -z "$as_dir" && as_dir=.
5631    for ac_exec_ext in '' $ac_executable_extensions; do
5632  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5633    ac_cv_prog_ac_ct_AR="$ac_prog"
5634    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5635    break 2
5636  fi
5637done
5638  done
5639IFS=$as_save_IFS
5640
5641fi
5642fi
5643ac_ct_AR=$ac_cv_prog_ac_ct_AR
5644if test -n "$ac_ct_AR"; then
5645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5646$as_echo "$ac_ct_AR" >&6; }
5647else
5648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649$as_echo "no" >&6; }
5650fi
5651
5652
5653  test -n "$ac_ct_AR" && break
5654done
5655
5656  if test "x$ac_ct_AR" = x; then
5657    AR="false"
5658  else
5659    case $cross_compiling:$ac_tool_warned in
5660yes:)
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5662$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5663ac_tool_warned=yes ;;
5664esac
5665    AR=$ac_ct_AR
5666  fi
5667fi
5668
5669: ${AR=ar}
5670: ${AR_FLAGS=cru}
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5683$as_echo_n "checking for archiver @FILE support... " >&6; }
5684if ${lt_cv_ar_at_file+:} false; then :
5685  $as_echo_n "(cached) " >&6
5686else
5687  lt_cv_ar_at_file=no
5688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5689/* end confdefs.h.  */
5690
5691int
5692main ()
5693{
5694
5695  ;
5696  return 0;
5697}
5698_ACEOF
5699if ac_fn_c_try_compile "$LINENO"; then :
5700  echo conftest.$ac_objext > conftest.lst
5701      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5702      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5703  (eval $lt_ar_try) 2>&5
5704  ac_status=$?
5705  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5706  test $ac_status = 0; }
5707      if test "$ac_status" -eq 0; then
5708	# Ensure the archiver fails upon bogus file names.
5709	rm -f conftest.$ac_objext libconftest.a
5710	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5711  (eval $lt_ar_try) 2>&5
5712  ac_status=$?
5713  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5714  test $ac_status = 0; }
5715	if test "$ac_status" -ne 0; then
5716          lt_cv_ar_at_file=@
5717        fi
5718      fi
5719      rm -f conftest.* libconftest.a
5720
5721fi
5722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5723
5724fi
5725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5726$as_echo "$lt_cv_ar_at_file" >&6; }
5727
5728if test "x$lt_cv_ar_at_file" = xno; then
5729  archiver_list_spec=
5730else
5731  archiver_list_spec=$lt_cv_ar_at_file
5732fi
5733
5734
5735
5736
5737
5738
5739
5740if test -n "$ac_tool_prefix"; then
5741  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5742set dummy ${ac_tool_prefix}strip; ac_word=$2
5743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5744$as_echo_n "checking for $ac_word... " >&6; }
5745if ${ac_cv_prog_STRIP+:} false; then :
5746  $as_echo_n "(cached) " >&6
5747else
5748  if test -n "$STRIP"; then
5749  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5750else
5751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752for as_dir in $PATH
5753do
5754  IFS=$as_save_IFS
5755  test -z "$as_dir" && as_dir=.
5756    for ac_exec_ext in '' $ac_executable_extensions; do
5757  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5758    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5759    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5760    break 2
5761  fi
5762done
5763  done
5764IFS=$as_save_IFS
5765
5766fi
5767fi
5768STRIP=$ac_cv_prog_STRIP
5769if test -n "$STRIP"; then
5770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5771$as_echo "$STRIP" >&6; }
5772else
5773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774$as_echo "no" >&6; }
5775fi
5776
5777
5778fi
5779if test -z "$ac_cv_prog_STRIP"; then
5780  ac_ct_STRIP=$STRIP
5781  # Extract the first word of "strip", so it can be a program name with args.
5782set dummy strip; ac_word=$2
5783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5784$as_echo_n "checking for $ac_word... " >&6; }
5785if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5786  $as_echo_n "(cached) " >&6
5787else
5788  if test -n "$ac_ct_STRIP"; then
5789  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5790else
5791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792for as_dir in $PATH
5793do
5794  IFS=$as_save_IFS
5795  test -z "$as_dir" && as_dir=.
5796    for ac_exec_ext in '' $ac_executable_extensions; do
5797  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5798    ac_cv_prog_ac_ct_STRIP="strip"
5799    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5800    break 2
5801  fi
5802done
5803  done
5804IFS=$as_save_IFS
5805
5806fi
5807fi
5808ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5809if test -n "$ac_ct_STRIP"; then
5810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5811$as_echo "$ac_ct_STRIP" >&6; }
5812else
5813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5814$as_echo "no" >&6; }
5815fi
5816
5817  if test "x$ac_ct_STRIP" = x; then
5818    STRIP=":"
5819  else
5820    case $cross_compiling:$ac_tool_warned in
5821yes:)
5822{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5824ac_tool_warned=yes ;;
5825esac
5826    STRIP=$ac_ct_STRIP
5827  fi
5828else
5829  STRIP="$ac_cv_prog_STRIP"
5830fi
5831
5832test -z "$STRIP" && STRIP=:
5833
5834
5835
5836
5837
5838
5839if test -n "$ac_tool_prefix"; then
5840  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5841set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5843$as_echo_n "checking for $ac_word... " >&6; }
5844if ${ac_cv_prog_RANLIB+:} false; then :
5845  $as_echo_n "(cached) " >&6
5846else
5847  if test -n "$RANLIB"; then
5848  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5849else
5850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851for as_dir in $PATH
5852do
5853  IFS=$as_save_IFS
5854  test -z "$as_dir" && as_dir=.
5855    for ac_exec_ext in '' $ac_executable_extensions; do
5856  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5857    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5858    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5859    break 2
5860  fi
5861done
5862  done
5863IFS=$as_save_IFS
5864
5865fi
5866fi
5867RANLIB=$ac_cv_prog_RANLIB
5868if test -n "$RANLIB"; then
5869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5870$as_echo "$RANLIB" >&6; }
5871else
5872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5873$as_echo "no" >&6; }
5874fi
5875
5876
5877fi
5878if test -z "$ac_cv_prog_RANLIB"; then
5879  ac_ct_RANLIB=$RANLIB
5880  # Extract the first word of "ranlib", so it can be a program name with args.
5881set dummy ranlib; ac_word=$2
5882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5883$as_echo_n "checking for $ac_word... " >&6; }
5884if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5885  $as_echo_n "(cached) " >&6
5886else
5887  if test -n "$ac_ct_RANLIB"; then
5888  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5889else
5890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891for as_dir in $PATH
5892do
5893  IFS=$as_save_IFS
5894  test -z "$as_dir" && as_dir=.
5895    for ac_exec_ext in '' $ac_executable_extensions; do
5896  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5897    ac_cv_prog_ac_ct_RANLIB="ranlib"
5898    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5899    break 2
5900  fi
5901done
5902  done
5903IFS=$as_save_IFS
5904
5905fi
5906fi
5907ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5908if test -n "$ac_ct_RANLIB"; then
5909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5910$as_echo "$ac_ct_RANLIB" >&6; }
5911else
5912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5913$as_echo "no" >&6; }
5914fi
5915
5916  if test "x$ac_ct_RANLIB" = x; then
5917    RANLIB=":"
5918  else
5919    case $cross_compiling:$ac_tool_warned in
5920yes:)
5921{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5922$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5923ac_tool_warned=yes ;;
5924esac
5925    RANLIB=$ac_ct_RANLIB
5926  fi
5927else
5928  RANLIB="$ac_cv_prog_RANLIB"
5929fi
5930
5931test -z "$RANLIB" && RANLIB=:
5932
5933
5934
5935
5936
5937
5938# Determine commands to create old-style static archives.
5939old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5940old_postinstall_cmds='chmod 644 $oldlib'
5941old_postuninstall_cmds=
5942
5943if test -n "$RANLIB"; then
5944  case $host_os in
5945  openbsd*)
5946    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5947    ;;
5948  *)
5949    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5950    ;;
5951  esac
5952  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5953fi
5954
5955case $host_os in
5956  darwin*)
5957    lock_old_archive_extraction=yes ;;
5958  *)
5959    lock_old_archive_extraction=no ;;
5960esac
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000# If no C compiler was specified, use CC.
6001LTCC=${LTCC-"$CC"}
6002
6003# If no C compiler flags were specified, use CFLAGS.
6004LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6005
6006# Allow CC to be a program name with arguments.
6007compiler=$CC
6008
6009
6010# Check for command to grab the raw symbol name followed by C symbol from nm.
6011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6012$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6013if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6014  $as_echo_n "(cached) " >&6
6015else
6016
6017# These are sane defaults that work on at least a few old systems.
6018# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6019
6020# Character class describing NM global symbol codes.
6021symcode='[BCDEGRST]'
6022
6023# Regexp to match symbols that can be accessed directly from C.
6024sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6025
6026# Define system-specific variables.
6027case $host_os in
6028aix*)
6029  symcode='[BCDT]'
6030  ;;
6031cygwin* | mingw* | pw32* | cegcc*)
6032  symcode='[ABCDGISTW]'
6033  ;;
6034hpux*)
6035  if test "$host_cpu" = ia64; then
6036    symcode='[ABCDEGRST]'
6037  fi
6038  ;;
6039irix* | nonstopux*)
6040  symcode='[BCDEGRST]'
6041  ;;
6042osf*)
6043  symcode='[BCDEGQRST]'
6044  ;;
6045solaris*)
6046  symcode='[BDRT]'
6047  ;;
6048sco3.2v5*)
6049  symcode='[DT]'
6050  ;;
6051sysv4.2uw2*)
6052  symcode='[DT]'
6053  ;;
6054sysv5* | sco5v6* | unixware* | OpenUNIX*)
6055  symcode='[ABDT]'
6056  ;;
6057sysv4)
6058  symcode='[DFNSTU]'
6059  ;;
6060esac
6061
6062# If we're using GNU nm, then use its standard symbol codes.
6063case `$NM -V 2>&1` in
6064*GNU* | *'with BFD'*)
6065  symcode='[ABCDGIRSTW]' ;;
6066esac
6067
6068# Transform an extracted symbol line into a proper C declaration.
6069# Some systems (esp. on ia64) link data and code symbols differently,
6070# so use this general approach.
6071lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6072
6073# Transform an extracted symbol line into symbol name and symbol address
6074lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6075lt_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'"
6076
6077# Handle CRLF in mingw tool chain
6078opt_cr=
6079case $build_os in
6080mingw*)
6081  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6082  ;;
6083esac
6084
6085# Try without a prefix underscore, then with it.
6086for ac_symprfx in "" "_"; do
6087
6088  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6089  symxfrm="\\1 $ac_symprfx\\2 \\2"
6090
6091  # Write the raw and C identifiers.
6092  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6093    # Fake it for dumpbin and say T for any non-static function
6094    # and D for any global variable.
6095    # Also find C++ and __fastcall symbols from MSVC++,
6096    # which start with @ or ?.
6097    lt_cv_sys_global_symbol_pipe="$AWK '"\
6098"     {last_section=section; section=\$ 3};"\
6099"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6100"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6101"     \$ 0!~/External *\|/{next};"\
6102"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6103"     {if(hide[section]) next};"\
6104"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6105"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6106"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6107"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6108"     ' prfx=^$ac_symprfx"
6109  else
6110    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6111  fi
6112  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6113
6114  # Check to see that the pipe works correctly.
6115  pipe_works=no
6116
6117  rm -f conftest*
6118  cat > conftest.$ac_ext <<_LT_EOF
6119#ifdef __cplusplus
6120extern "C" {
6121#endif
6122char nm_test_var;
6123void nm_test_func(void);
6124void nm_test_func(void){}
6125#ifdef __cplusplus
6126}
6127#endif
6128int main(){nm_test_var='a';nm_test_func();return(0);}
6129_LT_EOF
6130
6131  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6132  (eval $ac_compile) 2>&5
6133  ac_status=$?
6134  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6135  test $ac_status = 0; }; then
6136    # Now try to grab the symbols.
6137    nlist=conftest.nm
6138    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6139  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6140  ac_status=$?
6141  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6142  test $ac_status = 0; } && test -s "$nlist"; then
6143      # Try sorting and uniquifying the output.
6144      if sort "$nlist" | uniq > "$nlist"T; then
6145	mv -f "$nlist"T "$nlist"
6146      else
6147	rm -f "$nlist"T
6148      fi
6149
6150      # Make sure that we snagged all the symbols we need.
6151      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6152	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6153	  cat <<_LT_EOF > conftest.$ac_ext
6154/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6155#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6156/* DATA imports from DLLs on WIN32 con't be const, because runtime
6157   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6158# define LT_DLSYM_CONST
6159#elif defined(__osf__)
6160/* This system does not cope well with relocations in const data.  */
6161# define LT_DLSYM_CONST
6162#else
6163# define LT_DLSYM_CONST const
6164#endif
6165
6166#ifdef __cplusplus
6167extern "C" {
6168#endif
6169
6170_LT_EOF
6171	  # Now generate the symbol file.
6172	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6173
6174	  cat <<_LT_EOF >> conftest.$ac_ext
6175
6176/* The mapping between symbol names and symbols.  */
6177LT_DLSYM_CONST struct {
6178  const char *name;
6179  void       *address;
6180}
6181lt__PROGRAM__LTX_preloaded_symbols[] =
6182{
6183  { "@PROGRAM@", (void *) 0 },
6184_LT_EOF
6185	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6186	  cat <<\_LT_EOF >> conftest.$ac_ext
6187  {0, (void *) 0}
6188};
6189
6190/* This works around a problem in FreeBSD linker */
6191#ifdef FREEBSD_WORKAROUND
6192static const void *lt_preloaded_setup() {
6193  return lt__PROGRAM__LTX_preloaded_symbols;
6194}
6195#endif
6196
6197#ifdef __cplusplus
6198}
6199#endif
6200_LT_EOF
6201	  # Now try linking the two files.
6202	  mv conftest.$ac_objext conftstm.$ac_objext
6203	  lt_globsym_save_LIBS=$LIBS
6204	  lt_globsym_save_CFLAGS=$CFLAGS
6205	  LIBS="conftstm.$ac_objext"
6206	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6207	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6208  (eval $ac_link) 2>&5
6209  ac_status=$?
6210  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6211  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6212	    pipe_works=yes
6213	  fi
6214	  LIBS=$lt_globsym_save_LIBS
6215	  CFLAGS=$lt_globsym_save_CFLAGS
6216	else
6217	  echo "cannot find nm_test_func in $nlist" >&5
6218	fi
6219      else
6220	echo "cannot find nm_test_var in $nlist" >&5
6221      fi
6222    else
6223      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6224    fi
6225  else
6226    echo "$progname: failed program was:" >&5
6227    cat conftest.$ac_ext >&5
6228  fi
6229  rm -rf conftest* conftst*
6230
6231  # Do not use the global_symbol_pipe unless it works.
6232  if test "$pipe_works" = yes; then
6233    break
6234  else
6235    lt_cv_sys_global_symbol_pipe=
6236  fi
6237done
6238
6239fi
6240
6241if test -z "$lt_cv_sys_global_symbol_pipe"; then
6242  lt_cv_sys_global_symbol_to_cdecl=
6243fi
6244if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6246$as_echo "failed" >&6; }
6247else
6248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6249$as_echo "ok" >&6; }
6250fi
6251
6252# Response file support.
6253if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6254  nm_file_list_spec='@'
6255elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6256  nm_file_list_spec='@'
6257fi
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6286$as_echo_n "checking for sysroot... " >&6; }
6287
6288# Check whether --with-sysroot was given.
6289if test "${with_sysroot+set}" = set; then :
6290  withval=$with_sysroot;
6291else
6292  with_sysroot=no
6293fi
6294
6295
6296lt_sysroot=
6297case ${with_sysroot} in #(
6298 yes)
6299   if test "$GCC" = yes; then
6300     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6301   fi
6302   ;; #(
6303 /*)
6304   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6305   ;; #(
6306 no|'')
6307   ;; #(
6308 *)
6309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6310$as_echo "${with_sysroot}" >&6; }
6311   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6312   ;;
6313esac
6314
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6316$as_echo "${lt_sysroot:-no}" >&6; }
6317
6318
6319
6320
6321
6322# Check whether --enable-libtool-lock was given.
6323if test "${enable_libtool_lock+set}" = set; then :
6324  enableval=$enable_libtool_lock;
6325fi
6326
6327test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6328
6329# Some flags need to be propagated to the compiler or linker for good
6330# libtool support.
6331case $host in
6332ia64-*-hpux*)
6333  # Find out which ABI we are using.
6334  echo 'int i;' > conftest.$ac_ext
6335  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6336  (eval $ac_compile) 2>&5
6337  ac_status=$?
6338  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6339  test $ac_status = 0; }; then
6340    case `/usr/bin/file conftest.$ac_objext` in
6341      *ELF-32*)
6342	HPUX_IA64_MODE="32"
6343	;;
6344      *ELF-64*)
6345	HPUX_IA64_MODE="64"
6346	;;
6347    esac
6348  fi
6349  rm -rf conftest*
6350  ;;
6351*-*-irix6*)
6352  # Find out which ABI we are using.
6353  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6354  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6355  (eval $ac_compile) 2>&5
6356  ac_status=$?
6357  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6358  test $ac_status = 0; }; then
6359    if test "$lt_cv_prog_gnu_ld" = yes; then
6360      case `/usr/bin/file conftest.$ac_objext` in
6361	*32-bit*)
6362	  LD="${LD-ld} -melf32bsmip"
6363	  ;;
6364	*N32*)
6365	  LD="${LD-ld} -melf32bmipn32"
6366	  ;;
6367	*64-bit*)
6368	  LD="${LD-ld} -melf64bmip"
6369	;;
6370      esac
6371    else
6372      case `/usr/bin/file conftest.$ac_objext` in
6373	*32-bit*)
6374	  LD="${LD-ld} -32"
6375	  ;;
6376	*N32*)
6377	  LD="${LD-ld} -n32"
6378	  ;;
6379	*64-bit*)
6380	  LD="${LD-ld} -64"
6381	  ;;
6382      esac
6383    fi
6384  fi
6385  rm -rf conftest*
6386  ;;
6387
6388x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6389s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6390  # Find out which ABI we are using.
6391  echo 'int i;' > conftest.$ac_ext
6392  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6393  (eval $ac_compile) 2>&5
6394  ac_status=$?
6395  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6396  test $ac_status = 0; }; then
6397    case `/usr/bin/file conftest.o` in
6398      *32-bit*)
6399	case $host in
6400	  x86_64-*kfreebsd*-gnu)
6401	    LD="${LD-ld} -m elf_i386_fbsd"
6402	    ;;
6403	  x86_64-*linux*)
6404	    case `/usr/bin/file conftest.o` in
6405	      *x86-64*)
6406		LD="${LD-ld} -m elf32_x86_64"
6407		;;
6408	      *)
6409		LD="${LD-ld} -m elf_i386"
6410		;;
6411	    esac
6412	    ;;
6413	  powerpc64le-*)
6414	    LD="${LD-ld} -m elf32lppclinux"
6415	    ;;
6416	  powerpc64-*)
6417	    LD="${LD-ld} -m elf32ppclinux"
6418	    ;;
6419	  s390x-*linux*)
6420	    LD="${LD-ld} -m elf_s390"
6421	    ;;
6422	  sparc64-*linux*)
6423	    LD="${LD-ld} -m elf32_sparc"
6424	    ;;
6425	esac
6426	;;
6427      *64-bit*)
6428	case $host in
6429	  x86_64-*kfreebsd*-gnu)
6430	    LD="${LD-ld} -m elf_x86_64_fbsd"
6431	    ;;
6432	  x86_64-*linux*)
6433	    LD="${LD-ld} -m elf_x86_64"
6434	    ;;
6435	  powerpcle-*)
6436	    LD="${LD-ld} -m elf64lppc"
6437	    ;;
6438	  powerpc-*)
6439	    LD="${LD-ld} -m elf64ppc"
6440	    ;;
6441	  s390*-*linux*|s390*-*tpf*)
6442	    LD="${LD-ld} -m elf64_s390"
6443	    ;;
6444	  sparc*-*linux*)
6445	    LD="${LD-ld} -m elf64_sparc"
6446	    ;;
6447	esac
6448	;;
6449    esac
6450  fi
6451  rm -rf conftest*
6452  ;;
6453
6454*-*-sco3.2v5*)
6455  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6456  SAVE_CFLAGS="$CFLAGS"
6457  CFLAGS="$CFLAGS -belf"
6458  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6459$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6460if ${lt_cv_cc_needs_belf+:} false; then :
6461  $as_echo_n "(cached) " >&6
6462else
6463  ac_ext=c
6464ac_cpp='$CPP $CPPFLAGS'
6465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6467ac_compiler_gnu=$ac_cv_c_compiler_gnu
6468
6469     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6470/* end confdefs.h.  */
6471
6472int
6473main ()
6474{
6475
6476  ;
6477  return 0;
6478}
6479_ACEOF
6480if ac_fn_c_try_link "$LINENO"; then :
6481  lt_cv_cc_needs_belf=yes
6482else
6483  lt_cv_cc_needs_belf=no
6484fi
6485rm -f core conftest.err conftest.$ac_objext \
6486    conftest$ac_exeext conftest.$ac_ext
6487     ac_ext=c
6488ac_cpp='$CPP $CPPFLAGS'
6489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6491ac_compiler_gnu=$ac_cv_c_compiler_gnu
6492
6493fi
6494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6495$as_echo "$lt_cv_cc_needs_belf" >&6; }
6496  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6497    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6498    CFLAGS="$SAVE_CFLAGS"
6499  fi
6500  ;;
6501*-*solaris*)
6502  # Find out which ABI we are using.
6503  echo 'int i;' > conftest.$ac_ext
6504  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6505  (eval $ac_compile) 2>&5
6506  ac_status=$?
6507  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6508  test $ac_status = 0; }; then
6509    case `/usr/bin/file conftest.o` in
6510    *64-bit*)
6511      case $lt_cv_prog_gnu_ld in
6512      yes*)
6513        case $host in
6514        i?86-*-solaris*)
6515          LD="${LD-ld} -m elf_x86_64"
6516          ;;
6517        sparc*-*-solaris*)
6518          LD="${LD-ld} -m elf64_sparc"
6519          ;;
6520        esac
6521        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6522        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6523          LD="${LD-ld}_sol2"
6524        fi
6525        ;;
6526      *)
6527	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6528	  LD="${LD-ld} -64"
6529	fi
6530	;;
6531      esac
6532      ;;
6533    esac
6534  fi
6535  rm -rf conftest*
6536  ;;
6537esac
6538
6539need_locks="$enable_libtool_lock"
6540
6541if test -n "$ac_tool_prefix"; then
6542  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6543set dummy ${ac_tool_prefix}mt; ac_word=$2
6544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6545$as_echo_n "checking for $ac_word... " >&6; }
6546if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6547  $as_echo_n "(cached) " >&6
6548else
6549  if test -n "$MANIFEST_TOOL"; then
6550  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6551else
6552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553for as_dir in $PATH
6554do
6555  IFS=$as_save_IFS
6556  test -z "$as_dir" && as_dir=.
6557    for ac_exec_ext in '' $ac_executable_extensions; do
6558  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6559    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6560    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6561    break 2
6562  fi
6563done
6564  done
6565IFS=$as_save_IFS
6566
6567fi
6568fi
6569MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6570if test -n "$MANIFEST_TOOL"; then
6571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6572$as_echo "$MANIFEST_TOOL" >&6; }
6573else
6574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6575$as_echo "no" >&6; }
6576fi
6577
6578
6579fi
6580if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6581  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6582  # Extract the first word of "mt", so it can be a program name with args.
6583set dummy mt; ac_word=$2
6584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6585$as_echo_n "checking for $ac_word... " >&6; }
6586if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6587  $as_echo_n "(cached) " >&6
6588else
6589  if test -n "$ac_ct_MANIFEST_TOOL"; then
6590  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6591else
6592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593for as_dir in $PATH
6594do
6595  IFS=$as_save_IFS
6596  test -z "$as_dir" && as_dir=.
6597    for ac_exec_ext in '' $ac_executable_extensions; do
6598  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6599    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6600    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6601    break 2
6602  fi
6603done
6604  done
6605IFS=$as_save_IFS
6606
6607fi
6608fi
6609ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6610if test -n "$ac_ct_MANIFEST_TOOL"; then
6611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6612$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6613else
6614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6615$as_echo "no" >&6; }
6616fi
6617
6618  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6619    MANIFEST_TOOL=":"
6620  else
6621    case $cross_compiling:$ac_tool_warned in
6622yes:)
6623{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6624$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6625ac_tool_warned=yes ;;
6626esac
6627    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6628  fi
6629else
6630  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6631fi
6632
6633test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6635$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6636if ${lt_cv_path_mainfest_tool+:} false; then :
6637  $as_echo_n "(cached) " >&6
6638else
6639  lt_cv_path_mainfest_tool=no
6640  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6641  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6642  cat conftest.err >&5
6643  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6644    lt_cv_path_mainfest_tool=yes
6645  fi
6646  rm -f conftest*
6647fi
6648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6649$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6650if test "x$lt_cv_path_mainfest_tool" != xyes; then
6651  MANIFEST_TOOL=:
6652fi
6653
6654
6655
6656
6657
6658
6659  case $host_os in
6660    rhapsody* | darwin*)
6661    if test -n "$ac_tool_prefix"; then
6662  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6663set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6665$as_echo_n "checking for $ac_word... " >&6; }
6666if ${ac_cv_prog_DSYMUTIL+:} false; then :
6667  $as_echo_n "(cached) " >&6
6668else
6669  if test -n "$DSYMUTIL"; then
6670  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6671else
6672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673for as_dir in $PATH
6674do
6675  IFS=$as_save_IFS
6676  test -z "$as_dir" && as_dir=.
6677    for ac_exec_ext in '' $ac_executable_extensions; do
6678  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6679    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6680    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6681    break 2
6682  fi
6683done
6684  done
6685IFS=$as_save_IFS
6686
6687fi
6688fi
6689DSYMUTIL=$ac_cv_prog_DSYMUTIL
6690if test -n "$DSYMUTIL"; then
6691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6692$as_echo "$DSYMUTIL" >&6; }
6693else
6694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6695$as_echo "no" >&6; }
6696fi
6697
6698
6699fi
6700if test -z "$ac_cv_prog_DSYMUTIL"; then
6701  ac_ct_DSYMUTIL=$DSYMUTIL
6702  # Extract the first word of "dsymutil", so it can be a program name with args.
6703set dummy dsymutil; ac_word=$2
6704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6705$as_echo_n "checking for $ac_word... " >&6; }
6706if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6707  $as_echo_n "(cached) " >&6
6708else
6709  if test -n "$ac_ct_DSYMUTIL"; then
6710  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6711else
6712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713for as_dir in $PATH
6714do
6715  IFS=$as_save_IFS
6716  test -z "$as_dir" && as_dir=.
6717    for ac_exec_ext in '' $ac_executable_extensions; do
6718  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6719    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6720    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6721    break 2
6722  fi
6723done
6724  done
6725IFS=$as_save_IFS
6726
6727fi
6728fi
6729ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6730if test -n "$ac_ct_DSYMUTIL"; then
6731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6732$as_echo "$ac_ct_DSYMUTIL" >&6; }
6733else
6734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6735$as_echo "no" >&6; }
6736fi
6737
6738  if test "x$ac_ct_DSYMUTIL" = x; then
6739    DSYMUTIL=":"
6740  else
6741    case $cross_compiling:$ac_tool_warned in
6742yes:)
6743{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6744$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6745ac_tool_warned=yes ;;
6746esac
6747    DSYMUTIL=$ac_ct_DSYMUTIL
6748  fi
6749else
6750  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6751fi
6752
6753    if test -n "$ac_tool_prefix"; then
6754  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6755set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757$as_echo_n "checking for $ac_word... " >&6; }
6758if ${ac_cv_prog_NMEDIT+:} false; then :
6759  $as_echo_n "(cached) " >&6
6760else
6761  if test -n "$NMEDIT"; then
6762  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6763else
6764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765for as_dir in $PATH
6766do
6767  IFS=$as_save_IFS
6768  test -z "$as_dir" && as_dir=.
6769    for ac_exec_ext in '' $ac_executable_extensions; do
6770  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6771    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6772    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6773    break 2
6774  fi
6775done
6776  done
6777IFS=$as_save_IFS
6778
6779fi
6780fi
6781NMEDIT=$ac_cv_prog_NMEDIT
6782if test -n "$NMEDIT"; then
6783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6784$as_echo "$NMEDIT" >&6; }
6785else
6786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787$as_echo "no" >&6; }
6788fi
6789
6790
6791fi
6792if test -z "$ac_cv_prog_NMEDIT"; then
6793  ac_ct_NMEDIT=$NMEDIT
6794  # Extract the first word of "nmedit", so it can be a program name with args.
6795set dummy nmedit; ac_word=$2
6796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6797$as_echo_n "checking for $ac_word... " >&6; }
6798if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6799  $as_echo_n "(cached) " >&6
6800else
6801  if test -n "$ac_ct_NMEDIT"; then
6802  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6803else
6804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805for as_dir in $PATH
6806do
6807  IFS=$as_save_IFS
6808  test -z "$as_dir" && as_dir=.
6809    for ac_exec_ext in '' $ac_executable_extensions; do
6810  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6811    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6812    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6813    break 2
6814  fi
6815done
6816  done
6817IFS=$as_save_IFS
6818
6819fi
6820fi
6821ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6822if test -n "$ac_ct_NMEDIT"; then
6823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6824$as_echo "$ac_ct_NMEDIT" >&6; }
6825else
6826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6827$as_echo "no" >&6; }
6828fi
6829
6830  if test "x$ac_ct_NMEDIT" = x; then
6831    NMEDIT=":"
6832  else
6833    case $cross_compiling:$ac_tool_warned in
6834yes:)
6835{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6836$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6837ac_tool_warned=yes ;;
6838esac
6839    NMEDIT=$ac_ct_NMEDIT
6840  fi
6841else
6842  NMEDIT="$ac_cv_prog_NMEDIT"
6843fi
6844
6845    if test -n "$ac_tool_prefix"; then
6846  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6847set dummy ${ac_tool_prefix}lipo; ac_word=$2
6848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6849$as_echo_n "checking for $ac_word... " >&6; }
6850if ${ac_cv_prog_LIPO+:} false; then :
6851  $as_echo_n "(cached) " >&6
6852else
6853  if test -n "$LIPO"; then
6854  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6855else
6856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857for as_dir in $PATH
6858do
6859  IFS=$as_save_IFS
6860  test -z "$as_dir" && as_dir=.
6861    for ac_exec_ext in '' $ac_executable_extensions; do
6862  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6863    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6864    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6865    break 2
6866  fi
6867done
6868  done
6869IFS=$as_save_IFS
6870
6871fi
6872fi
6873LIPO=$ac_cv_prog_LIPO
6874if test -n "$LIPO"; then
6875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6876$as_echo "$LIPO" >&6; }
6877else
6878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6879$as_echo "no" >&6; }
6880fi
6881
6882
6883fi
6884if test -z "$ac_cv_prog_LIPO"; then
6885  ac_ct_LIPO=$LIPO
6886  # Extract the first word of "lipo", so it can be a program name with args.
6887set dummy lipo; ac_word=$2
6888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6889$as_echo_n "checking for $ac_word... " >&6; }
6890if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6891  $as_echo_n "(cached) " >&6
6892else
6893  if test -n "$ac_ct_LIPO"; then
6894  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6895else
6896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897for as_dir in $PATH
6898do
6899  IFS=$as_save_IFS
6900  test -z "$as_dir" && as_dir=.
6901    for ac_exec_ext in '' $ac_executable_extensions; do
6902  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6903    ac_cv_prog_ac_ct_LIPO="lipo"
6904    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6905    break 2
6906  fi
6907done
6908  done
6909IFS=$as_save_IFS
6910
6911fi
6912fi
6913ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6914if test -n "$ac_ct_LIPO"; then
6915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6916$as_echo "$ac_ct_LIPO" >&6; }
6917else
6918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6919$as_echo "no" >&6; }
6920fi
6921
6922  if test "x$ac_ct_LIPO" = x; then
6923    LIPO=":"
6924  else
6925    case $cross_compiling:$ac_tool_warned in
6926yes:)
6927{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6928$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6929ac_tool_warned=yes ;;
6930esac
6931    LIPO=$ac_ct_LIPO
6932  fi
6933else
6934  LIPO="$ac_cv_prog_LIPO"
6935fi
6936
6937    if test -n "$ac_tool_prefix"; then
6938  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6939set dummy ${ac_tool_prefix}otool; ac_word=$2
6940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6941$as_echo_n "checking for $ac_word... " >&6; }
6942if ${ac_cv_prog_OTOOL+:} false; then :
6943  $as_echo_n "(cached) " >&6
6944else
6945  if test -n "$OTOOL"; then
6946  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6947else
6948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949for as_dir in $PATH
6950do
6951  IFS=$as_save_IFS
6952  test -z "$as_dir" && as_dir=.
6953    for ac_exec_ext in '' $ac_executable_extensions; do
6954  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6955    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6956    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6957    break 2
6958  fi
6959done
6960  done
6961IFS=$as_save_IFS
6962
6963fi
6964fi
6965OTOOL=$ac_cv_prog_OTOOL
6966if test -n "$OTOOL"; then
6967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6968$as_echo "$OTOOL" >&6; }
6969else
6970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971$as_echo "no" >&6; }
6972fi
6973
6974
6975fi
6976if test -z "$ac_cv_prog_OTOOL"; then
6977  ac_ct_OTOOL=$OTOOL
6978  # Extract the first word of "otool", so it can be a program name with args.
6979set dummy otool; ac_word=$2
6980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6981$as_echo_n "checking for $ac_word... " >&6; }
6982if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6983  $as_echo_n "(cached) " >&6
6984else
6985  if test -n "$ac_ct_OTOOL"; then
6986  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6987else
6988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989for as_dir in $PATH
6990do
6991  IFS=$as_save_IFS
6992  test -z "$as_dir" && as_dir=.
6993    for ac_exec_ext in '' $ac_executable_extensions; do
6994  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6995    ac_cv_prog_ac_ct_OTOOL="otool"
6996    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6997    break 2
6998  fi
6999done
7000  done
7001IFS=$as_save_IFS
7002
7003fi
7004fi
7005ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7006if test -n "$ac_ct_OTOOL"; then
7007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7008$as_echo "$ac_ct_OTOOL" >&6; }
7009else
7010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7011$as_echo "no" >&6; }
7012fi
7013
7014  if test "x$ac_ct_OTOOL" = x; then
7015    OTOOL=":"
7016  else
7017    case $cross_compiling:$ac_tool_warned in
7018yes:)
7019{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7020$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7021ac_tool_warned=yes ;;
7022esac
7023    OTOOL=$ac_ct_OTOOL
7024  fi
7025else
7026  OTOOL="$ac_cv_prog_OTOOL"
7027fi
7028
7029    if test -n "$ac_tool_prefix"; then
7030  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7031set dummy ${ac_tool_prefix}otool64; ac_word=$2
7032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033$as_echo_n "checking for $ac_word... " >&6; }
7034if ${ac_cv_prog_OTOOL64+:} false; then :
7035  $as_echo_n "(cached) " >&6
7036else
7037  if test -n "$OTOOL64"; then
7038  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7039else
7040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041for as_dir in $PATH
7042do
7043  IFS=$as_save_IFS
7044  test -z "$as_dir" && as_dir=.
7045    for ac_exec_ext in '' $ac_executable_extensions; do
7046  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7047    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7048    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7049    break 2
7050  fi
7051done
7052  done
7053IFS=$as_save_IFS
7054
7055fi
7056fi
7057OTOOL64=$ac_cv_prog_OTOOL64
7058if test -n "$OTOOL64"; then
7059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7060$as_echo "$OTOOL64" >&6; }
7061else
7062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063$as_echo "no" >&6; }
7064fi
7065
7066
7067fi
7068if test -z "$ac_cv_prog_OTOOL64"; then
7069  ac_ct_OTOOL64=$OTOOL64
7070  # Extract the first word of "otool64", so it can be a program name with args.
7071set dummy otool64; ac_word=$2
7072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7073$as_echo_n "checking for $ac_word... " >&6; }
7074if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7075  $as_echo_n "(cached) " >&6
7076else
7077  if test -n "$ac_ct_OTOOL64"; then
7078  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7079else
7080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081for as_dir in $PATH
7082do
7083  IFS=$as_save_IFS
7084  test -z "$as_dir" && as_dir=.
7085    for ac_exec_ext in '' $ac_executable_extensions; do
7086  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7087    ac_cv_prog_ac_ct_OTOOL64="otool64"
7088    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7089    break 2
7090  fi
7091done
7092  done
7093IFS=$as_save_IFS
7094
7095fi
7096fi
7097ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7098if test -n "$ac_ct_OTOOL64"; then
7099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7100$as_echo "$ac_ct_OTOOL64" >&6; }
7101else
7102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7103$as_echo "no" >&6; }
7104fi
7105
7106  if test "x$ac_ct_OTOOL64" = x; then
7107    OTOOL64=":"
7108  else
7109    case $cross_compiling:$ac_tool_warned in
7110yes:)
7111{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7112$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7113ac_tool_warned=yes ;;
7114esac
7115    OTOOL64=$ac_ct_OTOOL64
7116  fi
7117else
7118  OTOOL64="$ac_cv_prog_OTOOL64"
7119fi
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7148$as_echo_n "checking for -single_module linker flag... " >&6; }
7149if ${lt_cv_apple_cc_single_mod+:} false; then :
7150  $as_echo_n "(cached) " >&6
7151else
7152  lt_cv_apple_cc_single_mod=no
7153      if test -z "${LT_MULTI_MODULE}"; then
7154	# By default we will add the -single_module flag. You can override
7155	# by either setting the environment variable LT_MULTI_MODULE
7156	# non-empty at configure time, or by adding -multi_module to the
7157	# link flags.
7158	rm -rf libconftest.dylib*
7159	echo "int foo(void){return 1;}" > conftest.c
7160	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7161-dynamiclib -Wl,-single_module conftest.c" >&5
7162	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7163	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7164        _lt_result=$?
7165	# If there is a non-empty error log, and "single_module"
7166	# appears in it, assume the flag caused a linker warning
7167        if test -s conftest.err && $GREP single_module conftest.err; then
7168	  cat conftest.err >&5
7169	# Otherwise, if the output was created with a 0 exit code from
7170	# the compiler, it worked.
7171	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7172	  lt_cv_apple_cc_single_mod=yes
7173	else
7174	  cat conftest.err >&5
7175	fi
7176	rm -rf libconftest.dylib*
7177	rm -f conftest.*
7178      fi
7179fi
7180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7181$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7182
7183    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7184$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7185if ${lt_cv_ld_exported_symbols_list+:} false; then :
7186  $as_echo_n "(cached) " >&6
7187else
7188  lt_cv_ld_exported_symbols_list=no
7189      save_LDFLAGS=$LDFLAGS
7190      echo "_main" > conftest.sym
7191      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7192      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7193/* end confdefs.h.  */
7194
7195int
7196main ()
7197{
7198
7199  ;
7200  return 0;
7201}
7202_ACEOF
7203if ac_fn_c_try_link "$LINENO"; then :
7204  lt_cv_ld_exported_symbols_list=yes
7205else
7206  lt_cv_ld_exported_symbols_list=no
7207fi
7208rm -f core conftest.err conftest.$ac_objext \
7209    conftest$ac_exeext conftest.$ac_ext
7210	LDFLAGS="$save_LDFLAGS"
7211
7212fi
7213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7214$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7215
7216    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7217$as_echo_n "checking for -force_load linker flag... " >&6; }
7218if ${lt_cv_ld_force_load+:} false; then :
7219  $as_echo_n "(cached) " >&6
7220else
7221  lt_cv_ld_force_load=no
7222      cat > conftest.c << _LT_EOF
7223int forced_loaded() { return 2;}
7224_LT_EOF
7225      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7226      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7227      echo "$AR cru libconftest.a conftest.o" >&5
7228      $AR cru libconftest.a conftest.o 2>&5
7229      echo "$RANLIB libconftest.a" >&5
7230      $RANLIB libconftest.a 2>&5
7231      cat > conftest.c << _LT_EOF
7232int main() { return 0;}
7233_LT_EOF
7234      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7235      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7236      _lt_result=$?
7237      if test -s conftest.err && $GREP force_load conftest.err; then
7238	cat conftest.err >&5
7239      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7240	lt_cv_ld_force_load=yes
7241      else
7242	cat conftest.err >&5
7243      fi
7244        rm -f conftest.err libconftest.a conftest conftest.c
7245        rm -rf conftest.dSYM
7246
7247fi
7248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7249$as_echo "$lt_cv_ld_force_load" >&6; }
7250    case $host_os in
7251    rhapsody* | darwin1.[012])
7252      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7253    darwin1.*)
7254      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7255    darwin*) # darwin 5.x on
7256      # if running on 10.5 or later, the deployment target defaults
7257      # to the OS version, if on x86, and 10.4, the deployment
7258      # target defaults to 10.4. Don't you love it?
7259      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7260	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7261	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7262	10.[012]*)
7263	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7264	10.*)
7265	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7266      esac
7267    ;;
7268  esac
7269    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7270      _lt_dar_single_mod='$single_module'
7271    fi
7272    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7273      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7274    else
7275      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7276    fi
7277    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7278      _lt_dsymutil='~$DSYMUTIL $lib || :'
7279    else
7280      _lt_dsymutil=
7281    fi
7282    ;;
7283  esac
7284
7285ac_ext=c
7286ac_cpp='$CPP $CPPFLAGS'
7287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7289ac_compiler_gnu=$ac_cv_c_compiler_gnu
7290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7291$as_echo_n "checking how to run the C preprocessor... " >&6; }
7292# On Suns, sometimes $CPP names a directory.
7293if test -n "$CPP" && test -d "$CPP"; then
7294  CPP=
7295fi
7296if test -z "$CPP"; then
7297  if ${ac_cv_prog_CPP+:} false; then :
7298  $as_echo_n "(cached) " >&6
7299else
7300      # Double quotes because CPP needs to be expanded
7301    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7302    do
7303      ac_preproc_ok=false
7304for ac_c_preproc_warn_flag in '' yes
7305do
7306  # Use a header file that comes with gcc, so configuring glibc
7307  # with a fresh cross-compiler works.
7308  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7309  # <limits.h> exists even on freestanding compilers.
7310  # On the NeXT, cc -E runs the code through the compiler's parser,
7311  # not just through cpp. "Syntax error" is here to catch this case.
7312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7313/* end confdefs.h.  */
7314#ifdef __STDC__
7315# include <limits.h>
7316#else
7317# include <assert.h>
7318#endif
7319		     Syntax error
7320_ACEOF
7321if ac_fn_c_try_cpp "$LINENO"; then :
7322
7323else
7324  # Broken: fails on valid input.
7325continue
7326fi
7327rm -f conftest.err conftest.i conftest.$ac_ext
7328
7329  # OK, works on sane cases.  Now check whether nonexistent headers
7330  # can be detected and how.
7331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7332/* end confdefs.h.  */
7333#include <ac_nonexistent.h>
7334_ACEOF
7335if ac_fn_c_try_cpp "$LINENO"; then :
7336  # Broken: success on invalid input.
7337continue
7338else
7339  # Passes both tests.
7340ac_preproc_ok=:
7341break
7342fi
7343rm -f conftest.err conftest.i conftest.$ac_ext
7344
7345done
7346# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7347rm -f conftest.i conftest.err conftest.$ac_ext
7348if $ac_preproc_ok; then :
7349  break
7350fi
7351
7352    done
7353    ac_cv_prog_CPP=$CPP
7354
7355fi
7356  CPP=$ac_cv_prog_CPP
7357else
7358  ac_cv_prog_CPP=$CPP
7359fi
7360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7361$as_echo "$CPP" >&6; }
7362ac_preproc_ok=false
7363for ac_c_preproc_warn_flag in '' yes
7364do
7365  # Use a header file that comes with gcc, so configuring glibc
7366  # with a fresh cross-compiler works.
7367  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7368  # <limits.h> exists even on freestanding compilers.
7369  # On the NeXT, cc -E runs the code through the compiler's parser,
7370  # not just through cpp. "Syntax error" is here to catch this case.
7371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7372/* end confdefs.h.  */
7373#ifdef __STDC__
7374# include <limits.h>
7375#else
7376# include <assert.h>
7377#endif
7378		     Syntax error
7379_ACEOF
7380if ac_fn_c_try_cpp "$LINENO"; then :
7381
7382else
7383  # Broken: fails on valid input.
7384continue
7385fi
7386rm -f conftest.err conftest.i conftest.$ac_ext
7387
7388  # OK, works on sane cases.  Now check whether nonexistent headers
7389  # can be detected and how.
7390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391/* end confdefs.h.  */
7392#include <ac_nonexistent.h>
7393_ACEOF
7394if ac_fn_c_try_cpp "$LINENO"; then :
7395  # Broken: success on invalid input.
7396continue
7397else
7398  # Passes both tests.
7399ac_preproc_ok=:
7400break
7401fi
7402rm -f conftest.err conftest.i conftest.$ac_ext
7403
7404done
7405# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7406rm -f conftest.i conftest.err conftest.$ac_ext
7407if $ac_preproc_ok; then :
7408
7409else
7410  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7411$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7412as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7413See \`config.log' for more details" "$LINENO" 5; }
7414fi
7415
7416ac_ext=c
7417ac_cpp='$CPP $CPPFLAGS'
7418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7420ac_compiler_gnu=$ac_cv_c_compiler_gnu
7421
7422
7423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7424$as_echo_n "checking for ANSI C header files... " >&6; }
7425if ${ac_cv_header_stdc+:} false; then :
7426  $as_echo_n "(cached) " >&6
7427else
7428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7429/* end confdefs.h.  */
7430#include <stdlib.h>
7431#include <stdarg.h>
7432#include <string.h>
7433#include <float.h>
7434
7435int
7436main ()
7437{
7438
7439  ;
7440  return 0;
7441}
7442_ACEOF
7443if ac_fn_c_try_compile "$LINENO"; then :
7444  ac_cv_header_stdc=yes
7445else
7446  ac_cv_header_stdc=no
7447fi
7448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7449
7450if test $ac_cv_header_stdc = yes; then
7451  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7453/* end confdefs.h.  */
7454#include <string.h>
7455
7456_ACEOF
7457if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7458  $EGREP "memchr" >/dev/null 2>&1; then :
7459
7460else
7461  ac_cv_header_stdc=no
7462fi
7463rm -f conftest*
7464
7465fi
7466
7467if test $ac_cv_header_stdc = yes; then
7468  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7470/* end confdefs.h.  */
7471#include <stdlib.h>
7472
7473_ACEOF
7474if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7475  $EGREP "free" >/dev/null 2>&1; then :
7476
7477else
7478  ac_cv_header_stdc=no
7479fi
7480rm -f conftest*
7481
7482fi
7483
7484if test $ac_cv_header_stdc = yes; then
7485  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7486  if test "$cross_compiling" = yes; then :
7487  :
7488else
7489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7490/* end confdefs.h.  */
7491#include <ctype.h>
7492#include <stdlib.h>
7493#if ((' ' & 0x0FF) == 0x020)
7494# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7495# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7496#else
7497# define ISLOWER(c) \
7498		   (('a' <= (c) && (c) <= 'i') \
7499		     || ('j' <= (c) && (c) <= 'r') \
7500		     || ('s' <= (c) && (c) <= 'z'))
7501# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7502#endif
7503
7504#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7505int
7506main ()
7507{
7508  int i;
7509  for (i = 0; i < 256; i++)
7510    if (XOR (islower (i), ISLOWER (i))
7511	|| toupper (i) != TOUPPER (i))
7512      return 2;
7513  return 0;
7514}
7515_ACEOF
7516if ac_fn_c_try_run "$LINENO"; then :
7517
7518else
7519  ac_cv_header_stdc=no
7520fi
7521rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7522  conftest.$ac_objext conftest.beam conftest.$ac_ext
7523fi
7524
7525fi
7526fi
7527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7528$as_echo "$ac_cv_header_stdc" >&6; }
7529if test $ac_cv_header_stdc = yes; then
7530
7531$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7532
7533fi
7534
7535# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7536for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7537		  inttypes.h stdint.h unistd.h
7538do :
7539  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7540ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7541"
7542if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7543  cat >>confdefs.h <<_ACEOF
7544#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7545_ACEOF
7546
7547fi
7548
7549done
7550
7551
7552for ac_header in dlfcn.h
7553do :
7554  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7555"
7556if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7557  cat >>confdefs.h <<_ACEOF
7558#define HAVE_DLFCN_H 1
7559_ACEOF
7560
7561fi
7562
7563done
7564
7565
7566
7567
7568
7569# Set options
7570
7571
7572
7573        enable_dlopen=no
7574
7575
7576  enable_win32_dll=no
7577
7578
7579            # Check whether --enable-shared was given.
7580if test "${enable_shared+set}" = set; then :
7581  enableval=$enable_shared; p=${PACKAGE-default}
7582    case $enableval in
7583    yes) enable_shared=yes ;;
7584    no) enable_shared=no ;;
7585    *)
7586      enable_shared=no
7587      # Look at the argument we got.  We use all the common list separators.
7588      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7589      for pkg in $enableval; do
7590	IFS="$lt_save_ifs"
7591	if test "X$pkg" = "X$p"; then
7592	  enable_shared=yes
7593	fi
7594      done
7595      IFS="$lt_save_ifs"
7596      ;;
7597    esac
7598else
7599  enable_shared=yes
7600fi
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610  # Check whether --enable-static was given.
7611if test "${enable_static+set}" = set; then :
7612  enableval=$enable_static; p=${PACKAGE-default}
7613    case $enableval in
7614    yes) enable_static=yes ;;
7615    no) enable_static=no ;;
7616    *)
7617     enable_static=no
7618      # Look at the argument we got.  We use all the common list separators.
7619      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7620      for pkg in $enableval; do
7621	IFS="$lt_save_ifs"
7622	if test "X$pkg" = "X$p"; then
7623	  enable_static=yes
7624	fi
7625      done
7626      IFS="$lt_save_ifs"
7627      ;;
7628    esac
7629else
7630  enable_static=yes
7631fi
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642# Check whether --with-pic was given.
7643if test "${with_pic+set}" = set; then :
7644  withval=$with_pic; lt_p=${PACKAGE-default}
7645    case $withval in
7646    yes|no) pic_mode=$withval ;;
7647    *)
7648      pic_mode=default
7649      # Look at the argument we got.  We use all the common list separators.
7650      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7651      for lt_pkg in $withval; do
7652	IFS="$lt_save_ifs"
7653	if test "X$lt_pkg" = "X$lt_p"; then
7654	  pic_mode=yes
7655	fi
7656      done
7657      IFS="$lt_save_ifs"
7658      ;;
7659    esac
7660else
7661  pic_mode=default
7662fi
7663
7664
7665test -z "$pic_mode" && pic_mode=default
7666
7667
7668
7669
7670
7671
7672
7673  # Check whether --enable-fast-install was given.
7674if test "${enable_fast_install+set}" = set; then :
7675  enableval=$enable_fast_install; p=${PACKAGE-default}
7676    case $enableval in
7677    yes) enable_fast_install=yes ;;
7678    no) enable_fast_install=no ;;
7679    *)
7680      enable_fast_install=no
7681      # Look at the argument we got.  We use all the common list separators.
7682      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7683      for pkg in $enableval; do
7684	IFS="$lt_save_ifs"
7685	if test "X$pkg" = "X$p"; then
7686	  enable_fast_install=yes
7687	fi
7688      done
7689      IFS="$lt_save_ifs"
7690      ;;
7691    esac
7692else
7693  enable_fast_install=yes
7694fi
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706# This can be used to rebuild libtool when needed
7707LIBTOOL_DEPS="$ltmain"
7708
7709# Always use our own libtool.
7710LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741test -z "$LN_S" && LN_S="ln -s"
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756if test -n "${ZSH_VERSION+set}" ; then
7757   setopt NO_GLOB_SUBST
7758fi
7759
7760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7761$as_echo_n "checking for objdir... " >&6; }
7762if ${lt_cv_objdir+:} false; then :
7763  $as_echo_n "(cached) " >&6
7764else
7765  rm -f .libs 2>/dev/null
7766mkdir .libs 2>/dev/null
7767if test -d .libs; then
7768  lt_cv_objdir=.libs
7769else
7770  # MS-DOS does not allow filenames that begin with a dot.
7771  lt_cv_objdir=_libs
7772fi
7773rmdir .libs 2>/dev/null
7774fi
7775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7776$as_echo "$lt_cv_objdir" >&6; }
7777objdir=$lt_cv_objdir
7778
7779
7780
7781
7782
7783cat >>confdefs.h <<_ACEOF
7784#define LT_OBJDIR "$lt_cv_objdir/"
7785_ACEOF
7786
7787
7788
7789
7790case $host_os in
7791aix3*)
7792  # AIX sometimes has problems with the GCC collect2 program.  For some
7793  # reason, if we set the COLLECT_NAMES environment variable, the problems
7794  # vanish in a puff of smoke.
7795  if test "X${COLLECT_NAMES+set}" != Xset; then
7796    COLLECT_NAMES=
7797    export COLLECT_NAMES
7798  fi
7799  ;;
7800esac
7801
7802# Global variables:
7803ofile=libtool
7804can_build_shared=yes
7805
7806# All known linkers require a `.a' archive for static linking (except MSVC,
7807# which needs '.lib').
7808libext=a
7809
7810with_gnu_ld="$lt_cv_prog_gnu_ld"
7811
7812old_CC="$CC"
7813old_CFLAGS="$CFLAGS"
7814
7815# Set sane defaults for various variables
7816test -z "$CC" && CC=cc
7817test -z "$LTCC" && LTCC=$CC
7818test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7819test -z "$LD" && LD=ld
7820test -z "$ac_objext" && ac_objext=o
7821
7822for cc_temp in $compiler""; do
7823  case $cc_temp in
7824    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7825    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7826    \-*) ;;
7827    *) break;;
7828  esac
7829done
7830cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7831
7832
7833# Only perform the check for file, if the check method requires it
7834test -z "$MAGIC_CMD" && MAGIC_CMD=file
7835case $deplibs_check_method in
7836file_magic*)
7837  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7838    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7839$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7840if ${lt_cv_path_MAGIC_CMD+:} false; then :
7841  $as_echo_n "(cached) " >&6
7842else
7843  case $MAGIC_CMD in
7844[\\/*] |  ?:[\\/]*)
7845  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7846  ;;
7847*)
7848  lt_save_MAGIC_CMD="$MAGIC_CMD"
7849  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7850  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7851  for ac_dir in $ac_dummy; do
7852    IFS="$lt_save_ifs"
7853    test -z "$ac_dir" && ac_dir=.
7854    if test -f $ac_dir/${ac_tool_prefix}file; then
7855      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7856      if test -n "$file_magic_test_file"; then
7857	case $deplibs_check_method in
7858	"file_magic "*)
7859	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7860	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7861	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7862	    $EGREP "$file_magic_regex" > /dev/null; then
7863	    :
7864	  else
7865	    cat <<_LT_EOF 1>&2
7866
7867*** Warning: the command libtool uses to detect shared libraries,
7868*** $file_magic_cmd, produces output that libtool cannot recognize.
7869*** The result is that libtool may fail to recognize shared libraries
7870*** as such.  This will affect the creation of libtool libraries that
7871*** depend on shared libraries, but programs linked with such libtool
7872*** libraries will work regardless of this problem.  Nevertheless, you
7873*** may want to report the problem to your system manager and/or to
7874*** bug-libtool@gnu.org
7875
7876_LT_EOF
7877	  fi ;;
7878	esac
7879      fi
7880      break
7881    fi
7882  done
7883  IFS="$lt_save_ifs"
7884  MAGIC_CMD="$lt_save_MAGIC_CMD"
7885  ;;
7886esac
7887fi
7888
7889MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7890if test -n "$MAGIC_CMD"; then
7891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7892$as_echo "$MAGIC_CMD" >&6; }
7893else
7894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7895$as_echo "no" >&6; }
7896fi
7897
7898
7899
7900
7901
7902if test -z "$lt_cv_path_MAGIC_CMD"; then
7903  if test -n "$ac_tool_prefix"; then
7904    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7905$as_echo_n "checking for file... " >&6; }
7906if ${lt_cv_path_MAGIC_CMD+:} false; then :
7907  $as_echo_n "(cached) " >&6
7908else
7909  case $MAGIC_CMD in
7910[\\/*] |  ?:[\\/]*)
7911  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7912  ;;
7913*)
7914  lt_save_MAGIC_CMD="$MAGIC_CMD"
7915  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7916  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7917  for ac_dir in $ac_dummy; do
7918    IFS="$lt_save_ifs"
7919    test -z "$ac_dir" && ac_dir=.
7920    if test -f $ac_dir/file; then
7921      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7922      if test -n "$file_magic_test_file"; then
7923	case $deplibs_check_method in
7924	"file_magic "*)
7925	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7926	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7927	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7928	    $EGREP "$file_magic_regex" > /dev/null; then
7929	    :
7930	  else
7931	    cat <<_LT_EOF 1>&2
7932
7933*** Warning: the command libtool uses to detect shared libraries,
7934*** $file_magic_cmd, produces output that libtool cannot recognize.
7935*** The result is that libtool may fail to recognize shared libraries
7936*** as such.  This will affect the creation of libtool libraries that
7937*** depend on shared libraries, but programs linked with such libtool
7938*** libraries will work regardless of this problem.  Nevertheless, you
7939*** may want to report the problem to your system manager and/or to
7940*** bug-libtool@gnu.org
7941
7942_LT_EOF
7943	  fi ;;
7944	esac
7945      fi
7946      break
7947    fi
7948  done
7949  IFS="$lt_save_ifs"
7950  MAGIC_CMD="$lt_save_MAGIC_CMD"
7951  ;;
7952esac
7953fi
7954
7955MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7956if test -n "$MAGIC_CMD"; then
7957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7958$as_echo "$MAGIC_CMD" >&6; }
7959else
7960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7961$as_echo "no" >&6; }
7962fi
7963
7964
7965  else
7966    MAGIC_CMD=:
7967  fi
7968fi
7969
7970  fi
7971  ;;
7972esac
7973
7974# Use C for the default configuration in the libtool script
7975
7976lt_save_CC="$CC"
7977ac_ext=c
7978ac_cpp='$CPP $CPPFLAGS'
7979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7981ac_compiler_gnu=$ac_cv_c_compiler_gnu
7982
7983
7984# Source file extension for C test sources.
7985ac_ext=c
7986
7987# Object file extension for compiled C test sources.
7988objext=o
7989objext=$objext
7990
7991# Code to be used in simple compile tests
7992lt_simple_compile_test_code="int some_variable = 0;"
7993
7994# Code to be used in simple link tests
7995lt_simple_link_test_code='int main(){return(0);}'
7996
7997
7998
7999
8000
8001
8002
8003# If no C compiler was specified, use CC.
8004LTCC=${LTCC-"$CC"}
8005
8006# If no C compiler flags were specified, use CFLAGS.
8007LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8008
8009# Allow CC to be a program name with arguments.
8010compiler=$CC
8011
8012# Save the default compiler, since it gets overwritten when the other
8013# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8014compiler_DEFAULT=$CC
8015
8016# save warnings/boilerplate of simple test code
8017ac_outfile=conftest.$ac_objext
8018echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8019eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8020_lt_compiler_boilerplate=`cat conftest.err`
8021$RM conftest*
8022
8023ac_outfile=conftest.$ac_objext
8024echo "$lt_simple_link_test_code" >conftest.$ac_ext
8025eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8026_lt_linker_boilerplate=`cat conftest.err`
8027$RM -r conftest*
8028
8029
8030if test -n "$compiler"; then
8031
8032lt_prog_compiler_no_builtin_flag=
8033
8034if test "$GCC" = yes; then
8035  case $cc_basename in
8036  nvcc*)
8037    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8038  *)
8039    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8040  esac
8041
8042  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8043$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8044if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8045  $as_echo_n "(cached) " >&6
8046else
8047  lt_cv_prog_compiler_rtti_exceptions=no
8048   ac_outfile=conftest.$ac_objext
8049   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8050   lt_compiler_flag="-fno-rtti -fno-exceptions"
8051   # Insert the option either (1) after the last *FLAGS variable, or
8052   # (2) before a word containing "conftest.", or (3) at the end.
8053   # Note that $ac_compile itself does not contain backslashes and begins
8054   # with a dollar sign (not a hyphen), so the echo should work correctly.
8055   # The option is referenced via a variable to avoid confusing sed.
8056   lt_compile=`echo "$ac_compile" | $SED \
8057   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8058   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8059   -e 's:$: $lt_compiler_flag:'`
8060   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8061   (eval "$lt_compile" 2>conftest.err)
8062   ac_status=$?
8063   cat conftest.err >&5
8064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065   if (exit $ac_status) && test -s "$ac_outfile"; then
8066     # The compiler can only warn and ignore the option if not recognized
8067     # So say no if there are warnings other than the usual output.
8068     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8069     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8070     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8071       lt_cv_prog_compiler_rtti_exceptions=yes
8072     fi
8073   fi
8074   $RM conftest*
8075
8076fi
8077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8078$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8079
8080if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8081    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8082else
8083    :
8084fi
8085
8086fi
8087
8088
8089
8090
8091
8092
8093  lt_prog_compiler_wl=
8094lt_prog_compiler_pic=
8095lt_prog_compiler_static=
8096
8097
8098  if test "$GCC" = yes; then
8099    lt_prog_compiler_wl='-Wl,'
8100    lt_prog_compiler_static='-static'
8101
8102    case $host_os in
8103      aix*)
8104      # All AIX code is PIC.
8105      if test "$host_cpu" = ia64; then
8106	# AIX 5 now supports IA64 processor
8107	lt_prog_compiler_static='-Bstatic'
8108      fi
8109      ;;
8110
8111    amigaos*)
8112      case $host_cpu in
8113      powerpc)
8114            # see comment about AmigaOS4 .so support
8115            lt_prog_compiler_pic='-fPIC'
8116        ;;
8117      m68k)
8118            # FIXME: we need at least 68020 code to build shared libraries, but
8119            # adding the `-m68020' flag to GCC prevents building anything better,
8120            # like `-m68040'.
8121            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8122        ;;
8123      esac
8124      ;;
8125
8126    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8127      # PIC is the default for these OSes.
8128      ;;
8129
8130    mingw* | cygwin* | pw32* | os2* | cegcc*)
8131      # This hack is so that the source file can tell whether it is being
8132      # built for inclusion in a dll (and should export symbols for example).
8133      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8134      # (--disable-auto-import) libraries
8135      lt_prog_compiler_pic='-DDLL_EXPORT'
8136      ;;
8137
8138    darwin* | rhapsody*)
8139      # PIC is the default on this platform
8140      # Common symbols not allowed in MH_DYLIB files
8141      lt_prog_compiler_pic='-fno-common'
8142      ;;
8143
8144    haiku*)
8145      # PIC is the default for Haiku.
8146      # The "-static" flag exists, but is broken.
8147      lt_prog_compiler_static=
8148      ;;
8149
8150    hpux*)
8151      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8152      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8153      # sets the default TLS model and affects inlining.
8154      case $host_cpu in
8155      hppa*64*)
8156	# +Z the default
8157	;;
8158      *)
8159	lt_prog_compiler_pic='-fPIC'
8160	;;
8161      esac
8162      ;;
8163
8164    interix[3-9]*)
8165      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8166      # Instead, we relocate shared libraries at runtime.
8167      ;;
8168
8169    msdosdjgpp*)
8170      # Just because we use GCC doesn't mean we suddenly get shared libraries
8171      # on systems that don't support them.
8172      lt_prog_compiler_can_build_shared=no
8173      enable_shared=no
8174      ;;
8175
8176    *nto* | *qnx*)
8177      # QNX uses GNU C++, but need to define -shared option too, otherwise
8178      # it will coredump.
8179      lt_prog_compiler_pic='-fPIC -shared'
8180      ;;
8181
8182    sysv4*MP*)
8183      if test -d /usr/nec; then
8184	lt_prog_compiler_pic=-Kconform_pic
8185      fi
8186      ;;
8187
8188    *)
8189      lt_prog_compiler_pic='-fPIC'
8190      ;;
8191    esac
8192
8193    case $cc_basename in
8194    nvcc*) # Cuda Compiler Driver 2.2
8195      lt_prog_compiler_wl='-Xlinker '
8196      if test -n "$lt_prog_compiler_pic"; then
8197        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8198      fi
8199      ;;
8200    esac
8201  else
8202    # PORTME Check for flag to pass linker flags through the system compiler.
8203    case $host_os in
8204    aix*)
8205      lt_prog_compiler_wl='-Wl,'
8206      if test "$host_cpu" = ia64; then
8207	# AIX 5 now supports IA64 processor
8208	lt_prog_compiler_static='-Bstatic'
8209      else
8210	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8211      fi
8212      ;;
8213
8214    mingw* | cygwin* | pw32* | os2* | cegcc*)
8215      # This hack is so that the source file can tell whether it is being
8216      # built for inclusion in a dll (and should export symbols for example).
8217      lt_prog_compiler_pic='-DDLL_EXPORT'
8218      ;;
8219
8220    hpux9* | hpux10* | hpux11*)
8221      lt_prog_compiler_wl='-Wl,'
8222      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8223      # not for PA HP-UX.
8224      case $host_cpu in
8225      hppa*64*|ia64*)
8226	# +Z the default
8227	;;
8228      *)
8229	lt_prog_compiler_pic='+Z'
8230	;;
8231      esac
8232      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8233      lt_prog_compiler_static='${wl}-a ${wl}archive'
8234      ;;
8235
8236    irix5* | irix6* | nonstopux*)
8237      lt_prog_compiler_wl='-Wl,'
8238      # PIC (with -KPIC) is the default.
8239      lt_prog_compiler_static='-non_shared'
8240      ;;
8241
8242    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8243      case $cc_basename in
8244      # old Intel for x86_64 which still supported -KPIC.
8245      ecc*)
8246	lt_prog_compiler_wl='-Wl,'
8247	lt_prog_compiler_pic='-KPIC'
8248	lt_prog_compiler_static='-static'
8249        ;;
8250      # icc used to be incompatible with GCC.
8251      # ICC 10 doesn't accept -KPIC any more.
8252      icc* | ifort*)
8253	lt_prog_compiler_wl='-Wl,'
8254	lt_prog_compiler_pic='-fPIC'
8255	lt_prog_compiler_static='-static'
8256        ;;
8257      # Lahey Fortran 8.1.
8258      lf95*)
8259	lt_prog_compiler_wl='-Wl,'
8260	lt_prog_compiler_pic='--shared'
8261	lt_prog_compiler_static='--static'
8262	;;
8263      nagfor*)
8264	# NAG Fortran compiler
8265	lt_prog_compiler_wl='-Wl,-Wl,,'
8266	lt_prog_compiler_pic='-PIC'
8267	lt_prog_compiler_static='-Bstatic'
8268	;;
8269      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8270        # Portland Group compilers (*not* the Pentium gcc compiler,
8271	# which looks to be a dead project)
8272	lt_prog_compiler_wl='-Wl,'
8273	lt_prog_compiler_pic='-fpic'
8274	lt_prog_compiler_static='-Bstatic'
8275        ;;
8276      ccc*)
8277        lt_prog_compiler_wl='-Wl,'
8278        # All Alpha code is PIC.
8279        lt_prog_compiler_static='-non_shared'
8280        ;;
8281      xl* | bgxl* | bgf* | mpixl*)
8282	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8283	lt_prog_compiler_wl='-Wl,'
8284	lt_prog_compiler_pic='-qpic'
8285	lt_prog_compiler_static='-qstaticlink'
8286	;;
8287      *)
8288	case `$CC -V 2>&1 | sed 5q` in
8289	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8290	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8291	  lt_prog_compiler_pic='-KPIC'
8292	  lt_prog_compiler_static='-Bstatic'
8293	  lt_prog_compiler_wl=''
8294	  ;;
8295	*Sun\ F* | *Sun*Fortran*)
8296	  lt_prog_compiler_pic='-KPIC'
8297	  lt_prog_compiler_static='-Bstatic'
8298	  lt_prog_compiler_wl='-Qoption ld '
8299	  ;;
8300	*Sun\ C*)
8301	  # Sun C 5.9
8302	  lt_prog_compiler_pic='-KPIC'
8303	  lt_prog_compiler_static='-Bstatic'
8304	  lt_prog_compiler_wl='-Wl,'
8305	  ;;
8306        *Intel*\ [CF]*Compiler*)
8307	  lt_prog_compiler_wl='-Wl,'
8308	  lt_prog_compiler_pic='-fPIC'
8309	  lt_prog_compiler_static='-static'
8310	  ;;
8311	*Portland\ Group*)
8312	  lt_prog_compiler_wl='-Wl,'
8313	  lt_prog_compiler_pic='-fpic'
8314	  lt_prog_compiler_static='-Bstatic'
8315	  ;;
8316	esac
8317	;;
8318      esac
8319      ;;
8320
8321    newsos6)
8322      lt_prog_compiler_pic='-KPIC'
8323      lt_prog_compiler_static='-Bstatic'
8324      ;;
8325
8326    *nto* | *qnx*)
8327      # QNX uses GNU C++, but need to define -shared option too, otherwise
8328      # it will coredump.
8329      lt_prog_compiler_pic='-fPIC -shared'
8330      ;;
8331
8332    osf3* | osf4* | osf5*)
8333      lt_prog_compiler_wl='-Wl,'
8334      # All OSF/1 code is PIC.
8335      lt_prog_compiler_static='-non_shared'
8336      ;;
8337
8338    rdos*)
8339      lt_prog_compiler_static='-non_shared'
8340      ;;
8341
8342    solaris*)
8343      lt_prog_compiler_pic='-KPIC'
8344      lt_prog_compiler_static='-Bstatic'
8345      case $cc_basename in
8346      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8347	lt_prog_compiler_wl='-Qoption ld ';;
8348      *)
8349	lt_prog_compiler_wl='-Wl,';;
8350      esac
8351      ;;
8352
8353    sunos4*)
8354      lt_prog_compiler_wl='-Qoption ld '
8355      lt_prog_compiler_pic='-PIC'
8356      lt_prog_compiler_static='-Bstatic'
8357      ;;
8358
8359    sysv4 | sysv4.2uw2* | sysv4.3*)
8360      lt_prog_compiler_wl='-Wl,'
8361      lt_prog_compiler_pic='-KPIC'
8362      lt_prog_compiler_static='-Bstatic'
8363      ;;
8364
8365    sysv4*MP*)
8366      if test -d /usr/nec ;then
8367	lt_prog_compiler_pic='-Kconform_pic'
8368	lt_prog_compiler_static='-Bstatic'
8369      fi
8370      ;;
8371
8372    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8373      lt_prog_compiler_wl='-Wl,'
8374      lt_prog_compiler_pic='-KPIC'
8375      lt_prog_compiler_static='-Bstatic'
8376      ;;
8377
8378    unicos*)
8379      lt_prog_compiler_wl='-Wl,'
8380      lt_prog_compiler_can_build_shared=no
8381      ;;
8382
8383    uts4*)
8384      lt_prog_compiler_pic='-pic'
8385      lt_prog_compiler_static='-Bstatic'
8386      ;;
8387
8388    *)
8389      lt_prog_compiler_can_build_shared=no
8390      ;;
8391    esac
8392  fi
8393
8394case $host_os in
8395  # For platforms which do not support PIC, -DPIC is meaningless:
8396  *djgpp*)
8397    lt_prog_compiler_pic=
8398    ;;
8399  *)
8400    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8401    ;;
8402esac
8403
8404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8405$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8406if ${lt_cv_prog_compiler_pic+:} false; then :
8407  $as_echo_n "(cached) " >&6
8408else
8409  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8410fi
8411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8412$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8413lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8414
8415#
8416# Check to make sure the PIC flag actually works.
8417#
8418if test -n "$lt_prog_compiler_pic"; then
8419  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8420$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8421if ${lt_cv_prog_compiler_pic_works+:} false; then :
8422  $as_echo_n "(cached) " >&6
8423else
8424  lt_cv_prog_compiler_pic_works=no
8425   ac_outfile=conftest.$ac_objext
8426   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8427   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8428   # Insert the option either (1) after the last *FLAGS variable, or
8429   # (2) before a word containing "conftest.", or (3) at the end.
8430   # Note that $ac_compile itself does not contain backslashes and begins
8431   # with a dollar sign (not a hyphen), so the echo should work correctly.
8432   # The option is referenced via a variable to avoid confusing sed.
8433   lt_compile=`echo "$ac_compile" | $SED \
8434   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8435   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8436   -e 's:$: $lt_compiler_flag:'`
8437   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8438   (eval "$lt_compile" 2>conftest.err)
8439   ac_status=$?
8440   cat conftest.err >&5
8441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442   if (exit $ac_status) && test -s "$ac_outfile"; then
8443     # The compiler can only warn and ignore the option if not recognized
8444     # So say no if there are warnings other than the usual output.
8445     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8446     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8447     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8448       lt_cv_prog_compiler_pic_works=yes
8449     fi
8450   fi
8451   $RM conftest*
8452
8453fi
8454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8455$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8456
8457if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8458    case $lt_prog_compiler_pic in
8459     "" | " "*) ;;
8460     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8461     esac
8462else
8463    lt_prog_compiler_pic=
8464     lt_prog_compiler_can_build_shared=no
8465fi
8466
8467fi
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479#
8480# Check to make sure the static flag actually works.
8481#
8482wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8484$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8485if ${lt_cv_prog_compiler_static_works+:} false; then :
8486  $as_echo_n "(cached) " >&6
8487else
8488  lt_cv_prog_compiler_static_works=no
8489   save_LDFLAGS="$LDFLAGS"
8490   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8491   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8492   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8493     # The linker can only warn and ignore the option if not recognized
8494     # So say no if there are warnings
8495     if test -s conftest.err; then
8496       # Append any errors to the config.log.
8497       cat conftest.err 1>&5
8498       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8499       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8500       if diff conftest.exp conftest.er2 >/dev/null; then
8501         lt_cv_prog_compiler_static_works=yes
8502       fi
8503     else
8504       lt_cv_prog_compiler_static_works=yes
8505     fi
8506   fi
8507   $RM -r conftest*
8508   LDFLAGS="$save_LDFLAGS"
8509
8510fi
8511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8512$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8513
8514if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8515    :
8516else
8517    lt_prog_compiler_static=
8518fi
8519
8520
8521
8522
8523
8524
8525
8526  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8527$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8528if ${lt_cv_prog_compiler_c_o+:} false; then :
8529  $as_echo_n "(cached) " >&6
8530else
8531  lt_cv_prog_compiler_c_o=no
8532   $RM -r conftest 2>/dev/null
8533   mkdir conftest
8534   cd conftest
8535   mkdir out
8536   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8537
8538   lt_compiler_flag="-o out/conftest2.$ac_objext"
8539   # Insert the option either (1) after the last *FLAGS variable, or
8540   # (2) before a word containing "conftest.", or (3) at the end.
8541   # Note that $ac_compile itself does not contain backslashes and begins
8542   # with a dollar sign (not a hyphen), so the echo should work correctly.
8543   lt_compile=`echo "$ac_compile" | $SED \
8544   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8545   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8546   -e 's:$: $lt_compiler_flag:'`
8547   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8548   (eval "$lt_compile" 2>out/conftest.err)
8549   ac_status=$?
8550   cat out/conftest.err >&5
8551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8553   then
8554     # The compiler can only warn and ignore the option if not recognized
8555     # So say no if there are warnings
8556     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8557     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8558     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8559       lt_cv_prog_compiler_c_o=yes
8560     fi
8561   fi
8562   chmod u+w . 2>&5
8563   $RM conftest*
8564   # SGI C++ compiler will create directory out/ii_files/ for
8565   # template instantiation
8566   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8567   $RM out/* && rmdir out
8568   cd ..
8569   $RM -r conftest
8570   $RM conftest*
8571
8572fi
8573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8574$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8575
8576
8577
8578
8579
8580
8581  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8582$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8583if ${lt_cv_prog_compiler_c_o+:} false; then :
8584  $as_echo_n "(cached) " >&6
8585else
8586  lt_cv_prog_compiler_c_o=no
8587   $RM -r conftest 2>/dev/null
8588   mkdir conftest
8589   cd conftest
8590   mkdir out
8591   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8592
8593   lt_compiler_flag="-o out/conftest2.$ac_objext"
8594   # Insert the option either (1) after the last *FLAGS variable, or
8595   # (2) before a word containing "conftest.", or (3) at the end.
8596   # Note that $ac_compile itself does not contain backslashes and begins
8597   # with a dollar sign (not a hyphen), so the echo should work correctly.
8598   lt_compile=`echo "$ac_compile" | $SED \
8599   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8600   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8601   -e 's:$: $lt_compiler_flag:'`
8602   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8603   (eval "$lt_compile" 2>out/conftest.err)
8604   ac_status=$?
8605   cat out/conftest.err >&5
8606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8608   then
8609     # The compiler can only warn and ignore the option if not recognized
8610     # So say no if there are warnings
8611     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8612     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8613     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8614       lt_cv_prog_compiler_c_o=yes
8615     fi
8616   fi
8617   chmod u+w . 2>&5
8618   $RM conftest*
8619   # SGI C++ compiler will create directory out/ii_files/ for
8620   # template instantiation
8621   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8622   $RM out/* && rmdir out
8623   cd ..
8624   $RM -r conftest
8625   $RM conftest*
8626
8627fi
8628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8629$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8630
8631
8632
8633
8634hard_links="nottested"
8635if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8636  # do not overwrite the value of need_locks provided by the user
8637  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8638$as_echo_n "checking if we can lock with hard links... " >&6; }
8639  hard_links=yes
8640  $RM conftest*
8641  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8642  touch conftest.a
8643  ln conftest.a conftest.b 2>&5 || hard_links=no
8644  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8646$as_echo "$hard_links" >&6; }
8647  if test "$hard_links" = no; then
8648    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8649$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8650    need_locks=warn
8651  fi
8652else
8653  need_locks=no
8654fi
8655
8656
8657
8658
8659
8660
8661  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8662$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8663
8664  runpath_var=
8665  allow_undefined_flag=
8666  always_export_symbols=no
8667  archive_cmds=
8668  archive_expsym_cmds=
8669  compiler_needs_object=no
8670  enable_shared_with_static_runtimes=no
8671  export_dynamic_flag_spec=
8672  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8673  hardcode_automatic=no
8674  hardcode_direct=no
8675  hardcode_direct_absolute=no
8676  hardcode_libdir_flag_spec=
8677  hardcode_libdir_separator=
8678  hardcode_minus_L=no
8679  hardcode_shlibpath_var=unsupported
8680  inherit_rpath=no
8681  link_all_deplibs=unknown
8682  module_cmds=
8683  module_expsym_cmds=
8684  old_archive_from_new_cmds=
8685  old_archive_from_expsyms_cmds=
8686  thread_safe_flag_spec=
8687  whole_archive_flag_spec=
8688  # include_expsyms should be a list of space-separated symbols to be *always*
8689  # included in the symbol list
8690  include_expsyms=
8691  # exclude_expsyms can be an extended regexp of symbols to exclude
8692  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8693  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8694  # as well as any symbol that contains `d'.
8695  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8696  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8697  # platforms (ab)use it in PIC code, but their linkers get confused if
8698  # the symbol is explicitly referenced.  Since portable code cannot
8699  # rely on this symbol name, it's probably fine to never include it in
8700  # preloaded symbol tables.
8701  # Exclude shared library initialization/finalization symbols.
8702  extract_expsyms_cmds=
8703
8704  case $host_os in
8705  cygwin* | mingw* | pw32* | cegcc*)
8706    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8707    # When not using gcc, we currently assume that we are using
8708    # Microsoft Visual C++.
8709    if test "$GCC" != yes; then
8710      with_gnu_ld=no
8711    fi
8712    ;;
8713  interix*)
8714    # we just hope/assume this is gcc and not c89 (= MSVC++)
8715    with_gnu_ld=yes
8716    ;;
8717  openbsd*)
8718    with_gnu_ld=no
8719    ;;
8720  linux* | k*bsd*-gnu | gnu*)
8721    link_all_deplibs=no
8722    ;;
8723  esac
8724
8725  ld_shlibs=yes
8726
8727  # On some targets, GNU ld is compatible enough with the native linker
8728  # that we're better off using the native interface for both.
8729  lt_use_gnu_ld_interface=no
8730  if test "$with_gnu_ld" = yes; then
8731    case $host_os in
8732      aix*)
8733	# The AIX port of GNU ld has always aspired to compatibility
8734	# with the native linker.  However, as the warning in the GNU ld
8735	# block says, versions before 2.19.5* couldn't really create working
8736	# shared libraries, regardless of the interface used.
8737	case `$LD -v 2>&1` in
8738	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8739	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8740	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8741	  *)
8742	    lt_use_gnu_ld_interface=yes
8743	    ;;
8744	esac
8745	;;
8746      *)
8747	lt_use_gnu_ld_interface=yes
8748	;;
8749    esac
8750  fi
8751
8752  if test "$lt_use_gnu_ld_interface" = yes; then
8753    # If archive_cmds runs LD, not CC, wlarc should be empty
8754    wlarc='${wl}'
8755
8756    # Set some defaults for GNU ld with shared library support. These
8757    # are reset later if shared libraries are not supported. Putting them
8758    # here allows them to be overridden if necessary.
8759    runpath_var=LD_RUN_PATH
8760    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8761    export_dynamic_flag_spec='${wl}--export-dynamic'
8762    # ancient GNU ld didn't support --whole-archive et. al.
8763    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8764      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8765    else
8766      whole_archive_flag_spec=
8767    fi
8768    supports_anon_versioning=no
8769    case `$LD -v 2>&1` in
8770      *GNU\ gold*) supports_anon_versioning=yes ;;
8771      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8772      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8773      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8774      *\ 2.11.*) ;; # other 2.11 versions
8775      *) supports_anon_versioning=yes ;;
8776    esac
8777
8778    # See if GNU ld supports shared libraries.
8779    case $host_os in
8780    aix[3-9]*)
8781      # On AIX/PPC, the GNU linker is very broken
8782      if test "$host_cpu" != ia64; then
8783	ld_shlibs=no
8784	cat <<_LT_EOF 1>&2
8785
8786*** Warning: the GNU linker, at least up to release 2.19, is reported
8787*** to be unable to reliably create shared libraries on AIX.
8788*** Therefore, libtool is disabling shared libraries support.  If you
8789*** really care for shared libraries, you may want to install binutils
8790*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8791*** You will then need to restart the configuration process.
8792
8793_LT_EOF
8794      fi
8795      ;;
8796
8797    amigaos*)
8798      case $host_cpu in
8799      powerpc)
8800            # see comment about AmigaOS4 .so support
8801            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8802            archive_expsym_cmds=''
8803        ;;
8804      m68k)
8805            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)'
8806            hardcode_libdir_flag_spec='-L$libdir'
8807            hardcode_minus_L=yes
8808        ;;
8809      esac
8810      ;;
8811
8812    beos*)
8813      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8814	allow_undefined_flag=unsupported
8815	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8816	# support --undefined.  This deserves some investigation.  FIXME
8817	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8818      else
8819	ld_shlibs=no
8820      fi
8821      ;;
8822
8823    cygwin* | mingw* | pw32* | cegcc*)
8824      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8825      # as there is no search path for DLLs.
8826      hardcode_libdir_flag_spec='-L$libdir'
8827      export_dynamic_flag_spec='${wl}--export-all-symbols'
8828      allow_undefined_flag=unsupported
8829      always_export_symbols=no
8830      enable_shared_with_static_runtimes=yes
8831      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'
8832      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8833
8834      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8835        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8836	# If the export-symbols file already is a .def file (1st line
8837	# is EXPORTS), use it as is; otherwise, prepend...
8838	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8839	  cp $export_symbols $output_objdir/$soname.def;
8840	else
8841	  echo EXPORTS > $output_objdir/$soname.def;
8842	  cat $export_symbols >> $output_objdir/$soname.def;
8843	fi~
8844	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8845      else
8846	ld_shlibs=no
8847      fi
8848      ;;
8849
8850    haiku*)
8851      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8852      link_all_deplibs=yes
8853      ;;
8854
8855    interix[3-9]*)
8856      hardcode_direct=no
8857      hardcode_shlibpath_var=no
8858      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8859      export_dynamic_flag_spec='${wl}-E'
8860      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8861      # Instead, shared libraries are loaded at an image base (0x10000000 by
8862      # default) and relocated if they conflict, which is a slow very memory
8863      # consuming and fragmenting process.  To avoid this, we pick a random,
8864      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8865      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8866      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8867      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'
8868      ;;
8869
8870    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8871      tmp_diet=no
8872      if test "$host_os" = linux-dietlibc; then
8873	case $cc_basename in
8874	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8875	esac
8876      fi
8877      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8878	 && test "$tmp_diet" = no
8879      then
8880	tmp_addflag=' $pic_flag'
8881	tmp_sharedflag='-shared'
8882	case $cc_basename,$host_cpu in
8883        pgcc*)				# Portland Group C compiler
8884	  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'
8885	  tmp_addflag=' $pic_flag'
8886	  ;;
8887	pgf77* | pgf90* | pgf95* | pgfortran*)
8888					# Portland Group f77 and f90 compilers
8889	  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'
8890	  tmp_addflag=' $pic_flag -Mnomain' ;;
8891	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8892	  tmp_addflag=' -i_dynamic' ;;
8893	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8894	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8895	ifc* | ifort*)			# Intel Fortran compiler
8896	  tmp_addflag=' -nofor_main' ;;
8897	lf95*)				# Lahey Fortran 8.1
8898	  whole_archive_flag_spec=
8899	  tmp_sharedflag='--shared' ;;
8900	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8901	  tmp_sharedflag='-qmkshrobj'
8902	  tmp_addflag= ;;
8903	nvcc*)	# Cuda Compiler Driver 2.2
8904	  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'
8905	  compiler_needs_object=yes
8906	  ;;
8907	esac
8908	case `$CC -V 2>&1 | sed 5q` in
8909	*Sun\ C*)			# Sun C 5.9
8910	  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'
8911	  compiler_needs_object=yes
8912	  tmp_sharedflag='-G' ;;
8913	*Sun\ F*)			# Sun Fortran 8.3
8914	  tmp_sharedflag='-G' ;;
8915	esac
8916	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8917
8918        if test "x$supports_anon_versioning" = xyes; then
8919          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8920	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8921	    echo "local: *; };" >> $output_objdir/$libname.ver~
8922	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8923        fi
8924
8925	case $cc_basename in
8926	xlf* | bgf* | bgxlf* | mpixlf*)
8927	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8928	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8929	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8930	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8931	  if test "x$supports_anon_versioning" = xyes; then
8932	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8933	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8934	      echo "local: *; };" >> $output_objdir/$libname.ver~
8935	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8936	  fi
8937	  ;;
8938	esac
8939      else
8940        ld_shlibs=no
8941      fi
8942      ;;
8943
8944    netbsd* | netbsdelf*-gnu)
8945      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8946	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8947	wlarc=
8948      else
8949	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8950	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8951      fi
8952      ;;
8953
8954    solaris*)
8955      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8956	ld_shlibs=no
8957	cat <<_LT_EOF 1>&2
8958
8959*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8960*** create shared libraries on Solaris systems.  Therefore, libtool
8961*** is disabling shared libraries support.  We urge you to upgrade GNU
8962*** binutils to release 2.9.1 or newer.  Another option is to modify
8963*** your PATH or compiler configuration so that the native linker is
8964*** used, and then restart.
8965
8966_LT_EOF
8967      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8968	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8969	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8970      else
8971	ld_shlibs=no
8972      fi
8973      ;;
8974
8975    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8976      case `$LD -v 2>&1` in
8977        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8978	ld_shlibs=no
8979	cat <<_LT_EOF 1>&2
8980
8981*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8982*** reliably create shared libraries on SCO systems.  Therefore, libtool
8983*** is disabling shared libraries support.  We urge you to upgrade GNU
8984*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8985*** your PATH or compiler configuration so that the native linker is
8986*** used, and then restart.
8987
8988_LT_EOF
8989	;;
8990	*)
8991	  # For security reasons, it is highly recommended that you always
8992	  # use absolute paths for naming shared libraries, and exclude the
8993	  # DT_RUNPATH tag from executables and libraries.  But doing so
8994	  # requires that you compile everything twice, which is a pain.
8995	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8996	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8997	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8998	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8999	  else
9000	    ld_shlibs=no
9001	  fi
9002	;;
9003      esac
9004      ;;
9005
9006    sunos4*)
9007      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9008      wlarc=
9009      hardcode_direct=yes
9010      hardcode_shlibpath_var=no
9011      ;;
9012
9013    *)
9014      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9015	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9016	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9017      else
9018	ld_shlibs=no
9019      fi
9020      ;;
9021    esac
9022
9023    if test "$ld_shlibs" = no; then
9024      runpath_var=
9025      hardcode_libdir_flag_spec=
9026      export_dynamic_flag_spec=
9027      whole_archive_flag_spec=
9028    fi
9029  else
9030    # PORTME fill in a description of your system's linker (not GNU ld)
9031    case $host_os in
9032    aix3*)
9033      allow_undefined_flag=unsupported
9034      always_export_symbols=yes
9035      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'
9036      # Note: this linker hardcodes the directories in LIBPATH if there
9037      # are no directories specified by -L.
9038      hardcode_minus_L=yes
9039      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9040	# Neither direct hardcoding nor static linking is supported with a
9041	# broken collect2.
9042	hardcode_direct=unsupported
9043      fi
9044      ;;
9045
9046    aix[4-9]*)
9047      if test "$host_cpu" = ia64; then
9048	# On IA64, the linker does run time linking by default, so we don't
9049	# have to do anything special.
9050	aix_use_runtimelinking=no
9051	exp_sym_flag='-Bexport'
9052	no_entry_flag=""
9053      else
9054	# If we're using GNU nm, then we don't want the "-C" option.
9055	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9056	# Also, AIX nm treats weak defined symbols like other global
9057	# defined symbols, whereas GNU nm marks them as "W".
9058	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9059	  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'
9060	else
9061	  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'
9062	fi
9063	aix_use_runtimelinking=no
9064
9065	# Test if we are trying to use run time linking or normal
9066	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9067	# need to do runtime linking.
9068	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9069	  for ld_flag in $LDFLAGS; do
9070	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9071	    aix_use_runtimelinking=yes
9072	    break
9073	  fi
9074	  done
9075	  ;;
9076	esac
9077
9078	exp_sym_flag='-bexport'
9079	no_entry_flag='-bnoentry'
9080      fi
9081
9082      # When large executables or shared objects are built, AIX ld can
9083      # have problems creating the table of contents.  If linking a library
9084      # or program results in "error TOC overflow" add -mminimal-toc to
9085      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9086      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9087
9088      archive_cmds=''
9089      hardcode_direct=yes
9090      hardcode_direct_absolute=yes
9091      hardcode_libdir_separator=':'
9092      link_all_deplibs=yes
9093      file_list_spec='${wl}-f,'
9094
9095      if test "$GCC" = yes; then
9096	case $host_os in aix4.[012]|aix4.[012].*)
9097	# We only want to do this on AIX 4.2 and lower, the check
9098	# below for broken collect2 doesn't work under 4.3+
9099	  collect2name=`${CC} -print-prog-name=collect2`
9100	  if test -f "$collect2name" &&
9101	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9102	  then
9103	  # We have reworked collect2
9104	  :
9105	  else
9106	  # We have old collect2
9107	  hardcode_direct=unsupported
9108	  # It fails to find uninstalled libraries when the uninstalled
9109	  # path is not listed in the libpath.  Setting hardcode_minus_L
9110	  # to unsupported forces relinking
9111	  hardcode_minus_L=yes
9112	  hardcode_libdir_flag_spec='-L$libdir'
9113	  hardcode_libdir_separator=
9114	  fi
9115	  ;;
9116	esac
9117	shared_flag='-shared'
9118	if test "$aix_use_runtimelinking" = yes; then
9119	  shared_flag="$shared_flag "'${wl}-G'
9120	fi
9121	link_all_deplibs=no
9122      else
9123	# not using gcc
9124	if test "$host_cpu" = ia64; then
9125	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9126	# chokes on -Wl,-G. The following line is correct:
9127	  shared_flag='-G'
9128	else
9129	  if test "$aix_use_runtimelinking" = yes; then
9130	    shared_flag='${wl}-G'
9131	  else
9132	    shared_flag='${wl}-bM:SRE'
9133	  fi
9134	fi
9135      fi
9136
9137      export_dynamic_flag_spec='${wl}-bexpall'
9138      # It seems that -bexpall does not export symbols beginning with
9139      # underscore (_), so it is better to generate a list of symbols to export.
9140      always_export_symbols=yes
9141      if test "$aix_use_runtimelinking" = yes; then
9142	# Warning - without using the other runtime loading flags (-brtl),
9143	# -berok will link without error, but may produce a broken library.
9144	allow_undefined_flag='-berok'
9145        # Determine the default libpath from the value encoded in an
9146        # empty executable.
9147        if test "${lt_cv_aix_libpath+set}" = set; then
9148  aix_libpath=$lt_cv_aix_libpath
9149else
9150  if ${lt_cv_aix_libpath_+:} false; then :
9151  $as_echo_n "(cached) " >&6
9152else
9153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154/* end confdefs.h.  */
9155
9156int
9157main ()
9158{
9159
9160  ;
9161  return 0;
9162}
9163_ACEOF
9164if ac_fn_c_try_link "$LINENO"; then :
9165
9166  lt_aix_libpath_sed='
9167      /Import File Strings/,/^$/ {
9168	  /^0/ {
9169	      s/^0  *\([^ ]*\) *$/\1/
9170	      p
9171	  }
9172      }'
9173  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9174  # Check for a 64-bit object if we didn't find anything.
9175  if test -z "$lt_cv_aix_libpath_"; then
9176    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9177  fi
9178fi
9179rm -f core conftest.err conftest.$ac_objext \
9180    conftest$ac_exeext conftest.$ac_ext
9181  if test -z "$lt_cv_aix_libpath_"; then
9182    lt_cv_aix_libpath_="/usr/lib:/lib"
9183  fi
9184
9185fi
9186
9187  aix_libpath=$lt_cv_aix_libpath_
9188fi
9189
9190        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9191        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"
9192      else
9193	if test "$host_cpu" = ia64; then
9194	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9195	  allow_undefined_flag="-z nodefs"
9196	  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"
9197	else
9198	 # Determine the default libpath from the value encoded in an
9199	 # empty executable.
9200	 if test "${lt_cv_aix_libpath+set}" = set; then
9201  aix_libpath=$lt_cv_aix_libpath
9202else
9203  if ${lt_cv_aix_libpath_+:} false; then :
9204  $as_echo_n "(cached) " >&6
9205else
9206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207/* end confdefs.h.  */
9208
9209int
9210main ()
9211{
9212
9213  ;
9214  return 0;
9215}
9216_ACEOF
9217if ac_fn_c_try_link "$LINENO"; then :
9218
9219  lt_aix_libpath_sed='
9220      /Import File Strings/,/^$/ {
9221	  /^0/ {
9222	      s/^0  *\([^ ]*\) *$/\1/
9223	      p
9224	  }
9225      }'
9226  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9227  # Check for a 64-bit object if we didn't find anything.
9228  if test -z "$lt_cv_aix_libpath_"; then
9229    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9230  fi
9231fi
9232rm -f core conftest.err conftest.$ac_objext \
9233    conftest$ac_exeext conftest.$ac_ext
9234  if test -z "$lt_cv_aix_libpath_"; then
9235    lt_cv_aix_libpath_="/usr/lib:/lib"
9236  fi
9237
9238fi
9239
9240  aix_libpath=$lt_cv_aix_libpath_
9241fi
9242
9243	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9244	  # Warning - without using the other run time loading flags,
9245	  # -berok will link without error, but may produce a broken library.
9246	  no_undefined_flag=' ${wl}-bernotok'
9247	  allow_undefined_flag=' ${wl}-berok'
9248	  if test "$with_gnu_ld" = yes; then
9249	    # We only use this code for GNU lds that support --whole-archive.
9250	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9251	  else
9252	    # Exported symbols can be pulled into shared objects from archives
9253	    whole_archive_flag_spec='$convenience'
9254	  fi
9255	  archive_cmds_need_lc=yes
9256	  # This is similar to how AIX traditionally builds its shared libraries.
9257	  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'
9258	fi
9259      fi
9260      ;;
9261
9262    amigaos*)
9263      case $host_cpu in
9264      powerpc)
9265            # see comment about AmigaOS4 .so support
9266            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9267            archive_expsym_cmds=''
9268        ;;
9269      m68k)
9270            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)'
9271            hardcode_libdir_flag_spec='-L$libdir'
9272            hardcode_minus_L=yes
9273        ;;
9274      esac
9275      ;;
9276
9277    bsdi[45]*)
9278      export_dynamic_flag_spec=-rdynamic
9279      ;;
9280
9281    cygwin* | mingw* | pw32* | cegcc*)
9282      # When not using gcc, we currently assume that we are using
9283      # Microsoft Visual C++.
9284      # hardcode_libdir_flag_spec is actually meaningless, as there is
9285      # no search path for DLLs.
9286      case $cc_basename in
9287      cl*)
9288	# Native MSVC
9289	hardcode_libdir_flag_spec=' '
9290	allow_undefined_flag=unsupported
9291	always_export_symbols=yes
9292	file_list_spec='@'
9293	# Tell ltmain to make .lib files, not .a files.
9294	libext=lib
9295	# Tell ltmain to make .dll files, not .so files.
9296	shrext_cmds=".dll"
9297	# FIXME: Setting linknames here is a bad hack.
9298	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9299	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9300	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9301	  else
9302	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9303	  fi~
9304	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9305	  linknames='
9306	# The linker will not automatically build a static lib if we build a DLL.
9307	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9308	enable_shared_with_static_runtimes=yes
9309	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9310	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9311	# Don't use ranlib
9312	old_postinstall_cmds='chmod 644 $oldlib'
9313	postlink_cmds='lt_outputfile="@OUTPUT@"~
9314	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9315	  case $lt_outputfile in
9316	    *.exe|*.EXE) ;;
9317	    *)
9318	      lt_outputfile="$lt_outputfile.exe"
9319	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9320	      ;;
9321	  esac~
9322	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9323	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9324	    $RM "$lt_outputfile.manifest";
9325	  fi'
9326	;;
9327      *)
9328	# Assume MSVC wrapper
9329	hardcode_libdir_flag_spec=' '
9330	allow_undefined_flag=unsupported
9331	# Tell ltmain to make .lib files, not .a files.
9332	libext=lib
9333	# Tell ltmain to make .dll files, not .so files.
9334	shrext_cmds=".dll"
9335	# FIXME: Setting linknames here is a bad hack.
9336	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9337	# The linker will automatically build a .lib file if we build a DLL.
9338	old_archive_from_new_cmds='true'
9339	# FIXME: Should let the user specify the lib program.
9340	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9341	enable_shared_with_static_runtimes=yes
9342	;;
9343      esac
9344      ;;
9345
9346    darwin* | rhapsody*)
9347
9348
9349  archive_cmds_need_lc=no
9350  hardcode_direct=no
9351  hardcode_automatic=yes
9352  hardcode_shlibpath_var=unsupported
9353  if test "$lt_cv_ld_force_load" = "yes"; then
9354    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\"`'
9355
9356  else
9357    whole_archive_flag_spec=''
9358  fi
9359  link_all_deplibs=yes
9360  allow_undefined_flag="$_lt_dar_allow_undefined"
9361  case $cc_basename in
9362     ifort*) _lt_dar_can_shared=yes ;;
9363     *) _lt_dar_can_shared=$GCC ;;
9364  esac
9365  if test "$_lt_dar_can_shared" = "yes"; then
9366    output_verbose_link_cmd=func_echo_all
9367    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9368    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9369    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}"
9370    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}"
9371
9372  else
9373  ld_shlibs=no
9374  fi
9375
9376      ;;
9377
9378    dgux*)
9379      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9380      hardcode_libdir_flag_spec='-L$libdir'
9381      hardcode_shlibpath_var=no
9382      ;;
9383
9384    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9385    # support.  Future versions do this automatically, but an explicit c++rt0.o
9386    # does not break anything, and helps significantly (at the cost of a little
9387    # extra space).
9388    freebsd2.2*)
9389      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9390      hardcode_libdir_flag_spec='-R$libdir'
9391      hardcode_direct=yes
9392      hardcode_shlibpath_var=no
9393      ;;
9394
9395    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9396    freebsd2.*)
9397      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9398      hardcode_direct=yes
9399      hardcode_minus_L=yes
9400      hardcode_shlibpath_var=no
9401      ;;
9402
9403    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9404    freebsd* | dragonfly*)
9405      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9406      hardcode_libdir_flag_spec='-R$libdir'
9407      hardcode_direct=yes
9408      hardcode_shlibpath_var=no
9409      ;;
9410
9411    hpux9*)
9412      if test "$GCC" = yes; then
9413	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'
9414      else
9415	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'
9416      fi
9417      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9418      hardcode_libdir_separator=:
9419      hardcode_direct=yes
9420
9421      # hardcode_minus_L: Not really in the search PATH,
9422      # but as the default location of the library.
9423      hardcode_minus_L=yes
9424      export_dynamic_flag_spec='${wl}-E'
9425      ;;
9426
9427    hpux10*)
9428      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9429	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9430      else
9431	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9432      fi
9433      if test "$with_gnu_ld" = no; then
9434	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9435	hardcode_libdir_separator=:
9436	hardcode_direct=yes
9437	hardcode_direct_absolute=yes
9438	export_dynamic_flag_spec='${wl}-E'
9439	# hardcode_minus_L: Not really in the search PATH,
9440	# but as the default location of the library.
9441	hardcode_minus_L=yes
9442      fi
9443      ;;
9444
9445    hpux11*)
9446      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9447	case $host_cpu in
9448	hppa*64*)
9449	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9450	  ;;
9451	ia64*)
9452	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9453	  ;;
9454	*)
9455	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9456	  ;;
9457	esac
9458      else
9459	case $host_cpu in
9460	hppa*64*)
9461	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9462	  ;;
9463	ia64*)
9464	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9465	  ;;
9466	*)
9467
9468	  # Older versions of the 11.00 compiler do not understand -b yet
9469	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9470	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9471$as_echo_n "checking if $CC understands -b... " >&6; }
9472if ${lt_cv_prog_compiler__b+:} false; then :
9473  $as_echo_n "(cached) " >&6
9474else
9475  lt_cv_prog_compiler__b=no
9476   save_LDFLAGS="$LDFLAGS"
9477   LDFLAGS="$LDFLAGS -b"
9478   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9479   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9480     # The linker can only warn and ignore the option if not recognized
9481     # So say no if there are warnings
9482     if test -s conftest.err; then
9483       # Append any errors to the config.log.
9484       cat conftest.err 1>&5
9485       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9486       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9487       if diff conftest.exp conftest.er2 >/dev/null; then
9488         lt_cv_prog_compiler__b=yes
9489       fi
9490     else
9491       lt_cv_prog_compiler__b=yes
9492     fi
9493   fi
9494   $RM -r conftest*
9495   LDFLAGS="$save_LDFLAGS"
9496
9497fi
9498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9499$as_echo "$lt_cv_prog_compiler__b" >&6; }
9500
9501if test x"$lt_cv_prog_compiler__b" = xyes; then
9502    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9503else
9504    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9505fi
9506
9507	  ;;
9508	esac
9509      fi
9510      if test "$with_gnu_ld" = no; then
9511	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9512	hardcode_libdir_separator=:
9513
9514	case $host_cpu in
9515	hppa*64*|ia64*)
9516	  hardcode_direct=no
9517	  hardcode_shlibpath_var=no
9518	  ;;
9519	*)
9520	  hardcode_direct=yes
9521	  hardcode_direct_absolute=yes
9522	  export_dynamic_flag_spec='${wl}-E'
9523
9524	  # hardcode_minus_L: Not really in the search PATH,
9525	  # but as the default location of the library.
9526	  hardcode_minus_L=yes
9527	  ;;
9528	esac
9529      fi
9530      ;;
9531
9532    irix5* | irix6* | nonstopux*)
9533      if test "$GCC" = yes; then
9534	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'
9535	# Try to use the -exported_symbol ld option, if it does not
9536	# work, assume that -exports_file does not work either and
9537	# implicitly export all symbols.
9538	# This should be the same for all languages, so no per-tag cache variable.
9539	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9540$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9541if ${lt_cv_irix_exported_symbol+:} false; then :
9542  $as_echo_n "(cached) " >&6
9543else
9544  save_LDFLAGS="$LDFLAGS"
9545	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9546	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9547/* end confdefs.h.  */
9548int foo (void) { return 0; }
9549_ACEOF
9550if ac_fn_c_try_link "$LINENO"; then :
9551  lt_cv_irix_exported_symbol=yes
9552else
9553  lt_cv_irix_exported_symbol=no
9554fi
9555rm -f core conftest.err conftest.$ac_objext \
9556    conftest$ac_exeext conftest.$ac_ext
9557           LDFLAGS="$save_LDFLAGS"
9558fi
9559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9560$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9561	if test "$lt_cv_irix_exported_symbol" = yes; then
9562          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'
9563	fi
9564      else
9565	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'
9566	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'
9567      fi
9568      archive_cmds_need_lc='no'
9569      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9570      hardcode_libdir_separator=:
9571      inherit_rpath=yes
9572      link_all_deplibs=yes
9573      ;;
9574
9575    netbsd* | netbsdelf*-gnu)
9576      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9577	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9578      else
9579	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9580      fi
9581      hardcode_libdir_flag_spec='-R$libdir'
9582      hardcode_direct=yes
9583      hardcode_shlibpath_var=no
9584      ;;
9585
9586    newsos6)
9587      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9588      hardcode_direct=yes
9589      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9590      hardcode_libdir_separator=:
9591      hardcode_shlibpath_var=no
9592      ;;
9593
9594    *nto* | *qnx*)
9595      ;;
9596
9597    openbsd*)
9598      if test -f /usr/libexec/ld.so; then
9599	hardcode_direct=yes
9600	hardcode_shlibpath_var=no
9601	hardcode_direct_absolute=yes
9602	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9603	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9604	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9605	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9606	  export_dynamic_flag_spec='${wl}-E'
9607	else
9608	  case $host_os in
9609	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9610	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9611	     hardcode_libdir_flag_spec='-R$libdir'
9612	     ;;
9613	   *)
9614	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9615	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9616	     ;;
9617	  esac
9618	fi
9619      else
9620	ld_shlibs=no
9621      fi
9622      ;;
9623
9624    os2*)
9625      hardcode_libdir_flag_spec='-L$libdir'
9626      hardcode_minus_L=yes
9627      allow_undefined_flag=unsupported
9628      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'
9629      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9630      ;;
9631
9632    osf3*)
9633      if test "$GCC" = yes; then
9634	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9635	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'
9636      else
9637	allow_undefined_flag=' -expect_unresolved \*'
9638	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'
9639      fi
9640      archive_cmds_need_lc='no'
9641      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9642      hardcode_libdir_separator=:
9643      ;;
9644
9645    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9646      if test "$GCC" = yes; then
9647	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9648	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'
9649	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9650      else
9651	allow_undefined_flag=' -expect_unresolved \*'
9652	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'
9653	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~
9654	$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'
9655
9656	# Both c and cxx compiler support -rpath directly
9657	hardcode_libdir_flag_spec='-rpath $libdir'
9658      fi
9659      archive_cmds_need_lc='no'
9660      hardcode_libdir_separator=:
9661      ;;
9662
9663    solaris*)
9664      no_undefined_flag=' -z defs'
9665      if test "$GCC" = yes; then
9666	wlarc='${wl}'
9667	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9668	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9669	  $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'
9670      else
9671	case `$CC -V 2>&1` in
9672	*"Compilers 5.0"*)
9673	  wlarc=''
9674	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9675	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9676	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9677	  ;;
9678	*)
9679	  wlarc='${wl}'
9680	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9681	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9682	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9683	  ;;
9684	esac
9685      fi
9686      hardcode_libdir_flag_spec='-R$libdir'
9687      hardcode_shlibpath_var=no
9688      case $host_os in
9689      solaris2.[0-5] | solaris2.[0-5].*) ;;
9690      *)
9691	# The compiler driver will combine and reorder linker options,
9692	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9693	# but is careful enough not to reorder.
9694	# Supported since Solaris 2.6 (maybe 2.5.1?)
9695	if test "$GCC" = yes; then
9696	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9697	else
9698	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9699	fi
9700	;;
9701      esac
9702      link_all_deplibs=yes
9703      ;;
9704
9705    sunos4*)
9706      if test "x$host_vendor" = xsequent; then
9707	# Use $CC to link under sequent, because it throws in some extra .o
9708	# files that make .init and .fini sections work.
9709	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9710      else
9711	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9712      fi
9713      hardcode_libdir_flag_spec='-L$libdir'
9714      hardcode_direct=yes
9715      hardcode_minus_L=yes
9716      hardcode_shlibpath_var=no
9717      ;;
9718
9719    sysv4)
9720      case $host_vendor in
9721	sni)
9722	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9723	  hardcode_direct=yes # is this really true???
9724	;;
9725	siemens)
9726	  ## LD is ld it makes a PLAMLIB
9727	  ## CC just makes a GrossModule.
9728	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9729	  reload_cmds='$CC -r -o $output$reload_objs'
9730	  hardcode_direct=no
9731        ;;
9732	motorola)
9733	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9734	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9735	;;
9736      esac
9737      runpath_var='LD_RUN_PATH'
9738      hardcode_shlibpath_var=no
9739      ;;
9740
9741    sysv4.3*)
9742      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9743      hardcode_shlibpath_var=no
9744      export_dynamic_flag_spec='-Bexport'
9745      ;;
9746
9747    sysv4*MP*)
9748      if test -d /usr/nec; then
9749	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9750	hardcode_shlibpath_var=no
9751	runpath_var=LD_RUN_PATH
9752	hardcode_runpath_var=yes
9753	ld_shlibs=yes
9754      fi
9755      ;;
9756
9757    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9758      no_undefined_flag='${wl}-z,text'
9759      archive_cmds_need_lc=no
9760      hardcode_shlibpath_var=no
9761      runpath_var='LD_RUN_PATH'
9762
9763      if test "$GCC" = yes; then
9764	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9765	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9766      else
9767	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9768	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9769      fi
9770      ;;
9771
9772    sysv5* | sco3.2v5* | sco5v6*)
9773      # Note: We can NOT use -z defs as we might desire, because we do not
9774      # link with -lc, and that would cause any symbols used from libc to
9775      # always be unresolved, which means just about no library would
9776      # ever link correctly.  If we're not using GNU ld we use -z text
9777      # though, which does catch some bad symbols but isn't as heavy-handed
9778      # as -z defs.
9779      no_undefined_flag='${wl}-z,text'
9780      allow_undefined_flag='${wl}-z,nodefs'
9781      archive_cmds_need_lc=no
9782      hardcode_shlibpath_var=no
9783      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9784      hardcode_libdir_separator=':'
9785      link_all_deplibs=yes
9786      export_dynamic_flag_spec='${wl}-Bexport'
9787      runpath_var='LD_RUN_PATH'
9788
9789      if test "$GCC" = yes; then
9790	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9791	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9792      else
9793	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9794	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9795      fi
9796      ;;
9797
9798    uts4*)
9799      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9800      hardcode_libdir_flag_spec='-L$libdir'
9801      hardcode_shlibpath_var=no
9802      ;;
9803
9804    *)
9805      ld_shlibs=no
9806      ;;
9807    esac
9808
9809    if test x$host_vendor = xsni; then
9810      case $host in
9811      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9812	export_dynamic_flag_spec='${wl}-Blargedynsym'
9813	;;
9814      esac
9815    fi
9816  fi
9817
9818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9819$as_echo "$ld_shlibs" >&6; }
9820test "$ld_shlibs" = no && can_build_shared=no
9821
9822with_gnu_ld=$with_gnu_ld
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838#
9839# Do we need to explicitly link libc?
9840#
9841case "x$archive_cmds_need_lc" in
9842x|xyes)
9843  # Assume -lc should be added
9844  archive_cmds_need_lc=yes
9845
9846  if test "$enable_shared" = yes && test "$GCC" = yes; then
9847    case $archive_cmds in
9848    *'~'*)
9849      # FIXME: we may have to deal with multi-command sequences.
9850      ;;
9851    '$CC '*)
9852      # Test whether the compiler implicitly links with -lc since on some
9853      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9854      # to ld, don't add -lc before -lgcc.
9855      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9856$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9857if ${lt_cv_archive_cmds_need_lc+:} false; then :
9858  $as_echo_n "(cached) " >&6
9859else
9860  $RM conftest*
9861	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9862
9863	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9864  (eval $ac_compile) 2>&5
9865  ac_status=$?
9866  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9867  test $ac_status = 0; } 2>conftest.err; then
9868	  soname=conftest
9869	  lib=conftest
9870	  libobjs=conftest.$ac_objext
9871	  deplibs=
9872	  wl=$lt_prog_compiler_wl
9873	  pic_flag=$lt_prog_compiler_pic
9874	  compiler_flags=-v
9875	  linker_flags=-v
9876	  verstring=
9877	  output_objdir=.
9878	  libname=conftest
9879	  lt_save_allow_undefined_flag=$allow_undefined_flag
9880	  allow_undefined_flag=
9881	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9882  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9883  ac_status=$?
9884  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9885  test $ac_status = 0; }
9886	  then
9887	    lt_cv_archive_cmds_need_lc=no
9888	  else
9889	    lt_cv_archive_cmds_need_lc=yes
9890	  fi
9891	  allow_undefined_flag=$lt_save_allow_undefined_flag
9892	else
9893	  cat conftest.err 1>&5
9894	fi
9895	$RM conftest*
9896
9897fi
9898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9899$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9900      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9901      ;;
9902    esac
9903  fi
9904  ;;
9905esac
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
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10059$as_echo_n "checking dynamic linker characteristics... " >&6; }
10060
10061if test "$GCC" = yes; then
10062  case $host_os in
10063    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10064    *) lt_awk_arg="/^libraries:/" ;;
10065  esac
10066  case $host_os in
10067    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10068    *) lt_sed_strip_eq="s,=/,/,g" ;;
10069  esac
10070  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10071  case $lt_search_path_spec in
10072  *\;*)
10073    # if the path contains ";" then we assume it to be the separator
10074    # otherwise default to the standard path separator (i.e. ":") - it is
10075    # assumed that no part of a normal pathname contains ";" but that should
10076    # okay in the real world where ";" in dirpaths is itself problematic.
10077    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10078    ;;
10079  *)
10080    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10081    ;;
10082  esac
10083  # Ok, now we have the path, separated by spaces, we can step through it
10084  # and add multilib dir if necessary.
10085  lt_tmp_lt_search_path_spec=
10086  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10087  for lt_sys_path in $lt_search_path_spec; do
10088    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10089      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10090    else
10091      test -d "$lt_sys_path" && \
10092	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10093    fi
10094  done
10095  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10096BEGIN {RS=" "; FS="/|\n";} {
10097  lt_foo="";
10098  lt_count=0;
10099  for (lt_i = NF; lt_i > 0; lt_i--) {
10100    if ($lt_i != "" && $lt_i != ".") {
10101      if ($lt_i == "..") {
10102        lt_count++;
10103      } else {
10104        if (lt_count == 0) {
10105          lt_foo="/" $lt_i lt_foo;
10106        } else {
10107          lt_count--;
10108        }
10109      }
10110    }
10111  }
10112  if (lt_foo != "") { lt_freq[lt_foo]++; }
10113  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10114}'`
10115  # AWK program above erroneously prepends '/' to C:/dos/paths
10116  # for these hosts.
10117  case $host_os in
10118    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10119      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10120  esac
10121  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10122else
10123  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10124fi
10125library_names_spec=
10126libname_spec='lib$name'
10127soname_spec=
10128shrext_cmds=".so"
10129postinstall_cmds=
10130postuninstall_cmds=
10131finish_cmds=
10132finish_eval=
10133shlibpath_var=
10134shlibpath_overrides_runpath=unknown
10135version_type=none
10136dynamic_linker="$host_os ld.so"
10137sys_lib_dlsearch_path_spec="/lib /usr/lib"
10138need_lib_prefix=unknown
10139hardcode_into_libs=no
10140
10141# when you set need_version to no, make sure it does not cause -set_version
10142# flags to be left without arguments
10143need_version=unknown
10144
10145case $host_os in
10146aix3*)
10147  version_type=linux # correct to gnu/linux during the next big refactor
10148  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10149  shlibpath_var=LIBPATH
10150
10151  # AIX 3 has no versioning support, so we append a major version to the name.
10152  soname_spec='${libname}${release}${shared_ext}$major'
10153  ;;
10154
10155aix[4-9]*)
10156  version_type=linux # correct to gnu/linux during the next big refactor
10157  need_lib_prefix=no
10158  need_version=no
10159  hardcode_into_libs=yes
10160  if test "$host_cpu" = ia64; then
10161    # AIX 5 supports IA64
10162    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10163    shlibpath_var=LD_LIBRARY_PATH
10164  else
10165    # With GCC up to 2.95.x, collect2 would create an import file
10166    # for dependence libraries.  The import file would start with
10167    # the line `#! .'.  This would cause the generated library to
10168    # depend on `.', always an invalid library.  This was fixed in
10169    # development snapshots of GCC prior to 3.0.
10170    case $host_os in
10171      aix4 | aix4.[01] | aix4.[01].*)
10172      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10173	   echo ' yes '
10174	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10175	:
10176      else
10177	can_build_shared=no
10178      fi
10179      ;;
10180    esac
10181    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10182    # soname into executable. Probably we can add versioning support to
10183    # collect2, so additional links can be useful in future.
10184    if test "$aix_use_runtimelinking" = yes; then
10185      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10186      # instead of lib<name>.a to let people know that these are not
10187      # typical AIX shared libraries.
10188      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10189    else
10190      # We preserve .a as extension for shared libraries through AIX4.2
10191      # and later when we are not doing run time linking.
10192      library_names_spec='${libname}${release}.a $libname.a'
10193      soname_spec='${libname}${release}${shared_ext}$major'
10194    fi
10195    shlibpath_var=LIBPATH
10196  fi
10197  ;;
10198
10199amigaos*)
10200  case $host_cpu in
10201  powerpc)
10202    # Since July 2007 AmigaOS4 officially supports .so libraries.
10203    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10204    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10205    ;;
10206  m68k)
10207    library_names_spec='$libname.ixlibrary $libname.a'
10208    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10209    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'
10210    ;;
10211  esac
10212  ;;
10213
10214beos*)
10215  library_names_spec='${libname}${shared_ext}'
10216  dynamic_linker="$host_os ld.so"
10217  shlibpath_var=LIBRARY_PATH
10218  ;;
10219
10220bsdi[45]*)
10221  version_type=linux # correct to gnu/linux during the next big refactor
10222  need_version=no
10223  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10224  soname_spec='${libname}${release}${shared_ext}$major'
10225  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10226  shlibpath_var=LD_LIBRARY_PATH
10227  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10228  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10229  # the default ld.so.conf also contains /usr/contrib/lib and
10230  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10231  # libtool to hard-code these into programs
10232  ;;
10233
10234cygwin* | mingw* | pw32* | cegcc*)
10235  version_type=windows
10236  shrext_cmds=".dll"
10237  need_version=no
10238  need_lib_prefix=no
10239
10240  case $GCC,$cc_basename in
10241  yes,*)
10242    # gcc
10243    library_names_spec='$libname.dll.a'
10244    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10245    postinstall_cmds='base_file=`basename \${file}`~
10246      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10247      dldir=$destdir/`dirname \$dlpath`~
10248      test -d \$dldir || mkdir -p \$dldir~
10249      $install_prog $dir/$dlname \$dldir/$dlname~
10250      chmod a+x \$dldir/$dlname~
10251      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10252        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10253      fi'
10254    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10255      dlpath=$dir/\$dldll~
10256       $RM \$dlpath'
10257    shlibpath_overrides_runpath=yes
10258
10259    case $host_os in
10260    cygwin*)
10261      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10262      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10263
10264      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10265      ;;
10266    mingw* | cegcc*)
10267      # MinGW DLLs use traditional 'lib' prefix
10268      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10269      ;;
10270    pw32*)
10271      # pw32 DLLs use 'pw' prefix rather than 'lib'
10272      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10273      ;;
10274    esac
10275    dynamic_linker='Win32 ld.exe'
10276    ;;
10277
10278  *,cl*)
10279    # Native MSVC
10280    libname_spec='$name'
10281    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10282    library_names_spec='${libname}.dll.lib'
10283
10284    case $build_os in
10285    mingw*)
10286      sys_lib_search_path_spec=
10287      lt_save_ifs=$IFS
10288      IFS=';'
10289      for lt_path in $LIB
10290      do
10291        IFS=$lt_save_ifs
10292        # Let DOS variable expansion print the short 8.3 style file name.
10293        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10294        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10295      done
10296      IFS=$lt_save_ifs
10297      # Convert to MSYS style.
10298      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10299      ;;
10300    cygwin*)
10301      # Convert to unix form, then to dos form, then back to unix form
10302      # but this time dos style (no spaces!) so that the unix form looks
10303      # like /cygdrive/c/PROGRA~1:/cygdr...
10304      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10305      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10306      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10307      ;;
10308    *)
10309      sys_lib_search_path_spec="$LIB"
10310      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10311        # It is most probably a Windows format PATH.
10312        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10313      else
10314        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10315      fi
10316      # FIXME: find the short name or the path components, as spaces are
10317      # common. (e.g. "Program Files" -> "PROGRA~1")
10318      ;;
10319    esac
10320
10321    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10322    postinstall_cmds='base_file=`basename \${file}`~
10323      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10324      dldir=$destdir/`dirname \$dlpath`~
10325      test -d \$dldir || mkdir -p \$dldir~
10326      $install_prog $dir/$dlname \$dldir/$dlname'
10327    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10328      dlpath=$dir/\$dldll~
10329       $RM \$dlpath'
10330    shlibpath_overrides_runpath=yes
10331    dynamic_linker='Win32 link.exe'
10332    ;;
10333
10334  *)
10335    # Assume MSVC wrapper
10336    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10337    dynamic_linker='Win32 ld.exe'
10338    ;;
10339  esac
10340  # FIXME: first we should search . and the directory the executable is in
10341  shlibpath_var=PATH
10342  ;;
10343
10344darwin* | rhapsody*)
10345  dynamic_linker="$host_os dyld"
10346  version_type=darwin
10347  need_lib_prefix=no
10348  need_version=no
10349  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10350  soname_spec='${libname}${release}${major}$shared_ext'
10351  shlibpath_overrides_runpath=yes
10352  shlibpath_var=DYLD_LIBRARY_PATH
10353  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10354
10355  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10356  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10357  ;;
10358
10359dgux*)
10360  version_type=linux # correct to gnu/linux during the next big refactor
10361  need_lib_prefix=no
10362  need_version=no
10363  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10364  soname_spec='${libname}${release}${shared_ext}$major'
10365  shlibpath_var=LD_LIBRARY_PATH
10366  ;;
10367
10368freebsd* | dragonfly*)
10369  # DragonFly does not have aout.  When/if they implement a new
10370  # versioning mechanism, adjust this.
10371  if test -x /usr/bin/objformat; then
10372    objformat=`/usr/bin/objformat`
10373  else
10374    case $host_os in
10375    freebsd[23].*) objformat=aout ;;
10376    *) objformat=elf ;;
10377    esac
10378  fi
10379  version_type=freebsd-$objformat
10380  case $version_type in
10381    freebsd-elf*)
10382      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10383      need_version=no
10384      need_lib_prefix=no
10385      ;;
10386    freebsd-*)
10387      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10388      need_version=yes
10389      ;;
10390  esac
10391  shlibpath_var=LD_LIBRARY_PATH
10392  case $host_os in
10393  freebsd2.*)
10394    shlibpath_overrides_runpath=yes
10395    ;;
10396  freebsd3.[01]* | freebsdelf3.[01]*)
10397    shlibpath_overrides_runpath=yes
10398    hardcode_into_libs=yes
10399    ;;
10400  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10401  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10402    shlibpath_overrides_runpath=no
10403    hardcode_into_libs=yes
10404    ;;
10405  *) # from 4.6 on, and DragonFly
10406    shlibpath_overrides_runpath=yes
10407    hardcode_into_libs=yes
10408    ;;
10409  esac
10410  ;;
10411
10412haiku*)
10413  version_type=linux # correct to gnu/linux during the next big refactor
10414  need_lib_prefix=no
10415  need_version=no
10416  dynamic_linker="$host_os runtime_loader"
10417  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10418  soname_spec='${libname}${release}${shared_ext}$major'
10419  shlibpath_var=LIBRARY_PATH
10420  shlibpath_overrides_runpath=yes
10421  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10422  hardcode_into_libs=yes
10423  ;;
10424
10425hpux9* | hpux10* | hpux11*)
10426  # Give a soname corresponding to the major version so that dld.sl refuses to
10427  # link against other versions.
10428  version_type=sunos
10429  need_lib_prefix=no
10430  need_version=no
10431  case $host_cpu in
10432  ia64*)
10433    shrext_cmds='.so'
10434    hardcode_into_libs=yes
10435    dynamic_linker="$host_os dld.so"
10436    shlibpath_var=LD_LIBRARY_PATH
10437    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10438    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10439    soname_spec='${libname}${release}${shared_ext}$major'
10440    if test "X$HPUX_IA64_MODE" = X32; then
10441      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10442    else
10443      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10444    fi
10445    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10446    ;;
10447  hppa*64*)
10448    shrext_cmds='.sl'
10449    hardcode_into_libs=yes
10450    dynamic_linker="$host_os dld.sl"
10451    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10452    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10453    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10454    soname_spec='${libname}${release}${shared_ext}$major'
10455    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10456    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10457    ;;
10458  *)
10459    shrext_cmds='.sl'
10460    dynamic_linker="$host_os dld.sl"
10461    shlibpath_var=SHLIB_PATH
10462    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10463    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10464    soname_spec='${libname}${release}${shared_ext}$major'
10465    ;;
10466  esac
10467  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10468  postinstall_cmds='chmod 555 $lib'
10469  # or fails outright, so override atomically:
10470  install_override_mode=555
10471  ;;
10472
10473interix[3-9]*)
10474  version_type=linux # correct to gnu/linux during the next big refactor
10475  need_lib_prefix=no
10476  need_version=no
10477  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10478  soname_spec='${libname}${release}${shared_ext}$major'
10479  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10480  shlibpath_var=LD_LIBRARY_PATH
10481  shlibpath_overrides_runpath=no
10482  hardcode_into_libs=yes
10483  ;;
10484
10485irix5* | irix6* | nonstopux*)
10486  case $host_os in
10487    nonstopux*) version_type=nonstopux ;;
10488    *)
10489	if test "$lt_cv_prog_gnu_ld" = yes; then
10490		version_type=linux # correct to gnu/linux during the next big refactor
10491	else
10492		version_type=irix
10493	fi ;;
10494  esac
10495  need_lib_prefix=no
10496  need_version=no
10497  soname_spec='${libname}${release}${shared_ext}$major'
10498  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10499  case $host_os in
10500  irix5* | nonstopux*)
10501    libsuff= shlibsuff=
10502    ;;
10503  *)
10504    case $LD in # libtool.m4 will add one of these switches to LD
10505    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10506      libsuff= shlibsuff= libmagic=32-bit;;
10507    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10508      libsuff=32 shlibsuff=N32 libmagic=N32;;
10509    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10510      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10511    *) libsuff= shlibsuff= libmagic=never-match;;
10512    esac
10513    ;;
10514  esac
10515  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10516  shlibpath_overrides_runpath=no
10517  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10518  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10519  hardcode_into_libs=yes
10520  ;;
10521
10522# No shared lib support for Linux oldld, aout, or coff.
10523linux*oldld* | linux*aout* | linux*coff*)
10524  dynamic_linker=no
10525  ;;
10526
10527# This must be glibc/ELF.
10528linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10529  version_type=linux # correct to gnu/linux during the next big refactor
10530  need_lib_prefix=no
10531  need_version=no
10532  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10533  soname_spec='${libname}${release}${shared_ext}$major'
10534  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10535  shlibpath_var=LD_LIBRARY_PATH
10536  shlibpath_overrides_runpath=no
10537
10538  # Some binutils ld are patched to set DT_RUNPATH
10539  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10540  $as_echo_n "(cached) " >&6
10541else
10542  lt_cv_shlibpath_overrides_runpath=no
10543    save_LDFLAGS=$LDFLAGS
10544    save_libdir=$libdir
10545    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10546	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10547    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10548/* end confdefs.h.  */
10549
10550int
10551main ()
10552{
10553
10554  ;
10555  return 0;
10556}
10557_ACEOF
10558if ac_fn_c_try_link "$LINENO"; then :
10559  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10560  lt_cv_shlibpath_overrides_runpath=yes
10561fi
10562fi
10563rm -f core conftest.err conftest.$ac_objext \
10564    conftest$ac_exeext conftest.$ac_ext
10565    LDFLAGS=$save_LDFLAGS
10566    libdir=$save_libdir
10567
10568fi
10569
10570  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10571
10572  # This implies no fast_install, which is unacceptable.
10573  # Some rework will be needed to allow for fast_install
10574  # before this can be enabled.
10575  hardcode_into_libs=yes
10576
10577  # Append ld.so.conf contents to the search path
10578  if test -f /etc/ld.so.conf; then
10579    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' ' '`
10580    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10581  fi
10582
10583  # We used to test for /lib/ld.so.1 and disable shared libraries on
10584  # powerpc, because MkLinux only supported shared libraries with the
10585  # GNU dynamic linker.  Since this was broken with cross compilers,
10586  # most powerpc-linux boxes support dynamic linking these days and
10587  # people can always --disable-shared, the test was removed, and we
10588  # assume the GNU/Linux dynamic linker is in use.
10589  dynamic_linker='GNU/Linux ld.so'
10590  ;;
10591
10592netbsdelf*-gnu)
10593  version_type=linux
10594  need_lib_prefix=no
10595  need_version=no
10596  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10597  soname_spec='${libname}${release}${shared_ext}$major'
10598  shlibpath_var=LD_LIBRARY_PATH
10599  shlibpath_overrides_runpath=no
10600  hardcode_into_libs=yes
10601  dynamic_linker='NetBSD ld.elf_so'
10602  ;;
10603
10604netbsd*)
10605  version_type=sunos
10606  need_lib_prefix=no
10607  need_version=no
10608  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10609    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10610    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10611    dynamic_linker='NetBSD (a.out) ld.so'
10612  else
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    dynamic_linker='NetBSD ld.elf_so'
10616  fi
10617  shlibpath_var=LD_LIBRARY_PATH
10618  shlibpath_overrides_runpath=yes
10619  hardcode_into_libs=yes
10620  ;;
10621
10622newsos6)
10623  version_type=linux # correct to gnu/linux during the next big refactor
10624  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10625  shlibpath_var=LD_LIBRARY_PATH
10626  shlibpath_overrides_runpath=yes
10627  ;;
10628
10629*nto* | *qnx*)
10630  version_type=qnx
10631  need_lib_prefix=no
10632  need_version=no
10633  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10634  soname_spec='${libname}${release}${shared_ext}$major'
10635  shlibpath_var=LD_LIBRARY_PATH
10636  shlibpath_overrides_runpath=no
10637  hardcode_into_libs=yes
10638  dynamic_linker='ldqnx.so'
10639  ;;
10640
10641openbsd*)
10642  version_type=sunos
10643  sys_lib_dlsearch_path_spec="/usr/lib"
10644  need_lib_prefix=no
10645  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10646  case $host_os in
10647    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10648    *)				need_version=no  ;;
10649  esac
10650  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10651  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10652  shlibpath_var=LD_LIBRARY_PATH
10653  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10654    case $host_os in
10655      openbsd2.[89] | openbsd2.[89].*)
10656	shlibpath_overrides_runpath=no
10657	;;
10658      *)
10659	shlibpath_overrides_runpath=yes
10660	;;
10661      esac
10662  else
10663    shlibpath_overrides_runpath=yes
10664  fi
10665  ;;
10666
10667os2*)
10668  libname_spec='$name'
10669  shrext_cmds=".dll"
10670  need_lib_prefix=no
10671  library_names_spec='$libname${shared_ext} $libname.a'
10672  dynamic_linker='OS/2 ld.exe'
10673  shlibpath_var=LIBPATH
10674  ;;
10675
10676osf3* | osf4* | osf5*)
10677  version_type=osf
10678  need_lib_prefix=no
10679  need_version=no
10680  soname_spec='${libname}${release}${shared_ext}$major'
10681  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10682  shlibpath_var=LD_LIBRARY_PATH
10683  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10684  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10685  ;;
10686
10687rdos*)
10688  dynamic_linker=no
10689  ;;
10690
10691solaris*)
10692  version_type=linux # correct to gnu/linux during the next big refactor
10693  need_lib_prefix=no
10694  need_version=no
10695  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10696  soname_spec='${libname}${release}${shared_ext}$major'
10697  shlibpath_var=LD_LIBRARY_PATH
10698  shlibpath_overrides_runpath=yes
10699  hardcode_into_libs=yes
10700  # ldd complains unless libraries are executable
10701  postinstall_cmds='chmod +x $lib'
10702  ;;
10703
10704sunos4*)
10705  version_type=sunos
10706  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10707  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10708  shlibpath_var=LD_LIBRARY_PATH
10709  shlibpath_overrides_runpath=yes
10710  if test "$with_gnu_ld" = yes; then
10711    need_lib_prefix=no
10712  fi
10713  need_version=yes
10714  ;;
10715
10716sysv4 | sysv4.3*)
10717  version_type=linux # correct to gnu/linux during the next big refactor
10718  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10719  soname_spec='${libname}${release}${shared_ext}$major'
10720  shlibpath_var=LD_LIBRARY_PATH
10721  case $host_vendor in
10722    sni)
10723      shlibpath_overrides_runpath=no
10724      need_lib_prefix=no
10725      runpath_var=LD_RUN_PATH
10726      ;;
10727    siemens)
10728      need_lib_prefix=no
10729      ;;
10730    motorola)
10731      need_lib_prefix=no
10732      need_version=no
10733      shlibpath_overrides_runpath=no
10734      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10735      ;;
10736  esac
10737  ;;
10738
10739sysv4*MP*)
10740  if test -d /usr/nec ;then
10741    version_type=linux # correct to gnu/linux during the next big refactor
10742    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10743    soname_spec='$libname${shared_ext}.$major'
10744    shlibpath_var=LD_LIBRARY_PATH
10745  fi
10746  ;;
10747
10748sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10749  version_type=freebsd-elf
10750  need_lib_prefix=no
10751  need_version=no
10752  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10753  soname_spec='${libname}${release}${shared_ext}$major'
10754  shlibpath_var=LD_LIBRARY_PATH
10755  shlibpath_overrides_runpath=yes
10756  hardcode_into_libs=yes
10757  if test "$with_gnu_ld" = yes; then
10758    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10759  else
10760    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10761    case $host_os in
10762      sco3.2v5*)
10763        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10764	;;
10765    esac
10766  fi
10767  sys_lib_dlsearch_path_spec='/usr/lib'
10768  ;;
10769
10770tpf*)
10771  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10772  version_type=linux # correct to gnu/linux during the next big refactor
10773  need_lib_prefix=no
10774  need_version=no
10775  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10776  shlibpath_var=LD_LIBRARY_PATH
10777  shlibpath_overrides_runpath=no
10778  hardcode_into_libs=yes
10779  ;;
10780
10781uts4*)
10782  version_type=linux # correct to gnu/linux during the next big refactor
10783  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10784  soname_spec='${libname}${release}${shared_ext}$major'
10785  shlibpath_var=LD_LIBRARY_PATH
10786  ;;
10787
10788*)
10789  dynamic_linker=no
10790  ;;
10791esac
10792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10793$as_echo "$dynamic_linker" >&6; }
10794test "$dynamic_linker" = no && can_build_shared=no
10795
10796variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10797if test "$GCC" = yes; then
10798  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10799fi
10800
10801if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10802  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10803fi
10804if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10805  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10806fi
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10900$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10901hardcode_action=
10902if test -n "$hardcode_libdir_flag_spec" ||
10903   test -n "$runpath_var" ||
10904   test "X$hardcode_automatic" = "Xyes" ; then
10905
10906  # We can hardcode non-existent directories.
10907  if test "$hardcode_direct" != no &&
10908     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10909     # have to relink, otherwise we might link with an installed library
10910     # when we should be linking with a yet-to-be-installed one
10911     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10912     test "$hardcode_minus_L" != no; then
10913    # Linking always hardcodes the temporary library directory.
10914    hardcode_action=relink
10915  else
10916    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10917    hardcode_action=immediate
10918  fi
10919else
10920  # We cannot hardcode anything, or else we can only hardcode existing
10921  # directories.
10922  hardcode_action=unsupported
10923fi
10924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10925$as_echo "$hardcode_action" >&6; }
10926
10927if test "$hardcode_action" = relink ||
10928   test "$inherit_rpath" = yes; then
10929  # Fast installation is not supported
10930  enable_fast_install=no
10931elif test "$shlibpath_overrides_runpath" = yes ||
10932     test "$enable_shared" = no; then
10933  # Fast installation is not necessary
10934  enable_fast_install=needless
10935fi
10936
10937
10938
10939
10940
10941
10942  if test "x$enable_dlopen" != xyes; then
10943  enable_dlopen=unknown
10944  enable_dlopen_self=unknown
10945  enable_dlopen_self_static=unknown
10946else
10947  lt_cv_dlopen=no
10948  lt_cv_dlopen_libs=
10949
10950  case $host_os in
10951  beos*)
10952    lt_cv_dlopen="load_add_on"
10953    lt_cv_dlopen_libs=
10954    lt_cv_dlopen_self=yes
10955    ;;
10956
10957  mingw* | pw32* | cegcc*)
10958    lt_cv_dlopen="LoadLibrary"
10959    lt_cv_dlopen_libs=
10960    ;;
10961
10962  cygwin*)
10963    lt_cv_dlopen="dlopen"
10964    lt_cv_dlopen_libs=
10965    ;;
10966
10967  darwin*)
10968  # if libdl is installed we need to link against it
10969    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10970$as_echo_n "checking for dlopen in -ldl... " >&6; }
10971if ${ac_cv_lib_dl_dlopen+:} false; then :
10972  $as_echo_n "(cached) " >&6
10973else
10974  ac_check_lib_save_LIBS=$LIBS
10975LIBS="-ldl  $LIBS"
10976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10977/* end confdefs.h.  */
10978
10979/* Override any GCC internal prototype to avoid an error.
10980   Use char because int might match the return type of a GCC
10981   builtin and then its argument prototype would still apply.  */
10982#ifdef __cplusplus
10983extern "C"
10984#endif
10985char dlopen ();
10986int
10987main ()
10988{
10989return dlopen ();
10990  ;
10991  return 0;
10992}
10993_ACEOF
10994if ac_fn_c_try_link "$LINENO"; then :
10995  ac_cv_lib_dl_dlopen=yes
10996else
10997  ac_cv_lib_dl_dlopen=no
10998fi
10999rm -f core conftest.err conftest.$ac_objext \
11000    conftest$ac_exeext conftest.$ac_ext
11001LIBS=$ac_check_lib_save_LIBS
11002fi
11003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11004$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11005if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11006  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11007else
11008
11009    lt_cv_dlopen="dyld"
11010    lt_cv_dlopen_libs=
11011    lt_cv_dlopen_self=yes
11012
11013fi
11014
11015    ;;
11016
11017  *)
11018    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11019if test "x$ac_cv_func_shl_load" = xyes; then :
11020  lt_cv_dlopen="shl_load"
11021else
11022  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11023$as_echo_n "checking for shl_load in -ldld... " >&6; }
11024if ${ac_cv_lib_dld_shl_load+:} false; then :
11025  $as_echo_n "(cached) " >&6
11026else
11027  ac_check_lib_save_LIBS=$LIBS
11028LIBS="-ldld  $LIBS"
11029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11030/* end confdefs.h.  */
11031
11032/* Override any GCC internal prototype to avoid an error.
11033   Use char because int might match the return type of a GCC
11034   builtin and then its argument prototype would still apply.  */
11035#ifdef __cplusplus
11036extern "C"
11037#endif
11038char shl_load ();
11039int
11040main ()
11041{
11042return shl_load ();
11043  ;
11044  return 0;
11045}
11046_ACEOF
11047if ac_fn_c_try_link "$LINENO"; then :
11048  ac_cv_lib_dld_shl_load=yes
11049else
11050  ac_cv_lib_dld_shl_load=no
11051fi
11052rm -f core conftest.err conftest.$ac_objext \
11053    conftest$ac_exeext conftest.$ac_ext
11054LIBS=$ac_check_lib_save_LIBS
11055fi
11056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11057$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11058if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11059  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11060else
11061  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11062if test "x$ac_cv_func_dlopen" = xyes; then :
11063  lt_cv_dlopen="dlopen"
11064else
11065  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11066$as_echo_n "checking for dlopen in -ldl... " >&6; }
11067if ${ac_cv_lib_dl_dlopen+:} false; then :
11068  $as_echo_n "(cached) " >&6
11069else
11070  ac_check_lib_save_LIBS=$LIBS
11071LIBS="-ldl  $LIBS"
11072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11073/* end confdefs.h.  */
11074
11075/* Override any GCC internal prototype to avoid an error.
11076   Use char because int might match the return type of a GCC
11077   builtin and then its argument prototype would still apply.  */
11078#ifdef __cplusplus
11079extern "C"
11080#endif
11081char dlopen ();
11082int
11083main ()
11084{
11085return dlopen ();
11086  ;
11087  return 0;
11088}
11089_ACEOF
11090if ac_fn_c_try_link "$LINENO"; then :
11091  ac_cv_lib_dl_dlopen=yes
11092else
11093  ac_cv_lib_dl_dlopen=no
11094fi
11095rm -f core conftest.err conftest.$ac_objext \
11096    conftest$ac_exeext conftest.$ac_ext
11097LIBS=$ac_check_lib_save_LIBS
11098fi
11099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11100$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11101if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11102  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11103else
11104  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11105$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11106if ${ac_cv_lib_svld_dlopen+:} false; then :
11107  $as_echo_n "(cached) " >&6
11108else
11109  ac_check_lib_save_LIBS=$LIBS
11110LIBS="-lsvld  $LIBS"
11111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11112/* end confdefs.h.  */
11113
11114/* Override any GCC internal prototype to avoid an error.
11115   Use char because int might match the return type of a GCC
11116   builtin and then its argument prototype would still apply.  */
11117#ifdef __cplusplus
11118extern "C"
11119#endif
11120char dlopen ();
11121int
11122main ()
11123{
11124return dlopen ();
11125  ;
11126  return 0;
11127}
11128_ACEOF
11129if ac_fn_c_try_link "$LINENO"; then :
11130  ac_cv_lib_svld_dlopen=yes
11131else
11132  ac_cv_lib_svld_dlopen=no
11133fi
11134rm -f core conftest.err conftest.$ac_objext \
11135    conftest$ac_exeext conftest.$ac_ext
11136LIBS=$ac_check_lib_save_LIBS
11137fi
11138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11139$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11140if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11141  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11142else
11143  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11144$as_echo_n "checking for dld_link in -ldld... " >&6; }
11145if ${ac_cv_lib_dld_dld_link+:} false; then :
11146  $as_echo_n "(cached) " >&6
11147else
11148  ac_check_lib_save_LIBS=$LIBS
11149LIBS="-ldld  $LIBS"
11150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11151/* end confdefs.h.  */
11152
11153/* Override any GCC internal prototype to avoid an error.
11154   Use char because int might match the return type of a GCC
11155   builtin and then its argument prototype would still apply.  */
11156#ifdef __cplusplus
11157extern "C"
11158#endif
11159char dld_link ();
11160int
11161main ()
11162{
11163return dld_link ();
11164  ;
11165  return 0;
11166}
11167_ACEOF
11168if ac_fn_c_try_link "$LINENO"; then :
11169  ac_cv_lib_dld_dld_link=yes
11170else
11171  ac_cv_lib_dld_dld_link=no
11172fi
11173rm -f core conftest.err conftest.$ac_objext \
11174    conftest$ac_exeext conftest.$ac_ext
11175LIBS=$ac_check_lib_save_LIBS
11176fi
11177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11178$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11179if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11180  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11181fi
11182
11183
11184fi
11185
11186
11187fi
11188
11189
11190fi
11191
11192
11193fi
11194
11195
11196fi
11197
11198    ;;
11199  esac
11200
11201  if test "x$lt_cv_dlopen" != xno; then
11202    enable_dlopen=yes
11203  else
11204    enable_dlopen=no
11205  fi
11206
11207  case $lt_cv_dlopen in
11208  dlopen)
11209    save_CPPFLAGS="$CPPFLAGS"
11210    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11211
11212    save_LDFLAGS="$LDFLAGS"
11213    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11214
11215    save_LIBS="$LIBS"
11216    LIBS="$lt_cv_dlopen_libs $LIBS"
11217
11218    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11219$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11220if ${lt_cv_dlopen_self+:} false; then :
11221  $as_echo_n "(cached) " >&6
11222else
11223  	  if test "$cross_compiling" = yes; then :
11224  lt_cv_dlopen_self=cross
11225else
11226  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11227  lt_status=$lt_dlunknown
11228  cat > conftest.$ac_ext <<_LT_EOF
11229#line $LINENO "configure"
11230#include "confdefs.h"
11231
11232#if HAVE_DLFCN_H
11233#include <dlfcn.h>
11234#endif
11235
11236#include <stdio.h>
11237
11238#ifdef RTLD_GLOBAL
11239#  define LT_DLGLOBAL		RTLD_GLOBAL
11240#else
11241#  ifdef DL_GLOBAL
11242#    define LT_DLGLOBAL		DL_GLOBAL
11243#  else
11244#    define LT_DLGLOBAL		0
11245#  endif
11246#endif
11247
11248/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11249   find out it does not work in some platform. */
11250#ifndef LT_DLLAZY_OR_NOW
11251#  ifdef RTLD_LAZY
11252#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11253#  else
11254#    ifdef DL_LAZY
11255#      define LT_DLLAZY_OR_NOW		DL_LAZY
11256#    else
11257#      ifdef RTLD_NOW
11258#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11259#      else
11260#        ifdef DL_NOW
11261#          define LT_DLLAZY_OR_NOW	DL_NOW
11262#        else
11263#          define LT_DLLAZY_OR_NOW	0
11264#        endif
11265#      endif
11266#    endif
11267#  endif
11268#endif
11269
11270/* When -fvisbility=hidden is used, assume the code has been annotated
11271   correspondingly for the symbols needed.  */
11272#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11273int fnord () __attribute__((visibility("default")));
11274#endif
11275
11276int fnord () { return 42; }
11277int main ()
11278{
11279  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11280  int status = $lt_dlunknown;
11281
11282  if (self)
11283    {
11284      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11285      else
11286        {
11287	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11288          else puts (dlerror ());
11289	}
11290      /* dlclose (self); */
11291    }
11292  else
11293    puts (dlerror ());
11294
11295  return status;
11296}
11297_LT_EOF
11298  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11299  (eval $ac_link) 2>&5
11300  ac_status=$?
11301  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11302  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11303    (./conftest; exit; ) >&5 2>/dev/null
11304    lt_status=$?
11305    case x$lt_status in
11306      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11307      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11308      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11309    esac
11310  else :
11311    # compilation failed
11312    lt_cv_dlopen_self=no
11313  fi
11314fi
11315rm -fr conftest*
11316
11317
11318fi
11319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11320$as_echo "$lt_cv_dlopen_self" >&6; }
11321
11322    if test "x$lt_cv_dlopen_self" = xyes; then
11323      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11324      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11325$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11326if ${lt_cv_dlopen_self_static+:} false; then :
11327  $as_echo_n "(cached) " >&6
11328else
11329  	  if test "$cross_compiling" = yes; then :
11330  lt_cv_dlopen_self_static=cross
11331else
11332  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11333  lt_status=$lt_dlunknown
11334  cat > conftest.$ac_ext <<_LT_EOF
11335#line $LINENO "configure"
11336#include "confdefs.h"
11337
11338#if HAVE_DLFCN_H
11339#include <dlfcn.h>
11340#endif
11341
11342#include <stdio.h>
11343
11344#ifdef RTLD_GLOBAL
11345#  define LT_DLGLOBAL		RTLD_GLOBAL
11346#else
11347#  ifdef DL_GLOBAL
11348#    define LT_DLGLOBAL		DL_GLOBAL
11349#  else
11350#    define LT_DLGLOBAL		0
11351#  endif
11352#endif
11353
11354/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11355   find out it does not work in some platform. */
11356#ifndef LT_DLLAZY_OR_NOW
11357#  ifdef RTLD_LAZY
11358#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11359#  else
11360#    ifdef DL_LAZY
11361#      define LT_DLLAZY_OR_NOW		DL_LAZY
11362#    else
11363#      ifdef RTLD_NOW
11364#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11365#      else
11366#        ifdef DL_NOW
11367#          define LT_DLLAZY_OR_NOW	DL_NOW
11368#        else
11369#          define LT_DLLAZY_OR_NOW	0
11370#        endif
11371#      endif
11372#    endif
11373#  endif
11374#endif
11375
11376/* When -fvisbility=hidden is used, assume the code has been annotated
11377   correspondingly for the symbols needed.  */
11378#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11379int fnord () __attribute__((visibility("default")));
11380#endif
11381
11382int fnord () { return 42; }
11383int main ()
11384{
11385  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11386  int status = $lt_dlunknown;
11387
11388  if (self)
11389    {
11390      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11391      else
11392        {
11393	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11394          else puts (dlerror ());
11395	}
11396      /* dlclose (self); */
11397    }
11398  else
11399    puts (dlerror ());
11400
11401  return status;
11402}
11403_LT_EOF
11404  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11405  (eval $ac_link) 2>&5
11406  ac_status=$?
11407  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11408  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11409    (./conftest; exit; ) >&5 2>/dev/null
11410    lt_status=$?
11411    case x$lt_status in
11412      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11413      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11414      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11415    esac
11416  else :
11417    # compilation failed
11418    lt_cv_dlopen_self_static=no
11419  fi
11420fi
11421rm -fr conftest*
11422
11423
11424fi
11425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11426$as_echo "$lt_cv_dlopen_self_static" >&6; }
11427    fi
11428
11429    CPPFLAGS="$save_CPPFLAGS"
11430    LDFLAGS="$save_LDFLAGS"
11431    LIBS="$save_LIBS"
11432    ;;
11433  esac
11434
11435  case $lt_cv_dlopen_self in
11436  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11437  *) enable_dlopen_self=unknown ;;
11438  esac
11439
11440  case $lt_cv_dlopen_self_static in
11441  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11442  *) enable_dlopen_self_static=unknown ;;
11443  esac
11444fi
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462striplib=
11463old_striplib=
11464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11465$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11466if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11467  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11468  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11470$as_echo "yes" >&6; }
11471else
11472# FIXME - insert some real tests, host_os isn't really good enough
11473  case $host_os in
11474  darwin*)
11475    if test -n "$STRIP" ; then
11476      striplib="$STRIP -x"
11477      old_striplib="$STRIP -S"
11478      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11479$as_echo "yes" >&6; }
11480    else
11481      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11482$as_echo "no" >&6; }
11483    fi
11484    ;;
11485  *)
11486    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11487$as_echo "no" >&6; }
11488    ;;
11489  esac
11490fi
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503  # Report which library types will actually be built
11504  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11505$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11507$as_echo "$can_build_shared" >&6; }
11508
11509  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11510$as_echo_n "checking whether to build shared libraries... " >&6; }
11511  test "$can_build_shared" = "no" && enable_shared=no
11512
11513  # On AIX, shared libraries and static libraries use the same namespace, and
11514  # are all built from PIC.
11515  case $host_os in
11516  aix3*)
11517    test "$enable_shared" = yes && enable_static=no
11518    if test -n "$RANLIB"; then
11519      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11520      postinstall_cmds='$RANLIB $lib'
11521    fi
11522    ;;
11523
11524  aix[4-9]*)
11525    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11526      test "$enable_shared" = yes && enable_static=no
11527    fi
11528    ;;
11529  esac
11530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11531$as_echo "$enable_shared" >&6; }
11532
11533  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11534$as_echo_n "checking whether to build static libraries... " >&6; }
11535  # Make sure either enable_shared or enable_static is yes.
11536  test "$enable_shared" = yes || enable_static=yes
11537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11538$as_echo "$enable_static" >&6; }
11539
11540
11541
11542
11543fi
11544ac_ext=c
11545ac_cpp='$CPP $CPPFLAGS'
11546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11548ac_compiler_gnu=$ac_cv_c_compiler_gnu
11549
11550CC="$lt_save_CC"
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566        ac_config_commands="$ac_config_commands libtool"
11567
11568
11569
11570
11571# Only expand once:
11572
11573
11574
11575# Require xorg-macros minimum of 1.12 for DocBook external references
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11588$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11589if ${ac_cv_prog_cc_c99+:} false; then :
11590  $as_echo_n "(cached) " >&6
11591else
11592  ac_cv_prog_cc_c99=no
11593ac_save_CC=$CC
11594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11595/* end confdefs.h.  */
11596#include <stdarg.h>
11597#include <stdbool.h>
11598#include <stdlib.h>
11599#include <wchar.h>
11600#include <stdio.h>
11601
11602// Check varargs macros.  These examples are taken from C99 6.10.3.5.
11603#define debug(...) fprintf (stderr, __VA_ARGS__)
11604#define showlist(...) puts (#__VA_ARGS__)
11605#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11606static void
11607test_varargs_macros (void)
11608{
11609  int x = 1234;
11610  int y = 5678;
11611  debug ("Flag");
11612  debug ("X = %d\n", x);
11613  showlist (The first, second, and third items.);
11614  report (x>y, "x is %d but y is %d", x, y);
11615}
11616
11617// Check long long types.
11618#define BIG64 18446744073709551615ull
11619#define BIG32 4294967295ul
11620#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11621#if !BIG_OK
11622  your preprocessor is broken;
11623#endif
11624#if BIG_OK
11625#else
11626  your preprocessor is broken;
11627#endif
11628static long long int bignum = -9223372036854775807LL;
11629static unsigned long long int ubignum = BIG64;
11630
11631struct incomplete_array
11632{
11633  int datasize;
11634  double data[];
11635};
11636
11637struct named_init {
11638  int number;
11639  const wchar_t *name;
11640  double average;
11641};
11642
11643typedef const char *ccp;
11644
11645static inline int
11646test_restrict (ccp restrict text)
11647{
11648  // See if C++-style comments work.
11649  // Iterate through items via the restricted pointer.
11650  // Also check for declarations in for loops.
11651  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11652    continue;
11653  return 0;
11654}
11655
11656// Check varargs and va_copy.
11657static void
11658test_varargs (const char *format, ...)
11659{
11660  va_list args;
11661  va_start (args, format);
11662  va_list args_copy;
11663  va_copy (args_copy, args);
11664
11665  const char *str;
11666  int number;
11667  float fnumber;
11668
11669  while (*format)
11670    {
11671      switch (*format++)
11672	{
11673	case 's': // string
11674	  str = va_arg (args_copy, const char *);
11675	  break;
11676	case 'd': // int
11677	  number = va_arg (args_copy, int);
11678	  break;
11679	case 'f': // float
11680	  fnumber = va_arg (args_copy, double);
11681	  break;
11682	default:
11683	  break;
11684	}
11685    }
11686  va_end (args_copy);
11687  va_end (args);
11688}
11689
11690int
11691main ()
11692{
11693
11694  // Check bool.
11695  _Bool success = false;
11696
11697  // Check restrict.
11698  if (test_restrict ("String literal") == 0)
11699    success = true;
11700  char *restrict newvar = "Another string";
11701
11702  // Check varargs.
11703  test_varargs ("s, d' f .", "string", 65, 34.234);
11704  test_varargs_macros ();
11705
11706  // Check flexible array members.
11707  struct incomplete_array *ia =
11708    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11709  ia->datasize = 10;
11710  for (int i = 0; i < ia->datasize; ++i)
11711    ia->data[i] = i * 1.234;
11712
11713  // Check named initializers.
11714  struct named_init ni = {
11715    .number = 34,
11716    .name = L"Test wide string",
11717    .average = 543.34343,
11718  };
11719
11720  ni.number = 58;
11721
11722  int dynamic_array[ni.number];
11723  dynamic_array[ni.number - 1] = 543;
11724
11725  // work around unused variable warnings
11726  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11727	  || dynamic_array[ni.number - 1] != 543);
11728
11729  ;
11730  return 0;
11731}
11732_ACEOF
11733for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
11734do
11735  CC="$ac_save_CC $ac_arg"
11736  if ac_fn_c_try_compile "$LINENO"; then :
11737  ac_cv_prog_cc_c99=$ac_arg
11738fi
11739rm -f core conftest.err conftest.$ac_objext
11740  test "x$ac_cv_prog_cc_c99" != "xno" && break
11741done
11742rm -f conftest.$ac_ext
11743CC=$ac_save_CC
11744
11745fi
11746# AC_CACHE_VAL
11747case "x$ac_cv_prog_cc_c99" in
11748  x)
11749    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11750$as_echo "none needed" >&6; } ;;
11751  xno)
11752    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11753$as_echo "unsupported" >&6; } ;;
11754  *)
11755    CC="$CC $ac_cv_prog_cc_c99"
11756    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11757$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11758esac
11759if test "x$ac_cv_prog_cc_c99" != xno; then :
11760
11761fi
11762
11763
11764
11765
11766
11767
11768ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11769if test "x$ac_cv_have_decl___clang__" = xyes; then :
11770  CLANGCC="yes"
11771else
11772  CLANGCC="no"
11773fi
11774
11775ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11776if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11777  INTELCC="yes"
11778else
11779  INTELCC="no"
11780fi
11781
11782ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11783if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11784  SUNCC="yes"
11785else
11786  SUNCC="no"
11787fi
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11798	if test -n "$ac_tool_prefix"; then
11799  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11800set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11802$as_echo_n "checking for $ac_word... " >&6; }
11803if ${ac_cv_path_PKG_CONFIG+:} false; then :
11804  $as_echo_n "(cached) " >&6
11805else
11806  case $PKG_CONFIG in
11807  [\\/]* | ?:[\\/]*)
11808  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11809  ;;
11810  *)
11811  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11812for as_dir in $PATH
11813do
11814  IFS=$as_save_IFS
11815  test -z "$as_dir" && as_dir=.
11816    for ac_exec_ext in '' $ac_executable_extensions; do
11817  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11818    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11819    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11820    break 2
11821  fi
11822done
11823  done
11824IFS=$as_save_IFS
11825
11826  ;;
11827esac
11828fi
11829PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11830if test -n "$PKG_CONFIG"; then
11831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11832$as_echo "$PKG_CONFIG" >&6; }
11833else
11834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11835$as_echo "no" >&6; }
11836fi
11837
11838
11839fi
11840if test -z "$ac_cv_path_PKG_CONFIG"; then
11841  ac_pt_PKG_CONFIG=$PKG_CONFIG
11842  # Extract the first word of "pkg-config", so it can be a program name with args.
11843set dummy pkg-config; ac_word=$2
11844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11845$as_echo_n "checking for $ac_word... " >&6; }
11846if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11847  $as_echo_n "(cached) " >&6
11848else
11849  case $ac_pt_PKG_CONFIG in
11850  [\\/]* | ?:[\\/]*)
11851  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11852  ;;
11853  *)
11854  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11855for as_dir in $PATH
11856do
11857  IFS=$as_save_IFS
11858  test -z "$as_dir" && as_dir=.
11859    for ac_exec_ext in '' $ac_executable_extensions; do
11860  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11861    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11862    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11863    break 2
11864  fi
11865done
11866  done
11867IFS=$as_save_IFS
11868
11869  ;;
11870esac
11871fi
11872ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11873if test -n "$ac_pt_PKG_CONFIG"; then
11874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11875$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11876else
11877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11878$as_echo "no" >&6; }
11879fi
11880
11881  if test "x$ac_pt_PKG_CONFIG" = x; then
11882    PKG_CONFIG=""
11883  else
11884    case $cross_compiling:$ac_tool_warned in
11885yes:)
11886{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11888ac_tool_warned=yes ;;
11889esac
11890    PKG_CONFIG=$ac_pt_PKG_CONFIG
11891  fi
11892else
11893  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11894fi
11895
11896fi
11897if test -n "$PKG_CONFIG"; then
11898	_pkg_min_version=0.9.0
11899	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11900$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11901	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11902		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11903$as_echo "yes" >&6; }
11904	else
11905		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11906$as_echo "no" >&6; }
11907		PKG_CONFIG=""
11908	fi
11909fi
11910
11911
11912
11913
11914
11915# Check whether --enable-selective-werror was given.
11916if test "${enable_selective_werror+set}" = set; then :
11917  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11918else
11919  SELECTIVE_WERROR=yes
11920fi
11921
11922
11923
11924
11925
11926# -v is too short to test reliably with XORG_TESTSET_CFLAG
11927if test "x$SUNCC" = "xyes"; then
11928    BASE_CFLAGS="-v"
11929else
11930    BASE_CFLAGS=""
11931fi
11932
11933# This chunk of warnings were those that existed in the legacy CWARNFLAGS
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947xorg_testset_save_CFLAGS="$CFLAGS"
11948
11949if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11950	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11951	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11952$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11953if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11954  $as_echo_n "(cached) " >&6
11955else
11956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11957/* end confdefs.h.  */
11958int i;
11959_ACEOF
11960if ac_fn_c_try_compile "$LINENO"; then :
11961  xorg_cv_cc_flag_unknown_warning_option=yes
11962else
11963  xorg_cv_cc_flag_unknown_warning_option=no
11964fi
11965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11966fi
11967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11968$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11969	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11970	CFLAGS="$xorg_testset_save_CFLAGS"
11971fi
11972
11973if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11974	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11975		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11976	fi
11977	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11978	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11979$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11980if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11981  $as_echo_n "(cached) " >&6
11982else
11983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11984/* end confdefs.h.  */
11985int i;
11986_ACEOF
11987if ac_fn_c_try_compile "$LINENO"; then :
11988  xorg_cv_cc_flag_unused_command_line_argument=yes
11989else
11990  xorg_cv_cc_flag_unused_command_line_argument=no
11991fi
11992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11993fi
11994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11995$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11996	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11997	CFLAGS="$xorg_testset_save_CFLAGS"
11998fi
11999
12000found="no"
12001
12002	if test $found = "no" ; then
12003		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12004			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12005		fi
12006
12007		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12008			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12009		fi
12010
12011		CFLAGS="$CFLAGS -Wall"
12012
12013		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12014$as_echo_n "checking if $CC supports -Wall... " >&6; }
12015		cacheid=xorg_cv_cc_flag__Wall
12016		if eval \${$cacheid+:} false; then :
12017  $as_echo_n "(cached) " >&6
12018else
12019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12020/* end confdefs.h.  */
12021int i;
12022int
12023main ()
12024{
12025
12026  ;
12027  return 0;
12028}
12029_ACEOF
12030if ac_fn_c_try_link "$LINENO"; then :
12031  eval $cacheid=yes
12032else
12033  eval $cacheid=no
12034fi
12035rm -f core conftest.err conftest.$ac_objext \
12036    conftest$ac_exeext conftest.$ac_ext
12037fi
12038
12039
12040		CFLAGS="$xorg_testset_save_CFLAGS"
12041
12042		eval supported=\$$cacheid
12043		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12044$as_echo "$supported" >&6; }
12045		if test "$supported" = "yes" ; then
12046			BASE_CFLAGS="$BASE_CFLAGS -Wall"
12047			found="yes"
12048		fi
12049	fi
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065xorg_testset_save_CFLAGS="$CFLAGS"
12066
12067if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12068	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12069	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12070$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12071if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12072  $as_echo_n "(cached) " >&6
12073else
12074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12075/* end confdefs.h.  */
12076int i;
12077_ACEOF
12078if ac_fn_c_try_compile "$LINENO"; then :
12079  xorg_cv_cc_flag_unknown_warning_option=yes
12080else
12081  xorg_cv_cc_flag_unknown_warning_option=no
12082fi
12083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12084fi
12085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12086$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12087	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12088	CFLAGS="$xorg_testset_save_CFLAGS"
12089fi
12090
12091if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12092	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12093		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12094	fi
12095	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12096	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12097$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12098if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12099  $as_echo_n "(cached) " >&6
12100else
12101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12102/* end confdefs.h.  */
12103int i;
12104_ACEOF
12105if ac_fn_c_try_compile "$LINENO"; then :
12106  xorg_cv_cc_flag_unused_command_line_argument=yes
12107else
12108  xorg_cv_cc_flag_unused_command_line_argument=no
12109fi
12110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12111fi
12112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12113$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12114	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12115	CFLAGS="$xorg_testset_save_CFLAGS"
12116fi
12117
12118found="no"
12119
12120	if test $found = "no" ; then
12121		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12122			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12123		fi
12124
12125		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12126			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12127		fi
12128
12129		CFLAGS="$CFLAGS -Wpointer-arith"
12130
12131		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12132$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12133		cacheid=xorg_cv_cc_flag__Wpointer_arith
12134		if eval \${$cacheid+:} false; then :
12135  $as_echo_n "(cached) " >&6
12136else
12137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12138/* end confdefs.h.  */
12139int i;
12140int
12141main ()
12142{
12143
12144  ;
12145  return 0;
12146}
12147_ACEOF
12148if ac_fn_c_try_link "$LINENO"; then :
12149  eval $cacheid=yes
12150else
12151  eval $cacheid=no
12152fi
12153rm -f core conftest.err conftest.$ac_objext \
12154    conftest$ac_exeext conftest.$ac_ext
12155fi
12156
12157
12158		CFLAGS="$xorg_testset_save_CFLAGS"
12159
12160		eval supported=\$$cacheid
12161		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12162$as_echo "$supported" >&6; }
12163		if test "$supported" = "yes" ; then
12164			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12165			found="yes"
12166		fi
12167	fi
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183xorg_testset_save_CFLAGS="$CFLAGS"
12184
12185if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12186	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12187	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12188$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12189if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12190  $as_echo_n "(cached) " >&6
12191else
12192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12193/* end confdefs.h.  */
12194int i;
12195_ACEOF
12196if ac_fn_c_try_compile "$LINENO"; then :
12197  xorg_cv_cc_flag_unknown_warning_option=yes
12198else
12199  xorg_cv_cc_flag_unknown_warning_option=no
12200fi
12201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12202fi
12203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12204$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12205	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12206	CFLAGS="$xorg_testset_save_CFLAGS"
12207fi
12208
12209if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12210	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12211		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12212	fi
12213	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12214	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12215$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12216if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12217  $as_echo_n "(cached) " >&6
12218else
12219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12220/* end confdefs.h.  */
12221int i;
12222_ACEOF
12223if ac_fn_c_try_compile "$LINENO"; then :
12224  xorg_cv_cc_flag_unused_command_line_argument=yes
12225else
12226  xorg_cv_cc_flag_unused_command_line_argument=no
12227fi
12228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12229fi
12230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12231$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12232	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12233	CFLAGS="$xorg_testset_save_CFLAGS"
12234fi
12235
12236found="no"
12237
12238	if test $found = "no" ; then
12239		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12240			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12241		fi
12242
12243		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12244			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12245		fi
12246
12247		CFLAGS="$CFLAGS -Wmissing-declarations"
12248
12249		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12250$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12251		cacheid=xorg_cv_cc_flag__Wmissing_declarations
12252		if eval \${$cacheid+:} false; then :
12253  $as_echo_n "(cached) " >&6
12254else
12255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12256/* end confdefs.h.  */
12257int i;
12258int
12259main ()
12260{
12261
12262  ;
12263  return 0;
12264}
12265_ACEOF
12266if ac_fn_c_try_link "$LINENO"; then :
12267  eval $cacheid=yes
12268else
12269  eval $cacheid=no
12270fi
12271rm -f core conftest.err conftest.$ac_objext \
12272    conftest$ac_exeext conftest.$ac_ext
12273fi
12274
12275
12276		CFLAGS="$xorg_testset_save_CFLAGS"
12277
12278		eval supported=\$$cacheid
12279		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12280$as_echo "$supported" >&6; }
12281		if test "$supported" = "yes" ; then
12282			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12283			found="yes"
12284		fi
12285	fi
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301xorg_testset_save_CFLAGS="$CFLAGS"
12302
12303if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12304	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12305	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12306$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12307if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12308  $as_echo_n "(cached) " >&6
12309else
12310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12311/* end confdefs.h.  */
12312int i;
12313_ACEOF
12314if ac_fn_c_try_compile "$LINENO"; then :
12315  xorg_cv_cc_flag_unknown_warning_option=yes
12316else
12317  xorg_cv_cc_flag_unknown_warning_option=no
12318fi
12319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12320fi
12321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12322$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12323	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12324	CFLAGS="$xorg_testset_save_CFLAGS"
12325fi
12326
12327if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12328	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12329		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12330	fi
12331	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12332	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12333$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12334if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12335  $as_echo_n "(cached) " >&6
12336else
12337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12338/* end confdefs.h.  */
12339int i;
12340_ACEOF
12341if ac_fn_c_try_compile "$LINENO"; then :
12342  xorg_cv_cc_flag_unused_command_line_argument=yes
12343else
12344  xorg_cv_cc_flag_unused_command_line_argument=no
12345fi
12346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12347fi
12348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12349$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12350	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12351	CFLAGS="$xorg_testset_save_CFLAGS"
12352fi
12353
12354found="no"
12355
12356	if test $found = "no" ; then
12357		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12358			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12359		fi
12360
12361		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12362			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12363		fi
12364
12365		CFLAGS="$CFLAGS -Wformat=2"
12366
12367		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12368$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12369		cacheid=xorg_cv_cc_flag__Wformat_2
12370		if eval \${$cacheid+:} false; then :
12371  $as_echo_n "(cached) " >&6
12372else
12373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12374/* end confdefs.h.  */
12375int i;
12376int
12377main ()
12378{
12379
12380  ;
12381  return 0;
12382}
12383_ACEOF
12384if ac_fn_c_try_link "$LINENO"; then :
12385  eval $cacheid=yes
12386else
12387  eval $cacheid=no
12388fi
12389rm -f core conftest.err conftest.$ac_objext \
12390    conftest$ac_exeext conftest.$ac_ext
12391fi
12392
12393
12394		CFLAGS="$xorg_testset_save_CFLAGS"
12395
12396		eval supported=\$$cacheid
12397		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12398$as_echo "$supported" >&6; }
12399		if test "$supported" = "yes" ; then
12400			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12401			found="yes"
12402		fi
12403	fi
12404
12405	if test $found = "no" ; then
12406		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12407			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12408		fi
12409
12410		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12411			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12412		fi
12413
12414		CFLAGS="$CFLAGS -Wformat"
12415
12416		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12417$as_echo_n "checking if $CC supports -Wformat... " >&6; }
12418		cacheid=xorg_cv_cc_flag__Wformat
12419		if eval \${$cacheid+:} false; then :
12420  $as_echo_n "(cached) " >&6
12421else
12422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12423/* end confdefs.h.  */
12424int i;
12425int
12426main ()
12427{
12428
12429  ;
12430  return 0;
12431}
12432_ACEOF
12433if ac_fn_c_try_link "$LINENO"; then :
12434  eval $cacheid=yes
12435else
12436  eval $cacheid=no
12437fi
12438rm -f core conftest.err conftest.$ac_objext \
12439    conftest$ac_exeext conftest.$ac_ext
12440fi
12441
12442
12443		CFLAGS="$xorg_testset_save_CFLAGS"
12444
12445		eval supported=\$$cacheid
12446		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12447$as_echo "$supported" >&6; }
12448		if test "$supported" = "yes" ; then
12449			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12450			found="yes"
12451		fi
12452	fi
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470xorg_testset_save_CFLAGS="$CFLAGS"
12471
12472if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12473	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12474	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12475$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12476if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12477  $as_echo_n "(cached) " >&6
12478else
12479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12480/* end confdefs.h.  */
12481int i;
12482_ACEOF
12483if ac_fn_c_try_compile "$LINENO"; then :
12484  xorg_cv_cc_flag_unknown_warning_option=yes
12485else
12486  xorg_cv_cc_flag_unknown_warning_option=no
12487fi
12488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12489fi
12490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12491$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12492	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12493	CFLAGS="$xorg_testset_save_CFLAGS"
12494fi
12495
12496if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12497	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12498		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12499	fi
12500	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12501	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12502$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12503if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12504  $as_echo_n "(cached) " >&6
12505else
12506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12507/* end confdefs.h.  */
12508int i;
12509_ACEOF
12510if ac_fn_c_try_compile "$LINENO"; then :
12511  xorg_cv_cc_flag_unused_command_line_argument=yes
12512else
12513  xorg_cv_cc_flag_unused_command_line_argument=no
12514fi
12515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12516fi
12517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12518$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12519	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12520	CFLAGS="$xorg_testset_save_CFLAGS"
12521fi
12522
12523found="no"
12524
12525	if test $found = "no" ; then
12526		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12527			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12528		fi
12529
12530		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12531			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12532		fi
12533
12534		CFLAGS="$CFLAGS -Wstrict-prototypes"
12535
12536		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12537$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12538		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12539		if eval \${$cacheid+:} false; then :
12540  $as_echo_n "(cached) " >&6
12541else
12542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12543/* end confdefs.h.  */
12544int i;
12545int
12546main ()
12547{
12548
12549  ;
12550  return 0;
12551}
12552_ACEOF
12553if ac_fn_c_try_link "$LINENO"; then :
12554  eval $cacheid=yes
12555else
12556  eval $cacheid=no
12557fi
12558rm -f core conftest.err conftest.$ac_objext \
12559    conftest$ac_exeext conftest.$ac_ext
12560fi
12561
12562
12563		CFLAGS="$xorg_testset_save_CFLAGS"
12564
12565		eval supported=\$$cacheid
12566		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12567$as_echo "$supported" >&6; }
12568		if test "$supported" = "yes" ; then
12569			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12570			found="yes"
12571		fi
12572	fi
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588xorg_testset_save_CFLAGS="$CFLAGS"
12589
12590if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12591	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12592	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12593$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12594if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12595  $as_echo_n "(cached) " >&6
12596else
12597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12598/* end confdefs.h.  */
12599int i;
12600_ACEOF
12601if ac_fn_c_try_compile "$LINENO"; then :
12602  xorg_cv_cc_flag_unknown_warning_option=yes
12603else
12604  xorg_cv_cc_flag_unknown_warning_option=no
12605fi
12606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12607fi
12608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12609$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12610	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12611	CFLAGS="$xorg_testset_save_CFLAGS"
12612fi
12613
12614if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12615	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12616		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12617	fi
12618	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12619	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12620$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12621if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12622  $as_echo_n "(cached) " >&6
12623else
12624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12625/* end confdefs.h.  */
12626int i;
12627_ACEOF
12628if ac_fn_c_try_compile "$LINENO"; then :
12629  xorg_cv_cc_flag_unused_command_line_argument=yes
12630else
12631  xorg_cv_cc_flag_unused_command_line_argument=no
12632fi
12633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12634fi
12635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12636$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12637	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12638	CFLAGS="$xorg_testset_save_CFLAGS"
12639fi
12640
12641found="no"
12642
12643	if test $found = "no" ; then
12644		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12645			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12646		fi
12647
12648		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12649			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12650		fi
12651
12652		CFLAGS="$CFLAGS -Wmissing-prototypes"
12653
12654		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12655$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12656		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12657		if eval \${$cacheid+:} false; then :
12658  $as_echo_n "(cached) " >&6
12659else
12660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12661/* end confdefs.h.  */
12662int i;
12663int
12664main ()
12665{
12666
12667  ;
12668  return 0;
12669}
12670_ACEOF
12671if ac_fn_c_try_link "$LINENO"; then :
12672  eval $cacheid=yes
12673else
12674  eval $cacheid=no
12675fi
12676rm -f core conftest.err conftest.$ac_objext \
12677    conftest$ac_exeext conftest.$ac_ext
12678fi
12679
12680
12681		CFLAGS="$xorg_testset_save_CFLAGS"
12682
12683		eval supported=\$$cacheid
12684		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12685$as_echo "$supported" >&6; }
12686		if test "$supported" = "yes" ; then
12687			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12688			found="yes"
12689		fi
12690	fi
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706xorg_testset_save_CFLAGS="$CFLAGS"
12707
12708if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12709	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12710	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12711$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12712if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12713  $as_echo_n "(cached) " >&6
12714else
12715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12716/* end confdefs.h.  */
12717int i;
12718_ACEOF
12719if ac_fn_c_try_compile "$LINENO"; then :
12720  xorg_cv_cc_flag_unknown_warning_option=yes
12721else
12722  xorg_cv_cc_flag_unknown_warning_option=no
12723fi
12724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12725fi
12726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12727$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12728	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12729	CFLAGS="$xorg_testset_save_CFLAGS"
12730fi
12731
12732if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12733	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12734		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12735	fi
12736	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12737	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12738$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12739if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12740  $as_echo_n "(cached) " >&6
12741else
12742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12743/* end confdefs.h.  */
12744int i;
12745_ACEOF
12746if ac_fn_c_try_compile "$LINENO"; then :
12747  xorg_cv_cc_flag_unused_command_line_argument=yes
12748else
12749  xorg_cv_cc_flag_unused_command_line_argument=no
12750fi
12751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12752fi
12753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12754$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12755	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12756	CFLAGS="$xorg_testset_save_CFLAGS"
12757fi
12758
12759found="no"
12760
12761	if test $found = "no" ; then
12762		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12763			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12764		fi
12765
12766		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12767			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12768		fi
12769
12770		CFLAGS="$CFLAGS -Wnested-externs"
12771
12772		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12773$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12774		cacheid=xorg_cv_cc_flag__Wnested_externs
12775		if eval \${$cacheid+:} false; then :
12776  $as_echo_n "(cached) " >&6
12777else
12778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12779/* end confdefs.h.  */
12780int i;
12781int
12782main ()
12783{
12784
12785  ;
12786  return 0;
12787}
12788_ACEOF
12789if ac_fn_c_try_link "$LINENO"; then :
12790  eval $cacheid=yes
12791else
12792  eval $cacheid=no
12793fi
12794rm -f core conftest.err conftest.$ac_objext \
12795    conftest$ac_exeext conftest.$ac_ext
12796fi
12797
12798
12799		CFLAGS="$xorg_testset_save_CFLAGS"
12800
12801		eval supported=\$$cacheid
12802		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12803$as_echo "$supported" >&6; }
12804		if test "$supported" = "yes" ; then
12805			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12806			found="yes"
12807		fi
12808	fi
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824xorg_testset_save_CFLAGS="$CFLAGS"
12825
12826if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12827	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12828	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12829$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12830if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12831  $as_echo_n "(cached) " >&6
12832else
12833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12834/* end confdefs.h.  */
12835int i;
12836_ACEOF
12837if ac_fn_c_try_compile "$LINENO"; then :
12838  xorg_cv_cc_flag_unknown_warning_option=yes
12839else
12840  xorg_cv_cc_flag_unknown_warning_option=no
12841fi
12842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12843fi
12844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12845$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12846	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12847	CFLAGS="$xorg_testset_save_CFLAGS"
12848fi
12849
12850if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12851	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12852		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12853	fi
12854	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12855	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12856$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12857if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12858  $as_echo_n "(cached) " >&6
12859else
12860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12861/* end confdefs.h.  */
12862int i;
12863_ACEOF
12864if ac_fn_c_try_compile "$LINENO"; then :
12865  xorg_cv_cc_flag_unused_command_line_argument=yes
12866else
12867  xorg_cv_cc_flag_unused_command_line_argument=no
12868fi
12869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12870fi
12871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12872$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12873	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12874	CFLAGS="$xorg_testset_save_CFLAGS"
12875fi
12876
12877found="no"
12878
12879	if test $found = "no" ; then
12880		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12881			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12882		fi
12883
12884		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12885			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12886		fi
12887
12888		CFLAGS="$CFLAGS -Wbad-function-cast"
12889
12890		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12891$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12892		cacheid=xorg_cv_cc_flag__Wbad_function_cast
12893		if eval \${$cacheid+:} false; then :
12894  $as_echo_n "(cached) " >&6
12895else
12896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12897/* end confdefs.h.  */
12898int i;
12899int
12900main ()
12901{
12902
12903  ;
12904  return 0;
12905}
12906_ACEOF
12907if ac_fn_c_try_link "$LINENO"; then :
12908  eval $cacheid=yes
12909else
12910  eval $cacheid=no
12911fi
12912rm -f core conftest.err conftest.$ac_objext \
12913    conftest$ac_exeext conftest.$ac_ext
12914fi
12915
12916
12917		CFLAGS="$xorg_testset_save_CFLAGS"
12918
12919		eval supported=\$$cacheid
12920		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12921$as_echo "$supported" >&6; }
12922		if test "$supported" = "yes" ; then
12923			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12924			found="yes"
12925		fi
12926	fi
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942xorg_testset_save_CFLAGS="$CFLAGS"
12943
12944if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12945	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12946	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12947$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12948if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12949  $as_echo_n "(cached) " >&6
12950else
12951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12952/* end confdefs.h.  */
12953int i;
12954_ACEOF
12955if ac_fn_c_try_compile "$LINENO"; then :
12956  xorg_cv_cc_flag_unknown_warning_option=yes
12957else
12958  xorg_cv_cc_flag_unknown_warning_option=no
12959fi
12960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12961fi
12962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12963$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12964	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12965	CFLAGS="$xorg_testset_save_CFLAGS"
12966fi
12967
12968if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12969	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12970		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12971	fi
12972	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12973	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12974$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12975if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12976  $as_echo_n "(cached) " >&6
12977else
12978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12979/* end confdefs.h.  */
12980int i;
12981_ACEOF
12982if ac_fn_c_try_compile "$LINENO"; then :
12983  xorg_cv_cc_flag_unused_command_line_argument=yes
12984else
12985  xorg_cv_cc_flag_unused_command_line_argument=no
12986fi
12987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12988fi
12989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12990$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12991	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12992	CFLAGS="$xorg_testset_save_CFLAGS"
12993fi
12994
12995found="no"
12996
12997	if test $found = "no" ; then
12998		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12999			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13000		fi
13001
13002		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13003			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13004		fi
13005
13006		CFLAGS="$CFLAGS -Wold-style-definition"
13007
13008		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13009$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13010		cacheid=xorg_cv_cc_flag__Wold_style_definition
13011		if eval \${$cacheid+:} false; then :
13012  $as_echo_n "(cached) " >&6
13013else
13014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13015/* end confdefs.h.  */
13016int i;
13017int
13018main ()
13019{
13020
13021  ;
13022  return 0;
13023}
13024_ACEOF
13025if ac_fn_c_try_link "$LINENO"; then :
13026  eval $cacheid=yes
13027else
13028  eval $cacheid=no
13029fi
13030rm -f core conftest.err conftest.$ac_objext \
13031    conftest$ac_exeext conftest.$ac_ext
13032fi
13033
13034
13035		CFLAGS="$xorg_testset_save_CFLAGS"
13036
13037		eval supported=\$$cacheid
13038		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13039$as_echo "$supported" >&6; }
13040		if test "$supported" = "yes" ; then
13041			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13042			found="yes"
13043		fi
13044	fi
13045
13046	if test $found = "no" ; then
13047		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13048			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13049		fi
13050
13051		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13052			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13053		fi
13054
13055		CFLAGS="$CFLAGS -fd"
13056
13057		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13058$as_echo_n "checking if $CC supports -fd... " >&6; }
13059		cacheid=xorg_cv_cc_flag__fd
13060		if eval \${$cacheid+:} false; then :
13061  $as_echo_n "(cached) " >&6
13062else
13063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13064/* end confdefs.h.  */
13065int i;
13066int
13067main ()
13068{
13069
13070  ;
13071  return 0;
13072}
13073_ACEOF
13074if ac_fn_c_try_link "$LINENO"; then :
13075  eval $cacheid=yes
13076else
13077  eval $cacheid=no
13078fi
13079rm -f core conftest.err conftest.$ac_objext \
13080    conftest$ac_exeext conftest.$ac_ext
13081fi
13082
13083
13084		CFLAGS="$xorg_testset_save_CFLAGS"
13085
13086		eval supported=\$$cacheid
13087		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13088$as_echo "$supported" >&6; }
13089		if test "$supported" = "yes" ; then
13090			BASE_CFLAGS="$BASE_CFLAGS -fd"
13091			found="yes"
13092		fi
13093	fi
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109xorg_testset_save_CFLAGS="$CFLAGS"
13110
13111if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13112	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13113	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13114$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13115if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13116  $as_echo_n "(cached) " >&6
13117else
13118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13119/* end confdefs.h.  */
13120int i;
13121_ACEOF
13122if ac_fn_c_try_compile "$LINENO"; then :
13123  xorg_cv_cc_flag_unknown_warning_option=yes
13124else
13125  xorg_cv_cc_flag_unknown_warning_option=no
13126fi
13127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13128fi
13129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13130$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13131	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13132	CFLAGS="$xorg_testset_save_CFLAGS"
13133fi
13134
13135if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13136	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13137		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13138	fi
13139	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13140	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13141$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13142if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13143  $as_echo_n "(cached) " >&6
13144else
13145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13146/* end confdefs.h.  */
13147int i;
13148_ACEOF
13149if ac_fn_c_try_compile "$LINENO"; then :
13150  xorg_cv_cc_flag_unused_command_line_argument=yes
13151else
13152  xorg_cv_cc_flag_unused_command_line_argument=no
13153fi
13154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13155fi
13156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13157$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13158	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13159	CFLAGS="$xorg_testset_save_CFLAGS"
13160fi
13161
13162found="no"
13163
13164	if test $found = "no" ; then
13165		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13166			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13167		fi
13168
13169		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13170			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13171		fi
13172
13173		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13174
13175		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13176$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13177		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13178		if eval \${$cacheid+:} false; then :
13179  $as_echo_n "(cached) " >&6
13180else
13181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13182/* end confdefs.h.  */
13183int i;
13184int
13185main ()
13186{
13187
13188  ;
13189  return 0;
13190}
13191_ACEOF
13192if ac_fn_c_try_link "$LINENO"; then :
13193  eval $cacheid=yes
13194else
13195  eval $cacheid=no
13196fi
13197rm -f core conftest.err conftest.$ac_objext \
13198    conftest$ac_exeext conftest.$ac_ext
13199fi
13200
13201
13202		CFLAGS="$xorg_testset_save_CFLAGS"
13203
13204		eval supported=\$$cacheid
13205		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13206$as_echo "$supported" >&6; }
13207		if test "$supported" = "yes" ; then
13208			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13209			found="yes"
13210		fi
13211	fi
13212
13213
13214
13215
13216
13217# This chunk adds additional warnings that could catch undesired effects.
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231xorg_testset_save_CFLAGS="$CFLAGS"
13232
13233if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13234	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13235	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13236$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13237if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13238  $as_echo_n "(cached) " >&6
13239else
13240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13241/* end confdefs.h.  */
13242int i;
13243_ACEOF
13244if ac_fn_c_try_compile "$LINENO"; then :
13245  xorg_cv_cc_flag_unknown_warning_option=yes
13246else
13247  xorg_cv_cc_flag_unknown_warning_option=no
13248fi
13249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13250fi
13251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13252$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13253	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13254	CFLAGS="$xorg_testset_save_CFLAGS"
13255fi
13256
13257if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13258	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13259		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13260	fi
13261	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13262	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13263$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13264if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13265  $as_echo_n "(cached) " >&6
13266else
13267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13268/* end confdefs.h.  */
13269int i;
13270_ACEOF
13271if ac_fn_c_try_compile "$LINENO"; then :
13272  xorg_cv_cc_flag_unused_command_line_argument=yes
13273else
13274  xorg_cv_cc_flag_unused_command_line_argument=no
13275fi
13276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13277fi
13278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13279$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13280	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13281	CFLAGS="$xorg_testset_save_CFLAGS"
13282fi
13283
13284found="no"
13285
13286	if test $found = "no" ; then
13287		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13288			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13289		fi
13290
13291		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13292			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13293		fi
13294
13295		CFLAGS="$CFLAGS -Wunused"
13296
13297		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13298$as_echo_n "checking if $CC supports -Wunused... " >&6; }
13299		cacheid=xorg_cv_cc_flag__Wunused
13300		if eval \${$cacheid+:} false; then :
13301  $as_echo_n "(cached) " >&6
13302else
13303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13304/* end confdefs.h.  */
13305int i;
13306int
13307main ()
13308{
13309
13310  ;
13311  return 0;
13312}
13313_ACEOF
13314if ac_fn_c_try_link "$LINENO"; then :
13315  eval $cacheid=yes
13316else
13317  eval $cacheid=no
13318fi
13319rm -f core conftest.err conftest.$ac_objext \
13320    conftest$ac_exeext conftest.$ac_ext
13321fi
13322
13323
13324		CFLAGS="$xorg_testset_save_CFLAGS"
13325
13326		eval supported=\$$cacheid
13327		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13328$as_echo "$supported" >&6; }
13329		if test "$supported" = "yes" ; then
13330			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13331			found="yes"
13332		fi
13333	fi
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349xorg_testset_save_CFLAGS="$CFLAGS"
13350
13351if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13352	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13353	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13354$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13355if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13356  $as_echo_n "(cached) " >&6
13357else
13358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13359/* end confdefs.h.  */
13360int i;
13361_ACEOF
13362if ac_fn_c_try_compile "$LINENO"; then :
13363  xorg_cv_cc_flag_unknown_warning_option=yes
13364else
13365  xorg_cv_cc_flag_unknown_warning_option=no
13366fi
13367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13368fi
13369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13370$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13371	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13372	CFLAGS="$xorg_testset_save_CFLAGS"
13373fi
13374
13375if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13376	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13377		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13378	fi
13379	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13380	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13381$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13382if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13383  $as_echo_n "(cached) " >&6
13384else
13385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13386/* end confdefs.h.  */
13387int i;
13388_ACEOF
13389if ac_fn_c_try_compile "$LINENO"; then :
13390  xorg_cv_cc_flag_unused_command_line_argument=yes
13391else
13392  xorg_cv_cc_flag_unused_command_line_argument=no
13393fi
13394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13395fi
13396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13397$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13398	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13399	CFLAGS="$xorg_testset_save_CFLAGS"
13400fi
13401
13402found="no"
13403
13404	if test $found = "no" ; then
13405		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13406			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13407		fi
13408
13409		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13410			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13411		fi
13412
13413		CFLAGS="$CFLAGS -Wuninitialized"
13414
13415		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13416$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13417		cacheid=xorg_cv_cc_flag__Wuninitialized
13418		if eval \${$cacheid+:} false; then :
13419  $as_echo_n "(cached) " >&6
13420else
13421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13422/* end confdefs.h.  */
13423int i;
13424int
13425main ()
13426{
13427
13428  ;
13429  return 0;
13430}
13431_ACEOF
13432if ac_fn_c_try_link "$LINENO"; then :
13433  eval $cacheid=yes
13434else
13435  eval $cacheid=no
13436fi
13437rm -f core conftest.err conftest.$ac_objext \
13438    conftest$ac_exeext conftest.$ac_ext
13439fi
13440
13441
13442		CFLAGS="$xorg_testset_save_CFLAGS"
13443
13444		eval supported=\$$cacheid
13445		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13446$as_echo "$supported" >&6; }
13447		if test "$supported" = "yes" ; then
13448			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13449			found="yes"
13450		fi
13451	fi
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467xorg_testset_save_CFLAGS="$CFLAGS"
13468
13469if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13470	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13471	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13472$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13473if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13474  $as_echo_n "(cached) " >&6
13475else
13476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13477/* end confdefs.h.  */
13478int i;
13479_ACEOF
13480if ac_fn_c_try_compile "$LINENO"; then :
13481  xorg_cv_cc_flag_unknown_warning_option=yes
13482else
13483  xorg_cv_cc_flag_unknown_warning_option=no
13484fi
13485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13486fi
13487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13488$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13489	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13490	CFLAGS="$xorg_testset_save_CFLAGS"
13491fi
13492
13493if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13494	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13495		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13496	fi
13497	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13498	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13499$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13500if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13501  $as_echo_n "(cached) " >&6
13502else
13503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13504/* end confdefs.h.  */
13505int i;
13506_ACEOF
13507if ac_fn_c_try_compile "$LINENO"; then :
13508  xorg_cv_cc_flag_unused_command_line_argument=yes
13509else
13510  xorg_cv_cc_flag_unused_command_line_argument=no
13511fi
13512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13513fi
13514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13515$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13516	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13517	CFLAGS="$xorg_testset_save_CFLAGS"
13518fi
13519
13520found="no"
13521
13522	if test $found = "no" ; then
13523		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13524			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13525		fi
13526
13527		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13528			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13529		fi
13530
13531		CFLAGS="$CFLAGS -Wshadow"
13532
13533		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13534$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13535		cacheid=xorg_cv_cc_flag__Wshadow
13536		if eval \${$cacheid+:} false; then :
13537  $as_echo_n "(cached) " >&6
13538else
13539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13540/* end confdefs.h.  */
13541int i;
13542int
13543main ()
13544{
13545
13546  ;
13547  return 0;
13548}
13549_ACEOF
13550if ac_fn_c_try_link "$LINENO"; then :
13551  eval $cacheid=yes
13552else
13553  eval $cacheid=no
13554fi
13555rm -f core conftest.err conftest.$ac_objext \
13556    conftest$ac_exeext conftest.$ac_ext
13557fi
13558
13559
13560		CFLAGS="$xorg_testset_save_CFLAGS"
13561
13562		eval supported=\$$cacheid
13563		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13564$as_echo "$supported" >&6; }
13565		if test "$supported" = "yes" ; then
13566			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13567			found="yes"
13568		fi
13569	fi
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585xorg_testset_save_CFLAGS="$CFLAGS"
13586
13587if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13588	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13589	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13590$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13591if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13592  $as_echo_n "(cached) " >&6
13593else
13594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13595/* end confdefs.h.  */
13596int i;
13597_ACEOF
13598if ac_fn_c_try_compile "$LINENO"; then :
13599  xorg_cv_cc_flag_unknown_warning_option=yes
13600else
13601  xorg_cv_cc_flag_unknown_warning_option=no
13602fi
13603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13604fi
13605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13606$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13607	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13608	CFLAGS="$xorg_testset_save_CFLAGS"
13609fi
13610
13611if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13612	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13613		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13614	fi
13615	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13616	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13617$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13618if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13619  $as_echo_n "(cached) " >&6
13620else
13621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13622/* end confdefs.h.  */
13623int i;
13624_ACEOF
13625if ac_fn_c_try_compile "$LINENO"; then :
13626  xorg_cv_cc_flag_unused_command_line_argument=yes
13627else
13628  xorg_cv_cc_flag_unused_command_line_argument=no
13629fi
13630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13631fi
13632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13633$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13634	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13635	CFLAGS="$xorg_testset_save_CFLAGS"
13636fi
13637
13638found="no"
13639
13640	if test $found = "no" ; then
13641		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13642			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13643		fi
13644
13645		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13646			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13647		fi
13648
13649		CFLAGS="$CFLAGS -Wmissing-noreturn"
13650
13651		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13652$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13653		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13654		if eval \${$cacheid+:} false; then :
13655  $as_echo_n "(cached) " >&6
13656else
13657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13658/* end confdefs.h.  */
13659int i;
13660int
13661main ()
13662{
13663
13664  ;
13665  return 0;
13666}
13667_ACEOF
13668if ac_fn_c_try_link "$LINENO"; then :
13669  eval $cacheid=yes
13670else
13671  eval $cacheid=no
13672fi
13673rm -f core conftest.err conftest.$ac_objext \
13674    conftest$ac_exeext conftest.$ac_ext
13675fi
13676
13677
13678		CFLAGS="$xorg_testset_save_CFLAGS"
13679
13680		eval supported=\$$cacheid
13681		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13682$as_echo "$supported" >&6; }
13683		if test "$supported" = "yes" ; then
13684			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13685			found="yes"
13686		fi
13687	fi
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703xorg_testset_save_CFLAGS="$CFLAGS"
13704
13705if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13706	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13707	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13708$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13709if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13710  $as_echo_n "(cached) " >&6
13711else
13712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13713/* end confdefs.h.  */
13714int i;
13715_ACEOF
13716if ac_fn_c_try_compile "$LINENO"; then :
13717  xorg_cv_cc_flag_unknown_warning_option=yes
13718else
13719  xorg_cv_cc_flag_unknown_warning_option=no
13720fi
13721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13722fi
13723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13724$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13725	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13726	CFLAGS="$xorg_testset_save_CFLAGS"
13727fi
13728
13729if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13730	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13731		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13732	fi
13733	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13734	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13735$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13736if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13737  $as_echo_n "(cached) " >&6
13738else
13739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13740/* end confdefs.h.  */
13741int i;
13742_ACEOF
13743if ac_fn_c_try_compile "$LINENO"; then :
13744  xorg_cv_cc_flag_unused_command_line_argument=yes
13745else
13746  xorg_cv_cc_flag_unused_command_line_argument=no
13747fi
13748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13749fi
13750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13751$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13752	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13753	CFLAGS="$xorg_testset_save_CFLAGS"
13754fi
13755
13756found="no"
13757
13758	if test $found = "no" ; then
13759		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13760			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13761		fi
13762
13763		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13764			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13765		fi
13766
13767		CFLAGS="$CFLAGS -Wmissing-format-attribute"
13768
13769		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13770$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13771		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
13772		if eval \${$cacheid+:} false; then :
13773  $as_echo_n "(cached) " >&6
13774else
13775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13776/* end confdefs.h.  */
13777int i;
13778int
13779main ()
13780{
13781
13782  ;
13783  return 0;
13784}
13785_ACEOF
13786if ac_fn_c_try_link "$LINENO"; then :
13787  eval $cacheid=yes
13788else
13789  eval $cacheid=no
13790fi
13791rm -f core conftest.err conftest.$ac_objext \
13792    conftest$ac_exeext conftest.$ac_ext
13793fi
13794
13795
13796		CFLAGS="$xorg_testset_save_CFLAGS"
13797
13798		eval supported=\$$cacheid
13799		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13800$as_echo "$supported" >&6; }
13801		if test "$supported" = "yes" ; then
13802			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13803			found="yes"
13804		fi
13805	fi
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821xorg_testset_save_CFLAGS="$CFLAGS"
13822
13823if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13824	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13825	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13826$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13827if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13828  $as_echo_n "(cached) " >&6
13829else
13830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13831/* end confdefs.h.  */
13832int i;
13833_ACEOF
13834if ac_fn_c_try_compile "$LINENO"; then :
13835  xorg_cv_cc_flag_unknown_warning_option=yes
13836else
13837  xorg_cv_cc_flag_unknown_warning_option=no
13838fi
13839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13840fi
13841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13842$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13843	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13844	CFLAGS="$xorg_testset_save_CFLAGS"
13845fi
13846
13847if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13848	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13849		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13850	fi
13851	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13852	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13853$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13854if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13855  $as_echo_n "(cached) " >&6
13856else
13857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13858/* end confdefs.h.  */
13859int i;
13860_ACEOF
13861if ac_fn_c_try_compile "$LINENO"; then :
13862  xorg_cv_cc_flag_unused_command_line_argument=yes
13863else
13864  xorg_cv_cc_flag_unused_command_line_argument=no
13865fi
13866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13867fi
13868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13869$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13870	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13871	CFLAGS="$xorg_testset_save_CFLAGS"
13872fi
13873
13874found="no"
13875
13876	if test $found = "no" ; then
13877		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13878			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13879		fi
13880
13881		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13882			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13883		fi
13884
13885		CFLAGS="$CFLAGS -Wredundant-decls"
13886
13887		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13888$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13889		cacheid=xorg_cv_cc_flag__Wredundant_decls
13890		if eval \${$cacheid+:} false; then :
13891  $as_echo_n "(cached) " >&6
13892else
13893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13894/* end confdefs.h.  */
13895int i;
13896int
13897main ()
13898{
13899
13900  ;
13901  return 0;
13902}
13903_ACEOF
13904if ac_fn_c_try_link "$LINENO"; then :
13905  eval $cacheid=yes
13906else
13907  eval $cacheid=no
13908fi
13909rm -f core conftest.err conftest.$ac_objext \
13910    conftest$ac_exeext conftest.$ac_ext
13911fi
13912
13913
13914		CFLAGS="$xorg_testset_save_CFLAGS"
13915
13916		eval supported=\$$cacheid
13917		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13918$as_echo "$supported" >&6; }
13919		if test "$supported" = "yes" ; then
13920			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13921			found="yes"
13922		fi
13923	fi
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939xorg_testset_save_CFLAGS="$CFLAGS"
13940
13941if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13942	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13943	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13944$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13945if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13946  $as_echo_n "(cached) " >&6
13947else
13948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13949/* end confdefs.h.  */
13950int i;
13951_ACEOF
13952if ac_fn_c_try_compile "$LINENO"; then :
13953  xorg_cv_cc_flag_unknown_warning_option=yes
13954else
13955  xorg_cv_cc_flag_unknown_warning_option=no
13956fi
13957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13958fi
13959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13960$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13961	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13962	CFLAGS="$xorg_testset_save_CFLAGS"
13963fi
13964
13965if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13966	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13967		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13968	fi
13969	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13970	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13971$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13972if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13973  $as_echo_n "(cached) " >&6
13974else
13975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13976/* end confdefs.h.  */
13977int i;
13978_ACEOF
13979if ac_fn_c_try_compile "$LINENO"; then :
13980  xorg_cv_cc_flag_unused_command_line_argument=yes
13981else
13982  xorg_cv_cc_flag_unused_command_line_argument=no
13983fi
13984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13985fi
13986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13987$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13988	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13989	CFLAGS="$xorg_testset_save_CFLAGS"
13990fi
13991
13992found="no"
13993
13994	if test $found = "no" ; then
13995		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13996			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13997		fi
13998
13999		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14000			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14001		fi
14002
14003		CFLAGS="$CFLAGS -Wlogical-op"
14004
14005		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14006$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14007		cacheid=xorg_cv_cc_flag__Wlogical_op
14008		if eval \${$cacheid+:} false; then :
14009  $as_echo_n "(cached) " >&6
14010else
14011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14012/* end confdefs.h.  */
14013int i;
14014int
14015main ()
14016{
14017
14018  ;
14019  return 0;
14020}
14021_ACEOF
14022if ac_fn_c_try_link "$LINENO"; then :
14023  eval $cacheid=yes
14024else
14025  eval $cacheid=no
14026fi
14027rm -f core conftest.err conftest.$ac_objext \
14028    conftest$ac_exeext conftest.$ac_ext
14029fi
14030
14031
14032		CFLAGS="$xorg_testset_save_CFLAGS"
14033
14034		eval supported=\$$cacheid
14035		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14036$as_echo "$supported" >&6; }
14037		if test "$supported" = "yes" ; then
14038			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14039			found="yes"
14040		fi
14041	fi
14042
14043
14044
14045# These are currently disabled because they are noisy.  They will be enabled
14046# in the future once the codebase is sufficiently modernized to silence
14047# them.  For now, I don't want them to drown out the other warnings.
14048# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14049# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14050# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14051
14052# Turn some warnings into errors, so we don't accidently get successful builds
14053# when there are problems that should be fixed.
14054
14055if test "x$SELECTIVE_WERROR" = "xyes" ; then
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069xorg_testset_save_CFLAGS="$CFLAGS"
14070
14071if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14072	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14073	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14074$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14075if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14076  $as_echo_n "(cached) " >&6
14077else
14078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14079/* end confdefs.h.  */
14080int i;
14081_ACEOF
14082if ac_fn_c_try_compile "$LINENO"; then :
14083  xorg_cv_cc_flag_unknown_warning_option=yes
14084else
14085  xorg_cv_cc_flag_unknown_warning_option=no
14086fi
14087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14088fi
14089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14090$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14091	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14092	CFLAGS="$xorg_testset_save_CFLAGS"
14093fi
14094
14095if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14096	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14097		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14098	fi
14099	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14100	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14101$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14102if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14103  $as_echo_n "(cached) " >&6
14104else
14105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14106/* end confdefs.h.  */
14107int i;
14108_ACEOF
14109if ac_fn_c_try_compile "$LINENO"; then :
14110  xorg_cv_cc_flag_unused_command_line_argument=yes
14111else
14112  xorg_cv_cc_flag_unused_command_line_argument=no
14113fi
14114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14115fi
14116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14117$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14118	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14119	CFLAGS="$xorg_testset_save_CFLAGS"
14120fi
14121
14122found="no"
14123
14124	if test $found = "no" ; then
14125		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14126			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14127		fi
14128
14129		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14130			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14131		fi
14132
14133		CFLAGS="$CFLAGS -Werror=implicit"
14134
14135		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14136$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14137		cacheid=xorg_cv_cc_flag__Werror_implicit
14138		if eval \${$cacheid+:} false; then :
14139  $as_echo_n "(cached) " >&6
14140else
14141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14142/* end confdefs.h.  */
14143int i;
14144int
14145main ()
14146{
14147
14148  ;
14149  return 0;
14150}
14151_ACEOF
14152if ac_fn_c_try_link "$LINENO"; then :
14153  eval $cacheid=yes
14154else
14155  eval $cacheid=no
14156fi
14157rm -f core conftest.err conftest.$ac_objext \
14158    conftest$ac_exeext conftest.$ac_ext
14159fi
14160
14161
14162		CFLAGS="$xorg_testset_save_CFLAGS"
14163
14164		eval supported=\$$cacheid
14165		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14166$as_echo "$supported" >&6; }
14167		if test "$supported" = "yes" ; then
14168			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14169			found="yes"
14170		fi
14171	fi
14172
14173	if test $found = "no" ; then
14174		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14175			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14176		fi
14177
14178		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14179			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14180		fi
14181
14182		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14183
14184		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14185$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14186		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14187		if eval \${$cacheid+:} false; then :
14188  $as_echo_n "(cached) " >&6
14189else
14190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14191/* end confdefs.h.  */
14192int i;
14193int
14194main ()
14195{
14196
14197  ;
14198  return 0;
14199}
14200_ACEOF
14201if ac_fn_c_try_link "$LINENO"; then :
14202  eval $cacheid=yes
14203else
14204  eval $cacheid=no
14205fi
14206rm -f core conftest.err conftest.$ac_objext \
14207    conftest$ac_exeext conftest.$ac_ext
14208fi
14209
14210
14211		CFLAGS="$xorg_testset_save_CFLAGS"
14212
14213		eval supported=\$$cacheid
14214		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14215$as_echo "$supported" >&6; }
14216		if test "$supported" = "yes" ; then
14217			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14218			found="yes"
14219		fi
14220	fi
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236xorg_testset_save_CFLAGS="$CFLAGS"
14237
14238if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14239	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14240	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14241$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14242if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14243  $as_echo_n "(cached) " >&6
14244else
14245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14246/* end confdefs.h.  */
14247int i;
14248_ACEOF
14249if ac_fn_c_try_compile "$LINENO"; then :
14250  xorg_cv_cc_flag_unknown_warning_option=yes
14251else
14252  xorg_cv_cc_flag_unknown_warning_option=no
14253fi
14254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14255fi
14256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14257$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14258	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14259	CFLAGS="$xorg_testset_save_CFLAGS"
14260fi
14261
14262if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14263	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14264		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14265	fi
14266	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14267	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14268$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14269if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14270  $as_echo_n "(cached) " >&6
14271else
14272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14273/* end confdefs.h.  */
14274int i;
14275_ACEOF
14276if ac_fn_c_try_compile "$LINENO"; then :
14277  xorg_cv_cc_flag_unused_command_line_argument=yes
14278else
14279  xorg_cv_cc_flag_unused_command_line_argument=no
14280fi
14281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14282fi
14283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14284$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14285	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14286	CFLAGS="$xorg_testset_save_CFLAGS"
14287fi
14288
14289found="no"
14290
14291	if test $found = "no" ; then
14292		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14293			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14294		fi
14295
14296		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14297			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14298		fi
14299
14300		CFLAGS="$CFLAGS -Werror=nonnull"
14301
14302		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14303$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14304		cacheid=xorg_cv_cc_flag__Werror_nonnull
14305		if eval \${$cacheid+:} false; then :
14306  $as_echo_n "(cached) " >&6
14307else
14308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14309/* end confdefs.h.  */
14310int i;
14311int
14312main ()
14313{
14314
14315  ;
14316  return 0;
14317}
14318_ACEOF
14319if ac_fn_c_try_link "$LINENO"; then :
14320  eval $cacheid=yes
14321else
14322  eval $cacheid=no
14323fi
14324rm -f core conftest.err conftest.$ac_objext \
14325    conftest$ac_exeext conftest.$ac_ext
14326fi
14327
14328
14329		CFLAGS="$xorg_testset_save_CFLAGS"
14330
14331		eval supported=\$$cacheid
14332		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14333$as_echo "$supported" >&6; }
14334		if test "$supported" = "yes" ; then
14335			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14336			found="yes"
14337		fi
14338	fi
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354xorg_testset_save_CFLAGS="$CFLAGS"
14355
14356if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14357	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14358	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14359$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14360if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14361  $as_echo_n "(cached) " >&6
14362else
14363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14364/* end confdefs.h.  */
14365int i;
14366_ACEOF
14367if ac_fn_c_try_compile "$LINENO"; then :
14368  xorg_cv_cc_flag_unknown_warning_option=yes
14369else
14370  xorg_cv_cc_flag_unknown_warning_option=no
14371fi
14372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14373fi
14374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14375$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14376	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14377	CFLAGS="$xorg_testset_save_CFLAGS"
14378fi
14379
14380if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14381	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14382		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14383	fi
14384	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14385	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14386$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14387if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14388  $as_echo_n "(cached) " >&6
14389else
14390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14391/* end confdefs.h.  */
14392int i;
14393_ACEOF
14394if ac_fn_c_try_compile "$LINENO"; then :
14395  xorg_cv_cc_flag_unused_command_line_argument=yes
14396else
14397  xorg_cv_cc_flag_unused_command_line_argument=no
14398fi
14399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14400fi
14401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14402$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14403	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14404	CFLAGS="$xorg_testset_save_CFLAGS"
14405fi
14406
14407found="no"
14408
14409	if test $found = "no" ; then
14410		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14411			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14412		fi
14413
14414		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14415			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14416		fi
14417
14418		CFLAGS="$CFLAGS -Werror=init-self"
14419
14420		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14421$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14422		cacheid=xorg_cv_cc_flag__Werror_init_self
14423		if eval \${$cacheid+:} false; then :
14424  $as_echo_n "(cached) " >&6
14425else
14426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14427/* end confdefs.h.  */
14428int i;
14429int
14430main ()
14431{
14432
14433  ;
14434  return 0;
14435}
14436_ACEOF
14437if ac_fn_c_try_link "$LINENO"; then :
14438  eval $cacheid=yes
14439else
14440  eval $cacheid=no
14441fi
14442rm -f core conftest.err conftest.$ac_objext \
14443    conftest$ac_exeext conftest.$ac_ext
14444fi
14445
14446
14447		CFLAGS="$xorg_testset_save_CFLAGS"
14448
14449		eval supported=\$$cacheid
14450		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14451$as_echo "$supported" >&6; }
14452		if test "$supported" = "yes" ; then
14453			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14454			found="yes"
14455		fi
14456	fi
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472xorg_testset_save_CFLAGS="$CFLAGS"
14473
14474if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14475	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14476	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14477$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14478if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14479  $as_echo_n "(cached) " >&6
14480else
14481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14482/* end confdefs.h.  */
14483int i;
14484_ACEOF
14485if ac_fn_c_try_compile "$LINENO"; then :
14486  xorg_cv_cc_flag_unknown_warning_option=yes
14487else
14488  xorg_cv_cc_flag_unknown_warning_option=no
14489fi
14490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14491fi
14492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14493$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14494	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14495	CFLAGS="$xorg_testset_save_CFLAGS"
14496fi
14497
14498if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14499	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14500		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14501	fi
14502	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14503	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14504$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14505if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14506  $as_echo_n "(cached) " >&6
14507else
14508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14509/* end confdefs.h.  */
14510int i;
14511_ACEOF
14512if ac_fn_c_try_compile "$LINENO"; then :
14513  xorg_cv_cc_flag_unused_command_line_argument=yes
14514else
14515  xorg_cv_cc_flag_unused_command_line_argument=no
14516fi
14517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14518fi
14519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14520$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14521	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14522	CFLAGS="$xorg_testset_save_CFLAGS"
14523fi
14524
14525found="no"
14526
14527	if test $found = "no" ; then
14528		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14529			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14530		fi
14531
14532		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14533			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14534		fi
14535
14536		CFLAGS="$CFLAGS -Werror=main"
14537
14538		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14539$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14540		cacheid=xorg_cv_cc_flag__Werror_main
14541		if eval \${$cacheid+:} false; then :
14542  $as_echo_n "(cached) " >&6
14543else
14544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14545/* end confdefs.h.  */
14546int i;
14547int
14548main ()
14549{
14550
14551  ;
14552  return 0;
14553}
14554_ACEOF
14555if ac_fn_c_try_link "$LINENO"; then :
14556  eval $cacheid=yes
14557else
14558  eval $cacheid=no
14559fi
14560rm -f core conftest.err conftest.$ac_objext \
14561    conftest$ac_exeext conftest.$ac_ext
14562fi
14563
14564
14565		CFLAGS="$xorg_testset_save_CFLAGS"
14566
14567		eval supported=\$$cacheid
14568		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14569$as_echo "$supported" >&6; }
14570		if test "$supported" = "yes" ; then
14571			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14572			found="yes"
14573		fi
14574	fi
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590xorg_testset_save_CFLAGS="$CFLAGS"
14591
14592if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14593	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14594	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14595$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14596if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14597  $as_echo_n "(cached) " >&6
14598else
14599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14600/* end confdefs.h.  */
14601int i;
14602_ACEOF
14603if ac_fn_c_try_compile "$LINENO"; then :
14604  xorg_cv_cc_flag_unknown_warning_option=yes
14605else
14606  xorg_cv_cc_flag_unknown_warning_option=no
14607fi
14608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14609fi
14610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14611$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14612	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14613	CFLAGS="$xorg_testset_save_CFLAGS"
14614fi
14615
14616if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14617	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14618		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14619	fi
14620	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14621	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14622$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14623if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14624  $as_echo_n "(cached) " >&6
14625else
14626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14627/* end confdefs.h.  */
14628int i;
14629_ACEOF
14630if ac_fn_c_try_compile "$LINENO"; then :
14631  xorg_cv_cc_flag_unused_command_line_argument=yes
14632else
14633  xorg_cv_cc_flag_unused_command_line_argument=no
14634fi
14635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14636fi
14637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14638$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14639	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14640	CFLAGS="$xorg_testset_save_CFLAGS"
14641fi
14642
14643found="no"
14644
14645	if test $found = "no" ; then
14646		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14647			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14648		fi
14649
14650		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14651			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14652		fi
14653
14654		CFLAGS="$CFLAGS -Werror=missing-braces"
14655
14656		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14657$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14658		cacheid=xorg_cv_cc_flag__Werror_missing_braces
14659		if eval \${$cacheid+:} false; then :
14660  $as_echo_n "(cached) " >&6
14661else
14662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14663/* end confdefs.h.  */
14664int i;
14665int
14666main ()
14667{
14668
14669  ;
14670  return 0;
14671}
14672_ACEOF
14673if ac_fn_c_try_link "$LINENO"; then :
14674  eval $cacheid=yes
14675else
14676  eval $cacheid=no
14677fi
14678rm -f core conftest.err conftest.$ac_objext \
14679    conftest$ac_exeext conftest.$ac_ext
14680fi
14681
14682
14683		CFLAGS="$xorg_testset_save_CFLAGS"
14684
14685		eval supported=\$$cacheid
14686		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14687$as_echo "$supported" >&6; }
14688		if test "$supported" = "yes" ; then
14689			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14690			found="yes"
14691		fi
14692	fi
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708xorg_testset_save_CFLAGS="$CFLAGS"
14709
14710if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14711	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14712	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14713$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14714if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14715  $as_echo_n "(cached) " >&6
14716else
14717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14718/* end confdefs.h.  */
14719int i;
14720_ACEOF
14721if ac_fn_c_try_compile "$LINENO"; then :
14722  xorg_cv_cc_flag_unknown_warning_option=yes
14723else
14724  xorg_cv_cc_flag_unknown_warning_option=no
14725fi
14726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14727fi
14728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14729$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14730	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14731	CFLAGS="$xorg_testset_save_CFLAGS"
14732fi
14733
14734if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14735	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14736		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14737	fi
14738	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14739	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14740$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14741if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14742  $as_echo_n "(cached) " >&6
14743else
14744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14745/* end confdefs.h.  */
14746int i;
14747_ACEOF
14748if ac_fn_c_try_compile "$LINENO"; then :
14749  xorg_cv_cc_flag_unused_command_line_argument=yes
14750else
14751  xorg_cv_cc_flag_unused_command_line_argument=no
14752fi
14753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14754fi
14755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14756$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14757	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14758	CFLAGS="$xorg_testset_save_CFLAGS"
14759fi
14760
14761found="no"
14762
14763	if test $found = "no" ; then
14764		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14765			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14766		fi
14767
14768		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14769			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14770		fi
14771
14772		CFLAGS="$CFLAGS -Werror=sequence-point"
14773
14774		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14775$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14776		cacheid=xorg_cv_cc_flag__Werror_sequence_point
14777		if eval \${$cacheid+:} false; then :
14778  $as_echo_n "(cached) " >&6
14779else
14780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14781/* end confdefs.h.  */
14782int i;
14783int
14784main ()
14785{
14786
14787  ;
14788  return 0;
14789}
14790_ACEOF
14791if ac_fn_c_try_link "$LINENO"; then :
14792  eval $cacheid=yes
14793else
14794  eval $cacheid=no
14795fi
14796rm -f core conftest.err conftest.$ac_objext \
14797    conftest$ac_exeext conftest.$ac_ext
14798fi
14799
14800
14801		CFLAGS="$xorg_testset_save_CFLAGS"
14802
14803		eval supported=\$$cacheid
14804		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14805$as_echo "$supported" >&6; }
14806		if test "$supported" = "yes" ; then
14807			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14808			found="yes"
14809		fi
14810	fi
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826xorg_testset_save_CFLAGS="$CFLAGS"
14827
14828if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14829	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14830	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14831$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14832if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14833  $as_echo_n "(cached) " >&6
14834else
14835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14836/* end confdefs.h.  */
14837int i;
14838_ACEOF
14839if ac_fn_c_try_compile "$LINENO"; then :
14840  xorg_cv_cc_flag_unknown_warning_option=yes
14841else
14842  xorg_cv_cc_flag_unknown_warning_option=no
14843fi
14844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14845fi
14846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14847$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14848	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14849	CFLAGS="$xorg_testset_save_CFLAGS"
14850fi
14851
14852if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14853	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14854		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14855	fi
14856	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14857	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14858$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14859if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14860  $as_echo_n "(cached) " >&6
14861else
14862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14863/* end confdefs.h.  */
14864int i;
14865_ACEOF
14866if ac_fn_c_try_compile "$LINENO"; then :
14867  xorg_cv_cc_flag_unused_command_line_argument=yes
14868else
14869  xorg_cv_cc_flag_unused_command_line_argument=no
14870fi
14871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14872fi
14873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14874$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14875	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14876	CFLAGS="$xorg_testset_save_CFLAGS"
14877fi
14878
14879found="no"
14880
14881	if test $found = "no" ; then
14882		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14883			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14884		fi
14885
14886		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14887			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14888		fi
14889
14890		CFLAGS="$CFLAGS -Werror=return-type"
14891
14892		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14893$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14894		cacheid=xorg_cv_cc_flag__Werror_return_type
14895		if eval \${$cacheid+:} false; then :
14896  $as_echo_n "(cached) " >&6
14897else
14898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14899/* end confdefs.h.  */
14900int i;
14901int
14902main ()
14903{
14904
14905  ;
14906  return 0;
14907}
14908_ACEOF
14909if ac_fn_c_try_link "$LINENO"; then :
14910  eval $cacheid=yes
14911else
14912  eval $cacheid=no
14913fi
14914rm -f core conftest.err conftest.$ac_objext \
14915    conftest$ac_exeext conftest.$ac_ext
14916fi
14917
14918
14919		CFLAGS="$xorg_testset_save_CFLAGS"
14920
14921		eval supported=\$$cacheid
14922		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14923$as_echo "$supported" >&6; }
14924		if test "$supported" = "yes" ; then
14925			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14926			found="yes"
14927		fi
14928	fi
14929
14930	if test $found = "no" ; then
14931		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14932			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14933		fi
14934
14935		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14936			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14937		fi
14938
14939		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14940
14941		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14942$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14943		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
14944		if eval \${$cacheid+:} false; then :
14945  $as_echo_n "(cached) " >&6
14946else
14947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14948/* end confdefs.h.  */
14949int i;
14950int
14951main ()
14952{
14953
14954  ;
14955  return 0;
14956}
14957_ACEOF
14958if ac_fn_c_try_link "$LINENO"; then :
14959  eval $cacheid=yes
14960else
14961  eval $cacheid=no
14962fi
14963rm -f core conftest.err conftest.$ac_objext \
14964    conftest$ac_exeext conftest.$ac_ext
14965fi
14966
14967
14968		CFLAGS="$xorg_testset_save_CFLAGS"
14969
14970		eval supported=\$$cacheid
14971		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14972$as_echo "$supported" >&6; }
14973		if test "$supported" = "yes" ; then
14974			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14975			found="yes"
14976		fi
14977	fi
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993xorg_testset_save_CFLAGS="$CFLAGS"
14994
14995if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14996	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14997	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14998$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14999if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15000  $as_echo_n "(cached) " >&6
15001else
15002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15003/* end confdefs.h.  */
15004int i;
15005_ACEOF
15006if ac_fn_c_try_compile "$LINENO"; then :
15007  xorg_cv_cc_flag_unknown_warning_option=yes
15008else
15009  xorg_cv_cc_flag_unknown_warning_option=no
15010fi
15011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15012fi
15013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15014$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15015	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15016	CFLAGS="$xorg_testset_save_CFLAGS"
15017fi
15018
15019if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15020	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15021		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15022	fi
15023	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15024	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15025$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15026if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15027  $as_echo_n "(cached) " >&6
15028else
15029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15030/* end confdefs.h.  */
15031int i;
15032_ACEOF
15033if ac_fn_c_try_compile "$LINENO"; then :
15034  xorg_cv_cc_flag_unused_command_line_argument=yes
15035else
15036  xorg_cv_cc_flag_unused_command_line_argument=no
15037fi
15038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15039fi
15040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15041$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15042	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15043	CFLAGS="$xorg_testset_save_CFLAGS"
15044fi
15045
15046found="no"
15047
15048	if test $found = "no" ; then
15049		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15050			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15051		fi
15052
15053		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15054			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15055		fi
15056
15057		CFLAGS="$CFLAGS -Werror=trigraphs"
15058
15059		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15060$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15061		cacheid=xorg_cv_cc_flag__Werror_trigraphs
15062		if eval \${$cacheid+:} false; then :
15063  $as_echo_n "(cached) " >&6
15064else
15065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15066/* end confdefs.h.  */
15067int i;
15068int
15069main ()
15070{
15071
15072  ;
15073  return 0;
15074}
15075_ACEOF
15076if ac_fn_c_try_link "$LINENO"; then :
15077  eval $cacheid=yes
15078else
15079  eval $cacheid=no
15080fi
15081rm -f core conftest.err conftest.$ac_objext \
15082    conftest$ac_exeext conftest.$ac_ext
15083fi
15084
15085
15086		CFLAGS="$xorg_testset_save_CFLAGS"
15087
15088		eval supported=\$$cacheid
15089		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15090$as_echo "$supported" >&6; }
15091		if test "$supported" = "yes" ; then
15092			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15093			found="yes"
15094		fi
15095	fi
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111xorg_testset_save_CFLAGS="$CFLAGS"
15112
15113if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15114	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15115	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15116$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15117if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15118  $as_echo_n "(cached) " >&6
15119else
15120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15121/* end confdefs.h.  */
15122int i;
15123_ACEOF
15124if ac_fn_c_try_compile "$LINENO"; then :
15125  xorg_cv_cc_flag_unknown_warning_option=yes
15126else
15127  xorg_cv_cc_flag_unknown_warning_option=no
15128fi
15129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15130fi
15131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15132$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15133	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15134	CFLAGS="$xorg_testset_save_CFLAGS"
15135fi
15136
15137if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15138	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15139		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15140	fi
15141	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15142	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15143$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15144if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15145  $as_echo_n "(cached) " >&6
15146else
15147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15148/* end confdefs.h.  */
15149int i;
15150_ACEOF
15151if ac_fn_c_try_compile "$LINENO"; then :
15152  xorg_cv_cc_flag_unused_command_line_argument=yes
15153else
15154  xorg_cv_cc_flag_unused_command_line_argument=no
15155fi
15156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15157fi
15158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15159$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15160	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15161	CFLAGS="$xorg_testset_save_CFLAGS"
15162fi
15163
15164found="no"
15165
15166	if test $found = "no" ; then
15167		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15168			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15169		fi
15170
15171		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15172			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15173		fi
15174
15175		CFLAGS="$CFLAGS -Werror=array-bounds"
15176
15177		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15178$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15179		cacheid=xorg_cv_cc_flag__Werror_array_bounds
15180		if eval \${$cacheid+:} false; then :
15181  $as_echo_n "(cached) " >&6
15182else
15183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15184/* end confdefs.h.  */
15185int i;
15186int
15187main ()
15188{
15189
15190  ;
15191  return 0;
15192}
15193_ACEOF
15194if ac_fn_c_try_link "$LINENO"; then :
15195  eval $cacheid=yes
15196else
15197  eval $cacheid=no
15198fi
15199rm -f core conftest.err conftest.$ac_objext \
15200    conftest$ac_exeext conftest.$ac_ext
15201fi
15202
15203
15204		CFLAGS="$xorg_testset_save_CFLAGS"
15205
15206		eval supported=\$$cacheid
15207		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15208$as_echo "$supported" >&6; }
15209		if test "$supported" = "yes" ; then
15210			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15211			found="yes"
15212		fi
15213	fi
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229xorg_testset_save_CFLAGS="$CFLAGS"
15230
15231if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15232	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15233	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15234$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15235if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15236  $as_echo_n "(cached) " >&6
15237else
15238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15239/* end confdefs.h.  */
15240int i;
15241_ACEOF
15242if ac_fn_c_try_compile "$LINENO"; then :
15243  xorg_cv_cc_flag_unknown_warning_option=yes
15244else
15245  xorg_cv_cc_flag_unknown_warning_option=no
15246fi
15247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15248fi
15249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15250$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15251	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15252	CFLAGS="$xorg_testset_save_CFLAGS"
15253fi
15254
15255if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15256	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15257		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15258	fi
15259	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15260	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15261$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15262if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15263  $as_echo_n "(cached) " >&6
15264else
15265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15266/* end confdefs.h.  */
15267int i;
15268_ACEOF
15269if ac_fn_c_try_compile "$LINENO"; then :
15270  xorg_cv_cc_flag_unused_command_line_argument=yes
15271else
15272  xorg_cv_cc_flag_unused_command_line_argument=no
15273fi
15274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15275fi
15276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15277$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15278	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15279	CFLAGS="$xorg_testset_save_CFLAGS"
15280fi
15281
15282found="no"
15283
15284	if test $found = "no" ; then
15285		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15286			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15287		fi
15288
15289		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15290			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15291		fi
15292
15293		CFLAGS="$CFLAGS -Werror=write-strings"
15294
15295		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15296$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15297		cacheid=xorg_cv_cc_flag__Werror_write_strings
15298		if eval \${$cacheid+:} false; then :
15299  $as_echo_n "(cached) " >&6
15300else
15301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15302/* end confdefs.h.  */
15303int i;
15304int
15305main ()
15306{
15307
15308  ;
15309  return 0;
15310}
15311_ACEOF
15312if ac_fn_c_try_link "$LINENO"; then :
15313  eval $cacheid=yes
15314else
15315  eval $cacheid=no
15316fi
15317rm -f core conftest.err conftest.$ac_objext \
15318    conftest$ac_exeext conftest.$ac_ext
15319fi
15320
15321
15322		CFLAGS="$xorg_testset_save_CFLAGS"
15323
15324		eval supported=\$$cacheid
15325		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15326$as_echo "$supported" >&6; }
15327		if test "$supported" = "yes" ; then
15328			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15329			found="yes"
15330		fi
15331	fi
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347xorg_testset_save_CFLAGS="$CFLAGS"
15348
15349if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15350	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15351	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15352$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15353if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15354  $as_echo_n "(cached) " >&6
15355else
15356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15357/* end confdefs.h.  */
15358int i;
15359_ACEOF
15360if ac_fn_c_try_compile "$LINENO"; then :
15361  xorg_cv_cc_flag_unknown_warning_option=yes
15362else
15363  xorg_cv_cc_flag_unknown_warning_option=no
15364fi
15365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15366fi
15367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15368$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15369	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15370	CFLAGS="$xorg_testset_save_CFLAGS"
15371fi
15372
15373if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15374	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15375		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15376	fi
15377	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15378	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15379$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15380if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15381  $as_echo_n "(cached) " >&6
15382else
15383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15384/* end confdefs.h.  */
15385int i;
15386_ACEOF
15387if ac_fn_c_try_compile "$LINENO"; then :
15388  xorg_cv_cc_flag_unused_command_line_argument=yes
15389else
15390  xorg_cv_cc_flag_unused_command_line_argument=no
15391fi
15392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15393fi
15394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15395$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15396	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15397	CFLAGS="$xorg_testset_save_CFLAGS"
15398fi
15399
15400found="no"
15401
15402	if test $found = "no" ; then
15403		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15404			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15405		fi
15406
15407		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15408			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15409		fi
15410
15411		CFLAGS="$CFLAGS -Werror=address"
15412
15413		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15414$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15415		cacheid=xorg_cv_cc_flag__Werror_address
15416		if eval \${$cacheid+:} false; then :
15417  $as_echo_n "(cached) " >&6
15418else
15419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15420/* end confdefs.h.  */
15421int i;
15422int
15423main ()
15424{
15425
15426  ;
15427  return 0;
15428}
15429_ACEOF
15430if ac_fn_c_try_link "$LINENO"; then :
15431  eval $cacheid=yes
15432else
15433  eval $cacheid=no
15434fi
15435rm -f core conftest.err conftest.$ac_objext \
15436    conftest$ac_exeext conftest.$ac_ext
15437fi
15438
15439
15440		CFLAGS="$xorg_testset_save_CFLAGS"
15441
15442		eval supported=\$$cacheid
15443		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15444$as_echo "$supported" >&6; }
15445		if test "$supported" = "yes" ; then
15446			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15447			found="yes"
15448		fi
15449	fi
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465xorg_testset_save_CFLAGS="$CFLAGS"
15466
15467if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15468	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15469	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15470$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15471if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15472  $as_echo_n "(cached) " >&6
15473else
15474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15475/* end confdefs.h.  */
15476int i;
15477_ACEOF
15478if ac_fn_c_try_compile "$LINENO"; then :
15479  xorg_cv_cc_flag_unknown_warning_option=yes
15480else
15481  xorg_cv_cc_flag_unknown_warning_option=no
15482fi
15483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15484fi
15485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15486$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15487	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15488	CFLAGS="$xorg_testset_save_CFLAGS"
15489fi
15490
15491if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15492	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15493		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15494	fi
15495	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15496	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15497$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15498if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15499  $as_echo_n "(cached) " >&6
15500else
15501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15502/* end confdefs.h.  */
15503int i;
15504_ACEOF
15505if ac_fn_c_try_compile "$LINENO"; then :
15506  xorg_cv_cc_flag_unused_command_line_argument=yes
15507else
15508  xorg_cv_cc_flag_unused_command_line_argument=no
15509fi
15510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15511fi
15512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15513$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15514	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15515	CFLAGS="$xorg_testset_save_CFLAGS"
15516fi
15517
15518found="no"
15519
15520	if test $found = "no" ; then
15521		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15522			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15523		fi
15524
15525		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15526			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15527		fi
15528
15529		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15530
15531		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15532$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15533		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
15534		if eval \${$cacheid+:} false; then :
15535  $as_echo_n "(cached) " >&6
15536else
15537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15538/* end confdefs.h.  */
15539int i;
15540int
15541main ()
15542{
15543
15544  ;
15545  return 0;
15546}
15547_ACEOF
15548if ac_fn_c_try_link "$LINENO"; then :
15549  eval $cacheid=yes
15550else
15551  eval $cacheid=no
15552fi
15553rm -f core conftest.err conftest.$ac_objext \
15554    conftest$ac_exeext conftest.$ac_ext
15555fi
15556
15557
15558		CFLAGS="$xorg_testset_save_CFLAGS"
15559
15560		eval supported=\$$cacheid
15561		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15562$as_echo "$supported" >&6; }
15563		if test "$supported" = "yes" ; then
15564			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15565			found="yes"
15566		fi
15567	fi
15568
15569	if test $found = "no" ; then
15570		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15571			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15572		fi
15573
15574		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15575			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15576		fi
15577
15578		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15579
15580		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15581$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15582		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
15583		if eval \${$cacheid+:} false; then :
15584  $as_echo_n "(cached) " >&6
15585else
15586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15587/* end confdefs.h.  */
15588int i;
15589int
15590main ()
15591{
15592
15593  ;
15594  return 0;
15595}
15596_ACEOF
15597if ac_fn_c_try_link "$LINENO"; then :
15598  eval $cacheid=yes
15599else
15600  eval $cacheid=no
15601fi
15602rm -f core conftest.err conftest.$ac_objext \
15603    conftest$ac_exeext conftest.$ac_ext
15604fi
15605
15606
15607		CFLAGS="$xorg_testset_save_CFLAGS"
15608
15609		eval supported=\$$cacheid
15610		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15611$as_echo "$supported" >&6; }
15612		if test "$supported" = "yes" ; then
15613			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15614			found="yes"
15615		fi
15616	fi
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632xorg_testset_save_CFLAGS="$CFLAGS"
15633
15634if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15635	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15636	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15637$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15638if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15639  $as_echo_n "(cached) " >&6
15640else
15641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15642/* end confdefs.h.  */
15643int i;
15644_ACEOF
15645if ac_fn_c_try_compile "$LINENO"; then :
15646  xorg_cv_cc_flag_unknown_warning_option=yes
15647else
15648  xorg_cv_cc_flag_unknown_warning_option=no
15649fi
15650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15651fi
15652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15653$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15654	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15655	CFLAGS="$xorg_testset_save_CFLAGS"
15656fi
15657
15658if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15659	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15660		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15661	fi
15662	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15663	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15664$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15665if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15666  $as_echo_n "(cached) " >&6
15667else
15668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15669/* end confdefs.h.  */
15670int i;
15671_ACEOF
15672if ac_fn_c_try_compile "$LINENO"; then :
15673  xorg_cv_cc_flag_unused_command_line_argument=yes
15674else
15675  xorg_cv_cc_flag_unused_command_line_argument=no
15676fi
15677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15678fi
15679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15680$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15681	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15682	CFLAGS="$xorg_testset_save_CFLAGS"
15683fi
15684
15685found="no"
15686
15687	if test $found = "no" ; then
15688		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15689			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15690		fi
15691
15692		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15693			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15694		fi
15695
15696		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15697
15698		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15699$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15700		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
15701		if eval \${$cacheid+:} false; then :
15702  $as_echo_n "(cached) " >&6
15703else
15704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15705/* end confdefs.h.  */
15706int i;
15707int
15708main ()
15709{
15710
15711  ;
15712  return 0;
15713}
15714_ACEOF
15715if ac_fn_c_try_link "$LINENO"; then :
15716  eval $cacheid=yes
15717else
15718  eval $cacheid=no
15719fi
15720rm -f core conftest.err conftest.$ac_objext \
15721    conftest$ac_exeext conftest.$ac_ext
15722fi
15723
15724
15725		CFLAGS="$xorg_testset_save_CFLAGS"
15726
15727		eval supported=\$$cacheid
15728		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15729$as_echo "$supported" >&6; }
15730		if test "$supported" = "yes" ; then
15731			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15732			found="yes"
15733		fi
15734	fi
15735
15736 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15737else
15738{ $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
15739$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;}
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753xorg_testset_save_CFLAGS="$CFLAGS"
15754
15755if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15756	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15757	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15758$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15759if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15760  $as_echo_n "(cached) " >&6
15761else
15762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15763/* end confdefs.h.  */
15764int i;
15765_ACEOF
15766if ac_fn_c_try_compile "$LINENO"; then :
15767  xorg_cv_cc_flag_unknown_warning_option=yes
15768else
15769  xorg_cv_cc_flag_unknown_warning_option=no
15770fi
15771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15772fi
15773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15774$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15775	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15776	CFLAGS="$xorg_testset_save_CFLAGS"
15777fi
15778
15779if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15780	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15781		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15782	fi
15783	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15784	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15785$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15786if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15787  $as_echo_n "(cached) " >&6
15788else
15789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15790/* end confdefs.h.  */
15791int i;
15792_ACEOF
15793if ac_fn_c_try_compile "$LINENO"; then :
15794  xorg_cv_cc_flag_unused_command_line_argument=yes
15795else
15796  xorg_cv_cc_flag_unused_command_line_argument=no
15797fi
15798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15799fi
15800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15801$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15802	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15803	CFLAGS="$xorg_testset_save_CFLAGS"
15804fi
15805
15806found="no"
15807
15808	if test $found = "no" ; then
15809		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15810			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15811		fi
15812
15813		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15814			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15815		fi
15816
15817		CFLAGS="$CFLAGS -Wimplicit"
15818
15819		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15820$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15821		cacheid=xorg_cv_cc_flag__Wimplicit
15822		if eval \${$cacheid+:} false; then :
15823  $as_echo_n "(cached) " >&6
15824else
15825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15826/* end confdefs.h.  */
15827int i;
15828int
15829main ()
15830{
15831
15832  ;
15833  return 0;
15834}
15835_ACEOF
15836if ac_fn_c_try_link "$LINENO"; then :
15837  eval $cacheid=yes
15838else
15839  eval $cacheid=no
15840fi
15841rm -f core conftest.err conftest.$ac_objext \
15842    conftest$ac_exeext conftest.$ac_ext
15843fi
15844
15845
15846		CFLAGS="$xorg_testset_save_CFLAGS"
15847
15848		eval supported=\$$cacheid
15849		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15850$as_echo "$supported" >&6; }
15851		if test "$supported" = "yes" ; then
15852			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15853			found="yes"
15854		fi
15855	fi
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871xorg_testset_save_CFLAGS="$CFLAGS"
15872
15873if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15874	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15875	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15876$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15877if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15878  $as_echo_n "(cached) " >&6
15879else
15880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15881/* end confdefs.h.  */
15882int i;
15883_ACEOF
15884if ac_fn_c_try_compile "$LINENO"; then :
15885  xorg_cv_cc_flag_unknown_warning_option=yes
15886else
15887  xorg_cv_cc_flag_unknown_warning_option=no
15888fi
15889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15890fi
15891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15892$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15893	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15894	CFLAGS="$xorg_testset_save_CFLAGS"
15895fi
15896
15897if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15898	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15899		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15900	fi
15901	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15902	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15903$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15904if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15905  $as_echo_n "(cached) " >&6
15906else
15907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15908/* end confdefs.h.  */
15909int i;
15910_ACEOF
15911if ac_fn_c_try_compile "$LINENO"; then :
15912  xorg_cv_cc_flag_unused_command_line_argument=yes
15913else
15914  xorg_cv_cc_flag_unused_command_line_argument=no
15915fi
15916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15917fi
15918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15919$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15920	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15921	CFLAGS="$xorg_testset_save_CFLAGS"
15922fi
15923
15924found="no"
15925
15926	if test $found = "no" ; then
15927		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15928			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15929		fi
15930
15931		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15932			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15933		fi
15934
15935		CFLAGS="$CFLAGS -Wnonnull"
15936
15937		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15938$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15939		cacheid=xorg_cv_cc_flag__Wnonnull
15940		if eval \${$cacheid+:} false; then :
15941  $as_echo_n "(cached) " >&6
15942else
15943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15944/* end confdefs.h.  */
15945int i;
15946int
15947main ()
15948{
15949
15950  ;
15951  return 0;
15952}
15953_ACEOF
15954if ac_fn_c_try_link "$LINENO"; then :
15955  eval $cacheid=yes
15956else
15957  eval $cacheid=no
15958fi
15959rm -f core conftest.err conftest.$ac_objext \
15960    conftest$ac_exeext conftest.$ac_ext
15961fi
15962
15963
15964		CFLAGS="$xorg_testset_save_CFLAGS"
15965
15966		eval supported=\$$cacheid
15967		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15968$as_echo "$supported" >&6; }
15969		if test "$supported" = "yes" ; then
15970			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15971			found="yes"
15972		fi
15973	fi
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989xorg_testset_save_CFLAGS="$CFLAGS"
15990
15991if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15992	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15993	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15994$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15995if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15996  $as_echo_n "(cached) " >&6
15997else
15998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15999/* end confdefs.h.  */
16000int i;
16001_ACEOF
16002if ac_fn_c_try_compile "$LINENO"; then :
16003  xorg_cv_cc_flag_unknown_warning_option=yes
16004else
16005  xorg_cv_cc_flag_unknown_warning_option=no
16006fi
16007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16008fi
16009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16010$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16011	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16012	CFLAGS="$xorg_testset_save_CFLAGS"
16013fi
16014
16015if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16016	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16017		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16018	fi
16019	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16020	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16021$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16022if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16023  $as_echo_n "(cached) " >&6
16024else
16025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16026/* end confdefs.h.  */
16027int i;
16028_ACEOF
16029if ac_fn_c_try_compile "$LINENO"; then :
16030  xorg_cv_cc_flag_unused_command_line_argument=yes
16031else
16032  xorg_cv_cc_flag_unused_command_line_argument=no
16033fi
16034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16035fi
16036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16037$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16038	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16039	CFLAGS="$xorg_testset_save_CFLAGS"
16040fi
16041
16042found="no"
16043
16044	if test $found = "no" ; then
16045		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16046			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16047		fi
16048
16049		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16050			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16051		fi
16052
16053		CFLAGS="$CFLAGS -Winit-self"
16054
16055		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16056$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16057		cacheid=xorg_cv_cc_flag__Winit_self
16058		if eval \${$cacheid+:} false; then :
16059  $as_echo_n "(cached) " >&6
16060else
16061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16062/* end confdefs.h.  */
16063int i;
16064int
16065main ()
16066{
16067
16068  ;
16069  return 0;
16070}
16071_ACEOF
16072if ac_fn_c_try_link "$LINENO"; then :
16073  eval $cacheid=yes
16074else
16075  eval $cacheid=no
16076fi
16077rm -f core conftest.err conftest.$ac_objext \
16078    conftest$ac_exeext conftest.$ac_ext
16079fi
16080
16081
16082		CFLAGS="$xorg_testset_save_CFLAGS"
16083
16084		eval supported=\$$cacheid
16085		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16086$as_echo "$supported" >&6; }
16087		if test "$supported" = "yes" ; then
16088			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16089			found="yes"
16090		fi
16091	fi
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107xorg_testset_save_CFLAGS="$CFLAGS"
16108
16109if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16110	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16111	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16112$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16113if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16114  $as_echo_n "(cached) " >&6
16115else
16116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16117/* end confdefs.h.  */
16118int i;
16119_ACEOF
16120if ac_fn_c_try_compile "$LINENO"; then :
16121  xorg_cv_cc_flag_unknown_warning_option=yes
16122else
16123  xorg_cv_cc_flag_unknown_warning_option=no
16124fi
16125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16126fi
16127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16128$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16129	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16130	CFLAGS="$xorg_testset_save_CFLAGS"
16131fi
16132
16133if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16134	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16135		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16136	fi
16137	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16138	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16139$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16140if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16141  $as_echo_n "(cached) " >&6
16142else
16143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16144/* end confdefs.h.  */
16145int i;
16146_ACEOF
16147if ac_fn_c_try_compile "$LINENO"; then :
16148  xorg_cv_cc_flag_unused_command_line_argument=yes
16149else
16150  xorg_cv_cc_flag_unused_command_line_argument=no
16151fi
16152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16153fi
16154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16155$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16156	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16157	CFLAGS="$xorg_testset_save_CFLAGS"
16158fi
16159
16160found="no"
16161
16162	if test $found = "no" ; then
16163		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16164			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16165		fi
16166
16167		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16168			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16169		fi
16170
16171		CFLAGS="$CFLAGS -Wmain"
16172
16173		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16174$as_echo_n "checking if $CC supports -Wmain... " >&6; }
16175		cacheid=xorg_cv_cc_flag__Wmain
16176		if eval \${$cacheid+:} false; then :
16177  $as_echo_n "(cached) " >&6
16178else
16179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16180/* end confdefs.h.  */
16181int i;
16182int
16183main ()
16184{
16185
16186  ;
16187  return 0;
16188}
16189_ACEOF
16190if ac_fn_c_try_link "$LINENO"; then :
16191  eval $cacheid=yes
16192else
16193  eval $cacheid=no
16194fi
16195rm -f core conftest.err conftest.$ac_objext \
16196    conftest$ac_exeext conftest.$ac_ext
16197fi
16198
16199
16200		CFLAGS="$xorg_testset_save_CFLAGS"
16201
16202		eval supported=\$$cacheid
16203		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16204$as_echo "$supported" >&6; }
16205		if test "$supported" = "yes" ; then
16206			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16207			found="yes"
16208		fi
16209	fi
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225xorg_testset_save_CFLAGS="$CFLAGS"
16226
16227if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16228	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16229	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16230$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16231if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16232  $as_echo_n "(cached) " >&6
16233else
16234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16235/* end confdefs.h.  */
16236int i;
16237_ACEOF
16238if ac_fn_c_try_compile "$LINENO"; then :
16239  xorg_cv_cc_flag_unknown_warning_option=yes
16240else
16241  xorg_cv_cc_flag_unknown_warning_option=no
16242fi
16243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16244fi
16245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16246$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16247	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16248	CFLAGS="$xorg_testset_save_CFLAGS"
16249fi
16250
16251if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16252	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16253		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16254	fi
16255	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16256	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16257$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16258if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16259  $as_echo_n "(cached) " >&6
16260else
16261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16262/* end confdefs.h.  */
16263int i;
16264_ACEOF
16265if ac_fn_c_try_compile "$LINENO"; then :
16266  xorg_cv_cc_flag_unused_command_line_argument=yes
16267else
16268  xorg_cv_cc_flag_unused_command_line_argument=no
16269fi
16270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16271fi
16272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16273$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16274	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16275	CFLAGS="$xorg_testset_save_CFLAGS"
16276fi
16277
16278found="no"
16279
16280	if test $found = "no" ; then
16281		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16282			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16283		fi
16284
16285		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16286			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16287		fi
16288
16289		CFLAGS="$CFLAGS -Wmissing-braces"
16290
16291		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16292$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16293		cacheid=xorg_cv_cc_flag__Wmissing_braces
16294		if eval \${$cacheid+:} false; then :
16295  $as_echo_n "(cached) " >&6
16296else
16297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16298/* end confdefs.h.  */
16299int i;
16300int
16301main ()
16302{
16303
16304  ;
16305  return 0;
16306}
16307_ACEOF
16308if ac_fn_c_try_link "$LINENO"; then :
16309  eval $cacheid=yes
16310else
16311  eval $cacheid=no
16312fi
16313rm -f core conftest.err conftest.$ac_objext \
16314    conftest$ac_exeext conftest.$ac_ext
16315fi
16316
16317
16318		CFLAGS="$xorg_testset_save_CFLAGS"
16319
16320		eval supported=\$$cacheid
16321		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16322$as_echo "$supported" >&6; }
16323		if test "$supported" = "yes" ; then
16324			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16325			found="yes"
16326		fi
16327	fi
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343xorg_testset_save_CFLAGS="$CFLAGS"
16344
16345if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16346	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16347	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16348$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16349if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16350  $as_echo_n "(cached) " >&6
16351else
16352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16353/* end confdefs.h.  */
16354int i;
16355_ACEOF
16356if ac_fn_c_try_compile "$LINENO"; then :
16357  xorg_cv_cc_flag_unknown_warning_option=yes
16358else
16359  xorg_cv_cc_flag_unknown_warning_option=no
16360fi
16361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16362fi
16363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16364$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16365	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16366	CFLAGS="$xorg_testset_save_CFLAGS"
16367fi
16368
16369if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16370	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16371		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16372	fi
16373	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16374	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16375$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16376if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16377  $as_echo_n "(cached) " >&6
16378else
16379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16380/* end confdefs.h.  */
16381int i;
16382_ACEOF
16383if ac_fn_c_try_compile "$LINENO"; then :
16384  xorg_cv_cc_flag_unused_command_line_argument=yes
16385else
16386  xorg_cv_cc_flag_unused_command_line_argument=no
16387fi
16388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16389fi
16390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16391$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16392	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16393	CFLAGS="$xorg_testset_save_CFLAGS"
16394fi
16395
16396found="no"
16397
16398	if test $found = "no" ; then
16399		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16400			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16401		fi
16402
16403		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16404			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16405		fi
16406
16407		CFLAGS="$CFLAGS -Wsequence-point"
16408
16409		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16410$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16411		cacheid=xorg_cv_cc_flag__Wsequence_point
16412		if eval \${$cacheid+:} false; then :
16413  $as_echo_n "(cached) " >&6
16414else
16415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16416/* end confdefs.h.  */
16417int i;
16418int
16419main ()
16420{
16421
16422  ;
16423  return 0;
16424}
16425_ACEOF
16426if ac_fn_c_try_link "$LINENO"; then :
16427  eval $cacheid=yes
16428else
16429  eval $cacheid=no
16430fi
16431rm -f core conftest.err conftest.$ac_objext \
16432    conftest$ac_exeext conftest.$ac_ext
16433fi
16434
16435
16436		CFLAGS="$xorg_testset_save_CFLAGS"
16437
16438		eval supported=\$$cacheid
16439		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16440$as_echo "$supported" >&6; }
16441		if test "$supported" = "yes" ; then
16442			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16443			found="yes"
16444		fi
16445	fi
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461xorg_testset_save_CFLAGS="$CFLAGS"
16462
16463if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16464	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16465	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16466$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16467if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16468  $as_echo_n "(cached) " >&6
16469else
16470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16471/* end confdefs.h.  */
16472int i;
16473_ACEOF
16474if ac_fn_c_try_compile "$LINENO"; then :
16475  xorg_cv_cc_flag_unknown_warning_option=yes
16476else
16477  xorg_cv_cc_flag_unknown_warning_option=no
16478fi
16479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16480fi
16481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16482$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16483	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16484	CFLAGS="$xorg_testset_save_CFLAGS"
16485fi
16486
16487if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16488	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16489		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16490	fi
16491	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16492	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16493$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16494if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16495  $as_echo_n "(cached) " >&6
16496else
16497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16498/* end confdefs.h.  */
16499int i;
16500_ACEOF
16501if ac_fn_c_try_compile "$LINENO"; then :
16502  xorg_cv_cc_flag_unused_command_line_argument=yes
16503else
16504  xorg_cv_cc_flag_unused_command_line_argument=no
16505fi
16506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16507fi
16508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16509$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16510	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16511	CFLAGS="$xorg_testset_save_CFLAGS"
16512fi
16513
16514found="no"
16515
16516	if test $found = "no" ; then
16517		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16518			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16519		fi
16520
16521		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16522			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16523		fi
16524
16525		CFLAGS="$CFLAGS -Wreturn-type"
16526
16527		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16528$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16529		cacheid=xorg_cv_cc_flag__Wreturn_type
16530		if eval \${$cacheid+:} false; then :
16531  $as_echo_n "(cached) " >&6
16532else
16533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16534/* end confdefs.h.  */
16535int i;
16536int
16537main ()
16538{
16539
16540  ;
16541  return 0;
16542}
16543_ACEOF
16544if ac_fn_c_try_link "$LINENO"; then :
16545  eval $cacheid=yes
16546else
16547  eval $cacheid=no
16548fi
16549rm -f core conftest.err conftest.$ac_objext \
16550    conftest$ac_exeext conftest.$ac_ext
16551fi
16552
16553
16554		CFLAGS="$xorg_testset_save_CFLAGS"
16555
16556		eval supported=\$$cacheid
16557		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16558$as_echo "$supported" >&6; }
16559		if test "$supported" = "yes" ; then
16560			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16561			found="yes"
16562		fi
16563	fi
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579xorg_testset_save_CFLAGS="$CFLAGS"
16580
16581if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16582	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16583	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16584$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16585if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16586  $as_echo_n "(cached) " >&6
16587else
16588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16589/* end confdefs.h.  */
16590int i;
16591_ACEOF
16592if ac_fn_c_try_compile "$LINENO"; then :
16593  xorg_cv_cc_flag_unknown_warning_option=yes
16594else
16595  xorg_cv_cc_flag_unknown_warning_option=no
16596fi
16597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16598fi
16599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16600$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16601	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16602	CFLAGS="$xorg_testset_save_CFLAGS"
16603fi
16604
16605if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16606	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16607		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16608	fi
16609	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16610	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16611$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16612if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16613  $as_echo_n "(cached) " >&6
16614else
16615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16616/* end confdefs.h.  */
16617int i;
16618_ACEOF
16619if ac_fn_c_try_compile "$LINENO"; then :
16620  xorg_cv_cc_flag_unused_command_line_argument=yes
16621else
16622  xorg_cv_cc_flag_unused_command_line_argument=no
16623fi
16624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16625fi
16626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16627$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16628	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16629	CFLAGS="$xorg_testset_save_CFLAGS"
16630fi
16631
16632found="no"
16633
16634	if test $found = "no" ; then
16635		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16636			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16637		fi
16638
16639		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16640			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16641		fi
16642
16643		CFLAGS="$CFLAGS -Wtrigraphs"
16644
16645		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16646$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16647		cacheid=xorg_cv_cc_flag__Wtrigraphs
16648		if eval \${$cacheid+:} false; then :
16649  $as_echo_n "(cached) " >&6
16650else
16651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16652/* end confdefs.h.  */
16653int i;
16654int
16655main ()
16656{
16657
16658  ;
16659  return 0;
16660}
16661_ACEOF
16662if ac_fn_c_try_link "$LINENO"; then :
16663  eval $cacheid=yes
16664else
16665  eval $cacheid=no
16666fi
16667rm -f core conftest.err conftest.$ac_objext \
16668    conftest$ac_exeext conftest.$ac_ext
16669fi
16670
16671
16672		CFLAGS="$xorg_testset_save_CFLAGS"
16673
16674		eval supported=\$$cacheid
16675		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16676$as_echo "$supported" >&6; }
16677		if test "$supported" = "yes" ; then
16678			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16679			found="yes"
16680		fi
16681	fi
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697xorg_testset_save_CFLAGS="$CFLAGS"
16698
16699if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16700	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16701	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16702$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16703if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16704  $as_echo_n "(cached) " >&6
16705else
16706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16707/* end confdefs.h.  */
16708int i;
16709_ACEOF
16710if ac_fn_c_try_compile "$LINENO"; then :
16711  xorg_cv_cc_flag_unknown_warning_option=yes
16712else
16713  xorg_cv_cc_flag_unknown_warning_option=no
16714fi
16715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16716fi
16717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16718$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16719	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16720	CFLAGS="$xorg_testset_save_CFLAGS"
16721fi
16722
16723if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16724	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16725		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16726	fi
16727	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16728	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16729$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16730if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16731  $as_echo_n "(cached) " >&6
16732else
16733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16734/* end confdefs.h.  */
16735int i;
16736_ACEOF
16737if ac_fn_c_try_compile "$LINENO"; then :
16738  xorg_cv_cc_flag_unused_command_line_argument=yes
16739else
16740  xorg_cv_cc_flag_unused_command_line_argument=no
16741fi
16742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16743fi
16744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16745$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16746	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16747	CFLAGS="$xorg_testset_save_CFLAGS"
16748fi
16749
16750found="no"
16751
16752	if test $found = "no" ; then
16753		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16754			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16755		fi
16756
16757		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16758			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16759		fi
16760
16761		CFLAGS="$CFLAGS -Warray-bounds"
16762
16763		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16764$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16765		cacheid=xorg_cv_cc_flag__Warray_bounds
16766		if eval \${$cacheid+:} false; then :
16767  $as_echo_n "(cached) " >&6
16768else
16769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16770/* end confdefs.h.  */
16771int i;
16772int
16773main ()
16774{
16775
16776  ;
16777  return 0;
16778}
16779_ACEOF
16780if ac_fn_c_try_link "$LINENO"; then :
16781  eval $cacheid=yes
16782else
16783  eval $cacheid=no
16784fi
16785rm -f core conftest.err conftest.$ac_objext \
16786    conftest$ac_exeext conftest.$ac_ext
16787fi
16788
16789
16790		CFLAGS="$xorg_testset_save_CFLAGS"
16791
16792		eval supported=\$$cacheid
16793		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16794$as_echo "$supported" >&6; }
16795		if test "$supported" = "yes" ; then
16796			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16797			found="yes"
16798		fi
16799	fi
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815xorg_testset_save_CFLAGS="$CFLAGS"
16816
16817if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16818	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16819	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16820$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16821if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16822  $as_echo_n "(cached) " >&6
16823else
16824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16825/* end confdefs.h.  */
16826int i;
16827_ACEOF
16828if ac_fn_c_try_compile "$LINENO"; then :
16829  xorg_cv_cc_flag_unknown_warning_option=yes
16830else
16831  xorg_cv_cc_flag_unknown_warning_option=no
16832fi
16833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16834fi
16835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16836$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16837	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16838	CFLAGS="$xorg_testset_save_CFLAGS"
16839fi
16840
16841if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16842	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16843		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16844	fi
16845	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16846	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16847$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16848if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16849  $as_echo_n "(cached) " >&6
16850else
16851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16852/* end confdefs.h.  */
16853int i;
16854_ACEOF
16855if ac_fn_c_try_compile "$LINENO"; then :
16856  xorg_cv_cc_flag_unused_command_line_argument=yes
16857else
16858  xorg_cv_cc_flag_unused_command_line_argument=no
16859fi
16860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16861fi
16862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16863$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16864	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16865	CFLAGS="$xorg_testset_save_CFLAGS"
16866fi
16867
16868found="no"
16869
16870	if test $found = "no" ; then
16871		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16872			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16873		fi
16874
16875		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16876			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16877		fi
16878
16879		CFLAGS="$CFLAGS -Wwrite-strings"
16880
16881		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16882$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16883		cacheid=xorg_cv_cc_flag__Wwrite_strings
16884		if eval \${$cacheid+:} false; then :
16885  $as_echo_n "(cached) " >&6
16886else
16887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16888/* end confdefs.h.  */
16889int i;
16890int
16891main ()
16892{
16893
16894  ;
16895  return 0;
16896}
16897_ACEOF
16898if ac_fn_c_try_link "$LINENO"; then :
16899  eval $cacheid=yes
16900else
16901  eval $cacheid=no
16902fi
16903rm -f core conftest.err conftest.$ac_objext \
16904    conftest$ac_exeext conftest.$ac_ext
16905fi
16906
16907
16908		CFLAGS="$xorg_testset_save_CFLAGS"
16909
16910		eval supported=\$$cacheid
16911		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16912$as_echo "$supported" >&6; }
16913		if test "$supported" = "yes" ; then
16914			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16915			found="yes"
16916		fi
16917	fi
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933xorg_testset_save_CFLAGS="$CFLAGS"
16934
16935if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16936	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16937	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16938$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16939if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16940  $as_echo_n "(cached) " >&6
16941else
16942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16943/* end confdefs.h.  */
16944int i;
16945_ACEOF
16946if ac_fn_c_try_compile "$LINENO"; then :
16947  xorg_cv_cc_flag_unknown_warning_option=yes
16948else
16949  xorg_cv_cc_flag_unknown_warning_option=no
16950fi
16951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16952fi
16953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16954$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16955	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16956	CFLAGS="$xorg_testset_save_CFLAGS"
16957fi
16958
16959if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16960	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16961		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16962	fi
16963	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16964	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16965$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16966if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16967  $as_echo_n "(cached) " >&6
16968else
16969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16970/* end confdefs.h.  */
16971int i;
16972_ACEOF
16973if ac_fn_c_try_compile "$LINENO"; then :
16974  xorg_cv_cc_flag_unused_command_line_argument=yes
16975else
16976  xorg_cv_cc_flag_unused_command_line_argument=no
16977fi
16978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16979fi
16980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16981$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16982	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16983	CFLAGS="$xorg_testset_save_CFLAGS"
16984fi
16985
16986found="no"
16987
16988	if test $found = "no" ; then
16989		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16990			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16991		fi
16992
16993		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16994			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16995		fi
16996
16997		CFLAGS="$CFLAGS -Waddress"
16998
16999		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17000$as_echo_n "checking if $CC supports -Waddress... " >&6; }
17001		cacheid=xorg_cv_cc_flag__Waddress
17002		if eval \${$cacheid+:} false; then :
17003  $as_echo_n "(cached) " >&6
17004else
17005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17006/* end confdefs.h.  */
17007int i;
17008int
17009main ()
17010{
17011
17012  ;
17013  return 0;
17014}
17015_ACEOF
17016if ac_fn_c_try_link "$LINENO"; then :
17017  eval $cacheid=yes
17018else
17019  eval $cacheid=no
17020fi
17021rm -f core conftest.err conftest.$ac_objext \
17022    conftest$ac_exeext conftest.$ac_ext
17023fi
17024
17025
17026		CFLAGS="$xorg_testset_save_CFLAGS"
17027
17028		eval supported=\$$cacheid
17029		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17030$as_echo "$supported" >&6; }
17031		if test "$supported" = "yes" ; then
17032			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17033			found="yes"
17034		fi
17035	fi
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051xorg_testset_save_CFLAGS="$CFLAGS"
17052
17053if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17054	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17055	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17056$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17057if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17058  $as_echo_n "(cached) " >&6
17059else
17060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17061/* end confdefs.h.  */
17062int i;
17063_ACEOF
17064if ac_fn_c_try_compile "$LINENO"; then :
17065  xorg_cv_cc_flag_unknown_warning_option=yes
17066else
17067  xorg_cv_cc_flag_unknown_warning_option=no
17068fi
17069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17070fi
17071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17072$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17073	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17074	CFLAGS="$xorg_testset_save_CFLAGS"
17075fi
17076
17077if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17078	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17079		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17080	fi
17081	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17082	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17083$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17084if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17085  $as_echo_n "(cached) " >&6
17086else
17087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17088/* end confdefs.h.  */
17089int i;
17090_ACEOF
17091if ac_fn_c_try_compile "$LINENO"; then :
17092  xorg_cv_cc_flag_unused_command_line_argument=yes
17093else
17094  xorg_cv_cc_flag_unused_command_line_argument=no
17095fi
17096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17097fi
17098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17099$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17100	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17101	CFLAGS="$xorg_testset_save_CFLAGS"
17102fi
17103
17104found="no"
17105
17106	if test $found = "no" ; then
17107		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17108			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17109		fi
17110
17111		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17112			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17113		fi
17114
17115		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17116
17117		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17118$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17119		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17120		if eval \${$cacheid+:} false; then :
17121  $as_echo_n "(cached) " >&6
17122else
17123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17124/* end confdefs.h.  */
17125int i;
17126int
17127main ()
17128{
17129
17130  ;
17131  return 0;
17132}
17133_ACEOF
17134if ac_fn_c_try_link "$LINENO"; then :
17135  eval $cacheid=yes
17136else
17137  eval $cacheid=no
17138fi
17139rm -f core conftest.err conftest.$ac_objext \
17140    conftest$ac_exeext conftest.$ac_ext
17141fi
17142
17143
17144		CFLAGS="$xorg_testset_save_CFLAGS"
17145
17146		eval supported=\$$cacheid
17147		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17148$as_echo "$supported" >&6; }
17149		if test "$supported" = "yes" ; then
17150			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17151			found="yes"
17152		fi
17153	fi
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169xorg_testset_save_CFLAGS="$CFLAGS"
17170
17171if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17172	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17173	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17174$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17175if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17176  $as_echo_n "(cached) " >&6
17177else
17178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17179/* end confdefs.h.  */
17180int i;
17181_ACEOF
17182if ac_fn_c_try_compile "$LINENO"; then :
17183  xorg_cv_cc_flag_unknown_warning_option=yes
17184else
17185  xorg_cv_cc_flag_unknown_warning_option=no
17186fi
17187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17188fi
17189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17190$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17191	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17192	CFLAGS="$xorg_testset_save_CFLAGS"
17193fi
17194
17195if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17196	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17197		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17198	fi
17199	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17200	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17201$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17202if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17203  $as_echo_n "(cached) " >&6
17204else
17205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17206/* end confdefs.h.  */
17207int i;
17208_ACEOF
17209if ac_fn_c_try_compile "$LINENO"; then :
17210  xorg_cv_cc_flag_unused_command_line_argument=yes
17211else
17212  xorg_cv_cc_flag_unused_command_line_argument=no
17213fi
17214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17215fi
17216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17217$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17218	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17219	CFLAGS="$xorg_testset_save_CFLAGS"
17220fi
17221
17222found="no"
17223
17224	if test $found = "no" ; then
17225		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17226			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17227		fi
17228
17229		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17230			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17231		fi
17232
17233		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17234
17235		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17236$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17237		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17238		if eval \${$cacheid+:} false; then :
17239  $as_echo_n "(cached) " >&6
17240else
17241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17242/* end confdefs.h.  */
17243int i;
17244int
17245main ()
17246{
17247
17248  ;
17249  return 0;
17250}
17251_ACEOF
17252if ac_fn_c_try_link "$LINENO"; then :
17253  eval $cacheid=yes
17254else
17255  eval $cacheid=no
17256fi
17257rm -f core conftest.err conftest.$ac_objext \
17258    conftest$ac_exeext conftest.$ac_ext
17259fi
17260
17261
17262		CFLAGS="$xorg_testset_save_CFLAGS"
17263
17264		eval supported=\$$cacheid
17265		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17266$as_echo "$supported" >&6; }
17267		if test "$supported" = "yes" ; then
17268			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17269			found="yes"
17270		fi
17271	fi
17272
17273
17274fi
17275
17276
17277
17278
17279
17280
17281
17282		CWARNFLAGS="$BASE_CFLAGS"
17283		if  test "x$GCC" = xyes ; then
17284		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17285		fi
17286
17287
17288
17289
17290
17291
17292
17293
17294# Check whether --enable-strict-compilation was given.
17295if test "${enable_strict_compilation+set}" = set; then :
17296  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17297else
17298  STRICT_COMPILE=no
17299fi
17300
17301
17302
17303
17304
17305
17306STRICT_CFLAGS=""
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320xorg_testset_save_CFLAGS="$CFLAGS"
17321
17322if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17323	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17324	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17325$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17326if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17327  $as_echo_n "(cached) " >&6
17328else
17329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17330/* end confdefs.h.  */
17331int i;
17332_ACEOF
17333if ac_fn_c_try_compile "$LINENO"; then :
17334  xorg_cv_cc_flag_unknown_warning_option=yes
17335else
17336  xorg_cv_cc_flag_unknown_warning_option=no
17337fi
17338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17339fi
17340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17341$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17342	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17343	CFLAGS="$xorg_testset_save_CFLAGS"
17344fi
17345
17346if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17347	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17348		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17349	fi
17350	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17351	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17352$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17353if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17354  $as_echo_n "(cached) " >&6
17355else
17356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17357/* end confdefs.h.  */
17358int i;
17359_ACEOF
17360if ac_fn_c_try_compile "$LINENO"; then :
17361  xorg_cv_cc_flag_unused_command_line_argument=yes
17362else
17363  xorg_cv_cc_flag_unused_command_line_argument=no
17364fi
17365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17366fi
17367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17368$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17369	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17370	CFLAGS="$xorg_testset_save_CFLAGS"
17371fi
17372
17373found="no"
17374
17375	if test $found = "no" ; then
17376		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17377			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17378		fi
17379
17380		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17381			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17382		fi
17383
17384		CFLAGS="$CFLAGS -pedantic"
17385
17386		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17387$as_echo_n "checking if $CC supports -pedantic... " >&6; }
17388		cacheid=xorg_cv_cc_flag__pedantic
17389		if eval \${$cacheid+:} false; then :
17390  $as_echo_n "(cached) " >&6
17391else
17392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17393/* end confdefs.h.  */
17394int i;
17395int
17396main ()
17397{
17398
17399  ;
17400  return 0;
17401}
17402_ACEOF
17403if ac_fn_c_try_link "$LINENO"; then :
17404  eval $cacheid=yes
17405else
17406  eval $cacheid=no
17407fi
17408rm -f core conftest.err conftest.$ac_objext \
17409    conftest$ac_exeext conftest.$ac_ext
17410fi
17411
17412
17413		CFLAGS="$xorg_testset_save_CFLAGS"
17414
17415		eval supported=\$$cacheid
17416		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17417$as_echo "$supported" >&6; }
17418		if test "$supported" = "yes" ; then
17419			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17420			found="yes"
17421		fi
17422	fi
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438xorg_testset_save_CFLAGS="$CFLAGS"
17439
17440if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17441	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17442	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17443$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17444if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17445  $as_echo_n "(cached) " >&6
17446else
17447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17448/* end confdefs.h.  */
17449int i;
17450_ACEOF
17451if ac_fn_c_try_compile "$LINENO"; then :
17452  xorg_cv_cc_flag_unknown_warning_option=yes
17453else
17454  xorg_cv_cc_flag_unknown_warning_option=no
17455fi
17456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17457fi
17458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17459$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17460	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17461	CFLAGS="$xorg_testset_save_CFLAGS"
17462fi
17463
17464if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17465	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17466		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17467	fi
17468	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17469	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17470$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17471if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17472  $as_echo_n "(cached) " >&6
17473else
17474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17475/* end confdefs.h.  */
17476int i;
17477_ACEOF
17478if ac_fn_c_try_compile "$LINENO"; then :
17479  xorg_cv_cc_flag_unused_command_line_argument=yes
17480else
17481  xorg_cv_cc_flag_unused_command_line_argument=no
17482fi
17483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17484fi
17485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17486$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17487	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17488	CFLAGS="$xorg_testset_save_CFLAGS"
17489fi
17490
17491found="no"
17492
17493	if test $found = "no" ; then
17494		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17495			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17496		fi
17497
17498		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17499			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17500		fi
17501
17502		CFLAGS="$CFLAGS -Werror"
17503
17504		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17505$as_echo_n "checking if $CC supports -Werror... " >&6; }
17506		cacheid=xorg_cv_cc_flag__Werror
17507		if eval \${$cacheid+:} false; then :
17508  $as_echo_n "(cached) " >&6
17509else
17510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17511/* end confdefs.h.  */
17512int i;
17513int
17514main ()
17515{
17516
17517  ;
17518  return 0;
17519}
17520_ACEOF
17521if ac_fn_c_try_link "$LINENO"; then :
17522  eval $cacheid=yes
17523else
17524  eval $cacheid=no
17525fi
17526rm -f core conftest.err conftest.$ac_objext \
17527    conftest$ac_exeext conftest.$ac_ext
17528fi
17529
17530
17531		CFLAGS="$xorg_testset_save_CFLAGS"
17532
17533		eval supported=\$$cacheid
17534		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17535$as_echo "$supported" >&6; }
17536		if test "$supported" = "yes" ; then
17537			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17538			found="yes"
17539		fi
17540	fi
17541
17542	if test $found = "no" ; then
17543		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17544			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17545		fi
17546
17547		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17548			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17549		fi
17550
17551		CFLAGS="$CFLAGS -errwarn"
17552
17553		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17554$as_echo_n "checking if $CC supports -errwarn... " >&6; }
17555		cacheid=xorg_cv_cc_flag__errwarn
17556		if eval \${$cacheid+:} false; then :
17557  $as_echo_n "(cached) " >&6
17558else
17559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17560/* end confdefs.h.  */
17561int i;
17562int
17563main ()
17564{
17565
17566  ;
17567  return 0;
17568}
17569_ACEOF
17570if ac_fn_c_try_link "$LINENO"; then :
17571  eval $cacheid=yes
17572else
17573  eval $cacheid=no
17574fi
17575rm -f core conftest.err conftest.$ac_objext \
17576    conftest$ac_exeext conftest.$ac_ext
17577fi
17578
17579
17580		CFLAGS="$xorg_testset_save_CFLAGS"
17581
17582		eval supported=\$$cacheid
17583		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17584$as_echo "$supported" >&6; }
17585		if test "$supported" = "yes" ; then
17586			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17587			found="yes"
17588		fi
17589	fi
17590
17591
17592
17593# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17594# activate it with -Werror, so we add it here explicitly.
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608xorg_testset_save_CFLAGS="$CFLAGS"
17609
17610if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17611	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17612	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17613$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17614if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17615  $as_echo_n "(cached) " >&6
17616else
17617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17618/* end confdefs.h.  */
17619int i;
17620_ACEOF
17621if ac_fn_c_try_compile "$LINENO"; then :
17622  xorg_cv_cc_flag_unknown_warning_option=yes
17623else
17624  xorg_cv_cc_flag_unknown_warning_option=no
17625fi
17626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17627fi
17628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17629$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17630	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17631	CFLAGS="$xorg_testset_save_CFLAGS"
17632fi
17633
17634if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17635	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17636		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17637	fi
17638	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17639	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17640$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17641if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17642  $as_echo_n "(cached) " >&6
17643else
17644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17645/* end confdefs.h.  */
17646int i;
17647_ACEOF
17648if ac_fn_c_try_compile "$LINENO"; then :
17649  xorg_cv_cc_flag_unused_command_line_argument=yes
17650else
17651  xorg_cv_cc_flag_unused_command_line_argument=no
17652fi
17653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17654fi
17655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17656$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17657	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17658	CFLAGS="$xorg_testset_save_CFLAGS"
17659fi
17660
17661found="no"
17662
17663	if test $found = "no" ; then
17664		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17665			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17666		fi
17667
17668		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17669			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17670		fi
17671
17672		CFLAGS="$CFLAGS -Werror=attributes"
17673
17674		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17675$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17676		cacheid=xorg_cv_cc_flag__Werror_attributes
17677		if eval \${$cacheid+:} false; then :
17678  $as_echo_n "(cached) " >&6
17679else
17680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17681/* end confdefs.h.  */
17682int i;
17683int
17684main ()
17685{
17686
17687  ;
17688  return 0;
17689}
17690_ACEOF
17691if ac_fn_c_try_link "$LINENO"; then :
17692  eval $cacheid=yes
17693else
17694  eval $cacheid=no
17695fi
17696rm -f core conftest.err conftest.$ac_objext \
17697    conftest$ac_exeext conftest.$ac_ext
17698fi
17699
17700
17701		CFLAGS="$xorg_testset_save_CFLAGS"
17702
17703		eval supported=\$$cacheid
17704		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17705$as_echo "$supported" >&6; }
17706		if test "$supported" = "yes" ; then
17707			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17708			found="yes"
17709		fi
17710	fi
17711
17712
17713
17714if test "x$STRICT_COMPILE" = "xyes"; then
17715    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17716    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17717fi
17718
17719
17720
17721
17722
17723
17724cat >>confdefs.h <<_ACEOF
17725#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17726_ACEOF
17727
17728	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17729	if test "x$PVM" = "x"; then
17730		PVM="0"
17731	fi
17732
17733cat >>confdefs.h <<_ACEOF
17734#define PACKAGE_VERSION_MINOR $PVM
17735_ACEOF
17736
17737	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17738	if test "x$PVP" = "x"; then
17739		PVP="0"
17740	fi
17741
17742cat >>confdefs.h <<_ACEOF
17743#define PACKAGE_VERSION_PATCHLEVEL $PVP
17744_ACEOF
17745
17746
17747
17748CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17749mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17750|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17751echo 'git directory not found: installing possibly empty changelog.' >&2)"
17752
17753
17754
17755
17756macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17757INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17758mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17759|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17760echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17761
17762
17763
17764
17765
17766
17767if test x$APP_MAN_SUFFIX = x    ; then
17768    APP_MAN_SUFFIX=1
17769fi
17770if test x$APP_MAN_DIR = x    ; then
17771    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17772fi
17773
17774if test x$LIB_MAN_SUFFIX = x    ; then
17775    LIB_MAN_SUFFIX=3
17776fi
17777if test x$LIB_MAN_DIR = x    ; then
17778    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17779fi
17780
17781if test x$FILE_MAN_SUFFIX = x    ; then
17782    case $host_os in
17783	# Solaris 2.0 - 11 use SysV man page sections
17784	solaris2.?|solaris2.1[01])	FILE_MAN_SUFFIX=4  ;;
17785	*)				FILE_MAN_SUFFIX=5  ;;
17786    esac
17787fi
17788if test x$FILE_MAN_DIR = x    ; then
17789    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17790fi
17791
17792if test x$MISC_MAN_SUFFIX = x    ; then
17793    case $host_os in
17794	# Solaris 2.0 - 11 use SysV man page sections
17795	solaris2.?|solaris2.1[01])	MISC_MAN_SUFFIX=5  ;;
17796	*)				MISC_MAN_SUFFIX=7  ;;
17797    esac
17798fi
17799if test x$MISC_MAN_DIR = x    ; then
17800    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17801fi
17802
17803if test x$DRIVER_MAN_SUFFIX = x    ; then
17804    case $host_os in
17805	# Solaris 2.0 - 11 use SysV man page sections
17806	solaris2.?|solaris2.1[01])	DRIVER_MAN_SUFFIX=7  ;;
17807	*)				DRIVER_MAN_SUFFIX=4  ;;
17808    esac
17809fi
17810if test x$DRIVER_MAN_DIR = x    ; then
17811    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17812fi
17813
17814if test x$ADMIN_MAN_SUFFIX = x    ; then
17815    case $host_os in
17816	# Solaris 2.0 - 11 use SysV man page sections
17817	solaris2.?|solaris2.1[01])	ADMIN_MAN_SUFFIX=1m ;;
17818	*)				ADMIN_MAN_SUFFIX=8  ;;
17819    esac
17820fi
17821if test x$ADMIN_MAN_DIR = x    ; then
17822    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17823fi
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839XORG_MAN_PAGE="X Version 11"
17840
17841MAN_SUBSTS="\
17842	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17843	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17844	-e 's|__xservername__|Xorg|g' \
17845	-e 's|__xconfigfile__|xorg.conf|g' \
17846	-e 's|__projectroot__|\$(prefix)|g' \
17847	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
17848	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17849	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17850	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17851	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17852	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17853	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17854
17855
17856
17857# Check whether --enable-silent-rules was given.
17858if test "${enable_silent_rules+set}" = set; then :
17859  enableval=$enable_silent_rules;
17860fi
17861
17862case $enable_silent_rules in # (((
17863  yes) AM_DEFAULT_VERBOSITY=0;;
17864   no) AM_DEFAULT_VERBOSITY=1;;
17865    *) AM_DEFAULT_VERBOSITY=0;;
17866esac
17867am_make=${MAKE-make}
17868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
17869$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
17870if ${am_cv_make_support_nested_variables+:} false; then :
17871  $as_echo_n "(cached) " >&6
17872else
17873  if $as_echo 'TRUE=$(BAR$(V))
17874BAR0=false
17875BAR1=true
17876V=1
17877am__doit:
17878	@$(TRUE)
17879.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
17880  am_cv_make_support_nested_variables=yes
17881else
17882  am_cv_make_support_nested_variables=no
17883fi
17884fi
17885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
17886$as_echo "$am_cv_make_support_nested_variables" >&6; }
17887if test $am_cv_make_support_nested_variables = yes; then
17888    AM_V='$(V)'
17889  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17890else
17891  AM_V=$AM_DEFAULT_VERBOSITY
17892  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17893fi
17894AM_BACKSLASH='\'
17895
17896
17897
17898
17899# Check whether --enable-docs was given.
17900if test "${enable_docs+set}" = set; then :
17901  enableval=$enable_docs; build_docs=$enableval
17902else
17903  build_docs=yes
17904fi
17905
17906
17907 if test x$build_docs = xyes; then
17908  ENABLE_DOCS_TRUE=
17909  ENABLE_DOCS_FALSE='#'
17910else
17911  ENABLE_DOCS_TRUE='#'
17912  ENABLE_DOCS_FALSE=
17913fi
17914
17915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
17916$as_echo_n "checking whether to build documentation... " >&6; }
17917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
17918$as_echo "$build_docs" >&6; }
17919
17920
17921
17922# Check whether --enable-specs was given.
17923if test "${enable_specs+set}" = set; then :
17924  enableval=$enable_specs; build_specs=$enableval
17925else
17926  build_specs=yes
17927fi
17928
17929
17930 if test x$build_specs = xyes; then
17931  ENABLE_SPECS_TRUE=
17932  ENABLE_SPECS_FALSE='#'
17933else
17934  ENABLE_SPECS_TRUE='#'
17935  ENABLE_SPECS_FALSE=
17936fi
17937
17938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
17939$as_echo_n "checking whether to build functional specifications... " >&6; }
17940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
17941$as_echo "$build_specs" >&6; }
17942
17943
17944
17945
17946
17947# Check whether --with-xmlto was given.
17948if test "${with_xmlto+set}" = set; then :
17949  withval=$with_xmlto; use_xmlto=$withval
17950else
17951  use_xmlto=auto
17952fi
17953
17954
17955
17956if test "x$use_xmlto" = x"auto"; then
17957   # Extract the first word of "xmlto", so it can be a program name with args.
17958set dummy xmlto; ac_word=$2
17959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17960$as_echo_n "checking for $ac_word... " >&6; }
17961if ${ac_cv_path_XMLTO+:} false; then :
17962  $as_echo_n "(cached) " >&6
17963else
17964  case $XMLTO in
17965  [\\/]* | ?:[\\/]*)
17966  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
17967  ;;
17968  *)
17969  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17970for as_dir in $PATH
17971do
17972  IFS=$as_save_IFS
17973  test -z "$as_dir" && as_dir=.
17974    for ac_exec_ext in '' $ac_executable_extensions; do
17975  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17976    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
17977    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17978    break 2
17979  fi
17980done
17981  done
17982IFS=$as_save_IFS
17983
17984  ;;
17985esac
17986fi
17987XMLTO=$ac_cv_path_XMLTO
17988if test -n "$XMLTO"; then
17989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
17990$as_echo "$XMLTO" >&6; }
17991else
17992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17993$as_echo "no" >&6; }
17994fi
17995
17996
17997   if test "x$XMLTO" = "x"; then
17998        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
17999$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
18000	have_xmlto=no
18001   else
18002        have_xmlto=yes
18003   fi
18004elif test "x$use_xmlto" = x"yes" ; then
18005   # Extract the first word of "xmlto", so it can be a program name with args.
18006set dummy xmlto; ac_word=$2
18007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18008$as_echo_n "checking for $ac_word... " >&6; }
18009if ${ac_cv_path_XMLTO+:} false; then :
18010  $as_echo_n "(cached) " >&6
18011else
18012  case $XMLTO in
18013  [\\/]* | ?:[\\/]*)
18014  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
18015  ;;
18016  *)
18017  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18018for as_dir in $PATH
18019do
18020  IFS=$as_save_IFS
18021  test -z "$as_dir" && as_dir=.
18022    for ac_exec_ext in '' $ac_executable_extensions; do
18023  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18024    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
18025    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18026    break 2
18027  fi
18028done
18029  done
18030IFS=$as_save_IFS
18031
18032  ;;
18033esac
18034fi
18035XMLTO=$ac_cv_path_XMLTO
18036if test -n "$XMLTO"; then
18037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18038$as_echo "$XMLTO" >&6; }
18039else
18040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18041$as_echo "no" >&6; }
18042fi
18043
18044
18045   if test "x$XMLTO" = "x"; then
18046        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
18047   fi
18048   have_xmlto=yes
18049elif test "x$use_xmlto" = x"no" ; then
18050   if test "x$XMLTO" != "x"; then
18051      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
18052$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
18053   fi
18054   have_xmlto=no
18055else
18056   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
18057fi
18058
18059# Test for a minimum version of xmlto, if provided.
18060if test "$have_xmlto" = yes; then
18061    # scrape the xmlto version
18062    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
18063$as_echo_n "checking the xmlto version... " >&6; }
18064    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
18065    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
18066$as_echo "$xmlto_version" >&6; }
18067    as_arg_v1=$xmlto_version
18068as_arg_v2=0.0.22
18069awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18070case $? in #(
18071  1) :
18072    if test "x$use_xmlto" = xauto; then
18073            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
18074$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
18075            have_xmlto=no
18076        else
18077            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
18078        fi ;; #(
18079  0) :
18080     ;; #(
18081  2) :
18082     ;; #(
18083  *) :
18084     ;;
18085esac
18086fi
18087
18088# Test for the ability of xmlto to generate a text target
18089#
18090# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
18091# following test for empty XML docbook files.
18092# For compatibility reasons use the following empty XML docbook file and if
18093# it fails try it again with a non-empty XML file.
18094have_xmlto_text=no
18095cat > conftest.xml << "EOF"
18096EOF
18097if test "$have_xmlto" = yes; then :
18098  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
18099  have_xmlto_text=yes
18100else
18101  # Try it again with a non-empty XML file.
18102              cat > conftest.xml << "EOF"
18103<x></x>
18104EOF
18105              if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
18106  have_xmlto_text=yes
18107else
18108  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
18109$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
18110fi
18111fi
18112fi
18113rm -f conftest.xml
18114 if test $have_xmlto_text = yes; then
18115  HAVE_XMLTO_TEXT_TRUE=
18116  HAVE_XMLTO_TEXT_FALSE='#'
18117else
18118  HAVE_XMLTO_TEXT_TRUE='#'
18119  HAVE_XMLTO_TEXT_FALSE=
18120fi
18121
18122 if test "$have_xmlto" = yes; then
18123  HAVE_XMLTO_TRUE=
18124  HAVE_XMLTO_FALSE='#'
18125else
18126  HAVE_XMLTO_TRUE='#'
18127  HAVE_XMLTO_FALSE=
18128fi
18129
18130
18131
18132
18133
18134
18135# Check whether --with-fop was given.
18136if test "${with_fop+set}" = set; then :
18137  withval=$with_fop; use_fop=$withval
18138else
18139  use_fop=auto
18140fi
18141
18142
18143
18144if test "x$use_fop" = x"auto"; then
18145   # Extract the first word of "fop", so it can be a program name with args.
18146set dummy fop; ac_word=$2
18147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18148$as_echo_n "checking for $ac_word... " >&6; }
18149if ${ac_cv_path_FOP+:} false; then :
18150  $as_echo_n "(cached) " >&6
18151else
18152  case $FOP in
18153  [\\/]* | ?:[\\/]*)
18154  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18155  ;;
18156  *)
18157  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18158for as_dir in $PATH
18159do
18160  IFS=$as_save_IFS
18161  test -z "$as_dir" && as_dir=.
18162    for ac_exec_ext in '' $ac_executable_extensions; do
18163  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18164    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18165    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18166    break 2
18167  fi
18168done
18169  done
18170IFS=$as_save_IFS
18171
18172  ;;
18173esac
18174fi
18175FOP=$ac_cv_path_FOP
18176if test -n "$FOP"; then
18177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18178$as_echo "$FOP" >&6; }
18179else
18180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18181$as_echo "no" >&6; }
18182fi
18183
18184
18185   if test "x$FOP" = "x"; then
18186        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
18187$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
18188	have_fop=no
18189   else
18190        have_fop=yes
18191   fi
18192elif test "x$use_fop" = x"yes" ; then
18193   # Extract the first word of "fop", so it can be a program name with args.
18194set dummy fop; ac_word=$2
18195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18196$as_echo_n "checking for $ac_word... " >&6; }
18197if ${ac_cv_path_FOP+:} false; then :
18198  $as_echo_n "(cached) " >&6
18199else
18200  case $FOP in
18201  [\\/]* | ?:[\\/]*)
18202  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18203  ;;
18204  *)
18205  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18206for as_dir in $PATH
18207do
18208  IFS=$as_save_IFS
18209  test -z "$as_dir" && as_dir=.
18210    for ac_exec_ext in '' $ac_executable_extensions; do
18211  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18212    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18213    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18214    break 2
18215  fi
18216done
18217  done
18218IFS=$as_save_IFS
18219
18220  ;;
18221esac
18222fi
18223FOP=$ac_cv_path_FOP
18224if test -n "$FOP"; then
18225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18226$as_echo "$FOP" >&6; }
18227else
18228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18229$as_echo "no" >&6; }
18230fi
18231
18232
18233   if test "x$FOP" = "x"; then
18234        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
18235   fi
18236   have_fop=yes
18237elif test "x$use_fop" = x"no" ; then
18238   if test "x$FOP" != "x"; then
18239      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
18240$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
18241   fi
18242   have_fop=no
18243else
18244   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
18245fi
18246
18247# Test for a minimum version of fop, if provided.
18248
18249 if test "$have_fop" = yes; then
18250  HAVE_FOP_TRUE=
18251  HAVE_FOP_FALSE='#'
18252else
18253  HAVE_FOP_TRUE='#'
18254  HAVE_FOP_FALSE=
18255fi
18256
18257
18258
18259
18260# Preserves the interface, should it be implemented later
18261
18262
18263
18264# Check whether --with-xsltproc was given.
18265if test "${with_xsltproc+set}" = set; then :
18266  withval=$with_xsltproc; use_xsltproc=$withval
18267else
18268  use_xsltproc=auto
18269fi
18270
18271
18272
18273if test "x$use_xsltproc" = x"auto"; then
18274   # Extract the first word of "xsltproc", so it can be a program name with args.
18275set dummy xsltproc; ac_word=$2
18276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18277$as_echo_n "checking for $ac_word... " >&6; }
18278if ${ac_cv_path_XSLTPROC+:} false; then :
18279  $as_echo_n "(cached) " >&6
18280else
18281  case $XSLTPROC in
18282  [\\/]* | ?:[\\/]*)
18283  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
18284  ;;
18285  *)
18286  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18287for as_dir in $PATH
18288do
18289  IFS=$as_save_IFS
18290  test -z "$as_dir" && as_dir=.
18291    for ac_exec_ext in '' $ac_executable_extensions; do
18292  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18293    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
18294    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18295    break 2
18296  fi
18297done
18298  done
18299IFS=$as_save_IFS
18300
18301  ;;
18302esac
18303fi
18304XSLTPROC=$ac_cv_path_XSLTPROC
18305if test -n "$XSLTPROC"; then
18306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18307$as_echo "$XSLTPROC" >&6; }
18308else
18309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18310$as_echo "no" >&6; }
18311fi
18312
18313
18314   if test "x$XSLTPROC" = "x"; then
18315        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
18316$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
18317	have_xsltproc=no
18318   else
18319        have_xsltproc=yes
18320   fi
18321elif test "x$use_xsltproc" = x"yes" ; then
18322   # Extract the first word of "xsltproc", so it can be a program name with args.
18323set dummy xsltproc; ac_word=$2
18324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18325$as_echo_n "checking for $ac_word... " >&6; }
18326if ${ac_cv_path_XSLTPROC+:} false; then :
18327  $as_echo_n "(cached) " >&6
18328else
18329  case $XSLTPROC in
18330  [\\/]* | ?:[\\/]*)
18331  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
18332  ;;
18333  *)
18334  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18335for as_dir in $PATH
18336do
18337  IFS=$as_save_IFS
18338  test -z "$as_dir" && as_dir=.
18339    for ac_exec_ext in '' $ac_executable_extensions; do
18340  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18341    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
18342    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18343    break 2
18344  fi
18345done
18346  done
18347IFS=$as_save_IFS
18348
18349  ;;
18350esac
18351fi
18352XSLTPROC=$ac_cv_path_XSLTPROC
18353if test -n "$XSLTPROC"; then
18354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18355$as_echo "$XSLTPROC" >&6; }
18356else
18357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18358$as_echo "no" >&6; }
18359fi
18360
18361
18362   if test "x$XSLTPROC" = "x"; then
18363        as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
18364   fi
18365   have_xsltproc=yes
18366elif test "x$use_xsltproc" = x"no" ; then
18367   if test "x$XSLTPROC" != "x"; then
18368      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
18369$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
18370   fi
18371   have_xsltproc=no
18372else
18373   as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
18374fi
18375
18376 if test "$have_xsltproc" = yes; then
18377  HAVE_XSLTPROC_TRUE=
18378  HAVE_XSLTPROC_FALSE='#'
18379else
18380  HAVE_XSLTPROC_TRUE='#'
18381  HAVE_XSLTPROC_FALSE=
18382fi
18383
18384
18385
18386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
18387$as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; }
18388XORG_SGML_PATH=
18389if test -n "$PKG_CONFIG" && \
18390    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
18391  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
18392  ac_status=$?
18393  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18394  test $ac_status = 0; }; then
18395  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
18396else
18397  :
18398
18399fi
18400
18401# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
18402# the path and the name of the doc stylesheet
18403if test "x$XORG_SGML_PATH" != "x" ; then
18404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
18405$as_echo "$XORG_SGML_PATH" >&6; }
18406   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
18407   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
18408else
18409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18410$as_echo "no" >&6; }
18411fi
18412
18413
18414
18415
18416 if test "x$XSL_STYLESHEET" != "x"; then
18417  HAVE_STYLESHEETS_TRUE=
18418  HAVE_STYLESHEETS_FALSE='#'
18419else
18420  HAVE_STYLESHEETS_TRUE='#'
18421  HAVE_STYLESHEETS_FALSE=
18422fi
18423
18424
18425
18426
18427
18428
18429# Check whether --with-asciidoc was given.
18430if test "${with_asciidoc+set}" = set; then :
18431  withval=$with_asciidoc; use_asciidoc=$withval
18432else
18433  use_asciidoc=auto
18434fi
18435
18436
18437
18438if test "x$use_asciidoc" = x"auto"; then
18439   # Extract the first word of "asciidoc", so it can be a program name with args.
18440set dummy asciidoc; ac_word=$2
18441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18442$as_echo_n "checking for $ac_word... " >&6; }
18443if ${ac_cv_path_ASCIIDOC+:} false; then :
18444  $as_echo_n "(cached) " >&6
18445else
18446  case $ASCIIDOC in
18447  [\\/]* | ?:[\\/]*)
18448  ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path.
18449  ;;
18450  *)
18451  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18452for as_dir in $PATH
18453do
18454  IFS=$as_save_IFS
18455  test -z "$as_dir" && as_dir=.
18456    for ac_exec_ext in '' $ac_executable_extensions; do
18457  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18458    ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext"
18459    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18460    break 2
18461  fi
18462done
18463  done
18464IFS=$as_save_IFS
18465
18466  ;;
18467esac
18468fi
18469ASCIIDOC=$ac_cv_path_ASCIIDOC
18470if test -n "$ASCIIDOC"; then
18471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
18472$as_echo "$ASCIIDOC" >&6; }
18473else
18474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18475$as_echo "no" >&6; }
18476fi
18477
18478
18479   if test "x$ASCIIDOC" = "x"; then
18480        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc not found - documentation targets will be skipped" >&5
18481$as_echo "$as_me: WARNING: asciidoc not found - documentation targets will be skipped" >&2;}
18482	have_asciidoc=no
18483   else
18484        have_asciidoc=yes
18485   fi
18486elif test "x$use_asciidoc" = x"yes" ; then
18487   # Extract the first word of "asciidoc", so it can be a program name with args.
18488set dummy asciidoc; ac_word=$2
18489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18490$as_echo_n "checking for $ac_word... " >&6; }
18491if ${ac_cv_path_ASCIIDOC+:} false; then :
18492  $as_echo_n "(cached) " >&6
18493else
18494  case $ASCIIDOC in
18495  [\\/]* | ?:[\\/]*)
18496  ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path.
18497  ;;
18498  *)
18499  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18500for as_dir in $PATH
18501do
18502  IFS=$as_save_IFS
18503  test -z "$as_dir" && as_dir=.
18504    for ac_exec_ext in '' $ac_executable_extensions; do
18505  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18506    ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext"
18507    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18508    break 2
18509  fi
18510done
18511  done
18512IFS=$as_save_IFS
18513
18514  ;;
18515esac
18516fi
18517ASCIIDOC=$ac_cv_path_ASCIIDOC
18518if test -n "$ASCIIDOC"; then
18519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
18520$as_echo "$ASCIIDOC" >&6; }
18521else
18522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18523$as_echo "no" >&6; }
18524fi
18525
18526
18527   if test "x$ASCIIDOC" = "x"; then
18528        as_fn_error $? "--with-asciidoc=yes specified but asciidoc not found in PATH" "$LINENO" 5
18529   fi
18530   have_asciidoc=yes
18531elif test "x$use_asciidoc" = x"no" ; then
18532   if test "x$ASCIIDOC" != "x"; then
18533      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&5
18534$as_echo "$as_me: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&2;}
18535   fi
18536   have_asciidoc=no
18537else
18538   as_fn_error $? "--with-asciidoc expects 'yes' or 'no'" "$LINENO" 5
18539fi
18540if test "$have_asciidoc" = yes; then
18541    # scrape the asciidoc version
18542    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the asciidoc version" >&5
18543$as_echo_n "checking the asciidoc version... " >&6; }
18544    asciidoc_version=`$ASCIIDOC --version 2>/dev/null | cut -d' ' -f2`
18545    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $asciidoc_version" >&5
18546$as_echo "$asciidoc_version" >&6; }
18547    as_arg_v1=$asciidoc_version
18548as_arg_v2=8.4.5
18549awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18550case $? in #(
18551  1) :
18552    if test "x$use_asciidoc" = xauto; then
18553            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&5
18554$as_echo "$as_me: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&2;}
18555            have_asciidoc=no
18556        else
18557            as_fn_error $? "asciidoc version $asciidoc_version found, but 8.4.5 needed" "$LINENO" 5
18558        fi ;; #(
18559  0) :
18560     ;; #(
18561  2) :
18562     ;; #(
18563  *) :
18564     ;;
18565esac
18566fi
18567 if test "$have_asciidoc" = yes; then
18568  HAVE_ASCIIDOC_TRUE=
18569  HAVE_ASCIIDOC_FALSE='#'
18570else
18571  HAVE_ASCIIDOC_TRUE='#'
18572  HAVE_ASCIIDOC_FALSE=
18573fi
18574
18575
18576
18577# Check whether --enable-malloc0returnsnull was given.
18578if test "${enable_malloc0returnsnull+set}" = set; then :
18579  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
18580else
18581  MALLOC_ZERO_RETURNS_NULL=auto
18582fi
18583
18584
18585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
18586$as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
18587if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
18588if ${xorg_cv_malloc0_returns_null+:} false; then :
18589  $as_echo_n "(cached) " >&6
18590else
18591  if test "$cross_compiling" = yes; then :
18592  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18593$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18594as_fn_error $? "cannot run test program while cross compiling
18595See \`config.log' for more details" "$LINENO" 5; }
18596else
18597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18598/* end confdefs.h.  */
18599
18600#include <stdlib.h>
18601
18602int
18603main ()
18604{
18605
18606    char *m0, *r0, *c0, *p;
18607    m0 = malloc(0);
18608    p = malloc(10);
18609    r0 = realloc(p,0);
18610    c0 = calloc(0,10);
18611    exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
18612
18613  ;
18614  return 0;
18615}
18616_ACEOF
18617if ac_fn_c_try_run "$LINENO"; then :
18618  xorg_cv_malloc0_returns_null=yes
18619else
18620  xorg_cv_malloc0_returns_null=no
18621fi
18622rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18623  conftest.$ac_objext conftest.beam conftest.$ac_ext
18624fi
18625
18626fi
18627
18628MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
18629fi
18630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
18631$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
18632
18633if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
18634	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
18635	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
18636	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
18637else
18638	MALLOC_ZERO_CFLAGS=""
18639	XMALLOC_ZERO_CFLAGS=""
18640	XTMALLOC_ZERO_CFLAGS=""
18641fi
18642
18643
18644
18645
18646
18647
18648# Obtain compiler/linker options for dependencies
18649
18650pkg_failed=no
18651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XI" >&5
18652$as_echo_n "checking for XI... " >&6; }
18653
18654if test -n "$XI_CFLAGS"; then
18655    pkg_cv_XI_CFLAGS="$XI_CFLAGS"
18656 elif test -n "$PKG_CONFIG"; then
18657    if test -n "$PKG_CONFIG" && \
18658    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1\""; } >&5
18659  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1") 2>&5
18660  ac_status=$?
18661  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18662  test $ac_status = 0; }; then
18663  pkg_cv_XI_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1" 2>/dev/null`
18664		      test "x$?" != "x0" && pkg_failed=yes
18665else
18666  pkg_failed=yes
18667fi
18668 else
18669    pkg_failed=untried
18670fi
18671if test -n "$XI_LIBS"; then
18672    pkg_cv_XI_LIBS="$XI_LIBS"
18673 elif test -n "$PKG_CONFIG"; then
18674    if test -n "$PKG_CONFIG" && \
18675    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1\""; } >&5
18676  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1") 2>&5
18677  ac_status=$?
18678  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18679  test $ac_status = 0; }; then
18680  pkg_cv_XI_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1" 2>/dev/null`
18681		      test "x$?" != "x0" && pkg_failed=yes
18682else
18683  pkg_failed=yes
18684fi
18685 else
18686    pkg_failed=untried
18687fi
18688
18689
18690
18691if test $pkg_failed = yes; then
18692   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18693$as_echo "no" >&6; }
18694
18695if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18696        _pkg_short_errors_supported=yes
18697else
18698        _pkg_short_errors_supported=no
18699fi
18700        if test $_pkg_short_errors_supported = yes; then
18701	        XI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1" 2>&1`
18702        else
18703	        XI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1" 2>&1`
18704        fi
18705	# Put the nasty error message in config.log where it belongs
18706	echo "$XI_PKG_ERRORS" >&5
18707
18708	as_fn_error $? "Package requirements (xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1) were not met:
18709
18710$XI_PKG_ERRORS
18711
18712Consider adjusting the PKG_CONFIG_PATH environment variable if you
18713installed software in a non-standard prefix.
18714
18715Alternatively, you may set the environment variables XI_CFLAGS
18716and XI_LIBS to avoid the need to call pkg-config.
18717See the pkg-config man page for more details." "$LINENO" 5
18718elif test $pkg_failed = untried; then
18719     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18720$as_echo "no" >&6; }
18721	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18722$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18723as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18724is in your PATH or set the PKG_CONFIG environment variable to the full
18725path to pkg-config.
18726
18727Alternatively, you may set the environment variables XI_CFLAGS
18728and XI_LIBS to avoid the need to call pkg-config.
18729See the pkg-config man page for more details.
18730
18731To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18732See \`config.log' for more details" "$LINENO" 5; }
18733else
18734	XI_CFLAGS=$pkg_cv_XI_CFLAGS
18735	XI_LIBS=$pkg_cv_XI_LIBS
18736        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18737$as_echo "yes" >&6; }
18738
18739fi
18740# CFLAGS only for PointerBarrier typedef
18741
18742pkg_failed=no
18743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFIXES" >&5
18744$as_echo_n "checking for XFIXES... " >&6; }
18745
18746if test -n "$XFIXES_CFLAGS"; then
18747    pkg_cv_XFIXES_CFLAGS="$XFIXES_CFLAGS"
18748 elif test -n "$PKG_CONFIG"; then
18749    if test -n "$PKG_CONFIG" && \
18750    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes >= 5\""; } >&5
18751  ($PKG_CONFIG --exists --print-errors "xfixes >= 5") 2>&5
18752  ac_status=$?
18753  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18754  test $ac_status = 0; }; then
18755  pkg_cv_XFIXES_CFLAGS=`$PKG_CONFIG --cflags "xfixes >= 5" 2>/dev/null`
18756		      test "x$?" != "x0" && pkg_failed=yes
18757else
18758  pkg_failed=yes
18759fi
18760 else
18761    pkg_failed=untried
18762fi
18763if test -n "$XFIXES_LIBS"; then
18764    pkg_cv_XFIXES_LIBS="$XFIXES_LIBS"
18765 elif test -n "$PKG_CONFIG"; then
18766    if test -n "$PKG_CONFIG" && \
18767    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes >= 5\""; } >&5
18768  ($PKG_CONFIG --exists --print-errors "xfixes >= 5") 2>&5
18769  ac_status=$?
18770  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18771  test $ac_status = 0; }; then
18772  pkg_cv_XFIXES_LIBS=`$PKG_CONFIG --libs "xfixes >= 5" 2>/dev/null`
18773		      test "x$?" != "x0" && pkg_failed=yes
18774else
18775  pkg_failed=yes
18776fi
18777 else
18778    pkg_failed=untried
18779fi
18780
18781
18782
18783if test $pkg_failed = yes; then
18784   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18785$as_echo "no" >&6; }
18786
18787if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18788        _pkg_short_errors_supported=yes
18789else
18790        _pkg_short_errors_supported=no
18791fi
18792        if test $_pkg_short_errors_supported = yes; then
18793	        XFIXES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xfixes >= 5" 2>&1`
18794        else
18795	        XFIXES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xfixes >= 5" 2>&1`
18796        fi
18797	# Put the nasty error message in config.log where it belongs
18798	echo "$XFIXES_PKG_ERRORS" >&5
18799
18800	as_fn_error $? "Package requirements (xfixes >= 5) were not met:
18801
18802$XFIXES_PKG_ERRORS
18803
18804Consider adjusting the PKG_CONFIG_PATH environment variable if you
18805installed software in a non-standard prefix.
18806
18807Alternatively, you may set the environment variables XFIXES_CFLAGS
18808and XFIXES_LIBS to avoid the need to call pkg-config.
18809See the pkg-config man page for more details." "$LINENO" 5
18810elif test $pkg_failed = untried; then
18811     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18812$as_echo "no" >&6; }
18813	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18814$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18815as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18816is in your PATH or set the PKG_CONFIG environment variable to the full
18817path to pkg-config.
18818
18819Alternatively, you may set the environment variables XFIXES_CFLAGS
18820and XFIXES_LIBS to avoid the need to call pkg-config.
18821See the pkg-config man page for more details.
18822
18823To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18824See \`config.log' for more details" "$LINENO" 5; }
18825else
18826	XFIXES_CFLAGS=$pkg_cv_XFIXES_CFLAGS
18827	XFIXES_LIBS=$pkg_cv_XFIXES_LIBS
18828        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18829$as_echo "yes" >&6; }
18830
18831fi
18832
18833# Check for xmlto and asciidoc for man page conversion
18834# (only needed by people building tarballs)
18835if test "$have_xmlto" = yes && test "$have_asciidoc" = yes; then
18836	have_doctools=yes
18837else
18838	have_doctools=no
18839fi
18840 if test $have_doctools = yes; then
18841  HAVE_DOCTOOLS_TRUE=
18842  HAVE_DOCTOOLS_FALSE='#'
18843else
18844  HAVE_DOCTOOLS_TRUE='#'
18845  HAVE_DOCTOOLS_FALSE=
18846fi
18847
18848if test $have_doctools = no; then
18849	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&5
18850$as_echo "$as_me: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&2;}
18851fi
18852
18853# Determine if the source for man pages is available
18854# It may already be present (tarball) or can be generated using doctools
18855 if test -f "$srcdir/man/XAllowDeviceEvents.man" || \
18856	  test $have_doctools = yes; then
18857  INSTALL_MANPAGES_TRUE=
18858  INSTALL_MANPAGES_FALSE='#'
18859else
18860  INSTALL_MANPAGES_TRUE='#'
18861  INSTALL_MANPAGES_FALSE=
18862fi
18863
18864
18865ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile specs/Makefile xi.pc"
18866
18867cat >confcache <<\_ACEOF
18868# This file is a shell script that caches the results of configure
18869# tests run on this system so they can be shared between configure
18870# scripts and configure runs, see configure's option --config-cache.
18871# It is not useful on other systems.  If it contains results you don't
18872# want to keep, you may remove or edit it.
18873#
18874# config.status only pays attention to the cache file if you give it
18875# the --recheck option to rerun configure.
18876#
18877# `ac_cv_env_foo' variables (set or unset) will be overridden when
18878# loading this file, other *unset* `ac_cv_foo' will be assigned the
18879# following values.
18880
18881_ACEOF
18882
18883# The following way of writing the cache mishandles newlines in values,
18884# but we know of no workaround that is simple, portable, and efficient.
18885# So, we kill variables containing newlines.
18886# Ultrix sh set writes to stderr and can't be redirected directly,
18887# and sets the high bit in the cache file unless we assign to the vars.
18888(
18889  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18890    eval ac_val=\$$ac_var
18891    case $ac_val in #(
18892    *${as_nl}*)
18893      case $ac_var in #(
18894      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18895$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18896      esac
18897      case $ac_var in #(
18898      _ | IFS | as_nl) ;; #(
18899      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18900      *) { eval $ac_var=; unset $ac_var;} ;;
18901      esac ;;
18902    esac
18903  done
18904
18905  (set) 2>&1 |
18906    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18907    *${as_nl}ac_space=\ *)
18908      # `set' does not quote correctly, so add quotes: double-quote
18909      # substitution turns \\\\ into \\, and sed turns \\ into \.
18910      sed -n \
18911	"s/'/'\\\\''/g;
18912	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18913      ;; #(
18914    *)
18915      # `set' quotes correctly as required by POSIX, so do not add quotes.
18916      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18917      ;;
18918    esac |
18919    sort
18920) |
18921  sed '
18922     /^ac_cv_env_/b end
18923     t clear
18924     :clear
18925     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18926     t end
18927     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18928     :end' >>confcache
18929if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18930  if test -w "$cache_file"; then
18931    if test "x$cache_file" != "x/dev/null"; then
18932      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18933$as_echo "$as_me: updating cache $cache_file" >&6;}
18934      if test ! -f "$cache_file" || test -h "$cache_file"; then
18935	cat confcache >"$cache_file"
18936      else
18937        case $cache_file in #(
18938        */* | ?:*)
18939	  mv -f confcache "$cache_file"$$ &&
18940	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18941        *)
18942	  mv -f confcache "$cache_file" ;;
18943	esac
18944      fi
18945    fi
18946  else
18947    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18948$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18949  fi
18950fi
18951rm -f confcache
18952
18953test "x$prefix" = xNONE && prefix=$ac_default_prefix
18954# Let make expand exec_prefix.
18955test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18956
18957DEFS=-DHAVE_CONFIG_H
18958
18959ac_libobjs=
18960ac_ltlibobjs=
18961U=
18962for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18963  # 1. Remove the extension, and $U if already installed.
18964  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18965  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18966  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18967  #    will be set to the directory where LIBOBJS objects are built.
18968  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18969  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18970done
18971LIBOBJS=$ac_libobjs
18972
18973LTLIBOBJS=$ac_ltlibobjs
18974
18975
18976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18977$as_echo_n "checking that generated files are newer than configure... " >&6; }
18978   if test -n "$am_sleep_pid"; then
18979     # Hide warnings about reused PIDs.
18980     wait $am_sleep_pid 2>/dev/null
18981   fi
18982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18983$as_echo "done" >&6; }
18984 if test -n "$EXEEXT"; then
18985  am__EXEEXT_TRUE=
18986  am__EXEEXT_FALSE='#'
18987else
18988  am__EXEEXT_TRUE='#'
18989  am__EXEEXT_FALSE=
18990fi
18991
18992if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18993  as_fn_error $? "conditional \"AMDEP\" was never defined.
18994Usually this means the macro was only invoked conditionally." "$LINENO" 5
18995fi
18996if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18997  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18998Usually this means the macro was only invoked conditionally." "$LINENO" 5
18999fi
19000if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
19001  as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
19002Usually this means the macro was only invoked conditionally." "$LINENO" 5
19003fi
19004if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
19005  as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
19006Usually this means the macro was only invoked conditionally." "$LINENO" 5
19007fi
19008if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
19009  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
19010Usually this means the macro was only invoked conditionally." "$LINENO" 5
19011fi
19012if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
19013  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
19014Usually this means the macro was only invoked conditionally." "$LINENO" 5
19015fi
19016if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
19017  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
19018Usually this means the macro was only invoked conditionally." "$LINENO" 5
19019fi
19020if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
19021  as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
19022Usually this means the macro was only invoked conditionally." "$LINENO" 5
19023fi
19024if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
19025  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
19026Usually this means the macro was only invoked conditionally." "$LINENO" 5
19027fi
19028if test -z "${HAVE_ASCIIDOC_TRUE}" && test -z "${HAVE_ASCIIDOC_FALSE}"; then
19029  as_fn_error $? "conditional \"HAVE_ASCIIDOC\" was never defined.
19030Usually this means the macro was only invoked conditionally." "$LINENO" 5
19031fi
19032if test -z "${HAVE_DOCTOOLS_TRUE}" && test -z "${HAVE_DOCTOOLS_FALSE}"; then
19033  as_fn_error $? "conditional \"HAVE_DOCTOOLS\" was never defined.
19034Usually this means the macro was only invoked conditionally." "$LINENO" 5
19035fi
19036if test -z "${INSTALL_MANPAGES_TRUE}" && test -z "${INSTALL_MANPAGES_FALSE}"; then
19037  as_fn_error $? "conditional \"INSTALL_MANPAGES\" was never defined.
19038Usually this means the macro was only invoked conditionally." "$LINENO" 5
19039fi
19040
19041: "${CONFIG_STATUS=./config.status}"
19042ac_write_fail=0
19043ac_clean_files_save=$ac_clean_files
19044ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19045{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19046$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19047as_write_fail=0
19048cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19049#! $SHELL
19050# Generated by $as_me.
19051# Run this file to recreate the current configuration.
19052# Compiler output produced by configure, useful for debugging
19053# configure, is in config.log if it exists.
19054
19055debug=false
19056ac_cs_recheck=false
19057ac_cs_silent=false
19058
19059SHELL=\${CONFIG_SHELL-$SHELL}
19060export SHELL
19061_ASEOF
19062cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19063## -------------------- ##
19064## M4sh Initialization. ##
19065## -------------------- ##
19066
19067# Be more Bourne compatible
19068DUALCASE=1; export DUALCASE # for MKS sh
19069if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19070  emulate sh
19071  NULLCMD=:
19072  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19073  # is contrary to our usage.  Disable this feature.
19074  alias -g '${1+"$@"}'='"$@"'
19075  setopt NO_GLOB_SUBST
19076else
19077  case `(set -o) 2>/dev/null` in #(
19078  *posix*) :
19079    set -o posix ;; #(
19080  *) :
19081     ;;
19082esac
19083fi
19084
19085
19086as_nl='
19087'
19088export as_nl
19089# Printing a long string crashes Solaris 7 /usr/bin/printf.
19090as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19091as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19092as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19093# Prefer a ksh shell builtin over an external printf program on Solaris,
19094# but without wasting forks for bash or zsh.
19095if test -z "$BASH_VERSION$ZSH_VERSION" \
19096    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19097  as_echo='print -r --'
19098  as_echo_n='print -rn --'
19099elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19100  as_echo='printf %s\n'
19101  as_echo_n='printf %s'
19102else
19103  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19104    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19105    as_echo_n='/usr/ucb/echo -n'
19106  else
19107    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19108    as_echo_n_body='eval
19109      arg=$1;
19110      case $arg in #(
19111      *"$as_nl"*)
19112	expr "X$arg" : "X\\(.*\\)$as_nl";
19113	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19114      esac;
19115      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19116    '
19117    export as_echo_n_body
19118    as_echo_n='sh -c $as_echo_n_body as_echo'
19119  fi
19120  export as_echo_body
19121  as_echo='sh -c $as_echo_body as_echo'
19122fi
19123
19124# The user is always right.
19125if test "${PATH_SEPARATOR+set}" != set; then
19126  PATH_SEPARATOR=:
19127  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19128    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19129      PATH_SEPARATOR=';'
19130  }
19131fi
19132
19133
19134# IFS
19135# We need space, tab and new line, in precisely that order.  Quoting is
19136# there to prevent editors from complaining about space-tab.
19137# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19138# splitting by setting IFS to empty value.)
19139IFS=" ""	$as_nl"
19140
19141# Find who we are.  Look in the path if we contain no directory separator.
19142as_myself=
19143case $0 in #((
19144  *[\\/]* ) as_myself=$0 ;;
19145  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19146for as_dir in $PATH
19147do
19148  IFS=$as_save_IFS
19149  test -z "$as_dir" && as_dir=.
19150    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19151  done
19152IFS=$as_save_IFS
19153
19154     ;;
19155esac
19156# We did not find ourselves, most probably we were run as `sh COMMAND'
19157# in which case we are not to be found in the path.
19158if test "x$as_myself" = x; then
19159  as_myself=$0
19160fi
19161if test ! -f "$as_myself"; then
19162  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19163  exit 1
19164fi
19165
19166# Unset variables that we do not need and which cause bugs (e.g. in
19167# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19168# suppresses any "Segmentation fault" message there.  '((' could
19169# trigger a bug in pdksh 5.2.14.
19170for as_var in BASH_ENV ENV MAIL MAILPATH
19171do eval test x\${$as_var+set} = xset \
19172  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19173done
19174PS1='$ '
19175PS2='> '
19176PS4='+ '
19177
19178# NLS nuisances.
19179LC_ALL=C
19180export LC_ALL
19181LANGUAGE=C
19182export LANGUAGE
19183
19184# CDPATH.
19185(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19186
19187
19188# as_fn_error STATUS ERROR [LINENO LOG_FD]
19189# ----------------------------------------
19190# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19191# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19192# script with STATUS, using 1 if that was 0.
19193as_fn_error ()
19194{
19195  as_status=$1; test $as_status -eq 0 && as_status=1
19196  if test "$4"; then
19197    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19198    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19199  fi
19200  $as_echo "$as_me: error: $2" >&2
19201  as_fn_exit $as_status
19202} # as_fn_error
19203
19204
19205# as_fn_set_status STATUS
19206# -----------------------
19207# Set $? to STATUS, without forking.
19208as_fn_set_status ()
19209{
19210  return $1
19211} # as_fn_set_status
19212
19213# as_fn_exit STATUS
19214# -----------------
19215# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19216as_fn_exit ()
19217{
19218  set +e
19219  as_fn_set_status $1
19220  exit $1
19221} # as_fn_exit
19222
19223# as_fn_unset VAR
19224# ---------------
19225# Portably unset VAR.
19226as_fn_unset ()
19227{
19228  { eval $1=; unset $1;}
19229}
19230as_unset=as_fn_unset
19231# as_fn_append VAR VALUE
19232# ----------------------
19233# Append the text in VALUE to the end of the definition contained in VAR. Take
19234# advantage of any shell optimizations that allow amortized linear growth over
19235# repeated appends, instead of the typical quadratic growth present in naive
19236# implementations.
19237if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19238  eval 'as_fn_append ()
19239  {
19240    eval $1+=\$2
19241  }'
19242else
19243  as_fn_append ()
19244  {
19245    eval $1=\$$1\$2
19246  }
19247fi # as_fn_append
19248
19249# as_fn_arith ARG...
19250# ------------------
19251# Perform arithmetic evaluation on the ARGs, and store the result in the
19252# global $as_val. Take advantage of shells that can avoid forks. The arguments
19253# must be portable across $(()) and expr.
19254if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19255  eval 'as_fn_arith ()
19256  {
19257    as_val=$(( $* ))
19258  }'
19259else
19260  as_fn_arith ()
19261  {
19262    as_val=`expr "$@" || test $? -eq 1`
19263  }
19264fi # as_fn_arith
19265
19266
19267if expr a : '\(a\)' >/dev/null 2>&1 &&
19268   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19269  as_expr=expr
19270else
19271  as_expr=false
19272fi
19273
19274if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19275  as_basename=basename
19276else
19277  as_basename=false
19278fi
19279
19280if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19281  as_dirname=dirname
19282else
19283  as_dirname=false
19284fi
19285
19286as_me=`$as_basename -- "$0" ||
19287$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19288	 X"$0" : 'X\(//\)$' \| \
19289	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19290$as_echo X/"$0" |
19291    sed '/^.*\/\([^/][^/]*\)\/*$/{
19292	    s//\1/
19293	    q
19294	  }
19295	  /^X\/\(\/\/\)$/{
19296	    s//\1/
19297	    q
19298	  }
19299	  /^X\/\(\/\).*/{
19300	    s//\1/
19301	    q
19302	  }
19303	  s/.*/./; q'`
19304
19305# Avoid depending upon Character Ranges.
19306as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19307as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19308as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19309as_cr_digits='0123456789'
19310as_cr_alnum=$as_cr_Letters$as_cr_digits
19311
19312ECHO_C= ECHO_N= ECHO_T=
19313case `echo -n x` in #(((((
19314-n*)
19315  case `echo 'xy\c'` in
19316  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19317  xy)  ECHO_C='\c';;
19318  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19319       ECHO_T='	';;
19320  esac;;
19321*)
19322  ECHO_N='-n';;
19323esac
19324
19325rm -f conf$$ conf$$.exe conf$$.file
19326if test -d conf$$.dir; then
19327  rm -f conf$$.dir/conf$$.file
19328else
19329  rm -f conf$$.dir
19330  mkdir conf$$.dir 2>/dev/null
19331fi
19332if (echo >conf$$.file) 2>/dev/null; then
19333  if ln -s conf$$.file conf$$ 2>/dev/null; then
19334    as_ln_s='ln -s'
19335    # ... but there are two gotchas:
19336    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19337    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19338    # In both cases, we have to default to `cp -pR'.
19339    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19340      as_ln_s='cp -pR'
19341  elif ln conf$$.file conf$$ 2>/dev/null; then
19342    as_ln_s=ln
19343  else
19344    as_ln_s='cp -pR'
19345  fi
19346else
19347  as_ln_s='cp -pR'
19348fi
19349rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19350rmdir conf$$.dir 2>/dev/null
19351
19352
19353# as_fn_mkdir_p
19354# -------------
19355# Create "$as_dir" as a directory, including parents if necessary.
19356as_fn_mkdir_p ()
19357{
19358
19359  case $as_dir in #(
19360  -*) as_dir=./$as_dir;;
19361  esac
19362  test -d "$as_dir" || eval $as_mkdir_p || {
19363    as_dirs=
19364    while :; do
19365      case $as_dir in #(
19366      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19367      *) as_qdir=$as_dir;;
19368      esac
19369      as_dirs="'$as_qdir' $as_dirs"
19370      as_dir=`$as_dirname -- "$as_dir" ||
19371$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19372	 X"$as_dir" : 'X\(//\)[^/]' \| \
19373	 X"$as_dir" : 'X\(//\)$' \| \
19374	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19375$as_echo X"$as_dir" |
19376    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19377	    s//\1/
19378	    q
19379	  }
19380	  /^X\(\/\/\)[^/].*/{
19381	    s//\1/
19382	    q
19383	  }
19384	  /^X\(\/\/\)$/{
19385	    s//\1/
19386	    q
19387	  }
19388	  /^X\(\/\).*/{
19389	    s//\1/
19390	    q
19391	  }
19392	  s/.*/./; q'`
19393      test -d "$as_dir" && break
19394    done
19395    test -z "$as_dirs" || eval "mkdir $as_dirs"
19396  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19397
19398
19399} # as_fn_mkdir_p
19400if mkdir -p . 2>/dev/null; then
19401  as_mkdir_p='mkdir -p "$as_dir"'
19402else
19403  test -d ./-p && rmdir ./-p
19404  as_mkdir_p=false
19405fi
19406
19407
19408# as_fn_executable_p FILE
19409# -----------------------
19410# Test if FILE is an executable regular file.
19411as_fn_executable_p ()
19412{
19413  test -f "$1" && test -x "$1"
19414} # as_fn_executable_p
19415as_test_x='test -x'
19416as_executable_p=as_fn_executable_p
19417
19418# Sed expression to map a string onto a valid CPP name.
19419as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19420
19421# Sed expression to map a string onto a valid variable name.
19422as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19423
19424
19425exec 6>&1
19426## ----------------------------------- ##
19427## Main body of $CONFIG_STATUS script. ##
19428## ----------------------------------- ##
19429_ASEOF
19430test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19431
19432cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19433# Save the log message, to keep $0 and so on meaningful, and to
19434# report actual input values of CONFIG_FILES etc. instead of their
19435# values after options handling.
19436ac_log="
19437This file was extended by libXi $as_me 1.7.7, which was
19438generated by GNU Autoconf 2.69.  Invocation command line was
19439
19440  CONFIG_FILES    = $CONFIG_FILES
19441  CONFIG_HEADERS  = $CONFIG_HEADERS
19442  CONFIG_LINKS    = $CONFIG_LINKS
19443  CONFIG_COMMANDS = $CONFIG_COMMANDS
19444  $ $0 $@
19445
19446on `(hostname || uname -n) 2>/dev/null | sed 1q`
19447"
19448
19449_ACEOF
19450
19451case $ac_config_files in *"
19452"*) set x $ac_config_files; shift; ac_config_files=$*;;
19453esac
19454
19455case $ac_config_headers in *"
19456"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19457esac
19458
19459
19460cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19461# Files that config.status was made for.
19462config_files="$ac_config_files"
19463config_headers="$ac_config_headers"
19464config_commands="$ac_config_commands"
19465
19466_ACEOF
19467
19468cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19469ac_cs_usage="\
19470\`$as_me' instantiates files and other configuration actions
19471from templates according to the current configuration.  Unless the files
19472and actions are specified as TAGs, all are instantiated by default.
19473
19474Usage: $0 [OPTION]... [TAG]...
19475
19476  -h, --help       print this help, then exit
19477  -V, --version    print version number and configuration settings, then exit
19478      --config     print configuration, then exit
19479  -q, --quiet, --silent
19480                   do not print progress messages
19481  -d, --debug      don't remove temporary files
19482      --recheck    update $as_me by reconfiguring in the same conditions
19483      --file=FILE[:TEMPLATE]
19484                   instantiate the configuration file FILE
19485      --header=FILE[:TEMPLATE]
19486                   instantiate the configuration header FILE
19487
19488Configuration files:
19489$config_files
19490
19491Configuration headers:
19492$config_headers
19493
19494Configuration commands:
19495$config_commands
19496
19497Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19498
19499_ACEOF
19500cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19501ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19502ac_cs_version="\\
19503libXi config.status 1.7.7
19504configured by $0, generated by GNU Autoconf 2.69,
19505  with options \\"\$ac_cs_config\\"
19506
19507Copyright (C) 2012 Free Software Foundation, Inc.
19508This config.status script is free software; the Free Software Foundation
19509gives unlimited permission to copy, distribute and modify it."
19510
19511ac_pwd='$ac_pwd'
19512srcdir='$srcdir'
19513INSTALL='$INSTALL'
19514MKDIR_P='$MKDIR_P'
19515AWK='$AWK'
19516test -n "\$AWK" || AWK=awk
19517_ACEOF
19518
19519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19520# The default lists apply if the user does not specify any file.
19521ac_need_defaults=:
19522while test $# != 0
19523do
19524  case $1 in
19525  --*=?*)
19526    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19527    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19528    ac_shift=:
19529    ;;
19530  --*=)
19531    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19532    ac_optarg=
19533    ac_shift=:
19534    ;;
19535  *)
19536    ac_option=$1
19537    ac_optarg=$2
19538    ac_shift=shift
19539    ;;
19540  esac
19541
19542  case $ac_option in
19543  # Handling of the options.
19544  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19545    ac_cs_recheck=: ;;
19546  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19547    $as_echo "$ac_cs_version"; exit ;;
19548  --config | --confi | --conf | --con | --co | --c )
19549    $as_echo "$ac_cs_config"; exit ;;
19550  --debug | --debu | --deb | --de | --d | -d )
19551    debug=: ;;
19552  --file | --fil | --fi | --f )
19553    $ac_shift
19554    case $ac_optarg in
19555    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19556    '') as_fn_error $? "missing file argument" ;;
19557    esac
19558    as_fn_append CONFIG_FILES " '$ac_optarg'"
19559    ac_need_defaults=false;;
19560  --header | --heade | --head | --hea )
19561    $ac_shift
19562    case $ac_optarg in
19563    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19564    esac
19565    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19566    ac_need_defaults=false;;
19567  --he | --h)
19568    # Conflict between --help and --header
19569    as_fn_error $? "ambiguous option: \`$1'
19570Try \`$0 --help' for more information.";;
19571  --help | --hel | -h )
19572    $as_echo "$ac_cs_usage"; exit ;;
19573  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19574  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19575    ac_cs_silent=: ;;
19576
19577  # This is an error.
19578  -*) as_fn_error $? "unrecognized option: \`$1'
19579Try \`$0 --help' for more information." ;;
19580
19581  *) as_fn_append ac_config_targets " $1"
19582     ac_need_defaults=false ;;
19583
19584  esac
19585  shift
19586done
19587
19588ac_configure_extra_args=
19589
19590if $ac_cs_silent; then
19591  exec 6>/dev/null
19592  ac_configure_extra_args="$ac_configure_extra_args --silent"
19593fi
19594
19595_ACEOF
19596cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19597if \$ac_cs_recheck; then
19598  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19599  shift
19600  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19601  CONFIG_SHELL='$SHELL'
19602  export CONFIG_SHELL
19603  exec "\$@"
19604fi
19605
19606_ACEOF
19607cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19608exec 5>>config.log
19609{
19610  echo
19611  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19612## Running $as_me. ##
19613_ASBOX
19614  $as_echo "$ac_log"
19615} >&5
19616
19617_ACEOF
19618cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19619#
19620# INIT-COMMANDS
19621#
19622AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19623
19624
19625# The HP-UX ksh and POSIX shell print the target directory to stdout
19626# if CDPATH is set.
19627(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19628
19629sed_quote_subst='$sed_quote_subst'
19630double_quote_subst='$double_quote_subst'
19631delay_variable_subst='$delay_variable_subst'
19632macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19633macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19634enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19635enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19636pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19637enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19638SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19639ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19640PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19641host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19642host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19643host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19644build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19645build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19646build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19647SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19648Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19649GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19650EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19651FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19652LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19653NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19654LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19655max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19656ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19657exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19658lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19659lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19660lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19661lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19662lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19663reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19664reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19665OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19666deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19667file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19668file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19669want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19670DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19671sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19672AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19673AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19674archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19675STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19676RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19677old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19678old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19679old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19680lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19681CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19682CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19683compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19684GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19685lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19686lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19687lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19688lt_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"`'
19689nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19690lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19691objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19692MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19693lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19694lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19695lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19696lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19697lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19698need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19699MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19700DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19701NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19702LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19703OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19704OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19705libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19706shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19707extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19708archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19709enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19710export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19711whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19712compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19713old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19714old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19715archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19716archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19717module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19718module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19719with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19720allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19721no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19722hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19723hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19724hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19725hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19726hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19727hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19728hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19729inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19730link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19731always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19732export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19733exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19734include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19735prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19736postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19737file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19738variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19739need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19740need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19741version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19742runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19743shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19744shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19745libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19746library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19747soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19748install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19749postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19750postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19751finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19752finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19753hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19754sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19755sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19756hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19757enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19758enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19759enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19760old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19761striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19762
19763LTCC='$LTCC'
19764LTCFLAGS='$LTCFLAGS'
19765compiler='$compiler_DEFAULT'
19766
19767# A function that is used when there is no print builtin or printf.
19768func_fallback_echo ()
19769{
19770  eval 'cat <<_LTECHO_EOF
19771\$1
19772_LTECHO_EOF'
19773}
19774
19775# Quote evaled strings.
19776for var in SHELL \
19777ECHO \
19778PATH_SEPARATOR \
19779SED \
19780GREP \
19781EGREP \
19782FGREP \
19783LD \
19784NM \
19785LN_S \
19786lt_SP2NL \
19787lt_NL2SP \
19788reload_flag \
19789OBJDUMP \
19790deplibs_check_method \
19791file_magic_cmd \
19792file_magic_glob \
19793want_nocaseglob \
19794DLLTOOL \
19795sharedlib_from_linklib_cmd \
19796AR \
19797AR_FLAGS \
19798archiver_list_spec \
19799STRIP \
19800RANLIB \
19801CC \
19802CFLAGS \
19803compiler \
19804lt_cv_sys_global_symbol_pipe \
19805lt_cv_sys_global_symbol_to_cdecl \
19806lt_cv_sys_global_symbol_to_c_name_address \
19807lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19808nm_file_list_spec \
19809lt_prog_compiler_no_builtin_flag \
19810lt_prog_compiler_pic \
19811lt_prog_compiler_wl \
19812lt_prog_compiler_static \
19813lt_cv_prog_compiler_c_o \
19814need_locks \
19815MANIFEST_TOOL \
19816DSYMUTIL \
19817NMEDIT \
19818LIPO \
19819OTOOL \
19820OTOOL64 \
19821shrext_cmds \
19822export_dynamic_flag_spec \
19823whole_archive_flag_spec \
19824compiler_needs_object \
19825with_gnu_ld \
19826allow_undefined_flag \
19827no_undefined_flag \
19828hardcode_libdir_flag_spec \
19829hardcode_libdir_separator \
19830exclude_expsyms \
19831include_expsyms \
19832file_list_spec \
19833variables_saved_for_relink \
19834libname_spec \
19835library_names_spec \
19836soname_spec \
19837install_override_mode \
19838finish_eval \
19839old_striplib \
19840striplib; do
19841    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19842    *[\\\\\\\`\\"\\\$]*)
19843      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19844      ;;
19845    *)
19846      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19847      ;;
19848    esac
19849done
19850
19851# Double-quote double-evaled strings.
19852for var in reload_cmds \
19853old_postinstall_cmds \
19854old_postuninstall_cmds \
19855old_archive_cmds \
19856extract_expsyms_cmds \
19857old_archive_from_new_cmds \
19858old_archive_from_expsyms_cmds \
19859archive_cmds \
19860archive_expsym_cmds \
19861module_cmds \
19862module_expsym_cmds \
19863export_symbols_cmds \
19864prelink_cmds \
19865postlink_cmds \
19866postinstall_cmds \
19867postuninstall_cmds \
19868finish_cmds \
19869sys_lib_search_path_spec \
19870sys_lib_dlsearch_path_spec; do
19871    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19872    *[\\\\\\\`\\"\\\$]*)
19873      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19874      ;;
19875    *)
19876      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19877      ;;
19878    esac
19879done
19880
19881ac_aux_dir='$ac_aux_dir'
19882xsi_shell='$xsi_shell'
19883lt_shell_append='$lt_shell_append'
19884
19885# See if we are running on zsh, and set the options which allow our
19886# commands through without removal of \ escapes INIT.
19887if test -n "\${ZSH_VERSION+set}" ; then
19888   setopt NO_GLOB_SUBST
19889fi
19890
19891
19892    PACKAGE='$PACKAGE'
19893    VERSION='$VERSION'
19894    TIMESTAMP='$TIMESTAMP'
19895    RM='$RM'
19896    ofile='$ofile'
19897
19898
19899
19900
19901_ACEOF
19902
19903cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19904
19905# Handling of arguments.
19906for ac_config_target in $ac_config_targets
19907do
19908  case $ac_config_target in
19909    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
19910    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19911    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19912    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19913    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19914    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19915    "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
19916    "xi.pc") CONFIG_FILES="$CONFIG_FILES xi.pc" ;;
19917
19918  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19919  esac
19920done
19921
19922
19923# If the user did not use the arguments to specify the items to instantiate,
19924# then the envvar interface is used.  Set only those that are not.
19925# We use the long form for the default assignment because of an extremely
19926# bizarre bug on SunOS 4.1.3.
19927if $ac_need_defaults; then
19928  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19929  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19930  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19931fi
19932
19933# Have a temporary directory for convenience.  Make it in the build tree
19934# simply because there is no reason against having it here, and in addition,
19935# creating and moving files from /tmp can sometimes cause problems.
19936# Hook for its removal unless debugging.
19937# Note that there is a small window in which the directory will not be cleaned:
19938# after its creation but before its name has been assigned to `$tmp'.
19939$debug ||
19940{
19941  tmp= ac_tmp=
19942  trap 'exit_status=$?
19943  : "${ac_tmp:=$tmp}"
19944  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19945' 0
19946  trap 'as_fn_exit 1' 1 2 13 15
19947}
19948# Create a (secure) tmp directory for tmp files.
19949
19950{
19951  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19952  test -d "$tmp"
19953}  ||
19954{
19955  tmp=./conf$$-$RANDOM
19956  (umask 077 && mkdir "$tmp")
19957} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19958ac_tmp=$tmp
19959
19960# Set up the scripts for CONFIG_FILES section.
19961# No need to generate them if there are no CONFIG_FILES.
19962# This happens for instance with `./config.status config.h'.
19963if test -n "$CONFIG_FILES"; then
19964
19965
19966ac_cr=`echo X | tr X '\015'`
19967# On cygwin, bash can eat \r inside `` if the user requested igncr.
19968# But we know of no other shell where ac_cr would be empty at this
19969# point, so we can use a bashism as a fallback.
19970if test "x$ac_cr" = x; then
19971  eval ac_cr=\$\'\\r\'
19972fi
19973ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19974if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19975  ac_cs_awk_cr='\\r'
19976else
19977  ac_cs_awk_cr=$ac_cr
19978fi
19979
19980echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19981_ACEOF
19982
19983
19984{
19985  echo "cat >conf$$subs.awk <<_ACEOF" &&
19986  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19987  echo "_ACEOF"
19988} >conf$$subs.sh ||
19989  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19990ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19991ac_delim='%!_!# '
19992for ac_last_try in false false false false false :; do
19993  . ./conf$$subs.sh ||
19994    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19995
19996  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19997  if test $ac_delim_n = $ac_delim_num; then
19998    break
19999  elif $ac_last_try; then
20000    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20001  else
20002    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20003  fi
20004done
20005rm -f conf$$subs.sh
20006
20007cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20008cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20009_ACEOF
20010sed -n '
20011h
20012s/^/S["/; s/!.*/"]=/
20013p
20014g
20015s/^[^!]*!//
20016:repl
20017t repl
20018s/'"$ac_delim"'$//
20019t delim
20020:nl
20021h
20022s/\(.\{148\}\)..*/\1/
20023t more1
20024s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20025p
20026n
20027b repl
20028:more1
20029s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20030p
20031g
20032s/.\{148\}//
20033t nl
20034:delim
20035h
20036s/\(.\{148\}\)..*/\1/
20037t more2
20038s/["\\]/\\&/g; s/^/"/; s/$/"/
20039p
20040b
20041:more2
20042s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20043p
20044g
20045s/.\{148\}//
20046t delim
20047' <conf$$subs.awk | sed '
20048/^[^""]/{
20049  N
20050  s/\n//
20051}
20052' >>$CONFIG_STATUS || ac_write_fail=1
20053rm -f conf$$subs.awk
20054cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20055_ACAWK
20056cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20057  for (key in S) S_is_set[key] = 1
20058  FS = ""
20059
20060}
20061{
20062  line = $ 0
20063  nfields = split(line, field, "@")
20064  substed = 0
20065  len = length(field[1])
20066  for (i = 2; i < nfields; i++) {
20067    key = field[i]
20068    keylen = length(key)
20069    if (S_is_set[key]) {
20070      value = S[key]
20071      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20072      len += length(value) + length(field[++i])
20073      substed = 1
20074    } else
20075      len += 1 + keylen
20076  }
20077
20078  print line
20079}
20080
20081_ACAWK
20082_ACEOF
20083cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20084if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20085  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20086else
20087  cat
20088fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20089  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20090_ACEOF
20091
20092# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20093# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20094# trailing colons and then remove the whole line if VPATH becomes empty
20095# (actually we leave an empty line to preserve line numbers).
20096if test "x$srcdir" = x.; then
20097  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20098h
20099s///
20100s/^/:/
20101s/[	 ]*$/:/
20102s/:\$(srcdir):/:/g
20103s/:\${srcdir}:/:/g
20104s/:@srcdir@:/:/g
20105s/^:*//
20106s/:*$//
20107x
20108s/\(=[	 ]*\).*/\1/
20109G
20110s/\n//
20111s/^[^=]*=[	 ]*$//
20112}'
20113fi
20114
20115cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20116fi # test -n "$CONFIG_FILES"
20117
20118# Set up the scripts for CONFIG_HEADERS section.
20119# No need to generate them if there are no CONFIG_HEADERS.
20120# This happens for instance with `./config.status Makefile'.
20121if test -n "$CONFIG_HEADERS"; then
20122cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20123BEGIN {
20124_ACEOF
20125
20126# Transform confdefs.h into an awk script `defines.awk', embedded as
20127# here-document in config.status, that substitutes the proper values into
20128# config.h.in to produce config.h.
20129
20130# Create a delimiter string that does not exist in confdefs.h, to ease
20131# handling of long lines.
20132ac_delim='%!_!# '
20133for ac_last_try in false false :; do
20134  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20135  if test -z "$ac_tt"; then
20136    break
20137  elif $ac_last_try; then
20138    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20139  else
20140    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20141  fi
20142done
20143
20144# For the awk script, D is an array of macro values keyed by name,
20145# likewise P contains macro parameters if any.  Preserve backslash
20146# newline sequences.
20147
20148ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20149sed -n '
20150s/.\{148\}/&'"$ac_delim"'/g
20151t rset
20152:rset
20153s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20154t def
20155d
20156:def
20157s/\\$//
20158t bsnl
20159s/["\\]/\\&/g
20160s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20161D["\1"]=" \3"/p
20162s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20163d
20164:bsnl
20165s/["\\]/\\&/g
20166s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20167D["\1"]=" \3\\\\\\n"\\/p
20168t cont
20169s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20170t cont
20171d
20172:cont
20173n
20174s/.\{148\}/&'"$ac_delim"'/g
20175t clear
20176:clear
20177s/\\$//
20178t bsnlc
20179s/["\\]/\\&/g; s/^/"/; s/$/"/p
20180d
20181:bsnlc
20182s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20183b cont
20184' <confdefs.h | sed '
20185s/'"$ac_delim"'/"\\\
20186"/g' >>$CONFIG_STATUS || ac_write_fail=1
20187
20188cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20189  for (key in D) D_is_set[key] = 1
20190  FS = ""
20191}
20192/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20193  line = \$ 0
20194  split(line, arg, " ")
20195  if (arg[1] == "#") {
20196    defundef = arg[2]
20197    mac1 = arg[3]
20198  } else {
20199    defundef = substr(arg[1], 2)
20200    mac1 = arg[2]
20201  }
20202  split(mac1, mac2, "(") #)
20203  macro = mac2[1]
20204  prefix = substr(line, 1, index(line, defundef) - 1)
20205  if (D_is_set[macro]) {
20206    # Preserve the white space surrounding the "#".
20207    print prefix "define", macro P[macro] D[macro]
20208    next
20209  } else {
20210    # Replace #undef with comments.  This is necessary, for example,
20211    # in the case of _POSIX_SOURCE, which is predefined and required
20212    # on some systems where configure will not decide to define it.
20213    if (defundef == "undef") {
20214      print "/*", prefix defundef, macro, "*/"
20215      next
20216    }
20217  }
20218}
20219{ print }
20220_ACAWK
20221_ACEOF
20222cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20223  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20224fi # test -n "$CONFIG_HEADERS"
20225
20226
20227eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20228shift
20229for ac_tag
20230do
20231  case $ac_tag in
20232  :[FHLC]) ac_mode=$ac_tag; continue;;
20233  esac
20234  case $ac_mode$ac_tag in
20235  :[FHL]*:*);;
20236  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20237  :[FH]-) ac_tag=-:-;;
20238  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20239  esac
20240  ac_save_IFS=$IFS
20241  IFS=:
20242  set x $ac_tag
20243  IFS=$ac_save_IFS
20244  shift
20245  ac_file=$1
20246  shift
20247
20248  case $ac_mode in
20249  :L) ac_source=$1;;
20250  :[FH])
20251    ac_file_inputs=
20252    for ac_f
20253    do
20254      case $ac_f in
20255      -) ac_f="$ac_tmp/stdin";;
20256      *) # Look for the file first in the build tree, then in the source tree
20257	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20258	 # because $ac_f cannot contain `:'.
20259	 test -f "$ac_f" ||
20260	   case $ac_f in
20261	   [\\/$]*) false;;
20262	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20263	   esac ||
20264	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20265      esac
20266      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20267      as_fn_append ac_file_inputs " '$ac_f'"
20268    done
20269
20270    # Let's still pretend it is `configure' which instantiates (i.e., don't
20271    # use $as_me), people would be surprised to read:
20272    #    /* config.h.  Generated by config.status.  */
20273    configure_input='Generated from '`
20274	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20275	`' by configure.'
20276    if test x"$ac_file" != x-; then
20277      configure_input="$ac_file.  $configure_input"
20278      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20279$as_echo "$as_me: creating $ac_file" >&6;}
20280    fi
20281    # Neutralize special characters interpreted by sed in replacement strings.
20282    case $configure_input in #(
20283    *\&* | *\|* | *\\* )
20284       ac_sed_conf_input=`$as_echo "$configure_input" |
20285       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20286    *) ac_sed_conf_input=$configure_input;;
20287    esac
20288
20289    case $ac_tag in
20290    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20291      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20292    esac
20293    ;;
20294  esac
20295
20296  ac_dir=`$as_dirname -- "$ac_file" ||
20297$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20298	 X"$ac_file" : 'X\(//\)[^/]' \| \
20299	 X"$ac_file" : 'X\(//\)$' \| \
20300	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20301$as_echo X"$ac_file" |
20302    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20303	    s//\1/
20304	    q
20305	  }
20306	  /^X\(\/\/\)[^/].*/{
20307	    s//\1/
20308	    q
20309	  }
20310	  /^X\(\/\/\)$/{
20311	    s//\1/
20312	    q
20313	  }
20314	  /^X\(\/\).*/{
20315	    s//\1/
20316	    q
20317	  }
20318	  s/.*/./; q'`
20319  as_dir="$ac_dir"; as_fn_mkdir_p
20320  ac_builddir=.
20321
20322case "$ac_dir" in
20323.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20324*)
20325  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20326  # A ".." for each directory in $ac_dir_suffix.
20327  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20328  case $ac_top_builddir_sub in
20329  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20330  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20331  esac ;;
20332esac
20333ac_abs_top_builddir=$ac_pwd
20334ac_abs_builddir=$ac_pwd$ac_dir_suffix
20335# for backward compatibility:
20336ac_top_builddir=$ac_top_build_prefix
20337
20338case $srcdir in
20339  .)  # We are building in place.
20340    ac_srcdir=.
20341    ac_top_srcdir=$ac_top_builddir_sub
20342    ac_abs_top_srcdir=$ac_pwd ;;
20343  [\\/]* | ?:[\\/]* )  # Absolute name.
20344    ac_srcdir=$srcdir$ac_dir_suffix;
20345    ac_top_srcdir=$srcdir
20346    ac_abs_top_srcdir=$srcdir ;;
20347  *) # Relative name.
20348    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20349    ac_top_srcdir=$ac_top_build_prefix$srcdir
20350    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20351esac
20352ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20353
20354
20355  case $ac_mode in
20356  :F)
20357  #
20358  # CONFIG_FILE
20359  #
20360
20361  case $INSTALL in
20362  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20363  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20364  esac
20365  ac_MKDIR_P=$MKDIR_P
20366  case $MKDIR_P in
20367  [\\/$]* | ?:[\\/]* ) ;;
20368  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20369  esac
20370_ACEOF
20371
20372cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20373# If the template does not know about datarootdir, expand it.
20374# FIXME: This hack should be removed a few years after 2.60.
20375ac_datarootdir_hack=; ac_datarootdir_seen=
20376ac_sed_dataroot='
20377/datarootdir/ {
20378  p
20379  q
20380}
20381/@datadir@/p
20382/@docdir@/p
20383/@infodir@/p
20384/@localedir@/p
20385/@mandir@/p'
20386case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20387*datarootdir*) ac_datarootdir_seen=yes;;
20388*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20389  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20390$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20391_ACEOF
20392cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20393  ac_datarootdir_hack='
20394  s&@datadir@&$datadir&g
20395  s&@docdir@&$docdir&g
20396  s&@infodir@&$infodir&g
20397  s&@localedir@&$localedir&g
20398  s&@mandir@&$mandir&g
20399  s&\\\${datarootdir}&$datarootdir&g' ;;
20400esac
20401_ACEOF
20402
20403# Neutralize VPATH when `$srcdir' = `.'.
20404# Shell code in configure.ac might set extrasub.
20405# FIXME: do we really want to maintain this feature?
20406cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20407ac_sed_extra="$ac_vpsub
20408$extrasub
20409_ACEOF
20410cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20411:t
20412/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20413s|@configure_input@|$ac_sed_conf_input|;t t
20414s&@top_builddir@&$ac_top_builddir_sub&;t t
20415s&@top_build_prefix@&$ac_top_build_prefix&;t t
20416s&@srcdir@&$ac_srcdir&;t t
20417s&@abs_srcdir@&$ac_abs_srcdir&;t t
20418s&@top_srcdir@&$ac_top_srcdir&;t t
20419s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20420s&@builddir@&$ac_builddir&;t t
20421s&@abs_builddir@&$ac_abs_builddir&;t t
20422s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20423s&@INSTALL@&$ac_INSTALL&;t t
20424s&@MKDIR_P@&$ac_MKDIR_P&;t t
20425$ac_datarootdir_hack
20426"
20427eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20428  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20429
20430test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20431  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20432  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20433      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20434  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20435which seems to be undefined.  Please make sure it is defined" >&5
20436$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20437which seems to be undefined.  Please make sure it is defined" >&2;}
20438
20439  rm -f "$ac_tmp/stdin"
20440  case $ac_file in
20441  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20442  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20443  esac \
20444  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20445 ;;
20446  :H)
20447  #
20448  # CONFIG_HEADER
20449  #
20450  if test x"$ac_file" != x-; then
20451    {
20452      $as_echo "/* $configure_input  */" \
20453      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20454    } >"$ac_tmp/config.h" \
20455      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20456    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20457      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20458$as_echo "$as_me: $ac_file is unchanged" >&6;}
20459    else
20460      rm -f "$ac_file"
20461      mv "$ac_tmp/config.h" "$ac_file" \
20462	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20463    fi
20464  else
20465    $as_echo "/* $configure_input  */" \
20466      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20467      || as_fn_error $? "could not create -" "$LINENO" 5
20468  fi
20469# Compute "$ac_file"'s index in $config_headers.
20470_am_arg="$ac_file"
20471_am_stamp_count=1
20472for _am_header in $config_headers :; do
20473  case $_am_header in
20474    $_am_arg | $_am_arg:* )
20475      break ;;
20476    * )
20477      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20478  esac
20479done
20480echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20481$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20482	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20483	 X"$_am_arg" : 'X\(//\)$' \| \
20484	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20485$as_echo X"$_am_arg" |
20486    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20487	    s//\1/
20488	    q
20489	  }
20490	  /^X\(\/\/\)[^/].*/{
20491	    s//\1/
20492	    q
20493	  }
20494	  /^X\(\/\/\)$/{
20495	    s//\1/
20496	    q
20497	  }
20498	  /^X\(\/\).*/{
20499	    s//\1/
20500	    q
20501	  }
20502	  s/.*/./; q'`/stamp-h$_am_stamp_count
20503 ;;
20504
20505  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20506$as_echo "$as_me: executing $ac_file commands" >&6;}
20507 ;;
20508  esac
20509
20510
20511  case $ac_file$ac_mode in
20512    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20513  # Older Autoconf quotes --file arguments for eval, but not when files
20514  # are listed without --file.  Let's play safe and only enable the eval
20515  # if we detect the quoting.
20516  case $CONFIG_FILES in
20517  *\'*) eval set x "$CONFIG_FILES" ;;
20518  *)   set x $CONFIG_FILES ;;
20519  esac
20520  shift
20521  for mf
20522  do
20523    # Strip MF so we end up with the name of the file.
20524    mf=`echo "$mf" | sed -e 's/:.*$//'`
20525    # Check whether this is an Automake generated Makefile or not.
20526    # We used to match only the files named 'Makefile.in', but
20527    # some people rename them; so instead we look at the file content.
20528    # Grep'ing the first line is not enough: some people post-process
20529    # each Makefile.in and add a new line on top of each file to say so.
20530    # Grep'ing the whole file is not good either: AIX grep has a line
20531    # limit of 2048, but all sed's we know have understand at least 4000.
20532    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20533      dirpart=`$as_dirname -- "$mf" ||
20534$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20535	 X"$mf" : 'X\(//\)[^/]' \| \
20536	 X"$mf" : 'X\(//\)$' \| \
20537	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20538$as_echo X"$mf" |
20539    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20540	    s//\1/
20541	    q
20542	  }
20543	  /^X\(\/\/\)[^/].*/{
20544	    s//\1/
20545	    q
20546	  }
20547	  /^X\(\/\/\)$/{
20548	    s//\1/
20549	    q
20550	  }
20551	  /^X\(\/\).*/{
20552	    s//\1/
20553	    q
20554	  }
20555	  s/.*/./; q'`
20556    else
20557      continue
20558    fi
20559    # Extract the definition of DEPDIR, am__include, and am__quote
20560    # from the Makefile without running 'make'.
20561    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20562    test -z "$DEPDIR" && continue
20563    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20564    test -z "$am__include" && continue
20565    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20566    # Find all dependency output files, they are included files with
20567    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20568    # simplest approach to changing $(DEPDIR) to its actual value in the
20569    # expansion.
20570    for file in `sed -n "
20571      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20572	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20573      # Make sure the directory exists.
20574      test -f "$dirpart/$file" && continue
20575      fdir=`$as_dirname -- "$file" ||
20576$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20577	 X"$file" : 'X\(//\)[^/]' \| \
20578	 X"$file" : 'X\(//\)$' \| \
20579	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20580$as_echo X"$file" |
20581    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20582	    s//\1/
20583	    q
20584	  }
20585	  /^X\(\/\/\)[^/].*/{
20586	    s//\1/
20587	    q
20588	  }
20589	  /^X\(\/\/\)$/{
20590	    s//\1/
20591	    q
20592	  }
20593	  /^X\(\/\).*/{
20594	    s//\1/
20595	    q
20596	  }
20597	  s/.*/./; q'`
20598      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20599      # echo "creating $dirpart/$file"
20600      echo '# dummy' > "$dirpart/$file"
20601    done
20602  done
20603}
20604 ;;
20605    "libtool":C)
20606
20607    # See if we are running on zsh, and set the options which allow our
20608    # commands through without removal of \ escapes.
20609    if test -n "${ZSH_VERSION+set}" ; then
20610      setopt NO_GLOB_SUBST
20611    fi
20612
20613    cfgfile="${ofile}T"
20614    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20615    $RM "$cfgfile"
20616
20617    cat <<_LT_EOF >> "$cfgfile"
20618#! $SHELL
20619
20620# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20621# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20622# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20623# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20624#
20625#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20626#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20627#                 Foundation, Inc.
20628#   Written by Gordon Matzigkeit, 1996
20629#
20630#   This file is part of GNU Libtool.
20631#
20632# GNU Libtool is free software; you can redistribute it and/or
20633# modify it under the terms of the GNU General Public License as
20634# published by the Free Software Foundation; either version 2 of
20635# the License, or (at your option) any later version.
20636#
20637# As a special exception to the GNU General Public License,
20638# if you distribute this file as part of a program or library that
20639# is built using GNU Libtool, you may include this file under the
20640# same distribution terms that you use for the rest of that program.
20641#
20642# GNU Libtool is distributed in the hope that it will be useful,
20643# but WITHOUT ANY WARRANTY; without even the implied warranty of
20644# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20645# GNU General Public License for more details.
20646#
20647# You should have received a copy of the GNU General Public License
20648# along with GNU Libtool; see the file COPYING.  If not, a copy
20649# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20650# obtained by writing to the Free Software Foundation, Inc.,
20651# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20652
20653
20654# The names of the tagged configurations supported by this script.
20655available_tags=""
20656
20657# ### BEGIN LIBTOOL CONFIG
20658
20659# Which release of libtool.m4 was used?
20660macro_version=$macro_version
20661macro_revision=$macro_revision
20662
20663# Whether or not to build shared libraries.
20664build_libtool_libs=$enable_shared
20665
20666# Whether or not to build static libraries.
20667build_old_libs=$enable_static
20668
20669# What type of objects to build.
20670pic_mode=$pic_mode
20671
20672# Whether or not to optimize for fast installation.
20673fast_install=$enable_fast_install
20674
20675# Shell to use when invoking shell scripts.
20676SHELL=$lt_SHELL
20677
20678# An echo program that protects backslashes.
20679ECHO=$lt_ECHO
20680
20681# The PATH separator for the build system.
20682PATH_SEPARATOR=$lt_PATH_SEPARATOR
20683
20684# The host system.
20685host_alias=$host_alias
20686host=$host
20687host_os=$host_os
20688
20689# The build system.
20690build_alias=$build_alias
20691build=$build
20692build_os=$build_os
20693
20694# A sed program that does not truncate output.
20695SED=$lt_SED
20696
20697# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20698Xsed="\$SED -e 1s/^X//"
20699
20700# A grep program that handles long lines.
20701GREP=$lt_GREP
20702
20703# An ERE matcher.
20704EGREP=$lt_EGREP
20705
20706# A literal string matcher.
20707FGREP=$lt_FGREP
20708
20709# A BSD- or MS-compatible name lister.
20710NM=$lt_NM
20711
20712# Whether we need soft or hard links.
20713LN_S=$lt_LN_S
20714
20715# What is the maximum length of a command?
20716max_cmd_len=$max_cmd_len
20717
20718# Object file suffix (normally "o").
20719objext=$ac_objext
20720
20721# Executable file suffix (normally "").
20722exeext=$exeext
20723
20724# whether the shell understands "unset".
20725lt_unset=$lt_unset
20726
20727# turn spaces into newlines.
20728SP2NL=$lt_lt_SP2NL
20729
20730# turn newlines into spaces.
20731NL2SP=$lt_lt_NL2SP
20732
20733# convert \$build file names to \$host format.
20734to_host_file_cmd=$lt_cv_to_host_file_cmd
20735
20736# convert \$build files to toolchain format.
20737to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20738
20739# An object symbol dumper.
20740OBJDUMP=$lt_OBJDUMP
20741
20742# Method to check whether dependent libraries are shared objects.
20743deplibs_check_method=$lt_deplibs_check_method
20744
20745# Command to use when deplibs_check_method = "file_magic".
20746file_magic_cmd=$lt_file_magic_cmd
20747
20748# How to find potential files when deplibs_check_method = "file_magic".
20749file_magic_glob=$lt_file_magic_glob
20750
20751# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20752want_nocaseglob=$lt_want_nocaseglob
20753
20754# DLL creation program.
20755DLLTOOL=$lt_DLLTOOL
20756
20757# Command to associate shared and link libraries.
20758sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20759
20760# The archiver.
20761AR=$lt_AR
20762
20763# Flags to create an archive.
20764AR_FLAGS=$lt_AR_FLAGS
20765
20766# How to feed a file listing to the archiver.
20767archiver_list_spec=$lt_archiver_list_spec
20768
20769# A symbol stripping program.
20770STRIP=$lt_STRIP
20771
20772# Commands used to install an old-style archive.
20773RANLIB=$lt_RANLIB
20774old_postinstall_cmds=$lt_old_postinstall_cmds
20775old_postuninstall_cmds=$lt_old_postuninstall_cmds
20776
20777# Whether to use a lock for old archive extraction.
20778lock_old_archive_extraction=$lock_old_archive_extraction
20779
20780# A C compiler.
20781LTCC=$lt_CC
20782
20783# LTCC compiler flags.
20784LTCFLAGS=$lt_CFLAGS
20785
20786# Take the output of nm and produce a listing of raw symbols and C names.
20787global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20788
20789# Transform the output of nm in a proper C declaration.
20790global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20791
20792# Transform the output of nm in a C name address pair.
20793global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20794
20795# Transform the output of nm in a C name address pair when lib prefix is needed.
20796global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20797
20798# Specify filename containing input files for \$NM.
20799nm_file_list_spec=$lt_nm_file_list_spec
20800
20801# The root where to search for dependent libraries,and in which our libraries should be installed.
20802lt_sysroot=$lt_sysroot
20803
20804# The name of the directory that contains temporary libtool files.
20805objdir=$objdir
20806
20807# Used to examine libraries when file_magic_cmd begins with "file".
20808MAGIC_CMD=$MAGIC_CMD
20809
20810# Must we lock files when doing compilation?
20811need_locks=$lt_need_locks
20812
20813# Manifest tool.
20814MANIFEST_TOOL=$lt_MANIFEST_TOOL
20815
20816# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20817DSYMUTIL=$lt_DSYMUTIL
20818
20819# Tool to change global to local symbols on Mac OS X.
20820NMEDIT=$lt_NMEDIT
20821
20822# Tool to manipulate fat objects and archives on Mac OS X.
20823LIPO=$lt_LIPO
20824
20825# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20826OTOOL=$lt_OTOOL
20827
20828# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20829OTOOL64=$lt_OTOOL64
20830
20831# Old archive suffix (normally "a").
20832libext=$libext
20833
20834# Shared library suffix (normally ".so").
20835shrext_cmds=$lt_shrext_cmds
20836
20837# The commands to extract the exported symbol list from a shared archive.
20838extract_expsyms_cmds=$lt_extract_expsyms_cmds
20839
20840# Variables whose values should be saved in libtool wrapper scripts and
20841# restored at link time.
20842variables_saved_for_relink=$lt_variables_saved_for_relink
20843
20844# Do we need the "lib" prefix for modules?
20845need_lib_prefix=$need_lib_prefix
20846
20847# Do we need a version for libraries?
20848need_version=$need_version
20849
20850# Library versioning type.
20851version_type=$version_type
20852
20853# Shared library runtime path variable.
20854runpath_var=$runpath_var
20855
20856# Shared library path variable.
20857shlibpath_var=$shlibpath_var
20858
20859# Is shlibpath searched before the hard-coded library search path?
20860shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20861
20862# Format of library name prefix.
20863libname_spec=$lt_libname_spec
20864
20865# List of archive names.  First name is the real one, the rest are links.
20866# The last name is the one that the linker finds with -lNAME
20867library_names_spec=$lt_library_names_spec
20868
20869# The coded name of the library, if different from the real name.
20870soname_spec=$lt_soname_spec
20871
20872# Permission mode override for installation of shared libraries.
20873install_override_mode=$lt_install_override_mode
20874
20875# Command to use after installation of a shared archive.
20876postinstall_cmds=$lt_postinstall_cmds
20877
20878# Command to use after uninstallation of a shared archive.
20879postuninstall_cmds=$lt_postuninstall_cmds
20880
20881# Commands used to finish a libtool library installation in a directory.
20882finish_cmds=$lt_finish_cmds
20883
20884# As "finish_cmds", except a single script fragment to be evaled but
20885# not shown.
20886finish_eval=$lt_finish_eval
20887
20888# Whether we should hardcode library paths into libraries.
20889hardcode_into_libs=$hardcode_into_libs
20890
20891# Compile-time system search path for libraries.
20892sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20893
20894# Run-time system search path for libraries.
20895sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20896
20897# Whether dlopen is supported.
20898dlopen_support=$enable_dlopen
20899
20900# Whether dlopen of programs is supported.
20901dlopen_self=$enable_dlopen_self
20902
20903# Whether dlopen of statically linked programs is supported.
20904dlopen_self_static=$enable_dlopen_self_static
20905
20906# Commands to strip libraries.
20907old_striplib=$lt_old_striplib
20908striplib=$lt_striplib
20909
20910
20911# The linker used to build libraries.
20912LD=$lt_LD
20913
20914# How to create reloadable object files.
20915reload_flag=$lt_reload_flag
20916reload_cmds=$lt_reload_cmds
20917
20918# Commands used to build an old-style archive.
20919old_archive_cmds=$lt_old_archive_cmds
20920
20921# A language specific compiler.
20922CC=$lt_compiler
20923
20924# Is the compiler the GNU compiler?
20925with_gcc=$GCC
20926
20927# Compiler flag to turn off builtin functions.
20928no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20929
20930# Additional compiler flags for building library objects.
20931pic_flag=$lt_lt_prog_compiler_pic
20932
20933# How to pass a linker flag through the compiler.
20934wl=$lt_lt_prog_compiler_wl
20935
20936# Compiler flag to prevent dynamic linking.
20937link_static_flag=$lt_lt_prog_compiler_static
20938
20939# Does compiler simultaneously support -c and -o options?
20940compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20941
20942# Whether or not to add -lc for building shared libraries.
20943build_libtool_need_lc=$archive_cmds_need_lc
20944
20945# Whether or not to disallow shared libs when runtime libs are static.
20946allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20947
20948# Compiler flag to allow reflexive dlopens.
20949export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20950
20951# Compiler flag to generate shared objects directly from archives.
20952whole_archive_flag_spec=$lt_whole_archive_flag_spec
20953
20954# Whether the compiler copes with passing no objects directly.
20955compiler_needs_object=$lt_compiler_needs_object
20956
20957# Create an old-style archive from a shared archive.
20958old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20959
20960# Create a temporary old-style archive to link instead of a shared archive.
20961old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20962
20963# Commands used to build a shared archive.
20964archive_cmds=$lt_archive_cmds
20965archive_expsym_cmds=$lt_archive_expsym_cmds
20966
20967# Commands used to build a loadable module if different from building
20968# a shared archive.
20969module_cmds=$lt_module_cmds
20970module_expsym_cmds=$lt_module_expsym_cmds
20971
20972# Whether we are building with GNU ld or not.
20973with_gnu_ld=$lt_with_gnu_ld
20974
20975# Flag that allows shared libraries with undefined symbols to be built.
20976allow_undefined_flag=$lt_allow_undefined_flag
20977
20978# Flag that enforces no undefined symbols.
20979no_undefined_flag=$lt_no_undefined_flag
20980
20981# Flag to hardcode \$libdir into a binary during linking.
20982# This must work even if \$libdir does not exist
20983hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20984
20985# Whether we need a single "-rpath" flag with a separated argument.
20986hardcode_libdir_separator=$lt_hardcode_libdir_separator
20987
20988# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20989# DIR into the resulting binary.
20990hardcode_direct=$hardcode_direct
20991
20992# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20993# DIR into the resulting binary and the resulting library dependency is
20994# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20995# library is relocated.
20996hardcode_direct_absolute=$hardcode_direct_absolute
20997
20998# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20999# into the resulting binary.
21000hardcode_minus_L=$hardcode_minus_L
21001
21002# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21003# into the resulting binary.
21004hardcode_shlibpath_var=$hardcode_shlibpath_var
21005
21006# Set to "yes" if building a shared library automatically hardcodes DIR
21007# into the library and all subsequent libraries and executables linked
21008# against it.
21009hardcode_automatic=$hardcode_automatic
21010
21011# Set to yes if linker adds runtime paths of dependent libraries
21012# to runtime path list.
21013inherit_rpath=$inherit_rpath
21014
21015# Whether libtool must link a program against all its dependency libraries.
21016link_all_deplibs=$link_all_deplibs
21017
21018# Set to "yes" if exported symbols are required.
21019always_export_symbols=$always_export_symbols
21020
21021# The commands to list exported symbols.
21022export_symbols_cmds=$lt_export_symbols_cmds
21023
21024# Symbols that should not be listed in the preloaded symbols.
21025exclude_expsyms=$lt_exclude_expsyms
21026
21027# Symbols that must always be exported.
21028include_expsyms=$lt_include_expsyms
21029
21030# Commands necessary for linking programs (against libraries) with templates.
21031prelink_cmds=$lt_prelink_cmds
21032
21033# Commands necessary for finishing linking programs.
21034postlink_cmds=$lt_postlink_cmds
21035
21036# Specify filename containing input files.
21037file_list_spec=$lt_file_list_spec
21038
21039# How to hardcode a shared library path into an executable.
21040hardcode_action=$hardcode_action
21041
21042# ### END LIBTOOL CONFIG
21043
21044_LT_EOF
21045
21046  case $host_os in
21047  aix3*)
21048    cat <<\_LT_EOF >> "$cfgfile"
21049# AIX sometimes has problems with the GCC collect2 program.  For some
21050# reason, if we set the COLLECT_NAMES environment variable, the problems
21051# vanish in a puff of smoke.
21052if test "X${COLLECT_NAMES+set}" != Xset; then
21053  COLLECT_NAMES=
21054  export COLLECT_NAMES
21055fi
21056_LT_EOF
21057    ;;
21058  esac
21059
21060
21061ltmain="$ac_aux_dir/ltmain.sh"
21062
21063
21064  # We use sed instead of cat because bash on DJGPP gets confused if
21065  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21066  # text mode, it properly converts lines to CR/LF.  This bash problem
21067  # is reportedly fixed, but why not run on old versions too?
21068  sed '$q' "$ltmain" >> "$cfgfile" \
21069     || (rm -f "$cfgfile"; exit 1)
21070
21071  if test x"$xsi_shell" = xyes; then
21072  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21073func_dirname ()\
21074{\
21075\    case ${1} in\
21076\      */*) func_dirname_result="${1%/*}${2}" ;;\
21077\      *  ) func_dirname_result="${3}" ;;\
21078\    esac\
21079} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21080  && mv -f "$cfgfile.tmp" "$cfgfile" \
21081    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21082test 0 -eq $? || _lt_function_replace_fail=:
21083
21084
21085  sed -e '/^func_basename ()$/,/^} # func_basename /c\
21086func_basename ()\
21087{\
21088\    func_basename_result="${1##*/}"\
21089} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21090  && mv -f "$cfgfile.tmp" "$cfgfile" \
21091    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21092test 0 -eq $? || _lt_function_replace_fail=:
21093
21094
21095  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21096func_dirname_and_basename ()\
21097{\
21098\    case ${1} in\
21099\      */*) func_dirname_result="${1%/*}${2}" ;;\
21100\      *  ) func_dirname_result="${3}" ;;\
21101\    esac\
21102\    func_basename_result="${1##*/}"\
21103} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21104  && mv -f "$cfgfile.tmp" "$cfgfile" \
21105    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21106test 0 -eq $? || _lt_function_replace_fail=:
21107
21108
21109  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21110func_stripname ()\
21111{\
21112\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21113\    # positional parameters, so assign one to ordinary parameter first.\
21114\    func_stripname_result=${3}\
21115\    func_stripname_result=${func_stripname_result#"${1}"}\
21116\    func_stripname_result=${func_stripname_result%"${2}"}\
21117} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21118  && mv -f "$cfgfile.tmp" "$cfgfile" \
21119    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21120test 0 -eq $? || _lt_function_replace_fail=:
21121
21122
21123  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21124func_split_long_opt ()\
21125{\
21126\    func_split_long_opt_name=${1%%=*}\
21127\    func_split_long_opt_arg=${1#*=}\
21128} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21129  && mv -f "$cfgfile.tmp" "$cfgfile" \
21130    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21131test 0 -eq $? || _lt_function_replace_fail=:
21132
21133
21134  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21135func_split_short_opt ()\
21136{\
21137\    func_split_short_opt_arg=${1#??}\
21138\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21139} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21140  && mv -f "$cfgfile.tmp" "$cfgfile" \
21141    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21142test 0 -eq $? || _lt_function_replace_fail=:
21143
21144
21145  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21146func_lo2o ()\
21147{\
21148\    case ${1} in\
21149\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21150\      *)    func_lo2o_result=${1} ;;\
21151\    esac\
21152} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21153  && mv -f "$cfgfile.tmp" "$cfgfile" \
21154    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21155test 0 -eq $? || _lt_function_replace_fail=:
21156
21157
21158  sed -e '/^func_xform ()$/,/^} # func_xform /c\
21159func_xform ()\
21160{\
21161    func_xform_result=${1%.*}.lo\
21162} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21163  && mv -f "$cfgfile.tmp" "$cfgfile" \
21164    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21165test 0 -eq $? || _lt_function_replace_fail=:
21166
21167
21168  sed -e '/^func_arith ()$/,/^} # func_arith /c\
21169func_arith ()\
21170{\
21171    func_arith_result=$(( $* ))\
21172} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21173  && mv -f "$cfgfile.tmp" "$cfgfile" \
21174    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21175test 0 -eq $? || _lt_function_replace_fail=:
21176
21177
21178  sed -e '/^func_len ()$/,/^} # func_len /c\
21179func_len ()\
21180{\
21181    func_len_result=${#1}\
21182} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21183  && mv -f "$cfgfile.tmp" "$cfgfile" \
21184    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21185test 0 -eq $? || _lt_function_replace_fail=:
21186
21187fi
21188
21189if test x"$lt_shell_append" = xyes; then
21190  sed -e '/^func_append ()$/,/^} # func_append /c\
21191func_append ()\
21192{\
21193    eval "${1}+=\\${2}"\
21194} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21195  && mv -f "$cfgfile.tmp" "$cfgfile" \
21196    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21197test 0 -eq $? || _lt_function_replace_fail=:
21198
21199
21200  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21201func_append_quoted ()\
21202{\
21203\    func_quote_for_eval "${2}"\
21204\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21205} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21206  && mv -f "$cfgfile.tmp" "$cfgfile" \
21207    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21208test 0 -eq $? || _lt_function_replace_fail=:
21209
21210
21211  # Save a `func_append' function call where possible by direct use of '+='
21212  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21213    && mv -f "$cfgfile.tmp" "$cfgfile" \
21214      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21215  test 0 -eq $? || _lt_function_replace_fail=:
21216else
21217  # Save a `func_append' function call even when '+=' is not available
21218  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21219    && mv -f "$cfgfile.tmp" "$cfgfile" \
21220      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21221  test 0 -eq $? || _lt_function_replace_fail=:
21222fi
21223
21224if test x"$_lt_function_replace_fail" = x":"; then
21225  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21226$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21227fi
21228
21229
21230   mv -f "$cfgfile" "$ofile" ||
21231    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21232  chmod +x "$ofile"
21233
21234 ;;
21235
21236  esac
21237done # for ac_tag
21238
21239
21240as_fn_exit 0
21241_ACEOF
21242ac_clean_files=$ac_clean_files_save
21243
21244test $ac_write_fail = 0 ||
21245  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21246
21247
21248# configure is writing to config.log, and then calls config.status.
21249# config.status does its own redirection, appending to config.log.
21250# Unfortunately, on DOS this fails, as config.log is still kept open
21251# by configure, so config.status won't be able to write to it; its
21252# output is simply discarded.  So we exec the FD to /dev/null,
21253# effectively closing config.log, so it can be properly (re)opened and
21254# appended to by config.status.  When coming back to configure, we
21255# need to make the FD available again.
21256if test "$no_create" != yes; then
21257  ac_cs_success=:
21258  ac_config_status_args=
21259  test "$silent" = yes &&
21260    ac_config_status_args="$ac_config_status_args --quiet"
21261  exec 5>/dev/null
21262  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21263  exec 5>>config.log
21264  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21265  # would make configure fail if this is the last instruction.
21266  $ac_cs_success || as_fn_exit 1
21267fi
21268if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21269  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21270$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21271fi
21272
21273