configure revision 48e5ce07
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libXi 1.7.9.
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.9'
655PACKAGE_STRING='libXi 1.7.9'
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
757LT_SYS_LIBRARY_PATH
758OTOOL64
759OTOOL
760LIPO
761NMEDIT
762DSYMUTIL
763MANIFEST_TOOL
764RANLIB
765ac_ct_AR
766AR
767DLLTOOL
768OBJDUMP
769LN_S
770NM
771ac_ct_DUMPBIN
772DUMPBIN
773LD
774FGREP
775EGREP
776GREP
777SED
778am__fastdepCC_FALSE
779am__fastdepCC_TRUE
780CCDEPMODE
781am__nodep
782AMDEPBACKSLASH
783AMDEP_FALSE
784AMDEP_TRUE
785am__quote
786am__include
787DEPDIR
788OBJEXT
789EXEEXT
790ac_ct_CC
791CPPFLAGS
792LDFLAGS
793CFLAGS
794CC
795host_os
796host_vendor
797host_cpu
798host
799build_os
800build_vendor
801build_cpu
802build
803LIBTOOL
804AM_BACKSLASH
805AM_DEFAULT_VERBOSITY
806AM_DEFAULT_V
807AM_V
808am__untar
809am__tar
810AMTAR
811am__leading_dot
812SET_MAKE
813AWK
814mkdir_p
815MKDIR_P
816INSTALL_STRIP_PROGRAM
817STRIP
818install_sh
819MAKEINFO
820AUTOHEADER
821AUTOMAKE
822AUTOCONF
823ACLOCAL
824VERSION
825PACKAGE
826CYGPATH_W
827am__isrc
828INSTALL_DATA
829INSTALL_SCRIPT
830INSTALL_PROGRAM
831target_alias
832host_alias
833build_alias
834LIBS
835ECHO_T
836ECHO_N
837ECHO_C
838DEFS
839mandir
840localedir
841libdir
842psdir
843pdfdir
844dvidir
845htmldir
846infodir
847docdir
848oldincludedir
849includedir
850localstatedir
851sharedstatedir
852sysconfdir
853datadir
854datarootdir
855libexecdir
856sbindir
857bindir
858program_transform_name
859prefix
860exec_prefix
861PACKAGE_URL
862PACKAGE_BUGREPORT
863PACKAGE_STRING
864PACKAGE_VERSION
865PACKAGE_TARNAME
866PACKAGE_NAME
867PATH_SEPARATOR
868SHELL'
869ac_subst_files=''
870ac_user_opts='
871enable_option_checking
872enable_silent_rules
873enable_shared
874enable_static
875with_pic
876enable_fast_install
877with_aix_soname
878enable_dependency_tracking
879with_gnu_ld
880with_sysroot
881enable_libtool_lock
882enable_selective_werror
883enable_strict_compilation
884enable_docs
885enable_specs
886with_xmlto
887with_fop
888with_xsltproc
889with_asciidoc
890enable_malloc0returnsnull
891'
892      ac_precious_vars='build_alias
893host_alias
894target_alias
895CC
896CFLAGS
897LDFLAGS
898LIBS
899CPPFLAGS
900LT_SYS_LIBRARY_PATH
901CPP
902PKG_CONFIG
903PKG_CONFIG_PATH
904PKG_CONFIG_LIBDIR
905XMLTO
906FOP
907XSLTPROC
908ASCIIDOC
909XI_CFLAGS
910XI_LIBS
911XFIXES_CFLAGS
912XFIXES_LIBS'
913
914
915# Initialize some variables set by options.
916ac_init_help=
917ac_init_version=false
918ac_unrecognized_opts=
919ac_unrecognized_sep=
920# The variables have the same names as the options, with
921# dashes changed to underlines.
922cache_file=/dev/null
923exec_prefix=NONE
924no_create=
925no_recursion=
926prefix=NONE
927program_prefix=NONE
928program_suffix=NONE
929program_transform_name=s,x,x,
930silent=
931site=
932srcdir=
933verbose=
934x_includes=NONE
935x_libraries=NONE
936
937# Installation directory options.
938# These are left unexpanded so users can "make install exec_prefix=/foo"
939# and all the variables that are supposed to be based on exec_prefix
940# by default will actually change.
941# Use braces instead of parens because sh, perl, etc. also accept them.
942# (The list follows the same order as the GNU Coding Standards.)
943bindir='${exec_prefix}/bin'
944sbindir='${exec_prefix}/sbin'
945libexecdir='${exec_prefix}/libexec'
946datarootdir='${prefix}/share'
947datadir='${datarootdir}'
948sysconfdir='${prefix}/etc'
949sharedstatedir='${prefix}/com'
950localstatedir='${prefix}/var'
951includedir='${prefix}/include'
952oldincludedir='/usr/include'
953docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
954infodir='${datarootdir}/info'
955htmldir='${docdir}'
956dvidir='${docdir}'
957pdfdir='${docdir}'
958psdir='${docdir}'
959libdir='${exec_prefix}/lib'
960localedir='${datarootdir}/locale'
961mandir='${datarootdir}/man'
962
963ac_prev=
964ac_dashdash=
965for ac_option
966do
967  # If the previous option needs an argument, assign it.
968  if test -n "$ac_prev"; then
969    eval $ac_prev=\$ac_option
970    ac_prev=
971    continue
972  fi
973
974  case $ac_option in
975  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
976  *=)   ac_optarg= ;;
977  *)    ac_optarg=yes ;;
978  esac
979
980  # Accept the important Cygnus configure options, so we can diagnose typos.
981
982  case $ac_dashdash$ac_option in
983  --)
984    ac_dashdash=yes ;;
985
986  -bindir | --bindir | --bindi | --bind | --bin | --bi)
987    ac_prev=bindir ;;
988  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
989    bindir=$ac_optarg ;;
990
991  -build | --build | --buil | --bui | --bu)
992    ac_prev=build_alias ;;
993  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
994    build_alias=$ac_optarg ;;
995
996  -cache-file | --cache-file | --cache-fil | --cache-fi \
997  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
998    ac_prev=cache_file ;;
999  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1000  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1001    cache_file=$ac_optarg ;;
1002
1003  --config-cache | -C)
1004    cache_file=config.cache ;;
1005
1006  -datadir | --datadir | --datadi | --datad)
1007    ac_prev=datadir ;;
1008  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1009    datadir=$ac_optarg ;;
1010
1011  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1012  | --dataroo | --dataro | --datar)
1013    ac_prev=datarootdir ;;
1014  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1015  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1016    datarootdir=$ac_optarg ;;
1017
1018  -disable-* | --disable-*)
1019    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1020    # Reject names that are not valid shell variable names.
1021    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1022      as_fn_error $? "invalid feature name: $ac_useropt"
1023    ac_useropt_orig=$ac_useropt
1024    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025    case $ac_user_opts in
1026      *"
1027"enable_$ac_useropt"
1028"*) ;;
1029      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1030	 ac_unrecognized_sep=', ';;
1031    esac
1032    eval enable_$ac_useropt=no ;;
1033
1034  -docdir | --docdir | --docdi | --doc | --do)
1035    ac_prev=docdir ;;
1036  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1037    docdir=$ac_optarg ;;
1038
1039  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1040    ac_prev=dvidir ;;
1041  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1042    dvidir=$ac_optarg ;;
1043
1044  -enable-* | --enable-*)
1045    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1046    # Reject names that are not valid shell variable names.
1047    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048      as_fn_error $? "invalid feature name: $ac_useropt"
1049    ac_useropt_orig=$ac_useropt
1050    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051    case $ac_user_opts in
1052      *"
1053"enable_$ac_useropt"
1054"*) ;;
1055      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1056	 ac_unrecognized_sep=', ';;
1057    esac
1058    eval enable_$ac_useropt=\$ac_optarg ;;
1059
1060  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1061  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1062  | --exec | --exe | --ex)
1063    ac_prev=exec_prefix ;;
1064  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1065  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1066  | --exec=* | --exe=* | --ex=*)
1067    exec_prefix=$ac_optarg ;;
1068
1069  -gas | --gas | --ga | --g)
1070    # Obsolete; use --with-gas.
1071    with_gas=yes ;;
1072
1073  -help | --help | --hel | --he | -h)
1074    ac_init_help=long ;;
1075  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1076    ac_init_help=recursive ;;
1077  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1078    ac_init_help=short ;;
1079
1080  -host | --host | --hos | --ho)
1081    ac_prev=host_alias ;;
1082  -host=* | --host=* | --hos=* | --ho=*)
1083    host_alias=$ac_optarg ;;
1084
1085  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1086    ac_prev=htmldir ;;
1087  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1088  | --ht=*)
1089    htmldir=$ac_optarg ;;
1090
1091  -includedir | --includedir | --includedi | --included | --include \
1092  | --includ | --inclu | --incl | --inc)
1093    ac_prev=includedir ;;
1094  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1095  | --includ=* | --inclu=* | --incl=* | --inc=*)
1096    includedir=$ac_optarg ;;
1097
1098  -infodir | --infodir | --infodi | --infod | --info | --inf)
1099    ac_prev=infodir ;;
1100  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1101    infodir=$ac_optarg ;;
1102
1103  -libdir | --libdir | --libdi | --libd)
1104    ac_prev=libdir ;;
1105  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1106    libdir=$ac_optarg ;;
1107
1108  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1109  | --libexe | --libex | --libe)
1110    ac_prev=libexecdir ;;
1111  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1112  | --libexe=* | --libex=* | --libe=*)
1113    libexecdir=$ac_optarg ;;
1114
1115  -localedir | --localedir | --localedi | --localed | --locale)
1116    ac_prev=localedir ;;
1117  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1118    localedir=$ac_optarg ;;
1119
1120  -localstatedir | --localstatedir | --localstatedi | --localstated \
1121  | --localstate | --localstat | --localsta | --localst | --locals)
1122    ac_prev=localstatedir ;;
1123  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1124  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1125    localstatedir=$ac_optarg ;;
1126
1127  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1128    ac_prev=mandir ;;
1129  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1130    mandir=$ac_optarg ;;
1131
1132  -nfp | --nfp | --nf)
1133    # Obsolete; use --without-fp.
1134    with_fp=no ;;
1135
1136  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1137  | --no-cr | --no-c | -n)
1138    no_create=yes ;;
1139
1140  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1141  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1142    no_recursion=yes ;;
1143
1144  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1145  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1146  | --oldin | --oldi | --old | --ol | --o)
1147    ac_prev=oldincludedir ;;
1148  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1149  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1150  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1151    oldincludedir=$ac_optarg ;;
1152
1153  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1154    ac_prev=prefix ;;
1155  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1156    prefix=$ac_optarg ;;
1157
1158  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1159  | --program-pre | --program-pr | --program-p)
1160    ac_prev=program_prefix ;;
1161  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1162  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1163    program_prefix=$ac_optarg ;;
1164
1165  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1166  | --program-suf | --program-su | --program-s)
1167    ac_prev=program_suffix ;;
1168  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1169  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1170    program_suffix=$ac_optarg ;;
1171
1172  -program-transform-name | --program-transform-name \
1173  | --program-transform-nam | --program-transform-na \
1174  | --program-transform-n | --program-transform- \
1175  | --program-transform | --program-transfor \
1176  | --program-transfo | --program-transf \
1177  | --program-trans | --program-tran \
1178  | --progr-tra | --program-tr | --program-t)
1179    ac_prev=program_transform_name ;;
1180  -program-transform-name=* | --program-transform-name=* \
1181  | --program-transform-nam=* | --program-transform-na=* \
1182  | --program-transform-n=* | --program-transform-=* \
1183  | --program-transform=* | --program-transfor=* \
1184  | --program-transfo=* | --program-transf=* \
1185  | --program-trans=* | --program-tran=* \
1186  | --progr-tra=* | --program-tr=* | --program-t=*)
1187    program_transform_name=$ac_optarg ;;
1188
1189  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1190    ac_prev=pdfdir ;;
1191  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1192    pdfdir=$ac_optarg ;;
1193
1194  -psdir | --psdir | --psdi | --psd | --ps)
1195    ac_prev=psdir ;;
1196  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1197    psdir=$ac_optarg ;;
1198
1199  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1200  | -silent | --silent | --silen | --sile | --sil)
1201    silent=yes ;;
1202
1203  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1204    ac_prev=sbindir ;;
1205  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1206  | --sbi=* | --sb=*)
1207    sbindir=$ac_optarg ;;
1208
1209  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1210  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1211  | --sharedst | --shareds | --shared | --share | --shar \
1212  | --sha | --sh)
1213    ac_prev=sharedstatedir ;;
1214  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1215  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1216  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1217  | --sha=* | --sh=*)
1218    sharedstatedir=$ac_optarg ;;
1219
1220  -site | --site | --sit)
1221    ac_prev=site ;;
1222  -site=* | --site=* | --sit=*)
1223    site=$ac_optarg ;;
1224
1225  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1226    ac_prev=srcdir ;;
1227  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1228    srcdir=$ac_optarg ;;
1229
1230  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1231  | --syscon | --sysco | --sysc | --sys | --sy)
1232    ac_prev=sysconfdir ;;
1233  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1234  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1235    sysconfdir=$ac_optarg ;;
1236
1237  -target | --target | --targe | --targ | --tar | --ta | --t)
1238    ac_prev=target_alias ;;
1239  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1240    target_alias=$ac_optarg ;;
1241
1242  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1243    verbose=yes ;;
1244
1245  -version | --version | --versio | --versi | --vers | -V)
1246    ac_init_version=: ;;
1247
1248  -with-* | --with-*)
1249    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1250    # Reject names that are not valid shell variable names.
1251    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1252      as_fn_error $? "invalid package name: $ac_useropt"
1253    ac_useropt_orig=$ac_useropt
1254    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1255    case $ac_user_opts in
1256      *"
1257"with_$ac_useropt"
1258"*) ;;
1259      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1260	 ac_unrecognized_sep=', ';;
1261    esac
1262    eval with_$ac_useropt=\$ac_optarg ;;
1263
1264  -without-* | --without-*)
1265    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1266    # Reject names that are not valid shell variable names.
1267    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1268      as_fn_error $? "invalid package name: $ac_useropt"
1269    ac_useropt_orig=$ac_useropt
1270    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1271    case $ac_user_opts in
1272      *"
1273"with_$ac_useropt"
1274"*) ;;
1275      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1276	 ac_unrecognized_sep=', ';;
1277    esac
1278    eval with_$ac_useropt=no ;;
1279
1280  --x)
1281    # Obsolete; use --with-x.
1282    with_x=yes ;;
1283
1284  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1285  | --x-incl | --x-inc | --x-in | --x-i)
1286    ac_prev=x_includes ;;
1287  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1288  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1289    x_includes=$ac_optarg ;;
1290
1291  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1292  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1293    ac_prev=x_libraries ;;
1294  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1295  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1296    x_libraries=$ac_optarg ;;
1297
1298  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1299Try \`$0 --help' for more information"
1300    ;;
1301
1302  *=*)
1303    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1304    # Reject names that are not valid shell variable names.
1305    case $ac_envvar in #(
1306      '' | [0-9]* | *[!_$as_cr_alnum]* )
1307      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1308    esac
1309    eval $ac_envvar=\$ac_optarg
1310    export $ac_envvar ;;
1311
1312  *)
1313    # FIXME: should be removed in autoconf 3.0.
1314    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1315    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1316      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1317    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1318    ;;
1319
1320  esac
1321done
1322
1323if test -n "$ac_prev"; then
1324  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1325  as_fn_error $? "missing argument to $ac_option"
1326fi
1327
1328if test -n "$ac_unrecognized_opts"; then
1329  case $enable_option_checking in
1330    no) ;;
1331    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1332    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1333  esac
1334fi
1335
1336# Check all directory arguments for consistency.
1337for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1338		datadir sysconfdir sharedstatedir localstatedir includedir \
1339		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1340		libdir localedir mandir
1341do
1342  eval ac_val=\$$ac_var
1343  # Remove trailing slashes.
1344  case $ac_val in
1345    */ )
1346      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1347      eval $ac_var=\$ac_val;;
1348  esac
1349  # Be sure to have absolute directory names.
1350  case $ac_val in
1351    [\\/$]* | ?:[\\/]* )  continue;;
1352    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1353  esac
1354  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1355done
1356
1357# There might be people who depend on the old broken behavior: `$host'
1358# used to hold the argument of --host etc.
1359# FIXME: To remove some day.
1360build=$build_alias
1361host=$host_alias
1362target=$target_alias
1363
1364# FIXME: To remove some day.
1365if test "x$host_alias" != x; then
1366  if test "x$build_alias" = x; then
1367    cross_compiling=maybe
1368  elif test "x$build_alias" != "x$host_alias"; then
1369    cross_compiling=yes
1370  fi
1371fi
1372
1373ac_tool_prefix=
1374test -n "$host_alias" && ac_tool_prefix=$host_alias-
1375
1376test "$silent" = yes && exec 6>/dev/null
1377
1378
1379ac_pwd=`pwd` && test -n "$ac_pwd" &&
1380ac_ls_di=`ls -di .` &&
1381ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1382  as_fn_error $? "working directory cannot be determined"
1383test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1384  as_fn_error $? "pwd does not report name of working directory"
1385
1386
1387# Find the source files, if location was not specified.
1388if test -z "$srcdir"; then
1389  ac_srcdir_defaulted=yes
1390  # Try the directory containing this script, then the parent directory.
1391  ac_confdir=`$as_dirname -- "$as_myself" ||
1392$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1393	 X"$as_myself" : 'X\(//\)[^/]' \| \
1394	 X"$as_myself" : 'X\(//\)$' \| \
1395	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1396$as_echo X"$as_myself" |
1397    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1398	    s//\1/
1399	    q
1400	  }
1401	  /^X\(\/\/\)[^/].*/{
1402	    s//\1/
1403	    q
1404	  }
1405	  /^X\(\/\/\)$/{
1406	    s//\1/
1407	    q
1408	  }
1409	  /^X\(\/\).*/{
1410	    s//\1/
1411	    q
1412	  }
1413	  s/.*/./; q'`
1414  srcdir=$ac_confdir
1415  if test ! -r "$srcdir/$ac_unique_file"; then
1416    srcdir=..
1417  fi
1418else
1419  ac_srcdir_defaulted=no
1420fi
1421if test ! -r "$srcdir/$ac_unique_file"; then
1422  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1423  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1424fi
1425ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1426ac_abs_confdir=`(
1427	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1428	pwd)`
1429# When building in place, set srcdir=.
1430if test "$ac_abs_confdir" = "$ac_pwd"; then
1431  srcdir=.
1432fi
1433# Remove unnecessary trailing slashes from srcdir.
1434# Double slashes in file names in object file debugging info
1435# mess up M-x gdb in Emacs.
1436case $srcdir in
1437*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1438esac
1439for ac_var in $ac_precious_vars; do
1440  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1441  eval ac_env_${ac_var}_value=\$${ac_var}
1442  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1443  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1444done
1445
1446#
1447# Report the --help message.
1448#
1449if test "$ac_init_help" = "long"; then
1450  # Omit some internal or obsolete options to make the list less imposing.
1451  # This message is too long to be a string in the A/UX 3.1 sh.
1452  cat <<_ACEOF
1453\`configure' configures libXi 1.7.9 to adapt to many kinds of systems.
1454
1455Usage: $0 [OPTION]... [VAR=VALUE]...
1456
1457To assign environment variables (e.g., CC, CFLAGS...), specify them as
1458VAR=VALUE.  See below for descriptions of some of the useful variables.
1459
1460Defaults for the options are specified in brackets.
1461
1462Configuration:
1463  -h, --help              display this help and exit
1464      --help=short        display options specific to this package
1465      --help=recursive    display the short help of all the included packages
1466  -V, --version           display version information and exit
1467  -q, --quiet, --silent   do not print \`checking ...' messages
1468      --cache-file=FILE   cache test results in FILE [disabled]
1469  -C, --config-cache      alias for \`--cache-file=config.cache'
1470  -n, --no-create         do not create output files
1471      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1472
1473Installation directories:
1474  --prefix=PREFIX         install architecture-independent files in PREFIX
1475                          [$ac_default_prefix]
1476  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1477                          [PREFIX]
1478
1479By default, \`make install' will install all the files in
1480\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1481an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1482for instance \`--prefix=\$HOME'.
1483
1484For better control, use the options below.
1485
1486Fine tuning of the installation directories:
1487  --bindir=DIR            user executables [EPREFIX/bin]
1488  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1489  --libexecdir=DIR        program executables [EPREFIX/libexec]
1490  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1491  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1492  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1493  --libdir=DIR            object code libraries [EPREFIX/lib]
1494  --includedir=DIR        C header files [PREFIX/include]
1495  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1496  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1497  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1498  --infodir=DIR           info documentation [DATAROOTDIR/info]
1499  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1500  --mandir=DIR            man documentation [DATAROOTDIR/man]
1501  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXi]
1502  --htmldir=DIR           html documentation [DOCDIR]
1503  --dvidir=DIR            dvi documentation [DOCDIR]
1504  --pdfdir=DIR            pdf documentation [DOCDIR]
1505  --psdir=DIR             ps documentation [DOCDIR]
1506_ACEOF
1507
1508  cat <<\_ACEOF
1509
1510Program names:
1511  --program-prefix=PREFIX            prepend PREFIX to installed program names
1512  --program-suffix=SUFFIX            append SUFFIX to installed program names
1513  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1514
1515System types:
1516  --build=BUILD     configure for building on BUILD [guessed]
1517  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1518_ACEOF
1519fi
1520
1521if test -n "$ac_init_help"; then
1522  case $ac_init_help in
1523     short | recursive ) echo "Configuration of libXi 1.7.9:";;
1524   esac
1525  cat <<\_ACEOF
1526
1527Optional Features:
1528  --disable-option-checking  ignore unrecognized --enable/--with options
1529  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1530  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1531  --enable-silent-rules   less verbose build output (undo: "make V=1")
1532  --disable-silent-rules  verbose build output (undo: "make V=0")
1533  --enable-shared[=PKGS]  build shared libraries [default=yes]
1534  --enable-static[=PKGS]  build static libraries [default=yes]
1535  --enable-fast-install[=PKGS]
1536                          optimize for fast installation [default=yes]
1537  --enable-dependency-tracking
1538                          do not reject slow dependency extractors
1539  --disable-dependency-tracking
1540                          speeds up one-time build
1541  --disable-libtool-lock  avoid locking (might break parallel builds)
1542  --disable-selective-werror
1543                          Turn off selective compiler errors. (default:
1544                          enabled)
1545  --enable-strict-compilation
1546                          Enable all warnings from compiler and make them
1547                          errors (default: disabled)
1548  --enable-docs           Enable building the documentation (default: yes)
1549  --enable-specs          Enable building the specs (default: yes)
1550  --enable-malloc0returnsnull
1551                          malloc(0) returns NULL (default: auto)
1552
1553Optional Packages:
1554  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1555  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1556  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1557                          both]
1558  --with-aix-soname=aix|svr4|both
1559                          shared library versioning (aka "SONAME") variant to
1560                          provide on AIX, [default=aix].
1561  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1562  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1563                          compiler's sysroot if not specified).
1564  --with-xmlto            Use xmlto to regenerate documentation (default:
1565                          auto)
1566  --with-fop              Use fop to regenerate documentation (default: auto)
1567  --with-xsltproc         Use xsltproc for the transformation of XML documents
1568                          (default: auto)
1569  --with-asciidoc         Use asciidoc to regenerate documentation (default:
1570                          auto)
1571
1572Some influential environment variables:
1573  CC          C compiler command
1574  CFLAGS      C compiler flags
1575  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1576              nonstandard directory <lib dir>
1577  LIBS        libraries to pass to the linker, e.g. -l<library>
1578  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1579              you have headers in a nonstandard directory <include dir>
1580  LT_SYS_LIBRARY_PATH
1581              User-defined run-time library search path.
1582  CPP         C preprocessor
1583  PKG_CONFIG  path to pkg-config utility
1584  PKG_CONFIG_PATH
1585              directories to add to pkg-config's search path
1586  PKG_CONFIG_LIBDIR
1587              path overriding pkg-config's built-in search path
1588  XMLTO       Path to xmlto command
1589  FOP         Path to fop command
1590  XSLTPROC    Path to xsltproc command
1591  ASCIIDOC    Path to asciidoc command
1592  XI_CFLAGS   C compiler flags for XI, overriding pkg-config
1593  XI_LIBS     linker flags for XI, overriding pkg-config
1594  XFIXES_CFLAGS
1595              C compiler flags for XFIXES, overriding pkg-config
1596  XFIXES_LIBS linker flags for XFIXES, overriding pkg-config
1597
1598Use these variables to override the choices made by `configure' or to help
1599it to find libraries and programs with nonstandard names/locations.
1600
1601Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1602_ACEOF
1603ac_status=$?
1604fi
1605
1606if test "$ac_init_help" = "recursive"; then
1607  # If there are subdirs, report their specific --help.
1608  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1609    test -d "$ac_dir" ||
1610      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1611      continue
1612    ac_builddir=.
1613
1614case "$ac_dir" in
1615.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616*)
1617  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1618  # A ".." for each directory in $ac_dir_suffix.
1619  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1620  case $ac_top_builddir_sub in
1621  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1622  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1623  esac ;;
1624esac
1625ac_abs_top_builddir=$ac_pwd
1626ac_abs_builddir=$ac_pwd$ac_dir_suffix
1627# for backward compatibility:
1628ac_top_builddir=$ac_top_build_prefix
1629
1630case $srcdir in
1631  .)  # We are building in place.
1632    ac_srcdir=.
1633    ac_top_srcdir=$ac_top_builddir_sub
1634    ac_abs_top_srcdir=$ac_pwd ;;
1635  [\\/]* | ?:[\\/]* )  # Absolute name.
1636    ac_srcdir=$srcdir$ac_dir_suffix;
1637    ac_top_srcdir=$srcdir
1638    ac_abs_top_srcdir=$srcdir ;;
1639  *) # Relative name.
1640    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1641    ac_top_srcdir=$ac_top_build_prefix$srcdir
1642    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1643esac
1644ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1645
1646    cd "$ac_dir" || { ac_status=$?; continue; }
1647    # Check for guested configure.
1648    if test -f "$ac_srcdir/configure.gnu"; then
1649      echo &&
1650      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1651    elif test -f "$ac_srcdir/configure"; then
1652      echo &&
1653      $SHELL "$ac_srcdir/configure" --help=recursive
1654    else
1655      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1656    fi || ac_status=$?
1657    cd "$ac_pwd" || { ac_status=$?; break; }
1658  done
1659fi
1660
1661test -n "$ac_init_help" && exit $ac_status
1662if $ac_init_version; then
1663  cat <<\_ACEOF
1664libXi configure 1.7.9
1665generated by GNU Autoconf 2.69
1666
1667Copyright (C) 2012 Free Software Foundation, Inc.
1668This configure script is free software; the Free Software Foundation
1669gives unlimited permission to copy, distribute and modify it.
1670_ACEOF
1671  exit
1672fi
1673
1674## ------------------------ ##
1675## Autoconf initialization. ##
1676## ------------------------ ##
1677
1678# ac_fn_c_try_compile LINENO
1679# --------------------------
1680# Try to compile conftest.$ac_ext, and return whether this succeeded.
1681ac_fn_c_try_compile ()
1682{
1683  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684  rm -f conftest.$ac_objext
1685  if { { ac_try="$ac_compile"
1686case "(($ac_try" in
1687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688  *) ac_try_echo=$ac_try;;
1689esac
1690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691$as_echo "$ac_try_echo"; } >&5
1692  (eval "$ac_compile") 2>conftest.err
1693  ac_status=$?
1694  if test -s conftest.err; then
1695    grep -v '^ *+' conftest.err >conftest.er1
1696    cat conftest.er1 >&5
1697    mv -f conftest.er1 conftest.err
1698  fi
1699  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700  test $ac_status = 0; } && {
1701	 test -z "$ac_c_werror_flag" ||
1702	 test ! -s conftest.err
1703       } && test -s conftest.$ac_objext; then :
1704  ac_retval=0
1705else
1706  $as_echo "$as_me: failed program was:" >&5
1707sed 's/^/| /' conftest.$ac_ext >&5
1708
1709	ac_retval=1
1710fi
1711  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712  as_fn_set_status $ac_retval
1713
1714} # ac_fn_c_try_compile
1715
1716# ac_fn_c_try_link LINENO
1717# -----------------------
1718# Try to link conftest.$ac_ext, and return whether this succeeded.
1719ac_fn_c_try_link ()
1720{
1721  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722  rm -f conftest.$ac_objext conftest$ac_exeext
1723  if { { ac_try="$ac_link"
1724case "(($ac_try" in
1725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726  *) ac_try_echo=$ac_try;;
1727esac
1728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729$as_echo "$ac_try_echo"; } >&5
1730  (eval "$ac_link") 2>conftest.err
1731  ac_status=$?
1732  if test -s conftest.err; then
1733    grep -v '^ *+' conftest.err >conftest.er1
1734    cat conftest.er1 >&5
1735    mv -f conftest.er1 conftest.err
1736  fi
1737  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738  test $ac_status = 0; } && {
1739	 test -z "$ac_c_werror_flag" ||
1740	 test ! -s conftest.err
1741       } && test -s conftest$ac_exeext && {
1742	 test "$cross_compiling" = yes ||
1743	 test -x conftest$ac_exeext
1744       }; then :
1745  ac_retval=0
1746else
1747  $as_echo "$as_me: failed program was:" >&5
1748sed 's/^/| /' conftest.$ac_ext >&5
1749
1750	ac_retval=1
1751fi
1752  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1753  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1754  # interfere with the next link command; also delete a directory that is
1755  # left behind by Apple's compiler.  We do this before executing the actions.
1756  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1757  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758  as_fn_set_status $ac_retval
1759
1760} # ac_fn_c_try_link
1761
1762# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1763# -------------------------------------------------------
1764# Tests whether HEADER exists and can be compiled using the include files in
1765# INCLUDES, setting the cache variable VAR accordingly.
1766ac_fn_c_check_header_compile ()
1767{
1768  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770$as_echo_n "checking for $2... " >&6; }
1771if eval \${$3+:} false; then :
1772  $as_echo_n "(cached) " >&6
1773else
1774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775/* end confdefs.h.  */
1776$4
1777#include <$2>
1778_ACEOF
1779if ac_fn_c_try_compile "$LINENO"; then :
1780  eval "$3=yes"
1781else
1782  eval "$3=no"
1783fi
1784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1785fi
1786eval ac_res=\$$3
1787	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788$as_echo "$ac_res" >&6; }
1789  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790
1791} # ac_fn_c_check_header_compile
1792
1793# ac_fn_c_try_cpp LINENO
1794# ----------------------
1795# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1796ac_fn_c_try_cpp ()
1797{
1798  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799  if { { ac_try="$ac_cpp conftest.$ac_ext"
1800case "(($ac_try" in
1801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802  *) ac_try_echo=$ac_try;;
1803esac
1804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805$as_echo "$ac_try_echo"; } >&5
1806  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1807  ac_status=$?
1808  if test -s conftest.err; then
1809    grep -v '^ *+' conftest.err >conftest.er1
1810    cat conftest.er1 >&5
1811    mv -f conftest.er1 conftest.err
1812  fi
1813  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814  test $ac_status = 0; } > conftest.i && {
1815	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1816	 test ! -s conftest.err
1817       }; then :
1818  ac_retval=0
1819else
1820  $as_echo "$as_me: failed program was:" >&5
1821sed 's/^/| /' conftest.$ac_ext >&5
1822
1823    ac_retval=1
1824fi
1825  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826  as_fn_set_status $ac_retval
1827
1828} # ac_fn_c_try_cpp
1829
1830# ac_fn_c_try_run LINENO
1831# ----------------------
1832# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1833# that executables *can* be run.
1834ac_fn_c_try_run ()
1835{
1836  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837  if { { ac_try="$ac_link"
1838case "(($ac_try" in
1839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840  *) ac_try_echo=$ac_try;;
1841esac
1842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843$as_echo "$ac_try_echo"; } >&5
1844  (eval "$ac_link") 2>&5
1845  ac_status=$?
1846  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1848  { { case "(($ac_try" in
1849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850  *) ac_try_echo=$ac_try;;
1851esac
1852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853$as_echo "$ac_try_echo"; } >&5
1854  (eval "$ac_try") 2>&5
1855  ac_status=$?
1856  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857  test $ac_status = 0; }; }; then :
1858  ac_retval=0
1859else
1860  $as_echo "$as_me: program exited with status $ac_status" >&5
1861       $as_echo "$as_me: failed program was:" >&5
1862sed 's/^/| /' conftest.$ac_ext >&5
1863
1864       ac_retval=$ac_status
1865fi
1866  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1867  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868  as_fn_set_status $ac_retval
1869
1870} # ac_fn_c_try_run
1871
1872# ac_fn_c_check_func LINENO FUNC VAR
1873# ----------------------------------
1874# Tests whether FUNC exists, setting the cache variable VAR accordingly
1875ac_fn_c_check_func ()
1876{
1877  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1879$as_echo_n "checking for $2... " >&6; }
1880if eval \${$3+:} false; then :
1881  $as_echo_n "(cached) " >&6
1882else
1883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884/* end confdefs.h.  */
1885/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1886   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1887#define $2 innocuous_$2
1888
1889/* System header to define __stub macros and hopefully few prototypes,
1890    which can conflict with char $2 (); below.
1891    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1892    <limits.h> exists even on freestanding compilers.  */
1893
1894#ifdef __STDC__
1895# include <limits.h>
1896#else
1897# include <assert.h>
1898#endif
1899
1900#undef $2
1901
1902/* Override any GCC internal prototype to avoid an error.
1903   Use char because int might match the return type of a GCC
1904   builtin and then its argument prototype would still apply.  */
1905#ifdef __cplusplus
1906extern "C"
1907#endif
1908char $2 ();
1909/* The GNU C library defines this for functions which it implements
1910    to always fail with ENOSYS.  Some functions are actually named
1911    something starting with __ and the normal name is an alias.  */
1912#if defined __stub_$2 || defined __stub___$2
1913choke me
1914#endif
1915
1916int
1917main ()
1918{
1919return $2 ();
1920  ;
1921  return 0;
1922}
1923_ACEOF
1924if ac_fn_c_try_link "$LINENO"; then :
1925  eval "$3=yes"
1926else
1927  eval "$3=no"
1928fi
1929rm -f core conftest.err conftest.$ac_objext \
1930    conftest$ac_exeext conftest.$ac_ext
1931fi
1932eval ac_res=\$$3
1933	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934$as_echo "$ac_res" >&6; }
1935  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936
1937} # ac_fn_c_check_func
1938
1939# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1940# ---------------------------------------------
1941# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1942# accordingly.
1943ac_fn_c_check_decl ()
1944{
1945  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946  as_decl_name=`echo $2|sed 's/ *(.*//'`
1947  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1948  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1949$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1950if eval \${$3+:} false; then :
1951  $as_echo_n "(cached) " >&6
1952else
1953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954/* end confdefs.h.  */
1955$4
1956int
1957main ()
1958{
1959#ifndef $as_decl_name
1960#ifdef __cplusplus
1961  (void) $as_decl_use;
1962#else
1963  (void) $as_decl_name;
1964#endif
1965#endif
1966
1967  ;
1968  return 0;
1969}
1970_ACEOF
1971if ac_fn_c_try_compile "$LINENO"; then :
1972  eval "$3=yes"
1973else
1974  eval "$3=no"
1975fi
1976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977fi
1978eval ac_res=\$$3
1979	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980$as_echo "$ac_res" >&6; }
1981  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982
1983} # ac_fn_c_check_decl
1984cat >config.log <<_ACEOF
1985This file contains any messages produced by compilers while
1986running configure, to aid debugging if configure makes a mistake.
1987
1988It was created by libXi $as_me 1.7.9, which was
1989generated by GNU Autoconf 2.69.  Invocation command line was
1990
1991  $ $0 $@
1992
1993_ACEOF
1994exec 5>>config.log
1995{
1996cat <<_ASUNAME
1997## --------- ##
1998## Platform. ##
1999## --------- ##
2000
2001hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2002uname -m = `(uname -m) 2>/dev/null || echo unknown`
2003uname -r = `(uname -r) 2>/dev/null || echo unknown`
2004uname -s = `(uname -s) 2>/dev/null || echo unknown`
2005uname -v = `(uname -v) 2>/dev/null || echo unknown`
2006
2007/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2008/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2009
2010/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2011/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2012/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2013/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2014/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2015/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2016/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2017
2018_ASUNAME
2019
2020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021for as_dir in $PATH
2022do
2023  IFS=$as_save_IFS
2024  test -z "$as_dir" && as_dir=.
2025    $as_echo "PATH: $as_dir"
2026  done
2027IFS=$as_save_IFS
2028
2029} >&5
2030
2031cat >&5 <<_ACEOF
2032
2033
2034## ----------- ##
2035## Core tests. ##
2036## ----------- ##
2037
2038_ACEOF
2039
2040
2041# Keep a trace of the command line.
2042# Strip out --no-create and --no-recursion so they do not pile up.
2043# Strip out --silent because we don't want to record it for future runs.
2044# Also quote any args containing shell meta-characters.
2045# Make two passes to allow for proper duplicate-argument suppression.
2046ac_configure_args=
2047ac_configure_args0=
2048ac_configure_args1=
2049ac_must_keep_next=false
2050for ac_pass in 1 2
2051do
2052  for ac_arg
2053  do
2054    case $ac_arg in
2055    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2056    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2057    | -silent | --silent | --silen | --sile | --sil)
2058      continue ;;
2059    *\'*)
2060      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2061    esac
2062    case $ac_pass in
2063    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2064    2)
2065      as_fn_append ac_configure_args1 " '$ac_arg'"
2066      if test $ac_must_keep_next = true; then
2067	ac_must_keep_next=false # Got value, back to normal.
2068      else
2069	case $ac_arg in
2070	  *=* | --config-cache | -C | -disable-* | --disable-* \
2071	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2072	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2073	  | -with-* | --with-* | -without-* | --without-* | --x)
2074	    case "$ac_configure_args0 " in
2075	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2076	    esac
2077	    ;;
2078	  -* ) ac_must_keep_next=true ;;
2079	esac
2080      fi
2081      as_fn_append ac_configure_args " '$ac_arg'"
2082      ;;
2083    esac
2084  done
2085done
2086{ ac_configure_args0=; unset ac_configure_args0;}
2087{ ac_configure_args1=; unset ac_configure_args1;}
2088
2089# When interrupted or exit'd, cleanup temporary files, and complete
2090# config.log.  We remove comments because anyway the quotes in there
2091# would cause problems or look ugly.
2092# WARNING: Use '\'' to represent an apostrophe within the trap.
2093# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2094trap 'exit_status=$?
2095  # Save into config.log some information that might help in debugging.
2096  {
2097    echo
2098
2099    $as_echo "## ---------------- ##
2100## Cache variables. ##
2101## ---------------- ##"
2102    echo
2103    # The following way of writing the cache mishandles newlines in values,
2104(
2105  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2106    eval ac_val=\$$ac_var
2107    case $ac_val in #(
2108    *${as_nl}*)
2109      case $ac_var in #(
2110      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2111$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2112      esac
2113      case $ac_var in #(
2114      _ | IFS | as_nl) ;; #(
2115      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2116      *) { eval $ac_var=; unset $ac_var;} ;;
2117      esac ;;
2118    esac
2119  done
2120  (set) 2>&1 |
2121    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2122    *${as_nl}ac_space=\ *)
2123      sed -n \
2124	"s/'\''/'\''\\\\'\'''\''/g;
2125	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2126      ;; #(
2127    *)
2128      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2129      ;;
2130    esac |
2131    sort
2132)
2133    echo
2134
2135    $as_echo "## ----------------- ##
2136## Output variables. ##
2137## ----------------- ##"
2138    echo
2139    for ac_var in $ac_subst_vars
2140    do
2141      eval ac_val=\$$ac_var
2142      case $ac_val in
2143      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2144      esac
2145      $as_echo "$ac_var='\''$ac_val'\''"
2146    done | sort
2147    echo
2148
2149    if test -n "$ac_subst_files"; then
2150      $as_echo "## ------------------- ##
2151## File substitutions. ##
2152## ------------------- ##"
2153      echo
2154      for ac_var in $ac_subst_files
2155      do
2156	eval ac_val=\$$ac_var
2157	case $ac_val in
2158	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2159	esac
2160	$as_echo "$ac_var='\''$ac_val'\''"
2161      done | sort
2162      echo
2163    fi
2164
2165    if test -s confdefs.h; then
2166      $as_echo "## ----------- ##
2167## confdefs.h. ##
2168## ----------- ##"
2169      echo
2170      cat confdefs.h
2171      echo
2172    fi
2173    test "$ac_signal" != 0 &&
2174      $as_echo "$as_me: caught signal $ac_signal"
2175    $as_echo "$as_me: exit $exit_status"
2176  } >&5
2177  rm -f core *.core core.conftest.* &&
2178    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2179    exit $exit_status
2180' 0
2181for ac_signal in 1 2 13 15; do
2182  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2183done
2184ac_signal=0
2185
2186# confdefs.h avoids OS command line length limits that DEFS can exceed.
2187rm -f -r conftest* confdefs.h
2188
2189$as_echo "/* confdefs.h */" > confdefs.h
2190
2191# Predefined preprocessor variables.
2192
2193cat >>confdefs.h <<_ACEOF
2194#define PACKAGE_NAME "$PACKAGE_NAME"
2195_ACEOF
2196
2197cat >>confdefs.h <<_ACEOF
2198#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2199_ACEOF
2200
2201cat >>confdefs.h <<_ACEOF
2202#define PACKAGE_VERSION "$PACKAGE_VERSION"
2203_ACEOF
2204
2205cat >>confdefs.h <<_ACEOF
2206#define PACKAGE_STRING "$PACKAGE_STRING"
2207_ACEOF
2208
2209cat >>confdefs.h <<_ACEOF
2210#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2211_ACEOF
2212
2213cat >>confdefs.h <<_ACEOF
2214#define PACKAGE_URL "$PACKAGE_URL"
2215_ACEOF
2216
2217
2218# Let the site file select an alternate cache file if it wants to.
2219# Prefer an explicitly selected file to automatically selected ones.
2220ac_site_file1=NONE
2221ac_site_file2=NONE
2222if test -n "$CONFIG_SITE"; then
2223  # We do not want a PATH search for config.site.
2224  case $CONFIG_SITE in #((
2225    -*)  ac_site_file1=./$CONFIG_SITE;;
2226    */*) ac_site_file1=$CONFIG_SITE;;
2227    *)   ac_site_file1=./$CONFIG_SITE;;
2228  esac
2229elif test "x$prefix" != xNONE; then
2230  ac_site_file1=$prefix/share/config.site
2231  ac_site_file2=$prefix/etc/config.site
2232else
2233  ac_site_file1=$ac_default_prefix/share/config.site
2234  ac_site_file2=$ac_default_prefix/etc/config.site
2235fi
2236for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2237do
2238  test "x$ac_site_file" = xNONE && continue
2239  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2240    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2241$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2242    sed 's/^/| /' "$ac_site_file" >&5
2243    . "$ac_site_file" \
2244      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2245$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2246as_fn_error $? "failed to load site script $ac_site_file
2247See \`config.log' for more details" "$LINENO" 5; }
2248  fi
2249done
2250
2251if test -r "$cache_file"; then
2252  # Some versions of bash will fail to source /dev/null (special files
2253  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2254  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2255    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2256$as_echo "$as_me: loading cache $cache_file" >&6;}
2257    case $cache_file in
2258      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2259      *)                      . "./$cache_file";;
2260    esac
2261  fi
2262else
2263  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2264$as_echo "$as_me: creating cache $cache_file" >&6;}
2265  >$cache_file
2266fi
2267
2268# Check that the precious variables saved in the cache have kept the same
2269# value.
2270ac_cache_corrupted=false
2271for ac_var in $ac_precious_vars; do
2272  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2273  eval ac_new_set=\$ac_env_${ac_var}_set
2274  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2275  eval ac_new_val=\$ac_env_${ac_var}_value
2276  case $ac_old_set,$ac_new_set in
2277    set,)
2278      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2279$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2280      ac_cache_corrupted=: ;;
2281    ,set)
2282      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2283$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2284      ac_cache_corrupted=: ;;
2285    ,);;
2286    *)
2287      if test "x$ac_old_val" != "x$ac_new_val"; then
2288	# differences in whitespace do not lead to failure.
2289	ac_old_val_w=`echo x $ac_old_val`
2290	ac_new_val_w=`echo x $ac_new_val`
2291	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2292	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2293$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2294	  ac_cache_corrupted=:
2295	else
2296	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2297$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2298	  eval $ac_var=\$ac_old_val
2299	fi
2300	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2301$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2302	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2303$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2304      fi;;
2305  esac
2306  # Pass precious variables to config.status.
2307  if test "$ac_new_set" = set; then
2308    case $ac_new_val in
2309    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2310    *) ac_arg=$ac_var=$ac_new_val ;;
2311    esac
2312    case " $ac_configure_args " in
2313      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2314      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2315    esac
2316  fi
2317done
2318if $ac_cache_corrupted; then
2319  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2320$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2321  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2322$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2323  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2324fi
2325## -------------------- ##
2326## Main body of script. ##
2327## -------------------- ##
2328
2329ac_ext=c
2330ac_cpp='$CPP $CPPFLAGS'
2331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2333ac_compiler_gnu=$ac_cv_c_compiler_gnu
2334
2335
2336
2337ac_config_headers="$ac_config_headers src/config.h"
2338
2339
2340# Initialize Automake
2341am__api_version='1.15'
2342
2343ac_aux_dir=
2344for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2345  if test -f "$ac_dir/install-sh"; then
2346    ac_aux_dir=$ac_dir
2347    ac_install_sh="$ac_aux_dir/install-sh -c"
2348    break
2349  elif test -f "$ac_dir/install.sh"; then
2350    ac_aux_dir=$ac_dir
2351    ac_install_sh="$ac_aux_dir/install.sh -c"
2352    break
2353  elif test -f "$ac_dir/shtool"; then
2354    ac_aux_dir=$ac_dir
2355    ac_install_sh="$ac_aux_dir/shtool install -c"
2356    break
2357  fi
2358done
2359if test -z "$ac_aux_dir"; then
2360  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2361fi
2362
2363# These three variables are undocumented and unsupported,
2364# and are intended to be withdrawn in a future Autoconf release.
2365# They can cause serious problems if a builder's source tree is in a directory
2366# whose full name contains unusual characters.
2367ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2368ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2369ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2370
2371
2372# Find a good install program.  We prefer a C program (faster),
2373# so one script is as good as another.  But avoid the broken or
2374# incompatible versions:
2375# SysV /etc/install, /usr/sbin/install
2376# SunOS /usr/etc/install
2377# IRIX /sbin/install
2378# AIX /bin/install
2379# AmigaOS /C/install, which installs bootblocks on floppy discs
2380# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2381# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2382# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2383# OS/2's system install, which has a completely different semantic
2384# ./install, which can be erroneously created by make from ./install.sh.
2385# Reject install programs that cannot install multiple files.
2386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2387$as_echo_n "checking for a BSD-compatible install... " >&6; }
2388if test -z "$INSTALL"; then
2389if ${ac_cv_path_install+:} false; then :
2390  $as_echo_n "(cached) " >&6
2391else
2392  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393for as_dir in $PATH
2394do
2395  IFS=$as_save_IFS
2396  test -z "$as_dir" && as_dir=.
2397    # Account for people who put trailing slashes in PATH elements.
2398case $as_dir/ in #((
2399  ./ | .// | /[cC]/* | \
2400  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2401  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2402  /usr/ucb/* ) ;;
2403  *)
2404    # OSF1 and SCO ODT 3.0 have their own names for install.
2405    # Don't use installbsd from OSF since it installs stuff as root
2406    # by default.
2407    for ac_prog in ginstall scoinst install; do
2408      for ac_exec_ext in '' $ac_executable_extensions; do
2409	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2410	  if test $ac_prog = install &&
2411	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2412	    # AIX install.  It has an incompatible calling convention.
2413	    :
2414	  elif test $ac_prog = install &&
2415	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2416	    # program-specific install script used by HP pwplus--don't use.
2417	    :
2418	  else
2419	    rm -rf conftest.one conftest.two conftest.dir
2420	    echo one > conftest.one
2421	    echo two > conftest.two
2422	    mkdir conftest.dir
2423	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2424	      test -s conftest.one && test -s conftest.two &&
2425	      test -s conftest.dir/conftest.one &&
2426	      test -s conftest.dir/conftest.two
2427	    then
2428	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2429	      break 3
2430	    fi
2431	  fi
2432	fi
2433      done
2434    done
2435    ;;
2436esac
2437
2438  done
2439IFS=$as_save_IFS
2440
2441rm -rf conftest.one conftest.two conftest.dir
2442
2443fi
2444  if test "${ac_cv_path_install+set}" = set; then
2445    INSTALL=$ac_cv_path_install
2446  else
2447    # As a last resort, use the slow shell script.  Don't cache a
2448    # value for INSTALL within a source directory, because that will
2449    # break other packages using the cache if that directory is
2450    # removed, or if the value is a relative name.
2451    INSTALL=$ac_install_sh
2452  fi
2453fi
2454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2455$as_echo "$INSTALL" >&6; }
2456
2457# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2458# It thinks the first close brace ends the variable substitution.
2459test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2460
2461test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2462
2463test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2464
2465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2466$as_echo_n "checking whether build environment is sane... " >&6; }
2467# Reject unsafe characters in $srcdir or the absolute working directory
2468# name.  Accept space and tab only in the latter.
2469am_lf='
2470'
2471case `pwd` in
2472  *[\\\"\#\$\&\'\`$am_lf]*)
2473    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2474esac
2475case $srcdir in
2476  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2477    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2478esac
2479
2480# Do 'set' in a subshell so we don't clobber the current shell's
2481# arguments.  Must try -L first in case configure is actually a
2482# symlink; some systems play weird games with the mod time of symlinks
2483# (eg FreeBSD returns the mod time of the symlink's containing
2484# directory).
2485if (
2486   am_has_slept=no
2487   for am_try in 1 2; do
2488     echo "timestamp, slept: $am_has_slept" > conftest.file
2489     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2490     if test "$*" = "X"; then
2491	# -L didn't work.
2492	set X `ls -t "$srcdir/configure" conftest.file`
2493     fi
2494     if test "$*" != "X $srcdir/configure conftest.file" \
2495	&& test "$*" != "X conftest.file $srcdir/configure"; then
2496
2497	# If neither matched, then we have a broken ls.  This can happen
2498	# if, for instance, CONFIG_SHELL is bash and it inherits a
2499	# broken ls alias from the environment.  This has actually
2500	# happened.  Such a system could not be considered "sane".
2501	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2502  alias in your environment" "$LINENO" 5
2503     fi
2504     if test "$2" = conftest.file || test $am_try -eq 2; then
2505       break
2506     fi
2507     # Just in case.
2508     sleep 1
2509     am_has_slept=yes
2510   done
2511   test "$2" = conftest.file
2512   )
2513then
2514   # Ok.
2515   :
2516else
2517   as_fn_error $? "newly created file is older than distributed files!
2518Check your system clock" "$LINENO" 5
2519fi
2520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2521$as_echo "yes" >&6; }
2522# If we didn't sleep, we still need to ensure time stamps of config.status and
2523# generated files are strictly newer.
2524am_sleep_pid=
2525if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2526  ( sleep 1 ) &
2527  am_sleep_pid=$!
2528fi
2529
2530rm -f conftest.file
2531
2532test "$program_prefix" != NONE &&
2533  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2534# Use a double $ so make ignores it.
2535test "$program_suffix" != NONE &&
2536  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2537# Double any \ or $.
2538# By default was `s,x,x', remove it if useless.
2539ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2540program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2541
2542# Expand $ac_aux_dir to an absolute path.
2543am_aux_dir=`cd "$ac_aux_dir" && pwd`
2544
2545if test x"${MISSING+set}" != xset; then
2546  case $am_aux_dir in
2547  *\ * | *\	*)
2548    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2549  *)
2550    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2551  esac
2552fi
2553# Use eval to expand $SHELL
2554if eval "$MISSING --is-lightweight"; then
2555  am_missing_run="$MISSING "
2556else
2557  am_missing_run=
2558  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2559$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2560fi
2561
2562if test x"${install_sh+set}" != xset; then
2563  case $am_aux_dir in
2564  *\ * | *\	*)
2565    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2566  *)
2567    install_sh="\${SHELL} $am_aux_dir/install-sh"
2568  esac
2569fi
2570
2571# Installed binaries are usually stripped using 'strip' when the user
2572# run "make install-strip".  However 'strip' might not be the right
2573# tool to use in cross-compilation environments, therefore Automake
2574# will honor the 'STRIP' environment variable to overrule this program.
2575if test "$cross_compiling" != no; then
2576  if test -n "$ac_tool_prefix"; then
2577  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2578set dummy ${ac_tool_prefix}strip; ac_word=$2
2579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2580$as_echo_n "checking for $ac_word... " >&6; }
2581if ${ac_cv_prog_STRIP+:} false; then :
2582  $as_echo_n "(cached) " >&6
2583else
2584  if test -n "$STRIP"; then
2585  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2586else
2587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588for as_dir in $PATH
2589do
2590  IFS=$as_save_IFS
2591  test -z "$as_dir" && as_dir=.
2592    for ac_exec_ext in '' $ac_executable_extensions; do
2593  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2594    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2595    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2596    break 2
2597  fi
2598done
2599  done
2600IFS=$as_save_IFS
2601
2602fi
2603fi
2604STRIP=$ac_cv_prog_STRIP
2605if test -n "$STRIP"; then
2606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2607$as_echo "$STRIP" >&6; }
2608else
2609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2610$as_echo "no" >&6; }
2611fi
2612
2613
2614fi
2615if test -z "$ac_cv_prog_STRIP"; then
2616  ac_ct_STRIP=$STRIP
2617  # Extract the first word of "strip", so it can be a program name with args.
2618set dummy strip; ac_word=$2
2619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2620$as_echo_n "checking for $ac_word... " >&6; }
2621if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2622  $as_echo_n "(cached) " >&6
2623else
2624  if test -n "$ac_ct_STRIP"; then
2625  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2626else
2627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628for as_dir in $PATH
2629do
2630  IFS=$as_save_IFS
2631  test -z "$as_dir" && as_dir=.
2632    for ac_exec_ext in '' $ac_executable_extensions; do
2633  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2634    ac_cv_prog_ac_ct_STRIP="strip"
2635    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2636    break 2
2637  fi
2638done
2639  done
2640IFS=$as_save_IFS
2641
2642fi
2643fi
2644ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2645if test -n "$ac_ct_STRIP"; then
2646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2647$as_echo "$ac_ct_STRIP" >&6; }
2648else
2649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2650$as_echo "no" >&6; }
2651fi
2652
2653  if test "x$ac_ct_STRIP" = x; then
2654    STRIP=":"
2655  else
2656    case $cross_compiling:$ac_tool_warned in
2657yes:)
2658{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2659$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2660ac_tool_warned=yes ;;
2661esac
2662    STRIP=$ac_ct_STRIP
2663  fi
2664else
2665  STRIP="$ac_cv_prog_STRIP"
2666fi
2667
2668fi
2669INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2670
2671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2672$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2673if test -z "$MKDIR_P"; then
2674  if ${ac_cv_path_mkdir+:} false; then :
2675  $as_echo_n "(cached) " >&6
2676else
2677  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2679do
2680  IFS=$as_save_IFS
2681  test -z "$as_dir" && as_dir=.
2682    for ac_prog in mkdir gmkdir; do
2683	 for ac_exec_ext in '' $ac_executable_extensions; do
2684	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2685	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2686	     'mkdir (GNU coreutils) '* | \
2687	     'mkdir (coreutils) '* | \
2688	     'mkdir (fileutils) '4.1*)
2689	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2690	       break 3;;
2691	   esac
2692	 done
2693       done
2694  done
2695IFS=$as_save_IFS
2696
2697fi
2698
2699  test -d ./--version && rmdir ./--version
2700  if test "${ac_cv_path_mkdir+set}" = set; then
2701    MKDIR_P="$ac_cv_path_mkdir -p"
2702  else
2703    # As a last resort, use the slow shell script.  Don't cache a
2704    # value for MKDIR_P within a source directory, because that will
2705    # break other packages using the cache if that directory is
2706    # removed, or if the value is a relative name.
2707    MKDIR_P="$ac_install_sh -d"
2708  fi
2709fi
2710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2711$as_echo "$MKDIR_P" >&6; }
2712
2713for ac_prog in gawk mawk nawk awk
2714do
2715  # Extract the first word of "$ac_prog", so it can be a program name with args.
2716set dummy $ac_prog; ac_word=$2
2717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2718$as_echo_n "checking for $ac_word... " >&6; }
2719if ${ac_cv_prog_AWK+:} false; then :
2720  $as_echo_n "(cached) " >&6
2721else
2722  if test -n "$AWK"; then
2723  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2724else
2725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726for as_dir in $PATH
2727do
2728  IFS=$as_save_IFS
2729  test -z "$as_dir" && as_dir=.
2730    for ac_exec_ext in '' $ac_executable_extensions; do
2731  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2732    ac_cv_prog_AWK="$ac_prog"
2733    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2734    break 2
2735  fi
2736done
2737  done
2738IFS=$as_save_IFS
2739
2740fi
2741fi
2742AWK=$ac_cv_prog_AWK
2743if test -n "$AWK"; then
2744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2745$as_echo "$AWK" >&6; }
2746else
2747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2748$as_echo "no" >&6; }
2749fi
2750
2751
2752  test -n "$AWK" && break
2753done
2754
2755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2756$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2757set x ${MAKE-make}
2758ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2759if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2760  $as_echo_n "(cached) " >&6
2761else
2762  cat >conftest.make <<\_ACEOF
2763SHELL = /bin/sh
2764all:
2765	@echo '@@@%%%=$(MAKE)=@@@%%%'
2766_ACEOF
2767# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2768case `${MAKE-make} -f conftest.make 2>/dev/null` in
2769  *@@@%%%=?*=@@@%%%*)
2770    eval ac_cv_prog_make_${ac_make}_set=yes;;
2771  *)
2772    eval ac_cv_prog_make_${ac_make}_set=no;;
2773esac
2774rm -f conftest.make
2775fi
2776if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2778$as_echo "yes" >&6; }
2779  SET_MAKE=
2780else
2781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2782$as_echo "no" >&6; }
2783  SET_MAKE="MAKE=${MAKE-make}"
2784fi
2785
2786rm -rf .tst 2>/dev/null
2787mkdir .tst 2>/dev/null
2788if test -d .tst; then
2789  am__leading_dot=.
2790else
2791  am__leading_dot=_
2792fi
2793rmdir .tst 2>/dev/null
2794
2795# Check whether --enable-silent-rules was given.
2796if test "${enable_silent_rules+set}" = set; then :
2797  enableval=$enable_silent_rules;
2798fi
2799
2800case $enable_silent_rules in # (((
2801  yes) AM_DEFAULT_VERBOSITY=0;;
2802   no) AM_DEFAULT_VERBOSITY=1;;
2803    *) AM_DEFAULT_VERBOSITY=1;;
2804esac
2805am_make=${MAKE-make}
2806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2807$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2808if ${am_cv_make_support_nested_variables+:} false; then :
2809  $as_echo_n "(cached) " >&6
2810else
2811  if $as_echo 'TRUE=$(BAR$(V))
2812BAR0=false
2813BAR1=true
2814V=1
2815am__doit:
2816	@$(TRUE)
2817.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2818  am_cv_make_support_nested_variables=yes
2819else
2820  am_cv_make_support_nested_variables=no
2821fi
2822fi
2823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2824$as_echo "$am_cv_make_support_nested_variables" >&6; }
2825if test $am_cv_make_support_nested_variables = yes; then
2826    AM_V='$(V)'
2827  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2828else
2829  AM_V=$AM_DEFAULT_VERBOSITY
2830  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2831fi
2832AM_BACKSLASH='\'
2833
2834if test "`cd $srcdir && pwd`" != "`pwd`"; then
2835  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2836  # is not polluted with repeated "-I."
2837  am__isrc=' -I$(srcdir)'
2838  # test to see if srcdir already configured
2839  if test -f $srcdir/config.status; then
2840    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2841  fi
2842fi
2843
2844# test whether we have cygpath
2845if test -z "$CYGPATH_W"; then
2846  if (cygpath --version) >/dev/null 2>/dev/null; then
2847    CYGPATH_W='cygpath -w'
2848  else
2849    CYGPATH_W=echo
2850  fi
2851fi
2852
2853
2854# Define the identity of the package.
2855 PACKAGE='libXi'
2856 VERSION='1.7.9'
2857
2858
2859cat >>confdefs.h <<_ACEOF
2860#define PACKAGE "$PACKAGE"
2861_ACEOF
2862
2863
2864cat >>confdefs.h <<_ACEOF
2865#define VERSION "$VERSION"
2866_ACEOF
2867
2868# Some tools Automake needs.
2869
2870ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2871
2872
2873AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2874
2875
2876AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2877
2878
2879AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2880
2881
2882MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2883
2884# For better backward compatibility.  To be removed once Automake 1.9.x
2885# dies out for good.  For more background, see:
2886# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2887# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2888mkdir_p='$(MKDIR_P)'
2889
2890# We need awk for the "check" target (and possibly the TAP driver).  The
2891# system "awk" is bad on some platforms.
2892# Always define AMTAR for backward compatibility.  Yes, it's still used
2893# in the wild :-(  We should find a proper way to deprecate it ...
2894AMTAR='$${TAR-tar}'
2895
2896
2897# We'll loop over all known methods to create a tar archive until one works.
2898_am_tools='gnutar  pax cpio none'
2899
2900am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2901
2902
2903
2904
2905
2906
2907# POSIX will say in a future version that running "rm -f" with no argument
2908# is OK; and we want to be able to make that assumption in our Makefile
2909# recipes.  So use an aggressive probe to check that the usage we want is
2910# actually supported "in the wild" to an acceptable degree.
2911# See automake bug#10828.
2912# To make any issue more visible, cause the running configure to be aborted
2913# by default if the 'rm' program in use doesn't match our expectations; the
2914# user can still override this though.
2915if rm -f && rm -fr && rm -rf; then : OK; else
2916  cat >&2 <<'END'
2917Oops!
2918
2919Your 'rm' program seems unable to run without file operands specified
2920on the command line, even when the '-f' option is present.  This is contrary
2921to the behaviour of most rm programs out there, and not conforming with
2922the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2923
2924Please tell bug-automake@gnu.org about your system, including the value
2925of your $PATH and any error possibly output before this message.  This
2926can help us improve future automake versions.
2927
2928END
2929  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2930    echo 'Configuration will proceed anyway, since you have set the' >&2
2931    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2932    echo >&2
2933  else
2934    cat >&2 <<'END'
2935Aborting the configuration process, to ensure you take notice of the issue.
2936
2937You can download and install GNU coreutils to get an 'rm' implementation
2938that behaves properly: <http://www.gnu.org/software/coreutils/>.
2939
2940If you want to complete the configuration process using your problematic
2941'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2942to "yes", and re-run configure.
2943
2944END
2945    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2946  fi
2947fi
2948
2949
2950# Initialize libtool
2951case `pwd` in
2952  *\ * | *\	*)
2953    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2954$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2955esac
2956
2957
2958
2959macro_version='2.4.6'
2960macro_revision='2.4.6'
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974ltmain=$ac_aux_dir/ltmain.sh
2975
2976# Make sure we can run config.sub.
2977$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2978  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2979
2980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2981$as_echo_n "checking build system type... " >&6; }
2982if ${ac_cv_build+:} false; then :
2983  $as_echo_n "(cached) " >&6
2984else
2985  ac_build_alias=$build_alias
2986test "x$ac_build_alias" = x &&
2987  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2988test "x$ac_build_alias" = x &&
2989  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2990ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2991  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2992
2993fi
2994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2995$as_echo "$ac_cv_build" >&6; }
2996case $ac_cv_build in
2997*-*-*) ;;
2998*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2999esac
3000build=$ac_cv_build
3001ac_save_IFS=$IFS; IFS='-'
3002set x $ac_cv_build
3003shift
3004build_cpu=$1
3005build_vendor=$2
3006shift; shift
3007# Remember, the first character of IFS is used to create $*,
3008# except with old shells:
3009build_os=$*
3010IFS=$ac_save_IFS
3011case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3012
3013
3014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3015$as_echo_n "checking host system type... " >&6; }
3016if ${ac_cv_host+:} false; then :
3017  $as_echo_n "(cached) " >&6
3018else
3019  if test "x$host_alias" = x; then
3020  ac_cv_host=$ac_cv_build
3021else
3022  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3023    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3024fi
3025
3026fi
3027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3028$as_echo "$ac_cv_host" >&6; }
3029case $ac_cv_host in
3030*-*-*) ;;
3031*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3032esac
3033host=$ac_cv_host
3034ac_save_IFS=$IFS; IFS='-'
3035set x $ac_cv_host
3036shift
3037host_cpu=$1
3038host_vendor=$2
3039shift; shift
3040# Remember, the first character of IFS is used to create $*,
3041# except with old shells:
3042host_os=$*
3043IFS=$ac_save_IFS
3044case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3045
3046
3047# Backslashify metacharacters that are still active within
3048# double-quoted strings.
3049sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3050
3051# Same as above, but do not quote variable references.
3052double_quote_subst='s/\(["`\\]\)/\\\1/g'
3053
3054# Sed substitution to delay expansion of an escaped shell variable in a
3055# double_quote_subst'ed string.
3056delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3057
3058# Sed substitution to delay expansion of an escaped single quote.
3059delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3060
3061# Sed substitution to avoid accidental globbing in evaled expressions
3062no_glob_subst='s/\*/\\\*/g'
3063
3064ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3065ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3066ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3067
3068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3069$as_echo_n "checking how to print strings... " >&6; }
3070# Test print first, because it will be a builtin if present.
3071if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3072   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3073  ECHO='print -r --'
3074elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3075  ECHO='printf %s\n'
3076else
3077  # Use this function as a fallback that always works.
3078  func_fallback_echo ()
3079  {
3080    eval 'cat <<_LTECHO_EOF
3081$1
3082_LTECHO_EOF'
3083  }
3084  ECHO='func_fallback_echo'
3085fi
3086
3087# func_echo_all arg...
3088# Invoke $ECHO with all args, space-separated.
3089func_echo_all ()
3090{
3091    $ECHO ""
3092}
3093
3094case $ECHO in
3095  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3096$as_echo "printf" >&6; } ;;
3097  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3098$as_echo "print -r" >&6; } ;;
3099  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3100$as_echo "cat" >&6; } ;;
3101esac
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116DEPDIR="${am__leading_dot}deps"
3117
3118ac_config_commands="$ac_config_commands depfiles"
3119
3120
3121am_make=${MAKE-make}
3122cat > confinc << 'END'
3123am__doit:
3124	@echo this is the am__doit target
3125.PHONY: am__doit
3126END
3127# If we don't find an include directive, just comment out the code.
3128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3129$as_echo_n "checking for style of include used by $am_make... " >&6; }
3130am__include="#"
3131am__quote=
3132_am_result=none
3133# First try GNU make style include.
3134echo "include confinc" > confmf
3135# Ignore all kinds of additional output from 'make'.
3136case `$am_make -s -f confmf 2> /dev/null` in #(
3137*the\ am__doit\ target*)
3138  am__include=include
3139  am__quote=
3140  _am_result=GNU
3141  ;;
3142esac
3143# Now try BSD make style include.
3144if test "$am__include" = "#"; then
3145   echo '.include "confinc"' > confmf
3146   case `$am_make -s -f confmf 2> /dev/null` in #(
3147   *the\ am__doit\ target*)
3148     am__include=.include
3149     am__quote="\""
3150     _am_result=BSD
3151     ;;
3152   esac
3153fi
3154
3155
3156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3157$as_echo "$_am_result" >&6; }
3158rm -f confinc confmf
3159
3160# Check whether --enable-dependency-tracking was given.
3161if test "${enable_dependency_tracking+set}" = set; then :
3162  enableval=$enable_dependency_tracking;
3163fi
3164
3165if test "x$enable_dependency_tracking" != xno; then
3166  am_depcomp="$ac_aux_dir/depcomp"
3167  AMDEPBACKSLASH='\'
3168  am__nodep='_no'
3169fi
3170 if test "x$enable_dependency_tracking" != xno; then
3171  AMDEP_TRUE=
3172  AMDEP_FALSE='#'
3173else
3174  AMDEP_TRUE='#'
3175  AMDEP_FALSE=
3176fi
3177
3178
3179ac_ext=c
3180ac_cpp='$CPP $CPPFLAGS'
3181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3183ac_compiler_gnu=$ac_cv_c_compiler_gnu
3184if test -n "$ac_tool_prefix"; then
3185  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3186set dummy ${ac_tool_prefix}gcc; ac_word=$2
3187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3188$as_echo_n "checking for $ac_word... " >&6; }
3189if ${ac_cv_prog_CC+:} false; then :
3190  $as_echo_n "(cached) " >&6
3191else
3192  if test -n "$CC"; then
3193  ac_cv_prog_CC="$CC" # Let the user override the test.
3194else
3195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196for as_dir in $PATH
3197do
3198  IFS=$as_save_IFS
3199  test -z "$as_dir" && as_dir=.
3200    for ac_exec_ext in '' $ac_executable_extensions; do
3201  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3202    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3203    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3204    break 2
3205  fi
3206done
3207  done
3208IFS=$as_save_IFS
3209
3210fi
3211fi
3212CC=$ac_cv_prog_CC
3213if test -n "$CC"; then
3214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3215$as_echo "$CC" >&6; }
3216else
3217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218$as_echo "no" >&6; }
3219fi
3220
3221
3222fi
3223if test -z "$ac_cv_prog_CC"; then
3224  ac_ct_CC=$CC
3225  # Extract the first word of "gcc", so it can be a program name with args.
3226set dummy gcc; ac_word=$2
3227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3228$as_echo_n "checking for $ac_word... " >&6; }
3229if ${ac_cv_prog_ac_ct_CC+:} false; then :
3230  $as_echo_n "(cached) " >&6
3231else
3232  if test -n "$ac_ct_CC"; then
3233  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3234else
3235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236for as_dir in $PATH
3237do
3238  IFS=$as_save_IFS
3239  test -z "$as_dir" && as_dir=.
3240    for ac_exec_ext in '' $ac_executable_extensions; do
3241  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3242    ac_cv_prog_ac_ct_CC="gcc"
3243    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3244    break 2
3245  fi
3246done
3247  done
3248IFS=$as_save_IFS
3249
3250fi
3251fi
3252ac_ct_CC=$ac_cv_prog_ac_ct_CC
3253if test -n "$ac_ct_CC"; then
3254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3255$as_echo "$ac_ct_CC" >&6; }
3256else
3257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258$as_echo "no" >&6; }
3259fi
3260
3261  if test "x$ac_ct_CC" = x; then
3262    CC=""
3263  else
3264    case $cross_compiling:$ac_tool_warned in
3265yes:)
3266{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3267$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3268ac_tool_warned=yes ;;
3269esac
3270    CC=$ac_ct_CC
3271  fi
3272else
3273  CC="$ac_cv_prog_CC"
3274fi
3275
3276if test -z "$CC"; then
3277          if test -n "$ac_tool_prefix"; then
3278    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3279set dummy ${ac_tool_prefix}cc; ac_word=$2
3280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3281$as_echo_n "checking for $ac_word... " >&6; }
3282if ${ac_cv_prog_CC+:} false; then :
3283  $as_echo_n "(cached) " >&6
3284else
3285  if test -n "$CC"; then
3286  ac_cv_prog_CC="$CC" # Let the user override the test.
3287else
3288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289for as_dir in $PATH
3290do
3291  IFS=$as_save_IFS
3292  test -z "$as_dir" && as_dir=.
3293    for ac_exec_ext in '' $ac_executable_extensions; do
3294  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3295    ac_cv_prog_CC="${ac_tool_prefix}cc"
3296    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3297    break 2
3298  fi
3299done
3300  done
3301IFS=$as_save_IFS
3302
3303fi
3304fi
3305CC=$ac_cv_prog_CC
3306if test -n "$CC"; then
3307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3308$as_echo "$CC" >&6; }
3309else
3310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311$as_echo "no" >&6; }
3312fi
3313
3314
3315  fi
3316fi
3317if test -z "$CC"; then
3318  # Extract the first word of "cc", so it can be a program name with args.
3319set dummy cc; ac_word=$2
3320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3321$as_echo_n "checking for $ac_word... " >&6; }
3322if ${ac_cv_prog_CC+:} false; then :
3323  $as_echo_n "(cached) " >&6
3324else
3325  if test -n "$CC"; then
3326  ac_cv_prog_CC="$CC" # Let the user override the test.
3327else
3328  ac_prog_rejected=no
3329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330for as_dir in $PATH
3331do
3332  IFS=$as_save_IFS
3333  test -z "$as_dir" && as_dir=.
3334    for ac_exec_ext in '' $ac_executable_extensions; do
3335  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3336    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3337       ac_prog_rejected=yes
3338       continue
3339     fi
3340    ac_cv_prog_CC="cc"
3341    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3342    break 2
3343  fi
3344done
3345  done
3346IFS=$as_save_IFS
3347
3348if test $ac_prog_rejected = yes; then
3349  # We found a bogon in the path, so make sure we never use it.
3350  set dummy $ac_cv_prog_CC
3351  shift
3352  if test $# != 0; then
3353    # We chose a different compiler from the bogus one.
3354    # However, it has the same basename, so the bogon will be chosen
3355    # first if we set CC to just the basename; use the full file name.
3356    shift
3357    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3358  fi
3359fi
3360fi
3361fi
3362CC=$ac_cv_prog_CC
3363if test -n "$CC"; then
3364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3365$as_echo "$CC" >&6; }
3366else
3367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3368$as_echo "no" >&6; }
3369fi
3370
3371
3372fi
3373if test -z "$CC"; then
3374  if test -n "$ac_tool_prefix"; then
3375  for ac_prog in cl.exe
3376  do
3377    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3378set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3380$as_echo_n "checking for $ac_word... " >&6; }
3381if ${ac_cv_prog_CC+:} false; then :
3382  $as_echo_n "(cached) " >&6
3383else
3384  if test -n "$CC"; then
3385  ac_cv_prog_CC="$CC" # Let the user override the test.
3386else
3387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388for as_dir in $PATH
3389do
3390  IFS=$as_save_IFS
3391  test -z "$as_dir" && as_dir=.
3392    for ac_exec_ext in '' $ac_executable_extensions; do
3393  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3394    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3395    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3396    break 2
3397  fi
3398done
3399  done
3400IFS=$as_save_IFS
3401
3402fi
3403fi
3404CC=$ac_cv_prog_CC
3405if test -n "$CC"; then
3406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3407$as_echo "$CC" >&6; }
3408else
3409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410$as_echo "no" >&6; }
3411fi
3412
3413
3414    test -n "$CC" && break
3415  done
3416fi
3417if test -z "$CC"; then
3418  ac_ct_CC=$CC
3419  for ac_prog in cl.exe
3420do
3421  # Extract the first word of "$ac_prog", so it can be a program name with args.
3422set dummy $ac_prog; ac_word=$2
3423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3424$as_echo_n "checking for $ac_word... " >&6; }
3425if ${ac_cv_prog_ac_ct_CC+:} false; then :
3426  $as_echo_n "(cached) " >&6
3427else
3428  if test -n "$ac_ct_CC"; then
3429  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3430else
3431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432for as_dir in $PATH
3433do
3434  IFS=$as_save_IFS
3435  test -z "$as_dir" && as_dir=.
3436    for ac_exec_ext in '' $ac_executable_extensions; do
3437  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3438    ac_cv_prog_ac_ct_CC="$ac_prog"
3439    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3440    break 2
3441  fi
3442done
3443  done
3444IFS=$as_save_IFS
3445
3446fi
3447fi
3448ac_ct_CC=$ac_cv_prog_ac_ct_CC
3449if test -n "$ac_ct_CC"; then
3450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3451$as_echo "$ac_ct_CC" >&6; }
3452else
3453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454$as_echo "no" >&6; }
3455fi
3456
3457
3458  test -n "$ac_ct_CC" && break
3459done
3460
3461  if test "x$ac_ct_CC" = x; then
3462    CC=""
3463  else
3464    case $cross_compiling:$ac_tool_warned in
3465yes:)
3466{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3467$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3468ac_tool_warned=yes ;;
3469esac
3470    CC=$ac_ct_CC
3471  fi
3472fi
3473
3474fi
3475
3476
3477test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3479as_fn_error $? "no acceptable C compiler found in \$PATH
3480See \`config.log' for more details" "$LINENO" 5; }
3481
3482# Provide some information about the compiler.
3483$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3484set X $ac_compile
3485ac_compiler=$2
3486for ac_option in --version -v -V -qversion; do
3487  { { ac_try="$ac_compiler $ac_option >&5"
3488case "(($ac_try" in
3489  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490  *) ac_try_echo=$ac_try;;
3491esac
3492eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3493$as_echo "$ac_try_echo"; } >&5
3494  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3495  ac_status=$?
3496  if test -s conftest.err; then
3497    sed '10a\
3498... rest of stderr output deleted ...
3499         10q' conftest.err >conftest.er1
3500    cat conftest.er1 >&5
3501  fi
3502  rm -f conftest.er1 conftest.err
3503  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3504  test $ac_status = 0; }
3505done
3506
3507cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508/* end confdefs.h.  */
3509
3510int
3511main ()
3512{
3513
3514  ;
3515  return 0;
3516}
3517_ACEOF
3518ac_clean_files_save=$ac_clean_files
3519ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3520# Try to create an executable without -o first, disregard a.out.
3521# It will help us diagnose broken compilers, and finding out an intuition
3522# of exeext.
3523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3524$as_echo_n "checking whether the C compiler works... " >&6; }
3525ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3526
3527# The possible output files:
3528ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3529
3530ac_rmfiles=
3531for ac_file in $ac_files
3532do
3533  case $ac_file in
3534    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3535    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3536  esac
3537done
3538rm -f $ac_rmfiles
3539
3540if { { ac_try="$ac_link_default"
3541case "(($ac_try" in
3542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543  *) ac_try_echo=$ac_try;;
3544esac
3545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3546$as_echo "$ac_try_echo"; } >&5
3547  (eval "$ac_link_default") 2>&5
3548  ac_status=$?
3549  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3550  test $ac_status = 0; }; then :
3551  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3552# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3553# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3554# so that the user can short-circuit this test for compilers unknown to
3555# Autoconf.
3556for ac_file in $ac_files ''
3557do
3558  test -f "$ac_file" || continue
3559  case $ac_file in
3560    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3561	;;
3562    [ab].out )
3563	# We found the default executable, but exeext='' is most
3564	# certainly right.
3565	break;;
3566    *.* )
3567	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3568	then :; else
3569	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3570	fi
3571	# We set ac_cv_exeext here because the later test for it is not
3572	# safe: cross compilers may not add the suffix if given an `-o'
3573	# argument, so we may need to know it at that point already.
3574	# Even if this section looks crufty: it has the advantage of
3575	# actually working.
3576	break;;
3577    * )
3578	break;;
3579  esac
3580done
3581test "$ac_cv_exeext" = no && ac_cv_exeext=
3582
3583else
3584  ac_file=''
3585fi
3586if test -z "$ac_file"; then :
3587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3588$as_echo "no" >&6; }
3589$as_echo "$as_me: failed program was:" >&5
3590sed 's/^/| /' conftest.$ac_ext >&5
3591
3592{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3593$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3594as_fn_error 77 "C compiler cannot create executables
3595See \`config.log' for more details" "$LINENO" 5; }
3596else
3597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3598$as_echo "yes" >&6; }
3599fi
3600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3601$as_echo_n "checking for C compiler default output file name... " >&6; }
3602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3603$as_echo "$ac_file" >&6; }
3604ac_exeext=$ac_cv_exeext
3605
3606rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3607ac_clean_files=$ac_clean_files_save
3608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3609$as_echo_n "checking for suffix of executables... " >&6; }
3610if { { ac_try="$ac_link"
3611case "(($ac_try" in
3612  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613  *) ac_try_echo=$ac_try;;
3614esac
3615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3616$as_echo "$ac_try_echo"; } >&5
3617  (eval "$ac_link") 2>&5
3618  ac_status=$?
3619  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3620  test $ac_status = 0; }; then :
3621  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3622# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3623# work properly (i.e., refer to `conftest.exe'), while it won't with
3624# `rm'.
3625for ac_file in conftest.exe conftest conftest.*; do
3626  test -f "$ac_file" || continue
3627  case $ac_file in
3628    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3629    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3630	  break;;
3631    * ) break;;
3632  esac
3633done
3634else
3635  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3636$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3637as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3638See \`config.log' for more details" "$LINENO" 5; }
3639fi
3640rm -f conftest conftest$ac_cv_exeext
3641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3642$as_echo "$ac_cv_exeext" >&6; }
3643
3644rm -f conftest.$ac_ext
3645EXEEXT=$ac_cv_exeext
3646ac_exeext=$EXEEXT
3647cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648/* end confdefs.h.  */
3649#include <stdio.h>
3650int
3651main ()
3652{
3653FILE *f = fopen ("conftest.out", "w");
3654 return ferror (f) || fclose (f) != 0;
3655
3656  ;
3657  return 0;
3658}
3659_ACEOF
3660ac_clean_files="$ac_clean_files conftest.out"
3661# Check that the compiler produces executables we can run.  If not, either
3662# the compiler is broken, or we cross compile.
3663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3664$as_echo_n "checking whether we are cross compiling... " >&6; }
3665if test "$cross_compiling" != yes; then
3666  { { ac_try="$ac_link"
3667case "(($ac_try" in
3668  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669  *) ac_try_echo=$ac_try;;
3670esac
3671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3672$as_echo "$ac_try_echo"; } >&5
3673  (eval "$ac_link") 2>&5
3674  ac_status=$?
3675  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3676  test $ac_status = 0; }
3677  if { ac_try='./conftest$ac_cv_exeext'
3678  { { case "(($ac_try" in
3679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680  *) ac_try_echo=$ac_try;;
3681esac
3682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3683$as_echo "$ac_try_echo"; } >&5
3684  (eval "$ac_try") 2>&5
3685  ac_status=$?
3686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3687  test $ac_status = 0; }; }; then
3688    cross_compiling=no
3689  else
3690    if test "$cross_compiling" = maybe; then
3691	cross_compiling=yes
3692    else
3693	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3694$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3695as_fn_error $? "cannot run C compiled programs.
3696If you meant to cross compile, use \`--host'.
3697See \`config.log' for more details" "$LINENO" 5; }
3698    fi
3699  fi
3700fi
3701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3702$as_echo "$cross_compiling" >&6; }
3703
3704rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3705ac_clean_files=$ac_clean_files_save
3706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3707$as_echo_n "checking for suffix of object files... " >&6; }
3708if ${ac_cv_objext+:} false; then :
3709  $as_echo_n "(cached) " >&6
3710else
3711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712/* end confdefs.h.  */
3713
3714int
3715main ()
3716{
3717
3718  ;
3719  return 0;
3720}
3721_ACEOF
3722rm -f conftest.o conftest.obj
3723if { { ac_try="$ac_compile"
3724case "(($ac_try" in
3725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3726  *) ac_try_echo=$ac_try;;
3727esac
3728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3729$as_echo "$ac_try_echo"; } >&5
3730  (eval "$ac_compile") 2>&5
3731  ac_status=$?
3732  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3733  test $ac_status = 0; }; then :
3734  for ac_file in conftest.o conftest.obj conftest.*; do
3735  test -f "$ac_file" || continue;
3736  case $ac_file in
3737    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3738    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3739       break;;
3740  esac
3741done
3742else
3743  $as_echo "$as_me: failed program was:" >&5
3744sed 's/^/| /' conftest.$ac_ext >&5
3745
3746{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3747$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3748as_fn_error $? "cannot compute suffix of object files: cannot compile
3749See \`config.log' for more details" "$LINENO" 5; }
3750fi
3751rm -f conftest.$ac_cv_objext conftest.$ac_ext
3752fi
3753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3754$as_echo "$ac_cv_objext" >&6; }
3755OBJEXT=$ac_cv_objext
3756ac_objext=$OBJEXT
3757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3758$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3759if ${ac_cv_c_compiler_gnu+:} false; then :
3760  $as_echo_n "(cached) " >&6
3761else
3762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763/* end confdefs.h.  */
3764
3765int
3766main ()
3767{
3768#ifndef __GNUC__
3769       choke me
3770#endif
3771
3772  ;
3773  return 0;
3774}
3775_ACEOF
3776if ac_fn_c_try_compile "$LINENO"; then :
3777  ac_compiler_gnu=yes
3778else
3779  ac_compiler_gnu=no
3780fi
3781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3782ac_cv_c_compiler_gnu=$ac_compiler_gnu
3783
3784fi
3785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3786$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3787if test $ac_compiler_gnu = yes; then
3788  GCC=yes
3789else
3790  GCC=
3791fi
3792ac_test_CFLAGS=${CFLAGS+set}
3793ac_save_CFLAGS=$CFLAGS
3794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3795$as_echo_n "checking whether $CC accepts -g... " >&6; }
3796if ${ac_cv_prog_cc_g+:} false; then :
3797  $as_echo_n "(cached) " >&6
3798else
3799  ac_save_c_werror_flag=$ac_c_werror_flag
3800   ac_c_werror_flag=yes
3801   ac_cv_prog_cc_g=no
3802   CFLAGS="-g"
3803   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804/* end confdefs.h.  */
3805
3806int
3807main ()
3808{
3809
3810  ;
3811  return 0;
3812}
3813_ACEOF
3814if ac_fn_c_try_compile "$LINENO"; then :
3815  ac_cv_prog_cc_g=yes
3816else
3817  CFLAGS=""
3818      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819/* end confdefs.h.  */
3820
3821int
3822main ()
3823{
3824
3825  ;
3826  return 0;
3827}
3828_ACEOF
3829if ac_fn_c_try_compile "$LINENO"; then :
3830
3831else
3832  ac_c_werror_flag=$ac_save_c_werror_flag
3833	 CFLAGS="-g"
3834	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835/* end confdefs.h.  */
3836
3837int
3838main ()
3839{
3840
3841  ;
3842  return 0;
3843}
3844_ACEOF
3845if ac_fn_c_try_compile "$LINENO"; then :
3846  ac_cv_prog_cc_g=yes
3847fi
3848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3849fi
3850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3851fi
3852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3853   ac_c_werror_flag=$ac_save_c_werror_flag
3854fi
3855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3856$as_echo "$ac_cv_prog_cc_g" >&6; }
3857if test "$ac_test_CFLAGS" = set; then
3858  CFLAGS=$ac_save_CFLAGS
3859elif test $ac_cv_prog_cc_g = yes; then
3860  if test "$GCC" = yes; then
3861    CFLAGS="-g -O2"
3862  else
3863    CFLAGS="-g"
3864  fi
3865else
3866  if test "$GCC" = yes; then
3867    CFLAGS="-O2"
3868  else
3869    CFLAGS=
3870  fi
3871fi
3872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3873$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3874if ${ac_cv_prog_cc_c89+:} false; then :
3875  $as_echo_n "(cached) " >&6
3876else
3877  ac_cv_prog_cc_c89=no
3878ac_save_CC=$CC
3879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880/* end confdefs.h.  */
3881#include <stdarg.h>
3882#include <stdio.h>
3883struct stat;
3884/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3885struct buf { int x; };
3886FILE * (*rcsopen) (struct buf *, struct stat *, int);
3887static char *e (p, i)
3888     char **p;
3889     int i;
3890{
3891  return p[i];
3892}
3893static char *f (char * (*g) (char **, int), char **p, ...)
3894{
3895  char *s;
3896  va_list v;
3897  va_start (v,p);
3898  s = g (p, va_arg (v,int));
3899  va_end (v);
3900  return s;
3901}
3902
3903/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3904   function prototypes and stuff, but not '\xHH' hex character constants.
3905   These don't provoke an error unfortunately, instead are silently treated
3906   as 'x'.  The following induces an error, until -std is added to get
3907   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3908   array size at least.  It's necessary to write '\x00'==0 to get something
3909   that's true only with -std.  */
3910int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3911
3912/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3913   inside strings and character constants.  */
3914#define FOO(x) 'x'
3915int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3916
3917int test (int i, double x);
3918struct s1 {int (*f) (int a);};
3919struct s2 {int (*f) (double a);};
3920int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3921int argc;
3922char **argv;
3923int
3924main ()
3925{
3926return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3927  ;
3928  return 0;
3929}
3930_ACEOF
3931for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3932	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3933do
3934  CC="$ac_save_CC $ac_arg"
3935  if ac_fn_c_try_compile "$LINENO"; then :
3936  ac_cv_prog_cc_c89=$ac_arg
3937fi
3938rm -f core conftest.err conftest.$ac_objext
3939  test "x$ac_cv_prog_cc_c89" != "xno" && break
3940done
3941rm -f conftest.$ac_ext
3942CC=$ac_save_CC
3943
3944fi
3945# AC_CACHE_VAL
3946case "x$ac_cv_prog_cc_c89" in
3947  x)
3948    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3949$as_echo "none needed" >&6; } ;;
3950  xno)
3951    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3952$as_echo "unsupported" >&6; } ;;
3953  *)
3954    CC="$CC $ac_cv_prog_cc_c89"
3955    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3956$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3957esac
3958if test "x$ac_cv_prog_cc_c89" != xno; then :
3959
3960fi
3961
3962ac_ext=c
3963ac_cpp='$CPP $CPPFLAGS'
3964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3966ac_compiler_gnu=$ac_cv_c_compiler_gnu
3967
3968ac_ext=c
3969ac_cpp='$CPP $CPPFLAGS'
3970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3972ac_compiler_gnu=$ac_cv_c_compiler_gnu
3973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3974$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3975if ${am_cv_prog_cc_c_o+:} false; then :
3976  $as_echo_n "(cached) " >&6
3977else
3978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979/* end confdefs.h.  */
3980
3981int
3982main ()
3983{
3984
3985  ;
3986  return 0;
3987}
3988_ACEOF
3989  # Make sure it works both with $CC and with simple cc.
3990  # Following AC_PROG_CC_C_O, we do the test twice because some
3991  # compilers refuse to overwrite an existing .o file with -o,
3992  # though they will create one.
3993  am_cv_prog_cc_c_o=yes
3994  for am_i in 1 2; do
3995    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3996   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3997   ac_status=$?
3998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999   (exit $ac_status); } \
4000         && test -f conftest2.$ac_objext; then
4001      : OK
4002    else
4003      am_cv_prog_cc_c_o=no
4004      break
4005    fi
4006  done
4007  rm -f core conftest*
4008  unset am_i
4009fi
4010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4011$as_echo "$am_cv_prog_cc_c_o" >&6; }
4012if test "$am_cv_prog_cc_c_o" != yes; then
4013   # Losing compiler, so override with the script.
4014   # FIXME: It is wrong to rewrite CC.
4015   # But if we don't then we get into trouble of one sort or another.
4016   # A longer-term fix would be to have automake use am__CC in this case,
4017   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4018   CC="$am_aux_dir/compile $CC"
4019fi
4020ac_ext=c
4021ac_cpp='$CPP $CPPFLAGS'
4022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4024ac_compiler_gnu=$ac_cv_c_compiler_gnu
4025
4026
4027depcc="$CC"   am_compiler_list=
4028
4029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4030$as_echo_n "checking dependency style of $depcc... " >&6; }
4031if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4032  $as_echo_n "(cached) " >&6
4033else
4034  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4035  # We make a subdir and do the tests there.  Otherwise we can end up
4036  # making bogus files that we don't know about and never remove.  For
4037  # instance it was reported that on HP-UX the gcc test will end up
4038  # making a dummy file named 'D' -- because '-MD' means "put the output
4039  # in D".
4040  rm -rf conftest.dir
4041  mkdir conftest.dir
4042  # Copy depcomp to subdir because otherwise we won't find it if we're
4043  # using a relative directory.
4044  cp "$am_depcomp" conftest.dir
4045  cd conftest.dir
4046  # We will build objects and dependencies in a subdirectory because
4047  # it helps to detect inapplicable dependency modes.  For instance
4048  # both Tru64's cc and ICC support -MD to output dependencies as a
4049  # side effect of compilation, but ICC will put the dependencies in
4050  # the current directory while Tru64 will put them in the object
4051  # directory.
4052  mkdir sub
4053
4054  am_cv_CC_dependencies_compiler_type=none
4055  if test "$am_compiler_list" = ""; then
4056     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4057  fi
4058  am__universal=false
4059  case " $depcc " in #(
4060     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4061     esac
4062
4063  for depmode in $am_compiler_list; do
4064    # Setup a source with many dependencies, because some compilers
4065    # like to wrap large dependency lists on column 80 (with \), and
4066    # we should not choose a depcomp mode which is confused by this.
4067    #
4068    # We need to recreate these files for each test, as the compiler may
4069    # overwrite some of them when testing with obscure command lines.
4070    # This happens at least with the AIX C compiler.
4071    : > sub/conftest.c
4072    for i in 1 2 3 4 5 6; do
4073      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4074      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4075      # Solaris 10 /bin/sh.
4076      echo '/* dummy */' > sub/conftst$i.h
4077    done
4078    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4079
4080    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4081    # mode.  It turns out that the SunPro C++ compiler does not properly
4082    # handle '-M -o', and we need to detect this.  Also, some Intel
4083    # versions had trouble with output in subdirs.
4084    am__obj=sub/conftest.${OBJEXT-o}
4085    am__minus_obj="-o $am__obj"
4086    case $depmode in
4087    gcc)
4088      # This depmode causes a compiler race in universal mode.
4089      test "$am__universal" = false || continue
4090      ;;
4091    nosideeffect)
4092      # After this tag, mechanisms are not by side-effect, so they'll
4093      # only be used when explicitly requested.
4094      if test "x$enable_dependency_tracking" = xyes; then
4095	continue
4096      else
4097	break
4098      fi
4099      ;;
4100    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4101      # This compiler won't grok '-c -o', but also, the minuso test has
4102      # not run yet.  These depmodes are late enough in the game, and
4103      # so weak that their functioning should not be impacted.
4104      am__obj=conftest.${OBJEXT-o}
4105      am__minus_obj=
4106      ;;
4107    none) break ;;
4108    esac
4109    if depmode=$depmode \
4110       source=sub/conftest.c object=$am__obj \
4111       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4112       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4113         >/dev/null 2>conftest.err &&
4114       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4115       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4116       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4117       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4118      # icc doesn't choke on unknown options, it will just issue warnings
4119      # or remarks (even with -Werror).  So we grep stderr for any message
4120      # that says an option was ignored or not supported.
4121      # When given -MP, icc 7.0 and 7.1 complain thusly:
4122      #   icc: Command line warning: ignoring option '-M'; no argument required
4123      # The diagnosis changed in icc 8.0:
4124      #   icc: Command line remark: option '-MP' not supported
4125      if (grep 'ignoring option' conftest.err ||
4126          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4127        am_cv_CC_dependencies_compiler_type=$depmode
4128        break
4129      fi
4130    fi
4131  done
4132
4133  cd ..
4134  rm -rf conftest.dir
4135else
4136  am_cv_CC_dependencies_compiler_type=none
4137fi
4138
4139fi
4140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4141$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4142CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4143
4144 if
4145  test "x$enable_dependency_tracking" != xno \
4146  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4147  am__fastdepCC_TRUE=
4148  am__fastdepCC_FALSE='#'
4149else
4150  am__fastdepCC_TRUE='#'
4151  am__fastdepCC_FALSE=
4152fi
4153
4154
4155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4156$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4157if ${ac_cv_path_SED+:} false; then :
4158  $as_echo_n "(cached) " >&6
4159else
4160            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4161     for ac_i in 1 2 3 4 5 6 7; do
4162       ac_script="$ac_script$as_nl$ac_script"
4163     done
4164     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4165     { ac_script=; unset ac_script;}
4166     if test -z "$SED"; then
4167  ac_path_SED_found=false
4168  # Loop through the user's path and test for each of PROGNAME-LIST
4169  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170for as_dir in $PATH
4171do
4172  IFS=$as_save_IFS
4173  test -z "$as_dir" && as_dir=.
4174    for ac_prog in sed gsed; do
4175    for ac_exec_ext in '' $ac_executable_extensions; do
4176      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4177      as_fn_executable_p "$ac_path_SED" || continue
4178# Check for GNU ac_path_SED and select it if it is found.
4179  # Check for GNU $ac_path_SED
4180case `"$ac_path_SED" --version 2>&1` in
4181*GNU*)
4182  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4183*)
4184  ac_count=0
4185  $as_echo_n 0123456789 >"conftest.in"
4186  while :
4187  do
4188    cat "conftest.in" "conftest.in" >"conftest.tmp"
4189    mv "conftest.tmp" "conftest.in"
4190    cp "conftest.in" "conftest.nl"
4191    $as_echo '' >> "conftest.nl"
4192    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4193    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4194    as_fn_arith $ac_count + 1 && ac_count=$as_val
4195    if test $ac_count -gt ${ac_path_SED_max-0}; then
4196      # Best one so far, save it but keep looking for a better one
4197      ac_cv_path_SED="$ac_path_SED"
4198      ac_path_SED_max=$ac_count
4199    fi
4200    # 10*(2^10) chars as input seems more than enough
4201    test $ac_count -gt 10 && break
4202  done
4203  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4204esac
4205
4206      $ac_path_SED_found && break 3
4207    done
4208  done
4209  done
4210IFS=$as_save_IFS
4211  if test -z "$ac_cv_path_SED"; then
4212    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4213  fi
4214else
4215  ac_cv_path_SED=$SED
4216fi
4217
4218fi
4219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4220$as_echo "$ac_cv_path_SED" >&6; }
4221 SED="$ac_cv_path_SED"
4222  rm -f conftest.sed
4223
4224test -z "$SED" && SED=sed
4225Xsed="$SED -e 1s/^X//"
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4238$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4239if ${ac_cv_path_GREP+:} false; then :
4240  $as_echo_n "(cached) " >&6
4241else
4242  if test -z "$GREP"; then
4243  ac_path_GREP_found=false
4244  # Loop through the user's path and test for each of PROGNAME-LIST
4245  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4247do
4248  IFS=$as_save_IFS
4249  test -z "$as_dir" && as_dir=.
4250    for ac_prog in grep ggrep; do
4251    for ac_exec_ext in '' $ac_executable_extensions; do
4252      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4253      as_fn_executable_p "$ac_path_GREP" || continue
4254# Check for GNU ac_path_GREP and select it if it is found.
4255  # Check for GNU $ac_path_GREP
4256case `"$ac_path_GREP" --version 2>&1` in
4257*GNU*)
4258  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4259*)
4260  ac_count=0
4261  $as_echo_n 0123456789 >"conftest.in"
4262  while :
4263  do
4264    cat "conftest.in" "conftest.in" >"conftest.tmp"
4265    mv "conftest.tmp" "conftest.in"
4266    cp "conftest.in" "conftest.nl"
4267    $as_echo 'GREP' >> "conftest.nl"
4268    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4269    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4270    as_fn_arith $ac_count + 1 && ac_count=$as_val
4271    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4272      # Best one so far, save it but keep looking for a better one
4273      ac_cv_path_GREP="$ac_path_GREP"
4274      ac_path_GREP_max=$ac_count
4275    fi
4276    # 10*(2^10) chars as input seems more than enough
4277    test $ac_count -gt 10 && break
4278  done
4279  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4280esac
4281
4282      $ac_path_GREP_found && break 3
4283    done
4284  done
4285  done
4286IFS=$as_save_IFS
4287  if test -z "$ac_cv_path_GREP"; then
4288    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4289  fi
4290else
4291  ac_cv_path_GREP=$GREP
4292fi
4293
4294fi
4295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4296$as_echo "$ac_cv_path_GREP" >&6; }
4297 GREP="$ac_cv_path_GREP"
4298
4299
4300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4301$as_echo_n "checking for egrep... " >&6; }
4302if ${ac_cv_path_EGREP+:} false; then :
4303  $as_echo_n "(cached) " >&6
4304else
4305  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4306   then ac_cv_path_EGREP="$GREP -E"
4307   else
4308     if test -z "$EGREP"; then
4309  ac_path_EGREP_found=false
4310  # Loop through the user's path and test for each of PROGNAME-LIST
4311  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4313do
4314  IFS=$as_save_IFS
4315  test -z "$as_dir" && as_dir=.
4316    for ac_prog in egrep; do
4317    for ac_exec_ext in '' $ac_executable_extensions; do
4318      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4319      as_fn_executable_p "$ac_path_EGREP" || continue
4320# Check for GNU ac_path_EGREP and select it if it is found.
4321  # Check for GNU $ac_path_EGREP
4322case `"$ac_path_EGREP" --version 2>&1` in
4323*GNU*)
4324  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4325*)
4326  ac_count=0
4327  $as_echo_n 0123456789 >"conftest.in"
4328  while :
4329  do
4330    cat "conftest.in" "conftest.in" >"conftest.tmp"
4331    mv "conftest.tmp" "conftest.in"
4332    cp "conftest.in" "conftest.nl"
4333    $as_echo 'EGREP' >> "conftest.nl"
4334    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4335    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4336    as_fn_arith $ac_count + 1 && ac_count=$as_val
4337    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4338      # Best one so far, save it but keep looking for a better one
4339      ac_cv_path_EGREP="$ac_path_EGREP"
4340      ac_path_EGREP_max=$ac_count
4341    fi
4342    # 10*(2^10) chars as input seems more than enough
4343    test $ac_count -gt 10 && break
4344  done
4345  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4346esac
4347
4348      $ac_path_EGREP_found && break 3
4349    done
4350  done
4351  done
4352IFS=$as_save_IFS
4353  if test -z "$ac_cv_path_EGREP"; then
4354    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4355  fi
4356else
4357  ac_cv_path_EGREP=$EGREP
4358fi
4359
4360   fi
4361fi
4362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4363$as_echo "$ac_cv_path_EGREP" >&6; }
4364 EGREP="$ac_cv_path_EGREP"
4365
4366
4367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4368$as_echo_n "checking for fgrep... " >&6; }
4369if ${ac_cv_path_FGREP+:} false; then :
4370  $as_echo_n "(cached) " >&6
4371else
4372  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4373   then ac_cv_path_FGREP="$GREP -F"
4374   else
4375     if test -z "$FGREP"; then
4376  ac_path_FGREP_found=false
4377  # Loop through the user's path and test for each of PROGNAME-LIST
4378  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4380do
4381  IFS=$as_save_IFS
4382  test -z "$as_dir" && as_dir=.
4383    for ac_prog in fgrep; do
4384    for ac_exec_ext in '' $ac_executable_extensions; do
4385      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4386      as_fn_executable_p "$ac_path_FGREP" || continue
4387# Check for GNU ac_path_FGREP and select it if it is found.
4388  # Check for GNU $ac_path_FGREP
4389case `"$ac_path_FGREP" --version 2>&1` in
4390*GNU*)
4391  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4392*)
4393  ac_count=0
4394  $as_echo_n 0123456789 >"conftest.in"
4395  while :
4396  do
4397    cat "conftest.in" "conftest.in" >"conftest.tmp"
4398    mv "conftest.tmp" "conftest.in"
4399    cp "conftest.in" "conftest.nl"
4400    $as_echo 'FGREP' >> "conftest.nl"
4401    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4402    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4403    as_fn_arith $ac_count + 1 && ac_count=$as_val
4404    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4405      # Best one so far, save it but keep looking for a better one
4406      ac_cv_path_FGREP="$ac_path_FGREP"
4407      ac_path_FGREP_max=$ac_count
4408    fi
4409    # 10*(2^10) chars as input seems more than enough
4410    test $ac_count -gt 10 && break
4411  done
4412  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4413esac
4414
4415      $ac_path_FGREP_found && break 3
4416    done
4417  done
4418  done
4419IFS=$as_save_IFS
4420  if test -z "$ac_cv_path_FGREP"; then
4421    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4422  fi
4423else
4424  ac_cv_path_FGREP=$FGREP
4425fi
4426
4427   fi
4428fi
4429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4430$as_echo "$ac_cv_path_FGREP" >&6; }
4431 FGREP="$ac_cv_path_FGREP"
4432
4433
4434test -z "$GREP" && GREP=grep
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454# Check whether --with-gnu-ld was given.
4455if test "${with_gnu_ld+set}" = set; then :
4456  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4457else
4458  with_gnu_ld=no
4459fi
4460
4461ac_prog=ld
4462if test yes = "$GCC"; then
4463  # Check if gcc -print-prog-name=ld gives a path.
4464  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4465$as_echo_n "checking for ld used by $CC... " >&6; }
4466  case $host in
4467  *-*-mingw*)
4468    # gcc leaves a trailing carriage return, which upsets mingw
4469    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4470  *)
4471    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4472  esac
4473  case $ac_prog in
4474    # Accept absolute paths.
4475    [\\/]* | ?:[\\/]*)
4476      re_direlt='/[^/][^/]*/\.\./'
4477      # Canonicalize the pathname of ld
4478      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4479      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4480	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4481      done
4482      test -z "$LD" && LD=$ac_prog
4483      ;;
4484  "")
4485    # If it fails, then pretend we aren't using GCC.
4486    ac_prog=ld
4487    ;;
4488  *)
4489    # If it is relative, then search for the first ld in PATH.
4490    with_gnu_ld=unknown
4491    ;;
4492  esac
4493elif test yes = "$with_gnu_ld"; then
4494  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4495$as_echo_n "checking for GNU ld... " >&6; }
4496else
4497  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4498$as_echo_n "checking for non-GNU ld... " >&6; }
4499fi
4500if ${lt_cv_path_LD+:} false; then :
4501  $as_echo_n "(cached) " >&6
4502else
4503  if test -z "$LD"; then
4504  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4505  for ac_dir in $PATH; do
4506    IFS=$lt_save_ifs
4507    test -z "$ac_dir" && ac_dir=.
4508    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4509      lt_cv_path_LD=$ac_dir/$ac_prog
4510      # Check to see if the program is GNU ld.  I'd rather use --version,
4511      # but apparently some variants of GNU ld only accept -v.
4512      # Break only if it was the GNU/non-GNU ld that we prefer.
4513      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4514      *GNU* | *'with BFD'*)
4515	test no != "$with_gnu_ld" && break
4516	;;
4517      *)
4518	test yes != "$with_gnu_ld" && break
4519	;;
4520      esac
4521    fi
4522  done
4523  IFS=$lt_save_ifs
4524else
4525  lt_cv_path_LD=$LD # Let the user override the test with a path.
4526fi
4527fi
4528
4529LD=$lt_cv_path_LD
4530if test -n "$LD"; then
4531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4532$as_echo "$LD" >&6; }
4533else
4534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4535$as_echo "no" >&6; }
4536fi
4537test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4539$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4540if ${lt_cv_prog_gnu_ld+:} false; then :
4541  $as_echo_n "(cached) " >&6
4542else
4543  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4544case `$LD -v 2>&1 </dev/null` in
4545*GNU* | *'with BFD'*)
4546  lt_cv_prog_gnu_ld=yes
4547  ;;
4548*)
4549  lt_cv_prog_gnu_ld=no
4550  ;;
4551esac
4552fi
4553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4554$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4555with_gnu_ld=$lt_cv_prog_gnu_ld
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4566$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4567if ${lt_cv_path_NM+:} false; then :
4568  $as_echo_n "(cached) " >&6
4569else
4570  if test -n "$NM"; then
4571  # Let the user override the test.
4572  lt_cv_path_NM=$NM
4573else
4574  lt_nm_to_check=${ac_tool_prefix}nm
4575  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4576    lt_nm_to_check="$lt_nm_to_check nm"
4577  fi
4578  for lt_tmp_nm in $lt_nm_to_check; do
4579    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4580    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4581      IFS=$lt_save_ifs
4582      test -z "$ac_dir" && ac_dir=.
4583      tmp_nm=$ac_dir/$lt_tmp_nm
4584      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4585	# Check to see if the nm accepts a BSD-compat flag.
4586	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4587	#   nm: unknown option "B" ignored
4588	# Tru64's nm complains that /dev/null is an invalid object file
4589	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4590	case $build_os in
4591	mingw*) lt_bad_file=conftest.nm/nofile ;;
4592	*) lt_bad_file=/dev/null ;;
4593	esac
4594	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4595	*$lt_bad_file* | *'Invalid file or object type'*)
4596	  lt_cv_path_NM="$tmp_nm -B"
4597	  break 2
4598	  ;;
4599	*)
4600	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4601	  */dev/null*)
4602	    lt_cv_path_NM="$tmp_nm -p"
4603	    break 2
4604	    ;;
4605	  *)
4606	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4607	    continue # so that we can try to find one that supports BSD flags
4608	    ;;
4609	  esac
4610	  ;;
4611	esac
4612      fi
4613    done
4614    IFS=$lt_save_ifs
4615  done
4616  : ${lt_cv_path_NM=no}
4617fi
4618fi
4619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4620$as_echo "$lt_cv_path_NM" >&6; }
4621if test no != "$lt_cv_path_NM"; then
4622  NM=$lt_cv_path_NM
4623else
4624  # Didn't find any BSD compatible name lister, look for dumpbin.
4625  if test -n "$DUMPBIN"; then :
4626    # Let the user override the test.
4627  else
4628    if test -n "$ac_tool_prefix"; then
4629  for ac_prog in dumpbin "link -dump"
4630  do
4631    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4632set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4634$as_echo_n "checking for $ac_word... " >&6; }
4635if ${ac_cv_prog_DUMPBIN+:} false; then :
4636  $as_echo_n "(cached) " >&6
4637else
4638  if test -n "$DUMPBIN"; then
4639  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4640else
4641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642for as_dir in $PATH
4643do
4644  IFS=$as_save_IFS
4645  test -z "$as_dir" && as_dir=.
4646    for ac_exec_ext in '' $ac_executable_extensions; do
4647  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4648    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4649    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4650    break 2
4651  fi
4652done
4653  done
4654IFS=$as_save_IFS
4655
4656fi
4657fi
4658DUMPBIN=$ac_cv_prog_DUMPBIN
4659if test -n "$DUMPBIN"; then
4660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4661$as_echo "$DUMPBIN" >&6; }
4662else
4663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4664$as_echo "no" >&6; }
4665fi
4666
4667
4668    test -n "$DUMPBIN" && break
4669  done
4670fi
4671if test -z "$DUMPBIN"; then
4672  ac_ct_DUMPBIN=$DUMPBIN
4673  for ac_prog in dumpbin "link -dump"
4674do
4675  # Extract the first word of "$ac_prog", so it can be a program name with args.
4676set dummy $ac_prog; ac_word=$2
4677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4678$as_echo_n "checking for $ac_word... " >&6; }
4679if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4680  $as_echo_n "(cached) " >&6
4681else
4682  if test -n "$ac_ct_DUMPBIN"; then
4683  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4684else
4685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686for as_dir in $PATH
4687do
4688  IFS=$as_save_IFS
4689  test -z "$as_dir" && as_dir=.
4690    for ac_exec_ext in '' $ac_executable_extensions; do
4691  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4692    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4693    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4694    break 2
4695  fi
4696done
4697  done
4698IFS=$as_save_IFS
4699
4700fi
4701fi
4702ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4703if test -n "$ac_ct_DUMPBIN"; then
4704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4705$as_echo "$ac_ct_DUMPBIN" >&6; }
4706else
4707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4708$as_echo "no" >&6; }
4709fi
4710
4711
4712  test -n "$ac_ct_DUMPBIN" && break
4713done
4714
4715  if test "x$ac_ct_DUMPBIN" = x; then
4716    DUMPBIN=":"
4717  else
4718    case $cross_compiling:$ac_tool_warned in
4719yes:)
4720{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4721$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4722ac_tool_warned=yes ;;
4723esac
4724    DUMPBIN=$ac_ct_DUMPBIN
4725  fi
4726fi
4727
4728    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4729    *COFF*)
4730      DUMPBIN="$DUMPBIN -symbols -headers"
4731      ;;
4732    *)
4733      DUMPBIN=:
4734      ;;
4735    esac
4736  fi
4737
4738  if test : != "$DUMPBIN"; then
4739    NM=$DUMPBIN
4740  fi
4741fi
4742test -z "$NM" && NM=nm
4743
4744
4745
4746
4747
4748
4749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4750$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4751if ${lt_cv_nm_interface+:} false; then :
4752  $as_echo_n "(cached) " >&6
4753else
4754  lt_cv_nm_interface="BSD nm"
4755  echo "int some_variable = 0;" > conftest.$ac_ext
4756  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4757  (eval "$ac_compile" 2>conftest.err)
4758  cat conftest.err >&5
4759  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4760  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4761  cat conftest.err >&5
4762  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4763  cat conftest.out >&5
4764  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4765    lt_cv_nm_interface="MS dumpbin"
4766  fi
4767  rm -f conftest*
4768fi
4769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4770$as_echo "$lt_cv_nm_interface" >&6; }
4771
4772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4773$as_echo_n "checking whether ln -s works... " >&6; }
4774LN_S=$as_ln_s
4775if test "$LN_S" = "ln -s"; then
4776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4777$as_echo "yes" >&6; }
4778else
4779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4780$as_echo "no, using $LN_S" >&6; }
4781fi
4782
4783# find the maximum length of command line arguments
4784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4785$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4786if ${lt_cv_sys_max_cmd_len+:} false; then :
4787  $as_echo_n "(cached) " >&6
4788else
4789    i=0
4790  teststring=ABCD
4791
4792  case $build_os in
4793  msdosdjgpp*)
4794    # On DJGPP, this test can blow up pretty badly due to problems in libc
4795    # (any single argument exceeding 2000 bytes causes a buffer overrun
4796    # during glob expansion).  Even if it were fixed, the result of this
4797    # check would be larger than it should be.
4798    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4799    ;;
4800
4801  gnu*)
4802    # Under GNU Hurd, this test is not required because there is
4803    # no limit to the length of command line arguments.
4804    # Libtool will interpret -1 as no limit whatsoever
4805    lt_cv_sys_max_cmd_len=-1;
4806    ;;
4807
4808  cygwin* | mingw* | cegcc*)
4809    # On Win9x/ME, this test blows up -- it succeeds, but takes
4810    # about 5 minutes as the teststring grows exponentially.
4811    # Worse, since 9x/ME are not pre-emptively multitasking,
4812    # you end up with a "frozen" computer, even though with patience
4813    # the test eventually succeeds (with a max line length of 256k).
4814    # Instead, let's just punt: use the minimum linelength reported by
4815    # all of the supported platforms: 8192 (on NT/2K/XP).
4816    lt_cv_sys_max_cmd_len=8192;
4817    ;;
4818
4819  mint*)
4820    # On MiNT this can take a long time and run out of memory.
4821    lt_cv_sys_max_cmd_len=8192;
4822    ;;
4823
4824  amigaos*)
4825    # On AmigaOS with pdksh, this test takes hours, literally.
4826    # So we just punt and use a minimum line length of 8192.
4827    lt_cv_sys_max_cmd_len=8192;
4828    ;;
4829
4830  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4831    # This has been around since 386BSD, at least.  Likely further.
4832    if test -x /sbin/sysctl; then
4833      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4834    elif test -x /usr/sbin/sysctl; then
4835      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4836    else
4837      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4838    fi
4839    # And add a safety zone
4840    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4841    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4842    ;;
4843
4844  interix*)
4845    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4846    lt_cv_sys_max_cmd_len=196608
4847    ;;
4848
4849  os2*)
4850    # The test takes a long time on OS/2.
4851    lt_cv_sys_max_cmd_len=8192
4852    ;;
4853
4854  osf*)
4855    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4856    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4857    # nice to cause kernel panics so lets avoid the loop below.
4858    # First set a reasonable default.
4859    lt_cv_sys_max_cmd_len=16384
4860    #
4861    if test -x /sbin/sysconfig; then
4862      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4863        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4864      esac
4865    fi
4866    ;;
4867  sco3.2v5*)
4868    lt_cv_sys_max_cmd_len=102400
4869    ;;
4870  sysv5* | sco5v6* | sysv4.2uw2*)
4871    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4872    if test -n "$kargmax"; then
4873      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4874    else
4875      lt_cv_sys_max_cmd_len=32768
4876    fi
4877    ;;
4878  *)
4879    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4880    if test -n "$lt_cv_sys_max_cmd_len" && \
4881       test undefined != "$lt_cv_sys_max_cmd_len"; then
4882      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4883      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4884    else
4885      # Make teststring a little bigger before we do anything with it.
4886      # a 1K string should be a reasonable start.
4887      for i in 1 2 3 4 5 6 7 8; do
4888        teststring=$teststring$teststring
4889      done
4890      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4891      # If test is not a shell built-in, we'll probably end up computing a
4892      # maximum length that is only half of the actual maximum length, but
4893      # we can't tell.
4894      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4895	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4896	      test 17 != "$i" # 1/2 MB should be enough
4897      do
4898        i=`expr $i + 1`
4899        teststring=$teststring$teststring
4900      done
4901      # Only check the string length outside the loop.
4902      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4903      teststring=
4904      # Add a significant safety factor because C++ compilers can tack on
4905      # massive amounts of additional arguments before passing them to the
4906      # linker.  It appears as though 1/2 is a usable value.
4907      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4908    fi
4909    ;;
4910  esac
4911
4912fi
4913
4914if test -n "$lt_cv_sys_max_cmd_len"; then
4915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4916$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4917else
4918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4919$as_echo "none" >&6; }
4920fi
4921max_cmd_len=$lt_cv_sys_max_cmd_len
4922
4923
4924
4925
4926
4927
4928: ${CP="cp -f"}
4929: ${MV="mv -f"}
4930: ${RM="rm -f"}
4931
4932if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4933  lt_unset=unset
4934else
4935  lt_unset=false
4936fi
4937
4938
4939
4940
4941
4942# test EBCDIC or ASCII
4943case `echo X|tr X '\101'` in
4944 A) # ASCII based system
4945    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4946  lt_SP2NL='tr \040 \012'
4947  lt_NL2SP='tr \015\012 \040\040'
4948  ;;
4949 *) # EBCDIC based system
4950  lt_SP2NL='tr \100 \n'
4951  lt_NL2SP='tr \r\n \100\100'
4952  ;;
4953esac
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4964$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4965if ${lt_cv_to_host_file_cmd+:} false; then :
4966  $as_echo_n "(cached) " >&6
4967else
4968  case $host in
4969  *-*-mingw* )
4970    case $build in
4971      *-*-mingw* ) # actually msys
4972        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4973        ;;
4974      *-*-cygwin* )
4975        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4976        ;;
4977      * ) # otherwise, assume *nix
4978        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4979        ;;
4980    esac
4981    ;;
4982  *-*-cygwin* )
4983    case $build in
4984      *-*-mingw* ) # actually msys
4985        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4986        ;;
4987      *-*-cygwin* )
4988        lt_cv_to_host_file_cmd=func_convert_file_noop
4989        ;;
4990      * ) # otherwise, assume *nix
4991        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4992        ;;
4993    esac
4994    ;;
4995  * ) # unhandled hosts (and "normal" native builds)
4996    lt_cv_to_host_file_cmd=func_convert_file_noop
4997    ;;
4998esac
4999
5000fi
5001
5002to_host_file_cmd=$lt_cv_to_host_file_cmd
5003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5004$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5005
5006
5007
5008
5009
5010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5011$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5012if ${lt_cv_to_tool_file_cmd+:} false; then :
5013  $as_echo_n "(cached) " >&6
5014else
5015  #assume ordinary cross tools, or native build.
5016lt_cv_to_tool_file_cmd=func_convert_file_noop
5017case $host in
5018  *-*-mingw* )
5019    case $build in
5020      *-*-mingw* ) # actually msys
5021        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5022        ;;
5023    esac
5024    ;;
5025esac
5026
5027fi
5028
5029to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5031$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5032
5033
5034
5035
5036
5037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5038$as_echo_n "checking for $LD option to reload object files... " >&6; }
5039if ${lt_cv_ld_reload_flag+:} false; then :
5040  $as_echo_n "(cached) " >&6
5041else
5042  lt_cv_ld_reload_flag='-r'
5043fi
5044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5045$as_echo "$lt_cv_ld_reload_flag" >&6; }
5046reload_flag=$lt_cv_ld_reload_flag
5047case $reload_flag in
5048"" | " "*) ;;
5049*) reload_flag=" $reload_flag" ;;
5050esac
5051reload_cmds='$LD$reload_flag -o $output$reload_objs'
5052case $host_os in
5053  cygwin* | mingw* | pw32* | cegcc*)
5054    if test yes != "$GCC"; then
5055      reload_cmds=false
5056    fi
5057    ;;
5058  darwin*)
5059    if test yes = "$GCC"; then
5060      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5061    else
5062      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5063    fi
5064    ;;
5065esac
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075if test -n "$ac_tool_prefix"; then
5076  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5077set dummy ${ac_tool_prefix}objdump; ac_word=$2
5078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5079$as_echo_n "checking for $ac_word... " >&6; }
5080if ${ac_cv_prog_OBJDUMP+:} false; then :
5081  $as_echo_n "(cached) " >&6
5082else
5083  if test -n "$OBJDUMP"; then
5084  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5085else
5086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087for as_dir in $PATH
5088do
5089  IFS=$as_save_IFS
5090  test -z "$as_dir" && as_dir=.
5091    for ac_exec_ext in '' $ac_executable_extensions; do
5092  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5093    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5094    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5095    break 2
5096  fi
5097done
5098  done
5099IFS=$as_save_IFS
5100
5101fi
5102fi
5103OBJDUMP=$ac_cv_prog_OBJDUMP
5104if test -n "$OBJDUMP"; then
5105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5106$as_echo "$OBJDUMP" >&6; }
5107else
5108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109$as_echo "no" >&6; }
5110fi
5111
5112
5113fi
5114if test -z "$ac_cv_prog_OBJDUMP"; then
5115  ac_ct_OBJDUMP=$OBJDUMP
5116  # Extract the first word of "objdump", so it can be a program name with args.
5117set dummy objdump; ac_word=$2
5118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5119$as_echo_n "checking for $ac_word... " >&6; }
5120if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5121  $as_echo_n "(cached) " >&6
5122else
5123  if test -n "$ac_ct_OBJDUMP"; then
5124  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5125else
5126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127for as_dir in $PATH
5128do
5129  IFS=$as_save_IFS
5130  test -z "$as_dir" && as_dir=.
5131    for ac_exec_ext in '' $ac_executable_extensions; do
5132  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5133    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5134    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5135    break 2
5136  fi
5137done
5138  done
5139IFS=$as_save_IFS
5140
5141fi
5142fi
5143ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5144if test -n "$ac_ct_OBJDUMP"; then
5145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5146$as_echo "$ac_ct_OBJDUMP" >&6; }
5147else
5148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5149$as_echo "no" >&6; }
5150fi
5151
5152  if test "x$ac_ct_OBJDUMP" = x; then
5153    OBJDUMP="false"
5154  else
5155    case $cross_compiling:$ac_tool_warned in
5156yes:)
5157{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5158$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5159ac_tool_warned=yes ;;
5160esac
5161    OBJDUMP=$ac_ct_OBJDUMP
5162  fi
5163else
5164  OBJDUMP="$ac_cv_prog_OBJDUMP"
5165fi
5166
5167test -z "$OBJDUMP" && OBJDUMP=objdump
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5178$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5179if ${lt_cv_deplibs_check_method+:} false; then :
5180  $as_echo_n "(cached) " >&6
5181else
5182  lt_cv_file_magic_cmd='$MAGIC_CMD'
5183lt_cv_file_magic_test_file=
5184lt_cv_deplibs_check_method='unknown'
5185# Need to set the preceding variable on all platforms that support
5186# interlibrary dependencies.
5187# 'none' -- dependencies not supported.
5188# 'unknown' -- same as none, but documents that we really don't know.
5189# 'pass_all' -- all dependencies passed with no checks.
5190# 'test_compile' -- check by making test program.
5191# 'file_magic [[regex]]' -- check by looking for files in library path
5192# that responds to the $file_magic_cmd with a given extended regex.
5193# If you have 'file' or equivalent on your system and you're not sure
5194# whether 'pass_all' will *always* work, you probably want this one.
5195
5196case $host_os in
5197aix[4-9]*)
5198  lt_cv_deplibs_check_method=pass_all
5199  ;;
5200
5201beos*)
5202  lt_cv_deplibs_check_method=pass_all
5203  ;;
5204
5205bsdi[45]*)
5206  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5207  lt_cv_file_magic_cmd='/usr/bin/file -L'
5208  lt_cv_file_magic_test_file=/shlib/libc.so
5209  ;;
5210
5211cygwin*)
5212  # func_win32_libid is a shell function defined in ltmain.sh
5213  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5214  lt_cv_file_magic_cmd='func_win32_libid'
5215  ;;
5216
5217mingw* | pw32*)
5218  # Base MSYS/MinGW do not provide the 'file' command needed by
5219  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5220  # unless we find 'file', for example because we are cross-compiling.
5221  if ( file / ) >/dev/null 2>&1; then
5222    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5223    lt_cv_file_magic_cmd='func_win32_libid'
5224  else
5225    # Keep this pattern in sync with the one in func_win32_libid.
5226    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5227    lt_cv_file_magic_cmd='$OBJDUMP -f'
5228  fi
5229  ;;
5230
5231cegcc*)
5232  # use the weaker test based on 'objdump'. See mingw*.
5233  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5234  lt_cv_file_magic_cmd='$OBJDUMP -f'
5235  ;;
5236
5237darwin* | rhapsody*)
5238  lt_cv_deplibs_check_method=pass_all
5239  ;;
5240
5241freebsd* | dragonfly*)
5242  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5243    case $host_cpu in
5244    i*86 )
5245      # Not sure whether the presence of OpenBSD here was a mistake.
5246      # Let's accept both of them until this is cleared up.
5247      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5248      lt_cv_file_magic_cmd=/usr/bin/file
5249      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5250      ;;
5251    esac
5252  else
5253    lt_cv_deplibs_check_method=pass_all
5254  fi
5255  ;;
5256
5257haiku*)
5258  lt_cv_deplibs_check_method=pass_all
5259  ;;
5260
5261hpux10.20* | hpux11*)
5262  lt_cv_file_magic_cmd=/usr/bin/file
5263  case $host_cpu in
5264  ia64*)
5265    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5266    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5267    ;;
5268  hppa*64*)
5269    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]'
5270    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5271    ;;
5272  *)
5273    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5274    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5275    ;;
5276  esac
5277  ;;
5278
5279interix[3-9]*)
5280  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5281  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5282  ;;
5283
5284irix5* | irix6* | nonstopux*)
5285  case $LD in
5286  *-32|*"-32 ") libmagic=32-bit;;
5287  *-n32|*"-n32 ") libmagic=N32;;
5288  *-64|*"-64 ") libmagic=64-bit;;
5289  *) libmagic=never-match;;
5290  esac
5291  lt_cv_deplibs_check_method=pass_all
5292  ;;
5293
5294# This must be glibc/ELF.
5295linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5296  lt_cv_deplibs_check_method=pass_all
5297  ;;
5298
5299netbsd*)
5300  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5301    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5302  else
5303    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5304  fi
5305  ;;
5306
5307newos6*)
5308  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5309  lt_cv_file_magic_cmd=/usr/bin/file
5310  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5311  ;;
5312
5313*nto* | *qnx*)
5314  lt_cv_deplibs_check_method=pass_all
5315  ;;
5316
5317openbsd* | bitrig*)
5318  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5319    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5320  else
5321    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5322  fi
5323  ;;
5324
5325osf3* | osf4* | osf5*)
5326  lt_cv_deplibs_check_method=pass_all
5327  ;;
5328
5329rdos*)
5330  lt_cv_deplibs_check_method=pass_all
5331  ;;
5332
5333solaris*)
5334  lt_cv_deplibs_check_method=pass_all
5335  ;;
5336
5337sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5338  lt_cv_deplibs_check_method=pass_all
5339  ;;
5340
5341sysv4 | sysv4.3*)
5342  case $host_vendor in
5343  motorola)
5344    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]'
5345    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5346    ;;
5347  ncr)
5348    lt_cv_deplibs_check_method=pass_all
5349    ;;
5350  sequent)
5351    lt_cv_file_magic_cmd='/bin/file'
5352    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5353    ;;
5354  sni)
5355    lt_cv_file_magic_cmd='/bin/file'
5356    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5357    lt_cv_file_magic_test_file=/lib/libc.so
5358    ;;
5359  siemens)
5360    lt_cv_deplibs_check_method=pass_all
5361    ;;
5362  pc)
5363    lt_cv_deplibs_check_method=pass_all
5364    ;;
5365  esac
5366  ;;
5367
5368tpf*)
5369  lt_cv_deplibs_check_method=pass_all
5370  ;;
5371os2*)
5372  lt_cv_deplibs_check_method=pass_all
5373  ;;
5374esac
5375
5376fi
5377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5378$as_echo "$lt_cv_deplibs_check_method" >&6; }
5379
5380file_magic_glob=
5381want_nocaseglob=no
5382if test "$build" = "$host"; then
5383  case $host_os in
5384  mingw* | pw32*)
5385    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5386      want_nocaseglob=yes
5387    else
5388      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5389    fi
5390    ;;
5391  esac
5392fi
5393
5394file_magic_cmd=$lt_cv_file_magic_cmd
5395deplibs_check_method=$lt_cv_deplibs_check_method
5396test -z "$deplibs_check_method" && deplibs_check_method=unknown
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419if test -n "$ac_tool_prefix"; then
5420  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5421set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5423$as_echo_n "checking for $ac_word... " >&6; }
5424if ${ac_cv_prog_DLLTOOL+:} false; then :
5425  $as_echo_n "(cached) " >&6
5426else
5427  if test -n "$DLLTOOL"; then
5428  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5429else
5430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431for as_dir in $PATH
5432do
5433  IFS=$as_save_IFS
5434  test -z "$as_dir" && as_dir=.
5435    for ac_exec_ext in '' $ac_executable_extensions; do
5436  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5437    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5438    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5439    break 2
5440  fi
5441done
5442  done
5443IFS=$as_save_IFS
5444
5445fi
5446fi
5447DLLTOOL=$ac_cv_prog_DLLTOOL
5448if test -n "$DLLTOOL"; then
5449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5450$as_echo "$DLLTOOL" >&6; }
5451else
5452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453$as_echo "no" >&6; }
5454fi
5455
5456
5457fi
5458if test -z "$ac_cv_prog_DLLTOOL"; then
5459  ac_ct_DLLTOOL=$DLLTOOL
5460  # Extract the first word of "dlltool", so it can be a program name with args.
5461set dummy dlltool; ac_word=$2
5462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5463$as_echo_n "checking for $ac_word... " >&6; }
5464if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5465  $as_echo_n "(cached) " >&6
5466else
5467  if test -n "$ac_ct_DLLTOOL"; then
5468  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5469else
5470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471for as_dir in $PATH
5472do
5473  IFS=$as_save_IFS
5474  test -z "$as_dir" && as_dir=.
5475    for ac_exec_ext in '' $ac_executable_extensions; do
5476  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5477    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5478    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5479    break 2
5480  fi
5481done
5482  done
5483IFS=$as_save_IFS
5484
5485fi
5486fi
5487ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5488if test -n "$ac_ct_DLLTOOL"; then
5489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5490$as_echo "$ac_ct_DLLTOOL" >&6; }
5491else
5492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5493$as_echo "no" >&6; }
5494fi
5495
5496  if test "x$ac_ct_DLLTOOL" = x; then
5497    DLLTOOL="false"
5498  else
5499    case $cross_compiling:$ac_tool_warned in
5500yes:)
5501{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5502$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5503ac_tool_warned=yes ;;
5504esac
5505    DLLTOOL=$ac_ct_DLLTOOL
5506  fi
5507else
5508  DLLTOOL="$ac_cv_prog_DLLTOOL"
5509fi
5510
5511test -z "$DLLTOOL" && DLLTOOL=dlltool
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5523$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5524if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5525  $as_echo_n "(cached) " >&6
5526else
5527  lt_cv_sharedlib_from_linklib_cmd='unknown'
5528
5529case $host_os in
5530cygwin* | mingw* | pw32* | cegcc*)
5531  # two different shell functions defined in ltmain.sh;
5532  # decide which one to use based on capabilities of $DLLTOOL
5533  case `$DLLTOOL --help 2>&1` in
5534  *--identify-strict*)
5535    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5536    ;;
5537  *)
5538    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5539    ;;
5540  esac
5541  ;;
5542*)
5543  # fallback: assume linklib IS sharedlib
5544  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5545  ;;
5546esac
5547
5548fi
5549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5550$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5551sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5552test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5553
5554
5555
5556
5557
5558
5559
5560
5561if test -n "$ac_tool_prefix"; then
5562  for ac_prog in ar
5563  do
5564    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5565set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5567$as_echo_n "checking for $ac_word... " >&6; }
5568if ${ac_cv_prog_AR+:} false; then :
5569  $as_echo_n "(cached) " >&6
5570else
5571  if test -n "$AR"; then
5572  ac_cv_prog_AR="$AR" # Let the user override the test.
5573else
5574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575for as_dir in $PATH
5576do
5577  IFS=$as_save_IFS
5578  test -z "$as_dir" && as_dir=.
5579    for ac_exec_ext in '' $ac_executable_extensions; do
5580  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5581    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5582    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5583    break 2
5584  fi
5585done
5586  done
5587IFS=$as_save_IFS
5588
5589fi
5590fi
5591AR=$ac_cv_prog_AR
5592if test -n "$AR"; then
5593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5594$as_echo "$AR" >&6; }
5595else
5596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5597$as_echo "no" >&6; }
5598fi
5599
5600
5601    test -n "$AR" && break
5602  done
5603fi
5604if test -z "$AR"; then
5605  ac_ct_AR=$AR
5606  for ac_prog in ar
5607do
5608  # Extract the first word of "$ac_prog", so it can be a program name with args.
5609set dummy $ac_prog; ac_word=$2
5610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5611$as_echo_n "checking for $ac_word... " >&6; }
5612if ${ac_cv_prog_ac_ct_AR+:} false; then :
5613  $as_echo_n "(cached) " >&6
5614else
5615  if test -n "$ac_ct_AR"; then
5616  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5617else
5618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619for as_dir in $PATH
5620do
5621  IFS=$as_save_IFS
5622  test -z "$as_dir" && as_dir=.
5623    for ac_exec_ext in '' $ac_executable_extensions; do
5624  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5625    ac_cv_prog_ac_ct_AR="$ac_prog"
5626    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5627    break 2
5628  fi
5629done
5630  done
5631IFS=$as_save_IFS
5632
5633fi
5634fi
5635ac_ct_AR=$ac_cv_prog_ac_ct_AR
5636if test -n "$ac_ct_AR"; then
5637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5638$as_echo "$ac_ct_AR" >&6; }
5639else
5640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5641$as_echo "no" >&6; }
5642fi
5643
5644
5645  test -n "$ac_ct_AR" && break
5646done
5647
5648  if test "x$ac_ct_AR" = x; then
5649    AR="false"
5650  else
5651    case $cross_compiling:$ac_tool_warned in
5652yes:)
5653{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5654$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5655ac_tool_warned=yes ;;
5656esac
5657    AR=$ac_ct_AR
5658  fi
5659fi
5660
5661: ${AR=ar}
5662: ${AR_FLAGS=cru}
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5675$as_echo_n "checking for archiver @FILE support... " >&6; }
5676if ${lt_cv_ar_at_file+:} false; then :
5677  $as_echo_n "(cached) " >&6
5678else
5679  lt_cv_ar_at_file=no
5680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5681/* end confdefs.h.  */
5682
5683int
5684main ()
5685{
5686
5687  ;
5688  return 0;
5689}
5690_ACEOF
5691if ac_fn_c_try_compile "$LINENO"; then :
5692  echo conftest.$ac_objext > conftest.lst
5693      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5694      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5695  (eval $lt_ar_try) 2>&5
5696  ac_status=$?
5697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5698  test $ac_status = 0; }
5699      if test 0 -eq "$ac_status"; then
5700	# Ensure the archiver fails upon bogus file names.
5701	rm -f conftest.$ac_objext libconftest.a
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 0 -ne "$ac_status"; then
5708          lt_cv_ar_at_file=@
5709        fi
5710      fi
5711      rm -f conftest.* libconftest.a
5712
5713fi
5714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5715
5716fi
5717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5718$as_echo "$lt_cv_ar_at_file" >&6; }
5719
5720if test no = "$lt_cv_ar_at_file"; then
5721  archiver_list_spec=
5722else
5723  archiver_list_spec=$lt_cv_ar_at_file
5724fi
5725
5726
5727
5728
5729
5730
5731
5732if test -n "$ac_tool_prefix"; then
5733  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5734set dummy ${ac_tool_prefix}strip; ac_word=$2
5735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5736$as_echo_n "checking for $ac_word... " >&6; }
5737if ${ac_cv_prog_STRIP+:} false; then :
5738  $as_echo_n "(cached) " >&6
5739else
5740  if test -n "$STRIP"; then
5741  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5742else
5743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5744for as_dir in $PATH
5745do
5746  IFS=$as_save_IFS
5747  test -z "$as_dir" && as_dir=.
5748    for ac_exec_ext in '' $ac_executable_extensions; do
5749  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5750    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5751    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5752    break 2
5753  fi
5754done
5755  done
5756IFS=$as_save_IFS
5757
5758fi
5759fi
5760STRIP=$ac_cv_prog_STRIP
5761if test -n "$STRIP"; then
5762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5763$as_echo "$STRIP" >&6; }
5764else
5765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5766$as_echo "no" >&6; }
5767fi
5768
5769
5770fi
5771if test -z "$ac_cv_prog_STRIP"; then
5772  ac_ct_STRIP=$STRIP
5773  # Extract the first word of "strip", so it can be a program name with args.
5774set dummy strip; ac_word=$2
5775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5776$as_echo_n "checking for $ac_word... " >&6; }
5777if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5778  $as_echo_n "(cached) " >&6
5779else
5780  if test -n "$ac_ct_STRIP"; then
5781  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5782else
5783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5784for as_dir in $PATH
5785do
5786  IFS=$as_save_IFS
5787  test -z "$as_dir" && as_dir=.
5788    for ac_exec_ext in '' $ac_executable_extensions; do
5789  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5790    ac_cv_prog_ac_ct_STRIP="strip"
5791    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5792    break 2
5793  fi
5794done
5795  done
5796IFS=$as_save_IFS
5797
5798fi
5799fi
5800ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5801if test -n "$ac_ct_STRIP"; then
5802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5803$as_echo "$ac_ct_STRIP" >&6; }
5804else
5805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5806$as_echo "no" >&6; }
5807fi
5808
5809  if test "x$ac_ct_STRIP" = x; then
5810    STRIP=":"
5811  else
5812    case $cross_compiling:$ac_tool_warned in
5813yes:)
5814{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5815$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5816ac_tool_warned=yes ;;
5817esac
5818    STRIP=$ac_ct_STRIP
5819  fi
5820else
5821  STRIP="$ac_cv_prog_STRIP"
5822fi
5823
5824test -z "$STRIP" && STRIP=:
5825
5826
5827
5828
5829
5830
5831if test -n "$ac_tool_prefix"; then
5832  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5833set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5835$as_echo_n "checking for $ac_word... " >&6; }
5836if ${ac_cv_prog_RANLIB+:} false; then :
5837  $as_echo_n "(cached) " >&6
5838else
5839  if test -n "$RANLIB"; then
5840  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5841else
5842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843for as_dir in $PATH
5844do
5845  IFS=$as_save_IFS
5846  test -z "$as_dir" && as_dir=.
5847    for ac_exec_ext in '' $ac_executable_extensions; do
5848  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5849    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5850    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5851    break 2
5852  fi
5853done
5854  done
5855IFS=$as_save_IFS
5856
5857fi
5858fi
5859RANLIB=$ac_cv_prog_RANLIB
5860if test -n "$RANLIB"; then
5861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5862$as_echo "$RANLIB" >&6; }
5863else
5864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5865$as_echo "no" >&6; }
5866fi
5867
5868
5869fi
5870if test -z "$ac_cv_prog_RANLIB"; then
5871  ac_ct_RANLIB=$RANLIB
5872  # Extract the first word of "ranlib", so it can be a program name with args.
5873set dummy ranlib; ac_word=$2
5874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5875$as_echo_n "checking for $ac_word... " >&6; }
5876if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5877  $as_echo_n "(cached) " >&6
5878else
5879  if test -n "$ac_ct_RANLIB"; then
5880  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5881else
5882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883for as_dir in $PATH
5884do
5885  IFS=$as_save_IFS
5886  test -z "$as_dir" && as_dir=.
5887    for ac_exec_ext in '' $ac_executable_extensions; do
5888  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5889    ac_cv_prog_ac_ct_RANLIB="ranlib"
5890    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5891    break 2
5892  fi
5893done
5894  done
5895IFS=$as_save_IFS
5896
5897fi
5898fi
5899ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5900if test -n "$ac_ct_RANLIB"; then
5901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5902$as_echo "$ac_ct_RANLIB" >&6; }
5903else
5904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5905$as_echo "no" >&6; }
5906fi
5907
5908  if test "x$ac_ct_RANLIB" = x; then
5909    RANLIB=":"
5910  else
5911    case $cross_compiling:$ac_tool_warned in
5912yes:)
5913{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5914$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5915ac_tool_warned=yes ;;
5916esac
5917    RANLIB=$ac_ct_RANLIB
5918  fi
5919else
5920  RANLIB="$ac_cv_prog_RANLIB"
5921fi
5922
5923test -z "$RANLIB" && RANLIB=:
5924
5925
5926
5927
5928
5929
5930# Determine commands to create old-style static archives.
5931old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5932old_postinstall_cmds='chmod 644 $oldlib'
5933old_postuninstall_cmds=
5934
5935if test -n "$RANLIB"; then
5936  case $host_os in
5937  bitrig* | openbsd*)
5938    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5939    ;;
5940  *)
5941    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5942    ;;
5943  esac
5944  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5945fi
5946
5947case $host_os in
5948  darwin*)
5949    lock_old_archive_extraction=yes ;;
5950  *)
5951    lock_old_archive_extraction=no ;;
5952esac
5953
5954
5955
5956
5957
5958
5959
5960
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# If no C compiler was specified, use CC.
5993LTCC=${LTCC-"$CC"}
5994
5995# If no C compiler flags were specified, use CFLAGS.
5996LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5997
5998# Allow CC to be a program name with arguments.
5999compiler=$CC
6000
6001
6002# Check for command to grab the raw symbol name followed by C symbol from nm.
6003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6004$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6005if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6006  $as_echo_n "(cached) " >&6
6007else
6008
6009# These are sane defaults that work on at least a few old systems.
6010# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6011
6012# Character class describing NM global symbol codes.
6013symcode='[BCDEGRST]'
6014
6015# Regexp to match symbols that can be accessed directly from C.
6016sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6017
6018# Define system-specific variables.
6019case $host_os in
6020aix*)
6021  symcode='[BCDT]'
6022  ;;
6023cygwin* | mingw* | pw32* | cegcc*)
6024  symcode='[ABCDGISTW]'
6025  ;;
6026hpux*)
6027  if test ia64 = "$host_cpu"; then
6028    symcode='[ABCDEGRST]'
6029  fi
6030  ;;
6031irix* | nonstopux*)
6032  symcode='[BCDEGRST]'
6033  ;;
6034osf*)
6035  symcode='[BCDEGQRST]'
6036  ;;
6037solaris*)
6038  symcode='[BDRT]'
6039  ;;
6040sco3.2v5*)
6041  symcode='[DT]'
6042  ;;
6043sysv4.2uw2*)
6044  symcode='[DT]'
6045  ;;
6046sysv5* | sco5v6* | unixware* | OpenUNIX*)
6047  symcode='[ABDT]'
6048  ;;
6049sysv4)
6050  symcode='[DFNSTU]'
6051  ;;
6052esac
6053
6054# If we're using GNU nm, then use its standard symbol codes.
6055case `$NM -V 2>&1` in
6056*GNU* | *'with BFD'*)
6057  symcode='[ABCDGIRSTW]' ;;
6058esac
6059
6060if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6061  # Gets list of data symbols to import.
6062  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6063  # Adjust the below global symbol transforms to fixup imported variables.
6064  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6065  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6066  lt_c_name_lib_hook="\
6067  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6068  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6069else
6070  # Disable hooks by default.
6071  lt_cv_sys_global_symbol_to_import=
6072  lt_cdecl_hook=
6073  lt_c_name_hook=
6074  lt_c_name_lib_hook=
6075fi
6076
6077# Transform an extracted symbol line into a proper C declaration.
6078# Some systems (esp. on ia64) link data and code symbols differently,
6079# so use this general approach.
6080lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6081$lt_cdecl_hook\
6082" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6083" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6084
6085# Transform an extracted symbol line into symbol name and symbol address
6086lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6087$lt_c_name_hook\
6088" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6089" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6090
6091# Transform an extracted symbol line into symbol name with lib prefix and
6092# symbol address.
6093lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6094$lt_c_name_lib_hook\
6095" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6096" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6097" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6098
6099# Handle CRLF in mingw tool chain
6100opt_cr=
6101case $build_os in
6102mingw*)
6103  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6104  ;;
6105esac
6106
6107# Try without a prefix underscore, then with it.
6108for ac_symprfx in "" "_"; do
6109
6110  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6111  symxfrm="\\1 $ac_symprfx\\2 \\2"
6112
6113  # Write the raw and C identifiers.
6114  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6115    # Fake it for dumpbin and say T for any non-static function,
6116    # D for any global variable and I for any imported variable.
6117    # Also find C++ and __fastcall symbols from MSVC++,
6118    # which start with @ or ?.
6119    lt_cv_sys_global_symbol_pipe="$AWK '"\
6120"     {last_section=section; section=\$ 3};"\
6121"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6122"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6123"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6124"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6125"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6126"     \$ 0!~/External *\|/{next};"\
6127"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6128"     {if(hide[section]) next};"\
6129"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6130"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6131"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6132"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6133"     ' prfx=^$ac_symprfx"
6134  else
6135    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6136  fi
6137  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6138
6139  # Check to see that the pipe works correctly.
6140  pipe_works=no
6141
6142  rm -f conftest*
6143  cat > conftest.$ac_ext <<_LT_EOF
6144#ifdef __cplusplus
6145extern "C" {
6146#endif
6147char nm_test_var;
6148void nm_test_func(void);
6149void nm_test_func(void){}
6150#ifdef __cplusplus
6151}
6152#endif
6153int main(){nm_test_var='a';nm_test_func();return(0);}
6154_LT_EOF
6155
6156  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6157  (eval $ac_compile) 2>&5
6158  ac_status=$?
6159  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6160  test $ac_status = 0; }; then
6161    # Now try to grab the symbols.
6162    nlist=conftest.nm
6163    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6164  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6165  ac_status=$?
6166  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6167  test $ac_status = 0; } && test -s "$nlist"; then
6168      # Try sorting and uniquifying the output.
6169      if sort "$nlist" | uniq > "$nlist"T; then
6170	mv -f "$nlist"T "$nlist"
6171      else
6172	rm -f "$nlist"T
6173      fi
6174
6175      # Make sure that we snagged all the symbols we need.
6176      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6177	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6178	  cat <<_LT_EOF > conftest.$ac_ext
6179/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6180#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6181/* DATA imports from DLLs on WIN32 can't be const, because runtime
6182   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6183# define LT_DLSYM_CONST
6184#elif defined __osf__
6185/* This system does not cope well with relocations in const data.  */
6186# define LT_DLSYM_CONST
6187#else
6188# define LT_DLSYM_CONST const
6189#endif
6190
6191#ifdef __cplusplus
6192extern "C" {
6193#endif
6194
6195_LT_EOF
6196	  # Now generate the symbol file.
6197	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6198
6199	  cat <<_LT_EOF >> conftest.$ac_ext
6200
6201/* The mapping between symbol names and symbols.  */
6202LT_DLSYM_CONST struct {
6203  const char *name;
6204  void       *address;
6205}
6206lt__PROGRAM__LTX_preloaded_symbols[] =
6207{
6208  { "@PROGRAM@", (void *) 0 },
6209_LT_EOF
6210	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6211	  cat <<\_LT_EOF >> conftest.$ac_ext
6212  {0, (void *) 0}
6213};
6214
6215/* This works around a problem in FreeBSD linker */
6216#ifdef FREEBSD_WORKAROUND
6217static const void *lt_preloaded_setup() {
6218  return lt__PROGRAM__LTX_preloaded_symbols;
6219}
6220#endif
6221
6222#ifdef __cplusplus
6223}
6224#endif
6225_LT_EOF
6226	  # Now try linking the two files.
6227	  mv conftest.$ac_objext conftstm.$ac_objext
6228	  lt_globsym_save_LIBS=$LIBS
6229	  lt_globsym_save_CFLAGS=$CFLAGS
6230	  LIBS=conftstm.$ac_objext
6231	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6232	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6233  (eval $ac_link) 2>&5
6234  ac_status=$?
6235  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6236  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6237	    pipe_works=yes
6238	  fi
6239	  LIBS=$lt_globsym_save_LIBS
6240	  CFLAGS=$lt_globsym_save_CFLAGS
6241	else
6242	  echo "cannot find nm_test_func in $nlist" >&5
6243	fi
6244      else
6245	echo "cannot find nm_test_var in $nlist" >&5
6246      fi
6247    else
6248      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6249    fi
6250  else
6251    echo "$progname: failed program was:" >&5
6252    cat conftest.$ac_ext >&5
6253  fi
6254  rm -rf conftest* conftst*
6255
6256  # Do not use the global_symbol_pipe unless it works.
6257  if test yes = "$pipe_works"; then
6258    break
6259  else
6260    lt_cv_sys_global_symbol_pipe=
6261  fi
6262done
6263
6264fi
6265
6266if test -z "$lt_cv_sys_global_symbol_pipe"; then
6267  lt_cv_sys_global_symbol_to_cdecl=
6268fi
6269if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6271$as_echo "failed" >&6; }
6272else
6273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6274$as_echo "ok" >&6; }
6275fi
6276
6277# Response file support.
6278if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6279  nm_file_list_spec='@'
6280elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6281  nm_file_list_spec='@'
6282fi
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6321$as_echo_n "checking for sysroot... " >&6; }
6322
6323# Check whether --with-sysroot was given.
6324if test "${with_sysroot+set}" = set; then :
6325  withval=$with_sysroot;
6326else
6327  with_sysroot=no
6328fi
6329
6330
6331lt_sysroot=
6332case $with_sysroot in #(
6333 yes)
6334   if test yes = "$GCC"; then
6335     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6336   fi
6337   ;; #(
6338 /*)
6339   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6340   ;; #(
6341 no|'')
6342   ;; #(
6343 *)
6344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6345$as_echo "$with_sysroot" >&6; }
6346   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6347   ;;
6348esac
6349
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6351$as_echo "${lt_sysroot:-no}" >&6; }
6352
6353
6354
6355
6356
6357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6358$as_echo_n "checking for a working dd... " >&6; }
6359if ${ac_cv_path_lt_DD+:} false; then :
6360  $as_echo_n "(cached) " >&6
6361else
6362  printf 0123456789abcdef0123456789abcdef >conftest.i
6363cat conftest.i conftest.i >conftest2.i
6364: ${lt_DD:=$DD}
6365if test -z "$lt_DD"; then
6366  ac_path_lt_DD_found=false
6367  # Loop through the user's path and test for each of PROGNAME-LIST
6368  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369for as_dir in $PATH
6370do
6371  IFS=$as_save_IFS
6372  test -z "$as_dir" && as_dir=.
6373    for ac_prog in dd; do
6374    for ac_exec_ext in '' $ac_executable_extensions; do
6375      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6376      as_fn_executable_p "$ac_path_lt_DD" || continue
6377if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6378  cmp -s conftest.i conftest.out \
6379  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6380fi
6381      $ac_path_lt_DD_found && break 3
6382    done
6383  done
6384  done
6385IFS=$as_save_IFS
6386  if test -z "$ac_cv_path_lt_DD"; then
6387    :
6388  fi
6389else
6390  ac_cv_path_lt_DD=$lt_DD
6391fi
6392
6393rm -f conftest.i conftest2.i conftest.out
6394fi
6395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6396$as_echo "$ac_cv_path_lt_DD" >&6; }
6397
6398
6399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6400$as_echo_n "checking how to truncate binary pipes... " >&6; }
6401if ${lt_cv_truncate_bin+:} false; then :
6402  $as_echo_n "(cached) " >&6
6403else
6404  printf 0123456789abcdef0123456789abcdef >conftest.i
6405cat conftest.i conftest.i >conftest2.i
6406lt_cv_truncate_bin=
6407if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6408  cmp -s conftest.i conftest.out \
6409  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6410fi
6411rm -f conftest.i conftest2.i conftest.out
6412test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6413fi
6414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6415$as_echo "$lt_cv_truncate_bin" >&6; }
6416
6417
6418
6419
6420
6421
6422
6423# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6424func_cc_basename ()
6425{
6426    for cc_temp in $*""; do
6427      case $cc_temp in
6428        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6429        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6430        \-*) ;;
6431        *) break;;
6432      esac
6433    done
6434    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6435}
6436
6437# Check whether --enable-libtool-lock was given.
6438if test "${enable_libtool_lock+set}" = set; then :
6439  enableval=$enable_libtool_lock;
6440fi
6441
6442test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6443
6444# Some flags need to be propagated to the compiler or linker for good
6445# libtool support.
6446case $host in
6447ia64-*-hpux*)
6448  # Find out what ABI is being produced by ac_compile, and set mode
6449  # options accordingly.
6450  echo 'int i;' > conftest.$ac_ext
6451  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6452  (eval $ac_compile) 2>&5
6453  ac_status=$?
6454  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6455  test $ac_status = 0; }; then
6456    case `/usr/bin/file conftest.$ac_objext` in
6457      *ELF-32*)
6458	HPUX_IA64_MODE=32
6459	;;
6460      *ELF-64*)
6461	HPUX_IA64_MODE=64
6462	;;
6463    esac
6464  fi
6465  rm -rf conftest*
6466  ;;
6467*-*-irix6*)
6468  # Find out what ABI is being produced by ac_compile, and set linker
6469  # options accordingly.
6470  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6471  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6472  (eval $ac_compile) 2>&5
6473  ac_status=$?
6474  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6475  test $ac_status = 0; }; then
6476    if test yes = "$lt_cv_prog_gnu_ld"; then
6477      case `/usr/bin/file conftest.$ac_objext` in
6478	*32-bit*)
6479	  LD="${LD-ld} -melf32bsmip"
6480	  ;;
6481	*N32*)
6482	  LD="${LD-ld} -melf32bmipn32"
6483	  ;;
6484	*64-bit*)
6485	  LD="${LD-ld} -melf64bmip"
6486	;;
6487      esac
6488    else
6489      case `/usr/bin/file conftest.$ac_objext` in
6490	*32-bit*)
6491	  LD="${LD-ld} -32"
6492	  ;;
6493	*N32*)
6494	  LD="${LD-ld} -n32"
6495	  ;;
6496	*64-bit*)
6497	  LD="${LD-ld} -64"
6498	  ;;
6499      esac
6500    fi
6501  fi
6502  rm -rf conftest*
6503  ;;
6504
6505mips64*-*linux*)
6506  # Find out what ABI is being produced by ac_compile, and set linker
6507  # options accordingly.
6508  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6509  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6510  (eval $ac_compile) 2>&5
6511  ac_status=$?
6512  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6513  test $ac_status = 0; }; then
6514    emul=elf
6515    case `/usr/bin/file conftest.$ac_objext` in
6516      *32-bit*)
6517	emul="${emul}32"
6518	;;
6519      *64-bit*)
6520	emul="${emul}64"
6521	;;
6522    esac
6523    case `/usr/bin/file conftest.$ac_objext` in
6524      *MSB*)
6525	emul="${emul}btsmip"
6526	;;
6527      *LSB*)
6528	emul="${emul}ltsmip"
6529	;;
6530    esac
6531    case `/usr/bin/file conftest.$ac_objext` in
6532      *N32*)
6533	emul="${emul}n32"
6534	;;
6535    esac
6536    LD="${LD-ld} -m $emul"
6537  fi
6538  rm -rf conftest*
6539  ;;
6540
6541x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6542s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6543  # Find out what ABI is being produced by ac_compile, and set linker
6544  # options accordingly.  Note that the listed cases only cover the
6545  # situations where additional linker options are needed (such as when
6546  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6547  # vice versa); the common cases where no linker options are needed do
6548  # not appear in the list.
6549  echo 'int i;' > conftest.$ac_ext
6550  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6551  (eval $ac_compile) 2>&5
6552  ac_status=$?
6553  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6554  test $ac_status = 0; }; then
6555    case `/usr/bin/file conftest.o` in
6556      *32-bit*)
6557	case $host in
6558	  x86_64-*kfreebsd*-gnu)
6559	    LD="${LD-ld} -m elf_i386_fbsd"
6560	    ;;
6561	  x86_64-*linux*)
6562	    case `/usr/bin/file conftest.o` in
6563	      *x86-64*)
6564		LD="${LD-ld} -m elf32_x86_64"
6565		;;
6566	      *)
6567		LD="${LD-ld} -m elf_i386"
6568		;;
6569	    esac
6570	    ;;
6571	  powerpc64le-*linux*)
6572	    LD="${LD-ld} -m elf32lppclinux"
6573	    ;;
6574	  powerpc64-*linux*)
6575	    LD="${LD-ld} -m elf32ppclinux"
6576	    ;;
6577	  s390x-*linux*)
6578	    LD="${LD-ld} -m elf_s390"
6579	    ;;
6580	  sparc64-*linux*)
6581	    LD="${LD-ld} -m elf32_sparc"
6582	    ;;
6583	esac
6584	;;
6585      *64-bit*)
6586	case $host in
6587	  x86_64-*kfreebsd*-gnu)
6588	    LD="${LD-ld} -m elf_x86_64_fbsd"
6589	    ;;
6590	  x86_64-*linux*)
6591	    LD="${LD-ld} -m elf_x86_64"
6592	    ;;
6593	  powerpcle-*linux*)
6594	    LD="${LD-ld} -m elf64lppc"
6595	    ;;
6596	  powerpc-*linux*)
6597	    LD="${LD-ld} -m elf64ppc"
6598	    ;;
6599	  s390*-*linux*|s390*-*tpf*)
6600	    LD="${LD-ld} -m elf64_s390"
6601	    ;;
6602	  sparc*-*linux*)
6603	    LD="${LD-ld} -m elf64_sparc"
6604	    ;;
6605	esac
6606	;;
6607    esac
6608  fi
6609  rm -rf conftest*
6610  ;;
6611
6612*-*-sco3.2v5*)
6613  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6614  SAVE_CFLAGS=$CFLAGS
6615  CFLAGS="$CFLAGS -belf"
6616  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6617$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6618if ${lt_cv_cc_needs_belf+:} false; then :
6619  $as_echo_n "(cached) " >&6
6620else
6621  ac_ext=c
6622ac_cpp='$CPP $CPPFLAGS'
6623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6625ac_compiler_gnu=$ac_cv_c_compiler_gnu
6626
6627     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6628/* end confdefs.h.  */
6629
6630int
6631main ()
6632{
6633
6634  ;
6635  return 0;
6636}
6637_ACEOF
6638if ac_fn_c_try_link "$LINENO"; then :
6639  lt_cv_cc_needs_belf=yes
6640else
6641  lt_cv_cc_needs_belf=no
6642fi
6643rm -f core conftest.err conftest.$ac_objext \
6644    conftest$ac_exeext conftest.$ac_ext
6645     ac_ext=c
6646ac_cpp='$CPP $CPPFLAGS'
6647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6649ac_compiler_gnu=$ac_cv_c_compiler_gnu
6650
6651fi
6652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6653$as_echo "$lt_cv_cc_needs_belf" >&6; }
6654  if test yes != "$lt_cv_cc_needs_belf"; then
6655    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6656    CFLAGS=$SAVE_CFLAGS
6657  fi
6658  ;;
6659*-*solaris*)
6660  # Find out what ABI is being produced by ac_compile, and set linker
6661  # options accordingly.
6662  echo 'int i;' > conftest.$ac_ext
6663  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6664  (eval $ac_compile) 2>&5
6665  ac_status=$?
6666  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6667  test $ac_status = 0; }; then
6668    case `/usr/bin/file conftest.o` in
6669    *64-bit*)
6670      case $lt_cv_prog_gnu_ld in
6671      yes*)
6672        case $host in
6673        i?86-*-solaris*|x86_64-*-solaris*)
6674          LD="${LD-ld} -m elf_x86_64"
6675          ;;
6676        sparc*-*-solaris*)
6677          LD="${LD-ld} -m elf64_sparc"
6678          ;;
6679        esac
6680        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6681        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6682          LD=${LD-ld}_sol2
6683        fi
6684        ;;
6685      *)
6686	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6687	  LD="${LD-ld} -64"
6688	fi
6689	;;
6690      esac
6691      ;;
6692    esac
6693  fi
6694  rm -rf conftest*
6695  ;;
6696esac
6697
6698need_locks=$enable_libtool_lock
6699
6700if test -n "$ac_tool_prefix"; then
6701  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6702set dummy ${ac_tool_prefix}mt; ac_word=$2
6703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6704$as_echo_n "checking for $ac_word... " >&6; }
6705if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6706  $as_echo_n "(cached) " >&6
6707else
6708  if test -n "$MANIFEST_TOOL"; then
6709  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6710else
6711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712for as_dir in $PATH
6713do
6714  IFS=$as_save_IFS
6715  test -z "$as_dir" && as_dir=.
6716    for ac_exec_ext in '' $ac_executable_extensions; do
6717  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6718    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6719    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6720    break 2
6721  fi
6722done
6723  done
6724IFS=$as_save_IFS
6725
6726fi
6727fi
6728MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6729if test -n "$MANIFEST_TOOL"; then
6730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6731$as_echo "$MANIFEST_TOOL" >&6; }
6732else
6733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6734$as_echo "no" >&6; }
6735fi
6736
6737
6738fi
6739if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6740  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6741  # Extract the first word of "mt", so it can be a program name with args.
6742set dummy mt; ac_word=$2
6743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6744$as_echo_n "checking for $ac_word... " >&6; }
6745if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6746  $as_echo_n "(cached) " >&6
6747else
6748  if test -n "$ac_ct_MANIFEST_TOOL"; then
6749  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6750else
6751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752for as_dir in $PATH
6753do
6754  IFS=$as_save_IFS
6755  test -z "$as_dir" && as_dir=.
6756    for ac_exec_ext in '' $ac_executable_extensions; do
6757  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6758    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6759    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6760    break 2
6761  fi
6762done
6763  done
6764IFS=$as_save_IFS
6765
6766fi
6767fi
6768ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6769if test -n "$ac_ct_MANIFEST_TOOL"; then
6770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6771$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6772else
6773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6774$as_echo "no" >&6; }
6775fi
6776
6777  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6778    MANIFEST_TOOL=":"
6779  else
6780    case $cross_compiling:$ac_tool_warned in
6781yes:)
6782{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6783$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6784ac_tool_warned=yes ;;
6785esac
6786    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6787  fi
6788else
6789  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6790fi
6791
6792test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6794$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6795if ${lt_cv_path_mainfest_tool+:} false; then :
6796  $as_echo_n "(cached) " >&6
6797else
6798  lt_cv_path_mainfest_tool=no
6799  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6800  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6801  cat conftest.err >&5
6802  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6803    lt_cv_path_mainfest_tool=yes
6804  fi
6805  rm -f conftest*
6806fi
6807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6808$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6809if test yes != "$lt_cv_path_mainfest_tool"; then
6810  MANIFEST_TOOL=:
6811fi
6812
6813
6814
6815
6816
6817
6818  case $host_os in
6819    rhapsody* | darwin*)
6820    if test -n "$ac_tool_prefix"; then
6821  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6822set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6824$as_echo_n "checking for $ac_word... " >&6; }
6825if ${ac_cv_prog_DSYMUTIL+:} false; then :
6826  $as_echo_n "(cached) " >&6
6827else
6828  if test -n "$DSYMUTIL"; then
6829  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6830else
6831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832for as_dir in $PATH
6833do
6834  IFS=$as_save_IFS
6835  test -z "$as_dir" && as_dir=.
6836    for ac_exec_ext in '' $ac_executable_extensions; do
6837  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6838    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6839    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6840    break 2
6841  fi
6842done
6843  done
6844IFS=$as_save_IFS
6845
6846fi
6847fi
6848DSYMUTIL=$ac_cv_prog_DSYMUTIL
6849if test -n "$DSYMUTIL"; then
6850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6851$as_echo "$DSYMUTIL" >&6; }
6852else
6853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854$as_echo "no" >&6; }
6855fi
6856
6857
6858fi
6859if test -z "$ac_cv_prog_DSYMUTIL"; then
6860  ac_ct_DSYMUTIL=$DSYMUTIL
6861  # Extract the first word of "dsymutil", so it can be a program name with args.
6862set dummy dsymutil; ac_word=$2
6863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6864$as_echo_n "checking for $ac_word... " >&6; }
6865if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6866  $as_echo_n "(cached) " >&6
6867else
6868  if test -n "$ac_ct_DSYMUTIL"; then
6869  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6870else
6871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872for as_dir in $PATH
6873do
6874  IFS=$as_save_IFS
6875  test -z "$as_dir" && as_dir=.
6876    for ac_exec_ext in '' $ac_executable_extensions; do
6877  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6878    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6879    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6880    break 2
6881  fi
6882done
6883  done
6884IFS=$as_save_IFS
6885
6886fi
6887fi
6888ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6889if test -n "$ac_ct_DSYMUTIL"; then
6890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6891$as_echo "$ac_ct_DSYMUTIL" >&6; }
6892else
6893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6894$as_echo "no" >&6; }
6895fi
6896
6897  if test "x$ac_ct_DSYMUTIL" = x; then
6898    DSYMUTIL=":"
6899  else
6900    case $cross_compiling:$ac_tool_warned in
6901yes:)
6902{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6903$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6904ac_tool_warned=yes ;;
6905esac
6906    DSYMUTIL=$ac_ct_DSYMUTIL
6907  fi
6908else
6909  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6910fi
6911
6912    if test -n "$ac_tool_prefix"; then
6913  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6914set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916$as_echo_n "checking for $ac_word... " >&6; }
6917if ${ac_cv_prog_NMEDIT+:} false; then :
6918  $as_echo_n "(cached) " >&6
6919else
6920  if test -n "$NMEDIT"; then
6921  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6922else
6923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924for as_dir in $PATH
6925do
6926  IFS=$as_save_IFS
6927  test -z "$as_dir" && as_dir=.
6928    for ac_exec_ext in '' $ac_executable_extensions; do
6929  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6930    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6931    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6932    break 2
6933  fi
6934done
6935  done
6936IFS=$as_save_IFS
6937
6938fi
6939fi
6940NMEDIT=$ac_cv_prog_NMEDIT
6941if test -n "$NMEDIT"; then
6942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6943$as_echo "$NMEDIT" >&6; }
6944else
6945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946$as_echo "no" >&6; }
6947fi
6948
6949
6950fi
6951if test -z "$ac_cv_prog_NMEDIT"; then
6952  ac_ct_NMEDIT=$NMEDIT
6953  # Extract the first word of "nmedit", so it can be a program name with args.
6954set dummy nmedit; ac_word=$2
6955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6956$as_echo_n "checking for $ac_word... " >&6; }
6957if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6958  $as_echo_n "(cached) " >&6
6959else
6960  if test -n "$ac_ct_NMEDIT"; then
6961  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6962else
6963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964for as_dir in $PATH
6965do
6966  IFS=$as_save_IFS
6967  test -z "$as_dir" && as_dir=.
6968    for ac_exec_ext in '' $ac_executable_extensions; do
6969  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6970    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6971    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6972    break 2
6973  fi
6974done
6975  done
6976IFS=$as_save_IFS
6977
6978fi
6979fi
6980ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6981if test -n "$ac_ct_NMEDIT"; then
6982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6983$as_echo "$ac_ct_NMEDIT" >&6; }
6984else
6985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6986$as_echo "no" >&6; }
6987fi
6988
6989  if test "x$ac_ct_NMEDIT" = x; then
6990    NMEDIT=":"
6991  else
6992    case $cross_compiling:$ac_tool_warned in
6993yes:)
6994{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6995$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6996ac_tool_warned=yes ;;
6997esac
6998    NMEDIT=$ac_ct_NMEDIT
6999  fi
7000else
7001  NMEDIT="$ac_cv_prog_NMEDIT"
7002fi
7003
7004    if test -n "$ac_tool_prefix"; then
7005  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7006set dummy ${ac_tool_prefix}lipo; ac_word=$2
7007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7008$as_echo_n "checking for $ac_word... " >&6; }
7009if ${ac_cv_prog_LIPO+:} false; then :
7010  $as_echo_n "(cached) " >&6
7011else
7012  if test -n "$LIPO"; then
7013  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7014else
7015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016for as_dir in $PATH
7017do
7018  IFS=$as_save_IFS
7019  test -z "$as_dir" && as_dir=.
7020    for ac_exec_ext in '' $ac_executable_extensions; do
7021  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7022    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7023    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7024    break 2
7025  fi
7026done
7027  done
7028IFS=$as_save_IFS
7029
7030fi
7031fi
7032LIPO=$ac_cv_prog_LIPO
7033if test -n "$LIPO"; then
7034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7035$as_echo "$LIPO" >&6; }
7036else
7037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7038$as_echo "no" >&6; }
7039fi
7040
7041
7042fi
7043if test -z "$ac_cv_prog_LIPO"; then
7044  ac_ct_LIPO=$LIPO
7045  # Extract the first word of "lipo", so it can be a program name with args.
7046set dummy lipo; ac_word=$2
7047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7048$as_echo_n "checking for $ac_word... " >&6; }
7049if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7050  $as_echo_n "(cached) " >&6
7051else
7052  if test -n "$ac_ct_LIPO"; then
7053  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7054else
7055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056for as_dir in $PATH
7057do
7058  IFS=$as_save_IFS
7059  test -z "$as_dir" && as_dir=.
7060    for ac_exec_ext in '' $ac_executable_extensions; do
7061  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7062    ac_cv_prog_ac_ct_LIPO="lipo"
7063    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7064    break 2
7065  fi
7066done
7067  done
7068IFS=$as_save_IFS
7069
7070fi
7071fi
7072ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7073if test -n "$ac_ct_LIPO"; then
7074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7075$as_echo "$ac_ct_LIPO" >&6; }
7076else
7077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7078$as_echo "no" >&6; }
7079fi
7080
7081  if test "x$ac_ct_LIPO" = x; then
7082    LIPO=":"
7083  else
7084    case $cross_compiling:$ac_tool_warned in
7085yes:)
7086{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7087$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7088ac_tool_warned=yes ;;
7089esac
7090    LIPO=$ac_ct_LIPO
7091  fi
7092else
7093  LIPO="$ac_cv_prog_LIPO"
7094fi
7095
7096    if test -n "$ac_tool_prefix"; then
7097  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7098set dummy ${ac_tool_prefix}otool; ac_word=$2
7099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7100$as_echo_n "checking for $ac_word... " >&6; }
7101if ${ac_cv_prog_OTOOL+:} false; then :
7102  $as_echo_n "(cached) " >&6
7103else
7104  if test -n "$OTOOL"; then
7105  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7106else
7107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108for as_dir in $PATH
7109do
7110  IFS=$as_save_IFS
7111  test -z "$as_dir" && as_dir=.
7112    for ac_exec_ext in '' $ac_executable_extensions; do
7113  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7114    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7115    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7116    break 2
7117  fi
7118done
7119  done
7120IFS=$as_save_IFS
7121
7122fi
7123fi
7124OTOOL=$ac_cv_prog_OTOOL
7125if test -n "$OTOOL"; then
7126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7127$as_echo "$OTOOL" >&6; }
7128else
7129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7130$as_echo "no" >&6; }
7131fi
7132
7133
7134fi
7135if test -z "$ac_cv_prog_OTOOL"; then
7136  ac_ct_OTOOL=$OTOOL
7137  # Extract the first word of "otool", so it can be a program name with args.
7138set dummy otool; ac_word=$2
7139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7140$as_echo_n "checking for $ac_word... " >&6; }
7141if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7142  $as_echo_n "(cached) " >&6
7143else
7144  if test -n "$ac_ct_OTOOL"; then
7145  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7146else
7147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148for as_dir in $PATH
7149do
7150  IFS=$as_save_IFS
7151  test -z "$as_dir" && as_dir=.
7152    for ac_exec_ext in '' $ac_executable_extensions; do
7153  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7154    ac_cv_prog_ac_ct_OTOOL="otool"
7155    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7156    break 2
7157  fi
7158done
7159  done
7160IFS=$as_save_IFS
7161
7162fi
7163fi
7164ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7165if test -n "$ac_ct_OTOOL"; then
7166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7167$as_echo "$ac_ct_OTOOL" >&6; }
7168else
7169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7170$as_echo "no" >&6; }
7171fi
7172
7173  if test "x$ac_ct_OTOOL" = x; then
7174    OTOOL=":"
7175  else
7176    case $cross_compiling:$ac_tool_warned in
7177yes:)
7178{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7180ac_tool_warned=yes ;;
7181esac
7182    OTOOL=$ac_ct_OTOOL
7183  fi
7184else
7185  OTOOL="$ac_cv_prog_OTOOL"
7186fi
7187
7188    if test -n "$ac_tool_prefix"; then
7189  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7190set dummy ${ac_tool_prefix}otool64; ac_word=$2
7191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7192$as_echo_n "checking for $ac_word... " >&6; }
7193if ${ac_cv_prog_OTOOL64+:} false; then :
7194  $as_echo_n "(cached) " >&6
7195else
7196  if test -n "$OTOOL64"; then
7197  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7198else
7199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200for as_dir in $PATH
7201do
7202  IFS=$as_save_IFS
7203  test -z "$as_dir" && as_dir=.
7204    for ac_exec_ext in '' $ac_executable_extensions; do
7205  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7206    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7207    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7208    break 2
7209  fi
7210done
7211  done
7212IFS=$as_save_IFS
7213
7214fi
7215fi
7216OTOOL64=$ac_cv_prog_OTOOL64
7217if test -n "$OTOOL64"; then
7218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7219$as_echo "$OTOOL64" >&6; }
7220else
7221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7222$as_echo "no" >&6; }
7223fi
7224
7225
7226fi
7227if test -z "$ac_cv_prog_OTOOL64"; then
7228  ac_ct_OTOOL64=$OTOOL64
7229  # Extract the first word of "otool64", so it can be a program name with args.
7230set dummy otool64; ac_word=$2
7231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7232$as_echo_n "checking for $ac_word... " >&6; }
7233if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7234  $as_echo_n "(cached) " >&6
7235else
7236  if test -n "$ac_ct_OTOOL64"; then
7237  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7238else
7239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240for as_dir in $PATH
7241do
7242  IFS=$as_save_IFS
7243  test -z "$as_dir" && as_dir=.
7244    for ac_exec_ext in '' $ac_executable_extensions; do
7245  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7246    ac_cv_prog_ac_ct_OTOOL64="otool64"
7247    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7248    break 2
7249  fi
7250done
7251  done
7252IFS=$as_save_IFS
7253
7254fi
7255fi
7256ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7257if test -n "$ac_ct_OTOOL64"; then
7258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7259$as_echo "$ac_ct_OTOOL64" >&6; }
7260else
7261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7262$as_echo "no" >&6; }
7263fi
7264
7265  if test "x$ac_ct_OTOOL64" = x; then
7266    OTOOL64=":"
7267  else
7268    case $cross_compiling:$ac_tool_warned in
7269yes:)
7270{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7271$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7272ac_tool_warned=yes ;;
7273esac
7274    OTOOL64=$ac_ct_OTOOL64
7275  fi
7276else
7277  OTOOL64="$ac_cv_prog_OTOOL64"
7278fi
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7307$as_echo_n "checking for -single_module linker flag... " >&6; }
7308if ${lt_cv_apple_cc_single_mod+:} false; then :
7309  $as_echo_n "(cached) " >&6
7310else
7311  lt_cv_apple_cc_single_mod=no
7312      if test -z "$LT_MULTI_MODULE"; then
7313	# By default we will add the -single_module flag. You can override
7314	# by either setting the environment variable LT_MULTI_MODULE
7315	# non-empty at configure time, or by adding -multi_module to the
7316	# link flags.
7317	rm -rf libconftest.dylib*
7318	echo "int foo(void){return 1;}" > conftest.c
7319	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7320-dynamiclib -Wl,-single_module conftest.c" >&5
7321	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7322	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7323        _lt_result=$?
7324	# If there is a non-empty error log, and "single_module"
7325	# appears in it, assume the flag caused a linker warning
7326        if test -s conftest.err && $GREP single_module conftest.err; then
7327	  cat conftest.err >&5
7328	# Otherwise, if the output was created with a 0 exit code from
7329	# the compiler, it worked.
7330	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7331	  lt_cv_apple_cc_single_mod=yes
7332	else
7333	  cat conftest.err >&5
7334	fi
7335	rm -rf libconftest.dylib*
7336	rm -f conftest.*
7337      fi
7338fi
7339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7340$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7341
7342    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7343$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7344if ${lt_cv_ld_exported_symbols_list+:} false; then :
7345  $as_echo_n "(cached) " >&6
7346else
7347  lt_cv_ld_exported_symbols_list=no
7348      save_LDFLAGS=$LDFLAGS
7349      echo "_main" > conftest.sym
7350      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7351      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7352/* end confdefs.h.  */
7353
7354int
7355main ()
7356{
7357
7358  ;
7359  return 0;
7360}
7361_ACEOF
7362if ac_fn_c_try_link "$LINENO"; then :
7363  lt_cv_ld_exported_symbols_list=yes
7364else
7365  lt_cv_ld_exported_symbols_list=no
7366fi
7367rm -f core conftest.err conftest.$ac_objext \
7368    conftest$ac_exeext conftest.$ac_ext
7369	LDFLAGS=$save_LDFLAGS
7370
7371fi
7372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7373$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7374
7375    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7376$as_echo_n "checking for -force_load linker flag... " >&6; }
7377if ${lt_cv_ld_force_load+:} false; then :
7378  $as_echo_n "(cached) " >&6
7379else
7380  lt_cv_ld_force_load=no
7381      cat > conftest.c << _LT_EOF
7382int forced_loaded() { return 2;}
7383_LT_EOF
7384      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7385      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7386      echo "$AR cru libconftest.a conftest.o" >&5
7387      $AR cru libconftest.a conftest.o 2>&5
7388      echo "$RANLIB libconftest.a" >&5
7389      $RANLIB libconftest.a 2>&5
7390      cat > conftest.c << _LT_EOF
7391int main() { return 0;}
7392_LT_EOF
7393      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7394      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7395      _lt_result=$?
7396      if test -s conftest.err && $GREP force_load conftest.err; then
7397	cat conftest.err >&5
7398      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7399	lt_cv_ld_force_load=yes
7400      else
7401	cat conftest.err >&5
7402      fi
7403        rm -f conftest.err libconftest.a conftest conftest.c
7404        rm -rf conftest.dSYM
7405
7406fi
7407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7408$as_echo "$lt_cv_ld_force_load" >&6; }
7409    case $host_os in
7410    rhapsody* | darwin1.[012])
7411      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7412    darwin1.*)
7413      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7414    darwin*) # darwin 5.x on
7415      # if running on 10.5 or later, the deployment target defaults
7416      # to the OS version, if on x86, and 10.4, the deployment
7417      # target defaults to 10.4. Don't you love it?
7418      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7419	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7420	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7421	10.[012][,.]*)
7422	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7423	10.*)
7424	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7425      esac
7426    ;;
7427  esac
7428    if test yes = "$lt_cv_apple_cc_single_mod"; then
7429      _lt_dar_single_mod='$single_module'
7430    fi
7431    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7432      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7433    else
7434      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7435    fi
7436    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7437      _lt_dsymutil='~$DSYMUTIL $lib || :'
7438    else
7439      _lt_dsymutil=
7440    fi
7441    ;;
7442  esac
7443
7444# func_munge_path_list VARIABLE PATH
7445# -----------------------------------
7446# VARIABLE is name of variable containing _space_ separated list of
7447# directories to be munged by the contents of PATH, which is string
7448# having a format:
7449# "DIR[:DIR]:"
7450#       string "DIR[ DIR]" will be prepended to VARIABLE
7451# ":DIR[:DIR]"
7452#       string "DIR[ DIR]" will be appended to VARIABLE
7453# "DIRP[:DIRP]::[DIRA:]DIRA"
7454#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7455#       "DIRA[ DIRA]" will be appended to VARIABLE
7456# "DIR[:DIR]"
7457#       VARIABLE will be replaced by "DIR[ DIR]"
7458func_munge_path_list ()
7459{
7460    case x$2 in
7461    x)
7462        ;;
7463    *:)
7464        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7465        ;;
7466    x:*)
7467        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7468        ;;
7469    *::*)
7470        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7471        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7472        ;;
7473    *)
7474        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7475        ;;
7476    esac
7477}
7478
7479ac_ext=c
7480ac_cpp='$CPP $CPPFLAGS'
7481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7483ac_compiler_gnu=$ac_cv_c_compiler_gnu
7484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7485$as_echo_n "checking how to run the C preprocessor... " >&6; }
7486# On Suns, sometimes $CPP names a directory.
7487if test -n "$CPP" && test -d "$CPP"; then
7488  CPP=
7489fi
7490if test -z "$CPP"; then
7491  if ${ac_cv_prog_CPP+:} false; then :
7492  $as_echo_n "(cached) " >&6
7493else
7494      # Double quotes because CPP needs to be expanded
7495    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7496    do
7497      ac_preproc_ok=false
7498for ac_c_preproc_warn_flag in '' yes
7499do
7500  # Use a header file that comes with gcc, so configuring glibc
7501  # with a fresh cross-compiler works.
7502  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7503  # <limits.h> exists even on freestanding compilers.
7504  # On the NeXT, cc -E runs the code through the compiler's parser,
7505  # not just through cpp. "Syntax error" is here to catch this case.
7506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7507/* end confdefs.h.  */
7508#ifdef __STDC__
7509# include <limits.h>
7510#else
7511# include <assert.h>
7512#endif
7513		     Syntax error
7514_ACEOF
7515if ac_fn_c_try_cpp "$LINENO"; then :
7516
7517else
7518  # Broken: fails on valid input.
7519continue
7520fi
7521rm -f conftest.err conftest.i conftest.$ac_ext
7522
7523  # OK, works on sane cases.  Now check whether nonexistent headers
7524  # can be detected and how.
7525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7526/* end confdefs.h.  */
7527#include <ac_nonexistent.h>
7528_ACEOF
7529if ac_fn_c_try_cpp "$LINENO"; then :
7530  # Broken: success on invalid input.
7531continue
7532else
7533  # Passes both tests.
7534ac_preproc_ok=:
7535break
7536fi
7537rm -f conftest.err conftest.i conftest.$ac_ext
7538
7539done
7540# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7541rm -f conftest.i conftest.err conftest.$ac_ext
7542if $ac_preproc_ok; then :
7543  break
7544fi
7545
7546    done
7547    ac_cv_prog_CPP=$CPP
7548
7549fi
7550  CPP=$ac_cv_prog_CPP
7551else
7552  ac_cv_prog_CPP=$CPP
7553fi
7554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7555$as_echo "$CPP" >&6; }
7556ac_preproc_ok=false
7557for ac_c_preproc_warn_flag in '' yes
7558do
7559  # Use a header file that comes with gcc, so configuring glibc
7560  # with a fresh cross-compiler works.
7561  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7562  # <limits.h> exists even on freestanding compilers.
7563  # On the NeXT, cc -E runs the code through the compiler's parser,
7564  # not just through cpp. "Syntax error" is here to catch this case.
7565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7566/* end confdefs.h.  */
7567#ifdef __STDC__
7568# include <limits.h>
7569#else
7570# include <assert.h>
7571#endif
7572		     Syntax error
7573_ACEOF
7574if ac_fn_c_try_cpp "$LINENO"; then :
7575
7576else
7577  # Broken: fails on valid input.
7578continue
7579fi
7580rm -f conftest.err conftest.i conftest.$ac_ext
7581
7582  # OK, works on sane cases.  Now check whether nonexistent headers
7583  # can be detected and how.
7584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7585/* end confdefs.h.  */
7586#include <ac_nonexistent.h>
7587_ACEOF
7588if ac_fn_c_try_cpp "$LINENO"; then :
7589  # Broken: success on invalid input.
7590continue
7591else
7592  # Passes both tests.
7593ac_preproc_ok=:
7594break
7595fi
7596rm -f conftest.err conftest.i conftest.$ac_ext
7597
7598done
7599# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7600rm -f conftest.i conftest.err conftest.$ac_ext
7601if $ac_preproc_ok; then :
7602
7603else
7604  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7605$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7606as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7607See \`config.log' for more details" "$LINENO" 5; }
7608fi
7609
7610ac_ext=c
7611ac_cpp='$CPP $CPPFLAGS'
7612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7614ac_compiler_gnu=$ac_cv_c_compiler_gnu
7615
7616
7617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7618$as_echo_n "checking for ANSI C header files... " >&6; }
7619if ${ac_cv_header_stdc+:} false; then :
7620  $as_echo_n "(cached) " >&6
7621else
7622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7623/* end confdefs.h.  */
7624#include <stdlib.h>
7625#include <stdarg.h>
7626#include <string.h>
7627#include <float.h>
7628
7629int
7630main ()
7631{
7632
7633  ;
7634  return 0;
7635}
7636_ACEOF
7637if ac_fn_c_try_compile "$LINENO"; then :
7638  ac_cv_header_stdc=yes
7639else
7640  ac_cv_header_stdc=no
7641fi
7642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7643
7644if test $ac_cv_header_stdc = yes; then
7645  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7647/* end confdefs.h.  */
7648#include <string.h>
7649
7650_ACEOF
7651if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7652  $EGREP "memchr" >/dev/null 2>&1; then :
7653
7654else
7655  ac_cv_header_stdc=no
7656fi
7657rm -f conftest*
7658
7659fi
7660
7661if test $ac_cv_header_stdc = yes; then
7662  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7664/* end confdefs.h.  */
7665#include <stdlib.h>
7666
7667_ACEOF
7668if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7669  $EGREP "free" >/dev/null 2>&1; then :
7670
7671else
7672  ac_cv_header_stdc=no
7673fi
7674rm -f conftest*
7675
7676fi
7677
7678if test $ac_cv_header_stdc = yes; then
7679  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7680  if test "$cross_compiling" = yes; then :
7681  :
7682else
7683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7684/* end confdefs.h.  */
7685#include <ctype.h>
7686#include <stdlib.h>
7687#if ((' ' & 0x0FF) == 0x020)
7688# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7689# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7690#else
7691# define ISLOWER(c) \
7692		   (('a' <= (c) && (c) <= 'i') \
7693		     || ('j' <= (c) && (c) <= 'r') \
7694		     || ('s' <= (c) && (c) <= 'z'))
7695# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7696#endif
7697
7698#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7699int
7700main ()
7701{
7702  int i;
7703  for (i = 0; i < 256; i++)
7704    if (XOR (islower (i), ISLOWER (i))
7705	|| toupper (i) != TOUPPER (i))
7706      return 2;
7707  return 0;
7708}
7709_ACEOF
7710if ac_fn_c_try_run "$LINENO"; then :
7711
7712else
7713  ac_cv_header_stdc=no
7714fi
7715rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7716  conftest.$ac_objext conftest.beam conftest.$ac_ext
7717fi
7718
7719fi
7720fi
7721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7722$as_echo "$ac_cv_header_stdc" >&6; }
7723if test $ac_cv_header_stdc = yes; then
7724
7725$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7726
7727fi
7728
7729# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7730for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7731		  inttypes.h stdint.h unistd.h
7732do :
7733  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7734ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7735"
7736if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7737  cat >>confdefs.h <<_ACEOF
7738#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7739_ACEOF
7740
7741fi
7742
7743done
7744
7745
7746for ac_header in dlfcn.h
7747do :
7748  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7749"
7750if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7751  cat >>confdefs.h <<_ACEOF
7752#define HAVE_DLFCN_H 1
7753_ACEOF
7754
7755fi
7756
7757done
7758
7759
7760
7761
7762
7763# Set options
7764
7765
7766
7767        enable_dlopen=no
7768
7769
7770  enable_win32_dll=no
7771
7772
7773            # Check whether --enable-shared was given.
7774if test "${enable_shared+set}" = set; then :
7775  enableval=$enable_shared; p=${PACKAGE-default}
7776    case $enableval in
7777    yes) enable_shared=yes ;;
7778    no) enable_shared=no ;;
7779    *)
7780      enable_shared=no
7781      # Look at the argument we got.  We use all the common list separators.
7782      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7783      for pkg in $enableval; do
7784	IFS=$lt_save_ifs
7785	if test "X$pkg" = "X$p"; then
7786	  enable_shared=yes
7787	fi
7788      done
7789      IFS=$lt_save_ifs
7790      ;;
7791    esac
7792else
7793  enable_shared=yes
7794fi
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804  # Check whether --enable-static was given.
7805if test "${enable_static+set}" = set; then :
7806  enableval=$enable_static; p=${PACKAGE-default}
7807    case $enableval in
7808    yes) enable_static=yes ;;
7809    no) enable_static=no ;;
7810    *)
7811     enable_static=no
7812      # Look at the argument we got.  We use all the common list separators.
7813      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7814      for pkg in $enableval; do
7815	IFS=$lt_save_ifs
7816	if test "X$pkg" = "X$p"; then
7817	  enable_static=yes
7818	fi
7819      done
7820      IFS=$lt_save_ifs
7821      ;;
7822    esac
7823else
7824  enable_static=yes
7825fi
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836# Check whether --with-pic was given.
7837if test "${with_pic+set}" = set; then :
7838  withval=$with_pic; lt_p=${PACKAGE-default}
7839    case $withval in
7840    yes|no) pic_mode=$withval ;;
7841    *)
7842      pic_mode=default
7843      # Look at the argument we got.  We use all the common list separators.
7844      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7845      for lt_pkg in $withval; do
7846	IFS=$lt_save_ifs
7847	if test "X$lt_pkg" = "X$lt_p"; then
7848	  pic_mode=yes
7849	fi
7850      done
7851      IFS=$lt_save_ifs
7852      ;;
7853    esac
7854else
7855  pic_mode=default
7856fi
7857
7858
7859
7860
7861
7862
7863
7864
7865  # Check whether --enable-fast-install was given.
7866if test "${enable_fast_install+set}" = set; then :
7867  enableval=$enable_fast_install; p=${PACKAGE-default}
7868    case $enableval in
7869    yes) enable_fast_install=yes ;;
7870    no) enable_fast_install=no ;;
7871    *)
7872      enable_fast_install=no
7873      # Look at the argument we got.  We use all the common list separators.
7874      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7875      for pkg in $enableval; do
7876	IFS=$lt_save_ifs
7877	if test "X$pkg" = "X$p"; then
7878	  enable_fast_install=yes
7879	fi
7880      done
7881      IFS=$lt_save_ifs
7882      ;;
7883    esac
7884else
7885  enable_fast_install=yes
7886fi
7887
7888
7889
7890
7891
7892
7893
7894
7895  shared_archive_member_spec=
7896case $host,$enable_shared in
7897power*-*-aix[5-9]*,yes)
7898  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7899$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7900
7901# Check whether --with-aix-soname was given.
7902if test "${with_aix_soname+set}" = set; then :
7903  withval=$with_aix_soname; case $withval in
7904    aix|svr4|both)
7905      ;;
7906    *)
7907      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7908      ;;
7909    esac
7910    lt_cv_with_aix_soname=$with_aix_soname
7911else
7912  if ${lt_cv_with_aix_soname+:} false; then :
7913  $as_echo_n "(cached) " >&6
7914else
7915  lt_cv_with_aix_soname=aix
7916fi
7917
7918    with_aix_soname=$lt_cv_with_aix_soname
7919fi
7920
7921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7922$as_echo "$with_aix_soname" >&6; }
7923  if test aix != "$with_aix_soname"; then
7924    # For the AIX way of multilib, we name the shared archive member
7925    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7926    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7927    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7928    # the AIX toolchain works better with OBJECT_MODE set (default 32).
7929    if test 64 = "${OBJECT_MODE-32}"; then
7930      shared_archive_member_spec=shr_64
7931    else
7932      shared_archive_member_spec=shr
7933    fi
7934  fi
7935  ;;
7936*)
7937  with_aix_soname=aix
7938  ;;
7939esac
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950# This can be used to rebuild libtool when needed
7951LIBTOOL_DEPS=$ltmain
7952
7953# Always use our own libtool.
7954LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985test -z "$LN_S" && LN_S="ln -s"
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000if test -n "${ZSH_VERSION+set}"; then
8001   setopt NO_GLOB_SUBST
8002fi
8003
8004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8005$as_echo_n "checking for objdir... " >&6; }
8006if ${lt_cv_objdir+:} false; then :
8007  $as_echo_n "(cached) " >&6
8008else
8009  rm -f .libs 2>/dev/null
8010mkdir .libs 2>/dev/null
8011if test -d .libs; then
8012  lt_cv_objdir=.libs
8013else
8014  # MS-DOS does not allow filenames that begin with a dot.
8015  lt_cv_objdir=_libs
8016fi
8017rmdir .libs 2>/dev/null
8018fi
8019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8020$as_echo "$lt_cv_objdir" >&6; }
8021objdir=$lt_cv_objdir
8022
8023
8024
8025
8026
8027cat >>confdefs.h <<_ACEOF
8028#define LT_OBJDIR "$lt_cv_objdir/"
8029_ACEOF
8030
8031
8032
8033
8034case $host_os in
8035aix3*)
8036  # AIX sometimes has problems with the GCC collect2 program.  For some
8037  # reason, if we set the COLLECT_NAMES environment variable, the problems
8038  # vanish in a puff of smoke.
8039  if test set != "${COLLECT_NAMES+set}"; then
8040    COLLECT_NAMES=
8041    export COLLECT_NAMES
8042  fi
8043  ;;
8044esac
8045
8046# Global variables:
8047ofile=libtool
8048can_build_shared=yes
8049
8050# All known linkers require a '.a' archive for static linking (except MSVC,
8051# which needs '.lib').
8052libext=a
8053
8054with_gnu_ld=$lt_cv_prog_gnu_ld
8055
8056old_CC=$CC
8057old_CFLAGS=$CFLAGS
8058
8059# Set sane defaults for various variables
8060test -z "$CC" && CC=cc
8061test -z "$LTCC" && LTCC=$CC
8062test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8063test -z "$LD" && LD=ld
8064test -z "$ac_objext" && ac_objext=o
8065
8066func_cc_basename $compiler
8067cc_basename=$func_cc_basename_result
8068
8069
8070# Only perform the check for file, if the check method requires it
8071test -z "$MAGIC_CMD" && MAGIC_CMD=file
8072case $deplibs_check_method in
8073file_magic*)
8074  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8075    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8076$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8077if ${lt_cv_path_MAGIC_CMD+:} false; then :
8078  $as_echo_n "(cached) " >&6
8079else
8080  case $MAGIC_CMD in
8081[\\/*] |  ?:[\\/]*)
8082  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8083  ;;
8084*)
8085  lt_save_MAGIC_CMD=$MAGIC_CMD
8086  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8087  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8088  for ac_dir in $ac_dummy; do
8089    IFS=$lt_save_ifs
8090    test -z "$ac_dir" && ac_dir=.
8091    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8092      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8093      if test -n "$file_magic_test_file"; then
8094	case $deplibs_check_method in
8095	"file_magic "*)
8096	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8097	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8098	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8099	    $EGREP "$file_magic_regex" > /dev/null; then
8100	    :
8101	  else
8102	    cat <<_LT_EOF 1>&2
8103
8104*** Warning: the command libtool uses to detect shared libraries,
8105*** $file_magic_cmd, produces output that libtool cannot recognize.
8106*** The result is that libtool may fail to recognize shared libraries
8107*** as such.  This will affect the creation of libtool libraries that
8108*** depend on shared libraries, but programs linked with such libtool
8109*** libraries will work regardless of this problem.  Nevertheless, you
8110*** may want to report the problem to your system manager and/or to
8111*** bug-libtool@gnu.org
8112
8113_LT_EOF
8114	  fi ;;
8115	esac
8116      fi
8117      break
8118    fi
8119  done
8120  IFS=$lt_save_ifs
8121  MAGIC_CMD=$lt_save_MAGIC_CMD
8122  ;;
8123esac
8124fi
8125
8126MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8127if test -n "$MAGIC_CMD"; then
8128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8129$as_echo "$MAGIC_CMD" >&6; }
8130else
8131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8132$as_echo "no" >&6; }
8133fi
8134
8135
8136
8137
8138
8139if test -z "$lt_cv_path_MAGIC_CMD"; then
8140  if test -n "$ac_tool_prefix"; then
8141    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8142$as_echo_n "checking for file... " >&6; }
8143if ${lt_cv_path_MAGIC_CMD+:} false; then :
8144  $as_echo_n "(cached) " >&6
8145else
8146  case $MAGIC_CMD in
8147[\\/*] |  ?:[\\/]*)
8148  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8149  ;;
8150*)
8151  lt_save_MAGIC_CMD=$MAGIC_CMD
8152  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8153  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8154  for ac_dir in $ac_dummy; do
8155    IFS=$lt_save_ifs
8156    test -z "$ac_dir" && ac_dir=.
8157    if test -f "$ac_dir/file"; then
8158      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8159      if test -n "$file_magic_test_file"; then
8160	case $deplibs_check_method in
8161	"file_magic "*)
8162	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8163	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8164	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8165	    $EGREP "$file_magic_regex" > /dev/null; then
8166	    :
8167	  else
8168	    cat <<_LT_EOF 1>&2
8169
8170*** Warning: the command libtool uses to detect shared libraries,
8171*** $file_magic_cmd, produces output that libtool cannot recognize.
8172*** The result is that libtool may fail to recognize shared libraries
8173*** as such.  This will affect the creation of libtool libraries that
8174*** depend on shared libraries, but programs linked with such libtool
8175*** libraries will work regardless of this problem.  Nevertheless, you
8176*** may want to report the problem to your system manager and/or to
8177*** bug-libtool@gnu.org
8178
8179_LT_EOF
8180	  fi ;;
8181	esac
8182      fi
8183      break
8184    fi
8185  done
8186  IFS=$lt_save_ifs
8187  MAGIC_CMD=$lt_save_MAGIC_CMD
8188  ;;
8189esac
8190fi
8191
8192MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8193if test -n "$MAGIC_CMD"; then
8194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8195$as_echo "$MAGIC_CMD" >&6; }
8196else
8197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8198$as_echo "no" >&6; }
8199fi
8200
8201
8202  else
8203    MAGIC_CMD=:
8204  fi
8205fi
8206
8207  fi
8208  ;;
8209esac
8210
8211# Use C for the default configuration in the libtool script
8212
8213lt_save_CC=$CC
8214ac_ext=c
8215ac_cpp='$CPP $CPPFLAGS'
8216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8218ac_compiler_gnu=$ac_cv_c_compiler_gnu
8219
8220
8221# Source file extension for C test sources.
8222ac_ext=c
8223
8224# Object file extension for compiled C test sources.
8225objext=o
8226objext=$objext
8227
8228# Code to be used in simple compile tests
8229lt_simple_compile_test_code="int some_variable = 0;"
8230
8231# Code to be used in simple link tests
8232lt_simple_link_test_code='int main(){return(0);}'
8233
8234
8235
8236
8237
8238
8239
8240# If no C compiler was specified, use CC.
8241LTCC=${LTCC-"$CC"}
8242
8243# If no C compiler flags were specified, use CFLAGS.
8244LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8245
8246# Allow CC to be a program name with arguments.
8247compiler=$CC
8248
8249# Save the default compiler, since it gets overwritten when the other
8250# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8251compiler_DEFAULT=$CC
8252
8253# save warnings/boilerplate of simple test code
8254ac_outfile=conftest.$ac_objext
8255echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8256eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8257_lt_compiler_boilerplate=`cat conftest.err`
8258$RM conftest*
8259
8260ac_outfile=conftest.$ac_objext
8261echo "$lt_simple_link_test_code" >conftest.$ac_ext
8262eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8263_lt_linker_boilerplate=`cat conftest.err`
8264$RM -r conftest*
8265
8266
8267if test -n "$compiler"; then
8268
8269lt_prog_compiler_no_builtin_flag=
8270
8271if test yes = "$GCC"; then
8272  case $cc_basename in
8273  nvcc*)
8274    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8275  *)
8276    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8277  esac
8278
8279  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8280$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8281if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8282  $as_echo_n "(cached) " >&6
8283else
8284  lt_cv_prog_compiler_rtti_exceptions=no
8285   ac_outfile=conftest.$ac_objext
8286   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8287   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8288   # Insert the option either (1) after the last *FLAGS variable, or
8289   # (2) before a word containing "conftest.", or (3) at the end.
8290   # Note that $ac_compile itself does not contain backslashes and begins
8291   # with a dollar sign (not a hyphen), so the echo should work correctly.
8292   # The option is referenced via a variable to avoid confusing sed.
8293   lt_compile=`echo "$ac_compile" | $SED \
8294   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8295   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8296   -e 's:$: $lt_compiler_flag:'`
8297   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8298   (eval "$lt_compile" 2>conftest.err)
8299   ac_status=$?
8300   cat conftest.err >&5
8301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302   if (exit $ac_status) && test -s "$ac_outfile"; then
8303     # The compiler can only warn and ignore the option if not recognized
8304     # So say no if there are warnings other than the usual output.
8305     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8306     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8307     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8308       lt_cv_prog_compiler_rtti_exceptions=yes
8309     fi
8310   fi
8311   $RM conftest*
8312
8313fi
8314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8315$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8316
8317if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8318    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8319else
8320    :
8321fi
8322
8323fi
8324
8325
8326
8327
8328
8329
8330  lt_prog_compiler_wl=
8331lt_prog_compiler_pic=
8332lt_prog_compiler_static=
8333
8334
8335  if test yes = "$GCC"; then
8336    lt_prog_compiler_wl='-Wl,'
8337    lt_prog_compiler_static='-static'
8338
8339    case $host_os in
8340      aix*)
8341      # All AIX code is PIC.
8342      if test ia64 = "$host_cpu"; then
8343	# AIX 5 now supports IA64 processor
8344	lt_prog_compiler_static='-Bstatic'
8345      fi
8346      lt_prog_compiler_pic='-fPIC'
8347      ;;
8348
8349    amigaos*)
8350      case $host_cpu in
8351      powerpc)
8352            # see comment about AmigaOS4 .so support
8353            lt_prog_compiler_pic='-fPIC'
8354        ;;
8355      m68k)
8356            # FIXME: we need at least 68020 code to build shared libraries, but
8357            # adding the '-m68020' flag to GCC prevents building anything better,
8358            # like '-m68040'.
8359            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8360        ;;
8361      esac
8362      ;;
8363
8364    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8365      # PIC is the default for these OSes.
8366      ;;
8367
8368    mingw* | cygwin* | pw32* | os2* | cegcc*)
8369      # This hack is so that the source file can tell whether it is being
8370      # built for inclusion in a dll (and should export symbols for example).
8371      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8372      # (--disable-auto-import) libraries
8373      lt_prog_compiler_pic='-DDLL_EXPORT'
8374      case $host_os in
8375      os2*)
8376	lt_prog_compiler_static='$wl-static'
8377	;;
8378      esac
8379      ;;
8380
8381    darwin* | rhapsody*)
8382      # PIC is the default on this platform
8383      # Common symbols not allowed in MH_DYLIB files
8384      lt_prog_compiler_pic='-fno-common'
8385      ;;
8386
8387    haiku*)
8388      # PIC is the default for Haiku.
8389      # The "-static" flag exists, but is broken.
8390      lt_prog_compiler_static=
8391      ;;
8392
8393    hpux*)
8394      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8395      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8396      # sets the default TLS model and affects inlining.
8397      case $host_cpu in
8398      hppa*64*)
8399	# +Z the default
8400	;;
8401      *)
8402	lt_prog_compiler_pic='-fPIC'
8403	;;
8404      esac
8405      ;;
8406
8407    interix[3-9]*)
8408      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8409      # Instead, we relocate shared libraries at runtime.
8410      ;;
8411
8412    msdosdjgpp*)
8413      # Just because we use GCC doesn't mean we suddenly get shared libraries
8414      # on systems that don't support them.
8415      lt_prog_compiler_can_build_shared=no
8416      enable_shared=no
8417      ;;
8418
8419    *nto* | *qnx*)
8420      # QNX uses GNU C++, but need to define -shared option too, otherwise
8421      # it will coredump.
8422      lt_prog_compiler_pic='-fPIC -shared'
8423      ;;
8424
8425    sysv4*MP*)
8426      if test -d /usr/nec; then
8427	lt_prog_compiler_pic=-Kconform_pic
8428      fi
8429      ;;
8430
8431    *)
8432      lt_prog_compiler_pic='-fPIC'
8433      ;;
8434    esac
8435
8436    case $cc_basename in
8437    nvcc*) # Cuda Compiler Driver 2.2
8438      lt_prog_compiler_wl='-Xlinker '
8439      if test -n "$lt_prog_compiler_pic"; then
8440        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8441      fi
8442      ;;
8443    esac
8444  else
8445    # PORTME Check for flag to pass linker flags through the system compiler.
8446    case $host_os in
8447    aix*)
8448      lt_prog_compiler_wl='-Wl,'
8449      if test ia64 = "$host_cpu"; then
8450	# AIX 5 now supports IA64 processor
8451	lt_prog_compiler_static='-Bstatic'
8452      else
8453	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8454      fi
8455      ;;
8456
8457    darwin* | rhapsody*)
8458      # PIC is the default on this platform
8459      # Common symbols not allowed in MH_DYLIB files
8460      lt_prog_compiler_pic='-fno-common'
8461      case $cc_basename in
8462      nagfor*)
8463        # NAG Fortran compiler
8464        lt_prog_compiler_wl='-Wl,-Wl,,'
8465        lt_prog_compiler_pic='-PIC'
8466        lt_prog_compiler_static='-Bstatic'
8467        ;;
8468      esac
8469      ;;
8470
8471    mingw* | cygwin* | pw32* | os2* | cegcc*)
8472      # This hack is so that the source file can tell whether it is being
8473      # built for inclusion in a dll (and should export symbols for example).
8474      lt_prog_compiler_pic='-DDLL_EXPORT'
8475      case $host_os in
8476      os2*)
8477	lt_prog_compiler_static='$wl-static'
8478	;;
8479      esac
8480      ;;
8481
8482    hpux9* | hpux10* | hpux11*)
8483      lt_prog_compiler_wl='-Wl,'
8484      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8485      # not for PA HP-UX.
8486      case $host_cpu in
8487      hppa*64*|ia64*)
8488	# +Z the default
8489	;;
8490      *)
8491	lt_prog_compiler_pic='+Z'
8492	;;
8493      esac
8494      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8495      lt_prog_compiler_static='$wl-a ${wl}archive'
8496      ;;
8497
8498    irix5* | irix6* | nonstopux*)
8499      lt_prog_compiler_wl='-Wl,'
8500      # PIC (with -KPIC) is the default.
8501      lt_prog_compiler_static='-non_shared'
8502      ;;
8503
8504    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8505      case $cc_basename in
8506      # old Intel for x86_64, which still supported -KPIC.
8507      ecc*)
8508	lt_prog_compiler_wl='-Wl,'
8509	lt_prog_compiler_pic='-KPIC'
8510	lt_prog_compiler_static='-static'
8511        ;;
8512      # icc used to be incompatible with GCC.
8513      # ICC 10 doesn't accept -KPIC any more.
8514      icc* | ifort*)
8515	lt_prog_compiler_wl='-Wl,'
8516	lt_prog_compiler_pic='-fPIC'
8517	lt_prog_compiler_static='-static'
8518        ;;
8519      # Lahey Fortran 8.1.
8520      lf95*)
8521	lt_prog_compiler_wl='-Wl,'
8522	lt_prog_compiler_pic='--shared'
8523	lt_prog_compiler_static='--static'
8524	;;
8525      nagfor*)
8526	# NAG Fortran compiler
8527	lt_prog_compiler_wl='-Wl,-Wl,,'
8528	lt_prog_compiler_pic='-PIC'
8529	lt_prog_compiler_static='-Bstatic'
8530	;;
8531      tcc*)
8532	# Fabrice Bellard et al's Tiny C Compiler
8533	lt_prog_compiler_wl='-Wl,'
8534	lt_prog_compiler_pic='-fPIC'
8535	lt_prog_compiler_static='-static'
8536	;;
8537      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8538        # Portland Group compilers (*not* the Pentium gcc compiler,
8539	# which looks to be a dead project)
8540	lt_prog_compiler_wl='-Wl,'
8541	lt_prog_compiler_pic='-fpic'
8542	lt_prog_compiler_static='-Bstatic'
8543        ;;
8544      ccc*)
8545        lt_prog_compiler_wl='-Wl,'
8546        # All Alpha code is PIC.
8547        lt_prog_compiler_static='-non_shared'
8548        ;;
8549      xl* | bgxl* | bgf* | mpixl*)
8550	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8551	lt_prog_compiler_wl='-Wl,'
8552	lt_prog_compiler_pic='-qpic'
8553	lt_prog_compiler_static='-qstaticlink'
8554	;;
8555      *)
8556	case `$CC -V 2>&1 | sed 5q` in
8557	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8558	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8559	  lt_prog_compiler_pic='-KPIC'
8560	  lt_prog_compiler_static='-Bstatic'
8561	  lt_prog_compiler_wl=''
8562	  ;;
8563	*Sun\ F* | *Sun*Fortran*)
8564	  lt_prog_compiler_pic='-KPIC'
8565	  lt_prog_compiler_static='-Bstatic'
8566	  lt_prog_compiler_wl='-Qoption ld '
8567	  ;;
8568	*Sun\ C*)
8569	  # Sun C 5.9
8570	  lt_prog_compiler_pic='-KPIC'
8571	  lt_prog_compiler_static='-Bstatic'
8572	  lt_prog_compiler_wl='-Wl,'
8573	  ;;
8574        *Intel*\ [CF]*Compiler*)
8575	  lt_prog_compiler_wl='-Wl,'
8576	  lt_prog_compiler_pic='-fPIC'
8577	  lt_prog_compiler_static='-static'
8578	  ;;
8579	*Portland\ Group*)
8580	  lt_prog_compiler_wl='-Wl,'
8581	  lt_prog_compiler_pic='-fpic'
8582	  lt_prog_compiler_static='-Bstatic'
8583	  ;;
8584	esac
8585	;;
8586      esac
8587      ;;
8588
8589    newsos6)
8590      lt_prog_compiler_pic='-KPIC'
8591      lt_prog_compiler_static='-Bstatic'
8592      ;;
8593
8594    *nto* | *qnx*)
8595      # QNX uses GNU C++, but need to define -shared option too, otherwise
8596      # it will coredump.
8597      lt_prog_compiler_pic='-fPIC -shared'
8598      ;;
8599
8600    osf3* | osf4* | osf5*)
8601      lt_prog_compiler_wl='-Wl,'
8602      # All OSF/1 code is PIC.
8603      lt_prog_compiler_static='-non_shared'
8604      ;;
8605
8606    rdos*)
8607      lt_prog_compiler_static='-non_shared'
8608      ;;
8609
8610    solaris*)
8611      lt_prog_compiler_pic='-KPIC'
8612      lt_prog_compiler_static='-Bstatic'
8613      case $cc_basename in
8614      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8615	lt_prog_compiler_wl='-Qoption ld ';;
8616      *)
8617	lt_prog_compiler_wl='-Wl,';;
8618      esac
8619      ;;
8620
8621    sunos4*)
8622      lt_prog_compiler_wl='-Qoption ld '
8623      lt_prog_compiler_pic='-PIC'
8624      lt_prog_compiler_static='-Bstatic'
8625      ;;
8626
8627    sysv4 | sysv4.2uw2* | sysv4.3*)
8628      lt_prog_compiler_wl='-Wl,'
8629      lt_prog_compiler_pic='-KPIC'
8630      lt_prog_compiler_static='-Bstatic'
8631      ;;
8632
8633    sysv4*MP*)
8634      if test -d /usr/nec; then
8635	lt_prog_compiler_pic='-Kconform_pic'
8636	lt_prog_compiler_static='-Bstatic'
8637      fi
8638      ;;
8639
8640    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8641      lt_prog_compiler_wl='-Wl,'
8642      lt_prog_compiler_pic='-KPIC'
8643      lt_prog_compiler_static='-Bstatic'
8644      ;;
8645
8646    unicos*)
8647      lt_prog_compiler_wl='-Wl,'
8648      lt_prog_compiler_can_build_shared=no
8649      ;;
8650
8651    uts4*)
8652      lt_prog_compiler_pic='-pic'
8653      lt_prog_compiler_static='-Bstatic'
8654      ;;
8655
8656    *)
8657      lt_prog_compiler_can_build_shared=no
8658      ;;
8659    esac
8660  fi
8661
8662case $host_os in
8663  # For platforms that do not support PIC, -DPIC is meaningless:
8664  *djgpp*)
8665    lt_prog_compiler_pic=
8666    ;;
8667  *)
8668    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8669    ;;
8670esac
8671
8672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8673$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8674if ${lt_cv_prog_compiler_pic+:} false; then :
8675  $as_echo_n "(cached) " >&6
8676else
8677  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8678fi
8679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8680$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8681lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8682
8683#
8684# Check to make sure the PIC flag actually works.
8685#
8686if test -n "$lt_prog_compiler_pic"; then
8687  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8688$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8689if ${lt_cv_prog_compiler_pic_works+:} false; then :
8690  $as_echo_n "(cached) " >&6
8691else
8692  lt_cv_prog_compiler_pic_works=no
8693   ac_outfile=conftest.$ac_objext
8694   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8695   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8696   # Insert the option either (1) after the last *FLAGS variable, or
8697   # (2) before a word containing "conftest.", or (3) at the end.
8698   # Note that $ac_compile itself does not contain backslashes and begins
8699   # with a dollar sign (not a hyphen), so the echo should work correctly.
8700   # The option is referenced via a variable to avoid confusing sed.
8701   lt_compile=`echo "$ac_compile" | $SED \
8702   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8703   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8704   -e 's:$: $lt_compiler_flag:'`
8705   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8706   (eval "$lt_compile" 2>conftest.err)
8707   ac_status=$?
8708   cat conftest.err >&5
8709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710   if (exit $ac_status) && test -s "$ac_outfile"; then
8711     # The compiler can only warn and ignore the option if not recognized
8712     # So say no if there are warnings other than the usual output.
8713     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8714     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8715     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8716       lt_cv_prog_compiler_pic_works=yes
8717     fi
8718   fi
8719   $RM conftest*
8720
8721fi
8722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8723$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8724
8725if test yes = "$lt_cv_prog_compiler_pic_works"; then
8726    case $lt_prog_compiler_pic in
8727     "" | " "*) ;;
8728     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8729     esac
8730else
8731    lt_prog_compiler_pic=
8732     lt_prog_compiler_can_build_shared=no
8733fi
8734
8735fi
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747#
8748# Check to make sure the static flag actually works.
8749#
8750wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8752$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8753if ${lt_cv_prog_compiler_static_works+:} false; then :
8754  $as_echo_n "(cached) " >&6
8755else
8756  lt_cv_prog_compiler_static_works=no
8757   save_LDFLAGS=$LDFLAGS
8758   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8759   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8760   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8761     # The linker can only warn and ignore the option if not recognized
8762     # So say no if there are warnings
8763     if test -s conftest.err; then
8764       # Append any errors to the config.log.
8765       cat conftest.err 1>&5
8766       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8767       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8768       if diff conftest.exp conftest.er2 >/dev/null; then
8769         lt_cv_prog_compiler_static_works=yes
8770       fi
8771     else
8772       lt_cv_prog_compiler_static_works=yes
8773     fi
8774   fi
8775   $RM -r conftest*
8776   LDFLAGS=$save_LDFLAGS
8777
8778fi
8779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8780$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8781
8782if test yes = "$lt_cv_prog_compiler_static_works"; then
8783    :
8784else
8785    lt_prog_compiler_static=
8786fi
8787
8788
8789
8790
8791
8792
8793
8794  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8795$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8796if ${lt_cv_prog_compiler_c_o+:} false; then :
8797  $as_echo_n "(cached) " >&6
8798else
8799  lt_cv_prog_compiler_c_o=no
8800   $RM -r conftest 2>/dev/null
8801   mkdir conftest
8802   cd conftest
8803   mkdir out
8804   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8805
8806   lt_compiler_flag="-o out/conftest2.$ac_objext"
8807   # Insert the option either (1) after the last *FLAGS variable, or
8808   # (2) before a word containing "conftest.", or (3) at the end.
8809   # Note that $ac_compile itself does not contain backslashes and begins
8810   # with a dollar sign (not a hyphen), so the echo should work correctly.
8811   lt_compile=`echo "$ac_compile" | $SED \
8812   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8813   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8814   -e 's:$: $lt_compiler_flag:'`
8815   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8816   (eval "$lt_compile" 2>out/conftest.err)
8817   ac_status=$?
8818   cat out/conftest.err >&5
8819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8821   then
8822     # The compiler can only warn and ignore the option if not recognized
8823     # So say no if there are warnings
8824     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8825     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8826     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8827       lt_cv_prog_compiler_c_o=yes
8828     fi
8829   fi
8830   chmod u+w . 2>&5
8831   $RM conftest*
8832   # SGI C++ compiler will create directory out/ii_files/ for
8833   # template instantiation
8834   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8835   $RM out/* && rmdir out
8836   cd ..
8837   $RM -r conftest
8838   $RM conftest*
8839
8840fi
8841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8842$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8843
8844
8845
8846
8847
8848
8849  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8850$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8851if ${lt_cv_prog_compiler_c_o+:} false; then :
8852  $as_echo_n "(cached) " >&6
8853else
8854  lt_cv_prog_compiler_c_o=no
8855   $RM -r conftest 2>/dev/null
8856   mkdir conftest
8857   cd conftest
8858   mkdir out
8859   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8860
8861   lt_compiler_flag="-o out/conftest2.$ac_objext"
8862   # Insert the option either (1) after the last *FLAGS variable, or
8863   # (2) before a word containing "conftest.", or (3) at the end.
8864   # Note that $ac_compile itself does not contain backslashes and begins
8865   # with a dollar sign (not a hyphen), so the echo should work correctly.
8866   lt_compile=`echo "$ac_compile" | $SED \
8867   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8868   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8869   -e 's:$: $lt_compiler_flag:'`
8870   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8871   (eval "$lt_compile" 2>out/conftest.err)
8872   ac_status=$?
8873   cat out/conftest.err >&5
8874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8876   then
8877     # The compiler can only warn and ignore the option if not recognized
8878     # So say no if there are warnings
8879     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8880     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8881     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8882       lt_cv_prog_compiler_c_o=yes
8883     fi
8884   fi
8885   chmod u+w . 2>&5
8886   $RM conftest*
8887   # SGI C++ compiler will create directory out/ii_files/ for
8888   # template instantiation
8889   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8890   $RM out/* && rmdir out
8891   cd ..
8892   $RM -r conftest
8893   $RM conftest*
8894
8895fi
8896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8897$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8898
8899
8900
8901
8902hard_links=nottested
8903if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8904  # do not overwrite the value of need_locks provided by the user
8905  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8906$as_echo_n "checking if we can lock with hard links... " >&6; }
8907  hard_links=yes
8908  $RM conftest*
8909  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8910  touch conftest.a
8911  ln conftest.a conftest.b 2>&5 || hard_links=no
8912  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8914$as_echo "$hard_links" >&6; }
8915  if test no = "$hard_links"; then
8916    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8917$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8918    need_locks=warn
8919  fi
8920else
8921  need_locks=no
8922fi
8923
8924
8925
8926
8927
8928
8929  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8930$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8931
8932  runpath_var=
8933  allow_undefined_flag=
8934  always_export_symbols=no
8935  archive_cmds=
8936  archive_expsym_cmds=
8937  compiler_needs_object=no
8938  enable_shared_with_static_runtimes=no
8939  export_dynamic_flag_spec=
8940  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8941  hardcode_automatic=no
8942  hardcode_direct=no
8943  hardcode_direct_absolute=no
8944  hardcode_libdir_flag_spec=
8945  hardcode_libdir_separator=
8946  hardcode_minus_L=no
8947  hardcode_shlibpath_var=unsupported
8948  inherit_rpath=no
8949  link_all_deplibs=unknown
8950  module_cmds=
8951  module_expsym_cmds=
8952  old_archive_from_new_cmds=
8953  old_archive_from_expsyms_cmds=
8954  thread_safe_flag_spec=
8955  whole_archive_flag_spec=
8956  # include_expsyms should be a list of space-separated symbols to be *always*
8957  # included in the symbol list
8958  include_expsyms=
8959  # exclude_expsyms can be an extended regexp of symbols to exclude
8960  # it will be wrapped by ' (' and ')$', so one must not match beginning or
8961  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8962  # as well as any symbol that contains 'd'.
8963  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8964  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8965  # platforms (ab)use it in PIC code, but their linkers get confused if
8966  # the symbol is explicitly referenced.  Since portable code cannot
8967  # rely on this symbol name, it's probably fine to never include it in
8968  # preloaded symbol tables.
8969  # Exclude shared library initialization/finalization symbols.
8970  extract_expsyms_cmds=
8971
8972  case $host_os in
8973  cygwin* | mingw* | pw32* | cegcc*)
8974    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8975    # When not using gcc, we currently assume that we are using
8976    # Microsoft Visual C++.
8977    if test yes != "$GCC"; then
8978      with_gnu_ld=no
8979    fi
8980    ;;
8981  interix*)
8982    # we just hope/assume this is gcc and not c89 (= MSVC++)
8983    with_gnu_ld=yes
8984    ;;
8985  openbsd* | bitrig*)
8986    with_gnu_ld=no
8987    ;;
8988  esac
8989
8990  ld_shlibs=yes
8991
8992  # On some targets, GNU ld is compatible enough with the native linker
8993  # that we're better off using the native interface for both.
8994  lt_use_gnu_ld_interface=no
8995  if test yes = "$with_gnu_ld"; then
8996    case $host_os in
8997      aix*)
8998	# The AIX port of GNU ld has always aspired to compatibility
8999	# with the native linker.  However, as the warning in the GNU ld
9000	# block says, versions before 2.19.5* couldn't really create working
9001	# shared libraries, regardless of the interface used.
9002	case `$LD -v 2>&1` in
9003	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9004	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9005	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9006	  *)
9007	    lt_use_gnu_ld_interface=yes
9008	    ;;
9009	esac
9010	;;
9011      *)
9012	lt_use_gnu_ld_interface=yes
9013	;;
9014    esac
9015  fi
9016
9017  if test yes = "$lt_use_gnu_ld_interface"; then
9018    # If archive_cmds runs LD, not CC, wlarc should be empty
9019    wlarc='$wl'
9020
9021    # Set some defaults for GNU ld with shared library support. These
9022    # are reset later if shared libraries are not supported. Putting them
9023    # here allows them to be overridden if necessary.
9024    runpath_var=LD_RUN_PATH
9025    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9026    export_dynamic_flag_spec='$wl--export-dynamic'
9027    # ancient GNU ld didn't support --whole-archive et. al.
9028    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9029      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9030    else
9031      whole_archive_flag_spec=
9032    fi
9033    supports_anon_versioning=no
9034    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9035      *GNU\ gold*) supports_anon_versioning=yes ;;
9036      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9037      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9038      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9039      *\ 2.11.*) ;; # other 2.11 versions
9040      *) supports_anon_versioning=yes ;;
9041    esac
9042
9043    # See if GNU ld supports shared libraries.
9044    case $host_os in
9045    aix[3-9]*)
9046      # On AIX/PPC, the GNU linker is very broken
9047      if test ia64 != "$host_cpu"; then
9048	ld_shlibs=no
9049	cat <<_LT_EOF 1>&2
9050
9051*** Warning: the GNU linker, at least up to release 2.19, is reported
9052*** to be unable to reliably create shared libraries on AIX.
9053*** Therefore, libtool is disabling shared libraries support.  If you
9054*** really care for shared libraries, you may want to install binutils
9055*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9056*** You will then need to restart the configuration process.
9057
9058_LT_EOF
9059      fi
9060      ;;
9061
9062    amigaos*)
9063      case $host_cpu in
9064      powerpc)
9065            # see comment about AmigaOS4 .so support
9066            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9067            archive_expsym_cmds=''
9068        ;;
9069      m68k)
9070            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)'
9071            hardcode_libdir_flag_spec='-L$libdir'
9072            hardcode_minus_L=yes
9073        ;;
9074      esac
9075      ;;
9076
9077    beos*)
9078      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9079	allow_undefined_flag=unsupported
9080	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9081	# support --undefined.  This deserves some investigation.  FIXME
9082	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9083      else
9084	ld_shlibs=no
9085      fi
9086      ;;
9087
9088    cygwin* | mingw* | pw32* | cegcc*)
9089      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9090      # as there is no search path for DLLs.
9091      hardcode_libdir_flag_spec='-L$libdir'
9092      export_dynamic_flag_spec='$wl--export-all-symbols'
9093      allow_undefined_flag=unsupported
9094      always_export_symbols=no
9095      enable_shared_with_static_runtimes=yes
9096      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'
9097      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9098
9099      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9100        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9101	# If the export-symbols file already is a .def file, use it as
9102	# is; otherwise, prepend EXPORTS...
9103	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9104          cp $export_symbols $output_objdir/$soname.def;
9105        else
9106          echo EXPORTS > $output_objdir/$soname.def;
9107          cat $export_symbols >> $output_objdir/$soname.def;
9108        fi~
9109        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9110      else
9111	ld_shlibs=no
9112      fi
9113      ;;
9114
9115    haiku*)
9116      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9117      link_all_deplibs=yes
9118      ;;
9119
9120    os2*)
9121      hardcode_libdir_flag_spec='-L$libdir'
9122      hardcode_minus_L=yes
9123      allow_undefined_flag=unsupported
9124      shrext_cmds=.dll
9125      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9126	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9127	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9128	$ECHO EXPORTS >> $output_objdir/$libname.def~
9129	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9130	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9131	emximp -o $lib $output_objdir/$libname.def'
9132      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9133	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9134	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9135	$ECHO EXPORTS >> $output_objdir/$libname.def~
9136	prefix_cmds="$SED"~
9137	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9138	  prefix_cmds="$prefix_cmds -e 1d";
9139	fi~
9140	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9141	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9142	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9143	emximp -o $lib $output_objdir/$libname.def'
9144      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9145      enable_shared_with_static_runtimes=yes
9146      ;;
9147
9148    interix[3-9]*)
9149      hardcode_direct=no
9150      hardcode_shlibpath_var=no
9151      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9152      export_dynamic_flag_spec='$wl-E'
9153      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9154      # Instead, shared libraries are loaded at an image base (0x10000000 by
9155      # default) and relocated if they conflict, which is a slow very memory
9156      # consuming and fragmenting process.  To avoid this, we pick a random,
9157      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9158      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9159      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9160      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'
9161      ;;
9162
9163    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9164      tmp_diet=no
9165      if test linux-dietlibc = "$host_os"; then
9166	case $cc_basename in
9167	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9168	esac
9169      fi
9170      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9171	 && test no = "$tmp_diet"
9172      then
9173	tmp_addflag=' $pic_flag'
9174	tmp_sharedflag='-shared'
9175	case $cc_basename,$host_cpu in
9176        pgcc*)				# Portland Group C compiler
9177	  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'
9178	  tmp_addflag=' $pic_flag'
9179	  ;;
9180	pgf77* | pgf90* | pgf95* | pgfortran*)
9181					# Portland Group f77 and f90 compilers
9182	  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'
9183	  tmp_addflag=' $pic_flag -Mnomain' ;;
9184	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9185	  tmp_addflag=' -i_dynamic' ;;
9186	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9187	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9188	ifc* | ifort*)			# Intel Fortran compiler
9189	  tmp_addflag=' -nofor_main' ;;
9190	lf95*)				# Lahey Fortran 8.1
9191	  whole_archive_flag_spec=
9192	  tmp_sharedflag='--shared' ;;
9193        nagfor*)                        # NAGFOR 5.3
9194          tmp_sharedflag='-Wl,-shared' ;;
9195	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9196	  tmp_sharedflag='-qmkshrobj'
9197	  tmp_addflag= ;;
9198	nvcc*)	# Cuda Compiler Driver 2.2
9199	  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'
9200	  compiler_needs_object=yes
9201	  ;;
9202	esac
9203	case `$CC -V 2>&1 | sed 5q` in
9204	*Sun\ C*)			# Sun C 5.9
9205	  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'
9206	  compiler_needs_object=yes
9207	  tmp_sharedflag='-G' ;;
9208	*Sun\ F*)			# Sun Fortran 8.3
9209	  tmp_sharedflag='-G' ;;
9210	esac
9211	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9212
9213        if test yes = "$supports_anon_versioning"; then
9214          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9215            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9216            echo "local: *; };" >> $output_objdir/$libname.ver~
9217            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9218        fi
9219
9220	case $cc_basename in
9221	tcc*)
9222	  export_dynamic_flag_spec='-rdynamic'
9223	  ;;
9224	xlf* | bgf* | bgxlf* | mpixlf*)
9225	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9226	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9227	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9228	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9229	  if test yes = "$supports_anon_versioning"; then
9230	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9231              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9232              echo "local: *; };" >> $output_objdir/$libname.ver~
9233              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9234	  fi
9235	  ;;
9236	esac
9237      else
9238        ld_shlibs=no
9239      fi
9240      ;;
9241
9242    netbsd*)
9243      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9244	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9245	wlarc=
9246      else
9247	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9248	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9249      fi
9250      ;;
9251
9252    solaris*)
9253      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9254	ld_shlibs=no
9255	cat <<_LT_EOF 1>&2
9256
9257*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9258*** create shared libraries on Solaris systems.  Therefore, libtool
9259*** is disabling shared libraries support.  We urge you to upgrade GNU
9260*** binutils to release 2.9.1 or newer.  Another option is to modify
9261*** your PATH or compiler configuration so that the native linker is
9262*** used, and then restart.
9263
9264_LT_EOF
9265      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9266	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9267	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9268      else
9269	ld_shlibs=no
9270      fi
9271      ;;
9272
9273    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9274      case `$LD -v 2>&1` in
9275        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9276	ld_shlibs=no
9277	cat <<_LT_EOF 1>&2
9278
9279*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9280*** reliably create shared libraries on SCO systems.  Therefore, libtool
9281*** is disabling shared libraries support.  We urge you to upgrade GNU
9282*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9283*** your PATH or compiler configuration so that the native linker is
9284*** used, and then restart.
9285
9286_LT_EOF
9287	;;
9288	*)
9289	  # For security reasons, it is highly recommended that you always
9290	  # use absolute paths for naming shared libraries, and exclude the
9291	  # DT_RUNPATH tag from executables and libraries.  But doing so
9292	  # requires that you compile everything twice, which is a pain.
9293	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9294	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9295	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9296	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9297	  else
9298	    ld_shlibs=no
9299	  fi
9300	;;
9301      esac
9302      ;;
9303
9304    sunos4*)
9305      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9306      wlarc=
9307      hardcode_direct=yes
9308      hardcode_shlibpath_var=no
9309      ;;
9310
9311    *)
9312      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9313	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9314	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9315      else
9316	ld_shlibs=no
9317      fi
9318      ;;
9319    esac
9320
9321    if test no = "$ld_shlibs"; then
9322      runpath_var=
9323      hardcode_libdir_flag_spec=
9324      export_dynamic_flag_spec=
9325      whole_archive_flag_spec=
9326    fi
9327  else
9328    # PORTME fill in a description of your system's linker (not GNU ld)
9329    case $host_os in
9330    aix3*)
9331      allow_undefined_flag=unsupported
9332      always_export_symbols=yes
9333      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'
9334      # Note: this linker hardcodes the directories in LIBPATH if there
9335      # are no directories specified by -L.
9336      hardcode_minus_L=yes
9337      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9338	# Neither direct hardcoding nor static linking is supported with a
9339	# broken collect2.
9340	hardcode_direct=unsupported
9341      fi
9342      ;;
9343
9344    aix[4-9]*)
9345      if test ia64 = "$host_cpu"; then
9346	# On IA64, the linker does run time linking by default, so we don't
9347	# have to do anything special.
9348	aix_use_runtimelinking=no
9349	exp_sym_flag='-Bexport'
9350	no_entry_flag=
9351      else
9352	# If we're using GNU nm, then we don't want the "-C" option.
9353	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9354	# Without the "-l" option, or with the "-B" option, AIX nm treats
9355	# weak defined symbols like other global defined symbols, whereas
9356	# GNU nm marks them as "W".
9357	# While the 'weak' keyword is ignored in the Export File, we need
9358	# it in the Import File for the 'aix-soname' feature, so we have
9359	# to replace the "-B" option with "-P" for AIX nm.
9360	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9361	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9362	else
9363	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9364	fi
9365	aix_use_runtimelinking=no
9366
9367	# Test if we are trying to use run time linking or normal
9368	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9369	# have runtime linking enabled, and use it for executables.
9370	# For shared libraries, we enable/disable runtime linking
9371	# depending on the kind of the shared library created -
9372	# when "with_aix_soname,aix_use_runtimelinking" is:
9373	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9374	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9375	#            lib.a           static archive
9376	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9377	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9378	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9379	#            lib.a(lib.so.V) shared, rtl:no
9380	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9381	#            lib.a           static archive
9382	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9383	  for ld_flag in $LDFLAGS; do
9384	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9385	    aix_use_runtimelinking=yes
9386	    break
9387	  fi
9388	  done
9389	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9390	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9391	    # so we don't have lib.a shared libs to link our executables.
9392	    # We have to force runtime linking in this case.
9393	    aix_use_runtimelinking=yes
9394	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9395	  fi
9396	  ;;
9397	esac
9398
9399	exp_sym_flag='-bexport'
9400	no_entry_flag='-bnoentry'
9401      fi
9402
9403      # When large executables or shared objects are built, AIX ld can
9404      # have problems creating the table of contents.  If linking a library
9405      # or program results in "error TOC overflow" add -mminimal-toc to
9406      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9407      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9408
9409      archive_cmds=''
9410      hardcode_direct=yes
9411      hardcode_direct_absolute=yes
9412      hardcode_libdir_separator=':'
9413      link_all_deplibs=yes
9414      file_list_spec='$wl-f,'
9415      case $with_aix_soname,$aix_use_runtimelinking in
9416      aix,*) ;; # traditional, no import file
9417      svr4,* | *,yes) # use import file
9418	# The Import File defines what to hardcode.
9419	hardcode_direct=no
9420	hardcode_direct_absolute=no
9421	;;
9422      esac
9423
9424      if test yes = "$GCC"; then
9425	case $host_os in aix4.[012]|aix4.[012].*)
9426	# We only want to do this on AIX 4.2 and lower, the check
9427	# below for broken collect2 doesn't work under 4.3+
9428	  collect2name=`$CC -print-prog-name=collect2`
9429	  if test -f "$collect2name" &&
9430	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9431	  then
9432	  # We have reworked collect2
9433	  :
9434	  else
9435	  # We have old collect2
9436	  hardcode_direct=unsupported
9437	  # It fails to find uninstalled libraries when the uninstalled
9438	  # path is not listed in the libpath.  Setting hardcode_minus_L
9439	  # to unsupported forces relinking
9440	  hardcode_minus_L=yes
9441	  hardcode_libdir_flag_spec='-L$libdir'
9442	  hardcode_libdir_separator=
9443	  fi
9444	  ;;
9445	esac
9446	shared_flag='-shared'
9447	if test yes = "$aix_use_runtimelinking"; then
9448	  shared_flag="$shared_flag "'$wl-G'
9449	fi
9450	# Need to ensure runtime linking is disabled for the traditional
9451	# shared library, or the linker may eventually find shared libraries
9452	# /with/ Import File - we do not want to mix them.
9453	shared_flag_aix='-shared'
9454	shared_flag_svr4='-shared $wl-G'
9455      else
9456	# not using gcc
9457	if test ia64 = "$host_cpu"; then
9458	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9459	# chokes on -Wl,-G. The following line is correct:
9460	  shared_flag='-G'
9461	else
9462	  if test yes = "$aix_use_runtimelinking"; then
9463	    shared_flag='$wl-G'
9464	  else
9465	    shared_flag='$wl-bM:SRE'
9466	  fi
9467	  shared_flag_aix='$wl-bM:SRE'
9468	  shared_flag_svr4='$wl-G'
9469	fi
9470      fi
9471
9472      export_dynamic_flag_spec='$wl-bexpall'
9473      # It seems that -bexpall does not export symbols beginning with
9474      # underscore (_), so it is better to generate a list of symbols to export.
9475      always_export_symbols=yes
9476      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9477	# Warning - without using the other runtime loading flags (-brtl),
9478	# -berok will link without error, but may produce a broken library.
9479	allow_undefined_flag='-berok'
9480        # Determine the default libpath from the value encoded in an
9481        # empty executable.
9482        if test set = "${lt_cv_aix_libpath+set}"; then
9483  aix_libpath=$lt_cv_aix_libpath
9484else
9485  if ${lt_cv_aix_libpath_+:} false; then :
9486  $as_echo_n "(cached) " >&6
9487else
9488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9489/* end confdefs.h.  */
9490
9491int
9492main ()
9493{
9494
9495  ;
9496  return 0;
9497}
9498_ACEOF
9499if ac_fn_c_try_link "$LINENO"; then :
9500
9501  lt_aix_libpath_sed='
9502      /Import File Strings/,/^$/ {
9503	  /^0/ {
9504	      s/^0  *\([^ ]*\) *$/\1/
9505	      p
9506	  }
9507      }'
9508  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9509  # Check for a 64-bit object if we didn't find anything.
9510  if test -z "$lt_cv_aix_libpath_"; then
9511    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9512  fi
9513fi
9514rm -f core conftest.err conftest.$ac_objext \
9515    conftest$ac_exeext conftest.$ac_ext
9516  if test -z "$lt_cv_aix_libpath_"; then
9517    lt_cv_aix_libpath_=/usr/lib:/lib
9518  fi
9519
9520fi
9521
9522  aix_libpath=$lt_cv_aix_libpath_
9523fi
9524
9525        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9526        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9527      else
9528	if test ia64 = "$host_cpu"; then
9529	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9530	  allow_undefined_flag="-z nodefs"
9531	  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"
9532	else
9533	 # Determine the default libpath from the value encoded in an
9534	 # empty executable.
9535	 if test set = "${lt_cv_aix_libpath+set}"; then
9536  aix_libpath=$lt_cv_aix_libpath
9537else
9538  if ${lt_cv_aix_libpath_+:} false; then :
9539  $as_echo_n "(cached) " >&6
9540else
9541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9542/* end confdefs.h.  */
9543
9544int
9545main ()
9546{
9547
9548  ;
9549  return 0;
9550}
9551_ACEOF
9552if ac_fn_c_try_link "$LINENO"; then :
9553
9554  lt_aix_libpath_sed='
9555      /Import File Strings/,/^$/ {
9556	  /^0/ {
9557	      s/^0  *\([^ ]*\) *$/\1/
9558	      p
9559	  }
9560      }'
9561  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9562  # Check for a 64-bit object if we didn't find anything.
9563  if test -z "$lt_cv_aix_libpath_"; then
9564    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9565  fi
9566fi
9567rm -f core conftest.err conftest.$ac_objext \
9568    conftest$ac_exeext conftest.$ac_ext
9569  if test -z "$lt_cv_aix_libpath_"; then
9570    lt_cv_aix_libpath_=/usr/lib:/lib
9571  fi
9572
9573fi
9574
9575  aix_libpath=$lt_cv_aix_libpath_
9576fi
9577
9578	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9579	  # Warning - without using the other run time loading flags,
9580	  # -berok will link without error, but may produce a broken library.
9581	  no_undefined_flag=' $wl-bernotok'
9582	  allow_undefined_flag=' $wl-berok'
9583	  if test yes = "$with_gnu_ld"; then
9584	    # We only use this code for GNU lds that support --whole-archive.
9585	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9586	  else
9587	    # Exported symbols can be pulled into shared objects from archives
9588	    whole_archive_flag_spec='$convenience'
9589	  fi
9590	  archive_cmds_need_lc=yes
9591	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9592	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9593	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9594	  if test svr4 != "$with_aix_soname"; then
9595	    # This is similar to how AIX traditionally builds its shared libraries.
9596	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9597	  fi
9598	  if test aix != "$with_aix_soname"; then
9599	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9600	  else
9601	    # used by -dlpreopen to get the symbols
9602	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9603	  fi
9604	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9605	fi
9606      fi
9607      ;;
9608
9609    amigaos*)
9610      case $host_cpu in
9611      powerpc)
9612            # see comment about AmigaOS4 .so support
9613            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9614            archive_expsym_cmds=''
9615        ;;
9616      m68k)
9617            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)'
9618            hardcode_libdir_flag_spec='-L$libdir'
9619            hardcode_minus_L=yes
9620        ;;
9621      esac
9622      ;;
9623
9624    bsdi[45]*)
9625      export_dynamic_flag_spec=-rdynamic
9626      ;;
9627
9628    cygwin* | mingw* | pw32* | cegcc*)
9629      # When not using gcc, we currently assume that we are using
9630      # Microsoft Visual C++.
9631      # hardcode_libdir_flag_spec is actually meaningless, as there is
9632      # no search path for DLLs.
9633      case $cc_basename in
9634      cl*)
9635	# Native MSVC
9636	hardcode_libdir_flag_spec=' '
9637	allow_undefined_flag=unsupported
9638	always_export_symbols=yes
9639	file_list_spec='@'
9640	# Tell ltmain to make .lib files, not .a files.
9641	libext=lib
9642	# Tell ltmain to make .dll files, not .so files.
9643	shrext_cmds=.dll
9644	# FIXME: Setting linknames here is a bad hack.
9645	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9646	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9647            cp "$export_symbols" "$output_objdir/$soname.def";
9648            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9649          else
9650            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9651          fi~
9652          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9653          linknames='
9654	# The linker will not automatically build a static lib if we build a DLL.
9655	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9656	enable_shared_with_static_runtimes=yes
9657	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9658	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9659	# Don't use ranlib
9660	old_postinstall_cmds='chmod 644 $oldlib'
9661	postlink_cmds='lt_outputfile="@OUTPUT@"~
9662          lt_tool_outputfile="@TOOL_OUTPUT@"~
9663          case $lt_outputfile in
9664            *.exe|*.EXE) ;;
9665            *)
9666              lt_outputfile=$lt_outputfile.exe
9667              lt_tool_outputfile=$lt_tool_outputfile.exe
9668              ;;
9669          esac~
9670          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9671            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9672            $RM "$lt_outputfile.manifest";
9673          fi'
9674	;;
9675      *)
9676	# Assume MSVC wrapper
9677	hardcode_libdir_flag_spec=' '
9678	allow_undefined_flag=unsupported
9679	# Tell ltmain to make .lib files, not .a files.
9680	libext=lib
9681	# Tell ltmain to make .dll files, not .so files.
9682	shrext_cmds=.dll
9683	# FIXME: Setting linknames here is a bad hack.
9684	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9685	# The linker will automatically build a .lib file if we build a DLL.
9686	old_archive_from_new_cmds='true'
9687	# FIXME: Should let the user specify the lib program.
9688	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9689	enable_shared_with_static_runtimes=yes
9690	;;
9691      esac
9692      ;;
9693
9694    darwin* | rhapsody*)
9695
9696
9697  archive_cmds_need_lc=no
9698  hardcode_direct=no
9699  hardcode_automatic=yes
9700  hardcode_shlibpath_var=unsupported
9701  if test yes = "$lt_cv_ld_force_load"; then
9702    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\"`'
9703
9704  else
9705    whole_archive_flag_spec=''
9706  fi
9707  link_all_deplibs=yes
9708  allow_undefined_flag=$_lt_dar_allow_undefined
9709  case $cc_basename in
9710     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9711     *) _lt_dar_can_shared=$GCC ;;
9712  esac
9713  if test yes = "$_lt_dar_can_shared"; then
9714    output_verbose_link_cmd=func_echo_all
9715    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9716    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9717    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"
9718    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"
9719
9720  else
9721  ld_shlibs=no
9722  fi
9723
9724      ;;
9725
9726    dgux*)
9727      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9728      hardcode_libdir_flag_spec='-L$libdir'
9729      hardcode_shlibpath_var=no
9730      ;;
9731
9732    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9733    # support.  Future versions do this automatically, but an explicit c++rt0.o
9734    # does not break anything, and helps significantly (at the cost of a little
9735    # extra space).
9736    freebsd2.2*)
9737      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9738      hardcode_libdir_flag_spec='-R$libdir'
9739      hardcode_direct=yes
9740      hardcode_shlibpath_var=no
9741      ;;
9742
9743    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9744    freebsd2.*)
9745      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9746      hardcode_direct=yes
9747      hardcode_minus_L=yes
9748      hardcode_shlibpath_var=no
9749      ;;
9750
9751    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9752    freebsd* | dragonfly*)
9753      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9754      hardcode_libdir_flag_spec='-R$libdir'
9755      hardcode_direct=yes
9756      hardcode_shlibpath_var=no
9757      ;;
9758
9759    hpux9*)
9760      if test yes = "$GCC"; then
9761	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9762      else
9763	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9764      fi
9765      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9766      hardcode_libdir_separator=:
9767      hardcode_direct=yes
9768
9769      # hardcode_minus_L: Not really in the search PATH,
9770      # but as the default location of the library.
9771      hardcode_minus_L=yes
9772      export_dynamic_flag_spec='$wl-E'
9773      ;;
9774
9775    hpux10*)
9776      if test yes,no = "$GCC,$with_gnu_ld"; then
9777	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9778      else
9779	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9780      fi
9781      if test no = "$with_gnu_ld"; then
9782	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9783	hardcode_libdir_separator=:
9784	hardcode_direct=yes
9785	hardcode_direct_absolute=yes
9786	export_dynamic_flag_spec='$wl-E'
9787	# hardcode_minus_L: Not really in the search PATH,
9788	# but as the default location of the library.
9789	hardcode_minus_L=yes
9790      fi
9791      ;;
9792
9793    hpux11*)
9794      if test yes,no = "$GCC,$with_gnu_ld"; then
9795	case $host_cpu in
9796	hppa*64*)
9797	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9798	  ;;
9799	ia64*)
9800	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9801	  ;;
9802	*)
9803	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9804	  ;;
9805	esac
9806      else
9807	case $host_cpu in
9808	hppa*64*)
9809	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9810	  ;;
9811	ia64*)
9812	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9813	  ;;
9814	*)
9815
9816	  # Older versions of the 11.00 compiler do not understand -b yet
9817	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9818	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9819$as_echo_n "checking if $CC understands -b... " >&6; }
9820if ${lt_cv_prog_compiler__b+:} false; then :
9821  $as_echo_n "(cached) " >&6
9822else
9823  lt_cv_prog_compiler__b=no
9824   save_LDFLAGS=$LDFLAGS
9825   LDFLAGS="$LDFLAGS -b"
9826   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9827   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9828     # The linker can only warn and ignore the option if not recognized
9829     # So say no if there are warnings
9830     if test -s conftest.err; then
9831       # Append any errors to the config.log.
9832       cat conftest.err 1>&5
9833       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9834       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9835       if diff conftest.exp conftest.er2 >/dev/null; then
9836         lt_cv_prog_compiler__b=yes
9837       fi
9838     else
9839       lt_cv_prog_compiler__b=yes
9840     fi
9841   fi
9842   $RM -r conftest*
9843   LDFLAGS=$save_LDFLAGS
9844
9845fi
9846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9847$as_echo "$lt_cv_prog_compiler__b" >&6; }
9848
9849if test yes = "$lt_cv_prog_compiler__b"; then
9850    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9851else
9852    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9853fi
9854
9855	  ;;
9856	esac
9857      fi
9858      if test no = "$with_gnu_ld"; then
9859	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9860	hardcode_libdir_separator=:
9861
9862	case $host_cpu in
9863	hppa*64*|ia64*)
9864	  hardcode_direct=no
9865	  hardcode_shlibpath_var=no
9866	  ;;
9867	*)
9868	  hardcode_direct=yes
9869	  hardcode_direct_absolute=yes
9870	  export_dynamic_flag_spec='$wl-E'
9871
9872	  # hardcode_minus_L: Not really in the search PATH,
9873	  # but as the default location of the library.
9874	  hardcode_minus_L=yes
9875	  ;;
9876	esac
9877      fi
9878      ;;
9879
9880    irix5* | irix6* | nonstopux*)
9881      if test yes = "$GCC"; then
9882	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'
9883	# Try to use the -exported_symbol ld option, if it does not
9884	# work, assume that -exports_file does not work either and
9885	# implicitly export all symbols.
9886	# This should be the same for all languages, so no per-tag cache variable.
9887	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9888$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9889if ${lt_cv_irix_exported_symbol+:} false; then :
9890  $as_echo_n "(cached) " >&6
9891else
9892  save_LDFLAGS=$LDFLAGS
9893	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9894	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9895/* end confdefs.h.  */
9896int foo (void) { return 0; }
9897_ACEOF
9898if ac_fn_c_try_link "$LINENO"; then :
9899  lt_cv_irix_exported_symbol=yes
9900else
9901  lt_cv_irix_exported_symbol=no
9902fi
9903rm -f core conftest.err conftest.$ac_objext \
9904    conftest$ac_exeext conftest.$ac_ext
9905           LDFLAGS=$save_LDFLAGS
9906fi
9907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9908$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9909	if test yes = "$lt_cv_irix_exported_symbol"; then
9910          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'
9911	fi
9912      else
9913	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'
9914	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'
9915      fi
9916      archive_cmds_need_lc='no'
9917      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9918      hardcode_libdir_separator=:
9919      inherit_rpath=yes
9920      link_all_deplibs=yes
9921      ;;
9922
9923    linux*)
9924      case $cc_basename in
9925      tcc*)
9926	# Fabrice Bellard et al's Tiny C Compiler
9927	ld_shlibs=yes
9928	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9929	;;
9930      esac
9931      ;;
9932
9933    netbsd*)
9934      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9935	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9936      else
9937	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9938      fi
9939      hardcode_libdir_flag_spec='-R$libdir'
9940      hardcode_direct=yes
9941      hardcode_shlibpath_var=no
9942      ;;
9943
9944    newsos6)
9945      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9946      hardcode_direct=yes
9947      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9948      hardcode_libdir_separator=:
9949      hardcode_shlibpath_var=no
9950      ;;
9951
9952    *nto* | *qnx*)
9953      ;;
9954
9955    openbsd* | bitrig*)
9956      if test -f /usr/libexec/ld.so; then
9957	hardcode_direct=yes
9958	hardcode_shlibpath_var=no
9959	hardcode_direct_absolute=yes
9960	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9961	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9962	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9963	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9964	  export_dynamic_flag_spec='$wl-E'
9965	else
9966	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9967	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9968	fi
9969      else
9970	ld_shlibs=no
9971      fi
9972      ;;
9973
9974    os2*)
9975      hardcode_libdir_flag_spec='-L$libdir'
9976      hardcode_minus_L=yes
9977      allow_undefined_flag=unsupported
9978      shrext_cmds=.dll
9979      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9980	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9981	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9982	$ECHO EXPORTS >> $output_objdir/$libname.def~
9983	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9984	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9985	emximp -o $lib $output_objdir/$libname.def'
9986      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9987	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9988	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9989	$ECHO EXPORTS >> $output_objdir/$libname.def~
9990	prefix_cmds="$SED"~
9991	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9992	  prefix_cmds="$prefix_cmds -e 1d";
9993	fi~
9994	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9995	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9996	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9997	emximp -o $lib $output_objdir/$libname.def'
9998      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9999      enable_shared_with_static_runtimes=yes
10000      ;;
10001
10002    osf3*)
10003      if test yes = "$GCC"; then
10004	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10005	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'
10006      else
10007	allow_undefined_flag=' -expect_unresolved \*'
10008	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'
10009      fi
10010      archive_cmds_need_lc='no'
10011      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10012      hardcode_libdir_separator=:
10013      ;;
10014
10015    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10016      if test yes = "$GCC"; then
10017	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10018	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'
10019	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10020      else
10021	allow_undefined_flag=' -expect_unresolved \*'
10022	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'
10023	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~
10024          $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'
10025
10026	# Both c and cxx compiler support -rpath directly
10027	hardcode_libdir_flag_spec='-rpath $libdir'
10028      fi
10029      archive_cmds_need_lc='no'
10030      hardcode_libdir_separator=:
10031      ;;
10032
10033    solaris*)
10034      no_undefined_flag=' -z defs'
10035      if test yes = "$GCC"; then
10036	wlarc='$wl'
10037	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10038	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10039          $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'
10040      else
10041	case `$CC -V 2>&1` in
10042	*"Compilers 5.0"*)
10043	  wlarc=''
10044	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10045	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10046            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10047	  ;;
10048	*)
10049	  wlarc='$wl'
10050	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10051	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10052            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10053	  ;;
10054	esac
10055      fi
10056      hardcode_libdir_flag_spec='-R$libdir'
10057      hardcode_shlibpath_var=no
10058      case $host_os in
10059      solaris2.[0-5] | solaris2.[0-5].*) ;;
10060      *)
10061	# The compiler driver will combine and reorder linker options,
10062	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10063	# but is careful enough not to reorder.
10064	# Supported since Solaris 2.6 (maybe 2.5.1?)
10065	if test yes = "$GCC"; then
10066	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10067	else
10068	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10069	fi
10070	;;
10071      esac
10072      link_all_deplibs=yes
10073      ;;
10074
10075    sunos4*)
10076      if test sequent = "$host_vendor"; then
10077	# Use $CC to link under sequent, because it throws in some extra .o
10078	# files that make .init and .fini sections work.
10079	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10080      else
10081	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10082      fi
10083      hardcode_libdir_flag_spec='-L$libdir'
10084      hardcode_direct=yes
10085      hardcode_minus_L=yes
10086      hardcode_shlibpath_var=no
10087      ;;
10088
10089    sysv4)
10090      case $host_vendor in
10091	sni)
10092	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10093	  hardcode_direct=yes # is this really true???
10094	;;
10095	siemens)
10096	  ## LD is ld it makes a PLAMLIB
10097	  ## CC just makes a GrossModule.
10098	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10099	  reload_cmds='$CC -r -o $output$reload_objs'
10100	  hardcode_direct=no
10101        ;;
10102	motorola)
10103	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10104	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10105	;;
10106      esac
10107      runpath_var='LD_RUN_PATH'
10108      hardcode_shlibpath_var=no
10109      ;;
10110
10111    sysv4.3*)
10112      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10113      hardcode_shlibpath_var=no
10114      export_dynamic_flag_spec='-Bexport'
10115      ;;
10116
10117    sysv4*MP*)
10118      if test -d /usr/nec; then
10119	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10120	hardcode_shlibpath_var=no
10121	runpath_var=LD_RUN_PATH
10122	hardcode_runpath_var=yes
10123	ld_shlibs=yes
10124      fi
10125      ;;
10126
10127    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10128      no_undefined_flag='$wl-z,text'
10129      archive_cmds_need_lc=no
10130      hardcode_shlibpath_var=no
10131      runpath_var='LD_RUN_PATH'
10132
10133      if test yes = "$GCC"; then
10134	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10135	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10136      else
10137	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10138	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10139      fi
10140      ;;
10141
10142    sysv5* | sco3.2v5* | sco5v6*)
10143      # Note: We CANNOT use -z defs as we might desire, because we do not
10144      # link with -lc, and that would cause any symbols used from libc to
10145      # always be unresolved, which means just about no library would
10146      # ever link correctly.  If we're not using GNU ld we use -z text
10147      # though, which does catch some bad symbols but isn't as heavy-handed
10148      # as -z defs.
10149      no_undefined_flag='$wl-z,text'
10150      allow_undefined_flag='$wl-z,nodefs'
10151      archive_cmds_need_lc=no
10152      hardcode_shlibpath_var=no
10153      hardcode_libdir_flag_spec='$wl-R,$libdir'
10154      hardcode_libdir_separator=':'
10155      link_all_deplibs=yes
10156      export_dynamic_flag_spec='$wl-Bexport'
10157      runpath_var='LD_RUN_PATH'
10158
10159      if test yes = "$GCC"; then
10160	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10161	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10162      else
10163	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10164	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10165      fi
10166      ;;
10167
10168    uts4*)
10169      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10170      hardcode_libdir_flag_spec='-L$libdir'
10171      hardcode_shlibpath_var=no
10172      ;;
10173
10174    *)
10175      ld_shlibs=no
10176      ;;
10177    esac
10178
10179    if test sni = "$host_vendor"; then
10180      case $host in
10181      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10182	export_dynamic_flag_spec='$wl-Blargedynsym'
10183	;;
10184      esac
10185    fi
10186  fi
10187
10188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10189$as_echo "$ld_shlibs" >&6; }
10190test no = "$ld_shlibs" && can_build_shared=no
10191
10192with_gnu_ld=$with_gnu_ld
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208#
10209# Do we need to explicitly link libc?
10210#
10211case "x$archive_cmds_need_lc" in
10212x|xyes)
10213  # Assume -lc should be added
10214  archive_cmds_need_lc=yes
10215
10216  if test yes,yes = "$GCC,$enable_shared"; then
10217    case $archive_cmds in
10218    *'~'*)
10219      # FIXME: we may have to deal with multi-command sequences.
10220      ;;
10221    '$CC '*)
10222      # Test whether the compiler implicitly links with -lc since on some
10223      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10224      # to ld, don't add -lc before -lgcc.
10225      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10226$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10227if ${lt_cv_archive_cmds_need_lc+:} false; then :
10228  $as_echo_n "(cached) " >&6
10229else
10230  $RM conftest*
10231	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10232
10233	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10234  (eval $ac_compile) 2>&5
10235  ac_status=$?
10236  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10237  test $ac_status = 0; } 2>conftest.err; then
10238	  soname=conftest
10239	  lib=conftest
10240	  libobjs=conftest.$ac_objext
10241	  deplibs=
10242	  wl=$lt_prog_compiler_wl
10243	  pic_flag=$lt_prog_compiler_pic
10244	  compiler_flags=-v
10245	  linker_flags=-v
10246	  verstring=
10247	  output_objdir=.
10248	  libname=conftest
10249	  lt_save_allow_undefined_flag=$allow_undefined_flag
10250	  allow_undefined_flag=
10251	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10252  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10253  ac_status=$?
10254  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10255  test $ac_status = 0; }
10256	  then
10257	    lt_cv_archive_cmds_need_lc=no
10258	  else
10259	    lt_cv_archive_cmds_need_lc=yes
10260	  fi
10261	  allow_undefined_flag=$lt_save_allow_undefined_flag
10262	else
10263	  cat conftest.err 1>&5
10264	fi
10265	$RM conftest*
10266
10267fi
10268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10269$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10270      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10271      ;;
10272    esac
10273  fi
10274  ;;
10275esac
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10429$as_echo_n "checking dynamic linker characteristics... " >&6; }
10430
10431if test yes = "$GCC"; then
10432  case $host_os in
10433    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10434    *) lt_awk_arg='/^libraries:/' ;;
10435  esac
10436  case $host_os in
10437    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10438    *) lt_sed_strip_eq='s|=/|/|g' ;;
10439  esac
10440  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10441  case $lt_search_path_spec in
10442  *\;*)
10443    # if the path contains ";" then we assume it to be the separator
10444    # otherwise default to the standard path separator (i.e. ":") - it is
10445    # assumed that no part of a normal pathname contains ";" but that should
10446    # okay in the real world where ";" in dirpaths is itself problematic.
10447    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10448    ;;
10449  *)
10450    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10451    ;;
10452  esac
10453  # Ok, now we have the path, separated by spaces, we can step through it
10454  # and add multilib dir if necessary...
10455  lt_tmp_lt_search_path_spec=
10456  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10457  # ...but if some path component already ends with the multilib dir we assume
10458  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10459  case "$lt_multi_os_dir; $lt_search_path_spec " in
10460  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10461    lt_multi_os_dir=
10462    ;;
10463  esac
10464  for lt_sys_path in $lt_search_path_spec; do
10465    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10466      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10467    elif test -n "$lt_multi_os_dir"; then
10468      test -d "$lt_sys_path" && \
10469	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10470    fi
10471  done
10472  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10473BEGIN {RS = " "; FS = "/|\n";} {
10474  lt_foo = "";
10475  lt_count = 0;
10476  for (lt_i = NF; lt_i > 0; lt_i--) {
10477    if ($lt_i != "" && $lt_i != ".") {
10478      if ($lt_i == "..") {
10479        lt_count++;
10480      } else {
10481        if (lt_count == 0) {
10482          lt_foo = "/" $lt_i lt_foo;
10483        } else {
10484          lt_count--;
10485        }
10486      }
10487    }
10488  }
10489  if (lt_foo != "") { lt_freq[lt_foo]++; }
10490  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10491}'`
10492  # AWK program above erroneously prepends '/' to C:/dos/paths
10493  # for these hosts.
10494  case $host_os in
10495    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10496      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10497  esac
10498  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10499else
10500  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10501fi
10502library_names_spec=
10503libname_spec='lib$name'
10504soname_spec=
10505shrext_cmds=.so
10506postinstall_cmds=
10507postuninstall_cmds=
10508finish_cmds=
10509finish_eval=
10510shlibpath_var=
10511shlibpath_overrides_runpath=unknown
10512version_type=none
10513dynamic_linker="$host_os ld.so"
10514sys_lib_dlsearch_path_spec="/lib /usr/lib"
10515need_lib_prefix=unknown
10516hardcode_into_libs=no
10517
10518# when you set need_version to no, make sure it does not cause -set_version
10519# flags to be left without arguments
10520need_version=unknown
10521
10522
10523
10524case $host_os in
10525aix3*)
10526  version_type=linux # correct to gnu/linux during the next big refactor
10527  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10528  shlibpath_var=LIBPATH
10529
10530  # AIX 3 has no versioning support, so we append a major version to the name.
10531  soname_spec='$libname$release$shared_ext$major'
10532  ;;
10533
10534aix[4-9]*)
10535  version_type=linux # correct to gnu/linux during the next big refactor
10536  need_lib_prefix=no
10537  need_version=no
10538  hardcode_into_libs=yes
10539  if test ia64 = "$host_cpu"; then
10540    # AIX 5 supports IA64
10541    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10542    shlibpath_var=LD_LIBRARY_PATH
10543  else
10544    # With GCC up to 2.95.x, collect2 would create an import file
10545    # for dependence libraries.  The import file would start with
10546    # the line '#! .'.  This would cause the generated library to
10547    # depend on '.', always an invalid library.  This was fixed in
10548    # development snapshots of GCC prior to 3.0.
10549    case $host_os in
10550      aix4 | aix4.[01] | aix4.[01].*)
10551      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10552	   echo ' yes '
10553	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10554	:
10555      else
10556	can_build_shared=no
10557      fi
10558      ;;
10559    esac
10560    # Using Import Files as archive members, it is possible to support
10561    # filename-based versioning of shared library archives on AIX. While
10562    # this would work for both with and without runtime linking, it will
10563    # prevent static linking of such archives. So we do filename-based
10564    # shared library versioning with .so extension only, which is used
10565    # when both runtime linking and shared linking is enabled.
10566    # Unfortunately, runtime linking may impact performance, so we do
10567    # not want this to be the default eventually. Also, we use the
10568    # versioned .so libs for executables only if there is the -brtl
10569    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10570    # To allow for filename-based versioning support, we need to create
10571    # libNAME.so.V as an archive file, containing:
10572    # *) an Import File, referring to the versioned filename of the
10573    #    archive as well as the shared archive member, telling the
10574    #    bitwidth (32 or 64) of that shared object, and providing the
10575    #    list of exported symbols of that shared object, eventually
10576    #    decorated with the 'weak' keyword
10577    # *) the shared object with the F_LOADONLY flag set, to really avoid
10578    #    it being seen by the linker.
10579    # At run time we better use the real file rather than another symlink,
10580    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10581
10582    case $with_aix_soname,$aix_use_runtimelinking in
10583    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10584    # soname into executable. Probably we can add versioning support to
10585    # collect2, so additional links can be useful in future.
10586    aix,yes) # traditional libtool
10587      dynamic_linker='AIX unversionable lib.so'
10588      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10589      # instead of lib<name>.a to let people know that these are not
10590      # typical AIX shared libraries.
10591      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10592      ;;
10593    aix,no) # traditional AIX only
10594      dynamic_linker='AIX lib.a(lib.so.V)'
10595      # We preserve .a as extension for shared libraries through AIX4.2
10596      # and later when we are not doing run time linking.
10597      library_names_spec='$libname$release.a $libname.a'
10598      soname_spec='$libname$release$shared_ext$major'
10599      ;;
10600    svr4,*) # full svr4 only
10601      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10602      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10603      # We do not specify a path in Import Files, so LIBPATH fires.
10604      shlibpath_overrides_runpath=yes
10605      ;;
10606    *,yes) # both, prefer svr4
10607      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10608      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10609      # unpreferred sharedlib libNAME.a needs extra handling
10610      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10611      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10612      # We do not specify a path in Import Files, so LIBPATH fires.
10613      shlibpath_overrides_runpath=yes
10614      ;;
10615    *,no) # both, prefer aix
10616      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10617      library_names_spec='$libname$release.a $libname.a'
10618      soname_spec='$libname$release$shared_ext$major'
10619      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10620      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10621      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10622      ;;
10623    esac
10624    shlibpath_var=LIBPATH
10625  fi
10626  ;;
10627
10628amigaos*)
10629  case $host_cpu in
10630  powerpc)
10631    # Since July 2007 AmigaOS4 officially supports .so libraries.
10632    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10633    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10634    ;;
10635  m68k)
10636    library_names_spec='$libname.ixlibrary $libname.a'
10637    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10638    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10639    ;;
10640  esac
10641  ;;
10642
10643beos*)
10644  library_names_spec='$libname$shared_ext'
10645  dynamic_linker="$host_os ld.so"
10646  shlibpath_var=LIBRARY_PATH
10647  ;;
10648
10649bsdi[45]*)
10650  version_type=linux # correct to gnu/linux during the next big refactor
10651  need_version=no
10652  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10653  soname_spec='$libname$release$shared_ext$major'
10654  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10655  shlibpath_var=LD_LIBRARY_PATH
10656  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10657  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10658  # the default ld.so.conf also contains /usr/contrib/lib and
10659  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10660  # libtool to hard-code these into programs
10661  ;;
10662
10663cygwin* | mingw* | pw32* | cegcc*)
10664  version_type=windows
10665  shrext_cmds=.dll
10666  need_version=no
10667  need_lib_prefix=no
10668
10669  case $GCC,$cc_basename in
10670  yes,*)
10671    # gcc
10672    library_names_spec='$libname.dll.a'
10673    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10674    postinstall_cmds='base_file=`basename \$file`~
10675      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10676      dldir=$destdir/`dirname \$dlpath`~
10677      test -d \$dldir || mkdir -p \$dldir~
10678      $install_prog $dir/$dlname \$dldir/$dlname~
10679      chmod a+x \$dldir/$dlname~
10680      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10681        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10682      fi'
10683    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10684      dlpath=$dir/\$dldll~
10685       $RM \$dlpath'
10686    shlibpath_overrides_runpath=yes
10687
10688    case $host_os in
10689    cygwin*)
10690      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10691      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10692
10693      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10694      ;;
10695    mingw* | cegcc*)
10696      # MinGW DLLs use traditional 'lib' prefix
10697      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10698      ;;
10699    pw32*)
10700      # pw32 DLLs use 'pw' prefix rather than 'lib'
10701      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10702      ;;
10703    esac
10704    dynamic_linker='Win32 ld.exe'
10705    ;;
10706
10707  *,cl*)
10708    # Native MSVC
10709    libname_spec='$name'
10710    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10711    library_names_spec='$libname.dll.lib'
10712
10713    case $build_os in
10714    mingw*)
10715      sys_lib_search_path_spec=
10716      lt_save_ifs=$IFS
10717      IFS=';'
10718      for lt_path in $LIB
10719      do
10720        IFS=$lt_save_ifs
10721        # Let DOS variable expansion print the short 8.3 style file name.
10722        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10723        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10724      done
10725      IFS=$lt_save_ifs
10726      # Convert to MSYS style.
10727      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10728      ;;
10729    cygwin*)
10730      # Convert to unix form, then to dos form, then back to unix form
10731      # but this time dos style (no spaces!) so that the unix form looks
10732      # like /cygdrive/c/PROGRA~1:/cygdr...
10733      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10734      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10735      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10736      ;;
10737    *)
10738      sys_lib_search_path_spec=$LIB
10739      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10740        # It is most probably a Windows format PATH.
10741        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10742      else
10743        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10744      fi
10745      # FIXME: find the short name or the path components, as spaces are
10746      # common. (e.g. "Program Files" -> "PROGRA~1")
10747      ;;
10748    esac
10749
10750    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10751    postinstall_cmds='base_file=`basename \$file`~
10752      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10753      dldir=$destdir/`dirname \$dlpath`~
10754      test -d \$dldir || mkdir -p \$dldir~
10755      $install_prog $dir/$dlname \$dldir/$dlname'
10756    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10757      dlpath=$dir/\$dldll~
10758       $RM \$dlpath'
10759    shlibpath_overrides_runpath=yes
10760    dynamic_linker='Win32 link.exe'
10761    ;;
10762
10763  *)
10764    # Assume MSVC wrapper
10765    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10766    dynamic_linker='Win32 ld.exe'
10767    ;;
10768  esac
10769  # FIXME: first we should search . and the directory the executable is in
10770  shlibpath_var=PATH
10771  ;;
10772
10773darwin* | rhapsody*)
10774  dynamic_linker="$host_os dyld"
10775  version_type=darwin
10776  need_lib_prefix=no
10777  need_version=no
10778  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10779  soname_spec='$libname$release$major$shared_ext'
10780  shlibpath_overrides_runpath=yes
10781  shlibpath_var=DYLD_LIBRARY_PATH
10782  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10783
10784  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10785  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10786  ;;
10787
10788dgux*)
10789  version_type=linux # correct to gnu/linux during the next big refactor
10790  need_lib_prefix=no
10791  need_version=no
10792  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10793  soname_spec='$libname$release$shared_ext$major'
10794  shlibpath_var=LD_LIBRARY_PATH
10795  ;;
10796
10797freebsd* | dragonfly*)
10798  # DragonFly does not have aout.  When/if they implement a new
10799  # versioning mechanism, adjust this.
10800  if test -x /usr/bin/objformat; then
10801    objformat=`/usr/bin/objformat`
10802  else
10803    case $host_os in
10804    freebsd[23].*) objformat=aout ;;
10805    *) objformat=elf ;;
10806    esac
10807  fi
10808  version_type=freebsd-$objformat
10809  case $version_type in
10810    freebsd-elf*)
10811      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10812      soname_spec='$libname$release$shared_ext$major'
10813      need_version=no
10814      need_lib_prefix=no
10815      ;;
10816    freebsd-*)
10817      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10818      need_version=yes
10819      ;;
10820  esac
10821  shlibpath_var=LD_LIBRARY_PATH
10822  case $host_os in
10823  freebsd2.*)
10824    shlibpath_overrides_runpath=yes
10825    ;;
10826  freebsd3.[01]* | freebsdelf3.[01]*)
10827    shlibpath_overrides_runpath=yes
10828    hardcode_into_libs=yes
10829    ;;
10830  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10831  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10832    shlibpath_overrides_runpath=no
10833    hardcode_into_libs=yes
10834    ;;
10835  *) # from 4.6 on, and DragonFly
10836    shlibpath_overrides_runpath=yes
10837    hardcode_into_libs=yes
10838    ;;
10839  esac
10840  ;;
10841
10842haiku*)
10843  version_type=linux # correct to gnu/linux during the next big refactor
10844  need_lib_prefix=no
10845  need_version=no
10846  dynamic_linker="$host_os runtime_loader"
10847  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10848  soname_spec='$libname$release$shared_ext$major'
10849  shlibpath_var=LIBRARY_PATH
10850  shlibpath_overrides_runpath=no
10851  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10852  hardcode_into_libs=yes
10853  ;;
10854
10855hpux9* | hpux10* | hpux11*)
10856  # Give a soname corresponding to the major version so that dld.sl refuses to
10857  # link against other versions.
10858  version_type=sunos
10859  need_lib_prefix=no
10860  need_version=no
10861  case $host_cpu in
10862  ia64*)
10863    shrext_cmds='.so'
10864    hardcode_into_libs=yes
10865    dynamic_linker="$host_os dld.so"
10866    shlibpath_var=LD_LIBRARY_PATH
10867    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10868    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10869    soname_spec='$libname$release$shared_ext$major'
10870    if test 32 = "$HPUX_IA64_MODE"; then
10871      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10872      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10873    else
10874      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10875      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10876    fi
10877    ;;
10878  hppa*64*)
10879    shrext_cmds='.sl'
10880    hardcode_into_libs=yes
10881    dynamic_linker="$host_os dld.sl"
10882    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10883    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10884    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10885    soname_spec='$libname$release$shared_ext$major'
10886    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10887    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10888    ;;
10889  *)
10890    shrext_cmds='.sl'
10891    dynamic_linker="$host_os dld.sl"
10892    shlibpath_var=SHLIB_PATH
10893    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10894    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10895    soname_spec='$libname$release$shared_ext$major'
10896    ;;
10897  esac
10898  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10899  postinstall_cmds='chmod 555 $lib'
10900  # or fails outright, so override atomically:
10901  install_override_mode=555
10902  ;;
10903
10904interix[3-9]*)
10905  version_type=linux # correct to gnu/linux during the next big refactor
10906  need_lib_prefix=no
10907  need_version=no
10908  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10909  soname_spec='$libname$release$shared_ext$major'
10910  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10911  shlibpath_var=LD_LIBRARY_PATH
10912  shlibpath_overrides_runpath=no
10913  hardcode_into_libs=yes
10914  ;;
10915
10916irix5* | irix6* | nonstopux*)
10917  case $host_os in
10918    nonstopux*) version_type=nonstopux ;;
10919    *)
10920	if test yes = "$lt_cv_prog_gnu_ld"; then
10921		version_type=linux # correct to gnu/linux during the next big refactor
10922	else
10923		version_type=irix
10924	fi ;;
10925  esac
10926  need_lib_prefix=no
10927  need_version=no
10928  soname_spec='$libname$release$shared_ext$major'
10929  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10930  case $host_os in
10931  irix5* | nonstopux*)
10932    libsuff= shlibsuff=
10933    ;;
10934  *)
10935    case $LD in # libtool.m4 will add one of these switches to LD
10936    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10937      libsuff= shlibsuff= libmagic=32-bit;;
10938    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10939      libsuff=32 shlibsuff=N32 libmagic=N32;;
10940    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10941      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10942    *) libsuff= shlibsuff= libmagic=never-match;;
10943    esac
10944    ;;
10945  esac
10946  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10947  shlibpath_overrides_runpath=no
10948  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10949  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10950  hardcode_into_libs=yes
10951  ;;
10952
10953# No shared lib support for Linux oldld, aout, or coff.
10954linux*oldld* | linux*aout* | linux*coff*)
10955  dynamic_linker=no
10956  ;;
10957
10958linux*android*)
10959  version_type=none # Android doesn't support versioned libraries.
10960  need_lib_prefix=no
10961  need_version=no
10962  library_names_spec='$libname$release$shared_ext'
10963  soname_spec='$libname$release$shared_ext'
10964  finish_cmds=
10965  shlibpath_var=LD_LIBRARY_PATH
10966  shlibpath_overrides_runpath=yes
10967
10968  # This implies no fast_install, which is unacceptable.
10969  # Some rework will be needed to allow for fast_install
10970  # before this can be enabled.
10971  hardcode_into_libs=yes
10972
10973  dynamic_linker='Android linker'
10974  # Don't embed -rpath directories since the linker doesn't support them.
10975  hardcode_libdir_flag_spec='-L$libdir'
10976  ;;
10977
10978# This must be glibc/ELF.
10979linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10980  version_type=linux # correct to gnu/linux during the next big refactor
10981  need_lib_prefix=no
10982  need_version=no
10983  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10984  soname_spec='$libname$release$shared_ext$major'
10985  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10986  shlibpath_var=LD_LIBRARY_PATH
10987  shlibpath_overrides_runpath=no
10988
10989  # Some binutils ld are patched to set DT_RUNPATH
10990  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10991  $as_echo_n "(cached) " >&6
10992else
10993  lt_cv_shlibpath_overrides_runpath=no
10994    save_LDFLAGS=$LDFLAGS
10995    save_libdir=$libdir
10996    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10997	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10998    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10999/* end confdefs.h.  */
11000
11001int
11002main ()
11003{
11004
11005  ;
11006  return 0;
11007}
11008_ACEOF
11009if ac_fn_c_try_link "$LINENO"; then :
11010  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11011  lt_cv_shlibpath_overrides_runpath=yes
11012fi
11013fi
11014rm -f core conftest.err conftest.$ac_objext \
11015    conftest$ac_exeext conftest.$ac_ext
11016    LDFLAGS=$save_LDFLAGS
11017    libdir=$save_libdir
11018
11019fi
11020
11021  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11022
11023  # This implies no fast_install, which is unacceptable.
11024  # Some rework will be needed to allow for fast_install
11025  # before this can be enabled.
11026  hardcode_into_libs=yes
11027
11028  # Add ABI-specific directories to the system library path.
11029  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11030
11031  # Ideally, we could use ldconfig to report *all* directores which are
11032  # searched for libraries, however this is still not possible.  Aside from not
11033  # being certain /sbin/ldconfig is available, command
11034  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11035  # even though it is searched at run-time.  Try to do the best guess by
11036  # appending ld.so.conf contents (and includes) to the search path.
11037  if test -f /etc/ld.so.conf; then
11038    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' ' '`
11039    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11040  fi
11041
11042  # We used to test for /lib/ld.so.1 and disable shared libraries on
11043  # powerpc, because MkLinux only supported shared libraries with the
11044  # GNU dynamic linker.  Since this was broken with cross compilers,
11045  # most powerpc-linux boxes support dynamic linking these days and
11046  # people can always --disable-shared, the test was removed, and we
11047  # assume the GNU/Linux dynamic linker is in use.
11048  dynamic_linker='GNU/Linux ld.so'
11049  ;;
11050
11051netbsd*)
11052  version_type=sunos
11053  need_lib_prefix=no
11054  need_version=no
11055  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11056    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11057    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11058    dynamic_linker='NetBSD (a.out) ld.so'
11059  else
11060    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11061    soname_spec='$libname$release$shared_ext$major'
11062    dynamic_linker='NetBSD ld.elf_so'
11063  fi
11064  shlibpath_var=LD_LIBRARY_PATH
11065  shlibpath_overrides_runpath=yes
11066  hardcode_into_libs=yes
11067  ;;
11068
11069newsos6)
11070  version_type=linux # correct to gnu/linux during the next big refactor
11071  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11072  shlibpath_var=LD_LIBRARY_PATH
11073  shlibpath_overrides_runpath=yes
11074  ;;
11075
11076*nto* | *qnx*)
11077  version_type=qnx
11078  need_lib_prefix=no
11079  need_version=no
11080  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11081  soname_spec='$libname$release$shared_ext$major'
11082  shlibpath_var=LD_LIBRARY_PATH
11083  shlibpath_overrides_runpath=no
11084  hardcode_into_libs=yes
11085  dynamic_linker='ldqnx.so'
11086  ;;
11087
11088openbsd* | bitrig*)
11089  version_type=sunos
11090  sys_lib_dlsearch_path_spec=/usr/lib
11091  need_lib_prefix=no
11092  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11093    need_version=no
11094  else
11095    need_version=yes
11096  fi
11097  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11098  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11099  shlibpath_var=LD_LIBRARY_PATH
11100  shlibpath_overrides_runpath=yes
11101  ;;
11102
11103os2*)
11104  libname_spec='$name'
11105  version_type=windows
11106  shrext_cmds=.dll
11107  need_version=no
11108  need_lib_prefix=no
11109  # OS/2 can only load a DLL with a base name of 8 characters or less.
11110  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11111    v=$($ECHO $release$versuffix | tr -d .-);
11112    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11113    $ECHO $n$v`$shared_ext'
11114  library_names_spec='${libname}_dll.$libext'
11115  dynamic_linker='OS/2 ld.exe'
11116  shlibpath_var=BEGINLIBPATH
11117  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11118  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11119  postinstall_cmds='base_file=`basename \$file`~
11120    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11121    dldir=$destdir/`dirname \$dlpath`~
11122    test -d \$dldir || mkdir -p \$dldir~
11123    $install_prog $dir/$dlname \$dldir/$dlname~
11124    chmod a+x \$dldir/$dlname~
11125    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11126      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11127    fi'
11128  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11129    dlpath=$dir/\$dldll~
11130    $RM \$dlpath'
11131  ;;
11132
11133osf3* | osf4* | osf5*)
11134  version_type=osf
11135  need_lib_prefix=no
11136  need_version=no
11137  soname_spec='$libname$release$shared_ext$major'
11138  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11139  shlibpath_var=LD_LIBRARY_PATH
11140  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11141  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11142  ;;
11143
11144rdos*)
11145  dynamic_linker=no
11146  ;;
11147
11148solaris*)
11149  version_type=linux # correct to gnu/linux during the next big refactor
11150  need_lib_prefix=no
11151  need_version=no
11152  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11153  soname_spec='$libname$release$shared_ext$major'
11154  shlibpath_var=LD_LIBRARY_PATH
11155  shlibpath_overrides_runpath=yes
11156  hardcode_into_libs=yes
11157  # ldd complains unless libraries are executable
11158  postinstall_cmds='chmod +x $lib'
11159  ;;
11160
11161sunos4*)
11162  version_type=sunos
11163  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11164  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11165  shlibpath_var=LD_LIBRARY_PATH
11166  shlibpath_overrides_runpath=yes
11167  if test yes = "$with_gnu_ld"; then
11168    need_lib_prefix=no
11169  fi
11170  need_version=yes
11171  ;;
11172
11173sysv4 | sysv4.3*)
11174  version_type=linux # correct to gnu/linux during the next big refactor
11175  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11176  soname_spec='$libname$release$shared_ext$major'
11177  shlibpath_var=LD_LIBRARY_PATH
11178  case $host_vendor in
11179    sni)
11180      shlibpath_overrides_runpath=no
11181      need_lib_prefix=no
11182      runpath_var=LD_RUN_PATH
11183      ;;
11184    siemens)
11185      need_lib_prefix=no
11186      ;;
11187    motorola)
11188      need_lib_prefix=no
11189      need_version=no
11190      shlibpath_overrides_runpath=no
11191      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11192      ;;
11193  esac
11194  ;;
11195
11196sysv4*MP*)
11197  if test -d /usr/nec; then
11198    version_type=linux # correct to gnu/linux during the next big refactor
11199    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11200    soname_spec='$libname$shared_ext.$major'
11201    shlibpath_var=LD_LIBRARY_PATH
11202  fi
11203  ;;
11204
11205sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11206  version_type=sco
11207  need_lib_prefix=no
11208  need_version=no
11209  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11210  soname_spec='$libname$release$shared_ext$major'
11211  shlibpath_var=LD_LIBRARY_PATH
11212  shlibpath_overrides_runpath=yes
11213  hardcode_into_libs=yes
11214  if test yes = "$with_gnu_ld"; then
11215    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11216  else
11217    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11218    case $host_os in
11219      sco3.2v5*)
11220        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11221	;;
11222    esac
11223  fi
11224  sys_lib_dlsearch_path_spec='/usr/lib'
11225  ;;
11226
11227tpf*)
11228  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11229  version_type=linux # correct to gnu/linux during the next big refactor
11230  need_lib_prefix=no
11231  need_version=no
11232  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11233  shlibpath_var=LD_LIBRARY_PATH
11234  shlibpath_overrides_runpath=no
11235  hardcode_into_libs=yes
11236  ;;
11237
11238uts4*)
11239  version_type=linux # correct to gnu/linux during the next big refactor
11240  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11241  soname_spec='$libname$release$shared_ext$major'
11242  shlibpath_var=LD_LIBRARY_PATH
11243  ;;
11244
11245*)
11246  dynamic_linker=no
11247  ;;
11248esac
11249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11250$as_echo "$dynamic_linker" >&6; }
11251test no = "$dynamic_linker" && can_build_shared=no
11252
11253variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11254if test yes = "$GCC"; then
11255  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11256fi
11257
11258if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11259  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11260fi
11261
11262if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11263  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11264fi
11265
11266# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11267configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11268
11269# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11270func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11271
11272# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11273configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11372$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11373hardcode_action=
11374if test -n "$hardcode_libdir_flag_spec" ||
11375   test -n "$runpath_var" ||
11376   test yes = "$hardcode_automatic"; then
11377
11378  # We can hardcode non-existent directories.
11379  if test no != "$hardcode_direct" &&
11380     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11381     # have to relink, otherwise we might link with an installed library
11382     # when we should be linking with a yet-to-be-installed one
11383     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11384     test no != "$hardcode_minus_L"; then
11385    # Linking always hardcodes the temporary library directory.
11386    hardcode_action=relink
11387  else
11388    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11389    hardcode_action=immediate
11390  fi
11391else
11392  # We cannot hardcode anything, or else we can only hardcode existing
11393  # directories.
11394  hardcode_action=unsupported
11395fi
11396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11397$as_echo "$hardcode_action" >&6; }
11398
11399if test relink = "$hardcode_action" ||
11400   test yes = "$inherit_rpath"; then
11401  # Fast installation is not supported
11402  enable_fast_install=no
11403elif test yes = "$shlibpath_overrides_runpath" ||
11404     test no = "$enable_shared"; then
11405  # Fast installation is not necessary
11406  enable_fast_install=needless
11407fi
11408
11409
11410
11411
11412
11413
11414  if test yes != "$enable_dlopen"; then
11415  enable_dlopen=unknown
11416  enable_dlopen_self=unknown
11417  enable_dlopen_self_static=unknown
11418else
11419  lt_cv_dlopen=no
11420  lt_cv_dlopen_libs=
11421
11422  case $host_os in
11423  beos*)
11424    lt_cv_dlopen=load_add_on
11425    lt_cv_dlopen_libs=
11426    lt_cv_dlopen_self=yes
11427    ;;
11428
11429  mingw* | pw32* | cegcc*)
11430    lt_cv_dlopen=LoadLibrary
11431    lt_cv_dlopen_libs=
11432    ;;
11433
11434  cygwin*)
11435    lt_cv_dlopen=dlopen
11436    lt_cv_dlopen_libs=
11437    ;;
11438
11439  darwin*)
11440    # if libdl is installed we need to link against it
11441    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11442$as_echo_n "checking for dlopen in -ldl... " >&6; }
11443if ${ac_cv_lib_dl_dlopen+:} false; then :
11444  $as_echo_n "(cached) " >&6
11445else
11446  ac_check_lib_save_LIBS=$LIBS
11447LIBS="-ldl  $LIBS"
11448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11449/* end confdefs.h.  */
11450
11451/* Override any GCC internal prototype to avoid an error.
11452   Use char because int might match the return type of a GCC
11453   builtin and then its argument prototype would still apply.  */
11454#ifdef __cplusplus
11455extern "C"
11456#endif
11457char dlopen ();
11458int
11459main ()
11460{
11461return dlopen ();
11462  ;
11463  return 0;
11464}
11465_ACEOF
11466if ac_fn_c_try_link "$LINENO"; then :
11467  ac_cv_lib_dl_dlopen=yes
11468else
11469  ac_cv_lib_dl_dlopen=no
11470fi
11471rm -f core conftest.err conftest.$ac_objext \
11472    conftest$ac_exeext conftest.$ac_ext
11473LIBS=$ac_check_lib_save_LIBS
11474fi
11475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11476$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11477if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11478  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11479else
11480
11481    lt_cv_dlopen=dyld
11482    lt_cv_dlopen_libs=
11483    lt_cv_dlopen_self=yes
11484
11485fi
11486
11487    ;;
11488
11489  tpf*)
11490    # Don't try to run any link tests for TPF.  We know it's impossible
11491    # because TPF is a cross-compiler, and we know how we open DSOs.
11492    lt_cv_dlopen=dlopen
11493    lt_cv_dlopen_libs=
11494    lt_cv_dlopen_self=no
11495    ;;
11496
11497  *)
11498    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11499if test "x$ac_cv_func_shl_load" = xyes; then :
11500  lt_cv_dlopen=shl_load
11501else
11502  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11503$as_echo_n "checking for shl_load in -ldld... " >&6; }
11504if ${ac_cv_lib_dld_shl_load+:} false; then :
11505  $as_echo_n "(cached) " >&6
11506else
11507  ac_check_lib_save_LIBS=$LIBS
11508LIBS="-ldld  $LIBS"
11509cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11510/* end confdefs.h.  */
11511
11512/* Override any GCC internal prototype to avoid an error.
11513   Use char because int might match the return type of a GCC
11514   builtin and then its argument prototype would still apply.  */
11515#ifdef __cplusplus
11516extern "C"
11517#endif
11518char shl_load ();
11519int
11520main ()
11521{
11522return shl_load ();
11523  ;
11524  return 0;
11525}
11526_ACEOF
11527if ac_fn_c_try_link "$LINENO"; then :
11528  ac_cv_lib_dld_shl_load=yes
11529else
11530  ac_cv_lib_dld_shl_load=no
11531fi
11532rm -f core conftest.err conftest.$ac_objext \
11533    conftest$ac_exeext conftest.$ac_ext
11534LIBS=$ac_check_lib_save_LIBS
11535fi
11536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11537$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11538if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11539  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11540else
11541  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11542if test "x$ac_cv_func_dlopen" = xyes; then :
11543  lt_cv_dlopen=dlopen
11544else
11545  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11546$as_echo_n "checking for dlopen in -ldl... " >&6; }
11547if ${ac_cv_lib_dl_dlopen+:} false; then :
11548  $as_echo_n "(cached) " >&6
11549else
11550  ac_check_lib_save_LIBS=$LIBS
11551LIBS="-ldl  $LIBS"
11552cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11553/* end confdefs.h.  */
11554
11555/* Override any GCC internal prototype to avoid an error.
11556   Use char because int might match the return type of a GCC
11557   builtin and then its argument prototype would still apply.  */
11558#ifdef __cplusplus
11559extern "C"
11560#endif
11561char dlopen ();
11562int
11563main ()
11564{
11565return dlopen ();
11566  ;
11567  return 0;
11568}
11569_ACEOF
11570if ac_fn_c_try_link "$LINENO"; then :
11571  ac_cv_lib_dl_dlopen=yes
11572else
11573  ac_cv_lib_dl_dlopen=no
11574fi
11575rm -f core conftest.err conftest.$ac_objext \
11576    conftest$ac_exeext conftest.$ac_ext
11577LIBS=$ac_check_lib_save_LIBS
11578fi
11579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11580$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11581if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11582  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11583else
11584  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11585$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11586if ${ac_cv_lib_svld_dlopen+:} false; then :
11587  $as_echo_n "(cached) " >&6
11588else
11589  ac_check_lib_save_LIBS=$LIBS
11590LIBS="-lsvld  $LIBS"
11591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11592/* end confdefs.h.  */
11593
11594/* Override any GCC internal prototype to avoid an error.
11595   Use char because int might match the return type of a GCC
11596   builtin and then its argument prototype would still apply.  */
11597#ifdef __cplusplus
11598extern "C"
11599#endif
11600char dlopen ();
11601int
11602main ()
11603{
11604return dlopen ();
11605  ;
11606  return 0;
11607}
11608_ACEOF
11609if ac_fn_c_try_link "$LINENO"; then :
11610  ac_cv_lib_svld_dlopen=yes
11611else
11612  ac_cv_lib_svld_dlopen=no
11613fi
11614rm -f core conftest.err conftest.$ac_objext \
11615    conftest$ac_exeext conftest.$ac_ext
11616LIBS=$ac_check_lib_save_LIBS
11617fi
11618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11619$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11620if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11621  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11622else
11623  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11624$as_echo_n "checking for dld_link in -ldld... " >&6; }
11625if ${ac_cv_lib_dld_dld_link+:} false; then :
11626  $as_echo_n "(cached) " >&6
11627else
11628  ac_check_lib_save_LIBS=$LIBS
11629LIBS="-ldld  $LIBS"
11630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11631/* end confdefs.h.  */
11632
11633/* Override any GCC internal prototype to avoid an error.
11634   Use char because int might match the return type of a GCC
11635   builtin and then its argument prototype would still apply.  */
11636#ifdef __cplusplus
11637extern "C"
11638#endif
11639char dld_link ();
11640int
11641main ()
11642{
11643return dld_link ();
11644  ;
11645  return 0;
11646}
11647_ACEOF
11648if ac_fn_c_try_link "$LINENO"; then :
11649  ac_cv_lib_dld_dld_link=yes
11650else
11651  ac_cv_lib_dld_dld_link=no
11652fi
11653rm -f core conftest.err conftest.$ac_objext \
11654    conftest$ac_exeext conftest.$ac_ext
11655LIBS=$ac_check_lib_save_LIBS
11656fi
11657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11658$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11659if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11660  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11661fi
11662
11663
11664fi
11665
11666
11667fi
11668
11669
11670fi
11671
11672
11673fi
11674
11675
11676fi
11677
11678    ;;
11679  esac
11680
11681  if test no = "$lt_cv_dlopen"; then
11682    enable_dlopen=no
11683  else
11684    enable_dlopen=yes
11685  fi
11686
11687  case $lt_cv_dlopen in
11688  dlopen)
11689    save_CPPFLAGS=$CPPFLAGS
11690    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11691
11692    save_LDFLAGS=$LDFLAGS
11693    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11694
11695    save_LIBS=$LIBS
11696    LIBS="$lt_cv_dlopen_libs $LIBS"
11697
11698    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11699$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11700if ${lt_cv_dlopen_self+:} false; then :
11701  $as_echo_n "(cached) " >&6
11702else
11703  	  if test yes = "$cross_compiling"; then :
11704  lt_cv_dlopen_self=cross
11705else
11706  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11707  lt_status=$lt_dlunknown
11708  cat > conftest.$ac_ext <<_LT_EOF
11709#line $LINENO "configure"
11710#include "confdefs.h"
11711
11712#if HAVE_DLFCN_H
11713#include <dlfcn.h>
11714#endif
11715
11716#include <stdio.h>
11717
11718#ifdef RTLD_GLOBAL
11719#  define LT_DLGLOBAL		RTLD_GLOBAL
11720#else
11721#  ifdef DL_GLOBAL
11722#    define LT_DLGLOBAL		DL_GLOBAL
11723#  else
11724#    define LT_DLGLOBAL		0
11725#  endif
11726#endif
11727
11728/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11729   find out it does not work in some platform. */
11730#ifndef LT_DLLAZY_OR_NOW
11731#  ifdef RTLD_LAZY
11732#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11733#  else
11734#    ifdef DL_LAZY
11735#      define LT_DLLAZY_OR_NOW		DL_LAZY
11736#    else
11737#      ifdef RTLD_NOW
11738#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11739#      else
11740#        ifdef DL_NOW
11741#          define LT_DLLAZY_OR_NOW	DL_NOW
11742#        else
11743#          define LT_DLLAZY_OR_NOW	0
11744#        endif
11745#      endif
11746#    endif
11747#  endif
11748#endif
11749
11750/* When -fvisibility=hidden is used, assume the code has been annotated
11751   correspondingly for the symbols needed.  */
11752#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11753int fnord () __attribute__((visibility("default")));
11754#endif
11755
11756int fnord () { return 42; }
11757int main ()
11758{
11759  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11760  int status = $lt_dlunknown;
11761
11762  if (self)
11763    {
11764      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11765      else
11766        {
11767	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11768          else puts (dlerror ());
11769	}
11770      /* dlclose (self); */
11771    }
11772  else
11773    puts (dlerror ());
11774
11775  return status;
11776}
11777_LT_EOF
11778  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11779  (eval $ac_link) 2>&5
11780  ac_status=$?
11781  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11782  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11783    (./conftest; exit; ) >&5 2>/dev/null
11784    lt_status=$?
11785    case x$lt_status in
11786      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11787      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11788      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11789    esac
11790  else :
11791    # compilation failed
11792    lt_cv_dlopen_self=no
11793  fi
11794fi
11795rm -fr conftest*
11796
11797
11798fi
11799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11800$as_echo "$lt_cv_dlopen_self" >&6; }
11801
11802    if test yes = "$lt_cv_dlopen_self"; then
11803      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11804      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11805$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11806if ${lt_cv_dlopen_self_static+:} false; then :
11807  $as_echo_n "(cached) " >&6
11808else
11809  	  if test yes = "$cross_compiling"; then :
11810  lt_cv_dlopen_self_static=cross
11811else
11812  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11813  lt_status=$lt_dlunknown
11814  cat > conftest.$ac_ext <<_LT_EOF
11815#line $LINENO "configure"
11816#include "confdefs.h"
11817
11818#if HAVE_DLFCN_H
11819#include <dlfcn.h>
11820#endif
11821
11822#include <stdio.h>
11823
11824#ifdef RTLD_GLOBAL
11825#  define LT_DLGLOBAL		RTLD_GLOBAL
11826#else
11827#  ifdef DL_GLOBAL
11828#    define LT_DLGLOBAL		DL_GLOBAL
11829#  else
11830#    define LT_DLGLOBAL		0
11831#  endif
11832#endif
11833
11834/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11835   find out it does not work in some platform. */
11836#ifndef LT_DLLAZY_OR_NOW
11837#  ifdef RTLD_LAZY
11838#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11839#  else
11840#    ifdef DL_LAZY
11841#      define LT_DLLAZY_OR_NOW		DL_LAZY
11842#    else
11843#      ifdef RTLD_NOW
11844#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11845#      else
11846#        ifdef DL_NOW
11847#          define LT_DLLAZY_OR_NOW	DL_NOW
11848#        else
11849#          define LT_DLLAZY_OR_NOW	0
11850#        endif
11851#      endif
11852#    endif
11853#  endif
11854#endif
11855
11856/* When -fvisibility=hidden is used, assume the code has been annotated
11857   correspondingly for the symbols needed.  */
11858#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11859int fnord () __attribute__((visibility("default")));
11860#endif
11861
11862int fnord () { return 42; }
11863int main ()
11864{
11865  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11866  int status = $lt_dlunknown;
11867
11868  if (self)
11869    {
11870      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11871      else
11872        {
11873	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11874          else puts (dlerror ());
11875	}
11876      /* dlclose (self); */
11877    }
11878  else
11879    puts (dlerror ());
11880
11881  return status;
11882}
11883_LT_EOF
11884  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11885  (eval $ac_link) 2>&5
11886  ac_status=$?
11887  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11888  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11889    (./conftest; exit; ) >&5 2>/dev/null
11890    lt_status=$?
11891    case x$lt_status in
11892      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11893      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11894      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11895    esac
11896  else :
11897    # compilation failed
11898    lt_cv_dlopen_self_static=no
11899  fi
11900fi
11901rm -fr conftest*
11902
11903
11904fi
11905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11906$as_echo "$lt_cv_dlopen_self_static" >&6; }
11907    fi
11908
11909    CPPFLAGS=$save_CPPFLAGS
11910    LDFLAGS=$save_LDFLAGS
11911    LIBS=$save_LIBS
11912    ;;
11913  esac
11914
11915  case $lt_cv_dlopen_self in
11916  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11917  *) enable_dlopen_self=unknown ;;
11918  esac
11919
11920  case $lt_cv_dlopen_self_static in
11921  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11922  *) enable_dlopen_self_static=unknown ;;
11923  esac
11924fi
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942striplib=
11943old_striplib=
11944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11945$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11946if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11947  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11948  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11950$as_echo "yes" >&6; }
11951else
11952# FIXME - insert some real tests, host_os isn't really good enough
11953  case $host_os in
11954  darwin*)
11955    if test -n "$STRIP"; then
11956      striplib="$STRIP -x"
11957      old_striplib="$STRIP -S"
11958      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11959$as_echo "yes" >&6; }
11960    else
11961      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11962$as_echo "no" >&6; }
11963    fi
11964    ;;
11965  *)
11966    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11967$as_echo "no" >&6; }
11968    ;;
11969  esac
11970fi
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983  # Report what library types will actually be built
11984  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11985$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11987$as_echo "$can_build_shared" >&6; }
11988
11989  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11990$as_echo_n "checking whether to build shared libraries... " >&6; }
11991  test no = "$can_build_shared" && enable_shared=no
11992
11993  # On AIX, shared libraries and static libraries use the same namespace, and
11994  # are all built from PIC.
11995  case $host_os in
11996  aix3*)
11997    test yes = "$enable_shared" && enable_static=no
11998    if test -n "$RANLIB"; then
11999      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12000      postinstall_cmds='$RANLIB $lib'
12001    fi
12002    ;;
12003
12004  aix[4-9]*)
12005    if test ia64 != "$host_cpu"; then
12006      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12007      yes,aix,yes) ;;			# shared object as lib.so file only
12008      yes,svr4,*) ;;			# shared object as lib.so archive member only
12009      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12010      esac
12011    fi
12012    ;;
12013  esac
12014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12015$as_echo "$enable_shared" >&6; }
12016
12017  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12018$as_echo_n "checking whether to build static libraries... " >&6; }
12019  # Make sure either enable_shared or enable_static is yes.
12020  test yes = "$enable_shared" || enable_static=yes
12021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12022$as_echo "$enable_static" >&6; }
12023
12024
12025
12026
12027fi
12028ac_ext=c
12029ac_cpp='$CPP $CPPFLAGS'
12030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12032ac_compiler_gnu=$ac_cv_c_compiler_gnu
12033
12034CC=$lt_save_CC
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050        ac_config_commands="$ac_config_commands libtool"
12051
12052
12053
12054
12055# Only expand once:
12056
12057
12058
12059# Require xorg-macros minimum of 1.12 for DocBook external references
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12072$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12073if ${ac_cv_prog_cc_c99+:} false; then :
12074  $as_echo_n "(cached) " >&6
12075else
12076  ac_cv_prog_cc_c99=no
12077ac_save_CC=$CC
12078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12079/* end confdefs.h.  */
12080#include <stdarg.h>
12081#include <stdbool.h>
12082#include <stdlib.h>
12083#include <wchar.h>
12084#include <stdio.h>
12085
12086// Check varargs macros.  These examples are taken from C99 6.10.3.5.
12087#define debug(...) fprintf (stderr, __VA_ARGS__)
12088#define showlist(...) puts (#__VA_ARGS__)
12089#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12090static void
12091test_varargs_macros (void)
12092{
12093  int x = 1234;
12094  int y = 5678;
12095  debug ("Flag");
12096  debug ("X = %d\n", x);
12097  showlist (The first, second, and third items.);
12098  report (x>y, "x is %d but y is %d", x, y);
12099}
12100
12101// Check long long types.
12102#define BIG64 18446744073709551615ull
12103#define BIG32 4294967295ul
12104#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12105#if !BIG_OK
12106  your preprocessor is broken;
12107#endif
12108#if BIG_OK
12109#else
12110  your preprocessor is broken;
12111#endif
12112static long long int bignum = -9223372036854775807LL;
12113static unsigned long long int ubignum = BIG64;
12114
12115struct incomplete_array
12116{
12117  int datasize;
12118  double data[];
12119};
12120
12121struct named_init {
12122  int number;
12123  const wchar_t *name;
12124  double average;
12125};
12126
12127typedef const char *ccp;
12128
12129static inline int
12130test_restrict (ccp restrict text)
12131{
12132  // See if C++-style comments work.
12133  // Iterate through items via the restricted pointer.
12134  // Also check for declarations in for loops.
12135  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12136    continue;
12137  return 0;
12138}
12139
12140// Check varargs and va_copy.
12141static void
12142test_varargs (const char *format, ...)
12143{
12144  va_list args;
12145  va_start (args, format);
12146  va_list args_copy;
12147  va_copy (args_copy, args);
12148
12149  const char *str;
12150  int number;
12151  float fnumber;
12152
12153  while (*format)
12154    {
12155      switch (*format++)
12156	{
12157	case 's': // string
12158	  str = va_arg (args_copy, const char *);
12159	  break;
12160	case 'd': // int
12161	  number = va_arg (args_copy, int);
12162	  break;
12163	case 'f': // float
12164	  fnumber = va_arg (args_copy, double);
12165	  break;
12166	default:
12167	  break;
12168	}
12169    }
12170  va_end (args_copy);
12171  va_end (args);
12172}
12173
12174int
12175main ()
12176{
12177
12178  // Check bool.
12179  _Bool success = false;
12180
12181  // Check restrict.
12182  if (test_restrict ("String literal") == 0)
12183    success = true;
12184  char *restrict newvar = "Another string";
12185
12186  // Check varargs.
12187  test_varargs ("s, d' f .", "string", 65, 34.234);
12188  test_varargs_macros ();
12189
12190  // Check flexible array members.
12191  struct incomplete_array *ia =
12192    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12193  ia->datasize = 10;
12194  for (int i = 0; i < ia->datasize; ++i)
12195    ia->data[i] = i * 1.234;
12196
12197  // Check named initializers.
12198  struct named_init ni = {
12199    .number = 34,
12200    .name = L"Test wide string",
12201    .average = 543.34343,
12202  };
12203
12204  ni.number = 58;
12205
12206  int dynamic_array[ni.number];
12207  dynamic_array[ni.number - 1] = 543;
12208
12209  // work around unused variable warnings
12210  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12211	  || dynamic_array[ni.number - 1] != 543);
12212
12213  ;
12214  return 0;
12215}
12216_ACEOF
12217for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12218do
12219  CC="$ac_save_CC $ac_arg"
12220  if ac_fn_c_try_compile "$LINENO"; then :
12221  ac_cv_prog_cc_c99=$ac_arg
12222fi
12223rm -f core conftest.err conftest.$ac_objext
12224  test "x$ac_cv_prog_cc_c99" != "xno" && break
12225done
12226rm -f conftest.$ac_ext
12227CC=$ac_save_CC
12228
12229fi
12230# AC_CACHE_VAL
12231case "x$ac_cv_prog_cc_c99" in
12232  x)
12233    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12234$as_echo "none needed" >&6; } ;;
12235  xno)
12236    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12237$as_echo "unsupported" >&6; } ;;
12238  *)
12239    CC="$CC $ac_cv_prog_cc_c99"
12240    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12241$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12242esac
12243if test "x$ac_cv_prog_cc_c99" != xno; then :
12244
12245fi
12246
12247
12248
12249
12250
12251
12252ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12253if test "x$ac_cv_have_decl___clang__" = xyes; then :
12254  CLANGCC="yes"
12255else
12256  CLANGCC="no"
12257fi
12258
12259ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12260if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12261  INTELCC="yes"
12262else
12263  INTELCC="no"
12264fi
12265
12266ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12267if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12268  SUNCC="yes"
12269else
12270  SUNCC="no"
12271fi
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12282	if test -n "$ac_tool_prefix"; then
12283  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12284set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12286$as_echo_n "checking for $ac_word... " >&6; }
12287if ${ac_cv_path_PKG_CONFIG+:} false; then :
12288  $as_echo_n "(cached) " >&6
12289else
12290  case $PKG_CONFIG in
12291  [\\/]* | ?:[\\/]*)
12292  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12293  ;;
12294  *)
12295  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12296for as_dir in $PATH
12297do
12298  IFS=$as_save_IFS
12299  test -z "$as_dir" && as_dir=.
12300    for ac_exec_ext in '' $ac_executable_extensions; do
12301  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12302    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12303    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12304    break 2
12305  fi
12306done
12307  done
12308IFS=$as_save_IFS
12309
12310  ;;
12311esac
12312fi
12313PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12314if test -n "$PKG_CONFIG"; then
12315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12316$as_echo "$PKG_CONFIG" >&6; }
12317else
12318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12319$as_echo "no" >&6; }
12320fi
12321
12322
12323fi
12324if test -z "$ac_cv_path_PKG_CONFIG"; then
12325  ac_pt_PKG_CONFIG=$PKG_CONFIG
12326  # Extract the first word of "pkg-config", so it can be a program name with args.
12327set dummy pkg-config; ac_word=$2
12328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12329$as_echo_n "checking for $ac_word... " >&6; }
12330if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12331  $as_echo_n "(cached) " >&6
12332else
12333  case $ac_pt_PKG_CONFIG in
12334  [\\/]* | ?:[\\/]*)
12335  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12336  ;;
12337  *)
12338  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12339for as_dir in $PATH
12340do
12341  IFS=$as_save_IFS
12342  test -z "$as_dir" && as_dir=.
12343    for ac_exec_ext in '' $ac_executable_extensions; do
12344  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12345    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12346    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12347    break 2
12348  fi
12349done
12350  done
12351IFS=$as_save_IFS
12352
12353  ;;
12354esac
12355fi
12356ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12357if test -n "$ac_pt_PKG_CONFIG"; then
12358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12359$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12360else
12361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12362$as_echo "no" >&6; }
12363fi
12364
12365  if test "x$ac_pt_PKG_CONFIG" = x; then
12366    PKG_CONFIG=""
12367  else
12368    case $cross_compiling:$ac_tool_warned in
12369yes:)
12370{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12371$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12372ac_tool_warned=yes ;;
12373esac
12374    PKG_CONFIG=$ac_pt_PKG_CONFIG
12375  fi
12376else
12377  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12378fi
12379
12380fi
12381if test -n "$PKG_CONFIG"; then
12382	_pkg_min_version=0.9.0
12383	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12384$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12385	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12386		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12387$as_echo "yes" >&6; }
12388	else
12389		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12390$as_echo "no" >&6; }
12391		PKG_CONFIG=""
12392	fi
12393fi
12394
12395
12396
12397
12398
12399# Check whether --enable-selective-werror was given.
12400if test "${enable_selective_werror+set}" = set; then :
12401  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12402else
12403  SELECTIVE_WERROR=yes
12404fi
12405
12406
12407
12408
12409
12410# -v is too short to test reliably with XORG_TESTSET_CFLAG
12411if test "x$SUNCC" = "xyes"; then
12412    BASE_CFLAGS="-v"
12413else
12414    BASE_CFLAGS=""
12415fi
12416
12417# This chunk of warnings were those that existed in the legacy CWARNFLAGS
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431xorg_testset_save_CFLAGS="$CFLAGS"
12432
12433if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12434	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12435	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12436$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12437if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12438  $as_echo_n "(cached) " >&6
12439else
12440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12441/* end confdefs.h.  */
12442int i;
12443_ACEOF
12444if ac_fn_c_try_compile "$LINENO"; then :
12445  xorg_cv_cc_flag_unknown_warning_option=yes
12446else
12447  xorg_cv_cc_flag_unknown_warning_option=no
12448fi
12449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12450fi
12451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12452$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12453	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12454	CFLAGS="$xorg_testset_save_CFLAGS"
12455fi
12456
12457if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12458	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12459		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12460	fi
12461	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12462	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12463$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12464if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12465  $as_echo_n "(cached) " >&6
12466else
12467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12468/* end confdefs.h.  */
12469int i;
12470_ACEOF
12471if ac_fn_c_try_compile "$LINENO"; then :
12472  xorg_cv_cc_flag_unused_command_line_argument=yes
12473else
12474  xorg_cv_cc_flag_unused_command_line_argument=no
12475fi
12476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12477fi
12478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12479$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12480	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12481	CFLAGS="$xorg_testset_save_CFLAGS"
12482fi
12483
12484found="no"
12485
12486	if test $found = "no" ; then
12487		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12488			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12489		fi
12490
12491		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12492			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12493		fi
12494
12495		CFLAGS="$CFLAGS -Wall"
12496
12497		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12498$as_echo_n "checking if $CC supports -Wall... " >&6; }
12499		cacheid=xorg_cv_cc_flag__Wall
12500		if eval \${$cacheid+:} false; then :
12501  $as_echo_n "(cached) " >&6
12502else
12503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12504/* end confdefs.h.  */
12505int i;
12506int
12507main ()
12508{
12509
12510  ;
12511  return 0;
12512}
12513_ACEOF
12514if ac_fn_c_try_link "$LINENO"; then :
12515  eval $cacheid=yes
12516else
12517  eval $cacheid=no
12518fi
12519rm -f core conftest.err conftest.$ac_objext \
12520    conftest$ac_exeext conftest.$ac_ext
12521fi
12522
12523
12524		CFLAGS="$xorg_testset_save_CFLAGS"
12525
12526		eval supported=\$$cacheid
12527		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12528$as_echo "$supported" >&6; }
12529		if test "$supported" = "yes" ; then
12530			BASE_CFLAGS="$BASE_CFLAGS -Wall"
12531			found="yes"
12532		fi
12533	fi
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549xorg_testset_save_CFLAGS="$CFLAGS"
12550
12551if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12552	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12553	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12554$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12555if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12556  $as_echo_n "(cached) " >&6
12557else
12558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12559/* end confdefs.h.  */
12560int i;
12561_ACEOF
12562if ac_fn_c_try_compile "$LINENO"; then :
12563  xorg_cv_cc_flag_unknown_warning_option=yes
12564else
12565  xorg_cv_cc_flag_unknown_warning_option=no
12566fi
12567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12568fi
12569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12570$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12571	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12572	CFLAGS="$xorg_testset_save_CFLAGS"
12573fi
12574
12575if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12576	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12577		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12578	fi
12579	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12580	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12581$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12582if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12583  $as_echo_n "(cached) " >&6
12584else
12585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12586/* end confdefs.h.  */
12587int i;
12588_ACEOF
12589if ac_fn_c_try_compile "$LINENO"; then :
12590  xorg_cv_cc_flag_unused_command_line_argument=yes
12591else
12592  xorg_cv_cc_flag_unused_command_line_argument=no
12593fi
12594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12595fi
12596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12597$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12598	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12599	CFLAGS="$xorg_testset_save_CFLAGS"
12600fi
12601
12602found="no"
12603
12604	if test $found = "no" ; then
12605		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12606			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12607		fi
12608
12609		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12610			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12611		fi
12612
12613		CFLAGS="$CFLAGS -Wpointer-arith"
12614
12615		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12616$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12617		cacheid=xorg_cv_cc_flag__Wpointer_arith
12618		if eval \${$cacheid+:} false; then :
12619  $as_echo_n "(cached) " >&6
12620else
12621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12622/* end confdefs.h.  */
12623int i;
12624int
12625main ()
12626{
12627
12628  ;
12629  return 0;
12630}
12631_ACEOF
12632if ac_fn_c_try_link "$LINENO"; then :
12633  eval $cacheid=yes
12634else
12635  eval $cacheid=no
12636fi
12637rm -f core conftest.err conftest.$ac_objext \
12638    conftest$ac_exeext conftest.$ac_ext
12639fi
12640
12641
12642		CFLAGS="$xorg_testset_save_CFLAGS"
12643
12644		eval supported=\$$cacheid
12645		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12646$as_echo "$supported" >&6; }
12647		if test "$supported" = "yes" ; then
12648			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12649			found="yes"
12650		fi
12651	fi
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667xorg_testset_save_CFLAGS="$CFLAGS"
12668
12669if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12670	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12671	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12672$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12673if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12674  $as_echo_n "(cached) " >&6
12675else
12676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12677/* end confdefs.h.  */
12678int i;
12679_ACEOF
12680if ac_fn_c_try_compile "$LINENO"; then :
12681  xorg_cv_cc_flag_unknown_warning_option=yes
12682else
12683  xorg_cv_cc_flag_unknown_warning_option=no
12684fi
12685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12686fi
12687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12688$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12689	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12690	CFLAGS="$xorg_testset_save_CFLAGS"
12691fi
12692
12693if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12694	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12695		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12696	fi
12697	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12698	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12699$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12700if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12701  $as_echo_n "(cached) " >&6
12702else
12703  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12704/* end confdefs.h.  */
12705int i;
12706_ACEOF
12707if ac_fn_c_try_compile "$LINENO"; then :
12708  xorg_cv_cc_flag_unused_command_line_argument=yes
12709else
12710  xorg_cv_cc_flag_unused_command_line_argument=no
12711fi
12712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12713fi
12714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12715$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12716	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12717	CFLAGS="$xorg_testset_save_CFLAGS"
12718fi
12719
12720found="no"
12721
12722	if test $found = "no" ; then
12723		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12724			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12725		fi
12726
12727		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12728			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12729		fi
12730
12731		CFLAGS="$CFLAGS -Wmissing-declarations"
12732
12733		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12734$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12735		cacheid=xorg_cv_cc_flag__Wmissing_declarations
12736		if eval \${$cacheid+:} false; then :
12737  $as_echo_n "(cached) " >&6
12738else
12739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12740/* end confdefs.h.  */
12741int i;
12742int
12743main ()
12744{
12745
12746  ;
12747  return 0;
12748}
12749_ACEOF
12750if ac_fn_c_try_link "$LINENO"; then :
12751  eval $cacheid=yes
12752else
12753  eval $cacheid=no
12754fi
12755rm -f core conftest.err conftest.$ac_objext \
12756    conftest$ac_exeext conftest.$ac_ext
12757fi
12758
12759
12760		CFLAGS="$xorg_testset_save_CFLAGS"
12761
12762		eval supported=\$$cacheid
12763		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12764$as_echo "$supported" >&6; }
12765		if test "$supported" = "yes" ; then
12766			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12767			found="yes"
12768		fi
12769	fi
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785xorg_testset_save_CFLAGS="$CFLAGS"
12786
12787if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12788	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12789	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12790$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12791if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12792  $as_echo_n "(cached) " >&6
12793else
12794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12795/* end confdefs.h.  */
12796int i;
12797_ACEOF
12798if ac_fn_c_try_compile "$LINENO"; then :
12799  xorg_cv_cc_flag_unknown_warning_option=yes
12800else
12801  xorg_cv_cc_flag_unknown_warning_option=no
12802fi
12803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12804fi
12805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12806$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12807	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12808	CFLAGS="$xorg_testset_save_CFLAGS"
12809fi
12810
12811if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12812	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12813		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12814	fi
12815	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12816	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12817$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12818if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12819  $as_echo_n "(cached) " >&6
12820else
12821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12822/* end confdefs.h.  */
12823int i;
12824_ACEOF
12825if ac_fn_c_try_compile "$LINENO"; then :
12826  xorg_cv_cc_flag_unused_command_line_argument=yes
12827else
12828  xorg_cv_cc_flag_unused_command_line_argument=no
12829fi
12830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12831fi
12832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12833$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12834	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12835	CFLAGS="$xorg_testset_save_CFLAGS"
12836fi
12837
12838found="no"
12839
12840	if test $found = "no" ; then
12841		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12842			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12843		fi
12844
12845		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12846			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12847		fi
12848
12849		CFLAGS="$CFLAGS -Wformat=2"
12850
12851		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12852$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12853		cacheid=xorg_cv_cc_flag__Wformat_2
12854		if eval \${$cacheid+:} false; then :
12855  $as_echo_n "(cached) " >&6
12856else
12857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12858/* end confdefs.h.  */
12859int i;
12860int
12861main ()
12862{
12863
12864  ;
12865  return 0;
12866}
12867_ACEOF
12868if ac_fn_c_try_link "$LINENO"; then :
12869  eval $cacheid=yes
12870else
12871  eval $cacheid=no
12872fi
12873rm -f core conftest.err conftest.$ac_objext \
12874    conftest$ac_exeext conftest.$ac_ext
12875fi
12876
12877
12878		CFLAGS="$xorg_testset_save_CFLAGS"
12879
12880		eval supported=\$$cacheid
12881		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12882$as_echo "$supported" >&6; }
12883		if test "$supported" = "yes" ; then
12884			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12885			found="yes"
12886		fi
12887	fi
12888
12889	if test $found = "no" ; then
12890		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12891			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12892		fi
12893
12894		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12895			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12896		fi
12897
12898		CFLAGS="$CFLAGS -Wformat"
12899
12900		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12901$as_echo_n "checking if $CC supports -Wformat... " >&6; }
12902		cacheid=xorg_cv_cc_flag__Wformat
12903		if eval \${$cacheid+:} false; then :
12904  $as_echo_n "(cached) " >&6
12905else
12906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12907/* end confdefs.h.  */
12908int i;
12909int
12910main ()
12911{
12912
12913  ;
12914  return 0;
12915}
12916_ACEOF
12917if ac_fn_c_try_link "$LINENO"; then :
12918  eval $cacheid=yes
12919else
12920  eval $cacheid=no
12921fi
12922rm -f core conftest.err conftest.$ac_objext \
12923    conftest$ac_exeext conftest.$ac_ext
12924fi
12925
12926
12927		CFLAGS="$xorg_testset_save_CFLAGS"
12928
12929		eval supported=\$$cacheid
12930		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12931$as_echo "$supported" >&6; }
12932		if test "$supported" = "yes" ; then
12933			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12934			found="yes"
12935		fi
12936	fi
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954xorg_testset_save_CFLAGS="$CFLAGS"
12955
12956if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12957	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12958	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12959$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12960if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12961  $as_echo_n "(cached) " >&6
12962else
12963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12964/* end confdefs.h.  */
12965int i;
12966_ACEOF
12967if ac_fn_c_try_compile "$LINENO"; then :
12968  xorg_cv_cc_flag_unknown_warning_option=yes
12969else
12970  xorg_cv_cc_flag_unknown_warning_option=no
12971fi
12972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12973fi
12974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12975$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12976	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12977	CFLAGS="$xorg_testset_save_CFLAGS"
12978fi
12979
12980if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12981	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12982		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12983	fi
12984	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12985	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12986$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12987if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12988  $as_echo_n "(cached) " >&6
12989else
12990  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12991/* end confdefs.h.  */
12992int i;
12993_ACEOF
12994if ac_fn_c_try_compile "$LINENO"; then :
12995  xorg_cv_cc_flag_unused_command_line_argument=yes
12996else
12997  xorg_cv_cc_flag_unused_command_line_argument=no
12998fi
12999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13000fi
13001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13002$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13003	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13004	CFLAGS="$xorg_testset_save_CFLAGS"
13005fi
13006
13007found="no"
13008
13009	if test $found = "no" ; then
13010		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13011			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13012		fi
13013
13014		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13015			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13016		fi
13017
13018		CFLAGS="$CFLAGS -Wstrict-prototypes"
13019
13020		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13021$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
13022		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13023		if eval \${$cacheid+:} false; then :
13024  $as_echo_n "(cached) " >&6
13025else
13026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13027/* end confdefs.h.  */
13028int i;
13029int
13030main ()
13031{
13032
13033  ;
13034  return 0;
13035}
13036_ACEOF
13037if ac_fn_c_try_link "$LINENO"; then :
13038  eval $cacheid=yes
13039else
13040  eval $cacheid=no
13041fi
13042rm -f core conftest.err conftest.$ac_objext \
13043    conftest$ac_exeext conftest.$ac_ext
13044fi
13045
13046
13047		CFLAGS="$xorg_testset_save_CFLAGS"
13048
13049		eval supported=\$$cacheid
13050		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13051$as_echo "$supported" >&6; }
13052		if test "$supported" = "yes" ; then
13053			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13054			found="yes"
13055		fi
13056	fi
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072xorg_testset_save_CFLAGS="$CFLAGS"
13073
13074if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13075	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13076	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13077$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13078if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13079  $as_echo_n "(cached) " >&6
13080else
13081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13082/* end confdefs.h.  */
13083int i;
13084_ACEOF
13085if ac_fn_c_try_compile "$LINENO"; then :
13086  xorg_cv_cc_flag_unknown_warning_option=yes
13087else
13088  xorg_cv_cc_flag_unknown_warning_option=no
13089fi
13090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13091fi
13092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13093$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13094	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13095	CFLAGS="$xorg_testset_save_CFLAGS"
13096fi
13097
13098if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13099	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13100		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13101	fi
13102	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13103	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13104$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13105if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13106  $as_echo_n "(cached) " >&6
13107else
13108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13109/* end confdefs.h.  */
13110int i;
13111_ACEOF
13112if ac_fn_c_try_compile "$LINENO"; then :
13113  xorg_cv_cc_flag_unused_command_line_argument=yes
13114else
13115  xorg_cv_cc_flag_unused_command_line_argument=no
13116fi
13117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13118fi
13119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13120$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13121	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13122	CFLAGS="$xorg_testset_save_CFLAGS"
13123fi
13124
13125found="no"
13126
13127	if test $found = "no" ; then
13128		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13129			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13130		fi
13131
13132		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13133			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13134		fi
13135
13136		CFLAGS="$CFLAGS -Wmissing-prototypes"
13137
13138		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13139$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13140		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13141		if eval \${$cacheid+:} false; then :
13142  $as_echo_n "(cached) " >&6
13143else
13144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13145/* end confdefs.h.  */
13146int i;
13147int
13148main ()
13149{
13150
13151  ;
13152  return 0;
13153}
13154_ACEOF
13155if ac_fn_c_try_link "$LINENO"; then :
13156  eval $cacheid=yes
13157else
13158  eval $cacheid=no
13159fi
13160rm -f core conftest.err conftest.$ac_objext \
13161    conftest$ac_exeext conftest.$ac_ext
13162fi
13163
13164
13165		CFLAGS="$xorg_testset_save_CFLAGS"
13166
13167		eval supported=\$$cacheid
13168		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13169$as_echo "$supported" >&6; }
13170		if test "$supported" = "yes" ; then
13171			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13172			found="yes"
13173		fi
13174	fi
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190xorg_testset_save_CFLAGS="$CFLAGS"
13191
13192if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13193	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13194	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13195$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13196if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13197  $as_echo_n "(cached) " >&6
13198else
13199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13200/* end confdefs.h.  */
13201int i;
13202_ACEOF
13203if ac_fn_c_try_compile "$LINENO"; then :
13204  xorg_cv_cc_flag_unknown_warning_option=yes
13205else
13206  xorg_cv_cc_flag_unknown_warning_option=no
13207fi
13208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13209fi
13210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13211$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13212	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13213	CFLAGS="$xorg_testset_save_CFLAGS"
13214fi
13215
13216if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13217	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13218		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13219	fi
13220	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13221	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13222$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13223if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13224  $as_echo_n "(cached) " >&6
13225else
13226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13227/* end confdefs.h.  */
13228int i;
13229_ACEOF
13230if ac_fn_c_try_compile "$LINENO"; then :
13231  xorg_cv_cc_flag_unused_command_line_argument=yes
13232else
13233  xorg_cv_cc_flag_unused_command_line_argument=no
13234fi
13235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13236fi
13237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13238$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13239	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13240	CFLAGS="$xorg_testset_save_CFLAGS"
13241fi
13242
13243found="no"
13244
13245	if test $found = "no" ; then
13246		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13247			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13248		fi
13249
13250		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13251			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13252		fi
13253
13254		CFLAGS="$CFLAGS -Wnested-externs"
13255
13256		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13257$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13258		cacheid=xorg_cv_cc_flag__Wnested_externs
13259		if eval \${$cacheid+:} false; then :
13260  $as_echo_n "(cached) " >&6
13261else
13262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13263/* end confdefs.h.  */
13264int i;
13265int
13266main ()
13267{
13268
13269  ;
13270  return 0;
13271}
13272_ACEOF
13273if ac_fn_c_try_link "$LINENO"; then :
13274  eval $cacheid=yes
13275else
13276  eval $cacheid=no
13277fi
13278rm -f core conftest.err conftest.$ac_objext \
13279    conftest$ac_exeext conftest.$ac_ext
13280fi
13281
13282
13283		CFLAGS="$xorg_testset_save_CFLAGS"
13284
13285		eval supported=\$$cacheid
13286		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13287$as_echo "$supported" >&6; }
13288		if test "$supported" = "yes" ; then
13289			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13290			found="yes"
13291		fi
13292	fi
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308xorg_testset_save_CFLAGS="$CFLAGS"
13309
13310if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13311	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13312	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13313$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13314if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13315  $as_echo_n "(cached) " >&6
13316else
13317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13318/* end confdefs.h.  */
13319int i;
13320_ACEOF
13321if ac_fn_c_try_compile "$LINENO"; then :
13322  xorg_cv_cc_flag_unknown_warning_option=yes
13323else
13324  xorg_cv_cc_flag_unknown_warning_option=no
13325fi
13326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13327fi
13328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13329$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13330	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13331	CFLAGS="$xorg_testset_save_CFLAGS"
13332fi
13333
13334if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13335	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13336		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13337	fi
13338	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13339	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13340$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13341if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13342  $as_echo_n "(cached) " >&6
13343else
13344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13345/* end confdefs.h.  */
13346int i;
13347_ACEOF
13348if ac_fn_c_try_compile "$LINENO"; then :
13349  xorg_cv_cc_flag_unused_command_line_argument=yes
13350else
13351  xorg_cv_cc_flag_unused_command_line_argument=no
13352fi
13353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13354fi
13355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13356$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13357	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13358	CFLAGS="$xorg_testset_save_CFLAGS"
13359fi
13360
13361found="no"
13362
13363	if test $found = "no" ; then
13364		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13365			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13366		fi
13367
13368		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13369			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13370		fi
13371
13372		CFLAGS="$CFLAGS -Wbad-function-cast"
13373
13374		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13375$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13376		cacheid=xorg_cv_cc_flag__Wbad_function_cast
13377		if eval \${$cacheid+:} false; then :
13378  $as_echo_n "(cached) " >&6
13379else
13380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13381/* end confdefs.h.  */
13382int i;
13383int
13384main ()
13385{
13386
13387  ;
13388  return 0;
13389}
13390_ACEOF
13391if ac_fn_c_try_link "$LINENO"; then :
13392  eval $cacheid=yes
13393else
13394  eval $cacheid=no
13395fi
13396rm -f core conftest.err conftest.$ac_objext \
13397    conftest$ac_exeext conftest.$ac_ext
13398fi
13399
13400
13401		CFLAGS="$xorg_testset_save_CFLAGS"
13402
13403		eval supported=\$$cacheid
13404		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13405$as_echo "$supported" >&6; }
13406		if test "$supported" = "yes" ; then
13407			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13408			found="yes"
13409		fi
13410	fi
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426xorg_testset_save_CFLAGS="$CFLAGS"
13427
13428if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13429	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13430	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13431$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13432if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13433  $as_echo_n "(cached) " >&6
13434else
13435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13436/* end confdefs.h.  */
13437int i;
13438_ACEOF
13439if ac_fn_c_try_compile "$LINENO"; then :
13440  xorg_cv_cc_flag_unknown_warning_option=yes
13441else
13442  xorg_cv_cc_flag_unknown_warning_option=no
13443fi
13444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13445fi
13446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13447$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13448	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13449	CFLAGS="$xorg_testset_save_CFLAGS"
13450fi
13451
13452if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13453	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13454		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13455	fi
13456	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13457	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13458$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13459if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13460  $as_echo_n "(cached) " >&6
13461else
13462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13463/* end confdefs.h.  */
13464int i;
13465_ACEOF
13466if ac_fn_c_try_compile "$LINENO"; then :
13467  xorg_cv_cc_flag_unused_command_line_argument=yes
13468else
13469  xorg_cv_cc_flag_unused_command_line_argument=no
13470fi
13471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13472fi
13473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13474$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13475	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13476	CFLAGS="$xorg_testset_save_CFLAGS"
13477fi
13478
13479found="no"
13480
13481	if test $found = "no" ; then
13482		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13483			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13484		fi
13485
13486		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13487			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13488		fi
13489
13490		CFLAGS="$CFLAGS -Wold-style-definition"
13491
13492		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13493$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13494		cacheid=xorg_cv_cc_flag__Wold_style_definition
13495		if eval \${$cacheid+:} false; then :
13496  $as_echo_n "(cached) " >&6
13497else
13498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13499/* end confdefs.h.  */
13500int i;
13501int
13502main ()
13503{
13504
13505  ;
13506  return 0;
13507}
13508_ACEOF
13509if ac_fn_c_try_link "$LINENO"; then :
13510  eval $cacheid=yes
13511else
13512  eval $cacheid=no
13513fi
13514rm -f core conftest.err conftest.$ac_objext \
13515    conftest$ac_exeext conftest.$ac_ext
13516fi
13517
13518
13519		CFLAGS="$xorg_testset_save_CFLAGS"
13520
13521		eval supported=\$$cacheid
13522		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13523$as_echo "$supported" >&6; }
13524		if test "$supported" = "yes" ; then
13525			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13526			found="yes"
13527		fi
13528	fi
13529
13530	if test $found = "no" ; then
13531		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13532			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13533		fi
13534
13535		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13536			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13537		fi
13538
13539		CFLAGS="$CFLAGS -fd"
13540
13541		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13542$as_echo_n "checking if $CC supports -fd... " >&6; }
13543		cacheid=xorg_cv_cc_flag__fd
13544		if eval \${$cacheid+:} false; then :
13545  $as_echo_n "(cached) " >&6
13546else
13547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13548/* end confdefs.h.  */
13549int i;
13550int
13551main ()
13552{
13553
13554  ;
13555  return 0;
13556}
13557_ACEOF
13558if ac_fn_c_try_link "$LINENO"; then :
13559  eval $cacheid=yes
13560else
13561  eval $cacheid=no
13562fi
13563rm -f core conftest.err conftest.$ac_objext \
13564    conftest$ac_exeext conftest.$ac_ext
13565fi
13566
13567
13568		CFLAGS="$xorg_testset_save_CFLAGS"
13569
13570		eval supported=\$$cacheid
13571		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13572$as_echo "$supported" >&6; }
13573		if test "$supported" = "yes" ; then
13574			BASE_CFLAGS="$BASE_CFLAGS -fd"
13575			found="yes"
13576		fi
13577	fi
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593xorg_testset_save_CFLAGS="$CFLAGS"
13594
13595if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13596	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13597	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13598$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13599if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13600  $as_echo_n "(cached) " >&6
13601else
13602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13603/* end confdefs.h.  */
13604int i;
13605_ACEOF
13606if ac_fn_c_try_compile "$LINENO"; then :
13607  xorg_cv_cc_flag_unknown_warning_option=yes
13608else
13609  xorg_cv_cc_flag_unknown_warning_option=no
13610fi
13611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13612fi
13613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13614$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13615	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13616	CFLAGS="$xorg_testset_save_CFLAGS"
13617fi
13618
13619if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13620	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13621		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13622	fi
13623	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13624	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13625$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13626if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13627  $as_echo_n "(cached) " >&6
13628else
13629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13630/* end confdefs.h.  */
13631int i;
13632_ACEOF
13633if ac_fn_c_try_compile "$LINENO"; then :
13634  xorg_cv_cc_flag_unused_command_line_argument=yes
13635else
13636  xorg_cv_cc_flag_unused_command_line_argument=no
13637fi
13638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13639fi
13640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13641$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13642	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13643	CFLAGS="$xorg_testset_save_CFLAGS"
13644fi
13645
13646found="no"
13647
13648	if test $found = "no" ; then
13649		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13650			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13651		fi
13652
13653		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13654			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13655		fi
13656
13657		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13658
13659		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13660$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13661		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13662		if eval \${$cacheid+:} false; then :
13663  $as_echo_n "(cached) " >&6
13664else
13665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13666/* end confdefs.h.  */
13667int i;
13668int
13669main ()
13670{
13671
13672  ;
13673  return 0;
13674}
13675_ACEOF
13676if ac_fn_c_try_link "$LINENO"; then :
13677  eval $cacheid=yes
13678else
13679  eval $cacheid=no
13680fi
13681rm -f core conftest.err conftest.$ac_objext \
13682    conftest$ac_exeext conftest.$ac_ext
13683fi
13684
13685
13686		CFLAGS="$xorg_testset_save_CFLAGS"
13687
13688		eval supported=\$$cacheid
13689		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13690$as_echo "$supported" >&6; }
13691		if test "$supported" = "yes" ; then
13692			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13693			found="yes"
13694		fi
13695	fi
13696
13697
13698
13699
13700
13701# This chunk adds additional warnings that could catch undesired effects.
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715xorg_testset_save_CFLAGS="$CFLAGS"
13716
13717if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13718	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13719	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13720$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13721if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13722  $as_echo_n "(cached) " >&6
13723else
13724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13725/* end confdefs.h.  */
13726int i;
13727_ACEOF
13728if ac_fn_c_try_compile "$LINENO"; then :
13729  xorg_cv_cc_flag_unknown_warning_option=yes
13730else
13731  xorg_cv_cc_flag_unknown_warning_option=no
13732fi
13733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13734fi
13735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13736$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13737	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13738	CFLAGS="$xorg_testset_save_CFLAGS"
13739fi
13740
13741if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13742	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13743		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13744	fi
13745	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13746	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13747$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13748if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13749  $as_echo_n "(cached) " >&6
13750else
13751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13752/* end confdefs.h.  */
13753int i;
13754_ACEOF
13755if ac_fn_c_try_compile "$LINENO"; then :
13756  xorg_cv_cc_flag_unused_command_line_argument=yes
13757else
13758  xorg_cv_cc_flag_unused_command_line_argument=no
13759fi
13760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13761fi
13762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13763$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13764	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13765	CFLAGS="$xorg_testset_save_CFLAGS"
13766fi
13767
13768found="no"
13769
13770	if test $found = "no" ; then
13771		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13772			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13773		fi
13774
13775		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13776			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13777		fi
13778
13779		CFLAGS="$CFLAGS -Wunused"
13780
13781		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13782$as_echo_n "checking if $CC supports -Wunused... " >&6; }
13783		cacheid=xorg_cv_cc_flag__Wunused
13784		if eval \${$cacheid+:} false; then :
13785  $as_echo_n "(cached) " >&6
13786else
13787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13788/* end confdefs.h.  */
13789int i;
13790int
13791main ()
13792{
13793
13794  ;
13795  return 0;
13796}
13797_ACEOF
13798if ac_fn_c_try_link "$LINENO"; then :
13799  eval $cacheid=yes
13800else
13801  eval $cacheid=no
13802fi
13803rm -f core conftest.err conftest.$ac_objext \
13804    conftest$ac_exeext conftest.$ac_ext
13805fi
13806
13807
13808		CFLAGS="$xorg_testset_save_CFLAGS"
13809
13810		eval supported=\$$cacheid
13811		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13812$as_echo "$supported" >&6; }
13813		if test "$supported" = "yes" ; then
13814			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13815			found="yes"
13816		fi
13817	fi
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833xorg_testset_save_CFLAGS="$CFLAGS"
13834
13835if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13836	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13837	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13838$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13839if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13840  $as_echo_n "(cached) " >&6
13841else
13842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13843/* end confdefs.h.  */
13844int i;
13845_ACEOF
13846if ac_fn_c_try_compile "$LINENO"; then :
13847  xorg_cv_cc_flag_unknown_warning_option=yes
13848else
13849  xorg_cv_cc_flag_unknown_warning_option=no
13850fi
13851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13852fi
13853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13854$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13855	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13856	CFLAGS="$xorg_testset_save_CFLAGS"
13857fi
13858
13859if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13860	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13861		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13862	fi
13863	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13864	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13865$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13866if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13867  $as_echo_n "(cached) " >&6
13868else
13869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13870/* end confdefs.h.  */
13871int i;
13872_ACEOF
13873if ac_fn_c_try_compile "$LINENO"; then :
13874  xorg_cv_cc_flag_unused_command_line_argument=yes
13875else
13876  xorg_cv_cc_flag_unused_command_line_argument=no
13877fi
13878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13879fi
13880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13881$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13882	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13883	CFLAGS="$xorg_testset_save_CFLAGS"
13884fi
13885
13886found="no"
13887
13888	if test $found = "no" ; then
13889		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13890			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13891		fi
13892
13893		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13894			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13895		fi
13896
13897		CFLAGS="$CFLAGS -Wuninitialized"
13898
13899		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13900$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13901		cacheid=xorg_cv_cc_flag__Wuninitialized
13902		if eval \${$cacheid+:} false; then :
13903  $as_echo_n "(cached) " >&6
13904else
13905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13906/* end confdefs.h.  */
13907int i;
13908int
13909main ()
13910{
13911
13912  ;
13913  return 0;
13914}
13915_ACEOF
13916if ac_fn_c_try_link "$LINENO"; then :
13917  eval $cacheid=yes
13918else
13919  eval $cacheid=no
13920fi
13921rm -f core conftest.err conftest.$ac_objext \
13922    conftest$ac_exeext conftest.$ac_ext
13923fi
13924
13925
13926		CFLAGS="$xorg_testset_save_CFLAGS"
13927
13928		eval supported=\$$cacheid
13929		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13930$as_echo "$supported" >&6; }
13931		if test "$supported" = "yes" ; then
13932			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13933			found="yes"
13934		fi
13935	fi
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951xorg_testset_save_CFLAGS="$CFLAGS"
13952
13953if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13954	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13955	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13956$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13957if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13958  $as_echo_n "(cached) " >&6
13959else
13960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13961/* end confdefs.h.  */
13962int i;
13963_ACEOF
13964if ac_fn_c_try_compile "$LINENO"; then :
13965  xorg_cv_cc_flag_unknown_warning_option=yes
13966else
13967  xorg_cv_cc_flag_unknown_warning_option=no
13968fi
13969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13970fi
13971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13972$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13973	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13974	CFLAGS="$xorg_testset_save_CFLAGS"
13975fi
13976
13977if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13978	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13979		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13980	fi
13981	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13982	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13983$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13984if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13985  $as_echo_n "(cached) " >&6
13986else
13987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13988/* end confdefs.h.  */
13989int i;
13990_ACEOF
13991if ac_fn_c_try_compile "$LINENO"; then :
13992  xorg_cv_cc_flag_unused_command_line_argument=yes
13993else
13994  xorg_cv_cc_flag_unused_command_line_argument=no
13995fi
13996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13997fi
13998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13999$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14000	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14001	CFLAGS="$xorg_testset_save_CFLAGS"
14002fi
14003
14004found="no"
14005
14006	if test $found = "no" ; then
14007		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14008			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14009		fi
14010
14011		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14012			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14013		fi
14014
14015		CFLAGS="$CFLAGS -Wshadow"
14016
14017		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14018$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
14019		cacheid=xorg_cv_cc_flag__Wshadow
14020		if eval \${$cacheid+:} false; then :
14021  $as_echo_n "(cached) " >&6
14022else
14023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14024/* end confdefs.h.  */
14025int i;
14026int
14027main ()
14028{
14029
14030  ;
14031  return 0;
14032}
14033_ACEOF
14034if ac_fn_c_try_link "$LINENO"; then :
14035  eval $cacheid=yes
14036else
14037  eval $cacheid=no
14038fi
14039rm -f core conftest.err conftest.$ac_objext \
14040    conftest$ac_exeext conftest.$ac_ext
14041fi
14042
14043
14044		CFLAGS="$xorg_testset_save_CFLAGS"
14045
14046		eval supported=\$$cacheid
14047		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14048$as_echo "$supported" >&6; }
14049		if test "$supported" = "yes" ; then
14050			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14051			found="yes"
14052		fi
14053	fi
14054
14055
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 -Wmissing-noreturn"
14134
14135		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14136$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14137		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
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 -Wmissing-noreturn"
14169			found="yes"
14170		fi
14171	fi
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187xorg_testset_save_CFLAGS="$CFLAGS"
14188
14189if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14190	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14191	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14192$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14193if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14194  $as_echo_n "(cached) " >&6
14195else
14196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14197/* end confdefs.h.  */
14198int i;
14199_ACEOF
14200if ac_fn_c_try_compile "$LINENO"; then :
14201  xorg_cv_cc_flag_unknown_warning_option=yes
14202else
14203  xorg_cv_cc_flag_unknown_warning_option=no
14204fi
14205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14206fi
14207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14208$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14209	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14210	CFLAGS="$xorg_testset_save_CFLAGS"
14211fi
14212
14213if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14214	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14215		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14216	fi
14217	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14218	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14219$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14220if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14221  $as_echo_n "(cached) " >&6
14222else
14223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14224/* end confdefs.h.  */
14225int i;
14226_ACEOF
14227if ac_fn_c_try_compile "$LINENO"; then :
14228  xorg_cv_cc_flag_unused_command_line_argument=yes
14229else
14230  xorg_cv_cc_flag_unused_command_line_argument=no
14231fi
14232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14233fi
14234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14235$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14236	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14237	CFLAGS="$xorg_testset_save_CFLAGS"
14238fi
14239
14240found="no"
14241
14242	if test $found = "no" ; then
14243		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14244			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14245		fi
14246
14247		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14248			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14249		fi
14250
14251		CFLAGS="$CFLAGS -Wmissing-format-attribute"
14252
14253		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14254$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14255		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14256		if eval \${$cacheid+:} false; then :
14257  $as_echo_n "(cached) " >&6
14258else
14259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14260/* end confdefs.h.  */
14261int i;
14262int
14263main ()
14264{
14265
14266  ;
14267  return 0;
14268}
14269_ACEOF
14270if ac_fn_c_try_link "$LINENO"; then :
14271  eval $cacheid=yes
14272else
14273  eval $cacheid=no
14274fi
14275rm -f core conftest.err conftest.$ac_objext \
14276    conftest$ac_exeext conftest.$ac_ext
14277fi
14278
14279
14280		CFLAGS="$xorg_testset_save_CFLAGS"
14281
14282		eval supported=\$$cacheid
14283		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14284$as_echo "$supported" >&6; }
14285		if test "$supported" = "yes" ; then
14286			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14287			found="yes"
14288		fi
14289	fi
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305xorg_testset_save_CFLAGS="$CFLAGS"
14306
14307if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14308	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14309	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14310$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14311if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14312  $as_echo_n "(cached) " >&6
14313else
14314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14315/* end confdefs.h.  */
14316int i;
14317_ACEOF
14318if ac_fn_c_try_compile "$LINENO"; then :
14319  xorg_cv_cc_flag_unknown_warning_option=yes
14320else
14321  xorg_cv_cc_flag_unknown_warning_option=no
14322fi
14323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14324fi
14325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14326$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14327	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14328	CFLAGS="$xorg_testset_save_CFLAGS"
14329fi
14330
14331if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14332	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14333		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14334	fi
14335	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14336	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14337$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14338if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14339  $as_echo_n "(cached) " >&6
14340else
14341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14342/* end confdefs.h.  */
14343int i;
14344_ACEOF
14345if ac_fn_c_try_compile "$LINENO"; then :
14346  xorg_cv_cc_flag_unused_command_line_argument=yes
14347else
14348  xorg_cv_cc_flag_unused_command_line_argument=no
14349fi
14350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14351fi
14352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14353$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14354	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14355	CFLAGS="$xorg_testset_save_CFLAGS"
14356fi
14357
14358found="no"
14359
14360	if test $found = "no" ; then
14361		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14362			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14363		fi
14364
14365		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14366			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14367		fi
14368
14369		CFLAGS="$CFLAGS -Wredundant-decls"
14370
14371		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14372$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14373		cacheid=xorg_cv_cc_flag__Wredundant_decls
14374		if eval \${$cacheid+:} false; then :
14375  $as_echo_n "(cached) " >&6
14376else
14377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14378/* end confdefs.h.  */
14379int i;
14380int
14381main ()
14382{
14383
14384  ;
14385  return 0;
14386}
14387_ACEOF
14388if ac_fn_c_try_link "$LINENO"; then :
14389  eval $cacheid=yes
14390else
14391  eval $cacheid=no
14392fi
14393rm -f core conftest.err conftest.$ac_objext \
14394    conftest$ac_exeext conftest.$ac_ext
14395fi
14396
14397
14398		CFLAGS="$xorg_testset_save_CFLAGS"
14399
14400		eval supported=\$$cacheid
14401		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14402$as_echo "$supported" >&6; }
14403		if test "$supported" = "yes" ; then
14404			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14405			found="yes"
14406		fi
14407	fi
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423xorg_testset_save_CFLAGS="$CFLAGS"
14424
14425if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14426	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14427	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14428$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14429if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14430  $as_echo_n "(cached) " >&6
14431else
14432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14433/* end confdefs.h.  */
14434int i;
14435_ACEOF
14436if ac_fn_c_try_compile "$LINENO"; then :
14437  xorg_cv_cc_flag_unknown_warning_option=yes
14438else
14439  xorg_cv_cc_flag_unknown_warning_option=no
14440fi
14441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14442fi
14443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14444$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14445	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14446	CFLAGS="$xorg_testset_save_CFLAGS"
14447fi
14448
14449if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14450	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14451		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14452	fi
14453	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14454	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14455$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14456if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14457  $as_echo_n "(cached) " >&6
14458else
14459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14460/* end confdefs.h.  */
14461int i;
14462_ACEOF
14463if ac_fn_c_try_compile "$LINENO"; then :
14464  xorg_cv_cc_flag_unused_command_line_argument=yes
14465else
14466  xorg_cv_cc_flag_unused_command_line_argument=no
14467fi
14468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14469fi
14470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14471$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14472	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14473	CFLAGS="$xorg_testset_save_CFLAGS"
14474fi
14475
14476found="no"
14477
14478	if test $found = "no" ; then
14479		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14480			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14481		fi
14482
14483		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14484			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14485		fi
14486
14487		CFLAGS="$CFLAGS -Wlogical-op"
14488
14489		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14490$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14491		cacheid=xorg_cv_cc_flag__Wlogical_op
14492		if eval \${$cacheid+:} false; then :
14493  $as_echo_n "(cached) " >&6
14494else
14495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14496/* end confdefs.h.  */
14497int i;
14498int
14499main ()
14500{
14501
14502  ;
14503  return 0;
14504}
14505_ACEOF
14506if ac_fn_c_try_link "$LINENO"; then :
14507  eval $cacheid=yes
14508else
14509  eval $cacheid=no
14510fi
14511rm -f core conftest.err conftest.$ac_objext \
14512    conftest$ac_exeext conftest.$ac_ext
14513fi
14514
14515
14516		CFLAGS="$xorg_testset_save_CFLAGS"
14517
14518		eval supported=\$$cacheid
14519		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14520$as_echo "$supported" >&6; }
14521		if test "$supported" = "yes" ; then
14522			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14523			found="yes"
14524		fi
14525	fi
14526
14527
14528
14529# These are currently disabled because they are noisy.  They will be enabled
14530# in the future once the codebase is sufficiently modernized to silence
14531# them.  For now, I don't want them to drown out the other warnings.
14532# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14533# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14534# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14535
14536# Turn some warnings into errors, so we don't accidently get successful builds
14537# when there are problems that should be fixed.
14538
14539if test "x$SELECTIVE_WERROR" = "xyes" ; then
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553xorg_testset_save_CFLAGS="$CFLAGS"
14554
14555if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14556	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14557	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14558$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14559if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14560  $as_echo_n "(cached) " >&6
14561else
14562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14563/* end confdefs.h.  */
14564int i;
14565_ACEOF
14566if ac_fn_c_try_compile "$LINENO"; then :
14567  xorg_cv_cc_flag_unknown_warning_option=yes
14568else
14569  xorg_cv_cc_flag_unknown_warning_option=no
14570fi
14571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14572fi
14573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14574$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14575	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14576	CFLAGS="$xorg_testset_save_CFLAGS"
14577fi
14578
14579if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14580	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14581		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14582	fi
14583	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14584	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14585$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14586if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14587  $as_echo_n "(cached) " >&6
14588else
14589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14590/* end confdefs.h.  */
14591int i;
14592_ACEOF
14593if ac_fn_c_try_compile "$LINENO"; then :
14594  xorg_cv_cc_flag_unused_command_line_argument=yes
14595else
14596  xorg_cv_cc_flag_unused_command_line_argument=no
14597fi
14598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14599fi
14600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14601$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14602	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14603	CFLAGS="$xorg_testset_save_CFLAGS"
14604fi
14605
14606found="no"
14607
14608	if test $found = "no" ; then
14609		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14610			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14611		fi
14612
14613		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14614			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14615		fi
14616
14617		CFLAGS="$CFLAGS -Werror=implicit"
14618
14619		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14620$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14621		cacheid=xorg_cv_cc_flag__Werror_implicit
14622		if eval \${$cacheid+:} false; then :
14623  $as_echo_n "(cached) " >&6
14624else
14625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14626/* end confdefs.h.  */
14627int i;
14628int
14629main ()
14630{
14631
14632  ;
14633  return 0;
14634}
14635_ACEOF
14636if ac_fn_c_try_link "$LINENO"; then :
14637  eval $cacheid=yes
14638else
14639  eval $cacheid=no
14640fi
14641rm -f core conftest.err conftest.$ac_objext \
14642    conftest$ac_exeext conftest.$ac_ext
14643fi
14644
14645
14646		CFLAGS="$xorg_testset_save_CFLAGS"
14647
14648		eval supported=\$$cacheid
14649		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14650$as_echo "$supported" >&6; }
14651		if test "$supported" = "yes" ; then
14652			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14653			found="yes"
14654		fi
14655	fi
14656
14657	if test $found = "no" ; then
14658		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14659			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14660		fi
14661
14662		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14663			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14664		fi
14665
14666		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14667
14668		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14669$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14670		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14671		if eval \${$cacheid+:} false; then :
14672  $as_echo_n "(cached) " >&6
14673else
14674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14675/* end confdefs.h.  */
14676int i;
14677int
14678main ()
14679{
14680
14681  ;
14682  return 0;
14683}
14684_ACEOF
14685if ac_fn_c_try_link "$LINENO"; then :
14686  eval $cacheid=yes
14687else
14688  eval $cacheid=no
14689fi
14690rm -f core conftest.err conftest.$ac_objext \
14691    conftest$ac_exeext conftest.$ac_ext
14692fi
14693
14694
14695		CFLAGS="$xorg_testset_save_CFLAGS"
14696
14697		eval supported=\$$cacheid
14698		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14699$as_echo "$supported" >&6; }
14700		if test "$supported" = "yes" ; then
14701			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14702			found="yes"
14703		fi
14704	fi
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720xorg_testset_save_CFLAGS="$CFLAGS"
14721
14722if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14723	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14724	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14725$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14726if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14727  $as_echo_n "(cached) " >&6
14728else
14729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14730/* end confdefs.h.  */
14731int i;
14732_ACEOF
14733if ac_fn_c_try_compile "$LINENO"; then :
14734  xorg_cv_cc_flag_unknown_warning_option=yes
14735else
14736  xorg_cv_cc_flag_unknown_warning_option=no
14737fi
14738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14739fi
14740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14741$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14742	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14743	CFLAGS="$xorg_testset_save_CFLAGS"
14744fi
14745
14746if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14747	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14748		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14749	fi
14750	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14751	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14752$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14753if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14754  $as_echo_n "(cached) " >&6
14755else
14756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14757/* end confdefs.h.  */
14758int i;
14759_ACEOF
14760if ac_fn_c_try_compile "$LINENO"; then :
14761  xorg_cv_cc_flag_unused_command_line_argument=yes
14762else
14763  xorg_cv_cc_flag_unused_command_line_argument=no
14764fi
14765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14766fi
14767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14768$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14769	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14770	CFLAGS="$xorg_testset_save_CFLAGS"
14771fi
14772
14773found="no"
14774
14775	if test $found = "no" ; then
14776		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14777			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14778		fi
14779
14780		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14781			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14782		fi
14783
14784		CFLAGS="$CFLAGS -Werror=nonnull"
14785
14786		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14787$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14788		cacheid=xorg_cv_cc_flag__Werror_nonnull
14789		if eval \${$cacheid+:} false; then :
14790  $as_echo_n "(cached) " >&6
14791else
14792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14793/* end confdefs.h.  */
14794int i;
14795int
14796main ()
14797{
14798
14799  ;
14800  return 0;
14801}
14802_ACEOF
14803if ac_fn_c_try_link "$LINENO"; then :
14804  eval $cacheid=yes
14805else
14806  eval $cacheid=no
14807fi
14808rm -f core conftest.err conftest.$ac_objext \
14809    conftest$ac_exeext conftest.$ac_ext
14810fi
14811
14812
14813		CFLAGS="$xorg_testset_save_CFLAGS"
14814
14815		eval supported=\$$cacheid
14816		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14817$as_echo "$supported" >&6; }
14818		if test "$supported" = "yes" ; then
14819			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14820			found="yes"
14821		fi
14822	fi
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838xorg_testset_save_CFLAGS="$CFLAGS"
14839
14840if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14841	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14842	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14843$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14844if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14845  $as_echo_n "(cached) " >&6
14846else
14847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14848/* end confdefs.h.  */
14849int i;
14850_ACEOF
14851if ac_fn_c_try_compile "$LINENO"; then :
14852  xorg_cv_cc_flag_unknown_warning_option=yes
14853else
14854  xorg_cv_cc_flag_unknown_warning_option=no
14855fi
14856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14857fi
14858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14859$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14860	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14861	CFLAGS="$xorg_testset_save_CFLAGS"
14862fi
14863
14864if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14865	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14866		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14867	fi
14868	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14869	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14870$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14871if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14872  $as_echo_n "(cached) " >&6
14873else
14874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14875/* end confdefs.h.  */
14876int i;
14877_ACEOF
14878if ac_fn_c_try_compile "$LINENO"; then :
14879  xorg_cv_cc_flag_unused_command_line_argument=yes
14880else
14881  xorg_cv_cc_flag_unused_command_line_argument=no
14882fi
14883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14884fi
14885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14886$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14887	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14888	CFLAGS="$xorg_testset_save_CFLAGS"
14889fi
14890
14891found="no"
14892
14893	if test $found = "no" ; then
14894		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14895			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14896		fi
14897
14898		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14899			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14900		fi
14901
14902		CFLAGS="$CFLAGS -Werror=init-self"
14903
14904		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14905$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14906		cacheid=xorg_cv_cc_flag__Werror_init_self
14907		if eval \${$cacheid+:} false; then :
14908  $as_echo_n "(cached) " >&6
14909else
14910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14911/* end confdefs.h.  */
14912int i;
14913int
14914main ()
14915{
14916
14917  ;
14918  return 0;
14919}
14920_ACEOF
14921if ac_fn_c_try_link "$LINENO"; then :
14922  eval $cacheid=yes
14923else
14924  eval $cacheid=no
14925fi
14926rm -f core conftest.err conftest.$ac_objext \
14927    conftest$ac_exeext conftest.$ac_ext
14928fi
14929
14930
14931		CFLAGS="$xorg_testset_save_CFLAGS"
14932
14933		eval supported=\$$cacheid
14934		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14935$as_echo "$supported" >&6; }
14936		if test "$supported" = "yes" ; then
14937			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14938			found="yes"
14939		fi
14940	fi
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956xorg_testset_save_CFLAGS="$CFLAGS"
14957
14958if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14959	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14960	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14961$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14962if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14963  $as_echo_n "(cached) " >&6
14964else
14965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14966/* end confdefs.h.  */
14967int i;
14968_ACEOF
14969if ac_fn_c_try_compile "$LINENO"; then :
14970  xorg_cv_cc_flag_unknown_warning_option=yes
14971else
14972  xorg_cv_cc_flag_unknown_warning_option=no
14973fi
14974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14975fi
14976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14977$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14978	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14979	CFLAGS="$xorg_testset_save_CFLAGS"
14980fi
14981
14982if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14983	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14984		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14985	fi
14986	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14987	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14988$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14989if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14990  $as_echo_n "(cached) " >&6
14991else
14992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14993/* end confdefs.h.  */
14994int i;
14995_ACEOF
14996if ac_fn_c_try_compile "$LINENO"; then :
14997  xorg_cv_cc_flag_unused_command_line_argument=yes
14998else
14999  xorg_cv_cc_flag_unused_command_line_argument=no
15000fi
15001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15002fi
15003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15004$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15005	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15006	CFLAGS="$xorg_testset_save_CFLAGS"
15007fi
15008
15009found="no"
15010
15011	if test $found = "no" ; then
15012		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15013			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15014		fi
15015
15016		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15017			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15018		fi
15019
15020		CFLAGS="$CFLAGS -Werror=main"
15021
15022		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15023$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
15024		cacheid=xorg_cv_cc_flag__Werror_main
15025		if eval \${$cacheid+:} false; then :
15026  $as_echo_n "(cached) " >&6
15027else
15028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15029/* end confdefs.h.  */
15030int i;
15031int
15032main ()
15033{
15034
15035  ;
15036  return 0;
15037}
15038_ACEOF
15039if ac_fn_c_try_link "$LINENO"; then :
15040  eval $cacheid=yes
15041else
15042  eval $cacheid=no
15043fi
15044rm -f core conftest.err conftest.$ac_objext \
15045    conftest$ac_exeext conftest.$ac_ext
15046fi
15047
15048
15049		CFLAGS="$xorg_testset_save_CFLAGS"
15050
15051		eval supported=\$$cacheid
15052		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15053$as_echo "$supported" >&6; }
15054		if test "$supported" = "yes" ; then
15055			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15056			found="yes"
15057		fi
15058	fi
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074xorg_testset_save_CFLAGS="$CFLAGS"
15075
15076if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15077	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15078	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15079$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15080if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15081  $as_echo_n "(cached) " >&6
15082else
15083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15084/* end confdefs.h.  */
15085int i;
15086_ACEOF
15087if ac_fn_c_try_compile "$LINENO"; then :
15088  xorg_cv_cc_flag_unknown_warning_option=yes
15089else
15090  xorg_cv_cc_flag_unknown_warning_option=no
15091fi
15092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15093fi
15094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15095$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15096	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15097	CFLAGS="$xorg_testset_save_CFLAGS"
15098fi
15099
15100if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15101	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15102		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15103	fi
15104	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15105	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15106$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15107if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15108  $as_echo_n "(cached) " >&6
15109else
15110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15111/* end confdefs.h.  */
15112int i;
15113_ACEOF
15114if ac_fn_c_try_compile "$LINENO"; then :
15115  xorg_cv_cc_flag_unused_command_line_argument=yes
15116else
15117  xorg_cv_cc_flag_unused_command_line_argument=no
15118fi
15119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15120fi
15121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15122$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15123	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15124	CFLAGS="$xorg_testset_save_CFLAGS"
15125fi
15126
15127found="no"
15128
15129	if test $found = "no" ; then
15130		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15131			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15132		fi
15133
15134		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15135			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15136		fi
15137
15138		CFLAGS="$CFLAGS -Werror=missing-braces"
15139
15140		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15141$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15142		cacheid=xorg_cv_cc_flag__Werror_missing_braces
15143		if eval \${$cacheid+:} false; then :
15144  $as_echo_n "(cached) " >&6
15145else
15146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15147/* end confdefs.h.  */
15148int i;
15149int
15150main ()
15151{
15152
15153  ;
15154  return 0;
15155}
15156_ACEOF
15157if ac_fn_c_try_link "$LINENO"; then :
15158  eval $cacheid=yes
15159else
15160  eval $cacheid=no
15161fi
15162rm -f core conftest.err conftest.$ac_objext \
15163    conftest$ac_exeext conftest.$ac_ext
15164fi
15165
15166
15167		CFLAGS="$xorg_testset_save_CFLAGS"
15168
15169		eval supported=\$$cacheid
15170		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15171$as_echo "$supported" >&6; }
15172		if test "$supported" = "yes" ; then
15173			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15174			found="yes"
15175		fi
15176	fi
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192xorg_testset_save_CFLAGS="$CFLAGS"
15193
15194if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15195	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15196	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15197$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15198if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15199  $as_echo_n "(cached) " >&6
15200else
15201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15202/* end confdefs.h.  */
15203int i;
15204_ACEOF
15205if ac_fn_c_try_compile "$LINENO"; then :
15206  xorg_cv_cc_flag_unknown_warning_option=yes
15207else
15208  xorg_cv_cc_flag_unknown_warning_option=no
15209fi
15210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15211fi
15212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15213$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15214	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15215	CFLAGS="$xorg_testset_save_CFLAGS"
15216fi
15217
15218if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15219	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15220		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15221	fi
15222	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15223	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15224$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15225if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15226  $as_echo_n "(cached) " >&6
15227else
15228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15229/* end confdefs.h.  */
15230int i;
15231_ACEOF
15232if ac_fn_c_try_compile "$LINENO"; then :
15233  xorg_cv_cc_flag_unused_command_line_argument=yes
15234else
15235  xorg_cv_cc_flag_unused_command_line_argument=no
15236fi
15237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15238fi
15239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15240$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15241	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15242	CFLAGS="$xorg_testset_save_CFLAGS"
15243fi
15244
15245found="no"
15246
15247	if test $found = "no" ; then
15248		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15249			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15250		fi
15251
15252		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15253			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15254		fi
15255
15256		CFLAGS="$CFLAGS -Werror=sequence-point"
15257
15258		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15259$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15260		cacheid=xorg_cv_cc_flag__Werror_sequence_point
15261		if eval \${$cacheid+:} false; then :
15262  $as_echo_n "(cached) " >&6
15263else
15264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15265/* end confdefs.h.  */
15266int i;
15267int
15268main ()
15269{
15270
15271  ;
15272  return 0;
15273}
15274_ACEOF
15275if ac_fn_c_try_link "$LINENO"; then :
15276  eval $cacheid=yes
15277else
15278  eval $cacheid=no
15279fi
15280rm -f core conftest.err conftest.$ac_objext \
15281    conftest$ac_exeext conftest.$ac_ext
15282fi
15283
15284
15285		CFLAGS="$xorg_testset_save_CFLAGS"
15286
15287		eval supported=\$$cacheid
15288		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15289$as_echo "$supported" >&6; }
15290		if test "$supported" = "yes" ; then
15291			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15292			found="yes"
15293		fi
15294	fi
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310xorg_testset_save_CFLAGS="$CFLAGS"
15311
15312if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15313	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15314	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15315$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15316if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15317  $as_echo_n "(cached) " >&6
15318else
15319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15320/* end confdefs.h.  */
15321int i;
15322_ACEOF
15323if ac_fn_c_try_compile "$LINENO"; then :
15324  xorg_cv_cc_flag_unknown_warning_option=yes
15325else
15326  xorg_cv_cc_flag_unknown_warning_option=no
15327fi
15328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15329fi
15330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15331$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15332	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15333	CFLAGS="$xorg_testset_save_CFLAGS"
15334fi
15335
15336if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15337	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15338		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15339	fi
15340	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15341	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15342$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15343if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15344  $as_echo_n "(cached) " >&6
15345else
15346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15347/* end confdefs.h.  */
15348int i;
15349_ACEOF
15350if ac_fn_c_try_compile "$LINENO"; then :
15351  xorg_cv_cc_flag_unused_command_line_argument=yes
15352else
15353  xorg_cv_cc_flag_unused_command_line_argument=no
15354fi
15355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15356fi
15357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15358$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15359	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15360	CFLAGS="$xorg_testset_save_CFLAGS"
15361fi
15362
15363found="no"
15364
15365	if test $found = "no" ; then
15366		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15367			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15368		fi
15369
15370		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15371			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15372		fi
15373
15374		CFLAGS="$CFLAGS -Werror=return-type"
15375
15376		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15377$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15378		cacheid=xorg_cv_cc_flag__Werror_return_type
15379		if eval \${$cacheid+:} false; then :
15380  $as_echo_n "(cached) " >&6
15381else
15382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15383/* end confdefs.h.  */
15384int i;
15385int
15386main ()
15387{
15388
15389  ;
15390  return 0;
15391}
15392_ACEOF
15393if ac_fn_c_try_link "$LINENO"; then :
15394  eval $cacheid=yes
15395else
15396  eval $cacheid=no
15397fi
15398rm -f core conftest.err conftest.$ac_objext \
15399    conftest$ac_exeext conftest.$ac_ext
15400fi
15401
15402
15403		CFLAGS="$xorg_testset_save_CFLAGS"
15404
15405		eval supported=\$$cacheid
15406		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15407$as_echo "$supported" >&6; }
15408		if test "$supported" = "yes" ; then
15409			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15410			found="yes"
15411		fi
15412	fi
15413
15414	if test $found = "no" ; then
15415		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15416			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15417		fi
15418
15419		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15420			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15421		fi
15422
15423		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15424
15425		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15426$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15427		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15428		if eval \${$cacheid+:} false; then :
15429  $as_echo_n "(cached) " >&6
15430else
15431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15432/* end confdefs.h.  */
15433int i;
15434int
15435main ()
15436{
15437
15438  ;
15439  return 0;
15440}
15441_ACEOF
15442if ac_fn_c_try_link "$LINENO"; then :
15443  eval $cacheid=yes
15444else
15445  eval $cacheid=no
15446fi
15447rm -f core conftest.err conftest.$ac_objext \
15448    conftest$ac_exeext conftest.$ac_ext
15449fi
15450
15451
15452		CFLAGS="$xorg_testset_save_CFLAGS"
15453
15454		eval supported=\$$cacheid
15455		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15456$as_echo "$supported" >&6; }
15457		if test "$supported" = "yes" ; then
15458			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15459			found="yes"
15460		fi
15461	fi
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477xorg_testset_save_CFLAGS="$CFLAGS"
15478
15479if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15480	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15481	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15482$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15483if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15484  $as_echo_n "(cached) " >&6
15485else
15486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15487/* end confdefs.h.  */
15488int i;
15489_ACEOF
15490if ac_fn_c_try_compile "$LINENO"; then :
15491  xorg_cv_cc_flag_unknown_warning_option=yes
15492else
15493  xorg_cv_cc_flag_unknown_warning_option=no
15494fi
15495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15496fi
15497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15498$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15499	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15500	CFLAGS="$xorg_testset_save_CFLAGS"
15501fi
15502
15503if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15504	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15505		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15506	fi
15507	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15508	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15509$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15510if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15511  $as_echo_n "(cached) " >&6
15512else
15513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15514/* end confdefs.h.  */
15515int i;
15516_ACEOF
15517if ac_fn_c_try_compile "$LINENO"; then :
15518  xorg_cv_cc_flag_unused_command_line_argument=yes
15519else
15520  xorg_cv_cc_flag_unused_command_line_argument=no
15521fi
15522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15523fi
15524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15525$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15526	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15527	CFLAGS="$xorg_testset_save_CFLAGS"
15528fi
15529
15530found="no"
15531
15532	if test $found = "no" ; then
15533		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15534			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15535		fi
15536
15537		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15538			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15539		fi
15540
15541		CFLAGS="$CFLAGS -Werror=trigraphs"
15542
15543		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15544$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15545		cacheid=xorg_cv_cc_flag__Werror_trigraphs
15546		if eval \${$cacheid+:} false; then :
15547  $as_echo_n "(cached) " >&6
15548else
15549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15550/* end confdefs.h.  */
15551int i;
15552int
15553main ()
15554{
15555
15556  ;
15557  return 0;
15558}
15559_ACEOF
15560if ac_fn_c_try_link "$LINENO"; then :
15561  eval $cacheid=yes
15562else
15563  eval $cacheid=no
15564fi
15565rm -f core conftest.err conftest.$ac_objext \
15566    conftest$ac_exeext conftest.$ac_ext
15567fi
15568
15569
15570		CFLAGS="$xorg_testset_save_CFLAGS"
15571
15572		eval supported=\$$cacheid
15573		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15574$as_echo "$supported" >&6; }
15575		if test "$supported" = "yes" ; then
15576			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15577			found="yes"
15578		fi
15579	fi
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595xorg_testset_save_CFLAGS="$CFLAGS"
15596
15597if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15598	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15599	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15600$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15601if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15602  $as_echo_n "(cached) " >&6
15603else
15604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15605/* end confdefs.h.  */
15606int i;
15607_ACEOF
15608if ac_fn_c_try_compile "$LINENO"; then :
15609  xorg_cv_cc_flag_unknown_warning_option=yes
15610else
15611  xorg_cv_cc_flag_unknown_warning_option=no
15612fi
15613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15614fi
15615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15616$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15617	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15618	CFLAGS="$xorg_testset_save_CFLAGS"
15619fi
15620
15621if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15622	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15623		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15624	fi
15625	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15626	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15627$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15628if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15629  $as_echo_n "(cached) " >&6
15630else
15631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15632/* end confdefs.h.  */
15633int i;
15634_ACEOF
15635if ac_fn_c_try_compile "$LINENO"; then :
15636  xorg_cv_cc_flag_unused_command_line_argument=yes
15637else
15638  xorg_cv_cc_flag_unused_command_line_argument=no
15639fi
15640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15641fi
15642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15643$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15644	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15645	CFLAGS="$xorg_testset_save_CFLAGS"
15646fi
15647
15648found="no"
15649
15650	if test $found = "no" ; then
15651		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15652			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15653		fi
15654
15655		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15656			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15657		fi
15658
15659		CFLAGS="$CFLAGS -Werror=array-bounds"
15660
15661		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15662$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15663		cacheid=xorg_cv_cc_flag__Werror_array_bounds
15664		if eval \${$cacheid+:} false; then :
15665  $as_echo_n "(cached) " >&6
15666else
15667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15668/* end confdefs.h.  */
15669int i;
15670int
15671main ()
15672{
15673
15674  ;
15675  return 0;
15676}
15677_ACEOF
15678if ac_fn_c_try_link "$LINENO"; then :
15679  eval $cacheid=yes
15680else
15681  eval $cacheid=no
15682fi
15683rm -f core conftest.err conftest.$ac_objext \
15684    conftest$ac_exeext conftest.$ac_ext
15685fi
15686
15687
15688		CFLAGS="$xorg_testset_save_CFLAGS"
15689
15690		eval supported=\$$cacheid
15691		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15692$as_echo "$supported" >&6; }
15693		if test "$supported" = "yes" ; then
15694			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15695			found="yes"
15696		fi
15697	fi
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713xorg_testset_save_CFLAGS="$CFLAGS"
15714
15715if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15716	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15717	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15718$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15719if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15720  $as_echo_n "(cached) " >&6
15721else
15722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15723/* end confdefs.h.  */
15724int i;
15725_ACEOF
15726if ac_fn_c_try_compile "$LINENO"; then :
15727  xorg_cv_cc_flag_unknown_warning_option=yes
15728else
15729  xorg_cv_cc_flag_unknown_warning_option=no
15730fi
15731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15732fi
15733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15734$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15735	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15736	CFLAGS="$xorg_testset_save_CFLAGS"
15737fi
15738
15739if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15740	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15741		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15742	fi
15743	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15744	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15745$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15746if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15747  $as_echo_n "(cached) " >&6
15748else
15749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15750/* end confdefs.h.  */
15751int i;
15752_ACEOF
15753if ac_fn_c_try_compile "$LINENO"; then :
15754  xorg_cv_cc_flag_unused_command_line_argument=yes
15755else
15756  xorg_cv_cc_flag_unused_command_line_argument=no
15757fi
15758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15759fi
15760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15761$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15762	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15763	CFLAGS="$xorg_testset_save_CFLAGS"
15764fi
15765
15766found="no"
15767
15768	if test $found = "no" ; then
15769		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15770			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15771		fi
15772
15773		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15774			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15775		fi
15776
15777		CFLAGS="$CFLAGS -Werror=write-strings"
15778
15779		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15780$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15781		cacheid=xorg_cv_cc_flag__Werror_write_strings
15782		if eval \${$cacheid+:} false; then :
15783  $as_echo_n "(cached) " >&6
15784else
15785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15786/* end confdefs.h.  */
15787int i;
15788int
15789main ()
15790{
15791
15792  ;
15793  return 0;
15794}
15795_ACEOF
15796if ac_fn_c_try_link "$LINENO"; then :
15797  eval $cacheid=yes
15798else
15799  eval $cacheid=no
15800fi
15801rm -f core conftest.err conftest.$ac_objext \
15802    conftest$ac_exeext conftest.$ac_ext
15803fi
15804
15805
15806		CFLAGS="$xorg_testset_save_CFLAGS"
15807
15808		eval supported=\$$cacheid
15809		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15810$as_echo "$supported" >&6; }
15811		if test "$supported" = "yes" ; then
15812			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15813			found="yes"
15814		fi
15815	fi
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831xorg_testset_save_CFLAGS="$CFLAGS"
15832
15833if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15834	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15835	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15836$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15837if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15838  $as_echo_n "(cached) " >&6
15839else
15840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15841/* end confdefs.h.  */
15842int i;
15843_ACEOF
15844if ac_fn_c_try_compile "$LINENO"; then :
15845  xorg_cv_cc_flag_unknown_warning_option=yes
15846else
15847  xorg_cv_cc_flag_unknown_warning_option=no
15848fi
15849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15850fi
15851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15852$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15853	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15854	CFLAGS="$xorg_testset_save_CFLAGS"
15855fi
15856
15857if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15858	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15859		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15860	fi
15861	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15862	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15863$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15864if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15865  $as_echo_n "(cached) " >&6
15866else
15867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15868/* end confdefs.h.  */
15869int i;
15870_ACEOF
15871if ac_fn_c_try_compile "$LINENO"; then :
15872  xorg_cv_cc_flag_unused_command_line_argument=yes
15873else
15874  xorg_cv_cc_flag_unused_command_line_argument=no
15875fi
15876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15877fi
15878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15879$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15880	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15881	CFLAGS="$xorg_testset_save_CFLAGS"
15882fi
15883
15884found="no"
15885
15886	if test $found = "no" ; then
15887		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15888			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15889		fi
15890
15891		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15892			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15893		fi
15894
15895		CFLAGS="$CFLAGS -Werror=address"
15896
15897		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15898$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15899		cacheid=xorg_cv_cc_flag__Werror_address
15900		if eval \${$cacheid+:} false; then :
15901  $as_echo_n "(cached) " >&6
15902else
15903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15904/* end confdefs.h.  */
15905int i;
15906int
15907main ()
15908{
15909
15910  ;
15911  return 0;
15912}
15913_ACEOF
15914if ac_fn_c_try_link "$LINENO"; then :
15915  eval $cacheid=yes
15916else
15917  eval $cacheid=no
15918fi
15919rm -f core conftest.err conftest.$ac_objext \
15920    conftest$ac_exeext conftest.$ac_ext
15921fi
15922
15923
15924		CFLAGS="$xorg_testset_save_CFLAGS"
15925
15926		eval supported=\$$cacheid
15927		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15928$as_echo "$supported" >&6; }
15929		if test "$supported" = "yes" ; then
15930			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15931			found="yes"
15932		fi
15933	fi
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949xorg_testset_save_CFLAGS="$CFLAGS"
15950
15951if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15952	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15953	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15954$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15955if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15956  $as_echo_n "(cached) " >&6
15957else
15958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15959/* end confdefs.h.  */
15960int i;
15961_ACEOF
15962if ac_fn_c_try_compile "$LINENO"; then :
15963  xorg_cv_cc_flag_unknown_warning_option=yes
15964else
15965  xorg_cv_cc_flag_unknown_warning_option=no
15966fi
15967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15968fi
15969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15970$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15971	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15972	CFLAGS="$xorg_testset_save_CFLAGS"
15973fi
15974
15975if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15976	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15977		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15978	fi
15979	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15980	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15981$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15982if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15983  $as_echo_n "(cached) " >&6
15984else
15985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15986/* end confdefs.h.  */
15987int i;
15988_ACEOF
15989if ac_fn_c_try_compile "$LINENO"; then :
15990  xorg_cv_cc_flag_unused_command_line_argument=yes
15991else
15992  xorg_cv_cc_flag_unused_command_line_argument=no
15993fi
15994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15995fi
15996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15997$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15998	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15999	CFLAGS="$xorg_testset_save_CFLAGS"
16000fi
16001
16002found="no"
16003
16004	if test $found = "no" ; then
16005		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16006			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16007		fi
16008
16009		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16010			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16011		fi
16012
16013		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16014
16015		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16016$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16017		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16018		if eval \${$cacheid+:} false; then :
16019  $as_echo_n "(cached) " >&6
16020else
16021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16022/* end confdefs.h.  */
16023int i;
16024int
16025main ()
16026{
16027
16028  ;
16029  return 0;
16030}
16031_ACEOF
16032if ac_fn_c_try_link "$LINENO"; then :
16033  eval $cacheid=yes
16034else
16035  eval $cacheid=no
16036fi
16037rm -f core conftest.err conftest.$ac_objext \
16038    conftest$ac_exeext conftest.$ac_ext
16039fi
16040
16041
16042		CFLAGS="$xorg_testset_save_CFLAGS"
16043
16044		eval supported=\$$cacheid
16045		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16046$as_echo "$supported" >&6; }
16047		if test "$supported" = "yes" ; then
16048			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16049			found="yes"
16050		fi
16051	fi
16052
16053	if test $found = "no" ; then
16054		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16055			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16056		fi
16057
16058		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16059			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16060		fi
16061
16062		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16063
16064		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16065$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16066		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16067		if eval \${$cacheid+:} false; then :
16068  $as_echo_n "(cached) " >&6
16069else
16070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16071/* end confdefs.h.  */
16072int i;
16073int
16074main ()
16075{
16076
16077  ;
16078  return 0;
16079}
16080_ACEOF
16081if ac_fn_c_try_link "$LINENO"; then :
16082  eval $cacheid=yes
16083else
16084  eval $cacheid=no
16085fi
16086rm -f core conftest.err conftest.$ac_objext \
16087    conftest$ac_exeext conftest.$ac_ext
16088fi
16089
16090
16091		CFLAGS="$xorg_testset_save_CFLAGS"
16092
16093		eval supported=\$$cacheid
16094		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16095$as_echo "$supported" >&6; }
16096		if test "$supported" = "yes" ; then
16097			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16098			found="yes"
16099		fi
16100	fi
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116xorg_testset_save_CFLAGS="$CFLAGS"
16117
16118if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16119	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16120	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16121$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16122if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16123  $as_echo_n "(cached) " >&6
16124else
16125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16126/* end confdefs.h.  */
16127int i;
16128_ACEOF
16129if ac_fn_c_try_compile "$LINENO"; then :
16130  xorg_cv_cc_flag_unknown_warning_option=yes
16131else
16132  xorg_cv_cc_flag_unknown_warning_option=no
16133fi
16134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16135fi
16136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16137$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16138	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16139	CFLAGS="$xorg_testset_save_CFLAGS"
16140fi
16141
16142if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16143	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16144		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16145	fi
16146	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16147	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16148$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16149if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16150  $as_echo_n "(cached) " >&6
16151else
16152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16153/* end confdefs.h.  */
16154int i;
16155_ACEOF
16156if ac_fn_c_try_compile "$LINENO"; then :
16157  xorg_cv_cc_flag_unused_command_line_argument=yes
16158else
16159  xorg_cv_cc_flag_unused_command_line_argument=no
16160fi
16161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16162fi
16163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16164$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16165	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16166	CFLAGS="$xorg_testset_save_CFLAGS"
16167fi
16168
16169found="no"
16170
16171	if test $found = "no" ; then
16172		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16173			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16174		fi
16175
16176		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16177			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16178		fi
16179
16180		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16181
16182		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16183$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16184		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16185		if eval \${$cacheid+:} false; then :
16186  $as_echo_n "(cached) " >&6
16187else
16188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16189/* end confdefs.h.  */
16190int i;
16191int
16192main ()
16193{
16194
16195  ;
16196  return 0;
16197}
16198_ACEOF
16199if ac_fn_c_try_link "$LINENO"; then :
16200  eval $cacheid=yes
16201else
16202  eval $cacheid=no
16203fi
16204rm -f core conftest.err conftest.$ac_objext \
16205    conftest$ac_exeext conftest.$ac_ext
16206fi
16207
16208
16209		CFLAGS="$xorg_testset_save_CFLAGS"
16210
16211		eval supported=\$$cacheid
16212		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16213$as_echo "$supported" >&6; }
16214		if test "$supported" = "yes" ; then
16215			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16216			found="yes"
16217		fi
16218	fi
16219
16220 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16221else
16222{ $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
16223$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;}
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237xorg_testset_save_CFLAGS="$CFLAGS"
16238
16239if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16240	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16241	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16242$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16243if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16244  $as_echo_n "(cached) " >&6
16245else
16246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16247/* end confdefs.h.  */
16248int i;
16249_ACEOF
16250if ac_fn_c_try_compile "$LINENO"; then :
16251  xorg_cv_cc_flag_unknown_warning_option=yes
16252else
16253  xorg_cv_cc_flag_unknown_warning_option=no
16254fi
16255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16256fi
16257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16258$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16259	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16260	CFLAGS="$xorg_testset_save_CFLAGS"
16261fi
16262
16263if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16264	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16265		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16266	fi
16267	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16268	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16269$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16270if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16271  $as_echo_n "(cached) " >&6
16272else
16273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16274/* end confdefs.h.  */
16275int i;
16276_ACEOF
16277if ac_fn_c_try_compile "$LINENO"; then :
16278  xorg_cv_cc_flag_unused_command_line_argument=yes
16279else
16280  xorg_cv_cc_flag_unused_command_line_argument=no
16281fi
16282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16283fi
16284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16285$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16286	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16287	CFLAGS="$xorg_testset_save_CFLAGS"
16288fi
16289
16290found="no"
16291
16292	if test $found = "no" ; then
16293		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16294			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16295		fi
16296
16297		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16298			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16299		fi
16300
16301		CFLAGS="$CFLAGS -Wimplicit"
16302
16303		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16304$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16305		cacheid=xorg_cv_cc_flag__Wimplicit
16306		if eval \${$cacheid+:} false; then :
16307  $as_echo_n "(cached) " >&6
16308else
16309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16310/* end confdefs.h.  */
16311int i;
16312int
16313main ()
16314{
16315
16316  ;
16317  return 0;
16318}
16319_ACEOF
16320if ac_fn_c_try_link "$LINENO"; then :
16321  eval $cacheid=yes
16322else
16323  eval $cacheid=no
16324fi
16325rm -f core conftest.err conftest.$ac_objext \
16326    conftest$ac_exeext conftest.$ac_ext
16327fi
16328
16329
16330		CFLAGS="$xorg_testset_save_CFLAGS"
16331
16332		eval supported=\$$cacheid
16333		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16334$as_echo "$supported" >&6; }
16335		if test "$supported" = "yes" ; then
16336			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16337			found="yes"
16338		fi
16339	fi
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355xorg_testset_save_CFLAGS="$CFLAGS"
16356
16357if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16358	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16359	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16360$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16361if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16362  $as_echo_n "(cached) " >&6
16363else
16364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16365/* end confdefs.h.  */
16366int i;
16367_ACEOF
16368if ac_fn_c_try_compile "$LINENO"; then :
16369  xorg_cv_cc_flag_unknown_warning_option=yes
16370else
16371  xorg_cv_cc_flag_unknown_warning_option=no
16372fi
16373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16374fi
16375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16376$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16377	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16378	CFLAGS="$xorg_testset_save_CFLAGS"
16379fi
16380
16381if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16382	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16383		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16384	fi
16385	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16386	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16387$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16388if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16389  $as_echo_n "(cached) " >&6
16390else
16391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16392/* end confdefs.h.  */
16393int i;
16394_ACEOF
16395if ac_fn_c_try_compile "$LINENO"; then :
16396  xorg_cv_cc_flag_unused_command_line_argument=yes
16397else
16398  xorg_cv_cc_flag_unused_command_line_argument=no
16399fi
16400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16401fi
16402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16403$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16404	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16405	CFLAGS="$xorg_testset_save_CFLAGS"
16406fi
16407
16408found="no"
16409
16410	if test $found = "no" ; then
16411		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16412			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16413		fi
16414
16415		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16416			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16417		fi
16418
16419		CFLAGS="$CFLAGS -Wnonnull"
16420
16421		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16422$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16423		cacheid=xorg_cv_cc_flag__Wnonnull
16424		if eval \${$cacheid+:} false; then :
16425  $as_echo_n "(cached) " >&6
16426else
16427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16428/* end confdefs.h.  */
16429int i;
16430int
16431main ()
16432{
16433
16434  ;
16435  return 0;
16436}
16437_ACEOF
16438if ac_fn_c_try_link "$LINENO"; then :
16439  eval $cacheid=yes
16440else
16441  eval $cacheid=no
16442fi
16443rm -f core conftest.err conftest.$ac_objext \
16444    conftest$ac_exeext conftest.$ac_ext
16445fi
16446
16447
16448		CFLAGS="$xorg_testset_save_CFLAGS"
16449
16450		eval supported=\$$cacheid
16451		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16452$as_echo "$supported" >&6; }
16453		if test "$supported" = "yes" ; then
16454			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16455			found="yes"
16456		fi
16457	fi
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473xorg_testset_save_CFLAGS="$CFLAGS"
16474
16475if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16476	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16477	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16478$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16479if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16480  $as_echo_n "(cached) " >&6
16481else
16482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16483/* end confdefs.h.  */
16484int i;
16485_ACEOF
16486if ac_fn_c_try_compile "$LINENO"; then :
16487  xorg_cv_cc_flag_unknown_warning_option=yes
16488else
16489  xorg_cv_cc_flag_unknown_warning_option=no
16490fi
16491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16492fi
16493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16494$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16495	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16496	CFLAGS="$xorg_testset_save_CFLAGS"
16497fi
16498
16499if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16500	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16501		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16502	fi
16503	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16504	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16505$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16506if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16507  $as_echo_n "(cached) " >&6
16508else
16509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16510/* end confdefs.h.  */
16511int i;
16512_ACEOF
16513if ac_fn_c_try_compile "$LINENO"; then :
16514  xorg_cv_cc_flag_unused_command_line_argument=yes
16515else
16516  xorg_cv_cc_flag_unused_command_line_argument=no
16517fi
16518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16519fi
16520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16521$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16522	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16523	CFLAGS="$xorg_testset_save_CFLAGS"
16524fi
16525
16526found="no"
16527
16528	if test $found = "no" ; then
16529		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16530			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16531		fi
16532
16533		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16534			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16535		fi
16536
16537		CFLAGS="$CFLAGS -Winit-self"
16538
16539		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16540$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16541		cacheid=xorg_cv_cc_flag__Winit_self
16542		if eval \${$cacheid+:} false; then :
16543  $as_echo_n "(cached) " >&6
16544else
16545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16546/* end confdefs.h.  */
16547int i;
16548int
16549main ()
16550{
16551
16552  ;
16553  return 0;
16554}
16555_ACEOF
16556if ac_fn_c_try_link "$LINENO"; then :
16557  eval $cacheid=yes
16558else
16559  eval $cacheid=no
16560fi
16561rm -f core conftest.err conftest.$ac_objext \
16562    conftest$ac_exeext conftest.$ac_ext
16563fi
16564
16565
16566		CFLAGS="$xorg_testset_save_CFLAGS"
16567
16568		eval supported=\$$cacheid
16569		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16570$as_echo "$supported" >&6; }
16571		if test "$supported" = "yes" ; then
16572			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16573			found="yes"
16574		fi
16575	fi
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591xorg_testset_save_CFLAGS="$CFLAGS"
16592
16593if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16594	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16595	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16596$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16597if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16598  $as_echo_n "(cached) " >&6
16599else
16600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16601/* end confdefs.h.  */
16602int i;
16603_ACEOF
16604if ac_fn_c_try_compile "$LINENO"; then :
16605  xorg_cv_cc_flag_unknown_warning_option=yes
16606else
16607  xorg_cv_cc_flag_unknown_warning_option=no
16608fi
16609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16610fi
16611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16612$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16613	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16614	CFLAGS="$xorg_testset_save_CFLAGS"
16615fi
16616
16617if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16618	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16619		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16620	fi
16621	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16622	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16623$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16624if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16625  $as_echo_n "(cached) " >&6
16626else
16627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16628/* end confdefs.h.  */
16629int i;
16630_ACEOF
16631if ac_fn_c_try_compile "$LINENO"; then :
16632  xorg_cv_cc_flag_unused_command_line_argument=yes
16633else
16634  xorg_cv_cc_flag_unused_command_line_argument=no
16635fi
16636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16637fi
16638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16639$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16640	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16641	CFLAGS="$xorg_testset_save_CFLAGS"
16642fi
16643
16644found="no"
16645
16646	if test $found = "no" ; then
16647		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16648			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16649		fi
16650
16651		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16652			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16653		fi
16654
16655		CFLAGS="$CFLAGS -Wmain"
16656
16657		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16658$as_echo_n "checking if $CC supports -Wmain... " >&6; }
16659		cacheid=xorg_cv_cc_flag__Wmain
16660		if eval \${$cacheid+:} false; then :
16661  $as_echo_n "(cached) " >&6
16662else
16663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16664/* end confdefs.h.  */
16665int i;
16666int
16667main ()
16668{
16669
16670  ;
16671  return 0;
16672}
16673_ACEOF
16674if ac_fn_c_try_link "$LINENO"; then :
16675  eval $cacheid=yes
16676else
16677  eval $cacheid=no
16678fi
16679rm -f core conftest.err conftest.$ac_objext \
16680    conftest$ac_exeext conftest.$ac_ext
16681fi
16682
16683
16684		CFLAGS="$xorg_testset_save_CFLAGS"
16685
16686		eval supported=\$$cacheid
16687		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16688$as_echo "$supported" >&6; }
16689		if test "$supported" = "yes" ; then
16690			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16691			found="yes"
16692		fi
16693	fi
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709xorg_testset_save_CFLAGS="$CFLAGS"
16710
16711if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16712	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16713	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16714$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16715if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16716  $as_echo_n "(cached) " >&6
16717else
16718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16719/* end confdefs.h.  */
16720int i;
16721_ACEOF
16722if ac_fn_c_try_compile "$LINENO"; then :
16723  xorg_cv_cc_flag_unknown_warning_option=yes
16724else
16725  xorg_cv_cc_flag_unknown_warning_option=no
16726fi
16727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16728fi
16729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16730$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16731	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16732	CFLAGS="$xorg_testset_save_CFLAGS"
16733fi
16734
16735if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16736	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16737		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16738	fi
16739	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16740	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16741$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16742if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16743  $as_echo_n "(cached) " >&6
16744else
16745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16746/* end confdefs.h.  */
16747int i;
16748_ACEOF
16749if ac_fn_c_try_compile "$LINENO"; then :
16750  xorg_cv_cc_flag_unused_command_line_argument=yes
16751else
16752  xorg_cv_cc_flag_unused_command_line_argument=no
16753fi
16754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16755fi
16756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16757$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16758	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16759	CFLAGS="$xorg_testset_save_CFLAGS"
16760fi
16761
16762found="no"
16763
16764	if test $found = "no" ; then
16765		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16766			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16767		fi
16768
16769		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16770			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16771		fi
16772
16773		CFLAGS="$CFLAGS -Wmissing-braces"
16774
16775		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16776$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16777		cacheid=xorg_cv_cc_flag__Wmissing_braces
16778		if eval \${$cacheid+:} false; then :
16779  $as_echo_n "(cached) " >&6
16780else
16781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16782/* end confdefs.h.  */
16783int i;
16784int
16785main ()
16786{
16787
16788  ;
16789  return 0;
16790}
16791_ACEOF
16792if ac_fn_c_try_link "$LINENO"; then :
16793  eval $cacheid=yes
16794else
16795  eval $cacheid=no
16796fi
16797rm -f core conftest.err conftest.$ac_objext \
16798    conftest$ac_exeext conftest.$ac_ext
16799fi
16800
16801
16802		CFLAGS="$xorg_testset_save_CFLAGS"
16803
16804		eval supported=\$$cacheid
16805		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16806$as_echo "$supported" >&6; }
16807		if test "$supported" = "yes" ; then
16808			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16809			found="yes"
16810		fi
16811	fi
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827xorg_testset_save_CFLAGS="$CFLAGS"
16828
16829if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16830	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16831	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16832$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16833if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16834  $as_echo_n "(cached) " >&6
16835else
16836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16837/* end confdefs.h.  */
16838int i;
16839_ACEOF
16840if ac_fn_c_try_compile "$LINENO"; then :
16841  xorg_cv_cc_flag_unknown_warning_option=yes
16842else
16843  xorg_cv_cc_flag_unknown_warning_option=no
16844fi
16845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16846fi
16847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16848$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16849	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16850	CFLAGS="$xorg_testset_save_CFLAGS"
16851fi
16852
16853if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16854	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16855		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16856	fi
16857	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16858	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16859$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16860if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16861  $as_echo_n "(cached) " >&6
16862else
16863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16864/* end confdefs.h.  */
16865int i;
16866_ACEOF
16867if ac_fn_c_try_compile "$LINENO"; then :
16868  xorg_cv_cc_flag_unused_command_line_argument=yes
16869else
16870  xorg_cv_cc_flag_unused_command_line_argument=no
16871fi
16872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16873fi
16874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16875$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16876	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16877	CFLAGS="$xorg_testset_save_CFLAGS"
16878fi
16879
16880found="no"
16881
16882	if test $found = "no" ; then
16883		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16884			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16885		fi
16886
16887		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16888			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16889		fi
16890
16891		CFLAGS="$CFLAGS -Wsequence-point"
16892
16893		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16894$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16895		cacheid=xorg_cv_cc_flag__Wsequence_point
16896		if eval \${$cacheid+:} false; then :
16897  $as_echo_n "(cached) " >&6
16898else
16899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16900/* end confdefs.h.  */
16901int i;
16902int
16903main ()
16904{
16905
16906  ;
16907  return 0;
16908}
16909_ACEOF
16910if ac_fn_c_try_link "$LINENO"; then :
16911  eval $cacheid=yes
16912else
16913  eval $cacheid=no
16914fi
16915rm -f core conftest.err conftest.$ac_objext \
16916    conftest$ac_exeext conftest.$ac_ext
16917fi
16918
16919
16920		CFLAGS="$xorg_testset_save_CFLAGS"
16921
16922		eval supported=\$$cacheid
16923		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16924$as_echo "$supported" >&6; }
16925		if test "$supported" = "yes" ; then
16926			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16927			found="yes"
16928		fi
16929	fi
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945xorg_testset_save_CFLAGS="$CFLAGS"
16946
16947if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16948	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16949	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16950$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16951if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16952  $as_echo_n "(cached) " >&6
16953else
16954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16955/* end confdefs.h.  */
16956int i;
16957_ACEOF
16958if ac_fn_c_try_compile "$LINENO"; then :
16959  xorg_cv_cc_flag_unknown_warning_option=yes
16960else
16961  xorg_cv_cc_flag_unknown_warning_option=no
16962fi
16963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16964fi
16965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16966$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16967	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16968	CFLAGS="$xorg_testset_save_CFLAGS"
16969fi
16970
16971if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16972	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16973		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16974	fi
16975	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16976	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16977$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16978if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16979  $as_echo_n "(cached) " >&6
16980else
16981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16982/* end confdefs.h.  */
16983int i;
16984_ACEOF
16985if ac_fn_c_try_compile "$LINENO"; then :
16986  xorg_cv_cc_flag_unused_command_line_argument=yes
16987else
16988  xorg_cv_cc_flag_unused_command_line_argument=no
16989fi
16990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16991fi
16992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16993$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16994	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16995	CFLAGS="$xorg_testset_save_CFLAGS"
16996fi
16997
16998found="no"
16999
17000	if test $found = "no" ; then
17001		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17002			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17003		fi
17004
17005		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17006			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17007		fi
17008
17009		CFLAGS="$CFLAGS -Wreturn-type"
17010
17011		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17012$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
17013		cacheid=xorg_cv_cc_flag__Wreturn_type
17014		if eval \${$cacheid+:} false; then :
17015  $as_echo_n "(cached) " >&6
17016else
17017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17018/* end confdefs.h.  */
17019int i;
17020int
17021main ()
17022{
17023
17024  ;
17025  return 0;
17026}
17027_ACEOF
17028if ac_fn_c_try_link "$LINENO"; then :
17029  eval $cacheid=yes
17030else
17031  eval $cacheid=no
17032fi
17033rm -f core conftest.err conftest.$ac_objext \
17034    conftest$ac_exeext conftest.$ac_ext
17035fi
17036
17037
17038		CFLAGS="$xorg_testset_save_CFLAGS"
17039
17040		eval supported=\$$cacheid
17041		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17042$as_echo "$supported" >&6; }
17043		if test "$supported" = "yes" ; then
17044			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17045			found="yes"
17046		fi
17047	fi
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063xorg_testset_save_CFLAGS="$CFLAGS"
17064
17065if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17066	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17067	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17068$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17069if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17070  $as_echo_n "(cached) " >&6
17071else
17072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17073/* end confdefs.h.  */
17074int i;
17075_ACEOF
17076if ac_fn_c_try_compile "$LINENO"; then :
17077  xorg_cv_cc_flag_unknown_warning_option=yes
17078else
17079  xorg_cv_cc_flag_unknown_warning_option=no
17080fi
17081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17082fi
17083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17084$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17085	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17086	CFLAGS="$xorg_testset_save_CFLAGS"
17087fi
17088
17089if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17090	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17091		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17092	fi
17093	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17094	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17095$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17096if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17097  $as_echo_n "(cached) " >&6
17098else
17099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17100/* end confdefs.h.  */
17101int i;
17102_ACEOF
17103if ac_fn_c_try_compile "$LINENO"; then :
17104  xorg_cv_cc_flag_unused_command_line_argument=yes
17105else
17106  xorg_cv_cc_flag_unused_command_line_argument=no
17107fi
17108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17109fi
17110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17111$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17112	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17113	CFLAGS="$xorg_testset_save_CFLAGS"
17114fi
17115
17116found="no"
17117
17118	if test $found = "no" ; then
17119		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17120			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17121		fi
17122
17123		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17124			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17125		fi
17126
17127		CFLAGS="$CFLAGS -Wtrigraphs"
17128
17129		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17130$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17131		cacheid=xorg_cv_cc_flag__Wtrigraphs
17132		if eval \${$cacheid+:} false; then :
17133  $as_echo_n "(cached) " >&6
17134else
17135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17136/* end confdefs.h.  */
17137int i;
17138int
17139main ()
17140{
17141
17142  ;
17143  return 0;
17144}
17145_ACEOF
17146if ac_fn_c_try_link "$LINENO"; then :
17147  eval $cacheid=yes
17148else
17149  eval $cacheid=no
17150fi
17151rm -f core conftest.err conftest.$ac_objext \
17152    conftest$ac_exeext conftest.$ac_ext
17153fi
17154
17155
17156		CFLAGS="$xorg_testset_save_CFLAGS"
17157
17158		eval supported=\$$cacheid
17159		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17160$as_echo "$supported" >&6; }
17161		if test "$supported" = "yes" ; then
17162			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17163			found="yes"
17164		fi
17165	fi
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181xorg_testset_save_CFLAGS="$CFLAGS"
17182
17183if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17184	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17185	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17186$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17187if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17188  $as_echo_n "(cached) " >&6
17189else
17190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17191/* end confdefs.h.  */
17192int i;
17193_ACEOF
17194if ac_fn_c_try_compile "$LINENO"; then :
17195  xorg_cv_cc_flag_unknown_warning_option=yes
17196else
17197  xorg_cv_cc_flag_unknown_warning_option=no
17198fi
17199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17200fi
17201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17202$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17203	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17204	CFLAGS="$xorg_testset_save_CFLAGS"
17205fi
17206
17207if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17208	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17209		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17210	fi
17211	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17212	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17213$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17214if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17215  $as_echo_n "(cached) " >&6
17216else
17217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17218/* end confdefs.h.  */
17219int i;
17220_ACEOF
17221if ac_fn_c_try_compile "$LINENO"; then :
17222  xorg_cv_cc_flag_unused_command_line_argument=yes
17223else
17224  xorg_cv_cc_flag_unused_command_line_argument=no
17225fi
17226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17227fi
17228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17229$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17230	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17231	CFLAGS="$xorg_testset_save_CFLAGS"
17232fi
17233
17234found="no"
17235
17236	if test $found = "no" ; then
17237		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17238			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17239		fi
17240
17241		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17242			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17243		fi
17244
17245		CFLAGS="$CFLAGS -Warray-bounds"
17246
17247		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17248$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17249		cacheid=xorg_cv_cc_flag__Warray_bounds
17250		if eval \${$cacheid+:} false; then :
17251  $as_echo_n "(cached) " >&6
17252else
17253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17254/* end confdefs.h.  */
17255int i;
17256int
17257main ()
17258{
17259
17260  ;
17261  return 0;
17262}
17263_ACEOF
17264if ac_fn_c_try_link "$LINENO"; then :
17265  eval $cacheid=yes
17266else
17267  eval $cacheid=no
17268fi
17269rm -f core conftest.err conftest.$ac_objext \
17270    conftest$ac_exeext conftest.$ac_ext
17271fi
17272
17273
17274		CFLAGS="$xorg_testset_save_CFLAGS"
17275
17276		eval supported=\$$cacheid
17277		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17278$as_echo "$supported" >&6; }
17279		if test "$supported" = "yes" ; then
17280			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17281			found="yes"
17282		fi
17283	fi
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299xorg_testset_save_CFLAGS="$CFLAGS"
17300
17301if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17302	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17303	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17304$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17305if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17306  $as_echo_n "(cached) " >&6
17307else
17308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17309/* end confdefs.h.  */
17310int i;
17311_ACEOF
17312if ac_fn_c_try_compile "$LINENO"; then :
17313  xorg_cv_cc_flag_unknown_warning_option=yes
17314else
17315  xorg_cv_cc_flag_unknown_warning_option=no
17316fi
17317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17318fi
17319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17320$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17321	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17322	CFLAGS="$xorg_testset_save_CFLAGS"
17323fi
17324
17325if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17326	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17327		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17328	fi
17329	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17330	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17331$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17332if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17333  $as_echo_n "(cached) " >&6
17334else
17335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17336/* end confdefs.h.  */
17337int i;
17338_ACEOF
17339if ac_fn_c_try_compile "$LINENO"; then :
17340  xorg_cv_cc_flag_unused_command_line_argument=yes
17341else
17342  xorg_cv_cc_flag_unused_command_line_argument=no
17343fi
17344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17345fi
17346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17347$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17348	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17349	CFLAGS="$xorg_testset_save_CFLAGS"
17350fi
17351
17352found="no"
17353
17354	if test $found = "no" ; then
17355		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17356			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17357		fi
17358
17359		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17360			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17361		fi
17362
17363		CFLAGS="$CFLAGS -Wwrite-strings"
17364
17365		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17366$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17367		cacheid=xorg_cv_cc_flag__Wwrite_strings
17368		if eval \${$cacheid+:} false; then :
17369  $as_echo_n "(cached) " >&6
17370else
17371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17372/* end confdefs.h.  */
17373int i;
17374int
17375main ()
17376{
17377
17378  ;
17379  return 0;
17380}
17381_ACEOF
17382if ac_fn_c_try_link "$LINENO"; then :
17383  eval $cacheid=yes
17384else
17385  eval $cacheid=no
17386fi
17387rm -f core conftest.err conftest.$ac_objext \
17388    conftest$ac_exeext conftest.$ac_ext
17389fi
17390
17391
17392		CFLAGS="$xorg_testset_save_CFLAGS"
17393
17394		eval supported=\$$cacheid
17395		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17396$as_echo "$supported" >&6; }
17397		if test "$supported" = "yes" ; then
17398			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17399			found="yes"
17400		fi
17401	fi
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417xorg_testset_save_CFLAGS="$CFLAGS"
17418
17419if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17420	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17421	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17422$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17423if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17424  $as_echo_n "(cached) " >&6
17425else
17426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17427/* end confdefs.h.  */
17428int i;
17429_ACEOF
17430if ac_fn_c_try_compile "$LINENO"; then :
17431  xorg_cv_cc_flag_unknown_warning_option=yes
17432else
17433  xorg_cv_cc_flag_unknown_warning_option=no
17434fi
17435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17436fi
17437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17438$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17439	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17440	CFLAGS="$xorg_testset_save_CFLAGS"
17441fi
17442
17443if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17444	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17445		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17446	fi
17447	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17448	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17449$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17450if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17451  $as_echo_n "(cached) " >&6
17452else
17453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17454/* end confdefs.h.  */
17455int i;
17456_ACEOF
17457if ac_fn_c_try_compile "$LINENO"; then :
17458  xorg_cv_cc_flag_unused_command_line_argument=yes
17459else
17460  xorg_cv_cc_flag_unused_command_line_argument=no
17461fi
17462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17463fi
17464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17465$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17466	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17467	CFLAGS="$xorg_testset_save_CFLAGS"
17468fi
17469
17470found="no"
17471
17472	if test $found = "no" ; then
17473		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17474			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17475		fi
17476
17477		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17478			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17479		fi
17480
17481		CFLAGS="$CFLAGS -Waddress"
17482
17483		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17484$as_echo_n "checking if $CC supports -Waddress... " >&6; }
17485		cacheid=xorg_cv_cc_flag__Waddress
17486		if eval \${$cacheid+:} false; then :
17487  $as_echo_n "(cached) " >&6
17488else
17489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17490/* end confdefs.h.  */
17491int i;
17492int
17493main ()
17494{
17495
17496  ;
17497  return 0;
17498}
17499_ACEOF
17500if ac_fn_c_try_link "$LINENO"; then :
17501  eval $cacheid=yes
17502else
17503  eval $cacheid=no
17504fi
17505rm -f core conftest.err conftest.$ac_objext \
17506    conftest$ac_exeext conftest.$ac_ext
17507fi
17508
17509
17510		CFLAGS="$xorg_testset_save_CFLAGS"
17511
17512		eval supported=\$$cacheid
17513		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17514$as_echo "$supported" >&6; }
17515		if test "$supported" = "yes" ; then
17516			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17517			found="yes"
17518		fi
17519	fi
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535xorg_testset_save_CFLAGS="$CFLAGS"
17536
17537if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17538	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17539	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17540$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17541if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17542  $as_echo_n "(cached) " >&6
17543else
17544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17545/* end confdefs.h.  */
17546int i;
17547_ACEOF
17548if ac_fn_c_try_compile "$LINENO"; then :
17549  xorg_cv_cc_flag_unknown_warning_option=yes
17550else
17551  xorg_cv_cc_flag_unknown_warning_option=no
17552fi
17553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17554fi
17555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17556$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17557	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17558	CFLAGS="$xorg_testset_save_CFLAGS"
17559fi
17560
17561if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17562	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17563		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17564	fi
17565	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17566	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17567$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17568if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17569  $as_echo_n "(cached) " >&6
17570else
17571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17572/* end confdefs.h.  */
17573int i;
17574_ACEOF
17575if ac_fn_c_try_compile "$LINENO"; then :
17576  xorg_cv_cc_flag_unused_command_line_argument=yes
17577else
17578  xorg_cv_cc_flag_unused_command_line_argument=no
17579fi
17580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17581fi
17582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17583$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17584	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17585	CFLAGS="$xorg_testset_save_CFLAGS"
17586fi
17587
17588found="no"
17589
17590	if test $found = "no" ; then
17591		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17592			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17593		fi
17594
17595		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17596			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17597		fi
17598
17599		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17600
17601		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17602$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17603		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17604		if eval \${$cacheid+:} false; then :
17605  $as_echo_n "(cached) " >&6
17606else
17607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17608/* end confdefs.h.  */
17609int i;
17610int
17611main ()
17612{
17613
17614  ;
17615  return 0;
17616}
17617_ACEOF
17618if ac_fn_c_try_link "$LINENO"; then :
17619  eval $cacheid=yes
17620else
17621  eval $cacheid=no
17622fi
17623rm -f core conftest.err conftest.$ac_objext \
17624    conftest$ac_exeext conftest.$ac_ext
17625fi
17626
17627
17628		CFLAGS="$xorg_testset_save_CFLAGS"
17629
17630		eval supported=\$$cacheid
17631		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17632$as_echo "$supported" >&6; }
17633		if test "$supported" = "yes" ; then
17634			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17635			found="yes"
17636		fi
17637	fi
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653xorg_testset_save_CFLAGS="$CFLAGS"
17654
17655if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17656	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17657	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17658$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17659if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17660  $as_echo_n "(cached) " >&6
17661else
17662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17663/* end confdefs.h.  */
17664int i;
17665_ACEOF
17666if ac_fn_c_try_compile "$LINENO"; then :
17667  xorg_cv_cc_flag_unknown_warning_option=yes
17668else
17669  xorg_cv_cc_flag_unknown_warning_option=no
17670fi
17671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17672fi
17673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17674$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17675	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17676	CFLAGS="$xorg_testset_save_CFLAGS"
17677fi
17678
17679if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17680	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17681		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17682	fi
17683	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17684	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17685$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17686if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17687  $as_echo_n "(cached) " >&6
17688else
17689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17690/* end confdefs.h.  */
17691int i;
17692_ACEOF
17693if ac_fn_c_try_compile "$LINENO"; then :
17694  xorg_cv_cc_flag_unused_command_line_argument=yes
17695else
17696  xorg_cv_cc_flag_unused_command_line_argument=no
17697fi
17698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17699fi
17700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17701$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17702	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17703	CFLAGS="$xorg_testset_save_CFLAGS"
17704fi
17705
17706found="no"
17707
17708	if test $found = "no" ; then
17709		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17710			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17711		fi
17712
17713		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17714			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17715		fi
17716
17717		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17718
17719		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17720$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17721		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17722		if eval \${$cacheid+:} false; then :
17723  $as_echo_n "(cached) " >&6
17724else
17725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17726/* end confdefs.h.  */
17727int i;
17728int
17729main ()
17730{
17731
17732  ;
17733  return 0;
17734}
17735_ACEOF
17736if ac_fn_c_try_link "$LINENO"; then :
17737  eval $cacheid=yes
17738else
17739  eval $cacheid=no
17740fi
17741rm -f core conftest.err conftest.$ac_objext \
17742    conftest$ac_exeext conftest.$ac_ext
17743fi
17744
17745
17746		CFLAGS="$xorg_testset_save_CFLAGS"
17747
17748		eval supported=\$$cacheid
17749		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17750$as_echo "$supported" >&6; }
17751		if test "$supported" = "yes" ; then
17752			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17753			found="yes"
17754		fi
17755	fi
17756
17757
17758fi
17759
17760
17761
17762
17763
17764
17765
17766		CWARNFLAGS="$BASE_CFLAGS"
17767		if  test "x$GCC" = xyes ; then
17768		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17769		fi
17770
17771
17772
17773
17774
17775
17776
17777
17778# Check whether --enable-strict-compilation was given.
17779if test "${enable_strict_compilation+set}" = set; then :
17780  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17781else
17782  STRICT_COMPILE=no
17783fi
17784
17785
17786
17787
17788
17789
17790STRICT_CFLAGS=""
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804xorg_testset_save_CFLAGS="$CFLAGS"
17805
17806if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17807	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17808	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17809$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17810if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17811  $as_echo_n "(cached) " >&6
17812else
17813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17814/* end confdefs.h.  */
17815int i;
17816_ACEOF
17817if ac_fn_c_try_compile "$LINENO"; then :
17818  xorg_cv_cc_flag_unknown_warning_option=yes
17819else
17820  xorg_cv_cc_flag_unknown_warning_option=no
17821fi
17822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17823fi
17824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17825$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17826	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17827	CFLAGS="$xorg_testset_save_CFLAGS"
17828fi
17829
17830if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17831	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17832		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17833	fi
17834	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17835	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17836$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17837if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17838  $as_echo_n "(cached) " >&6
17839else
17840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17841/* end confdefs.h.  */
17842int i;
17843_ACEOF
17844if ac_fn_c_try_compile "$LINENO"; then :
17845  xorg_cv_cc_flag_unused_command_line_argument=yes
17846else
17847  xorg_cv_cc_flag_unused_command_line_argument=no
17848fi
17849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17850fi
17851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17852$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17853	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17854	CFLAGS="$xorg_testset_save_CFLAGS"
17855fi
17856
17857found="no"
17858
17859	if test $found = "no" ; then
17860		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17861			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17862		fi
17863
17864		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17865			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17866		fi
17867
17868		CFLAGS="$CFLAGS -pedantic"
17869
17870		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17871$as_echo_n "checking if $CC supports -pedantic... " >&6; }
17872		cacheid=xorg_cv_cc_flag__pedantic
17873		if eval \${$cacheid+:} false; then :
17874  $as_echo_n "(cached) " >&6
17875else
17876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17877/* end confdefs.h.  */
17878int i;
17879int
17880main ()
17881{
17882
17883  ;
17884  return 0;
17885}
17886_ACEOF
17887if ac_fn_c_try_link "$LINENO"; then :
17888  eval $cacheid=yes
17889else
17890  eval $cacheid=no
17891fi
17892rm -f core conftest.err conftest.$ac_objext \
17893    conftest$ac_exeext conftest.$ac_ext
17894fi
17895
17896
17897		CFLAGS="$xorg_testset_save_CFLAGS"
17898
17899		eval supported=\$$cacheid
17900		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17901$as_echo "$supported" >&6; }
17902		if test "$supported" = "yes" ; then
17903			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17904			found="yes"
17905		fi
17906	fi
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922xorg_testset_save_CFLAGS="$CFLAGS"
17923
17924if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17925	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17926	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17927$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17928if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17929  $as_echo_n "(cached) " >&6
17930else
17931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17932/* end confdefs.h.  */
17933int i;
17934_ACEOF
17935if ac_fn_c_try_compile "$LINENO"; then :
17936  xorg_cv_cc_flag_unknown_warning_option=yes
17937else
17938  xorg_cv_cc_flag_unknown_warning_option=no
17939fi
17940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17941fi
17942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17943$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17944	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17945	CFLAGS="$xorg_testset_save_CFLAGS"
17946fi
17947
17948if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17949	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17950		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17951	fi
17952	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17953	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17954$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17955if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17956  $as_echo_n "(cached) " >&6
17957else
17958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17959/* end confdefs.h.  */
17960int i;
17961_ACEOF
17962if ac_fn_c_try_compile "$LINENO"; then :
17963  xorg_cv_cc_flag_unused_command_line_argument=yes
17964else
17965  xorg_cv_cc_flag_unused_command_line_argument=no
17966fi
17967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17968fi
17969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17970$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17971	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17972	CFLAGS="$xorg_testset_save_CFLAGS"
17973fi
17974
17975found="no"
17976
17977	if test $found = "no" ; then
17978		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17979			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17980		fi
17981
17982		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17983			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17984		fi
17985
17986		CFLAGS="$CFLAGS -Werror"
17987
17988		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17989$as_echo_n "checking if $CC supports -Werror... " >&6; }
17990		cacheid=xorg_cv_cc_flag__Werror
17991		if eval \${$cacheid+:} false; then :
17992  $as_echo_n "(cached) " >&6
17993else
17994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17995/* end confdefs.h.  */
17996int i;
17997int
17998main ()
17999{
18000
18001  ;
18002  return 0;
18003}
18004_ACEOF
18005if ac_fn_c_try_link "$LINENO"; then :
18006  eval $cacheid=yes
18007else
18008  eval $cacheid=no
18009fi
18010rm -f core conftest.err conftest.$ac_objext \
18011    conftest$ac_exeext conftest.$ac_ext
18012fi
18013
18014
18015		CFLAGS="$xorg_testset_save_CFLAGS"
18016
18017		eval supported=\$$cacheid
18018		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18019$as_echo "$supported" >&6; }
18020		if test "$supported" = "yes" ; then
18021			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18022			found="yes"
18023		fi
18024	fi
18025
18026	if test $found = "no" ; then
18027		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18028			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18029		fi
18030
18031		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18032			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18033		fi
18034
18035		CFLAGS="$CFLAGS -errwarn"
18036
18037		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18038$as_echo_n "checking if $CC supports -errwarn... " >&6; }
18039		cacheid=xorg_cv_cc_flag__errwarn
18040		if eval \${$cacheid+:} false; then :
18041  $as_echo_n "(cached) " >&6
18042else
18043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18044/* end confdefs.h.  */
18045int i;
18046int
18047main ()
18048{
18049
18050  ;
18051  return 0;
18052}
18053_ACEOF
18054if ac_fn_c_try_link "$LINENO"; then :
18055  eval $cacheid=yes
18056else
18057  eval $cacheid=no
18058fi
18059rm -f core conftest.err conftest.$ac_objext \
18060    conftest$ac_exeext conftest.$ac_ext
18061fi
18062
18063
18064		CFLAGS="$xorg_testset_save_CFLAGS"
18065
18066		eval supported=\$$cacheid
18067		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18068$as_echo "$supported" >&6; }
18069		if test "$supported" = "yes" ; then
18070			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18071			found="yes"
18072		fi
18073	fi
18074
18075
18076
18077# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18078# activate it with -Werror, so we add it here explicitly.
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092xorg_testset_save_CFLAGS="$CFLAGS"
18093
18094if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18095	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18096	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18097$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18098if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18099  $as_echo_n "(cached) " >&6
18100else
18101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18102/* end confdefs.h.  */
18103int i;
18104_ACEOF
18105if ac_fn_c_try_compile "$LINENO"; then :
18106  xorg_cv_cc_flag_unknown_warning_option=yes
18107else
18108  xorg_cv_cc_flag_unknown_warning_option=no
18109fi
18110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18111fi
18112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18113$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18114	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18115	CFLAGS="$xorg_testset_save_CFLAGS"
18116fi
18117
18118if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18119	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18120		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18121	fi
18122	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18123	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18124$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18125if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18126  $as_echo_n "(cached) " >&6
18127else
18128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18129/* end confdefs.h.  */
18130int i;
18131_ACEOF
18132if ac_fn_c_try_compile "$LINENO"; then :
18133  xorg_cv_cc_flag_unused_command_line_argument=yes
18134else
18135  xorg_cv_cc_flag_unused_command_line_argument=no
18136fi
18137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18138fi
18139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18140$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18141	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18142	CFLAGS="$xorg_testset_save_CFLAGS"
18143fi
18144
18145found="no"
18146
18147	if test $found = "no" ; then
18148		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18149			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18150		fi
18151
18152		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18153			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18154		fi
18155
18156		CFLAGS="$CFLAGS -Werror=attributes"
18157
18158		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18159$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18160		cacheid=xorg_cv_cc_flag__Werror_attributes
18161		if eval \${$cacheid+:} false; then :
18162  $as_echo_n "(cached) " >&6
18163else
18164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18165/* end confdefs.h.  */
18166int i;
18167int
18168main ()
18169{
18170
18171  ;
18172  return 0;
18173}
18174_ACEOF
18175if ac_fn_c_try_link "$LINENO"; then :
18176  eval $cacheid=yes
18177else
18178  eval $cacheid=no
18179fi
18180rm -f core conftest.err conftest.$ac_objext \
18181    conftest$ac_exeext conftest.$ac_ext
18182fi
18183
18184
18185		CFLAGS="$xorg_testset_save_CFLAGS"
18186
18187		eval supported=\$$cacheid
18188		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18189$as_echo "$supported" >&6; }
18190		if test "$supported" = "yes" ; then
18191			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18192			found="yes"
18193		fi
18194	fi
18195
18196
18197
18198if test "x$STRICT_COMPILE" = "xyes"; then
18199    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18200    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18201fi
18202
18203
18204
18205
18206
18207
18208cat >>confdefs.h <<_ACEOF
18209#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18210_ACEOF
18211
18212	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18213	if test "x$PVM" = "x"; then
18214		PVM="0"
18215	fi
18216
18217cat >>confdefs.h <<_ACEOF
18218#define PACKAGE_VERSION_MINOR $PVM
18219_ACEOF
18220
18221	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18222	if test "x$PVP" = "x"; then
18223		PVP="0"
18224	fi
18225
18226cat >>confdefs.h <<_ACEOF
18227#define PACKAGE_VERSION_PATCHLEVEL $PVP
18228_ACEOF
18229
18230
18231
18232CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
18233mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18234|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
18235echo 'git directory not found: installing possibly empty changelog.' >&2)"
18236
18237
18238
18239
18240macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18241INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18242mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18243|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
18244echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
18245
18246
18247
18248
18249
18250
18251if test x$APP_MAN_SUFFIX = x    ; then
18252    APP_MAN_SUFFIX=1
18253fi
18254if test x$APP_MAN_DIR = x    ; then
18255    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18256fi
18257
18258if test x$LIB_MAN_SUFFIX = x    ; then
18259    LIB_MAN_SUFFIX=3
18260fi
18261if test x$LIB_MAN_DIR = x    ; then
18262    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18263fi
18264
18265if test x$FILE_MAN_SUFFIX = x    ; then
18266    case $host_os in
18267	solaris*)	FILE_MAN_SUFFIX=4  ;;
18268	*)		FILE_MAN_SUFFIX=5  ;;
18269    esac
18270fi
18271if test x$FILE_MAN_DIR = x    ; then
18272    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18273fi
18274
18275if test x$MISC_MAN_SUFFIX = x    ; then
18276    case $host_os in
18277	solaris*)	MISC_MAN_SUFFIX=5  ;;
18278	*)		MISC_MAN_SUFFIX=7  ;;
18279    esac
18280fi
18281if test x$MISC_MAN_DIR = x    ; then
18282    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18283fi
18284
18285if test x$DRIVER_MAN_SUFFIX = x    ; then
18286    case $host_os in
18287	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
18288	*)		DRIVER_MAN_SUFFIX=4  ;;
18289    esac
18290fi
18291if test x$DRIVER_MAN_DIR = x    ; then
18292    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18293fi
18294
18295if test x$ADMIN_MAN_SUFFIX = x    ; then
18296    case $host_os in
18297	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
18298	*)		ADMIN_MAN_SUFFIX=8  ;;
18299    esac
18300fi
18301if test x$ADMIN_MAN_DIR = x    ; then
18302    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18303fi
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319XORG_MAN_PAGE="X Version 11"
18320
18321MAN_SUBSTS="\
18322	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18323	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18324	-e 's|__xservername__|Xorg|g' \
18325	-e 's|__xconfigfile__|xorg.conf|g' \
18326	-e 's|__projectroot__|\$(prefix)|g' \
18327	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
18328	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18329	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18330	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18331	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18332	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18333	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18334
18335
18336
18337# Check whether --enable-silent-rules was given.
18338if test "${enable_silent_rules+set}" = set; then :
18339  enableval=$enable_silent_rules;
18340fi
18341
18342case $enable_silent_rules in # (((
18343  yes) AM_DEFAULT_VERBOSITY=0;;
18344   no) AM_DEFAULT_VERBOSITY=1;;
18345    *) AM_DEFAULT_VERBOSITY=0;;
18346esac
18347am_make=${MAKE-make}
18348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18349$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18350if ${am_cv_make_support_nested_variables+:} false; then :
18351  $as_echo_n "(cached) " >&6
18352else
18353  if $as_echo 'TRUE=$(BAR$(V))
18354BAR0=false
18355BAR1=true
18356V=1
18357am__doit:
18358	@$(TRUE)
18359.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18360  am_cv_make_support_nested_variables=yes
18361else
18362  am_cv_make_support_nested_variables=no
18363fi
18364fi
18365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18366$as_echo "$am_cv_make_support_nested_variables" >&6; }
18367if test $am_cv_make_support_nested_variables = yes; then
18368    AM_V='$(V)'
18369  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18370else
18371  AM_V=$AM_DEFAULT_VERBOSITY
18372  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18373fi
18374AM_BACKSLASH='\'
18375
18376
18377
18378
18379# Check whether --enable-docs was given.
18380if test "${enable_docs+set}" = set; then :
18381  enableval=$enable_docs; build_docs=$enableval
18382else
18383  build_docs=yes
18384fi
18385
18386
18387 if test x$build_docs = xyes; then
18388  ENABLE_DOCS_TRUE=
18389  ENABLE_DOCS_FALSE='#'
18390else
18391  ENABLE_DOCS_TRUE='#'
18392  ENABLE_DOCS_FALSE=
18393fi
18394
18395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
18396$as_echo_n "checking whether to build documentation... " >&6; }
18397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
18398$as_echo "$build_docs" >&6; }
18399
18400
18401
18402# Check whether --enable-specs was given.
18403if test "${enable_specs+set}" = set; then :
18404  enableval=$enable_specs; build_specs=$enableval
18405else
18406  build_specs=yes
18407fi
18408
18409
18410 if test x$build_specs = xyes; then
18411  ENABLE_SPECS_TRUE=
18412  ENABLE_SPECS_FALSE='#'
18413else
18414  ENABLE_SPECS_TRUE='#'
18415  ENABLE_SPECS_FALSE=
18416fi
18417
18418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
18419$as_echo_n "checking whether to build functional specifications... " >&6; }
18420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
18421$as_echo "$build_specs" >&6; }
18422
18423
18424
18425
18426
18427# Check whether --with-xmlto was given.
18428if test "${with_xmlto+set}" = set; then :
18429  withval=$with_xmlto; use_xmlto=$withval
18430else
18431  use_xmlto=auto
18432fi
18433
18434
18435
18436if test "x$use_xmlto" = x"auto"; then
18437   # Extract the first word of "xmlto", so it can be a program name with args.
18438set dummy xmlto; ac_word=$2
18439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18440$as_echo_n "checking for $ac_word... " >&6; }
18441if ${ac_cv_path_XMLTO+:} false; then :
18442  $as_echo_n "(cached) " >&6
18443else
18444  case $XMLTO in
18445  [\\/]* | ?:[\\/]*)
18446  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
18447  ;;
18448  *)
18449  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18450for as_dir in $PATH
18451do
18452  IFS=$as_save_IFS
18453  test -z "$as_dir" && as_dir=.
18454    for ac_exec_ext in '' $ac_executable_extensions; do
18455  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18456    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
18457    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18458    break 2
18459  fi
18460done
18461  done
18462IFS=$as_save_IFS
18463
18464  ;;
18465esac
18466fi
18467XMLTO=$ac_cv_path_XMLTO
18468if test -n "$XMLTO"; then
18469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18470$as_echo "$XMLTO" >&6; }
18471else
18472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18473$as_echo "no" >&6; }
18474fi
18475
18476
18477   if test "x$XMLTO" = "x"; then
18478        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
18479$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
18480	have_xmlto=no
18481   else
18482        have_xmlto=yes
18483   fi
18484elif test "x$use_xmlto" = x"yes" ; then
18485   # Extract the first word of "xmlto", so it can be a program name with args.
18486set dummy xmlto; ac_word=$2
18487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18488$as_echo_n "checking for $ac_word... " >&6; }
18489if ${ac_cv_path_XMLTO+:} false; then :
18490  $as_echo_n "(cached) " >&6
18491else
18492  case $XMLTO in
18493  [\\/]* | ?:[\\/]*)
18494  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
18495  ;;
18496  *)
18497  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18498for as_dir in $PATH
18499do
18500  IFS=$as_save_IFS
18501  test -z "$as_dir" && as_dir=.
18502    for ac_exec_ext in '' $ac_executable_extensions; do
18503  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18504    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
18505    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18506    break 2
18507  fi
18508done
18509  done
18510IFS=$as_save_IFS
18511
18512  ;;
18513esac
18514fi
18515XMLTO=$ac_cv_path_XMLTO
18516if test -n "$XMLTO"; then
18517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18518$as_echo "$XMLTO" >&6; }
18519else
18520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18521$as_echo "no" >&6; }
18522fi
18523
18524
18525   if test "x$XMLTO" = "x"; then
18526        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
18527   fi
18528   have_xmlto=yes
18529elif test "x$use_xmlto" = x"no" ; then
18530   if test "x$XMLTO" != "x"; then
18531      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
18532$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
18533   fi
18534   have_xmlto=no
18535else
18536   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
18537fi
18538
18539# Test for a minimum version of xmlto, if provided.
18540if test "$have_xmlto" = yes; then
18541    # scrape the xmlto version
18542    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
18543$as_echo_n "checking the xmlto version... " >&6; }
18544    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
18545    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
18546$as_echo "$xmlto_version" >&6; }
18547    as_arg_v1=$xmlto_version
18548as_arg_v2=0.0.22
18549awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18550case $? in #(
18551  1) :
18552    if test "x$use_xmlto" = xauto; then
18553            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
18554$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
18555            have_xmlto=no
18556        else
18557            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
18558        fi ;; #(
18559  0) :
18560     ;; #(
18561  2) :
18562     ;; #(
18563  *) :
18564     ;;
18565esac
18566fi
18567
18568# Test for the ability of xmlto to generate a text target
18569have_xmlto_text=no
18570cat > conftest.xml << "EOF"
18571EOF
18572if test "$have_xmlto" = yes; then :
18573  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
18574  have_xmlto_text=yes
18575else
18576  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
18577$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
18578fi
18579fi
18580rm -f conftest.xml
18581 if test $have_xmlto_text = yes; then
18582  HAVE_XMLTO_TEXT_TRUE=
18583  HAVE_XMLTO_TEXT_FALSE='#'
18584else
18585  HAVE_XMLTO_TEXT_TRUE='#'
18586  HAVE_XMLTO_TEXT_FALSE=
18587fi
18588
18589 if test "$have_xmlto" = yes; then
18590  HAVE_XMLTO_TRUE=
18591  HAVE_XMLTO_FALSE='#'
18592else
18593  HAVE_XMLTO_TRUE='#'
18594  HAVE_XMLTO_FALSE=
18595fi
18596
18597
18598
18599
18600
18601
18602# Check whether --with-fop was given.
18603if test "${with_fop+set}" = set; then :
18604  withval=$with_fop; use_fop=$withval
18605else
18606  use_fop=auto
18607fi
18608
18609
18610
18611if test "x$use_fop" = x"auto"; then
18612   # Extract the first word of "fop", so it can be a program name with args.
18613set dummy fop; ac_word=$2
18614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18615$as_echo_n "checking for $ac_word... " >&6; }
18616if ${ac_cv_path_FOP+:} false; then :
18617  $as_echo_n "(cached) " >&6
18618else
18619  case $FOP in
18620  [\\/]* | ?:[\\/]*)
18621  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18622  ;;
18623  *)
18624  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18625for as_dir in $PATH
18626do
18627  IFS=$as_save_IFS
18628  test -z "$as_dir" && as_dir=.
18629    for ac_exec_ext in '' $ac_executable_extensions; do
18630  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18631    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18632    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18633    break 2
18634  fi
18635done
18636  done
18637IFS=$as_save_IFS
18638
18639  ;;
18640esac
18641fi
18642FOP=$ac_cv_path_FOP
18643if test -n "$FOP"; then
18644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18645$as_echo "$FOP" >&6; }
18646else
18647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18648$as_echo "no" >&6; }
18649fi
18650
18651
18652   if test "x$FOP" = "x"; then
18653        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
18654$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
18655	have_fop=no
18656   else
18657        have_fop=yes
18658   fi
18659elif test "x$use_fop" = x"yes" ; then
18660   # Extract the first word of "fop", so it can be a program name with args.
18661set dummy fop; ac_word=$2
18662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18663$as_echo_n "checking for $ac_word... " >&6; }
18664if ${ac_cv_path_FOP+:} false; then :
18665  $as_echo_n "(cached) " >&6
18666else
18667  case $FOP in
18668  [\\/]* | ?:[\\/]*)
18669  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18670  ;;
18671  *)
18672  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18673for as_dir in $PATH
18674do
18675  IFS=$as_save_IFS
18676  test -z "$as_dir" && as_dir=.
18677    for ac_exec_ext in '' $ac_executable_extensions; do
18678  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18679    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18680    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18681    break 2
18682  fi
18683done
18684  done
18685IFS=$as_save_IFS
18686
18687  ;;
18688esac
18689fi
18690FOP=$ac_cv_path_FOP
18691if test -n "$FOP"; then
18692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18693$as_echo "$FOP" >&6; }
18694else
18695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18696$as_echo "no" >&6; }
18697fi
18698
18699
18700   if test "x$FOP" = "x"; then
18701        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
18702   fi
18703   have_fop=yes
18704elif test "x$use_fop" = x"no" ; then
18705   if test "x$FOP" != "x"; then
18706      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
18707$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
18708   fi
18709   have_fop=no
18710else
18711   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
18712fi
18713
18714# Test for a minimum version of fop, if provided.
18715
18716 if test "$have_fop" = yes; then
18717  HAVE_FOP_TRUE=
18718  HAVE_FOP_FALSE='#'
18719else
18720  HAVE_FOP_TRUE='#'
18721  HAVE_FOP_FALSE=
18722fi
18723
18724
18725
18726
18727# Preserves the interface, should it be implemented later
18728
18729
18730
18731# Check whether --with-xsltproc was given.
18732if test "${with_xsltproc+set}" = set; then :
18733  withval=$with_xsltproc; use_xsltproc=$withval
18734else
18735  use_xsltproc=auto
18736fi
18737
18738
18739
18740if test "x$use_xsltproc" = x"auto"; then
18741   # Extract the first word of "xsltproc", so it can be a program name with args.
18742set dummy xsltproc; ac_word=$2
18743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18744$as_echo_n "checking for $ac_word... " >&6; }
18745if ${ac_cv_path_XSLTPROC+:} false; then :
18746  $as_echo_n "(cached) " >&6
18747else
18748  case $XSLTPROC in
18749  [\\/]* | ?:[\\/]*)
18750  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
18751  ;;
18752  *)
18753  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18754for as_dir in $PATH
18755do
18756  IFS=$as_save_IFS
18757  test -z "$as_dir" && as_dir=.
18758    for ac_exec_ext in '' $ac_executable_extensions; do
18759  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18760    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
18761    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18762    break 2
18763  fi
18764done
18765  done
18766IFS=$as_save_IFS
18767
18768  ;;
18769esac
18770fi
18771XSLTPROC=$ac_cv_path_XSLTPROC
18772if test -n "$XSLTPROC"; then
18773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18774$as_echo "$XSLTPROC" >&6; }
18775else
18776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18777$as_echo "no" >&6; }
18778fi
18779
18780
18781   if test "x$XSLTPROC" = "x"; then
18782        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
18783$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
18784	have_xsltproc=no
18785   else
18786        have_xsltproc=yes
18787   fi
18788elif test "x$use_xsltproc" = x"yes" ; then
18789   # Extract the first word of "xsltproc", so it can be a program name with args.
18790set dummy xsltproc; ac_word=$2
18791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18792$as_echo_n "checking for $ac_word... " >&6; }
18793if ${ac_cv_path_XSLTPROC+:} false; then :
18794  $as_echo_n "(cached) " >&6
18795else
18796  case $XSLTPROC in
18797  [\\/]* | ?:[\\/]*)
18798  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
18799  ;;
18800  *)
18801  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18802for as_dir in $PATH
18803do
18804  IFS=$as_save_IFS
18805  test -z "$as_dir" && as_dir=.
18806    for ac_exec_ext in '' $ac_executable_extensions; do
18807  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18808    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
18809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18810    break 2
18811  fi
18812done
18813  done
18814IFS=$as_save_IFS
18815
18816  ;;
18817esac
18818fi
18819XSLTPROC=$ac_cv_path_XSLTPROC
18820if test -n "$XSLTPROC"; then
18821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18822$as_echo "$XSLTPROC" >&6; }
18823else
18824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18825$as_echo "no" >&6; }
18826fi
18827
18828
18829   if test "x$XSLTPROC" = "x"; then
18830        as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
18831   fi
18832   have_xsltproc=yes
18833elif test "x$use_xsltproc" = x"no" ; then
18834   if test "x$XSLTPROC" != "x"; then
18835      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
18836$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
18837   fi
18838   have_xsltproc=no
18839else
18840   as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
18841fi
18842
18843 if test "$have_xsltproc" = yes; then
18844  HAVE_XSLTPROC_TRUE=
18845  HAVE_XSLTPROC_FALSE='#'
18846else
18847  HAVE_XSLTPROC_TRUE='#'
18848  HAVE_XSLTPROC_FALSE=
18849fi
18850
18851
18852
18853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
18854$as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; }
18855XORG_SGML_PATH=
18856if test -n "$PKG_CONFIG" && \
18857    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
18858  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
18859  ac_status=$?
18860  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18861  test $ac_status = 0; }; then
18862  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
18863else
18864  :
18865
18866fi
18867
18868# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
18869# the path and the name of the doc stylesheet
18870if test "x$XORG_SGML_PATH" != "x" ; then
18871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
18872$as_echo "$XORG_SGML_PATH" >&6; }
18873   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
18874   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
18875else
18876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18877$as_echo "no" >&6; }
18878fi
18879
18880
18881
18882
18883 if test "x$XSL_STYLESHEET" != "x"; then
18884  HAVE_STYLESHEETS_TRUE=
18885  HAVE_STYLESHEETS_FALSE='#'
18886else
18887  HAVE_STYLESHEETS_TRUE='#'
18888  HAVE_STYLESHEETS_FALSE=
18889fi
18890
18891
18892
18893
18894
18895
18896# Check whether --with-asciidoc was given.
18897if test "${with_asciidoc+set}" = set; then :
18898  withval=$with_asciidoc; use_asciidoc=$withval
18899else
18900  use_asciidoc=auto
18901fi
18902
18903
18904
18905if test "x$use_asciidoc" = x"auto"; then
18906   # Extract the first word of "asciidoc", so it can be a program name with args.
18907set dummy asciidoc; ac_word=$2
18908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18909$as_echo_n "checking for $ac_word... " >&6; }
18910if ${ac_cv_path_ASCIIDOC+:} false; then :
18911  $as_echo_n "(cached) " >&6
18912else
18913  case $ASCIIDOC in
18914  [\\/]* | ?:[\\/]*)
18915  ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path.
18916  ;;
18917  *)
18918  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18919for as_dir in $PATH
18920do
18921  IFS=$as_save_IFS
18922  test -z "$as_dir" && as_dir=.
18923    for ac_exec_ext in '' $ac_executable_extensions; do
18924  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18925    ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext"
18926    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18927    break 2
18928  fi
18929done
18930  done
18931IFS=$as_save_IFS
18932
18933  ;;
18934esac
18935fi
18936ASCIIDOC=$ac_cv_path_ASCIIDOC
18937if test -n "$ASCIIDOC"; then
18938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
18939$as_echo "$ASCIIDOC" >&6; }
18940else
18941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18942$as_echo "no" >&6; }
18943fi
18944
18945
18946   if test "x$ASCIIDOC" = "x"; then
18947        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc not found - documentation targets will be skipped" >&5
18948$as_echo "$as_me: WARNING: asciidoc not found - documentation targets will be skipped" >&2;}
18949	have_asciidoc=no
18950   else
18951        have_asciidoc=yes
18952   fi
18953elif test "x$use_asciidoc" = x"yes" ; then
18954   # Extract the first word of "asciidoc", so it can be a program name with args.
18955set dummy asciidoc; ac_word=$2
18956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18957$as_echo_n "checking for $ac_word... " >&6; }
18958if ${ac_cv_path_ASCIIDOC+:} false; then :
18959  $as_echo_n "(cached) " >&6
18960else
18961  case $ASCIIDOC in
18962  [\\/]* | ?:[\\/]*)
18963  ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path.
18964  ;;
18965  *)
18966  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18967for as_dir in $PATH
18968do
18969  IFS=$as_save_IFS
18970  test -z "$as_dir" && as_dir=.
18971    for ac_exec_ext in '' $ac_executable_extensions; do
18972  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18973    ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext"
18974    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18975    break 2
18976  fi
18977done
18978  done
18979IFS=$as_save_IFS
18980
18981  ;;
18982esac
18983fi
18984ASCIIDOC=$ac_cv_path_ASCIIDOC
18985if test -n "$ASCIIDOC"; then
18986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
18987$as_echo "$ASCIIDOC" >&6; }
18988else
18989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18990$as_echo "no" >&6; }
18991fi
18992
18993
18994   if test "x$ASCIIDOC" = "x"; then
18995        as_fn_error $? "--with-asciidoc=yes specified but asciidoc not found in PATH" "$LINENO" 5
18996   fi
18997   have_asciidoc=yes
18998elif test "x$use_asciidoc" = x"no" ; then
18999   if test "x$ASCIIDOC" != "x"; then
19000      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&5
19001$as_echo "$as_me: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&2;}
19002   fi
19003   have_asciidoc=no
19004else
19005   as_fn_error $? "--with-asciidoc expects 'yes' or 'no'" "$LINENO" 5
19006fi
19007if test "$have_asciidoc" = yes; then
19008    # scrape the asciidoc version
19009    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the asciidoc version" >&5
19010$as_echo_n "checking the asciidoc version... " >&6; }
19011    asciidoc_version=`$ASCIIDOC --version 2>/dev/null | cut -d' ' -f2`
19012    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $asciidoc_version" >&5
19013$as_echo "$asciidoc_version" >&6; }
19014    as_arg_v1=$asciidoc_version
19015as_arg_v2=8.4.5
19016awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
19017case $? in #(
19018  1) :
19019    if test "x$use_asciidoc" = xauto; then
19020            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&5
19021$as_echo "$as_me: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&2;}
19022            have_asciidoc=no
19023        else
19024            as_fn_error $? "asciidoc version $asciidoc_version found, but 8.4.5 needed" "$LINENO" 5
19025        fi ;; #(
19026  0) :
19027     ;; #(
19028  2) :
19029     ;; #(
19030  *) :
19031     ;;
19032esac
19033fi
19034 if test "$have_asciidoc" = yes; then
19035  HAVE_ASCIIDOC_TRUE=
19036  HAVE_ASCIIDOC_FALSE='#'
19037else
19038  HAVE_ASCIIDOC_TRUE='#'
19039  HAVE_ASCIIDOC_FALSE=
19040fi
19041
19042
19043
19044# Check whether --enable-malloc0returnsnull was given.
19045if test "${enable_malloc0returnsnull+set}" = set; then :
19046  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
19047else
19048  MALLOC_ZERO_RETURNS_NULL=auto
19049fi
19050
19051
19052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
19053$as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
19054if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
19055if ${xorg_cv_malloc0_returns_null+:} false; then :
19056  $as_echo_n "(cached) " >&6
19057else
19058  if test "$cross_compiling" = yes; then :
19059  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19060$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19061as_fn_error $? "cannot run test program while cross compiling
19062See \`config.log' for more details" "$LINENO" 5; }
19063else
19064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19065/* end confdefs.h.  */
19066
19067#include <stdlib.h>
19068
19069int
19070main ()
19071{
19072
19073    char *m0, *r0, *c0, *p;
19074    m0 = malloc(0);
19075    p = malloc(10);
19076    r0 = realloc(p,0);
19077    c0 = calloc(0,10);
19078    exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
19079
19080  ;
19081  return 0;
19082}
19083_ACEOF
19084if ac_fn_c_try_run "$LINENO"; then :
19085  xorg_cv_malloc0_returns_null=yes
19086else
19087  xorg_cv_malloc0_returns_null=no
19088fi
19089rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19090  conftest.$ac_objext conftest.beam conftest.$ac_ext
19091fi
19092
19093fi
19094
19095MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
19096fi
19097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
19098$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
19099
19100if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
19101	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
19102	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
19103	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
19104else
19105	MALLOC_ZERO_CFLAGS=""
19106	XMALLOC_ZERO_CFLAGS=""
19107	XTMALLOC_ZERO_CFLAGS=""
19108fi
19109
19110
19111
19112
19113
19114
19115# Obtain compiler/linker options for dependencies
19116
19117pkg_failed=no
19118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XI" >&5
19119$as_echo_n "checking for XI... " >&6; }
19120
19121if test -n "$XI_CFLAGS"; then
19122    pkg_cv_XI_CFLAGS="$XI_CFLAGS"
19123 elif test -n "$PKG_CONFIG"; then
19124    if test -n "$PKG_CONFIG" && \
19125    { { $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
19126  ($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
19127  ac_status=$?
19128  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19129  test $ac_status = 0; }; then
19130  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`
19131		      test "x$?" != "x0" && pkg_failed=yes
19132else
19133  pkg_failed=yes
19134fi
19135 else
19136    pkg_failed=untried
19137fi
19138if test -n "$XI_LIBS"; then
19139    pkg_cv_XI_LIBS="$XI_LIBS"
19140 elif test -n "$PKG_CONFIG"; then
19141    if test -n "$PKG_CONFIG" && \
19142    { { $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
19143  ($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
19144  ac_status=$?
19145  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19146  test $ac_status = 0; }; then
19147  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`
19148		      test "x$?" != "x0" && pkg_failed=yes
19149else
19150  pkg_failed=yes
19151fi
19152 else
19153    pkg_failed=untried
19154fi
19155
19156
19157
19158if test $pkg_failed = yes; then
19159   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19160$as_echo "no" >&6; }
19161
19162if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19163        _pkg_short_errors_supported=yes
19164else
19165        _pkg_short_errors_supported=no
19166fi
19167        if test $_pkg_short_errors_supported = yes; then
19168	        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`
19169        else
19170	        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`
19171        fi
19172	# Put the nasty error message in config.log where it belongs
19173	echo "$XI_PKG_ERRORS" >&5
19174
19175	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:
19176
19177$XI_PKG_ERRORS
19178
19179Consider adjusting the PKG_CONFIG_PATH environment variable if you
19180installed software in a non-standard prefix.
19181
19182Alternatively, you may set the environment variables XI_CFLAGS
19183and XI_LIBS to avoid the need to call pkg-config.
19184See the pkg-config man page for more details." "$LINENO" 5
19185elif test $pkg_failed = untried; then
19186     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19187$as_echo "no" >&6; }
19188	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19189$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19190as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19191is in your PATH or set the PKG_CONFIG environment variable to the full
19192path to pkg-config.
19193
19194Alternatively, you may set the environment variables XI_CFLAGS
19195and XI_LIBS to avoid the need to call pkg-config.
19196See the pkg-config man page for more details.
19197
19198To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19199See \`config.log' for more details" "$LINENO" 5; }
19200else
19201	XI_CFLAGS=$pkg_cv_XI_CFLAGS
19202	XI_LIBS=$pkg_cv_XI_LIBS
19203        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19204$as_echo "yes" >&6; }
19205
19206fi
19207# CFLAGS only for PointerBarrier typedef
19208
19209pkg_failed=no
19210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFIXES" >&5
19211$as_echo_n "checking for XFIXES... " >&6; }
19212
19213if test -n "$XFIXES_CFLAGS"; then
19214    pkg_cv_XFIXES_CFLAGS="$XFIXES_CFLAGS"
19215 elif test -n "$PKG_CONFIG"; then
19216    if test -n "$PKG_CONFIG" && \
19217    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes >= 5\""; } >&5
19218  ($PKG_CONFIG --exists --print-errors "xfixes >= 5") 2>&5
19219  ac_status=$?
19220  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19221  test $ac_status = 0; }; then
19222  pkg_cv_XFIXES_CFLAGS=`$PKG_CONFIG --cflags "xfixes >= 5" 2>/dev/null`
19223		      test "x$?" != "x0" && pkg_failed=yes
19224else
19225  pkg_failed=yes
19226fi
19227 else
19228    pkg_failed=untried
19229fi
19230if test -n "$XFIXES_LIBS"; then
19231    pkg_cv_XFIXES_LIBS="$XFIXES_LIBS"
19232 elif test -n "$PKG_CONFIG"; then
19233    if test -n "$PKG_CONFIG" && \
19234    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes >= 5\""; } >&5
19235  ($PKG_CONFIG --exists --print-errors "xfixes >= 5") 2>&5
19236  ac_status=$?
19237  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19238  test $ac_status = 0; }; then
19239  pkg_cv_XFIXES_LIBS=`$PKG_CONFIG --libs "xfixes >= 5" 2>/dev/null`
19240		      test "x$?" != "x0" && pkg_failed=yes
19241else
19242  pkg_failed=yes
19243fi
19244 else
19245    pkg_failed=untried
19246fi
19247
19248
19249
19250if test $pkg_failed = yes; then
19251   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19252$as_echo "no" >&6; }
19253
19254if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19255        _pkg_short_errors_supported=yes
19256else
19257        _pkg_short_errors_supported=no
19258fi
19259        if test $_pkg_short_errors_supported = yes; then
19260	        XFIXES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xfixes >= 5" 2>&1`
19261        else
19262	        XFIXES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xfixes >= 5" 2>&1`
19263        fi
19264	# Put the nasty error message in config.log where it belongs
19265	echo "$XFIXES_PKG_ERRORS" >&5
19266
19267	as_fn_error $? "Package requirements (xfixes >= 5) were not met:
19268
19269$XFIXES_PKG_ERRORS
19270
19271Consider adjusting the PKG_CONFIG_PATH environment variable if you
19272installed software in a non-standard prefix.
19273
19274Alternatively, you may set the environment variables XFIXES_CFLAGS
19275and XFIXES_LIBS to avoid the need to call pkg-config.
19276See the pkg-config man page for more details." "$LINENO" 5
19277elif test $pkg_failed = untried; then
19278     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19279$as_echo "no" >&6; }
19280	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19281$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19282as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19283is in your PATH or set the PKG_CONFIG environment variable to the full
19284path to pkg-config.
19285
19286Alternatively, you may set the environment variables XFIXES_CFLAGS
19287and XFIXES_LIBS to avoid the need to call pkg-config.
19288See the pkg-config man page for more details.
19289
19290To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19291See \`config.log' for more details" "$LINENO" 5; }
19292else
19293	XFIXES_CFLAGS=$pkg_cv_XFIXES_CFLAGS
19294	XFIXES_LIBS=$pkg_cv_XFIXES_LIBS
19295        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19296$as_echo "yes" >&6; }
19297
19298fi
19299
19300# Check for xmlto and asciidoc for man page conversion
19301# (only needed by people building tarballs)
19302if test "$have_xmlto" = yes && test "$have_asciidoc" = yes; then
19303	have_doctools=yes
19304else
19305	have_doctools=no
19306fi
19307 if test $have_doctools = yes; then
19308  HAVE_DOCTOOLS_TRUE=
19309  HAVE_DOCTOOLS_FALSE='#'
19310else
19311  HAVE_DOCTOOLS_TRUE='#'
19312  HAVE_DOCTOOLS_FALSE=
19313fi
19314
19315if test $have_doctools = no; then
19316	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&5
19317$as_echo "$as_me: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&2;}
19318fi
19319
19320# Determine if the source for man pages is available
19321# It may already be present (tarball) or can be generated using doctools
19322 if test -f "$srcdir/man/XAllowDeviceEvents.man" || \
19323	  test $have_doctools = yes; then
19324  INSTALL_MANPAGES_TRUE=
19325  INSTALL_MANPAGES_FALSE='#'
19326else
19327  INSTALL_MANPAGES_TRUE='#'
19328  INSTALL_MANPAGES_FALSE=
19329fi
19330
19331
19332ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile specs/Makefile xi.pc"
19333
19334cat >confcache <<\_ACEOF
19335# This file is a shell script that caches the results of configure
19336# tests run on this system so they can be shared between configure
19337# scripts and configure runs, see configure's option --config-cache.
19338# It is not useful on other systems.  If it contains results you don't
19339# want to keep, you may remove or edit it.
19340#
19341# config.status only pays attention to the cache file if you give it
19342# the --recheck option to rerun configure.
19343#
19344# `ac_cv_env_foo' variables (set or unset) will be overridden when
19345# loading this file, other *unset* `ac_cv_foo' will be assigned the
19346# following values.
19347
19348_ACEOF
19349
19350# The following way of writing the cache mishandles newlines in values,
19351# but we know of no workaround that is simple, portable, and efficient.
19352# So, we kill variables containing newlines.
19353# Ultrix sh set writes to stderr and can't be redirected directly,
19354# and sets the high bit in the cache file unless we assign to the vars.
19355(
19356  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19357    eval ac_val=\$$ac_var
19358    case $ac_val in #(
19359    *${as_nl}*)
19360      case $ac_var in #(
19361      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19362$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19363      esac
19364      case $ac_var in #(
19365      _ | IFS | as_nl) ;; #(
19366      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19367      *) { eval $ac_var=; unset $ac_var;} ;;
19368      esac ;;
19369    esac
19370  done
19371
19372  (set) 2>&1 |
19373    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19374    *${as_nl}ac_space=\ *)
19375      # `set' does not quote correctly, so add quotes: double-quote
19376      # substitution turns \\\\ into \\, and sed turns \\ into \.
19377      sed -n \
19378	"s/'/'\\\\''/g;
19379	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19380      ;; #(
19381    *)
19382      # `set' quotes correctly as required by POSIX, so do not add quotes.
19383      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19384      ;;
19385    esac |
19386    sort
19387) |
19388  sed '
19389     /^ac_cv_env_/b end
19390     t clear
19391     :clear
19392     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19393     t end
19394     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19395     :end' >>confcache
19396if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19397  if test -w "$cache_file"; then
19398    if test "x$cache_file" != "x/dev/null"; then
19399      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19400$as_echo "$as_me: updating cache $cache_file" >&6;}
19401      if test ! -f "$cache_file" || test -h "$cache_file"; then
19402	cat confcache >"$cache_file"
19403      else
19404        case $cache_file in #(
19405        */* | ?:*)
19406	  mv -f confcache "$cache_file"$$ &&
19407	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19408        *)
19409	  mv -f confcache "$cache_file" ;;
19410	esac
19411      fi
19412    fi
19413  else
19414    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19415$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19416  fi
19417fi
19418rm -f confcache
19419
19420test "x$prefix" = xNONE && prefix=$ac_default_prefix
19421# Let make expand exec_prefix.
19422test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19423
19424DEFS=-DHAVE_CONFIG_H
19425
19426ac_libobjs=
19427ac_ltlibobjs=
19428U=
19429for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19430  # 1. Remove the extension, and $U if already installed.
19431  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19432  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19433  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19434  #    will be set to the directory where LIBOBJS objects are built.
19435  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19436  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19437done
19438LIBOBJS=$ac_libobjs
19439
19440LTLIBOBJS=$ac_ltlibobjs
19441
19442
19443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19444$as_echo_n "checking that generated files are newer than configure... " >&6; }
19445   if test -n "$am_sleep_pid"; then
19446     # Hide warnings about reused PIDs.
19447     wait $am_sleep_pid 2>/dev/null
19448   fi
19449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19450$as_echo "done" >&6; }
19451 if test -n "$EXEEXT"; then
19452  am__EXEEXT_TRUE=
19453  am__EXEEXT_FALSE='#'
19454else
19455  am__EXEEXT_TRUE='#'
19456  am__EXEEXT_FALSE=
19457fi
19458
19459if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19460  as_fn_error $? "conditional \"AMDEP\" was never defined.
19461Usually this means the macro was only invoked conditionally." "$LINENO" 5
19462fi
19463if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19464  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19465Usually this means the macro was only invoked conditionally." "$LINENO" 5
19466fi
19467if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
19468  as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
19469Usually this means the macro was only invoked conditionally." "$LINENO" 5
19470fi
19471if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
19472  as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
19473Usually this means the macro was only invoked conditionally." "$LINENO" 5
19474fi
19475if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
19476  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
19477Usually this means the macro was only invoked conditionally." "$LINENO" 5
19478fi
19479if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
19480  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
19481Usually this means the macro was only invoked conditionally." "$LINENO" 5
19482fi
19483if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
19484  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
19485Usually this means the macro was only invoked conditionally." "$LINENO" 5
19486fi
19487if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
19488  as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
19489Usually this means the macro was only invoked conditionally." "$LINENO" 5
19490fi
19491if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
19492  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
19493Usually this means the macro was only invoked conditionally." "$LINENO" 5
19494fi
19495if test -z "${HAVE_ASCIIDOC_TRUE}" && test -z "${HAVE_ASCIIDOC_FALSE}"; then
19496  as_fn_error $? "conditional \"HAVE_ASCIIDOC\" was never defined.
19497Usually this means the macro was only invoked conditionally." "$LINENO" 5
19498fi
19499if test -z "${HAVE_DOCTOOLS_TRUE}" && test -z "${HAVE_DOCTOOLS_FALSE}"; then
19500  as_fn_error $? "conditional \"HAVE_DOCTOOLS\" was never defined.
19501Usually this means the macro was only invoked conditionally." "$LINENO" 5
19502fi
19503if test -z "${INSTALL_MANPAGES_TRUE}" && test -z "${INSTALL_MANPAGES_FALSE}"; then
19504  as_fn_error $? "conditional \"INSTALL_MANPAGES\" was never defined.
19505Usually this means the macro was only invoked conditionally." "$LINENO" 5
19506fi
19507
19508: "${CONFIG_STATUS=./config.status}"
19509ac_write_fail=0
19510ac_clean_files_save=$ac_clean_files
19511ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19512{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19513$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19514as_write_fail=0
19515cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19516#! $SHELL
19517# Generated by $as_me.
19518# Run this file to recreate the current configuration.
19519# Compiler output produced by configure, useful for debugging
19520# configure, is in config.log if it exists.
19521
19522debug=false
19523ac_cs_recheck=false
19524ac_cs_silent=false
19525
19526SHELL=\${CONFIG_SHELL-$SHELL}
19527export SHELL
19528_ASEOF
19529cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19530## -------------------- ##
19531## M4sh Initialization. ##
19532## -------------------- ##
19533
19534# Be more Bourne compatible
19535DUALCASE=1; export DUALCASE # for MKS sh
19536if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19537  emulate sh
19538  NULLCMD=:
19539  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19540  # is contrary to our usage.  Disable this feature.
19541  alias -g '${1+"$@"}'='"$@"'
19542  setopt NO_GLOB_SUBST
19543else
19544  case `(set -o) 2>/dev/null` in #(
19545  *posix*) :
19546    set -o posix ;; #(
19547  *) :
19548     ;;
19549esac
19550fi
19551
19552
19553as_nl='
19554'
19555export as_nl
19556# Printing a long string crashes Solaris 7 /usr/bin/printf.
19557as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19558as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19559as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19560# Prefer a ksh shell builtin over an external printf program on Solaris,
19561# but without wasting forks for bash or zsh.
19562if test -z "$BASH_VERSION$ZSH_VERSION" \
19563    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19564  as_echo='print -r --'
19565  as_echo_n='print -rn --'
19566elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19567  as_echo='printf %s\n'
19568  as_echo_n='printf %s'
19569else
19570  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19571    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19572    as_echo_n='/usr/ucb/echo -n'
19573  else
19574    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19575    as_echo_n_body='eval
19576      arg=$1;
19577      case $arg in #(
19578      *"$as_nl"*)
19579	expr "X$arg" : "X\\(.*\\)$as_nl";
19580	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19581      esac;
19582      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19583    '
19584    export as_echo_n_body
19585    as_echo_n='sh -c $as_echo_n_body as_echo'
19586  fi
19587  export as_echo_body
19588  as_echo='sh -c $as_echo_body as_echo'
19589fi
19590
19591# The user is always right.
19592if test "${PATH_SEPARATOR+set}" != set; then
19593  PATH_SEPARATOR=:
19594  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19595    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19596      PATH_SEPARATOR=';'
19597  }
19598fi
19599
19600
19601# IFS
19602# We need space, tab and new line, in precisely that order.  Quoting is
19603# there to prevent editors from complaining about space-tab.
19604# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19605# splitting by setting IFS to empty value.)
19606IFS=" ""	$as_nl"
19607
19608# Find who we are.  Look in the path if we contain no directory separator.
19609as_myself=
19610case $0 in #((
19611  *[\\/]* ) as_myself=$0 ;;
19612  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19613for as_dir in $PATH
19614do
19615  IFS=$as_save_IFS
19616  test -z "$as_dir" && as_dir=.
19617    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19618  done
19619IFS=$as_save_IFS
19620
19621     ;;
19622esac
19623# We did not find ourselves, most probably we were run as `sh COMMAND'
19624# in which case we are not to be found in the path.
19625if test "x$as_myself" = x; then
19626  as_myself=$0
19627fi
19628if test ! -f "$as_myself"; then
19629  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19630  exit 1
19631fi
19632
19633# Unset variables that we do not need and which cause bugs (e.g. in
19634# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19635# suppresses any "Segmentation fault" message there.  '((' could
19636# trigger a bug in pdksh 5.2.14.
19637for as_var in BASH_ENV ENV MAIL MAILPATH
19638do eval test x\${$as_var+set} = xset \
19639  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19640done
19641PS1='$ '
19642PS2='> '
19643PS4='+ '
19644
19645# NLS nuisances.
19646LC_ALL=C
19647export LC_ALL
19648LANGUAGE=C
19649export LANGUAGE
19650
19651# CDPATH.
19652(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19653
19654
19655# as_fn_error STATUS ERROR [LINENO LOG_FD]
19656# ----------------------------------------
19657# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19658# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19659# script with STATUS, using 1 if that was 0.
19660as_fn_error ()
19661{
19662  as_status=$1; test $as_status -eq 0 && as_status=1
19663  if test "$4"; then
19664    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19665    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19666  fi
19667  $as_echo "$as_me: error: $2" >&2
19668  as_fn_exit $as_status
19669} # as_fn_error
19670
19671
19672# as_fn_set_status STATUS
19673# -----------------------
19674# Set $? to STATUS, without forking.
19675as_fn_set_status ()
19676{
19677  return $1
19678} # as_fn_set_status
19679
19680# as_fn_exit STATUS
19681# -----------------
19682# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19683as_fn_exit ()
19684{
19685  set +e
19686  as_fn_set_status $1
19687  exit $1
19688} # as_fn_exit
19689
19690# as_fn_unset VAR
19691# ---------------
19692# Portably unset VAR.
19693as_fn_unset ()
19694{
19695  { eval $1=; unset $1;}
19696}
19697as_unset=as_fn_unset
19698# as_fn_append VAR VALUE
19699# ----------------------
19700# Append the text in VALUE to the end of the definition contained in VAR. Take
19701# advantage of any shell optimizations that allow amortized linear growth over
19702# repeated appends, instead of the typical quadratic growth present in naive
19703# implementations.
19704if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19705  eval 'as_fn_append ()
19706  {
19707    eval $1+=\$2
19708  }'
19709else
19710  as_fn_append ()
19711  {
19712    eval $1=\$$1\$2
19713  }
19714fi # as_fn_append
19715
19716# as_fn_arith ARG...
19717# ------------------
19718# Perform arithmetic evaluation on the ARGs, and store the result in the
19719# global $as_val. Take advantage of shells that can avoid forks. The arguments
19720# must be portable across $(()) and expr.
19721if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19722  eval 'as_fn_arith ()
19723  {
19724    as_val=$(( $* ))
19725  }'
19726else
19727  as_fn_arith ()
19728  {
19729    as_val=`expr "$@" || test $? -eq 1`
19730  }
19731fi # as_fn_arith
19732
19733
19734if expr a : '\(a\)' >/dev/null 2>&1 &&
19735   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19736  as_expr=expr
19737else
19738  as_expr=false
19739fi
19740
19741if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19742  as_basename=basename
19743else
19744  as_basename=false
19745fi
19746
19747if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19748  as_dirname=dirname
19749else
19750  as_dirname=false
19751fi
19752
19753as_me=`$as_basename -- "$0" ||
19754$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19755	 X"$0" : 'X\(//\)$' \| \
19756	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19757$as_echo X/"$0" |
19758    sed '/^.*\/\([^/][^/]*\)\/*$/{
19759	    s//\1/
19760	    q
19761	  }
19762	  /^X\/\(\/\/\)$/{
19763	    s//\1/
19764	    q
19765	  }
19766	  /^X\/\(\/\).*/{
19767	    s//\1/
19768	    q
19769	  }
19770	  s/.*/./; q'`
19771
19772# Avoid depending upon Character Ranges.
19773as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19774as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19775as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19776as_cr_digits='0123456789'
19777as_cr_alnum=$as_cr_Letters$as_cr_digits
19778
19779ECHO_C= ECHO_N= ECHO_T=
19780case `echo -n x` in #(((((
19781-n*)
19782  case `echo 'xy\c'` in
19783  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19784  xy)  ECHO_C='\c';;
19785  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19786       ECHO_T='	';;
19787  esac;;
19788*)
19789  ECHO_N='-n';;
19790esac
19791
19792rm -f conf$$ conf$$.exe conf$$.file
19793if test -d conf$$.dir; then
19794  rm -f conf$$.dir/conf$$.file
19795else
19796  rm -f conf$$.dir
19797  mkdir conf$$.dir 2>/dev/null
19798fi
19799if (echo >conf$$.file) 2>/dev/null; then
19800  if ln -s conf$$.file conf$$ 2>/dev/null; then
19801    as_ln_s='ln -s'
19802    # ... but there are two gotchas:
19803    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19804    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19805    # In both cases, we have to default to `cp -pR'.
19806    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19807      as_ln_s='cp -pR'
19808  elif ln conf$$.file conf$$ 2>/dev/null; then
19809    as_ln_s=ln
19810  else
19811    as_ln_s='cp -pR'
19812  fi
19813else
19814  as_ln_s='cp -pR'
19815fi
19816rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19817rmdir conf$$.dir 2>/dev/null
19818
19819
19820# as_fn_mkdir_p
19821# -------------
19822# Create "$as_dir" as a directory, including parents if necessary.
19823as_fn_mkdir_p ()
19824{
19825
19826  case $as_dir in #(
19827  -*) as_dir=./$as_dir;;
19828  esac
19829  test -d "$as_dir" || eval $as_mkdir_p || {
19830    as_dirs=
19831    while :; do
19832      case $as_dir in #(
19833      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19834      *) as_qdir=$as_dir;;
19835      esac
19836      as_dirs="'$as_qdir' $as_dirs"
19837      as_dir=`$as_dirname -- "$as_dir" ||
19838$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19839	 X"$as_dir" : 'X\(//\)[^/]' \| \
19840	 X"$as_dir" : 'X\(//\)$' \| \
19841	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19842$as_echo X"$as_dir" |
19843    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19844	    s//\1/
19845	    q
19846	  }
19847	  /^X\(\/\/\)[^/].*/{
19848	    s//\1/
19849	    q
19850	  }
19851	  /^X\(\/\/\)$/{
19852	    s//\1/
19853	    q
19854	  }
19855	  /^X\(\/\).*/{
19856	    s//\1/
19857	    q
19858	  }
19859	  s/.*/./; q'`
19860      test -d "$as_dir" && break
19861    done
19862    test -z "$as_dirs" || eval "mkdir $as_dirs"
19863  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19864
19865
19866} # as_fn_mkdir_p
19867if mkdir -p . 2>/dev/null; then
19868  as_mkdir_p='mkdir -p "$as_dir"'
19869else
19870  test -d ./-p && rmdir ./-p
19871  as_mkdir_p=false
19872fi
19873
19874
19875# as_fn_executable_p FILE
19876# -----------------------
19877# Test if FILE is an executable regular file.
19878as_fn_executable_p ()
19879{
19880  test -f "$1" && test -x "$1"
19881} # as_fn_executable_p
19882as_test_x='test -x'
19883as_executable_p=as_fn_executable_p
19884
19885# Sed expression to map a string onto a valid CPP name.
19886as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19887
19888# Sed expression to map a string onto a valid variable name.
19889as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19890
19891
19892exec 6>&1
19893## ----------------------------------- ##
19894## Main body of $CONFIG_STATUS script. ##
19895## ----------------------------------- ##
19896_ASEOF
19897test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19898
19899cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19900# Save the log message, to keep $0 and so on meaningful, and to
19901# report actual input values of CONFIG_FILES etc. instead of their
19902# values after options handling.
19903ac_log="
19904This file was extended by libXi $as_me 1.7.9, which was
19905generated by GNU Autoconf 2.69.  Invocation command line was
19906
19907  CONFIG_FILES    = $CONFIG_FILES
19908  CONFIG_HEADERS  = $CONFIG_HEADERS
19909  CONFIG_LINKS    = $CONFIG_LINKS
19910  CONFIG_COMMANDS = $CONFIG_COMMANDS
19911  $ $0 $@
19912
19913on `(hostname || uname -n) 2>/dev/null | sed 1q`
19914"
19915
19916_ACEOF
19917
19918case $ac_config_files in *"
19919"*) set x $ac_config_files; shift; ac_config_files=$*;;
19920esac
19921
19922case $ac_config_headers in *"
19923"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19924esac
19925
19926
19927cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19928# Files that config.status was made for.
19929config_files="$ac_config_files"
19930config_headers="$ac_config_headers"
19931config_commands="$ac_config_commands"
19932
19933_ACEOF
19934
19935cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19936ac_cs_usage="\
19937\`$as_me' instantiates files and other configuration actions
19938from templates according to the current configuration.  Unless the files
19939and actions are specified as TAGs, all are instantiated by default.
19940
19941Usage: $0 [OPTION]... [TAG]...
19942
19943  -h, --help       print this help, then exit
19944  -V, --version    print version number and configuration settings, then exit
19945      --config     print configuration, then exit
19946  -q, --quiet, --silent
19947                   do not print progress messages
19948  -d, --debug      don't remove temporary files
19949      --recheck    update $as_me by reconfiguring in the same conditions
19950      --file=FILE[:TEMPLATE]
19951                   instantiate the configuration file FILE
19952      --header=FILE[:TEMPLATE]
19953                   instantiate the configuration header FILE
19954
19955Configuration files:
19956$config_files
19957
19958Configuration headers:
19959$config_headers
19960
19961Configuration commands:
19962$config_commands
19963
19964Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19965
19966_ACEOF
19967cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19968ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19969ac_cs_version="\\
19970libXi config.status 1.7.9
19971configured by $0, generated by GNU Autoconf 2.69,
19972  with options \\"\$ac_cs_config\\"
19973
19974Copyright (C) 2012 Free Software Foundation, Inc.
19975This config.status script is free software; the Free Software Foundation
19976gives unlimited permission to copy, distribute and modify it."
19977
19978ac_pwd='$ac_pwd'
19979srcdir='$srcdir'
19980INSTALL='$INSTALL'
19981MKDIR_P='$MKDIR_P'
19982AWK='$AWK'
19983test -n "\$AWK" || AWK=awk
19984_ACEOF
19985
19986cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19987# The default lists apply if the user does not specify any file.
19988ac_need_defaults=:
19989while test $# != 0
19990do
19991  case $1 in
19992  --*=?*)
19993    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19994    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19995    ac_shift=:
19996    ;;
19997  --*=)
19998    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19999    ac_optarg=
20000    ac_shift=:
20001    ;;
20002  *)
20003    ac_option=$1
20004    ac_optarg=$2
20005    ac_shift=shift
20006    ;;
20007  esac
20008
20009  case $ac_option in
20010  # Handling of the options.
20011  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20012    ac_cs_recheck=: ;;
20013  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20014    $as_echo "$ac_cs_version"; exit ;;
20015  --config | --confi | --conf | --con | --co | --c )
20016    $as_echo "$ac_cs_config"; exit ;;
20017  --debug | --debu | --deb | --de | --d | -d )
20018    debug=: ;;
20019  --file | --fil | --fi | --f )
20020    $ac_shift
20021    case $ac_optarg in
20022    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20023    '') as_fn_error $? "missing file argument" ;;
20024    esac
20025    as_fn_append CONFIG_FILES " '$ac_optarg'"
20026    ac_need_defaults=false;;
20027  --header | --heade | --head | --hea )
20028    $ac_shift
20029    case $ac_optarg in
20030    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20031    esac
20032    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20033    ac_need_defaults=false;;
20034  --he | --h)
20035    # Conflict between --help and --header
20036    as_fn_error $? "ambiguous option: \`$1'
20037Try \`$0 --help' for more information.";;
20038  --help | --hel | -h )
20039    $as_echo "$ac_cs_usage"; exit ;;
20040  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20041  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20042    ac_cs_silent=: ;;
20043
20044  # This is an error.
20045  -*) as_fn_error $? "unrecognized option: \`$1'
20046Try \`$0 --help' for more information." ;;
20047
20048  *) as_fn_append ac_config_targets " $1"
20049     ac_need_defaults=false ;;
20050
20051  esac
20052  shift
20053done
20054
20055ac_configure_extra_args=
20056
20057if $ac_cs_silent; then
20058  exec 6>/dev/null
20059  ac_configure_extra_args="$ac_configure_extra_args --silent"
20060fi
20061
20062_ACEOF
20063cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20064if \$ac_cs_recheck; then
20065  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20066  shift
20067  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20068  CONFIG_SHELL='$SHELL'
20069  export CONFIG_SHELL
20070  exec "\$@"
20071fi
20072
20073_ACEOF
20074cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20075exec 5>>config.log
20076{
20077  echo
20078  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20079## Running $as_me. ##
20080_ASBOX
20081  $as_echo "$ac_log"
20082} >&5
20083
20084_ACEOF
20085cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20086#
20087# INIT-COMMANDS
20088#
20089AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20090
20091
20092# The HP-UX ksh and POSIX shell print the target directory to stdout
20093# if CDPATH is set.
20094(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20095
20096sed_quote_subst='$sed_quote_subst'
20097double_quote_subst='$double_quote_subst'
20098delay_variable_subst='$delay_variable_subst'
20099macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20100macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20101enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20102enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20103pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20104enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20105shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20106SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20107ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20108PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20109host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20110host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20111host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20112build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20113build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20114build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20115SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20116Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20117GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20118EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20119FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20120LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20121NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20122LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20123max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20124ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20125exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20126lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20127lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20128lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20129lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20130lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20131reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20132reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20133OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20134deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20135file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20136file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20137want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20138DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20139sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20140AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20141AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20142archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20143STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20144RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20145old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20146old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20147old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20148lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20149CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20150CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20151compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20152GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20153lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20154lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20155lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20156lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20157lt_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"`'
20158lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20159nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20160lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20161lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20162objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20163MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20164lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20165lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20166lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20167lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20168lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20169need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20170MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20171DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20172NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20173LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20174OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20175OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20176libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20177shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20178extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20179archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20180enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20181export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20182whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20183compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20184old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20185old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20186archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20187archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20188module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20189module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20190with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20191allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20192no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20193hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20194hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20195hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20196hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20197hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20198hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20199hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20200inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20201link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20202always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20203export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20204exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20205include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20206prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20207postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20208file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20209variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20210need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20211need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20212version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20213runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20214shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20215shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20216libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20217library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20218soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20219install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20220postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20221postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20222finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20223finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20224hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20225sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20226configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20227configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20228hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20229enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20230enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20231enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20232old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20233striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20234
20235LTCC='$LTCC'
20236LTCFLAGS='$LTCFLAGS'
20237compiler='$compiler_DEFAULT'
20238
20239# A function that is used when there is no print builtin or printf.
20240func_fallback_echo ()
20241{
20242  eval 'cat <<_LTECHO_EOF
20243\$1
20244_LTECHO_EOF'
20245}
20246
20247# Quote evaled strings.
20248for var in SHELL \
20249ECHO \
20250PATH_SEPARATOR \
20251SED \
20252GREP \
20253EGREP \
20254FGREP \
20255LD \
20256NM \
20257LN_S \
20258lt_SP2NL \
20259lt_NL2SP \
20260reload_flag \
20261OBJDUMP \
20262deplibs_check_method \
20263file_magic_cmd \
20264file_magic_glob \
20265want_nocaseglob \
20266DLLTOOL \
20267sharedlib_from_linklib_cmd \
20268AR \
20269AR_FLAGS \
20270archiver_list_spec \
20271STRIP \
20272RANLIB \
20273CC \
20274CFLAGS \
20275compiler \
20276lt_cv_sys_global_symbol_pipe \
20277lt_cv_sys_global_symbol_to_cdecl \
20278lt_cv_sys_global_symbol_to_import \
20279lt_cv_sys_global_symbol_to_c_name_address \
20280lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20281lt_cv_nm_interface \
20282nm_file_list_spec \
20283lt_cv_truncate_bin \
20284lt_prog_compiler_no_builtin_flag \
20285lt_prog_compiler_pic \
20286lt_prog_compiler_wl \
20287lt_prog_compiler_static \
20288lt_cv_prog_compiler_c_o \
20289need_locks \
20290MANIFEST_TOOL \
20291DSYMUTIL \
20292NMEDIT \
20293LIPO \
20294OTOOL \
20295OTOOL64 \
20296shrext_cmds \
20297export_dynamic_flag_spec \
20298whole_archive_flag_spec \
20299compiler_needs_object \
20300with_gnu_ld \
20301allow_undefined_flag \
20302no_undefined_flag \
20303hardcode_libdir_flag_spec \
20304hardcode_libdir_separator \
20305exclude_expsyms \
20306include_expsyms \
20307file_list_spec \
20308variables_saved_for_relink \
20309libname_spec \
20310library_names_spec \
20311soname_spec \
20312install_override_mode \
20313finish_eval \
20314old_striplib \
20315striplib; do
20316    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20317    *[\\\\\\\`\\"\\\$]*)
20318      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20319      ;;
20320    *)
20321      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20322      ;;
20323    esac
20324done
20325
20326# Double-quote double-evaled strings.
20327for var in reload_cmds \
20328old_postinstall_cmds \
20329old_postuninstall_cmds \
20330old_archive_cmds \
20331extract_expsyms_cmds \
20332old_archive_from_new_cmds \
20333old_archive_from_expsyms_cmds \
20334archive_cmds \
20335archive_expsym_cmds \
20336module_cmds \
20337module_expsym_cmds \
20338export_symbols_cmds \
20339prelink_cmds \
20340postlink_cmds \
20341postinstall_cmds \
20342postuninstall_cmds \
20343finish_cmds \
20344sys_lib_search_path_spec \
20345configure_time_dlsearch_path \
20346configure_time_lt_sys_library_path; do
20347    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20348    *[\\\\\\\`\\"\\\$]*)
20349      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20350      ;;
20351    *)
20352      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20353      ;;
20354    esac
20355done
20356
20357ac_aux_dir='$ac_aux_dir'
20358
20359# See if we are running on zsh, and set the options that allow our
20360# commands through without removal of \ escapes INIT.
20361if test -n "\${ZSH_VERSION+set}"; then
20362   setopt NO_GLOB_SUBST
20363fi
20364
20365
20366    PACKAGE='$PACKAGE'
20367    VERSION='$VERSION'
20368    RM='$RM'
20369    ofile='$ofile'
20370
20371
20372
20373
20374_ACEOF
20375
20376cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20377
20378# Handling of arguments.
20379for ac_config_target in $ac_config_targets
20380do
20381  case $ac_config_target in
20382    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
20383    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20384    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20385    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20386    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20387    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20388    "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
20389    "xi.pc") CONFIG_FILES="$CONFIG_FILES xi.pc" ;;
20390
20391  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20392  esac
20393done
20394
20395
20396# If the user did not use the arguments to specify the items to instantiate,
20397# then the envvar interface is used.  Set only those that are not.
20398# We use the long form for the default assignment because of an extremely
20399# bizarre bug on SunOS 4.1.3.
20400if $ac_need_defaults; then
20401  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20402  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20403  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20404fi
20405
20406# Have a temporary directory for convenience.  Make it in the build tree
20407# simply because there is no reason against having it here, and in addition,
20408# creating and moving files from /tmp can sometimes cause problems.
20409# Hook for its removal unless debugging.
20410# Note that there is a small window in which the directory will not be cleaned:
20411# after its creation but before its name has been assigned to `$tmp'.
20412$debug ||
20413{
20414  tmp= ac_tmp=
20415  trap 'exit_status=$?
20416  : "${ac_tmp:=$tmp}"
20417  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20418' 0
20419  trap 'as_fn_exit 1' 1 2 13 15
20420}
20421# Create a (secure) tmp directory for tmp files.
20422
20423{
20424  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20425  test -d "$tmp"
20426}  ||
20427{
20428  tmp=./conf$$-$RANDOM
20429  (umask 077 && mkdir "$tmp")
20430} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20431ac_tmp=$tmp
20432
20433# Set up the scripts for CONFIG_FILES section.
20434# No need to generate them if there are no CONFIG_FILES.
20435# This happens for instance with `./config.status config.h'.
20436if test -n "$CONFIG_FILES"; then
20437
20438
20439ac_cr=`echo X | tr X '\015'`
20440# On cygwin, bash can eat \r inside `` if the user requested igncr.
20441# But we know of no other shell where ac_cr would be empty at this
20442# point, so we can use a bashism as a fallback.
20443if test "x$ac_cr" = x; then
20444  eval ac_cr=\$\'\\r\'
20445fi
20446ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20447if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20448  ac_cs_awk_cr='\\r'
20449else
20450  ac_cs_awk_cr=$ac_cr
20451fi
20452
20453echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20454_ACEOF
20455
20456
20457{
20458  echo "cat >conf$$subs.awk <<_ACEOF" &&
20459  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20460  echo "_ACEOF"
20461} >conf$$subs.sh ||
20462  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20463ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20464ac_delim='%!_!# '
20465for ac_last_try in false false false false false :; do
20466  . ./conf$$subs.sh ||
20467    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20468
20469  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20470  if test $ac_delim_n = $ac_delim_num; then
20471    break
20472  elif $ac_last_try; then
20473    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20474  else
20475    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20476  fi
20477done
20478rm -f conf$$subs.sh
20479
20480cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20481cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20482_ACEOF
20483sed -n '
20484h
20485s/^/S["/; s/!.*/"]=/
20486p
20487g
20488s/^[^!]*!//
20489:repl
20490t repl
20491s/'"$ac_delim"'$//
20492t delim
20493:nl
20494h
20495s/\(.\{148\}\)..*/\1/
20496t more1
20497s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20498p
20499n
20500b repl
20501:more1
20502s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20503p
20504g
20505s/.\{148\}//
20506t nl
20507:delim
20508h
20509s/\(.\{148\}\)..*/\1/
20510t more2
20511s/["\\]/\\&/g; s/^/"/; s/$/"/
20512p
20513b
20514:more2
20515s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20516p
20517g
20518s/.\{148\}//
20519t delim
20520' <conf$$subs.awk | sed '
20521/^[^""]/{
20522  N
20523  s/\n//
20524}
20525' >>$CONFIG_STATUS || ac_write_fail=1
20526rm -f conf$$subs.awk
20527cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20528_ACAWK
20529cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20530  for (key in S) S_is_set[key] = 1
20531  FS = ""
20532
20533}
20534{
20535  line = $ 0
20536  nfields = split(line, field, "@")
20537  substed = 0
20538  len = length(field[1])
20539  for (i = 2; i < nfields; i++) {
20540    key = field[i]
20541    keylen = length(key)
20542    if (S_is_set[key]) {
20543      value = S[key]
20544      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20545      len += length(value) + length(field[++i])
20546      substed = 1
20547    } else
20548      len += 1 + keylen
20549  }
20550
20551  print line
20552}
20553
20554_ACAWK
20555_ACEOF
20556cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20557if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20558  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20559else
20560  cat
20561fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20562  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20563_ACEOF
20564
20565# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20566# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20567# trailing colons and then remove the whole line if VPATH becomes empty
20568# (actually we leave an empty line to preserve line numbers).
20569if test "x$srcdir" = x.; then
20570  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20571h
20572s///
20573s/^/:/
20574s/[	 ]*$/:/
20575s/:\$(srcdir):/:/g
20576s/:\${srcdir}:/:/g
20577s/:@srcdir@:/:/g
20578s/^:*//
20579s/:*$//
20580x
20581s/\(=[	 ]*\).*/\1/
20582G
20583s/\n//
20584s/^[^=]*=[	 ]*$//
20585}'
20586fi
20587
20588cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20589fi # test -n "$CONFIG_FILES"
20590
20591# Set up the scripts for CONFIG_HEADERS section.
20592# No need to generate them if there are no CONFIG_HEADERS.
20593# This happens for instance with `./config.status Makefile'.
20594if test -n "$CONFIG_HEADERS"; then
20595cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20596BEGIN {
20597_ACEOF
20598
20599# Transform confdefs.h into an awk script `defines.awk', embedded as
20600# here-document in config.status, that substitutes the proper values into
20601# config.h.in to produce config.h.
20602
20603# Create a delimiter string that does not exist in confdefs.h, to ease
20604# handling of long lines.
20605ac_delim='%!_!# '
20606for ac_last_try in false false :; do
20607  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20608  if test -z "$ac_tt"; then
20609    break
20610  elif $ac_last_try; then
20611    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20612  else
20613    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20614  fi
20615done
20616
20617# For the awk script, D is an array of macro values keyed by name,
20618# likewise P contains macro parameters if any.  Preserve backslash
20619# newline sequences.
20620
20621ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20622sed -n '
20623s/.\{148\}/&'"$ac_delim"'/g
20624t rset
20625:rset
20626s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20627t def
20628d
20629:def
20630s/\\$//
20631t bsnl
20632s/["\\]/\\&/g
20633s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20634D["\1"]=" \3"/p
20635s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20636d
20637:bsnl
20638s/["\\]/\\&/g
20639s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20640D["\1"]=" \3\\\\\\n"\\/p
20641t cont
20642s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20643t cont
20644d
20645:cont
20646n
20647s/.\{148\}/&'"$ac_delim"'/g
20648t clear
20649:clear
20650s/\\$//
20651t bsnlc
20652s/["\\]/\\&/g; s/^/"/; s/$/"/p
20653d
20654:bsnlc
20655s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20656b cont
20657' <confdefs.h | sed '
20658s/'"$ac_delim"'/"\\\
20659"/g' >>$CONFIG_STATUS || ac_write_fail=1
20660
20661cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20662  for (key in D) D_is_set[key] = 1
20663  FS = ""
20664}
20665/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20666  line = \$ 0
20667  split(line, arg, " ")
20668  if (arg[1] == "#") {
20669    defundef = arg[2]
20670    mac1 = arg[3]
20671  } else {
20672    defundef = substr(arg[1], 2)
20673    mac1 = arg[2]
20674  }
20675  split(mac1, mac2, "(") #)
20676  macro = mac2[1]
20677  prefix = substr(line, 1, index(line, defundef) - 1)
20678  if (D_is_set[macro]) {
20679    # Preserve the white space surrounding the "#".
20680    print prefix "define", macro P[macro] D[macro]
20681    next
20682  } else {
20683    # Replace #undef with comments.  This is necessary, for example,
20684    # in the case of _POSIX_SOURCE, which is predefined and required
20685    # on some systems where configure will not decide to define it.
20686    if (defundef == "undef") {
20687      print "/*", prefix defundef, macro, "*/"
20688      next
20689    }
20690  }
20691}
20692{ print }
20693_ACAWK
20694_ACEOF
20695cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20696  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20697fi # test -n "$CONFIG_HEADERS"
20698
20699
20700eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20701shift
20702for ac_tag
20703do
20704  case $ac_tag in
20705  :[FHLC]) ac_mode=$ac_tag; continue;;
20706  esac
20707  case $ac_mode$ac_tag in
20708  :[FHL]*:*);;
20709  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20710  :[FH]-) ac_tag=-:-;;
20711  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20712  esac
20713  ac_save_IFS=$IFS
20714  IFS=:
20715  set x $ac_tag
20716  IFS=$ac_save_IFS
20717  shift
20718  ac_file=$1
20719  shift
20720
20721  case $ac_mode in
20722  :L) ac_source=$1;;
20723  :[FH])
20724    ac_file_inputs=
20725    for ac_f
20726    do
20727      case $ac_f in
20728      -) ac_f="$ac_tmp/stdin";;
20729      *) # Look for the file first in the build tree, then in the source tree
20730	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20731	 # because $ac_f cannot contain `:'.
20732	 test -f "$ac_f" ||
20733	   case $ac_f in
20734	   [\\/$]*) false;;
20735	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20736	   esac ||
20737	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20738      esac
20739      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20740      as_fn_append ac_file_inputs " '$ac_f'"
20741    done
20742
20743    # Let's still pretend it is `configure' which instantiates (i.e., don't
20744    # use $as_me), people would be surprised to read:
20745    #    /* config.h.  Generated by config.status.  */
20746    configure_input='Generated from '`
20747	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20748	`' by configure.'
20749    if test x"$ac_file" != x-; then
20750      configure_input="$ac_file.  $configure_input"
20751      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20752$as_echo "$as_me: creating $ac_file" >&6;}
20753    fi
20754    # Neutralize special characters interpreted by sed in replacement strings.
20755    case $configure_input in #(
20756    *\&* | *\|* | *\\* )
20757       ac_sed_conf_input=`$as_echo "$configure_input" |
20758       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20759    *) ac_sed_conf_input=$configure_input;;
20760    esac
20761
20762    case $ac_tag in
20763    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20764      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20765    esac
20766    ;;
20767  esac
20768
20769  ac_dir=`$as_dirname -- "$ac_file" ||
20770$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20771	 X"$ac_file" : 'X\(//\)[^/]' \| \
20772	 X"$ac_file" : 'X\(//\)$' \| \
20773	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20774$as_echo X"$ac_file" |
20775    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20776	    s//\1/
20777	    q
20778	  }
20779	  /^X\(\/\/\)[^/].*/{
20780	    s//\1/
20781	    q
20782	  }
20783	  /^X\(\/\/\)$/{
20784	    s//\1/
20785	    q
20786	  }
20787	  /^X\(\/\).*/{
20788	    s//\1/
20789	    q
20790	  }
20791	  s/.*/./; q'`
20792  as_dir="$ac_dir"; as_fn_mkdir_p
20793  ac_builddir=.
20794
20795case "$ac_dir" in
20796.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20797*)
20798  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20799  # A ".." for each directory in $ac_dir_suffix.
20800  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20801  case $ac_top_builddir_sub in
20802  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20803  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20804  esac ;;
20805esac
20806ac_abs_top_builddir=$ac_pwd
20807ac_abs_builddir=$ac_pwd$ac_dir_suffix
20808# for backward compatibility:
20809ac_top_builddir=$ac_top_build_prefix
20810
20811case $srcdir in
20812  .)  # We are building in place.
20813    ac_srcdir=.
20814    ac_top_srcdir=$ac_top_builddir_sub
20815    ac_abs_top_srcdir=$ac_pwd ;;
20816  [\\/]* | ?:[\\/]* )  # Absolute name.
20817    ac_srcdir=$srcdir$ac_dir_suffix;
20818    ac_top_srcdir=$srcdir
20819    ac_abs_top_srcdir=$srcdir ;;
20820  *) # Relative name.
20821    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20822    ac_top_srcdir=$ac_top_build_prefix$srcdir
20823    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20824esac
20825ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20826
20827
20828  case $ac_mode in
20829  :F)
20830  #
20831  # CONFIG_FILE
20832  #
20833
20834  case $INSTALL in
20835  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20836  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20837  esac
20838  ac_MKDIR_P=$MKDIR_P
20839  case $MKDIR_P in
20840  [\\/$]* | ?:[\\/]* ) ;;
20841  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20842  esac
20843_ACEOF
20844
20845cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20846# If the template does not know about datarootdir, expand it.
20847# FIXME: This hack should be removed a few years after 2.60.
20848ac_datarootdir_hack=; ac_datarootdir_seen=
20849ac_sed_dataroot='
20850/datarootdir/ {
20851  p
20852  q
20853}
20854/@datadir@/p
20855/@docdir@/p
20856/@infodir@/p
20857/@localedir@/p
20858/@mandir@/p'
20859case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20860*datarootdir*) ac_datarootdir_seen=yes;;
20861*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20862  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20863$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20864_ACEOF
20865cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20866  ac_datarootdir_hack='
20867  s&@datadir@&$datadir&g
20868  s&@docdir@&$docdir&g
20869  s&@infodir@&$infodir&g
20870  s&@localedir@&$localedir&g
20871  s&@mandir@&$mandir&g
20872  s&\\\${datarootdir}&$datarootdir&g' ;;
20873esac
20874_ACEOF
20875
20876# Neutralize VPATH when `$srcdir' = `.'.
20877# Shell code in configure.ac might set extrasub.
20878# FIXME: do we really want to maintain this feature?
20879cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20880ac_sed_extra="$ac_vpsub
20881$extrasub
20882_ACEOF
20883cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20884:t
20885/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20886s|@configure_input@|$ac_sed_conf_input|;t t
20887s&@top_builddir@&$ac_top_builddir_sub&;t t
20888s&@top_build_prefix@&$ac_top_build_prefix&;t t
20889s&@srcdir@&$ac_srcdir&;t t
20890s&@abs_srcdir@&$ac_abs_srcdir&;t t
20891s&@top_srcdir@&$ac_top_srcdir&;t t
20892s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20893s&@builddir@&$ac_builddir&;t t
20894s&@abs_builddir@&$ac_abs_builddir&;t t
20895s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20896s&@INSTALL@&$ac_INSTALL&;t t
20897s&@MKDIR_P@&$ac_MKDIR_P&;t t
20898$ac_datarootdir_hack
20899"
20900eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20901  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20902
20903test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20904  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20905  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20906      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20907  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20908which seems to be undefined.  Please make sure it is defined" >&5
20909$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20910which seems to be undefined.  Please make sure it is defined" >&2;}
20911
20912  rm -f "$ac_tmp/stdin"
20913  case $ac_file in
20914  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20915  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20916  esac \
20917  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20918 ;;
20919  :H)
20920  #
20921  # CONFIG_HEADER
20922  #
20923  if test x"$ac_file" != x-; then
20924    {
20925      $as_echo "/* $configure_input  */" \
20926      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20927    } >"$ac_tmp/config.h" \
20928      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20929    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20930      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20931$as_echo "$as_me: $ac_file is unchanged" >&6;}
20932    else
20933      rm -f "$ac_file"
20934      mv "$ac_tmp/config.h" "$ac_file" \
20935	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20936    fi
20937  else
20938    $as_echo "/* $configure_input  */" \
20939      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20940      || as_fn_error $? "could not create -" "$LINENO" 5
20941  fi
20942# Compute "$ac_file"'s index in $config_headers.
20943_am_arg="$ac_file"
20944_am_stamp_count=1
20945for _am_header in $config_headers :; do
20946  case $_am_header in
20947    $_am_arg | $_am_arg:* )
20948      break ;;
20949    * )
20950      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20951  esac
20952done
20953echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20954$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20955	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20956	 X"$_am_arg" : 'X\(//\)$' \| \
20957	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20958$as_echo X"$_am_arg" |
20959    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20960	    s//\1/
20961	    q
20962	  }
20963	  /^X\(\/\/\)[^/].*/{
20964	    s//\1/
20965	    q
20966	  }
20967	  /^X\(\/\/\)$/{
20968	    s//\1/
20969	    q
20970	  }
20971	  /^X\(\/\).*/{
20972	    s//\1/
20973	    q
20974	  }
20975	  s/.*/./; q'`/stamp-h$_am_stamp_count
20976 ;;
20977
20978  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20979$as_echo "$as_me: executing $ac_file commands" >&6;}
20980 ;;
20981  esac
20982
20983
20984  case $ac_file$ac_mode in
20985    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20986  # Older Autoconf quotes --file arguments for eval, but not when files
20987  # are listed without --file.  Let's play safe and only enable the eval
20988  # if we detect the quoting.
20989  case $CONFIG_FILES in
20990  *\'*) eval set x "$CONFIG_FILES" ;;
20991  *)   set x $CONFIG_FILES ;;
20992  esac
20993  shift
20994  for mf
20995  do
20996    # Strip MF so we end up with the name of the file.
20997    mf=`echo "$mf" | sed -e 's/:.*$//'`
20998    # Check whether this is an Automake generated Makefile or not.
20999    # We used to match only the files named 'Makefile.in', but
21000    # some people rename them; so instead we look at the file content.
21001    # Grep'ing the first line is not enough: some people post-process
21002    # each Makefile.in and add a new line on top of each file to say so.
21003    # Grep'ing the whole file is not good either: AIX grep has a line
21004    # limit of 2048, but all sed's we know have understand at least 4000.
21005    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21006      dirpart=`$as_dirname -- "$mf" ||
21007$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21008	 X"$mf" : 'X\(//\)[^/]' \| \
21009	 X"$mf" : 'X\(//\)$' \| \
21010	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21011$as_echo X"$mf" |
21012    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21013	    s//\1/
21014	    q
21015	  }
21016	  /^X\(\/\/\)[^/].*/{
21017	    s//\1/
21018	    q
21019	  }
21020	  /^X\(\/\/\)$/{
21021	    s//\1/
21022	    q
21023	  }
21024	  /^X\(\/\).*/{
21025	    s//\1/
21026	    q
21027	  }
21028	  s/.*/./; q'`
21029    else
21030      continue
21031    fi
21032    # Extract the definition of DEPDIR, am__include, and am__quote
21033    # from the Makefile without running 'make'.
21034    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21035    test -z "$DEPDIR" && continue
21036    am__include=`sed -n 's/^am__include = //p' < "$mf"`
21037    test -z "$am__include" && continue
21038    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21039    # Find all dependency output files, they are included files with
21040    # $(DEPDIR) in their names.  We invoke sed twice because it is the
21041    # simplest approach to changing $(DEPDIR) to its actual value in the
21042    # expansion.
21043    for file in `sed -n "
21044      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21045	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21046      # Make sure the directory exists.
21047      test -f "$dirpart/$file" && continue
21048      fdir=`$as_dirname -- "$file" ||
21049$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21050	 X"$file" : 'X\(//\)[^/]' \| \
21051	 X"$file" : 'X\(//\)$' \| \
21052	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21053$as_echo X"$file" |
21054    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21055	    s//\1/
21056	    q
21057	  }
21058	  /^X\(\/\/\)[^/].*/{
21059	    s//\1/
21060	    q
21061	  }
21062	  /^X\(\/\/\)$/{
21063	    s//\1/
21064	    q
21065	  }
21066	  /^X\(\/\).*/{
21067	    s//\1/
21068	    q
21069	  }
21070	  s/.*/./; q'`
21071      as_dir=$dirpart/$fdir; as_fn_mkdir_p
21072      # echo "creating $dirpart/$file"
21073      echo '# dummy' > "$dirpart/$file"
21074    done
21075  done
21076}
21077 ;;
21078    "libtool":C)
21079
21080    # See if we are running on zsh, and set the options that allow our
21081    # commands through without removal of \ escapes.
21082    if test -n "${ZSH_VERSION+set}"; then
21083      setopt NO_GLOB_SUBST
21084    fi
21085
21086    cfgfile=${ofile}T
21087    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21088    $RM "$cfgfile"
21089
21090    cat <<_LT_EOF >> "$cfgfile"
21091#! $SHELL
21092# Generated automatically by $as_me ($PACKAGE) $VERSION
21093# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21094# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21095
21096# Provide generalized library-building support services.
21097# Written by Gordon Matzigkeit, 1996
21098
21099# Copyright (C) 2014 Free Software Foundation, Inc.
21100# This is free software; see the source for copying conditions.  There is NO
21101# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21102
21103# GNU Libtool is free software; you can redistribute it and/or modify
21104# it under the terms of the GNU General Public License as published by
21105# the Free Software Foundation; either version 2 of of the License, or
21106# (at your option) any later version.
21107#
21108# As a special exception to the GNU General Public License, if you
21109# distribute this file as part of a program or library that is built
21110# using GNU Libtool, you may include this file under the  same
21111# distribution terms that you use for the rest of that program.
21112#
21113# GNU Libtool is distributed in the hope that it will be useful, but
21114# WITHOUT ANY WARRANTY; without even the implied warranty of
21115# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21116# GNU General Public License for more details.
21117#
21118# You should have received a copy of the GNU General Public License
21119# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21120
21121
21122# The names of the tagged configurations supported by this script.
21123available_tags=''
21124
21125# Configured defaults for sys_lib_dlsearch_path munging.
21126: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21127
21128# ### BEGIN LIBTOOL CONFIG
21129
21130# Which release of libtool.m4 was used?
21131macro_version=$macro_version
21132macro_revision=$macro_revision
21133
21134# Whether or not to build shared libraries.
21135build_libtool_libs=$enable_shared
21136
21137# Whether or not to build static libraries.
21138build_old_libs=$enable_static
21139
21140# What type of objects to build.
21141pic_mode=$pic_mode
21142
21143# Whether or not to optimize for fast installation.
21144fast_install=$enable_fast_install
21145
21146# Shared archive member basename,for filename based shared library versioning on AIX.
21147shared_archive_member_spec=$shared_archive_member_spec
21148
21149# Shell to use when invoking shell scripts.
21150SHELL=$lt_SHELL
21151
21152# An echo program that protects backslashes.
21153ECHO=$lt_ECHO
21154
21155# The PATH separator for the build system.
21156PATH_SEPARATOR=$lt_PATH_SEPARATOR
21157
21158# The host system.
21159host_alias=$host_alias
21160host=$host
21161host_os=$host_os
21162
21163# The build system.
21164build_alias=$build_alias
21165build=$build
21166build_os=$build_os
21167
21168# A sed program that does not truncate output.
21169SED=$lt_SED
21170
21171# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21172Xsed="\$SED -e 1s/^X//"
21173
21174# A grep program that handles long lines.
21175GREP=$lt_GREP
21176
21177# An ERE matcher.
21178EGREP=$lt_EGREP
21179
21180# A literal string matcher.
21181FGREP=$lt_FGREP
21182
21183# A BSD- or MS-compatible name lister.
21184NM=$lt_NM
21185
21186# Whether we need soft or hard links.
21187LN_S=$lt_LN_S
21188
21189# What is the maximum length of a command?
21190max_cmd_len=$max_cmd_len
21191
21192# Object file suffix (normally "o").
21193objext=$ac_objext
21194
21195# Executable file suffix (normally "").
21196exeext=$exeext
21197
21198# whether the shell understands "unset".
21199lt_unset=$lt_unset
21200
21201# turn spaces into newlines.
21202SP2NL=$lt_lt_SP2NL
21203
21204# turn newlines into spaces.
21205NL2SP=$lt_lt_NL2SP
21206
21207# convert \$build file names to \$host format.
21208to_host_file_cmd=$lt_cv_to_host_file_cmd
21209
21210# convert \$build files to toolchain format.
21211to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21212
21213# An object symbol dumper.
21214OBJDUMP=$lt_OBJDUMP
21215
21216# Method to check whether dependent libraries are shared objects.
21217deplibs_check_method=$lt_deplibs_check_method
21218
21219# Command to use when deplibs_check_method = "file_magic".
21220file_magic_cmd=$lt_file_magic_cmd
21221
21222# How to find potential files when deplibs_check_method = "file_magic".
21223file_magic_glob=$lt_file_magic_glob
21224
21225# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21226want_nocaseglob=$lt_want_nocaseglob
21227
21228# DLL creation program.
21229DLLTOOL=$lt_DLLTOOL
21230
21231# Command to associate shared and link libraries.
21232sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21233
21234# The archiver.
21235AR=$lt_AR
21236
21237# Flags to create an archive.
21238AR_FLAGS=$lt_AR_FLAGS
21239
21240# How to feed a file listing to the archiver.
21241archiver_list_spec=$lt_archiver_list_spec
21242
21243# A symbol stripping program.
21244STRIP=$lt_STRIP
21245
21246# Commands used to install an old-style archive.
21247RANLIB=$lt_RANLIB
21248old_postinstall_cmds=$lt_old_postinstall_cmds
21249old_postuninstall_cmds=$lt_old_postuninstall_cmds
21250
21251# Whether to use a lock for old archive extraction.
21252lock_old_archive_extraction=$lock_old_archive_extraction
21253
21254# A C compiler.
21255LTCC=$lt_CC
21256
21257# LTCC compiler flags.
21258LTCFLAGS=$lt_CFLAGS
21259
21260# Take the output of nm and produce a listing of raw symbols and C names.
21261global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21262
21263# Transform the output of nm in a proper C declaration.
21264global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21265
21266# Transform the output of nm into a list of symbols to manually relocate.
21267global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21268
21269# Transform the output of nm in a C name address pair.
21270global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21271
21272# Transform the output of nm in a C name address pair when lib prefix is needed.
21273global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21274
21275# The name lister interface.
21276nm_interface=$lt_lt_cv_nm_interface
21277
21278# Specify filename containing input files for \$NM.
21279nm_file_list_spec=$lt_nm_file_list_spec
21280
21281# The root where to search for dependent libraries,and where our libraries should be installed.
21282lt_sysroot=$lt_sysroot
21283
21284# Command to truncate a binary pipe.
21285lt_truncate_bin=$lt_lt_cv_truncate_bin
21286
21287# The name of the directory that contains temporary libtool files.
21288objdir=$objdir
21289
21290# Used to examine libraries when file_magic_cmd begins with "file".
21291MAGIC_CMD=$MAGIC_CMD
21292
21293# Must we lock files when doing compilation?
21294need_locks=$lt_need_locks
21295
21296# Manifest tool.
21297MANIFEST_TOOL=$lt_MANIFEST_TOOL
21298
21299# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21300DSYMUTIL=$lt_DSYMUTIL
21301
21302# Tool to change global to local symbols on Mac OS X.
21303NMEDIT=$lt_NMEDIT
21304
21305# Tool to manipulate fat objects and archives on Mac OS X.
21306LIPO=$lt_LIPO
21307
21308# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21309OTOOL=$lt_OTOOL
21310
21311# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21312OTOOL64=$lt_OTOOL64
21313
21314# Old archive suffix (normally "a").
21315libext=$libext
21316
21317# Shared library suffix (normally ".so").
21318shrext_cmds=$lt_shrext_cmds
21319
21320# The commands to extract the exported symbol list from a shared archive.
21321extract_expsyms_cmds=$lt_extract_expsyms_cmds
21322
21323# Variables whose values should be saved in libtool wrapper scripts and
21324# restored at link time.
21325variables_saved_for_relink=$lt_variables_saved_for_relink
21326
21327# Do we need the "lib" prefix for modules?
21328need_lib_prefix=$need_lib_prefix
21329
21330# Do we need a version for libraries?
21331need_version=$need_version
21332
21333# Library versioning type.
21334version_type=$version_type
21335
21336# Shared library runtime path variable.
21337runpath_var=$runpath_var
21338
21339# Shared library path variable.
21340shlibpath_var=$shlibpath_var
21341
21342# Is shlibpath searched before the hard-coded library search path?
21343shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21344
21345# Format of library name prefix.
21346libname_spec=$lt_libname_spec
21347
21348# List of archive names.  First name is the real one, the rest are links.
21349# The last name is the one that the linker finds with -lNAME
21350library_names_spec=$lt_library_names_spec
21351
21352# The coded name of the library, if different from the real name.
21353soname_spec=$lt_soname_spec
21354
21355# Permission mode override for installation of shared libraries.
21356install_override_mode=$lt_install_override_mode
21357
21358# Command to use after installation of a shared archive.
21359postinstall_cmds=$lt_postinstall_cmds
21360
21361# Command to use after uninstallation of a shared archive.
21362postuninstall_cmds=$lt_postuninstall_cmds
21363
21364# Commands used to finish a libtool library installation in a directory.
21365finish_cmds=$lt_finish_cmds
21366
21367# As "finish_cmds", except a single script fragment to be evaled but
21368# not shown.
21369finish_eval=$lt_finish_eval
21370
21371# Whether we should hardcode library paths into libraries.
21372hardcode_into_libs=$hardcode_into_libs
21373
21374# Compile-time system search path for libraries.
21375sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21376
21377# Detected run-time system search path for libraries.
21378sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21379
21380# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21381configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21382
21383# Whether dlopen is supported.
21384dlopen_support=$enable_dlopen
21385
21386# Whether dlopen of programs is supported.
21387dlopen_self=$enable_dlopen_self
21388
21389# Whether dlopen of statically linked programs is supported.
21390dlopen_self_static=$enable_dlopen_self_static
21391
21392# Commands to strip libraries.
21393old_striplib=$lt_old_striplib
21394striplib=$lt_striplib
21395
21396
21397# The linker used to build libraries.
21398LD=$lt_LD
21399
21400# How to create reloadable object files.
21401reload_flag=$lt_reload_flag
21402reload_cmds=$lt_reload_cmds
21403
21404# Commands used to build an old-style archive.
21405old_archive_cmds=$lt_old_archive_cmds
21406
21407# A language specific compiler.
21408CC=$lt_compiler
21409
21410# Is the compiler the GNU compiler?
21411with_gcc=$GCC
21412
21413# Compiler flag to turn off builtin functions.
21414no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21415
21416# Additional compiler flags for building library objects.
21417pic_flag=$lt_lt_prog_compiler_pic
21418
21419# How to pass a linker flag through the compiler.
21420wl=$lt_lt_prog_compiler_wl
21421
21422# Compiler flag to prevent dynamic linking.
21423link_static_flag=$lt_lt_prog_compiler_static
21424
21425# Does compiler simultaneously support -c and -o options?
21426compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21427
21428# Whether or not to add -lc for building shared libraries.
21429build_libtool_need_lc=$archive_cmds_need_lc
21430
21431# Whether or not to disallow shared libs when runtime libs are static.
21432allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21433
21434# Compiler flag to allow reflexive dlopens.
21435export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21436
21437# Compiler flag to generate shared objects directly from archives.
21438whole_archive_flag_spec=$lt_whole_archive_flag_spec
21439
21440# Whether the compiler copes with passing no objects directly.
21441compiler_needs_object=$lt_compiler_needs_object
21442
21443# Create an old-style archive from a shared archive.
21444old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21445
21446# Create a temporary old-style archive to link instead of a shared archive.
21447old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21448
21449# Commands used to build a shared archive.
21450archive_cmds=$lt_archive_cmds
21451archive_expsym_cmds=$lt_archive_expsym_cmds
21452
21453# Commands used to build a loadable module if different from building
21454# a shared archive.
21455module_cmds=$lt_module_cmds
21456module_expsym_cmds=$lt_module_expsym_cmds
21457
21458# Whether we are building with GNU ld or not.
21459with_gnu_ld=$lt_with_gnu_ld
21460
21461# Flag that allows shared libraries with undefined symbols to be built.
21462allow_undefined_flag=$lt_allow_undefined_flag
21463
21464# Flag that enforces no undefined symbols.
21465no_undefined_flag=$lt_no_undefined_flag
21466
21467# Flag to hardcode \$libdir into a binary during linking.
21468# This must work even if \$libdir does not exist
21469hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21470
21471# Whether we need a single "-rpath" flag with a separated argument.
21472hardcode_libdir_separator=$lt_hardcode_libdir_separator
21473
21474# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21475# DIR into the resulting binary.
21476hardcode_direct=$hardcode_direct
21477
21478# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21479# DIR into the resulting binary and the resulting library dependency is
21480# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21481# library is relocated.
21482hardcode_direct_absolute=$hardcode_direct_absolute
21483
21484# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21485# into the resulting binary.
21486hardcode_minus_L=$hardcode_minus_L
21487
21488# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21489# into the resulting binary.
21490hardcode_shlibpath_var=$hardcode_shlibpath_var
21491
21492# Set to "yes" if building a shared library automatically hardcodes DIR
21493# into the library and all subsequent libraries and executables linked
21494# against it.
21495hardcode_automatic=$hardcode_automatic
21496
21497# Set to yes if linker adds runtime paths of dependent libraries
21498# to runtime path list.
21499inherit_rpath=$inherit_rpath
21500
21501# Whether libtool must link a program against all its dependency libraries.
21502link_all_deplibs=$link_all_deplibs
21503
21504# Set to "yes" if exported symbols are required.
21505always_export_symbols=$always_export_symbols
21506
21507# The commands to list exported symbols.
21508export_symbols_cmds=$lt_export_symbols_cmds
21509
21510# Symbols that should not be listed in the preloaded symbols.
21511exclude_expsyms=$lt_exclude_expsyms
21512
21513# Symbols that must always be exported.
21514include_expsyms=$lt_include_expsyms
21515
21516# Commands necessary for linking programs (against libraries) with templates.
21517prelink_cmds=$lt_prelink_cmds
21518
21519# Commands necessary for finishing linking programs.
21520postlink_cmds=$lt_postlink_cmds
21521
21522# Specify filename containing input files.
21523file_list_spec=$lt_file_list_spec
21524
21525# How to hardcode a shared library path into an executable.
21526hardcode_action=$hardcode_action
21527
21528# ### END LIBTOOL CONFIG
21529
21530_LT_EOF
21531
21532    cat <<'_LT_EOF' >> "$cfgfile"
21533
21534# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21535
21536# func_munge_path_list VARIABLE PATH
21537# -----------------------------------
21538# VARIABLE is name of variable containing _space_ separated list of
21539# directories to be munged by the contents of PATH, which is string
21540# having a format:
21541# "DIR[:DIR]:"
21542#       string "DIR[ DIR]" will be prepended to VARIABLE
21543# ":DIR[:DIR]"
21544#       string "DIR[ DIR]" will be appended to VARIABLE
21545# "DIRP[:DIRP]::[DIRA:]DIRA"
21546#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21547#       "DIRA[ DIRA]" will be appended to VARIABLE
21548# "DIR[:DIR]"
21549#       VARIABLE will be replaced by "DIR[ DIR]"
21550func_munge_path_list ()
21551{
21552    case x$2 in
21553    x)
21554        ;;
21555    *:)
21556        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21557        ;;
21558    x:*)
21559        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21560        ;;
21561    *::*)
21562        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21563        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21564        ;;
21565    *)
21566        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21567        ;;
21568    esac
21569}
21570
21571
21572# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21573func_cc_basename ()
21574{
21575    for cc_temp in $*""; do
21576      case $cc_temp in
21577        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21578        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21579        \-*) ;;
21580        *) break;;
21581      esac
21582    done
21583    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21584}
21585
21586
21587# ### END FUNCTIONS SHARED WITH CONFIGURE
21588
21589_LT_EOF
21590
21591  case $host_os in
21592  aix3*)
21593    cat <<\_LT_EOF >> "$cfgfile"
21594# AIX sometimes has problems with the GCC collect2 program.  For some
21595# reason, if we set the COLLECT_NAMES environment variable, the problems
21596# vanish in a puff of smoke.
21597if test set != "${COLLECT_NAMES+set}"; then
21598  COLLECT_NAMES=
21599  export COLLECT_NAMES
21600fi
21601_LT_EOF
21602    ;;
21603  esac
21604
21605
21606ltmain=$ac_aux_dir/ltmain.sh
21607
21608
21609  # We use sed instead of cat because bash on DJGPP gets confused if
21610  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21611  # text mode, it properly converts lines to CR/LF.  This bash problem
21612  # is reportedly fixed, but why not run on old versions too?
21613  sed '$q' "$ltmain" >> "$cfgfile" \
21614     || (rm -f "$cfgfile"; exit 1)
21615
21616   mv -f "$cfgfile" "$ofile" ||
21617    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21618  chmod +x "$ofile"
21619
21620 ;;
21621
21622  esac
21623done # for ac_tag
21624
21625
21626as_fn_exit 0
21627_ACEOF
21628ac_clean_files=$ac_clean_files_save
21629
21630test $ac_write_fail = 0 ||
21631  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21632
21633
21634# configure is writing to config.log, and then calls config.status.
21635# config.status does its own redirection, appending to config.log.
21636# Unfortunately, on DOS this fails, as config.log is still kept open
21637# by configure, so config.status won't be able to write to it; its
21638# output is simply discarded.  So we exec the FD to /dev/null,
21639# effectively closing config.log, so it can be properly (re)opened and
21640# appended to by config.status.  When coming back to configure, we
21641# need to make the FD available again.
21642if test "$no_create" != yes; then
21643  ac_cs_success=:
21644  ac_config_status_args=
21645  test "$silent" = yes &&
21646    ac_config_status_args="$ac_config_status_args --quiet"
21647  exec 5>/dev/null
21648  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21649  exec 5>>config.log
21650  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21651  # would make configure fail if this is the last instruction.
21652  $ac_cs_success || as_fn_exit 1
21653fi
21654if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21655  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21656$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21657fi
21658
21659