configure revision b7d26471
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xdm 1.1.12.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xdm/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://gitlab.freedesktop.org/xorg/app/xdm/issues
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='xdm'
593PACKAGE_TARNAME='xdm'
594PACKAGE_VERSION='1.1.12'
595PACKAGE_STRING='xdm 1.1.12'
596PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xdm/issues'
597PACKAGE_URL=''
598
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_unique_file="Makefile.am"
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639LIBOBJS
640appdefaultdir
641APPDEFS_LIBS
642APPDEFS_CFLAGS
643DEF_AUTH_DIR
644XDMXAUTHDIR
645DEF_CHOOSER
646DEF_XDM_CONFIG
647DEF_FAILSAFE_CLIENT
648DEF_SYSTEM_SHELL
649DEF_SYSTEM_PATH
650DEF_USER_PATH
651DEF_SESSION
652XRDB_PROGRAM
653DEF_SERVER_LINE
654CHOOSER_LIBS
655CHOOSER_CFLAGS
656XDMSHELL_LIBS
657XDMSHELL_CFLAGS
658XT_LIBS
659XT_CFLAGS
660INSTALL_XDMSHELL_FALSE
661INSTALL_XDMSHELL_TRUE
662HAS_XDM_AUTH_FALSE
663HAS_XDM_AUTH_TRUE
664DEF_GREETER_LIB
665XDMGREET_LIBS
666XDMGREET_CFLAGS
667AUTH_LIBS
668AUTH_CFLAGS
669XLIB_LIBS
670XLIB_CFLAGS
671DMCP_LIBS
672DMCP_CFLAGS
673XDM_TOOLKIT_LIBS
674XDM_TOOLKIT_CFLAGS
675XDM_PIXMAPDIR
676XDM_BWPIXMAP
677XDM_PIXMAP
678USE_XPM_FALSE
679USE_XPM_TRUE
680XPM_LIBS
681XPM_CFLAGS
682XFT_LIBS
683XFT_CFLAGS
684XINERAMA_LIBS
685XINERAMA_CFLAGS
686XDM_LIBS
687XDM_CFLAGS
688SHELL_CMD
689WTMP_FILE
690SET_WTMP_FILE_FALSE
691SET_WTMP_FILE_TRUE
692UTMP_FILE
693SET_UTMP_FILE_FALSE
694SET_UTMP_FILE_TRUE
695SERVERSTYPE
696DEFAULTVT
697XDMPIDDIR
698XDMLOGDIR
699XDMSCRIPTDIR
700XDMCONFIGDIR
701XDMLIBDIR
702HAS_KERBEROS_FIVE_FALSE
703HAS_KERBEROS_FIVE_TRUE
704DEV_RANDOM
705SU
706USE_SYSTEMD_DAEMON_FALSE
707USE_SYSTEMD_DAEMON_TRUE
708SYSTEMD_DAEMON_LIBS
709SYSTEMD_DAEMON_CFLAGS
710HAVE_SYSTEMD_FALSE
711HAVE_SYSTEMD_TRUE
712systemdsystemunitdir
713HAS_SECURE_RPC_FALSE
714HAS_SECURE_RPC_TRUE
715HAVE_ARC4RANDOM_FALSE
716HAVE_ARC4RANDOM_TRUE
717HAVE_ARC4RANDOM
718HAVE_MKTEMP_COMMAND_FALSE
719HAVE_MKTEMP_COMMAND_TRUE
720MKTEMP_COMMAND
721LINT_FALSE
722LINT_TRUE
723LINT_FLAGS
724LINT
725TRADITIONALCPPFLAGS
726RAWCPPFLAGS
727RAWCPP
728MAN_SUBSTS
729XORG_MAN_PAGE
730ADMIN_MAN_DIR
731DRIVER_MAN_DIR
732MISC_MAN_DIR
733FILE_MAN_DIR
734LIB_MAN_DIR
735APP_MAN_DIR
736ADMIN_MAN_SUFFIX
737DRIVER_MAN_SUFFIX
738MISC_MAN_SUFFIX
739FILE_MAN_SUFFIX
740LIB_MAN_SUFFIX
741APP_MAN_SUFFIX
742INSTALL_CMD
743PKG_CONFIG_LIBDIR
744PKG_CONFIG_PATH
745PKG_CONFIG
746CHANGELOG_CMD
747STRICT_CFLAGS
748CWARNFLAGS
749BASE_CFLAGS
750LT_SYS_LIBRARY_PATH
751OTOOL64
752OTOOL
753LIPO
754NMEDIT
755DSYMUTIL
756MANIFEST_TOOL
757RANLIB
758ac_ct_AR
759AR
760DLLTOOL
761OBJDUMP
762LN_S
763NM
764ac_ct_DUMPBIN
765DUMPBIN
766LD
767FGREP
768SED
769host_os
770host_vendor
771host_cpu
772host
773build_os
774build_vendor
775build_cpu
776build
777LIBTOOL
778AM_BACKSLASH
779AM_DEFAULT_VERBOSITY
780AM_DEFAULT_V
781AM_V
782am__fastdepCC_FALSE
783am__fastdepCC_TRUE
784CCDEPMODE
785am__nodep
786AMDEPBACKSLASH
787AMDEP_FALSE
788AMDEP_TRUE
789am__quote
790am__include
791DEPDIR
792am__untar
793am__tar
794AMTAR
795am__leading_dot
796SET_MAKE
797AWK
798mkdir_p
799MKDIR_P
800INSTALL_STRIP_PROGRAM
801STRIP
802install_sh
803MAKEINFO
804AUTOHEADER
805AUTOMAKE
806AUTOCONF
807ACLOCAL
808VERSION
809PACKAGE
810CYGPATH_W
811am__isrc
812INSTALL_DATA
813INSTALL_SCRIPT
814INSTALL_PROGRAM
815EGREP
816GREP
817CPP
818OBJEXT
819EXEEXT
820ac_ct_CC
821CPPFLAGS
822LDFLAGS
823CFLAGS
824CC
825target_alias
826host_alias
827build_alias
828LIBS
829ECHO_T
830ECHO_N
831ECHO_C
832DEFS
833mandir
834localedir
835libdir
836psdir
837pdfdir
838dvidir
839htmldir
840infodir
841docdir
842oldincludedir
843includedir
844localstatedir
845sharedstatedir
846sysconfdir
847datadir
848datarootdir
849libexecdir
850sbindir
851bindir
852program_transform_name
853prefix
854exec_prefix
855PACKAGE_URL
856PACKAGE_BUGREPORT
857PACKAGE_STRING
858PACKAGE_VERSION
859PACKAGE_TARNAME
860PACKAGE_NAME
861PATH_SEPARATOR
862SHELL'
863ac_subst_files=''
864ac_user_opts='
865enable_option_checking
866enable_dependency_tracking
867enable_silent_rules
868enable_static
869enable_shared
870with_pic
871enable_fast_install
872with_aix_soname
873with_gnu_ld
874with_sysroot
875enable_libtool_lock
876enable_selective_werror
877enable_strict_compilation
878with_lint
879enable_unix_transport
880enable_tcp_transport
881enable_ipv6
882enable_local_transport
883enable_secure_rpc
884with_pam
885with_selinux
886with_systemdsystemunitdir
887with_systemd_daemon
888with_random_device
889with_xdmlibdir
890with_xdmconfigdir
891with_xdmscriptdir
892with_logdir
893with_piddir
894with_default_vt
895with_config_type
896with_utmp_file
897with_wtmp_file
898with_xft
899enable_xpm_logos
900with_color_pixmap
901with_bw_pixmap
902with_pixmapdir
903enable_xdm_auth
904enable_xdmshell
905with_xrdb
906with_default_session
907with_authdir
908with_appdefaultdir
909'
910      ac_precious_vars='build_alias
911host_alias
912target_alias
913CC
914CFLAGS
915LDFLAGS
916LIBS
917CPPFLAGS
918CPP
919LT_SYS_LIBRARY_PATH
920PKG_CONFIG
921PKG_CONFIG_PATH
922PKG_CONFIG_LIBDIR
923LINT
924LINT_FLAGS
925SYSTEMD_DAEMON_CFLAGS
926SYSTEMD_DAEMON_LIBS
927XDM_CFLAGS
928XDM_LIBS
929XINERAMA_CFLAGS
930XINERAMA_LIBS
931XFT_CFLAGS
932XFT_LIBS
933XPM_CFLAGS
934XPM_LIBS
935XDM_TOOLKIT_CFLAGS
936XDM_TOOLKIT_LIBS
937DMCP_CFLAGS
938DMCP_LIBS
939XLIB_CFLAGS
940XLIB_LIBS
941AUTH_CFLAGS
942AUTH_LIBS
943XDMGREET_CFLAGS
944XDMGREET_LIBS
945XT_CFLAGS
946XT_LIBS
947APPDEFS_CFLAGS
948APPDEFS_LIBS'
949
950
951# Initialize some variables set by options.
952ac_init_help=
953ac_init_version=false
954ac_unrecognized_opts=
955ac_unrecognized_sep=
956# The variables have the same names as the options, with
957# dashes changed to underlines.
958cache_file=/dev/null
959exec_prefix=NONE
960no_create=
961no_recursion=
962prefix=NONE
963program_prefix=NONE
964program_suffix=NONE
965program_transform_name=s,x,x,
966silent=
967site=
968srcdir=
969verbose=
970x_includes=NONE
971x_libraries=NONE
972
973# Installation directory options.
974# These are left unexpanded so users can "make install exec_prefix=/foo"
975# and all the variables that are supposed to be based on exec_prefix
976# by default will actually change.
977# Use braces instead of parens because sh, perl, etc. also accept them.
978# (The list follows the same order as the GNU Coding Standards.)
979bindir='${exec_prefix}/bin'
980sbindir='${exec_prefix}/sbin'
981libexecdir='${exec_prefix}/libexec'
982datarootdir='${prefix}/share'
983datadir='${datarootdir}'
984sysconfdir='${prefix}/etc'
985sharedstatedir='${prefix}/com'
986localstatedir='${prefix}/var'
987includedir='${prefix}/include'
988oldincludedir='/usr/include'
989docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
990infodir='${datarootdir}/info'
991htmldir='${docdir}'
992dvidir='${docdir}'
993pdfdir='${docdir}'
994psdir='${docdir}'
995libdir='${exec_prefix}/lib'
996localedir='${datarootdir}/locale'
997mandir='${datarootdir}/man'
998
999ac_prev=
1000ac_dashdash=
1001for ac_option
1002do
1003  # If the previous option needs an argument, assign it.
1004  if test -n "$ac_prev"; then
1005    eval $ac_prev=\$ac_option
1006    ac_prev=
1007    continue
1008  fi
1009
1010  case $ac_option in
1011  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1012  *=)   ac_optarg= ;;
1013  *)    ac_optarg=yes ;;
1014  esac
1015
1016  # Accept the important Cygnus configure options, so we can diagnose typos.
1017
1018  case $ac_dashdash$ac_option in
1019  --)
1020    ac_dashdash=yes ;;
1021
1022  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1023    ac_prev=bindir ;;
1024  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1025    bindir=$ac_optarg ;;
1026
1027  -build | --build | --buil | --bui | --bu)
1028    ac_prev=build_alias ;;
1029  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1030    build_alias=$ac_optarg ;;
1031
1032  -cache-file | --cache-file | --cache-fil | --cache-fi \
1033  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1034    ac_prev=cache_file ;;
1035  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1036  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1037    cache_file=$ac_optarg ;;
1038
1039  --config-cache | -C)
1040    cache_file=config.cache ;;
1041
1042  -datadir | --datadir | --datadi | --datad)
1043    ac_prev=datadir ;;
1044  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1045    datadir=$ac_optarg ;;
1046
1047  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1048  | --dataroo | --dataro | --datar)
1049    ac_prev=datarootdir ;;
1050  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1051  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1052    datarootdir=$ac_optarg ;;
1053
1054  -disable-* | --disable-*)
1055    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1056    # Reject names that are not valid shell variable names.
1057    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1058      as_fn_error $? "invalid feature name: $ac_useropt"
1059    ac_useropt_orig=$ac_useropt
1060    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061    case $ac_user_opts in
1062      *"
1063"enable_$ac_useropt"
1064"*) ;;
1065      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1066	 ac_unrecognized_sep=', ';;
1067    esac
1068    eval enable_$ac_useropt=no ;;
1069
1070  -docdir | --docdir | --docdi | --doc | --do)
1071    ac_prev=docdir ;;
1072  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1073    docdir=$ac_optarg ;;
1074
1075  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1076    ac_prev=dvidir ;;
1077  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1078    dvidir=$ac_optarg ;;
1079
1080  -enable-* | --enable-*)
1081    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1082    # Reject names that are not valid shell variable names.
1083    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1084      as_fn_error $? "invalid feature name: $ac_useropt"
1085    ac_useropt_orig=$ac_useropt
1086    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1087    case $ac_user_opts in
1088      *"
1089"enable_$ac_useropt"
1090"*) ;;
1091      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1092	 ac_unrecognized_sep=', ';;
1093    esac
1094    eval enable_$ac_useropt=\$ac_optarg ;;
1095
1096  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1097  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1098  | --exec | --exe | --ex)
1099    ac_prev=exec_prefix ;;
1100  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1101  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1102  | --exec=* | --exe=* | --ex=*)
1103    exec_prefix=$ac_optarg ;;
1104
1105  -gas | --gas | --ga | --g)
1106    # Obsolete; use --with-gas.
1107    with_gas=yes ;;
1108
1109  -help | --help | --hel | --he | -h)
1110    ac_init_help=long ;;
1111  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1112    ac_init_help=recursive ;;
1113  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1114    ac_init_help=short ;;
1115
1116  -host | --host | --hos | --ho)
1117    ac_prev=host_alias ;;
1118  -host=* | --host=* | --hos=* | --ho=*)
1119    host_alias=$ac_optarg ;;
1120
1121  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1122    ac_prev=htmldir ;;
1123  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1124  | --ht=*)
1125    htmldir=$ac_optarg ;;
1126
1127  -includedir | --includedir | --includedi | --included | --include \
1128  | --includ | --inclu | --incl | --inc)
1129    ac_prev=includedir ;;
1130  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1131  | --includ=* | --inclu=* | --incl=* | --inc=*)
1132    includedir=$ac_optarg ;;
1133
1134  -infodir | --infodir | --infodi | --infod | --info | --inf)
1135    ac_prev=infodir ;;
1136  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1137    infodir=$ac_optarg ;;
1138
1139  -libdir | --libdir | --libdi | --libd)
1140    ac_prev=libdir ;;
1141  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1142    libdir=$ac_optarg ;;
1143
1144  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1145  | --libexe | --libex | --libe)
1146    ac_prev=libexecdir ;;
1147  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1148  | --libexe=* | --libex=* | --libe=*)
1149    libexecdir=$ac_optarg ;;
1150
1151  -localedir | --localedir | --localedi | --localed | --locale)
1152    ac_prev=localedir ;;
1153  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1154    localedir=$ac_optarg ;;
1155
1156  -localstatedir | --localstatedir | --localstatedi | --localstated \
1157  | --localstate | --localstat | --localsta | --localst | --locals)
1158    ac_prev=localstatedir ;;
1159  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1160  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1161    localstatedir=$ac_optarg ;;
1162
1163  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1164    ac_prev=mandir ;;
1165  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1166    mandir=$ac_optarg ;;
1167
1168  -nfp | --nfp | --nf)
1169    # Obsolete; use --without-fp.
1170    with_fp=no ;;
1171
1172  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1173  | --no-cr | --no-c | -n)
1174    no_create=yes ;;
1175
1176  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1177  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1178    no_recursion=yes ;;
1179
1180  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1181  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1182  | --oldin | --oldi | --old | --ol | --o)
1183    ac_prev=oldincludedir ;;
1184  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1185  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1186  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1187    oldincludedir=$ac_optarg ;;
1188
1189  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1190    ac_prev=prefix ;;
1191  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1192    prefix=$ac_optarg ;;
1193
1194  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1195  | --program-pre | --program-pr | --program-p)
1196    ac_prev=program_prefix ;;
1197  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1198  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1199    program_prefix=$ac_optarg ;;
1200
1201  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1202  | --program-suf | --program-su | --program-s)
1203    ac_prev=program_suffix ;;
1204  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1205  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1206    program_suffix=$ac_optarg ;;
1207
1208  -program-transform-name | --program-transform-name \
1209  | --program-transform-nam | --program-transform-na \
1210  | --program-transform-n | --program-transform- \
1211  | --program-transform | --program-transfor \
1212  | --program-transfo | --program-transf \
1213  | --program-trans | --program-tran \
1214  | --progr-tra | --program-tr | --program-t)
1215    ac_prev=program_transform_name ;;
1216  -program-transform-name=* | --program-transform-name=* \
1217  | --program-transform-nam=* | --program-transform-na=* \
1218  | --program-transform-n=* | --program-transform-=* \
1219  | --program-transform=* | --program-transfor=* \
1220  | --program-transfo=* | --program-transf=* \
1221  | --program-trans=* | --program-tran=* \
1222  | --progr-tra=* | --program-tr=* | --program-t=*)
1223    program_transform_name=$ac_optarg ;;
1224
1225  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1226    ac_prev=pdfdir ;;
1227  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1228    pdfdir=$ac_optarg ;;
1229
1230  -psdir | --psdir | --psdi | --psd | --ps)
1231    ac_prev=psdir ;;
1232  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1233    psdir=$ac_optarg ;;
1234
1235  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1236  | -silent | --silent | --silen | --sile | --sil)
1237    silent=yes ;;
1238
1239  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1240    ac_prev=sbindir ;;
1241  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1242  | --sbi=* | --sb=*)
1243    sbindir=$ac_optarg ;;
1244
1245  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1246  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1247  | --sharedst | --shareds | --shared | --share | --shar \
1248  | --sha | --sh)
1249    ac_prev=sharedstatedir ;;
1250  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1251  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1252  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1253  | --sha=* | --sh=*)
1254    sharedstatedir=$ac_optarg ;;
1255
1256  -site | --site | --sit)
1257    ac_prev=site ;;
1258  -site=* | --site=* | --sit=*)
1259    site=$ac_optarg ;;
1260
1261  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1262    ac_prev=srcdir ;;
1263  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1264    srcdir=$ac_optarg ;;
1265
1266  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1267  | --syscon | --sysco | --sysc | --sys | --sy)
1268    ac_prev=sysconfdir ;;
1269  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1270  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1271    sysconfdir=$ac_optarg ;;
1272
1273  -target | --target | --targe | --targ | --tar | --ta | --t)
1274    ac_prev=target_alias ;;
1275  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1276    target_alias=$ac_optarg ;;
1277
1278  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1279    verbose=yes ;;
1280
1281  -version | --version | --versio | --versi | --vers | -V)
1282    ac_init_version=: ;;
1283
1284  -with-* | --with-*)
1285    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1286    # Reject names that are not valid shell variable names.
1287    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1288      as_fn_error $? "invalid package name: $ac_useropt"
1289    ac_useropt_orig=$ac_useropt
1290    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1291    case $ac_user_opts in
1292      *"
1293"with_$ac_useropt"
1294"*) ;;
1295      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1296	 ac_unrecognized_sep=', ';;
1297    esac
1298    eval with_$ac_useropt=\$ac_optarg ;;
1299
1300  -without-* | --without-*)
1301    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1302    # Reject names that are not valid shell variable names.
1303    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1304      as_fn_error $? "invalid package name: $ac_useropt"
1305    ac_useropt_orig=$ac_useropt
1306    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1307    case $ac_user_opts in
1308      *"
1309"with_$ac_useropt"
1310"*) ;;
1311      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1312	 ac_unrecognized_sep=', ';;
1313    esac
1314    eval with_$ac_useropt=no ;;
1315
1316  --x)
1317    # Obsolete; use --with-x.
1318    with_x=yes ;;
1319
1320  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1321  | --x-incl | --x-inc | --x-in | --x-i)
1322    ac_prev=x_includes ;;
1323  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1324  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1325    x_includes=$ac_optarg ;;
1326
1327  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1328  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1329    ac_prev=x_libraries ;;
1330  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1331  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1332    x_libraries=$ac_optarg ;;
1333
1334  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1335Try \`$0 --help' for more information"
1336    ;;
1337
1338  *=*)
1339    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1340    # Reject names that are not valid shell variable names.
1341    case $ac_envvar in #(
1342      '' | [0-9]* | *[!_$as_cr_alnum]* )
1343      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1344    esac
1345    eval $ac_envvar=\$ac_optarg
1346    export $ac_envvar ;;
1347
1348  *)
1349    # FIXME: should be removed in autoconf 3.0.
1350    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1351    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1352      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1353    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1354    ;;
1355
1356  esac
1357done
1358
1359if test -n "$ac_prev"; then
1360  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1361  as_fn_error $? "missing argument to $ac_option"
1362fi
1363
1364if test -n "$ac_unrecognized_opts"; then
1365  case $enable_option_checking in
1366    no) ;;
1367    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1368    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1369  esac
1370fi
1371
1372# Check all directory arguments for consistency.
1373for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1374		datadir sysconfdir sharedstatedir localstatedir includedir \
1375		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1376		libdir localedir mandir
1377do
1378  eval ac_val=\$$ac_var
1379  # Remove trailing slashes.
1380  case $ac_val in
1381    */ )
1382      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1383      eval $ac_var=\$ac_val;;
1384  esac
1385  # Be sure to have absolute directory names.
1386  case $ac_val in
1387    [\\/$]* | ?:[\\/]* )  continue;;
1388    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1389  esac
1390  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1391done
1392
1393# There might be people who depend on the old broken behavior: `$host'
1394# used to hold the argument of --host etc.
1395# FIXME: To remove some day.
1396build=$build_alias
1397host=$host_alias
1398target=$target_alias
1399
1400# FIXME: To remove some day.
1401if test "x$host_alias" != x; then
1402  if test "x$build_alias" = x; then
1403    cross_compiling=maybe
1404  elif test "x$build_alias" != "x$host_alias"; then
1405    cross_compiling=yes
1406  fi
1407fi
1408
1409ac_tool_prefix=
1410test -n "$host_alias" && ac_tool_prefix=$host_alias-
1411
1412test "$silent" = yes && exec 6>/dev/null
1413
1414
1415ac_pwd=`pwd` && test -n "$ac_pwd" &&
1416ac_ls_di=`ls -di .` &&
1417ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1418  as_fn_error $? "working directory cannot be determined"
1419test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1420  as_fn_error $? "pwd does not report name of working directory"
1421
1422
1423# Find the source files, if location was not specified.
1424if test -z "$srcdir"; then
1425  ac_srcdir_defaulted=yes
1426  # Try the directory containing this script, then the parent directory.
1427  ac_confdir=`$as_dirname -- "$as_myself" ||
1428$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1429	 X"$as_myself" : 'X\(//\)[^/]' \| \
1430	 X"$as_myself" : 'X\(//\)$' \| \
1431	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1432$as_echo X"$as_myself" |
1433    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1434	    s//\1/
1435	    q
1436	  }
1437	  /^X\(\/\/\)[^/].*/{
1438	    s//\1/
1439	    q
1440	  }
1441	  /^X\(\/\/\)$/{
1442	    s//\1/
1443	    q
1444	  }
1445	  /^X\(\/\).*/{
1446	    s//\1/
1447	    q
1448	  }
1449	  s/.*/./; q'`
1450  srcdir=$ac_confdir
1451  if test ! -r "$srcdir/$ac_unique_file"; then
1452    srcdir=..
1453  fi
1454else
1455  ac_srcdir_defaulted=no
1456fi
1457if test ! -r "$srcdir/$ac_unique_file"; then
1458  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1459  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1460fi
1461ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1462ac_abs_confdir=`(
1463	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1464	pwd)`
1465# When building in place, set srcdir=.
1466if test "$ac_abs_confdir" = "$ac_pwd"; then
1467  srcdir=.
1468fi
1469# Remove unnecessary trailing slashes from srcdir.
1470# Double slashes in file names in object file debugging info
1471# mess up M-x gdb in Emacs.
1472case $srcdir in
1473*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1474esac
1475for ac_var in $ac_precious_vars; do
1476  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1477  eval ac_env_${ac_var}_value=\$${ac_var}
1478  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1479  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1480done
1481
1482#
1483# Report the --help message.
1484#
1485if test "$ac_init_help" = "long"; then
1486  # Omit some internal or obsolete options to make the list less imposing.
1487  # This message is too long to be a string in the A/UX 3.1 sh.
1488  cat <<_ACEOF
1489\`configure' configures xdm 1.1.12 to adapt to many kinds of systems.
1490
1491Usage: $0 [OPTION]... [VAR=VALUE]...
1492
1493To assign environment variables (e.g., CC, CFLAGS...), specify them as
1494VAR=VALUE.  See below for descriptions of some of the useful variables.
1495
1496Defaults for the options are specified in brackets.
1497
1498Configuration:
1499  -h, --help              display this help and exit
1500      --help=short        display options specific to this package
1501      --help=recursive    display the short help of all the included packages
1502  -V, --version           display version information and exit
1503  -q, --quiet, --silent   do not print \`checking ...' messages
1504      --cache-file=FILE   cache test results in FILE [disabled]
1505  -C, --config-cache      alias for \`--cache-file=config.cache'
1506  -n, --no-create         do not create output files
1507      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1508
1509Installation directories:
1510  --prefix=PREFIX         install architecture-independent files in PREFIX
1511                          [$ac_default_prefix]
1512  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1513                          [PREFIX]
1514
1515By default, \`make install' will install all the files in
1516\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1517an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1518for instance \`--prefix=\$HOME'.
1519
1520For better control, use the options below.
1521
1522Fine tuning of the installation directories:
1523  --bindir=DIR            user executables [EPREFIX/bin]
1524  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1525  --libexecdir=DIR        program executables [EPREFIX/libexec]
1526  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1527  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1528  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1529  --libdir=DIR            object code libraries [EPREFIX/lib]
1530  --includedir=DIR        C header files [PREFIX/include]
1531  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1532  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1533  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1534  --infodir=DIR           info documentation [DATAROOTDIR/info]
1535  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1536  --mandir=DIR            man documentation [DATAROOTDIR/man]
1537  --docdir=DIR            documentation root [DATAROOTDIR/doc/xdm]
1538  --htmldir=DIR           html documentation [DOCDIR]
1539  --dvidir=DIR            dvi documentation [DOCDIR]
1540  --pdfdir=DIR            pdf documentation [DOCDIR]
1541  --psdir=DIR             ps documentation [DOCDIR]
1542_ACEOF
1543
1544  cat <<\_ACEOF
1545
1546Program names:
1547  --program-prefix=PREFIX            prepend PREFIX to installed program names
1548  --program-suffix=SUFFIX            append SUFFIX to installed program names
1549  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1550
1551System types:
1552  --build=BUILD     configure for building on BUILD [guessed]
1553  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1554_ACEOF
1555fi
1556
1557if test -n "$ac_init_help"; then
1558  case $ac_init_help in
1559     short | recursive ) echo "Configuration of xdm 1.1.12:";;
1560   esac
1561  cat <<\_ACEOF
1562
1563Optional Features:
1564  --disable-option-checking  ignore unrecognized --enable/--with options
1565  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1566  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1567  --enable-dependency-tracking
1568                          do not reject slow dependency extractors
1569  --disable-dependency-tracking
1570                          speeds up one-time build
1571  --enable-silent-rules   less verbose build output (undo: "make V=1")
1572  --disable-silent-rules  verbose build output (undo: "make V=0")
1573  --enable-static[=PKGS]  build static libraries [default=no]
1574  --enable-shared[=PKGS]  build shared libraries [default=yes]
1575  --enable-fast-install[=PKGS]
1576                          optimize for fast installation [default=yes]
1577  --disable-libtool-lock  avoid locking (might break parallel builds)
1578  --disable-selective-werror
1579                          Turn off selective compiler errors. (default:
1580                          enabled)
1581  --enable-strict-compilation
1582                          Enable all warnings from compiler and make them
1583                          errors (default: disabled)
1584  --enable-unix-transport Enable UNIX domain socket transport
1585  --enable-tcp-transport  Enable TCP socket transport
1586  --enable-ipv6           Enable IPv6 support
1587  --enable-local-transport
1588                          Enable os-specific local transport
1589  --enable-secure-rpc     Enable Secure RPC
1590  --enable-xpm-logos      Display xpm logos in greeter (default is YES)
1591  --enable-xdm-auth       Support XDM-AUTHENTICATION-1 and XDM-AUTHORIZATION-1
1592                          (default: auto)
1593  --enable-xdmshell       Install xdmshell (default: disabled)
1594
1595Optional Packages:
1596  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1597  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1598  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1599                          both]
1600  --with-aix-soname=aix|svr4|both
1601                          shared library versioning (aka "SONAME") variant to
1602                          provide on AIX, [default=aix].
1603  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1604  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1605                          compiler's sysroot if not specified).
1606  --with-lint             Use a lint-style source code checker (default:
1607                          disabled)
1608  --with-pam              Use PAM for authentication (default is autodetected)
1609  --with-selinux          Add support for SELinux (default is no support)
1610  --with-systemdsystemunitdir=DIR
1611                          Directory for systemd service files (default from
1612                          the System and Service Manager)
1613  --with-systemd-daemon   Add support for systemd startup notification
1614                          (default is autodetected)
1615  --with-random-device\=<pathname>\
1616                          Use <pathname> as a source of randomness (default is
1617                          auto-detected)
1618  --with-xdmlibdir=<pathname>
1619                          specify directory for xdm scripts and modules
1620                          (default=${libdir}/X11/xdm)
1621  --with-xdmconfigdir=<pathname>
1622                          specify directory for xdm config files (default is
1623                          same as xdmlibdir)
1624  --with-xdmscriptdir=<pathname>
1625                          specify directory for xdm scripts (default is same
1626                          as xdmlibdir)
1627  --with-logdir=<pathname>
1628                          specify directory for xdm log files
1629                          (default=/var/log)
1630  --with-piddir=<pathname>
1631                          specify directory for xdm pid files
1632                          (default=/var/run)
1633  --with-default-vt=<vtname>
1634                          specify default vt to start xdm on (default=none)
1635  --with-config-type={ws|fs}
1636                          default config file type to use - workstation (ws)
1637                          or fileserver (fs) (default=ws)
1638  --with-utmp-file=<pathname>
1639                          specify file to pass to sessreg -u for current
1640                          logins
1641  --without-utmp-file     specify passing "none" to sessreg -u to not record
1642                          logins in utmp
1643  --with-wtmp-file=<pathname>
1644                          specify file to pass to sessreg -w for login history
1645  --without-wtmp-file     specify passing "none" to sessreg -w to not record
1646                          logins in wtmp
1647  --with-xft              Use Xft to draw text (default is YES if installed)
1648  --with-color-pixmap=<filename>
1649                          specify xpm file to use as color logo
1650                          (default=xorg.xpm)
1651  --with-bw-pixmap=<filename>
1652                          specify xpm file to use as black-and-white logo
1653                          (default=xorg-bw.xpm)
1654  --with-pixmapdir=<pathname>
1655                          specify directory for xpm files
1656                          (default=xdmlibdir/pixmaps)
1657  --with-xrdb=path        Use path for xrdb (default: bindir/xrdb)
1658  --with-default-session=command
1659                          Use command for default session (default:
1660                          bindir/xterm -ls)
1661  --with-authdir=<pathname>
1662                          specify directory for X auth files
1663                          (default=/var/lib/xdm)
1664  --with-appdefaultdir=<pathname>
1665                          specify directory for app-defaults files (default is
1666                          autodetected)
1667
1668Some influential environment variables:
1669  CC          C compiler command
1670  CFLAGS      C compiler flags
1671  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1672              nonstandard directory <lib dir>
1673  LIBS        libraries to pass to the linker, e.g. -l<library>
1674  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1675              you have headers in a nonstandard directory <include dir>
1676  CPP         C preprocessor
1677  LT_SYS_LIBRARY_PATH
1678              User-defined run-time library search path.
1679  PKG_CONFIG  path to pkg-config utility
1680  PKG_CONFIG_PATH
1681              directories to add to pkg-config's search path
1682  PKG_CONFIG_LIBDIR
1683              path overriding pkg-config's built-in search path
1684  LINT        Path to a lint-style command
1685  LINT_FLAGS  Flags for the lint-style command
1686  SYSTEMD_DAEMON_CFLAGS
1687              C compiler flags for SYSTEMD_DAEMON, overriding pkg-config
1688  SYSTEMD_DAEMON_LIBS
1689              linker flags for SYSTEMD_DAEMON, overriding pkg-config
1690  XDM_CFLAGS  C compiler flags for XDM, overriding pkg-config
1691  XDM_LIBS    linker flags for XDM, overriding pkg-config
1692  XINERAMA_CFLAGS
1693              C compiler flags for XINERAMA, overriding pkg-config
1694  XINERAMA_LIBS
1695              linker flags for XINERAMA, overriding pkg-config
1696  XFT_CFLAGS  C compiler flags for XFT, overriding pkg-config
1697  XFT_LIBS    linker flags for XFT, overriding pkg-config
1698  XPM_CFLAGS  C compiler flags for XPM, overriding pkg-config
1699  XPM_LIBS    linker flags for XPM, overriding pkg-config
1700  XDM_TOOLKIT_CFLAGS
1701              C compiler flags for XDM_TOOLKIT, overriding pkg-config
1702  XDM_TOOLKIT_LIBS
1703              linker flags for XDM_TOOLKIT, overriding pkg-config
1704  DMCP_CFLAGS C compiler flags for DMCP, overriding pkg-config
1705  DMCP_LIBS   linker flags for DMCP, overriding pkg-config
1706  XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config
1707  XLIB_LIBS   linker flags for XLIB, overriding pkg-config
1708  AUTH_CFLAGS C compiler flags for AUTH, overriding pkg-config
1709  AUTH_LIBS   linker flags for AUTH, overriding pkg-config
1710  XDMGREET_CFLAGS
1711              C compiler flags for XDMGREET, overriding pkg-config
1712  XDMGREET_LIBS
1713              linker flags for XDMGREET, overriding pkg-config
1714  XT_CFLAGS   C compiler flags for XT, overriding pkg-config
1715  XT_LIBS     linker flags for XT, overriding pkg-config
1716  APPDEFS_CFLAGS
1717              C compiler flags for APPDEFS, overriding pkg-config
1718  APPDEFS_LIBS
1719              linker flags for APPDEFS, overriding pkg-config
1720
1721Use these variables to override the choices made by `configure' or to help
1722it to find libraries and programs with nonstandard names/locations.
1723
1724Report bugs to <https://gitlab.freedesktop.org/xorg/app/xdm/issues>.
1725_ACEOF
1726ac_status=$?
1727fi
1728
1729if test "$ac_init_help" = "recursive"; then
1730  # If there are subdirs, report their specific --help.
1731  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1732    test -d "$ac_dir" ||
1733      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1734      continue
1735    ac_builddir=.
1736
1737case "$ac_dir" in
1738.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1739*)
1740  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1741  # A ".." for each directory in $ac_dir_suffix.
1742  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1743  case $ac_top_builddir_sub in
1744  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1745  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1746  esac ;;
1747esac
1748ac_abs_top_builddir=$ac_pwd
1749ac_abs_builddir=$ac_pwd$ac_dir_suffix
1750# for backward compatibility:
1751ac_top_builddir=$ac_top_build_prefix
1752
1753case $srcdir in
1754  .)  # We are building in place.
1755    ac_srcdir=.
1756    ac_top_srcdir=$ac_top_builddir_sub
1757    ac_abs_top_srcdir=$ac_pwd ;;
1758  [\\/]* | ?:[\\/]* )  # Absolute name.
1759    ac_srcdir=$srcdir$ac_dir_suffix;
1760    ac_top_srcdir=$srcdir
1761    ac_abs_top_srcdir=$srcdir ;;
1762  *) # Relative name.
1763    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1764    ac_top_srcdir=$ac_top_build_prefix$srcdir
1765    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1766esac
1767ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1768
1769    cd "$ac_dir" || { ac_status=$?; continue; }
1770    # Check for guested configure.
1771    if test -f "$ac_srcdir/configure.gnu"; then
1772      echo &&
1773      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1774    elif test -f "$ac_srcdir/configure"; then
1775      echo &&
1776      $SHELL "$ac_srcdir/configure" --help=recursive
1777    else
1778      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1779    fi || ac_status=$?
1780    cd "$ac_pwd" || { ac_status=$?; break; }
1781  done
1782fi
1783
1784test -n "$ac_init_help" && exit $ac_status
1785if $ac_init_version; then
1786  cat <<\_ACEOF
1787xdm configure 1.1.12
1788generated by GNU Autoconf 2.69
1789
1790Copyright (C) 2012 Free Software Foundation, Inc.
1791This configure script is free software; the Free Software Foundation
1792gives unlimited permission to copy, distribute and modify it.
1793_ACEOF
1794  exit
1795fi
1796
1797## ------------------------ ##
1798## Autoconf initialization. ##
1799## ------------------------ ##
1800
1801# ac_fn_c_try_compile LINENO
1802# --------------------------
1803# Try to compile conftest.$ac_ext, and return whether this succeeded.
1804ac_fn_c_try_compile ()
1805{
1806  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807  rm -f conftest.$ac_objext
1808  if { { ac_try="$ac_compile"
1809case "(($ac_try" in
1810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811  *) ac_try_echo=$ac_try;;
1812esac
1813eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814$as_echo "$ac_try_echo"; } >&5
1815  (eval "$ac_compile") 2>conftest.err
1816  ac_status=$?
1817  if test -s conftest.err; then
1818    grep -v '^ *+' conftest.err >conftest.er1
1819    cat conftest.er1 >&5
1820    mv -f conftest.er1 conftest.err
1821  fi
1822  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1823  test $ac_status = 0; } && {
1824	 test -z "$ac_c_werror_flag" ||
1825	 test ! -s conftest.err
1826       } && test -s conftest.$ac_objext; then :
1827  ac_retval=0
1828else
1829  $as_echo "$as_me: failed program was:" >&5
1830sed 's/^/| /' conftest.$ac_ext >&5
1831
1832	ac_retval=1
1833fi
1834  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835  as_fn_set_status $ac_retval
1836
1837} # ac_fn_c_try_compile
1838
1839# ac_fn_c_try_cpp LINENO
1840# ----------------------
1841# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1842ac_fn_c_try_cpp ()
1843{
1844  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845  if { { ac_try="$ac_cpp conftest.$ac_ext"
1846case "(($ac_try" in
1847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848  *) ac_try_echo=$ac_try;;
1849esac
1850eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851$as_echo "$ac_try_echo"; } >&5
1852  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1853  ac_status=$?
1854  if test -s conftest.err; then
1855    grep -v '^ *+' conftest.err >conftest.er1
1856    cat conftest.er1 >&5
1857    mv -f conftest.er1 conftest.err
1858  fi
1859  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860  test $ac_status = 0; } > conftest.i && {
1861	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1862	 test ! -s conftest.err
1863       }; then :
1864  ac_retval=0
1865else
1866  $as_echo "$as_me: failed program was:" >&5
1867sed 's/^/| /' conftest.$ac_ext >&5
1868
1869    ac_retval=1
1870fi
1871  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872  as_fn_set_status $ac_retval
1873
1874} # ac_fn_c_try_cpp
1875
1876# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1877# -------------------------------------------------------
1878# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1879# the include files in INCLUDES and setting the cache variable VAR
1880# accordingly.
1881ac_fn_c_check_header_mongrel ()
1882{
1883  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884  if eval \${$3+:} false; then :
1885  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886$as_echo_n "checking for $2... " >&6; }
1887if eval \${$3+:} false; then :
1888  $as_echo_n "(cached) " >&6
1889fi
1890eval ac_res=\$$3
1891	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1892$as_echo "$ac_res" >&6; }
1893else
1894  # Is the header compilable?
1895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1896$as_echo_n "checking $2 usability... " >&6; }
1897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898/* end confdefs.h.  */
1899$4
1900#include <$2>
1901_ACEOF
1902if ac_fn_c_try_compile "$LINENO"; then :
1903  ac_header_compiler=yes
1904else
1905  ac_header_compiler=no
1906fi
1907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1909$as_echo "$ac_header_compiler" >&6; }
1910
1911# Is the header present?
1912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1913$as_echo_n "checking $2 presence... " >&6; }
1914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915/* end confdefs.h.  */
1916#include <$2>
1917_ACEOF
1918if ac_fn_c_try_cpp "$LINENO"; then :
1919  ac_header_preproc=yes
1920else
1921  ac_header_preproc=no
1922fi
1923rm -f conftest.err conftest.i conftest.$ac_ext
1924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1925$as_echo "$ac_header_preproc" >&6; }
1926
1927# So?  What about this header?
1928case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1929  yes:no: )
1930    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1931$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1932    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1933$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1934    ;;
1935  no:yes:* )
1936    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1937$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1938    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1939$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1940    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1941$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1942    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1943$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1944    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1945$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1946( $as_echo "## ----------------------------------------------------------------- ##
1947## Report this to https://gitlab.freedesktop.org/xorg/app/xdm/issues ##
1948## ----------------------------------------------------------------- ##"
1949     ) | sed "s/^/$as_me: WARNING:     /" >&2
1950    ;;
1951esac
1952  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1953$as_echo_n "checking for $2... " >&6; }
1954if eval \${$3+:} false; then :
1955  $as_echo_n "(cached) " >&6
1956else
1957  eval "$3=\$ac_header_compiler"
1958fi
1959eval ac_res=\$$3
1960	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1961$as_echo "$ac_res" >&6; }
1962fi
1963  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1964
1965} # ac_fn_c_check_header_mongrel
1966
1967# ac_fn_c_try_run LINENO
1968# ----------------------
1969# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1970# that executables *can* be run.
1971ac_fn_c_try_run ()
1972{
1973  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974  if { { ac_try="$ac_link"
1975case "(($ac_try" in
1976  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1977  *) ac_try_echo=$ac_try;;
1978esac
1979eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1980$as_echo "$ac_try_echo"; } >&5
1981  (eval "$ac_link") 2>&5
1982  ac_status=$?
1983  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1984  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1985  { { case "(($ac_try" in
1986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1987  *) ac_try_echo=$ac_try;;
1988esac
1989eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1990$as_echo "$ac_try_echo"; } >&5
1991  (eval "$ac_try") 2>&5
1992  ac_status=$?
1993  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1994  test $ac_status = 0; }; }; then :
1995  ac_retval=0
1996else
1997  $as_echo "$as_me: program exited with status $ac_status" >&5
1998       $as_echo "$as_me: failed program was:" >&5
1999sed 's/^/| /' conftest.$ac_ext >&5
2000
2001       ac_retval=$ac_status
2002fi
2003  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2004  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005  as_fn_set_status $ac_retval
2006
2007} # ac_fn_c_try_run
2008
2009# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2010# -------------------------------------------------------
2011# Tests whether HEADER exists and can be compiled using the include files in
2012# INCLUDES, setting the cache variable VAR accordingly.
2013ac_fn_c_check_header_compile ()
2014{
2015  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2016  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2017$as_echo_n "checking for $2... " >&6; }
2018if eval \${$3+:} false; then :
2019  $as_echo_n "(cached) " >&6
2020else
2021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022/* end confdefs.h.  */
2023$4
2024#include <$2>
2025_ACEOF
2026if ac_fn_c_try_compile "$LINENO"; then :
2027  eval "$3=yes"
2028else
2029  eval "$3=no"
2030fi
2031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032fi
2033eval ac_res=\$$3
2034	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2035$as_echo "$ac_res" >&6; }
2036  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2037
2038} # ac_fn_c_check_header_compile
2039
2040# ac_fn_c_try_link LINENO
2041# -----------------------
2042# Try to link conftest.$ac_ext, and return whether this succeeded.
2043ac_fn_c_try_link ()
2044{
2045  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2046  rm -f conftest.$ac_objext conftest$ac_exeext
2047  if { { ac_try="$ac_link"
2048case "(($ac_try" in
2049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2050  *) ac_try_echo=$ac_try;;
2051esac
2052eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2053$as_echo "$ac_try_echo"; } >&5
2054  (eval "$ac_link") 2>conftest.err
2055  ac_status=$?
2056  if test -s conftest.err; then
2057    grep -v '^ *+' conftest.err >conftest.er1
2058    cat conftest.er1 >&5
2059    mv -f conftest.er1 conftest.err
2060  fi
2061  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2062  test $ac_status = 0; } && {
2063	 test -z "$ac_c_werror_flag" ||
2064	 test ! -s conftest.err
2065       } && test -s conftest$ac_exeext && {
2066	 test "$cross_compiling" = yes ||
2067	 test -x conftest$ac_exeext
2068       }; then :
2069  ac_retval=0
2070else
2071  $as_echo "$as_me: failed program was:" >&5
2072sed 's/^/| /' conftest.$ac_ext >&5
2073
2074	ac_retval=1
2075fi
2076  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2077  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2078  # interfere with the next link command; also delete a directory that is
2079  # left behind by Apple's compiler.  We do this before executing the actions.
2080  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2081  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2082  as_fn_set_status $ac_retval
2083
2084} # ac_fn_c_try_link
2085
2086# ac_fn_c_check_func LINENO FUNC VAR
2087# ----------------------------------
2088# Tests whether FUNC exists, setting the cache variable VAR accordingly
2089ac_fn_c_check_func ()
2090{
2091  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2092  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2093$as_echo_n "checking for $2... " >&6; }
2094if eval \${$3+:} false; then :
2095  $as_echo_n "(cached) " >&6
2096else
2097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098/* end confdefs.h.  */
2099/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2100   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2101#define $2 innocuous_$2
2102
2103/* System header to define __stub macros and hopefully few prototypes,
2104    which can conflict with char $2 (); below.
2105    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2106    <limits.h> exists even on freestanding compilers.  */
2107
2108#ifdef __STDC__
2109# include <limits.h>
2110#else
2111# include <assert.h>
2112#endif
2113
2114#undef $2
2115
2116/* Override any GCC internal prototype to avoid an error.
2117   Use char because int might match the return type of a GCC
2118   builtin and then its argument prototype would still apply.  */
2119#ifdef __cplusplus
2120extern "C"
2121#endif
2122char $2 ();
2123/* The GNU C library defines this for functions which it implements
2124    to always fail with ENOSYS.  Some functions are actually named
2125    something starting with __ and the normal name is an alias.  */
2126#if defined __stub_$2 || defined __stub___$2
2127choke me
2128#endif
2129
2130int
2131main ()
2132{
2133return $2 ();
2134  ;
2135  return 0;
2136}
2137_ACEOF
2138if ac_fn_c_try_link "$LINENO"; then :
2139  eval "$3=yes"
2140else
2141  eval "$3=no"
2142fi
2143rm -f core conftest.err conftest.$ac_objext \
2144    conftest$ac_exeext conftest.$ac_ext
2145fi
2146eval ac_res=\$$3
2147	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2148$as_echo "$ac_res" >&6; }
2149  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2150
2151} # ac_fn_c_check_func
2152
2153# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2154# ---------------------------------------------
2155# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2156# accordingly.
2157ac_fn_c_check_decl ()
2158{
2159  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2160  as_decl_name=`echo $2|sed 's/ *(.*//'`
2161  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2162  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2163$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2164if eval \${$3+:} false; then :
2165  $as_echo_n "(cached) " >&6
2166else
2167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168/* end confdefs.h.  */
2169$4
2170int
2171main ()
2172{
2173#ifndef $as_decl_name
2174#ifdef __cplusplus
2175  (void) $as_decl_use;
2176#else
2177  (void) $as_decl_name;
2178#endif
2179#endif
2180
2181  ;
2182  return 0;
2183}
2184_ACEOF
2185if ac_fn_c_try_compile "$LINENO"; then :
2186  eval "$3=yes"
2187else
2188  eval "$3=no"
2189fi
2190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2191fi
2192eval ac_res=\$$3
2193	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2194$as_echo "$ac_res" >&6; }
2195  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2196
2197} # ac_fn_c_check_decl
2198
2199# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2200# -------------------------------------------
2201# Tests whether TYPE exists after having included INCLUDES, setting cache
2202# variable VAR accordingly.
2203ac_fn_c_check_type ()
2204{
2205  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2206  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2207$as_echo_n "checking for $2... " >&6; }
2208if eval \${$3+:} false; then :
2209  $as_echo_n "(cached) " >&6
2210else
2211  eval "$3=no"
2212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213/* end confdefs.h.  */
2214$4
2215int
2216main ()
2217{
2218if (sizeof ($2))
2219	 return 0;
2220  ;
2221  return 0;
2222}
2223_ACEOF
2224if ac_fn_c_try_compile "$LINENO"; then :
2225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226/* end confdefs.h.  */
2227$4
2228int
2229main ()
2230{
2231if (sizeof (($2)))
2232	    return 0;
2233  ;
2234  return 0;
2235}
2236_ACEOF
2237if ac_fn_c_try_compile "$LINENO"; then :
2238
2239else
2240  eval "$3=yes"
2241fi
2242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243fi
2244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245fi
2246eval ac_res=\$$3
2247	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2248$as_echo "$ac_res" >&6; }
2249  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2250
2251} # ac_fn_c_check_type
2252
2253# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2254# ----------------------------------------------------
2255# Tries to find if the field MEMBER exists in type AGGR, after including
2256# INCLUDES, setting cache variable VAR accordingly.
2257ac_fn_c_check_member ()
2258{
2259  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2260  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2261$as_echo_n "checking for $2.$3... " >&6; }
2262if eval \${$4+:} false; then :
2263  $as_echo_n "(cached) " >&6
2264else
2265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266/* end confdefs.h.  */
2267$5
2268int
2269main ()
2270{
2271static $2 ac_aggr;
2272if (ac_aggr.$3)
2273return 0;
2274  ;
2275  return 0;
2276}
2277_ACEOF
2278if ac_fn_c_try_compile "$LINENO"; then :
2279  eval "$4=yes"
2280else
2281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282/* end confdefs.h.  */
2283$5
2284int
2285main ()
2286{
2287static $2 ac_aggr;
2288if (sizeof ac_aggr.$3)
2289return 0;
2290  ;
2291  return 0;
2292}
2293_ACEOF
2294if ac_fn_c_try_compile "$LINENO"; then :
2295  eval "$4=yes"
2296else
2297  eval "$4=no"
2298fi
2299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2300fi
2301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2302fi
2303eval ac_res=\$$4
2304	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2305$as_echo "$ac_res" >&6; }
2306  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2307
2308} # ac_fn_c_check_member
2309cat >config.log <<_ACEOF
2310This file contains any messages produced by compilers while
2311running configure, to aid debugging if configure makes a mistake.
2312
2313It was created by xdm $as_me 1.1.12, which was
2314generated by GNU Autoconf 2.69.  Invocation command line was
2315
2316  $ $0 $@
2317
2318_ACEOF
2319exec 5>>config.log
2320{
2321cat <<_ASUNAME
2322## --------- ##
2323## Platform. ##
2324## --------- ##
2325
2326hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2327uname -m = `(uname -m) 2>/dev/null || echo unknown`
2328uname -r = `(uname -r) 2>/dev/null || echo unknown`
2329uname -s = `(uname -s) 2>/dev/null || echo unknown`
2330uname -v = `(uname -v) 2>/dev/null || echo unknown`
2331
2332/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2333/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2334
2335/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2336/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2337/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2338/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2339/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2340/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2341/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2342
2343_ASUNAME
2344
2345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346for as_dir in $PATH
2347do
2348  IFS=$as_save_IFS
2349  test -z "$as_dir" && as_dir=.
2350    $as_echo "PATH: $as_dir"
2351  done
2352IFS=$as_save_IFS
2353
2354} >&5
2355
2356cat >&5 <<_ACEOF
2357
2358
2359## ----------- ##
2360## Core tests. ##
2361## ----------- ##
2362
2363_ACEOF
2364
2365
2366# Keep a trace of the command line.
2367# Strip out --no-create and --no-recursion so they do not pile up.
2368# Strip out --silent because we don't want to record it for future runs.
2369# Also quote any args containing shell meta-characters.
2370# Make two passes to allow for proper duplicate-argument suppression.
2371ac_configure_args=
2372ac_configure_args0=
2373ac_configure_args1=
2374ac_must_keep_next=false
2375for ac_pass in 1 2
2376do
2377  for ac_arg
2378  do
2379    case $ac_arg in
2380    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2381    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2382    | -silent | --silent | --silen | --sile | --sil)
2383      continue ;;
2384    *\'*)
2385      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2386    esac
2387    case $ac_pass in
2388    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2389    2)
2390      as_fn_append ac_configure_args1 " '$ac_arg'"
2391      if test $ac_must_keep_next = true; then
2392	ac_must_keep_next=false # Got value, back to normal.
2393      else
2394	case $ac_arg in
2395	  *=* | --config-cache | -C | -disable-* | --disable-* \
2396	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2397	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2398	  | -with-* | --with-* | -without-* | --without-* | --x)
2399	    case "$ac_configure_args0 " in
2400	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2401	    esac
2402	    ;;
2403	  -* ) ac_must_keep_next=true ;;
2404	esac
2405      fi
2406      as_fn_append ac_configure_args " '$ac_arg'"
2407      ;;
2408    esac
2409  done
2410done
2411{ ac_configure_args0=; unset ac_configure_args0;}
2412{ ac_configure_args1=; unset ac_configure_args1;}
2413
2414# When interrupted or exit'd, cleanup temporary files, and complete
2415# config.log.  We remove comments because anyway the quotes in there
2416# would cause problems or look ugly.
2417# WARNING: Use '\'' to represent an apostrophe within the trap.
2418# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2419trap 'exit_status=$?
2420  # Save into config.log some information that might help in debugging.
2421  {
2422    echo
2423
2424    $as_echo "## ---------------- ##
2425## Cache variables. ##
2426## ---------------- ##"
2427    echo
2428    # The following way of writing the cache mishandles newlines in values,
2429(
2430  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2431    eval ac_val=\$$ac_var
2432    case $ac_val in #(
2433    *${as_nl}*)
2434      case $ac_var in #(
2435      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2436$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2437      esac
2438      case $ac_var in #(
2439      _ | IFS | as_nl) ;; #(
2440      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2441      *) { eval $ac_var=; unset $ac_var;} ;;
2442      esac ;;
2443    esac
2444  done
2445  (set) 2>&1 |
2446    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2447    *${as_nl}ac_space=\ *)
2448      sed -n \
2449	"s/'\''/'\''\\\\'\'''\''/g;
2450	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2451      ;; #(
2452    *)
2453      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2454      ;;
2455    esac |
2456    sort
2457)
2458    echo
2459
2460    $as_echo "## ----------------- ##
2461## Output variables. ##
2462## ----------------- ##"
2463    echo
2464    for ac_var in $ac_subst_vars
2465    do
2466      eval ac_val=\$$ac_var
2467      case $ac_val in
2468      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2469      esac
2470      $as_echo "$ac_var='\''$ac_val'\''"
2471    done | sort
2472    echo
2473
2474    if test -n "$ac_subst_files"; then
2475      $as_echo "## ------------------- ##
2476## File substitutions. ##
2477## ------------------- ##"
2478      echo
2479      for ac_var in $ac_subst_files
2480      do
2481	eval ac_val=\$$ac_var
2482	case $ac_val in
2483	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2484	esac
2485	$as_echo "$ac_var='\''$ac_val'\''"
2486      done | sort
2487      echo
2488    fi
2489
2490    if test -s confdefs.h; then
2491      $as_echo "## ----------- ##
2492## confdefs.h. ##
2493## ----------- ##"
2494      echo
2495      cat confdefs.h
2496      echo
2497    fi
2498    test "$ac_signal" != 0 &&
2499      $as_echo "$as_me: caught signal $ac_signal"
2500    $as_echo "$as_me: exit $exit_status"
2501  } >&5
2502  rm -f core *.core core.conftest.* &&
2503    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2504    exit $exit_status
2505' 0
2506for ac_signal in 1 2 13 15; do
2507  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2508done
2509ac_signal=0
2510
2511# confdefs.h avoids OS command line length limits that DEFS can exceed.
2512rm -f -r conftest* confdefs.h
2513
2514$as_echo "/* confdefs.h */" > confdefs.h
2515
2516# Predefined preprocessor variables.
2517
2518cat >>confdefs.h <<_ACEOF
2519#define PACKAGE_NAME "$PACKAGE_NAME"
2520_ACEOF
2521
2522cat >>confdefs.h <<_ACEOF
2523#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2524_ACEOF
2525
2526cat >>confdefs.h <<_ACEOF
2527#define PACKAGE_VERSION "$PACKAGE_VERSION"
2528_ACEOF
2529
2530cat >>confdefs.h <<_ACEOF
2531#define PACKAGE_STRING "$PACKAGE_STRING"
2532_ACEOF
2533
2534cat >>confdefs.h <<_ACEOF
2535#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2536_ACEOF
2537
2538cat >>confdefs.h <<_ACEOF
2539#define PACKAGE_URL "$PACKAGE_URL"
2540_ACEOF
2541
2542
2543# Let the site file select an alternate cache file if it wants to.
2544# Prefer an explicitly selected file to automatically selected ones.
2545ac_site_file1=NONE
2546ac_site_file2=NONE
2547if test -n "$CONFIG_SITE"; then
2548  # We do not want a PATH search for config.site.
2549  case $CONFIG_SITE in #((
2550    -*)  ac_site_file1=./$CONFIG_SITE;;
2551    */*) ac_site_file1=$CONFIG_SITE;;
2552    *)   ac_site_file1=./$CONFIG_SITE;;
2553  esac
2554elif test "x$prefix" != xNONE; then
2555  ac_site_file1=$prefix/share/config.site
2556  ac_site_file2=$prefix/etc/config.site
2557else
2558  ac_site_file1=$ac_default_prefix/share/config.site
2559  ac_site_file2=$ac_default_prefix/etc/config.site
2560fi
2561for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2562do
2563  test "x$ac_site_file" = xNONE && continue
2564  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2565    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2566$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2567    sed 's/^/| /' "$ac_site_file" >&5
2568    . "$ac_site_file" \
2569      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2570$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2571as_fn_error $? "failed to load site script $ac_site_file
2572See \`config.log' for more details" "$LINENO" 5; }
2573  fi
2574done
2575
2576if test -r "$cache_file"; then
2577  # Some versions of bash will fail to source /dev/null (special files
2578  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2579  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2580    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2581$as_echo "$as_me: loading cache $cache_file" >&6;}
2582    case $cache_file in
2583      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2584      *)                      . "./$cache_file";;
2585    esac
2586  fi
2587else
2588  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2589$as_echo "$as_me: creating cache $cache_file" >&6;}
2590  >$cache_file
2591fi
2592
2593# Check that the precious variables saved in the cache have kept the same
2594# value.
2595ac_cache_corrupted=false
2596for ac_var in $ac_precious_vars; do
2597  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2598  eval ac_new_set=\$ac_env_${ac_var}_set
2599  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2600  eval ac_new_val=\$ac_env_${ac_var}_value
2601  case $ac_old_set,$ac_new_set in
2602    set,)
2603      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2604$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2605      ac_cache_corrupted=: ;;
2606    ,set)
2607      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2608$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2609      ac_cache_corrupted=: ;;
2610    ,);;
2611    *)
2612      if test "x$ac_old_val" != "x$ac_new_val"; then
2613	# differences in whitespace do not lead to failure.
2614	ac_old_val_w=`echo x $ac_old_val`
2615	ac_new_val_w=`echo x $ac_new_val`
2616	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2617	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2618$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2619	  ac_cache_corrupted=:
2620	else
2621	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2622$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2623	  eval $ac_var=\$ac_old_val
2624	fi
2625	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2626$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2627	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2628$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2629      fi;;
2630  esac
2631  # Pass precious variables to config.status.
2632  if test "$ac_new_set" = set; then
2633    case $ac_new_val in
2634    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2635    *) ac_arg=$ac_var=$ac_new_val ;;
2636    esac
2637    case " $ac_configure_args " in
2638      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2639      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2640    esac
2641  fi
2642done
2643if $ac_cache_corrupted; then
2644  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2645$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2646  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2647$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2648  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2649fi
2650## -------------------- ##
2651## Main body of script. ##
2652## -------------------- ##
2653
2654ac_ext=c
2655ac_cpp='$CPP $CPPFLAGS'
2656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2658ac_compiler_gnu=$ac_cv_c_compiler_gnu
2659
2660
2661ac_aux_dir=
2662for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2663  if test -f "$ac_dir/install-sh"; then
2664    ac_aux_dir=$ac_dir
2665    ac_install_sh="$ac_aux_dir/install-sh -c"
2666    break
2667  elif test -f "$ac_dir/install.sh"; then
2668    ac_aux_dir=$ac_dir
2669    ac_install_sh="$ac_aux_dir/install.sh -c"
2670    break
2671  elif test -f "$ac_dir/shtool"; then
2672    ac_aux_dir=$ac_dir
2673    ac_install_sh="$ac_aux_dir/shtool install -c"
2674    break
2675  fi
2676done
2677if test -z "$ac_aux_dir"; then
2678  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2679fi
2680
2681# These three variables are undocumented and unsupported,
2682# and are intended to be withdrawn in a future Autoconf release.
2683# They can cause serious problems if a builder's source tree is in a directory
2684# whose full name contains unusual characters.
2685ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2686ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2687ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2688
2689
2690# Expand $ac_aux_dir to an absolute path.
2691am_aux_dir=`cd "$ac_aux_dir" && pwd`
2692
2693ac_ext=c
2694ac_cpp='$CPP $CPPFLAGS'
2695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2697ac_compiler_gnu=$ac_cv_c_compiler_gnu
2698if test -n "$ac_tool_prefix"; then
2699  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2700set dummy ${ac_tool_prefix}gcc; ac_word=$2
2701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2702$as_echo_n "checking for $ac_word... " >&6; }
2703if ${ac_cv_prog_CC+:} false; then :
2704  $as_echo_n "(cached) " >&6
2705else
2706  if test -n "$CC"; then
2707  ac_cv_prog_CC="$CC" # Let the user override the test.
2708else
2709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710for as_dir in $PATH
2711do
2712  IFS=$as_save_IFS
2713  test -z "$as_dir" && as_dir=.
2714    for ac_exec_ext in '' $ac_executable_extensions; do
2715  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2716    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2717    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2718    break 2
2719  fi
2720done
2721  done
2722IFS=$as_save_IFS
2723
2724fi
2725fi
2726CC=$ac_cv_prog_CC
2727if test -n "$CC"; then
2728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2729$as_echo "$CC" >&6; }
2730else
2731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2732$as_echo "no" >&6; }
2733fi
2734
2735
2736fi
2737if test -z "$ac_cv_prog_CC"; then
2738  ac_ct_CC=$CC
2739  # Extract the first word of "gcc", so it can be a program name with args.
2740set dummy gcc; ac_word=$2
2741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2742$as_echo_n "checking for $ac_word... " >&6; }
2743if ${ac_cv_prog_ac_ct_CC+:} false; then :
2744  $as_echo_n "(cached) " >&6
2745else
2746  if test -n "$ac_ct_CC"; then
2747  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2748else
2749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750for as_dir in $PATH
2751do
2752  IFS=$as_save_IFS
2753  test -z "$as_dir" && as_dir=.
2754    for ac_exec_ext in '' $ac_executable_extensions; do
2755  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2756    ac_cv_prog_ac_ct_CC="gcc"
2757    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2758    break 2
2759  fi
2760done
2761  done
2762IFS=$as_save_IFS
2763
2764fi
2765fi
2766ac_ct_CC=$ac_cv_prog_ac_ct_CC
2767if test -n "$ac_ct_CC"; then
2768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2769$as_echo "$ac_ct_CC" >&6; }
2770else
2771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2772$as_echo "no" >&6; }
2773fi
2774
2775  if test "x$ac_ct_CC" = x; then
2776    CC=""
2777  else
2778    case $cross_compiling:$ac_tool_warned in
2779yes:)
2780{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2781$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2782ac_tool_warned=yes ;;
2783esac
2784    CC=$ac_ct_CC
2785  fi
2786else
2787  CC="$ac_cv_prog_CC"
2788fi
2789
2790if test -z "$CC"; then
2791          if test -n "$ac_tool_prefix"; then
2792    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2793set dummy ${ac_tool_prefix}cc; ac_word=$2
2794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2795$as_echo_n "checking for $ac_word... " >&6; }
2796if ${ac_cv_prog_CC+:} false; then :
2797  $as_echo_n "(cached) " >&6
2798else
2799  if test -n "$CC"; then
2800  ac_cv_prog_CC="$CC" # Let the user override the test.
2801else
2802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803for as_dir in $PATH
2804do
2805  IFS=$as_save_IFS
2806  test -z "$as_dir" && as_dir=.
2807    for ac_exec_ext in '' $ac_executable_extensions; do
2808  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2809    ac_cv_prog_CC="${ac_tool_prefix}cc"
2810    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2811    break 2
2812  fi
2813done
2814  done
2815IFS=$as_save_IFS
2816
2817fi
2818fi
2819CC=$ac_cv_prog_CC
2820if test -n "$CC"; then
2821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2822$as_echo "$CC" >&6; }
2823else
2824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825$as_echo "no" >&6; }
2826fi
2827
2828
2829  fi
2830fi
2831if test -z "$CC"; then
2832  # Extract the first word of "cc", so it can be a program name with args.
2833set dummy cc; ac_word=$2
2834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2835$as_echo_n "checking for $ac_word... " >&6; }
2836if ${ac_cv_prog_CC+:} false; then :
2837  $as_echo_n "(cached) " >&6
2838else
2839  if test -n "$CC"; then
2840  ac_cv_prog_CC="$CC" # Let the user override the test.
2841else
2842  ac_prog_rejected=no
2843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844for as_dir in $PATH
2845do
2846  IFS=$as_save_IFS
2847  test -z "$as_dir" && as_dir=.
2848    for ac_exec_ext in '' $ac_executable_extensions; do
2849  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2850    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2851       ac_prog_rejected=yes
2852       continue
2853     fi
2854    ac_cv_prog_CC="cc"
2855    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2856    break 2
2857  fi
2858done
2859  done
2860IFS=$as_save_IFS
2861
2862if test $ac_prog_rejected = yes; then
2863  # We found a bogon in the path, so make sure we never use it.
2864  set dummy $ac_cv_prog_CC
2865  shift
2866  if test $# != 0; then
2867    # We chose a different compiler from the bogus one.
2868    # However, it has the same basename, so the bogon will be chosen
2869    # first if we set CC to just the basename; use the full file name.
2870    shift
2871    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2872  fi
2873fi
2874fi
2875fi
2876CC=$ac_cv_prog_CC
2877if test -n "$CC"; then
2878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2879$as_echo "$CC" >&6; }
2880else
2881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882$as_echo "no" >&6; }
2883fi
2884
2885
2886fi
2887if test -z "$CC"; then
2888  if test -n "$ac_tool_prefix"; then
2889  for ac_prog in cl.exe
2890  do
2891    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2892set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2894$as_echo_n "checking for $ac_word... " >&6; }
2895if ${ac_cv_prog_CC+:} false; then :
2896  $as_echo_n "(cached) " >&6
2897else
2898  if test -n "$CC"; then
2899  ac_cv_prog_CC="$CC" # Let the user override the test.
2900else
2901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902for as_dir in $PATH
2903do
2904  IFS=$as_save_IFS
2905  test -z "$as_dir" && as_dir=.
2906    for ac_exec_ext in '' $ac_executable_extensions; do
2907  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2908    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2909    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2910    break 2
2911  fi
2912done
2913  done
2914IFS=$as_save_IFS
2915
2916fi
2917fi
2918CC=$ac_cv_prog_CC
2919if test -n "$CC"; then
2920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2921$as_echo "$CC" >&6; }
2922else
2923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2924$as_echo "no" >&6; }
2925fi
2926
2927
2928    test -n "$CC" && break
2929  done
2930fi
2931if test -z "$CC"; then
2932  ac_ct_CC=$CC
2933  for ac_prog in cl.exe
2934do
2935  # Extract the first word of "$ac_prog", so it can be a program name with args.
2936set dummy $ac_prog; ac_word=$2
2937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2938$as_echo_n "checking for $ac_word... " >&6; }
2939if ${ac_cv_prog_ac_ct_CC+:} false; then :
2940  $as_echo_n "(cached) " >&6
2941else
2942  if test -n "$ac_ct_CC"; then
2943  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2944else
2945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946for as_dir in $PATH
2947do
2948  IFS=$as_save_IFS
2949  test -z "$as_dir" && as_dir=.
2950    for ac_exec_ext in '' $ac_executable_extensions; do
2951  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2952    ac_cv_prog_ac_ct_CC="$ac_prog"
2953    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2954    break 2
2955  fi
2956done
2957  done
2958IFS=$as_save_IFS
2959
2960fi
2961fi
2962ac_ct_CC=$ac_cv_prog_ac_ct_CC
2963if test -n "$ac_ct_CC"; then
2964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2965$as_echo "$ac_ct_CC" >&6; }
2966else
2967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968$as_echo "no" >&6; }
2969fi
2970
2971
2972  test -n "$ac_ct_CC" && break
2973done
2974
2975  if test "x$ac_ct_CC" = x; then
2976    CC=""
2977  else
2978    case $cross_compiling:$ac_tool_warned in
2979yes:)
2980{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2981$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2982ac_tool_warned=yes ;;
2983esac
2984    CC=$ac_ct_CC
2985  fi
2986fi
2987
2988fi
2989
2990
2991test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2992$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2993as_fn_error $? "no acceptable C compiler found in \$PATH
2994See \`config.log' for more details" "$LINENO" 5; }
2995
2996# Provide some information about the compiler.
2997$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2998set X $ac_compile
2999ac_compiler=$2
3000for ac_option in --version -v -V -qversion; do
3001  { { ac_try="$ac_compiler $ac_option >&5"
3002case "(($ac_try" in
3003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004  *) ac_try_echo=$ac_try;;
3005esac
3006eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3007$as_echo "$ac_try_echo"; } >&5
3008  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3009  ac_status=$?
3010  if test -s conftest.err; then
3011    sed '10a\
3012... rest of stderr output deleted ...
3013         10q' conftest.err >conftest.er1
3014    cat conftest.er1 >&5
3015  fi
3016  rm -f conftest.er1 conftest.err
3017  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3018  test $ac_status = 0; }
3019done
3020
3021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3022/* end confdefs.h.  */
3023
3024int
3025main ()
3026{
3027
3028  ;
3029  return 0;
3030}
3031_ACEOF
3032ac_clean_files_save=$ac_clean_files
3033ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3034# Try to create an executable without -o first, disregard a.out.
3035# It will help us diagnose broken compilers, and finding out an intuition
3036# of exeext.
3037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3038$as_echo_n "checking whether the C compiler works... " >&6; }
3039ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3040
3041# The possible output files:
3042ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3043
3044ac_rmfiles=
3045for ac_file in $ac_files
3046do
3047  case $ac_file in
3048    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3049    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3050  esac
3051done
3052rm -f $ac_rmfiles
3053
3054if { { ac_try="$ac_link_default"
3055case "(($ac_try" in
3056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057  *) ac_try_echo=$ac_try;;
3058esac
3059eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3060$as_echo "$ac_try_echo"; } >&5
3061  (eval "$ac_link_default") 2>&5
3062  ac_status=$?
3063  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3064  test $ac_status = 0; }; then :
3065  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3066# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3067# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3068# so that the user can short-circuit this test for compilers unknown to
3069# Autoconf.
3070for ac_file in $ac_files ''
3071do
3072  test -f "$ac_file" || continue
3073  case $ac_file in
3074    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3075	;;
3076    [ab].out )
3077	# We found the default executable, but exeext='' is most
3078	# certainly right.
3079	break;;
3080    *.* )
3081	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3082	then :; else
3083	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3084	fi
3085	# We set ac_cv_exeext here because the later test for it is not
3086	# safe: cross compilers may not add the suffix if given an `-o'
3087	# argument, so we may need to know it at that point already.
3088	# Even if this section looks crufty: it has the advantage of
3089	# actually working.
3090	break;;
3091    * )
3092	break;;
3093  esac
3094done
3095test "$ac_cv_exeext" = no && ac_cv_exeext=
3096
3097else
3098  ac_file=''
3099fi
3100if test -z "$ac_file"; then :
3101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102$as_echo "no" >&6; }
3103$as_echo "$as_me: failed program was:" >&5
3104sed 's/^/| /' conftest.$ac_ext >&5
3105
3106{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3107$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3108as_fn_error 77 "C compiler cannot create executables
3109See \`config.log' for more details" "$LINENO" 5; }
3110else
3111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3112$as_echo "yes" >&6; }
3113fi
3114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3115$as_echo_n "checking for C compiler default output file name... " >&6; }
3116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3117$as_echo "$ac_file" >&6; }
3118ac_exeext=$ac_cv_exeext
3119
3120rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3121ac_clean_files=$ac_clean_files_save
3122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3123$as_echo_n "checking for suffix of executables... " >&6; }
3124if { { ac_try="$ac_link"
3125case "(($ac_try" in
3126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127  *) ac_try_echo=$ac_try;;
3128esac
3129eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3130$as_echo "$ac_try_echo"; } >&5
3131  (eval "$ac_link") 2>&5
3132  ac_status=$?
3133  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3134  test $ac_status = 0; }; then :
3135  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3136# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3137# work properly (i.e., refer to `conftest.exe'), while it won't with
3138# `rm'.
3139for ac_file in conftest.exe conftest conftest.*; do
3140  test -f "$ac_file" || continue
3141  case $ac_file in
3142    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3143    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3144	  break;;
3145    * ) break;;
3146  esac
3147done
3148else
3149  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3150$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3151as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3152See \`config.log' for more details" "$LINENO" 5; }
3153fi
3154rm -f conftest conftest$ac_cv_exeext
3155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3156$as_echo "$ac_cv_exeext" >&6; }
3157
3158rm -f conftest.$ac_ext
3159EXEEXT=$ac_cv_exeext
3160ac_exeext=$EXEEXT
3161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3162/* end confdefs.h.  */
3163#include <stdio.h>
3164int
3165main ()
3166{
3167FILE *f = fopen ("conftest.out", "w");
3168 return ferror (f) || fclose (f) != 0;
3169
3170  ;
3171  return 0;
3172}
3173_ACEOF
3174ac_clean_files="$ac_clean_files conftest.out"
3175# Check that the compiler produces executables we can run.  If not, either
3176# the compiler is broken, or we cross compile.
3177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3178$as_echo_n "checking whether we are cross compiling... " >&6; }
3179if test "$cross_compiling" != yes; then
3180  { { ac_try="$ac_link"
3181case "(($ac_try" in
3182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183  *) ac_try_echo=$ac_try;;
3184esac
3185eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3186$as_echo "$ac_try_echo"; } >&5
3187  (eval "$ac_link") 2>&5
3188  ac_status=$?
3189  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3190  test $ac_status = 0; }
3191  if { ac_try='./conftest$ac_cv_exeext'
3192  { { case "(($ac_try" in
3193  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194  *) ac_try_echo=$ac_try;;
3195esac
3196eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3197$as_echo "$ac_try_echo"; } >&5
3198  (eval "$ac_try") 2>&5
3199  ac_status=$?
3200  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3201  test $ac_status = 0; }; }; then
3202    cross_compiling=no
3203  else
3204    if test "$cross_compiling" = maybe; then
3205	cross_compiling=yes
3206    else
3207	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3208$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3209as_fn_error $? "cannot run C compiled programs.
3210If you meant to cross compile, use \`--host'.
3211See \`config.log' for more details" "$LINENO" 5; }
3212    fi
3213  fi
3214fi
3215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3216$as_echo "$cross_compiling" >&6; }
3217
3218rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3219ac_clean_files=$ac_clean_files_save
3220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3221$as_echo_n "checking for suffix of object files... " >&6; }
3222if ${ac_cv_objext+:} false; then :
3223  $as_echo_n "(cached) " >&6
3224else
3225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226/* end confdefs.h.  */
3227
3228int
3229main ()
3230{
3231
3232  ;
3233  return 0;
3234}
3235_ACEOF
3236rm -f conftest.o conftest.obj
3237if { { ac_try="$ac_compile"
3238case "(($ac_try" in
3239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240  *) ac_try_echo=$ac_try;;
3241esac
3242eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3243$as_echo "$ac_try_echo"; } >&5
3244  (eval "$ac_compile") 2>&5
3245  ac_status=$?
3246  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3247  test $ac_status = 0; }; then :
3248  for ac_file in conftest.o conftest.obj conftest.*; do
3249  test -f "$ac_file" || continue;
3250  case $ac_file in
3251    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3252    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3253       break;;
3254  esac
3255done
3256else
3257  $as_echo "$as_me: failed program was:" >&5
3258sed 's/^/| /' conftest.$ac_ext >&5
3259
3260{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3261$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3262as_fn_error $? "cannot compute suffix of object files: cannot compile
3263See \`config.log' for more details" "$LINENO" 5; }
3264fi
3265rm -f conftest.$ac_cv_objext conftest.$ac_ext
3266fi
3267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3268$as_echo "$ac_cv_objext" >&6; }
3269OBJEXT=$ac_cv_objext
3270ac_objext=$OBJEXT
3271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3272$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3273if ${ac_cv_c_compiler_gnu+:} false; then :
3274  $as_echo_n "(cached) " >&6
3275else
3276  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3277/* end confdefs.h.  */
3278
3279int
3280main ()
3281{
3282#ifndef __GNUC__
3283       choke me
3284#endif
3285
3286  ;
3287  return 0;
3288}
3289_ACEOF
3290if ac_fn_c_try_compile "$LINENO"; then :
3291  ac_compiler_gnu=yes
3292else
3293  ac_compiler_gnu=no
3294fi
3295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3296ac_cv_c_compiler_gnu=$ac_compiler_gnu
3297
3298fi
3299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3300$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3301if test $ac_compiler_gnu = yes; then
3302  GCC=yes
3303else
3304  GCC=
3305fi
3306ac_test_CFLAGS=${CFLAGS+set}
3307ac_save_CFLAGS=$CFLAGS
3308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3309$as_echo_n "checking whether $CC accepts -g... " >&6; }
3310if ${ac_cv_prog_cc_g+:} false; then :
3311  $as_echo_n "(cached) " >&6
3312else
3313  ac_save_c_werror_flag=$ac_c_werror_flag
3314   ac_c_werror_flag=yes
3315   ac_cv_prog_cc_g=no
3316   CFLAGS="-g"
3317   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3318/* end confdefs.h.  */
3319
3320int
3321main ()
3322{
3323
3324  ;
3325  return 0;
3326}
3327_ACEOF
3328if ac_fn_c_try_compile "$LINENO"; then :
3329  ac_cv_prog_cc_g=yes
3330else
3331  CFLAGS=""
3332      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3333/* end confdefs.h.  */
3334
3335int
3336main ()
3337{
3338
3339  ;
3340  return 0;
3341}
3342_ACEOF
3343if ac_fn_c_try_compile "$LINENO"; then :
3344
3345else
3346  ac_c_werror_flag=$ac_save_c_werror_flag
3347	 CFLAGS="-g"
3348	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3349/* end confdefs.h.  */
3350
3351int
3352main ()
3353{
3354
3355  ;
3356  return 0;
3357}
3358_ACEOF
3359if ac_fn_c_try_compile "$LINENO"; then :
3360  ac_cv_prog_cc_g=yes
3361fi
3362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3363fi
3364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3365fi
3366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3367   ac_c_werror_flag=$ac_save_c_werror_flag
3368fi
3369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3370$as_echo "$ac_cv_prog_cc_g" >&6; }
3371if test "$ac_test_CFLAGS" = set; then
3372  CFLAGS=$ac_save_CFLAGS
3373elif test $ac_cv_prog_cc_g = yes; then
3374  if test "$GCC" = yes; then
3375    CFLAGS="-g -O2"
3376  else
3377    CFLAGS="-g"
3378  fi
3379else
3380  if test "$GCC" = yes; then
3381    CFLAGS="-O2"
3382  else
3383    CFLAGS=
3384  fi
3385fi
3386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3387$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3388if ${ac_cv_prog_cc_c89+:} false; then :
3389  $as_echo_n "(cached) " >&6
3390else
3391  ac_cv_prog_cc_c89=no
3392ac_save_CC=$CC
3393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394/* end confdefs.h.  */
3395#include <stdarg.h>
3396#include <stdio.h>
3397struct stat;
3398/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3399struct buf { int x; };
3400FILE * (*rcsopen) (struct buf *, struct stat *, int);
3401static char *e (p, i)
3402     char **p;
3403     int i;
3404{
3405  return p[i];
3406}
3407static char *f (char * (*g) (char **, int), char **p, ...)
3408{
3409  char *s;
3410  va_list v;
3411  va_start (v,p);
3412  s = g (p, va_arg (v,int));
3413  va_end (v);
3414  return s;
3415}
3416
3417/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3418   function prototypes and stuff, but not '\xHH' hex character constants.
3419   These don't provoke an error unfortunately, instead are silently treated
3420   as 'x'.  The following induces an error, until -std is added to get
3421   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3422   array size at least.  It's necessary to write '\x00'==0 to get something
3423   that's true only with -std.  */
3424int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3425
3426/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3427   inside strings and character constants.  */
3428#define FOO(x) 'x'
3429int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3430
3431int test (int i, double x);
3432struct s1 {int (*f) (int a);};
3433struct s2 {int (*f) (double a);};
3434int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3435int argc;
3436char **argv;
3437int
3438main ()
3439{
3440return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3441  ;
3442  return 0;
3443}
3444_ACEOF
3445for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3446	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3447do
3448  CC="$ac_save_CC $ac_arg"
3449  if ac_fn_c_try_compile "$LINENO"; then :
3450  ac_cv_prog_cc_c89=$ac_arg
3451fi
3452rm -f core conftest.err conftest.$ac_objext
3453  test "x$ac_cv_prog_cc_c89" != "xno" && break
3454done
3455rm -f conftest.$ac_ext
3456CC=$ac_save_CC
3457
3458fi
3459# AC_CACHE_VAL
3460case "x$ac_cv_prog_cc_c89" in
3461  x)
3462    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3463$as_echo "none needed" >&6; } ;;
3464  xno)
3465    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3466$as_echo "unsupported" >&6; } ;;
3467  *)
3468    CC="$CC $ac_cv_prog_cc_c89"
3469    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3470$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3471esac
3472if test "x$ac_cv_prog_cc_c89" != xno; then :
3473
3474fi
3475
3476ac_ext=c
3477ac_cpp='$CPP $CPPFLAGS'
3478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3480ac_compiler_gnu=$ac_cv_c_compiler_gnu
3481
3482ac_ext=c
3483ac_cpp='$CPP $CPPFLAGS'
3484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3486ac_compiler_gnu=$ac_cv_c_compiler_gnu
3487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3488$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3489if ${am_cv_prog_cc_c_o+:} false; then :
3490  $as_echo_n "(cached) " >&6
3491else
3492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3493/* end confdefs.h.  */
3494
3495int
3496main ()
3497{
3498
3499  ;
3500  return 0;
3501}
3502_ACEOF
3503  # Make sure it works both with $CC and with simple cc.
3504  # Following AC_PROG_CC_C_O, we do the test twice because some
3505  # compilers refuse to overwrite an existing .o file with -o,
3506  # though they will create one.
3507  am_cv_prog_cc_c_o=yes
3508  for am_i in 1 2; do
3509    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3510   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3511   ac_status=$?
3512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513   (exit $ac_status); } \
3514         && test -f conftest2.$ac_objext; then
3515      : OK
3516    else
3517      am_cv_prog_cc_c_o=no
3518      break
3519    fi
3520  done
3521  rm -f core conftest*
3522  unset am_i
3523fi
3524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3525$as_echo "$am_cv_prog_cc_c_o" >&6; }
3526if test "$am_cv_prog_cc_c_o" != yes; then
3527   # Losing compiler, so override with the script.
3528   # FIXME: It is wrong to rewrite CC.
3529   # But if we don't then we get into trouble of one sort or another.
3530   # A longer-term fix would be to have automake use am__CC in this case,
3531   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3532   CC="$am_aux_dir/compile $CC"
3533fi
3534ac_ext=c
3535ac_cpp='$CPP $CPPFLAGS'
3536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538ac_compiler_gnu=$ac_cv_c_compiler_gnu
3539
3540
3541
3542ac_ext=c
3543ac_cpp='$CPP $CPPFLAGS'
3544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3546ac_compiler_gnu=$ac_cv_c_compiler_gnu
3547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3548$as_echo_n "checking how to run the C preprocessor... " >&6; }
3549# On Suns, sometimes $CPP names a directory.
3550if test -n "$CPP" && test -d "$CPP"; then
3551  CPP=
3552fi
3553if test -z "$CPP"; then
3554  if ${ac_cv_prog_CPP+:} false; then :
3555  $as_echo_n "(cached) " >&6
3556else
3557      # Double quotes because CPP needs to be expanded
3558    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3559    do
3560      ac_preproc_ok=false
3561for ac_c_preproc_warn_flag in '' yes
3562do
3563  # Use a header file that comes with gcc, so configuring glibc
3564  # with a fresh cross-compiler works.
3565  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3566  # <limits.h> exists even on freestanding compilers.
3567  # On the NeXT, cc -E runs the code through the compiler's parser,
3568  # not just through cpp. "Syntax error" is here to catch this case.
3569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570/* end confdefs.h.  */
3571#ifdef __STDC__
3572# include <limits.h>
3573#else
3574# include <assert.h>
3575#endif
3576		     Syntax error
3577_ACEOF
3578if ac_fn_c_try_cpp "$LINENO"; then :
3579
3580else
3581  # Broken: fails on valid input.
3582continue
3583fi
3584rm -f conftest.err conftest.i conftest.$ac_ext
3585
3586  # OK, works on sane cases.  Now check whether nonexistent headers
3587  # can be detected and how.
3588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589/* end confdefs.h.  */
3590#include <ac_nonexistent.h>
3591_ACEOF
3592if ac_fn_c_try_cpp "$LINENO"; then :
3593  # Broken: success on invalid input.
3594continue
3595else
3596  # Passes both tests.
3597ac_preproc_ok=:
3598break
3599fi
3600rm -f conftest.err conftest.i conftest.$ac_ext
3601
3602done
3603# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3604rm -f conftest.i conftest.err conftest.$ac_ext
3605if $ac_preproc_ok; then :
3606  break
3607fi
3608
3609    done
3610    ac_cv_prog_CPP=$CPP
3611
3612fi
3613  CPP=$ac_cv_prog_CPP
3614else
3615  ac_cv_prog_CPP=$CPP
3616fi
3617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3618$as_echo "$CPP" >&6; }
3619ac_preproc_ok=false
3620for ac_c_preproc_warn_flag in '' yes
3621do
3622  # Use a header file that comes with gcc, so configuring glibc
3623  # with a fresh cross-compiler works.
3624  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3625  # <limits.h> exists even on freestanding compilers.
3626  # On the NeXT, cc -E runs the code through the compiler's parser,
3627  # not just through cpp. "Syntax error" is here to catch this case.
3628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629/* end confdefs.h.  */
3630#ifdef __STDC__
3631# include <limits.h>
3632#else
3633# include <assert.h>
3634#endif
3635		     Syntax error
3636_ACEOF
3637if ac_fn_c_try_cpp "$LINENO"; then :
3638
3639else
3640  # Broken: fails on valid input.
3641continue
3642fi
3643rm -f conftest.err conftest.i conftest.$ac_ext
3644
3645  # OK, works on sane cases.  Now check whether nonexistent headers
3646  # can be detected and how.
3647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648/* end confdefs.h.  */
3649#include <ac_nonexistent.h>
3650_ACEOF
3651if ac_fn_c_try_cpp "$LINENO"; then :
3652  # Broken: success on invalid input.
3653continue
3654else
3655  # Passes both tests.
3656ac_preproc_ok=:
3657break
3658fi
3659rm -f conftest.err conftest.i conftest.$ac_ext
3660
3661done
3662# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3663rm -f conftest.i conftest.err conftest.$ac_ext
3664if $ac_preproc_ok; then :
3665
3666else
3667  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3668$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3669as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3670See \`config.log' for more details" "$LINENO" 5; }
3671fi
3672
3673ac_ext=c
3674ac_cpp='$CPP $CPPFLAGS'
3675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3677ac_compiler_gnu=$ac_cv_c_compiler_gnu
3678
3679
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3681$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3682if ${ac_cv_path_GREP+:} false; then :
3683  $as_echo_n "(cached) " >&6
3684else
3685  if test -z "$GREP"; then
3686  ac_path_GREP_found=false
3687  # Loop through the user's path and test for each of PROGNAME-LIST
3688  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3690do
3691  IFS=$as_save_IFS
3692  test -z "$as_dir" && as_dir=.
3693    for ac_prog in grep ggrep; do
3694    for ac_exec_ext in '' $ac_executable_extensions; do
3695      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3696      as_fn_executable_p "$ac_path_GREP" || continue
3697# Check for GNU ac_path_GREP and select it if it is found.
3698  # Check for GNU $ac_path_GREP
3699case `"$ac_path_GREP" --version 2>&1` in
3700*GNU*)
3701  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3702*)
3703  ac_count=0
3704  $as_echo_n 0123456789 >"conftest.in"
3705  while :
3706  do
3707    cat "conftest.in" "conftest.in" >"conftest.tmp"
3708    mv "conftest.tmp" "conftest.in"
3709    cp "conftest.in" "conftest.nl"
3710    $as_echo 'GREP' >> "conftest.nl"
3711    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3712    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3713    as_fn_arith $ac_count + 1 && ac_count=$as_val
3714    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3715      # Best one so far, save it but keep looking for a better one
3716      ac_cv_path_GREP="$ac_path_GREP"
3717      ac_path_GREP_max=$ac_count
3718    fi
3719    # 10*(2^10) chars as input seems more than enough
3720    test $ac_count -gt 10 && break
3721  done
3722  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3723esac
3724
3725      $ac_path_GREP_found && break 3
3726    done
3727  done
3728  done
3729IFS=$as_save_IFS
3730  if test -z "$ac_cv_path_GREP"; then
3731    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3732  fi
3733else
3734  ac_cv_path_GREP=$GREP
3735fi
3736
3737fi
3738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3739$as_echo "$ac_cv_path_GREP" >&6; }
3740 GREP="$ac_cv_path_GREP"
3741
3742
3743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3744$as_echo_n "checking for egrep... " >&6; }
3745if ${ac_cv_path_EGREP+:} false; then :
3746  $as_echo_n "(cached) " >&6
3747else
3748  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3749   then ac_cv_path_EGREP="$GREP -E"
3750   else
3751     if test -z "$EGREP"; then
3752  ac_path_EGREP_found=false
3753  # Loop through the user's path and test for each of PROGNAME-LIST
3754  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3756do
3757  IFS=$as_save_IFS
3758  test -z "$as_dir" && as_dir=.
3759    for ac_prog in egrep; do
3760    for ac_exec_ext in '' $ac_executable_extensions; do
3761      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3762      as_fn_executable_p "$ac_path_EGREP" || continue
3763# Check for GNU ac_path_EGREP and select it if it is found.
3764  # Check for GNU $ac_path_EGREP
3765case `"$ac_path_EGREP" --version 2>&1` in
3766*GNU*)
3767  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3768*)
3769  ac_count=0
3770  $as_echo_n 0123456789 >"conftest.in"
3771  while :
3772  do
3773    cat "conftest.in" "conftest.in" >"conftest.tmp"
3774    mv "conftest.tmp" "conftest.in"
3775    cp "conftest.in" "conftest.nl"
3776    $as_echo 'EGREP' >> "conftest.nl"
3777    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3778    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3779    as_fn_arith $ac_count + 1 && ac_count=$as_val
3780    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3781      # Best one so far, save it but keep looking for a better one
3782      ac_cv_path_EGREP="$ac_path_EGREP"
3783      ac_path_EGREP_max=$ac_count
3784    fi
3785    # 10*(2^10) chars as input seems more than enough
3786    test $ac_count -gt 10 && break
3787  done
3788  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3789esac
3790
3791      $ac_path_EGREP_found && break 3
3792    done
3793  done
3794  done
3795IFS=$as_save_IFS
3796  if test -z "$ac_cv_path_EGREP"; then
3797    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3798  fi
3799else
3800  ac_cv_path_EGREP=$EGREP
3801fi
3802
3803   fi
3804fi
3805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3806$as_echo "$ac_cv_path_EGREP" >&6; }
3807 EGREP="$ac_cv_path_EGREP"
3808
3809
3810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3811$as_echo_n "checking for ANSI C header files... " >&6; }
3812if ${ac_cv_header_stdc+:} false; then :
3813  $as_echo_n "(cached) " >&6
3814else
3815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816/* end confdefs.h.  */
3817#include <stdlib.h>
3818#include <stdarg.h>
3819#include <string.h>
3820#include <float.h>
3821
3822int
3823main ()
3824{
3825
3826  ;
3827  return 0;
3828}
3829_ACEOF
3830if ac_fn_c_try_compile "$LINENO"; then :
3831  ac_cv_header_stdc=yes
3832else
3833  ac_cv_header_stdc=no
3834fi
3835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3836
3837if test $ac_cv_header_stdc = yes; then
3838  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3840/* end confdefs.h.  */
3841#include <string.h>
3842
3843_ACEOF
3844if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3845  $EGREP "memchr" >/dev/null 2>&1; then :
3846
3847else
3848  ac_cv_header_stdc=no
3849fi
3850rm -f conftest*
3851
3852fi
3853
3854if test $ac_cv_header_stdc = yes; then
3855  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3857/* end confdefs.h.  */
3858#include <stdlib.h>
3859
3860_ACEOF
3861if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3862  $EGREP "free" >/dev/null 2>&1; then :
3863
3864else
3865  ac_cv_header_stdc=no
3866fi
3867rm -f conftest*
3868
3869fi
3870
3871if test $ac_cv_header_stdc = yes; then
3872  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3873  if test "$cross_compiling" = yes; then :
3874  :
3875else
3876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877/* end confdefs.h.  */
3878#include <ctype.h>
3879#include <stdlib.h>
3880#if ((' ' & 0x0FF) == 0x020)
3881# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3882# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3883#else
3884# define ISLOWER(c) \
3885		   (('a' <= (c) && (c) <= 'i') \
3886		     || ('j' <= (c) && (c) <= 'r') \
3887		     || ('s' <= (c) && (c) <= 'z'))
3888# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3889#endif
3890
3891#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3892int
3893main ()
3894{
3895  int i;
3896  for (i = 0; i < 256; i++)
3897    if (XOR (islower (i), ISLOWER (i))
3898	|| toupper (i) != TOUPPER (i))
3899      return 2;
3900  return 0;
3901}
3902_ACEOF
3903if ac_fn_c_try_run "$LINENO"; then :
3904
3905else
3906  ac_cv_header_stdc=no
3907fi
3908rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3909  conftest.$ac_objext conftest.beam conftest.$ac_ext
3910fi
3911
3912fi
3913fi
3914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3915$as_echo "$ac_cv_header_stdc" >&6; }
3916if test $ac_cv_header_stdc = yes; then
3917
3918$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3919
3920fi
3921
3922# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3923for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3924		  inttypes.h stdint.h unistd.h
3925do :
3926  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3927ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3928"
3929if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3930  cat >>confdefs.h <<_ACEOF
3931#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3932_ACEOF
3933
3934fi
3935
3936done
3937
3938
3939
3940  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3941if test "x$ac_cv_header_minix_config_h" = xyes; then :
3942  MINIX=yes
3943else
3944  MINIX=
3945fi
3946
3947
3948  if test "$MINIX" = yes; then
3949
3950$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3951
3952
3953$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3954
3955
3956$as_echo "#define _MINIX 1" >>confdefs.h
3957
3958  fi
3959
3960
3961  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3962$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3963if ${ac_cv_safe_to_define___extensions__+:} false; then :
3964  $as_echo_n "(cached) " >&6
3965else
3966  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967/* end confdefs.h.  */
3968
3969#         define __EXTENSIONS__ 1
3970          $ac_includes_default
3971int
3972main ()
3973{
3974
3975  ;
3976  return 0;
3977}
3978_ACEOF
3979if ac_fn_c_try_compile "$LINENO"; then :
3980  ac_cv_safe_to_define___extensions__=yes
3981else
3982  ac_cv_safe_to_define___extensions__=no
3983fi
3984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3985fi
3986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3987$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3988  test $ac_cv_safe_to_define___extensions__ = yes &&
3989    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3990
3991  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3992
3993  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3994
3995  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3996
3997  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3998
3999
4000
4001
4002ac_config_headers="$ac_config_headers config.h"
4003
4004
4005# Initialize Automake
4006am__api_version='1.15'
4007
4008# Find a good install program.  We prefer a C program (faster),
4009# so one script is as good as another.  But avoid the broken or
4010# incompatible versions:
4011# SysV /etc/install, /usr/sbin/install
4012# SunOS /usr/etc/install
4013# IRIX /sbin/install
4014# AIX /bin/install
4015# AmigaOS /C/install, which installs bootblocks on floppy discs
4016# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4017# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4018# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4019# OS/2's system install, which has a completely different semantic
4020# ./install, which can be erroneously created by make from ./install.sh.
4021# Reject install programs that cannot install multiple files.
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4023$as_echo_n "checking for a BSD-compatible install... " >&6; }
4024if test -z "$INSTALL"; then
4025if ${ac_cv_path_install+:} false; then :
4026  $as_echo_n "(cached) " >&6
4027else
4028  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029for as_dir in $PATH
4030do
4031  IFS=$as_save_IFS
4032  test -z "$as_dir" && as_dir=.
4033    # Account for people who put trailing slashes in PATH elements.
4034case $as_dir/ in #((
4035  ./ | .// | /[cC]/* | \
4036  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4037  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4038  /usr/ucb/* ) ;;
4039  *)
4040    # OSF1 and SCO ODT 3.0 have their own names for install.
4041    # Don't use installbsd from OSF since it installs stuff as root
4042    # by default.
4043    for ac_prog in ginstall scoinst install; do
4044      for ac_exec_ext in '' $ac_executable_extensions; do
4045	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4046	  if test $ac_prog = install &&
4047	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4048	    # AIX install.  It has an incompatible calling convention.
4049	    :
4050	  elif test $ac_prog = install &&
4051	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4052	    # program-specific install script used by HP pwplus--don't use.
4053	    :
4054	  else
4055	    rm -rf conftest.one conftest.two conftest.dir
4056	    echo one > conftest.one
4057	    echo two > conftest.two
4058	    mkdir conftest.dir
4059	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4060	      test -s conftest.one && test -s conftest.two &&
4061	      test -s conftest.dir/conftest.one &&
4062	      test -s conftest.dir/conftest.two
4063	    then
4064	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4065	      break 3
4066	    fi
4067	  fi
4068	fi
4069      done
4070    done
4071    ;;
4072esac
4073
4074  done
4075IFS=$as_save_IFS
4076
4077rm -rf conftest.one conftest.two conftest.dir
4078
4079fi
4080  if test "${ac_cv_path_install+set}" = set; then
4081    INSTALL=$ac_cv_path_install
4082  else
4083    # As a last resort, use the slow shell script.  Don't cache a
4084    # value for INSTALL within a source directory, because that will
4085    # break other packages using the cache if that directory is
4086    # removed, or if the value is a relative name.
4087    INSTALL=$ac_install_sh
4088  fi
4089fi
4090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4091$as_echo "$INSTALL" >&6; }
4092
4093# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4094# It thinks the first close brace ends the variable substitution.
4095test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4096
4097test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4098
4099test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4100
4101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4102$as_echo_n "checking whether build environment is sane... " >&6; }
4103# Reject unsafe characters in $srcdir or the absolute working directory
4104# name.  Accept space and tab only in the latter.
4105am_lf='
4106'
4107case `pwd` in
4108  *[\\\"\#\$\&\'\`$am_lf]*)
4109    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4110esac
4111case $srcdir in
4112  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4113    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4114esac
4115
4116# Do 'set' in a subshell so we don't clobber the current shell's
4117# arguments.  Must try -L first in case configure is actually a
4118# symlink; some systems play weird games with the mod time of symlinks
4119# (eg FreeBSD returns the mod time of the symlink's containing
4120# directory).
4121if (
4122   am_has_slept=no
4123   for am_try in 1 2; do
4124     echo "timestamp, slept: $am_has_slept" > conftest.file
4125     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4126     if test "$*" = "X"; then
4127	# -L didn't work.
4128	set X `ls -t "$srcdir/configure" conftest.file`
4129     fi
4130     if test "$*" != "X $srcdir/configure conftest.file" \
4131	&& test "$*" != "X conftest.file $srcdir/configure"; then
4132
4133	# If neither matched, then we have a broken ls.  This can happen
4134	# if, for instance, CONFIG_SHELL is bash and it inherits a
4135	# broken ls alias from the environment.  This has actually
4136	# happened.  Such a system could not be considered "sane".
4137	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4138  alias in your environment" "$LINENO" 5
4139     fi
4140     if test "$2" = conftest.file || test $am_try -eq 2; then
4141       break
4142     fi
4143     # Just in case.
4144     sleep 1
4145     am_has_slept=yes
4146   done
4147   test "$2" = conftest.file
4148   )
4149then
4150   # Ok.
4151   :
4152else
4153   as_fn_error $? "newly created file is older than distributed files!
4154Check your system clock" "$LINENO" 5
4155fi
4156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4157$as_echo "yes" >&6; }
4158# If we didn't sleep, we still need to ensure time stamps of config.status and
4159# generated files are strictly newer.
4160am_sleep_pid=
4161if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4162  ( sleep 1 ) &
4163  am_sleep_pid=$!
4164fi
4165
4166rm -f conftest.file
4167
4168test "$program_prefix" != NONE &&
4169  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4170# Use a double $ so make ignores it.
4171test "$program_suffix" != NONE &&
4172  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4173# Double any \ or $.
4174# By default was `s,x,x', remove it if useless.
4175ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4176program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4177
4178if test x"${MISSING+set}" != xset; then
4179  case $am_aux_dir in
4180  *\ * | *\	*)
4181    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4182  *)
4183    MISSING="\${SHELL} $am_aux_dir/missing" ;;
4184  esac
4185fi
4186# Use eval to expand $SHELL
4187if eval "$MISSING --is-lightweight"; then
4188  am_missing_run="$MISSING "
4189else
4190  am_missing_run=
4191  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4192$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4193fi
4194
4195if test x"${install_sh+set}" != xset; then
4196  case $am_aux_dir in
4197  *\ * | *\	*)
4198    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4199  *)
4200    install_sh="\${SHELL} $am_aux_dir/install-sh"
4201  esac
4202fi
4203
4204# Installed binaries are usually stripped using 'strip' when the user
4205# run "make install-strip".  However 'strip' might not be the right
4206# tool to use in cross-compilation environments, therefore Automake
4207# will honor the 'STRIP' environment variable to overrule this program.
4208if test "$cross_compiling" != no; then
4209  if test -n "$ac_tool_prefix"; then
4210  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4211set dummy ${ac_tool_prefix}strip; ac_word=$2
4212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4213$as_echo_n "checking for $ac_word... " >&6; }
4214if ${ac_cv_prog_STRIP+:} false; then :
4215  $as_echo_n "(cached) " >&6
4216else
4217  if test -n "$STRIP"; then
4218  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4219else
4220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221for as_dir in $PATH
4222do
4223  IFS=$as_save_IFS
4224  test -z "$as_dir" && as_dir=.
4225    for ac_exec_ext in '' $ac_executable_extensions; do
4226  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4227    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4228    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4229    break 2
4230  fi
4231done
4232  done
4233IFS=$as_save_IFS
4234
4235fi
4236fi
4237STRIP=$ac_cv_prog_STRIP
4238if test -n "$STRIP"; then
4239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4240$as_echo "$STRIP" >&6; }
4241else
4242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4243$as_echo "no" >&6; }
4244fi
4245
4246
4247fi
4248if test -z "$ac_cv_prog_STRIP"; then
4249  ac_ct_STRIP=$STRIP
4250  # Extract the first word of "strip", so it can be a program name with args.
4251set dummy strip; ac_word=$2
4252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4253$as_echo_n "checking for $ac_word... " >&6; }
4254if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4255  $as_echo_n "(cached) " >&6
4256else
4257  if test -n "$ac_ct_STRIP"; then
4258  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4259else
4260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261for as_dir in $PATH
4262do
4263  IFS=$as_save_IFS
4264  test -z "$as_dir" && as_dir=.
4265    for ac_exec_ext in '' $ac_executable_extensions; do
4266  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4267    ac_cv_prog_ac_ct_STRIP="strip"
4268    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4269    break 2
4270  fi
4271done
4272  done
4273IFS=$as_save_IFS
4274
4275fi
4276fi
4277ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4278if test -n "$ac_ct_STRIP"; then
4279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4280$as_echo "$ac_ct_STRIP" >&6; }
4281else
4282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4283$as_echo "no" >&6; }
4284fi
4285
4286  if test "x$ac_ct_STRIP" = x; then
4287    STRIP=":"
4288  else
4289    case $cross_compiling:$ac_tool_warned in
4290yes:)
4291{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4292$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4293ac_tool_warned=yes ;;
4294esac
4295    STRIP=$ac_ct_STRIP
4296  fi
4297else
4298  STRIP="$ac_cv_prog_STRIP"
4299fi
4300
4301fi
4302INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4303
4304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4305$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4306if test -z "$MKDIR_P"; then
4307  if ${ac_cv_path_mkdir+:} false; then :
4308  $as_echo_n "(cached) " >&6
4309else
4310  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4312do
4313  IFS=$as_save_IFS
4314  test -z "$as_dir" && as_dir=.
4315    for ac_prog in mkdir gmkdir; do
4316	 for ac_exec_ext in '' $ac_executable_extensions; do
4317	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4318	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4319	     'mkdir (GNU coreutils) '* | \
4320	     'mkdir (coreutils) '* | \
4321	     'mkdir (fileutils) '4.1*)
4322	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4323	       break 3;;
4324	   esac
4325	 done
4326       done
4327  done
4328IFS=$as_save_IFS
4329
4330fi
4331
4332  test -d ./--version && rmdir ./--version
4333  if test "${ac_cv_path_mkdir+set}" = set; then
4334    MKDIR_P="$ac_cv_path_mkdir -p"
4335  else
4336    # As a last resort, use the slow shell script.  Don't cache a
4337    # value for MKDIR_P within a source directory, because that will
4338    # break other packages using the cache if that directory is
4339    # removed, or if the value is a relative name.
4340    MKDIR_P="$ac_install_sh -d"
4341  fi
4342fi
4343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4344$as_echo "$MKDIR_P" >&6; }
4345
4346for ac_prog in gawk mawk nawk awk
4347do
4348  # Extract the first word of "$ac_prog", so it can be a program name with args.
4349set dummy $ac_prog; ac_word=$2
4350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4351$as_echo_n "checking for $ac_word... " >&6; }
4352if ${ac_cv_prog_AWK+:} false; then :
4353  $as_echo_n "(cached) " >&6
4354else
4355  if test -n "$AWK"; then
4356  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4357else
4358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359for as_dir in $PATH
4360do
4361  IFS=$as_save_IFS
4362  test -z "$as_dir" && as_dir=.
4363    for ac_exec_ext in '' $ac_executable_extensions; do
4364  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4365    ac_cv_prog_AWK="$ac_prog"
4366    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4367    break 2
4368  fi
4369done
4370  done
4371IFS=$as_save_IFS
4372
4373fi
4374fi
4375AWK=$ac_cv_prog_AWK
4376if test -n "$AWK"; then
4377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4378$as_echo "$AWK" >&6; }
4379else
4380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4381$as_echo "no" >&6; }
4382fi
4383
4384
4385  test -n "$AWK" && break
4386done
4387
4388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4389$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4390set x ${MAKE-make}
4391ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4392if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4393  $as_echo_n "(cached) " >&6
4394else
4395  cat >conftest.make <<\_ACEOF
4396SHELL = /bin/sh
4397all:
4398	@echo '@@@%%%=$(MAKE)=@@@%%%'
4399_ACEOF
4400# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4401case `${MAKE-make} -f conftest.make 2>/dev/null` in
4402  *@@@%%%=?*=@@@%%%*)
4403    eval ac_cv_prog_make_${ac_make}_set=yes;;
4404  *)
4405    eval ac_cv_prog_make_${ac_make}_set=no;;
4406esac
4407rm -f conftest.make
4408fi
4409if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4411$as_echo "yes" >&6; }
4412  SET_MAKE=
4413else
4414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4415$as_echo "no" >&6; }
4416  SET_MAKE="MAKE=${MAKE-make}"
4417fi
4418
4419rm -rf .tst 2>/dev/null
4420mkdir .tst 2>/dev/null
4421if test -d .tst; then
4422  am__leading_dot=.
4423else
4424  am__leading_dot=_
4425fi
4426rmdir .tst 2>/dev/null
4427
4428DEPDIR="${am__leading_dot}deps"
4429
4430ac_config_commands="$ac_config_commands depfiles"
4431
4432
4433am_make=${MAKE-make}
4434cat > confinc << 'END'
4435am__doit:
4436	@echo this is the am__doit target
4437.PHONY: am__doit
4438END
4439# If we don't find an include directive, just comment out the code.
4440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4441$as_echo_n "checking for style of include used by $am_make... " >&6; }
4442am__include="#"
4443am__quote=
4444_am_result=none
4445# First try GNU make style include.
4446echo "include confinc" > confmf
4447# Ignore all kinds of additional output from 'make'.
4448case `$am_make -s -f confmf 2> /dev/null` in #(
4449*the\ am__doit\ target*)
4450  am__include=include
4451  am__quote=
4452  _am_result=GNU
4453  ;;
4454esac
4455# Now try BSD make style include.
4456if test "$am__include" = "#"; then
4457   echo '.include "confinc"' > confmf
4458   case `$am_make -s -f confmf 2> /dev/null` in #(
4459   *the\ am__doit\ target*)
4460     am__include=.include
4461     am__quote="\""
4462     _am_result=BSD
4463     ;;
4464   esac
4465fi
4466
4467
4468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4469$as_echo "$_am_result" >&6; }
4470rm -f confinc confmf
4471
4472# Check whether --enable-dependency-tracking was given.
4473if test "${enable_dependency_tracking+set}" = set; then :
4474  enableval=$enable_dependency_tracking;
4475fi
4476
4477if test "x$enable_dependency_tracking" != xno; then
4478  am_depcomp="$ac_aux_dir/depcomp"
4479  AMDEPBACKSLASH='\'
4480  am__nodep='_no'
4481fi
4482 if test "x$enable_dependency_tracking" != xno; then
4483  AMDEP_TRUE=
4484  AMDEP_FALSE='#'
4485else
4486  AMDEP_TRUE='#'
4487  AMDEP_FALSE=
4488fi
4489
4490
4491# Check whether --enable-silent-rules was given.
4492if test "${enable_silent_rules+set}" = set; then :
4493  enableval=$enable_silent_rules;
4494fi
4495
4496case $enable_silent_rules in # (((
4497  yes) AM_DEFAULT_VERBOSITY=0;;
4498   no) AM_DEFAULT_VERBOSITY=1;;
4499    *) AM_DEFAULT_VERBOSITY=1;;
4500esac
4501am_make=${MAKE-make}
4502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4503$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4504if ${am_cv_make_support_nested_variables+:} false; then :
4505  $as_echo_n "(cached) " >&6
4506else
4507  if $as_echo 'TRUE=$(BAR$(V))
4508BAR0=false
4509BAR1=true
4510V=1
4511am__doit:
4512	@$(TRUE)
4513.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4514  am_cv_make_support_nested_variables=yes
4515else
4516  am_cv_make_support_nested_variables=no
4517fi
4518fi
4519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4520$as_echo "$am_cv_make_support_nested_variables" >&6; }
4521if test $am_cv_make_support_nested_variables = yes; then
4522    AM_V='$(V)'
4523  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4524else
4525  AM_V=$AM_DEFAULT_VERBOSITY
4526  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4527fi
4528AM_BACKSLASH='\'
4529
4530if test "`cd $srcdir && pwd`" != "`pwd`"; then
4531  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4532  # is not polluted with repeated "-I."
4533  am__isrc=' -I$(srcdir)'
4534  # test to see if srcdir already configured
4535  if test -f $srcdir/config.status; then
4536    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4537  fi
4538fi
4539
4540# test whether we have cygpath
4541if test -z "$CYGPATH_W"; then
4542  if (cygpath --version) >/dev/null 2>/dev/null; then
4543    CYGPATH_W='cygpath -w'
4544  else
4545    CYGPATH_W=echo
4546  fi
4547fi
4548
4549
4550# Define the identity of the package.
4551 PACKAGE='xdm'
4552 VERSION='1.1.12'
4553
4554
4555cat >>confdefs.h <<_ACEOF
4556#define PACKAGE "$PACKAGE"
4557_ACEOF
4558
4559
4560cat >>confdefs.h <<_ACEOF
4561#define VERSION "$VERSION"
4562_ACEOF
4563
4564# Some tools Automake needs.
4565
4566ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4567
4568
4569AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4570
4571
4572AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4573
4574
4575AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4576
4577
4578MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4579
4580# For better backward compatibility.  To be removed once Automake 1.9.x
4581# dies out for good.  For more background, see:
4582# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4583# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4584mkdir_p='$(MKDIR_P)'
4585
4586# We need awk for the "check" target (and possibly the TAP driver).  The
4587# system "awk" is bad on some platforms.
4588# Always define AMTAR for backward compatibility.  Yes, it's still used
4589# in the wild :-(  We should find a proper way to deprecate it ...
4590AMTAR='$${TAR-tar}'
4591
4592
4593# We'll loop over all known methods to create a tar archive until one works.
4594_am_tools='gnutar  pax cpio none'
4595
4596am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4597
4598
4599
4600
4601
4602depcc="$CC"   am_compiler_list=
4603
4604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4605$as_echo_n "checking dependency style of $depcc... " >&6; }
4606if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4607  $as_echo_n "(cached) " >&6
4608else
4609  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4610  # We make a subdir and do the tests there.  Otherwise we can end up
4611  # making bogus files that we don't know about and never remove.  For
4612  # instance it was reported that on HP-UX the gcc test will end up
4613  # making a dummy file named 'D' -- because '-MD' means "put the output
4614  # in D".
4615  rm -rf conftest.dir
4616  mkdir conftest.dir
4617  # Copy depcomp to subdir because otherwise we won't find it if we're
4618  # using a relative directory.
4619  cp "$am_depcomp" conftest.dir
4620  cd conftest.dir
4621  # We will build objects and dependencies in a subdirectory because
4622  # it helps to detect inapplicable dependency modes.  For instance
4623  # both Tru64's cc and ICC support -MD to output dependencies as a
4624  # side effect of compilation, but ICC will put the dependencies in
4625  # the current directory while Tru64 will put them in the object
4626  # directory.
4627  mkdir sub
4628
4629  am_cv_CC_dependencies_compiler_type=none
4630  if test "$am_compiler_list" = ""; then
4631     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4632  fi
4633  am__universal=false
4634  case " $depcc " in #(
4635     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4636     esac
4637
4638  for depmode in $am_compiler_list; do
4639    # Setup a source with many dependencies, because some compilers
4640    # like to wrap large dependency lists on column 80 (with \), and
4641    # we should not choose a depcomp mode which is confused by this.
4642    #
4643    # We need to recreate these files for each test, as the compiler may
4644    # overwrite some of them when testing with obscure command lines.
4645    # This happens at least with the AIX C compiler.
4646    : > sub/conftest.c
4647    for i in 1 2 3 4 5 6; do
4648      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4649      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4650      # Solaris 10 /bin/sh.
4651      echo '/* dummy */' > sub/conftst$i.h
4652    done
4653    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4654
4655    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4656    # mode.  It turns out that the SunPro C++ compiler does not properly
4657    # handle '-M -o', and we need to detect this.  Also, some Intel
4658    # versions had trouble with output in subdirs.
4659    am__obj=sub/conftest.${OBJEXT-o}
4660    am__minus_obj="-o $am__obj"
4661    case $depmode in
4662    gcc)
4663      # This depmode causes a compiler race in universal mode.
4664      test "$am__universal" = false || continue
4665      ;;
4666    nosideeffect)
4667      # After this tag, mechanisms are not by side-effect, so they'll
4668      # only be used when explicitly requested.
4669      if test "x$enable_dependency_tracking" = xyes; then
4670	continue
4671      else
4672	break
4673      fi
4674      ;;
4675    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4676      # This compiler won't grok '-c -o', but also, the minuso test has
4677      # not run yet.  These depmodes are late enough in the game, and
4678      # so weak that their functioning should not be impacted.
4679      am__obj=conftest.${OBJEXT-o}
4680      am__minus_obj=
4681      ;;
4682    none) break ;;
4683    esac
4684    if depmode=$depmode \
4685       source=sub/conftest.c object=$am__obj \
4686       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4687       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4688         >/dev/null 2>conftest.err &&
4689       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4690       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4691       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4692       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4693      # icc doesn't choke on unknown options, it will just issue warnings
4694      # or remarks (even with -Werror).  So we grep stderr for any message
4695      # that says an option was ignored or not supported.
4696      # When given -MP, icc 7.0 and 7.1 complain thusly:
4697      #   icc: Command line warning: ignoring option '-M'; no argument required
4698      # The diagnosis changed in icc 8.0:
4699      #   icc: Command line remark: option '-MP' not supported
4700      if (grep 'ignoring option' conftest.err ||
4701          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4702        am_cv_CC_dependencies_compiler_type=$depmode
4703        break
4704      fi
4705    fi
4706  done
4707
4708  cd ..
4709  rm -rf conftest.dir
4710else
4711  am_cv_CC_dependencies_compiler_type=none
4712fi
4713
4714fi
4715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4716$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4717CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4718
4719 if
4720  test "x$enable_dependency_tracking" != xno \
4721  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4722  am__fastdepCC_TRUE=
4723  am__fastdepCC_FALSE='#'
4724else
4725  am__fastdepCC_TRUE='#'
4726  am__fastdepCC_FALSE=
4727fi
4728
4729
4730
4731# POSIX will say in a future version that running "rm -f" with no argument
4732# is OK; and we want to be able to make that assumption in our Makefile
4733# recipes.  So use an aggressive probe to check that the usage we want is
4734# actually supported "in the wild" to an acceptable degree.
4735# See automake bug#10828.
4736# To make any issue more visible, cause the running configure to be aborted
4737# by default if the 'rm' program in use doesn't match our expectations; the
4738# user can still override this though.
4739if rm -f && rm -fr && rm -rf; then : OK; else
4740  cat >&2 <<'END'
4741Oops!
4742
4743Your 'rm' program seems unable to run without file operands specified
4744on the command line, even when the '-f' option is present.  This is contrary
4745to the behaviour of most rm programs out there, and not conforming with
4746the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4747
4748Please tell bug-automake@gnu.org about your system, including the value
4749of your $PATH and any error possibly output before this message.  This
4750can help us improve future automake versions.
4751
4752END
4753  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4754    echo 'Configuration will proceed anyway, since you have set the' >&2
4755    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4756    echo >&2
4757  else
4758    cat >&2 <<'END'
4759Aborting the configuration process, to ensure you take notice of the issue.
4760
4761You can download and install GNU coreutils to get an 'rm' implementation
4762that behaves properly: <http://www.gnu.org/software/coreutils/>.
4763
4764If you want to complete the configuration process using your problematic
4765'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4766to "yes", and re-run configure.
4767
4768END
4769    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4770  fi
4771fi
4772
4773
4774# Initialize libtool
4775# Check whether --enable-static was given.
4776if test "${enable_static+set}" = set; then :
4777  enableval=$enable_static; p=${PACKAGE-default}
4778    case $enableval in
4779    yes) enable_static=yes ;;
4780    no) enable_static=no ;;
4781    *)
4782     enable_static=no
4783      # Look at the argument we got.  We use all the common list separators.
4784      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
4785      for pkg in $enableval; do
4786	IFS=$lt_save_ifs
4787	if test "X$pkg" = "X$p"; then
4788	  enable_static=yes
4789	fi
4790      done
4791      IFS=$lt_save_ifs
4792      ;;
4793    esac
4794else
4795  enable_static=no
4796fi
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806enable_dlopen=yes
4807
4808
4809
4810case `pwd` in
4811  *\ * | *\	*)
4812    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4813$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4814esac
4815
4816
4817
4818macro_version='2.4.6'
4819macro_revision='2.4.6'
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833ltmain=$ac_aux_dir/ltmain.sh
4834
4835# Make sure we can run config.sub.
4836$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4837  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4838
4839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4840$as_echo_n "checking build system type... " >&6; }
4841if ${ac_cv_build+:} false; then :
4842  $as_echo_n "(cached) " >&6
4843else
4844  ac_build_alias=$build_alias
4845test "x$ac_build_alias" = x &&
4846  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4847test "x$ac_build_alias" = x &&
4848  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4849ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4850  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4851
4852fi
4853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4854$as_echo "$ac_cv_build" >&6; }
4855case $ac_cv_build in
4856*-*-*) ;;
4857*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4858esac
4859build=$ac_cv_build
4860ac_save_IFS=$IFS; IFS='-'
4861set x $ac_cv_build
4862shift
4863build_cpu=$1
4864build_vendor=$2
4865shift; shift
4866# Remember, the first character of IFS is used to create $*,
4867# except with old shells:
4868build_os=$*
4869IFS=$ac_save_IFS
4870case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4871
4872
4873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4874$as_echo_n "checking host system type... " >&6; }
4875if ${ac_cv_host+:} false; then :
4876  $as_echo_n "(cached) " >&6
4877else
4878  if test "x$host_alias" = x; then
4879  ac_cv_host=$ac_cv_build
4880else
4881  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4882    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4883fi
4884
4885fi
4886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4887$as_echo "$ac_cv_host" >&6; }
4888case $ac_cv_host in
4889*-*-*) ;;
4890*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4891esac
4892host=$ac_cv_host
4893ac_save_IFS=$IFS; IFS='-'
4894set x $ac_cv_host
4895shift
4896host_cpu=$1
4897host_vendor=$2
4898shift; shift
4899# Remember, the first character of IFS is used to create $*,
4900# except with old shells:
4901host_os=$*
4902IFS=$ac_save_IFS
4903case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4904
4905
4906# Backslashify metacharacters that are still active within
4907# double-quoted strings.
4908sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4909
4910# Same as above, but do not quote variable references.
4911double_quote_subst='s/\(["`\\]\)/\\\1/g'
4912
4913# Sed substitution to delay expansion of an escaped shell variable in a
4914# double_quote_subst'ed string.
4915delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4916
4917# Sed substitution to delay expansion of an escaped single quote.
4918delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4919
4920# Sed substitution to avoid accidental globbing in evaled expressions
4921no_glob_subst='s/\*/\\\*/g'
4922
4923ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4924ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4925ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4926
4927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4928$as_echo_n "checking how to print strings... " >&6; }
4929# Test print first, because it will be a builtin if present.
4930if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4931   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4932  ECHO='print -r --'
4933elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4934  ECHO='printf %s\n'
4935else
4936  # Use this function as a fallback that always works.
4937  func_fallback_echo ()
4938  {
4939    eval 'cat <<_LTECHO_EOF
4940$1
4941_LTECHO_EOF'
4942  }
4943  ECHO='func_fallback_echo'
4944fi
4945
4946# func_echo_all arg...
4947# Invoke $ECHO with all args, space-separated.
4948func_echo_all ()
4949{
4950    $ECHO ""
4951}
4952
4953case $ECHO in
4954  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4955$as_echo "printf" >&6; } ;;
4956  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4957$as_echo "print -r" >&6; } ;;
4958  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4959$as_echo "cat" >&6; } ;;
4960esac
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4976$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4977if ${ac_cv_path_SED+:} false; then :
4978  $as_echo_n "(cached) " >&6
4979else
4980            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4981     for ac_i in 1 2 3 4 5 6 7; do
4982       ac_script="$ac_script$as_nl$ac_script"
4983     done
4984     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4985     { ac_script=; unset ac_script;}
4986     if test -z "$SED"; then
4987  ac_path_SED_found=false
4988  # Loop through the user's path and test for each of PROGNAME-LIST
4989  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990for as_dir in $PATH
4991do
4992  IFS=$as_save_IFS
4993  test -z "$as_dir" && as_dir=.
4994    for ac_prog in sed gsed; do
4995    for ac_exec_ext in '' $ac_executable_extensions; do
4996      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4997      as_fn_executable_p "$ac_path_SED" || continue
4998# Check for GNU ac_path_SED and select it if it is found.
4999  # Check for GNU $ac_path_SED
5000case `"$ac_path_SED" --version 2>&1` in
5001*GNU*)
5002  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5003*)
5004  ac_count=0
5005  $as_echo_n 0123456789 >"conftest.in"
5006  while :
5007  do
5008    cat "conftest.in" "conftest.in" >"conftest.tmp"
5009    mv "conftest.tmp" "conftest.in"
5010    cp "conftest.in" "conftest.nl"
5011    $as_echo '' >> "conftest.nl"
5012    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5013    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5014    as_fn_arith $ac_count + 1 && ac_count=$as_val
5015    if test $ac_count -gt ${ac_path_SED_max-0}; then
5016      # Best one so far, save it but keep looking for a better one
5017      ac_cv_path_SED="$ac_path_SED"
5018      ac_path_SED_max=$ac_count
5019    fi
5020    # 10*(2^10) chars as input seems more than enough
5021    test $ac_count -gt 10 && break
5022  done
5023  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5024esac
5025
5026      $ac_path_SED_found && break 3
5027    done
5028  done
5029  done
5030IFS=$as_save_IFS
5031  if test -z "$ac_cv_path_SED"; then
5032    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5033  fi
5034else
5035  ac_cv_path_SED=$SED
5036fi
5037
5038fi
5039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5040$as_echo "$ac_cv_path_SED" >&6; }
5041 SED="$ac_cv_path_SED"
5042  rm -f conftest.sed
5043
5044test -z "$SED" && SED=sed
5045Xsed="$SED -e 1s/^X//"
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5058$as_echo_n "checking for fgrep... " >&6; }
5059if ${ac_cv_path_FGREP+:} false; then :
5060  $as_echo_n "(cached) " >&6
5061else
5062  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5063   then ac_cv_path_FGREP="$GREP -F"
5064   else
5065     if test -z "$FGREP"; then
5066  ac_path_FGREP_found=false
5067  # Loop through the user's path and test for each of PROGNAME-LIST
5068  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5070do
5071  IFS=$as_save_IFS
5072  test -z "$as_dir" && as_dir=.
5073    for ac_prog in fgrep; do
5074    for ac_exec_ext in '' $ac_executable_extensions; do
5075      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5076      as_fn_executable_p "$ac_path_FGREP" || continue
5077# Check for GNU ac_path_FGREP and select it if it is found.
5078  # Check for GNU $ac_path_FGREP
5079case `"$ac_path_FGREP" --version 2>&1` in
5080*GNU*)
5081  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5082*)
5083  ac_count=0
5084  $as_echo_n 0123456789 >"conftest.in"
5085  while :
5086  do
5087    cat "conftest.in" "conftest.in" >"conftest.tmp"
5088    mv "conftest.tmp" "conftest.in"
5089    cp "conftest.in" "conftest.nl"
5090    $as_echo 'FGREP' >> "conftest.nl"
5091    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5092    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5093    as_fn_arith $ac_count + 1 && ac_count=$as_val
5094    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5095      # Best one so far, save it but keep looking for a better one
5096      ac_cv_path_FGREP="$ac_path_FGREP"
5097      ac_path_FGREP_max=$ac_count
5098    fi
5099    # 10*(2^10) chars as input seems more than enough
5100    test $ac_count -gt 10 && break
5101  done
5102  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5103esac
5104
5105      $ac_path_FGREP_found && break 3
5106    done
5107  done
5108  done
5109IFS=$as_save_IFS
5110  if test -z "$ac_cv_path_FGREP"; then
5111    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5112  fi
5113else
5114  ac_cv_path_FGREP=$FGREP
5115fi
5116
5117   fi
5118fi
5119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5120$as_echo "$ac_cv_path_FGREP" >&6; }
5121 FGREP="$ac_cv_path_FGREP"
5122
5123
5124test -z "$GREP" && GREP=grep
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144# Check whether --with-gnu-ld was given.
5145if test "${with_gnu_ld+set}" = set; then :
5146  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5147else
5148  with_gnu_ld=no
5149fi
5150
5151ac_prog=ld
5152if test yes = "$GCC"; then
5153  # Check if gcc -print-prog-name=ld gives a path.
5154  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5155$as_echo_n "checking for ld used by $CC... " >&6; }
5156  case $host in
5157  *-*-mingw*)
5158    # gcc leaves a trailing carriage return, which upsets mingw
5159    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5160  *)
5161    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5162  esac
5163  case $ac_prog in
5164    # Accept absolute paths.
5165    [\\/]* | ?:[\\/]*)
5166      re_direlt='/[^/][^/]*/\.\./'
5167      # Canonicalize the pathname of ld
5168      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5169      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5170	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5171      done
5172      test -z "$LD" && LD=$ac_prog
5173      ;;
5174  "")
5175    # If it fails, then pretend we aren't using GCC.
5176    ac_prog=ld
5177    ;;
5178  *)
5179    # If it is relative, then search for the first ld in PATH.
5180    with_gnu_ld=unknown
5181    ;;
5182  esac
5183elif test yes = "$with_gnu_ld"; then
5184  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5185$as_echo_n "checking for GNU ld... " >&6; }
5186else
5187  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5188$as_echo_n "checking for non-GNU ld... " >&6; }
5189fi
5190if ${lt_cv_path_LD+:} false; then :
5191  $as_echo_n "(cached) " >&6
5192else
5193  if test -z "$LD"; then
5194  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5195  for ac_dir in $PATH; do
5196    IFS=$lt_save_ifs
5197    test -z "$ac_dir" && ac_dir=.
5198    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5199      lt_cv_path_LD=$ac_dir/$ac_prog
5200      # Check to see if the program is GNU ld.  I'd rather use --version,
5201      # but apparently some variants of GNU ld only accept -v.
5202      # Break only if it was the GNU/non-GNU ld that we prefer.
5203      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5204      *GNU* | *'with BFD'*)
5205	test no != "$with_gnu_ld" && break
5206	;;
5207      *)
5208	test yes != "$with_gnu_ld" && break
5209	;;
5210      esac
5211    fi
5212  done
5213  IFS=$lt_save_ifs
5214else
5215  lt_cv_path_LD=$LD # Let the user override the test with a path.
5216fi
5217fi
5218
5219LD=$lt_cv_path_LD
5220if test -n "$LD"; then
5221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5222$as_echo "$LD" >&6; }
5223else
5224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5225$as_echo "no" >&6; }
5226fi
5227test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5229$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5230if ${lt_cv_prog_gnu_ld+:} false; then :
5231  $as_echo_n "(cached) " >&6
5232else
5233  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5234case `$LD -v 2>&1 </dev/null` in
5235*GNU* | *'with BFD'*)
5236  lt_cv_prog_gnu_ld=yes
5237  ;;
5238*)
5239  lt_cv_prog_gnu_ld=no
5240  ;;
5241esac
5242fi
5243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5244$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5245with_gnu_ld=$lt_cv_prog_gnu_ld
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5256$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5257if ${lt_cv_path_NM+:} false; then :
5258  $as_echo_n "(cached) " >&6
5259else
5260  if test -n "$NM"; then
5261  # Let the user override the test.
5262  lt_cv_path_NM=$NM
5263else
5264  lt_nm_to_check=${ac_tool_prefix}nm
5265  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5266    lt_nm_to_check="$lt_nm_to_check nm"
5267  fi
5268  for lt_tmp_nm in $lt_nm_to_check; do
5269    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5270    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5271      IFS=$lt_save_ifs
5272      test -z "$ac_dir" && ac_dir=.
5273      tmp_nm=$ac_dir/$lt_tmp_nm
5274      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5275	# Check to see if the nm accepts a BSD-compat flag.
5276	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5277	#   nm: unknown option "B" ignored
5278	# Tru64's nm complains that /dev/null is an invalid object file
5279	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5280	case $build_os in
5281	mingw*) lt_bad_file=conftest.nm/nofile ;;
5282	*) lt_bad_file=/dev/null ;;
5283	esac
5284	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5285	*$lt_bad_file* | *'Invalid file or object type'*)
5286	  lt_cv_path_NM="$tmp_nm -B"
5287	  break 2
5288	  ;;
5289	*)
5290	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5291	  */dev/null*)
5292	    lt_cv_path_NM="$tmp_nm -p"
5293	    break 2
5294	    ;;
5295	  *)
5296	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5297	    continue # so that we can try to find one that supports BSD flags
5298	    ;;
5299	  esac
5300	  ;;
5301	esac
5302      fi
5303    done
5304    IFS=$lt_save_ifs
5305  done
5306  : ${lt_cv_path_NM=no}
5307fi
5308fi
5309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5310$as_echo "$lt_cv_path_NM" >&6; }
5311if test no != "$lt_cv_path_NM"; then
5312  NM=$lt_cv_path_NM
5313else
5314  # Didn't find any BSD compatible name lister, look for dumpbin.
5315  if test -n "$DUMPBIN"; then :
5316    # Let the user override the test.
5317  else
5318    if test -n "$ac_tool_prefix"; then
5319  for ac_prog in dumpbin "link -dump"
5320  do
5321    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5322set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5324$as_echo_n "checking for $ac_word... " >&6; }
5325if ${ac_cv_prog_DUMPBIN+:} false; then :
5326  $as_echo_n "(cached) " >&6
5327else
5328  if test -n "$DUMPBIN"; then
5329  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5330else
5331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332for as_dir in $PATH
5333do
5334  IFS=$as_save_IFS
5335  test -z "$as_dir" && as_dir=.
5336    for ac_exec_ext in '' $ac_executable_extensions; do
5337  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5338    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5339    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5340    break 2
5341  fi
5342done
5343  done
5344IFS=$as_save_IFS
5345
5346fi
5347fi
5348DUMPBIN=$ac_cv_prog_DUMPBIN
5349if test -n "$DUMPBIN"; then
5350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5351$as_echo "$DUMPBIN" >&6; }
5352else
5353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354$as_echo "no" >&6; }
5355fi
5356
5357
5358    test -n "$DUMPBIN" && break
5359  done
5360fi
5361if test -z "$DUMPBIN"; then
5362  ac_ct_DUMPBIN=$DUMPBIN
5363  for ac_prog in dumpbin "link -dump"
5364do
5365  # Extract the first word of "$ac_prog", so it can be a program name with args.
5366set dummy $ac_prog; ac_word=$2
5367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5368$as_echo_n "checking for $ac_word... " >&6; }
5369if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5370  $as_echo_n "(cached) " >&6
5371else
5372  if test -n "$ac_ct_DUMPBIN"; then
5373  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5374else
5375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376for as_dir in $PATH
5377do
5378  IFS=$as_save_IFS
5379  test -z "$as_dir" && as_dir=.
5380    for ac_exec_ext in '' $ac_executable_extensions; do
5381  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5382    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5383    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5384    break 2
5385  fi
5386done
5387  done
5388IFS=$as_save_IFS
5389
5390fi
5391fi
5392ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5393if test -n "$ac_ct_DUMPBIN"; then
5394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5395$as_echo "$ac_ct_DUMPBIN" >&6; }
5396else
5397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5398$as_echo "no" >&6; }
5399fi
5400
5401
5402  test -n "$ac_ct_DUMPBIN" && break
5403done
5404
5405  if test "x$ac_ct_DUMPBIN" = x; then
5406    DUMPBIN=":"
5407  else
5408    case $cross_compiling:$ac_tool_warned in
5409yes:)
5410{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5411$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5412ac_tool_warned=yes ;;
5413esac
5414    DUMPBIN=$ac_ct_DUMPBIN
5415  fi
5416fi
5417
5418    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5419    *COFF*)
5420      DUMPBIN="$DUMPBIN -symbols -headers"
5421      ;;
5422    *)
5423      DUMPBIN=:
5424      ;;
5425    esac
5426  fi
5427
5428  if test : != "$DUMPBIN"; then
5429    NM=$DUMPBIN
5430  fi
5431fi
5432test -z "$NM" && NM=nm
5433
5434
5435
5436
5437
5438
5439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5440$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5441if ${lt_cv_nm_interface+:} false; then :
5442  $as_echo_n "(cached) " >&6
5443else
5444  lt_cv_nm_interface="BSD nm"
5445  echo "int some_variable = 0;" > conftest.$ac_ext
5446  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5447  (eval "$ac_compile" 2>conftest.err)
5448  cat conftest.err >&5
5449  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5450  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5451  cat conftest.err >&5
5452  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5453  cat conftest.out >&5
5454  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5455    lt_cv_nm_interface="MS dumpbin"
5456  fi
5457  rm -f conftest*
5458fi
5459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5460$as_echo "$lt_cv_nm_interface" >&6; }
5461
5462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5463$as_echo_n "checking whether ln -s works... " >&6; }
5464LN_S=$as_ln_s
5465if test "$LN_S" = "ln -s"; then
5466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5467$as_echo "yes" >&6; }
5468else
5469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5470$as_echo "no, using $LN_S" >&6; }
5471fi
5472
5473# find the maximum length of command line arguments
5474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5475$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5476if ${lt_cv_sys_max_cmd_len+:} false; then :
5477  $as_echo_n "(cached) " >&6
5478else
5479    i=0
5480  teststring=ABCD
5481
5482  case $build_os in
5483  msdosdjgpp*)
5484    # On DJGPP, this test can blow up pretty badly due to problems in libc
5485    # (any single argument exceeding 2000 bytes causes a buffer overrun
5486    # during glob expansion).  Even if it were fixed, the result of this
5487    # check would be larger than it should be.
5488    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5489    ;;
5490
5491  gnu*)
5492    # Under GNU Hurd, this test is not required because there is
5493    # no limit to the length of command line arguments.
5494    # Libtool will interpret -1 as no limit whatsoever
5495    lt_cv_sys_max_cmd_len=-1;
5496    ;;
5497
5498  cygwin* | mingw* | cegcc*)
5499    # On Win9x/ME, this test blows up -- it succeeds, but takes
5500    # about 5 minutes as the teststring grows exponentially.
5501    # Worse, since 9x/ME are not pre-emptively multitasking,
5502    # you end up with a "frozen" computer, even though with patience
5503    # the test eventually succeeds (with a max line length of 256k).
5504    # Instead, let's just punt: use the minimum linelength reported by
5505    # all of the supported platforms: 8192 (on NT/2K/XP).
5506    lt_cv_sys_max_cmd_len=8192;
5507    ;;
5508
5509  mint*)
5510    # On MiNT this can take a long time and run out of memory.
5511    lt_cv_sys_max_cmd_len=8192;
5512    ;;
5513
5514  amigaos*)
5515    # On AmigaOS with pdksh, this test takes hours, literally.
5516    # So we just punt and use a minimum line length of 8192.
5517    lt_cv_sys_max_cmd_len=8192;
5518    ;;
5519
5520  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5521    # This has been around since 386BSD, at least.  Likely further.
5522    if test -x /sbin/sysctl; then
5523      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5524    elif test -x /usr/sbin/sysctl; then
5525      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5526    else
5527      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5528    fi
5529    # And add a safety zone
5530    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5531    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5532    ;;
5533
5534  interix*)
5535    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5536    lt_cv_sys_max_cmd_len=196608
5537    ;;
5538
5539  os2*)
5540    # The test takes a long time on OS/2.
5541    lt_cv_sys_max_cmd_len=8192
5542    ;;
5543
5544  osf*)
5545    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5546    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5547    # nice to cause kernel panics so lets avoid the loop below.
5548    # First set a reasonable default.
5549    lt_cv_sys_max_cmd_len=16384
5550    #
5551    if test -x /sbin/sysconfig; then
5552      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5553        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5554      esac
5555    fi
5556    ;;
5557  sco3.2v5*)
5558    lt_cv_sys_max_cmd_len=102400
5559    ;;
5560  sysv5* | sco5v6* | sysv4.2uw2*)
5561    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5562    if test -n "$kargmax"; then
5563      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5564    else
5565      lt_cv_sys_max_cmd_len=32768
5566    fi
5567    ;;
5568  *)
5569    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5570    if test -n "$lt_cv_sys_max_cmd_len" && \
5571       test undefined != "$lt_cv_sys_max_cmd_len"; then
5572      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5573      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5574    else
5575      # Make teststring a little bigger before we do anything with it.
5576      # a 1K string should be a reasonable start.
5577      for i in 1 2 3 4 5 6 7 8; do
5578        teststring=$teststring$teststring
5579      done
5580      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5581      # If test is not a shell built-in, we'll probably end up computing a
5582      # maximum length that is only half of the actual maximum length, but
5583      # we can't tell.
5584      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5585	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5586	      test 17 != "$i" # 1/2 MB should be enough
5587      do
5588        i=`expr $i + 1`
5589        teststring=$teststring$teststring
5590      done
5591      # Only check the string length outside the loop.
5592      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5593      teststring=
5594      # Add a significant safety factor because C++ compilers can tack on
5595      # massive amounts of additional arguments before passing them to the
5596      # linker.  It appears as though 1/2 is a usable value.
5597      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5598    fi
5599    ;;
5600  esac
5601
5602fi
5603
5604if test -n "$lt_cv_sys_max_cmd_len"; then
5605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5606$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5607else
5608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5609$as_echo "none" >&6; }
5610fi
5611max_cmd_len=$lt_cv_sys_max_cmd_len
5612
5613
5614
5615
5616
5617
5618: ${CP="cp -f"}
5619: ${MV="mv -f"}
5620: ${RM="rm -f"}
5621
5622if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5623  lt_unset=unset
5624else
5625  lt_unset=false
5626fi
5627
5628
5629
5630
5631
5632# test EBCDIC or ASCII
5633case `echo X|tr X '\101'` in
5634 A) # ASCII based system
5635    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5636  lt_SP2NL='tr \040 \012'
5637  lt_NL2SP='tr \015\012 \040\040'
5638  ;;
5639 *) # EBCDIC based system
5640  lt_SP2NL='tr \100 \n'
5641  lt_NL2SP='tr \r\n \100\100'
5642  ;;
5643esac
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5654$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5655if ${lt_cv_to_host_file_cmd+:} false; then :
5656  $as_echo_n "(cached) " >&6
5657else
5658  case $host in
5659  *-*-mingw* )
5660    case $build in
5661      *-*-mingw* ) # actually msys
5662        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5663        ;;
5664      *-*-cygwin* )
5665        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5666        ;;
5667      * ) # otherwise, assume *nix
5668        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5669        ;;
5670    esac
5671    ;;
5672  *-*-cygwin* )
5673    case $build in
5674      *-*-mingw* ) # actually msys
5675        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5676        ;;
5677      *-*-cygwin* )
5678        lt_cv_to_host_file_cmd=func_convert_file_noop
5679        ;;
5680      * ) # otherwise, assume *nix
5681        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5682        ;;
5683    esac
5684    ;;
5685  * ) # unhandled hosts (and "normal" native builds)
5686    lt_cv_to_host_file_cmd=func_convert_file_noop
5687    ;;
5688esac
5689
5690fi
5691
5692to_host_file_cmd=$lt_cv_to_host_file_cmd
5693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5694$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5695
5696
5697
5698
5699
5700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5701$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5702if ${lt_cv_to_tool_file_cmd+:} false; then :
5703  $as_echo_n "(cached) " >&6
5704else
5705  #assume ordinary cross tools, or native build.
5706lt_cv_to_tool_file_cmd=func_convert_file_noop
5707case $host in
5708  *-*-mingw* )
5709    case $build in
5710      *-*-mingw* ) # actually msys
5711        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5712        ;;
5713    esac
5714    ;;
5715esac
5716
5717fi
5718
5719to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5721$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5722
5723
5724
5725
5726
5727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5728$as_echo_n "checking for $LD option to reload object files... " >&6; }
5729if ${lt_cv_ld_reload_flag+:} false; then :
5730  $as_echo_n "(cached) " >&6
5731else
5732  lt_cv_ld_reload_flag='-r'
5733fi
5734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5735$as_echo "$lt_cv_ld_reload_flag" >&6; }
5736reload_flag=$lt_cv_ld_reload_flag
5737case $reload_flag in
5738"" | " "*) ;;
5739*) reload_flag=" $reload_flag" ;;
5740esac
5741reload_cmds='$LD$reload_flag -o $output$reload_objs'
5742case $host_os in
5743  cygwin* | mingw* | pw32* | cegcc*)
5744    if test yes != "$GCC"; then
5745      reload_cmds=false
5746    fi
5747    ;;
5748  darwin*)
5749    if test yes = "$GCC"; then
5750      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5751    else
5752      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5753    fi
5754    ;;
5755esac
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765if test -n "$ac_tool_prefix"; then
5766  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5767set dummy ${ac_tool_prefix}objdump; ac_word=$2
5768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5769$as_echo_n "checking for $ac_word... " >&6; }
5770if ${ac_cv_prog_OBJDUMP+:} false; then :
5771  $as_echo_n "(cached) " >&6
5772else
5773  if test -n "$OBJDUMP"; then
5774  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5775else
5776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777for as_dir in $PATH
5778do
5779  IFS=$as_save_IFS
5780  test -z "$as_dir" && as_dir=.
5781    for ac_exec_ext in '' $ac_executable_extensions; do
5782  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5783    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5784    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5785    break 2
5786  fi
5787done
5788  done
5789IFS=$as_save_IFS
5790
5791fi
5792fi
5793OBJDUMP=$ac_cv_prog_OBJDUMP
5794if test -n "$OBJDUMP"; then
5795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5796$as_echo "$OBJDUMP" >&6; }
5797else
5798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5799$as_echo "no" >&6; }
5800fi
5801
5802
5803fi
5804if test -z "$ac_cv_prog_OBJDUMP"; then
5805  ac_ct_OBJDUMP=$OBJDUMP
5806  # Extract the first word of "objdump", so it can be a program name with args.
5807set dummy objdump; ac_word=$2
5808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5809$as_echo_n "checking for $ac_word... " >&6; }
5810if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5811  $as_echo_n "(cached) " >&6
5812else
5813  if test -n "$ac_ct_OBJDUMP"; then
5814  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5815else
5816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817for as_dir in $PATH
5818do
5819  IFS=$as_save_IFS
5820  test -z "$as_dir" && as_dir=.
5821    for ac_exec_ext in '' $ac_executable_extensions; do
5822  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5823    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5824    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5825    break 2
5826  fi
5827done
5828  done
5829IFS=$as_save_IFS
5830
5831fi
5832fi
5833ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5834if test -n "$ac_ct_OBJDUMP"; then
5835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5836$as_echo "$ac_ct_OBJDUMP" >&6; }
5837else
5838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5839$as_echo "no" >&6; }
5840fi
5841
5842  if test "x$ac_ct_OBJDUMP" = x; then
5843    OBJDUMP="false"
5844  else
5845    case $cross_compiling:$ac_tool_warned in
5846yes:)
5847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5849ac_tool_warned=yes ;;
5850esac
5851    OBJDUMP=$ac_ct_OBJDUMP
5852  fi
5853else
5854  OBJDUMP="$ac_cv_prog_OBJDUMP"
5855fi
5856
5857test -z "$OBJDUMP" && OBJDUMP=objdump
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5868$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5869if ${lt_cv_deplibs_check_method+:} false; then :
5870  $as_echo_n "(cached) " >&6
5871else
5872  lt_cv_file_magic_cmd='$MAGIC_CMD'
5873lt_cv_file_magic_test_file=
5874lt_cv_deplibs_check_method='unknown'
5875# Need to set the preceding variable on all platforms that support
5876# interlibrary dependencies.
5877# 'none' -- dependencies not supported.
5878# 'unknown' -- same as none, but documents that we really don't know.
5879# 'pass_all' -- all dependencies passed with no checks.
5880# 'test_compile' -- check by making test program.
5881# 'file_magic [[regex]]' -- check by looking for files in library path
5882# that responds to the $file_magic_cmd with a given extended regex.
5883# If you have 'file' or equivalent on your system and you're not sure
5884# whether 'pass_all' will *always* work, you probably want this one.
5885
5886case $host_os in
5887aix[4-9]*)
5888  lt_cv_deplibs_check_method=pass_all
5889  ;;
5890
5891beos*)
5892  lt_cv_deplibs_check_method=pass_all
5893  ;;
5894
5895bsdi[45]*)
5896  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5897  lt_cv_file_magic_cmd='/usr/bin/file -L'
5898  lt_cv_file_magic_test_file=/shlib/libc.so
5899  ;;
5900
5901cygwin*)
5902  # func_win32_libid is a shell function defined in ltmain.sh
5903  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5904  lt_cv_file_magic_cmd='func_win32_libid'
5905  ;;
5906
5907mingw* | pw32*)
5908  # Base MSYS/MinGW do not provide the 'file' command needed by
5909  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5910  # unless we find 'file', for example because we are cross-compiling.
5911  if ( file / ) >/dev/null 2>&1; then
5912    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5913    lt_cv_file_magic_cmd='func_win32_libid'
5914  else
5915    # Keep this pattern in sync with the one in func_win32_libid.
5916    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5917    lt_cv_file_magic_cmd='$OBJDUMP -f'
5918  fi
5919  ;;
5920
5921cegcc*)
5922  # use the weaker test based on 'objdump'. See mingw*.
5923  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5924  lt_cv_file_magic_cmd='$OBJDUMP -f'
5925  ;;
5926
5927darwin* | rhapsody*)
5928  lt_cv_deplibs_check_method=pass_all
5929  ;;
5930
5931freebsd* | dragonfly*)
5932  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5933    case $host_cpu in
5934    i*86 )
5935      # Not sure whether the presence of OpenBSD here was a mistake.
5936      # Let's accept both of them until this is cleared up.
5937      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5938      lt_cv_file_magic_cmd=/usr/bin/file
5939      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5940      ;;
5941    esac
5942  else
5943    lt_cv_deplibs_check_method=pass_all
5944  fi
5945  ;;
5946
5947haiku*)
5948  lt_cv_deplibs_check_method=pass_all
5949  ;;
5950
5951hpux10.20* | hpux11*)
5952  lt_cv_file_magic_cmd=/usr/bin/file
5953  case $host_cpu in
5954  ia64*)
5955    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5956    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5957    ;;
5958  hppa*64*)
5959    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]'
5960    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5961    ;;
5962  *)
5963    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5964    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5965    ;;
5966  esac
5967  ;;
5968
5969interix[3-9]*)
5970  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5971  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5972  ;;
5973
5974irix5* | irix6* | nonstopux*)
5975  case $LD in
5976  *-32|*"-32 ") libmagic=32-bit;;
5977  *-n32|*"-n32 ") libmagic=N32;;
5978  *-64|*"-64 ") libmagic=64-bit;;
5979  *) libmagic=never-match;;
5980  esac
5981  lt_cv_deplibs_check_method=pass_all
5982  ;;
5983
5984# This must be glibc/ELF.
5985linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5986  lt_cv_deplibs_check_method=pass_all
5987  ;;
5988
5989netbsd*)
5990  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5991    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5992  else
5993    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5994  fi
5995  ;;
5996
5997newos6*)
5998  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5999  lt_cv_file_magic_cmd=/usr/bin/file
6000  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6001  ;;
6002
6003*nto* | *qnx*)
6004  lt_cv_deplibs_check_method=pass_all
6005  ;;
6006
6007openbsd* | bitrig*)
6008  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6009    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6010  else
6011    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6012  fi
6013  ;;
6014
6015osf3* | osf4* | osf5*)
6016  lt_cv_deplibs_check_method=pass_all
6017  ;;
6018
6019rdos*)
6020  lt_cv_deplibs_check_method=pass_all
6021  ;;
6022
6023solaris*)
6024  lt_cv_deplibs_check_method=pass_all
6025  ;;
6026
6027sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6028  lt_cv_deplibs_check_method=pass_all
6029  ;;
6030
6031sysv4 | sysv4.3*)
6032  case $host_vendor in
6033  motorola)
6034    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]'
6035    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6036    ;;
6037  ncr)
6038    lt_cv_deplibs_check_method=pass_all
6039    ;;
6040  sequent)
6041    lt_cv_file_magic_cmd='/bin/file'
6042    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6043    ;;
6044  sni)
6045    lt_cv_file_magic_cmd='/bin/file'
6046    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6047    lt_cv_file_magic_test_file=/lib/libc.so
6048    ;;
6049  siemens)
6050    lt_cv_deplibs_check_method=pass_all
6051    ;;
6052  pc)
6053    lt_cv_deplibs_check_method=pass_all
6054    ;;
6055  esac
6056  ;;
6057
6058tpf*)
6059  lt_cv_deplibs_check_method=pass_all
6060  ;;
6061os2*)
6062  lt_cv_deplibs_check_method=pass_all
6063  ;;
6064esac
6065
6066fi
6067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6068$as_echo "$lt_cv_deplibs_check_method" >&6; }
6069
6070file_magic_glob=
6071want_nocaseglob=no
6072if test "$build" = "$host"; then
6073  case $host_os in
6074  mingw* | pw32*)
6075    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6076      want_nocaseglob=yes
6077    else
6078      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6079    fi
6080    ;;
6081  esac
6082fi
6083
6084file_magic_cmd=$lt_cv_file_magic_cmd
6085deplibs_check_method=$lt_cv_deplibs_check_method
6086test -z "$deplibs_check_method" && deplibs_check_method=unknown
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109if test -n "$ac_tool_prefix"; then
6110  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6111set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6113$as_echo_n "checking for $ac_word... " >&6; }
6114if ${ac_cv_prog_DLLTOOL+:} false; then :
6115  $as_echo_n "(cached) " >&6
6116else
6117  if test -n "$DLLTOOL"; then
6118  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6119else
6120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121for as_dir in $PATH
6122do
6123  IFS=$as_save_IFS
6124  test -z "$as_dir" && as_dir=.
6125    for ac_exec_ext in '' $ac_executable_extensions; do
6126  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6127    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6128    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6129    break 2
6130  fi
6131done
6132  done
6133IFS=$as_save_IFS
6134
6135fi
6136fi
6137DLLTOOL=$ac_cv_prog_DLLTOOL
6138if test -n "$DLLTOOL"; then
6139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6140$as_echo "$DLLTOOL" >&6; }
6141else
6142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6143$as_echo "no" >&6; }
6144fi
6145
6146
6147fi
6148if test -z "$ac_cv_prog_DLLTOOL"; then
6149  ac_ct_DLLTOOL=$DLLTOOL
6150  # Extract the first word of "dlltool", so it can be a program name with args.
6151set dummy dlltool; ac_word=$2
6152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6153$as_echo_n "checking for $ac_word... " >&6; }
6154if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6155  $as_echo_n "(cached) " >&6
6156else
6157  if test -n "$ac_ct_DLLTOOL"; then
6158  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6159else
6160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161for as_dir in $PATH
6162do
6163  IFS=$as_save_IFS
6164  test -z "$as_dir" && as_dir=.
6165    for ac_exec_ext in '' $ac_executable_extensions; do
6166  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6167    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6168    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6169    break 2
6170  fi
6171done
6172  done
6173IFS=$as_save_IFS
6174
6175fi
6176fi
6177ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6178if test -n "$ac_ct_DLLTOOL"; then
6179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6180$as_echo "$ac_ct_DLLTOOL" >&6; }
6181else
6182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6183$as_echo "no" >&6; }
6184fi
6185
6186  if test "x$ac_ct_DLLTOOL" = x; then
6187    DLLTOOL="false"
6188  else
6189    case $cross_compiling:$ac_tool_warned in
6190yes:)
6191{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6192$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6193ac_tool_warned=yes ;;
6194esac
6195    DLLTOOL=$ac_ct_DLLTOOL
6196  fi
6197else
6198  DLLTOOL="$ac_cv_prog_DLLTOOL"
6199fi
6200
6201test -z "$DLLTOOL" && DLLTOOL=dlltool
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6213$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6214if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6215  $as_echo_n "(cached) " >&6
6216else
6217  lt_cv_sharedlib_from_linklib_cmd='unknown'
6218
6219case $host_os in
6220cygwin* | mingw* | pw32* | cegcc*)
6221  # two different shell functions defined in ltmain.sh;
6222  # decide which one to use based on capabilities of $DLLTOOL
6223  case `$DLLTOOL --help 2>&1` in
6224  *--identify-strict*)
6225    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6226    ;;
6227  *)
6228    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6229    ;;
6230  esac
6231  ;;
6232*)
6233  # fallback: assume linklib IS sharedlib
6234  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6235  ;;
6236esac
6237
6238fi
6239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6240$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6241sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6242test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6243
6244
6245
6246
6247
6248
6249
6250if test -n "$ac_tool_prefix"; then
6251  for ac_prog in ar
6252  do
6253    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6254set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6256$as_echo_n "checking for $ac_word... " >&6; }
6257if ${ac_cv_prog_AR+:} false; then :
6258  $as_echo_n "(cached) " >&6
6259else
6260  if test -n "$AR"; then
6261  ac_cv_prog_AR="$AR" # Let the user override the test.
6262else
6263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264for as_dir in $PATH
6265do
6266  IFS=$as_save_IFS
6267  test -z "$as_dir" && as_dir=.
6268    for ac_exec_ext in '' $ac_executable_extensions; do
6269  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6270    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6271    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6272    break 2
6273  fi
6274done
6275  done
6276IFS=$as_save_IFS
6277
6278fi
6279fi
6280AR=$ac_cv_prog_AR
6281if test -n "$AR"; then
6282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6283$as_echo "$AR" >&6; }
6284else
6285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6286$as_echo "no" >&6; }
6287fi
6288
6289
6290    test -n "$AR" && break
6291  done
6292fi
6293if test -z "$AR"; then
6294  ac_ct_AR=$AR
6295  for ac_prog in ar
6296do
6297  # Extract the first word of "$ac_prog", so it can be a program name with args.
6298set dummy $ac_prog; ac_word=$2
6299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6300$as_echo_n "checking for $ac_word... " >&6; }
6301if ${ac_cv_prog_ac_ct_AR+:} false; then :
6302  $as_echo_n "(cached) " >&6
6303else
6304  if test -n "$ac_ct_AR"; then
6305  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6306else
6307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308for as_dir in $PATH
6309do
6310  IFS=$as_save_IFS
6311  test -z "$as_dir" && as_dir=.
6312    for ac_exec_ext in '' $ac_executable_extensions; do
6313  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6314    ac_cv_prog_ac_ct_AR="$ac_prog"
6315    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6316    break 2
6317  fi
6318done
6319  done
6320IFS=$as_save_IFS
6321
6322fi
6323fi
6324ac_ct_AR=$ac_cv_prog_ac_ct_AR
6325if test -n "$ac_ct_AR"; then
6326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6327$as_echo "$ac_ct_AR" >&6; }
6328else
6329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6330$as_echo "no" >&6; }
6331fi
6332
6333
6334  test -n "$ac_ct_AR" && break
6335done
6336
6337  if test "x$ac_ct_AR" = x; then
6338    AR="false"
6339  else
6340    case $cross_compiling:$ac_tool_warned in
6341yes:)
6342{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6343$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6344ac_tool_warned=yes ;;
6345esac
6346    AR=$ac_ct_AR
6347  fi
6348fi
6349
6350: ${AR=ar}
6351: ${AR_FLAGS=cru}
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6364$as_echo_n "checking for archiver @FILE support... " >&6; }
6365if ${lt_cv_ar_at_file+:} false; then :
6366  $as_echo_n "(cached) " >&6
6367else
6368  lt_cv_ar_at_file=no
6369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6370/* end confdefs.h.  */
6371
6372int
6373main ()
6374{
6375
6376  ;
6377  return 0;
6378}
6379_ACEOF
6380if ac_fn_c_try_compile "$LINENO"; then :
6381  echo conftest.$ac_objext > conftest.lst
6382      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6383      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6384  (eval $lt_ar_try) 2>&5
6385  ac_status=$?
6386  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6387  test $ac_status = 0; }
6388      if test 0 -eq "$ac_status"; then
6389	# Ensure the archiver fails upon bogus file names.
6390	rm -f conftest.$ac_objext libconftest.a
6391	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6392  (eval $lt_ar_try) 2>&5
6393  ac_status=$?
6394  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6395  test $ac_status = 0; }
6396	if test 0 -ne "$ac_status"; then
6397          lt_cv_ar_at_file=@
6398        fi
6399      fi
6400      rm -f conftest.* libconftest.a
6401
6402fi
6403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6404
6405fi
6406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6407$as_echo "$lt_cv_ar_at_file" >&6; }
6408
6409if test no = "$lt_cv_ar_at_file"; then
6410  archiver_list_spec=
6411else
6412  archiver_list_spec=$lt_cv_ar_at_file
6413fi
6414
6415
6416
6417
6418
6419
6420
6421if test -n "$ac_tool_prefix"; then
6422  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6423set dummy ${ac_tool_prefix}strip; ac_word=$2
6424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6425$as_echo_n "checking for $ac_word... " >&6; }
6426if ${ac_cv_prog_STRIP+:} false; then :
6427  $as_echo_n "(cached) " >&6
6428else
6429  if test -n "$STRIP"; then
6430  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6431else
6432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6433for as_dir in $PATH
6434do
6435  IFS=$as_save_IFS
6436  test -z "$as_dir" && as_dir=.
6437    for ac_exec_ext in '' $ac_executable_extensions; do
6438  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6439    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6440    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6441    break 2
6442  fi
6443done
6444  done
6445IFS=$as_save_IFS
6446
6447fi
6448fi
6449STRIP=$ac_cv_prog_STRIP
6450if test -n "$STRIP"; then
6451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6452$as_echo "$STRIP" >&6; }
6453else
6454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6455$as_echo "no" >&6; }
6456fi
6457
6458
6459fi
6460if test -z "$ac_cv_prog_STRIP"; then
6461  ac_ct_STRIP=$STRIP
6462  # Extract the first word of "strip", so it can be a program name with args.
6463set dummy strip; ac_word=$2
6464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6465$as_echo_n "checking for $ac_word... " >&6; }
6466if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6467  $as_echo_n "(cached) " >&6
6468else
6469  if test -n "$ac_ct_STRIP"; then
6470  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6471else
6472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473for as_dir in $PATH
6474do
6475  IFS=$as_save_IFS
6476  test -z "$as_dir" && as_dir=.
6477    for ac_exec_ext in '' $ac_executable_extensions; do
6478  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6479    ac_cv_prog_ac_ct_STRIP="strip"
6480    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6481    break 2
6482  fi
6483done
6484  done
6485IFS=$as_save_IFS
6486
6487fi
6488fi
6489ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6490if test -n "$ac_ct_STRIP"; then
6491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6492$as_echo "$ac_ct_STRIP" >&6; }
6493else
6494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6495$as_echo "no" >&6; }
6496fi
6497
6498  if test "x$ac_ct_STRIP" = x; then
6499    STRIP=":"
6500  else
6501    case $cross_compiling:$ac_tool_warned in
6502yes:)
6503{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6504$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6505ac_tool_warned=yes ;;
6506esac
6507    STRIP=$ac_ct_STRIP
6508  fi
6509else
6510  STRIP="$ac_cv_prog_STRIP"
6511fi
6512
6513test -z "$STRIP" && STRIP=:
6514
6515
6516
6517
6518
6519
6520if test -n "$ac_tool_prefix"; then
6521  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6522set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6524$as_echo_n "checking for $ac_word... " >&6; }
6525if ${ac_cv_prog_RANLIB+:} false; then :
6526  $as_echo_n "(cached) " >&6
6527else
6528  if test -n "$RANLIB"; then
6529  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6530else
6531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532for as_dir in $PATH
6533do
6534  IFS=$as_save_IFS
6535  test -z "$as_dir" && as_dir=.
6536    for ac_exec_ext in '' $ac_executable_extensions; do
6537  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6538    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6539    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6540    break 2
6541  fi
6542done
6543  done
6544IFS=$as_save_IFS
6545
6546fi
6547fi
6548RANLIB=$ac_cv_prog_RANLIB
6549if test -n "$RANLIB"; then
6550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6551$as_echo "$RANLIB" >&6; }
6552else
6553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6554$as_echo "no" >&6; }
6555fi
6556
6557
6558fi
6559if test -z "$ac_cv_prog_RANLIB"; then
6560  ac_ct_RANLIB=$RANLIB
6561  # Extract the first word of "ranlib", so it can be a program name with args.
6562set dummy ranlib; ac_word=$2
6563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6564$as_echo_n "checking for $ac_word... " >&6; }
6565if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6566  $as_echo_n "(cached) " >&6
6567else
6568  if test -n "$ac_ct_RANLIB"; then
6569  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6570else
6571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572for as_dir in $PATH
6573do
6574  IFS=$as_save_IFS
6575  test -z "$as_dir" && as_dir=.
6576    for ac_exec_ext in '' $ac_executable_extensions; do
6577  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6578    ac_cv_prog_ac_ct_RANLIB="ranlib"
6579    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6580    break 2
6581  fi
6582done
6583  done
6584IFS=$as_save_IFS
6585
6586fi
6587fi
6588ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6589if test -n "$ac_ct_RANLIB"; then
6590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6591$as_echo "$ac_ct_RANLIB" >&6; }
6592else
6593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6594$as_echo "no" >&6; }
6595fi
6596
6597  if test "x$ac_ct_RANLIB" = x; then
6598    RANLIB=":"
6599  else
6600    case $cross_compiling:$ac_tool_warned in
6601yes:)
6602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6604ac_tool_warned=yes ;;
6605esac
6606    RANLIB=$ac_ct_RANLIB
6607  fi
6608else
6609  RANLIB="$ac_cv_prog_RANLIB"
6610fi
6611
6612test -z "$RANLIB" && RANLIB=:
6613
6614
6615
6616
6617
6618
6619# Determine commands to create old-style static archives.
6620old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6621old_postinstall_cmds='chmod 644 $oldlib'
6622old_postuninstall_cmds=
6623
6624if test -n "$RANLIB"; then
6625  case $host_os in
6626  bitrig* | openbsd*)
6627    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6628    ;;
6629  *)
6630    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6631    ;;
6632  esac
6633  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6634fi
6635
6636case $host_os in
6637  darwin*)
6638    lock_old_archive_extraction=yes ;;
6639  *)
6640    lock_old_archive_extraction=no ;;
6641esac
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681# If no C compiler was specified, use CC.
6682LTCC=${LTCC-"$CC"}
6683
6684# If no C compiler flags were specified, use CFLAGS.
6685LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6686
6687# Allow CC to be a program name with arguments.
6688compiler=$CC
6689
6690
6691# Check for command to grab the raw symbol name followed by C symbol from nm.
6692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6693$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6694if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6695  $as_echo_n "(cached) " >&6
6696else
6697
6698# These are sane defaults that work on at least a few old systems.
6699# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6700
6701# Character class describing NM global symbol codes.
6702symcode='[BCDEGRST]'
6703
6704# Regexp to match symbols that can be accessed directly from C.
6705sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6706
6707# Define system-specific variables.
6708case $host_os in
6709aix*)
6710  symcode='[BCDT]'
6711  ;;
6712cygwin* | mingw* | pw32* | cegcc*)
6713  symcode='[ABCDGISTW]'
6714  ;;
6715hpux*)
6716  if test ia64 = "$host_cpu"; then
6717    symcode='[ABCDEGRST]'
6718  fi
6719  ;;
6720irix* | nonstopux*)
6721  symcode='[BCDEGRST]'
6722  ;;
6723osf*)
6724  symcode='[BCDEGQRST]'
6725  ;;
6726solaris*)
6727  symcode='[BDRT]'
6728  ;;
6729sco3.2v5*)
6730  symcode='[DT]'
6731  ;;
6732sysv4.2uw2*)
6733  symcode='[DT]'
6734  ;;
6735sysv5* | sco5v6* | unixware* | OpenUNIX*)
6736  symcode='[ABDT]'
6737  ;;
6738sysv4)
6739  symcode='[DFNSTU]'
6740  ;;
6741esac
6742
6743# If we're using GNU nm, then use its standard symbol codes.
6744case `$NM -V 2>&1` in
6745*GNU* | *'with BFD'*)
6746  symcode='[ABCDGIRSTW]' ;;
6747esac
6748
6749if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6750  # Gets list of data symbols to import.
6751  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6752  # Adjust the below global symbol transforms to fixup imported variables.
6753  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6754  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6755  lt_c_name_lib_hook="\
6756  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6757  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6758else
6759  # Disable hooks by default.
6760  lt_cv_sys_global_symbol_to_import=
6761  lt_cdecl_hook=
6762  lt_c_name_hook=
6763  lt_c_name_lib_hook=
6764fi
6765
6766# Transform an extracted symbol line into a proper C declaration.
6767# Some systems (esp. on ia64) link data and code symbols differently,
6768# so use this general approach.
6769lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6770$lt_cdecl_hook\
6771" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6772" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6773
6774# Transform an extracted symbol line into symbol name and symbol address
6775lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6776$lt_c_name_hook\
6777" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6778" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6779
6780# Transform an extracted symbol line into symbol name with lib prefix and
6781# symbol address.
6782lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6783$lt_c_name_lib_hook\
6784" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6785" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6786" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6787
6788# Handle CRLF in mingw tool chain
6789opt_cr=
6790case $build_os in
6791mingw*)
6792  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6793  ;;
6794esac
6795
6796# Try without a prefix underscore, then with it.
6797for ac_symprfx in "" "_"; do
6798
6799  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6800  symxfrm="\\1 $ac_symprfx\\2 \\2"
6801
6802  # Write the raw and C identifiers.
6803  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6804    # Fake it for dumpbin and say T for any non-static function,
6805    # D for any global variable and I for any imported variable.
6806    # Also find C++ and __fastcall symbols from MSVC++,
6807    # which start with @ or ?.
6808    lt_cv_sys_global_symbol_pipe="$AWK '"\
6809"     {last_section=section; section=\$ 3};"\
6810"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6811"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6812"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6813"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6814"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6815"     \$ 0!~/External *\|/{next};"\
6816"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6817"     {if(hide[section]) next};"\
6818"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6819"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6820"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6821"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6822"     ' prfx=^$ac_symprfx"
6823  else
6824    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6825  fi
6826  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6827
6828  # Check to see that the pipe works correctly.
6829  pipe_works=no
6830
6831  rm -f conftest*
6832  cat > conftest.$ac_ext <<_LT_EOF
6833#ifdef __cplusplus
6834extern "C" {
6835#endif
6836char nm_test_var;
6837void nm_test_func(void);
6838void nm_test_func(void){}
6839#ifdef __cplusplus
6840}
6841#endif
6842int main(){nm_test_var='a';nm_test_func();return(0);}
6843_LT_EOF
6844
6845  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6846  (eval $ac_compile) 2>&5
6847  ac_status=$?
6848  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6849  test $ac_status = 0; }; then
6850    # Now try to grab the symbols.
6851    nlist=conftest.nm
6852    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6853  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6854  ac_status=$?
6855  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6856  test $ac_status = 0; } && test -s "$nlist"; then
6857      # Try sorting and uniquifying the output.
6858      if sort "$nlist" | uniq > "$nlist"T; then
6859	mv -f "$nlist"T "$nlist"
6860      else
6861	rm -f "$nlist"T
6862      fi
6863
6864      # Make sure that we snagged all the symbols we need.
6865      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6866	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6867	  cat <<_LT_EOF > conftest.$ac_ext
6868/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6869#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6870/* DATA imports from DLLs on WIN32 can't be const, because runtime
6871   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6872# define LT_DLSYM_CONST
6873#elif defined __osf__
6874/* This system does not cope well with relocations in const data.  */
6875# define LT_DLSYM_CONST
6876#else
6877# define LT_DLSYM_CONST const
6878#endif
6879
6880#ifdef __cplusplus
6881extern "C" {
6882#endif
6883
6884_LT_EOF
6885	  # Now generate the symbol file.
6886	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6887
6888	  cat <<_LT_EOF >> conftest.$ac_ext
6889
6890/* The mapping between symbol names and symbols.  */
6891LT_DLSYM_CONST struct {
6892  const char *name;
6893  void       *address;
6894}
6895lt__PROGRAM__LTX_preloaded_symbols[] =
6896{
6897  { "@PROGRAM@", (void *) 0 },
6898_LT_EOF
6899	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6900	  cat <<\_LT_EOF >> conftest.$ac_ext
6901  {0, (void *) 0}
6902};
6903
6904/* This works around a problem in FreeBSD linker */
6905#ifdef FREEBSD_WORKAROUND
6906static const void *lt_preloaded_setup() {
6907  return lt__PROGRAM__LTX_preloaded_symbols;
6908}
6909#endif
6910
6911#ifdef __cplusplus
6912}
6913#endif
6914_LT_EOF
6915	  # Now try linking the two files.
6916	  mv conftest.$ac_objext conftstm.$ac_objext
6917	  lt_globsym_save_LIBS=$LIBS
6918	  lt_globsym_save_CFLAGS=$CFLAGS
6919	  LIBS=conftstm.$ac_objext
6920	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6921	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6922  (eval $ac_link) 2>&5
6923  ac_status=$?
6924  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6925  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6926	    pipe_works=yes
6927	  fi
6928	  LIBS=$lt_globsym_save_LIBS
6929	  CFLAGS=$lt_globsym_save_CFLAGS
6930	else
6931	  echo "cannot find nm_test_func in $nlist" >&5
6932	fi
6933      else
6934	echo "cannot find nm_test_var in $nlist" >&5
6935      fi
6936    else
6937      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6938    fi
6939  else
6940    echo "$progname: failed program was:" >&5
6941    cat conftest.$ac_ext >&5
6942  fi
6943  rm -rf conftest* conftst*
6944
6945  # Do not use the global_symbol_pipe unless it works.
6946  if test yes = "$pipe_works"; then
6947    break
6948  else
6949    lt_cv_sys_global_symbol_pipe=
6950  fi
6951done
6952
6953fi
6954
6955if test -z "$lt_cv_sys_global_symbol_pipe"; then
6956  lt_cv_sys_global_symbol_to_cdecl=
6957fi
6958if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6960$as_echo "failed" >&6; }
6961else
6962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6963$as_echo "ok" >&6; }
6964fi
6965
6966# Response file support.
6967if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6968  nm_file_list_spec='@'
6969elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6970  nm_file_list_spec='@'
6971fi
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7010$as_echo_n "checking for sysroot... " >&6; }
7011
7012# Check whether --with-sysroot was given.
7013if test "${with_sysroot+set}" = set; then :
7014  withval=$with_sysroot;
7015else
7016  with_sysroot=no
7017fi
7018
7019
7020lt_sysroot=
7021case $with_sysroot in #(
7022 yes)
7023   if test yes = "$GCC"; then
7024     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7025   fi
7026   ;; #(
7027 /*)
7028   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7029   ;; #(
7030 no|'')
7031   ;; #(
7032 *)
7033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7034$as_echo "$with_sysroot" >&6; }
7035   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7036   ;;
7037esac
7038
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7040$as_echo "${lt_sysroot:-no}" >&6; }
7041
7042
7043
7044
7045
7046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7047$as_echo_n "checking for a working dd... " >&6; }
7048if ${ac_cv_path_lt_DD+:} false; then :
7049  $as_echo_n "(cached) " >&6
7050else
7051  printf 0123456789abcdef0123456789abcdef >conftest.i
7052cat conftest.i conftest.i >conftest2.i
7053: ${lt_DD:=$DD}
7054if test -z "$lt_DD"; then
7055  ac_path_lt_DD_found=false
7056  # Loop through the user's path and test for each of PROGNAME-LIST
7057  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058for as_dir in $PATH
7059do
7060  IFS=$as_save_IFS
7061  test -z "$as_dir" && as_dir=.
7062    for ac_prog in dd; do
7063    for ac_exec_ext in '' $ac_executable_extensions; do
7064      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7065      as_fn_executable_p "$ac_path_lt_DD" || continue
7066if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7067  cmp -s conftest.i conftest.out \
7068  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7069fi
7070      $ac_path_lt_DD_found && break 3
7071    done
7072  done
7073  done
7074IFS=$as_save_IFS
7075  if test -z "$ac_cv_path_lt_DD"; then
7076    :
7077  fi
7078else
7079  ac_cv_path_lt_DD=$lt_DD
7080fi
7081
7082rm -f conftest.i conftest2.i conftest.out
7083fi
7084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7085$as_echo "$ac_cv_path_lt_DD" >&6; }
7086
7087
7088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7089$as_echo_n "checking how to truncate binary pipes... " >&6; }
7090if ${lt_cv_truncate_bin+:} false; then :
7091  $as_echo_n "(cached) " >&6
7092else
7093  printf 0123456789abcdef0123456789abcdef >conftest.i
7094cat conftest.i conftest.i >conftest2.i
7095lt_cv_truncate_bin=
7096if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7097  cmp -s conftest.i conftest.out \
7098  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7099fi
7100rm -f conftest.i conftest2.i conftest.out
7101test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7102fi
7103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7104$as_echo "$lt_cv_truncate_bin" >&6; }
7105
7106
7107
7108
7109
7110
7111
7112# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7113func_cc_basename ()
7114{
7115    for cc_temp in $*""; do
7116      case $cc_temp in
7117        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7118        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7119        \-*) ;;
7120        *) break;;
7121      esac
7122    done
7123    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7124}
7125
7126# Check whether --enable-libtool-lock was given.
7127if test "${enable_libtool_lock+set}" = set; then :
7128  enableval=$enable_libtool_lock;
7129fi
7130
7131test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7132
7133# Some flags need to be propagated to the compiler or linker for good
7134# libtool support.
7135case $host in
7136ia64-*-hpux*)
7137  # Find out what ABI is being produced by ac_compile, and set mode
7138  # options accordingly.
7139  echo 'int i;' > conftest.$ac_ext
7140  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7141  (eval $ac_compile) 2>&5
7142  ac_status=$?
7143  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7144  test $ac_status = 0; }; then
7145    case `/usr/bin/file conftest.$ac_objext` in
7146      *ELF-32*)
7147	HPUX_IA64_MODE=32
7148	;;
7149      *ELF-64*)
7150	HPUX_IA64_MODE=64
7151	;;
7152    esac
7153  fi
7154  rm -rf conftest*
7155  ;;
7156*-*-irix6*)
7157  # Find out what ABI is being produced by ac_compile, and set linker
7158  # options accordingly.
7159  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7160  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7161  (eval $ac_compile) 2>&5
7162  ac_status=$?
7163  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7164  test $ac_status = 0; }; then
7165    if test yes = "$lt_cv_prog_gnu_ld"; then
7166      case `/usr/bin/file conftest.$ac_objext` in
7167	*32-bit*)
7168	  LD="${LD-ld} -melf32bsmip"
7169	  ;;
7170	*N32*)
7171	  LD="${LD-ld} -melf32bmipn32"
7172	  ;;
7173	*64-bit*)
7174	  LD="${LD-ld} -melf64bmip"
7175	;;
7176      esac
7177    else
7178      case `/usr/bin/file conftest.$ac_objext` in
7179	*32-bit*)
7180	  LD="${LD-ld} -32"
7181	  ;;
7182	*N32*)
7183	  LD="${LD-ld} -n32"
7184	  ;;
7185	*64-bit*)
7186	  LD="${LD-ld} -64"
7187	  ;;
7188      esac
7189    fi
7190  fi
7191  rm -rf conftest*
7192  ;;
7193
7194mips64*-*linux*)
7195  # Find out what ABI is being produced by ac_compile, and set linker
7196  # options accordingly.
7197  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7198  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7199  (eval $ac_compile) 2>&5
7200  ac_status=$?
7201  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7202  test $ac_status = 0; }; then
7203    emul=elf
7204    case `/usr/bin/file conftest.$ac_objext` in
7205      *32-bit*)
7206	emul="${emul}32"
7207	;;
7208      *64-bit*)
7209	emul="${emul}64"
7210	;;
7211    esac
7212    case `/usr/bin/file conftest.$ac_objext` in
7213      *MSB*)
7214	emul="${emul}btsmip"
7215	;;
7216      *LSB*)
7217	emul="${emul}ltsmip"
7218	;;
7219    esac
7220    case `/usr/bin/file conftest.$ac_objext` in
7221      *N32*)
7222	emul="${emul}n32"
7223	;;
7224    esac
7225    LD="${LD-ld} -m $emul"
7226  fi
7227  rm -rf conftest*
7228  ;;
7229
7230x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7231s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7232  # Find out what ABI is being produced by ac_compile, and set linker
7233  # options accordingly.  Note that the listed cases only cover the
7234  # situations where additional linker options are needed (such as when
7235  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7236  # vice versa); the common cases where no linker options are needed do
7237  # not appear in the list.
7238  echo 'int i;' > conftest.$ac_ext
7239  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7240  (eval $ac_compile) 2>&5
7241  ac_status=$?
7242  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7243  test $ac_status = 0; }; then
7244    case `/usr/bin/file conftest.o` in
7245      *32-bit*)
7246	case $host in
7247	  x86_64-*kfreebsd*-gnu)
7248	    LD="${LD-ld} -m elf_i386_fbsd"
7249	    ;;
7250	  x86_64-*linux*)
7251	    case `/usr/bin/file conftest.o` in
7252	      *x86-64*)
7253		LD="${LD-ld} -m elf32_x86_64"
7254		;;
7255	      *)
7256		LD="${LD-ld} -m elf_i386"
7257		;;
7258	    esac
7259	    ;;
7260	  powerpc64le-*linux*)
7261	    LD="${LD-ld} -m elf32lppclinux"
7262	    ;;
7263	  powerpc64-*linux*)
7264	    LD="${LD-ld} -m elf32ppclinux"
7265	    ;;
7266	  s390x-*linux*)
7267	    LD="${LD-ld} -m elf_s390"
7268	    ;;
7269	  sparc64-*linux*)
7270	    LD="${LD-ld} -m elf32_sparc"
7271	    ;;
7272	esac
7273	;;
7274      *64-bit*)
7275	case $host in
7276	  x86_64-*kfreebsd*-gnu)
7277	    LD="${LD-ld} -m elf_x86_64_fbsd"
7278	    ;;
7279	  x86_64-*linux*)
7280	    LD="${LD-ld} -m elf_x86_64"
7281	    ;;
7282	  powerpcle-*linux*)
7283	    LD="${LD-ld} -m elf64lppc"
7284	    ;;
7285	  powerpc-*linux*)
7286	    LD="${LD-ld} -m elf64ppc"
7287	    ;;
7288	  s390*-*linux*|s390*-*tpf*)
7289	    LD="${LD-ld} -m elf64_s390"
7290	    ;;
7291	  sparc*-*linux*)
7292	    LD="${LD-ld} -m elf64_sparc"
7293	    ;;
7294	esac
7295	;;
7296    esac
7297  fi
7298  rm -rf conftest*
7299  ;;
7300
7301*-*-sco3.2v5*)
7302  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7303  SAVE_CFLAGS=$CFLAGS
7304  CFLAGS="$CFLAGS -belf"
7305  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7306$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7307if ${lt_cv_cc_needs_belf+:} false; then :
7308  $as_echo_n "(cached) " >&6
7309else
7310  ac_ext=c
7311ac_cpp='$CPP $CPPFLAGS'
7312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7314ac_compiler_gnu=$ac_cv_c_compiler_gnu
7315
7316     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317/* end confdefs.h.  */
7318
7319int
7320main ()
7321{
7322
7323  ;
7324  return 0;
7325}
7326_ACEOF
7327if ac_fn_c_try_link "$LINENO"; then :
7328  lt_cv_cc_needs_belf=yes
7329else
7330  lt_cv_cc_needs_belf=no
7331fi
7332rm -f core conftest.err conftest.$ac_objext \
7333    conftest$ac_exeext conftest.$ac_ext
7334     ac_ext=c
7335ac_cpp='$CPP $CPPFLAGS'
7336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7338ac_compiler_gnu=$ac_cv_c_compiler_gnu
7339
7340fi
7341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7342$as_echo "$lt_cv_cc_needs_belf" >&6; }
7343  if test yes != "$lt_cv_cc_needs_belf"; then
7344    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7345    CFLAGS=$SAVE_CFLAGS
7346  fi
7347  ;;
7348*-*solaris*)
7349  # Find out what ABI is being produced by ac_compile, and set linker
7350  # options accordingly.
7351  echo 'int i;' > conftest.$ac_ext
7352  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7353  (eval $ac_compile) 2>&5
7354  ac_status=$?
7355  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7356  test $ac_status = 0; }; then
7357    case `/usr/bin/file conftest.o` in
7358    *64-bit*)
7359      case $lt_cv_prog_gnu_ld in
7360      yes*)
7361        case $host in
7362        i?86-*-solaris*|x86_64-*-solaris*)
7363          LD="${LD-ld} -m elf_x86_64"
7364          ;;
7365        sparc*-*-solaris*)
7366          LD="${LD-ld} -m elf64_sparc"
7367          ;;
7368        esac
7369        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7370        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7371          LD=${LD-ld}_sol2
7372        fi
7373        ;;
7374      *)
7375	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7376	  LD="${LD-ld} -64"
7377	fi
7378	;;
7379      esac
7380      ;;
7381    esac
7382  fi
7383  rm -rf conftest*
7384  ;;
7385esac
7386
7387need_locks=$enable_libtool_lock
7388
7389if test -n "$ac_tool_prefix"; then
7390  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7391set dummy ${ac_tool_prefix}mt; ac_word=$2
7392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7393$as_echo_n "checking for $ac_word... " >&6; }
7394if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7395  $as_echo_n "(cached) " >&6
7396else
7397  if test -n "$MANIFEST_TOOL"; then
7398  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7399else
7400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401for as_dir in $PATH
7402do
7403  IFS=$as_save_IFS
7404  test -z "$as_dir" && as_dir=.
7405    for ac_exec_ext in '' $ac_executable_extensions; do
7406  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7407    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7408    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7409    break 2
7410  fi
7411done
7412  done
7413IFS=$as_save_IFS
7414
7415fi
7416fi
7417MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7418if test -n "$MANIFEST_TOOL"; then
7419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7420$as_echo "$MANIFEST_TOOL" >&6; }
7421else
7422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423$as_echo "no" >&6; }
7424fi
7425
7426
7427fi
7428if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7429  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7430  # Extract the first word of "mt", so it can be a program name with args.
7431set dummy mt; ac_word=$2
7432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7433$as_echo_n "checking for $ac_word... " >&6; }
7434if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7435  $as_echo_n "(cached) " >&6
7436else
7437  if test -n "$ac_ct_MANIFEST_TOOL"; then
7438  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7439else
7440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441for as_dir in $PATH
7442do
7443  IFS=$as_save_IFS
7444  test -z "$as_dir" && as_dir=.
7445    for ac_exec_ext in '' $ac_executable_extensions; do
7446  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7447    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7448    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7449    break 2
7450  fi
7451done
7452  done
7453IFS=$as_save_IFS
7454
7455fi
7456fi
7457ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7458if test -n "$ac_ct_MANIFEST_TOOL"; then
7459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7460$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7461else
7462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7463$as_echo "no" >&6; }
7464fi
7465
7466  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7467    MANIFEST_TOOL=":"
7468  else
7469    case $cross_compiling:$ac_tool_warned in
7470yes:)
7471{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7472$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7473ac_tool_warned=yes ;;
7474esac
7475    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7476  fi
7477else
7478  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7479fi
7480
7481test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7483$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7484if ${lt_cv_path_mainfest_tool+:} false; then :
7485  $as_echo_n "(cached) " >&6
7486else
7487  lt_cv_path_mainfest_tool=no
7488  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7489  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7490  cat conftest.err >&5
7491  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7492    lt_cv_path_mainfest_tool=yes
7493  fi
7494  rm -f conftest*
7495fi
7496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7497$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7498if test yes != "$lt_cv_path_mainfest_tool"; then
7499  MANIFEST_TOOL=:
7500fi
7501
7502
7503
7504
7505
7506
7507  case $host_os in
7508    rhapsody* | darwin*)
7509    if test -n "$ac_tool_prefix"; then
7510  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7511set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7513$as_echo_n "checking for $ac_word... " >&6; }
7514if ${ac_cv_prog_DSYMUTIL+:} false; then :
7515  $as_echo_n "(cached) " >&6
7516else
7517  if test -n "$DSYMUTIL"; then
7518  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7519else
7520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521for as_dir in $PATH
7522do
7523  IFS=$as_save_IFS
7524  test -z "$as_dir" && as_dir=.
7525    for ac_exec_ext in '' $ac_executable_extensions; do
7526  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7527    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7528    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7529    break 2
7530  fi
7531done
7532  done
7533IFS=$as_save_IFS
7534
7535fi
7536fi
7537DSYMUTIL=$ac_cv_prog_DSYMUTIL
7538if test -n "$DSYMUTIL"; then
7539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7540$as_echo "$DSYMUTIL" >&6; }
7541else
7542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7543$as_echo "no" >&6; }
7544fi
7545
7546
7547fi
7548if test -z "$ac_cv_prog_DSYMUTIL"; then
7549  ac_ct_DSYMUTIL=$DSYMUTIL
7550  # Extract the first word of "dsymutil", so it can be a program name with args.
7551set dummy dsymutil; ac_word=$2
7552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7553$as_echo_n "checking for $ac_word... " >&6; }
7554if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7555  $as_echo_n "(cached) " >&6
7556else
7557  if test -n "$ac_ct_DSYMUTIL"; then
7558  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7559else
7560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561for as_dir in $PATH
7562do
7563  IFS=$as_save_IFS
7564  test -z "$as_dir" && as_dir=.
7565    for ac_exec_ext in '' $ac_executable_extensions; do
7566  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7567    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7568    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7569    break 2
7570  fi
7571done
7572  done
7573IFS=$as_save_IFS
7574
7575fi
7576fi
7577ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7578if test -n "$ac_ct_DSYMUTIL"; then
7579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7580$as_echo "$ac_ct_DSYMUTIL" >&6; }
7581else
7582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7583$as_echo "no" >&6; }
7584fi
7585
7586  if test "x$ac_ct_DSYMUTIL" = x; then
7587    DSYMUTIL=":"
7588  else
7589    case $cross_compiling:$ac_tool_warned in
7590yes:)
7591{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7592$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7593ac_tool_warned=yes ;;
7594esac
7595    DSYMUTIL=$ac_ct_DSYMUTIL
7596  fi
7597else
7598  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7599fi
7600
7601    if test -n "$ac_tool_prefix"; then
7602  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7603set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7605$as_echo_n "checking for $ac_word... " >&6; }
7606if ${ac_cv_prog_NMEDIT+:} false; then :
7607  $as_echo_n "(cached) " >&6
7608else
7609  if test -n "$NMEDIT"; then
7610  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7611else
7612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613for as_dir in $PATH
7614do
7615  IFS=$as_save_IFS
7616  test -z "$as_dir" && as_dir=.
7617    for ac_exec_ext in '' $ac_executable_extensions; do
7618  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7619    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7620    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7621    break 2
7622  fi
7623done
7624  done
7625IFS=$as_save_IFS
7626
7627fi
7628fi
7629NMEDIT=$ac_cv_prog_NMEDIT
7630if test -n "$NMEDIT"; then
7631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7632$as_echo "$NMEDIT" >&6; }
7633else
7634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7635$as_echo "no" >&6; }
7636fi
7637
7638
7639fi
7640if test -z "$ac_cv_prog_NMEDIT"; then
7641  ac_ct_NMEDIT=$NMEDIT
7642  # Extract the first word of "nmedit", so it can be a program name with args.
7643set dummy nmedit; ac_word=$2
7644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7645$as_echo_n "checking for $ac_word... " >&6; }
7646if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7647  $as_echo_n "(cached) " >&6
7648else
7649  if test -n "$ac_ct_NMEDIT"; then
7650  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7651else
7652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7653for as_dir in $PATH
7654do
7655  IFS=$as_save_IFS
7656  test -z "$as_dir" && as_dir=.
7657    for ac_exec_ext in '' $ac_executable_extensions; do
7658  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7659    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7660    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7661    break 2
7662  fi
7663done
7664  done
7665IFS=$as_save_IFS
7666
7667fi
7668fi
7669ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7670if test -n "$ac_ct_NMEDIT"; then
7671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7672$as_echo "$ac_ct_NMEDIT" >&6; }
7673else
7674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7675$as_echo "no" >&6; }
7676fi
7677
7678  if test "x$ac_ct_NMEDIT" = x; then
7679    NMEDIT=":"
7680  else
7681    case $cross_compiling:$ac_tool_warned in
7682yes:)
7683{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7684$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7685ac_tool_warned=yes ;;
7686esac
7687    NMEDIT=$ac_ct_NMEDIT
7688  fi
7689else
7690  NMEDIT="$ac_cv_prog_NMEDIT"
7691fi
7692
7693    if test -n "$ac_tool_prefix"; then
7694  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7695set dummy ${ac_tool_prefix}lipo; ac_word=$2
7696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7697$as_echo_n "checking for $ac_word... " >&6; }
7698if ${ac_cv_prog_LIPO+:} false; then :
7699  $as_echo_n "(cached) " >&6
7700else
7701  if test -n "$LIPO"; then
7702  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7703else
7704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7705for as_dir in $PATH
7706do
7707  IFS=$as_save_IFS
7708  test -z "$as_dir" && as_dir=.
7709    for ac_exec_ext in '' $ac_executable_extensions; do
7710  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7711    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7712    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7713    break 2
7714  fi
7715done
7716  done
7717IFS=$as_save_IFS
7718
7719fi
7720fi
7721LIPO=$ac_cv_prog_LIPO
7722if test -n "$LIPO"; then
7723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7724$as_echo "$LIPO" >&6; }
7725else
7726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7727$as_echo "no" >&6; }
7728fi
7729
7730
7731fi
7732if test -z "$ac_cv_prog_LIPO"; then
7733  ac_ct_LIPO=$LIPO
7734  # Extract the first word of "lipo", so it can be a program name with args.
7735set dummy lipo; ac_word=$2
7736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7737$as_echo_n "checking for $ac_word... " >&6; }
7738if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7739  $as_echo_n "(cached) " >&6
7740else
7741  if test -n "$ac_ct_LIPO"; then
7742  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7743else
7744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7745for as_dir in $PATH
7746do
7747  IFS=$as_save_IFS
7748  test -z "$as_dir" && as_dir=.
7749    for ac_exec_ext in '' $ac_executable_extensions; do
7750  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7751    ac_cv_prog_ac_ct_LIPO="lipo"
7752    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7753    break 2
7754  fi
7755done
7756  done
7757IFS=$as_save_IFS
7758
7759fi
7760fi
7761ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7762if test -n "$ac_ct_LIPO"; then
7763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7764$as_echo "$ac_ct_LIPO" >&6; }
7765else
7766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7767$as_echo "no" >&6; }
7768fi
7769
7770  if test "x$ac_ct_LIPO" = x; then
7771    LIPO=":"
7772  else
7773    case $cross_compiling:$ac_tool_warned in
7774yes:)
7775{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7776$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7777ac_tool_warned=yes ;;
7778esac
7779    LIPO=$ac_ct_LIPO
7780  fi
7781else
7782  LIPO="$ac_cv_prog_LIPO"
7783fi
7784
7785    if test -n "$ac_tool_prefix"; then
7786  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7787set dummy ${ac_tool_prefix}otool; ac_word=$2
7788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7789$as_echo_n "checking for $ac_word... " >&6; }
7790if ${ac_cv_prog_OTOOL+:} false; then :
7791  $as_echo_n "(cached) " >&6
7792else
7793  if test -n "$OTOOL"; then
7794  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7795else
7796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7797for as_dir in $PATH
7798do
7799  IFS=$as_save_IFS
7800  test -z "$as_dir" && as_dir=.
7801    for ac_exec_ext in '' $ac_executable_extensions; do
7802  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7803    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7804    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7805    break 2
7806  fi
7807done
7808  done
7809IFS=$as_save_IFS
7810
7811fi
7812fi
7813OTOOL=$ac_cv_prog_OTOOL
7814if test -n "$OTOOL"; then
7815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7816$as_echo "$OTOOL" >&6; }
7817else
7818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7819$as_echo "no" >&6; }
7820fi
7821
7822
7823fi
7824if test -z "$ac_cv_prog_OTOOL"; then
7825  ac_ct_OTOOL=$OTOOL
7826  # Extract the first word of "otool", so it can be a program name with args.
7827set dummy otool; ac_word=$2
7828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7829$as_echo_n "checking for $ac_word... " >&6; }
7830if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7831  $as_echo_n "(cached) " >&6
7832else
7833  if test -n "$ac_ct_OTOOL"; then
7834  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7835else
7836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7837for as_dir in $PATH
7838do
7839  IFS=$as_save_IFS
7840  test -z "$as_dir" && as_dir=.
7841    for ac_exec_ext in '' $ac_executable_extensions; do
7842  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7843    ac_cv_prog_ac_ct_OTOOL="otool"
7844    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7845    break 2
7846  fi
7847done
7848  done
7849IFS=$as_save_IFS
7850
7851fi
7852fi
7853ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7854if test -n "$ac_ct_OTOOL"; then
7855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7856$as_echo "$ac_ct_OTOOL" >&6; }
7857else
7858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7859$as_echo "no" >&6; }
7860fi
7861
7862  if test "x$ac_ct_OTOOL" = x; then
7863    OTOOL=":"
7864  else
7865    case $cross_compiling:$ac_tool_warned in
7866yes:)
7867{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7868$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7869ac_tool_warned=yes ;;
7870esac
7871    OTOOL=$ac_ct_OTOOL
7872  fi
7873else
7874  OTOOL="$ac_cv_prog_OTOOL"
7875fi
7876
7877    if test -n "$ac_tool_prefix"; then
7878  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7879set dummy ${ac_tool_prefix}otool64; ac_word=$2
7880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7881$as_echo_n "checking for $ac_word... " >&6; }
7882if ${ac_cv_prog_OTOOL64+:} false; then :
7883  $as_echo_n "(cached) " >&6
7884else
7885  if test -n "$OTOOL64"; then
7886  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7887else
7888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889for as_dir in $PATH
7890do
7891  IFS=$as_save_IFS
7892  test -z "$as_dir" && as_dir=.
7893    for ac_exec_ext in '' $ac_executable_extensions; do
7894  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7895    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7896    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7897    break 2
7898  fi
7899done
7900  done
7901IFS=$as_save_IFS
7902
7903fi
7904fi
7905OTOOL64=$ac_cv_prog_OTOOL64
7906if test -n "$OTOOL64"; then
7907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7908$as_echo "$OTOOL64" >&6; }
7909else
7910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7911$as_echo "no" >&6; }
7912fi
7913
7914
7915fi
7916if test -z "$ac_cv_prog_OTOOL64"; then
7917  ac_ct_OTOOL64=$OTOOL64
7918  # Extract the first word of "otool64", so it can be a program name with args.
7919set dummy otool64; ac_word=$2
7920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7921$as_echo_n "checking for $ac_word... " >&6; }
7922if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7923  $as_echo_n "(cached) " >&6
7924else
7925  if test -n "$ac_ct_OTOOL64"; then
7926  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7927else
7928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7929for as_dir in $PATH
7930do
7931  IFS=$as_save_IFS
7932  test -z "$as_dir" && as_dir=.
7933    for ac_exec_ext in '' $ac_executable_extensions; do
7934  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7935    ac_cv_prog_ac_ct_OTOOL64="otool64"
7936    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7937    break 2
7938  fi
7939done
7940  done
7941IFS=$as_save_IFS
7942
7943fi
7944fi
7945ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7946if test -n "$ac_ct_OTOOL64"; then
7947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7948$as_echo "$ac_ct_OTOOL64" >&6; }
7949else
7950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7951$as_echo "no" >&6; }
7952fi
7953
7954  if test "x$ac_ct_OTOOL64" = x; then
7955    OTOOL64=":"
7956  else
7957    case $cross_compiling:$ac_tool_warned in
7958yes:)
7959{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7960$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7961ac_tool_warned=yes ;;
7962esac
7963    OTOOL64=$ac_ct_OTOOL64
7964  fi
7965else
7966  OTOOL64="$ac_cv_prog_OTOOL64"
7967fi
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7996$as_echo_n "checking for -single_module linker flag... " >&6; }
7997if ${lt_cv_apple_cc_single_mod+:} false; then :
7998  $as_echo_n "(cached) " >&6
7999else
8000  lt_cv_apple_cc_single_mod=no
8001      if test -z "$LT_MULTI_MODULE"; then
8002	# By default we will add the -single_module flag. You can override
8003	# by either setting the environment variable LT_MULTI_MODULE
8004	# non-empty at configure time, or by adding -multi_module to the
8005	# link flags.
8006	rm -rf libconftest.dylib*
8007	echo "int foo(void){return 1;}" > conftest.c
8008	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8009-dynamiclib -Wl,-single_module conftest.c" >&5
8010	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8011	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8012        _lt_result=$?
8013	# If there is a non-empty error log, and "single_module"
8014	# appears in it, assume the flag caused a linker warning
8015        if test -s conftest.err && $GREP single_module conftest.err; then
8016	  cat conftest.err >&5
8017	# Otherwise, if the output was created with a 0 exit code from
8018	# the compiler, it worked.
8019	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8020	  lt_cv_apple_cc_single_mod=yes
8021	else
8022	  cat conftest.err >&5
8023	fi
8024	rm -rf libconftest.dylib*
8025	rm -f conftest.*
8026      fi
8027fi
8028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8029$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8030
8031    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8032$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8033if ${lt_cv_ld_exported_symbols_list+:} false; then :
8034  $as_echo_n "(cached) " >&6
8035else
8036  lt_cv_ld_exported_symbols_list=no
8037      save_LDFLAGS=$LDFLAGS
8038      echo "_main" > conftest.sym
8039      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8040      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8041/* end confdefs.h.  */
8042
8043int
8044main ()
8045{
8046
8047  ;
8048  return 0;
8049}
8050_ACEOF
8051if ac_fn_c_try_link "$LINENO"; then :
8052  lt_cv_ld_exported_symbols_list=yes
8053else
8054  lt_cv_ld_exported_symbols_list=no
8055fi
8056rm -f core conftest.err conftest.$ac_objext \
8057    conftest$ac_exeext conftest.$ac_ext
8058	LDFLAGS=$save_LDFLAGS
8059
8060fi
8061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8062$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8063
8064    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8065$as_echo_n "checking for -force_load linker flag... " >&6; }
8066if ${lt_cv_ld_force_load+:} false; then :
8067  $as_echo_n "(cached) " >&6
8068else
8069  lt_cv_ld_force_load=no
8070      cat > conftest.c << _LT_EOF
8071int forced_loaded() { return 2;}
8072_LT_EOF
8073      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8074      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8075      echo "$AR cru libconftest.a conftest.o" >&5
8076      $AR cru libconftest.a conftest.o 2>&5
8077      echo "$RANLIB libconftest.a" >&5
8078      $RANLIB libconftest.a 2>&5
8079      cat > conftest.c << _LT_EOF
8080int main() { return 0;}
8081_LT_EOF
8082      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8083      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8084      _lt_result=$?
8085      if test -s conftest.err && $GREP force_load conftest.err; then
8086	cat conftest.err >&5
8087      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8088	lt_cv_ld_force_load=yes
8089      else
8090	cat conftest.err >&5
8091      fi
8092        rm -f conftest.err libconftest.a conftest conftest.c
8093        rm -rf conftest.dSYM
8094
8095fi
8096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8097$as_echo "$lt_cv_ld_force_load" >&6; }
8098    case $host_os in
8099    rhapsody* | darwin1.[012])
8100      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8101    darwin1.*)
8102      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8103    darwin*) # darwin 5.x on
8104      # if running on 10.5 or later, the deployment target defaults
8105      # to the OS version, if on x86, and 10.4, the deployment
8106      # target defaults to 10.4. Don't you love it?
8107      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8108	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8109	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8110	10.[012][,.]*)
8111	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8112	10.*)
8113	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8114      esac
8115    ;;
8116  esac
8117    if test yes = "$lt_cv_apple_cc_single_mod"; then
8118      _lt_dar_single_mod='$single_module'
8119    fi
8120    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8121      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8122    else
8123      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8124    fi
8125    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8126      _lt_dsymutil='~$DSYMUTIL $lib || :'
8127    else
8128      _lt_dsymutil=
8129    fi
8130    ;;
8131  esac
8132
8133# func_munge_path_list VARIABLE PATH
8134# -----------------------------------
8135# VARIABLE is name of variable containing _space_ separated list of
8136# directories to be munged by the contents of PATH, which is string
8137# having a format:
8138# "DIR[:DIR]:"
8139#       string "DIR[ DIR]" will be prepended to VARIABLE
8140# ":DIR[:DIR]"
8141#       string "DIR[ DIR]" will be appended to VARIABLE
8142# "DIRP[:DIRP]::[DIRA:]DIRA"
8143#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8144#       "DIRA[ DIRA]" will be appended to VARIABLE
8145# "DIR[:DIR]"
8146#       VARIABLE will be replaced by "DIR[ DIR]"
8147func_munge_path_list ()
8148{
8149    case x$2 in
8150    x)
8151        ;;
8152    *:)
8153        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8154        ;;
8155    x:*)
8156        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8157        ;;
8158    *::*)
8159        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8160        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8161        ;;
8162    *)
8163        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8164        ;;
8165    esac
8166}
8167
8168for ac_header in dlfcn.h
8169do :
8170  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8171"
8172if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8173  cat >>confdefs.h <<_ACEOF
8174#define HAVE_DLFCN_H 1
8175_ACEOF
8176
8177fi
8178
8179done
8180
8181
8182
8183
8184
8185# Set options
8186
8187
8188
8189
8190  enable_win32_dll=no
8191
8192
8193            # Check whether --enable-shared was given.
8194if test "${enable_shared+set}" = set; then :
8195  enableval=$enable_shared; p=${PACKAGE-default}
8196    case $enableval in
8197    yes) enable_shared=yes ;;
8198    no) enable_shared=no ;;
8199    *)
8200      enable_shared=no
8201      # Look at the argument we got.  We use all the common list separators.
8202      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8203      for pkg in $enableval; do
8204	IFS=$lt_save_ifs
8205	if test "X$pkg" = "X$p"; then
8206	  enable_shared=yes
8207	fi
8208      done
8209      IFS=$lt_save_ifs
8210      ;;
8211    esac
8212else
8213  enable_shared=yes
8214fi
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226# Check whether --with-pic was given.
8227if test "${with_pic+set}" = set; then :
8228  withval=$with_pic; lt_p=${PACKAGE-default}
8229    case $withval in
8230    yes|no) pic_mode=$withval ;;
8231    *)
8232      pic_mode=default
8233      # Look at the argument we got.  We use all the common list separators.
8234      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8235      for lt_pkg in $withval; do
8236	IFS=$lt_save_ifs
8237	if test "X$lt_pkg" = "X$lt_p"; then
8238	  pic_mode=yes
8239	fi
8240      done
8241      IFS=$lt_save_ifs
8242      ;;
8243    esac
8244else
8245  pic_mode=default
8246fi
8247
8248
8249
8250
8251
8252
8253
8254
8255  # Check whether --enable-fast-install was given.
8256if test "${enable_fast_install+set}" = set; then :
8257  enableval=$enable_fast_install; p=${PACKAGE-default}
8258    case $enableval in
8259    yes) enable_fast_install=yes ;;
8260    no) enable_fast_install=no ;;
8261    *)
8262      enable_fast_install=no
8263      # Look at the argument we got.  We use all the common list separators.
8264      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8265      for pkg in $enableval; do
8266	IFS=$lt_save_ifs
8267	if test "X$pkg" = "X$p"; then
8268	  enable_fast_install=yes
8269	fi
8270      done
8271      IFS=$lt_save_ifs
8272      ;;
8273    esac
8274else
8275  enable_fast_install=yes
8276fi
8277
8278
8279
8280
8281
8282
8283
8284
8285  shared_archive_member_spec=
8286case $host,$enable_shared in
8287power*-*-aix[5-9]*,yes)
8288  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8289$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8290
8291# Check whether --with-aix-soname was given.
8292if test "${with_aix_soname+set}" = set; then :
8293  withval=$with_aix_soname; case $withval in
8294    aix|svr4|both)
8295      ;;
8296    *)
8297      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8298      ;;
8299    esac
8300    lt_cv_with_aix_soname=$with_aix_soname
8301else
8302  if ${lt_cv_with_aix_soname+:} false; then :
8303  $as_echo_n "(cached) " >&6
8304else
8305  lt_cv_with_aix_soname=aix
8306fi
8307
8308    with_aix_soname=$lt_cv_with_aix_soname
8309fi
8310
8311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8312$as_echo "$with_aix_soname" >&6; }
8313  if test aix != "$with_aix_soname"; then
8314    # For the AIX way of multilib, we name the shared archive member
8315    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8316    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8317    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8318    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8319    if test 64 = "${OBJECT_MODE-32}"; then
8320      shared_archive_member_spec=shr_64
8321    else
8322      shared_archive_member_spec=shr
8323    fi
8324  fi
8325  ;;
8326*)
8327  with_aix_soname=aix
8328  ;;
8329esac
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340# This can be used to rebuild libtool when needed
8341LIBTOOL_DEPS=$ltmain
8342
8343# Always use our own libtool.
8344LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375test -z "$LN_S" && LN_S="ln -s"
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390if test -n "${ZSH_VERSION+set}"; then
8391   setopt NO_GLOB_SUBST
8392fi
8393
8394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8395$as_echo_n "checking for objdir... " >&6; }
8396if ${lt_cv_objdir+:} false; then :
8397  $as_echo_n "(cached) " >&6
8398else
8399  rm -f .libs 2>/dev/null
8400mkdir .libs 2>/dev/null
8401if test -d .libs; then
8402  lt_cv_objdir=.libs
8403else
8404  # MS-DOS does not allow filenames that begin with a dot.
8405  lt_cv_objdir=_libs
8406fi
8407rmdir .libs 2>/dev/null
8408fi
8409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8410$as_echo "$lt_cv_objdir" >&6; }
8411objdir=$lt_cv_objdir
8412
8413
8414
8415
8416
8417cat >>confdefs.h <<_ACEOF
8418#define LT_OBJDIR "$lt_cv_objdir/"
8419_ACEOF
8420
8421
8422
8423
8424case $host_os in
8425aix3*)
8426  # AIX sometimes has problems with the GCC collect2 program.  For some
8427  # reason, if we set the COLLECT_NAMES environment variable, the problems
8428  # vanish in a puff of smoke.
8429  if test set != "${COLLECT_NAMES+set}"; then
8430    COLLECT_NAMES=
8431    export COLLECT_NAMES
8432  fi
8433  ;;
8434esac
8435
8436# Global variables:
8437ofile=libtool
8438can_build_shared=yes
8439
8440# All known linkers require a '.a' archive for static linking (except MSVC,
8441# which needs '.lib').
8442libext=a
8443
8444with_gnu_ld=$lt_cv_prog_gnu_ld
8445
8446old_CC=$CC
8447old_CFLAGS=$CFLAGS
8448
8449# Set sane defaults for various variables
8450test -z "$CC" && CC=cc
8451test -z "$LTCC" && LTCC=$CC
8452test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8453test -z "$LD" && LD=ld
8454test -z "$ac_objext" && ac_objext=o
8455
8456func_cc_basename $compiler
8457cc_basename=$func_cc_basename_result
8458
8459
8460# Only perform the check for file, if the check method requires it
8461test -z "$MAGIC_CMD" && MAGIC_CMD=file
8462case $deplibs_check_method in
8463file_magic*)
8464  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8465    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8466$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8467if ${lt_cv_path_MAGIC_CMD+:} false; then :
8468  $as_echo_n "(cached) " >&6
8469else
8470  case $MAGIC_CMD in
8471[\\/*] |  ?:[\\/]*)
8472  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8473  ;;
8474*)
8475  lt_save_MAGIC_CMD=$MAGIC_CMD
8476  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8477  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8478  for ac_dir in $ac_dummy; do
8479    IFS=$lt_save_ifs
8480    test -z "$ac_dir" && ac_dir=.
8481    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8482      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8483      if test -n "$file_magic_test_file"; then
8484	case $deplibs_check_method in
8485	"file_magic "*)
8486	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8487	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8488	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8489	    $EGREP "$file_magic_regex" > /dev/null; then
8490	    :
8491	  else
8492	    cat <<_LT_EOF 1>&2
8493
8494*** Warning: the command libtool uses to detect shared libraries,
8495*** $file_magic_cmd, produces output that libtool cannot recognize.
8496*** The result is that libtool may fail to recognize shared libraries
8497*** as such.  This will affect the creation of libtool libraries that
8498*** depend on shared libraries, but programs linked with such libtool
8499*** libraries will work regardless of this problem.  Nevertheless, you
8500*** may want to report the problem to your system manager and/or to
8501*** bug-libtool@gnu.org
8502
8503_LT_EOF
8504	  fi ;;
8505	esac
8506      fi
8507      break
8508    fi
8509  done
8510  IFS=$lt_save_ifs
8511  MAGIC_CMD=$lt_save_MAGIC_CMD
8512  ;;
8513esac
8514fi
8515
8516MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8517if test -n "$MAGIC_CMD"; then
8518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8519$as_echo "$MAGIC_CMD" >&6; }
8520else
8521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8522$as_echo "no" >&6; }
8523fi
8524
8525
8526
8527
8528
8529if test -z "$lt_cv_path_MAGIC_CMD"; then
8530  if test -n "$ac_tool_prefix"; then
8531    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8532$as_echo_n "checking for file... " >&6; }
8533if ${lt_cv_path_MAGIC_CMD+:} false; then :
8534  $as_echo_n "(cached) " >&6
8535else
8536  case $MAGIC_CMD in
8537[\\/*] |  ?:[\\/]*)
8538  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8539  ;;
8540*)
8541  lt_save_MAGIC_CMD=$MAGIC_CMD
8542  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8543  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8544  for ac_dir in $ac_dummy; do
8545    IFS=$lt_save_ifs
8546    test -z "$ac_dir" && ac_dir=.
8547    if test -f "$ac_dir/file"; then
8548      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8549      if test -n "$file_magic_test_file"; then
8550	case $deplibs_check_method in
8551	"file_magic "*)
8552	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8553	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8554	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8555	    $EGREP "$file_magic_regex" > /dev/null; then
8556	    :
8557	  else
8558	    cat <<_LT_EOF 1>&2
8559
8560*** Warning: the command libtool uses to detect shared libraries,
8561*** $file_magic_cmd, produces output that libtool cannot recognize.
8562*** The result is that libtool may fail to recognize shared libraries
8563*** as such.  This will affect the creation of libtool libraries that
8564*** depend on shared libraries, but programs linked with such libtool
8565*** libraries will work regardless of this problem.  Nevertheless, you
8566*** may want to report the problem to your system manager and/or to
8567*** bug-libtool@gnu.org
8568
8569_LT_EOF
8570	  fi ;;
8571	esac
8572      fi
8573      break
8574    fi
8575  done
8576  IFS=$lt_save_ifs
8577  MAGIC_CMD=$lt_save_MAGIC_CMD
8578  ;;
8579esac
8580fi
8581
8582MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8583if test -n "$MAGIC_CMD"; then
8584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8585$as_echo "$MAGIC_CMD" >&6; }
8586else
8587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8588$as_echo "no" >&6; }
8589fi
8590
8591
8592  else
8593    MAGIC_CMD=:
8594  fi
8595fi
8596
8597  fi
8598  ;;
8599esac
8600
8601# Use C for the default configuration in the libtool script
8602
8603lt_save_CC=$CC
8604ac_ext=c
8605ac_cpp='$CPP $CPPFLAGS'
8606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8608ac_compiler_gnu=$ac_cv_c_compiler_gnu
8609
8610
8611# Source file extension for C test sources.
8612ac_ext=c
8613
8614# Object file extension for compiled C test sources.
8615objext=o
8616objext=$objext
8617
8618# Code to be used in simple compile tests
8619lt_simple_compile_test_code="int some_variable = 0;"
8620
8621# Code to be used in simple link tests
8622lt_simple_link_test_code='int main(){return(0);}'
8623
8624
8625
8626
8627
8628
8629
8630# If no C compiler was specified, use CC.
8631LTCC=${LTCC-"$CC"}
8632
8633# If no C compiler flags were specified, use CFLAGS.
8634LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8635
8636# Allow CC to be a program name with arguments.
8637compiler=$CC
8638
8639# Save the default compiler, since it gets overwritten when the other
8640# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8641compiler_DEFAULT=$CC
8642
8643# save warnings/boilerplate of simple test code
8644ac_outfile=conftest.$ac_objext
8645echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8646eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8647_lt_compiler_boilerplate=`cat conftest.err`
8648$RM conftest*
8649
8650ac_outfile=conftest.$ac_objext
8651echo "$lt_simple_link_test_code" >conftest.$ac_ext
8652eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8653_lt_linker_boilerplate=`cat conftest.err`
8654$RM -r conftest*
8655
8656
8657## CAVEAT EMPTOR:
8658## There is no encapsulation within the following macros, do not change
8659## the running order or otherwise move them around unless you know exactly
8660## what you are doing...
8661if test -n "$compiler"; then
8662
8663lt_prog_compiler_no_builtin_flag=
8664
8665if test yes = "$GCC"; then
8666  case $cc_basename in
8667  nvcc*)
8668    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8669  *)
8670    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8671  esac
8672
8673  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8674$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8675if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8676  $as_echo_n "(cached) " >&6
8677else
8678  lt_cv_prog_compiler_rtti_exceptions=no
8679   ac_outfile=conftest.$ac_objext
8680   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8681   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8682   # Insert the option either (1) after the last *FLAGS variable, or
8683   # (2) before a word containing "conftest.", or (3) at the end.
8684   # Note that $ac_compile itself does not contain backslashes and begins
8685   # with a dollar sign (not a hyphen), so the echo should work correctly.
8686   # The option is referenced via a variable to avoid confusing sed.
8687   lt_compile=`echo "$ac_compile" | $SED \
8688   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8689   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8690   -e 's:$: $lt_compiler_flag:'`
8691   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8692   (eval "$lt_compile" 2>conftest.err)
8693   ac_status=$?
8694   cat conftest.err >&5
8695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696   if (exit $ac_status) && test -s "$ac_outfile"; then
8697     # The compiler can only warn and ignore the option if not recognized
8698     # So say no if there are warnings other than the usual output.
8699     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8700     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8701     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8702       lt_cv_prog_compiler_rtti_exceptions=yes
8703     fi
8704   fi
8705   $RM conftest*
8706
8707fi
8708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8709$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8710
8711if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8712    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8713else
8714    :
8715fi
8716
8717fi
8718
8719
8720
8721
8722
8723
8724  lt_prog_compiler_wl=
8725lt_prog_compiler_pic=
8726lt_prog_compiler_static=
8727
8728
8729  if test yes = "$GCC"; then
8730    lt_prog_compiler_wl='-Wl,'
8731    lt_prog_compiler_static='-static'
8732
8733    case $host_os in
8734      aix*)
8735      # All AIX code is PIC.
8736      if test ia64 = "$host_cpu"; then
8737	# AIX 5 now supports IA64 processor
8738	lt_prog_compiler_static='-Bstatic'
8739      fi
8740      lt_prog_compiler_pic='-fPIC'
8741      ;;
8742
8743    amigaos*)
8744      case $host_cpu in
8745      powerpc)
8746            # see comment about AmigaOS4 .so support
8747            lt_prog_compiler_pic='-fPIC'
8748        ;;
8749      m68k)
8750            # FIXME: we need at least 68020 code to build shared libraries, but
8751            # adding the '-m68020' flag to GCC prevents building anything better,
8752            # like '-m68040'.
8753            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8754        ;;
8755      esac
8756      ;;
8757
8758    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8759      # PIC is the default for these OSes.
8760      ;;
8761
8762    mingw* | cygwin* | pw32* | os2* | cegcc*)
8763      # This hack is so that the source file can tell whether it is being
8764      # built for inclusion in a dll (and should export symbols for example).
8765      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8766      # (--disable-auto-import) libraries
8767      lt_prog_compiler_pic='-DDLL_EXPORT'
8768      case $host_os in
8769      os2*)
8770	lt_prog_compiler_static='$wl-static'
8771	;;
8772      esac
8773      ;;
8774
8775    darwin* | rhapsody*)
8776      # PIC is the default on this platform
8777      # Common symbols not allowed in MH_DYLIB files
8778      lt_prog_compiler_pic='-fno-common'
8779      ;;
8780
8781    haiku*)
8782      # PIC is the default for Haiku.
8783      # The "-static" flag exists, but is broken.
8784      lt_prog_compiler_static=
8785      ;;
8786
8787    hpux*)
8788      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8789      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8790      # sets the default TLS model and affects inlining.
8791      case $host_cpu in
8792      hppa*64*)
8793	# +Z the default
8794	;;
8795      *)
8796	lt_prog_compiler_pic='-fPIC'
8797	;;
8798      esac
8799      ;;
8800
8801    interix[3-9]*)
8802      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8803      # Instead, we relocate shared libraries at runtime.
8804      ;;
8805
8806    msdosdjgpp*)
8807      # Just because we use GCC doesn't mean we suddenly get shared libraries
8808      # on systems that don't support them.
8809      lt_prog_compiler_can_build_shared=no
8810      enable_shared=no
8811      ;;
8812
8813    *nto* | *qnx*)
8814      # QNX uses GNU C++, but need to define -shared option too, otherwise
8815      # it will coredump.
8816      lt_prog_compiler_pic='-fPIC -shared'
8817      ;;
8818
8819    sysv4*MP*)
8820      if test -d /usr/nec; then
8821	lt_prog_compiler_pic=-Kconform_pic
8822      fi
8823      ;;
8824
8825    *)
8826      lt_prog_compiler_pic='-fPIC'
8827      ;;
8828    esac
8829
8830    case $cc_basename in
8831    nvcc*) # Cuda Compiler Driver 2.2
8832      lt_prog_compiler_wl='-Xlinker '
8833      if test -n "$lt_prog_compiler_pic"; then
8834        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8835      fi
8836      ;;
8837    esac
8838  else
8839    # PORTME Check for flag to pass linker flags through the system compiler.
8840    case $host_os in
8841    aix*)
8842      lt_prog_compiler_wl='-Wl,'
8843      if test ia64 = "$host_cpu"; then
8844	# AIX 5 now supports IA64 processor
8845	lt_prog_compiler_static='-Bstatic'
8846      else
8847	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8848      fi
8849      ;;
8850
8851    darwin* | rhapsody*)
8852      # PIC is the default on this platform
8853      # Common symbols not allowed in MH_DYLIB files
8854      lt_prog_compiler_pic='-fno-common'
8855      case $cc_basename in
8856      nagfor*)
8857        # NAG Fortran compiler
8858        lt_prog_compiler_wl='-Wl,-Wl,,'
8859        lt_prog_compiler_pic='-PIC'
8860        lt_prog_compiler_static='-Bstatic'
8861        ;;
8862      esac
8863      ;;
8864
8865    mingw* | cygwin* | pw32* | os2* | cegcc*)
8866      # This hack is so that the source file can tell whether it is being
8867      # built for inclusion in a dll (and should export symbols for example).
8868      lt_prog_compiler_pic='-DDLL_EXPORT'
8869      case $host_os in
8870      os2*)
8871	lt_prog_compiler_static='$wl-static'
8872	;;
8873      esac
8874      ;;
8875
8876    hpux9* | hpux10* | hpux11*)
8877      lt_prog_compiler_wl='-Wl,'
8878      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8879      # not for PA HP-UX.
8880      case $host_cpu in
8881      hppa*64*|ia64*)
8882	# +Z the default
8883	;;
8884      *)
8885	lt_prog_compiler_pic='+Z'
8886	;;
8887      esac
8888      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8889      lt_prog_compiler_static='$wl-a ${wl}archive'
8890      ;;
8891
8892    irix5* | irix6* | nonstopux*)
8893      lt_prog_compiler_wl='-Wl,'
8894      # PIC (with -KPIC) is the default.
8895      lt_prog_compiler_static='-non_shared'
8896      ;;
8897
8898    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8899      case $cc_basename in
8900      # old Intel for x86_64, which still supported -KPIC.
8901      ecc*)
8902	lt_prog_compiler_wl='-Wl,'
8903	lt_prog_compiler_pic='-KPIC'
8904	lt_prog_compiler_static='-static'
8905        ;;
8906      # icc used to be incompatible with GCC.
8907      # ICC 10 doesn't accept -KPIC any more.
8908      icc* | ifort*)
8909	lt_prog_compiler_wl='-Wl,'
8910	lt_prog_compiler_pic='-fPIC'
8911	lt_prog_compiler_static='-static'
8912        ;;
8913      # Lahey Fortran 8.1.
8914      lf95*)
8915	lt_prog_compiler_wl='-Wl,'
8916	lt_prog_compiler_pic='--shared'
8917	lt_prog_compiler_static='--static'
8918	;;
8919      nagfor*)
8920	# NAG Fortran compiler
8921	lt_prog_compiler_wl='-Wl,-Wl,,'
8922	lt_prog_compiler_pic='-PIC'
8923	lt_prog_compiler_static='-Bstatic'
8924	;;
8925      tcc*)
8926	# Fabrice Bellard et al's Tiny C Compiler
8927	lt_prog_compiler_wl='-Wl,'
8928	lt_prog_compiler_pic='-fPIC'
8929	lt_prog_compiler_static='-static'
8930	;;
8931      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8932        # Portland Group compilers (*not* the Pentium gcc compiler,
8933	# which looks to be a dead project)
8934	lt_prog_compiler_wl='-Wl,'
8935	lt_prog_compiler_pic='-fpic'
8936	lt_prog_compiler_static='-Bstatic'
8937        ;;
8938      ccc*)
8939        lt_prog_compiler_wl='-Wl,'
8940        # All Alpha code is PIC.
8941        lt_prog_compiler_static='-non_shared'
8942        ;;
8943      xl* | bgxl* | bgf* | mpixl*)
8944	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8945	lt_prog_compiler_wl='-Wl,'
8946	lt_prog_compiler_pic='-qpic'
8947	lt_prog_compiler_static='-qstaticlink'
8948	;;
8949      *)
8950	case `$CC -V 2>&1 | sed 5q` in
8951	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8952	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8953	  lt_prog_compiler_pic='-KPIC'
8954	  lt_prog_compiler_static='-Bstatic'
8955	  lt_prog_compiler_wl=''
8956	  ;;
8957	*Sun\ F* | *Sun*Fortran*)
8958	  lt_prog_compiler_pic='-KPIC'
8959	  lt_prog_compiler_static='-Bstatic'
8960	  lt_prog_compiler_wl='-Qoption ld '
8961	  ;;
8962	*Sun\ C*)
8963	  # Sun C 5.9
8964	  lt_prog_compiler_pic='-KPIC'
8965	  lt_prog_compiler_static='-Bstatic'
8966	  lt_prog_compiler_wl='-Wl,'
8967	  ;;
8968        *Intel*\ [CF]*Compiler*)
8969	  lt_prog_compiler_wl='-Wl,'
8970	  lt_prog_compiler_pic='-fPIC'
8971	  lt_prog_compiler_static='-static'
8972	  ;;
8973	*Portland\ Group*)
8974	  lt_prog_compiler_wl='-Wl,'
8975	  lt_prog_compiler_pic='-fpic'
8976	  lt_prog_compiler_static='-Bstatic'
8977	  ;;
8978	esac
8979	;;
8980      esac
8981      ;;
8982
8983    newsos6)
8984      lt_prog_compiler_pic='-KPIC'
8985      lt_prog_compiler_static='-Bstatic'
8986      ;;
8987
8988    *nto* | *qnx*)
8989      # QNX uses GNU C++, but need to define -shared option too, otherwise
8990      # it will coredump.
8991      lt_prog_compiler_pic='-fPIC -shared'
8992      ;;
8993
8994    osf3* | osf4* | osf5*)
8995      lt_prog_compiler_wl='-Wl,'
8996      # All OSF/1 code is PIC.
8997      lt_prog_compiler_static='-non_shared'
8998      ;;
8999
9000    rdos*)
9001      lt_prog_compiler_static='-non_shared'
9002      ;;
9003
9004    solaris*)
9005      lt_prog_compiler_pic='-KPIC'
9006      lt_prog_compiler_static='-Bstatic'
9007      case $cc_basename in
9008      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9009	lt_prog_compiler_wl='-Qoption ld ';;
9010      *)
9011	lt_prog_compiler_wl='-Wl,';;
9012      esac
9013      ;;
9014
9015    sunos4*)
9016      lt_prog_compiler_wl='-Qoption ld '
9017      lt_prog_compiler_pic='-PIC'
9018      lt_prog_compiler_static='-Bstatic'
9019      ;;
9020
9021    sysv4 | sysv4.2uw2* | sysv4.3*)
9022      lt_prog_compiler_wl='-Wl,'
9023      lt_prog_compiler_pic='-KPIC'
9024      lt_prog_compiler_static='-Bstatic'
9025      ;;
9026
9027    sysv4*MP*)
9028      if test -d /usr/nec; then
9029	lt_prog_compiler_pic='-Kconform_pic'
9030	lt_prog_compiler_static='-Bstatic'
9031      fi
9032      ;;
9033
9034    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9035      lt_prog_compiler_wl='-Wl,'
9036      lt_prog_compiler_pic='-KPIC'
9037      lt_prog_compiler_static='-Bstatic'
9038      ;;
9039
9040    unicos*)
9041      lt_prog_compiler_wl='-Wl,'
9042      lt_prog_compiler_can_build_shared=no
9043      ;;
9044
9045    uts4*)
9046      lt_prog_compiler_pic='-pic'
9047      lt_prog_compiler_static='-Bstatic'
9048      ;;
9049
9050    *)
9051      lt_prog_compiler_can_build_shared=no
9052      ;;
9053    esac
9054  fi
9055
9056case $host_os in
9057  # For platforms that do not support PIC, -DPIC is meaningless:
9058  *djgpp*)
9059    lt_prog_compiler_pic=
9060    ;;
9061  *)
9062    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9063    ;;
9064esac
9065
9066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9067$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9068if ${lt_cv_prog_compiler_pic+:} false; then :
9069  $as_echo_n "(cached) " >&6
9070else
9071  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9072fi
9073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9074$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9075lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9076
9077#
9078# Check to make sure the PIC flag actually works.
9079#
9080if test -n "$lt_prog_compiler_pic"; then
9081  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9082$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9083if ${lt_cv_prog_compiler_pic_works+:} false; then :
9084  $as_echo_n "(cached) " >&6
9085else
9086  lt_cv_prog_compiler_pic_works=no
9087   ac_outfile=conftest.$ac_objext
9088   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9089   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9090   # Insert the option either (1) after the last *FLAGS variable, or
9091   # (2) before a word containing "conftest.", or (3) at the end.
9092   # Note that $ac_compile itself does not contain backslashes and begins
9093   # with a dollar sign (not a hyphen), so the echo should work correctly.
9094   # The option is referenced via a variable to avoid confusing sed.
9095   lt_compile=`echo "$ac_compile" | $SED \
9096   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9097   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9098   -e 's:$: $lt_compiler_flag:'`
9099   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9100   (eval "$lt_compile" 2>conftest.err)
9101   ac_status=$?
9102   cat conftest.err >&5
9103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104   if (exit $ac_status) && test -s "$ac_outfile"; then
9105     # The compiler can only warn and ignore the option if not recognized
9106     # So say no if there are warnings other than the usual output.
9107     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9108     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9109     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9110       lt_cv_prog_compiler_pic_works=yes
9111     fi
9112   fi
9113   $RM conftest*
9114
9115fi
9116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9117$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9118
9119if test yes = "$lt_cv_prog_compiler_pic_works"; then
9120    case $lt_prog_compiler_pic in
9121     "" | " "*) ;;
9122     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9123     esac
9124else
9125    lt_prog_compiler_pic=
9126     lt_prog_compiler_can_build_shared=no
9127fi
9128
9129fi
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141#
9142# Check to make sure the static flag actually works.
9143#
9144wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9146$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9147if ${lt_cv_prog_compiler_static_works+:} false; then :
9148  $as_echo_n "(cached) " >&6
9149else
9150  lt_cv_prog_compiler_static_works=no
9151   save_LDFLAGS=$LDFLAGS
9152   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9153   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9154   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9155     # The linker can only warn and ignore the option if not recognized
9156     # So say no if there are warnings
9157     if test -s conftest.err; then
9158       # Append any errors to the config.log.
9159       cat conftest.err 1>&5
9160       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9161       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9162       if diff conftest.exp conftest.er2 >/dev/null; then
9163         lt_cv_prog_compiler_static_works=yes
9164       fi
9165     else
9166       lt_cv_prog_compiler_static_works=yes
9167     fi
9168   fi
9169   $RM -r conftest*
9170   LDFLAGS=$save_LDFLAGS
9171
9172fi
9173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9174$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9175
9176if test yes = "$lt_cv_prog_compiler_static_works"; then
9177    :
9178else
9179    lt_prog_compiler_static=
9180fi
9181
9182
9183
9184
9185
9186
9187
9188  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9189$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9190if ${lt_cv_prog_compiler_c_o+:} false; then :
9191  $as_echo_n "(cached) " >&6
9192else
9193  lt_cv_prog_compiler_c_o=no
9194   $RM -r conftest 2>/dev/null
9195   mkdir conftest
9196   cd conftest
9197   mkdir out
9198   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9199
9200   lt_compiler_flag="-o out/conftest2.$ac_objext"
9201   # Insert the option either (1) after the last *FLAGS variable, or
9202   # (2) before a word containing "conftest.", or (3) at the end.
9203   # Note that $ac_compile itself does not contain backslashes and begins
9204   # with a dollar sign (not a hyphen), so the echo should work correctly.
9205   lt_compile=`echo "$ac_compile" | $SED \
9206   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9207   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9208   -e 's:$: $lt_compiler_flag:'`
9209   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9210   (eval "$lt_compile" 2>out/conftest.err)
9211   ac_status=$?
9212   cat out/conftest.err >&5
9213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9215   then
9216     # The compiler can only warn and ignore the option if not recognized
9217     # So say no if there are warnings
9218     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9219     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9220     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9221       lt_cv_prog_compiler_c_o=yes
9222     fi
9223   fi
9224   chmod u+w . 2>&5
9225   $RM conftest*
9226   # SGI C++ compiler will create directory out/ii_files/ for
9227   # template instantiation
9228   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9229   $RM out/* && rmdir out
9230   cd ..
9231   $RM -r conftest
9232   $RM conftest*
9233
9234fi
9235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9236$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9237
9238
9239
9240
9241
9242
9243  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9244$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9245if ${lt_cv_prog_compiler_c_o+:} false; then :
9246  $as_echo_n "(cached) " >&6
9247else
9248  lt_cv_prog_compiler_c_o=no
9249   $RM -r conftest 2>/dev/null
9250   mkdir conftest
9251   cd conftest
9252   mkdir out
9253   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9254
9255   lt_compiler_flag="-o out/conftest2.$ac_objext"
9256   # Insert the option either (1) after the last *FLAGS variable, or
9257   # (2) before a word containing "conftest.", or (3) at the end.
9258   # Note that $ac_compile itself does not contain backslashes and begins
9259   # with a dollar sign (not a hyphen), so the echo should work correctly.
9260   lt_compile=`echo "$ac_compile" | $SED \
9261   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9262   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9263   -e 's:$: $lt_compiler_flag:'`
9264   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9265   (eval "$lt_compile" 2>out/conftest.err)
9266   ac_status=$?
9267   cat out/conftest.err >&5
9268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9270   then
9271     # The compiler can only warn and ignore the option if not recognized
9272     # So say no if there are warnings
9273     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9274     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9275     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9276       lt_cv_prog_compiler_c_o=yes
9277     fi
9278   fi
9279   chmod u+w . 2>&5
9280   $RM conftest*
9281   # SGI C++ compiler will create directory out/ii_files/ for
9282   # template instantiation
9283   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9284   $RM out/* && rmdir out
9285   cd ..
9286   $RM -r conftest
9287   $RM conftest*
9288
9289fi
9290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9291$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9292
9293
9294
9295
9296hard_links=nottested
9297if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9298  # do not overwrite the value of need_locks provided by the user
9299  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9300$as_echo_n "checking if we can lock with hard links... " >&6; }
9301  hard_links=yes
9302  $RM conftest*
9303  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9304  touch conftest.a
9305  ln conftest.a conftest.b 2>&5 || hard_links=no
9306  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9308$as_echo "$hard_links" >&6; }
9309  if test no = "$hard_links"; then
9310    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9311$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9312    need_locks=warn
9313  fi
9314else
9315  need_locks=no
9316fi
9317
9318
9319
9320
9321
9322
9323  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9324$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9325
9326  runpath_var=
9327  allow_undefined_flag=
9328  always_export_symbols=no
9329  archive_cmds=
9330  archive_expsym_cmds=
9331  compiler_needs_object=no
9332  enable_shared_with_static_runtimes=no
9333  export_dynamic_flag_spec=
9334  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9335  hardcode_automatic=no
9336  hardcode_direct=no
9337  hardcode_direct_absolute=no
9338  hardcode_libdir_flag_spec=
9339  hardcode_libdir_separator=
9340  hardcode_minus_L=no
9341  hardcode_shlibpath_var=unsupported
9342  inherit_rpath=no
9343  link_all_deplibs=unknown
9344  module_cmds=
9345  module_expsym_cmds=
9346  old_archive_from_new_cmds=
9347  old_archive_from_expsyms_cmds=
9348  thread_safe_flag_spec=
9349  whole_archive_flag_spec=
9350  # include_expsyms should be a list of space-separated symbols to be *always*
9351  # included in the symbol list
9352  include_expsyms=
9353  # exclude_expsyms can be an extended regexp of symbols to exclude
9354  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9355  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9356  # as well as any symbol that contains 'd'.
9357  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9358  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9359  # platforms (ab)use it in PIC code, but their linkers get confused if
9360  # the symbol is explicitly referenced.  Since portable code cannot
9361  # rely on this symbol name, it's probably fine to never include it in
9362  # preloaded symbol tables.
9363  # Exclude shared library initialization/finalization symbols.
9364  extract_expsyms_cmds=
9365
9366  case $host_os in
9367  cygwin* | mingw* | pw32* | cegcc*)
9368    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9369    # When not using gcc, we currently assume that we are using
9370    # Microsoft Visual C++.
9371    if test yes != "$GCC"; then
9372      with_gnu_ld=no
9373    fi
9374    ;;
9375  interix*)
9376    # we just hope/assume this is gcc and not c89 (= MSVC++)
9377    with_gnu_ld=yes
9378    ;;
9379  openbsd* | bitrig*)
9380    with_gnu_ld=no
9381    ;;
9382  esac
9383
9384  ld_shlibs=yes
9385
9386  # On some targets, GNU ld is compatible enough with the native linker
9387  # that we're better off using the native interface for both.
9388  lt_use_gnu_ld_interface=no
9389  if test yes = "$with_gnu_ld"; then
9390    case $host_os in
9391      aix*)
9392	# The AIX port of GNU ld has always aspired to compatibility
9393	# with the native linker.  However, as the warning in the GNU ld
9394	# block says, versions before 2.19.5* couldn't really create working
9395	# shared libraries, regardless of the interface used.
9396	case `$LD -v 2>&1` in
9397	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9398	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9399	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9400	  *)
9401	    lt_use_gnu_ld_interface=yes
9402	    ;;
9403	esac
9404	;;
9405      *)
9406	lt_use_gnu_ld_interface=yes
9407	;;
9408    esac
9409  fi
9410
9411  if test yes = "$lt_use_gnu_ld_interface"; then
9412    # If archive_cmds runs LD, not CC, wlarc should be empty
9413    wlarc='$wl'
9414
9415    # Set some defaults for GNU ld with shared library support. These
9416    # are reset later if shared libraries are not supported. Putting them
9417    # here allows them to be overridden if necessary.
9418    runpath_var=LD_RUN_PATH
9419    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9420    export_dynamic_flag_spec='$wl--export-dynamic'
9421    # ancient GNU ld didn't support --whole-archive et. al.
9422    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9423      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9424    else
9425      whole_archive_flag_spec=
9426    fi
9427    supports_anon_versioning=no
9428    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9429      *GNU\ gold*) supports_anon_versioning=yes ;;
9430      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9431      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9432      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9433      *\ 2.11.*) ;; # other 2.11 versions
9434      *) supports_anon_versioning=yes ;;
9435    esac
9436
9437    # See if GNU ld supports shared libraries.
9438    case $host_os in
9439    aix[3-9]*)
9440      # On AIX/PPC, the GNU linker is very broken
9441      if test ia64 != "$host_cpu"; then
9442	ld_shlibs=no
9443	cat <<_LT_EOF 1>&2
9444
9445*** Warning: the GNU linker, at least up to release 2.19, is reported
9446*** to be unable to reliably create shared libraries on AIX.
9447*** Therefore, libtool is disabling shared libraries support.  If you
9448*** really care for shared libraries, you may want to install binutils
9449*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9450*** You will then need to restart the configuration process.
9451
9452_LT_EOF
9453      fi
9454      ;;
9455
9456    amigaos*)
9457      case $host_cpu in
9458      powerpc)
9459            # see comment about AmigaOS4 .so support
9460            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9461            archive_expsym_cmds=''
9462        ;;
9463      m68k)
9464            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)'
9465            hardcode_libdir_flag_spec='-L$libdir'
9466            hardcode_minus_L=yes
9467        ;;
9468      esac
9469      ;;
9470
9471    beos*)
9472      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9473	allow_undefined_flag=unsupported
9474	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9475	# support --undefined.  This deserves some investigation.  FIXME
9476	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9477      else
9478	ld_shlibs=no
9479      fi
9480      ;;
9481
9482    cygwin* | mingw* | pw32* | cegcc*)
9483      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9484      # as there is no search path for DLLs.
9485      hardcode_libdir_flag_spec='-L$libdir'
9486      export_dynamic_flag_spec='$wl--export-all-symbols'
9487      allow_undefined_flag=unsupported
9488      always_export_symbols=no
9489      enable_shared_with_static_runtimes=yes
9490      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'
9491      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9492
9493      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9494        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9495	# If the export-symbols file already is a .def file, use it as
9496	# is; otherwise, prepend EXPORTS...
9497	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9498          cp $export_symbols $output_objdir/$soname.def;
9499        else
9500          echo EXPORTS > $output_objdir/$soname.def;
9501          cat $export_symbols >> $output_objdir/$soname.def;
9502        fi~
9503        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9504      else
9505	ld_shlibs=no
9506      fi
9507      ;;
9508
9509    haiku*)
9510      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9511      link_all_deplibs=yes
9512      ;;
9513
9514    os2*)
9515      hardcode_libdir_flag_spec='-L$libdir'
9516      hardcode_minus_L=yes
9517      allow_undefined_flag=unsupported
9518      shrext_cmds=.dll
9519      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9520	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9521	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9522	$ECHO EXPORTS >> $output_objdir/$libname.def~
9523	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9524	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9525	emximp -o $lib $output_objdir/$libname.def'
9526      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9527	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9528	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9529	$ECHO EXPORTS >> $output_objdir/$libname.def~
9530	prefix_cmds="$SED"~
9531	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9532	  prefix_cmds="$prefix_cmds -e 1d";
9533	fi~
9534	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9535	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9536	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9537	emximp -o $lib $output_objdir/$libname.def'
9538      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9539      enable_shared_with_static_runtimes=yes
9540      ;;
9541
9542    interix[3-9]*)
9543      hardcode_direct=no
9544      hardcode_shlibpath_var=no
9545      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9546      export_dynamic_flag_spec='$wl-E'
9547      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9548      # Instead, shared libraries are loaded at an image base (0x10000000 by
9549      # default) and relocated if they conflict, which is a slow very memory
9550      # consuming and fragmenting process.  To avoid this, we pick a random,
9551      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9552      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9553      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9554      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'
9555      ;;
9556
9557    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9558      tmp_diet=no
9559      if test linux-dietlibc = "$host_os"; then
9560	case $cc_basename in
9561	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9562	esac
9563      fi
9564      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9565	 && test no = "$tmp_diet"
9566      then
9567	tmp_addflag=' $pic_flag'
9568	tmp_sharedflag='-shared'
9569	case $cc_basename,$host_cpu in
9570        pgcc*)				# Portland Group C compiler
9571	  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'
9572	  tmp_addflag=' $pic_flag'
9573	  ;;
9574	pgf77* | pgf90* | pgf95* | pgfortran*)
9575					# Portland Group f77 and f90 compilers
9576	  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'
9577	  tmp_addflag=' $pic_flag -Mnomain' ;;
9578	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9579	  tmp_addflag=' -i_dynamic' ;;
9580	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9581	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9582	ifc* | ifort*)			# Intel Fortran compiler
9583	  tmp_addflag=' -nofor_main' ;;
9584	lf95*)				# Lahey Fortran 8.1
9585	  whole_archive_flag_spec=
9586	  tmp_sharedflag='--shared' ;;
9587        nagfor*)                        # NAGFOR 5.3
9588          tmp_sharedflag='-Wl,-shared' ;;
9589	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9590	  tmp_sharedflag='-qmkshrobj'
9591	  tmp_addflag= ;;
9592	nvcc*)	# Cuda Compiler Driver 2.2
9593	  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'
9594	  compiler_needs_object=yes
9595	  ;;
9596	esac
9597	case `$CC -V 2>&1 | sed 5q` in
9598	*Sun\ C*)			# Sun C 5.9
9599	  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'
9600	  compiler_needs_object=yes
9601	  tmp_sharedflag='-G' ;;
9602	*Sun\ F*)			# Sun Fortran 8.3
9603	  tmp_sharedflag='-G' ;;
9604	esac
9605	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9606
9607        if test yes = "$supports_anon_versioning"; then
9608          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9609            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9610            echo "local: *; };" >> $output_objdir/$libname.ver~
9611            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9612        fi
9613
9614	case $cc_basename in
9615	tcc*)
9616	  export_dynamic_flag_spec='-rdynamic'
9617	  ;;
9618	xlf* | bgf* | bgxlf* | mpixlf*)
9619	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9620	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9621	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9622	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9623	  if test yes = "$supports_anon_versioning"; then
9624	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9625              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9626              echo "local: *; };" >> $output_objdir/$libname.ver~
9627              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9628	  fi
9629	  ;;
9630	esac
9631      else
9632        ld_shlibs=no
9633      fi
9634      ;;
9635
9636    netbsd*)
9637      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9638	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9639	wlarc=
9640      else
9641	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9642	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9643      fi
9644      ;;
9645
9646    solaris*)
9647      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9648	ld_shlibs=no
9649	cat <<_LT_EOF 1>&2
9650
9651*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9652*** create shared libraries on Solaris systems.  Therefore, libtool
9653*** is disabling shared libraries support.  We urge you to upgrade GNU
9654*** binutils to release 2.9.1 or newer.  Another option is to modify
9655*** your PATH or compiler configuration so that the native linker is
9656*** used, and then restart.
9657
9658_LT_EOF
9659      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9660	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9661	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9662      else
9663	ld_shlibs=no
9664      fi
9665      ;;
9666
9667    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9668      case `$LD -v 2>&1` in
9669        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9670	ld_shlibs=no
9671	cat <<_LT_EOF 1>&2
9672
9673*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9674*** reliably create shared libraries on SCO systems.  Therefore, libtool
9675*** is disabling shared libraries support.  We urge you to upgrade GNU
9676*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9677*** your PATH or compiler configuration so that the native linker is
9678*** used, and then restart.
9679
9680_LT_EOF
9681	;;
9682	*)
9683	  # For security reasons, it is highly recommended that you always
9684	  # use absolute paths for naming shared libraries, and exclude the
9685	  # DT_RUNPATH tag from executables and libraries.  But doing so
9686	  # requires that you compile everything twice, which is a pain.
9687	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9688	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9689	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9690	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9691	  else
9692	    ld_shlibs=no
9693	  fi
9694	;;
9695      esac
9696      ;;
9697
9698    sunos4*)
9699      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9700      wlarc=
9701      hardcode_direct=yes
9702      hardcode_shlibpath_var=no
9703      ;;
9704
9705    *)
9706      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9707	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9708	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9709      else
9710	ld_shlibs=no
9711      fi
9712      ;;
9713    esac
9714
9715    if test no = "$ld_shlibs"; then
9716      runpath_var=
9717      hardcode_libdir_flag_spec=
9718      export_dynamic_flag_spec=
9719      whole_archive_flag_spec=
9720    fi
9721  else
9722    # PORTME fill in a description of your system's linker (not GNU ld)
9723    case $host_os in
9724    aix3*)
9725      allow_undefined_flag=unsupported
9726      always_export_symbols=yes
9727      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'
9728      # Note: this linker hardcodes the directories in LIBPATH if there
9729      # are no directories specified by -L.
9730      hardcode_minus_L=yes
9731      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9732	# Neither direct hardcoding nor static linking is supported with a
9733	# broken collect2.
9734	hardcode_direct=unsupported
9735      fi
9736      ;;
9737
9738    aix[4-9]*)
9739      if test ia64 = "$host_cpu"; then
9740	# On IA64, the linker does run time linking by default, so we don't
9741	# have to do anything special.
9742	aix_use_runtimelinking=no
9743	exp_sym_flag='-Bexport'
9744	no_entry_flag=
9745      else
9746	# If we're using GNU nm, then we don't want the "-C" option.
9747	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9748	# Without the "-l" option, or with the "-B" option, AIX nm treats
9749	# weak defined symbols like other global defined symbols, whereas
9750	# GNU nm marks them as "W".
9751	# While the 'weak' keyword is ignored in the Export File, we need
9752	# it in the Import File for the 'aix-soname' feature, so we have
9753	# to replace the "-B" option with "-P" for AIX nm.
9754	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9755	  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'
9756	else
9757	  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'
9758	fi
9759	aix_use_runtimelinking=no
9760
9761	# Test if we are trying to use run time linking or normal
9762	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9763	# have runtime linking enabled, and use it for executables.
9764	# For shared libraries, we enable/disable runtime linking
9765	# depending on the kind of the shared library created -
9766	# when "with_aix_soname,aix_use_runtimelinking" is:
9767	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9768	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9769	#            lib.a           static archive
9770	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9771	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9772	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9773	#            lib.a(lib.so.V) shared, rtl:no
9774	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9775	#            lib.a           static archive
9776	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9777	  for ld_flag in $LDFLAGS; do
9778	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9779	    aix_use_runtimelinking=yes
9780	    break
9781	  fi
9782	  done
9783	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9784	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9785	    # so we don't have lib.a shared libs to link our executables.
9786	    # We have to force runtime linking in this case.
9787	    aix_use_runtimelinking=yes
9788	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9789	  fi
9790	  ;;
9791	esac
9792
9793	exp_sym_flag='-bexport'
9794	no_entry_flag='-bnoentry'
9795      fi
9796
9797      # When large executables or shared objects are built, AIX ld can
9798      # have problems creating the table of contents.  If linking a library
9799      # or program results in "error TOC overflow" add -mminimal-toc to
9800      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9801      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9802
9803      archive_cmds=''
9804      hardcode_direct=yes
9805      hardcode_direct_absolute=yes
9806      hardcode_libdir_separator=':'
9807      link_all_deplibs=yes
9808      file_list_spec='$wl-f,'
9809      case $with_aix_soname,$aix_use_runtimelinking in
9810      aix,*) ;; # traditional, no import file
9811      svr4,* | *,yes) # use import file
9812	# The Import File defines what to hardcode.
9813	hardcode_direct=no
9814	hardcode_direct_absolute=no
9815	;;
9816      esac
9817
9818      if test yes = "$GCC"; then
9819	case $host_os in aix4.[012]|aix4.[012].*)
9820	# We only want to do this on AIX 4.2 and lower, the check
9821	# below for broken collect2 doesn't work under 4.3+
9822	  collect2name=`$CC -print-prog-name=collect2`
9823	  if test -f "$collect2name" &&
9824	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9825	  then
9826	  # We have reworked collect2
9827	  :
9828	  else
9829	  # We have old collect2
9830	  hardcode_direct=unsupported
9831	  # It fails to find uninstalled libraries when the uninstalled
9832	  # path is not listed in the libpath.  Setting hardcode_minus_L
9833	  # to unsupported forces relinking
9834	  hardcode_minus_L=yes
9835	  hardcode_libdir_flag_spec='-L$libdir'
9836	  hardcode_libdir_separator=
9837	  fi
9838	  ;;
9839	esac
9840	shared_flag='-shared'
9841	if test yes = "$aix_use_runtimelinking"; then
9842	  shared_flag="$shared_flag "'$wl-G'
9843	fi
9844	# Need to ensure runtime linking is disabled for the traditional
9845	# shared library, or the linker may eventually find shared libraries
9846	# /with/ Import File - we do not want to mix them.
9847	shared_flag_aix='-shared'
9848	shared_flag_svr4='-shared $wl-G'
9849      else
9850	# not using gcc
9851	if test ia64 = "$host_cpu"; then
9852	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9853	# chokes on -Wl,-G. The following line is correct:
9854	  shared_flag='-G'
9855	else
9856	  if test yes = "$aix_use_runtimelinking"; then
9857	    shared_flag='$wl-G'
9858	  else
9859	    shared_flag='$wl-bM:SRE'
9860	  fi
9861	  shared_flag_aix='$wl-bM:SRE'
9862	  shared_flag_svr4='$wl-G'
9863	fi
9864      fi
9865
9866      export_dynamic_flag_spec='$wl-bexpall'
9867      # It seems that -bexpall does not export symbols beginning with
9868      # underscore (_), so it is better to generate a list of symbols to export.
9869      always_export_symbols=yes
9870      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9871	# Warning - without using the other runtime loading flags (-brtl),
9872	# -berok will link without error, but may produce a broken library.
9873	allow_undefined_flag='-berok'
9874        # Determine the default libpath from the value encoded in an
9875        # empty executable.
9876        if test set = "${lt_cv_aix_libpath+set}"; then
9877  aix_libpath=$lt_cv_aix_libpath
9878else
9879  if ${lt_cv_aix_libpath_+:} false; then :
9880  $as_echo_n "(cached) " >&6
9881else
9882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9883/* end confdefs.h.  */
9884
9885int
9886main ()
9887{
9888
9889  ;
9890  return 0;
9891}
9892_ACEOF
9893if ac_fn_c_try_link "$LINENO"; then :
9894
9895  lt_aix_libpath_sed='
9896      /Import File Strings/,/^$/ {
9897	  /^0/ {
9898	      s/^0  *\([^ ]*\) *$/\1/
9899	      p
9900	  }
9901      }'
9902  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9903  # Check for a 64-bit object if we didn't find anything.
9904  if test -z "$lt_cv_aix_libpath_"; then
9905    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9906  fi
9907fi
9908rm -f core conftest.err conftest.$ac_objext \
9909    conftest$ac_exeext conftest.$ac_ext
9910  if test -z "$lt_cv_aix_libpath_"; then
9911    lt_cv_aix_libpath_=/usr/lib:/lib
9912  fi
9913
9914fi
9915
9916  aix_libpath=$lt_cv_aix_libpath_
9917fi
9918
9919        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9920        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
9921      else
9922	if test ia64 = "$host_cpu"; then
9923	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9924	  allow_undefined_flag="-z nodefs"
9925	  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"
9926	else
9927	 # Determine the default libpath from the value encoded in an
9928	 # empty executable.
9929	 if test set = "${lt_cv_aix_libpath+set}"; then
9930  aix_libpath=$lt_cv_aix_libpath
9931else
9932  if ${lt_cv_aix_libpath_+:} false; then :
9933  $as_echo_n "(cached) " >&6
9934else
9935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9936/* end confdefs.h.  */
9937
9938int
9939main ()
9940{
9941
9942  ;
9943  return 0;
9944}
9945_ACEOF
9946if ac_fn_c_try_link "$LINENO"; then :
9947
9948  lt_aix_libpath_sed='
9949      /Import File Strings/,/^$/ {
9950	  /^0/ {
9951	      s/^0  *\([^ ]*\) *$/\1/
9952	      p
9953	  }
9954      }'
9955  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9956  # Check for a 64-bit object if we didn't find anything.
9957  if test -z "$lt_cv_aix_libpath_"; then
9958    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9959  fi
9960fi
9961rm -f core conftest.err conftest.$ac_objext \
9962    conftest$ac_exeext conftest.$ac_ext
9963  if test -z "$lt_cv_aix_libpath_"; then
9964    lt_cv_aix_libpath_=/usr/lib:/lib
9965  fi
9966
9967fi
9968
9969  aix_libpath=$lt_cv_aix_libpath_
9970fi
9971
9972	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9973	  # Warning - without using the other run time loading flags,
9974	  # -berok will link without error, but may produce a broken library.
9975	  no_undefined_flag=' $wl-bernotok'
9976	  allow_undefined_flag=' $wl-berok'
9977	  if test yes = "$with_gnu_ld"; then
9978	    # We only use this code for GNU lds that support --whole-archive.
9979	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9980	  else
9981	    # Exported symbols can be pulled into shared objects from archives
9982	    whole_archive_flag_spec='$convenience'
9983	  fi
9984	  archive_cmds_need_lc=yes
9985	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9986	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9987	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9988	  if test svr4 != "$with_aix_soname"; then
9989	    # This is similar to how AIX traditionally builds its shared libraries.
9990	    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'
9991	  fi
9992	  if test aix != "$with_aix_soname"; then
9993	    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'
9994	  else
9995	    # used by -dlpreopen to get the symbols
9996	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9997	  fi
9998	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9999	fi
10000      fi
10001      ;;
10002
10003    amigaos*)
10004      case $host_cpu in
10005      powerpc)
10006            # see comment about AmigaOS4 .so support
10007            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10008            archive_expsym_cmds=''
10009        ;;
10010      m68k)
10011            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)'
10012            hardcode_libdir_flag_spec='-L$libdir'
10013            hardcode_minus_L=yes
10014        ;;
10015      esac
10016      ;;
10017
10018    bsdi[45]*)
10019      export_dynamic_flag_spec=-rdynamic
10020      ;;
10021
10022    cygwin* | mingw* | pw32* | cegcc*)
10023      # When not using gcc, we currently assume that we are using
10024      # Microsoft Visual C++.
10025      # hardcode_libdir_flag_spec is actually meaningless, as there is
10026      # no search path for DLLs.
10027      case $cc_basename in
10028      cl*)
10029	# Native MSVC
10030	hardcode_libdir_flag_spec=' '
10031	allow_undefined_flag=unsupported
10032	always_export_symbols=yes
10033	file_list_spec='@'
10034	# Tell ltmain to make .lib files, not .a files.
10035	libext=lib
10036	# Tell ltmain to make .dll files, not .so files.
10037	shrext_cmds=.dll
10038	# FIXME: Setting linknames here is a bad hack.
10039	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10040	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10041            cp "$export_symbols" "$output_objdir/$soname.def";
10042            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10043          else
10044            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10045          fi~
10046          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10047          linknames='
10048	# The linker will not automatically build a static lib if we build a DLL.
10049	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10050	enable_shared_with_static_runtimes=yes
10051	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10052	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10053	# Don't use ranlib
10054	old_postinstall_cmds='chmod 644 $oldlib'
10055	postlink_cmds='lt_outputfile="@OUTPUT@"~
10056          lt_tool_outputfile="@TOOL_OUTPUT@"~
10057          case $lt_outputfile in
10058            *.exe|*.EXE) ;;
10059            *)
10060              lt_outputfile=$lt_outputfile.exe
10061              lt_tool_outputfile=$lt_tool_outputfile.exe
10062              ;;
10063          esac~
10064          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10065            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10066            $RM "$lt_outputfile.manifest";
10067          fi'
10068	;;
10069      *)
10070	# Assume MSVC wrapper
10071	hardcode_libdir_flag_spec=' '
10072	allow_undefined_flag=unsupported
10073	# Tell ltmain to make .lib files, not .a files.
10074	libext=lib
10075	# Tell ltmain to make .dll files, not .so files.
10076	shrext_cmds=.dll
10077	# FIXME: Setting linknames here is a bad hack.
10078	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10079	# The linker will automatically build a .lib file if we build a DLL.
10080	old_archive_from_new_cmds='true'
10081	# FIXME: Should let the user specify the lib program.
10082	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10083	enable_shared_with_static_runtimes=yes
10084	;;
10085      esac
10086      ;;
10087
10088    darwin* | rhapsody*)
10089
10090
10091  archive_cmds_need_lc=no
10092  hardcode_direct=no
10093  hardcode_automatic=yes
10094  hardcode_shlibpath_var=unsupported
10095  if test yes = "$lt_cv_ld_force_load"; then
10096    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\"`'
10097
10098  else
10099    whole_archive_flag_spec=''
10100  fi
10101  link_all_deplibs=yes
10102  allow_undefined_flag=$_lt_dar_allow_undefined
10103  case $cc_basename in
10104     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10105     *) _lt_dar_can_shared=$GCC ;;
10106  esac
10107  if test yes = "$_lt_dar_can_shared"; then
10108    output_verbose_link_cmd=func_echo_all
10109    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10110    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10111    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"
10112    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"
10113
10114  else
10115  ld_shlibs=no
10116  fi
10117
10118      ;;
10119
10120    dgux*)
10121      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10122      hardcode_libdir_flag_spec='-L$libdir'
10123      hardcode_shlibpath_var=no
10124      ;;
10125
10126    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10127    # support.  Future versions do this automatically, but an explicit c++rt0.o
10128    # does not break anything, and helps significantly (at the cost of a little
10129    # extra space).
10130    freebsd2.2*)
10131      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10132      hardcode_libdir_flag_spec='-R$libdir'
10133      hardcode_direct=yes
10134      hardcode_shlibpath_var=no
10135      ;;
10136
10137    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10138    freebsd2.*)
10139      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10140      hardcode_direct=yes
10141      hardcode_minus_L=yes
10142      hardcode_shlibpath_var=no
10143      ;;
10144
10145    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10146    freebsd* | dragonfly*)
10147      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10148      hardcode_libdir_flag_spec='-R$libdir'
10149      hardcode_direct=yes
10150      hardcode_shlibpath_var=no
10151      ;;
10152
10153    hpux9*)
10154      if test yes = "$GCC"; then
10155	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'
10156      else
10157	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'
10158      fi
10159      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10160      hardcode_libdir_separator=:
10161      hardcode_direct=yes
10162
10163      # hardcode_minus_L: Not really in the search PATH,
10164      # but as the default location of the library.
10165      hardcode_minus_L=yes
10166      export_dynamic_flag_spec='$wl-E'
10167      ;;
10168
10169    hpux10*)
10170      if test yes,no = "$GCC,$with_gnu_ld"; then
10171	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10172      else
10173	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10174      fi
10175      if test no = "$with_gnu_ld"; then
10176	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10177	hardcode_libdir_separator=:
10178	hardcode_direct=yes
10179	hardcode_direct_absolute=yes
10180	export_dynamic_flag_spec='$wl-E'
10181	# hardcode_minus_L: Not really in the search PATH,
10182	# but as the default location of the library.
10183	hardcode_minus_L=yes
10184      fi
10185      ;;
10186
10187    hpux11*)
10188      if test yes,no = "$GCC,$with_gnu_ld"; then
10189	case $host_cpu in
10190	hppa*64*)
10191	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10192	  ;;
10193	ia64*)
10194	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10195	  ;;
10196	*)
10197	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10198	  ;;
10199	esac
10200      else
10201	case $host_cpu in
10202	hppa*64*)
10203	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10204	  ;;
10205	ia64*)
10206	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10207	  ;;
10208	*)
10209
10210	  # Older versions of the 11.00 compiler do not understand -b yet
10211	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10212	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10213$as_echo_n "checking if $CC understands -b... " >&6; }
10214if ${lt_cv_prog_compiler__b+:} false; then :
10215  $as_echo_n "(cached) " >&6
10216else
10217  lt_cv_prog_compiler__b=no
10218   save_LDFLAGS=$LDFLAGS
10219   LDFLAGS="$LDFLAGS -b"
10220   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10221   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10222     # The linker can only warn and ignore the option if not recognized
10223     # So say no if there are warnings
10224     if test -s conftest.err; then
10225       # Append any errors to the config.log.
10226       cat conftest.err 1>&5
10227       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10228       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10229       if diff conftest.exp conftest.er2 >/dev/null; then
10230         lt_cv_prog_compiler__b=yes
10231       fi
10232     else
10233       lt_cv_prog_compiler__b=yes
10234     fi
10235   fi
10236   $RM -r conftest*
10237   LDFLAGS=$save_LDFLAGS
10238
10239fi
10240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10241$as_echo "$lt_cv_prog_compiler__b" >&6; }
10242
10243if test yes = "$lt_cv_prog_compiler__b"; then
10244    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10245else
10246    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10247fi
10248
10249	  ;;
10250	esac
10251      fi
10252      if test no = "$with_gnu_ld"; then
10253	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10254	hardcode_libdir_separator=:
10255
10256	case $host_cpu in
10257	hppa*64*|ia64*)
10258	  hardcode_direct=no
10259	  hardcode_shlibpath_var=no
10260	  ;;
10261	*)
10262	  hardcode_direct=yes
10263	  hardcode_direct_absolute=yes
10264	  export_dynamic_flag_spec='$wl-E'
10265
10266	  # hardcode_minus_L: Not really in the search PATH,
10267	  # but as the default location of the library.
10268	  hardcode_minus_L=yes
10269	  ;;
10270	esac
10271      fi
10272      ;;
10273
10274    irix5* | irix6* | nonstopux*)
10275      if test yes = "$GCC"; then
10276	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'
10277	# Try to use the -exported_symbol ld option, if it does not
10278	# work, assume that -exports_file does not work either and
10279	# implicitly export all symbols.
10280	# This should be the same for all languages, so no per-tag cache variable.
10281	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10282$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10283if ${lt_cv_irix_exported_symbol+:} false; then :
10284  $as_echo_n "(cached) " >&6
10285else
10286  save_LDFLAGS=$LDFLAGS
10287	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10288	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10289/* end confdefs.h.  */
10290int foo (void) { return 0; }
10291_ACEOF
10292if ac_fn_c_try_link "$LINENO"; then :
10293  lt_cv_irix_exported_symbol=yes
10294else
10295  lt_cv_irix_exported_symbol=no
10296fi
10297rm -f core conftest.err conftest.$ac_objext \
10298    conftest$ac_exeext conftest.$ac_ext
10299           LDFLAGS=$save_LDFLAGS
10300fi
10301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10302$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10303	if test yes = "$lt_cv_irix_exported_symbol"; then
10304          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'
10305	fi
10306      else
10307	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'
10308	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'
10309      fi
10310      archive_cmds_need_lc='no'
10311      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10312      hardcode_libdir_separator=:
10313      inherit_rpath=yes
10314      link_all_deplibs=yes
10315      ;;
10316
10317    linux*)
10318      case $cc_basename in
10319      tcc*)
10320	# Fabrice Bellard et al's Tiny C Compiler
10321	ld_shlibs=yes
10322	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10323	;;
10324      esac
10325      ;;
10326
10327    netbsd*)
10328      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10329	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10330      else
10331	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10332      fi
10333      hardcode_libdir_flag_spec='-R$libdir'
10334      hardcode_direct=yes
10335      hardcode_shlibpath_var=no
10336      ;;
10337
10338    newsos6)
10339      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10340      hardcode_direct=yes
10341      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10342      hardcode_libdir_separator=:
10343      hardcode_shlibpath_var=no
10344      ;;
10345
10346    *nto* | *qnx*)
10347      ;;
10348
10349    openbsd* | bitrig*)
10350      if test -f /usr/libexec/ld.so; then
10351	hardcode_direct=yes
10352	hardcode_shlibpath_var=no
10353	hardcode_direct_absolute=yes
10354	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10355	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10356	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10357	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10358	  export_dynamic_flag_spec='$wl-E'
10359	else
10360	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10361	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10362	fi
10363      else
10364	ld_shlibs=no
10365      fi
10366      ;;
10367
10368    os2*)
10369      hardcode_libdir_flag_spec='-L$libdir'
10370      hardcode_minus_L=yes
10371      allow_undefined_flag=unsupported
10372      shrext_cmds=.dll
10373      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10374	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10375	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10376	$ECHO EXPORTS >> $output_objdir/$libname.def~
10377	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10378	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10379	emximp -o $lib $output_objdir/$libname.def'
10380      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10381	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10382	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10383	$ECHO EXPORTS >> $output_objdir/$libname.def~
10384	prefix_cmds="$SED"~
10385	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10386	  prefix_cmds="$prefix_cmds -e 1d";
10387	fi~
10388	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10389	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10390	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10391	emximp -o $lib $output_objdir/$libname.def'
10392      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10393      enable_shared_with_static_runtimes=yes
10394      ;;
10395
10396    osf3*)
10397      if test yes = "$GCC"; then
10398	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10399	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'
10400      else
10401	allow_undefined_flag=' -expect_unresolved \*'
10402	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'
10403      fi
10404      archive_cmds_need_lc='no'
10405      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10406      hardcode_libdir_separator=:
10407      ;;
10408
10409    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10410      if test yes = "$GCC"; then
10411	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10412	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'
10413	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10414      else
10415	allow_undefined_flag=' -expect_unresolved \*'
10416	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'
10417	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~
10418          $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'
10419
10420	# Both c and cxx compiler support -rpath directly
10421	hardcode_libdir_flag_spec='-rpath $libdir'
10422      fi
10423      archive_cmds_need_lc='no'
10424      hardcode_libdir_separator=:
10425      ;;
10426
10427    solaris*)
10428      no_undefined_flag=' -z defs'
10429      if test yes = "$GCC"; then
10430	wlarc='$wl'
10431	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10432	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10433          $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'
10434      else
10435	case `$CC -V 2>&1` in
10436	*"Compilers 5.0"*)
10437	  wlarc=''
10438	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10439	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10440            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10441	  ;;
10442	*)
10443	  wlarc='$wl'
10444	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10445	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10446            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10447	  ;;
10448	esac
10449      fi
10450      hardcode_libdir_flag_spec='-R$libdir'
10451      hardcode_shlibpath_var=no
10452      case $host_os in
10453      solaris2.[0-5] | solaris2.[0-5].*) ;;
10454      *)
10455	# The compiler driver will combine and reorder linker options,
10456	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10457	# but is careful enough not to reorder.
10458	# Supported since Solaris 2.6 (maybe 2.5.1?)
10459	if test yes = "$GCC"; then
10460	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10461	else
10462	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10463	fi
10464	;;
10465      esac
10466      link_all_deplibs=yes
10467      ;;
10468
10469    sunos4*)
10470      if test sequent = "$host_vendor"; then
10471	# Use $CC to link under sequent, because it throws in some extra .o
10472	# files that make .init and .fini sections work.
10473	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10474      else
10475	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10476      fi
10477      hardcode_libdir_flag_spec='-L$libdir'
10478      hardcode_direct=yes
10479      hardcode_minus_L=yes
10480      hardcode_shlibpath_var=no
10481      ;;
10482
10483    sysv4)
10484      case $host_vendor in
10485	sni)
10486	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10487	  hardcode_direct=yes # is this really true???
10488	;;
10489	siemens)
10490	  ## LD is ld it makes a PLAMLIB
10491	  ## CC just makes a GrossModule.
10492	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10493	  reload_cmds='$CC -r -o $output$reload_objs'
10494	  hardcode_direct=no
10495        ;;
10496	motorola)
10497	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10498	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10499	;;
10500      esac
10501      runpath_var='LD_RUN_PATH'
10502      hardcode_shlibpath_var=no
10503      ;;
10504
10505    sysv4.3*)
10506      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10507      hardcode_shlibpath_var=no
10508      export_dynamic_flag_spec='-Bexport'
10509      ;;
10510
10511    sysv4*MP*)
10512      if test -d /usr/nec; then
10513	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10514	hardcode_shlibpath_var=no
10515	runpath_var=LD_RUN_PATH
10516	hardcode_runpath_var=yes
10517	ld_shlibs=yes
10518      fi
10519      ;;
10520
10521    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10522      no_undefined_flag='$wl-z,text'
10523      archive_cmds_need_lc=no
10524      hardcode_shlibpath_var=no
10525      runpath_var='LD_RUN_PATH'
10526
10527      if test yes = "$GCC"; then
10528	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10529	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10530      else
10531	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10532	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10533      fi
10534      ;;
10535
10536    sysv5* | sco3.2v5* | sco5v6*)
10537      # Note: We CANNOT use -z defs as we might desire, because we do not
10538      # link with -lc, and that would cause any symbols used from libc to
10539      # always be unresolved, which means just about no library would
10540      # ever link correctly.  If we're not using GNU ld we use -z text
10541      # though, which does catch some bad symbols but isn't as heavy-handed
10542      # as -z defs.
10543      no_undefined_flag='$wl-z,text'
10544      allow_undefined_flag='$wl-z,nodefs'
10545      archive_cmds_need_lc=no
10546      hardcode_shlibpath_var=no
10547      hardcode_libdir_flag_spec='$wl-R,$libdir'
10548      hardcode_libdir_separator=':'
10549      link_all_deplibs=yes
10550      export_dynamic_flag_spec='$wl-Bexport'
10551      runpath_var='LD_RUN_PATH'
10552
10553      if test yes = "$GCC"; then
10554	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10555	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10556      else
10557	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10558	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10559      fi
10560      ;;
10561
10562    uts4*)
10563      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10564      hardcode_libdir_flag_spec='-L$libdir'
10565      hardcode_shlibpath_var=no
10566      ;;
10567
10568    *)
10569      ld_shlibs=no
10570      ;;
10571    esac
10572
10573    if test sni = "$host_vendor"; then
10574      case $host in
10575      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10576	export_dynamic_flag_spec='$wl-Blargedynsym'
10577	;;
10578      esac
10579    fi
10580  fi
10581
10582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10583$as_echo "$ld_shlibs" >&6; }
10584test no = "$ld_shlibs" && can_build_shared=no
10585
10586with_gnu_ld=$with_gnu_ld
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602#
10603# Do we need to explicitly link libc?
10604#
10605case "x$archive_cmds_need_lc" in
10606x|xyes)
10607  # Assume -lc should be added
10608  archive_cmds_need_lc=yes
10609
10610  if test yes,yes = "$GCC,$enable_shared"; then
10611    case $archive_cmds in
10612    *'~'*)
10613      # FIXME: we may have to deal with multi-command sequences.
10614      ;;
10615    '$CC '*)
10616      # Test whether the compiler implicitly links with -lc since on some
10617      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10618      # to ld, don't add -lc before -lgcc.
10619      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10620$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10621if ${lt_cv_archive_cmds_need_lc+:} false; then :
10622  $as_echo_n "(cached) " >&6
10623else
10624  $RM conftest*
10625	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10626
10627	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10628  (eval $ac_compile) 2>&5
10629  ac_status=$?
10630  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10631  test $ac_status = 0; } 2>conftest.err; then
10632	  soname=conftest
10633	  lib=conftest
10634	  libobjs=conftest.$ac_objext
10635	  deplibs=
10636	  wl=$lt_prog_compiler_wl
10637	  pic_flag=$lt_prog_compiler_pic
10638	  compiler_flags=-v
10639	  linker_flags=-v
10640	  verstring=
10641	  output_objdir=.
10642	  libname=conftest
10643	  lt_save_allow_undefined_flag=$allow_undefined_flag
10644	  allow_undefined_flag=
10645	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10646  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10647  ac_status=$?
10648  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10649  test $ac_status = 0; }
10650	  then
10651	    lt_cv_archive_cmds_need_lc=no
10652	  else
10653	    lt_cv_archive_cmds_need_lc=yes
10654	  fi
10655	  allow_undefined_flag=$lt_save_allow_undefined_flag
10656	else
10657	  cat conftest.err 1>&5
10658	fi
10659	$RM conftest*
10660
10661fi
10662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10663$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10664      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10665      ;;
10666    esac
10667  fi
10668  ;;
10669esac
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10823$as_echo_n "checking dynamic linker characteristics... " >&6; }
10824
10825if test yes = "$GCC"; then
10826  case $host_os in
10827    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10828    *) lt_awk_arg='/^libraries:/' ;;
10829  esac
10830  case $host_os in
10831    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10832    *) lt_sed_strip_eq='s|=/|/|g' ;;
10833  esac
10834  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10835  case $lt_search_path_spec in
10836  *\;*)
10837    # if the path contains ";" then we assume it to be the separator
10838    # otherwise default to the standard path separator (i.e. ":") - it is
10839    # assumed that no part of a normal pathname contains ";" but that should
10840    # okay in the real world where ";" in dirpaths is itself problematic.
10841    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10842    ;;
10843  *)
10844    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10845    ;;
10846  esac
10847  # Ok, now we have the path, separated by spaces, we can step through it
10848  # and add multilib dir if necessary...
10849  lt_tmp_lt_search_path_spec=
10850  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10851  # ...but if some path component already ends with the multilib dir we assume
10852  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10853  case "$lt_multi_os_dir; $lt_search_path_spec " in
10854  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10855    lt_multi_os_dir=
10856    ;;
10857  esac
10858  for lt_sys_path in $lt_search_path_spec; do
10859    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10860      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10861    elif test -n "$lt_multi_os_dir"; then
10862      test -d "$lt_sys_path" && \
10863	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10864    fi
10865  done
10866  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10867BEGIN {RS = " "; FS = "/|\n";} {
10868  lt_foo = "";
10869  lt_count = 0;
10870  for (lt_i = NF; lt_i > 0; lt_i--) {
10871    if ($lt_i != "" && $lt_i != ".") {
10872      if ($lt_i == "..") {
10873        lt_count++;
10874      } else {
10875        if (lt_count == 0) {
10876          lt_foo = "/" $lt_i lt_foo;
10877        } else {
10878          lt_count--;
10879        }
10880      }
10881    }
10882  }
10883  if (lt_foo != "") { lt_freq[lt_foo]++; }
10884  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10885}'`
10886  # AWK program above erroneously prepends '/' to C:/dos/paths
10887  # for these hosts.
10888  case $host_os in
10889    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10890      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10891  esac
10892  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10893else
10894  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10895fi
10896library_names_spec=
10897libname_spec='lib$name'
10898soname_spec=
10899shrext_cmds=.so
10900postinstall_cmds=
10901postuninstall_cmds=
10902finish_cmds=
10903finish_eval=
10904shlibpath_var=
10905shlibpath_overrides_runpath=unknown
10906version_type=none
10907dynamic_linker="$host_os ld.so"
10908sys_lib_dlsearch_path_spec="/lib /usr/lib"
10909need_lib_prefix=unknown
10910hardcode_into_libs=no
10911
10912# when you set need_version to no, make sure it does not cause -set_version
10913# flags to be left without arguments
10914need_version=unknown
10915
10916
10917
10918case $host_os in
10919aix3*)
10920  version_type=linux # correct to gnu/linux during the next big refactor
10921  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10922  shlibpath_var=LIBPATH
10923
10924  # AIX 3 has no versioning support, so we append a major version to the name.
10925  soname_spec='$libname$release$shared_ext$major'
10926  ;;
10927
10928aix[4-9]*)
10929  version_type=linux # correct to gnu/linux during the next big refactor
10930  need_lib_prefix=no
10931  need_version=no
10932  hardcode_into_libs=yes
10933  if test ia64 = "$host_cpu"; then
10934    # AIX 5 supports IA64
10935    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10936    shlibpath_var=LD_LIBRARY_PATH
10937  else
10938    # With GCC up to 2.95.x, collect2 would create an import file
10939    # for dependence libraries.  The import file would start with
10940    # the line '#! .'.  This would cause the generated library to
10941    # depend on '.', always an invalid library.  This was fixed in
10942    # development snapshots of GCC prior to 3.0.
10943    case $host_os in
10944      aix4 | aix4.[01] | aix4.[01].*)
10945      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10946	   echo ' yes '
10947	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10948	:
10949      else
10950	can_build_shared=no
10951      fi
10952      ;;
10953    esac
10954    # Using Import Files as archive members, it is possible to support
10955    # filename-based versioning of shared library archives on AIX. While
10956    # this would work for both with and without runtime linking, it will
10957    # prevent static linking of such archives. So we do filename-based
10958    # shared library versioning with .so extension only, which is used
10959    # when both runtime linking and shared linking is enabled.
10960    # Unfortunately, runtime linking may impact performance, so we do
10961    # not want this to be the default eventually. Also, we use the
10962    # versioned .so libs for executables only if there is the -brtl
10963    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10964    # To allow for filename-based versioning support, we need to create
10965    # libNAME.so.V as an archive file, containing:
10966    # *) an Import File, referring to the versioned filename of the
10967    #    archive as well as the shared archive member, telling the
10968    #    bitwidth (32 or 64) of that shared object, and providing the
10969    #    list of exported symbols of that shared object, eventually
10970    #    decorated with the 'weak' keyword
10971    # *) the shared object with the F_LOADONLY flag set, to really avoid
10972    #    it being seen by the linker.
10973    # At run time we better use the real file rather than another symlink,
10974    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10975
10976    case $with_aix_soname,$aix_use_runtimelinking in
10977    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10978    # soname into executable. Probably we can add versioning support to
10979    # collect2, so additional links can be useful in future.
10980    aix,yes) # traditional libtool
10981      dynamic_linker='AIX unversionable lib.so'
10982      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10983      # instead of lib<name>.a to let people know that these are not
10984      # typical AIX shared libraries.
10985      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10986      ;;
10987    aix,no) # traditional AIX only
10988      dynamic_linker='AIX lib.a(lib.so.V)'
10989      # We preserve .a as extension for shared libraries through AIX4.2
10990      # and later when we are not doing run time linking.
10991      library_names_spec='$libname$release.a $libname.a'
10992      soname_spec='$libname$release$shared_ext$major'
10993      ;;
10994    svr4,*) # full svr4 only
10995      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10996      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10997      # We do not specify a path in Import Files, so LIBPATH fires.
10998      shlibpath_overrides_runpath=yes
10999      ;;
11000    *,yes) # both, prefer svr4
11001      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11002      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11003      # unpreferred sharedlib libNAME.a needs extra handling
11004      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"'
11005      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"'
11006      # We do not specify a path in Import Files, so LIBPATH fires.
11007      shlibpath_overrides_runpath=yes
11008      ;;
11009    *,no) # both, prefer aix
11010      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11011      library_names_spec='$libname$release.a $libname.a'
11012      soname_spec='$libname$release$shared_ext$major'
11013      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11014      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)'
11015      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"'
11016      ;;
11017    esac
11018    shlibpath_var=LIBPATH
11019  fi
11020  ;;
11021
11022amigaos*)
11023  case $host_cpu in
11024  powerpc)
11025    # Since July 2007 AmigaOS4 officially supports .so libraries.
11026    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11027    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11028    ;;
11029  m68k)
11030    library_names_spec='$libname.ixlibrary $libname.a'
11031    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11032    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'
11033    ;;
11034  esac
11035  ;;
11036
11037beos*)
11038  library_names_spec='$libname$shared_ext'
11039  dynamic_linker="$host_os ld.so"
11040  shlibpath_var=LIBRARY_PATH
11041  ;;
11042
11043bsdi[45]*)
11044  version_type=linux # correct to gnu/linux during the next big refactor
11045  need_version=no
11046  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11047  soname_spec='$libname$release$shared_ext$major'
11048  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11049  shlibpath_var=LD_LIBRARY_PATH
11050  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11051  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11052  # the default ld.so.conf also contains /usr/contrib/lib and
11053  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11054  # libtool to hard-code these into programs
11055  ;;
11056
11057cygwin* | mingw* | pw32* | cegcc*)
11058  version_type=windows
11059  shrext_cmds=.dll
11060  need_version=no
11061  need_lib_prefix=no
11062
11063  case $GCC,$cc_basename in
11064  yes,*)
11065    # gcc
11066    library_names_spec='$libname.dll.a'
11067    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11068    postinstall_cmds='base_file=`basename \$file`~
11069      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11070      dldir=$destdir/`dirname \$dlpath`~
11071      test -d \$dldir || mkdir -p \$dldir~
11072      $install_prog $dir/$dlname \$dldir/$dlname~
11073      chmod a+x \$dldir/$dlname~
11074      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11075        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11076      fi'
11077    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11078      dlpath=$dir/\$dldll~
11079       $RM \$dlpath'
11080    shlibpath_overrides_runpath=yes
11081
11082    case $host_os in
11083    cygwin*)
11084      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11085      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11086
11087      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11088      ;;
11089    mingw* | cegcc*)
11090      # MinGW DLLs use traditional 'lib' prefix
11091      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11092      ;;
11093    pw32*)
11094      # pw32 DLLs use 'pw' prefix rather than 'lib'
11095      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11096      ;;
11097    esac
11098    dynamic_linker='Win32 ld.exe'
11099    ;;
11100
11101  *,cl*)
11102    # Native MSVC
11103    libname_spec='$name'
11104    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11105    library_names_spec='$libname.dll.lib'
11106
11107    case $build_os in
11108    mingw*)
11109      sys_lib_search_path_spec=
11110      lt_save_ifs=$IFS
11111      IFS=';'
11112      for lt_path in $LIB
11113      do
11114        IFS=$lt_save_ifs
11115        # Let DOS variable expansion print the short 8.3 style file name.
11116        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11117        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11118      done
11119      IFS=$lt_save_ifs
11120      # Convert to MSYS style.
11121      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11122      ;;
11123    cygwin*)
11124      # Convert to unix form, then to dos form, then back to unix form
11125      # but this time dos style (no spaces!) so that the unix form looks
11126      # like /cygdrive/c/PROGRA~1:/cygdr...
11127      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11128      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11129      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11130      ;;
11131    *)
11132      sys_lib_search_path_spec=$LIB
11133      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11134        # It is most probably a Windows format PATH.
11135        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11136      else
11137        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11138      fi
11139      # FIXME: find the short name or the path components, as spaces are
11140      # common. (e.g. "Program Files" -> "PROGRA~1")
11141      ;;
11142    esac
11143
11144    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11145    postinstall_cmds='base_file=`basename \$file`~
11146      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11147      dldir=$destdir/`dirname \$dlpath`~
11148      test -d \$dldir || mkdir -p \$dldir~
11149      $install_prog $dir/$dlname \$dldir/$dlname'
11150    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11151      dlpath=$dir/\$dldll~
11152       $RM \$dlpath'
11153    shlibpath_overrides_runpath=yes
11154    dynamic_linker='Win32 link.exe'
11155    ;;
11156
11157  *)
11158    # Assume MSVC wrapper
11159    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11160    dynamic_linker='Win32 ld.exe'
11161    ;;
11162  esac
11163  # FIXME: first we should search . and the directory the executable is in
11164  shlibpath_var=PATH
11165  ;;
11166
11167darwin* | rhapsody*)
11168  dynamic_linker="$host_os dyld"
11169  version_type=darwin
11170  need_lib_prefix=no
11171  need_version=no
11172  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11173  soname_spec='$libname$release$major$shared_ext'
11174  shlibpath_overrides_runpath=yes
11175  shlibpath_var=DYLD_LIBRARY_PATH
11176  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11177
11178  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11179  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11180  ;;
11181
11182dgux*)
11183  version_type=linux # correct to gnu/linux during the next big refactor
11184  need_lib_prefix=no
11185  need_version=no
11186  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11187  soname_spec='$libname$release$shared_ext$major'
11188  shlibpath_var=LD_LIBRARY_PATH
11189  ;;
11190
11191freebsd* | dragonfly*)
11192  # DragonFly does not have aout.  When/if they implement a new
11193  # versioning mechanism, adjust this.
11194  if test -x /usr/bin/objformat; then
11195    objformat=`/usr/bin/objformat`
11196  else
11197    case $host_os in
11198    freebsd[23].*) objformat=aout ;;
11199    *) objformat=elf ;;
11200    esac
11201  fi
11202  version_type=freebsd-$objformat
11203  case $version_type in
11204    freebsd-elf*)
11205      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11206      soname_spec='$libname$release$shared_ext$major'
11207      need_version=no
11208      need_lib_prefix=no
11209      ;;
11210    freebsd-*)
11211      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11212      need_version=yes
11213      ;;
11214  esac
11215  shlibpath_var=LD_LIBRARY_PATH
11216  case $host_os in
11217  freebsd2.*)
11218    shlibpath_overrides_runpath=yes
11219    ;;
11220  freebsd3.[01]* | freebsdelf3.[01]*)
11221    shlibpath_overrides_runpath=yes
11222    hardcode_into_libs=yes
11223    ;;
11224  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11225  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11226    shlibpath_overrides_runpath=no
11227    hardcode_into_libs=yes
11228    ;;
11229  *) # from 4.6 on, and DragonFly
11230    shlibpath_overrides_runpath=yes
11231    hardcode_into_libs=yes
11232    ;;
11233  esac
11234  ;;
11235
11236haiku*)
11237  version_type=linux # correct to gnu/linux during the next big refactor
11238  need_lib_prefix=no
11239  need_version=no
11240  dynamic_linker="$host_os runtime_loader"
11241  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11242  soname_spec='$libname$release$shared_ext$major'
11243  shlibpath_var=LIBRARY_PATH
11244  shlibpath_overrides_runpath=no
11245  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11246  hardcode_into_libs=yes
11247  ;;
11248
11249hpux9* | hpux10* | hpux11*)
11250  # Give a soname corresponding to the major version so that dld.sl refuses to
11251  # link against other versions.
11252  version_type=sunos
11253  need_lib_prefix=no
11254  need_version=no
11255  case $host_cpu in
11256  ia64*)
11257    shrext_cmds='.so'
11258    hardcode_into_libs=yes
11259    dynamic_linker="$host_os dld.so"
11260    shlibpath_var=LD_LIBRARY_PATH
11261    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11262    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11263    soname_spec='$libname$release$shared_ext$major'
11264    if test 32 = "$HPUX_IA64_MODE"; then
11265      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11266      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11267    else
11268      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11269      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11270    fi
11271    ;;
11272  hppa*64*)
11273    shrext_cmds='.sl'
11274    hardcode_into_libs=yes
11275    dynamic_linker="$host_os dld.sl"
11276    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11277    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11278    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11279    soname_spec='$libname$release$shared_ext$major'
11280    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11281    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11282    ;;
11283  *)
11284    shrext_cmds='.sl'
11285    dynamic_linker="$host_os dld.sl"
11286    shlibpath_var=SHLIB_PATH
11287    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11288    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11289    soname_spec='$libname$release$shared_ext$major'
11290    ;;
11291  esac
11292  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11293  postinstall_cmds='chmod 555 $lib'
11294  # or fails outright, so override atomically:
11295  install_override_mode=555
11296  ;;
11297
11298interix[3-9]*)
11299  version_type=linux # correct to gnu/linux during the next big refactor
11300  need_lib_prefix=no
11301  need_version=no
11302  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11303  soname_spec='$libname$release$shared_ext$major'
11304  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11305  shlibpath_var=LD_LIBRARY_PATH
11306  shlibpath_overrides_runpath=no
11307  hardcode_into_libs=yes
11308  ;;
11309
11310irix5* | irix6* | nonstopux*)
11311  case $host_os in
11312    nonstopux*) version_type=nonstopux ;;
11313    *)
11314	if test yes = "$lt_cv_prog_gnu_ld"; then
11315		version_type=linux # correct to gnu/linux during the next big refactor
11316	else
11317		version_type=irix
11318	fi ;;
11319  esac
11320  need_lib_prefix=no
11321  need_version=no
11322  soname_spec='$libname$release$shared_ext$major'
11323  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11324  case $host_os in
11325  irix5* | nonstopux*)
11326    libsuff= shlibsuff=
11327    ;;
11328  *)
11329    case $LD in # libtool.m4 will add one of these switches to LD
11330    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11331      libsuff= shlibsuff= libmagic=32-bit;;
11332    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11333      libsuff=32 shlibsuff=N32 libmagic=N32;;
11334    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11335      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11336    *) libsuff= shlibsuff= libmagic=never-match;;
11337    esac
11338    ;;
11339  esac
11340  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11341  shlibpath_overrides_runpath=no
11342  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11343  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11344  hardcode_into_libs=yes
11345  ;;
11346
11347# No shared lib support for Linux oldld, aout, or coff.
11348linux*oldld* | linux*aout* | linux*coff*)
11349  dynamic_linker=no
11350  ;;
11351
11352linux*android*)
11353  version_type=none # Android doesn't support versioned libraries.
11354  need_lib_prefix=no
11355  need_version=no
11356  library_names_spec='$libname$release$shared_ext'
11357  soname_spec='$libname$release$shared_ext'
11358  finish_cmds=
11359  shlibpath_var=LD_LIBRARY_PATH
11360  shlibpath_overrides_runpath=yes
11361
11362  # This implies no fast_install, which is unacceptable.
11363  # Some rework will be needed to allow for fast_install
11364  # before this can be enabled.
11365  hardcode_into_libs=yes
11366
11367  dynamic_linker='Android linker'
11368  # Don't embed -rpath directories since the linker doesn't support them.
11369  hardcode_libdir_flag_spec='-L$libdir'
11370  ;;
11371
11372# This must be glibc/ELF.
11373linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11374  version_type=linux # correct to gnu/linux during the next big refactor
11375  need_lib_prefix=no
11376  need_version=no
11377  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11378  soname_spec='$libname$release$shared_ext$major'
11379  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11380  shlibpath_var=LD_LIBRARY_PATH
11381  shlibpath_overrides_runpath=no
11382
11383  # Some binutils ld are patched to set DT_RUNPATH
11384  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11385  $as_echo_n "(cached) " >&6
11386else
11387  lt_cv_shlibpath_overrides_runpath=no
11388    save_LDFLAGS=$LDFLAGS
11389    save_libdir=$libdir
11390    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11391	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11392    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11393/* end confdefs.h.  */
11394
11395int
11396main ()
11397{
11398
11399  ;
11400  return 0;
11401}
11402_ACEOF
11403if ac_fn_c_try_link "$LINENO"; then :
11404  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11405  lt_cv_shlibpath_overrides_runpath=yes
11406fi
11407fi
11408rm -f core conftest.err conftest.$ac_objext \
11409    conftest$ac_exeext conftest.$ac_ext
11410    LDFLAGS=$save_LDFLAGS
11411    libdir=$save_libdir
11412
11413fi
11414
11415  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11416
11417  # This implies no fast_install, which is unacceptable.
11418  # Some rework will be needed to allow for fast_install
11419  # before this can be enabled.
11420  hardcode_into_libs=yes
11421
11422  # Ideally, we could use ldconfig to report *all* directores which are
11423  # searched for libraries, however this is still not possible.  Aside from not
11424  # being certain /sbin/ldconfig is available, command
11425  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11426  # even though it is searched at run-time.  Try to do the best guess by
11427  # appending ld.so.conf contents (and includes) to the search path.
11428  if test -f /etc/ld.so.conf; then
11429    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' ' '`
11430    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11431  fi
11432
11433  # We used to test for /lib/ld.so.1 and disable shared libraries on
11434  # powerpc, because MkLinux only supported shared libraries with the
11435  # GNU dynamic linker.  Since this was broken with cross compilers,
11436  # most powerpc-linux boxes support dynamic linking these days and
11437  # people can always --disable-shared, the test was removed, and we
11438  # assume the GNU/Linux dynamic linker is in use.
11439  dynamic_linker='GNU/Linux ld.so'
11440  ;;
11441
11442netbsd*)
11443  version_type=sunos
11444  need_lib_prefix=no
11445  need_version=no
11446  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11447    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11448    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11449    dynamic_linker='NetBSD (a.out) ld.so'
11450  else
11451    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11452    soname_spec='$libname$release$shared_ext$major'
11453    dynamic_linker='NetBSD ld.elf_so'
11454  fi
11455  shlibpath_var=LD_LIBRARY_PATH
11456  shlibpath_overrides_runpath=yes
11457  hardcode_into_libs=yes
11458  ;;
11459
11460newsos6)
11461  version_type=linux # correct to gnu/linux during the next big refactor
11462  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11463  shlibpath_var=LD_LIBRARY_PATH
11464  shlibpath_overrides_runpath=yes
11465  ;;
11466
11467*nto* | *qnx*)
11468  version_type=qnx
11469  need_lib_prefix=no
11470  need_version=no
11471  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11472  soname_spec='$libname$release$shared_ext$major'
11473  shlibpath_var=LD_LIBRARY_PATH
11474  shlibpath_overrides_runpath=no
11475  hardcode_into_libs=yes
11476  dynamic_linker='ldqnx.so'
11477  ;;
11478
11479openbsd* | bitrig*)
11480  version_type=sunos
11481  sys_lib_dlsearch_path_spec=/usr/lib
11482  need_lib_prefix=no
11483  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11484    need_version=no
11485  else
11486    need_version=yes
11487  fi
11488  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11489  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11490  shlibpath_var=LD_LIBRARY_PATH
11491  shlibpath_overrides_runpath=yes
11492  ;;
11493
11494os2*)
11495  libname_spec='$name'
11496  version_type=windows
11497  shrext_cmds=.dll
11498  need_version=no
11499  need_lib_prefix=no
11500  # OS/2 can only load a DLL with a base name of 8 characters or less.
11501  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11502    v=$($ECHO $release$versuffix | tr -d .-);
11503    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11504    $ECHO $n$v`$shared_ext'
11505  library_names_spec='${libname}_dll.$libext'
11506  dynamic_linker='OS/2 ld.exe'
11507  shlibpath_var=BEGINLIBPATH
11508  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11509  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11510  postinstall_cmds='base_file=`basename \$file`~
11511    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11512    dldir=$destdir/`dirname \$dlpath`~
11513    test -d \$dldir || mkdir -p \$dldir~
11514    $install_prog $dir/$dlname \$dldir/$dlname~
11515    chmod a+x \$dldir/$dlname~
11516    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11517      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11518    fi'
11519  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11520    dlpath=$dir/\$dldll~
11521    $RM \$dlpath'
11522  ;;
11523
11524osf3* | osf4* | osf5*)
11525  version_type=osf
11526  need_lib_prefix=no
11527  need_version=no
11528  soname_spec='$libname$release$shared_ext$major'
11529  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11530  shlibpath_var=LD_LIBRARY_PATH
11531  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11532  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11533  ;;
11534
11535rdos*)
11536  dynamic_linker=no
11537  ;;
11538
11539solaris*)
11540  version_type=linux # correct to gnu/linux during the next big refactor
11541  need_lib_prefix=no
11542  need_version=no
11543  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11544  soname_spec='$libname$release$shared_ext$major'
11545  shlibpath_var=LD_LIBRARY_PATH
11546  shlibpath_overrides_runpath=yes
11547  hardcode_into_libs=yes
11548  # ldd complains unless libraries are executable
11549  postinstall_cmds='chmod +x $lib'
11550  ;;
11551
11552sunos4*)
11553  version_type=sunos
11554  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11555  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11556  shlibpath_var=LD_LIBRARY_PATH
11557  shlibpath_overrides_runpath=yes
11558  if test yes = "$with_gnu_ld"; then
11559    need_lib_prefix=no
11560  fi
11561  need_version=yes
11562  ;;
11563
11564sysv4 | sysv4.3*)
11565  version_type=linux # correct to gnu/linux during the next big refactor
11566  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11567  soname_spec='$libname$release$shared_ext$major'
11568  shlibpath_var=LD_LIBRARY_PATH
11569  case $host_vendor in
11570    sni)
11571      shlibpath_overrides_runpath=no
11572      need_lib_prefix=no
11573      runpath_var=LD_RUN_PATH
11574      ;;
11575    siemens)
11576      need_lib_prefix=no
11577      ;;
11578    motorola)
11579      need_lib_prefix=no
11580      need_version=no
11581      shlibpath_overrides_runpath=no
11582      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11583      ;;
11584  esac
11585  ;;
11586
11587sysv4*MP*)
11588  if test -d /usr/nec; then
11589    version_type=linux # correct to gnu/linux during the next big refactor
11590    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11591    soname_spec='$libname$shared_ext.$major'
11592    shlibpath_var=LD_LIBRARY_PATH
11593  fi
11594  ;;
11595
11596sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11597  version_type=sco
11598  need_lib_prefix=no
11599  need_version=no
11600  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11601  soname_spec='$libname$release$shared_ext$major'
11602  shlibpath_var=LD_LIBRARY_PATH
11603  shlibpath_overrides_runpath=yes
11604  hardcode_into_libs=yes
11605  if test yes = "$with_gnu_ld"; then
11606    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11607  else
11608    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11609    case $host_os in
11610      sco3.2v5*)
11611        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11612	;;
11613    esac
11614  fi
11615  sys_lib_dlsearch_path_spec='/usr/lib'
11616  ;;
11617
11618tpf*)
11619  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11620  version_type=linux # correct to gnu/linux during the next big refactor
11621  need_lib_prefix=no
11622  need_version=no
11623  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11624  shlibpath_var=LD_LIBRARY_PATH
11625  shlibpath_overrides_runpath=no
11626  hardcode_into_libs=yes
11627  ;;
11628
11629uts4*)
11630  version_type=linux # correct to gnu/linux during the next big refactor
11631  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11632  soname_spec='$libname$release$shared_ext$major'
11633  shlibpath_var=LD_LIBRARY_PATH
11634  ;;
11635
11636*)
11637  dynamic_linker=no
11638  ;;
11639esac
11640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11641$as_echo "$dynamic_linker" >&6; }
11642test no = "$dynamic_linker" && can_build_shared=no
11643
11644variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11645if test yes = "$GCC"; then
11646  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11647fi
11648
11649if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11650  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11651fi
11652
11653if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11654  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11655fi
11656
11657# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11658configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11659
11660# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11661func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11662
11663# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11664configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11763$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11764hardcode_action=
11765if test -n "$hardcode_libdir_flag_spec" ||
11766   test -n "$runpath_var" ||
11767   test yes = "$hardcode_automatic"; then
11768
11769  # We can hardcode non-existent directories.
11770  if test no != "$hardcode_direct" &&
11771     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11772     # have to relink, otherwise we might link with an installed library
11773     # when we should be linking with a yet-to-be-installed one
11774     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11775     test no != "$hardcode_minus_L"; then
11776    # Linking always hardcodes the temporary library directory.
11777    hardcode_action=relink
11778  else
11779    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11780    hardcode_action=immediate
11781  fi
11782else
11783  # We cannot hardcode anything, or else we can only hardcode existing
11784  # directories.
11785  hardcode_action=unsupported
11786fi
11787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11788$as_echo "$hardcode_action" >&6; }
11789
11790if test relink = "$hardcode_action" ||
11791   test yes = "$inherit_rpath"; then
11792  # Fast installation is not supported
11793  enable_fast_install=no
11794elif test yes = "$shlibpath_overrides_runpath" ||
11795     test no = "$enable_shared"; then
11796  # Fast installation is not necessary
11797  enable_fast_install=needless
11798fi
11799
11800
11801
11802
11803
11804
11805  if test yes != "$enable_dlopen"; then
11806  enable_dlopen=unknown
11807  enable_dlopen_self=unknown
11808  enable_dlopen_self_static=unknown
11809else
11810  lt_cv_dlopen=no
11811  lt_cv_dlopen_libs=
11812
11813  case $host_os in
11814  beos*)
11815    lt_cv_dlopen=load_add_on
11816    lt_cv_dlopen_libs=
11817    lt_cv_dlopen_self=yes
11818    ;;
11819
11820  mingw* | pw32* | cegcc*)
11821    lt_cv_dlopen=LoadLibrary
11822    lt_cv_dlopen_libs=
11823    ;;
11824
11825  cygwin*)
11826    lt_cv_dlopen=dlopen
11827    lt_cv_dlopen_libs=
11828    ;;
11829
11830  darwin*)
11831    # if libdl is installed we need to link against it
11832    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11833$as_echo_n "checking for dlopen in -ldl... " >&6; }
11834if ${ac_cv_lib_dl_dlopen+:} false; then :
11835  $as_echo_n "(cached) " >&6
11836else
11837  ac_check_lib_save_LIBS=$LIBS
11838LIBS="-ldl  $LIBS"
11839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11840/* end confdefs.h.  */
11841
11842/* Override any GCC internal prototype to avoid an error.
11843   Use char because int might match the return type of a GCC
11844   builtin and then its argument prototype would still apply.  */
11845#ifdef __cplusplus
11846extern "C"
11847#endif
11848char dlopen ();
11849int
11850main ()
11851{
11852return dlopen ();
11853  ;
11854  return 0;
11855}
11856_ACEOF
11857if ac_fn_c_try_link "$LINENO"; then :
11858  ac_cv_lib_dl_dlopen=yes
11859else
11860  ac_cv_lib_dl_dlopen=no
11861fi
11862rm -f core conftest.err conftest.$ac_objext \
11863    conftest$ac_exeext conftest.$ac_ext
11864LIBS=$ac_check_lib_save_LIBS
11865fi
11866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11867$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11868if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11869  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11870else
11871
11872    lt_cv_dlopen=dyld
11873    lt_cv_dlopen_libs=
11874    lt_cv_dlopen_self=yes
11875
11876fi
11877
11878    ;;
11879
11880  tpf*)
11881    # Don't try to run any link tests for TPF.  We know it's impossible
11882    # because TPF is a cross-compiler, and we know how we open DSOs.
11883    lt_cv_dlopen=dlopen
11884    lt_cv_dlopen_libs=
11885    lt_cv_dlopen_self=no
11886    ;;
11887
11888  *)
11889    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11890if test "x$ac_cv_func_shl_load" = xyes; then :
11891  lt_cv_dlopen=shl_load
11892else
11893  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11894$as_echo_n "checking for shl_load in -ldld... " >&6; }
11895if ${ac_cv_lib_dld_shl_load+:} false; then :
11896  $as_echo_n "(cached) " >&6
11897else
11898  ac_check_lib_save_LIBS=$LIBS
11899LIBS="-ldld  $LIBS"
11900cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11901/* end confdefs.h.  */
11902
11903/* Override any GCC internal prototype to avoid an error.
11904   Use char because int might match the return type of a GCC
11905   builtin and then its argument prototype would still apply.  */
11906#ifdef __cplusplus
11907extern "C"
11908#endif
11909char shl_load ();
11910int
11911main ()
11912{
11913return shl_load ();
11914  ;
11915  return 0;
11916}
11917_ACEOF
11918if ac_fn_c_try_link "$LINENO"; then :
11919  ac_cv_lib_dld_shl_load=yes
11920else
11921  ac_cv_lib_dld_shl_load=no
11922fi
11923rm -f core conftest.err conftest.$ac_objext \
11924    conftest$ac_exeext conftest.$ac_ext
11925LIBS=$ac_check_lib_save_LIBS
11926fi
11927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11928$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11929if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11930  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11931else
11932  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11933if test "x$ac_cv_func_dlopen" = xyes; then :
11934  lt_cv_dlopen=dlopen
11935else
11936  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11937$as_echo_n "checking for dlopen in -ldl... " >&6; }
11938if ${ac_cv_lib_dl_dlopen+:} false; then :
11939  $as_echo_n "(cached) " >&6
11940else
11941  ac_check_lib_save_LIBS=$LIBS
11942LIBS="-ldl  $LIBS"
11943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11944/* end confdefs.h.  */
11945
11946/* Override any GCC internal prototype to avoid an error.
11947   Use char because int might match the return type of a GCC
11948   builtin and then its argument prototype would still apply.  */
11949#ifdef __cplusplus
11950extern "C"
11951#endif
11952char dlopen ();
11953int
11954main ()
11955{
11956return dlopen ();
11957  ;
11958  return 0;
11959}
11960_ACEOF
11961if ac_fn_c_try_link "$LINENO"; then :
11962  ac_cv_lib_dl_dlopen=yes
11963else
11964  ac_cv_lib_dl_dlopen=no
11965fi
11966rm -f core conftest.err conftest.$ac_objext \
11967    conftest$ac_exeext conftest.$ac_ext
11968LIBS=$ac_check_lib_save_LIBS
11969fi
11970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11971$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11972if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11973  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11974else
11975  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11976$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11977if ${ac_cv_lib_svld_dlopen+:} false; then :
11978  $as_echo_n "(cached) " >&6
11979else
11980  ac_check_lib_save_LIBS=$LIBS
11981LIBS="-lsvld  $LIBS"
11982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11983/* end confdefs.h.  */
11984
11985/* Override any GCC internal prototype to avoid an error.
11986   Use char because int might match the return type of a GCC
11987   builtin and then its argument prototype would still apply.  */
11988#ifdef __cplusplus
11989extern "C"
11990#endif
11991char dlopen ();
11992int
11993main ()
11994{
11995return dlopen ();
11996  ;
11997  return 0;
11998}
11999_ACEOF
12000if ac_fn_c_try_link "$LINENO"; then :
12001  ac_cv_lib_svld_dlopen=yes
12002else
12003  ac_cv_lib_svld_dlopen=no
12004fi
12005rm -f core conftest.err conftest.$ac_objext \
12006    conftest$ac_exeext conftest.$ac_ext
12007LIBS=$ac_check_lib_save_LIBS
12008fi
12009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12010$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12011if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12012  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12013else
12014  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12015$as_echo_n "checking for dld_link in -ldld... " >&6; }
12016if ${ac_cv_lib_dld_dld_link+:} false; then :
12017  $as_echo_n "(cached) " >&6
12018else
12019  ac_check_lib_save_LIBS=$LIBS
12020LIBS="-ldld  $LIBS"
12021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12022/* end confdefs.h.  */
12023
12024/* Override any GCC internal prototype to avoid an error.
12025   Use char because int might match the return type of a GCC
12026   builtin and then its argument prototype would still apply.  */
12027#ifdef __cplusplus
12028extern "C"
12029#endif
12030char dld_link ();
12031int
12032main ()
12033{
12034return dld_link ();
12035  ;
12036  return 0;
12037}
12038_ACEOF
12039if ac_fn_c_try_link "$LINENO"; then :
12040  ac_cv_lib_dld_dld_link=yes
12041else
12042  ac_cv_lib_dld_dld_link=no
12043fi
12044rm -f core conftest.err conftest.$ac_objext \
12045    conftest$ac_exeext conftest.$ac_ext
12046LIBS=$ac_check_lib_save_LIBS
12047fi
12048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12049$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12050if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12051  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12052fi
12053
12054
12055fi
12056
12057
12058fi
12059
12060
12061fi
12062
12063
12064fi
12065
12066
12067fi
12068
12069    ;;
12070  esac
12071
12072  if test no = "$lt_cv_dlopen"; then
12073    enable_dlopen=no
12074  else
12075    enable_dlopen=yes
12076  fi
12077
12078  case $lt_cv_dlopen in
12079  dlopen)
12080    save_CPPFLAGS=$CPPFLAGS
12081    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12082
12083    save_LDFLAGS=$LDFLAGS
12084    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12085
12086    save_LIBS=$LIBS
12087    LIBS="$lt_cv_dlopen_libs $LIBS"
12088
12089    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12090$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12091if ${lt_cv_dlopen_self+:} false; then :
12092  $as_echo_n "(cached) " >&6
12093else
12094  	  if test yes = "$cross_compiling"; then :
12095  lt_cv_dlopen_self=cross
12096else
12097  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12098  lt_status=$lt_dlunknown
12099  cat > conftest.$ac_ext <<_LT_EOF
12100#line $LINENO "configure"
12101#include "confdefs.h"
12102
12103#if HAVE_DLFCN_H
12104#include <dlfcn.h>
12105#endif
12106
12107#include <stdio.h>
12108
12109#ifdef RTLD_GLOBAL
12110#  define LT_DLGLOBAL		RTLD_GLOBAL
12111#else
12112#  ifdef DL_GLOBAL
12113#    define LT_DLGLOBAL		DL_GLOBAL
12114#  else
12115#    define LT_DLGLOBAL		0
12116#  endif
12117#endif
12118
12119/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12120   find out it does not work in some platform. */
12121#ifndef LT_DLLAZY_OR_NOW
12122#  ifdef RTLD_LAZY
12123#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12124#  else
12125#    ifdef DL_LAZY
12126#      define LT_DLLAZY_OR_NOW		DL_LAZY
12127#    else
12128#      ifdef RTLD_NOW
12129#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12130#      else
12131#        ifdef DL_NOW
12132#          define LT_DLLAZY_OR_NOW	DL_NOW
12133#        else
12134#          define LT_DLLAZY_OR_NOW	0
12135#        endif
12136#      endif
12137#    endif
12138#  endif
12139#endif
12140
12141/* When -fvisibility=hidden is used, assume the code has been annotated
12142   correspondingly for the symbols needed.  */
12143#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12144int fnord () __attribute__((visibility("default")));
12145#endif
12146
12147int fnord () { return 42; }
12148int main ()
12149{
12150  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12151  int status = $lt_dlunknown;
12152
12153  if (self)
12154    {
12155      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12156      else
12157        {
12158	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12159          else puts (dlerror ());
12160	}
12161      /* dlclose (self); */
12162    }
12163  else
12164    puts (dlerror ());
12165
12166  return status;
12167}
12168_LT_EOF
12169  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12170  (eval $ac_link) 2>&5
12171  ac_status=$?
12172  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12173  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12174    (./conftest; exit; ) >&5 2>/dev/null
12175    lt_status=$?
12176    case x$lt_status in
12177      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12178      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12179      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12180    esac
12181  else :
12182    # compilation failed
12183    lt_cv_dlopen_self=no
12184  fi
12185fi
12186rm -fr conftest*
12187
12188
12189fi
12190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12191$as_echo "$lt_cv_dlopen_self" >&6; }
12192
12193    if test yes = "$lt_cv_dlopen_self"; then
12194      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12195      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12196$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12197if ${lt_cv_dlopen_self_static+:} false; then :
12198  $as_echo_n "(cached) " >&6
12199else
12200  	  if test yes = "$cross_compiling"; then :
12201  lt_cv_dlopen_self_static=cross
12202else
12203  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12204  lt_status=$lt_dlunknown
12205  cat > conftest.$ac_ext <<_LT_EOF
12206#line $LINENO "configure"
12207#include "confdefs.h"
12208
12209#if HAVE_DLFCN_H
12210#include <dlfcn.h>
12211#endif
12212
12213#include <stdio.h>
12214
12215#ifdef RTLD_GLOBAL
12216#  define LT_DLGLOBAL		RTLD_GLOBAL
12217#else
12218#  ifdef DL_GLOBAL
12219#    define LT_DLGLOBAL		DL_GLOBAL
12220#  else
12221#    define LT_DLGLOBAL		0
12222#  endif
12223#endif
12224
12225/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12226   find out it does not work in some platform. */
12227#ifndef LT_DLLAZY_OR_NOW
12228#  ifdef RTLD_LAZY
12229#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12230#  else
12231#    ifdef DL_LAZY
12232#      define LT_DLLAZY_OR_NOW		DL_LAZY
12233#    else
12234#      ifdef RTLD_NOW
12235#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12236#      else
12237#        ifdef DL_NOW
12238#          define LT_DLLAZY_OR_NOW	DL_NOW
12239#        else
12240#          define LT_DLLAZY_OR_NOW	0
12241#        endif
12242#      endif
12243#    endif
12244#  endif
12245#endif
12246
12247/* When -fvisibility=hidden is used, assume the code has been annotated
12248   correspondingly for the symbols needed.  */
12249#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12250int fnord () __attribute__((visibility("default")));
12251#endif
12252
12253int fnord () { return 42; }
12254int main ()
12255{
12256  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12257  int status = $lt_dlunknown;
12258
12259  if (self)
12260    {
12261      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12262      else
12263        {
12264	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12265          else puts (dlerror ());
12266	}
12267      /* dlclose (self); */
12268    }
12269  else
12270    puts (dlerror ());
12271
12272  return status;
12273}
12274_LT_EOF
12275  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12276  (eval $ac_link) 2>&5
12277  ac_status=$?
12278  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12279  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12280    (./conftest; exit; ) >&5 2>/dev/null
12281    lt_status=$?
12282    case x$lt_status in
12283      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12284      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12285      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12286    esac
12287  else :
12288    # compilation failed
12289    lt_cv_dlopen_self_static=no
12290  fi
12291fi
12292rm -fr conftest*
12293
12294
12295fi
12296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12297$as_echo "$lt_cv_dlopen_self_static" >&6; }
12298    fi
12299
12300    CPPFLAGS=$save_CPPFLAGS
12301    LDFLAGS=$save_LDFLAGS
12302    LIBS=$save_LIBS
12303    ;;
12304  esac
12305
12306  case $lt_cv_dlopen_self in
12307  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12308  *) enable_dlopen_self=unknown ;;
12309  esac
12310
12311  case $lt_cv_dlopen_self_static in
12312  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12313  *) enable_dlopen_self_static=unknown ;;
12314  esac
12315fi
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333striplib=
12334old_striplib=
12335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12336$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12337if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12338  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12339  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12341$as_echo "yes" >&6; }
12342else
12343# FIXME - insert some real tests, host_os isn't really good enough
12344  case $host_os in
12345  darwin*)
12346    if test -n "$STRIP"; then
12347      striplib="$STRIP -x"
12348      old_striplib="$STRIP -S"
12349      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12350$as_echo "yes" >&6; }
12351    else
12352      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12353$as_echo "no" >&6; }
12354    fi
12355    ;;
12356  *)
12357    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12358$as_echo "no" >&6; }
12359    ;;
12360  esac
12361fi
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374  # Report what library types will actually be built
12375  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12376$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12378$as_echo "$can_build_shared" >&6; }
12379
12380  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12381$as_echo_n "checking whether to build shared libraries... " >&6; }
12382  test no = "$can_build_shared" && enable_shared=no
12383
12384  # On AIX, shared libraries and static libraries use the same namespace, and
12385  # are all built from PIC.
12386  case $host_os in
12387  aix3*)
12388    test yes = "$enable_shared" && enable_static=no
12389    if test -n "$RANLIB"; then
12390      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12391      postinstall_cmds='$RANLIB $lib'
12392    fi
12393    ;;
12394
12395  aix[4-9]*)
12396    if test ia64 != "$host_cpu"; then
12397      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12398      yes,aix,yes) ;;			# shared object as lib.so file only
12399      yes,svr4,*) ;;			# shared object as lib.so archive member only
12400      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12401      esac
12402    fi
12403    ;;
12404  esac
12405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12406$as_echo "$enable_shared" >&6; }
12407
12408  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12409$as_echo_n "checking whether to build static libraries... " >&6; }
12410  # Make sure either enable_shared or enable_static is yes.
12411  test yes = "$enable_shared" || enable_static=yes
12412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12413$as_echo "$enable_static" >&6; }
12414
12415
12416
12417
12418fi
12419ac_ext=c
12420ac_cpp='$CPP $CPPFLAGS'
12421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12423ac_compiler_gnu=$ac_cv_c_compiler_gnu
12424
12425CC=$lt_save_CC
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441        ac_config_commands="$ac_config_commands libtool"
12442
12443
12444
12445
12446# Only expand once:
12447
12448
12449
12450# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12463$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12464if ${ac_cv_prog_cc_c99+:} false; then :
12465  $as_echo_n "(cached) " >&6
12466else
12467  ac_cv_prog_cc_c99=no
12468ac_save_CC=$CC
12469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12470/* end confdefs.h.  */
12471#include <stdarg.h>
12472#include <stdbool.h>
12473#include <stdlib.h>
12474#include <wchar.h>
12475#include <stdio.h>
12476
12477// Check varargs macros.  These examples are taken from C99 6.10.3.5.
12478#define debug(...) fprintf (stderr, __VA_ARGS__)
12479#define showlist(...) puts (#__VA_ARGS__)
12480#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12481static void
12482test_varargs_macros (void)
12483{
12484  int x = 1234;
12485  int y = 5678;
12486  debug ("Flag");
12487  debug ("X = %d\n", x);
12488  showlist (The first, second, and third items.);
12489  report (x>y, "x is %d but y is %d", x, y);
12490}
12491
12492// Check long long types.
12493#define BIG64 18446744073709551615ull
12494#define BIG32 4294967295ul
12495#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12496#if !BIG_OK
12497  your preprocessor is broken;
12498#endif
12499#if BIG_OK
12500#else
12501  your preprocessor is broken;
12502#endif
12503static long long int bignum = -9223372036854775807LL;
12504static unsigned long long int ubignum = BIG64;
12505
12506struct incomplete_array
12507{
12508  int datasize;
12509  double data[];
12510};
12511
12512struct named_init {
12513  int number;
12514  const wchar_t *name;
12515  double average;
12516};
12517
12518typedef const char *ccp;
12519
12520static inline int
12521test_restrict (ccp restrict text)
12522{
12523  // See if C++-style comments work.
12524  // Iterate through items via the restricted pointer.
12525  // Also check for declarations in for loops.
12526  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12527    continue;
12528  return 0;
12529}
12530
12531// Check varargs and va_copy.
12532static void
12533test_varargs (const char *format, ...)
12534{
12535  va_list args;
12536  va_start (args, format);
12537  va_list args_copy;
12538  va_copy (args_copy, args);
12539
12540  const char *str;
12541  int number;
12542  float fnumber;
12543
12544  while (*format)
12545    {
12546      switch (*format++)
12547	{
12548	case 's': // string
12549	  str = va_arg (args_copy, const char *);
12550	  break;
12551	case 'd': // int
12552	  number = va_arg (args_copy, int);
12553	  break;
12554	case 'f': // float
12555	  fnumber = va_arg (args_copy, double);
12556	  break;
12557	default:
12558	  break;
12559	}
12560    }
12561  va_end (args_copy);
12562  va_end (args);
12563}
12564
12565int
12566main ()
12567{
12568
12569  // Check bool.
12570  _Bool success = false;
12571
12572  // Check restrict.
12573  if (test_restrict ("String literal") == 0)
12574    success = true;
12575  char *restrict newvar = "Another string";
12576
12577  // Check varargs.
12578  test_varargs ("s, d' f .", "string", 65, 34.234);
12579  test_varargs_macros ();
12580
12581  // Check flexible array members.
12582  struct incomplete_array *ia =
12583    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12584  ia->datasize = 10;
12585  for (int i = 0; i < ia->datasize; ++i)
12586    ia->data[i] = i * 1.234;
12587
12588  // Check named initializers.
12589  struct named_init ni = {
12590    .number = 34,
12591    .name = L"Test wide string",
12592    .average = 543.34343,
12593  };
12594
12595  ni.number = 58;
12596
12597  int dynamic_array[ni.number];
12598  dynamic_array[ni.number - 1] = 543;
12599
12600  // work around unused variable warnings
12601  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12602	  || dynamic_array[ni.number - 1] != 543);
12603
12604  ;
12605  return 0;
12606}
12607_ACEOF
12608for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12609do
12610  CC="$ac_save_CC $ac_arg"
12611  if ac_fn_c_try_compile "$LINENO"; then :
12612  ac_cv_prog_cc_c99=$ac_arg
12613fi
12614rm -f core conftest.err conftest.$ac_objext
12615  test "x$ac_cv_prog_cc_c99" != "xno" && break
12616done
12617rm -f conftest.$ac_ext
12618CC=$ac_save_CC
12619
12620fi
12621# AC_CACHE_VAL
12622case "x$ac_cv_prog_cc_c99" in
12623  x)
12624    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12625$as_echo "none needed" >&6; } ;;
12626  xno)
12627    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12628$as_echo "unsupported" >&6; } ;;
12629  *)
12630    CC="$CC $ac_cv_prog_cc_c99"
12631    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12632$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12633esac
12634if test "x$ac_cv_prog_cc_c99" != xno; then :
12635
12636fi
12637
12638
12639
12640
12641
12642
12643ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12644if test "x$ac_cv_have_decl___clang__" = xyes; then :
12645  CLANGCC="yes"
12646else
12647  CLANGCC="no"
12648fi
12649
12650ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12651if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12652  INTELCC="yes"
12653else
12654  INTELCC="no"
12655fi
12656
12657ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12658if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12659  SUNCC="yes"
12660else
12661  SUNCC="no"
12662fi
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12673	if test -n "$ac_tool_prefix"; then
12674  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12675set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12677$as_echo_n "checking for $ac_word... " >&6; }
12678if ${ac_cv_path_PKG_CONFIG+:} false; then :
12679  $as_echo_n "(cached) " >&6
12680else
12681  case $PKG_CONFIG in
12682  [\\/]* | ?:[\\/]*)
12683  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12684  ;;
12685  *)
12686  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12687for as_dir in $PATH
12688do
12689  IFS=$as_save_IFS
12690  test -z "$as_dir" && as_dir=.
12691    for ac_exec_ext in '' $ac_executable_extensions; do
12692  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12693    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12694    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12695    break 2
12696  fi
12697done
12698  done
12699IFS=$as_save_IFS
12700
12701  ;;
12702esac
12703fi
12704PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12705if test -n "$PKG_CONFIG"; then
12706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12707$as_echo "$PKG_CONFIG" >&6; }
12708else
12709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12710$as_echo "no" >&6; }
12711fi
12712
12713
12714fi
12715if test -z "$ac_cv_path_PKG_CONFIG"; then
12716  ac_pt_PKG_CONFIG=$PKG_CONFIG
12717  # Extract the first word of "pkg-config", so it can be a program name with args.
12718set dummy pkg-config; ac_word=$2
12719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12720$as_echo_n "checking for $ac_word... " >&6; }
12721if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12722  $as_echo_n "(cached) " >&6
12723else
12724  case $ac_pt_PKG_CONFIG in
12725  [\\/]* | ?:[\\/]*)
12726  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12727  ;;
12728  *)
12729  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12730for as_dir in $PATH
12731do
12732  IFS=$as_save_IFS
12733  test -z "$as_dir" && as_dir=.
12734    for ac_exec_ext in '' $ac_executable_extensions; do
12735  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12736    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12737    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12738    break 2
12739  fi
12740done
12741  done
12742IFS=$as_save_IFS
12743
12744  ;;
12745esac
12746fi
12747ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12748if test -n "$ac_pt_PKG_CONFIG"; then
12749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12750$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12751else
12752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12753$as_echo "no" >&6; }
12754fi
12755
12756  if test "x$ac_pt_PKG_CONFIG" = x; then
12757    PKG_CONFIG=""
12758  else
12759    case $cross_compiling:$ac_tool_warned in
12760yes:)
12761{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12762$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12763ac_tool_warned=yes ;;
12764esac
12765    PKG_CONFIG=$ac_pt_PKG_CONFIG
12766  fi
12767else
12768  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12769fi
12770
12771fi
12772if test -n "$PKG_CONFIG"; then
12773	_pkg_min_version=0.9.0
12774	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12775$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12776	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12777		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12778$as_echo "yes" >&6; }
12779	else
12780		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12781$as_echo "no" >&6; }
12782		PKG_CONFIG=""
12783	fi
12784fi
12785
12786
12787
12788
12789
12790# Check whether --enable-selective-werror was given.
12791if test "${enable_selective_werror+set}" = set; then :
12792  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12793else
12794  SELECTIVE_WERROR=yes
12795fi
12796
12797
12798
12799
12800
12801# -v is too short to test reliably with XORG_TESTSET_CFLAG
12802if test "x$SUNCC" = "xyes"; then
12803    BASE_CFLAGS="-v"
12804else
12805    BASE_CFLAGS=""
12806fi
12807
12808# This chunk of warnings were those that existed in the legacy CWARNFLAGS
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822xorg_testset_save_CFLAGS="$CFLAGS"
12823
12824if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12825	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12826	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12827$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12828if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12829  $as_echo_n "(cached) " >&6
12830else
12831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12832/* end confdefs.h.  */
12833int i;
12834_ACEOF
12835if ac_fn_c_try_compile "$LINENO"; then :
12836  xorg_cv_cc_flag_unknown_warning_option=yes
12837else
12838  xorg_cv_cc_flag_unknown_warning_option=no
12839fi
12840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12841fi
12842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12843$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12844	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12845	CFLAGS="$xorg_testset_save_CFLAGS"
12846fi
12847
12848if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12849	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12850		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12851	fi
12852	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12853	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12854$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12855if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12856  $as_echo_n "(cached) " >&6
12857else
12858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12859/* end confdefs.h.  */
12860int i;
12861_ACEOF
12862if ac_fn_c_try_compile "$LINENO"; then :
12863  xorg_cv_cc_flag_unused_command_line_argument=yes
12864else
12865  xorg_cv_cc_flag_unused_command_line_argument=no
12866fi
12867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12868fi
12869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12870$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12871	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12872	CFLAGS="$xorg_testset_save_CFLAGS"
12873fi
12874
12875found="no"
12876
12877	if test $found = "no" ; then
12878		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12879			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12880		fi
12881
12882		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12883			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12884		fi
12885
12886		CFLAGS="$CFLAGS -Wall"
12887
12888		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12889$as_echo_n "checking if $CC supports -Wall... " >&6; }
12890		cacheid=xorg_cv_cc_flag__Wall
12891		if eval \${$cacheid+:} false; then :
12892  $as_echo_n "(cached) " >&6
12893else
12894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12895/* end confdefs.h.  */
12896int i;
12897int
12898main ()
12899{
12900
12901  ;
12902  return 0;
12903}
12904_ACEOF
12905if ac_fn_c_try_link "$LINENO"; then :
12906  eval $cacheid=yes
12907else
12908  eval $cacheid=no
12909fi
12910rm -f core conftest.err conftest.$ac_objext \
12911    conftest$ac_exeext conftest.$ac_ext
12912fi
12913
12914
12915		CFLAGS="$xorg_testset_save_CFLAGS"
12916
12917		eval supported=\$$cacheid
12918		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12919$as_echo "$supported" >&6; }
12920		if test "$supported" = "yes" ; then
12921			BASE_CFLAGS="$BASE_CFLAGS -Wall"
12922			found="yes"
12923		fi
12924	fi
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940xorg_testset_save_CFLAGS="$CFLAGS"
12941
12942if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12943	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12944	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12945$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12946if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12947  $as_echo_n "(cached) " >&6
12948else
12949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12950/* end confdefs.h.  */
12951int i;
12952_ACEOF
12953if ac_fn_c_try_compile "$LINENO"; then :
12954  xorg_cv_cc_flag_unknown_warning_option=yes
12955else
12956  xorg_cv_cc_flag_unknown_warning_option=no
12957fi
12958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12959fi
12960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12961$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12962	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12963	CFLAGS="$xorg_testset_save_CFLAGS"
12964fi
12965
12966if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12967	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12968		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12969	fi
12970	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12971	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12972$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12973if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12974  $as_echo_n "(cached) " >&6
12975else
12976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12977/* end confdefs.h.  */
12978int i;
12979_ACEOF
12980if ac_fn_c_try_compile "$LINENO"; then :
12981  xorg_cv_cc_flag_unused_command_line_argument=yes
12982else
12983  xorg_cv_cc_flag_unused_command_line_argument=no
12984fi
12985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12986fi
12987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12988$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12989	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12990	CFLAGS="$xorg_testset_save_CFLAGS"
12991fi
12992
12993found="no"
12994
12995	if test $found = "no" ; then
12996		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12997			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12998		fi
12999
13000		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13001			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13002		fi
13003
13004		CFLAGS="$CFLAGS -Wpointer-arith"
13005
13006		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13007$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
13008		cacheid=xorg_cv_cc_flag__Wpointer_arith
13009		if eval \${$cacheid+:} false; then :
13010  $as_echo_n "(cached) " >&6
13011else
13012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13013/* end confdefs.h.  */
13014int i;
13015int
13016main ()
13017{
13018
13019  ;
13020  return 0;
13021}
13022_ACEOF
13023if ac_fn_c_try_link "$LINENO"; then :
13024  eval $cacheid=yes
13025else
13026  eval $cacheid=no
13027fi
13028rm -f core conftest.err conftest.$ac_objext \
13029    conftest$ac_exeext conftest.$ac_ext
13030fi
13031
13032
13033		CFLAGS="$xorg_testset_save_CFLAGS"
13034
13035		eval supported=\$$cacheid
13036		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13037$as_echo "$supported" >&6; }
13038		if test "$supported" = "yes" ; then
13039			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13040			found="yes"
13041		fi
13042	fi
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058xorg_testset_save_CFLAGS="$CFLAGS"
13059
13060if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13061	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13062	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13063$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13064if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13065  $as_echo_n "(cached) " >&6
13066else
13067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13068/* end confdefs.h.  */
13069int i;
13070_ACEOF
13071if ac_fn_c_try_compile "$LINENO"; then :
13072  xorg_cv_cc_flag_unknown_warning_option=yes
13073else
13074  xorg_cv_cc_flag_unknown_warning_option=no
13075fi
13076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13077fi
13078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13079$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13080	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13081	CFLAGS="$xorg_testset_save_CFLAGS"
13082fi
13083
13084if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13085	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13086		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13087	fi
13088	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13089	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13090$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13091if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13092  $as_echo_n "(cached) " >&6
13093else
13094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13095/* end confdefs.h.  */
13096int i;
13097_ACEOF
13098if ac_fn_c_try_compile "$LINENO"; then :
13099  xorg_cv_cc_flag_unused_command_line_argument=yes
13100else
13101  xorg_cv_cc_flag_unused_command_line_argument=no
13102fi
13103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13104fi
13105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13106$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13107	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13108	CFLAGS="$xorg_testset_save_CFLAGS"
13109fi
13110
13111found="no"
13112
13113	if test $found = "no" ; then
13114		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13115			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13116		fi
13117
13118		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13119			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13120		fi
13121
13122		CFLAGS="$CFLAGS -Wmissing-declarations"
13123
13124		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13125$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
13126		cacheid=xorg_cv_cc_flag__Wmissing_declarations
13127		if eval \${$cacheid+:} false; then :
13128  $as_echo_n "(cached) " >&6
13129else
13130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13131/* end confdefs.h.  */
13132int i;
13133int
13134main ()
13135{
13136
13137  ;
13138  return 0;
13139}
13140_ACEOF
13141if ac_fn_c_try_link "$LINENO"; then :
13142  eval $cacheid=yes
13143else
13144  eval $cacheid=no
13145fi
13146rm -f core conftest.err conftest.$ac_objext \
13147    conftest$ac_exeext conftest.$ac_ext
13148fi
13149
13150
13151		CFLAGS="$xorg_testset_save_CFLAGS"
13152
13153		eval supported=\$$cacheid
13154		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13155$as_echo "$supported" >&6; }
13156		if test "$supported" = "yes" ; then
13157			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13158			found="yes"
13159		fi
13160	fi
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176xorg_testset_save_CFLAGS="$CFLAGS"
13177
13178if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13179	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13180	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13181$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13182if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13183  $as_echo_n "(cached) " >&6
13184else
13185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13186/* end confdefs.h.  */
13187int i;
13188_ACEOF
13189if ac_fn_c_try_compile "$LINENO"; then :
13190  xorg_cv_cc_flag_unknown_warning_option=yes
13191else
13192  xorg_cv_cc_flag_unknown_warning_option=no
13193fi
13194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13195fi
13196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13197$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13198	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13199	CFLAGS="$xorg_testset_save_CFLAGS"
13200fi
13201
13202if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13203	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13204		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13205	fi
13206	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13207	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13208$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13209if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13210  $as_echo_n "(cached) " >&6
13211else
13212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13213/* end confdefs.h.  */
13214int i;
13215_ACEOF
13216if ac_fn_c_try_compile "$LINENO"; then :
13217  xorg_cv_cc_flag_unused_command_line_argument=yes
13218else
13219  xorg_cv_cc_flag_unused_command_line_argument=no
13220fi
13221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13222fi
13223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13224$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13225	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13226	CFLAGS="$xorg_testset_save_CFLAGS"
13227fi
13228
13229found="no"
13230
13231	if test $found = "no" ; then
13232		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13233			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13234		fi
13235
13236		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13237			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13238		fi
13239
13240		CFLAGS="$CFLAGS -Wformat=2"
13241
13242		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13243$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
13244		cacheid=xorg_cv_cc_flag__Wformat_2
13245		if eval \${$cacheid+:} false; then :
13246  $as_echo_n "(cached) " >&6
13247else
13248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13249/* end confdefs.h.  */
13250int i;
13251int
13252main ()
13253{
13254
13255  ;
13256  return 0;
13257}
13258_ACEOF
13259if ac_fn_c_try_link "$LINENO"; then :
13260  eval $cacheid=yes
13261else
13262  eval $cacheid=no
13263fi
13264rm -f core conftest.err conftest.$ac_objext \
13265    conftest$ac_exeext conftest.$ac_ext
13266fi
13267
13268
13269		CFLAGS="$xorg_testset_save_CFLAGS"
13270
13271		eval supported=\$$cacheid
13272		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13273$as_echo "$supported" >&6; }
13274		if test "$supported" = "yes" ; then
13275			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13276			found="yes"
13277		fi
13278	fi
13279
13280	if test $found = "no" ; then
13281		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13282			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13283		fi
13284
13285		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13286			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13287		fi
13288
13289		CFLAGS="$CFLAGS -Wformat"
13290
13291		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13292$as_echo_n "checking if $CC supports -Wformat... " >&6; }
13293		cacheid=xorg_cv_cc_flag__Wformat
13294		if eval \${$cacheid+:} false; then :
13295  $as_echo_n "(cached) " >&6
13296else
13297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13298/* end confdefs.h.  */
13299int i;
13300int
13301main ()
13302{
13303
13304  ;
13305  return 0;
13306}
13307_ACEOF
13308if ac_fn_c_try_link "$LINENO"; then :
13309  eval $cacheid=yes
13310else
13311  eval $cacheid=no
13312fi
13313rm -f core conftest.err conftest.$ac_objext \
13314    conftest$ac_exeext conftest.$ac_ext
13315fi
13316
13317
13318		CFLAGS="$xorg_testset_save_CFLAGS"
13319
13320		eval supported=\$$cacheid
13321		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13322$as_echo "$supported" >&6; }
13323		if test "$supported" = "yes" ; then
13324			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13325			found="yes"
13326		fi
13327	fi
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345xorg_testset_save_CFLAGS="$CFLAGS"
13346
13347if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13348	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13349	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13350$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13351if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13352  $as_echo_n "(cached) " >&6
13353else
13354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13355/* end confdefs.h.  */
13356int i;
13357_ACEOF
13358if ac_fn_c_try_compile "$LINENO"; then :
13359  xorg_cv_cc_flag_unknown_warning_option=yes
13360else
13361  xorg_cv_cc_flag_unknown_warning_option=no
13362fi
13363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13364fi
13365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13366$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13367	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13368	CFLAGS="$xorg_testset_save_CFLAGS"
13369fi
13370
13371if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13372	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13373		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13374	fi
13375	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13376	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13377$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13378if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13379  $as_echo_n "(cached) " >&6
13380else
13381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13382/* end confdefs.h.  */
13383int i;
13384_ACEOF
13385if ac_fn_c_try_compile "$LINENO"; then :
13386  xorg_cv_cc_flag_unused_command_line_argument=yes
13387else
13388  xorg_cv_cc_flag_unused_command_line_argument=no
13389fi
13390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13391fi
13392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13393$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13394	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13395	CFLAGS="$xorg_testset_save_CFLAGS"
13396fi
13397
13398found="no"
13399
13400	if test $found = "no" ; then
13401		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13402			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13403		fi
13404
13405		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13406			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13407		fi
13408
13409		CFLAGS="$CFLAGS -Wstrict-prototypes"
13410
13411		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13412$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
13413		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13414		if eval \${$cacheid+:} false; then :
13415  $as_echo_n "(cached) " >&6
13416else
13417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13418/* end confdefs.h.  */
13419int i;
13420int
13421main ()
13422{
13423
13424  ;
13425  return 0;
13426}
13427_ACEOF
13428if ac_fn_c_try_link "$LINENO"; then :
13429  eval $cacheid=yes
13430else
13431  eval $cacheid=no
13432fi
13433rm -f core conftest.err conftest.$ac_objext \
13434    conftest$ac_exeext conftest.$ac_ext
13435fi
13436
13437
13438		CFLAGS="$xorg_testset_save_CFLAGS"
13439
13440		eval supported=\$$cacheid
13441		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13442$as_echo "$supported" >&6; }
13443		if test "$supported" = "yes" ; then
13444			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13445			found="yes"
13446		fi
13447	fi
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463xorg_testset_save_CFLAGS="$CFLAGS"
13464
13465if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13466	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13467	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13468$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13469if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13470  $as_echo_n "(cached) " >&6
13471else
13472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13473/* end confdefs.h.  */
13474int i;
13475_ACEOF
13476if ac_fn_c_try_compile "$LINENO"; then :
13477  xorg_cv_cc_flag_unknown_warning_option=yes
13478else
13479  xorg_cv_cc_flag_unknown_warning_option=no
13480fi
13481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13482fi
13483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13484$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13485	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13486	CFLAGS="$xorg_testset_save_CFLAGS"
13487fi
13488
13489if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13490	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13491		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13492	fi
13493	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13494	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13495$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13496if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13497  $as_echo_n "(cached) " >&6
13498else
13499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13500/* end confdefs.h.  */
13501int i;
13502_ACEOF
13503if ac_fn_c_try_compile "$LINENO"; then :
13504  xorg_cv_cc_flag_unused_command_line_argument=yes
13505else
13506  xorg_cv_cc_flag_unused_command_line_argument=no
13507fi
13508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13509fi
13510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13511$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13512	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13513	CFLAGS="$xorg_testset_save_CFLAGS"
13514fi
13515
13516found="no"
13517
13518	if test $found = "no" ; then
13519		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13520			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13521		fi
13522
13523		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13524			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13525		fi
13526
13527		CFLAGS="$CFLAGS -Wmissing-prototypes"
13528
13529		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13530$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13531		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13532		if eval \${$cacheid+:} false; then :
13533  $as_echo_n "(cached) " >&6
13534else
13535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13536/* end confdefs.h.  */
13537int i;
13538int
13539main ()
13540{
13541
13542  ;
13543  return 0;
13544}
13545_ACEOF
13546if ac_fn_c_try_link "$LINENO"; then :
13547  eval $cacheid=yes
13548else
13549  eval $cacheid=no
13550fi
13551rm -f core conftest.err conftest.$ac_objext \
13552    conftest$ac_exeext conftest.$ac_ext
13553fi
13554
13555
13556		CFLAGS="$xorg_testset_save_CFLAGS"
13557
13558		eval supported=\$$cacheid
13559		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13560$as_echo "$supported" >&6; }
13561		if test "$supported" = "yes" ; then
13562			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13563			found="yes"
13564		fi
13565	fi
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581xorg_testset_save_CFLAGS="$CFLAGS"
13582
13583if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13584	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13585	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13586$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13587if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13588  $as_echo_n "(cached) " >&6
13589else
13590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13591/* end confdefs.h.  */
13592int i;
13593_ACEOF
13594if ac_fn_c_try_compile "$LINENO"; then :
13595  xorg_cv_cc_flag_unknown_warning_option=yes
13596else
13597  xorg_cv_cc_flag_unknown_warning_option=no
13598fi
13599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13600fi
13601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13602$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13603	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13604	CFLAGS="$xorg_testset_save_CFLAGS"
13605fi
13606
13607if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13608	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13609		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13610	fi
13611	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13612	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13613$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13614if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13615  $as_echo_n "(cached) " >&6
13616else
13617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13618/* end confdefs.h.  */
13619int i;
13620_ACEOF
13621if ac_fn_c_try_compile "$LINENO"; then :
13622  xorg_cv_cc_flag_unused_command_line_argument=yes
13623else
13624  xorg_cv_cc_flag_unused_command_line_argument=no
13625fi
13626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13627fi
13628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13629$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13630	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13631	CFLAGS="$xorg_testset_save_CFLAGS"
13632fi
13633
13634found="no"
13635
13636	if test $found = "no" ; then
13637		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13638			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13639		fi
13640
13641		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13642			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13643		fi
13644
13645		CFLAGS="$CFLAGS -Wnested-externs"
13646
13647		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13648$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13649		cacheid=xorg_cv_cc_flag__Wnested_externs
13650		if eval \${$cacheid+:} false; then :
13651  $as_echo_n "(cached) " >&6
13652else
13653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13654/* end confdefs.h.  */
13655int i;
13656int
13657main ()
13658{
13659
13660  ;
13661  return 0;
13662}
13663_ACEOF
13664if ac_fn_c_try_link "$LINENO"; then :
13665  eval $cacheid=yes
13666else
13667  eval $cacheid=no
13668fi
13669rm -f core conftest.err conftest.$ac_objext \
13670    conftest$ac_exeext conftest.$ac_ext
13671fi
13672
13673
13674		CFLAGS="$xorg_testset_save_CFLAGS"
13675
13676		eval supported=\$$cacheid
13677		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13678$as_echo "$supported" >&6; }
13679		if test "$supported" = "yes" ; then
13680			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13681			found="yes"
13682		fi
13683	fi
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699xorg_testset_save_CFLAGS="$CFLAGS"
13700
13701if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13702	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13703	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13704$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13705if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13706  $as_echo_n "(cached) " >&6
13707else
13708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13709/* end confdefs.h.  */
13710int i;
13711_ACEOF
13712if ac_fn_c_try_compile "$LINENO"; then :
13713  xorg_cv_cc_flag_unknown_warning_option=yes
13714else
13715  xorg_cv_cc_flag_unknown_warning_option=no
13716fi
13717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13718fi
13719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13720$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13721	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13722	CFLAGS="$xorg_testset_save_CFLAGS"
13723fi
13724
13725if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13726	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13727		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13728	fi
13729	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13730	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13731$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13732if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13733  $as_echo_n "(cached) " >&6
13734else
13735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13736/* end confdefs.h.  */
13737int i;
13738_ACEOF
13739if ac_fn_c_try_compile "$LINENO"; then :
13740  xorg_cv_cc_flag_unused_command_line_argument=yes
13741else
13742  xorg_cv_cc_flag_unused_command_line_argument=no
13743fi
13744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13745fi
13746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13747$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13748	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13749	CFLAGS="$xorg_testset_save_CFLAGS"
13750fi
13751
13752found="no"
13753
13754	if test $found = "no" ; then
13755		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13756			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13757		fi
13758
13759		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13760			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13761		fi
13762
13763		CFLAGS="$CFLAGS -Wbad-function-cast"
13764
13765		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13766$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13767		cacheid=xorg_cv_cc_flag__Wbad_function_cast
13768		if eval \${$cacheid+:} false; then :
13769  $as_echo_n "(cached) " >&6
13770else
13771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13772/* end confdefs.h.  */
13773int i;
13774int
13775main ()
13776{
13777
13778  ;
13779  return 0;
13780}
13781_ACEOF
13782if ac_fn_c_try_link "$LINENO"; then :
13783  eval $cacheid=yes
13784else
13785  eval $cacheid=no
13786fi
13787rm -f core conftest.err conftest.$ac_objext \
13788    conftest$ac_exeext conftest.$ac_ext
13789fi
13790
13791
13792		CFLAGS="$xorg_testset_save_CFLAGS"
13793
13794		eval supported=\$$cacheid
13795		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13796$as_echo "$supported" >&6; }
13797		if test "$supported" = "yes" ; then
13798			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13799			found="yes"
13800		fi
13801	fi
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817xorg_testset_save_CFLAGS="$CFLAGS"
13818
13819if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13820	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13821	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13822$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13823if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13824  $as_echo_n "(cached) " >&6
13825else
13826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13827/* end confdefs.h.  */
13828int i;
13829_ACEOF
13830if ac_fn_c_try_compile "$LINENO"; then :
13831  xorg_cv_cc_flag_unknown_warning_option=yes
13832else
13833  xorg_cv_cc_flag_unknown_warning_option=no
13834fi
13835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13836fi
13837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13838$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13839	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13840	CFLAGS="$xorg_testset_save_CFLAGS"
13841fi
13842
13843if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13844	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13845		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13846	fi
13847	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13848	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13849$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13850if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13851  $as_echo_n "(cached) " >&6
13852else
13853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13854/* end confdefs.h.  */
13855int i;
13856_ACEOF
13857if ac_fn_c_try_compile "$LINENO"; then :
13858  xorg_cv_cc_flag_unused_command_line_argument=yes
13859else
13860  xorg_cv_cc_flag_unused_command_line_argument=no
13861fi
13862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13863fi
13864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13865$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13866	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13867	CFLAGS="$xorg_testset_save_CFLAGS"
13868fi
13869
13870found="no"
13871
13872	if test $found = "no" ; then
13873		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13874			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13875		fi
13876
13877		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13878			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13879		fi
13880
13881		CFLAGS="$CFLAGS -Wold-style-definition"
13882
13883		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13884$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13885		cacheid=xorg_cv_cc_flag__Wold_style_definition
13886		if eval \${$cacheid+:} false; then :
13887  $as_echo_n "(cached) " >&6
13888else
13889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13890/* end confdefs.h.  */
13891int i;
13892int
13893main ()
13894{
13895
13896  ;
13897  return 0;
13898}
13899_ACEOF
13900if ac_fn_c_try_link "$LINENO"; then :
13901  eval $cacheid=yes
13902else
13903  eval $cacheid=no
13904fi
13905rm -f core conftest.err conftest.$ac_objext \
13906    conftest$ac_exeext conftest.$ac_ext
13907fi
13908
13909
13910		CFLAGS="$xorg_testset_save_CFLAGS"
13911
13912		eval supported=\$$cacheid
13913		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13914$as_echo "$supported" >&6; }
13915		if test "$supported" = "yes" ; then
13916			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13917			found="yes"
13918		fi
13919	fi
13920
13921	if test $found = "no" ; then
13922		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13923			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13924		fi
13925
13926		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13927			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13928		fi
13929
13930		CFLAGS="$CFLAGS -fd"
13931
13932		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13933$as_echo_n "checking if $CC supports -fd... " >&6; }
13934		cacheid=xorg_cv_cc_flag__fd
13935		if eval \${$cacheid+:} false; then :
13936  $as_echo_n "(cached) " >&6
13937else
13938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13939/* end confdefs.h.  */
13940int i;
13941int
13942main ()
13943{
13944
13945  ;
13946  return 0;
13947}
13948_ACEOF
13949if ac_fn_c_try_link "$LINENO"; then :
13950  eval $cacheid=yes
13951else
13952  eval $cacheid=no
13953fi
13954rm -f core conftest.err conftest.$ac_objext \
13955    conftest$ac_exeext conftest.$ac_ext
13956fi
13957
13958
13959		CFLAGS="$xorg_testset_save_CFLAGS"
13960
13961		eval supported=\$$cacheid
13962		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13963$as_echo "$supported" >&6; }
13964		if test "$supported" = "yes" ; then
13965			BASE_CFLAGS="$BASE_CFLAGS -fd"
13966			found="yes"
13967		fi
13968	fi
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984xorg_testset_save_CFLAGS="$CFLAGS"
13985
13986if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13987	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13988	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13989$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13990if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13991  $as_echo_n "(cached) " >&6
13992else
13993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13994/* end confdefs.h.  */
13995int i;
13996_ACEOF
13997if ac_fn_c_try_compile "$LINENO"; then :
13998  xorg_cv_cc_flag_unknown_warning_option=yes
13999else
14000  xorg_cv_cc_flag_unknown_warning_option=no
14001fi
14002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14003fi
14004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14005$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14006	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14007	CFLAGS="$xorg_testset_save_CFLAGS"
14008fi
14009
14010if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14011	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14012		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14013	fi
14014	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14015	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14016$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14017if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14018  $as_echo_n "(cached) " >&6
14019else
14020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14021/* end confdefs.h.  */
14022int i;
14023_ACEOF
14024if ac_fn_c_try_compile "$LINENO"; then :
14025  xorg_cv_cc_flag_unused_command_line_argument=yes
14026else
14027  xorg_cv_cc_flag_unused_command_line_argument=no
14028fi
14029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14030fi
14031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14032$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14033	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14034	CFLAGS="$xorg_testset_save_CFLAGS"
14035fi
14036
14037found="no"
14038
14039	if test $found = "no" ; then
14040		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14041			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14042		fi
14043
14044		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14045			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14046		fi
14047
14048		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14049
14050		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14051$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14052		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14053		if eval \${$cacheid+:} false; then :
14054  $as_echo_n "(cached) " >&6
14055else
14056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14057/* end confdefs.h.  */
14058int i;
14059int
14060main ()
14061{
14062
14063  ;
14064  return 0;
14065}
14066_ACEOF
14067if ac_fn_c_try_link "$LINENO"; then :
14068  eval $cacheid=yes
14069else
14070  eval $cacheid=no
14071fi
14072rm -f core conftest.err conftest.$ac_objext \
14073    conftest$ac_exeext conftest.$ac_ext
14074fi
14075
14076
14077		CFLAGS="$xorg_testset_save_CFLAGS"
14078
14079		eval supported=\$$cacheid
14080		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14081$as_echo "$supported" >&6; }
14082		if test "$supported" = "yes" ; then
14083			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14084			found="yes"
14085		fi
14086	fi
14087
14088
14089
14090
14091
14092# This chunk adds additional warnings that could catch undesired effects.
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106xorg_testset_save_CFLAGS="$CFLAGS"
14107
14108if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14109	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14110	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14111$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14112if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14113  $as_echo_n "(cached) " >&6
14114else
14115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14116/* end confdefs.h.  */
14117int i;
14118_ACEOF
14119if ac_fn_c_try_compile "$LINENO"; then :
14120  xorg_cv_cc_flag_unknown_warning_option=yes
14121else
14122  xorg_cv_cc_flag_unknown_warning_option=no
14123fi
14124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14125fi
14126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14127$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14128	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14129	CFLAGS="$xorg_testset_save_CFLAGS"
14130fi
14131
14132if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14133	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14134		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14135	fi
14136	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14137	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14138$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14139if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14140  $as_echo_n "(cached) " >&6
14141else
14142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14143/* end confdefs.h.  */
14144int i;
14145_ACEOF
14146if ac_fn_c_try_compile "$LINENO"; then :
14147  xorg_cv_cc_flag_unused_command_line_argument=yes
14148else
14149  xorg_cv_cc_flag_unused_command_line_argument=no
14150fi
14151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14152fi
14153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14154$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14155	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14156	CFLAGS="$xorg_testset_save_CFLAGS"
14157fi
14158
14159found="no"
14160
14161	if test $found = "no" ; then
14162		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14163			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14164		fi
14165
14166		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14167			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14168		fi
14169
14170		CFLAGS="$CFLAGS -Wunused"
14171
14172		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14173$as_echo_n "checking if $CC supports -Wunused... " >&6; }
14174		cacheid=xorg_cv_cc_flag__Wunused
14175		if eval \${$cacheid+:} false; then :
14176  $as_echo_n "(cached) " >&6
14177else
14178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14179/* end confdefs.h.  */
14180int i;
14181int
14182main ()
14183{
14184
14185  ;
14186  return 0;
14187}
14188_ACEOF
14189if ac_fn_c_try_link "$LINENO"; then :
14190  eval $cacheid=yes
14191else
14192  eval $cacheid=no
14193fi
14194rm -f core conftest.err conftest.$ac_objext \
14195    conftest$ac_exeext conftest.$ac_ext
14196fi
14197
14198
14199		CFLAGS="$xorg_testset_save_CFLAGS"
14200
14201		eval supported=\$$cacheid
14202		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14203$as_echo "$supported" >&6; }
14204		if test "$supported" = "yes" ; then
14205			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14206			found="yes"
14207		fi
14208	fi
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224xorg_testset_save_CFLAGS="$CFLAGS"
14225
14226if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14227	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14228	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14229$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14230if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14231  $as_echo_n "(cached) " >&6
14232else
14233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14234/* end confdefs.h.  */
14235int i;
14236_ACEOF
14237if ac_fn_c_try_compile "$LINENO"; then :
14238  xorg_cv_cc_flag_unknown_warning_option=yes
14239else
14240  xorg_cv_cc_flag_unknown_warning_option=no
14241fi
14242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14243fi
14244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14245$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14246	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14247	CFLAGS="$xorg_testset_save_CFLAGS"
14248fi
14249
14250if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14251	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14252		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14253	fi
14254	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14255	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14256$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14257if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14258  $as_echo_n "(cached) " >&6
14259else
14260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14261/* end confdefs.h.  */
14262int i;
14263_ACEOF
14264if ac_fn_c_try_compile "$LINENO"; then :
14265  xorg_cv_cc_flag_unused_command_line_argument=yes
14266else
14267  xorg_cv_cc_flag_unused_command_line_argument=no
14268fi
14269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14270fi
14271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14272$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14273	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14274	CFLAGS="$xorg_testset_save_CFLAGS"
14275fi
14276
14277found="no"
14278
14279	if test $found = "no" ; then
14280		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14281			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14282		fi
14283
14284		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14285			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14286		fi
14287
14288		CFLAGS="$CFLAGS -Wuninitialized"
14289
14290		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14291$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
14292		cacheid=xorg_cv_cc_flag__Wuninitialized
14293		if eval \${$cacheid+:} false; then :
14294  $as_echo_n "(cached) " >&6
14295else
14296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14297/* end confdefs.h.  */
14298int i;
14299int
14300main ()
14301{
14302
14303  ;
14304  return 0;
14305}
14306_ACEOF
14307if ac_fn_c_try_link "$LINENO"; then :
14308  eval $cacheid=yes
14309else
14310  eval $cacheid=no
14311fi
14312rm -f core conftest.err conftest.$ac_objext \
14313    conftest$ac_exeext conftest.$ac_ext
14314fi
14315
14316
14317		CFLAGS="$xorg_testset_save_CFLAGS"
14318
14319		eval supported=\$$cacheid
14320		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14321$as_echo "$supported" >&6; }
14322		if test "$supported" = "yes" ; then
14323			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14324			found="yes"
14325		fi
14326	fi
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342xorg_testset_save_CFLAGS="$CFLAGS"
14343
14344if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14345	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14346	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14347$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14348if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14349  $as_echo_n "(cached) " >&6
14350else
14351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14352/* end confdefs.h.  */
14353int i;
14354_ACEOF
14355if ac_fn_c_try_compile "$LINENO"; then :
14356  xorg_cv_cc_flag_unknown_warning_option=yes
14357else
14358  xorg_cv_cc_flag_unknown_warning_option=no
14359fi
14360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14361fi
14362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14363$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14364	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14365	CFLAGS="$xorg_testset_save_CFLAGS"
14366fi
14367
14368if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14369	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14370		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14371	fi
14372	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14373	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14374$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14375if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14376  $as_echo_n "(cached) " >&6
14377else
14378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14379/* end confdefs.h.  */
14380int i;
14381_ACEOF
14382if ac_fn_c_try_compile "$LINENO"; then :
14383  xorg_cv_cc_flag_unused_command_line_argument=yes
14384else
14385  xorg_cv_cc_flag_unused_command_line_argument=no
14386fi
14387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14388fi
14389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14390$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14391	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14392	CFLAGS="$xorg_testset_save_CFLAGS"
14393fi
14394
14395found="no"
14396
14397	if test $found = "no" ; then
14398		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14399			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14400		fi
14401
14402		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14403			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14404		fi
14405
14406		CFLAGS="$CFLAGS -Wshadow"
14407
14408		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14409$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
14410		cacheid=xorg_cv_cc_flag__Wshadow
14411		if eval \${$cacheid+:} false; then :
14412  $as_echo_n "(cached) " >&6
14413else
14414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14415/* end confdefs.h.  */
14416int i;
14417int
14418main ()
14419{
14420
14421  ;
14422  return 0;
14423}
14424_ACEOF
14425if ac_fn_c_try_link "$LINENO"; then :
14426  eval $cacheid=yes
14427else
14428  eval $cacheid=no
14429fi
14430rm -f core conftest.err conftest.$ac_objext \
14431    conftest$ac_exeext conftest.$ac_ext
14432fi
14433
14434
14435		CFLAGS="$xorg_testset_save_CFLAGS"
14436
14437		eval supported=\$$cacheid
14438		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14439$as_echo "$supported" >&6; }
14440		if test "$supported" = "yes" ; then
14441			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14442			found="yes"
14443		fi
14444	fi
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460xorg_testset_save_CFLAGS="$CFLAGS"
14461
14462if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14463	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14464	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14465$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14466if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14467  $as_echo_n "(cached) " >&6
14468else
14469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14470/* end confdefs.h.  */
14471int i;
14472_ACEOF
14473if ac_fn_c_try_compile "$LINENO"; then :
14474  xorg_cv_cc_flag_unknown_warning_option=yes
14475else
14476  xorg_cv_cc_flag_unknown_warning_option=no
14477fi
14478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14479fi
14480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14481$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14482	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14483	CFLAGS="$xorg_testset_save_CFLAGS"
14484fi
14485
14486if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14487	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14488		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14489	fi
14490	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14491	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14492$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14493if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14494  $as_echo_n "(cached) " >&6
14495else
14496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14497/* end confdefs.h.  */
14498int i;
14499_ACEOF
14500if ac_fn_c_try_compile "$LINENO"; then :
14501  xorg_cv_cc_flag_unused_command_line_argument=yes
14502else
14503  xorg_cv_cc_flag_unused_command_line_argument=no
14504fi
14505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14506fi
14507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14508$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14509	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14510	CFLAGS="$xorg_testset_save_CFLAGS"
14511fi
14512
14513found="no"
14514
14515	if test $found = "no" ; then
14516		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14517			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14518		fi
14519
14520		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14521			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14522		fi
14523
14524		CFLAGS="$CFLAGS -Wmissing-noreturn"
14525
14526		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14527$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14528		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14529		if eval \${$cacheid+:} false; then :
14530  $as_echo_n "(cached) " >&6
14531else
14532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14533/* end confdefs.h.  */
14534int i;
14535int
14536main ()
14537{
14538
14539  ;
14540  return 0;
14541}
14542_ACEOF
14543if ac_fn_c_try_link "$LINENO"; then :
14544  eval $cacheid=yes
14545else
14546  eval $cacheid=no
14547fi
14548rm -f core conftest.err conftest.$ac_objext \
14549    conftest$ac_exeext conftest.$ac_ext
14550fi
14551
14552
14553		CFLAGS="$xorg_testset_save_CFLAGS"
14554
14555		eval supported=\$$cacheid
14556		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14557$as_echo "$supported" >&6; }
14558		if test "$supported" = "yes" ; then
14559			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14560			found="yes"
14561		fi
14562	fi
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578xorg_testset_save_CFLAGS="$CFLAGS"
14579
14580if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14581	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14582	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14583$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14584if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14585  $as_echo_n "(cached) " >&6
14586else
14587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14588/* end confdefs.h.  */
14589int i;
14590_ACEOF
14591if ac_fn_c_try_compile "$LINENO"; then :
14592  xorg_cv_cc_flag_unknown_warning_option=yes
14593else
14594  xorg_cv_cc_flag_unknown_warning_option=no
14595fi
14596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14597fi
14598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14599$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14600	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14601	CFLAGS="$xorg_testset_save_CFLAGS"
14602fi
14603
14604if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14605	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14606		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14607	fi
14608	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14609	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14610$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14611if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14612  $as_echo_n "(cached) " >&6
14613else
14614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14615/* end confdefs.h.  */
14616int i;
14617_ACEOF
14618if ac_fn_c_try_compile "$LINENO"; then :
14619  xorg_cv_cc_flag_unused_command_line_argument=yes
14620else
14621  xorg_cv_cc_flag_unused_command_line_argument=no
14622fi
14623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14624fi
14625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14626$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14627	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14628	CFLAGS="$xorg_testset_save_CFLAGS"
14629fi
14630
14631found="no"
14632
14633	if test $found = "no" ; then
14634		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14635			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14636		fi
14637
14638		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14639			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14640		fi
14641
14642		CFLAGS="$CFLAGS -Wmissing-format-attribute"
14643
14644		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14645$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14646		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14647		if eval \${$cacheid+:} false; then :
14648  $as_echo_n "(cached) " >&6
14649else
14650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14651/* end confdefs.h.  */
14652int i;
14653int
14654main ()
14655{
14656
14657  ;
14658  return 0;
14659}
14660_ACEOF
14661if ac_fn_c_try_link "$LINENO"; then :
14662  eval $cacheid=yes
14663else
14664  eval $cacheid=no
14665fi
14666rm -f core conftest.err conftest.$ac_objext \
14667    conftest$ac_exeext conftest.$ac_ext
14668fi
14669
14670
14671		CFLAGS="$xorg_testset_save_CFLAGS"
14672
14673		eval supported=\$$cacheid
14674		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14675$as_echo "$supported" >&6; }
14676		if test "$supported" = "yes" ; then
14677			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14678			found="yes"
14679		fi
14680	fi
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696xorg_testset_save_CFLAGS="$CFLAGS"
14697
14698if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14699	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14700	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14701$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14702if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14703  $as_echo_n "(cached) " >&6
14704else
14705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14706/* end confdefs.h.  */
14707int i;
14708_ACEOF
14709if ac_fn_c_try_compile "$LINENO"; then :
14710  xorg_cv_cc_flag_unknown_warning_option=yes
14711else
14712  xorg_cv_cc_flag_unknown_warning_option=no
14713fi
14714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14715fi
14716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14717$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14718	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14719	CFLAGS="$xorg_testset_save_CFLAGS"
14720fi
14721
14722if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14723	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14724		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14725	fi
14726	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14727	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14728$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14729if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14730  $as_echo_n "(cached) " >&6
14731else
14732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14733/* end confdefs.h.  */
14734int i;
14735_ACEOF
14736if ac_fn_c_try_compile "$LINENO"; then :
14737  xorg_cv_cc_flag_unused_command_line_argument=yes
14738else
14739  xorg_cv_cc_flag_unused_command_line_argument=no
14740fi
14741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14742fi
14743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14744$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14745	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14746	CFLAGS="$xorg_testset_save_CFLAGS"
14747fi
14748
14749found="no"
14750
14751	if test $found = "no" ; then
14752		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14753			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14754		fi
14755
14756		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14757			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14758		fi
14759
14760		CFLAGS="$CFLAGS -Wredundant-decls"
14761
14762		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14763$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14764		cacheid=xorg_cv_cc_flag__Wredundant_decls
14765		if eval \${$cacheid+:} false; then :
14766  $as_echo_n "(cached) " >&6
14767else
14768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14769/* end confdefs.h.  */
14770int i;
14771int
14772main ()
14773{
14774
14775  ;
14776  return 0;
14777}
14778_ACEOF
14779if ac_fn_c_try_link "$LINENO"; then :
14780  eval $cacheid=yes
14781else
14782  eval $cacheid=no
14783fi
14784rm -f core conftest.err conftest.$ac_objext \
14785    conftest$ac_exeext conftest.$ac_ext
14786fi
14787
14788
14789		CFLAGS="$xorg_testset_save_CFLAGS"
14790
14791		eval supported=\$$cacheid
14792		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14793$as_echo "$supported" >&6; }
14794		if test "$supported" = "yes" ; then
14795			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14796			found="yes"
14797		fi
14798	fi
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814xorg_testset_save_CFLAGS="$CFLAGS"
14815
14816if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14817	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14818	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14819$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14820if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14821  $as_echo_n "(cached) " >&6
14822else
14823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14824/* end confdefs.h.  */
14825int i;
14826_ACEOF
14827if ac_fn_c_try_compile "$LINENO"; then :
14828  xorg_cv_cc_flag_unknown_warning_option=yes
14829else
14830  xorg_cv_cc_flag_unknown_warning_option=no
14831fi
14832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14833fi
14834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14835$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14836	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14837	CFLAGS="$xorg_testset_save_CFLAGS"
14838fi
14839
14840if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14841	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14842		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14843	fi
14844	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14845	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14846$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14847if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14848  $as_echo_n "(cached) " >&6
14849else
14850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14851/* end confdefs.h.  */
14852int i;
14853_ACEOF
14854if ac_fn_c_try_compile "$LINENO"; then :
14855  xorg_cv_cc_flag_unused_command_line_argument=yes
14856else
14857  xorg_cv_cc_flag_unused_command_line_argument=no
14858fi
14859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14860fi
14861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14862$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14863	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14864	CFLAGS="$xorg_testset_save_CFLAGS"
14865fi
14866
14867found="no"
14868
14869	if test $found = "no" ; then
14870		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14871			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14872		fi
14873
14874		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14875			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14876		fi
14877
14878		CFLAGS="$CFLAGS -Wlogical-op"
14879
14880		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14881$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14882		cacheid=xorg_cv_cc_flag__Wlogical_op
14883		if eval \${$cacheid+:} false; then :
14884  $as_echo_n "(cached) " >&6
14885else
14886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14887/* end confdefs.h.  */
14888int i;
14889int
14890main ()
14891{
14892
14893  ;
14894  return 0;
14895}
14896_ACEOF
14897if ac_fn_c_try_link "$LINENO"; then :
14898  eval $cacheid=yes
14899else
14900  eval $cacheid=no
14901fi
14902rm -f core conftest.err conftest.$ac_objext \
14903    conftest$ac_exeext conftest.$ac_ext
14904fi
14905
14906
14907		CFLAGS="$xorg_testset_save_CFLAGS"
14908
14909		eval supported=\$$cacheid
14910		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14911$as_echo "$supported" >&6; }
14912		if test "$supported" = "yes" ; then
14913			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14914			found="yes"
14915		fi
14916	fi
14917
14918
14919
14920# These are currently disabled because they are noisy.  They will be enabled
14921# in the future once the codebase is sufficiently modernized to silence
14922# them.  For now, I don't want them to drown out the other warnings.
14923# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14924# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14925# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14926
14927# Turn some warnings into errors, so we don't accidently get successful builds
14928# when there are problems that should be fixed.
14929
14930if test "x$SELECTIVE_WERROR" = "xyes" ; then
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944xorg_testset_save_CFLAGS="$CFLAGS"
14945
14946if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14947	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14948	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14949$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14950if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14951  $as_echo_n "(cached) " >&6
14952else
14953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14954/* end confdefs.h.  */
14955int i;
14956_ACEOF
14957if ac_fn_c_try_compile "$LINENO"; then :
14958  xorg_cv_cc_flag_unknown_warning_option=yes
14959else
14960  xorg_cv_cc_flag_unknown_warning_option=no
14961fi
14962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14963fi
14964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14965$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14966	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14967	CFLAGS="$xorg_testset_save_CFLAGS"
14968fi
14969
14970if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14971	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14972		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14973	fi
14974	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14975	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14976$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14977if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14978  $as_echo_n "(cached) " >&6
14979else
14980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14981/* end confdefs.h.  */
14982int i;
14983_ACEOF
14984if ac_fn_c_try_compile "$LINENO"; then :
14985  xorg_cv_cc_flag_unused_command_line_argument=yes
14986else
14987  xorg_cv_cc_flag_unused_command_line_argument=no
14988fi
14989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14990fi
14991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14992$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14993	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14994	CFLAGS="$xorg_testset_save_CFLAGS"
14995fi
14996
14997found="no"
14998
14999	if test $found = "no" ; then
15000		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15001			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15002		fi
15003
15004		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15005			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15006		fi
15007
15008		CFLAGS="$CFLAGS -Werror=implicit"
15009
15010		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15011$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
15012		cacheid=xorg_cv_cc_flag__Werror_implicit
15013		if eval \${$cacheid+:} false; then :
15014  $as_echo_n "(cached) " >&6
15015else
15016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15017/* end confdefs.h.  */
15018int i;
15019int
15020main ()
15021{
15022
15023  ;
15024  return 0;
15025}
15026_ACEOF
15027if ac_fn_c_try_link "$LINENO"; then :
15028  eval $cacheid=yes
15029else
15030  eval $cacheid=no
15031fi
15032rm -f core conftest.err conftest.$ac_objext \
15033    conftest$ac_exeext conftest.$ac_ext
15034fi
15035
15036
15037		CFLAGS="$xorg_testset_save_CFLAGS"
15038
15039		eval supported=\$$cacheid
15040		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15041$as_echo "$supported" >&6; }
15042		if test "$supported" = "yes" ; then
15043			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15044			found="yes"
15045		fi
15046	fi
15047
15048	if test $found = "no" ; then
15049		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15050			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15051		fi
15052
15053		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15054			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15055		fi
15056
15057		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15058
15059		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
15060$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15061		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15062		if eval \${$cacheid+:} false; then :
15063  $as_echo_n "(cached) " >&6
15064else
15065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15066/* end confdefs.h.  */
15067int i;
15068int
15069main ()
15070{
15071
15072  ;
15073  return 0;
15074}
15075_ACEOF
15076if ac_fn_c_try_link "$LINENO"; then :
15077  eval $cacheid=yes
15078else
15079  eval $cacheid=no
15080fi
15081rm -f core conftest.err conftest.$ac_objext \
15082    conftest$ac_exeext conftest.$ac_ext
15083fi
15084
15085
15086		CFLAGS="$xorg_testset_save_CFLAGS"
15087
15088		eval supported=\$$cacheid
15089		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15090$as_echo "$supported" >&6; }
15091		if test "$supported" = "yes" ; then
15092			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15093			found="yes"
15094		fi
15095	fi
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111xorg_testset_save_CFLAGS="$CFLAGS"
15112
15113if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15114	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15115	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15116$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15117if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15118  $as_echo_n "(cached) " >&6
15119else
15120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15121/* end confdefs.h.  */
15122int i;
15123_ACEOF
15124if ac_fn_c_try_compile "$LINENO"; then :
15125  xorg_cv_cc_flag_unknown_warning_option=yes
15126else
15127  xorg_cv_cc_flag_unknown_warning_option=no
15128fi
15129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15130fi
15131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15132$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15133	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15134	CFLAGS="$xorg_testset_save_CFLAGS"
15135fi
15136
15137if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15138	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15139		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15140	fi
15141	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15142	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15143$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15144if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15145  $as_echo_n "(cached) " >&6
15146else
15147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15148/* end confdefs.h.  */
15149int i;
15150_ACEOF
15151if ac_fn_c_try_compile "$LINENO"; then :
15152  xorg_cv_cc_flag_unused_command_line_argument=yes
15153else
15154  xorg_cv_cc_flag_unused_command_line_argument=no
15155fi
15156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15157fi
15158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15159$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15160	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15161	CFLAGS="$xorg_testset_save_CFLAGS"
15162fi
15163
15164found="no"
15165
15166	if test $found = "no" ; then
15167		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15168			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15169		fi
15170
15171		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15172			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15173		fi
15174
15175		CFLAGS="$CFLAGS -Werror=nonnull"
15176
15177		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15178$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
15179		cacheid=xorg_cv_cc_flag__Werror_nonnull
15180		if eval \${$cacheid+:} false; then :
15181  $as_echo_n "(cached) " >&6
15182else
15183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15184/* end confdefs.h.  */
15185int i;
15186int
15187main ()
15188{
15189
15190  ;
15191  return 0;
15192}
15193_ACEOF
15194if ac_fn_c_try_link "$LINENO"; then :
15195  eval $cacheid=yes
15196else
15197  eval $cacheid=no
15198fi
15199rm -f core conftest.err conftest.$ac_objext \
15200    conftest$ac_exeext conftest.$ac_ext
15201fi
15202
15203
15204		CFLAGS="$xorg_testset_save_CFLAGS"
15205
15206		eval supported=\$$cacheid
15207		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15208$as_echo "$supported" >&6; }
15209		if test "$supported" = "yes" ; then
15210			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15211			found="yes"
15212		fi
15213	fi
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229xorg_testset_save_CFLAGS="$CFLAGS"
15230
15231if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15232	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15233	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15234$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15235if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15236  $as_echo_n "(cached) " >&6
15237else
15238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15239/* end confdefs.h.  */
15240int i;
15241_ACEOF
15242if ac_fn_c_try_compile "$LINENO"; then :
15243  xorg_cv_cc_flag_unknown_warning_option=yes
15244else
15245  xorg_cv_cc_flag_unknown_warning_option=no
15246fi
15247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15248fi
15249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15250$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15251	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15252	CFLAGS="$xorg_testset_save_CFLAGS"
15253fi
15254
15255if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15256	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15257		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15258	fi
15259	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15260	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15261$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15262if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15263  $as_echo_n "(cached) " >&6
15264else
15265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15266/* end confdefs.h.  */
15267int i;
15268_ACEOF
15269if ac_fn_c_try_compile "$LINENO"; then :
15270  xorg_cv_cc_flag_unused_command_line_argument=yes
15271else
15272  xorg_cv_cc_flag_unused_command_line_argument=no
15273fi
15274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15275fi
15276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15277$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15278	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15279	CFLAGS="$xorg_testset_save_CFLAGS"
15280fi
15281
15282found="no"
15283
15284	if test $found = "no" ; then
15285		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15286			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15287		fi
15288
15289		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15290			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15291		fi
15292
15293		CFLAGS="$CFLAGS -Werror=init-self"
15294
15295		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15296$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
15297		cacheid=xorg_cv_cc_flag__Werror_init_self
15298		if eval \${$cacheid+:} false; then :
15299  $as_echo_n "(cached) " >&6
15300else
15301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15302/* end confdefs.h.  */
15303int i;
15304int
15305main ()
15306{
15307
15308  ;
15309  return 0;
15310}
15311_ACEOF
15312if ac_fn_c_try_link "$LINENO"; then :
15313  eval $cacheid=yes
15314else
15315  eval $cacheid=no
15316fi
15317rm -f core conftest.err conftest.$ac_objext \
15318    conftest$ac_exeext conftest.$ac_ext
15319fi
15320
15321
15322		CFLAGS="$xorg_testset_save_CFLAGS"
15323
15324		eval supported=\$$cacheid
15325		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15326$as_echo "$supported" >&6; }
15327		if test "$supported" = "yes" ; then
15328			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15329			found="yes"
15330		fi
15331	fi
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347xorg_testset_save_CFLAGS="$CFLAGS"
15348
15349if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15350	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15351	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15352$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15353if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15354  $as_echo_n "(cached) " >&6
15355else
15356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15357/* end confdefs.h.  */
15358int i;
15359_ACEOF
15360if ac_fn_c_try_compile "$LINENO"; then :
15361  xorg_cv_cc_flag_unknown_warning_option=yes
15362else
15363  xorg_cv_cc_flag_unknown_warning_option=no
15364fi
15365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15366fi
15367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15368$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15369	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15370	CFLAGS="$xorg_testset_save_CFLAGS"
15371fi
15372
15373if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15374	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15375		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15376	fi
15377	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15378	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15379$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15380if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15381  $as_echo_n "(cached) " >&6
15382else
15383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15384/* end confdefs.h.  */
15385int i;
15386_ACEOF
15387if ac_fn_c_try_compile "$LINENO"; then :
15388  xorg_cv_cc_flag_unused_command_line_argument=yes
15389else
15390  xorg_cv_cc_flag_unused_command_line_argument=no
15391fi
15392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15393fi
15394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15395$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15396	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15397	CFLAGS="$xorg_testset_save_CFLAGS"
15398fi
15399
15400found="no"
15401
15402	if test $found = "no" ; then
15403		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15404			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15405		fi
15406
15407		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15408			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15409		fi
15410
15411		CFLAGS="$CFLAGS -Werror=main"
15412
15413		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15414$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
15415		cacheid=xorg_cv_cc_flag__Werror_main
15416		if eval \${$cacheid+:} false; then :
15417  $as_echo_n "(cached) " >&6
15418else
15419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15420/* end confdefs.h.  */
15421int i;
15422int
15423main ()
15424{
15425
15426  ;
15427  return 0;
15428}
15429_ACEOF
15430if ac_fn_c_try_link "$LINENO"; then :
15431  eval $cacheid=yes
15432else
15433  eval $cacheid=no
15434fi
15435rm -f core conftest.err conftest.$ac_objext \
15436    conftest$ac_exeext conftest.$ac_ext
15437fi
15438
15439
15440		CFLAGS="$xorg_testset_save_CFLAGS"
15441
15442		eval supported=\$$cacheid
15443		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15444$as_echo "$supported" >&6; }
15445		if test "$supported" = "yes" ; then
15446			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15447			found="yes"
15448		fi
15449	fi
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465xorg_testset_save_CFLAGS="$CFLAGS"
15466
15467if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15468	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15469	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15470$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15471if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15472  $as_echo_n "(cached) " >&6
15473else
15474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15475/* end confdefs.h.  */
15476int i;
15477_ACEOF
15478if ac_fn_c_try_compile "$LINENO"; then :
15479  xorg_cv_cc_flag_unknown_warning_option=yes
15480else
15481  xorg_cv_cc_flag_unknown_warning_option=no
15482fi
15483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15484fi
15485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15486$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15487	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15488	CFLAGS="$xorg_testset_save_CFLAGS"
15489fi
15490
15491if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15492	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15493		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15494	fi
15495	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15496	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15497$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15498if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15499  $as_echo_n "(cached) " >&6
15500else
15501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15502/* end confdefs.h.  */
15503int i;
15504_ACEOF
15505if ac_fn_c_try_compile "$LINENO"; then :
15506  xorg_cv_cc_flag_unused_command_line_argument=yes
15507else
15508  xorg_cv_cc_flag_unused_command_line_argument=no
15509fi
15510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15511fi
15512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15513$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15514	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15515	CFLAGS="$xorg_testset_save_CFLAGS"
15516fi
15517
15518found="no"
15519
15520	if test $found = "no" ; then
15521		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15522			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15523		fi
15524
15525		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15526			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15527		fi
15528
15529		CFLAGS="$CFLAGS -Werror=missing-braces"
15530
15531		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15532$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15533		cacheid=xorg_cv_cc_flag__Werror_missing_braces
15534		if eval \${$cacheid+:} false; then :
15535  $as_echo_n "(cached) " >&6
15536else
15537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15538/* end confdefs.h.  */
15539int i;
15540int
15541main ()
15542{
15543
15544  ;
15545  return 0;
15546}
15547_ACEOF
15548if ac_fn_c_try_link "$LINENO"; then :
15549  eval $cacheid=yes
15550else
15551  eval $cacheid=no
15552fi
15553rm -f core conftest.err conftest.$ac_objext \
15554    conftest$ac_exeext conftest.$ac_ext
15555fi
15556
15557
15558		CFLAGS="$xorg_testset_save_CFLAGS"
15559
15560		eval supported=\$$cacheid
15561		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15562$as_echo "$supported" >&6; }
15563		if test "$supported" = "yes" ; then
15564			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15565			found="yes"
15566		fi
15567	fi
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583xorg_testset_save_CFLAGS="$CFLAGS"
15584
15585if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15586	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15587	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15588$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15589if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15590  $as_echo_n "(cached) " >&6
15591else
15592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15593/* end confdefs.h.  */
15594int i;
15595_ACEOF
15596if ac_fn_c_try_compile "$LINENO"; then :
15597  xorg_cv_cc_flag_unknown_warning_option=yes
15598else
15599  xorg_cv_cc_flag_unknown_warning_option=no
15600fi
15601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15602fi
15603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15604$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15605	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15606	CFLAGS="$xorg_testset_save_CFLAGS"
15607fi
15608
15609if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15610	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15611		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15612	fi
15613	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15614	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15615$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15616if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15617  $as_echo_n "(cached) " >&6
15618else
15619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15620/* end confdefs.h.  */
15621int i;
15622_ACEOF
15623if ac_fn_c_try_compile "$LINENO"; then :
15624  xorg_cv_cc_flag_unused_command_line_argument=yes
15625else
15626  xorg_cv_cc_flag_unused_command_line_argument=no
15627fi
15628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15629fi
15630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15631$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15632	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15633	CFLAGS="$xorg_testset_save_CFLAGS"
15634fi
15635
15636found="no"
15637
15638	if test $found = "no" ; then
15639		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15640			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15641		fi
15642
15643		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15644			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15645		fi
15646
15647		CFLAGS="$CFLAGS -Werror=sequence-point"
15648
15649		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15650$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15651		cacheid=xorg_cv_cc_flag__Werror_sequence_point
15652		if eval \${$cacheid+:} false; then :
15653  $as_echo_n "(cached) " >&6
15654else
15655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15656/* end confdefs.h.  */
15657int i;
15658int
15659main ()
15660{
15661
15662  ;
15663  return 0;
15664}
15665_ACEOF
15666if ac_fn_c_try_link "$LINENO"; then :
15667  eval $cacheid=yes
15668else
15669  eval $cacheid=no
15670fi
15671rm -f core conftest.err conftest.$ac_objext \
15672    conftest$ac_exeext conftest.$ac_ext
15673fi
15674
15675
15676		CFLAGS="$xorg_testset_save_CFLAGS"
15677
15678		eval supported=\$$cacheid
15679		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15680$as_echo "$supported" >&6; }
15681		if test "$supported" = "yes" ; then
15682			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15683			found="yes"
15684		fi
15685	fi
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701xorg_testset_save_CFLAGS="$CFLAGS"
15702
15703if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15704	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15705	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15706$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15707if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15708  $as_echo_n "(cached) " >&6
15709else
15710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15711/* end confdefs.h.  */
15712int i;
15713_ACEOF
15714if ac_fn_c_try_compile "$LINENO"; then :
15715  xorg_cv_cc_flag_unknown_warning_option=yes
15716else
15717  xorg_cv_cc_flag_unknown_warning_option=no
15718fi
15719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15720fi
15721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15722$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15723	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15724	CFLAGS="$xorg_testset_save_CFLAGS"
15725fi
15726
15727if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15728	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15729		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15730	fi
15731	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15732	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15733$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15734if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15735  $as_echo_n "(cached) " >&6
15736else
15737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15738/* end confdefs.h.  */
15739int i;
15740_ACEOF
15741if ac_fn_c_try_compile "$LINENO"; then :
15742  xorg_cv_cc_flag_unused_command_line_argument=yes
15743else
15744  xorg_cv_cc_flag_unused_command_line_argument=no
15745fi
15746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15747fi
15748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15749$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15750	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15751	CFLAGS="$xorg_testset_save_CFLAGS"
15752fi
15753
15754found="no"
15755
15756	if test $found = "no" ; then
15757		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15758			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15759		fi
15760
15761		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15762			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15763		fi
15764
15765		CFLAGS="$CFLAGS -Werror=return-type"
15766
15767		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15768$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15769		cacheid=xorg_cv_cc_flag__Werror_return_type
15770		if eval \${$cacheid+:} false; then :
15771  $as_echo_n "(cached) " >&6
15772else
15773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15774/* end confdefs.h.  */
15775int i;
15776int
15777main ()
15778{
15779
15780  ;
15781  return 0;
15782}
15783_ACEOF
15784if ac_fn_c_try_link "$LINENO"; then :
15785  eval $cacheid=yes
15786else
15787  eval $cacheid=no
15788fi
15789rm -f core conftest.err conftest.$ac_objext \
15790    conftest$ac_exeext conftest.$ac_ext
15791fi
15792
15793
15794		CFLAGS="$xorg_testset_save_CFLAGS"
15795
15796		eval supported=\$$cacheid
15797		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15798$as_echo "$supported" >&6; }
15799		if test "$supported" = "yes" ; then
15800			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15801			found="yes"
15802		fi
15803	fi
15804
15805	if test $found = "no" ; then
15806		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15807			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15808		fi
15809
15810		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15811			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15812		fi
15813
15814		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15815
15816		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15817$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15818		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15819		if eval \${$cacheid+:} false; then :
15820  $as_echo_n "(cached) " >&6
15821else
15822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15823/* end confdefs.h.  */
15824int i;
15825int
15826main ()
15827{
15828
15829  ;
15830  return 0;
15831}
15832_ACEOF
15833if ac_fn_c_try_link "$LINENO"; then :
15834  eval $cacheid=yes
15835else
15836  eval $cacheid=no
15837fi
15838rm -f core conftest.err conftest.$ac_objext \
15839    conftest$ac_exeext conftest.$ac_ext
15840fi
15841
15842
15843		CFLAGS="$xorg_testset_save_CFLAGS"
15844
15845		eval supported=\$$cacheid
15846		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15847$as_echo "$supported" >&6; }
15848		if test "$supported" = "yes" ; then
15849			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15850			found="yes"
15851		fi
15852	fi
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868xorg_testset_save_CFLAGS="$CFLAGS"
15869
15870if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15871	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15872	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15873$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15874if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15875  $as_echo_n "(cached) " >&6
15876else
15877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15878/* end confdefs.h.  */
15879int i;
15880_ACEOF
15881if ac_fn_c_try_compile "$LINENO"; then :
15882  xorg_cv_cc_flag_unknown_warning_option=yes
15883else
15884  xorg_cv_cc_flag_unknown_warning_option=no
15885fi
15886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15887fi
15888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15889$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15890	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15891	CFLAGS="$xorg_testset_save_CFLAGS"
15892fi
15893
15894if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15895	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15896		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15897	fi
15898	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15899	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15900$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15901if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15902  $as_echo_n "(cached) " >&6
15903else
15904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15905/* end confdefs.h.  */
15906int i;
15907_ACEOF
15908if ac_fn_c_try_compile "$LINENO"; then :
15909  xorg_cv_cc_flag_unused_command_line_argument=yes
15910else
15911  xorg_cv_cc_flag_unused_command_line_argument=no
15912fi
15913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15914fi
15915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15916$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15917	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15918	CFLAGS="$xorg_testset_save_CFLAGS"
15919fi
15920
15921found="no"
15922
15923	if test $found = "no" ; then
15924		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15925			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15926		fi
15927
15928		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15929			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15930		fi
15931
15932		CFLAGS="$CFLAGS -Werror=trigraphs"
15933
15934		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15935$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15936		cacheid=xorg_cv_cc_flag__Werror_trigraphs
15937		if eval \${$cacheid+:} false; then :
15938  $as_echo_n "(cached) " >&6
15939else
15940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15941/* end confdefs.h.  */
15942int i;
15943int
15944main ()
15945{
15946
15947  ;
15948  return 0;
15949}
15950_ACEOF
15951if ac_fn_c_try_link "$LINENO"; then :
15952  eval $cacheid=yes
15953else
15954  eval $cacheid=no
15955fi
15956rm -f core conftest.err conftest.$ac_objext \
15957    conftest$ac_exeext conftest.$ac_ext
15958fi
15959
15960
15961		CFLAGS="$xorg_testset_save_CFLAGS"
15962
15963		eval supported=\$$cacheid
15964		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15965$as_echo "$supported" >&6; }
15966		if test "$supported" = "yes" ; then
15967			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15968			found="yes"
15969		fi
15970	fi
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986xorg_testset_save_CFLAGS="$CFLAGS"
15987
15988if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15989	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15990	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15991$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15992if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15993  $as_echo_n "(cached) " >&6
15994else
15995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15996/* end confdefs.h.  */
15997int i;
15998_ACEOF
15999if ac_fn_c_try_compile "$LINENO"; then :
16000  xorg_cv_cc_flag_unknown_warning_option=yes
16001else
16002  xorg_cv_cc_flag_unknown_warning_option=no
16003fi
16004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16005fi
16006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16007$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16008	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16009	CFLAGS="$xorg_testset_save_CFLAGS"
16010fi
16011
16012if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16013	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16014		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16015	fi
16016	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16017	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16018$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16019if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16020  $as_echo_n "(cached) " >&6
16021else
16022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16023/* end confdefs.h.  */
16024int i;
16025_ACEOF
16026if ac_fn_c_try_compile "$LINENO"; then :
16027  xorg_cv_cc_flag_unused_command_line_argument=yes
16028else
16029  xorg_cv_cc_flag_unused_command_line_argument=no
16030fi
16031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16032fi
16033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16034$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16035	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16036	CFLAGS="$xorg_testset_save_CFLAGS"
16037fi
16038
16039found="no"
16040
16041	if test $found = "no" ; then
16042		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16043			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16044		fi
16045
16046		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16047			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16048		fi
16049
16050		CFLAGS="$CFLAGS -Werror=array-bounds"
16051
16052		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16053$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
16054		cacheid=xorg_cv_cc_flag__Werror_array_bounds
16055		if eval \${$cacheid+:} false; then :
16056  $as_echo_n "(cached) " >&6
16057else
16058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16059/* end confdefs.h.  */
16060int i;
16061int
16062main ()
16063{
16064
16065  ;
16066  return 0;
16067}
16068_ACEOF
16069if ac_fn_c_try_link "$LINENO"; then :
16070  eval $cacheid=yes
16071else
16072  eval $cacheid=no
16073fi
16074rm -f core conftest.err conftest.$ac_objext \
16075    conftest$ac_exeext conftest.$ac_ext
16076fi
16077
16078
16079		CFLAGS="$xorg_testset_save_CFLAGS"
16080
16081		eval supported=\$$cacheid
16082		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16083$as_echo "$supported" >&6; }
16084		if test "$supported" = "yes" ; then
16085			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16086			found="yes"
16087		fi
16088	fi
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104xorg_testset_save_CFLAGS="$CFLAGS"
16105
16106if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16107	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16108	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16109$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16110if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16111  $as_echo_n "(cached) " >&6
16112else
16113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16114/* end confdefs.h.  */
16115int i;
16116_ACEOF
16117if ac_fn_c_try_compile "$LINENO"; then :
16118  xorg_cv_cc_flag_unknown_warning_option=yes
16119else
16120  xorg_cv_cc_flag_unknown_warning_option=no
16121fi
16122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16123fi
16124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16125$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16126	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16127	CFLAGS="$xorg_testset_save_CFLAGS"
16128fi
16129
16130if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16131	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16132		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16133	fi
16134	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16135	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16136$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16137if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16138  $as_echo_n "(cached) " >&6
16139else
16140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16141/* end confdefs.h.  */
16142int i;
16143_ACEOF
16144if ac_fn_c_try_compile "$LINENO"; then :
16145  xorg_cv_cc_flag_unused_command_line_argument=yes
16146else
16147  xorg_cv_cc_flag_unused_command_line_argument=no
16148fi
16149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16150fi
16151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16152$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16153	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16154	CFLAGS="$xorg_testset_save_CFLAGS"
16155fi
16156
16157found="no"
16158
16159	if test $found = "no" ; then
16160		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16161			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16162		fi
16163
16164		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16165			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16166		fi
16167
16168		CFLAGS="$CFLAGS -Werror=write-strings"
16169
16170		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16171$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
16172		cacheid=xorg_cv_cc_flag__Werror_write_strings
16173		if eval \${$cacheid+:} false; then :
16174  $as_echo_n "(cached) " >&6
16175else
16176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16177/* end confdefs.h.  */
16178int i;
16179int
16180main ()
16181{
16182
16183  ;
16184  return 0;
16185}
16186_ACEOF
16187if ac_fn_c_try_link "$LINENO"; then :
16188  eval $cacheid=yes
16189else
16190  eval $cacheid=no
16191fi
16192rm -f core conftest.err conftest.$ac_objext \
16193    conftest$ac_exeext conftest.$ac_ext
16194fi
16195
16196
16197		CFLAGS="$xorg_testset_save_CFLAGS"
16198
16199		eval supported=\$$cacheid
16200		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16201$as_echo "$supported" >&6; }
16202		if test "$supported" = "yes" ; then
16203			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16204			found="yes"
16205		fi
16206	fi
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222xorg_testset_save_CFLAGS="$CFLAGS"
16223
16224if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16225	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16226	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16227$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16228if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16229  $as_echo_n "(cached) " >&6
16230else
16231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16232/* end confdefs.h.  */
16233int i;
16234_ACEOF
16235if ac_fn_c_try_compile "$LINENO"; then :
16236  xorg_cv_cc_flag_unknown_warning_option=yes
16237else
16238  xorg_cv_cc_flag_unknown_warning_option=no
16239fi
16240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16241fi
16242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16243$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16244	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16245	CFLAGS="$xorg_testset_save_CFLAGS"
16246fi
16247
16248if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16249	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16250		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16251	fi
16252	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16253	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16254$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16255if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16256  $as_echo_n "(cached) " >&6
16257else
16258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16259/* end confdefs.h.  */
16260int i;
16261_ACEOF
16262if ac_fn_c_try_compile "$LINENO"; then :
16263  xorg_cv_cc_flag_unused_command_line_argument=yes
16264else
16265  xorg_cv_cc_flag_unused_command_line_argument=no
16266fi
16267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16268fi
16269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16270$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16271	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16272	CFLAGS="$xorg_testset_save_CFLAGS"
16273fi
16274
16275found="no"
16276
16277	if test $found = "no" ; then
16278		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16279			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16280		fi
16281
16282		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16283			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16284		fi
16285
16286		CFLAGS="$CFLAGS -Werror=address"
16287
16288		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16289$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
16290		cacheid=xorg_cv_cc_flag__Werror_address
16291		if eval \${$cacheid+:} false; then :
16292  $as_echo_n "(cached) " >&6
16293else
16294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16295/* end confdefs.h.  */
16296int i;
16297int
16298main ()
16299{
16300
16301  ;
16302  return 0;
16303}
16304_ACEOF
16305if ac_fn_c_try_link "$LINENO"; then :
16306  eval $cacheid=yes
16307else
16308  eval $cacheid=no
16309fi
16310rm -f core conftest.err conftest.$ac_objext \
16311    conftest$ac_exeext conftest.$ac_ext
16312fi
16313
16314
16315		CFLAGS="$xorg_testset_save_CFLAGS"
16316
16317		eval supported=\$$cacheid
16318		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16319$as_echo "$supported" >&6; }
16320		if test "$supported" = "yes" ; then
16321			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16322			found="yes"
16323		fi
16324	fi
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340xorg_testset_save_CFLAGS="$CFLAGS"
16341
16342if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16343	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16344	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16345$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16346if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16347  $as_echo_n "(cached) " >&6
16348else
16349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16350/* end confdefs.h.  */
16351int i;
16352_ACEOF
16353if ac_fn_c_try_compile "$LINENO"; then :
16354  xorg_cv_cc_flag_unknown_warning_option=yes
16355else
16356  xorg_cv_cc_flag_unknown_warning_option=no
16357fi
16358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16359fi
16360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16361$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16362	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16363	CFLAGS="$xorg_testset_save_CFLAGS"
16364fi
16365
16366if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16367	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16368		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16369	fi
16370	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16371	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16372$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16373if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16374  $as_echo_n "(cached) " >&6
16375else
16376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16377/* end confdefs.h.  */
16378int i;
16379_ACEOF
16380if ac_fn_c_try_compile "$LINENO"; then :
16381  xorg_cv_cc_flag_unused_command_line_argument=yes
16382else
16383  xorg_cv_cc_flag_unused_command_line_argument=no
16384fi
16385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16386fi
16387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16388$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16389	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16390	CFLAGS="$xorg_testset_save_CFLAGS"
16391fi
16392
16393found="no"
16394
16395	if test $found = "no" ; then
16396		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16397			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16398		fi
16399
16400		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16401			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16402		fi
16403
16404		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16405
16406		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16407$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16408		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16409		if eval \${$cacheid+:} false; then :
16410  $as_echo_n "(cached) " >&6
16411else
16412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16413/* end confdefs.h.  */
16414int i;
16415int
16416main ()
16417{
16418
16419  ;
16420  return 0;
16421}
16422_ACEOF
16423if ac_fn_c_try_link "$LINENO"; then :
16424  eval $cacheid=yes
16425else
16426  eval $cacheid=no
16427fi
16428rm -f core conftest.err conftest.$ac_objext \
16429    conftest$ac_exeext conftest.$ac_ext
16430fi
16431
16432
16433		CFLAGS="$xorg_testset_save_CFLAGS"
16434
16435		eval supported=\$$cacheid
16436		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16437$as_echo "$supported" >&6; }
16438		if test "$supported" = "yes" ; then
16439			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16440			found="yes"
16441		fi
16442	fi
16443
16444	if test $found = "no" ; then
16445		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16446			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16447		fi
16448
16449		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16450			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16451		fi
16452
16453		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16454
16455		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16456$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16457		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16458		if eval \${$cacheid+:} false; then :
16459  $as_echo_n "(cached) " >&6
16460else
16461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16462/* end confdefs.h.  */
16463int i;
16464int
16465main ()
16466{
16467
16468  ;
16469  return 0;
16470}
16471_ACEOF
16472if ac_fn_c_try_link "$LINENO"; then :
16473  eval $cacheid=yes
16474else
16475  eval $cacheid=no
16476fi
16477rm -f core conftest.err conftest.$ac_objext \
16478    conftest$ac_exeext conftest.$ac_ext
16479fi
16480
16481
16482		CFLAGS="$xorg_testset_save_CFLAGS"
16483
16484		eval supported=\$$cacheid
16485		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16486$as_echo "$supported" >&6; }
16487		if test "$supported" = "yes" ; then
16488			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16489			found="yes"
16490		fi
16491	fi
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507xorg_testset_save_CFLAGS="$CFLAGS"
16508
16509if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16510	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16511	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16512$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16513if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16514  $as_echo_n "(cached) " >&6
16515else
16516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16517/* end confdefs.h.  */
16518int i;
16519_ACEOF
16520if ac_fn_c_try_compile "$LINENO"; then :
16521  xorg_cv_cc_flag_unknown_warning_option=yes
16522else
16523  xorg_cv_cc_flag_unknown_warning_option=no
16524fi
16525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16526fi
16527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16528$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16529	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16530	CFLAGS="$xorg_testset_save_CFLAGS"
16531fi
16532
16533if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16534	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16535		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16536	fi
16537	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16538	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16539$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16540if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16541  $as_echo_n "(cached) " >&6
16542else
16543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16544/* end confdefs.h.  */
16545int i;
16546_ACEOF
16547if ac_fn_c_try_compile "$LINENO"; then :
16548  xorg_cv_cc_flag_unused_command_line_argument=yes
16549else
16550  xorg_cv_cc_flag_unused_command_line_argument=no
16551fi
16552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16553fi
16554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16555$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16556	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16557	CFLAGS="$xorg_testset_save_CFLAGS"
16558fi
16559
16560found="no"
16561
16562	if test $found = "no" ; then
16563		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16564			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16565		fi
16566
16567		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16568			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16569		fi
16570
16571		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16572
16573		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16574$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16575		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16576		if eval \${$cacheid+:} false; then :
16577  $as_echo_n "(cached) " >&6
16578else
16579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16580/* end confdefs.h.  */
16581int i;
16582int
16583main ()
16584{
16585
16586  ;
16587  return 0;
16588}
16589_ACEOF
16590if ac_fn_c_try_link "$LINENO"; then :
16591  eval $cacheid=yes
16592else
16593  eval $cacheid=no
16594fi
16595rm -f core conftest.err conftest.$ac_objext \
16596    conftest$ac_exeext conftest.$ac_ext
16597fi
16598
16599
16600		CFLAGS="$xorg_testset_save_CFLAGS"
16601
16602		eval supported=\$$cacheid
16603		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16604$as_echo "$supported" >&6; }
16605		if test "$supported" = "yes" ; then
16606			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16607			found="yes"
16608		fi
16609	fi
16610
16611 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16612else
16613{ $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
16614$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;}
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628xorg_testset_save_CFLAGS="$CFLAGS"
16629
16630if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16631	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16632	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16633$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16634if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16635  $as_echo_n "(cached) " >&6
16636else
16637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16638/* end confdefs.h.  */
16639int i;
16640_ACEOF
16641if ac_fn_c_try_compile "$LINENO"; then :
16642  xorg_cv_cc_flag_unknown_warning_option=yes
16643else
16644  xorg_cv_cc_flag_unknown_warning_option=no
16645fi
16646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16647fi
16648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16649$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16650	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16651	CFLAGS="$xorg_testset_save_CFLAGS"
16652fi
16653
16654if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16655	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16656		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16657	fi
16658	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16659	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16660$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16661if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16662  $as_echo_n "(cached) " >&6
16663else
16664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16665/* end confdefs.h.  */
16666int i;
16667_ACEOF
16668if ac_fn_c_try_compile "$LINENO"; then :
16669  xorg_cv_cc_flag_unused_command_line_argument=yes
16670else
16671  xorg_cv_cc_flag_unused_command_line_argument=no
16672fi
16673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16674fi
16675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16676$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16677	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16678	CFLAGS="$xorg_testset_save_CFLAGS"
16679fi
16680
16681found="no"
16682
16683	if test $found = "no" ; then
16684		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16685			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16686		fi
16687
16688		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16689			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16690		fi
16691
16692		CFLAGS="$CFLAGS -Wimplicit"
16693
16694		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16695$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16696		cacheid=xorg_cv_cc_flag__Wimplicit
16697		if eval \${$cacheid+:} false; then :
16698  $as_echo_n "(cached) " >&6
16699else
16700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16701/* end confdefs.h.  */
16702int i;
16703int
16704main ()
16705{
16706
16707  ;
16708  return 0;
16709}
16710_ACEOF
16711if ac_fn_c_try_link "$LINENO"; then :
16712  eval $cacheid=yes
16713else
16714  eval $cacheid=no
16715fi
16716rm -f core conftest.err conftest.$ac_objext \
16717    conftest$ac_exeext conftest.$ac_ext
16718fi
16719
16720
16721		CFLAGS="$xorg_testset_save_CFLAGS"
16722
16723		eval supported=\$$cacheid
16724		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16725$as_echo "$supported" >&6; }
16726		if test "$supported" = "yes" ; then
16727			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16728			found="yes"
16729		fi
16730	fi
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746xorg_testset_save_CFLAGS="$CFLAGS"
16747
16748if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16749	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16750	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16751$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16752if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16753  $as_echo_n "(cached) " >&6
16754else
16755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16756/* end confdefs.h.  */
16757int i;
16758_ACEOF
16759if ac_fn_c_try_compile "$LINENO"; then :
16760  xorg_cv_cc_flag_unknown_warning_option=yes
16761else
16762  xorg_cv_cc_flag_unknown_warning_option=no
16763fi
16764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16765fi
16766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16767$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16768	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16769	CFLAGS="$xorg_testset_save_CFLAGS"
16770fi
16771
16772if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16773	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16774		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16775	fi
16776	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16777	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16778$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16779if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16780  $as_echo_n "(cached) " >&6
16781else
16782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16783/* end confdefs.h.  */
16784int i;
16785_ACEOF
16786if ac_fn_c_try_compile "$LINENO"; then :
16787  xorg_cv_cc_flag_unused_command_line_argument=yes
16788else
16789  xorg_cv_cc_flag_unused_command_line_argument=no
16790fi
16791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16792fi
16793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16794$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16795	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16796	CFLAGS="$xorg_testset_save_CFLAGS"
16797fi
16798
16799found="no"
16800
16801	if test $found = "no" ; then
16802		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16803			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16804		fi
16805
16806		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16807			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16808		fi
16809
16810		CFLAGS="$CFLAGS -Wnonnull"
16811
16812		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16813$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16814		cacheid=xorg_cv_cc_flag__Wnonnull
16815		if eval \${$cacheid+:} false; then :
16816  $as_echo_n "(cached) " >&6
16817else
16818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16819/* end confdefs.h.  */
16820int i;
16821int
16822main ()
16823{
16824
16825  ;
16826  return 0;
16827}
16828_ACEOF
16829if ac_fn_c_try_link "$LINENO"; then :
16830  eval $cacheid=yes
16831else
16832  eval $cacheid=no
16833fi
16834rm -f core conftest.err conftest.$ac_objext \
16835    conftest$ac_exeext conftest.$ac_ext
16836fi
16837
16838
16839		CFLAGS="$xorg_testset_save_CFLAGS"
16840
16841		eval supported=\$$cacheid
16842		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16843$as_echo "$supported" >&6; }
16844		if test "$supported" = "yes" ; then
16845			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16846			found="yes"
16847		fi
16848	fi
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864xorg_testset_save_CFLAGS="$CFLAGS"
16865
16866if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16867	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16868	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16869$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16870if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16871  $as_echo_n "(cached) " >&6
16872else
16873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16874/* end confdefs.h.  */
16875int i;
16876_ACEOF
16877if ac_fn_c_try_compile "$LINENO"; then :
16878  xorg_cv_cc_flag_unknown_warning_option=yes
16879else
16880  xorg_cv_cc_flag_unknown_warning_option=no
16881fi
16882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16883fi
16884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16885$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16886	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16887	CFLAGS="$xorg_testset_save_CFLAGS"
16888fi
16889
16890if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16891	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16892		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16893	fi
16894	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16895	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16896$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16897if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16898  $as_echo_n "(cached) " >&6
16899else
16900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16901/* end confdefs.h.  */
16902int i;
16903_ACEOF
16904if ac_fn_c_try_compile "$LINENO"; then :
16905  xorg_cv_cc_flag_unused_command_line_argument=yes
16906else
16907  xorg_cv_cc_flag_unused_command_line_argument=no
16908fi
16909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16910fi
16911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16912$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16913	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16914	CFLAGS="$xorg_testset_save_CFLAGS"
16915fi
16916
16917found="no"
16918
16919	if test $found = "no" ; then
16920		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16921			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16922		fi
16923
16924		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16925			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16926		fi
16927
16928		CFLAGS="$CFLAGS -Winit-self"
16929
16930		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16931$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16932		cacheid=xorg_cv_cc_flag__Winit_self
16933		if eval \${$cacheid+:} false; then :
16934  $as_echo_n "(cached) " >&6
16935else
16936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16937/* end confdefs.h.  */
16938int i;
16939int
16940main ()
16941{
16942
16943  ;
16944  return 0;
16945}
16946_ACEOF
16947if ac_fn_c_try_link "$LINENO"; then :
16948  eval $cacheid=yes
16949else
16950  eval $cacheid=no
16951fi
16952rm -f core conftest.err conftest.$ac_objext \
16953    conftest$ac_exeext conftest.$ac_ext
16954fi
16955
16956
16957		CFLAGS="$xorg_testset_save_CFLAGS"
16958
16959		eval supported=\$$cacheid
16960		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16961$as_echo "$supported" >&6; }
16962		if test "$supported" = "yes" ; then
16963			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16964			found="yes"
16965		fi
16966	fi
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982xorg_testset_save_CFLAGS="$CFLAGS"
16983
16984if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16985	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16986	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16987$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16988if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16989  $as_echo_n "(cached) " >&6
16990else
16991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16992/* end confdefs.h.  */
16993int i;
16994_ACEOF
16995if ac_fn_c_try_compile "$LINENO"; then :
16996  xorg_cv_cc_flag_unknown_warning_option=yes
16997else
16998  xorg_cv_cc_flag_unknown_warning_option=no
16999fi
17000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17001fi
17002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17003$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17004	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17005	CFLAGS="$xorg_testset_save_CFLAGS"
17006fi
17007
17008if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17009	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17010		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17011	fi
17012	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17013	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17014$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17015if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17016  $as_echo_n "(cached) " >&6
17017else
17018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17019/* end confdefs.h.  */
17020int i;
17021_ACEOF
17022if ac_fn_c_try_compile "$LINENO"; then :
17023  xorg_cv_cc_flag_unused_command_line_argument=yes
17024else
17025  xorg_cv_cc_flag_unused_command_line_argument=no
17026fi
17027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17028fi
17029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17030$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17031	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17032	CFLAGS="$xorg_testset_save_CFLAGS"
17033fi
17034
17035found="no"
17036
17037	if test $found = "no" ; then
17038		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17039			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17040		fi
17041
17042		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17043			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17044		fi
17045
17046		CFLAGS="$CFLAGS -Wmain"
17047
17048		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17049$as_echo_n "checking if $CC supports -Wmain... " >&6; }
17050		cacheid=xorg_cv_cc_flag__Wmain
17051		if eval \${$cacheid+:} false; then :
17052  $as_echo_n "(cached) " >&6
17053else
17054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17055/* end confdefs.h.  */
17056int i;
17057int
17058main ()
17059{
17060
17061  ;
17062  return 0;
17063}
17064_ACEOF
17065if ac_fn_c_try_link "$LINENO"; then :
17066  eval $cacheid=yes
17067else
17068  eval $cacheid=no
17069fi
17070rm -f core conftest.err conftest.$ac_objext \
17071    conftest$ac_exeext conftest.$ac_ext
17072fi
17073
17074
17075		CFLAGS="$xorg_testset_save_CFLAGS"
17076
17077		eval supported=\$$cacheid
17078		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17079$as_echo "$supported" >&6; }
17080		if test "$supported" = "yes" ; then
17081			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17082			found="yes"
17083		fi
17084	fi
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100xorg_testset_save_CFLAGS="$CFLAGS"
17101
17102if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17103	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17104	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17105$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17106if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17107  $as_echo_n "(cached) " >&6
17108else
17109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17110/* end confdefs.h.  */
17111int i;
17112_ACEOF
17113if ac_fn_c_try_compile "$LINENO"; then :
17114  xorg_cv_cc_flag_unknown_warning_option=yes
17115else
17116  xorg_cv_cc_flag_unknown_warning_option=no
17117fi
17118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17119fi
17120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17121$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17122	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17123	CFLAGS="$xorg_testset_save_CFLAGS"
17124fi
17125
17126if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17127	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17128		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17129	fi
17130	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17131	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17132$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17133if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17134  $as_echo_n "(cached) " >&6
17135else
17136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17137/* end confdefs.h.  */
17138int i;
17139_ACEOF
17140if ac_fn_c_try_compile "$LINENO"; then :
17141  xorg_cv_cc_flag_unused_command_line_argument=yes
17142else
17143  xorg_cv_cc_flag_unused_command_line_argument=no
17144fi
17145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17146fi
17147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17148$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17149	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17150	CFLAGS="$xorg_testset_save_CFLAGS"
17151fi
17152
17153found="no"
17154
17155	if test $found = "no" ; then
17156		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17157			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17158		fi
17159
17160		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17161			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17162		fi
17163
17164		CFLAGS="$CFLAGS -Wmissing-braces"
17165
17166		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17167$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
17168		cacheid=xorg_cv_cc_flag__Wmissing_braces
17169		if eval \${$cacheid+:} false; then :
17170  $as_echo_n "(cached) " >&6
17171else
17172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17173/* end confdefs.h.  */
17174int i;
17175int
17176main ()
17177{
17178
17179  ;
17180  return 0;
17181}
17182_ACEOF
17183if ac_fn_c_try_link "$LINENO"; then :
17184  eval $cacheid=yes
17185else
17186  eval $cacheid=no
17187fi
17188rm -f core conftest.err conftest.$ac_objext \
17189    conftest$ac_exeext conftest.$ac_ext
17190fi
17191
17192
17193		CFLAGS="$xorg_testset_save_CFLAGS"
17194
17195		eval supported=\$$cacheid
17196		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17197$as_echo "$supported" >&6; }
17198		if test "$supported" = "yes" ; then
17199			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17200			found="yes"
17201		fi
17202	fi
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218xorg_testset_save_CFLAGS="$CFLAGS"
17219
17220if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17221	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17222	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17223$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17224if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17225  $as_echo_n "(cached) " >&6
17226else
17227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17228/* end confdefs.h.  */
17229int i;
17230_ACEOF
17231if ac_fn_c_try_compile "$LINENO"; then :
17232  xorg_cv_cc_flag_unknown_warning_option=yes
17233else
17234  xorg_cv_cc_flag_unknown_warning_option=no
17235fi
17236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17237fi
17238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17239$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17240	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17241	CFLAGS="$xorg_testset_save_CFLAGS"
17242fi
17243
17244if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17245	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17246		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17247	fi
17248	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17249	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17250$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17251if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17252  $as_echo_n "(cached) " >&6
17253else
17254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17255/* end confdefs.h.  */
17256int i;
17257_ACEOF
17258if ac_fn_c_try_compile "$LINENO"; then :
17259  xorg_cv_cc_flag_unused_command_line_argument=yes
17260else
17261  xorg_cv_cc_flag_unused_command_line_argument=no
17262fi
17263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17264fi
17265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17266$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17267	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17268	CFLAGS="$xorg_testset_save_CFLAGS"
17269fi
17270
17271found="no"
17272
17273	if test $found = "no" ; then
17274		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17275			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17276		fi
17277
17278		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17279			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17280		fi
17281
17282		CFLAGS="$CFLAGS -Wsequence-point"
17283
17284		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17285$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
17286		cacheid=xorg_cv_cc_flag__Wsequence_point
17287		if eval \${$cacheid+:} false; then :
17288  $as_echo_n "(cached) " >&6
17289else
17290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17291/* end confdefs.h.  */
17292int i;
17293int
17294main ()
17295{
17296
17297  ;
17298  return 0;
17299}
17300_ACEOF
17301if ac_fn_c_try_link "$LINENO"; then :
17302  eval $cacheid=yes
17303else
17304  eval $cacheid=no
17305fi
17306rm -f core conftest.err conftest.$ac_objext \
17307    conftest$ac_exeext conftest.$ac_ext
17308fi
17309
17310
17311		CFLAGS="$xorg_testset_save_CFLAGS"
17312
17313		eval supported=\$$cacheid
17314		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17315$as_echo "$supported" >&6; }
17316		if test "$supported" = "yes" ; then
17317			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17318			found="yes"
17319		fi
17320	fi
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336xorg_testset_save_CFLAGS="$CFLAGS"
17337
17338if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17339	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17340	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17341$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17342if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17343  $as_echo_n "(cached) " >&6
17344else
17345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17346/* end confdefs.h.  */
17347int i;
17348_ACEOF
17349if ac_fn_c_try_compile "$LINENO"; then :
17350  xorg_cv_cc_flag_unknown_warning_option=yes
17351else
17352  xorg_cv_cc_flag_unknown_warning_option=no
17353fi
17354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17355fi
17356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17357$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17358	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17359	CFLAGS="$xorg_testset_save_CFLAGS"
17360fi
17361
17362if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17363	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17364		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17365	fi
17366	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17367	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17368$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17369if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17370  $as_echo_n "(cached) " >&6
17371else
17372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17373/* end confdefs.h.  */
17374int i;
17375_ACEOF
17376if ac_fn_c_try_compile "$LINENO"; then :
17377  xorg_cv_cc_flag_unused_command_line_argument=yes
17378else
17379  xorg_cv_cc_flag_unused_command_line_argument=no
17380fi
17381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17382fi
17383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17384$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17385	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17386	CFLAGS="$xorg_testset_save_CFLAGS"
17387fi
17388
17389found="no"
17390
17391	if test $found = "no" ; then
17392		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17393			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17394		fi
17395
17396		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17397			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17398		fi
17399
17400		CFLAGS="$CFLAGS -Wreturn-type"
17401
17402		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17403$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
17404		cacheid=xorg_cv_cc_flag__Wreturn_type
17405		if eval \${$cacheid+:} false; then :
17406  $as_echo_n "(cached) " >&6
17407else
17408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17409/* end confdefs.h.  */
17410int i;
17411int
17412main ()
17413{
17414
17415  ;
17416  return 0;
17417}
17418_ACEOF
17419if ac_fn_c_try_link "$LINENO"; then :
17420  eval $cacheid=yes
17421else
17422  eval $cacheid=no
17423fi
17424rm -f core conftest.err conftest.$ac_objext \
17425    conftest$ac_exeext conftest.$ac_ext
17426fi
17427
17428
17429		CFLAGS="$xorg_testset_save_CFLAGS"
17430
17431		eval supported=\$$cacheid
17432		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17433$as_echo "$supported" >&6; }
17434		if test "$supported" = "yes" ; then
17435			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17436			found="yes"
17437		fi
17438	fi
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454xorg_testset_save_CFLAGS="$CFLAGS"
17455
17456if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17457	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17458	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17459$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17460if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17461  $as_echo_n "(cached) " >&6
17462else
17463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17464/* end confdefs.h.  */
17465int i;
17466_ACEOF
17467if ac_fn_c_try_compile "$LINENO"; then :
17468  xorg_cv_cc_flag_unknown_warning_option=yes
17469else
17470  xorg_cv_cc_flag_unknown_warning_option=no
17471fi
17472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17473fi
17474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17475$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17476	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17477	CFLAGS="$xorg_testset_save_CFLAGS"
17478fi
17479
17480if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17481	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17482		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17483	fi
17484	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17485	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17486$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17487if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17488  $as_echo_n "(cached) " >&6
17489else
17490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17491/* end confdefs.h.  */
17492int i;
17493_ACEOF
17494if ac_fn_c_try_compile "$LINENO"; then :
17495  xorg_cv_cc_flag_unused_command_line_argument=yes
17496else
17497  xorg_cv_cc_flag_unused_command_line_argument=no
17498fi
17499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17500fi
17501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17502$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17503	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17504	CFLAGS="$xorg_testset_save_CFLAGS"
17505fi
17506
17507found="no"
17508
17509	if test $found = "no" ; then
17510		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17511			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17512		fi
17513
17514		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17515			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17516		fi
17517
17518		CFLAGS="$CFLAGS -Wtrigraphs"
17519
17520		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17521$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17522		cacheid=xorg_cv_cc_flag__Wtrigraphs
17523		if eval \${$cacheid+:} false; then :
17524  $as_echo_n "(cached) " >&6
17525else
17526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17527/* end confdefs.h.  */
17528int i;
17529int
17530main ()
17531{
17532
17533  ;
17534  return 0;
17535}
17536_ACEOF
17537if ac_fn_c_try_link "$LINENO"; then :
17538  eval $cacheid=yes
17539else
17540  eval $cacheid=no
17541fi
17542rm -f core conftest.err conftest.$ac_objext \
17543    conftest$ac_exeext conftest.$ac_ext
17544fi
17545
17546
17547		CFLAGS="$xorg_testset_save_CFLAGS"
17548
17549		eval supported=\$$cacheid
17550		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17551$as_echo "$supported" >&6; }
17552		if test "$supported" = "yes" ; then
17553			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17554			found="yes"
17555		fi
17556	fi
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572xorg_testset_save_CFLAGS="$CFLAGS"
17573
17574if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17575	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17576	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17577$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17578if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17579  $as_echo_n "(cached) " >&6
17580else
17581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17582/* end confdefs.h.  */
17583int i;
17584_ACEOF
17585if ac_fn_c_try_compile "$LINENO"; then :
17586  xorg_cv_cc_flag_unknown_warning_option=yes
17587else
17588  xorg_cv_cc_flag_unknown_warning_option=no
17589fi
17590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17591fi
17592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17593$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17594	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17595	CFLAGS="$xorg_testset_save_CFLAGS"
17596fi
17597
17598if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17599	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17600		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17601	fi
17602	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17603	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17604$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17605if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17606  $as_echo_n "(cached) " >&6
17607else
17608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17609/* end confdefs.h.  */
17610int i;
17611_ACEOF
17612if ac_fn_c_try_compile "$LINENO"; then :
17613  xorg_cv_cc_flag_unused_command_line_argument=yes
17614else
17615  xorg_cv_cc_flag_unused_command_line_argument=no
17616fi
17617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17618fi
17619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17620$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17621	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17622	CFLAGS="$xorg_testset_save_CFLAGS"
17623fi
17624
17625found="no"
17626
17627	if test $found = "no" ; then
17628		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17629			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17630		fi
17631
17632		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17633			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17634		fi
17635
17636		CFLAGS="$CFLAGS -Warray-bounds"
17637
17638		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17639$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17640		cacheid=xorg_cv_cc_flag__Warray_bounds
17641		if eval \${$cacheid+:} false; then :
17642  $as_echo_n "(cached) " >&6
17643else
17644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17645/* end confdefs.h.  */
17646int i;
17647int
17648main ()
17649{
17650
17651  ;
17652  return 0;
17653}
17654_ACEOF
17655if ac_fn_c_try_link "$LINENO"; then :
17656  eval $cacheid=yes
17657else
17658  eval $cacheid=no
17659fi
17660rm -f core conftest.err conftest.$ac_objext \
17661    conftest$ac_exeext conftest.$ac_ext
17662fi
17663
17664
17665		CFLAGS="$xorg_testset_save_CFLAGS"
17666
17667		eval supported=\$$cacheid
17668		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17669$as_echo "$supported" >&6; }
17670		if test "$supported" = "yes" ; then
17671			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17672			found="yes"
17673		fi
17674	fi
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690xorg_testset_save_CFLAGS="$CFLAGS"
17691
17692if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17693	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17694	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17695$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17696if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17697  $as_echo_n "(cached) " >&6
17698else
17699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17700/* end confdefs.h.  */
17701int i;
17702_ACEOF
17703if ac_fn_c_try_compile "$LINENO"; then :
17704  xorg_cv_cc_flag_unknown_warning_option=yes
17705else
17706  xorg_cv_cc_flag_unknown_warning_option=no
17707fi
17708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17709fi
17710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17711$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17712	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17713	CFLAGS="$xorg_testset_save_CFLAGS"
17714fi
17715
17716if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17717	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17718		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17719	fi
17720	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17721	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17722$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17723if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17724  $as_echo_n "(cached) " >&6
17725else
17726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17727/* end confdefs.h.  */
17728int i;
17729_ACEOF
17730if ac_fn_c_try_compile "$LINENO"; then :
17731  xorg_cv_cc_flag_unused_command_line_argument=yes
17732else
17733  xorg_cv_cc_flag_unused_command_line_argument=no
17734fi
17735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17736fi
17737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17738$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17739	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17740	CFLAGS="$xorg_testset_save_CFLAGS"
17741fi
17742
17743found="no"
17744
17745	if test $found = "no" ; then
17746		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17747			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17748		fi
17749
17750		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17751			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17752		fi
17753
17754		CFLAGS="$CFLAGS -Wwrite-strings"
17755
17756		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17757$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17758		cacheid=xorg_cv_cc_flag__Wwrite_strings
17759		if eval \${$cacheid+:} false; then :
17760  $as_echo_n "(cached) " >&6
17761else
17762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17763/* end confdefs.h.  */
17764int i;
17765int
17766main ()
17767{
17768
17769  ;
17770  return 0;
17771}
17772_ACEOF
17773if ac_fn_c_try_link "$LINENO"; then :
17774  eval $cacheid=yes
17775else
17776  eval $cacheid=no
17777fi
17778rm -f core conftest.err conftest.$ac_objext \
17779    conftest$ac_exeext conftest.$ac_ext
17780fi
17781
17782
17783		CFLAGS="$xorg_testset_save_CFLAGS"
17784
17785		eval supported=\$$cacheid
17786		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17787$as_echo "$supported" >&6; }
17788		if test "$supported" = "yes" ; then
17789			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17790			found="yes"
17791		fi
17792	fi
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808xorg_testset_save_CFLAGS="$CFLAGS"
17809
17810if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17811	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17812	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17813$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17814if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17815  $as_echo_n "(cached) " >&6
17816else
17817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17818/* end confdefs.h.  */
17819int i;
17820_ACEOF
17821if ac_fn_c_try_compile "$LINENO"; then :
17822  xorg_cv_cc_flag_unknown_warning_option=yes
17823else
17824  xorg_cv_cc_flag_unknown_warning_option=no
17825fi
17826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17827fi
17828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17829$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17830	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17831	CFLAGS="$xorg_testset_save_CFLAGS"
17832fi
17833
17834if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17835	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17836		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17837	fi
17838	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17839	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17840$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17841if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17842  $as_echo_n "(cached) " >&6
17843else
17844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17845/* end confdefs.h.  */
17846int i;
17847_ACEOF
17848if ac_fn_c_try_compile "$LINENO"; then :
17849  xorg_cv_cc_flag_unused_command_line_argument=yes
17850else
17851  xorg_cv_cc_flag_unused_command_line_argument=no
17852fi
17853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17854fi
17855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17856$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17857	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17858	CFLAGS="$xorg_testset_save_CFLAGS"
17859fi
17860
17861found="no"
17862
17863	if test $found = "no" ; then
17864		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17865			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17866		fi
17867
17868		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17869			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17870		fi
17871
17872		CFLAGS="$CFLAGS -Waddress"
17873
17874		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17875$as_echo_n "checking if $CC supports -Waddress... " >&6; }
17876		cacheid=xorg_cv_cc_flag__Waddress
17877		if eval \${$cacheid+:} false; then :
17878  $as_echo_n "(cached) " >&6
17879else
17880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17881/* end confdefs.h.  */
17882int i;
17883int
17884main ()
17885{
17886
17887  ;
17888  return 0;
17889}
17890_ACEOF
17891if ac_fn_c_try_link "$LINENO"; then :
17892  eval $cacheid=yes
17893else
17894  eval $cacheid=no
17895fi
17896rm -f core conftest.err conftest.$ac_objext \
17897    conftest$ac_exeext conftest.$ac_ext
17898fi
17899
17900
17901		CFLAGS="$xorg_testset_save_CFLAGS"
17902
17903		eval supported=\$$cacheid
17904		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17905$as_echo "$supported" >&6; }
17906		if test "$supported" = "yes" ; then
17907			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17908			found="yes"
17909		fi
17910	fi
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926xorg_testset_save_CFLAGS="$CFLAGS"
17927
17928if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17929	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17930	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17931$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17932if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17933  $as_echo_n "(cached) " >&6
17934else
17935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17936/* end confdefs.h.  */
17937int i;
17938_ACEOF
17939if ac_fn_c_try_compile "$LINENO"; then :
17940  xorg_cv_cc_flag_unknown_warning_option=yes
17941else
17942  xorg_cv_cc_flag_unknown_warning_option=no
17943fi
17944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17945fi
17946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17947$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17948	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17949	CFLAGS="$xorg_testset_save_CFLAGS"
17950fi
17951
17952if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17953	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17954		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17955	fi
17956	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17957	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17958$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17959if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17960  $as_echo_n "(cached) " >&6
17961else
17962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17963/* end confdefs.h.  */
17964int i;
17965_ACEOF
17966if ac_fn_c_try_compile "$LINENO"; then :
17967  xorg_cv_cc_flag_unused_command_line_argument=yes
17968else
17969  xorg_cv_cc_flag_unused_command_line_argument=no
17970fi
17971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17972fi
17973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17974$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17975	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17976	CFLAGS="$xorg_testset_save_CFLAGS"
17977fi
17978
17979found="no"
17980
17981	if test $found = "no" ; then
17982		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17983			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17984		fi
17985
17986		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17987			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17988		fi
17989
17990		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17991
17992		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17993$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17994		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17995		if eval \${$cacheid+:} false; then :
17996  $as_echo_n "(cached) " >&6
17997else
17998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17999/* end confdefs.h.  */
18000int i;
18001int
18002main ()
18003{
18004
18005  ;
18006  return 0;
18007}
18008_ACEOF
18009if ac_fn_c_try_link "$LINENO"; then :
18010  eval $cacheid=yes
18011else
18012  eval $cacheid=no
18013fi
18014rm -f core conftest.err conftest.$ac_objext \
18015    conftest$ac_exeext conftest.$ac_ext
18016fi
18017
18018
18019		CFLAGS="$xorg_testset_save_CFLAGS"
18020
18021		eval supported=\$$cacheid
18022		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18023$as_echo "$supported" >&6; }
18024		if test "$supported" = "yes" ; then
18025			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18026			found="yes"
18027		fi
18028	fi
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044xorg_testset_save_CFLAGS="$CFLAGS"
18045
18046if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18047	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18048	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18049$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18050if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18051  $as_echo_n "(cached) " >&6
18052else
18053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18054/* end confdefs.h.  */
18055int i;
18056_ACEOF
18057if ac_fn_c_try_compile "$LINENO"; then :
18058  xorg_cv_cc_flag_unknown_warning_option=yes
18059else
18060  xorg_cv_cc_flag_unknown_warning_option=no
18061fi
18062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18063fi
18064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18065$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18066	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18067	CFLAGS="$xorg_testset_save_CFLAGS"
18068fi
18069
18070if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18071	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18072		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18073	fi
18074	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18075	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18076$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18077if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18078  $as_echo_n "(cached) " >&6
18079else
18080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18081/* end confdefs.h.  */
18082int i;
18083_ACEOF
18084if ac_fn_c_try_compile "$LINENO"; then :
18085  xorg_cv_cc_flag_unused_command_line_argument=yes
18086else
18087  xorg_cv_cc_flag_unused_command_line_argument=no
18088fi
18089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18090fi
18091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18092$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18093	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18094	CFLAGS="$xorg_testset_save_CFLAGS"
18095fi
18096
18097found="no"
18098
18099	if test $found = "no" ; then
18100		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18101			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18102		fi
18103
18104		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18105			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18106		fi
18107
18108		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18109
18110		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18111$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18112		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18113		if eval \${$cacheid+:} false; then :
18114  $as_echo_n "(cached) " >&6
18115else
18116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18117/* end confdefs.h.  */
18118int i;
18119int
18120main ()
18121{
18122
18123  ;
18124  return 0;
18125}
18126_ACEOF
18127if ac_fn_c_try_link "$LINENO"; then :
18128  eval $cacheid=yes
18129else
18130  eval $cacheid=no
18131fi
18132rm -f core conftest.err conftest.$ac_objext \
18133    conftest$ac_exeext conftest.$ac_ext
18134fi
18135
18136
18137		CFLAGS="$xorg_testset_save_CFLAGS"
18138
18139		eval supported=\$$cacheid
18140		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18141$as_echo "$supported" >&6; }
18142		if test "$supported" = "yes" ; then
18143			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18144			found="yes"
18145		fi
18146	fi
18147
18148
18149fi
18150
18151
18152
18153
18154
18155
18156
18157		CWARNFLAGS="$BASE_CFLAGS"
18158		if  test "x$GCC" = xyes ; then
18159		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18160		fi
18161
18162
18163
18164
18165
18166
18167
18168
18169# Check whether --enable-strict-compilation was given.
18170if test "${enable_strict_compilation+set}" = set; then :
18171  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18172else
18173  STRICT_COMPILE=no
18174fi
18175
18176
18177
18178
18179
18180
18181STRICT_CFLAGS=""
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195xorg_testset_save_CFLAGS="$CFLAGS"
18196
18197if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18198	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18199	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18200$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18201if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18202  $as_echo_n "(cached) " >&6
18203else
18204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18205/* end confdefs.h.  */
18206int i;
18207_ACEOF
18208if ac_fn_c_try_compile "$LINENO"; then :
18209  xorg_cv_cc_flag_unknown_warning_option=yes
18210else
18211  xorg_cv_cc_flag_unknown_warning_option=no
18212fi
18213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18214fi
18215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18216$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18217	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18218	CFLAGS="$xorg_testset_save_CFLAGS"
18219fi
18220
18221if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18222	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18223		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18224	fi
18225	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18226	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18227$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18228if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18229  $as_echo_n "(cached) " >&6
18230else
18231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18232/* end confdefs.h.  */
18233int i;
18234_ACEOF
18235if ac_fn_c_try_compile "$LINENO"; then :
18236  xorg_cv_cc_flag_unused_command_line_argument=yes
18237else
18238  xorg_cv_cc_flag_unused_command_line_argument=no
18239fi
18240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18241fi
18242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18243$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18244	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18245	CFLAGS="$xorg_testset_save_CFLAGS"
18246fi
18247
18248found="no"
18249
18250	if test $found = "no" ; then
18251		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18252			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18253		fi
18254
18255		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18256			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18257		fi
18258
18259		CFLAGS="$CFLAGS -pedantic"
18260
18261		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18262$as_echo_n "checking if $CC supports -pedantic... " >&6; }
18263		cacheid=xorg_cv_cc_flag__pedantic
18264		if eval \${$cacheid+:} false; then :
18265  $as_echo_n "(cached) " >&6
18266else
18267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18268/* end confdefs.h.  */
18269int i;
18270int
18271main ()
18272{
18273
18274  ;
18275  return 0;
18276}
18277_ACEOF
18278if ac_fn_c_try_link "$LINENO"; then :
18279  eval $cacheid=yes
18280else
18281  eval $cacheid=no
18282fi
18283rm -f core conftest.err conftest.$ac_objext \
18284    conftest$ac_exeext conftest.$ac_ext
18285fi
18286
18287
18288		CFLAGS="$xorg_testset_save_CFLAGS"
18289
18290		eval supported=\$$cacheid
18291		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18292$as_echo "$supported" >&6; }
18293		if test "$supported" = "yes" ; then
18294			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18295			found="yes"
18296		fi
18297	fi
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313xorg_testset_save_CFLAGS="$CFLAGS"
18314
18315if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18316	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18317	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18318$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18319if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18320  $as_echo_n "(cached) " >&6
18321else
18322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18323/* end confdefs.h.  */
18324int i;
18325_ACEOF
18326if ac_fn_c_try_compile "$LINENO"; then :
18327  xorg_cv_cc_flag_unknown_warning_option=yes
18328else
18329  xorg_cv_cc_flag_unknown_warning_option=no
18330fi
18331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18332fi
18333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18334$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18335	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18336	CFLAGS="$xorg_testset_save_CFLAGS"
18337fi
18338
18339if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18340	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18341		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18342	fi
18343	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18344	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18345$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18346if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18347  $as_echo_n "(cached) " >&6
18348else
18349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18350/* end confdefs.h.  */
18351int i;
18352_ACEOF
18353if ac_fn_c_try_compile "$LINENO"; then :
18354  xorg_cv_cc_flag_unused_command_line_argument=yes
18355else
18356  xorg_cv_cc_flag_unused_command_line_argument=no
18357fi
18358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18359fi
18360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18361$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18362	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18363	CFLAGS="$xorg_testset_save_CFLAGS"
18364fi
18365
18366found="no"
18367
18368	if test $found = "no" ; then
18369		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18370			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18371		fi
18372
18373		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18374			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18375		fi
18376
18377		CFLAGS="$CFLAGS -Werror"
18378
18379		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18380$as_echo_n "checking if $CC supports -Werror... " >&6; }
18381		cacheid=xorg_cv_cc_flag__Werror
18382		if eval \${$cacheid+:} false; then :
18383  $as_echo_n "(cached) " >&6
18384else
18385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18386/* end confdefs.h.  */
18387int i;
18388int
18389main ()
18390{
18391
18392  ;
18393  return 0;
18394}
18395_ACEOF
18396if ac_fn_c_try_link "$LINENO"; then :
18397  eval $cacheid=yes
18398else
18399  eval $cacheid=no
18400fi
18401rm -f core conftest.err conftest.$ac_objext \
18402    conftest$ac_exeext conftest.$ac_ext
18403fi
18404
18405
18406		CFLAGS="$xorg_testset_save_CFLAGS"
18407
18408		eval supported=\$$cacheid
18409		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18410$as_echo "$supported" >&6; }
18411		if test "$supported" = "yes" ; then
18412			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18413			found="yes"
18414		fi
18415	fi
18416
18417	if test $found = "no" ; then
18418		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18419			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18420		fi
18421
18422		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18423			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18424		fi
18425
18426		CFLAGS="$CFLAGS -errwarn"
18427
18428		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18429$as_echo_n "checking if $CC supports -errwarn... " >&6; }
18430		cacheid=xorg_cv_cc_flag__errwarn
18431		if eval \${$cacheid+:} false; then :
18432  $as_echo_n "(cached) " >&6
18433else
18434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18435/* end confdefs.h.  */
18436int i;
18437int
18438main ()
18439{
18440
18441  ;
18442  return 0;
18443}
18444_ACEOF
18445if ac_fn_c_try_link "$LINENO"; then :
18446  eval $cacheid=yes
18447else
18448  eval $cacheid=no
18449fi
18450rm -f core conftest.err conftest.$ac_objext \
18451    conftest$ac_exeext conftest.$ac_ext
18452fi
18453
18454
18455		CFLAGS="$xorg_testset_save_CFLAGS"
18456
18457		eval supported=\$$cacheid
18458		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18459$as_echo "$supported" >&6; }
18460		if test "$supported" = "yes" ; then
18461			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18462			found="yes"
18463		fi
18464	fi
18465
18466
18467
18468# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18469# activate it with -Werror, so we add it here explicitly.
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482
18483xorg_testset_save_CFLAGS="$CFLAGS"
18484
18485if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18486	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18487	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18488$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18489if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18490  $as_echo_n "(cached) " >&6
18491else
18492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18493/* end confdefs.h.  */
18494int i;
18495_ACEOF
18496if ac_fn_c_try_compile "$LINENO"; then :
18497  xorg_cv_cc_flag_unknown_warning_option=yes
18498else
18499  xorg_cv_cc_flag_unknown_warning_option=no
18500fi
18501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18502fi
18503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18504$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18505	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18506	CFLAGS="$xorg_testset_save_CFLAGS"
18507fi
18508
18509if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18510	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18511		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18512	fi
18513	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18514	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18515$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18516if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18517  $as_echo_n "(cached) " >&6
18518else
18519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18520/* end confdefs.h.  */
18521int i;
18522_ACEOF
18523if ac_fn_c_try_compile "$LINENO"; then :
18524  xorg_cv_cc_flag_unused_command_line_argument=yes
18525else
18526  xorg_cv_cc_flag_unused_command_line_argument=no
18527fi
18528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18529fi
18530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18531$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18532	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18533	CFLAGS="$xorg_testset_save_CFLAGS"
18534fi
18535
18536found="no"
18537
18538	if test $found = "no" ; then
18539		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18540			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18541		fi
18542
18543		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18544			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18545		fi
18546
18547		CFLAGS="$CFLAGS -Werror=attributes"
18548
18549		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18550$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18551		cacheid=xorg_cv_cc_flag__Werror_attributes
18552		if eval \${$cacheid+:} false; then :
18553  $as_echo_n "(cached) " >&6
18554else
18555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18556/* end confdefs.h.  */
18557int i;
18558int
18559main ()
18560{
18561
18562  ;
18563  return 0;
18564}
18565_ACEOF
18566if ac_fn_c_try_link "$LINENO"; then :
18567  eval $cacheid=yes
18568else
18569  eval $cacheid=no
18570fi
18571rm -f core conftest.err conftest.$ac_objext \
18572    conftest$ac_exeext conftest.$ac_ext
18573fi
18574
18575
18576		CFLAGS="$xorg_testset_save_CFLAGS"
18577
18578		eval supported=\$$cacheid
18579		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18580$as_echo "$supported" >&6; }
18581		if test "$supported" = "yes" ; then
18582			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18583			found="yes"
18584		fi
18585	fi
18586
18587
18588
18589if test "x$STRICT_COMPILE" = "xyes"; then
18590    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18591    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18592fi
18593
18594
18595
18596
18597
18598
18599cat >>confdefs.h <<_ACEOF
18600#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18601_ACEOF
18602
18603	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18604	if test "x$PVM" = "x"; then
18605		PVM="0"
18606	fi
18607
18608cat >>confdefs.h <<_ACEOF
18609#define PACKAGE_VERSION_MINOR $PVM
18610_ACEOF
18611
18612	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18613	if test "x$PVP" = "x"; then
18614		PVP="0"
18615	fi
18616
18617cat >>confdefs.h <<_ACEOF
18618#define PACKAGE_VERSION_PATCHLEVEL $PVP
18619_ACEOF
18620
18621
18622
18623CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
18624mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18625|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
18626echo 'git directory not found: installing possibly empty changelog.' >&2)"
18627
18628
18629
18630
18631macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18632INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18633mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18634|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
18635echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
18636
18637
18638
18639
18640
18641
18642if test x$APP_MAN_SUFFIX = x    ; then
18643    APP_MAN_SUFFIX=1
18644fi
18645if test x$APP_MAN_DIR = x    ; then
18646    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18647fi
18648
18649if test x$LIB_MAN_SUFFIX = x    ; then
18650    LIB_MAN_SUFFIX=3
18651fi
18652if test x$LIB_MAN_DIR = x    ; then
18653    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18654fi
18655
18656if test x$FILE_MAN_SUFFIX = x    ; then
18657    case $host_os in
18658	# Solaris 2.0 - 11 use SysV man page sections
18659	solaris2.?|solaris2.1[01])	FILE_MAN_SUFFIX=4  ;;
18660	*)				FILE_MAN_SUFFIX=5  ;;
18661    esac
18662fi
18663if test x$FILE_MAN_DIR = x    ; then
18664    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18665fi
18666
18667if test x$MISC_MAN_SUFFIX = x    ; then
18668    case $host_os in
18669	# Solaris 2.0 - 11 use SysV man page sections
18670	solaris2.?|solaris2.1[01])	MISC_MAN_SUFFIX=5  ;;
18671	*)				MISC_MAN_SUFFIX=7  ;;
18672    esac
18673fi
18674if test x$MISC_MAN_DIR = x    ; then
18675    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18676fi
18677
18678if test x$DRIVER_MAN_SUFFIX = x    ; then
18679    case $host_os in
18680	# Solaris 2.0 - 11 use SysV man page sections
18681	solaris2.?|solaris2.1[01])	DRIVER_MAN_SUFFIX=7  ;;
18682	*)				DRIVER_MAN_SUFFIX=4  ;;
18683    esac
18684fi
18685if test x$DRIVER_MAN_DIR = x    ; then
18686    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18687fi
18688
18689if test x$ADMIN_MAN_SUFFIX = x    ; then
18690    case $host_os in
18691	# Solaris 2.0 - 11 use SysV man page sections
18692	solaris2.?|solaris2.1[01])	ADMIN_MAN_SUFFIX=1m ;;
18693	*)				ADMIN_MAN_SUFFIX=8  ;;
18694    esac
18695fi
18696if test x$ADMIN_MAN_DIR = x    ; then
18697    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18698fi
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714XORG_MAN_PAGE="X Version 11"
18715
18716MAN_SUBSTS="\
18717	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18718	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18719	-e 's|__xservername__|Xorg|g' \
18720	-e 's|__xconfigfile__|xorg.conf|g' \
18721	-e 's|__projectroot__|\$(prefix)|g' \
18722	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
18723	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18724	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18725	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18726	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18727	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18728	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18729
18730
18731
18732# Check whether --enable-silent-rules was given.
18733if test "${enable_silent_rules+set}" = set; then :
18734  enableval=$enable_silent_rules;
18735fi
18736
18737case $enable_silent_rules in # (((
18738  yes) AM_DEFAULT_VERBOSITY=0;;
18739   no) AM_DEFAULT_VERBOSITY=1;;
18740    *) AM_DEFAULT_VERBOSITY=0;;
18741esac
18742am_make=${MAKE-make}
18743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18744$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18745if ${am_cv_make_support_nested_variables+:} false; then :
18746  $as_echo_n "(cached) " >&6
18747else
18748  if $as_echo 'TRUE=$(BAR$(V))
18749BAR0=false
18750BAR1=true
18751V=1
18752am__doit:
18753	@$(TRUE)
18754.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18755  am_cv_make_support_nested_variables=yes
18756else
18757  am_cv_make_support_nested_variables=no
18758fi
18759fi
18760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18761$as_echo "$am_cv_make_support_nested_variables" >&6; }
18762if test $am_cv_make_support_nested_variables = yes; then
18763    AM_V='$(V)'
18764  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18765else
18766  AM_V=$AM_DEFAULT_VERBOSITY
18767  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18768fi
18769AM_BACKSLASH='\'
18770
18771
18772
18773
18774for ac_prog in cpp
18775do
18776  # Extract the first word of "$ac_prog", so it can be a program name with args.
18777set dummy $ac_prog; ac_word=$2
18778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18779$as_echo_n "checking for $ac_word... " >&6; }
18780if ${ac_cv_path_RAWCPP+:} false; then :
18781  $as_echo_n "(cached) " >&6
18782else
18783  case $RAWCPP in
18784  [\\/]* | ?:[\\/]*)
18785  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
18786  ;;
18787  *)
18788  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18789as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
18790for as_dir in $as_dummy
18791do
18792  IFS=$as_save_IFS
18793  test -z "$as_dir" && as_dir=.
18794    for ac_exec_ext in '' $ac_executable_extensions; do
18795  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18796    ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
18797    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18798    break 2
18799  fi
18800done
18801  done
18802IFS=$as_save_IFS
18803
18804  ;;
18805esac
18806fi
18807RAWCPP=$ac_cv_path_RAWCPP
18808if test -n "$RAWCPP"; then
18809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
18810$as_echo "$RAWCPP" >&6; }
18811else
18812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18813$as_echo "no" >&6; }
18814fi
18815
18816
18817  test -n "$RAWCPP" && break
18818done
18819test -n "$RAWCPP" || RAWCPP="${CPP}"
18820
18821
18822# Check for flag to avoid builtin definitions - assumes unix is predefined,
18823# which is not the best choice for supporting other OS'es, but covers most
18824# of the ones we need for now.
18825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
18826$as_echo_n "checking if $RAWCPP requires -undef... " >&6; }
18827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18828/* end confdefs.h.  */
18829Does cpp redefine unix ?
18830_ACEOF
18831if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
18832	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18833$as_echo "no" >&6; }
18834else
18835	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
18836		RAWCPPFLAGS=-undef
18837		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18838$as_echo "yes" >&6; }
18839	# under Cygwin unix is still defined even with -undef
18840	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
18841		RAWCPPFLAGS="-undef -ansi"
18842		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
18843$as_echo "yes, with -ansi" >&6; }
18844	else
18845		as_fn_error $? "${RAWCPP} defines unix with or without -undef.  I don't know what to do." "$LINENO" 5
18846	fi
18847fi
18848rm -f conftest.$ac_ext
18849
18850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
18851$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; }
18852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18853/* end confdefs.h.  */
18854Does cpp preserve   "whitespace"?
18855_ACEOF
18856if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
18857	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18858$as_echo "no" >&6; }
18859else
18860	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
18861		TRADITIONALCPPFLAGS="-traditional"
18862		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
18863		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18864$as_echo "yes" >&6; }
18865	else
18866		as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." "$LINENO" 5
18867	fi
18868fi
18869rm -f conftest.$ac_ext
18870
18871
18872
18873
18874
18875
18876
18877
18878# Check whether --with-lint was given.
18879if test "${with_lint+set}" = set; then :
18880  withval=$with_lint; use_lint=$withval
18881else
18882  use_lint=no
18883fi
18884
18885
18886# Obtain platform specific info like program name and options
18887# The lint program on FreeBSD and NetBSD is different from the one on Solaris
18888case $host_os in
18889  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
18890	lint_name=splint
18891	lint_options="-badflag"
18892	;;
18893  *freebsd* | *netbsd*)
18894	lint_name=lint
18895	lint_options="-u -b"
18896	;;
18897  *solaris*)
18898	lint_name=lint
18899	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
18900	;;
18901esac
18902
18903# Test for the presence of the program (either guessed by the code or spelled out by the user)
18904if test "x$use_lint" = x"yes" ; then
18905   # Extract the first word of "$lint_name", so it can be a program name with args.
18906set dummy $lint_name; ac_word=$2
18907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18908$as_echo_n "checking for $ac_word... " >&6; }
18909if ${ac_cv_path_LINT+:} false; then :
18910  $as_echo_n "(cached) " >&6
18911else
18912  case $LINT in
18913  [\\/]* | ?:[\\/]*)
18914  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
18915  ;;
18916  *)
18917  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18918for as_dir in $PATH
18919do
18920  IFS=$as_save_IFS
18921  test -z "$as_dir" && as_dir=.
18922    for ac_exec_ext in '' $ac_executable_extensions; do
18923  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18924    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
18925    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18926    break 2
18927  fi
18928done
18929  done
18930IFS=$as_save_IFS
18931
18932  ;;
18933esac
18934fi
18935LINT=$ac_cv_path_LINT
18936if test -n "$LINT"; then
18937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
18938$as_echo "$LINT" >&6; }
18939else
18940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18941$as_echo "no" >&6; }
18942fi
18943
18944
18945   if test "x$LINT" = "x"; then
18946        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
18947   fi
18948elif test "x$use_lint" = x"no" ; then
18949   if test "x$LINT" != "x"; then
18950      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
18951$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
18952   fi
18953else
18954   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
18955fi
18956
18957# User supplied flags override default flags
18958if test "x$LINT_FLAGS" != "x"; then
18959   lint_options=$LINT_FLAGS
18960fi
18961
18962LINT_FLAGS=$lint_options
18963
18964 if test "x$LINT" != x; then
18965  LINT_TRUE=
18966  LINT_FALSE='#'
18967else
18968  LINT_TRUE='#'
18969  LINT_FALSE=
18970fi
18971
18972
18973
18974
18975# Checks for programs.
18976# Check for mktemp to prevent security issue noted in Xorg bug #5898
18977# See https://bugs.freedesktop.org/show_bug.cgi?id=5898 for details.
18978# Extract the first word of "mktemp", so it can be a program name with args.
18979set dummy mktemp; ac_word=$2
18980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18981$as_echo_n "checking for $ac_word... " >&6; }
18982if ${ac_cv_path_MKTEMP_COMMAND+:} false; then :
18983  $as_echo_n "(cached) " >&6
18984else
18985  case $MKTEMP_COMMAND in
18986  [\\/]* | ?:[\\/]*)
18987  ac_cv_path_MKTEMP_COMMAND="$MKTEMP_COMMAND" # Let the user override the test with a path.
18988  ;;
18989  *)
18990  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18991for as_dir in $PATH
18992do
18993  IFS=$as_save_IFS
18994  test -z "$as_dir" && as_dir=.
18995    for ac_exec_ext in '' $ac_executable_extensions; do
18996  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18997    ac_cv_path_MKTEMP_COMMAND="$as_dir/$ac_word$ac_exec_ext"
18998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18999    break 2
19000  fi
19001done
19002  done
19003IFS=$as_save_IFS
19004
19005  ;;
19006esac
19007fi
19008MKTEMP_COMMAND=$ac_cv_path_MKTEMP_COMMAND
19009if test -n "$MKTEMP_COMMAND"; then
19010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP_COMMAND" >&5
19011$as_echo "$MKTEMP_COMMAND" >&6; }
19012else
19013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19014$as_echo "no" >&6; }
19015fi
19016
19017
19018 if test x$MKTEMP_COMMAND != x; then
19019  HAVE_MKTEMP_COMMAND_TRUE=
19020  HAVE_MKTEMP_COMMAND_FALSE='#'
19021else
19022  HAVE_MKTEMP_COMMAND_TRUE='#'
19023  HAVE_MKTEMP_COMMAND_FALSE=
19024fi
19025
19026
19027#------------------------------------------------------------------------------
19028#			Check for system libraries
19029#
19030# AC_SEARCH_LIBS: tests using $LIBS and tests again with each listed library.
19031#                 pre-pends the found library to $LIBS.
19032#
19033#------------------------------------------------------------------------------
19034# Function getifaddrs() comes from the C library, Solaris 11 -lsocket, or
19035# the -lnsl name service library
19036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5
19037$as_echo_n "checking for library containing getifaddrs... " >&6; }
19038if ${ac_cv_search_getifaddrs+:} false; then :
19039  $as_echo_n "(cached) " >&6
19040else
19041  ac_func_search_save_LIBS=$LIBS
19042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19043/* end confdefs.h.  */
19044
19045/* Override any GCC internal prototype to avoid an error.
19046   Use char because int might match the return type of a GCC
19047   builtin and then its argument prototype would still apply.  */
19048#ifdef __cplusplus
19049extern "C"
19050#endif
19051char getifaddrs ();
19052int
19053main ()
19054{
19055return getifaddrs ();
19056  ;
19057  return 0;
19058}
19059_ACEOF
19060for ac_lib in '' socket nsl; do
19061  if test -z "$ac_lib"; then
19062    ac_res="none required"
19063  else
19064    ac_res=-l$ac_lib
19065    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19066  fi
19067  if ac_fn_c_try_link "$LINENO"; then :
19068  ac_cv_search_getifaddrs=$ac_res
19069fi
19070rm -f core conftest.err conftest.$ac_objext \
19071    conftest$ac_exeext
19072  if ${ac_cv_search_getifaddrs+:} false; then :
19073  break
19074fi
19075done
19076if ${ac_cv_search_getifaddrs+:} false; then :
19077
19078else
19079  ac_cv_search_getifaddrs=no
19080fi
19081rm conftest.$ac_ext
19082LIBS=$ac_func_search_save_LIBS
19083fi
19084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5
19085$as_echo "$ac_cv_search_getifaddrs" >&6; }
19086ac_res=$ac_cv_search_getifaddrs
19087if test "$ac_res" != no; then :
19088  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19089
19090fi
19091
19092
19093# Function getspnam() comes from the C library, System V -lsec, UnixWare 7 -lgen
19094# or Old Linux versions -lshadow
19095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspnam" >&5
19096$as_echo_n "checking for library containing getspnam... " >&6; }
19097if ${ac_cv_search_getspnam+:} false; then :
19098  $as_echo_n "(cached) " >&6
19099else
19100  ac_func_search_save_LIBS=$LIBS
19101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19102/* end confdefs.h.  */
19103
19104/* Override any GCC internal prototype to avoid an error.
19105   Use char because int might match the return type of a GCC
19106   builtin and then its argument prototype would still apply.  */
19107#ifdef __cplusplus
19108extern "C"
19109#endif
19110char getspnam ();
19111int
19112main ()
19113{
19114return getspnam ();
19115  ;
19116  return 0;
19117}
19118_ACEOF
19119for ac_lib in '' sec gen shadow; do
19120  if test -z "$ac_lib"; then
19121    ac_res="none required"
19122  else
19123    ac_res=-l$ac_lib
19124    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19125  fi
19126  if ac_fn_c_try_link "$LINENO"; then :
19127  ac_cv_search_getspnam=$ac_res
19128fi
19129rm -f core conftest.err conftest.$ac_objext \
19130    conftest$ac_exeext
19131  if ${ac_cv_search_getspnam+:} false; then :
19132  break
19133fi
19134done
19135if ${ac_cv_search_getspnam+:} false; then :
19136
19137else
19138  ac_cv_search_getspnam=no
19139fi
19140rm conftest.$ac_ext
19141LIBS=$ac_func_search_save_LIBS
19142fi
19143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspnam" >&5
19144$as_echo "$ac_cv_search_getspnam" >&6; }
19145ac_res=$ac_cv_search_getspnam
19146if test "$ac_res" != no; then :
19147  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19148
19149fi
19150
19151
19152# Function setproctitle() is in BSD -lutil or GNU systems -lbsd but N/A on Solaris
19153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setproctitle" >&5
19154$as_echo_n "checking for library containing setproctitle... " >&6; }
19155if ${ac_cv_search_setproctitle+:} false; then :
19156  $as_echo_n "(cached) " >&6
19157else
19158  ac_func_search_save_LIBS=$LIBS
19159cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19160/* end confdefs.h.  */
19161
19162/* Override any GCC internal prototype to avoid an error.
19163   Use char because int might match the return type of a GCC
19164   builtin and then its argument prototype would still apply.  */
19165#ifdef __cplusplus
19166extern "C"
19167#endif
19168char setproctitle ();
19169int
19170main ()
19171{
19172return setproctitle ();
19173  ;
19174  return 0;
19175}
19176_ACEOF
19177for ac_lib in '' util bsd; do
19178  if test -z "$ac_lib"; then
19179    ac_res="none required"
19180  else
19181    ac_res=-l$ac_lib
19182    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19183  fi
19184  if ac_fn_c_try_link "$LINENO"; then :
19185  ac_cv_search_setproctitle=$ac_res
19186fi
19187rm -f core conftest.err conftest.$ac_objext \
19188    conftest$ac_exeext
19189  if ${ac_cv_search_setproctitle+:} false; then :
19190  break
19191fi
19192done
19193if ${ac_cv_search_setproctitle+:} false; then :
19194
19195else
19196  ac_cv_search_setproctitle=no
19197fi
19198rm conftest.$ac_ext
19199LIBS=$ac_func_search_save_LIBS
19200fi
19201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setproctitle" >&5
19202$as_echo "$ac_cv_search_setproctitle" >&6; }
19203ac_res=$ac_cv_search_setproctitle
19204if test "$ac_res" != no; then :
19205  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19206
19207fi
19208
19209
19210# Function setusercontext() is in BSD -lutil but N/A on Solaris or GNU systems
19211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
19212$as_echo_n "checking for library containing setusercontext... " >&6; }
19213if ${ac_cv_search_setusercontext+:} false; then :
19214  $as_echo_n "(cached) " >&6
19215else
19216  ac_func_search_save_LIBS=$LIBS
19217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19218/* end confdefs.h.  */
19219
19220/* Override any GCC internal prototype to avoid an error.
19221   Use char because int might match the return type of a GCC
19222   builtin and then its argument prototype would still apply.  */
19223#ifdef __cplusplus
19224extern "C"
19225#endif
19226char setusercontext ();
19227int
19228main ()
19229{
19230return setusercontext ();
19231  ;
19232  return 0;
19233}
19234_ACEOF
19235for ac_lib in '' util; do
19236  if test -z "$ac_lib"; then
19237    ac_res="none required"
19238  else
19239    ac_res=-l$ac_lib
19240    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19241  fi
19242  if ac_fn_c_try_link "$LINENO"; then :
19243  ac_cv_search_setusercontext=$ac_res
19244fi
19245rm -f core conftest.err conftest.$ac_objext \
19246    conftest$ac_exeext
19247  if ${ac_cv_search_setusercontext+:} false; then :
19248  break
19249fi
19250done
19251if ${ac_cv_search_setusercontext+:} false; then :
19252
19253else
19254  ac_cv_search_setusercontext=no
19255fi
19256rm conftest.$ac_ext
19257LIBS=$ac_func_search_save_LIBS
19258fi
19259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
19260$as_echo "$ac_cv_search_setusercontext" >&6; }
19261ac_res=$ac_cv_search_setusercontext
19262if test "$ac_res" != no; then :
19263  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19264
19265fi
19266
19267
19268# Function arc4random() is in BSD standard C or GNU systems -lbsd
19269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing arc4random" >&5
19270$as_echo_n "checking for library containing arc4random... " >&6; }
19271if ${ac_cv_search_arc4random+:} false; then :
19272  $as_echo_n "(cached) " >&6
19273else
19274  ac_func_search_save_LIBS=$LIBS
19275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19276/* end confdefs.h.  */
19277
19278/* Override any GCC internal prototype to avoid an error.
19279   Use char because int might match the return type of a GCC
19280   builtin and then its argument prototype would still apply.  */
19281#ifdef __cplusplus
19282extern "C"
19283#endif
19284char arc4random ();
19285int
19286main ()
19287{
19288return arc4random ();
19289  ;
19290  return 0;
19291}
19292_ACEOF
19293for ac_lib in '' bsd; do
19294  if test -z "$ac_lib"; then
19295    ac_res="none required"
19296  else
19297    ac_res=-l$ac_lib
19298    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19299  fi
19300  if ac_fn_c_try_link "$LINENO"; then :
19301  ac_cv_search_arc4random=$ac_res
19302fi
19303rm -f core conftest.err conftest.$ac_objext \
19304    conftest$ac_exeext
19305  if ${ac_cv_search_arc4random+:} false; then :
19306  break
19307fi
19308done
19309if ${ac_cv_search_arc4random+:} false; then :
19310
19311else
19312  ac_cv_search_arc4random=no
19313fi
19314rm conftest.$ac_ext
19315LIBS=$ac_func_search_save_LIBS
19316fi
19317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_arc4random" >&5
19318$as_echo "$ac_cv_search_arc4random" >&6; }
19319ac_res=$ac_cv_search_arc4random
19320if test "$ac_res" != no; then :
19321  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19322  HAVE_ARC4RANDOM="yes"
19323fi
19324
19325
19326 if test x$HAVE_ARC4RANDOM = xyes; then
19327  HAVE_ARC4RANDOM_TRUE=
19328  HAVE_ARC4RANDOM_FALSE='#'
19329else
19330  HAVE_ARC4RANDOM_TRUE='#'
19331  HAVE_ARC4RANDOM_FALSE=
19332fi
19333
19334
19335# Function crypt() comes from the C library or the -lcrypt data encryption library
19336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
19337$as_echo_n "checking for library containing crypt... " >&6; }
19338if ${ac_cv_search_crypt+:} false; then :
19339  $as_echo_n "(cached) " >&6
19340else
19341  ac_func_search_save_LIBS=$LIBS
19342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19343/* end confdefs.h.  */
19344
19345/* Override any GCC internal prototype to avoid an error.
19346   Use char because int might match the return type of a GCC
19347   builtin and then its argument prototype would still apply.  */
19348#ifdef __cplusplus
19349extern "C"
19350#endif
19351char crypt ();
19352int
19353main ()
19354{
19355return crypt ();
19356  ;
19357  return 0;
19358}
19359_ACEOF
19360for ac_lib in '' crypt; do
19361  if test -z "$ac_lib"; then
19362    ac_res="none required"
19363  else
19364    ac_res=-l$ac_lib
19365    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19366  fi
19367  if ac_fn_c_try_link "$LINENO"; then :
19368  ac_cv_search_crypt=$ac_res
19369fi
19370rm -f core conftest.err conftest.$ac_objext \
19371    conftest$ac_exeext
19372  if ${ac_cv_search_crypt+:} false; then :
19373  break
19374fi
19375done
19376if ${ac_cv_search_crypt+:} false; then :
19377
19378else
19379  ac_cv_search_crypt=no
19380fi
19381rm conftest.$ac_ext
19382LIBS=$ac_func_search_save_LIBS
19383fi
19384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
19385$as_echo "$ac_cv_search_crypt" >&6; }
19386ac_res=$ac_cv_search_crypt
19387if test "$ac_res" != no; then :
19388  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19389
19390fi
19391
19392
19393# Function dl() comes from the C library or -ldl
19394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19395$as_echo_n "checking for library containing dlopen... " >&6; }
19396if ${ac_cv_search_dlopen+:} false; then :
19397  $as_echo_n "(cached) " >&6
19398else
19399  ac_func_search_save_LIBS=$LIBS
19400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19401/* end confdefs.h.  */
19402
19403/* Override any GCC internal prototype to avoid an error.
19404   Use char because int might match the return type of a GCC
19405   builtin and then its argument prototype would still apply.  */
19406#ifdef __cplusplus
19407extern "C"
19408#endif
19409char dlopen ();
19410int
19411main ()
19412{
19413return dlopen ();
19414  ;
19415  return 0;
19416}
19417_ACEOF
19418for ac_lib in '' dl; do
19419  if test -z "$ac_lib"; then
19420    ac_res="none required"
19421  else
19422    ac_res=-l$ac_lib
19423    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19424  fi
19425  if ac_fn_c_try_link "$LINENO"; then :
19426  ac_cv_search_dlopen=$ac_res
19427fi
19428rm -f core conftest.err conftest.$ac_objext \
19429    conftest$ac_exeext
19430  if ${ac_cv_search_dlopen+:} false; then :
19431  break
19432fi
19433done
19434if ${ac_cv_search_dlopen+:} false; then :
19435
19436else
19437  ac_cv_search_dlopen=no
19438fi
19439rm conftest.$ac_ext
19440LIBS=$ac_func_search_save_LIBS
19441fi
19442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19443$as_echo "$ac_cv_search_dlopen" >&6; }
19444ac_res=$ac_cv_search_dlopen
19445if test "$ac_res" != no; then :
19446  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19447
19448fi
19449
19450#------------------------------------------------------------------------------
19451
19452# Checks for header files.
19453for ac_header in grp.h syslog.h sys/param.h
19454do :
19455  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19456ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19457if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19458  cat >>confdefs.h <<_ACEOF
19459#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19460_ACEOF
19461
19462fi
19463
19464done
19465
19466ac_fn_c_check_decl "$LINENO" "key_setnet" "ac_cv_have_decl_key_setnet" "
19467#include <rpc/rpc.h>
19468#include <rpc/key_prot.h>
19469
19470"
19471if test "x$ac_cv_have_decl_key_setnet" = xyes; then :
19472
19473$as_echo "#define HAVE_DECL_KEY_SETNET 1" >>confdefs.h
19474
19475fi
19476
19477
19478# Check for system library functions
19479# Required system libraries have been searched for and are listed in $LIBS
19480ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19481if test "x$ac_cv_type_pid_t" = xyes; then :
19482
19483else
19484
19485cat >>confdefs.h <<_ACEOF
19486#define pid_t int
19487_ACEOF
19488
19489fi
19490
19491for ac_header in vfork.h
19492do :
19493  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
19494if test "x$ac_cv_header_vfork_h" = xyes; then :
19495  cat >>confdefs.h <<_ACEOF
19496#define HAVE_VFORK_H 1
19497_ACEOF
19498
19499fi
19500
19501done
19502
19503for ac_func in fork vfork
19504do :
19505  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19506ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19507if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19508  cat >>confdefs.h <<_ACEOF
19509#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19510_ACEOF
19511
19512fi
19513done
19514
19515if test "x$ac_cv_func_fork" = xyes; then
19516  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
19517$as_echo_n "checking for working fork... " >&6; }
19518if ${ac_cv_func_fork_works+:} false; then :
19519  $as_echo_n "(cached) " >&6
19520else
19521  if test "$cross_compiling" = yes; then :
19522  ac_cv_func_fork_works=cross
19523else
19524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19525/* end confdefs.h.  */
19526$ac_includes_default
19527int
19528main ()
19529{
19530
19531	  /* By Ruediger Kuhlmann. */
19532	  return fork () < 0;
19533
19534  ;
19535  return 0;
19536}
19537_ACEOF
19538if ac_fn_c_try_run "$LINENO"; then :
19539  ac_cv_func_fork_works=yes
19540else
19541  ac_cv_func_fork_works=no
19542fi
19543rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19544  conftest.$ac_objext conftest.beam conftest.$ac_ext
19545fi
19546
19547fi
19548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
19549$as_echo "$ac_cv_func_fork_works" >&6; }
19550
19551else
19552  ac_cv_func_fork_works=$ac_cv_func_fork
19553fi
19554if test "x$ac_cv_func_fork_works" = xcross; then
19555  case $host in
19556    *-*-amigaos* | *-*-msdosdjgpp*)
19557      # Override, as these systems have only a dummy fork() stub
19558      ac_cv_func_fork_works=no
19559      ;;
19560    *)
19561      ac_cv_func_fork_works=yes
19562      ;;
19563  esac
19564  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19565$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19566fi
19567ac_cv_func_vfork_works=$ac_cv_func_vfork
19568if test "x$ac_cv_func_vfork" = xyes; then
19569  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19570$as_echo_n "checking for working vfork... " >&6; }
19571if ${ac_cv_func_vfork_works+:} false; then :
19572  $as_echo_n "(cached) " >&6
19573else
19574  if test "$cross_compiling" = yes; then :
19575  ac_cv_func_vfork_works=cross
19576else
19577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19578/* end confdefs.h.  */
19579/* Thanks to Paul Eggert for this test.  */
19580$ac_includes_default
19581#include <sys/wait.h>
19582#ifdef HAVE_VFORK_H
19583# include <vfork.h>
19584#endif
19585/* On some sparc systems, changes by the child to local and incoming
19586   argument registers are propagated back to the parent.  The compiler
19587   is told about this with #include <vfork.h>, but some compilers
19588   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
19589   static variable whose address is put into a register that is
19590   clobbered by the vfork.  */
19591static void
19592#ifdef __cplusplus
19593sparc_address_test (int arg)
19594# else
19595sparc_address_test (arg) int arg;
19596#endif
19597{
19598  static pid_t child;
19599  if (!child) {
19600    child = vfork ();
19601    if (child < 0) {
19602      perror ("vfork");
19603      _exit(2);
19604    }
19605    if (!child) {
19606      arg = getpid();
19607      write(-1, "", 0);
19608      _exit (arg);
19609    }
19610  }
19611}
19612
19613int
19614main ()
19615{
19616  pid_t parent = getpid ();
19617  pid_t child;
19618
19619  sparc_address_test (0);
19620
19621  child = vfork ();
19622
19623  if (child == 0) {
19624    /* Here is another test for sparc vfork register problems.  This
19625       test uses lots of local variables, at least as many local
19626       variables as main has allocated so far including compiler
19627       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
19628       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
19629       reuse the register of parent for one of the local variables,
19630       since it will think that parent can't possibly be used any more
19631       in this routine.  Assigning to the local variable will thus
19632       munge parent in the parent process.  */
19633    pid_t
19634      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19635      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19636    /* Convince the compiler that p..p7 are live; otherwise, it might
19637       use the same hardware register for all 8 local variables.  */
19638    if (p != p1 || p != p2 || p != p3 || p != p4
19639	|| p != p5 || p != p6 || p != p7)
19640      _exit(1);
19641
19642    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19643       from child file descriptors.  If the child closes a descriptor
19644       before it execs or exits, this munges the parent's descriptor
19645       as well.  Test for this by closing stdout in the child.  */
19646    _exit(close(fileno(stdout)) != 0);
19647  } else {
19648    int status;
19649    struct stat st;
19650
19651    while (wait(&status) != child)
19652      ;
19653    return (
19654	 /* Was there some problem with vforking?  */
19655	 child < 0
19656
19657	 /* Did the child fail?  (This shouldn't happen.)  */
19658	 || status
19659
19660	 /* Did the vfork/compiler bug occur?  */
19661	 || parent != getpid()
19662
19663	 /* Did the file descriptor bug occur?  */
19664	 || fstat(fileno(stdout), &st) != 0
19665	 );
19666  }
19667}
19668_ACEOF
19669if ac_fn_c_try_run "$LINENO"; then :
19670  ac_cv_func_vfork_works=yes
19671else
19672  ac_cv_func_vfork_works=no
19673fi
19674rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19675  conftest.$ac_objext conftest.beam conftest.$ac_ext
19676fi
19677
19678fi
19679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19680$as_echo "$ac_cv_func_vfork_works" >&6; }
19681
19682fi;
19683if test "x$ac_cv_func_fork_works" = xcross; then
19684  ac_cv_func_vfork_works=$ac_cv_func_vfork
19685  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19686$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19687fi
19688
19689if test "x$ac_cv_func_vfork_works" = xyes; then
19690
19691$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19692
19693else
19694
19695$as_echo "#define vfork fork" >>confdefs.h
19696
19697fi
19698if test "x$ac_cv_func_fork_works" = xyes; then
19699
19700$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19701
19702fi
19703
19704for ac_func in daemon sigaction openlog asprintf setproctitle setusercontext \
19705                mkstemp getifaddrs getspnam arc4random
19706do :
19707  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19708ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19709if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19710  cat >>confdefs.h <<_ACEOF
19711#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19712_ACEOF
19713
19714fi
19715done
19716
19717
19718XDM_CFLAGS="$XDM_CFLAGS"
19719GREETER_CFLAGS="$GREETER_CFLAGS"
19720CHOOSER_CFLAGS="$CHOOSER_CFLAGS"
19721
19722# Find needed libraries for TCP sockets (pre-pended in $LIBS)
19723
19724
19725 case $host_os in
19726	mingw*)	unixdef="no"   ;;
19727	*)	unixdef="yes"  ;;
19728 esac
19729 # Check whether --enable-unix-transport was given.
19730if test "${enable_unix_transport+set}" = set; then :
19731  enableval=$enable_unix_transport; UNIXCONN=$enableval
19732else
19733  UNIXCONN=$unixdef
19734fi
19735
19736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
19737$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
19738 if test "$UNIXCONN" = "yes"; then
19739
19740$as_echo "#define UNIXCONN 1" >>confdefs.h
19741
19742 fi
19743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
19744$as_echo "$UNIXCONN" >&6; }
19745 # Check whether --enable-tcp-transport was given.
19746if test "${enable_tcp_transport+set}" = set; then :
19747  enableval=$enable_tcp_transport; TCPCONN=$enableval
19748else
19749  TCPCONN=yes
19750fi
19751
19752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
19753$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
19754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
19755$as_echo "$TCPCONN" >&6; }
19756 if test "$TCPCONN" = "yes"; then
19757
19758$as_echo "#define TCPCONN 1" >>confdefs.h
19759
19760
19761 # SVR4 hides these in libraries other than libc
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
19763$as_echo_n "checking for library containing socket... " >&6; }
19764if ${ac_cv_search_socket+:} false; then :
19765  $as_echo_n "(cached) " >&6
19766else
19767  ac_func_search_save_LIBS=$LIBS
19768cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19769/* end confdefs.h.  */
19770
19771/* Override any GCC internal prototype to avoid an error.
19772   Use char because int might match the return type of a GCC
19773   builtin and then its argument prototype would still apply.  */
19774#ifdef __cplusplus
19775extern "C"
19776#endif
19777char socket ();
19778int
19779main ()
19780{
19781return socket ();
19782  ;
19783  return 0;
19784}
19785_ACEOF
19786for ac_lib in '' socket; do
19787  if test -z "$ac_lib"; then
19788    ac_res="none required"
19789  else
19790    ac_res=-l$ac_lib
19791    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19792  fi
19793  if ac_fn_c_try_link "$LINENO"; then :
19794  ac_cv_search_socket=$ac_res
19795fi
19796rm -f core conftest.err conftest.$ac_objext \
19797    conftest$ac_exeext
19798  if ${ac_cv_search_socket+:} false; then :
19799  break
19800fi
19801done
19802if ${ac_cv_search_socket+:} false; then :
19803
19804else
19805  ac_cv_search_socket=no
19806fi
19807rm conftest.$ac_ext
19808LIBS=$ac_func_search_save_LIBS
19809fi
19810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
19811$as_echo "$ac_cv_search_socket" >&6; }
19812ac_res=$ac_cv_search_socket
19813if test "$ac_res" != no; then :
19814  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19815
19816fi
19817
19818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
19819$as_echo_n "checking for library containing gethostbyname... " >&6; }
19820if ${ac_cv_search_gethostbyname+:} false; then :
19821  $as_echo_n "(cached) " >&6
19822else
19823  ac_func_search_save_LIBS=$LIBS
19824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19825/* end confdefs.h.  */
19826
19827/* Override any GCC internal prototype to avoid an error.
19828   Use char because int might match the return type of a GCC
19829   builtin and then its argument prototype would still apply.  */
19830#ifdef __cplusplus
19831extern "C"
19832#endif
19833char gethostbyname ();
19834int
19835main ()
19836{
19837return gethostbyname ();
19838  ;
19839  return 0;
19840}
19841_ACEOF
19842for ac_lib in '' nsl; do
19843  if test -z "$ac_lib"; then
19844    ac_res="none required"
19845  else
19846    ac_res=-l$ac_lib
19847    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19848  fi
19849  if ac_fn_c_try_link "$LINENO"; then :
19850  ac_cv_search_gethostbyname=$ac_res
19851fi
19852rm -f core conftest.err conftest.$ac_objext \
19853    conftest$ac_exeext
19854  if ${ac_cv_search_gethostbyname+:} false; then :
19855  break
19856fi
19857done
19858if ${ac_cv_search_gethostbyname+:} false; then :
19859
19860else
19861  ac_cv_search_gethostbyname=no
19862fi
19863rm conftest.$ac_ext
19864LIBS=$ac_func_search_save_LIBS
19865fi
19866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
19867$as_echo "$ac_cv_search_gethostbyname" >&6; }
19868ac_res=$ac_cv_search_gethostbyname
19869if test "$ac_res" != no; then :
19870  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19871
19872fi
19873
19874 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
19875   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
19876$as_echo_n "checking for main in -lws2_32... " >&6; }
19877if ${ac_cv_lib_ws2_32_main+:} false; then :
19878  $as_echo_n "(cached) " >&6
19879else
19880  ac_check_lib_save_LIBS=$LIBS
19881LIBS="-lws2_32  $LIBS"
19882cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19883/* end confdefs.h.  */
19884
19885
19886int
19887main ()
19888{
19889return main ();
19890  ;
19891  return 0;
19892}
19893_ACEOF
19894if ac_fn_c_try_link "$LINENO"; then :
19895  ac_cv_lib_ws2_32_main=yes
19896else
19897  ac_cv_lib_ws2_32_main=no
19898fi
19899rm -f core conftest.err conftest.$ac_objext \
19900    conftest$ac_exeext conftest.$ac_ext
19901LIBS=$ac_check_lib_save_LIBS
19902fi
19903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
19904$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
19905if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
19906  cat >>confdefs.h <<_ACEOF
19907#define HAVE_LIBWS2_32 1
19908_ACEOF
19909
19910  LIBS="-lws2_32 $LIBS"
19911
19912fi
19913
19914 fi
19915
19916 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
19917 # Check whether --enable-ipv6 was given.
19918if test "${enable_ipv6+set}" = set; then :
19919  enableval=$enable_ipv6; IPV6CONN=$enableval
19920else
19921  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
19922if test "x$ac_cv_func_getaddrinfo" = xyes; then :
19923  IPV6CONN=yes
19924else
19925  IPV6CONN=no
19926fi
19927
19928fi
19929
19930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
19931$as_echo_n "checking if IPv6 support should be built... " >&6; }
19932 if test "$IPV6CONN" = "yes"; then
19933
19934$as_echo "#define IPv6 1" >>confdefs.h
19935
19936 fi
19937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
19938$as_echo "$IPV6CONN" >&6; }
19939
19940 # 4.3BSD-Reno added a new member to struct sockaddr_in
19941 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
19942#include <sys/types.h>
19943#include <sys/socket.h>
19944#include <netinet/in.h>
19945
19946"
19947if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
19948
19949$as_echo "#define BSD44SOCKETS 1" >>confdefs.h
19950
19951fi
19952
19953
19954 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
19955 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
19956$ac_includes_default
19957#include <sys/socket.h>
19958"
19959if test "x$ac_cv_type_socklen_t" = xyes; then :
19960
19961cat >>confdefs.h <<_ACEOF
19962#define HAVE_SOCKLEN_T 1
19963_ACEOF
19964
19965
19966fi
19967
19968
19969 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
19970 # _XOPEN_SOURCE to get it (such as on Solaris)
19971 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
19972$ac_includes_default
19973#include <sys/socket.h>
19974
19975"
19976if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
19977
19978fi
19979
19980 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
19981 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
19982     unset ac_cv_member_struct_msghdr_msg_control
19983     { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
19984$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
19985     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
19986#define _XOPEN_SOURCE 600
19987$ac_includes_default
19988#include <sys/socket.h>
19989
19990"
19991if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
19992
19993$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
19994
19995
19996fi
19997
19998 fi
19999 # If that didn't work, fall back to XPG5/UNIX98 with C89
20000 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
20001     unset ac_cv_member_struct_msghdr_msg_control
20002     { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
20003$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
20004     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
20005#define _XOPEN_SOURCE 500
20006$ac_includes_default
20007#include <sys/socket.h>
20008
20009"
20010if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
20011
20012$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
20013
20014
20015fi
20016
20017 fi
20018
20019
20020
20021 fi
20022 case $host_os in
20023	solaris*|sco*|sysv4*)	localdef="yes" ;;
20024	*)			localdef="no"  ;;
20025 esac
20026 # Check whether --enable-local-transport was given.
20027if test "${enable_local_transport+set}" = set; then :
20028  enableval=$enable_local_transport; LOCALCONN=$enableval
20029else
20030  LOCALCONN=$localdef
20031fi
20032
20033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
20034$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
20035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
20036$as_echo "$LOCALCONN" >&6; }
20037 if test "$LOCALCONN" = "yes"; then
20038
20039$as_echo "#define LOCALCONN 1" >>confdefs.h
20040
20041 fi
20042
20043
20044
20045# Sets $SECURE_RPC to "yes" or "no" using libraries found above from $LIBS
20046
20047 # Check whether --enable-secure-rpc was given.
20048if test "${enable_secure_rpc+set}" = set; then :
20049  enableval=$enable_secure_rpc; SECURE_RPC=$enableval
20050else
20051  SECURE_RPC="try"
20052fi
20053
20054
20055 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then
20056	FOUND_SECURE_RPC="no"
20057	for ac_func in authdes_seccreate authdes_create
20058do :
20059  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20060ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20061if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20062  cat >>confdefs.h <<_ACEOF
20063#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20064_ACEOF
20065 FOUND_SECURE_RPC="yes"
20066fi
20067done
20068
20069	if test "x$FOUND_SECURE_RPC" = "xno" ; then
20070		if test "x$SECURE_RPC" = "xyes" ; then
20071	as_fn_error $? "Secure RPC requested, but required functions not found" "$LINENO" 5
20072		fi
20073		SECURE_RPC="no"
20074	else
20075				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5
20076$as_echo_n "checking for library containing getsecretkey... " >&6; }
20077if ${ac_cv_search_getsecretkey+:} false; then :
20078  $as_echo_n "(cached) " >&6
20079else
20080  ac_func_search_save_LIBS=$LIBS
20081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20082/* end confdefs.h.  */
20083
20084/* Override any GCC internal prototype to avoid an error.
20085   Use char because int might match the return type of a GCC
20086   builtin and then its argument prototype would still apply.  */
20087#ifdef __cplusplus
20088extern "C"
20089#endif
20090char getsecretkey ();
20091int
20092main ()
20093{
20094return getsecretkey ();
20095  ;
20096  return 0;
20097}
20098_ACEOF
20099for ac_lib in '' rpcsvc; do
20100  if test -z "$ac_lib"; then
20101    ac_res="none required"
20102  else
20103    ac_res=-l$ac_lib
20104    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20105  fi
20106  if ac_fn_c_try_link "$LINENO"; then :
20107  ac_cv_search_getsecretkey=$ac_res
20108fi
20109rm -f core conftest.err conftest.$ac_objext \
20110    conftest$ac_exeext
20111  if ${ac_cv_search_getsecretkey+:} false; then :
20112  break
20113fi
20114done
20115if ${ac_cv_search_getsecretkey+:} false; then :
20116
20117else
20118  ac_cv_search_getsecretkey=no
20119fi
20120rm conftest.$ac_ext
20121LIBS=$ac_func_search_save_LIBS
20122fi
20123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5
20124$as_echo "$ac_cv_search_getsecretkey" >&6; }
20125ac_res=$ac_cv_search_getsecretkey
20126if test "$ac_res" != no; then :
20127  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20128
20129fi
20130
20131		SECURE_RPC="yes"
20132	fi
20133 fi
20134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5
20135$as_echo_n "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; }
20136 if test "x$SECURE_RPC" = "xyes" ; then
20137
20138$as_echo "#define SECURE_RPC 1" >>confdefs.h
20139
20140 fi
20141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5
20142$as_echo "$SECURE_RPC" >&6; }
20143
20144 if test x$SECURE_RPC = xyes; then
20145  HAS_SECURE_RPC_TRUE=
20146  HAS_SECURE_RPC_FALSE='#'
20147else
20148  HAS_SECURE_RPC_TRUE='#'
20149  HAS_SECURE_RPC_FALSE=
20150fi
20151
20152
20153# Check for pluggable authentication modules (PAM) support
20154
20155# Check whether --with-pam was given.
20156if test "${with_pam+set}" = set; then :
20157  withval=$with_pam; USE_PAM=$withval
20158else
20159  USE_PAM=auto
20160fi
20161
20162if test "x$USE_PAM" != "xno" ; then
20163    for ac_header in security/pam_appl.h pam/pam_appl.h
20164do :
20165  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20166ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20167if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20168  cat >>confdefs.h <<_ACEOF
20169#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20170_ACEOF
20171 found=yes ; break ;
20172else
20173  found=no
20174fi
20175
20176done
20177
20178    if test "x$USE_PAM" = "xyes" -a  "x$found" = "xno"; then :
20179  as_fn_error $? "PAM support requested, but we could not find the pam headers." "$LINENO" 5
20180fi
20181    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pam_open_session" >&5
20182$as_echo_n "checking for library containing pam_open_session... " >&6; }
20183if ${ac_cv_search_pam_open_session+:} false; then :
20184  $as_echo_n "(cached) " >&6
20185else
20186  ac_func_search_save_LIBS=$LIBS
20187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20188/* end confdefs.h.  */
20189
20190/* Override any GCC internal prototype to avoid an error.
20191   Use char because int might match the return type of a GCC
20192   builtin and then its argument prototype would still apply.  */
20193#ifdef __cplusplus
20194extern "C"
20195#endif
20196char pam_open_session ();
20197int
20198main ()
20199{
20200return pam_open_session ();
20201  ;
20202  return 0;
20203}
20204_ACEOF
20205for ac_lib in '' pam; do
20206  if test -z "$ac_lib"; then
20207    ac_res="none required"
20208  else
20209    ac_res=-l$ac_lib
20210    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20211  fi
20212  if ac_fn_c_try_link "$LINENO"; then :
20213  ac_cv_search_pam_open_session=$ac_res
20214fi
20215rm -f core conftest.err conftest.$ac_objext \
20216    conftest$ac_exeext
20217  if ${ac_cv_search_pam_open_session+:} false; then :
20218  break
20219fi
20220done
20221if ${ac_cv_search_pam_open_session+:} false; then :
20222
20223else
20224  ac_cv_search_pam_open_session=no
20225fi
20226rm conftest.$ac_ext
20227LIBS=$ac_func_search_save_LIBS
20228fi
20229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pam_open_session" >&5
20230$as_echo "$ac_cv_search_pam_open_session" >&6; }
20231ac_res=$ac_cv_search_pam_open_session
20232if test "$ac_res" != no; then :
20233  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20234  ac_fn_c_check_func "$LINENO" "pam_open_session" "ac_cv_func_pam_open_session"
20235if test "x$ac_cv_func_pam_open_session" = xyes; then :
20236
20237$as_echo "#define USE_PAM 1" >>confdefs.h
20238
20239
20240fi
20241
20242else
20243  if test "x$USE_PAM" = "xyes"; then :
20244  as_fn_error $? "PAM support requested, but pam_open_session not found." "$LINENO" 5
20245
20246fi
20247
20248fi
20249
20250fi
20251
20252# Check for Security-Enhanced Linux (SELinux) support
20253
20254# Check whether --with-selinux was given.
20255if test "${with_selinux+set}" = set; then :
20256  withval=$with_selinux; USE_SELINUX=$withval
20257else
20258  USE_SELINUX=no
20259fi
20260
20261if test "x$USE_SELINUX" != "xno" ; then
20262    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing is_selinux_enabled" >&5
20263$as_echo_n "checking for library containing is_selinux_enabled... " >&6; }
20264if ${ac_cv_search_is_selinux_enabled+:} false; then :
20265  $as_echo_n "(cached) " >&6
20266else
20267  ac_func_search_save_LIBS=$LIBS
20268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20269/* end confdefs.h.  */
20270
20271/* Override any GCC internal prototype to avoid an error.
20272   Use char because int might match the return type of a GCC
20273   builtin and then its argument prototype would still apply.  */
20274#ifdef __cplusplus
20275extern "C"
20276#endif
20277char is_selinux_enabled ();
20278int
20279main ()
20280{
20281return is_selinux_enabled ();
20282  ;
20283  return 0;
20284}
20285_ACEOF
20286for ac_lib in '' selinux; do
20287  if test -z "$ac_lib"; then
20288    ac_res="none required"
20289  else
20290    ac_res=-l$ac_lib
20291    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20292  fi
20293  if ac_fn_c_try_link "$LINENO"; then :
20294  ac_cv_search_is_selinux_enabled=$ac_res
20295fi
20296rm -f core conftest.err conftest.$ac_objext \
20297    conftest$ac_exeext
20298  if ${ac_cv_search_is_selinux_enabled+:} false; then :
20299  break
20300fi
20301done
20302if ${ac_cv_search_is_selinux_enabled+:} false; then :
20303
20304else
20305  ac_cv_search_is_selinux_enabled=no
20306fi
20307rm conftest.$ac_ext
20308LIBS=$ac_func_search_save_LIBS
20309fi
20310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_is_selinux_enabled" >&5
20311$as_echo "$ac_cv_search_is_selinux_enabled" >&6; }
20312ac_res=$ac_cv_search_is_selinux_enabled
20313if test "$ac_res" != no; then :
20314  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20315  ac_fn_c_check_func "$LINENO" "is_selinux_enabled" "ac_cv_func_is_selinux_enabled"
20316if test "x$ac_cv_func_is_selinux_enabled" = xyes; then :
20317
20318$as_echo "#define USE_SELINUX 1" >>confdefs.h
20319
20320
20321fi
20322
20323else
20324  if test "x$USE_SELINUX" = "xyes"; then :
20325  as_fn_error $? "SELinux support requested, but is_selinux_enabled not found." "$LINENO" 5
20326
20327fi
20328
20329fi
20330
20331fi
20332
20333# Check whether to install systemd unit files, as suggested in daemon(7).
20334# When a full path is specified, this does not require systemd installed.
20335
20336# Check whether --with-systemdsystemunitdir was given.
20337if test "${with_systemdsystemunitdir+set}" = set; then :
20338  withval=$with_systemdsystemunitdir;
20339else
20340  with_systemdsystemunitdir=auto
20341fi
20342
20343if test "x$with_systemdsystemunitdir" = "xyes" -o "x$with_systemdsystemunitdir" = "xauto"; then :
20344
20345    def_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
20346
20347    if test "x$def_systemdsystemunitdir" = "x"; then :
20348
20349	if test "x$with_systemdsystemunitdir" = "xyes"; then :
20350
20351	    as_fn_error $? "systemd support requested but pkg-config unable to query systemd package" "$LINENO" 5
20352
20353fi
20354	with_systemdsystemunitdir=no
20355
20356else
20357
20358	with_systemdsystemunitdir=$def_systemdsystemunitdir
20359
20360fi
20361
20362fi
20363if test "x$with_systemdsystemunitdir" != "xno"; then :
20364
20365	systemdsystemunitdir=$with_systemdsystemunitdir
20366
20367
20368fi
20369 if test "x$with_systemdsystemunitdir" != "xno"; then
20370  HAVE_SYSTEMD_TRUE=
20371  HAVE_SYSTEMD_FALSE='#'
20372else
20373  HAVE_SYSTEMD_TRUE='#'
20374  HAVE_SYSTEMD_FALSE=
20375fi
20376
20377
20378# Check whether to enable systemd startup notification.
20379# This requires libsystemd-daemon.
20380
20381# Check whether --with-systemd-daemon was given.
20382if test "${with_systemd_daemon+set}" = set; then :
20383  withval=$with_systemd_daemon; USE_SYSTEMD_DAEMON=$withval
20384else
20385  USE_SYSTEMD_DAEMON=auto
20386fi
20387
20388if test "x$USE_SYSTEMD_DAEMON" != "xno"; then :
20389
20390
20391pkg_failed=no
20392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
20393$as_echo_n "checking for SYSTEMD_DAEMON... " >&6; }
20394
20395if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
20396    pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
20397 elif test -n "$PKG_CONFIG"; then
20398    if test -n "$PKG_CONFIG" && \
20399    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
20400  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
20401  ac_status=$?
20402  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20403  test $ac_status = 0; }; then
20404  pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
20405		      test "x$?" != "x0" && pkg_failed=yes
20406else
20407  pkg_failed=yes
20408fi
20409 else
20410    pkg_failed=untried
20411fi
20412if test -n "$SYSTEMD_DAEMON_LIBS"; then
20413    pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
20414 elif test -n "$PKG_CONFIG"; then
20415    if test -n "$PKG_CONFIG" && \
20416    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
20417  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
20418  ac_status=$?
20419  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20420  test $ac_status = 0; }; then
20421  pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
20422		      test "x$?" != "x0" && pkg_failed=yes
20423else
20424  pkg_failed=yes
20425fi
20426 else
20427    pkg_failed=untried
20428fi
20429
20430
20431
20432if test $pkg_failed = yes; then
20433   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20434$as_echo "no" >&6; }
20435
20436if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20437        _pkg_short_errors_supported=yes
20438else
20439        _pkg_short_errors_supported=no
20440fi
20441        if test $_pkg_short_errors_supported = yes; then
20442	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
20443        else
20444	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
20445        fi
20446	# Put the nasty error message in config.log where it belongs
20447	echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
20448
20449	if test "x$USE_SYSTEMD_DAEMON" = "xyes"; then :
20450  as_fn_error $? "systemd startup notification support requested, but libsystemd-daemon not found." "$LINENO" 5
20451
20452fi
20453
20454elif test $pkg_failed = untried; then
20455     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20456$as_echo "no" >&6; }
20457	if test "x$USE_SYSTEMD_DAEMON" = "xyes"; then :
20458  as_fn_error $? "systemd startup notification support requested, but libsystemd-daemon not found." "$LINENO" 5
20459
20460fi
20461
20462else
20463	SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
20464	SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
20465        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20466$as_echo "yes" >&6; }
20467
20468$as_echo "#define USE_SYSTEMD_DAEMON 1" >>confdefs.h
20469
20470fi
20471
20472fi
20473 if test "x$USE_SYSTEMD_DAEMON" != "xno"; then
20474  USE_SYSTEMD_DAEMON_TRUE=
20475  USE_SYSTEMD_DAEMON_FALSE='#'
20476else
20477  USE_SYSTEMD_DAEMON_TRUE='#'
20478  USE_SYSTEMD_DAEMON_FALSE=
20479fi
20480
20481
20482# FIXME: Find better test for which OS'es use su -m  - for now, just try to
20483# mirror the Imakefile setting of:
20484# if  defined(OpenBSDArchitecture) || defined(NetBSDArchitecture) || defined(FreeBSDArchitecture) || defined(DarwinArchitecture)
20485
20486
20487case $host_os in
20488    linux*|gnu*|*-gnu)
20489	SU="su"
20490        ;;
20491    darwin*)
20492	SU="su -m"
20493        ;;
20494    *bsd*|dragonfly*)
20495	SU="su -m"
20496        ;;
20497    solaris*|sysv4*)
20498	SU="su"
20499	;;
20500    *)
20501	SU="su"
20502        ;;
20503esac
20504
20505
20506# Define a configure option to locate a special file (/dev/random or /dev/urandom)
20507# that serves as a random or a pseudorandom number generator
20508
20509# Check whether --with-random-device was given.
20510if test "${with_random_device+set}" = set; then :
20511  withval=$with_random_device; USE_DEVICE="$withval"
20512else
20513  USE_DEVICE="auto"
20514fi
20515
20516if test x$USE_DEVICE != xno ; then
20517    if test x$USE_DEVICE = xyes -o x$USE_DEVICE = xauto ; then
20518	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5
20519$as_echo_n "checking for /dev/urandom... " >&6; }
20520if ${ac_cv_file__dev_urandom+:} false; then :
20521  $as_echo_n "(cached) " >&6
20522else
20523  test "$cross_compiling" = yes &&
20524  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
20525if test -r "/dev/urandom"; then
20526  ac_cv_file__dev_urandom=yes
20527else
20528  ac_cv_file__dev_urandom=no
20529fi
20530fi
20531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5
20532$as_echo "$ac_cv_file__dev_urandom" >&6; }
20533if test "x$ac_cv_file__dev_urandom" = xyes; then :
20534  DEV_RANDOM=/dev/urandom
20535else
20536  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/random" >&5
20537$as_echo_n "checking for /dev/random... " >&6; }
20538if ${ac_cv_file__dev_random+:} false; then :
20539  $as_echo_n "(cached) " >&6
20540else
20541  test "$cross_compiling" = yes &&
20542  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
20543if test -r "/dev/random"; then
20544  ac_cv_file__dev_random=yes
20545else
20546  ac_cv_file__dev_random=no
20547fi
20548fi
20549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_random" >&5
20550$as_echo "$ac_cv_file__dev_random" >&6; }
20551if test "x$ac_cv_file__dev_random" = xyes; then :
20552  DEV_RANDOM=/dev/random
20553else
20554  if test "x$USE_DEVICE" = "xyes"; then :
20555  as_fn_error $? "random device support requested, but no random device was found." "$LINENO" 5
20556
20557fi
20558
20559fi
20560
20561
20562fi
20563
20564    else
20565	# assume the user input is a valid path to a random number generator
20566	DEV_RANDOM=$USE_DEVICE
20567    fi
20568    if test x$DEV_RANDOM != x ; then
20569
20570cat >>confdefs.h <<_ACEOF
20571#define DEV_RANDOM "$DEV_RANDOM"
20572_ACEOF
20573
20574    fi
20575fi
20576
20577
20578# FIXME: find out how to check for these things. Note that Kerberos was
20579# turned off everywhere but on OpenBSD.
20580 if false; then
20581  HAS_KERBEROS_FIVE_TRUE=
20582  HAS_KERBEROS_FIVE_FALSE='#'
20583else
20584  HAS_KERBEROS_FIVE_TRUE='#'
20585  HAS_KERBEROS_FIVE_FALSE=
20586fi
20587
20588
20589
20590# Figure out where everything goes in the filesystem
20591
20592
20593# Check whether --with-xdmlibdir was given.
20594if test "${with_xdmlibdir+set}" = set; then :
20595  withval=$with_xdmlibdir; XDMLIBDIR="$withval"
20596else
20597  XDMLIBDIR="${libdir}/X11/xdm"
20598fi
20599
20600
20601
20602
20603# Check whether --with-xdmconfigdir was given.
20604if test "${with_xdmconfigdir+set}" = set; then :
20605  withval=$with_xdmconfigdir; XDMCONFIGDIR="$withval"
20606else
20607  XDMCONFIGDIR="${XDMLIBDIR}"
20608fi
20609
20610
20611
20612
20613# Check whether --with-xdmscriptdir was given.
20614if test "${with_xdmscriptdir+set}" = set; then :
20615  withval=$with_xdmscriptdir; XDMSCRIPTDIR="$withval"
20616else
20617  XDMSCRIPTDIR="${XDMLIBDIR}"
20618fi
20619
20620
20621
20622
20623# Check whether --with-logdir was given.
20624if test "${with_logdir+set}" = set; then :
20625  withval=$with_logdir; XDMLOGDIR="$withval"
20626else
20627  XDMLOGDIR="/var/log"
20628fi
20629
20630
20631
20632
20633# Check whether --with-piddir was given.
20634if test "${with_piddir+set}" = set; then :
20635  withval=$with_piddir; XDMPIDDIR="$withval"
20636else
20637  XDMPIDDIR="/var/run"
20638fi
20639
20640
20641
20642
20643# Check whether --with-default-vt was given.
20644if test "${with_default_vt+set}" = set; then :
20645  withval=$with_default_vt; DEFAULTVT="$withval"
20646else
20647  DEFAULTVT=""
20648fi
20649
20650
20651
20652
20653# Check whether --with-config-type was given.
20654if test "${with_config_type+set}" = set; then :
20655  withval=$with_config_type; SERVERSTYPE="$withval"
20656else
20657  SERVERSTYPE="ws"
20658fi
20659
20660
20661
20662
20663# Check whether --with-utmp_file was given.
20664if test "${with_utmp_file+set}" = set; then :
20665  withval=$with_utmp_file; UTMP_FILE="$withval"
20666fi
20667
20668if test "x$UTMP_FILE" = "xyes" ; then
20669	UTMP_FILE=""
20670elif test "x$UTMP_FILE" = "xno" ; then
20671	UTMP_FILE="none"
20672fi
20673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for path to file listing current logins for sessreg" >&5
20674$as_echo_n "checking for path to file listing current logins for sessreg... " >&6; }
20675if test "x$UTMP_FILE" = "x" ; then
20676	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: use sessreg default" >&5
20677$as_echo "use sessreg default" >&6; }
20678else
20679	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UTMP_FILE" >&5
20680$as_echo "$UTMP_FILE" >&6; }
20681fi
20682 if test x$UTMP_FILE != x; then
20683  SET_UTMP_FILE_TRUE=
20684  SET_UTMP_FILE_FALSE='#'
20685else
20686  SET_UTMP_FILE_TRUE='#'
20687  SET_UTMP_FILE_FALSE=
20688fi
20689
20690
20691
20692
20693# Check whether --with-wtmp_file was given.
20694if test "${with_wtmp_file+set}" = set; then :
20695  withval=$with_wtmp_file; WTMP_FILE="$withval"
20696fi
20697
20698if test "x$WTMP_FILE" = "xyes" ; then
20699	WTMP_FILE=""
20700elif test "x$WTMP_FILE" = "xno" ; then
20701	WTMP_FILE="none"
20702fi
20703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for path to file listing login history for sessreg" >&5
20704$as_echo_n "checking for path to file listing login history for sessreg... " >&6; }
20705if test "x$WTMP_FILE" = "x" ; then
20706	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: use sessreg default" >&5
20707$as_echo "use sessreg default" >&6; }
20708else
20709	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WTMP_FILE" >&5
20710$as_echo "$WTMP_FILE" >&6; }
20711fi
20712 if test x$WTMP_FILE != x; then
20713  SET_WTMP_FILE_TRUE=
20714  SET_WTMP_FILE_FALSE='#'
20715else
20716  SET_WTMP_FILE_TRUE='#'
20717  SET_WTMP_FILE_FALSE=
20718fi
20719
20720
20721
20722case $host_os in
20723    *sco*|*solaris*)
20724		SHELL_CMD="/bin/ksh"	;;
20725    *)		SHELL_CMD="/bin/sh"	;;
20726esac
20727
20728
20729# Checks for pkg-config packages
20730
20731
20732pkg_failed=no
20733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDM" >&5
20734$as_echo_n "checking for XDM... " >&6; }
20735
20736if test -n "$XDM_CFLAGS"; then
20737    pkg_cv_XDM_CFLAGS="$XDM_CFLAGS"
20738 elif test -n "$PKG_CONFIG"; then
20739    if test -n "$PKG_CONFIG" && \
20740    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmu x11 xau xproto >= 7.0.17\""; } >&5
20741  ($PKG_CONFIG --exists --print-errors "xmu x11 xau xproto >= 7.0.17") 2>&5
20742  ac_status=$?
20743  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20744  test $ac_status = 0; }; then
20745  pkg_cv_XDM_CFLAGS=`$PKG_CONFIG --cflags "xmu x11 xau xproto >= 7.0.17" 2>/dev/null`
20746		      test "x$?" != "x0" && pkg_failed=yes
20747else
20748  pkg_failed=yes
20749fi
20750 else
20751    pkg_failed=untried
20752fi
20753if test -n "$XDM_LIBS"; then
20754    pkg_cv_XDM_LIBS="$XDM_LIBS"
20755 elif test -n "$PKG_CONFIG"; then
20756    if test -n "$PKG_CONFIG" && \
20757    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmu x11 xau xproto >= 7.0.17\""; } >&5
20758  ($PKG_CONFIG --exists --print-errors "xmu x11 xau xproto >= 7.0.17") 2>&5
20759  ac_status=$?
20760  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20761  test $ac_status = 0; }; then
20762  pkg_cv_XDM_LIBS=`$PKG_CONFIG --libs "xmu x11 xau xproto >= 7.0.17" 2>/dev/null`
20763		      test "x$?" != "x0" && pkg_failed=yes
20764else
20765  pkg_failed=yes
20766fi
20767 else
20768    pkg_failed=untried
20769fi
20770
20771
20772
20773if test $pkg_failed = yes; then
20774   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20775$as_echo "no" >&6; }
20776
20777if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20778        _pkg_short_errors_supported=yes
20779else
20780        _pkg_short_errors_supported=no
20781fi
20782        if test $_pkg_short_errors_supported = yes; then
20783	        XDM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xmu x11 xau xproto >= 7.0.17" 2>&1`
20784        else
20785	        XDM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xmu x11 xau xproto >= 7.0.17" 2>&1`
20786        fi
20787	# Put the nasty error message in config.log where it belongs
20788	echo "$XDM_PKG_ERRORS" >&5
20789
20790	as_fn_error $? "Package requirements (xmu x11 xau xproto >= 7.0.17) were not met:
20791
20792$XDM_PKG_ERRORS
20793
20794Consider adjusting the PKG_CONFIG_PATH environment variable if you
20795installed software in a non-standard prefix.
20796
20797Alternatively, you may set the environment variables XDM_CFLAGS
20798and XDM_LIBS to avoid the need to call pkg-config.
20799See the pkg-config man page for more details." "$LINENO" 5
20800elif test $pkg_failed = untried; then
20801     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20802$as_echo "no" >&6; }
20803	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20804$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20805as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20806is in your PATH or set the PKG_CONFIG environment variable to the full
20807path to pkg-config.
20808
20809Alternatively, you may set the environment variables XDM_CFLAGS
20810and XDM_LIBS to avoid the need to call pkg-config.
20811See the pkg-config man page for more details.
20812
20813To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20814See \`config.log' for more details" "$LINENO" 5; }
20815else
20816	XDM_CFLAGS=$pkg_cv_XDM_CFLAGS
20817	XDM_LIBS=$pkg_cv_XDM_LIBS
20818        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20819$as_echo "yes" >&6; }
20820
20821fi
20822
20823if test -n "$PKG_CONFIG" && \
20824    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama\""; } >&5
20825  ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5
20826  ac_status=$?
20827  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20828  test $ac_status = 0; }; then
20829
20830
20831$as_echo "#define USE_XINERAMA 1" >>confdefs.h
20832
20833
20834pkg_failed=no
20835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINERAMA" >&5
20836$as_echo_n "checking for XINERAMA... " >&6; }
20837
20838if test -n "$XINERAMA_CFLAGS"; then
20839    pkg_cv_XINERAMA_CFLAGS="$XINERAMA_CFLAGS"
20840 elif test -n "$PKG_CONFIG"; then
20841    if test -n "$PKG_CONFIG" && \
20842    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama\""; } >&5
20843  ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5
20844  ac_status=$?
20845  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20846  test $ac_status = 0; }; then
20847  pkg_cv_XINERAMA_CFLAGS=`$PKG_CONFIG --cflags "xinerama" 2>/dev/null`
20848		      test "x$?" != "x0" && pkg_failed=yes
20849else
20850  pkg_failed=yes
20851fi
20852 else
20853    pkg_failed=untried
20854fi
20855if test -n "$XINERAMA_LIBS"; then
20856    pkg_cv_XINERAMA_LIBS="$XINERAMA_LIBS"
20857 elif test -n "$PKG_CONFIG"; then
20858    if test -n "$PKG_CONFIG" && \
20859    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama\""; } >&5
20860  ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5
20861  ac_status=$?
20862  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20863  test $ac_status = 0; }; then
20864  pkg_cv_XINERAMA_LIBS=`$PKG_CONFIG --libs "xinerama" 2>/dev/null`
20865		      test "x$?" != "x0" && pkg_failed=yes
20866else
20867  pkg_failed=yes
20868fi
20869 else
20870    pkg_failed=untried
20871fi
20872
20873
20874
20875if test $pkg_failed = yes; then
20876   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20877$as_echo "no" >&6; }
20878
20879if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20880        _pkg_short_errors_supported=yes
20881else
20882        _pkg_short_errors_supported=no
20883fi
20884        if test $_pkg_short_errors_supported = yes; then
20885	        XINERAMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xinerama" 2>&1`
20886        else
20887	        XINERAMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xinerama" 2>&1`
20888        fi
20889	# Put the nasty error message in config.log where it belongs
20890	echo "$XINERAMA_PKG_ERRORS" >&5
20891
20892	as_fn_error $? "Package requirements (xinerama) were not met:
20893
20894$XINERAMA_PKG_ERRORS
20895
20896Consider adjusting the PKG_CONFIG_PATH environment variable if you
20897installed software in a non-standard prefix.
20898
20899Alternatively, you may set the environment variables XINERAMA_CFLAGS
20900and XINERAMA_LIBS to avoid the need to call pkg-config.
20901See the pkg-config man page for more details." "$LINENO" 5
20902elif test $pkg_failed = untried; then
20903     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20904$as_echo "no" >&6; }
20905	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20906$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20907as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20908is in your PATH or set the PKG_CONFIG environment variable to the full
20909path to pkg-config.
20910
20911Alternatively, you may set the environment variables XINERAMA_CFLAGS
20912and XINERAMA_LIBS to avoid the need to call pkg-config.
20913See the pkg-config man page for more details.
20914
20915To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20916See \`config.log' for more details" "$LINENO" 5; }
20917else
20918	XINERAMA_CFLAGS=$pkg_cv_XINERAMA_CFLAGS
20919	XINERAMA_LIBS=$pkg_cv_XINERAMA_LIBS
20920        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20921$as_echo "yes" >&6; }
20922
20923fi
20924	CHOOSER_CFLAGS="$CHOOSER_CFLAGS $XINERAMA_CFLAGS"
20925	CHOOSER_LIBS="$CHOOSER_LIBS $XINERAMA_LIBS"
20926	GREETER_CFLAGS="$GREETER_CFLAGS $XINERAMA_CFLAGS"
20927	GREETER_LIBS="$GREETER_LIBS $XINERAMA_LIBS"
20928
20929fi
20930
20931# Xft text drawing for the greeter screen
20932
20933# Check whether --with-xft was given.
20934if test "${with_xft+set}" = set; then :
20935  withval=$with_xft; USE_XFT="$withval"
20936else
20937  if test -n "$PKG_CONFIG" && \
20938    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft xrender\""; } >&5
20939  ($PKG_CONFIG --exists --print-errors "xft xrender") 2>&5
20940  ac_status=$?
20941  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20942  test $ac_status = 0; }; then
20943  USE_XFT="yes"
20944else
20945  USE_XFT="no"
20946fi
20947fi
20948
20949
20950if test "x$USE_XFT" = "xyes" ; then
20951
20952pkg_failed=no
20953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFT" >&5
20954$as_echo_n "checking for XFT... " >&6; }
20955
20956if test -n "$XFT_CFLAGS"; then
20957    pkg_cv_XFT_CFLAGS="$XFT_CFLAGS"
20958 elif test -n "$PKG_CONFIG"; then
20959    if test -n "$PKG_CONFIG" && \
20960    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft xrender\""; } >&5
20961  ($PKG_CONFIG --exists --print-errors "xft xrender") 2>&5
20962  ac_status=$?
20963  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20964  test $ac_status = 0; }; then
20965  pkg_cv_XFT_CFLAGS=`$PKG_CONFIG --cflags "xft xrender" 2>/dev/null`
20966		      test "x$?" != "x0" && pkg_failed=yes
20967else
20968  pkg_failed=yes
20969fi
20970 else
20971    pkg_failed=untried
20972fi
20973if test -n "$XFT_LIBS"; then
20974    pkg_cv_XFT_LIBS="$XFT_LIBS"
20975 elif test -n "$PKG_CONFIG"; then
20976    if test -n "$PKG_CONFIG" && \
20977    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft xrender\""; } >&5
20978  ($PKG_CONFIG --exists --print-errors "xft xrender") 2>&5
20979  ac_status=$?
20980  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20981  test $ac_status = 0; }; then
20982  pkg_cv_XFT_LIBS=`$PKG_CONFIG --libs "xft xrender" 2>/dev/null`
20983		      test "x$?" != "x0" && pkg_failed=yes
20984else
20985  pkg_failed=yes
20986fi
20987 else
20988    pkg_failed=untried
20989fi
20990
20991
20992
20993if test $pkg_failed = yes; then
20994   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20995$as_echo "no" >&6; }
20996
20997if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20998        _pkg_short_errors_supported=yes
20999else
21000        _pkg_short_errors_supported=no
21001fi
21002        if test $_pkg_short_errors_supported = yes; then
21003	        XFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xft xrender" 2>&1`
21004        else
21005	        XFT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xft xrender" 2>&1`
21006        fi
21007	# Put the nasty error message in config.log where it belongs
21008	echo "$XFT_PKG_ERRORS" >&5
21009
21010	as_fn_error $? "Package requirements (xft xrender) were not met:
21011
21012$XFT_PKG_ERRORS
21013
21014Consider adjusting the PKG_CONFIG_PATH environment variable if you
21015installed software in a non-standard prefix.
21016
21017Alternatively, you may set the environment variables XFT_CFLAGS
21018and XFT_LIBS to avoid the need to call pkg-config.
21019See the pkg-config man page for more details." "$LINENO" 5
21020elif test $pkg_failed = untried; then
21021     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21022$as_echo "no" >&6; }
21023	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21024$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21025as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21026is in your PATH or set the PKG_CONFIG environment variable to the full
21027path to pkg-config.
21028
21029Alternatively, you may set the environment variables XFT_CFLAGS
21030and XFT_LIBS to avoid the need to call pkg-config.
21031See the pkg-config man page for more details.
21032
21033To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21034See \`config.log' for more details" "$LINENO" 5; }
21035else
21036	XFT_CFLAGS=$pkg_cv_XFT_CFLAGS
21037	XFT_LIBS=$pkg_cv_XFT_LIBS
21038        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21039$as_echo "yes" >&6; }
21040
21041fi
21042	GREETER_CFLAGS="$GREETER_CFLAGS $XFT_CFLAGS"
21043	GREETER_LIBS="$GREETER_LIBS $XFT_LIBS"
21044
21045$as_echo "#define USE_XFT 1" >>confdefs.h
21046
21047fi
21048
21049# XPM logos for the greeter screen
21050# Check whether --enable-xpm-logos was given.
21051if test "${enable_xpm_logos+set}" = set; then :
21052  enableval=$enable_xpm_logos; USE_XPM="$enableval"
21053else
21054  if test -n "$PKG_CONFIG" && \
21055    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5
21056  ($PKG_CONFIG --exists --print-errors "xpm") 2>&5
21057  ac_status=$?
21058  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21059  test $ac_status = 0; }; then
21060  USE_XPM="yes"
21061else
21062  USE_XPM="no"
21063fi
21064fi
21065
21066if test "x$USE_XPM" = "xyes" ; then
21067
21068pkg_failed=no
21069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPM" >&5
21070$as_echo_n "checking for XPM... " >&6; }
21071
21072if test -n "$XPM_CFLAGS"; then
21073    pkg_cv_XPM_CFLAGS="$XPM_CFLAGS"
21074 elif test -n "$PKG_CONFIG"; then
21075    if test -n "$PKG_CONFIG" && \
21076    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5
21077  ($PKG_CONFIG --exists --print-errors "xpm") 2>&5
21078  ac_status=$?
21079  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21080  test $ac_status = 0; }; then
21081  pkg_cv_XPM_CFLAGS=`$PKG_CONFIG --cflags "xpm" 2>/dev/null`
21082		      test "x$?" != "x0" && pkg_failed=yes
21083else
21084  pkg_failed=yes
21085fi
21086 else
21087    pkg_failed=untried
21088fi
21089if test -n "$XPM_LIBS"; then
21090    pkg_cv_XPM_LIBS="$XPM_LIBS"
21091 elif test -n "$PKG_CONFIG"; then
21092    if test -n "$PKG_CONFIG" && \
21093    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xpm\""; } >&5
21094  ($PKG_CONFIG --exists --print-errors "xpm") 2>&5
21095  ac_status=$?
21096  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21097  test $ac_status = 0; }; then
21098  pkg_cv_XPM_LIBS=`$PKG_CONFIG --libs "xpm" 2>/dev/null`
21099		      test "x$?" != "x0" && pkg_failed=yes
21100else
21101  pkg_failed=yes
21102fi
21103 else
21104    pkg_failed=untried
21105fi
21106
21107
21108
21109if test $pkg_failed = yes; then
21110   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21111$as_echo "no" >&6; }
21112
21113if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21114        _pkg_short_errors_supported=yes
21115else
21116        _pkg_short_errors_supported=no
21117fi
21118        if test $_pkg_short_errors_supported = yes; then
21119	        XPM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xpm" 2>&1`
21120        else
21121	        XPM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xpm" 2>&1`
21122        fi
21123	# Put the nasty error message in config.log where it belongs
21124	echo "$XPM_PKG_ERRORS" >&5
21125
21126	as_fn_error $? "Package requirements (xpm) were not met:
21127
21128$XPM_PKG_ERRORS
21129
21130Consider adjusting the PKG_CONFIG_PATH environment variable if you
21131installed software in a non-standard prefix.
21132
21133Alternatively, you may set the environment variables XPM_CFLAGS
21134and XPM_LIBS to avoid the need to call pkg-config.
21135See the pkg-config man page for more details." "$LINENO" 5
21136elif test $pkg_failed = untried; then
21137     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21138$as_echo "no" >&6; }
21139	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21140$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21141as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21142is in your PATH or set the PKG_CONFIG environment variable to the full
21143path to pkg-config.
21144
21145Alternatively, you may set the environment variables XPM_CFLAGS
21146and XPM_LIBS to avoid the need to call pkg-config.
21147See the pkg-config man page for more details.
21148
21149To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21150See \`config.log' for more details" "$LINENO" 5; }
21151else
21152	XPM_CFLAGS=$pkg_cv_XPM_CFLAGS
21153	XPM_LIBS=$pkg_cv_XPM_LIBS
21154        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21155$as_echo "yes" >&6; }
21156
21157fi
21158	GREETER_CFLAGS="$GREETER_CFLAGS $XPM_CFLAGS"
21159	GREETER_LIBS="$GREETER_LIBS $XPM_LIBS"
21160
21161$as_echo "#define XPM 1" >>confdefs.h
21162
21163fi
21164 if test "x$USE_XPM" = "xyes"; then
21165  USE_XPM_TRUE=
21166  USE_XPM_FALSE='#'
21167else
21168  USE_XPM_TRUE='#'
21169  USE_XPM_FALSE=
21170fi
21171
21172
21173
21174# Check whether --with-color-pixmap was given.
21175if test "${with_color_pixmap+set}" = set; then :
21176  withval=$with_color_pixmap; XDM_PIXMAP="$withval"
21177else
21178  XDM_PIXMAP="xorg.xpm"
21179fi
21180
21181
21182# Check whether --with-bw-pixmap was given.
21183if test "${with_bw_pixmap+set}" = set; then :
21184  withval=$with_bw_pixmap; XDM_BWPIXMAP="$withval"
21185else
21186  XDM_BWPIXMAP="xorg-bw.xpm"
21187fi
21188
21189
21190# Check whether --with-pixmapdir was given.
21191if test "${with_pixmapdir+set}" = set; then :
21192  withval=$with_pixmapdir; XDM_PIXMAPDIR="$withval"
21193else
21194  XDM_PIXMAPDIR='${XDMLIBDIR}/pixmaps'
21195fi
21196
21197
21198
21199
21200
21201
21202# Packages used by multiple programs
21203
21204
21205pkg_failed=no
21206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDM_TOOLKIT" >&5
21207$as_echo_n "checking for XDM_TOOLKIT... " >&6; }
21208
21209if test -n "$XDM_TOOLKIT_CFLAGS"; then
21210    pkg_cv_XDM_TOOLKIT_CFLAGS="$XDM_TOOLKIT_CFLAGS"
21211 elif test -n "$PKG_CONFIG"; then
21212    if test -n "$PKG_CONFIG" && \
21213    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7\""; } >&5
21214  ($PKG_CONFIG --exists --print-errors "xaw7") 2>&5
21215  ac_status=$?
21216  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21217  test $ac_status = 0; }; then
21218  pkg_cv_XDM_TOOLKIT_CFLAGS=`$PKG_CONFIG --cflags "xaw7" 2>/dev/null`
21219		      test "x$?" != "x0" && pkg_failed=yes
21220else
21221  pkg_failed=yes
21222fi
21223 else
21224    pkg_failed=untried
21225fi
21226if test -n "$XDM_TOOLKIT_LIBS"; then
21227    pkg_cv_XDM_TOOLKIT_LIBS="$XDM_TOOLKIT_LIBS"
21228 elif test -n "$PKG_CONFIG"; then
21229    if test -n "$PKG_CONFIG" && \
21230    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7\""; } >&5
21231  ($PKG_CONFIG --exists --print-errors "xaw7") 2>&5
21232  ac_status=$?
21233  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21234  test $ac_status = 0; }; then
21235  pkg_cv_XDM_TOOLKIT_LIBS=`$PKG_CONFIG --libs "xaw7" 2>/dev/null`
21236		      test "x$?" != "x0" && pkg_failed=yes
21237else
21238  pkg_failed=yes
21239fi
21240 else
21241    pkg_failed=untried
21242fi
21243
21244
21245
21246if test $pkg_failed = yes; then
21247   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21248$as_echo "no" >&6; }
21249
21250if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21251        _pkg_short_errors_supported=yes
21252else
21253        _pkg_short_errors_supported=no
21254fi
21255        if test $_pkg_short_errors_supported = yes; then
21256	        XDM_TOOLKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7" 2>&1`
21257        else
21258	        XDM_TOOLKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7" 2>&1`
21259        fi
21260	# Put the nasty error message in config.log where it belongs
21261	echo "$XDM_TOOLKIT_PKG_ERRORS" >&5
21262
21263	as_fn_error $? "Package requirements (xaw7) were not met:
21264
21265$XDM_TOOLKIT_PKG_ERRORS
21266
21267Consider adjusting the PKG_CONFIG_PATH environment variable if you
21268installed software in a non-standard prefix.
21269
21270Alternatively, you may set the environment variables XDM_TOOLKIT_CFLAGS
21271and XDM_TOOLKIT_LIBS to avoid the need to call pkg-config.
21272See the pkg-config man page for more details." "$LINENO" 5
21273elif test $pkg_failed = untried; then
21274     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21275$as_echo "no" >&6; }
21276	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21278as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21279is in your PATH or set the PKG_CONFIG environment variable to the full
21280path to pkg-config.
21281
21282Alternatively, you may set the environment variables XDM_TOOLKIT_CFLAGS
21283and XDM_TOOLKIT_LIBS to avoid the need to call pkg-config.
21284See the pkg-config man page for more details.
21285
21286To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21287See \`config.log' for more details" "$LINENO" 5; }
21288else
21289	XDM_TOOLKIT_CFLAGS=$pkg_cv_XDM_TOOLKIT_CFLAGS
21290	XDM_TOOLKIT_LIBS=$pkg_cv_XDM_TOOLKIT_LIBS
21291        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21292$as_echo "yes" >&6; }
21293
21294fi
21295
21296pkg_failed=no
21297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMCP" >&5
21298$as_echo_n "checking for DMCP... " >&6; }
21299
21300if test -n "$DMCP_CFLAGS"; then
21301    pkg_cv_DMCP_CFLAGS="$DMCP_CFLAGS"
21302 elif test -n "$PKG_CONFIG"; then
21303    if test -n "$PKG_CONFIG" && \
21304    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
21305  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
21306  ac_status=$?
21307  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21308  test $ac_status = 0; }; then
21309  pkg_cv_DMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null`
21310		      test "x$?" != "x0" && pkg_failed=yes
21311else
21312  pkg_failed=yes
21313fi
21314 else
21315    pkg_failed=untried
21316fi
21317if test -n "$DMCP_LIBS"; then
21318    pkg_cv_DMCP_LIBS="$DMCP_LIBS"
21319 elif test -n "$PKG_CONFIG"; then
21320    if test -n "$PKG_CONFIG" && \
21321    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
21322  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
21323  ac_status=$?
21324  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21325  test $ac_status = 0; }; then
21326  pkg_cv_DMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null`
21327		      test "x$?" != "x0" && pkg_failed=yes
21328else
21329  pkg_failed=yes
21330fi
21331 else
21332    pkg_failed=untried
21333fi
21334
21335
21336
21337if test $pkg_failed = yes; then
21338   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21339$as_echo "no" >&6; }
21340
21341if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21342        _pkg_short_errors_supported=yes
21343else
21344        _pkg_short_errors_supported=no
21345fi
21346        if test $_pkg_short_errors_supported = yes; then
21347	        DMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xdmcp" 2>&1`
21348        else
21349	        DMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xdmcp" 2>&1`
21350        fi
21351	# Put the nasty error message in config.log where it belongs
21352	echo "$DMCP_PKG_ERRORS" >&5
21353
21354	as_fn_error $? "Package requirements (xdmcp) were not met:
21355
21356$DMCP_PKG_ERRORS
21357
21358Consider adjusting the PKG_CONFIG_PATH environment variable if you
21359installed software in a non-standard prefix.
21360
21361Alternatively, you may set the environment variables DMCP_CFLAGS
21362and DMCP_LIBS to avoid the need to call pkg-config.
21363See the pkg-config man page for more details." "$LINENO" 5
21364elif test $pkg_failed = untried; then
21365     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21366$as_echo "no" >&6; }
21367	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21368$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21369as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21370is in your PATH or set the PKG_CONFIG environment variable to the full
21371path to pkg-config.
21372
21373Alternatively, you may set the environment variables DMCP_CFLAGS
21374and DMCP_LIBS to avoid the need to call pkg-config.
21375See the pkg-config man page for more details.
21376
21377To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21378See \`config.log' for more details" "$LINENO" 5; }
21379else
21380	DMCP_CFLAGS=$pkg_cv_DMCP_CFLAGS
21381	DMCP_LIBS=$pkg_cv_DMCP_LIBS
21382        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21383$as_echo "yes" >&6; }
21384
21385fi
21386
21387pkg_failed=no
21388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB" >&5
21389$as_echo_n "checking for XLIB... " >&6; }
21390
21391if test -n "$XLIB_CFLAGS"; then
21392    pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS"
21393 elif test -n "$PKG_CONFIG"; then
21394    if test -n "$PKG_CONFIG" && \
21395    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
21396  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
21397  ac_status=$?
21398  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21399  test $ac_status = 0; }; then
21400  pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
21401		      test "x$?" != "x0" && pkg_failed=yes
21402else
21403  pkg_failed=yes
21404fi
21405 else
21406    pkg_failed=untried
21407fi
21408if test -n "$XLIB_LIBS"; then
21409    pkg_cv_XLIB_LIBS="$XLIB_LIBS"
21410 elif test -n "$PKG_CONFIG"; then
21411    if test -n "$PKG_CONFIG" && \
21412    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
21413  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
21414  ac_status=$?
21415  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21416  test $ac_status = 0; }; then
21417  pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
21418		      test "x$?" != "x0" && pkg_failed=yes
21419else
21420  pkg_failed=yes
21421fi
21422 else
21423    pkg_failed=untried
21424fi
21425
21426
21427
21428if test $pkg_failed = yes; then
21429   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21430$as_echo "no" >&6; }
21431
21432if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21433        _pkg_short_errors_supported=yes
21434else
21435        _pkg_short_errors_supported=no
21436fi
21437        if test $_pkg_short_errors_supported = yes; then
21438	        XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
21439        else
21440	        XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
21441        fi
21442	# Put the nasty error message in config.log where it belongs
21443	echo "$XLIB_PKG_ERRORS" >&5
21444
21445	as_fn_error $? "Package requirements (x11) were not met:
21446
21447$XLIB_PKG_ERRORS
21448
21449Consider adjusting the PKG_CONFIG_PATH environment variable if you
21450installed software in a non-standard prefix.
21451
21452Alternatively, you may set the environment variables XLIB_CFLAGS
21453and XLIB_LIBS to avoid the need to call pkg-config.
21454See the pkg-config man page for more details." "$LINENO" 5
21455elif test $pkg_failed = untried; then
21456     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21457$as_echo "no" >&6; }
21458	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21459$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21460as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21461is in your PATH or set the PKG_CONFIG environment variable to the full
21462path to pkg-config.
21463
21464Alternatively, you may set the environment variables XLIB_CFLAGS
21465and XLIB_LIBS to avoid the need to call pkg-config.
21466See the pkg-config man page for more details.
21467
21468To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21469See \`config.log' for more details" "$LINENO" 5; }
21470else
21471	XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS
21472	XLIB_LIBS=$pkg_cv_XLIB_LIBS
21473        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21474$as_echo "yes" >&6; }
21475
21476fi
21477
21478pkg_failed=no
21479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTH" >&5
21480$as_echo_n "checking for AUTH... " >&6; }
21481
21482if test -n "$AUTH_CFLAGS"; then
21483    pkg_cv_AUTH_CFLAGS="$AUTH_CFLAGS"
21484 elif test -n "$PKG_CONFIG"; then
21485    if test -n "$PKG_CONFIG" && \
21486    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xau\""; } >&5
21487  ($PKG_CONFIG --exists --print-errors "xau") 2>&5
21488  ac_status=$?
21489  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21490  test $ac_status = 0; }; then
21491  pkg_cv_AUTH_CFLAGS=`$PKG_CONFIG --cflags "xau" 2>/dev/null`
21492		      test "x$?" != "x0" && pkg_failed=yes
21493else
21494  pkg_failed=yes
21495fi
21496 else
21497    pkg_failed=untried
21498fi
21499if test -n "$AUTH_LIBS"; then
21500    pkg_cv_AUTH_LIBS="$AUTH_LIBS"
21501 elif test -n "$PKG_CONFIG"; then
21502    if test -n "$PKG_CONFIG" && \
21503    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xau\""; } >&5
21504  ($PKG_CONFIG --exists --print-errors "xau") 2>&5
21505  ac_status=$?
21506  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21507  test $ac_status = 0; }; then
21508  pkg_cv_AUTH_LIBS=`$PKG_CONFIG --libs "xau" 2>/dev/null`
21509		      test "x$?" != "x0" && pkg_failed=yes
21510else
21511  pkg_failed=yes
21512fi
21513 else
21514    pkg_failed=untried
21515fi
21516
21517
21518
21519if test $pkg_failed = yes; then
21520   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21521$as_echo "no" >&6; }
21522
21523if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21524        _pkg_short_errors_supported=yes
21525else
21526        _pkg_short_errors_supported=no
21527fi
21528        if test $_pkg_short_errors_supported = yes; then
21529	        AUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xau" 2>&1`
21530        else
21531	        AUTH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xau" 2>&1`
21532        fi
21533	# Put the nasty error message in config.log where it belongs
21534	echo "$AUTH_PKG_ERRORS" >&5
21535
21536	as_fn_error $? "Package requirements (xau) were not met:
21537
21538$AUTH_PKG_ERRORS
21539
21540Consider adjusting the PKG_CONFIG_PATH environment variable if you
21541installed software in a non-standard prefix.
21542
21543Alternatively, you may set the environment variables AUTH_CFLAGS
21544and AUTH_LIBS to avoid the need to call pkg-config.
21545See the pkg-config man page for more details." "$LINENO" 5
21546elif test $pkg_failed = untried; then
21547     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21548$as_echo "no" >&6; }
21549	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21550$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21551as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21552is in your PATH or set the PKG_CONFIG environment variable to the full
21553path to pkg-config.
21554
21555Alternatively, you may set the environment variables AUTH_CFLAGS
21556and AUTH_LIBS to avoid the need to call pkg-config.
21557See the pkg-config man page for more details.
21558
21559To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21560See \`config.log' for more details" "$LINENO" 5; }
21561else
21562	AUTH_CFLAGS=$pkg_cv_AUTH_CFLAGS
21563	AUTH_LIBS=$pkg_cv_AUTH_LIBS
21564        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21565$as_echo "yes" >&6; }
21566
21567fi
21568
21569#
21570# Greeter
21571#
21572
21573
21574pkg_failed=no
21575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMGREET" >&5
21576$as_echo_n "checking for XDMGREET... " >&6; }
21577
21578if test -n "$XDMGREET_CFLAGS"; then
21579    pkg_cv_XDMGREET_CFLAGS="$XDMGREET_CFLAGS"
21580 elif test -n "$PKG_CONFIG"; then
21581    if test -n "$PKG_CONFIG" && \
21582    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt >= 1.0 x11 xext\""; } >&5
21583  ($PKG_CONFIG --exists --print-errors "xt >= 1.0 x11 xext") 2>&5
21584  ac_status=$?
21585  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21586  test $ac_status = 0; }; then
21587  pkg_cv_XDMGREET_CFLAGS=`$PKG_CONFIG --cflags "xt >= 1.0 x11 xext" 2>/dev/null`
21588		      test "x$?" != "x0" && pkg_failed=yes
21589else
21590  pkg_failed=yes
21591fi
21592 else
21593    pkg_failed=untried
21594fi
21595if test -n "$XDMGREET_LIBS"; then
21596    pkg_cv_XDMGREET_LIBS="$XDMGREET_LIBS"
21597 elif test -n "$PKG_CONFIG"; then
21598    if test -n "$PKG_CONFIG" && \
21599    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt >= 1.0 x11 xext\""; } >&5
21600  ($PKG_CONFIG --exists --print-errors "xt >= 1.0 x11 xext") 2>&5
21601  ac_status=$?
21602  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21603  test $ac_status = 0; }; then
21604  pkg_cv_XDMGREET_LIBS=`$PKG_CONFIG --libs "xt >= 1.0 x11 xext" 2>/dev/null`
21605		      test "x$?" != "x0" && pkg_failed=yes
21606else
21607  pkg_failed=yes
21608fi
21609 else
21610    pkg_failed=untried
21611fi
21612
21613
21614
21615if test $pkg_failed = yes; then
21616   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21617$as_echo "no" >&6; }
21618
21619if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21620        _pkg_short_errors_supported=yes
21621else
21622        _pkg_short_errors_supported=no
21623fi
21624        if test $_pkg_short_errors_supported = yes; then
21625	        XDMGREET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt >= 1.0 x11 xext" 2>&1`
21626        else
21627	        XDMGREET_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt >= 1.0 x11 xext" 2>&1`
21628        fi
21629	# Put the nasty error message in config.log where it belongs
21630	echo "$XDMGREET_PKG_ERRORS" >&5
21631
21632	as_fn_error $? "Package requirements (xt >= 1.0 x11 xext) were not met:
21633
21634$XDMGREET_PKG_ERRORS
21635
21636Consider adjusting the PKG_CONFIG_PATH environment variable if you
21637installed software in a non-standard prefix.
21638
21639Alternatively, you may set the environment variables XDMGREET_CFLAGS
21640and XDMGREET_LIBS to avoid the need to call pkg-config.
21641See the pkg-config man page for more details." "$LINENO" 5
21642elif test $pkg_failed = untried; then
21643     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21644$as_echo "no" >&6; }
21645	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21646$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21647as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21648is in your PATH or set the PKG_CONFIG environment variable to the full
21649path to pkg-config.
21650
21651Alternatively, you may set the environment variables XDMGREET_CFLAGS
21652and XDMGREET_LIBS to avoid the need to call pkg-config.
21653See the pkg-config man page for more details.
21654
21655To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21656See \`config.log' for more details" "$LINENO" 5; }
21657else
21658	XDMGREET_CFLAGS=$pkg_cv_XDMGREET_CFLAGS
21659	XDMGREET_LIBS=$pkg_cv_XDMGREET_LIBS
21660        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21661$as_echo "yes" >&6; }
21662
21663fi
21664
21665GREETERLIB="${XDMLIBDIR}/libXdmGreet.so"
21666
21667  prefix_NONE=
21668  exec_prefix_NONE=
21669  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21670  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21671  eval ax_define_dir="\"$GREETERLIB\""
21672  eval ax_define_dir="\"$ax_define_dir\""
21673  DEF_GREETER_LIB="$ax_define_dir"
21674
21675
21676cat >>confdefs.h <<_ACEOF
21677#define DEF_GREETER_LIB "$ax_define_dir"
21678_ACEOF
21679
21680  test "$prefix_NONE" && prefix=NONE
21681  test "$exec_prefix_NONE" && exec_prefix=NONE
21682
21683
21684XDMGREET_CFLAGS="$XDMGREET_CFLAGS $XDM_TOOLKIT_CFLAGS $DMCP_CFLAGS $XLIB_CFLAGS $GREETER_CFLAGS $AUTH_CFLAGS"
21685XDMGREET_LIBS="$XDMGREET_LIBS $XDM_TOOLKIT_LIBS $DMCP_LIBS $GREETER_LIBS"
21686
21687#
21688#  XDM
21689#
21690
21691XDM_CFLAGS="$XDM_CFLAGS $DMCP_CFLAGS $XLIB_CFLAGS $AUTH_CFLAGS"
21692XDM_LIBS="$XDM_LIBS $DMCP_LIBS"
21693
21694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XdmcpWrap in -lXdmcp" >&5
21695$as_echo_n "checking for XdmcpWrap in -lXdmcp... " >&6; }
21696if ${ac_cv_lib_Xdmcp_XdmcpWrap+:} false; then :
21697  $as_echo_n "(cached) " >&6
21698else
21699  ac_check_lib_save_LIBS=$LIBS
21700LIBS="-lXdmcp $DMCP_LIBS $LIBS"
21701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21702/* end confdefs.h.  */
21703
21704/* Override any GCC internal prototype to avoid an error.
21705   Use char because int might match the return type of a GCC
21706   builtin and then its argument prototype would still apply.  */
21707#ifdef __cplusplus
21708extern "C"
21709#endif
21710char XdmcpWrap ();
21711int
21712main ()
21713{
21714return XdmcpWrap ();
21715  ;
21716  return 0;
21717}
21718_ACEOF
21719if ac_fn_c_try_link "$LINENO"; then :
21720  ac_cv_lib_Xdmcp_XdmcpWrap=yes
21721else
21722  ac_cv_lib_Xdmcp_XdmcpWrap=no
21723fi
21724rm -f core conftest.err conftest.$ac_objext \
21725    conftest$ac_exeext conftest.$ac_ext
21726LIBS=$ac_check_lib_save_LIBS
21727fi
21728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5
21729$as_echo "$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; }
21730if test "x$ac_cv_lib_Xdmcp_XdmcpWrap" = xyes; then :
21731  xdmauth="yes"
21732else
21733  xdmauth="no"
21734fi
21735
21736
21737# Check whether --enable-xdm-auth was given.
21738if test "${enable_xdm_auth+set}" = set; then :
21739  enableval=$enable_xdm_auth; xdmauth_enable="$enableval"
21740else
21741  xdmauth_enable="auto"
21742fi
21743
21744if test "x$xdmauth_enable" = "xyes" -a "x$xdmauth" = "xno" ; then
21745	as_fn_error $? "XDM-AUTH support requested, but XdmcpWrap not found in libXdmcp." "$LINENO" 5
21746fi
21747
21748 if test x$xdmauth = xyes -a x$xdmauth_enable != xno; then
21749  HAS_XDM_AUTH_TRUE=
21750  HAS_XDM_AUTH_FALSE='#'
21751else
21752  HAS_XDM_AUTH_TRUE='#'
21753  HAS_XDM_AUTH_FALSE=
21754fi
21755
21756
21757
21758
21759
21760#
21761# xdmshell
21762#
21763
21764# Check whether --enable-xdmshell was given.
21765if test "${enable_xdmshell+set}" = set; then :
21766  enableval=$enable_xdmshell; INSTALL_XDMSHELL="$enableval"
21767else
21768  INSTALL_XDMSHELL="no"
21769fi
21770
21771 if test x$INSTALL_XDMSHELL = xyes; then
21772  INSTALL_XDMSHELL_TRUE=
21773  INSTALL_XDMSHELL_FALSE='#'
21774else
21775  INSTALL_XDMSHELL_TRUE='#'
21776  INSTALL_XDMSHELL_FALSE=
21777fi
21778
21779
21780
21781pkg_failed=no
21782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XT" >&5
21783$as_echo_n "checking for XT... " >&6; }
21784
21785if test -n "$XT_CFLAGS"; then
21786    pkg_cv_XT_CFLAGS="$XT_CFLAGS"
21787 elif test -n "$PKG_CONFIG"; then
21788    if test -n "$PKG_CONFIG" && \
21789    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
21790  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
21791  ac_status=$?
21792  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21793  test $ac_status = 0; }; then
21794  pkg_cv_XT_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
21795		      test "x$?" != "x0" && pkg_failed=yes
21796else
21797  pkg_failed=yes
21798fi
21799 else
21800    pkg_failed=untried
21801fi
21802if test -n "$XT_LIBS"; then
21803    pkg_cv_XT_LIBS="$XT_LIBS"
21804 elif test -n "$PKG_CONFIG"; then
21805    if test -n "$PKG_CONFIG" && \
21806    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
21807  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
21808  ac_status=$?
21809  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21810  test $ac_status = 0; }; then
21811  pkg_cv_XT_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
21812		      test "x$?" != "x0" && pkg_failed=yes
21813else
21814  pkg_failed=yes
21815fi
21816 else
21817    pkg_failed=untried
21818fi
21819
21820
21821
21822if test $pkg_failed = yes; then
21823   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21824$as_echo "no" >&6; }
21825
21826if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21827        _pkg_short_errors_supported=yes
21828else
21829        _pkg_short_errors_supported=no
21830fi
21831        if test $_pkg_short_errors_supported = yes; then
21832	        XT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
21833        else
21834	        XT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
21835        fi
21836	# Put the nasty error message in config.log where it belongs
21837	echo "$XT_PKG_ERRORS" >&5
21838
21839	as_fn_error $? "Package requirements (xt) were not met:
21840
21841$XT_PKG_ERRORS
21842
21843Consider adjusting the PKG_CONFIG_PATH environment variable if you
21844installed software in a non-standard prefix.
21845
21846Alternatively, you may set the environment variables XT_CFLAGS
21847and XT_LIBS to avoid the need to call pkg-config.
21848See the pkg-config man page for more details." "$LINENO" 5
21849elif test $pkg_failed = untried; then
21850     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21851$as_echo "no" >&6; }
21852	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21853$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21854as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21855is in your PATH or set the PKG_CONFIG environment variable to the full
21856path to pkg-config.
21857
21858Alternatively, you may set the environment variables XT_CFLAGS
21859and XT_LIBS to avoid the need to call pkg-config.
21860See the pkg-config man page for more details.
21861
21862To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21863See \`config.log' for more details" "$LINENO" 5; }
21864else
21865	XT_CFLAGS=$pkg_cv_XT_CFLAGS
21866	XT_LIBS=$pkg_cv_XT_LIBS
21867        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21868$as_echo "yes" >&6; }
21869
21870fi
21871XDMSHELL_CFLAGS="$XDM_CFLAGS $XDM_TOOLKIT_CFLAGS $AUTH_CFLAGS $DMCP_CFLAGS $XLIB_CFLAGS $XT_CFLAGS"
21872XDMSHELL_LIBS="$XDM_LIBS $XDM_TOOLKIT_LIBS $DMCP_LIBS"
21873
21874
21875
21876
21877#
21878# Chooser
21879#
21880
21881CHOOSER_CFLAGS="$CHOOSER_CFLAGS $XDM_TOOLKIT_CFLAGS $XLIB_CFLAGS $DMCP_CFLAGS $AUTH_CFLAGS"
21882CHOOSER_LIBS="$CHOOSER_LIBS $XDM_TOOLKIT_LIBS $DMCP_LIBS"
21883
21884
21885
21886
21887# Defaults for X session - should probably be configure --with-* flags
21888# Currently just trying to mirror what defaults were set in Imake
21889
21890# -DDEF_SERVER_LINE=":0 local $(DEF_SERVER) :0"
21891if test -z "$DEF_SERVER" ; then
21892	DEF_SERVER="${bindir}/X"
21893fi
21894if test -z "$DEF_SERVER_LINE" ; then
21895	DEF_SERVER_LINE=":0 local ${DEF_SERVER} :0"
21896fi
21897
21898  prefix_NONE=
21899  exec_prefix_NONE=
21900  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21901  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21902  eval ax_define_dir="\"$DEF_SERVER_LINE\""
21903  eval ax_define_dir="\"$ax_define_dir\""
21904  DEF_SERVER_LINE="$ax_define_dir"
21905
21906
21907cat >>confdefs.h <<_ACEOF
21908#define DEF_SERVER_LINE "$ax_define_dir"
21909_ACEOF
21910
21911  test "$prefix_NONE" && prefix=NONE
21912  test "$exec_prefix_NONE" && exec_prefix=NONE
21913
21914
21915# -DXRDB_PROGRAM="$(BINDIR)/xrdb"
21916
21917# Check whether --with-xrdb was given.
21918if test "${with_xrdb+set}" = set; then :
21919  withval=$with_xrdb; XRDB=$withval
21920else
21921  XRDB=${bindir}/xrdb
21922fi
21923
21924
21925  prefix_NONE=
21926  exec_prefix_NONE=
21927  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21928  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21929  eval ax_define_dir="\"$XRDB\""
21930  eval ax_define_dir="\"$ax_define_dir\""
21931  XRDB_PROGRAM="$ax_define_dir"
21932
21933
21934cat >>confdefs.h <<_ACEOF
21935#define XRDB_PROGRAM "$ax_define_dir"
21936_ACEOF
21937
21938  test "$prefix_NONE" && prefix=NONE
21939  test "$exec_prefix_NONE" && exec_prefix=NONE
21940
21941
21942# -DDEF_SESSION="$(BINDIR)/xterm -ls"
21943
21944# Check whether --with-default-session was given.
21945if test "${with_default_session+set}" = set; then :
21946  withval=$with_default_session; DEF_SESSION=$withval
21947else
21948  DEF_SESSION="${bindir}/xterm -ls"
21949fi
21950
21951
21952  prefix_NONE=
21953  exec_prefix_NONE=
21954  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21955  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21956  eval ax_define_dir="\"$DEF_SESSION\""
21957  eval ax_define_dir="\"$ax_define_dir\""
21958  DEF_SESSION="$ax_define_dir"
21959
21960
21961cat >>confdefs.h <<_ACEOF
21962#define DEF_SESSION "$ax_define_dir"
21963_ACEOF
21964
21965  test "$prefix_NONE" && prefix=NONE
21966  test "$exec_prefix_NONE" && exec_prefix=NONE
21967
21968
21969# -DDEF_USER_PATH="$(DEF_USER_PATH)"
21970# Default values taken from DefaultUserPath setting in the
21971# old Imake *.cf files for each platform
21972if test -z "$DEF_USER_PATH" ; then
21973	case $host_os in
21974	    dragonfly*)
21975		DEF_USER_PATH="/bin:/usr/bin:/sbin:/usr/sbin:${bindir}:/usr/local/bin"
21976		;;
21977	    freebsd*)
21978		DEF_USER_PATH="/bin:/usr/bin:/sbin:/usr/sbin:${bindir}:/usr/gnu/bin:/usr/local/bin"
21979		;;
21980	    netbsd*)
21981		DEF_USER_PATH="/bin:/usr/bin:/usr/pkg/bin:/usr/local/bin:${bindir}"
21982		;;
21983	    openbsd*|bsdi*)
21984		DEF_USER_PATH="/bin:/usr/bin:/usr/local/bin:${bindir}"
21985		;;
21986	    solaris*)
21987		DEF_USER_PATH="/usr/bin:${bindir}"
21988		;;
21989	    *)
21990		DEF_USER_PATH="/bin:/usr/bin:${bindir}:/usr/ucb"
21991		;;
21992	esac
21993fi
21994
21995  prefix_NONE=
21996  exec_prefix_NONE=
21997  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21998  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21999  eval ax_define_dir="\"$DEF_USER_PATH\""
22000  eval ax_define_dir="\"$ax_define_dir\""
22001  DEF_USER_PATH="$ax_define_dir"
22002
22003
22004cat >>confdefs.h <<_ACEOF
22005#define DEF_USER_PATH "$ax_define_dir"
22006_ACEOF
22007
22008  test "$prefix_NONE" && prefix=NONE
22009  test "$exec_prefix_NONE" && exec_prefix=NONE
22010
22011
22012# -DDEF_SYSTEM_PATH="$(DEF_SYSTEM_PATH)"
22013# Default values taken from DefaultSystemPath setting in the
22014# old Imake *.cf files for each platform
22015if test -z "$DEF_SYSTEM_PATH" ; then
22016	case $host_os in
22017	    freebsd*|dragonfly*)
22018		DEF_SYSTEM_PATH="/bin:/usr/bin:/sbin:/usr/sbin:${bindir}"
22019		;;
22020	    netbsd*|openbsd*|bsdi*)
22021		DEF_SYSTEM_PATH="/sbin:/usr/sbin:/bin:/usr/bin:${bindir}"
22022		;;
22023	    solaris*)
22024		DEF_SYSTEM_PATH="/sbin:/usr/sbin:/usr/bin:${bindir}"
22025		;;
22026	    *)
22027		DEF_SYSTEM_PATH="/etc:/bin:/usr/bin:${bindir}:/usr/ucb"
22028		;;
22029	esac
22030fi
22031
22032  prefix_NONE=
22033  exec_prefix_NONE=
22034  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22035  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22036  eval ax_define_dir="\"$DEF_SYSTEM_PATH\""
22037  eval ax_define_dir="\"$ax_define_dir\""
22038  DEF_SYSTEM_PATH="$ax_define_dir"
22039
22040
22041cat >>confdefs.h <<_ACEOF
22042#define DEF_SYSTEM_PATH "$ax_define_dir"
22043_ACEOF
22044
22045  test "$prefix_NONE" && prefix=NONE
22046  test "$exec_prefix_NONE" && exec_prefix=NONE
22047
22048
22049# -DDEF_SYSTEM_SHELL="$(BOURNE_SHELL)"
22050if test -z "$BOURNE_SHELL" ; then
22051	BOURNE_SHELL=/bin/sh
22052fi
22053
22054  prefix_NONE=
22055  exec_prefix_NONE=
22056  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22057  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22058  eval ax_define_dir="\"$BOURNE_SHELL\""
22059  eval ax_define_dir="\"$ax_define_dir\""
22060  DEF_SYSTEM_SHELL="$ax_define_dir"
22061
22062
22063cat >>confdefs.h <<_ACEOF
22064#define DEF_SYSTEM_SHELL "$ax_define_dir"
22065_ACEOF
22066
22067  test "$prefix_NONE" && prefix=NONE
22068  test "$exec_prefix_NONE" && exec_prefix=NONE
22069
22070
22071# -DDEF_FAILSAFE_CLIENT="$(BINDIR)/xterm"
22072
22073
22074  prefix_NONE=
22075  exec_prefix_NONE=
22076  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22077  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22078  eval ax_define_dir="\"$bindir/xterm\""
22079  eval ax_define_dir="\"$ax_define_dir\""
22080  DEF_FAILSAFE_CLIENT="$ax_define_dir"
22081
22082
22083cat >>confdefs.h <<_ACEOF
22084#define DEF_FAILSAFE_CLIENT "$ax_define_dir"
22085_ACEOF
22086
22087  test "$prefix_NONE" && prefix=NONE
22088  test "$exec_prefix_NONE" && exec_prefix=NONE
22089
22090
22091# -DDEF_XDM_CONFIG="$(XDMDIR)/xdm-config"
22092
22093
22094  prefix_NONE=
22095  exec_prefix_NONE=
22096  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22097  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22098  eval ax_define_dir="\"$XDMCONFIGDIR/xdm-config\""
22099  eval ax_define_dir="\"$ax_define_dir\""
22100  DEF_XDM_CONFIG="$ax_define_dir"
22101
22102
22103cat >>confdefs.h <<_ACEOF
22104#define DEF_XDM_CONFIG "$ax_define_dir"
22105_ACEOF
22106
22107  test "$prefix_NONE" && prefix=NONE
22108  test "$exec_prefix_NONE" && exec_prefix=NONE
22109
22110
22111# -DDEF_CHOOSER="$(CHOOSERPATH)"
22112
22113
22114  prefix_NONE=
22115  exec_prefix_NONE=
22116  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22117  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22118  eval ax_define_dir="\"$XDMLIBDIR/chooser\""
22119  eval ax_define_dir="\"$ax_define_dir\""
22120  DEF_CHOOSER="$ax_define_dir"
22121
22122
22123cat >>confdefs.h <<_ACEOF
22124#define DEF_CHOOSER "$ax_define_dir"
22125_ACEOF
22126
22127  test "$prefix_NONE" && prefix=NONE
22128  test "$exec_prefix_NONE" && exec_prefix=NONE
22129
22130
22131# -DDEF_AUTH_DIR="$(XDMDIR)"
22132
22133
22134# Check whether --with-authdir was given.
22135if test "${with_authdir+set}" = set; then :
22136  withval=$with_authdir; XDMXAUTHDIR="$withval"
22137else
22138  XDMXAUTHDIR="/var/lib/xdm"
22139fi
22140
22141
22142
22143
22144  prefix_NONE=
22145  exec_prefix_NONE=
22146  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22147  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22148  eval ax_define_dir="\"$XDMXAUTHDIR\""
22149  eval ax_define_dir="\"$ax_define_dir\""
22150  DEF_AUTH_DIR="$ax_define_dir"
22151
22152
22153cat >>confdefs.h <<_ACEOF
22154#define DEF_AUTH_DIR "$ax_define_dir"
22155_ACEOF
22156
22157  test "$prefix_NONE" && prefix=NONE
22158  test "$exec_prefix_NONE" && exec_prefix=NONE
22159
22160
22161# -DDEF_GREETER_LIB="$(XDMDIR)/libXdmGreet.so"
22162
22163
22164  prefix_NONE=
22165  exec_prefix_NONE=
22166  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22167  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22168  eval ax_define_dir="\"$XDMLIBDIR/libXdmGreet.so\""
22169  eval ax_define_dir="\"$ax_define_dir\""
22170  DEF_GREETER_LIB="$ax_define_dir"
22171
22172
22173cat >>confdefs.h <<_ACEOF
22174#define DEF_GREETER_LIB "$ax_define_dir"
22175_ACEOF
22176
22177  test "$prefix_NONE" && prefix=NONE
22178  test "$exec_prefix_NONE" && exec_prefix=NONE
22179
22180
22181
22182pkg_failed=no
22183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
22184$as_echo_n "checking for APPDEFS... " >&6; }
22185
22186if test -n "$APPDEFS_CFLAGS"; then
22187    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
22188 elif test -n "$PKG_CONFIG"; then
22189    if test -n "$PKG_CONFIG" && \
22190    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
22191  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
22192  ac_status=$?
22193  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22194  test $ac_status = 0; }; then
22195  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
22196		      test "x$?" != "x0" && pkg_failed=yes
22197else
22198  pkg_failed=yes
22199fi
22200 else
22201    pkg_failed=untried
22202fi
22203if test -n "$APPDEFS_LIBS"; then
22204    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
22205 elif test -n "$PKG_CONFIG"; then
22206    if test -n "$PKG_CONFIG" && \
22207    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
22208  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
22209  ac_status=$?
22210  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22211  test $ac_status = 0; }; then
22212  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
22213		      test "x$?" != "x0" && pkg_failed=yes
22214else
22215  pkg_failed=yes
22216fi
22217 else
22218    pkg_failed=untried
22219fi
22220
22221
22222
22223if test $pkg_failed = yes; then
22224   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22225$as_echo "no" >&6; }
22226
22227if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22228        _pkg_short_errors_supported=yes
22229else
22230        _pkg_short_errors_supported=no
22231fi
22232        if test $_pkg_short_errors_supported = yes; then
22233	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
22234        else
22235	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
22236        fi
22237	# Put the nasty error message in config.log where it belongs
22238	echo "$APPDEFS_PKG_ERRORS" >&5
22239
22240	as_fn_error $? "Package requirements (xt) were not met:
22241
22242$APPDEFS_PKG_ERRORS
22243
22244Consider adjusting the PKG_CONFIG_PATH environment variable if you
22245installed software in a non-standard prefix.
22246
22247Alternatively, you may set the environment variables APPDEFS_CFLAGS
22248and APPDEFS_LIBS to avoid the need to call pkg-config.
22249See the pkg-config man page for more details." "$LINENO" 5
22250elif test $pkg_failed = untried; then
22251     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22252$as_echo "no" >&6; }
22253	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22254$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22255as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22256is in your PATH or set the PKG_CONFIG environment variable to the full
22257path to pkg-config.
22258
22259Alternatively, you may set the environment variables APPDEFS_CFLAGS
22260and APPDEFS_LIBS to avoid the need to call pkg-config.
22261See the pkg-config man page for more details.
22262
22263To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22264See \`config.log' for more details" "$LINENO" 5; }
22265else
22266	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
22267	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
22268        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22269$as_echo "yes" >&6; }
22270
22271fi
22272xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
22273
22274# Check whether --with-appdefaultdir was given.
22275if test "${with_appdefaultdir+set}" = set; then :
22276  withval=$with_appdefaultdir; appdefaultdir="$withval"
22277else
22278  appdefaultdir="${xt_appdefaultdir}"
22279fi
22280
22281
22282
22283
22284
22285ac_config_files="$ac_config_files Makefile app-defaults/Makefile chooser/Makefile config/Makefile greeter/Makefile include/Makefile man/Makefile xdm/Makefile xdmshell/Makefile"
22286
22287cat >confcache <<\_ACEOF
22288# This file is a shell script that caches the results of configure
22289# tests run on this system so they can be shared between configure
22290# scripts and configure runs, see configure's option --config-cache.
22291# It is not useful on other systems.  If it contains results you don't
22292# want to keep, you may remove or edit it.
22293#
22294# config.status only pays attention to the cache file if you give it
22295# the --recheck option to rerun configure.
22296#
22297# `ac_cv_env_foo' variables (set or unset) will be overridden when
22298# loading this file, other *unset* `ac_cv_foo' will be assigned the
22299# following values.
22300
22301_ACEOF
22302
22303# The following way of writing the cache mishandles newlines in values,
22304# but we know of no workaround that is simple, portable, and efficient.
22305# So, we kill variables containing newlines.
22306# Ultrix sh set writes to stderr and can't be redirected directly,
22307# and sets the high bit in the cache file unless we assign to the vars.
22308(
22309  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22310    eval ac_val=\$$ac_var
22311    case $ac_val in #(
22312    *${as_nl}*)
22313      case $ac_var in #(
22314      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22315$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22316      esac
22317      case $ac_var in #(
22318      _ | IFS | as_nl) ;; #(
22319      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22320      *) { eval $ac_var=; unset $ac_var;} ;;
22321      esac ;;
22322    esac
22323  done
22324
22325  (set) 2>&1 |
22326    case $as_nl`(ac_space=' '; set) 2>&1` in #(
22327    *${as_nl}ac_space=\ *)
22328      # `set' does not quote correctly, so add quotes: double-quote
22329      # substitution turns \\\\ into \\, and sed turns \\ into \.
22330      sed -n \
22331	"s/'/'\\\\''/g;
22332	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22333      ;; #(
22334    *)
22335      # `set' quotes correctly as required by POSIX, so do not add quotes.
22336      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22337      ;;
22338    esac |
22339    sort
22340) |
22341  sed '
22342     /^ac_cv_env_/b end
22343     t clear
22344     :clear
22345     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22346     t end
22347     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22348     :end' >>confcache
22349if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22350  if test -w "$cache_file"; then
22351    if test "x$cache_file" != "x/dev/null"; then
22352      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22353$as_echo "$as_me: updating cache $cache_file" >&6;}
22354      if test ! -f "$cache_file" || test -h "$cache_file"; then
22355	cat confcache >"$cache_file"
22356      else
22357        case $cache_file in #(
22358        */* | ?:*)
22359	  mv -f confcache "$cache_file"$$ &&
22360	  mv -f "$cache_file"$$ "$cache_file" ;; #(
22361        *)
22362	  mv -f confcache "$cache_file" ;;
22363	esac
22364      fi
22365    fi
22366  else
22367    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22368$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22369  fi
22370fi
22371rm -f confcache
22372
22373test "x$prefix" = xNONE && prefix=$ac_default_prefix
22374# Let make expand exec_prefix.
22375test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22376
22377DEFS=-DHAVE_CONFIG_H
22378
22379ac_libobjs=
22380ac_ltlibobjs=
22381U=
22382for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22383  # 1. Remove the extension, and $U if already installed.
22384  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22385  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22386  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22387  #    will be set to the directory where LIBOBJS objects are built.
22388  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22389  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22390done
22391LIBOBJS=$ac_libobjs
22392
22393LTLIBOBJS=$ac_ltlibobjs
22394
22395
22396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22397$as_echo_n "checking that generated files are newer than configure... " >&6; }
22398   if test -n "$am_sleep_pid"; then
22399     # Hide warnings about reused PIDs.
22400     wait $am_sleep_pid 2>/dev/null
22401   fi
22402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
22403$as_echo "done" >&6; }
22404if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22405  as_fn_error $? "conditional \"AMDEP\" was never defined.
22406Usually this means the macro was only invoked conditionally." "$LINENO" 5
22407fi
22408if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22409  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22410Usually this means the macro was only invoked conditionally." "$LINENO" 5
22411fi
22412 if test -n "$EXEEXT"; then
22413  am__EXEEXT_TRUE=
22414  am__EXEEXT_FALSE='#'
22415else
22416  am__EXEEXT_TRUE='#'
22417  am__EXEEXT_FALSE=
22418fi
22419
22420if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
22421  as_fn_error $? "conditional \"LINT\" was never defined.
22422Usually this means the macro was only invoked conditionally." "$LINENO" 5
22423fi
22424if test -z "${HAVE_MKTEMP_COMMAND_TRUE}" && test -z "${HAVE_MKTEMP_COMMAND_FALSE}"; then
22425  as_fn_error $? "conditional \"HAVE_MKTEMP_COMMAND\" was never defined.
22426Usually this means the macro was only invoked conditionally." "$LINENO" 5
22427fi
22428if test -z "${HAVE_ARC4RANDOM_TRUE}" && test -z "${HAVE_ARC4RANDOM_FALSE}"; then
22429  as_fn_error $? "conditional \"HAVE_ARC4RANDOM\" was never defined.
22430Usually this means the macro was only invoked conditionally." "$LINENO" 5
22431fi
22432if test -z "${HAS_SECURE_RPC_TRUE}" && test -z "${HAS_SECURE_RPC_FALSE}"; then
22433  as_fn_error $? "conditional \"HAS_SECURE_RPC\" was never defined.
22434Usually this means the macro was only invoked conditionally." "$LINENO" 5
22435fi
22436if test -z "${HAVE_SYSTEMD_TRUE}" && test -z "${HAVE_SYSTEMD_FALSE}"; then
22437  as_fn_error $? "conditional \"HAVE_SYSTEMD\" was never defined.
22438Usually this means the macro was only invoked conditionally." "$LINENO" 5
22439fi
22440if test -z "${USE_SYSTEMD_DAEMON_TRUE}" && test -z "${USE_SYSTEMD_DAEMON_FALSE}"; then
22441  as_fn_error $? "conditional \"USE_SYSTEMD_DAEMON\" was never defined.
22442Usually this means the macro was only invoked conditionally." "$LINENO" 5
22443fi
22444if test -z "${HAS_KERBEROS_FIVE_TRUE}" && test -z "${HAS_KERBEROS_FIVE_FALSE}"; then
22445  as_fn_error $? "conditional \"HAS_KERBEROS_FIVE\" was never defined.
22446Usually this means the macro was only invoked conditionally." "$LINENO" 5
22447fi
22448if test -z "${SET_UTMP_FILE_TRUE}" && test -z "${SET_UTMP_FILE_FALSE}"; then
22449  as_fn_error $? "conditional \"SET_UTMP_FILE\" was never defined.
22450Usually this means the macro was only invoked conditionally." "$LINENO" 5
22451fi
22452if test -z "${SET_WTMP_FILE_TRUE}" && test -z "${SET_WTMP_FILE_FALSE}"; then
22453  as_fn_error $? "conditional \"SET_WTMP_FILE\" was never defined.
22454Usually this means the macro was only invoked conditionally." "$LINENO" 5
22455fi
22456if test -z "${USE_XPM_TRUE}" && test -z "${USE_XPM_FALSE}"; then
22457  as_fn_error $? "conditional \"USE_XPM\" was never defined.
22458Usually this means the macro was only invoked conditionally." "$LINENO" 5
22459fi
22460if test -z "${HAS_XDM_AUTH_TRUE}" && test -z "${HAS_XDM_AUTH_FALSE}"; then
22461  as_fn_error $? "conditional \"HAS_XDM_AUTH\" was never defined.
22462Usually this means the macro was only invoked conditionally." "$LINENO" 5
22463fi
22464if test -z "${INSTALL_XDMSHELL_TRUE}" && test -z "${INSTALL_XDMSHELL_FALSE}"; then
22465  as_fn_error $? "conditional \"INSTALL_XDMSHELL\" was never defined.
22466Usually this means the macro was only invoked conditionally." "$LINENO" 5
22467fi
22468
22469: "${CONFIG_STATUS=./config.status}"
22470ac_write_fail=0
22471ac_clean_files_save=$ac_clean_files
22472ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22473{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22474$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22475as_write_fail=0
22476cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22477#! $SHELL
22478# Generated by $as_me.
22479# Run this file to recreate the current configuration.
22480# Compiler output produced by configure, useful for debugging
22481# configure, is in config.log if it exists.
22482
22483debug=false
22484ac_cs_recheck=false
22485ac_cs_silent=false
22486
22487SHELL=\${CONFIG_SHELL-$SHELL}
22488export SHELL
22489_ASEOF
22490cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22491## -------------------- ##
22492## M4sh Initialization. ##
22493## -------------------- ##
22494
22495# Be more Bourne compatible
22496DUALCASE=1; export DUALCASE # for MKS sh
22497if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22498  emulate sh
22499  NULLCMD=:
22500  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22501  # is contrary to our usage.  Disable this feature.
22502  alias -g '${1+"$@"}'='"$@"'
22503  setopt NO_GLOB_SUBST
22504else
22505  case `(set -o) 2>/dev/null` in #(
22506  *posix*) :
22507    set -o posix ;; #(
22508  *) :
22509     ;;
22510esac
22511fi
22512
22513
22514as_nl='
22515'
22516export as_nl
22517# Printing a long string crashes Solaris 7 /usr/bin/printf.
22518as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22519as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22520as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22521# Prefer a ksh shell builtin over an external printf program on Solaris,
22522# but without wasting forks for bash or zsh.
22523if test -z "$BASH_VERSION$ZSH_VERSION" \
22524    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22525  as_echo='print -r --'
22526  as_echo_n='print -rn --'
22527elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22528  as_echo='printf %s\n'
22529  as_echo_n='printf %s'
22530else
22531  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22532    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22533    as_echo_n='/usr/ucb/echo -n'
22534  else
22535    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22536    as_echo_n_body='eval
22537      arg=$1;
22538      case $arg in #(
22539      *"$as_nl"*)
22540	expr "X$arg" : "X\\(.*\\)$as_nl";
22541	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22542      esac;
22543      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22544    '
22545    export as_echo_n_body
22546    as_echo_n='sh -c $as_echo_n_body as_echo'
22547  fi
22548  export as_echo_body
22549  as_echo='sh -c $as_echo_body as_echo'
22550fi
22551
22552# The user is always right.
22553if test "${PATH_SEPARATOR+set}" != set; then
22554  PATH_SEPARATOR=:
22555  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22556    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22557      PATH_SEPARATOR=';'
22558  }
22559fi
22560
22561
22562# IFS
22563# We need space, tab and new line, in precisely that order.  Quoting is
22564# there to prevent editors from complaining about space-tab.
22565# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22566# splitting by setting IFS to empty value.)
22567IFS=" ""	$as_nl"
22568
22569# Find who we are.  Look in the path if we contain no directory separator.
22570as_myself=
22571case $0 in #((
22572  *[\\/]* ) as_myself=$0 ;;
22573  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22574for as_dir in $PATH
22575do
22576  IFS=$as_save_IFS
22577  test -z "$as_dir" && as_dir=.
22578    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22579  done
22580IFS=$as_save_IFS
22581
22582     ;;
22583esac
22584# We did not find ourselves, most probably we were run as `sh COMMAND'
22585# in which case we are not to be found in the path.
22586if test "x$as_myself" = x; then
22587  as_myself=$0
22588fi
22589if test ! -f "$as_myself"; then
22590  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22591  exit 1
22592fi
22593
22594# Unset variables that we do not need and which cause bugs (e.g. in
22595# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
22596# suppresses any "Segmentation fault" message there.  '((' could
22597# trigger a bug in pdksh 5.2.14.
22598for as_var in BASH_ENV ENV MAIL MAILPATH
22599do eval test x\${$as_var+set} = xset \
22600  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22601done
22602PS1='$ '
22603PS2='> '
22604PS4='+ '
22605
22606# NLS nuisances.
22607LC_ALL=C
22608export LC_ALL
22609LANGUAGE=C
22610export LANGUAGE
22611
22612# CDPATH.
22613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22614
22615
22616# as_fn_error STATUS ERROR [LINENO LOG_FD]
22617# ----------------------------------------
22618# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22619# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22620# script with STATUS, using 1 if that was 0.
22621as_fn_error ()
22622{
22623  as_status=$1; test $as_status -eq 0 && as_status=1
22624  if test "$4"; then
22625    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22626    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22627  fi
22628  $as_echo "$as_me: error: $2" >&2
22629  as_fn_exit $as_status
22630} # as_fn_error
22631
22632
22633# as_fn_set_status STATUS
22634# -----------------------
22635# Set $? to STATUS, without forking.
22636as_fn_set_status ()
22637{
22638  return $1
22639} # as_fn_set_status
22640
22641# as_fn_exit STATUS
22642# -----------------
22643# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22644as_fn_exit ()
22645{
22646  set +e
22647  as_fn_set_status $1
22648  exit $1
22649} # as_fn_exit
22650
22651# as_fn_unset VAR
22652# ---------------
22653# Portably unset VAR.
22654as_fn_unset ()
22655{
22656  { eval $1=; unset $1;}
22657}
22658as_unset=as_fn_unset
22659# as_fn_append VAR VALUE
22660# ----------------------
22661# Append the text in VALUE to the end of the definition contained in VAR. Take
22662# advantage of any shell optimizations that allow amortized linear growth over
22663# repeated appends, instead of the typical quadratic growth present in naive
22664# implementations.
22665if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22666  eval 'as_fn_append ()
22667  {
22668    eval $1+=\$2
22669  }'
22670else
22671  as_fn_append ()
22672  {
22673    eval $1=\$$1\$2
22674  }
22675fi # as_fn_append
22676
22677# as_fn_arith ARG...
22678# ------------------
22679# Perform arithmetic evaluation on the ARGs, and store the result in the
22680# global $as_val. Take advantage of shells that can avoid forks. The arguments
22681# must be portable across $(()) and expr.
22682if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22683  eval 'as_fn_arith ()
22684  {
22685    as_val=$(( $* ))
22686  }'
22687else
22688  as_fn_arith ()
22689  {
22690    as_val=`expr "$@" || test $? -eq 1`
22691  }
22692fi # as_fn_arith
22693
22694
22695if expr a : '\(a\)' >/dev/null 2>&1 &&
22696   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22697  as_expr=expr
22698else
22699  as_expr=false
22700fi
22701
22702if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22703  as_basename=basename
22704else
22705  as_basename=false
22706fi
22707
22708if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22709  as_dirname=dirname
22710else
22711  as_dirname=false
22712fi
22713
22714as_me=`$as_basename -- "$0" ||
22715$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22716	 X"$0" : 'X\(//\)$' \| \
22717	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22718$as_echo X/"$0" |
22719    sed '/^.*\/\([^/][^/]*\)\/*$/{
22720	    s//\1/
22721	    q
22722	  }
22723	  /^X\/\(\/\/\)$/{
22724	    s//\1/
22725	    q
22726	  }
22727	  /^X\/\(\/\).*/{
22728	    s//\1/
22729	    q
22730	  }
22731	  s/.*/./; q'`
22732
22733# Avoid depending upon Character Ranges.
22734as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22735as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22736as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22737as_cr_digits='0123456789'
22738as_cr_alnum=$as_cr_Letters$as_cr_digits
22739
22740ECHO_C= ECHO_N= ECHO_T=
22741case `echo -n x` in #(((((
22742-n*)
22743  case `echo 'xy\c'` in
22744  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22745  xy)  ECHO_C='\c';;
22746  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
22747       ECHO_T='	';;
22748  esac;;
22749*)
22750  ECHO_N='-n';;
22751esac
22752
22753rm -f conf$$ conf$$.exe conf$$.file
22754if test -d conf$$.dir; then
22755  rm -f conf$$.dir/conf$$.file
22756else
22757  rm -f conf$$.dir
22758  mkdir conf$$.dir 2>/dev/null
22759fi
22760if (echo >conf$$.file) 2>/dev/null; then
22761  if ln -s conf$$.file conf$$ 2>/dev/null; then
22762    as_ln_s='ln -s'
22763    # ... but there are two gotchas:
22764    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22765    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22766    # In both cases, we have to default to `cp -pR'.
22767    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22768      as_ln_s='cp -pR'
22769  elif ln conf$$.file conf$$ 2>/dev/null; then
22770    as_ln_s=ln
22771  else
22772    as_ln_s='cp -pR'
22773  fi
22774else
22775  as_ln_s='cp -pR'
22776fi
22777rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22778rmdir conf$$.dir 2>/dev/null
22779
22780
22781# as_fn_mkdir_p
22782# -------------
22783# Create "$as_dir" as a directory, including parents if necessary.
22784as_fn_mkdir_p ()
22785{
22786
22787  case $as_dir in #(
22788  -*) as_dir=./$as_dir;;
22789  esac
22790  test -d "$as_dir" || eval $as_mkdir_p || {
22791    as_dirs=
22792    while :; do
22793      case $as_dir in #(
22794      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22795      *) as_qdir=$as_dir;;
22796      esac
22797      as_dirs="'$as_qdir' $as_dirs"
22798      as_dir=`$as_dirname -- "$as_dir" ||
22799$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22800	 X"$as_dir" : 'X\(//\)[^/]' \| \
22801	 X"$as_dir" : 'X\(//\)$' \| \
22802	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22803$as_echo X"$as_dir" |
22804    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22805	    s//\1/
22806	    q
22807	  }
22808	  /^X\(\/\/\)[^/].*/{
22809	    s//\1/
22810	    q
22811	  }
22812	  /^X\(\/\/\)$/{
22813	    s//\1/
22814	    q
22815	  }
22816	  /^X\(\/\).*/{
22817	    s//\1/
22818	    q
22819	  }
22820	  s/.*/./; q'`
22821      test -d "$as_dir" && break
22822    done
22823    test -z "$as_dirs" || eval "mkdir $as_dirs"
22824  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22825
22826
22827} # as_fn_mkdir_p
22828if mkdir -p . 2>/dev/null; then
22829  as_mkdir_p='mkdir -p "$as_dir"'
22830else
22831  test -d ./-p && rmdir ./-p
22832  as_mkdir_p=false
22833fi
22834
22835
22836# as_fn_executable_p FILE
22837# -----------------------
22838# Test if FILE is an executable regular file.
22839as_fn_executable_p ()
22840{
22841  test -f "$1" && test -x "$1"
22842} # as_fn_executable_p
22843as_test_x='test -x'
22844as_executable_p=as_fn_executable_p
22845
22846# Sed expression to map a string onto a valid CPP name.
22847as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22848
22849# Sed expression to map a string onto a valid variable name.
22850as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22851
22852
22853exec 6>&1
22854## ----------------------------------- ##
22855## Main body of $CONFIG_STATUS script. ##
22856## ----------------------------------- ##
22857_ASEOF
22858test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22859
22860cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22861# Save the log message, to keep $0 and so on meaningful, and to
22862# report actual input values of CONFIG_FILES etc. instead of their
22863# values after options handling.
22864ac_log="
22865This file was extended by xdm $as_me 1.1.12, which was
22866generated by GNU Autoconf 2.69.  Invocation command line was
22867
22868  CONFIG_FILES    = $CONFIG_FILES
22869  CONFIG_HEADERS  = $CONFIG_HEADERS
22870  CONFIG_LINKS    = $CONFIG_LINKS
22871  CONFIG_COMMANDS = $CONFIG_COMMANDS
22872  $ $0 $@
22873
22874on `(hostname || uname -n) 2>/dev/null | sed 1q`
22875"
22876
22877_ACEOF
22878
22879case $ac_config_files in *"
22880"*) set x $ac_config_files; shift; ac_config_files=$*;;
22881esac
22882
22883case $ac_config_headers in *"
22884"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22885esac
22886
22887
22888cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22889# Files that config.status was made for.
22890config_files="$ac_config_files"
22891config_headers="$ac_config_headers"
22892config_commands="$ac_config_commands"
22893
22894_ACEOF
22895
22896cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22897ac_cs_usage="\
22898\`$as_me' instantiates files and other configuration actions
22899from templates according to the current configuration.  Unless the files
22900and actions are specified as TAGs, all are instantiated by default.
22901
22902Usage: $0 [OPTION]... [TAG]...
22903
22904  -h, --help       print this help, then exit
22905  -V, --version    print version number and configuration settings, then exit
22906      --config     print configuration, then exit
22907  -q, --quiet, --silent
22908                   do not print progress messages
22909  -d, --debug      don't remove temporary files
22910      --recheck    update $as_me by reconfiguring in the same conditions
22911      --file=FILE[:TEMPLATE]
22912                   instantiate the configuration file FILE
22913      --header=FILE[:TEMPLATE]
22914                   instantiate the configuration header FILE
22915
22916Configuration files:
22917$config_files
22918
22919Configuration headers:
22920$config_headers
22921
22922Configuration commands:
22923$config_commands
22924
22925Report bugs to <https://gitlab.freedesktop.org/xorg/app/xdm/issues>."
22926
22927_ACEOF
22928cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22929ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22930ac_cs_version="\\
22931xdm config.status 1.1.12
22932configured by $0, generated by GNU Autoconf 2.69,
22933  with options \\"\$ac_cs_config\\"
22934
22935Copyright (C) 2012 Free Software Foundation, Inc.
22936This config.status script is free software; the Free Software Foundation
22937gives unlimited permission to copy, distribute and modify it."
22938
22939ac_pwd='$ac_pwd'
22940srcdir='$srcdir'
22941INSTALL='$INSTALL'
22942MKDIR_P='$MKDIR_P'
22943AWK='$AWK'
22944test -n "\$AWK" || AWK=awk
22945_ACEOF
22946
22947cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22948# The default lists apply if the user does not specify any file.
22949ac_need_defaults=:
22950while test $# != 0
22951do
22952  case $1 in
22953  --*=?*)
22954    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22955    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22956    ac_shift=:
22957    ;;
22958  --*=)
22959    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22960    ac_optarg=
22961    ac_shift=:
22962    ;;
22963  *)
22964    ac_option=$1
22965    ac_optarg=$2
22966    ac_shift=shift
22967    ;;
22968  esac
22969
22970  case $ac_option in
22971  # Handling of the options.
22972  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22973    ac_cs_recheck=: ;;
22974  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22975    $as_echo "$ac_cs_version"; exit ;;
22976  --config | --confi | --conf | --con | --co | --c )
22977    $as_echo "$ac_cs_config"; exit ;;
22978  --debug | --debu | --deb | --de | --d | -d )
22979    debug=: ;;
22980  --file | --fil | --fi | --f )
22981    $ac_shift
22982    case $ac_optarg in
22983    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22984    '') as_fn_error $? "missing file argument" ;;
22985    esac
22986    as_fn_append CONFIG_FILES " '$ac_optarg'"
22987    ac_need_defaults=false;;
22988  --header | --heade | --head | --hea )
22989    $ac_shift
22990    case $ac_optarg in
22991    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22992    esac
22993    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22994    ac_need_defaults=false;;
22995  --he | --h)
22996    # Conflict between --help and --header
22997    as_fn_error $? "ambiguous option: \`$1'
22998Try \`$0 --help' for more information.";;
22999  --help | --hel | -h )
23000    $as_echo "$ac_cs_usage"; exit ;;
23001  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23002  | -silent | --silent | --silen | --sile | --sil | --si | --s)
23003    ac_cs_silent=: ;;
23004
23005  # This is an error.
23006  -*) as_fn_error $? "unrecognized option: \`$1'
23007Try \`$0 --help' for more information." ;;
23008
23009  *) as_fn_append ac_config_targets " $1"
23010     ac_need_defaults=false ;;
23011
23012  esac
23013  shift
23014done
23015
23016ac_configure_extra_args=
23017
23018if $ac_cs_silent; then
23019  exec 6>/dev/null
23020  ac_configure_extra_args="$ac_configure_extra_args --silent"
23021fi
23022
23023_ACEOF
23024cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23025if \$ac_cs_recheck; then
23026  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23027  shift
23028  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23029  CONFIG_SHELL='$SHELL'
23030  export CONFIG_SHELL
23031  exec "\$@"
23032fi
23033
23034_ACEOF
23035cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23036exec 5>>config.log
23037{
23038  echo
23039  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23040## Running $as_me. ##
23041_ASBOX
23042  $as_echo "$ac_log"
23043} >&5
23044
23045_ACEOF
23046cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23047#
23048# INIT-COMMANDS
23049#
23050AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23051
23052
23053# The HP-UX ksh and POSIX shell print the target directory to stdout
23054# if CDPATH is set.
23055(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23056
23057sed_quote_subst='$sed_quote_subst'
23058double_quote_subst='$double_quote_subst'
23059delay_variable_subst='$delay_variable_subst'
23060enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23061macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23062macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23063enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23064pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23065enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
23066shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
23067SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23068ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23069PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
23070host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23071host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23072host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23073build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23074build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23075build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23076SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23077Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23078GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23079EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23080FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23081LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23082NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23083LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23084max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23085ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23086exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23087lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23088lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23089lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23090lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
23091lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
23092reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23093reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
23094OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23095deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23096file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23097file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
23098want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
23099DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23100sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
23101AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
23102AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23103archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
23104STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23105RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23106old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23107old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23108old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23109lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23110CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23111CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23112compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23113GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23114lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23115lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
23116lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
23117lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23118lt_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"`'
23119lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
23120nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
23121lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
23122lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
23123objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
23124MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
23125lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
23126lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
23127lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
23128lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
23129lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
23130need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
23131MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
23132DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
23133NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
23134LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
23135OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
23136OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23137libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23138shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
23139extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23140archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
23141enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
23142export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
23143whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
23144compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
23145old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
23146old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23147archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
23148archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23149module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
23150module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23151with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
23152allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
23153no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
23154hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
23155hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
23156hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
23157hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
23158hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
23159hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
23160hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
23161inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
23162link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23163always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23164export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23165exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23166include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23167prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23168postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
23169file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23170variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23171need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23172need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23173version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23174runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23175shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23176shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23177libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23178library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23179soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23180install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23181postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23182postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23183finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
23184finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
23185hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
23186sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
23187configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
23188configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
23189hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
23190enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
23191enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
23192enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
23193old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
23194striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
23195
23196LTCC='$LTCC'
23197LTCFLAGS='$LTCFLAGS'
23198compiler='$compiler_DEFAULT'
23199
23200# A function that is used when there is no print builtin or printf.
23201func_fallback_echo ()
23202{
23203  eval 'cat <<_LTECHO_EOF
23204\$1
23205_LTECHO_EOF'
23206}
23207
23208# Quote evaled strings.
23209for var in SHELL \
23210ECHO \
23211PATH_SEPARATOR \
23212SED \
23213GREP \
23214EGREP \
23215FGREP \
23216LD \
23217NM \
23218LN_S \
23219lt_SP2NL \
23220lt_NL2SP \
23221reload_flag \
23222OBJDUMP \
23223deplibs_check_method \
23224file_magic_cmd \
23225file_magic_glob \
23226want_nocaseglob \
23227DLLTOOL \
23228sharedlib_from_linklib_cmd \
23229AR \
23230AR_FLAGS \
23231archiver_list_spec \
23232STRIP \
23233RANLIB \
23234CC \
23235CFLAGS \
23236compiler \
23237lt_cv_sys_global_symbol_pipe \
23238lt_cv_sys_global_symbol_to_cdecl \
23239lt_cv_sys_global_symbol_to_import \
23240lt_cv_sys_global_symbol_to_c_name_address \
23241lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23242lt_cv_nm_interface \
23243nm_file_list_spec \
23244lt_cv_truncate_bin \
23245lt_prog_compiler_no_builtin_flag \
23246lt_prog_compiler_pic \
23247lt_prog_compiler_wl \
23248lt_prog_compiler_static \
23249lt_cv_prog_compiler_c_o \
23250need_locks \
23251MANIFEST_TOOL \
23252DSYMUTIL \
23253NMEDIT \
23254LIPO \
23255OTOOL \
23256OTOOL64 \
23257shrext_cmds \
23258export_dynamic_flag_spec \
23259whole_archive_flag_spec \
23260compiler_needs_object \
23261with_gnu_ld \
23262allow_undefined_flag \
23263no_undefined_flag \
23264hardcode_libdir_flag_spec \
23265hardcode_libdir_separator \
23266exclude_expsyms \
23267include_expsyms \
23268file_list_spec \
23269variables_saved_for_relink \
23270libname_spec \
23271library_names_spec \
23272soname_spec \
23273install_override_mode \
23274finish_eval \
23275old_striplib \
23276striplib; do
23277    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23278    *[\\\\\\\`\\"\\\$]*)
23279      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23280      ;;
23281    *)
23282      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23283      ;;
23284    esac
23285done
23286
23287# Double-quote double-evaled strings.
23288for var in reload_cmds \
23289old_postinstall_cmds \
23290old_postuninstall_cmds \
23291old_archive_cmds \
23292extract_expsyms_cmds \
23293old_archive_from_new_cmds \
23294old_archive_from_expsyms_cmds \
23295archive_cmds \
23296archive_expsym_cmds \
23297module_cmds \
23298module_expsym_cmds \
23299export_symbols_cmds \
23300prelink_cmds \
23301postlink_cmds \
23302postinstall_cmds \
23303postuninstall_cmds \
23304finish_cmds \
23305sys_lib_search_path_spec \
23306configure_time_dlsearch_path \
23307configure_time_lt_sys_library_path; do
23308    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23309    *[\\\\\\\`\\"\\\$]*)
23310      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23311      ;;
23312    *)
23313      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23314      ;;
23315    esac
23316done
23317
23318ac_aux_dir='$ac_aux_dir'
23319
23320# See if we are running on zsh, and set the options that allow our
23321# commands through without removal of \ escapes INIT.
23322if test -n "\${ZSH_VERSION+set}"; then
23323   setopt NO_GLOB_SUBST
23324fi
23325
23326
23327    PACKAGE='$PACKAGE'
23328    VERSION='$VERSION'
23329    RM='$RM'
23330    ofile='$ofile'
23331
23332
23333
23334
23335_ACEOF
23336
23337cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23338
23339# Handling of arguments.
23340for ac_config_target in $ac_config_targets
23341do
23342  case $ac_config_target in
23343    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23344    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23345    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23346    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23347    "app-defaults/Makefile") CONFIG_FILES="$CONFIG_FILES app-defaults/Makefile" ;;
23348    "chooser/Makefile") CONFIG_FILES="$CONFIG_FILES chooser/Makefile" ;;
23349    "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
23350    "greeter/Makefile") CONFIG_FILES="$CONFIG_FILES greeter/Makefile" ;;
23351    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
23352    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23353    "xdm/Makefile") CONFIG_FILES="$CONFIG_FILES xdm/Makefile" ;;
23354    "xdmshell/Makefile") CONFIG_FILES="$CONFIG_FILES xdmshell/Makefile" ;;
23355
23356  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23357  esac
23358done
23359
23360
23361# If the user did not use the arguments to specify the items to instantiate,
23362# then the envvar interface is used.  Set only those that are not.
23363# We use the long form for the default assignment because of an extremely
23364# bizarre bug on SunOS 4.1.3.
23365if $ac_need_defaults; then
23366  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23367  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23368  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23369fi
23370
23371# Have a temporary directory for convenience.  Make it in the build tree
23372# simply because there is no reason against having it here, and in addition,
23373# creating and moving files from /tmp can sometimes cause problems.
23374# Hook for its removal unless debugging.
23375# Note that there is a small window in which the directory will not be cleaned:
23376# after its creation but before its name has been assigned to `$tmp'.
23377$debug ||
23378{
23379  tmp= ac_tmp=
23380  trap 'exit_status=$?
23381  : "${ac_tmp:=$tmp}"
23382  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23383' 0
23384  trap 'as_fn_exit 1' 1 2 13 15
23385}
23386# Create a (secure) tmp directory for tmp files.
23387
23388{
23389  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23390  test -d "$tmp"
23391}  ||
23392{
23393  tmp=./conf$$-$RANDOM
23394  (umask 077 && mkdir "$tmp")
23395} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23396ac_tmp=$tmp
23397
23398# Set up the scripts for CONFIG_FILES section.
23399# No need to generate them if there are no CONFIG_FILES.
23400# This happens for instance with `./config.status config.h'.
23401if test -n "$CONFIG_FILES"; then
23402
23403
23404ac_cr=`echo X | tr X '\015'`
23405# On cygwin, bash can eat \r inside `` if the user requested igncr.
23406# But we know of no other shell where ac_cr would be empty at this
23407# point, so we can use a bashism as a fallback.
23408if test "x$ac_cr" = x; then
23409  eval ac_cr=\$\'\\r\'
23410fi
23411ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23412if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23413  ac_cs_awk_cr='\\r'
23414else
23415  ac_cs_awk_cr=$ac_cr
23416fi
23417
23418echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23419_ACEOF
23420
23421
23422{
23423  echo "cat >conf$$subs.awk <<_ACEOF" &&
23424  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23425  echo "_ACEOF"
23426} >conf$$subs.sh ||
23427  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23428ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23429ac_delim='%!_!# '
23430for ac_last_try in false false false false false :; do
23431  . ./conf$$subs.sh ||
23432    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23433
23434  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23435  if test $ac_delim_n = $ac_delim_num; then
23436    break
23437  elif $ac_last_try; then
23438    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23439  else
23440    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23441  fi
23442done
23443rm -f conf$$subs.sh
23444
23445cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23446cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23447_ACEOF
23448sed -n '
23449h
23450s/^/S["/; s/!.*/"]=/
23451p
23452g
23453s/^[^!]*!//
23454:repl
23455t repl
23456s/'"$ac_delim"'$//
23457t delim
23458:nl
23459h
23460s/\(.\{148\}\)..*/\1/
23461t more1
23462s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23463p
23464n
23465b repl
23466:more1
23467s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23468p
23469g
23470s/.\{148\}//
23471t nl
23472:delim
23473h
23474s/\(.\{148\}\)..*/\1/
23475t more2
23476s/["\\]/\\&/g; s/^/"/; s/$/"/
23477p
23478b
23479:more2
23480s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23481p
23482g
23483s/.\{148\}//
23484t delim
23485' <conf$$subs.awk | sed '
23486/^[^""]/{
23487  N
23488  s/\n//
23489}
23490' >>$CONFIG_STATUS || ac_write_fail=1
23491rm -f conf$$subs.awk
23492cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23493_ACAWK
23494cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23495  for (key in S) S_is_set[key] = 1
23496  FS = ""
23497
23498}
23499{
23500  line = $ 0
23501  nfields = split(line, field, "@")
23502  substed = 0
23503  len = length(field[1])
23504  for (i = 2; i < nfields; i++) {
23505    key = field[i]
23506    keylen = length(key)
23507    if (S_is_set[key]) {
23508      value = S[key]
23509      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23510      len += length(value) + length(field[++i])
23511      substed = 1
23512    } else
23513      len += 1 + keylen
23514  }
23515
23516  print line
23517}
23518
23519_ACAWK
23520_ACEOF
23521cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23522if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23523  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23524else
23525  cat
23526fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23527  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23528_ACEOF
23529
23530# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23531# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23532# trailing colons and then remove the whole line if VPATH becomes empty
23533# (actually we leave an empty line to preserve line numbers).
23534if test "x$srcdir" = x.; then
23535  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
23536h
23537s///
23538s/^/:/
23539s/[	 ]*$/:/
23540s/:\$(srcdir):/:/g
23541s/:\${srcdir}:/:/g
23542s/:@srcdir@:/:/g
23543s/^:*//
23544s/:*$//
23545x
23546s/\(=[	 ]*\).*/\1/
23547G
23548s/\n//
23549s/^[^=]*=[	 ]*$//
23550}'
23551fi
23552
23553cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23554fi # test -n "$CONFIG_FILES"
23555
23556# Set up the scripts for CONFIG_HEADERS section.
23557# No need to generate them if there are no CONFIG_HEADERS.
23558# This happens for instance with `./config.status Makefile'.
23559if test -n "$CONFIG_HEADERS"; then
23560cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23561BEGIN {
23562_ACEOF
23563
23564# Transform confdefs.h into an awk script `defines.awk', embedded as
23565# here-document in config.status, that substitutes the proper values into
23566# config.h.in to produce config.h.
23567
23568# Create a delimiter string that does not exist in confdefs.h, to ease
23569# handling of long lines.
23570ac_delim='%!_!# '
23571for ac_last_try in false false :; do
23572  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23573  if test -z "$ac_tt"; then
23574    break
23575  elif $ac_last_try; then
23576    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23577  else
23578    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23579  fi
23580done
23581
23582# For the awk script, D is an array of macro values keyed by name,
23583# likewise P contains macro parameters if any.  Preserve backslash
23584# newline sequences.
23585
23586ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23587sed -n '
23588s/.\{148\}/&'"$ac_delim"'/g
23589t rset
23590:rset
23591s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
23592t def
23593d
23594:def
23595s/\\$//
23596t bsnl
23597s/["\\]/\\&/g
23598s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23599D["\1"]=" \3"/p
23600s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
23601d
23602:bsnl
23603s/["\\]/\\&/g
23604s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23605D["\1"]=" \3\\\\\\n"\\/p
23606t cont
23607s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23608t cont
23609d
23610:cont
23611n
23612s/.\{148\}/&'"$ac_delim"'/g
23613t clear
23614:clear
23615s/\\$//
23616t bsnlc
23617s/["\\]/\\&/g; s/^/"/; s/$/"/p
23618d
23619:bsnlc
23620s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23621b cont
23622' <confdefs.h | sed '
23623s/'"$ac_delim"'/"\\\
23624"/g' >>$CONFIG_STATUS || ac_write_fail=1
23625
23626cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23627  for (key in D) D_is_set[key] = 1
23628  FS = ""
23629}
23630/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23631  line = \$ 0
23632  split(line, arg, " ")
23633  if (arg[1] == "#") {
23634    defundef = arg[2]
23635    mac1 = arg[3]
23636  } else {
23637    defundef = substr(arg[1], 2)
23638    mac1 = arg[2]
23639  }
23640  split(mac1, mac2, "(") #)
23641  macro = mac2[1]
23642  prefix = substr(line, 1, index(line, defundef) - 1)
23643  if (D_is_set[macro]) {
23644    # Preserve the white space surrounding the "#".
23645    print prefix "define", macro P[macro] D[macro]
23646    next
23647  } else {
23648    # Replace #undef with comments.  This is necessary, for example,
23649    # in the case of _POSIX_SOURCE, which is predefined and required
23650    # on some systems where configure will not decide to define it.
23651    if (defundef == "undef") {
23652      print "/*", prefix defundef, macro, "*/"
23653      next
23654    }
23655  }
23656}
23657{ print }
23658_ACAWK
23659_ACEOF
23660cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23661  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23662fi # test -n "$CONFIG_HEADERS"
23663
23664
23665eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
23666shift
23667for ac_tag
23668do
23669  case $ac_tag in
23670  :[FHLC]) ac_mode=$ac_tag; continue;;
23671  esac
23672  case $ac_mode$ac_tag in
23673  :[FHL]*:*);;
23674  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23675  :[FH]-) ac_tag=-:-;;
23676  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23677  esac
23678  ac_save_IFS=$IFS
23679  IFS=:
23680  set x $ac_tag
23681  IFS=$ac_save_IFS
23682  shift
23683  ac_file=$1
23684  shift
23685
23686  case $ac_mode in
23687  :L) ac_source=$1;;
23688  :[FH])
23689    ac_file_inputs=
23690    for ac_f
23691    do
23692      case $ac_f in
23693      -) ac_f="$ac_tmp/stdin";;
23694      *) # Look for the file first in the build tree, then in the source tree
23695	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
23696	 # because $ac_f cannot contain `:'.
23697	 test -f "$ac_f" ||
23698	   case $ac_f in
23699	   [\\/$]*) false;;
23700	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23701	   esac ||
23702	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23703      esac
23704      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23705      as_fn_append ac_file_inputs " '$ac_f'"
23706    done
23707
23708    # Let's still pretend it is `configure' which instantiates (i.e., don't
23709    # use $as_me), people would be surprised to read:
23710    #    /* config.h.  Generated by config.status.  */
23711    configure_input='Generated from '`
23712	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23713	`' by configure.'
23714    if test x"$ac_file" != x-; then
23715      configure_input="$ac_file.  $configure_input"
23716      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23717$as_echo "$as_me: creating $ac_file" >&6;}
23718    fi
23719    # Neutralize special characters interpreted by sed in replacement strings.
23720    case $configure_input in #(
23721    *\&* | *\|* | *\\* )
23722       ac_sed_conf_input=`$as_echo "$configure_input" |
23723       sed 's/[\\\\&|]/\\\\&/g'`;; #(
23724    *) ac_sed_conf_input=$configure_input;;
23725    esac
23726
23727    case $ac_tag in
23728    *:-:* | *:-) cat >"$ac_tmp/stdin" \
23729      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23730    esac
23731    ;;
23732  esac
23733
23734  ac_dir=`$as_dirname -- "$ac_file" ||
23735$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23736	 X"$ac_file" : 'X\(//\)[^/]' \| \
23737	 X"$ac_file" : 'X\(//\)$' \| \
23738	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23739$as_echo X"$ac_file" |
23740    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23741	    s//\1/
23742	    q
23743	  }
23744	  /^X\(\/\/\)[^/].*/{
23745	    s//\1/
23746	    q
23747	  }
23748	  /^X\(\/\/\)$/{
23749	    s//\1/
23750	    q
23751	  }
23752	  /^X\(\/\).*/{
23753	    s//\1/
23754	    q
23755	  }
23756	  s/.*/./; q'`
23757  as_dir="$ac_dir"; as_fn_mkdir_p
23758  ac_builddir=.
23759
23760case "$ac_dir" in
23761.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23762*)
23763  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23764  # A ".." for each directory in $ac_dir_suffix.
23765  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23766  case $ac_top_builddir_sub in
23767  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23768  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23769  esac ;;
23770esac
23771ac_abs_top_builddir=$ac_pwd
23772ac_abs_builddir=$ac_pwd$ac_dir_suffix
23773# for backward compatibility:
23774ac_top_builddir=$ac_top_build_prefix
23775
23776case $srcdir in
23777  .)  # We are building in place.
23778    ac_srcdir=.
23779    ac_top_srcdir=$ac_top_builddir_sub
23780    ac_abs_top_srcdir=$ac_pwd ;;
23781  [\\/]* | ?:[\\/]* )  # Absolute name.
23782    ac_srcdir=$srcdir$ac_dir_suffix;
23783    ac_top_srcdir=$srcdir
23784    ac_abs_top_srcdir=$srcdir ;;
23785  *) # Relative name.
23786    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23787    ac_top_srcdir=$ac_top_build_prefix$srcdir
23788    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23789esac
23790ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23791
23792
23793  case $ac_mode in
23794  :F)
23795  #
23796  # CONFIG_FILE
23797  #
23798
23799  case $INSTALL in
23800  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23801  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23802  esac
23803  ac_MKDIR_P=$MKDIR_P
23804  case $MKDIR_P in
23805  [\\/$]* | ?:[\\/]* ) ;;
23806  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23807  esac
23808_ACEOF
23809
23810cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23811# If the template does not know about datarootdir, expand it.
23812# FIXME: This hack should be removed a few years after 2.60.
23813ac_datarootdir_hack=; ac_datarootdir_seen=
23814ac_sed_dataroot='
23815/datarootdir/ {
23816  p
23817  q
23818}
23819/@datadir@/p
23820/@docdir@/p
23821/@infodir@/p
23822/@localedir@/p
23823/@mandir@/p'
23824case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23825*datarootdir*) ac_datarootdir_seen=yes;;
23826*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23827  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23828$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23829_ACEOF
23830cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23831  ac_datarootdir_hack='
23832  s&@datadir@&$datadir&g
23833  s&@docdir@&$docdir&g
23834  s&@infodir@&$infodir&g
23835  s&@localedir@&$localedir&g
23836  s&@mandir@&$mandir&g
23837  s&\\\${datarootdir}&$datarootdir&g' ;;
23838esac
23839_ACEOF
23840
23841# Neutralize VPATH when `$srcdir' = `.'.
23842# Shell code in configure.ac might set extrasub.
23843# FIXME: do we really want to maintain this feature?
23844cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23845ac_sed_extra="$ac_vpsub
23846$extrasub
23847_ACEOF
23848cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23849:t
23850/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23851s|@configure_input@|$ac_sed_conf_input|;t t
23852s&@top_builddir@&$ac_top_builddir_sub&;t t
23853s&@top_build_prefix@&$ac_top_build_prefix&;t t
23854s&@srcdir@&$ac_srcdir&;t t
23855s&@abs_srcdir@&$ac_abs_srcdir&;t t
23856s&@top_srcdir@&$ac_top_srcdir&;t t
23857s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23858s&@builddir@&$ac_builddir&;t t
23859s&@abs_builddir@&$ac_abs_builddir&;t t
23860s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23861s&@INSTALL@&$ac_INSTALL&;t t
23862s&@MKDIR_P@&$ac_MKDIR_P&;t t
23863$ac_datarootdir_hack
23864"
23865eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23866  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23867
23868test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23869  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23870  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
23871      "$ac_tmp/out"`; test -z "$ac_out"; } &&
23872  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23873which seems to be undefined.  Please make sure it is defined" >&5
23874$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23875which seems to be undefined.  Please make sure it is defined" >&2;}
23876
23877  rm -f "$ac_tmp/stdin"
23878  case $ac_file in
23879  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23880  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23881  esac \
23882  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23883 ;;
23884  :H)
23885  #
23886  # CONFIG_HEADER
23887  #
23888  if test x"$ac_file" != x-; then
23889    {
23890      $as_echo "/* $configure_input  */" \
23891      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23892    } >"$ac_tmp/config.h" \
23893      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23894    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23895      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23896$as_echo "$as_me: $ac_file is unchanged" >&6;}
23897    else
23898      rm -f "$ac_file"
23899      mv "$ac_tmp/config.h" "$ac_file" \
23900	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
23901    fi
23902  else
23903    $as_echo "/* $configure_input  */" \
23904      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23905      || as_fn_error $? "could not create -" "$LINENO" 5
23906  fi
23907# Compute "$ac_file"'s index in $config_headers.
23908_am_arg="$ac_file"
23909_am_stamp_count=1
23910for _am_header in $config_headers :; do
23911  case $_am_header in
23912    $_am_arg | $_am_arg:* )
23913      break ;;
23914    * )
23915      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23916  esac
23917done
23918echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23919$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23920	 X"$_am_arg" : 'X\(//\)[^/]' \| \
23921	 X"$_am_arg" : 'X\(//\)$' \| \
23922	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23923$as_echo X"$_am_arg" |
23924    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23925	    s//\1/
23926	    q
23927	  }
23928	  /^X\(\/\/\)[^/].*/{
23929	    s//\1/
23930	    q
23931	  }
23932	  /^X\(\/\/\)$/{
23933	    s//\1/
23934	    q
23935	  }
23936	  /^X\(\/\).*/{
23937	    s//\1/
23938	    q
23939	  }
23940	  s/.*/./; q'`/stamp-h$_am_stamp_count
23941 ;;
23942
23943  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23944$as_echo "$as_me: executing $ac_file commands" >&6;}
23945 ;;
23946  esac
23947
23948
23949  case $ac_file$ac_mode in
23950    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23951  # Older Autoconf quotes --file arguments for eval, but not when files
23952  # are listed without --file.  Let's play safe and only enable the eval
23953  # if we detect the quoting.
23954  case $CONFIG_FILES in
23955  *\'*) eval set x "$CONFIG_FILES" ;;
23956  *)   set x $CONFIG_FILES ;;
23957  esac
23958  shift
23959  for mf
23960  do
23961    # Strip MF so we end up with the name of the file.
23962    mf=`echo "$mf" | sed -e 's/:.*$//'`
23963    # Check whether this is an Automake generated Makefile or not.
23964    # We used to match only the files named 'Makefile.in', but
23965    # some people rename them; so instead we look at the file content.
23966    # Grep'ing the first line is not enough: some people post-process
23967    # each Makefile.in and add a new line on top of each file to say so.
23968    # Grep'ing the whole file is not good either: AIX grep has a line
23969    # limit of 2048, but all sed's we know have understand at least 4000.
23970    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23971      dirpart=`$as_dirname -- "$mf" ||
23972$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23973	 X"$mf" : 'X\(//\)[^/]' \| \
23974	 X"$mf" : 'X\(//\)$' \| \
23975	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23976$as_echo X"$mf" |
23977    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23978	    s//\1/
23979	    q
23980	  }
23981	  /^X\(\/\/\)[^/].*/{
23982	    s//\1/
23983	    q
23984	  }
23985	  /^X\(\/\/\)$/{
23986	    s//\1/
23987	    q
23988	  }
23989	  /^X\(\/\).*/{
23990	    s//\1/
23991	    q
23992	  }
23993	  s/.*/./; q'`
23994    else
23995      continue
23996    fi
23997    # Extract the definition of DEPDIR, am__include, and am__quote
23998    # from the Makefile without running 'make'.
23999    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24000    test -z "$DEPDIR" && continue
24001    am__include=`sed -n 's/^am__include = //p' < "$mf"`
24002    test -z "$am__include" && continue
24003    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24004    # Find all dependency output files, they are included files with
24005    # $(DEPDIR) in their names.  We invoke sed twice because it is the
24006    # simplest approach to changing $(DEPDIR) to its actual value in the
24007    # expansion.
24008    for file in `sed -n "
24009      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24010	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
24011      # Make sure the directory exists.
24012      test -f "$dirpart/$file" && continue
24013      fdir=`$as_dirname -- "$file" ||
24014$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24015	 X"$file" : 'X\(//\)[^/]' \| \
24016	 X"$file" : 'X\(//\)$' \| \
24017	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24018$as_echo X"$file" |
24019    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24020	    s//\1/
24021	    q
24022	  }
24023	  /^X\(\/\/\)[^/].*/{
24024	    s//\1/
24025	    q
24026	  }
24027	  /^X\(\/\/\)$/{
24028	    s//\1/
24029	    q
24030	  }
24031	  /^X\(\/\).*/{
24032	    s//\1/
24033	    q
24034	  }
24035	  s/.*/./; q'`
24036      as_dir=$dirpart/$fdir; as_fn_mkdir_p
24037      # echo "creating $dirpart/$file"
24038      echo '# dummy' > "$dirpart/$file"
24039    done
24040  done
24041}
24042 ;;
24043    "libtool":C)
24044
24045    # See if we are running on zsh, and set the options that allow our
24046    # commands through without removal of \ escapes.
24047    if test -n "${ZSH_VERSION+set}"; then
24048      setopt NO_GLOB_SUBST
24049    fi
24050
24051    cfgfile=${ofile}T
24052    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24053    $RM "$cfgfile"
24054
24055    cat <<_LT_EOF >> "$cfgfile"
24056#! $SHELL
24057# Generated automatically by $as_me ($PACKAGE) $VERSION
24058# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24059# NOTE: Changes made to this file will be lost: look at ltmain.sh.
24060
24061# Provide generalized library-building support services.
24062# Written by Gordon Matzigkeit, 1996
24063
24064# Copyright (C) 2014 Free Software Foundation, Inc.
24065# This is free software; see the source for copying conditions.  There is NO
24066# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24067
24068# GNU Libtool is free software; you can redistribute it and/or modify
24069# it under the terms of the GNU General Public License as published by
24070# the Free Software Foundation; either version 2 of of the License, or
24071# (at your option) any later version.
24072#
24073# As a special exception to the GNU General Public License, if you
24074# distribute this file as part of a program or library that is built
24075# using GNU Libtool, you may include this file under the  same
24076# distribution terms that you use for the rest of that program.
24077#
24078# GNU Libtool is distributed in the hope that it will be useful, but
24079# WITHOUT ANY WARRANTY; without even the implied warranty of
24080# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24081# GNU General Public License for more details.
24082#
24083# You should have received a copy of the GNU General Public License
24084# along with this program.  If not, see <http://www.gnu.org/licenses/>.
24085
24086
24087# The names of the tagged configurations supported by this script.
24088available_tags=''
24089
24090# Configured defaults for sys_lib_dlsearch_path munging.
24091: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
24092
24093# ### BEGIN LIBTOOL CONFIG
24094
24095# Whether or not to build static libraries.
24096build_old_libs=$enable_static
24097
24098# Which release of libtool.m4 was used?
24099macro_version=$macro_version
24100macro_revision=$macro_revision
24101
24102# Whether or not to build shared libraries.
24103build_libtool_libs=$enable_shared
24104
24105# What type of objects to build.
24106pic_mode=$pic_mode
24107
24108# Whether or not to optimize for fast installation.
24109fast_install=$enable_fast_install
24110
24111# Shared archive member basename,for filename based shared library versioning on AIX.
24112shared_archive_member_spec=$shared_archive_member_spec
24113
24114# Shell to use when invoking shell scripts.
24115SHELL=$lt_SHELL
24116
24117# An echo program that protects backslashes.
24118ECHO=$lt_ECHO
24119
24120# The PATH separator for the build system.
24121PATH_SEPARATOR=$lt_PATH_SEPARATOR
24122
24123# The host system.
24124host_alias=$host_alias
24125host=$host
24126host_os=$host_os
24127
24128# The build system.
24129build_alias=$build_alias
24130build=$build
24131build_os=$build_os
24132
24133# A sed program that does not truncate output.
24134SED=$lt_SED
24135
24136# Sed that helps us avoid accidentally triggering echo(1) options like -n.
24137Xsed="\$SED -e 1s/^X//"
24138
24139# A grep program that handles long lines.
24140GREP=$lt_GREP
24141
24142# An ERE matcher.
24143EGREP=$lt_EGREP
24144
24145# A literal string matcher.
24146FGREP=$lt_FGREP
24147
24148# A BSD- or MS-compatible name lister.
24149NM=$lt_NM
24150
24151# Whether we need soft or hard links.
24152LN_S=$lt_LN_S
24153
24154# What is the maximum length of a command?
24155max_cmd_len=$max_cmd_len
24156
24157# Object file suffix (normally "o").
24158objext=$ac_objext
24159
24160# Executable file suffix (normally "").
24161exeext=$exeext
24162
24163# whether the shell understands "unset".
24164lt_unset=$lt_unset
24165
24166# turn spaces into newlines.
24167SP2NL=$lt_lt_SP2NL
24168
24169# turn newlines into spaces.
24170NL2SP=$lt_lt_NL2SP
24171
24172# convert \$build file names to \$host format.
24173to_host_file_cmd=$lt_cv_to_host_file_cmd
24174
24175# convert \$build files to toolchain format.
24176to_tool_file_cmd=$lt_cv_to_tool_file_cmd
24177
24178# An object symbol dumper.
24179OBJDUMP=$lt_OBJDUMP
24180
24181# Method to check whether dependent libraries are shared objects.
24182deplibs_check_method=$lt_deplibs_check_method
24183
24184# Command to use when deplibs_check_method = "file_magic".
24185file_magic_cmd=$lt_file_magic_cmd
24186
24187# How to find potential files when deplibs_check_method = "file_magic".
24188file_magic_glob=$lt_file_magic_glob
24189
24190# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
24191want_nocaseglob=$lt_want_nocaseglob
24192
24193# DLL creation program.
24194DLLTOOL=$lt_DLLTOOL
24195
24196# Command to associate shared and link libraries.
24197sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
24198
24199# The archiver.
24200AR=$lt_AR
24201
24202# Flags to create an archive.
24203AR_FLAGS=$lt_AR_FLAGS
24204
24205# How to feed a file listing to the archiver.
24206archiver_list_spec=$lt_archiver_list_spec
24207
24208# A symbol stripping program.
24209STRIP=$lt_STRIP
24210
24211# Commands used to install an old-style archive.
24212RANLIB=$lt_RANLIB
24213old_postinstall_cmds=$lt_old_postinstall_cmds
24214old_postuninstall_cmds=$lt_old_postuninstall_cmds
24215
24216# Whether to use a lock for old archive extraction.
24217lock_old_archive_extraction=$lock_old_archive_extraction
24218
24219# A C compiler.
24220LTCC=$lt_CC
24221
24222# LTCC compiler flags.
24223LTCFLAGS=$lt_CFLAGS
24224
24225# Take the output of nm and produce a listing of raw symbols and C names.
24226global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24227
24228# Transform the output of nm in a proper C declaration.
24229global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24230
24231# Transform the output of nm into a list of symbols to manually relocate.
24232global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
24233
24234# Transform the output of nm in a C name address pair.
24235global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24236
24237# Transform the output of nm in a C name address pair when lib prefix is needed.
24238global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24239
24240# The name lister interface.
24241nm_interface=$lt_lt_cv_nm_interface
24242
24243# Specify filename containing input files for \$NM.
24244nm_file_list_spec=$lt_nm_file_list_spec
24245
24246# The root where to search for dependent libraries,and where our libraries should be installed.
24247lt_sysroot=$lt_sysroot
24248
24249# Command to truncate a binary pipe.
24250lt_truncate_bin=$lt_lt_cv_truncate_bin
24251
24252# The name of the directory that contains temporary libtool files.
24253objdir=$objdir
24254
24255# Used to examine libraries when file_magic_cmd begins with "file".
24256MAGIC_CMD=$MAGIC_CMD
24257
24258# Must we lock files when doing compilation?
24259need_locks=$lt_need_locks
24260
24261# Manifest tool.
24262MANIFEST_TOOL=$lt_MANIFEST_TOOL
24263
24264# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24265DSYMUTIL=$lt_DSYMUTIL
24266
24267# Tool to change global to local symbols on Mac OS X.
24268NMEDIT=$lt_NMEDIT
24269
24270# Tool to manipulate fat objects and archives on Mac OS X.
24271LIPO=$lt_LIPO
24272
24273# ldd/readelf like tool for Mach-O binaries on Mac OS X.
24274OTOOL=$lt_OTOOL
24275
24276# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24277OTOOL64=$lt_OTOOL64
24278
24279# Old archive suffix (normally "a").
24280libext=$libext
24281
24282# Shared library suffix (normally ".so").
24283shrext_cmds=$lt_shrext_cmds
24284
24285# The commands to extract the exported symbol list from a shared archive.
24286extract_expsyms_cmds=$lt_extract_expsyms_cmds
24287
24288# Variables whose values should be saved in libtool wrapper scripts and
24289# restored at link time.
24290variables_saved_for_relink=$lt_variables_saved_for_relink
24291
24292# Do we need the "lib" prefix for modules?
24293need_lib_prefix=$need_lib_prefix
24294
24295# Do we need a version for libraries?
24296need_version=$need_version
24297
24298# Library versioning type.
24299version_type=$version_type
24300
24301# Shared library runtime path variable.
24302runpath_var=$runpath_var
24303
24304# Shared library path variable.
24305shlibpath_var=$shlibpath_var
24306
24307# Is shlibpath searched before the hard-coded library search path?
24308shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24309
24310# Format of library name prefix.
24311libname_spec=$lt_libname_spec
24312
24313# List of archive names.  First name is the real one, the rest are links.
24314# The last name is the one that the linker finds with -lNAME
24315library_names_spec=$lt_library_names_spec
24316
24317# The coded name of the library, if different from the real name.
24318soname_spec=$lt_soname_spec
24319
24320# Permission mode override for installation of shared libraries.
24321install_override_mode=$lt_install_override_mode
24322
24323# Command to use after installation of a shared archive.
24324postinstall_cmds=$lt_postinstall_cmds
24325
24326# Command to use after uninstallation of a shared archive.
24327postuninstall_cmds=$lt_postuninstall_cmds
24328
24329# Commands used to finish a libtool library installation in a directory.
24330finish_cmds=$lt_finish_cmds
24331
24332# As "finish_cmds", except a single script fragment to be evaled but
24333# not shown.
24334finish_eval=$lt_finish_eval
24335
24336# Whether we should hardcode library paths into libraries.
24337hardcode_into_libs=$hardcode_into_libs
24338
24339# Compile-time system search path for libraries.
24340sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24341
24342# Detected run-time system search path for libraries.
24343sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
24344
24345# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
24346configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
24347
24348# Whether dlopen is supported.
24349dlopen_support=$enable_dlopen
24350
24351# Whether dlopen of programs is supported.
24352dlopen_self=$enable_dlopen_self
24353
24354# Whether dlopen of statically linked programs is supported.
24355dlopen_self_static=$enable_dlopen_self_static
24356
24357# Commands to strip libraries.
24358old_striplib=$lt_old_striplib
24359striplib=$lt_striplib
24360
24361
24362# The linker used to build libraries.
24363LD=$lt_LD
24364
24365# How to create reloadable object files.
24366reload_flag=$lt_reload_flag
24367reload_cmds=$lt_reload_cmds
24368
24369# Commands used to build an old-style archive.
24370old_archive_cmds=$lt_old_archive_cmds
24371
24372# A language specific compiler.
24373CC=$lt_compiler
24374
24375# Is the compiler the GNU compiler?
24376with_gcc=$GCC
24377
24378# Compiler flag to turn off builtin functions.
24379no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24380
24381# Additional compiler flags for building library objects.
24382pic_flag=$lt_lt_prog_compiler_pic
24383
24384# How to pass a linker flag through the compiler.
24385wl=$lt_lt_prog_compiler_wl
24386
24387# Compiler flag to prevent dynamic linking.
24388link_static_flag=$lt_lt_prog_compiler_static
24389
24390# Does compiler simultaneously support -c and -o options?
24391compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24392
24393# Whether or not to add -lc for building shared libraries.
24394build_libtool_need_lc=$archive_cmds_need_lc
24395
24396# Whether or not to disallow shared libs when runtime libs are static.
24397allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24398
24399# Compiler flag to allow reflexive dlopens.
24400export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24401
24402# Compiler flag to generate shared objects directly from archives.
24403whole_archive_flag_spec=$lt_whole_archive_flag_spec
24404
24405# Whether the compiler copes with passing no objects directly.
24406compiler_needs_object=$lt_compiler_needs_object
24407
24408# Create an old-style archive from a shared archive.
24409old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24410
24411# Create a temporary old-style archive to link instead of a shared archive.
24412old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24413
24414# Commands used to build a shared archive.
24415archive_cmds=$lt_archive_cmds
24416archive_expsym_cmds=$lt_archive_expsym_cmds
24417
24418# Commands used to build a loadable module if different from building
24419# a shared archive.
24420module_cmds=$lt_module_cmds
24421module_expsym_cmds=$lt_module_expsym_cmds
24422
24423# Whether we are building with GNU ld or not.
24424with_gnu_ld=$lt_with_gnu_ld
24425
24426# Flag that allows shared libraries with undefined symbols to be built.
24427allow_undefined_flag=$lt_allow_undefined_flag
24428
24429# Flag that enforces no undefined symbols.
24430no_undefined_flag=$lt_no_undefined_flag
24431
24432# Flag to hardcode \$libdir into a binary during linking.
24433# This must work even if \$libdir does not exist
24434hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24435
24436# Whether we need a single "-rpath" flag with a separated argument.
24437hardcode_libdir_separator=$lt_hardcode_libdir_separator
24438
24439# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24440# DIR into the resulting binary.
24441hardcode_direct=$hardcode_direct
24442
24443# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24444# DIR into the resulting binary and the resulting library dependency is
24445# "absolute",i.e impossible to change by setting \$shlibpath_var if the
24446# library is relocated.
24447hardcode_direct_absolute=$hardcode_direct_absolute
24448
24449# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24450# into the resulting binary.
24451hardcode_minus_L=$hardcode_minus_L
24452
24453# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24454# into the resulting binary.
24455hardcode_shlibpath_var=$hardcode_shlibpath_var
24456
24457# Set to "yes" if building a shared library automatically hardcodes DIR
24458# into the library and all subsequent libraries and executables linked
24459# against it.
24460hardcode_automatic=$hardcode_automatic
24461
24462# Set to yes if linker adds runtime paths of dependent libraries
24463# to runtime path list.
24464inherit_rpath=$inherit_rpath
24465
24466# Whether libtool must link a program against all its dependency libraries.
24467link_all_deplibs=$link_all_deplibs
24468
24469# Set to "yes" if exported symbols are required.
24470always_export_symbols=$always_export_symbols
24471
24472# The commands to list exported symbols.
24473export_symbols_cmds=$lt_export_symbols_cmds
24474
24475# Symbols that should not be listed in the preloaded symbols.
24476exclude_expsyms=$lt_exclude_expsyms
24477
24478# Symbols that must always be exported.
24479include_expsyms=$lt_include_expsyms
24480
24481# Commands necessary for linking programs (against libraries) with templates.
24482prelink_cmds=$lt_prelink_cmds
24483
24484# Commands necessary for finishing linking programs.
24485postlink_cmds=$lt_postlink_cmds
24486
24487# Specify filename containing input files.
24488file_list_spec=$lt_file_list_spec
24489
24490# How to hardcode a shared library path into an executable.
24491hardcode_action=$hardcode_action
24492
24493# ### END LIBTOOL CONFIG
24494
24495_LT_EOF
24496
24497    cat <<'_LT_EOF' >> "$cfgfile"
24498
24499# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
24500
24501# func_munge_path_list VARIABLE PATH
24502# -----------------------------------
24503# VARIABLE is name of variable containing _space_ separated list of
24504# directories to be munged by the contents of PATH, which is string
24505# having a format:
24506# "DIR[:DIR]:"
24507#       string "DIR[ DIR]" will be prepended to VARIABLE
24508# ":DIR[:DIR]"
24509#       string "DIR[ DIR]" will be appended to VARIABLE
24510# "DIRP[:DIRP]::[DIRA:]DIRA"
24511#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
24512#       "DIRA[ DIRA]" will be appended to VARIABLE
24513# "DIR[:DIR]"
24514#       VARIABLE will be replaced by "DIR[ DIR]"
24515func_munge_path_list ()
24516{
24517    case x$2 in
24518    x)
24519        ;;
24520    *:)
24521        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
24522        ;;
24523    x:*)
24524        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
24525        ;;
24526    *::*)
24527        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
24528        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
24529        ;;
24530    *)
24531        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
24532        ;;
24533    esac
24534}
24535
24536
24537# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
24538func_cc_basename ()
24539{
24540    for cc_temp in $*""; do
24541      case $cc_temp in
24542        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24543        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24544        \-*) ;;
24545        *) break;;
24546      esac
24547    done
24548    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24549}
24550
24551
24552# ### END FUNCTIONS SHARED WITH CONFIGURE
24553
24554_LT_EOF
24555
24556  case $host_os in
24557  aix3*)
24558    cat <<\_LT_EOF >> "$cfgfile"
24559# AIX sometimes has problems with the GCC collect2 program.  For some
24560# reason, if we set the COLLECT_NAMES environment variable, the problems
24561# vanish in a puff of smoke.
24562if test set != "${COLLECT_NAMES+set}"; then
24563  COLLECT_NAMES=
24564  export COLLECT_NAMES
24565fi
24566_LT_EOF
24567    ;;
24568  esac
24569
24570
24571ltmain=$ac_aux_dir/ltmain.sh
24572
24573
24574  # We use sed instead of cat because bash on DJGPP gets confused if
24575  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
24576  # text mode, it properly converts lines to CR/LF.  This bash problem
24577  # is reportedly fixed, but why not run on old versions too?
24578  sed '$q' "$ltmain" >> "$cfgfile" \
24579     || (rm -f "$cfgfile"; exit 1)
24580
24581   mv -f "$cfgfile" "$ofile" ||
24582    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24583  chmod +x "$ofile"
24584
24585 ;;
24586
24587  esac
24588done # for ac_tag
24589
24590
24591as_fn_exit 0
24592_ACEOF
24593ac_clean_files=$ac_clean_files_save
24594
24595test $ac_write_fail = 0 ||
24596  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24597
24598
24599# configure is writing to config.log, and then calls config.status.
24600# config.status does its own redirection, appending to config.log.
24601# Unfortunately, on DOS this fails, as config.log is still kept open
24602# by configure, so config.status won't be able to write to it; its
24603# output is simply discarded.  So we exec the FD to /dev/null,
24604# effectively closing config.log, so it can be properly (re)opened and
24605# appended to by config.status.  When coming back to configure, we
24606# need to make the FD available again.
24607if test "$no_create" != yes; then
24608  ac_cs_success=:
24609  ac_config_status_args=
24610  test "$silent" = yes &&
24611    ac_config_status_args="$ac_config_status_args --quiet"
24612  exec 5>/dev/null
24613  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24614  exec 5>>config.log
24615  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24616  # would make configure fail if this is the last instruction.
24617  $ac_cs_success || as_fn_exit 1
24618fi
24619if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24620  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24621$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24622fi
24623
24624