Imported Upstream version 23.0
[platform/upstream/psmisc.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for psmisc 23.0.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200   if (eval "$as_required") 2>/dev/null; then :
201   as_have_required=yes
202 else
203   as_have_required=no
204 fi
205   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212   IFS=$as_save_IFS
213   test -z "$as_dir" && as_dir=.
214   as_found=:
215   case $as_dir in #(
216          /*)
217            for as_base in sh bash ksh sh5; do
218              # Try only shells that exist, to save several forks.
219              as_shell=$as_dir/$as_base
220              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222   CONFIG_SHELL=$as_shell as_have_required=yes
223                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   break 2
225 fi
226 fi
227            done;;
228        esac
229   as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233   CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238       if test "x$CONFIG_SHELL" != x; then :
239   export CONFIG_SHELL
240              # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248   *v*x* | *x*v* ) as_opts=-vx ;;
249   *v* ) as_opts=-v ;;
250   *x* ) as_opts=-x ;;
251   * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260     if test x$as_have_required = xno; then :
261   $as_echo "$0: This script requires a shell more modern than all"
262   $as_echo "$0: the shells that I found on your system."
263   if test x${ZSH_VERSION+set} = xset ; then
264     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266   else
267     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271   fi
272   exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290   { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299   return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307   set +e
308   as_fn_set_status $1
309   exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318   case $as_dir in #(
319   -*) as_dir=./$as_dir;;
320   esac
321   test -d "$as_dir" || eval $as_mkdir_p || {
322     as_dirs=
323     while :; do
324       case $as_dir in #(
325       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326       *) as_qdir=$as_dir;;
327       esac
328       as_dirs="'$as_qdir' $as_dirs"
329       as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331          X"$as_dir" : 'X\(//\)[^/]' \| \
332          X"$as_dir" : 'X\(//\)$' \| \
333          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336             s//\1/
337             q
338           }
339           /^X\(\/\/\)[^/].*/{
340             s//\1/
341             q
342           }
343           /^X\(\/\/\)$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\).*/{
348             s//\1/
349             q
350           }
351           s/.*/./; q'`
352       test -d "$as_dir" && break
353     done
354     test -z "$as_dirs" || eval "mkdir $as_dirs"
355   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365   test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374   eval 'as_fn_append ()
375   {
376     eval $1+=\$2
377   }'
378 else
379   as_fn_append ()
380   {
381     eval $1=\$$1\$2
382   }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391   eval 'as_fn_arith ()
392   {
393     as_val=$(( $* ))
394   }'
395 else
396   as_fn_arith ()
397   {
398     as_val=`expr "$@" || test $? -eq 1`
399   }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410   as_status=$1; test $as_status -eq 0 && as_status=1
411   if test "$4"; then
412     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414   fi
415   $as_echo "$as_me: error: $2" >&2
416   as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420    test "X`expr 00001 : '.*\(...\)'`" = X001; then
421   as_expr=expr
422 else
423   as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427   as_basename=basename
428 else
429   as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433   as_dirname=dirname
434 else
435   as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440          X"$0" : 'X\(//\)$' \| \
441          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443     sed '/^.*\/\([^/][^/]*\)\/*$/{
444             s//\1/
445             q
446           }
447           /^X\/\(\/\/\)$/{
448             s//\1/
449             q
450           }
451           /^X\/\(\/\).*/{
452             s//\1/
453             q
454           }
455           s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465   as_lineno_1=$LINENO as_lineno_1a=$LINENO
466   as_lineno_2=$LINENO as_lineno_2a=$LINENO
467   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470   sed -n '
471     p
472     /[$]LINENO/=
473   ' <$as_myself |
474     sed '
475       s/[$]LINENO.*/&-/
476       t lineno
477       b
478       :lineno
479       N
480       :loop
481       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482       t loop
483       s/-\n.*//
484     ' >$as_me.lineno &&
485   chmod +x "$as_me.lineno" ||
486     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489   # already done that, so ensure we don't try to do so again and fall
490   # in an infinite loop.  This has already happened in practice.
491   _as_can_reexec=no; export _as_can_reexec
492   # Don't try to exec as it changes $[0], causing all sort of problems
493   # (the dirname of $[0] is not the place where we might find the
494   # original and so on.  Autoconf is especially sensitive to this).
495   . "./$as_me.lineno"
496   # Exit status is that of the last command.
497   exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503   case `echo 'xy\c'` in
504   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
505   xy)  ECHO_C='\c';;
506   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507        ECHO_T=' ';;
508   esac;;
509 *)
510   ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515   rm -f conf$$.dir/conf$$.file
516 else
517   rm -f conf$$.dir
518   mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521   if ln -s conf$$.file conf$$ 2>/dev/null; then
522     as_ln_s='ln -s'
523     # ... but there are two gotchas:
524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526     # In both cases, we have to default to `cp -pR'.
527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528       as_ln_s='cp -pR'
529   elif ln conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s=ln
531   else
532     as_ln_s='cp -pR'
533   fi
534 else
535   as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541   as_mkdir_p='mkdir -p "$as_dir"'
542 else
543   test -d ./-p && rmdir ./-p
544   as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME='psmisc'
579 PACKAGE_TARNAME='psmisc'
580 PACKAGE_VERSION='23.0'
581 PACKAGE_STRING='psmisc 23.0'
582 PACKAGE_BUGREPORT=''
583 PACKAGE_URL=''
584
585 ac_unique_file="src/comm.h"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 #  include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 #  include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
621
622 gt_needs=
623 ac_subst_vars='am__EXEEXT_FALSE
624 am__EXEEXT_TRUE
625 LTLIBOBJS
626 DEJAGNU
627 LIBOBJS
628 WANT_PEEKFD_M68K_FALSE
629 WANT_PEEKFD_M68K_TRUE
630 WANT_PEEKFD_MIPS_FALSE
631 WANT_PEEKFD_MIPS_TRUE
632 WANT_PEEKFD_ARM_FALSE
633 WANT_PEEKFD_ARM_TRUE
634 WANT_PEEKFD_PPC_FALSE
635 WANT_PEEKFD_PPC_TRUE
636 WANT_PEEKFD_X86_64_FALSE
637 WANT_PEEKFD_X86_64_TRUE
638 WANT_PEEKFD_I386_FALSE
639 WANT_PEEKFD_I386_TRUE
640 WANT_FUSER_FALSE
641 WANT_FUSER_TRUE
642 POSUB
643 LTLIBINTL
644 LIBINTL
645 INTLLIBS
646 LTLIBICONV
647 LIBICONV
648 INTL_MACOSX_LIBS
649 host_os
650 host_vendor
651 host_cpu
652 host
653 build_os
654 build_vendor
655 build_cpu
656 build
657 XGETTEXT_EXTRA_OPTIONS
658 MSGMERGE
659 XGETTEXT_015
660 XGETTEXT
661 GMSGFMT_015
662 MSGFMT_015
663 GMSGFMT
664 MSGFMT
665 GETTEXT_MACRO_VERSION
666 USE_NLS
667 SED
668 HARDEN_LDFLAGS
669 HARDEN_CFLAGS
670 TERMCAP_LIB
671 WITH_IPV6
672 WITH_MOUNTINFO_LIST
673 WANT_TIMEOUT_STAT_FALSE
674 WANT_TIMEOUT_STAT_TRUE
675 WITH_TIMEOUT_STAT
676 SELINUX_LIB
677 WITH_SELINUX
678 LN_S
679 am__fastdepCXX_FALSE
680 am__fastdepCXX_TRUE
681 CXXDEPMODE
682 ac_ct_CXX
683 CXXFLAGS
684 CXX
685 EGREP
686 GREP
687 CPP
688 am__fastdepCC_FALSE
689 am__fastdepCC_TRUE
690 CCDEPMODE
691 am__nodep
692 AMDEPBACKSLASH
693 AMDEP_FALSE
694 AMDEP_TRUE
695 am__quote
696 am__include
697 DEPDIR
698 OBJEXT
699 EXEEXT
700 ac_ct_CC
701 CPPFLAGS
702 LDFLAGS
703 CFLAGS
704 CC
705 AM_BACKSLASH
706 AM_DEFAULT_VERBOSITY
707 AM_DEFAULT_V
708 AM_V
709 am__untar
710 am__tar
711 AMTAR
712 am__leading_dot
713 SET_MAKE
714 AWK
715 mkdir_p
716 MKDIR_P
717 INSTALL_STRIP_PROGRAM
718 STRIP
719 install_sh
720 MAKEINFO
721 AUTOHEADER
722 AUTOMAKE
723 AUTOCONF
724 ACLOCAL
725 VERSION
726 PACKAGE
727 CYGPATH_W
728 am__isrc
729 INSTALL_DATA
730 INSTALL_SCRIPT
731 INSTALL_PROGRAM
732 target_alias
733 host_alias
734 build_alias
735 LIBS
736 ECHO_T
737 ECHO_N
738 ECHO_C
739 DEFS
740 mandir
741 localedir
742 libdir
743 psdir
744 pdfdir
745 dvidir
746 htmldir
747 infodir
748 docdir
749 oldincludedir
750 includedir
751 runstatedir
752 localstatedir
753 sharedstatedir
754 sysconfdir
755 datadir
756 datarootdir
757 libexecdir
758 sbindir
759 bindir
760 program_transform_name
761 prefix
762 exec_prefix
763 PACKAGE_URL
764 PACKAGE_BUGREPORT
765 PACKAGE_STRING
766 PACKAGE_VERSION
767 PACKAGE_TARNAME
768 PACKAGE_NAME
769 PATH_SEPARATOR
770 SHELL'
771 ac_subst_files=''
772 ac_user_opts='
773 enable_option_checking
774 enable_silent_rules
775 enable_dependency_tracking
776 enable_selinux
777 enable_timeout_stat
778 enable_mountinfo_list
779 enable_harden_flags
780 enable_ipv6
781 enable_nls
782 with_gnu_ld
783 enable_rpath
784 with_libiconv_prefix
785 with_libintl_prefix
786 enable_largefile
787 '
788       ac_precious_vars='build_alias
789 host_alias
790 target_alias
791 CC
792 CFLAGS
793 LDFLAGS
794 LIBS
795 CPPFLAGS
796 CPP
797 CXX
798 CXXFLAGS
799 CCC'
800
801
802 # Initialize some variables set by options.
803 ac_init_help=
804 ac_init_version=false
805 ac_unrecognized_opts=
806 ac_unrecognized_sep=
807 # The variables have the same names as the options, with
808 # dashes changed to underlines.
809 cache_file=/dev/null
810 exec_prefix=NONE
811 no_create=
812 no_recursion=
813 prefix=NONE
814 program_prefix=NONE
815 program_suffix=NONE
816 program_transform_name=s,x,x,
817 silent=
818 site=
819 srcdir=
820 verbose=
821 x_includes=NONE
822 x_libraries=NONE
823
824 # Installation directory options.
825 # These are left unexpanded so users can "make install exec_prefix=/foo"
826 # and all the variables that are supposed to be based on exec_prefix
827 # by default will actually change.
828 # Use braces instead of parens because sh, perl, etc. also accept them.
829 # (The list follows the same order as the GNU Coding Standards.)
830 bindir='${exec_prefix}/bin'
831 sbindir='${exec_prefix}/sbin'
832 libexecdir='${exec_prefix}/libexec'
833 datarootdir='${prefix}/share'
834 datadir='${datarootdir}'
835 sysconfdir='${prefix}/etc'
836 sharedstatedir='${prefix}/com'
837 localstatedir='${prefix}/var'
838 runstatedir='${localstatedir}/run'
839 includedir='${prefix}/include'
840 oldincludedir='/usr/include'
841 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
842 infodir='${datarootdir}/info'
843 htmldir='${docdir}'
844 dvidir='${docdir}'
845 pdfdir='${docdir}'
846 psdir='${docdir}'
847 libdir='${exec_prefix}/lib'
848 localedir='${datarootdir}/locale'
849 mandir='${datarootdir}/man'
850
851 ac_prev=
852 ac_dashdash=
853 for ac_option
854 do
855   # If the previous option needs an argument, assign it.
856   if test -n "$ac_prev"; then
857     eval $ac_prev=\$ac_option
858     ac_prev=
859     continue
860   fi
861
862   case $ac_option in
863   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864   *=)   ac_optarg= ;;
865   *)    ac_optarg=yes ;;
866   esac
867
868   # Accept the important Cygnus configure options, so we can diagnose typos.
869
870   case $ac_dashdash$ac_option in
871   --)
872     ac_dashdash=yes ;;
873
874   -bindir | --bindir | --bindi | --bind | --bin | --bi)
875     ac_prev=bindir ;;
876   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
877     bindir=$ac_optarg ;;
878
879   -build | --build | --buil | --bui | --bu)
880     ac_prev=build_alias ;;
881   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
882     build_alias=$ac_optarg ;;
883
884   -cache-file | --cache-file | --cache-fil | --cache-fi \
885   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
886     ac_prev=cache_file ;;
887   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
888   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
889     cache_file=$ac_optarg ;;
890
891   --config-cache | -C)
892     cache_file=config.cache ;;
893
894   -datadir | --datadir | --datadi | --datad)
895     ac_prev=datadir ;;
896   -datadir=* | --datadir=* | --datadi=* | --datad=*)
897     datadir=$ac_optarg ;;
898
899   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
900   | --dataroo | --dataro | --datar)
901     ac_prev=datarootdir ;;
902   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
903   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
904     datarootdir=$ac_optarg ;;
905
906   -disable-* | --disable-*)
907     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
908     # Reject names that are not valid shell variable names.
909     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910       as_fn_error $? "invalid feature name: $ac_useropt"
911     ac_useropt_orig=$ac_useropt
912     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913     case $ac_user_opts in
914       *"
915 "enable_$ac_useropt"
916 "*) ;;
917       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
918          ac_unrecognized_sep=', ';;
919     esac
920     eval enable_$ac_useropt=no ;;
921
922   -docdir | --docdir | --docdi | --doc | --do)
923     ac_prev=docdir ;;
924   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
925     docdir=$ac_optarg ;;
926
927   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
928     ac_prev=dvidir ;;
929   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
930     dvidir=$ac_optarg ;;
931
932   -enable-* | --enable-*)
933     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
934     # Reject names that are not valid shell variable names.
935     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936       as_fn_error $? "invalid feature name: $ac_useropt"
937     ac_useropt_orig=$ac_useropt
938     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939     case $ac_user_opts in
940       *"
941 "enable_$ac_useropt"
942 "*) ;;
943       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
944          ac_unrecognized_sep=', ';;
945     esac
946     eval enable_$ac_useropt=\$ac_optarg ;;
947
948   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950   | --exec | --exe | --ex)
951     ac_prev=exec_prefix ;;
952   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954   | --exec=* | --exe=* | --ex=*)
955     exec_prefix=$ac_optarg ;;
956
957   -gas | --gas | --ga | --g)
958     # Obsolete; use --with-gas.
959     with_gas=yes ;;
960
961   -help | --help | --hel | --he | -h)
962     ac_init_help=long ;;
963   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964     ac_init_help=recursive ;;
965   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966     ac_init_help=short ;;
967
968   -host | --host | --hos | --ho)
969     ac_prev=host_alias ;;
970   -host=* | --host=* | --hos=* | --ho=*)
971     host_alias=$ac_optarg ;;
972
973   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974     ac_prev=htmldir ;;
975   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976   | --ht=*)
977     htmldir=$ac_optarg ;;
978
979   -includedir | --includedir | --includedi | --included | --include \
980   | --includ | --inclu | --incl | --inc)
981     ac_prev=includedir ;;
982   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983   | --includ=* | --inclu=* | --incl=* | --inc=*)
984     includedir=$ac_optarg ;;
985
986   -infodir | --infodir | --infodi | --infod | --info | --inf)
987     ac_prev=infodir ;;
988   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989     infodir=$ac_optarg ;;
990
991   -libdir | --libdir | --libdi | --libd)
992     ac_prev=libdir ;;
993   -libdir=* | --libdir=* | --libdi=* | --libd=*)
994     libdir=$ac_optarg ;;
995
996   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997   | --libexe | --libex | --libe)
998     ac_prev=libexecdir ;;
999   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000   | --libexe=* | --libex=* | --libe=*)
1001     libexecdir=$ac_optarg ;;
1002
1003   -localedir | --localedir | --localedi | --localed | --locale)
1004     ac_prev=localedir ;;
1005   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006     localedir=$ac_optarg ;;
1007
1008   -localstatedir | --localstatedir | --localstatedi | --localstated \
1009   | --localstate | --localstat | --localsta | --localst | --locals)
1010     ac_prev=localstatedir ;;
1011   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013     localstatedir=$ac_optarg ;;
1014
1015   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016     ac_prev=mandir ;;
1017   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018     mandir=$ac_optarg ;;
1019
1020   -nfp | --nfp | --nf)
1021     # Obsolete; use --without-fp.
1022     with_fp=no ;;
1023
1024   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025   | --no-cr | --no-c | -n)
1026     no_create=yes ;;
1027
1028   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030     no_recursion=yes ;;
1031
1032   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034   | --oldin | --oldi | --old | --ol | --o)
1035     ac_prev=oldincludedir ;;
1036   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039     oldincludedir=$ac_optarg ;;
1040
1041   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042     ac_prev=prefix ;;
1043   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044     prefix=$ac_optarg ;;
1045
1046   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047   | --program-pre | --program-pr | --program-p)
1048     ac_prev=program_prefix ;;
1049   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051     program_prefix=$ac_optarg ;;
1052
1053   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054   | --program-suf | --program-su | --program-s)
1055     ac_prev=program_suffix ;;
1056   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058     program_suffix=$ac_optarg ;;
1059
1060   -program-transform-name | --program-transform-name \
1061   | --program-transform-nam | --program-transform-na \
1062   | --program-transform-n | --program-transform- \
1063   | --program-transform | --program-transfor \
1064   | --program-transfo | --program-transf \
1065   | --program-trans | --program-tran \
1066   | --progr-tra | --program-tr | --program-t)
1067     ac_prev=program_transform_name ;;
1068   -program-transform-name=* | --program-transform-name=* \
1069   | --program-transform-nam=* | --program-transform-na=* \
1070   | --program-transform-n=* | --program-transform-=* \
1071   | --program-transform=* | --program-transfor=* \
1072   | --program-transfo=* | --program-transf=* \
1073   | --program-trans=* | --program-tran=* \
1074   | --progr-tra=* | --program-tr=* | --program-t=*)
1075     program_transform_name=$ac_optarg ;;
1076
1077   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078     ac_prev=pdfdir ;;
1079   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080     pdfdir=$ac_optarg ;;
1081
1082   -psdir | --psdir | --psdi | --psd | --ps)
1083     ac_prev=psdir ;;
1084   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085     psdir=$ac_optarg ;;
1086
1087   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088   | -silent | --silent | --silen | --sile | --sil)
1089     silent=yes ;;
1090
1091   -runstatedir | --runstatedir | --runstatedi | --runstated \
1092   | --runstate | --runstat | --runsta | --runst | --runs \
1093   | --run | --ru | --r)
1094     ac_prev=runstatedir ;;
1095   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1096   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1097   | --run=* | --ru=* | --r=*)
1098     runstatedir=$ac_optarg ;;
1099
1100   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1101     ac_prev=sbindir ;;
1102   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1103   | --sbi=* | --sb=*)
1104     sbindir=$ac_optarg ;;
1105
1106   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1107   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1108   | --sharedst | --shareds | --shared | --share | --shar \
1109   | --sha | --sh)
1110     ac_prev=sharedstatedir ;;
1111   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1112   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1113   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1114   | --sha=* | --sh=*)
1115     sharedstatedir=$ac_optarg ;;
1116
1117   -site | --site | --sit)
1118     ac_prev=site ;;
1119   -site=* | --site=* | --sit=*)
1120     site=$ac_optarg ;;
1121
1122   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1123     ac_prev=srcdir ;;
1124   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1125     srcdir=$ac_optarg ;;
1126
1127   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1128   | --syscon | --sysco | --sysc | --sys | --sy)
1129     ac_prev=sysconfdir ;;
1130   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1131   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1132     sysconfdir=$ac_optarg ;;
1133
1134   -target | --target | --targe | --targ | --tar | --ta | --t)
1135     ac_prev=target_alias ;;
1136   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1137     target_alias=$ac_optarg ;;
1138
1139   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1140     verbose=yes ;;
1141
1142   -version | --version | --versio | --versi | --vers | -V)
1143     ac_init_version=: ;;
1144
1145   -with-* | --with-*)
1146     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1147     # Reject names that are not valid shell variable names.
1148     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149       as_fn_error $? "invalid package name: $ac_useropt"
1150     ac_useropt_orig=$ac_useropt
1151     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152     case $ac_user_opts in
1153       *"
1154 "with_$ac_useropt"
1155 "*) ;;
1156       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1157          ac_unrecognized_sep=', ';;
1158     esac
1159     eval with_$ac_useropt=\$ac_optarg ;;
1160
1161   -without-* | --without-*)
1162     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1163     # Reject names that are not valid shell variable names.
1164     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165       as_fn_error $? "invalid package name: $ac_useropt"
1166     ac_useropt_orig=$ac_useropt
1167     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168     case $ac_user_opts in
1169       *"
1170 "with_$ac_useropt"
1171 "*) ;;
1172       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1173          ac_unrecognized_sep=', ';;
1174     esac
1175     eval with_$ac_useropt=no ;;
1176
1177   --x)
1178     # Obsolete; use --with-x.
1179     with_x=yes ;;
1180
1181   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1182   | --x-incl | --x-inc | --x-in | --x-i)
1183     ac_prev=x_includes ;;
1184   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1185   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1186     x_includes=$ac_optarg ;;
1187
1188   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1189   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1190     ac_prev=x_libraries ;;
1191   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1192   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1193     x_libraries=$ac_optarg ;;
1194
1195   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1196 Try \`$0 --help' for more information"
1197     ;;
1198
1199   *=*)
1200     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1201     # Reject names that are not valid shell variable names.
1202     case $ac_envvar in #(
1203       '' | [0-9]* | *[!_$as_cr_alnum]* )
1204       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1205     esac
1206     eval $ac_envvar=\$ac_optarg
1207     export $ac_envvar ;;
1208
1209   *)
1210     # FIXME: should be removed in autoconf 3.0.
1211     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1212     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1213       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1214     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1215     ;;
1216
1217   esac
1218 done
1219
1220 if test -n "$ac_prev"; then
1221   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1222   as_fn_error $? "missing argument to $ac_option"
1223 fi
1224
1225 if test -n "$ac_unrecognized_opts"; then
1226   case $enable_option_checking in
1227     no) ;;
1228     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1229     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1230   esac
1231 fi
1232
1233 # Check all directory arguments for consistency.
1234 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1235                 datadir sysconfdir sharedstatedir localstatedir includedir \
1236                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1237                 libdir localedir mandir runstatedir
1238 do
1239   eval ac_val=\$$ac_var
1240   # Remove trailing slashes.
1241   case $ac_val in
1242     */ )
1243       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1244       eval $ac_var=\$ac_val;;
1245   esac
1246   # Be sure to have absolute directory names.
1247   case $ac_val in
1248     [\\/$]* | ?:[\\/]* )  continue;;
1249     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1250   esac
1251   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1252 done
1253
1254 # There might be people who depend on the old broken behavior: `$host'
1255 # used to hold the argument of --host etc.
1256 # FIXME: To remove some day.
1257 build=$build_alias
1258 host=$host_alias
1259 target=$target_alias
1260
1261 # FIXME: To remove some day.
1262 if test "x$host_alias" != x; then
1263   if test "x$build_alias" = x; then
1264     cross_compiling=maybe
1265   elif test "x$build_alias" != "x$host_alias"; then
1266     cross_compiling=yes
1267   fi
1268 fi
1269
1270 ac_tool_prefix=
1271 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1272
1273 test "$silent" = yes && exec 6>/dev/null
1274
1275
1276 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1277 ac_ls_di=`ls -di .` &&
1278 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1279   as_fn_error $? "working directory cannot be determined"
1280 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1281   as_fn_error $? "pwd does not report name of working directory"
1282
1283
1284 # Find the source files, if location was not specified.
1285 if test -z "$srcdir"; then
1286   ac_srcdir_defaulted=yes
1287   # Try the directory containing this script, then the parent directory.
1288   ac_confdir=`$as_dirname -- "$as_myself" ||
1289 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1290          X"$as_myself" : 'X\(//\)[^/]' \| \
1291          X"$as_myself" : 'X\(//\)$' \| \
1292          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1293 $as_echo X"$as_myself" |
1294     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1295             s//\1/
1296             q
1297           }
1298           /^X\(\/\/\)[^/].*/{
1299             s//\1/
1300             q
1301           }
1302           /^X\(\/\/\)$/{
1303             s//\1/
1304             q
1305           }
1306           /^X\(\/\).*/{
1307             s//\1/
1308             q
1309           }
1310           s/.*/./; q'`
1311   srcdir=$ac_confdir
1312   if test ! -r "$srcdir/$ac_unique_file"; then
1313     srcdir=..
1314   fi
1315 else
1316   ac_srcdir_defaulted=no
1317 fi
1318 if test ! -r "$srcdir/$ac_unique_file"; then
1319   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1320   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1321 fi
1322 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1323 ac_abs_confdir=`(
1324         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1325         pwd)`
1326 # When building in place, set srcdir=.
1327 if test "$ac_abs_confdir" = "$ac_pwd"; then
1328   srcdir=.
1329 fi
1330 # Remove unnecessary trailing slashes from srcdir.
1331 # Double slashes in file names in object file debugging info
1332 # mess up M-x gdb in Emacs.
1333 case $srcdir in
1334 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1335 esac
1336 for ac_var in $ac_precious_vars; do
1337   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1338   eval ac_env_${ac_var}_value=\$${ac_var}
1339   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1340   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1341 done
1342
1343 #
1344 # Report the --help message.
1345 #
1346 if test "$ac_init_help" = "long"; then
1347   # Omit some internal or obsolete options to make the list less imposing.
1348   # This message is too long to be a string in the A/UX 3.1 sh.
1349   cat <<_ACEOF
1350 \`configure' configures psmisc 23.0 to adapt to many kinds of systems.
1351
1352 Usage: $0 [OPTION]... [VAR=VALUE]...
1353
1354 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1355 VAR=VALUE.  See below for descriptions of some of the useful variables.
1356
1357 Defaults for the options are specified in brackets.
1358
1359 Configuration:
1360   -h, --help              display this help and exit
1361       --help=short        display options specific to this package
1362       --help=recursive    display the short help of all the included packages
1363   -V, --version           display version information and exit
1364   -q, --quiet, --silent   do not print \`checking ...' messages
1365       --cache-file=FILE   cache test results in FILE [disabled]
1366   -C, --config-cache      alias for \`--cache-file=config.cache'
1367   -n, --no-create         do not create output files
1368       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1369
1370 Installation directories:
1371   --prefix=PREFIX         install architecture-independent files in PREFIX
1372                           [$ac_default_prefix]
1373   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1374                           [PREFIX]
1375
1376 By default, \`make install' will install all the files in
1377 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1378 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1379 for instance \`--prefix=\$HOME'.
1380
1381 For better control, use the options below.
1382
1383 Fine tuning of the installation directories:
1384   --bindir=DIR            user executables [EPREFIX/bin]
1385   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1386   --libexecdir=DIR        program executables [EPREFIX/libexec]
1387   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1388   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1389   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1390   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1391   --libdir=DIR            object code libraries [EPREFIX/lib]
1392   --includedir=DIR        C header files [PREFIX/include]
1393   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1394   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1395   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1396   --infodir=DIR           info documentation [DATAROOTDIR/info]
1397   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1398   --mandir=DIR            man documentation [DATAROOTDIR/man]
1399   --docdir=DIR            documentation root [DATAROOTDIR/doc/psmisc]
1400   --htmldir=DIR           html documentation [DOCDIR]
1401   --dvidir=DIR            dvi documentation [DOCDIR]
1402   --pdfdir=DIR            pdf documentation [DOCDIR]
1403   --psdir=DIR             ps documentation [DOCDIR]
1404 _ACEOF
1405
1406   cat <<\_ACEOF
1407
1408 Program names:
1409   --program-prefix=PREFIX            prepend PREFIX to installed program names
1410   --program-suffix=SUFFIX            append SUFFIX to installed program names
1411   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1412
1413 System types:
1414   --build=BUILD     configure for building on BUILD [guessed]
1415   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1416 _ACEOF
1417 fi
1418
1419 if test -n "$ac_init_help"; then
1420   case $ac_init_help in
1421      short | recursive ) echo "Configuration of psmisc 23.0:";;
1422    esac
1423   cat <<\_ACEOF
1424
1425 Optional Features:
1426   --disable-option-checking  ignore unrecognized --enable/--with options
1427   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1428   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1429   --enable-silent-rules   less verbose build output (undo: "make V=1")
1430   --disable-silent-rules  verbose build output (undo: "make V=0")
1431   --enable-dependency-tracking
1432                           do not reject slow dependency extractors
1433   --disable-dependency-tracking
1434                           speeds up one-time build
1435   --enable-selinux        Enable Security-Enhanced Linux features
1436   --enable-timeout-stat   Use a timeout on stat calls (optional with argument
1437                           "static" for a static background process)
1438   --enable-mountinfo-list Use the list in /proc/self/mountinfo to replace
1439                           stat(2) syscall on network file systems shares
1440   --disable-harden-flags  disable hardened compilier and linker flags
1441   --disable-ipv6          Disable IPv6 checks (for uClibc)
1442   --disable-nls           do not use Native Language Support
1443   --disable-rpath         do not hardcode runtime library paths
1444   --disable-largefile     omit support for large files
1445
1446 Optional Packages:
1447   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1448   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1449   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1450   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1451   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1452   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1453   --without-libintl-prefix     don't search for libintl in includedir and libdir
1454
1455 Some influential environment variables:
1456   CC          C compiler command
1457   CFLAGS      C compiler flags
1458   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1459               nonstandard directory <lib dir>
1460   LIBS        libraries to pass to the linker, e.g. -l<library>
1461   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1462               you have headers in a nonstandard directory <include dir>
1463   CPP         C preprocessor
1464   CXX         C++ compiler command
1465   CXXFLAGS    C++ compiler flags
1466
1467 Use these variables to override the choices made by `configure' or to help
1468 it to find libraries and programs with nonstandard names/locations.
1469
1470 Report bugs to the package provider.
1471 _ACEOF
1472 ac_status=$?
1473 fi
1474
1475 if test "$ac_init_help" = "recursive"; then
1476   # If there are subdirs, report their specific --help.
1477   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1478     test -d "$ac_dir" ||
1479       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1480       continue
1481     ac_builddir=.
1482
1483 case "$ac_dir" in
1484 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485 *)
1486   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1487   # A ".." for each directory in $ac_dir_suffix.
1488   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1489   case $ac_top_builddir_sub in
1490   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1492   esac ;;
1493 esac
1494 ac_abs_top_builddir=$ac_pwd
1495 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1496 # for backward compatibility:
1497 ac_top_builddir=$ac_top_build_prefix
1498
1499 case $srcdir in
1500   .)  # We are building in place.
1501     ac_srcdir=.
1502     ac_top_srcdir=$ac_top_builddir_sub
1503     ac_abs_top_srcdir=$ac_pwd ;;
1504   [\\/]* | ?:[\\/]* )  # Absolute name.
1505     ac_srcdir=$srcdir$ac_dir_suffix;
1506     ac_top_srcdir=$srcdir
1507     ac_abs_top_srcdir=$srcdir ;;
1508   *) # Relative name.
1509     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1510     ac_top_srcdir=$ac_top_build_prefix$srcdir
1511     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1512 esac
1513 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1514
1515     cd "$ac_dir" || { ac_status=$?; continue; }
1516     # Check for guested configure.
1517     if test -f "$ac_srcdir/configure.gnu"; then
1518       echo &&
1519       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1520     elif test -f "$ac_srcdir/configure"; then
1521       echo &&
1522       $SHELL "$ac_srcdir/configure" --help=recursive
1523     else
1524       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1525     fi || ac_status=$?
1526     cd "$ac_pwd" || { ac_status=$?; break; }
1527   done
1528 fi
1529
1530 test -n "$ac_init_help" && exit $ac_status
1531 if $ac_init_version; then
1532   cat <<\_ACEOF
1533 psmisc configure 23.0
1534 generated by GNU Autoconf 2.69
1535
1536 Copyright (C) 2012 Free Software Foundation, Inc.
1537 This configure script is free software; the Free Software Foundation
1538 gives unlimited permission to copy, distribute and modify it.
1539 _ACEOF
1540   exit
1541 fi
1542
1543 ## ------------------------ ##
1544 ## Autoconf initialization. ##
1545 ## ------------------------ ##
1546
1547 # ac_fn_c_try_compile LINENO
1548 # --------------------------
1549 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1550 ac_fn_c_try_compile ()
1551 {
1552   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1553   rm -f conftest.$ac_objext
1554   if { { ac_try="$ac_compile"
1555 case "(($ac_try" in
1556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1557   *) ac_try_echo=$ac_try;;
1558 esac
1559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1560 $as_echo "$ac_try_echo"; } >&5
1561   (eval "$ac_compile") 2>conftest.err
1562   ac_status=$?
1563   if test -s conftest.err; then
1564     grep -v '^ *+' conftest.err >conftest.er1
1565     cat conftest.er1 >&5
1566     mv -f conftest.er1 conftest.err
1567   fi
1568   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1569   test $ac_status = 0; } && {
1570          test -z "$ac_c_werror_flag" ||
1571          test ! -s conftest.err
1572        } && test -s conftest.$ac_objext; then :
1573   ac_retval=0
1574 else
1575   $as_echo "$as_me: failed program was:" >&5
1576 sed 's/^/| /' conftest.$ac_ext >&5
1577
1578         ac_retval=1
1579 fi
1580   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1581   as_fn_set_status $ac_retval
1582
1583 } # ac_fn_c_try_compile
1584
1585 # ac_fn_c_try_cpp LINENO
1586 # ----------------------
1587 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1588 ac_fn_c_try_cpp ()
1589 {
1590   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591   if { { ac_try="$ac_cpp conftest.$ac_ext"
1592 case "(($ac_try" in
1593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594   *) ac_try_echo=$ac_try;;
1595 esac
1596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597 $as_echo "$ac_try_echo"; } >&5
1598   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1599   ac_status=$?
1600   if test -s conftest.err; then
1601     grep -v '^ *+' conftest.err >conftest.er1
1602     cat conftest.er1 >&5
1603     mv -f conftest.er1 conftest.err
1604   fi
1605   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606   test $ac_status = 0; } > conftest.i && {
1607          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1608          test ! -s conftest.err
1609        }; then :
1610   ac_retval=0
1611 else
1612   $as_echo "$as_me: failed program was:" >&5
1613 sed 's/^/| /' conftest.$ac_ext >&5
1614
1615     ac_retval=1
1616 fi
1617   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618   as_fn_set_status $ac_retval
1619
1620 } # ac_fn_c_try_cpp
1621
1622 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1623 # -------------------------------------------------------
1624 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1625 # the include files in INCLUDES and setting the cache variable VAR
1626 # accordingly.
1627 ac_fn_c_check_header_mongrel ()
1628 {
1629   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630   if eval \${$3+:} false; then :
1631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1632 $as_echo_n "checking for $2... " >&6; }
1633 if eval \${$3+:} false; then :
1634   $as_echo_n "(cached) " >&6
1635 fi
1636 eval ac_res=\$$3
1637                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1638 $as_echo "$ac_res" >&6; }
1639 else
1640   # Is the header compilable?
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1642 $as_echo_n "checking $2 usability... " >&6; }
1643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1644 /* end confdefs.h.  */
1645 $4
1646 #include <$2>
1647 _ACEOF
1648 if ac_fn_c_try_compile "$LINENO"; then :
1649   ac_header_compiler=yes
1650 else
1651   ac_header_compiler=no
1652 fi
1653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1655 $as_echo "$ac_header_compiler" >&6; }
1656
1657 # Is the header present?
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1659 $as_echo_n "checking $2 presence... " >&6; }
1660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661 /* end confdefs.h.  */
1662 #include <$2>
1663 _ACEOF
1664 if ac_fn_c_try_cpp "$LINENO"; then :
1665   ac_header_preproc=yes
1666 else
1667   ac_header_preproc=no
1668 fi
1669 rm -f conftest.err conftest.i conftest.$ac_ext
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1671 $as_echo "$ac_header_preproc" >&6; }
1672
1673 # So?  What about this header?
1674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1675   yes:no: )
1676     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1677 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1678     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1679 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1680     ;;
1681   no:yes:* )
1682     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1683 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1684     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1685 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1686     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1687 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1688     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1689 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1690     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1691 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1692     ;;
1693 esac
1694   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1695 $as_echo_n "checking for $2... " >&6; }
1696 if eval \${$3+:} false; then :
1697   $as_echo_n "(cached) " >&6
1698 else
1699   eval "$3=\$ac_header_compiler"
1700 fi
1701 eval ac_res=\$$3
1702                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1703 $as_echo "$ac_res" >&6; }
1704 fi
1705   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706
1707 } # ac_fn_c_check_header_mongrel
1708
1709 # ac_fn_c_try_run LINENO
1710 # ----------------------
1711 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1712 # that executables *can* be run.
1713 ac_fn_c_try_run ()
1714 {
1715   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716   if { { ac_try="$ac_link"
1717 case "(($ac_try" in
1718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719   *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723   (eval "$ac_link") 2>&5
1724   ac_status=$?
1725   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1727   { { case "(($ac_try" in
1728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729   *) ac_try_echo=$ac_try;;
1730 esac
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733   (eval "$ac_try") 2>&5
1734   ac_status=$?
1735   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736   test $ac_status = 0; }; }; then :
1737   ac_retval=0
1738 else
1739   $as_echo "$as_me: program exited with status $ac_status" >&5
1740        $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1742
1743        ac_retval=$ac_status
1744 fi
1745   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1746   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747   as_fn_set_status $ac_retval
1748
1749 } # ac_fn_c_try_run
1750
1751 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1752 # -------------------------------------------------------
1753 # Tests whether HEADER exists and can be compiled using the include files in
1754 # INCLUDES, setting the cache variable VAR accordingly.
1755 ac_fn_c_check_header_compile ()
1756 {
1757   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759 $as_echo_n "checking for $2... " >&6; }
1760 if eval \${$3+:} false; then :
1761   $as_echo_n "(cached) " >&6
1762 else
1763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h.  */
1765 $4
1766 #include <$2>
1767 _ACEOF
1768 if ac_fn_c_try_compile "$LINENO"; then :
1769   eval "$3=yes"
1770 else
1771   eval "$3=no"
1772 fi
1773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1774 fi
1775 eval ac_res=\$$3
1776                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777 $as_echo "$ac_res" >&6; }
1778   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779
1780 } # ac_fn_c_check_header_compile
1781
1782 # ac_fn_cxx_try_compile LINENO
1783 # ----------------------------
1784 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1785 ac_fn_cxx_try_compile ()
1786 {
1787   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788   rm -f conftest.$ac_objext
1789   if { { ac_try="$ac_compile"
1790 case "(($ac_try" in
1791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792   *) ac_try_echo=$ac_try;;
1793 esac
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796   (eval "$ac_compile") 2>conftest.err
1797   ac_status=$?
1798   if test -s conftest.err; then
1799     grep -v '^ *+' conftest.err >conftest.er1
1800     cat conftest.er1 >&5
1801     mv -f conftest.er1 conftest.err
1802   fi
1803   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804   test $ac_status = 0; } && {
1805          test -z "$ac_cxx_werror_flag" ||
1806          test ! -s conftest.err
1807        } && test -s conftest.$ac_objext; then :
1808   ac_retval=0
1809 else
1810   $as_echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.$ac_ext >&5
1812
1813         ac_retval=1
1814 fi
1815   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816   as_fn_set_status $ac_retval
1817
1818 } # ac_fn_cxx_try_compile
1819
1820 # ac_fn_c_try_link LINENO
1821 # -----------------------
1822 # Try to link conftest.$ac_ext, and return whether this succeeded.
1823 ac_fn_c_try_link ()
1824 {
1825   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826   rm -f conftest.$ac_objext conftest$ac_exeext
1827   if { { ac_try="$ac_link"
1828 case "(($ac_try" in
1829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830   *) ac_try_echo=$ac_try;;
1831 esac
1832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833 $as_echo "$ac_try_echo"; } >&5
1834   (eval "$ac_link") 2>conftest.err
1835   ac_status=$?
1836   if test -s conftest.err; then
1837     grep -v '^ *+' conftest.err >conftest.er1
1838     cat conftest.er1 >&5
1839     mv -f conftest.er1 conftest.err
1840   fi
1841   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842   test $ac_status = 0; } && {
1843          test -z "$ac_c_werror_flag" ||
1844          test ! -s conftest.err
1845        } && test -s conftest$ac_exeext && {
1846          test "$cross_compiling" = yes ||
1847          test -x conftest$ac_exeext
1848        }; then :
1849   ac_retval=0
1850 else
1851   $as_echo "$as_me: failed program was:" >&5
1852 sed 's/^/| /' conftest.$ac_ext >&5
1853
1854         ac_retval=1
1855 fi
1856   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1857   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1858   # interfere with the next link command; also delete a directory that is
1859   # left behind by Apple's compiler.  We do this before executing the actions.
1860   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1861   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1862   as_fn_set_status $ac_retval
1863
1864 } # ac_fn_c_try_link
1865
1866 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1867 # -------------------------------------------
1868 # Tests whether TYPE exists after having included INCLUDES, setting cache
1869 # variable VAR accordingly.
1870 ac_fn_c_check_type ()
1871 {
1872   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1874 $as_echo_n "checking for $2... " >&6; }
1875 if eval \${$3+:} false; then :
1876   $as_echo_n "(cached) " >&6
1877 else
1878   eval "$3=no"
1879   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880 /* end confdefs.h.  */
1881 $4
1882 int
1883 main ()
1884 {
1885 if (sizeof ($2))
1886          return 0;
1887   ;
1888   return 0;
1889 }
1890 _ACEOF
1891 if ac_fn_c_try_compile "$LINENO"; then :
1892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893 /* end confdefs.h.  */
1894 $4
1895 int
1896 main ()
1897 {
1898 if (sizeof (($2)))
1899             return 0;
1900   ;
1901   return 0;
1902 }
1903 _ACEOF
1904 if ac_fn_c_try_compile "$LINENO"; then :
1905
1906 else
1907   eval "$3=yes"
1908 fi
1909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1910 fi
1911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1912 fi
1913 eval ac_res=\$$3
1914                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915 $as_echo "$ac_res" >&6; }
1916   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917
1918 } # ac_fn_c_check_type
1919
1920 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1921 # ----------------------------------------------------
1922 # Tries to find if the field MEMBER exists in type AGGR, after including
1923 # INCLUDES, setting cache variable VAR accordingly.
1924 ac_fn_c_check_member ()
1925 {
1926   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1928 $as_echo_n "checking for $2.$3... " >&6; }
1929 if eval \${$4+:} false; then :
1930   $as_echo_n "(cached) " >&6
1931 else
1932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h.  */
1934 $5
1935 int
1936 main ()
1937 {
1938 static $2 ac_aggr;
1939 if (ac_aggr.$3)
1940 return 0;
1941   ;
1942   return 0;
1943 }
1944 _ACEOF
1945 if ac_fn_c_try_compile "$LINENO"; then :
1946   eval "$4=yes"
1947 else
1948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h.  */
1950 $5
1951 int
1952 main ()
1953 {
1954 static $2 ac_aggr;
1955 if (sizeof ac_aggr.$3)
1956 return 0;
1957   ;
1958   return 0;
1959 }
1960 _ACEOF
1961 if ac_fn_c_try_compile "$LINENO"; then :
1962   eval "$4=yes"
1963 else
1964   eval "$4=no"
1965 fi
1966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1967 fi
1968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969 fi
1970 eval ac_res=\$$4
1971                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972 $as_echo "$ac_res" >&6; }
1973   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974
1975 } # ac_fn_c_check_member
1976
1977 # ac_fn_c_check_func LINENO FUNC VAR
1978 # ----------------------------------
1979 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1980 ac_fn_c_check_func ()
1981 {
1982   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1984 $as_echo_n "checking for $2... " >&6; }
1985 if eval \${$3+:} false; then :
1986   $as_echo_n "(cached) " >&6
1987 else
1988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h.  */
1990 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1991    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1992 #define $2 innocuous_$2
1993
1994 /* System header to define __stub macros and hopefully few prototypes,
1995     which can conflict with char $2 (); below.
1996     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1997     <limits.h> exists even on freestanding compilers.  */
1998
1999 #ifdef __STDC__
2000 # include <limits.h>
2001 #else
2002 # include <assert.h>
2003 #endif
2004
2005 #undef $2
2006
2007 /* Override any GCC internal prototype to avoid an error.
2008    Use char because int might match the return type of a GCC
2009    builtin and then its argument prototype would still apply.  */
2010 #ifdef __cplusplus
2011 extern "C"
2012 #endif
2013 char $2 ();
2014 /* The GNU C library defines this for functions which it implements
2015     to always fail with ENOSYS.  Some functions are actually named
2016     something starting with __ and the normal name is an alias.  */
2017 #if defined __stub_$2 || defined __stub___$2
2018 choke me
2019 #endif
2020
2021 int
2022 main ()
2023 {
2024 return $2 ();
2025   ;
2026   return 0;
2027 }
2028 _ACEOF
2029 if ac_fn_c_try_link "$LINENO"; then :
2030   eval "$3=yes"
2031 else
2032   eval "$3=no"
2033 fi
2034 rm -f core conftest.err conftest.$ac_objext \
2035     conftest$ac_exeext conftest.$ac_ext
2036 fi
2037 eval ac_res=\$$3
2038                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2039 $as_echo "$ac_res" >&6; }
2040   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041
2042 } # ac_fn_c_check_func
2043 cat >config.log <<_ACEOF
2044 This file contains any messages produced by compilers while
2045 running configure, to aid debugging if configure makes a mistake.
2046
2047 It was created by psmisc $as_me 23.0, which was
2048 generated by GNU Autoconf 2.69.  Invocation command line was
2049
2050   $ $0 $@
2051
2052 _ACEOF
2053 exec 5>>config.log
2054 {
2055 cat <<_ASUNAME
2056 ## --------- ##
2057 ## Platform. ##
2058 ## --------- ##
2059
2060 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2061 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2062 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2063 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2064 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2065
2066 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2067 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2068
2069 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2070 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2071 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2072 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2073 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2074 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2075 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2076
2077 _ASUNAME
2078
2079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080 for as_dir in $PATH
2081 do
2082   IFS=$as_save_IFS
2083   test -z "$as_dir" && as_dir=.
2084     $as_echo "PATH: $as_dir"
2085   done
2086 IFS=$as_save_IFS
2087
2088 } >&5
2089
2090 cat >&5 <<_ACEOF
2091
2092
2093 ## ----------- ##
2094 ## Core tests. ##
2095 ## ----------- ##
2096
2097 _ACEOF
2098
2099
2100 # Keep a trace of the command line.
2101 # Strip out --no-create and --no-recursion so they do not pile up.
2102 # Strip out --silent because we don't want to record it for future runs.
2103 # Also quote any args containing shell meta-characters.
2104 # Make two passes to allow for proper duplicate-argument suppression.
2105 ac_configure_args=
2106 ac_configure_args0=
2107 ac_configure_args1=
2108 ac_must_keep_next=false
2109 for ac_pass in 1 2
2110 do
2111   for ac_arg
2112   do
2113     case $ac_arg in
2114     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2115     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2116     | -silent | --silent | --silen | --sile | --sil)
2117       continue ;;
2118     *\'*)
2119       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2120     esac
2121     case $ac_pass in
2122     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2123     2)
2124       as_fn_append ac_configure_args1 " '$ac_arg'"
2125       if test $ac_must_keep_next = true; then
2126         ac_must_keep_next=false # Got value, back to normal.
2127       else
2128         case $ac_arg in
2129           *=* | --config-cache | -C | -disable-* | --disable-* \
2130           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2131           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2132           | -with-* | --with-* | -without-* | --without-* | --x)
2133             case "$ac_configure_args0 " in
2134               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2135             esac
2136             ;;
2137           -* ) ac_must_keep_next=true ;;
2138         esac
2139       fi
2140       as_fn_append ac_configure_args " '$ac_arg'"
2141       ;;
2142     esac
2143   done
2144 done
2145 { ac_configure_args0=; unset ac_configure_args0;}
2146 { ac_configure_args1=; unset ac_configure_args1;}
2147
2148 # When interrupted or exit'd, cleanup temporary files, and complete
2149 # config.log.  We remove comments because anyway the quotes in there
2150 # would cause problems or look ugly.
2151 # WARNING: Use '\'' to represent an apostrophe within the trap.
2152 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2153 trap 'exit_status=$?
2154   # Save into config.log some information that might help in debugging.
2155   {
2156     echo
2157
2158     $as_echo "## ---------------- ##
2159 ## Cache variables. ##
2160 ## ---------------- ##"
2161     echo
2162     # The following way of writing the cache mishandles newlines in values,
2163 (
2164   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2165     eval ac_val=\$$ac_var
2166     case $ac_val in #(
2167     *${as_nl}*)
2168       case $ac_var in #(
2169       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2170 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2171       esac
2172       case $ac_var in #(
2173       _ | IFS | as_nl) ;; #(
2174       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2175       *) { eval $ac_var=; unset $ac_var;} ;;
2176       esac ;;
2177     esac
2178   done
2179   (set) 2>&1 |
2180     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2181     *${as_nl}ac_space=\ *)
2182       sed -n \
2183         "s/'\''/'\''\\\\'\'''\''/g;
2184           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2185       ;; #(
2186     *)
2187       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2188       ;;
2189     esac |
2190     sort
2191 )
2192     echo
2193
2194     $as_echo "## ----------------- ##
2195 ## Output variables. ##
2196 ## ----------------- ##"
2197     echo
2198     for ac_var in $ac_subst_vars
2199     do
2200       eval ac_val=\$$ac_var
2201       case $ac_val in
2202       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2203       esac
2204       $as_echo "$ac_var='\''$ac_val'\''"
2205     done | sort
2206     echo
2207
2208     if test -n "$ac_subst_files"; then
2209       $as_echo "## ------------------- ##
2210 ## File substitutions. ##
2211 ## ------------------- ##"
2212       echo
2213       for ac_var in $ac_subst_files
2214       do
2215         eval ac_val=\$$ac_var
2216         case $ac_val in
2217         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2218         esac
2219         $as_echo "$ac_var='\''$ac_val'\''"
2220       done | sort
2221       echo
2222     fi
2223
2224     if test -s confdefs.h; then
2225       $as_echo "## ----------- ##
2226 ## confdefs.h. ##
2227 ## ----------- ##"
2228       echo
2229       cat confdefs.h
2230       echo
2231     fi
2232     test "$ac_signal" != 0 &&
2233       $as_echo "$as_me: caught signal $ac_signal"
2234     $as_echo "$as_me: exit $exit_status"
2235   } >&5
2236   rm -f core *.core core.conftest.* &&
2237     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2238     exit $exit_status
2239 ' 0
2240 for ac_signal in 1 2 13 15; do
2241   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2242 done
2243 ac_signal=0
2244
2245 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2246 rm -f -r conftest* confdefs.h
2247
2248 $as_echo "/* confdefs.h */" > confdefs.h
2249
2250 # Predefined preprocessor variables.
2251
2252 cat >>confdefs.h <<_ACEOF
2253 #define PACKAGE_NAME "$PACKAGE_NAME"
2254 _ACEOF
2255
2256 cat >>confdefs.h <<_ACEOF
2257 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2258 _ACEOF
2259
2260 cat >>confdefs.h <<_ACEOF
2261 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2262 _ACEOF
2263
2264 cat >>confdefs.h <<_ACEOF
2265 #define PACKAGE_STRING "$PACKAGE_STRING"
2266 _ACEOF
2267
2268 cat >>confdefs.h <<_ACEOF
2269 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2270 _ACEOF
2271
2272 cat >>confdefs.h <<_ACEOF
2273 #define PACKAGE_URL "$PACKAGE_URL"
2274 _ACEOF
2275
2276
2277 # Let the site file select an alternate cache file if it wants to.
2278 # Prefer an explicitly selected file to automatically selected ones.
2279 ac_site_file1=NONE
2280 ac_site_file2=NONE
2281 if test -n "$CONFIG_SITE"; then
2282   # We do not want a PATH search for config.site.
2283   case $CONFIG_SITE in #((
2284     -*)  ac_site_file1=./$CONFIG_SITE;;
2285     */*) ac_site_file1=$CONFIG_SITE;;
2286     *)   ac_site_file1=./$CONFIG_SITE;;
2287   esac
2288 elif test "x$prefix" != xNONE; then
2289   ac_site_file1=$prefix/share/config.site
2290   ac_site_file2=$prefix/etc/config.site
2291 else
2292   ac_site_file1=$ac_default_prefix/share/config.site
2293   ac_site_file2=$ac_default_prefix/etc/config.site
2294 fi
2295 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2296 do
2297   test "x$ac_site_file" = xNONE && continue
2298   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2299     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2300 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2301     sed 's/^/| /' "$ac_site_file" >&5
2302     . "$ac_site_file" \
2303       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2305 as_fn_error $? "failed to load site script $ac_site_file
2306 See \`config.log' for more details" "$LINENO" 5; }
2307   fi
2308 done
2309
2310 if test -r "$cache_file"; then
2311   # Some versions of bash will fail to source /dev/null (special files
2312   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2313   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2314     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2315 $as_echo "$as_me: loading cache $cache_file" >&6;}
2316     case $cache_file in
2317       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2318       *)                      . "./$cache_file";;
2319     esac
2320   fi
2321 else
2322   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2323 $as_echo "$as_me: creating cache $cache_file" >&6;}
2324   >$cache_file
2325 fi
2326
2327 gt_needs="$gt_needs "
2328 # Check that the precious variables saved in the cache have kept the same
2329 # value.
2330 ac_cache_corrupted=false
2331 for ac_var in $ac_precious_vars; do
2332   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2333   eval ac_new_set=\$ac_env_${ac_var}_set
2334   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2335   eval ac_new_val=\$ac_env_${ac_var}_value
2336   case $ac_old_set,$ac_new_set in
2337     set,)
2338       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2339 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2340       ac_cache_corrupted=: ;;
2341     ,set)
2342       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2343 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2344       ac_cache_corrupted=: ;;
2345     ,);;
2346     *)
2347       if test "x$ac_old_val" != "x$ac_new_val"; then
2348         # differences in whitespace do not lead to failure.
2349         ac_old_val_w=`echo x $ac_old_val`
2350         ac_new_val_w=`echo x $ac_new_val`
2351         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2352           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2353 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2354           ac_cache_corrupted=:
2355         else
2356           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2357 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2358           eval $ac_var=\$ac_old_val
2359         fi
2360         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2361 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2362         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2363 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2364       fi;;
2365   esac
2366   # Pass precious variables to config.status.
2367   if test "$ac_new_set" = set; then
2368     case $ac_new_val in
2369     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2370     *) ac_arg=$ac_var=$ac_new_val ;;
2371     esac
2372     case " $ac_configure_args " in
2373       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2374       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2375     esac
2376   fi
2377 done
2378 if $ac_cache_corrupted; then
2379   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2381   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2382 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2383   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2384 fi
2385 ## -------------------- ##
2386 ## Main body of script. ##
2387 ## -------------------- ##
2388
2389 ac_ext=c
2390 ac_cpp='$CPP $CPPFLAGS'
2391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2394
2395
2396 am__api_version='1.15'
2397
2398 ac_aux_dir=
2399 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2400   if test -f "$ac_dir/install-sh"; then
2401     ac_aux_dir=$ac_dir
2402     ac_install_sh="$ac_aux_dir/install-sh -c"
2403     break
2404   elif test -f "$ac_dir/install.sh"; then
2405     ac_aux_dir=$ac_dir
2406     ac_install_sh="$ac_aux_dir/install.sh -c"
2407     break
2408   elif test -f "$ac_dir/shtool"; then
2409     ac_aux_dir=$ac_dir
2410     ac_install_sh="$ac_aux_dir/shtool install -c"
2411     break
2412   fi
2413 done
2414 if test -z "$ac_aux_dir"; then
2415   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2416 fi
2417
2418 # These three variables are undocumented and unsupported,
2419 # and are intended to be withdrawn in a future Autoconf release.
2420 # They can cause serious problems if a builder's source tree is in a directory
2421 # whose full name contains unusual characters.
2422 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2423 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2424 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2425
2426
2427 # Find a good install program.  We prefer a C program (faster),
2428 # so one script is as good as another.  But avoid the broken or
2429 # incompatible versions:
2430 # SysV /etc/install, /usr/sbin/install
2431 # SunOS /usr/etc/install
2432 # IRIX /sbin/install
2433 # AIX /bin/install
2434 # AmigaOS /C/install, which installs bootblocks on floppy discs
2435 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2436 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2437 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2438 # OS/2's system install, which has a completely different semantic
2439 # ./install, which can be erroneously created by make from ./install.sh.
2440 # Reject install programs that cannot install multiple files.
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2442 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2443 if test -z "$INSTALL"; then
2444 if ${ac_cv_path_install+:} false; then :
2445   $as_echo_n "(cached) " >&6
2446 else
2447   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448 for as_dir in $PATH
2449 do
2450   IFS=$as_save_IFS
2451   test -z "$as_dir" && as_dir=.
2452     # Account for people who put trailing slashes in PATH elements.
2453 case $as_dir/ in #((
2454   ./ | .// | /[cC]/* | \
2455   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2456   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2457   /usr/ucb/* ) ;;
2458   *)
2459     # OSF1 and SCO ODT 3.0 have their own names for install.
2460     # Don't use installbsd from OSF since it installs stuff as root
2461     # by default.
2462     for ac_prog in ginstall scoinst install; do
2463       for ac_exec_ext in '' $ac_executable_extensions; do
2464         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2465           if test $ac_prog = install &&
2466             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2467             # AIX install.  It has an incompatible calling convention.
2468             :
2469           elif test $ac_prog = install &&
2470             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2471             # program-specific install script used by HP pwplus--don't use.
2472             :
2473           else
2474             rm -rf conftest.one conftest.two conftest.dir
2475             echo one > conftest.one
2476             echo two > conftest.two
2477             mkdir conftest.dir
2478             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2479               test -s conftest.one && test -s conftest.two &&
2480               test -s conftest.dir/conftest.one &&
2481               test -s conftest.dir/conftest.two
2482             then
2483               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2484               break 3
2485             fi
2486           fi
2487         fi
2488       done
2489     done
2490     ;;
2491 esac
2492
2493   done
2494 IFS=$as_save_IFS
2495
2496 rm -rf conftest.one conftest.two conftest.dir
2497
2498 fi
2499   if test "${ac_cv_path_install+set}" = set; then
2500     INSTALL=$ac_cv_path_install
2501   else
2502     # As a last resort, use the slow shell script.  Don't cache a
2503     # value for INSTALL within a source directory, because that will
2504     # break other packages using the cache if that directory is
2505     # removed, or if the value is a relative name.
2506     INSTALL=$ac_install_sh
2507   fi
2508 fi
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2510 $as_echo "$INSTALL" >&6; }
2511
2512 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2513 # It thinks the first close brace ends the variable substitution.
2514 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2515
2516 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2517
2518 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2519
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2521 $as_echo_n "checking whether build environment is sane... " >&6; }
2522 # Reject unsafe characters in $srcdir or the absolute working directory
2523 # name.  Accept space and tab only in the latter.
2524 am_lf='
2525 '
2526 case `pwd` in
2527   *[\\\"\#\$\&\'\`$am_lf]*)
2528     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2529 esac
2530 case $srcdir in
2531   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2532     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2533 esac
2534
2535 # Do 'set' in a subshell so we don't clobber the current shell's
2536 # arguments.  Must try -L first in case configure is actually a
2537 # symlink; some systems play weird games with the mod time of symlinks
2538 # (eg FreeBSD returns the mod time of the symlink's containing
2539 # directory).
2540 if (
2541    am_has_slept=no
2542    for am_try in 1 2; do
2543      echo "timestamp, slept: $am_has_slept" > conftest.file
2544      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2545      if test "$*" = "X"; then
2546         # -L didn't work.
2547         set X `ls -t "$srcdir/configure" conftest.file`
2548      fi
2549      if test "$*" != "X $srcdir/configure conftest.file" \
2550         && test "$*" != "X conftest.file $srcdir/configure"; then
2551
2552         # If neither matched, then we have a broken ls.  This can happen
2553         # if, for instance, CONFIG_SHELL is bash and it inherits a
2554         # broken ls alias from the environment.  This has actually
2555         # happened.  Such a system could not be considered "sane".
2556         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2557   alias in your environment" "$LINENO" 5
2558      fi
2559      if test "$2" = conftest.file || test $am_try -eq 2; then
2560        break
2561      fi
2562      # Just in case.
2563      sleep 1
2564      am_has_slept=yes
2565    done
2566    test "$2" = conftest.file
2567    )
2568 then
2569    # Ok.
2570    :
2571 else
2572    as_fn_error $? "newly created file is older than distributed files!
2573 Check your system clock" "$LINENO" 5
2574 fi
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2576 $as_echo "yes" >&6; }
2577 # If we didn't sleep, we still need to ensure time stamps of config.status and
2578 # generated files are strictly newer.
2579 am_sleep_pid=
2580 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2581   ( sleep 1 ) &
2582   am_sleep_pid=$!
2583 fi
2584
2585 rm -f conftest.file
2586
2587 test "$program_prefix" != NONE &&
2588   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2589 # Use a double $ so make ignores it.
2590 test "$program_suffix" != NONE &&
2591   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2592 # Double any \ or $.
2593 # By default was `s,x,x', remove it if useless.
2594 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2595 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2596
2597 # Expand $ac_aux_dir to an absolute path.
2598 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2599
2600 if test x"${MISSING+set}" != xset; then
2601   case $am_aux_dir in
2602   *\ * | *\     *)
2603     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2604   *)
2605     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2606   esac
2607 fi
2608 # Use eval to expand $SHELL
2609 if eval "$MISSING --is-lightweight"; then
2610   am_missing_run="$MISSING "
2611 else
2612   am_missing_run=
2613   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2614 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2615 fi
2616
2617 if test x"${install_sh+set}" != xset; then
2618   case $am_aux_dir in
2619   *\ * | *\     *)
2620     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2621   *)
2622     install_sh="\${SHELL} $am_aux_dir/install-sh"
2623   esac
2624 fi
2625
2626 # Installed binaries are usually stripped using 'strip' when the user
2627 # run "make install-strip".  However 'strip' might not be the right
2628 # tool to use in cross-compilation environments, therefore Automake
2629 # will honor the 'STRIP' environment variable to overrule this program.
2630 if test "$cross_compiling" != no; then
2631   if test -n "$ac_tool_prefix"; then
2632   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2633 set dummy ${ac_tool_prefix}strip; ac_word=$2
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2635 $as_echo_n "checking for $ac_word... " >&6; }
2636 if ${ac_cv_prog_STRIP+:} false; then :
2637   $as_echo_n "(cached) " >&6
2638 else
2639   if test -n "$STRIP"; then
2640   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2641 else
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 for as_dir in $PATH
2644 do
2645   IFS=$as_save_IFS
2646   test -z "$as_dir" && as_dir=.
2647     for ac_exec_ext in '' $ac_executable_extensions; do
2648   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2649     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2651     break 2
2652   fi
2653 done
2654   done
2655 IFS=$as_save_IFS
2656
2657 fi
2658 fi
2659 STRIP=$ac_cv_prog_STRIP
2660 if test -n "$STRIP"; then
2661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2662 $as_echo "$STRIP" >&6; }
2663 else
2664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2665 $as_echo "no" >&6; }
2666 fi
2667
2668
2669 fi
2670 if test -z "$ac_cv_prog_STRIP"; then
2671   ac_ct_STRIP=$STRIP
2672   # Extract the first word of "strip", so it can be a program name with args.
2673 set dummy strip; ac_word=$2
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2675 $as_echo_n "checking for $ac_word... " >&6; }
2676 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2677   $as_echo_n "(cached) " >&6
2678 else
2679   if test -n "$ac_ct_STRIP"; then
2680   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2681 else
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 for as_dir in $PATH
2684 do
2685   IFS=$as_save_IFS
2686   test -z "$as_dir" && as_dir=.
2687     for ac_exec_ext in '' $ac_executable_extensions; do
2688   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2689     ac_cv_prog_ac_ct_STRIP="strip"
2690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2691     break 2
2692   fi
2693 done
2694   done
2695 IFS=$as_save_IFS
2696
2697 fi
2698 fi
2699 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2700 if test -n "$ac_ct_STRIP"; then
2701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2702 $as_echo "$ac_ct_STRIP" >&6; }
2703 else
2704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2705 $as_echo "no" >&6; }
2706 fi
2707
2708   if test "x$ac_ct_STRIP" = x; then
2709     STRIP=":"
2710   else
2711     case $cross_compiling:$ac_tool_warned in
2712 yes:)
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2715 ac_tool_warned=yes ;;
2716 esac
2717     STRIP=$ac_ct_STRIP
2718   fi
2719 else
2720   STRIP="$ac_cv_prog_STRIP"
2721 fi
2722
2723 fi
2724 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2725
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2727 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2728 if test -z "$MKDIR_P"; then
2729   if ${ac_cv_path_mkdir+:} false; then :
2730   $as_echo_n "(cached) " >&6
2731 else
2732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2734 do
2735   IFS=$as_save_IFS
2736   test -z "$as_dir" && as_dir=.
2737     for ac_prog in mkdir gmkdir; do
2738          for ac_exec_ext in '' $ac_executable_extensions; do
2739            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2740            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2741              'mkdir (GNU coreutils) '* | \
2742              'mkdir (coreutils) '* | \
2743              'mkdir (fileutils) '4.1*)
2744                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2745                break 3;;
2746            esac
2747          done
2748        done
2749   done
2750 IFS=$as_save_IFS
2751
2752 fi
2753
2754   test -d ./--version && rmdir ./--version
2755   if test "${ac_cv_path_mkdir+set}" = set; then
2756     MKDIR_P="$ac_cv_path_mkdir -p"
2757   else
2758     # As a last resort, use the slow shell script.  Don't cache a
2759     # value for MKDIR_P within a source directory, because that will
2760     # break other packages using the cache if that directory is
2761     # removed, or if the value is a relative name.
2762     MKDIR_P="$ac_install_sh -d"
2763   fi
2764 fi
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2766 $as_echo "$MKDIR_P" >&6; }
2767
2768 for ac_prog in gawk mawk nawk awk
2769 do
2770   # Extract the first word of "$ac_prog", so it can be a program name with args.
2771 set dummy $ac_prog; ac_word=$2
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2773 $as_echo_n "checking for $ac_word... " >&6; }
2774 if ${ac_cv_prog_AWK+:} false; then :
2775   $as_echo_n "(cached) " >&6
2776 else
2777   if test -n "$AWK"; then
2778   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2779 else
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 for as_dir in $PATH
2782 do
2783   IFS=$as_save_IFS
2784   test -z "$as_dir" && as_dir=.
2785     for ac_exec_ext in '' $ac_executable_extensions; do
2786   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2787     ac_cv_prog_AWK="$ac_prog"
2788     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2789     break 2
2790   fi
2791 done
2792   done
2793 IFS=$as_save_IFS
2794
2795 fi
2796 fi
2797 AWK=$ac_cv_prog_AWK
2798 if test -n "$AWK"; then
2799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2800 $as_echo "$AWK" >&6; }
2801 else
2802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2803 $as_echo "no" >&6; }
2804 fi
2805
2806
2807   test -n "$AWK" && break
2808 done
2809
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2811 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2812 set x ${MAKE-make}
2813 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2814 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2815   $as_echo_n "(cached) " >&6
2816 else
2817   cat >conftest.make <<\_ACEOF
2818 SHELL = /bin/sh
2819 all:
2820         @echo '@@@%%%=$(MAKE)=@@@%%%'
2821 _ACEOF
2822 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2823 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2824   *@@@%%%=?*=@@@%%%*)
2825     eval ac_cv_prog_make_${ac_make}_set=yes;;
2826   *)
2827     eval ac_cv_prog_make_${ac_make}_set=no;;
2828 esac
2829 rm -f conftest.make
2830 fi
2831 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2833 $as_echo "yes" >&6; }
2834   SET_MAKE=
2835 else
2836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837 $as_echo "no" >&6; }
2838   SET_MAKE="MAKE=${MAKE-make}"
2839 fi
2840
2841 rm -rf .tst 2>/dev/null
2842 mkdir .tst 2>/dev/null
2843 if test -d .tst; then
2844   am__leading_dot=.
2845 else
2846   am__leading_dot=_
2847 fi
2848 rmdir .tst 2>/dev/null
2849
2850 # Check whether --enable-silent-rules was given.
2851 if test "${enable_silent_rules+set}" = set; then :
2852   enableval=$enable_silent_rules;
2853 fi
2854
2855 case $enable_silent_rules in # (((
2856   yes) AM_DEFAULT_VERBOSITY=0;;
2857    no) AM_DEFAULT_VERBOSITY=1;;
2858     *) AM_DEFAULT_VERBOSITY=1;;
2859 esac
2860 am_make=${MAKE-make}
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2862 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2863 if ${am_cv_make_support_nested_variables+:} false; then :
2864   $as_echo_n "(cached) " >&6
2865 else
2866   if $as_echo 'TRUE=$(BAR$(V))
2867 BAR0=false
2868 BAR1=true
2869 V=1
2870 am__doit:
2871         @$(TRUE)
2872 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2873   am_cv_make_support_nested_variables=yes
2874 else
2875   am_cv_make_support_nested_variables=no
2876 fi
2877 fi
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2879 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2880 if test $am_cv_make_support_nested_variables = yes; then
2881     AM_V='$(V)'
2882   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2883 else
2884   AM_V=$AM_DEFAULT_VERBOSITY
2885   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2886 fi
2887 AM_BACKSLASH='\'
2888
2889 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2890   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2891   # is not polluted with repeated "-I."
2892   am__isrc=' -I$(srcdir)'
2893   # test to see if srcdir already configured
2894   if test -f $srcdir/config.status; then
2895     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2896   fi
2897 fi
2898
2899 # test whether we have cygpath
2900 if test -z "$CYGPATH_W"; then
2901   if (cygpath --version) >/dev/null 2>/dev/null; then
2902     CYGPATH_W='cygpath -w'
2903   else
2904     CYGPATH_W=echo
2905   fi
2906 fi
2907
2908
2909 # Define the identity of the package.
2910  PACKAGE='psmisc'
2911  VERSION='23.0'
2912
2913
2914 cat >>confdefs.h <<_ACEOF
2915 #define PACKAGE "$PACKAGE"
2916 _ACEOF
2917
2918
2919 cat >>confdefs.h <<_ACEOF
2920 #define VERSION "$VERSION"
2921 _ACEOF
2922
2923 # Some tools Automake needs.
2924
2925 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2926
2927
2928 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2929
2930
2931 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2932
2933
2934 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2935
2936
2937 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2938
2939 # For better backward compatibility.  To be removed once Automake 1.9.x
2940 # dies out for good.  For more background, see:
2941 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2942 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2943 mkdir_p='$(MKDIR_P)'
2944
2945 # We need awk for the "check" target (and possibly the TAP driver).  The
2946 # system "awk" is bad on some platforms.
2947 # Always define AMTAR for backward compatibility.  Yes, it's still used
2948 # in the wild :-(  We should find a proper way to deprecate it ...
2949 AMTAR='$${TAR-tar}'
2950
2951
2952 # We'll loop over all known methods to create a tar archive until one works.
2953 _am_tools='gnutar  pax cpio none'
2954
2955
2956
2957   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
2958 $as_echo_n "checking how to create a pax tar archive... " >&6; }
2959
2960   # Go ahead even if we have the value already cached.  We do so because we
2961   # need to set the values for the 'am__tar' and 'am__untar' variables.
2962   _am_tools=${am_cv_prog_tar_pax-$_am_tools}
2963
2964   for _am_tool in $_am_tools; do
2965     case $_am_tool in
2966     gnutar)
2967       for _am_tar in tar gnutar gtar; do
2968         { echo "$as_me:$LINENO: $_am_tar --version" >&5
2969    ($_am_tar --version) >&5 2>&5
2970    ac_status=$?
2971    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972    (exit $ac_status); } && break
2973       done
2974       am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
2975       am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
2976       am__untar="$_am_tar -xf -"
2977       ;;
2978     plaintar)
2979       # Must skip GNU tar: if it does not support --format= it doesn't create
2980       # ustar tarball either.
2981       (tar --version) >/dev/null 2>&1 && continue
2982       am__tar='tar chf - "$$tardir"'
2983       am__tar_='tar chf - "$tardir"'
2984       am__untar='tar xf -'
2985       ;;
2986     pax)
2987       am__tar='pax -L -x pax -w "$$tardir"'
2988       am__tar_='pax -L -x pax -w "$tardir"'
2989       am__untar='pax -r'
2990       ;;
2991     cpio)
2992       am__tar='find "$$tardir" -print | cpio -o -H pax -L'
2993       am__tar_='find "$tardir" -print | cpio -o -H pax -L'
2994       am__untar='cpio -i -H pax -d'
2995       ;;
2996     none)
2997       am__tar=false
2998       am__tar_=false
2999       am__untar=false
3000       ;;
3001     esac
3002
3003     # If the value was cached, stop now.  We just wanted to have am__tar
3004     # and am__untar set.
3005     test -n "${am_cv_prog_tar_pax}" && break
3006
3007     # tar/untar a dummy directory, and stop if the command works.
3008     rm -rf conftest.dir
3009     mkdir conftest.dir
3010     echo GrepMe > conftest.dir/file
3011     { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3012    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3013    ac_status=$?
3014    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015    (exit $ac_status); }
3016     rm -rf conftest.dir
3017     if test -s conftest.tar; then
3018       { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3019    ($am__untar <conftest.tar) >&5 2>&5
3020    ac_status=$?
3021    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022    (exit $ac_status); }
3023       { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3024    (cat conftest.dir/file) >&5 2>&5
3025    ac_status=$?
3026    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027    (exit $ac_status); }
3028       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3029     fi
3030   done
3031   rm -rf conftest.dir
3032
3033   if ${am_cv_prog_tar_pax+:} false; then :
3034   $as_echo_n "(cached) " >&6
3035 else
3036   am_cv_prog_tar_pax=$_am_tool
3037 fi
3038
3039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
3040 $as_echo "$am_cv_prog_tar_pax" >&6; }
3041
3042
3043
3044
3045
3046
3047 # POSIX will say in a future version that running "rm -f" with no argument
3048 # is OK; and we want to be able to make that assumption in our Makefile
3049 # recipes.  So use an aggressive probe to check that the usage we want is
3050 # actually supported "in the wild" to an acceptable degree.
3051 # See automake bug#10828.
3052 # To make any issue more visible, cause the running configure to be aborted
3053 # by default if the 'rm' program in use doesn't match our expectations; the
3054 # user can still override this though.
3055 if rm -f && rm -fr && rm -rf; then : OK; else
3056   cat >&2 <<'END'
3057 Oops!
3058
3059 Your 'rm' program seems unable to run without file operands specified
3060 on the command line, even when the '-f' option is present.  This is contrary
3061 to the behaviour of most rm programs out there, and not conforming with
3062 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3063
3064 Please tell bug-automake@gnu.org about your system, including the value
3065 of your $PATH and any error possibly output before this message.  This
3066 can help us improve future automake versions.
3067
3068 END
3069   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3070     echo 'Configuration will proceed anyway, since you have set the' >&2
3071     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3072     echo >&2
3073   else
3074     cat >&2 <<'END'
3075 Aborting the configuration process, to ensure you take notice of the issue.
3076
3077 You can download and install GNU coreutils to get an 'rm' implementation
3078 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3079
3080 If you want to complete the configuration process using your problematic
3081 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3082 to "yes", and re-run configure.
3083
3084 END
3085     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3086   fi
3087 fi
3088
3089 # Check whether --enable-silent-rules was given.
3090 if test "${enable_silent_rules+set}" = set; then :
3091   enableval=$enable_silent_rules;
3092 fi
3093
3094 case $enable_silent_rules in # (((
3095   yes) AM_DEFAULT_VERBOSITY=0;;
3096    no) AM_DEFAULT_VERBOSITY=1;;
3097     *) AM_DEFAULT_VERBOSITY=1;;
3098 esac
3099 am_make=${MAKE-make}
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3101 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3102 if ${am_cv_make_support_nested_variables+:} false; then :
3103   $as_echo_n "(cached) " >&6
3104 else
3105   if $as_echo 'TRUE=$(BAR$(V))
3106 BAR0=false
3107 BAR1=true
3108 V=1
3109 am__doit:
3110         @$(TRUE)
3111 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3112   am_cv_make_support_nested_variables=yes
3113 else
3114   am_cv_make_support_nested_variables=no
3115 fi
3116 fi
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3118 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3119 if test $am_cv_make_support_nested_variables = yes; then
3120     AM_V='$(V)'
3121   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3122 else
3123   AM_V=$AM_DEFAULT_VERBOSITY
3124   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3125 fi
3126 AM_BACKSLASH='\'
3127
3128
3129 ac_config_headers="$ac_config_headers config.h"
3130
3131
3132 DEPDIR="${am__leading_dot}deps"
3133
3134 ac_config_commands="$ac_config_commands depfiles"
3135
3136
3137 am_make=${MAKE-make}
3138 cat > confinc << 'END'
3139 am__doit:
3140         @echo this is the am__doit target
3141 .PHONY: am__doit
3142 END
3143 # If we don't find an include directive, just comment out the code.
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3145 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3146 am__include="#"
3147 am__quote=
3148 _am_result=none
3149 # First try GNU make style include.
3150 echo "include confinc" > confmf
3151 # Ignore all kinds of additional output from 'make'.
3152 case `$am_make -s -f confmf 2> /dev/null` in #(
3153 *the\ am__doit\ target*)
3154   am__include=include
3155   am__quote=
3156   _am_result=GNU
3157   ;;
3158 esac
3159 # Now try BSD make style include.
3160 if test "$am__include" = "#"; then
3161    echo '.include "confinc"' > confmf
3162    case `$am_make -s -f confmf 2> /dev/null` in #(
3163    *the\ am__doit\ target*)
3164      am__include=.include
3165      am__quote="\""
3166      _am_result=BSD
3167      ;;
3168    esac
3169 fi
3170
3171
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3173 $as_echo "$_am_result" >&6; }
3174 rm -f confinc confmf
3175
3176 # Check whether --enable-dependency-tracking was given.
3177 if test "${enable_dependency_tracking+set}" = set; then :
3178   enableval=$enable_dependency_tracking;
3179 fi
3180
3181 if test "x$enable_dependency_tracking" != xno; then
3182   am_depcomp="$ac_aux_dir/depcomp"
3183   AMDEPBACKSLASH='\'
3184   am__nodep='_no'
3185 fi
3186  if test "x$enable_dependency_tracking" != xno; then
3187   AMDEP_TRUE=
3188   AMDEP_FALSE='#'
3189 else
3190   AMDEP_TRUE='#'
3191   AMDEP_FALSE=
3192 fi
3193
3194
3195 ac_ext=c
3196 ac_cpp='$CPP $CPPFLAGS'
3197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3200 if test -n "$ac_tool_prefix"; then
3201   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3202 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3204 $as_echo_n "checking for $ac_word... " >&6; }
3205 if ${ac_cv_prog_CC+:} false; then :
3206   $as_echo_n "(cached) " >&6
3207 else
3208   if test -n "$CC"; then
3209   ac_cv_prog_CC="$CC" # Let the user override the test.
3210 else
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 for as_dir in $PATH
3213 do
3214   IFS=$as_save_IFS
3215   test -z "$as_dir" && as_dir=.
3216     for ac_exec_ext in '' $ac_executable_extensions; do
3217   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3218     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3220     break 2
3221   fi
3222 done
3223   done
3224 IFS=$as_save_IFS
3225
3226 fi
3227 fi
3228 CC=$ac_cv_prog_CC
3229 if test -n "$CC"; then
3230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3231 $as_echo "$CC" >&6; }
3232 else
3233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3235 fi
3236
3237
3238 fi
3239 if test -z "$ac_cv_prog_CC"; then
3240   ac_ct_CC=$CC
3241   # Extract the first word of "gcc", so it can be a program name with args.
3242 set dummy gcc; ac_word=$2
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244 $as_echo_n "checking for $ac_word... " >&6; }
3245 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3246   $as_echo_n "(cached) " >&6
3247 else
3248   if test -n "$ac_ct_CC"; then
3249   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3250 else
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $PATH
3253 do
3254   IFS=$as_save_IFS
3255   test -z "$as_dir" && as_dir=.
3256     for ac_exec_ext in '' $ac_executable_extensions; do
3257   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3258     ac_cv_prog_ac_ct_CC="gcc"
3259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3260     break 2
3261   fi
3262 done
3263   done
3264 IFS=$as_save_IFS
3265
3266 fi
3267 fi
3268 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3269 if test -n "$ac_ct_CC"; then
3270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3271 $as_echo "$ac_ct_CC" >&6; }
3272 else
3273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3275 fi
3276
3277   if test "x$ac_ct_CC" = x; then
3278     CC=""
3279   else
3280     case $cross_compiling:$ac_tool_warned in
3281 yes:)
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3284 ac_tool_warned=yes ;;
3285 esac
3286     CC=$ac_ct_CC
3287   fi
3288 else
3289   CC="$ac_cv_prog_CC"
3290 fi
3291
3292 if test -z "$CC"; then
3293           if test -n "$ac_tool_prefix"; then
3294     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3295 set dummy ${ac_tool_prefix}cc; ac_word=$2
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3297 $as_echo_n "checking for $ac_word... " >&6; }
3298 if ${ac_cv_prog_CC+:} false; then :
3299   $as_echo_n "(cached) " >&6
3300 else
3301   if test -n "$CC"; then
3302   ac_cv_prog_CC="$CC" # Let the user override the test.
3303 else
3304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305 for as_dir in $PATH
3306 do
3307   IFS=$as_save_IFS
3308   test -z "$as_dir" && as_dir=.
3309     for ac_exec_ext in '' $ac_executable_extensions; do
3310   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3311     ac_cv_prog_CC="${ac_tool_prefix}cc"
3312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3313     break 2
3314   fi
3315 done
3316   done
3317 IFS=$as_save_IFS
3318
3319 fi
3320 fi
3321 CC=$ac_cv_prog_CC
3322 if test -n "$CC"; then
3323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3324 $as_echo "$CC" >&6; }
3325 else
3326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3327 $as_echo "no" >&6; }
3328 fi
3329
3330
3331   fi
3332 fi
3333 if test -z "$CC"; then
3334   # Extract the first word of "cc", so it can be a program name with args.
3335 set dummy cc; ac_word=$2
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3337 $as_echo_n "checking for $ac_word... " >&6; }
3338 if ${ac_cv_prog_CC+:} false; then :
3339   $as_echo_n "(cached) " >&6
3340 else
3341   if test -n "$CC"; then
3342   ac_cv_prog_CC="$CC" # Let the user override the test.
3343 else
3344   ac_prog_rejected=no
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 for as_dir in $PATH
3347 do
3348   IFS=$as_save_IFS
3349   test -z "$as_dir" && as_dir=.
3350     for ac_exec_ext in '' $ac_executable_extensions; do
3351   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3352     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3353        ac_prog_rejected=yes
3354        continue
3355      fi
3356     ac_cv_prog_CC="cc"
3357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3358     break 2
3359   fi
3360 done
3361   done
3362 IFS=$as_save_IFS
3363
3364 if test $ac_prog_rejected = yes; then
3365   # We found a bogon in the path, so make sure we never use it.
3366   set dummy $ac_cv_prog_CC
3367   shift
3368   if test $# != 0; then
3369     # We chose a different compiler from the bogus one.
3370     # However, it has the same basename, so the bogon will be chosen
3371     # first if we set CC to just the basename; use the full file name.
3372     shift
3373     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3374   fi
3375 fi
3376 fi
3377 fi
3378 CC=$ac_cv_prog_CC
3379 if test -n "$CC"; then
3380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3381 $as_echo "$CC" >&6; }
3382 else
3383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3384 $as_echo "no" >&6; }
3385 fi
3386
3387
3388 fi
3389 if test -z "$CC"; then
3390   if test -n "$ac_tool_prefix"; then
3391   for ac_prog in cl.exe
3392   do
3393     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3394 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3396 $as_echo_n "checking for $ac_word... " >&6; }
3397 if ${ac_cv_prog_CC+:} false; then :
3398   $as_echo_n "(cached) " >&6
3399 else
3400   if test -n "$CC"; then
3401   ac_cv_prog_CC="$CC" # Let the user override the test.
3402 else
3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 for as_dir in $PATH
3405 do
3406   IFS=$as_save_IFS
3407   test -z "$as_dir" && as_dir=.
3408     for ac_exec_ext in '' $ac_executable_extensions; do
3409   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3410     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3412     break 2
3413   fi
3414 done
3415   done
3416 IFS=$as_save_IFS
3417
3418 fi
3419 fi
3420 CC=$ac_cv_prog_CC
3421 if test -n "$CC"; then
3422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3423 $as_echo "$CC" >&6; }
3424 else
3425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3426 $as_echo "no" >&6; }
3427 fi
3428
3429
3430     test -n "$CC" && break
3431   done
3432 fi
3433 if test -z "$CC"; then
3434   ac_ct_CC=$CC
3435   for ac_prog in cl.exe
3436 do
3437   # Extract the first word of "$ac_prog", so it can be a program name with args.
3438 set dummy $ac_prog; ac_word=$2
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3440 $as_echo_n "checking for $ac_word... " >&6; }
3441 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3442   $as_echo_n "(cached) " >&6
3443 else
3444   if test -n "$ac_ct_CC"; then
3445   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3446 else
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448 for as_dir in $PATH
3449 do
3450   IFS=$as_save_IFS
3451   test -z "$as_dir" && as_dir=.
3452     for ac_exec_ext in '' $ac_executable_extensions; do
3453   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3454     ac_cv_prog_ac_ct_CC="$ac_prog"
3455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3456     break 2
3457   fi
3458 done
3459   done
3460 IFS=$as_save_IFS
3461
3462 fi
3463 fi
3464 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3465 if test -n "$ac_ct_CC"; then
3466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3467 $as_echo "$ac_ct_CC" >&6; }
3468 else
3469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470 $as_echo "no" >&6; }
3471 fi
3472
3473
3474   test -n "$ac_ct_CC" && break
3475 done
3476
3477   if test "x$ac_ct_CC" = x; then
3478     CC=""
3479   else
3480     case $cross_compiling:$ac_tool_warned in
3481 yes:)
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3484 ac_tool_warned=yes ;;
3485 esac
3486     CC=$ac_ct_CC
3487   fi
3488 fi
3489
3490 fi
3491
3492
3493 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3495 as_fn_error $? "no acceptable C compiler found in \$PATH
3496 See \`config.log' for more details" "$LINENO" 5; }
3497
3498 # Provide some information about the compiler.
3499 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3500 set X $ac_compile
3501 ac_compiler=$2
3502 for ac_option in --version -v -V -qversion; do
3503   { { ac_try="$ac_compiler $ac_option >&5"
3504 case "(($ac_try" in
3505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506   *) ac_try_echo=$ac_try;;
3507 esac
3508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3509 $as_echo "$ac_try_echo"; } >&5
3510   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3511   ac_status=$?
3512   if test -s conftest.err; then
3513     sed '10a\
3514 ... rest of stderr output deleted ...
3515          10q' conftest.err >conftest.er1
3516     cat conftest.er1 >&5
3517   fi
3518   rm -f conftest.er1 conftest.err
3519   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3520   test $ac_status = 0; }
3521 done
3522
3523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524 /* end confdefs.h.  */
3525
3526 int
3527 main ()
3528 {
3529
3530   ;
3531   return 0;
3532 }
3533 _ACEOF
3534 ac_clean_files_save=$ac_clean_files
3535 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3536 # Try to create an executable without -o first, disregard a.out.
3537 # It will help us diagnose broken compilers, and finding out an intuition
3538 # of exeext.
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3540 $as_echo_n "checking whether the C compiler works... " >&6; }
3541 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3542
3543 # The possible output files:
3544 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3545
3546 ac_rmfiles=
3547 for ac_file in $ac_files
3548 do
3549   case $ac_file in
3550     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3551     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3552   esac
3553 done
3554 rm -f $ac_rmfiles
3555
3556 if { { ac_try="$ac_link_default"
3557 case "(($ac_try" in
3558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559   *) ac_try_echo=$ac_try;;
3560 esac
3561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3562 $as_echo "$ac_try_echo"; } >&5
3563   (eval "$ac_link_default") 2>&5
3564   ac_status=$?
3565   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3566   test $ac_status = 0; }; then :
3567   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3568 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3569 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3570 # so that the user can short-circuit this test for compilers unknown to
3571 # Autoconf.
3572 for ac_file in $ac_files ''
3573 do
3574   test -f "$ac_file" || continue
3575   case $ac_file in
3576     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3577         ;;
3578     [ab].out )
3579         # We found the default executable, but exeext='' is most
3580         # certainly right.
3581         break;;
3582     *.* )
3583         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3584         then :; else
3585            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3586         fi
3587         # We set ac_cv_exeext here because the later test for it is not
3588         # safe: cross compilers may not add the suffix if given an `-o'
3589         # argument, so we may need to know it at that point already.
3590         # Even if this section looks crufty: it has the advantage of
3591         # actually working.
3592         break;;
3593     * )
3594         break;;
3595   esac
3596 done
3597 test "$ac_cv_exeext" = no && ac_cv_exeext=
3598
3599 else
3600   ac_file=''
3601 fi
3602 if test -z "$ac_file"; then :
3603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3604 $as_echo "no" >&6; }
3605 $as_echo "$as_me: failed program was:" >&5
3606 sed 's/^/| /' conftest.$ac_ext >&5
3607
3608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3610 as_fn_error 77 "C compiler cannot create executables
3611 See \`config.log' for more details" "$LINENO" 5; }
3612 else
3613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3614 $as_echo "yes" >&6; }
3615 fi
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3617 $as_echo_n "checking for C compiler default output file name... " >&6; }
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3619 $as_echo "$ac_file" >&6; }
3620 ac_exeext=$ac_cv_exeext
3621
3622 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3623 ac_clean_files=$ac_clean_files_save
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3625 $as_echo_n "checking for suffix of executables... " >&6; }
3626 if { { ac_try="$ac_link"
3627 case "(($ac_try" in
3628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629   *) ac_try_echo=$ac_try;;
3630 esac
3631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3632 $as_echo "$ac_try_echo"; } >&5
3633   (eval "$ac_link") 2>&5
3634   ac_status=$?
3635   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3636   test $ac_status = 0; }; then :
3637   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3638 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3639 # work properly (i.e., refer to `conftest.exe'), while it won't with
3640 # `rm'.
3641 for ac_file in conftest.exe conftest conftest.*; do
3642   test -f "$ac_file" || continue
3643   case $ac_file in
3644     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3645     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3646           break;;
3647     * ) break;;
3648   esac
3649 done
3650 else
3651   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3653 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3654 See \`config.log' for more details" "$LINENO" 5; }
3655 fi
3656 rm -f conftest conftest$ac_cv_exeext
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3658 $as_echo "$ac_cv_exeext" >&6; }
3659
3660 rm -f conftest.$ac_ext
3661 EXEEXT=$ac_cv_exeext
3662 ac_exeext=$EXEEXT
3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h.  */
3665 #include <stdio.h>
3666 int
3667 main ()
3668 {
3669 FILE *f = fopen ("conftest.out", "w");
3670  return ferror (f) || fclose (f) != 0;
3671
3672   ;
3673   return 0;
3674 }
3675 _ACEOF
3676 ac_clean_files="$ac_clean_files conftest.out"
3677 # Check that the compiler produces executables we can run.  If not, either
3678 # the compiler is broken, or we cross compile.
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3680 $as_echo_n "checking whether we are cross compiling... " >&6; }
3681 if test "$cross_compiling" != yes; then
3682   { { ac_try="$ac_link"
3683 case "(($ac_try" in
3684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685   *) ac_try_echo=$ac_try;;
3686 esac
3687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3688 $as_echo "$ac_try_echo"; } >&5
3689   (eval "$ac_link") 2>&5
3690   ac_status=$?
3691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3692   test $ac_status = 0; }
3693   if { ac_try='./conftest$ac_cv_exeext'
3694   { { case "(($ac_try" in
3695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696   *) ac_try_echo=$ac_try;;
3697 esac
3698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3699 $as_echo "$ac_try_echo"; } >&5
3700   (eval "$ac_try") 2>&5
3701   ac_status=$?
3702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3703   test $ac_status = 0; }; }; then
3704     cross_compiling=no
3705   else
3706     if test "$cross_compiling" = maybe; then
3707         cross_compiling=yes
3708     else
3709         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3711 as_fn_error $? "cannot run C compiled programs.
3712 If you meant to cross compile, use \`--host'.
3713 See \`config.log' for more details" "$LINENO" 5; }
3714     fi
3715   fi
3716 fi
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3718 $as_echo "$cross_compiling" >&6; }
3719
3720 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3721 ac_clean_files=$ac_clean_files_save
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3723 $as_echo_n "checking for suffix of object files... " >&6; }
3724 if ${ac_cv_objext+:} false; then :
3725   $as_echo_n "(cached) " >&6
3726 else
3727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h.  */
3729
3730 int
3731 main ()
3732 {
3733
3734   ;
3735   return 0;
3736 }
3737 _ACEOF
3738 rm -f conftest.o conftest.obj
3739 if { { ac_try="$ac_compile"
3740 case "(($ac_try" in
3741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742   *) ac_try_echo=$ac_try;;
3743 esac
3744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3745 $as_echo "$ac_try_echo"; } >&5
3746   (eval "$ac_compile") 2>&5
3747   ac_status=$?
3748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3749   test $ac_status = 0; }; then :
3750   for ac_file in conftest.o conftest.obj conftest.*; do
3751   test -f "$ac_file" || continue;
3752   case $ac_file in
3753     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3754     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3755        break;;
3756   esac
3757 done
3758 else
3759   $as_echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3761
3762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3764 as_fn_error $? "cannot compute suffix of object files: cannot compile
3765 See \`config.log' for more details" "$LINENO" 5; }
3766 fi
3767 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3768 fi
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3770 $as_echo "$ac_cv_objext" >&6; }
3771 OBJEXT=$ac_cv_objext
3772 ac_objext=$OBJEXT
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3774 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3775 if ${ac_cv_c_compiler_gnu+:} false; then :
3776   $as_echo_n "(cached) " >&6
3777 else
3778   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h.  */
3780
3781 int
3782 main ()
3783 {
3784 #ifndef __GNUC__
3785        choke me
3786 #endif
3787
3788   ;
3789   return 0;
3790 }
3791 _ACEOF
3792 if ac_fn_c_try_compile "$LINENO"; then :
3793   ac_compiler_gnu=yes
3794 else
3795   ac_compiler_gnu=no
3796 fi
3797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3798 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3799
3800 fi
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3802 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3803 if test $ac_compiler_gnu = yes; then
3804   GCC=yes
3805 else
3806   GCC=
3807 fi
3808 ac_test_CFLAGS=${CFLAGS+set}
3809 ac_save_CFLAGS=$CFLAGS
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3811 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3812 if ${ac_cv_prog_cc_g+:} false; then :
3813   $as_echo_n "(cached) " >&6
3814 else
3815   ac_save_c_werror_flag=$ac_c_werror_flag
3816    ac_c_werror_flag=yes
3817    ac_cv_prog_cc_g=no
3818    CFLAGS="-g"
3819    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h.  */
3821
3822 int
3823 main ()
3824 {
3825
3826   ;
3827   return 0;
3828 }
3829 _ACEOF
3830 if ac_fn_c_try_compile "$LINENO"; then :
3831   ac_cv_prog_cc_g=yes
3832 else
3833   CFLAGS=""
3834       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h.  */
3836
3837 int
3838 main ()
3839 {
3840
3841   ;
3842   return 0;
3843 }
3844 _ACEOF
3845 if ac_fn_c_try_compile "$LINENO"; then :
3846
3847 else
3848   ac_c_werror_flag=$ac_save_c_werror_flag
3849          CFLAGS="-g"
3850          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851 /* end confdefs.h.  */
3852
3853 int
3854 main ()
3855 {
3856
3857   ;
3858   return 0;
3859 }
3860 _ACEOF
3861 if ac_fn_c_try_compile "$LINENO"; then :
3862   ac_cv_prog_cc_g=yes
3863 fi
3864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3865 fi
3866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3867 fi
3868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3869    ac_c_werror_flag=$ac_save_c_werror_flag
3870 fi
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3872 $as_echo "$ac_cv_prog_cc_g" >&6; }
3873 if test "$ac_test_CFLAGS" = set; then
3874   CFLAGS=$ac_save_CFLAGS
3875 elif test $ac_cv_prog_cc_g = yes; then
3876   if test "$GCC" = yes; then
3877     CFLAGS="-g -O2"
3878   else
3879     CFLAGS="-g"
3880   fi
3881 else
3882   if test "$GCC" = yes; then
3883     CFLAGS="-O2"
3884   else
3885     CFLAGS=
3886   fi
3887 fi
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3889 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3890 if ${ac_cv_prog_cc_c89+:} false; then :
3891   $as_echo_n "(cached) " >&6
3892 else
3893   ac_cv_prog_cc_c89=no
3894 ac_save_CC=$CC
3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h.  */
3897 #include <stdarg.h>
3898 #include <stdio.h>
3899 struct stat;
3900 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3901 struct buf { int x; };
3902 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3903 static char *e (p, i)
3904      char **p;
3905      int i;
3906 {
3907   return p[i];
3908 }
3909 static char *f (char * (*g) (char **, int), char **p, ...)
3910 {
3911   char *s;
3912   va_list v;
3913   va_start (v,p);
3914   s = g (p, va_arg (v,int));
3915   va_end (v);
3916   return s;
3917 }
3918
3919 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3920    function prototypes and stuff, but not '\xHH' hex character constants.
3921    These don't provoke an error unfortunately, instead are silently treated
3922    as 'x'.  The following induces an error, until -std is added to get
3923    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3924    array size at least.  It's necessary to write '\x00'==0 to get something
3925    that's true only with -std.  */
3926 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3927
3928 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3929    inside strings and character constants.  */
3930 #define FOO(x) 'x'
3931 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3932
3933 int test (int i, double x);
3934 struct s1 {int (*f) (int a);};
3935 struct s2 {int (*f) (double a);};
3936 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3937 int argc;
3938 char **argv;
3939 int
3940 main ()
3941 {
3942 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3943   ;
3944   return 0;
3945 }
3946 _ACEOF
3947 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3948         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3949 do
3950   CC="$ac_save_CC $ac_arg"
3951   if ac_fn_c_try_compile "$LINENO"; then :
3952   ac_cv_prog_cc_c89=$ac_arg
3953 fi
3954 rm -f core conftest.err conftest.$ac_objext
3955   test "x$ac_cv_prog_cc_c89" != "xno" && break
3956 done
3957 rm -f conftest.$ac_ext
3958 CC=$ac_save_CC
3959
3960 fi
3961 # AC_CACHE_VAL
3962 case "x$ac_cv_prog_cc_c89" in
3963   x)
3964     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3965 $as_echo "none needed" >&6; } ;;
3966   xno)
3967     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3968 $as_echo "unsupported" >&6; } ;;
3969   *)
3970     CC="$CC $ac_cv_prog_cc_c89"
3971     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3972 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3973 esac
3974 if test "x$ac_cv_prog_cc_c89" != xno; then :
3975
3976 fi
3977
3978 ac_ext=c
3979 ac_cpp='$CPP $CPPFLAGS'
3980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3983
3984 ac_ext=c
3985 ac_cpp='$CPP $CPPFLAGS'
3986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3990 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3991 if ${am_cv_prog_cc_c_o+:} false; then :
3992   $as_echo_n "(cached) " >&6
3993 else
3994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h.  */
3996
3997 int
3998 main ()
3999 {
4000
4001   ;
4002   return 0;
4003 }
4004 _ACEOF
4005   # Make sure it works both with $CC and with simple cc.
4006   # Following AC_PROG_CC_C_O, we do the test twice because some
4007   # compilers refuse to overwrite an existing .o file with -o,
4008   # though they will create one.
4009   am_cv_prog_cc_c_o=yes
4010   for am_i in 1 2; do
4011     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4012    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4013    ac_status=$?
4014    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015    (exit $ac_status); } \
4016          && test -f conftest2.$ac_objext; then
4017       : OK
4018     else
4019       am_cv_prog_cc_c_o=no
4020       break
4021     fi
4022   done
4023   rm -f core conftest*
4024   unset am_i
4025 fi
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4027 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4028 if test "$am_cv_prog_cc_c_o" != yes; then
4029    # Losing compiler, so override with the script.
4030    # FIXME: It is wrong to rewrite CC.
4031    # But if we don't then we get into trouble of one sort or another.
4032    # A longer-term fix would be to have automake use am__CC in this case,
4033    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4034    CC="$am_aux_dir/compile $CC"
4035 fi
4036 ac_ext=c
4037 ac_cpp='$CPP $CPPFLAGS'
4038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4041
4042
4043 depcc="$CC"   am_compiler_list=
4044
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4046 $as_echo_n "checking dependency style of $depcc... " >&6; }
4047 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4048   $as_echo_n "(cached) " >&6
4049 else
4050   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4051   # We make a subdir and do the tests there.  Otherwise we can end up
4052   # making bogus files that we don't know about and never remove.  For
4053   # instance it was reported that on HP-UX the gcc test will end up
4054   # making a dummy file named 'D' -- because '-MD' means "put the output
4055   # in D".
4056   rm -rf conftest.dir
4057   mkdir conftest.dir
4058   # Copy depcomp to subdir because otherwise we won't find it if we're
4059   # using a relative directory.
4060   cp "$am_depcomp" conftest.dir
4061   cd conftest.dir
4062   # We will build objects and dependencies in a subdirectory because
4063   # it helps to detect inapplicable dependency modes.  For instance
4064   # both Tru64's cc and ICC support -MD to output dependencies as a
4065   # side effect of compilation, but ICC will put the dependencies in
4066   # the current directory while Tru64 will put them in the object
4067   # directory.
4068   mkdir sub
4069
4070   am_cv_CC_dependencies_compiler_type=none
4071   if test "$am_compiler_list" = ""; then
4072      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4073   fi
4074   am__universal=false
4075   case " $depcc " in #(
4076      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4077      esac
4078
4079   for depmode in $am_compiler_list; do
4080     # Setup a source with many dependencies, because some compilers
4081     # like to wrap large dependency lists on column 80 (with \), and
4082     # we should not choose a depcomp mode which is confused by this.
4083     #
4084     # We need to recreate these files for each test, as the compiler may
4085     # overwrite some of them when testing with obscure command lines.
4086     # This happens at least with the AIX C compiler.
4087     : > sub/conftest.c
4088     for i in 1 2 3 4 5 6; do
4089       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4090       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4091       # Solaris 10 /bin/sh.
4092       echo '/* dummy */' > sub/conftst$i.h
4093     done
4094     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4095
4096     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4097     # mode.  It turns out that the SunPro C++ compiler does not properly
4098     # handle '-M -o', and we need to detect this.  Also, some Intel
4099     # versions had trouble with output in subdirs.
4100     am__obj=sub/conftest.${OBJEXT-o}
4101     am__minus_obj="-o $am__obj"
4102     case $depmode in
4103     gcc)
4104       # This depmode causes a compiler race in universal mode.
4105       test "$am__universal" = false || continue
4106       ;;
4107     nosideeffect)
4108       # After this tag, mechanisms are not by side-effect, so they'll
4109       # only be used when explicitly requested.
4110       if test "x$enable_dependency_tracking" = xyes; then
4111         continue
4112       else
4113         break
4114       fi
4115       ;;
4116     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4117       # This compiler won't grok '-c -o', but also, the minuso test has
4118       # not run yet.  These depmodes are late enough in the game, and
4119       # so weak that their functioning should not be impacted.
4120       am__obj=conftest.${OBJEXT-o}
4121       am__minus_obj=
4122       ;;
4123     none) break ;;
4124     esac
4125     if depmode=$depmode \
4126        source=sub/conftest.c object=$am__obj \
4127        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4128        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4129          >/dev/null 2>conftest.err &&
4130        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4131        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4132        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4133        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4134       # icc doesn't choke on unknown options, it will just issue warnings
4135       # or remarks (even with -Werror).  So we grep stderr for any message
4136       # that says an option was ignored or not supported.
4137       # When given -MP, icc 7.0 and 7.1 complain thusly:
4138       #   icc: Command line warning: ignoring option '-M'; no argument required
4139       # The diagnosis changed in icc 8.0:
4140       #   icc: Command line remark: option '-MP' not supported
4141       if (grep 'ignoring option' conftest.err ||
4142           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4143         am_cv_CC_dependencies_compiler_type=$depmode
4144         break
4145       fi
4146     fi
4147   done
4148
4149   cd ..
4150   rm -rf conftest.dir
4151 else
4152   am_cv_CC_dependencies_compiler_type=none
4153 fi
4154
4155 fi
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4157 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4158 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4159
4160  if
4161   test "x$enable_dependency_tracking" != xno \
4162   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4163   am__fastdepCC_TRUE=
4164   am__fastdepCC_FALSE='#'
4165 else
4166   am__fastdepCC_TRUE='#'
4167   am__fastdepCC_FALSE=
4168 fi
4169
4170
4171
4172 ac_ext=c
4173 ac_cpp='$CPP $CPPFLAGS'
4174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4178 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4179 # On Suns, sometimes $CPP names a directory.
4180 if test -n "$CPP" && test -d "$CPP"; then
4181   CPP=
4182 fi
4183 if test -z "$CPP"; then
4184   if ${ac_cv_prog_CPP+:} false; then :
4185   $as_echo_n "(cached) " >&6
4186 else
4187       # Double quotes because CPP needs to be expanded
4188     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4189     do
4190       ac_preproc_ok=false
4191 for ac_c_preproc_warn_flag in '' yes
4192 do
4193   # Use a header file that comes with gcc, so configuring glibc
4194   # with a fresh cross-compiler works.
4195   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4196   # <limits.h> exists even on freestanding compilers.
4197   # On the NeXT, cc -E runs the code through the compiler's parser,
4198   # not just through cpp. "Syntax error" is here to catch this case.
4199   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h.  */
4201 #ifdef __STDC__
4202 # include <limits.h>
4203 #else
4204 # include <assert.h>
4205 #endif
4206                      Syntax error
4207 _ACEOF
4208 if ac_fn_c_try_cpp "$LINENO"; then :
4209
4210 else
4211   # Broken: fails on valid input.
4212 continue
4213 fi
4214 rm -f conftest.err conftest.i conftest.$ac_ext
4215
4216   # OK, works on sane cases.  Now check whether nonexistent headers
4217   # can be detected and how.
4218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219 /* end confdefs.h.  */
4220 #include <ac_nonexistent.h>
4221 _ACEOF
4222 if ac_fn_c_try_cpp "$LINENO"; then :
4223   # Broken: success on invalid input.
4224 continue
4225 else
4226   # Passes both tests.
4227 ac_preproc_ok=:
4228 break
4229 fi
4230 rm -f conftest.err conftest.i conftest.$ac_ext
4231
4232 done
4233 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4234 rm -f conftest.i conftest.err conftest.$ac_ext
4235 if $ac_preproc_ok; then :
4236   break
4237 fi
4238
4239     done
4240     ac_cv_prog_CPP=$CPP
4241
4242 fi
4243   CPP=$ac_cv_prog_CPP
4244 else
4245   ac_cv_prog_CPP=$CPP
4246 fi
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4248 $as_echo "$CPP" >&6; }
4249 ac_preproc_ok=false
4250 for ac_c_preproc_warn_flag in '' yes
4251 do
4252   # Use a header file that comes with gcc, so configuring glibc
4253   # with a fresh cross-compiler works.
4254   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4255   # <limits.h> exists even on freestanding compilers.
4256   # On the NeXT, cc -E runs the code through the compiler's parser,
4257   # not just through cpp. "Syntax error" is here to catch this case.
4258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259 /* end confdefs.h.  */
4260 #ifdef __STDC__
4261 # include <limits.h>
4262 #else
4263 # include <assert.h>
4264 #endif
4265                      Syntax error
4266 _ACEOF
4267 if ac_fn_c_try_cpp "$LINENO"; then :
4268
4269 else
4270   # Broken: fails on valid input.
4271 continue
4272 fi
4273 rm -f conftest.err conftest.i conftest.$ac_ext
4274
4275   # OK, works on sane cases.  Now check whether nonexistent headers
4276   # can be detected and how.
4277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h.  */
4279 #include <ac_nonexistent.h>
4280 _ACEOF
4281 if ac_fn_c_try_cpp "$LINENO"; then :
4282   # Broken: success on invalid input.
4283 continue
4284 else
4285   # Passes both tests.
4286 ac_preproc_ok=:
4287 break
4288 fi
4289 rm -f conftest.err conftest.i conftest.$ac_ext
4290
4291 done
4292 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4293 rm -f conftest.i conftest.err conftest.$ac_ext
4294 if $ac_preproc_ok; then :
4295
4296 else
4297   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4299 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4300 See \`config.log' for more details" "$LINENO" 5; }
4301 fi
4302
4303 ac_ext=c
4304 ac_cpp='$CPP $CPPFLAGS'
4305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4308
4309
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4311 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4312 if ${ac_cv_path_GREP+:} false; then :
4313   $as_echo_n "(cached) " >&6
4314 else
4315   if test -z "$GREP"; then
4316   ac_path_GREP_found=false
4317   # Loop through the user's path and test for each of PROGNAME-LIST
4318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4320 do
4321   IFS=$as_save_IFS
4322   test -z "$as_dir" && as_dir=.
4323     for ac_prog in grep ggrep; do
4324     for ac_exec_ext in '' $ac_executable_extensions; do
4325       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4326       as_fn_executable_p "$ac_path_GREP" || continue
4327 # Check for GNU ac_path_GREP and select it if it is found.
4328   # Check for GNU $ac_path_GREP
4329 case `"$ac_path_GREP" --version 2>&1` in
4330 *GNU*)
4331   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4332 *)
4333   ac_count=0
4334   $as_echo_n 0123456789 >"conftest.in"
4335   while :
4336   do
4337     cat "conftest.in" "conftest.in" >"conftest.tmp"
4338     mv "conftest.tmp" "conftest.in"
4339     cp "conftest.in" "conftest.nl"
4340     $as_echo 'GREP' >> "conftest.nl"
4341     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4342     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4343     as_fn_arith $ac_count + 1 && ac_count=$as_val
4344     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4345       # Best one so far, save it but keep looking for a better one
4346       ac_cv_path_GREP="$ac_path_GREP"
4347       ac_path_GREP_max=$ac_count
4348     fi
4349     # 10*(2^10) chars as input seems more than enough
4350     test $ac_count -gt 10 && break
4351   done
4352   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4353 esac
4354
4355       $ac_path_GREP_found && break 3
4356     done
4357   done
4358   done
4359 IFS=$as_save_IFS
4360   if test -z "$ac_cv_path_GREP"; then
4361     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4362   fi
4363 else
4364   ac_cv_path_GREP=$GREP
4365 fi
4366
4367 fi
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4369 $as_echo "$ac_cv_path_GREP" >&6; }
4370  GREP="$ac_cv_path_GREP"
4371
4372
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4374 $as_echo_n "checking for egrep... " >&6; }
4375 if ${ac_cv_path_EGREP+:} false; then :
4376   $as_echo_n "(cached) " >&6
4377 else
4378   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4379    then ac_cv_path_EGREP="$GREP -E"
4380    else
4381      if test -z "$EGREP"; then
4382   ac_path_EGREP_found=false
4383   # Loop through the user's path and test for each of PROGNAME-LIST
4384   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4386 do
4387   IFS=$as_save_IFS
4388   test -z "$as_dir" && as_dir=.
4389     for ac_prog in egrep; do
4390     for ac_exec_ext in '' $ac_executable_extensions; do
4391       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4392       as_fn_executable_p "$ac_path_EGREP" || continue
4393 # Check for GNU ac_path_EGREP and select it if it is found.
4394   # Check for GNU $ac_path_EGREP
4395 case `"$ac_path_EGREP" --version 2>&1` in
4396 *GNU*)
4397   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4398 *)
4399   ac_count=0
4400   $as_echo_n 0123456789 >"conftest.in"
4401   while :
4402   do
4403     cat "conftest.in" "conftest.in" >"conftest.tmp"
4404     mv "conftest.tmp" "conftest.in"
4405     cp "conftest.in" "conftest.nl"
4406     $as_echo 'EGREP' >> "conftest.nl"
4407     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4408     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4409     as_fn_arith $ac_count + 1 && ac_count=$as_val
4410     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4411       # Best one so far, save it but keep looking for a better one
4412       ac_cv_path_EGREP="$ac_path_EGREP"
4413       ac_path_EGREP_max=$ac_count
4414     fi
4415     # 10*(2^10) chars as input seems more than enough
4416     test $ac_count -gt 10 && break
4417   done
4418   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4419 esac
4420
4421       $ac_path_EGREP_found && break 3
4422     done
4423   done
4424   done
4425 IFS=$as_save_IFS
4426   if test -z "$ac_cv_path_EGREP"; then
4427     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4428   fi
4429 else
4430   ac_cv_path_EGREP=$EGREP
4431 fi
4432
4433    fi
4434 fi
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4436 $as_echo "$ac_cv_path_EGREP" >&6; }
4437  EGREP="$ac_cv_path_EGREP"
4438
4439
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4441 $as_echo_n "checking for ANSI C header files... " >&6; }
4442 if ${ac_cv_header_stdc+:} false; then :
4443   $as_echo_n "(cached) " >&6
4444 else
4445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h.  */
4447 #include <stdlib.h>
4448 #include <stdarg.h>
4449 #include <string.h>
4450 #include <float.h>
4451
4452 int
4453 main ()
4454 {
4455
4456   ;
4457   return 0;
4458 }
4459 _ACEOF
4460 if ac_fn_c_try_compile "$LINENO"; then :
4461   ac_cv_header_stdc=yes
4462 else
4463   ac_cv_header_stdc=no
4464 fi
4465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4466
4467 if test $ac_cv_header_stdc = yes; then
4468   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4470 /* end confdefs.h.  */
4471 #include <string.h>
4472
4473 _ACEOF
4474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4475   $EGREP "memchr" >/dev/null 2>&1; then :
4476
4477 else
4478   ac_cv_header_stdc=no
4479 fi
4480 rm -f conftest*
4481
4482 fi
4483
4484 if test $ac_cv_header_stdc = yes; then
4485   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487 /* end confdefs.h.  */
4488 #include <stdlib.h>
4489
4490 _ACEOF
4491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4492   $EGREP "free" >/dev/null 2>&1; then :
4493
4494 else
4495   ac_cv_header_stdc=no
4496 fi
4497 rm -f conftest*
4498
4499 fi
4500
4501 if test $ac_cv_header_stdc = yes; then
4502   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4503   if test "$cross_compiling" = yes; then :
4504   :
4505 else
4506   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507 /* end confdefs.h.  */
4508 #include <ctype.h>
4509 #include <stdlib.h>
4510 #if ((' ' & 0x0FF) == 0x020)
4511 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4512 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4513 #else
4514 # define ISLOWER(c) \
4515                    (('a' <= (c) && (c) <= 'i') \
4516                      || ('j' <= (c) && (c) <= 'r') \
4517                      || ('s' <= (c) && (c) <= 'z'))
4518 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4519 #endif
4520
4521 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4522 int
4523 main ()
4524 {
4525   int i;
4526   for (i = 0; i < 256; i++)
4527     if (XOR (islower (i), ISLOWER (i))
4528         || toupper (i) != TOUPPER (i))
4529       return 2;
4530   return 0;
4531 }
4532 _ACEOF
4533 if ac_fn_c_try_run "$LINENO"; then :
4534
4535 else
4536   ac_cv_header_stdc=no
4537 fi
4538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4539   conftest.$ac_objext conftest.beam conftest.$ac_ext
4540 fi
4541
4542 fi
4543 fi
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4545 $as_echo "$ac_cv_header_stdc" >&6; }
4546 if test $ac_cv_header_stdc = yes; then
4547
4548 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4549
4550 fi
4551
4552 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4553 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4554                   inttypes.h stdint.h unistd.h
4555 do :
4556   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4557 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4558 "
4559 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4560   cat >>confdefs.h <<_ACEOF
4561 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4562 _ACEOF
4563
4564 fi
4565
4566 done
4567
4568
4569
4570   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4571 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4572   MINIX=yes
4573 else
4574   MINIX=
4575 fi
4576
4577
4578   if test "$MINIX" = yes; then
4579
4580 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4581
4582
4583 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4584
4585
4586 $as_echo "#define _MINIX 1" >>confdefs.h
4587
4588   fi
4589
4590
4591   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4592 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4593 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4594   $as_echo_n "(cached) " >&6
4595 else
4596   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h.  */
4598
4599 #         define __EXTENSIONS__ 1
4600           $ac_includes_default
4601 int
4602 main ()
4603 {
4604
4605   ;
4606   return 0;
4607 }
4608 _ACEOF
4609 if ac_fn_c_try_compile "$LINENO"; then :
4610   ac_cv_safe_to_define___extensions__=yes
4611 else
4612   ac_cv_safe_to_define___extensions__=no
4613 fi
4614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 fi
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4617 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4618   test $ac_cv_safe_to_define___extensions__ = yes &&
4619     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4620
4621   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4622
4623   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4624
4625   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4626
4627   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4628
4629
4630 ac_ext=cpp
4631 ac_cpp='$CXXCPP $CPPFLAGS'
4632 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4633 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4634 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4635 if test -z "$CXX"; then
4636   if test -n "$CCC"; then
4637     CXX=$CCC
4638   else
4639     if test -n "$ac_tool_prefix"; then
4640   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4641   do
4642     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4643 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645 $as_echo_n "checking for $ac_word... " >&6; }
4646 if ${ac_cv_prog_CXX+:} false; then :
4647   $as_echo_n "(cached) " >&6
4648 else
4649   if test -n "$CXX"; then
4650   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4651 else
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in $PATH
4654 do
4655   IFS=$as_save_IFS
4656   test -z "$as_dir" && as_dir=.
4657     for ac_exec_ext in '' $ac_executable_extensions; do
4658   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4659     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4661     break 2
4662   fi
4663 done
4664   done
4665 IFS=$as_save_IFS
4666
4667 fi
4668 fi
4669 CXX=$ac_cv_prog_CXX
4670 if test -n "$CXX"; then
4671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4672 $as_echo "$CXX" >&6; }
4673 else
4674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675 $as_echo "no" >&6; }
4676 fi
4677
4678
4679     test -n "$CXX" && break
4680   done
4681 fi
4682 if test -z "$CXX"; then
4683   ac_ct_CXX=$CXX
4684   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4685 do
4686   # Extract the first word of "$ac_prog", so it can be a program name with args.
4687 set dummy $ac_prog; ac_word=$2
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4689 $as_echo_n "checking for $ac_word... " >&6; }
4690 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4691   $as_echo_n "(cached) " >&6
4692 else
4693   if test -n "$ac_ct_CXX"; then
4694   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4695 else
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 for as_dir in $PATH
4698 do
4699   IFS=$as_save_IFS
4700   test -z "$as_dir" && as_dir=.
4701     for ac_exec_ext in '' $ac_executable_extensions; do
4702   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4703     ac_cv_prog_ac_ct_CXX="$ac_prog"
4704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4705     break 2
4706   fi
4707 done
4708   done
4709 IFS=$as_save_IFS
4710
4711 fi
4712 fi
4713 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4714 if test -n "$ac_ct_CXX"; then
4715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4716 $as_echo "$ac_ct_CXX" >&6; }
4717 else
4718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4719 $as_echo "no" >&6; }
4720 fi
4721
4722
4723   test -n "$ac_ct_CXX" && break
4724 done
4725
4726   if test "x$ac_ct_CXX" = x; then
4727     CXX="g++"
4728   else
4729     case $cross_compiling:$ac_tool_warned in
4730 yes:)
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4733 ac_tool_warned=yes ;;
4734 esac
4735     CXX=$ac_ct_CXX
4736   fi
4737 fi
4738
4739   fi
4740 fi
4741 # Provide some information about the compiler.
4742 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4743 set X $ac_compile
4744 ac_compiler=$2
4745 for ac_option in --version -v -V -qversion; do
4746   { { ac_try="$ac_compiler $ac_option >&5"
4747 case "(($ac_try" in
4748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4749   *) ac_try_echo=$ac_try;;
4750 esac
4751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4752 $as_echo "$ac_try_echo"; } >&5
4753   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4754   ac_status=$?
4755   if test -s conftest.err; then
4756     sed '10a\
4757 ... rest of stderr output deleted ...
4758          10q' conftest.err >conftest.er1
4759     cat conftest.er1 >&5
4760   fi
4761   rm -f conftest.er1 conftest.err
4762   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4763   test $ac_status = 0; }
4764 done
4765
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4767 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4768 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4769   $as_echo_n "(cached) " >&6
4770 else
4771   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h.  */
4773
4774 int
4775 main ()
4776 {
4777 #ifndef __GNUC__
4778        choke me
4779 #endif
4780
4781   ;
4782   return 0;
4783 }
4784 _ACEOF
4785 if ac_fn_cxx_try_compile "$LINENO"; then :
4786   ac_compiler_gnu=yes
4787 else
4788   ac_compiler_gnu=no
4789 fi
4790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4791 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4792
4793 fi
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4795 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4796 if test $ac_compiler_gnu = yes; then
4797   GXX=yes
4798 else
4799   GXX=
4800 fi
4801 ac_test_CXXFLAGS=${CXXFLAGS+set}
4802 ac_save_CXXFLAGS=$CXXFLAGS
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4804 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4805 if ${ac_cv_prog_cxx_g+:} false; then :
4806   $as_echo_n "(cached) " >&6
4807 else
4808   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4809    ac_cxx_werror_flag=yes
4810    ac_cv_prog_cxx_g=no
4811    CXXFLAGS="-g"
4812    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4813 /* end confdefs.h.  */
4814
4815 int
4816 main ()
4817 {
4818
4819   ;
4820   return 0;
4821 }
4822 _ACEOF
4823 if ac_fn_cxx_try_compile "$LINENO"; then :
4824   ac_cv_prog_cxx_g=yes
4825 else
4826   CXXFLAGS=""
4827       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4828 /* end confdefs.h.  */
4829
4830 int
4831 main ()
4832 {
4833
4834   ;
4835   return 0;
4836 }
4837 _ACEOF
4838 if ac_fn_cxx_try_compile "$LINENO"; then :
4839
4840 else
4841   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4842          CXXFLAGS="-g"
4843          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844 /* end confdefs.h.  */
4845
4846 int
4847 main ()
4848 {
4849
4850   ;
4851   return 0;
4852 }
4853 _ACEOF
4854 if ac_fn_cxx_try_compile "$LINENO"; then :
4855   ac_cv_prog_cxx_g=yes
4856 fi
4857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4858 fi
4859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4860 fi
4861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4862    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4863 fi
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4865 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4866 if test "$ac_test_CXXFLAGS" = set; then
4867   CXXFLAGS=$ac_save_CXXFLAGS
4868 elif test $ac_cv_prog_cxx_g = yes; then
4869   if test "$GXX" = yes; then
4870     CXXFLAGS="-g -O2"
4871   else
4872     CXXFLAGS="-g"
4873   fi
4874 else
4875   if test "$GXX" = yes; then
4876     CXXFLAGS="-O2"
4877   else
4878     CXXFLAGS=
4879   fi
4880 fi
4881 ac_ext=c
4882 ac_cpp='$CPP $CPPFLAGS'
4883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4886
4887 depcc="$CXX"  am_compiler_list=
4888
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4890 $as_echo_n "checking dependency style of $depcc... " >&6; }
4891 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4892   $as_echo_n "(cached) " >&6
4893 else
4894   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4895   # We make a subdir and do the tests there.  Otherwise we can end up
4896   # making bogus files that we don't know about and never remove.  For
4897   # instance it was reported that on HP-UX the gcc test will end up
4898   # making a dummy file named 'D' -- because '-MD' means "put the output
4899   # in D".
4900   rm -rf conftest.dir
4901   mkdir conftest.dir
4902   # Copy depcomp to subdir because otherwise we won't find it if we're
4903   # using a relative directory.
4904   cp "$am_depcomp" conftest.dir
4905   cd conftest.dir
4906   # We will build objects and dependencies in a subdirectory because
4907   # it helps to detect inapplicable dependency modes.  For instance
4908   # both Tru64's cc and ICC support -MD to output dependencies as a
4909   # side effect of compilation, but ICC will put the dependencies in
4910   # the current directory while Tru64 will put them in the object
4911   # directory.
4912   mkdir sub
4913
4914   am_cv_CXX_dependencies_compiler_type=none
4915   if test "$am_compiler_list" = ""; then
4916      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4917   fi
4918   am__universal=false
4919   case " $depcc " in #(
4920      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4921      esac
4922
4923   for depmode in $am_compiler_list; do
4924     # Setup a source with many dependencies, because some compilers
4925     # like to wrap large dependency lists on column 80 (with \), and
4926     # we should not choose a depcomp mode which is confused by this.
4927     #
4928     # We need to recreate these files for each test, as the compiler may
4929     # overwrite some of them when testing with obscure command lines.
4930     # This happens at least with the AIX C compiler.
4931     : > sub/conftest.c
4932     for i in 1 2 3 4 5 6; do
4933       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4934       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4935       # Solaris 10 /bin/sh.
4936       echo '/* dummy */' > sub/conftst$i.h
4937     done
4938     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4939
4940     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4941     # mode.  It turns out that the SunPro C++ compiler does not properly
4942     # handle '-M -o', and we need to detect this.  Also, some Intel
4943     # versions had trouble with output in subdirs.
4944     am__obj=sub/conftest.${OBJEXT-o}
4945     am__minus_obj="-o $am__obj"
4946     case $depmode in
4947     gcc)
4948       # This depmode causes a compiler race in universal mode.
4949       test "$am__universal" = false || continue
4950       ;;
4951     nosideeffect)
4952       # After this tag, mechanisms are not by side-effect, so they'll
4953       # only be used when explicitly requested.
4954       if test "x$enable_dependency_tracking" = xyes; then
4955         continue
4956       else
4957         break
4958       fi
4959       ;;
4960     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4961       # This compiler won't grok '-c -o', but also, the minuso test has
4962       # not run yet.  These depmodes are late enough in the game, and
4963       # so weak that their functioning should not be impacted.
4964       am__obj=conftest.${OBJEXT-o}
4965       am__minus_obj=
4966       ;;
4967     none) break ;;
4968     esac
4969     if depmode=$depmode \
4970        source=sub/conftest.c object=$am__obj \
4971        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4972        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4973          >/dev/null 2>conftest.err &&
4974        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4975        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4976        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4977        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4978       # icc doesn't choke on unknown options, it will just issue warnings
4979       # or remarks (even with -Werror).  So we grep stderr for any message
4980       # that says an option was ignored or not supported.
4981       # When given -MP, icc 7.0 and 7.1 complain thusly:
4982       #   icc: Command line warning: ignoring option '-M'; no argument required
4983       # The diagnosis changed in icc 8.0:
4984       #   icc: Command line remark: option '-MP' not supported
4985       if (grep 'ignoring option' conftest.err ||
4986           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4987         am_cv_CXX_dependencies_compiler_type=$depmode
4988         break
4989       fi
4990     fi
4991   done
4992
4993   cd ..
4994   rm -rf conftest.dir
4995 else
4996   am_cv_CXX_dependencies_compiler_type=none
4997 fi
4998
4999 fi
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5001 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5002 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5003
5004  if
5005   test "x$enable_dependency_tracking" != xno \
5006   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5007   am__fastdepCXX_TRUE=
5008   am__fastdepCXX_FALSE='#'
5009 else
5010   am__fastdepCXX_TRUE='#'
5011   am__fastdepCXX_FALSE=
5012 fi
5013
5014
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5016 $as_echo_n "checking whether ln -s works... " >&6; }
5017 LN_S=$as_ln_s
5018 if test "$LN_S" = "ln -s"; then
5019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5020 $as_echo "yes" >&6; }
5021 else
5022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5023 $as_echo "no, using $LN_S" >&6; }
5024 fi
5025
5026 ac_ext=c
5027 ac_cpp='$CPP $CPPFLAGS'
5028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5031 if test -n "$ac_tool_prefix"; then
5032   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5033 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5035 $as_echo_n "checking for $ac_word... " >&6; }
5036 if ${ac_cv_prog_CC+:} false; then :
5037   $as_echo_n "(cached) " >&6
5038 else
5039   if test -n "$CC"; then
5040   ac_cv_prog_CC="$CC" # Let the user override the test.
5041 else
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 for as_dir in $PATH
5044 do
5045   IFS=$as_save_IFS
5046   test -z "$as_dir" && as_dir=.
5047     for ac_exec_ext in '' $ac_executable_extensions; do
5048   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5049     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5051     break 2
5052   fi
5053 done
5054   done
5055 IFS=$as_save_IFS
5056
5057 fi
5058 fi
5059 CC=$ac_cv_prog_CC
5060 if test -n "$CC"; then
5061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5062 $as_echo "$CC" >&6; }
5063 else
5064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5065 $as_echo "no" >&6; }
5066 fi
5067
5068
5069 fi
5070 if test -z "$ac_cv_prog_CC"; then
5071   ac_ct_CC=$CC
5072   # Extract the first word of "gcc", so it can be a program name with args.
5073 set dummy gcc; ac_word=$2
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5075 $as_echo_n "checking for $ac_word... " >&6; }
5076 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5077   $as_echo_n "(cached) " >&6
5078 else
5079   if test -n "$ac_ct_CC"; then
5080   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5081 else
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 for as_dir in $PATH
5084 do
5085   IFS=$as_save_IFS
5086   test -z "$as_dir" && as_dir=.
5087     for ac_exec_ext in '' $ac_executable_extensions; do
5088   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5089     ac_cv_prog_ac_ct_CC="gcc"
5090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5091     break 2
5092   fi
5093 done
5094   done
5095 IFS=$as_save_IFS
5096
5097 fi
5098 fi
5099 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5100 if test -n "$ac_ct_CC"; then
5101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5102 $as_echo "$ac_ct_CC" >&6; }
5103 else
5104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5105 $as_echo "no" >&6; }
5106 fi
5107
5108   if test "x$ac_ct_CC" = x; then
5109     CC=""
5110   else
5111     case $cross_compiling:$ac_tool_warned in
5112 yes:)
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5115 ac_tool_warned=yes ;;
5116 esac
5117     CC=$ac_ct_CC
5118   fi
5119 else
5120   CC="$ac_cv_prog_CC"
5121 fi
5122
5123 if test -z "$CC"; then
5124           if test -n "$ac_tool_prefix"; then
5125     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5126 set dummy ${ac_tool_prefix}cc; ac_word=$2
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5128 $as_echo_n "checking for $ac_word... " >&6; }
5129 if ${ac_cv_prog_CC+:} false; then :
5130   $as_echo_n "(cached) " >&6
5131 else
5132   if test -n "$CC"; then
5133   ac_cv_prog_CC="$CC" # Let the user override the test.
5134 else
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 for as_dir in $PATH
5137 do
5138   IFS=$as_save_IFS
5139   test -z "$as_dir" && as_dir=.
5140     for ac_exec_ext in '' $ac_executable_extensions; do
5141   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5142     ac_cv_prog_CC="${ac_tool_prefix}cc"
5143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5144     break 2
5145   fi
5146 done
5147   done
5148 IFS=$as_save_IFS
5149
5150 fi
5151 fi
5152 CC=$ac_cv_prog_CC
5153 if test -n "$CC"; then
5154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5155 $as_echo "$CC" >&6; }
5156 else
5157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5158 $as_echo "no" >&6; }
5159 fi
5160
5161
5162   fi
5163 fi
5164 if test -z "$CC"; then
5165   # Extract the first word of "cc", so it can be a program name with args.
5166 set dummy cc; ac_word=$2
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5168 $as_echo_n "checking for $ac_word... " >&6; }
5169 if ${ac_cv_prog_CC+:} false; then :
5170   $as_echo_n "(cached) " >&6
5171 else
5172   if test -n "$CC"; then
5173   ac_cv_prog_CC="$CC" # Let the user override the test.
5174 else
5175   ac_prog_rejected=no
5176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177 for as_dir in $PATH
5178 do
5179   IFS=$as_save_IFS
5180   test -z "$as_dir" && as_dir=.
5181     for ac_exec_ext in '' $ac_executable_extensions; do
5182   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5183     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5184        ac_prog_rejected=yes
5185        continue
5186      fi
5187     ac_cv_prog_CC="cc"
5188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5189     break 2
5190   fi
5191 done
5192   done
5193 IFS=$as_save_IFS
5194
5195 if test $ac_prog_rejected = yes; then
5196   # We found a bogon in the path, so make sure we never use it.
5197   set dummy $ac_cv_prog_CC
5198   shift
5199   if test $# != 0; then
5200     # We chose a different compiler from the bogus one.
5201     # However, it has the same basename, so the bogon will be chosen
5202     # first if we set CC to just the basename; use the full file name.
5203     shift
5204     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5205   fi
5206 fi
5207 fi
5208 fi
5209 CC=$ac_cv_prog_CC
5210 if test -n "$CC"; then
5211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5212 $as_echo "$CC" >&6; }
5213 else
5214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215 $as_echo "no" >&6; }
5216 fi
5217
5218
5219 fi
5220 if test -z "$CC"; then
5221   if test -n "$ac_tool_prefix"; then
5222   for ac_prog in cl.exe
5223   do
5224     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5225 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5227 $as_echo_n "checking for $ac_word... " >&6; }
5228 if ${ac_cv_prog_CC+:} false; then :
5229   $as_echo_n "(cached) " >&6
5230 else
5231   if test -n "$CC"; then
5232   ac_cv_prog_CC="$CC" # Let the user override the test.
5233 else
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 for as_dir in $PATH
5236 do
5237   IFS=$as_save_IFS
5238   test -z "$as_dir" && as_dir=.
5239     for ac_exec_ext in '' $ac_executable_extensions; do
5240   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5241     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5243     break 2
5244   fi
5245 done
5246   done
5247 IFS=$as_save_IFS
5248
5249 fi
5250 fi
5251 CC=$ac_cv_prog_CC
5252 if test -n "$CC"; then
5253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5254 $as_echo "$CC" >&6; }
5255 else
5256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5257 $as_echo "no" >&6; }
5258 fi
5259
5260
5261     test -n "$CC" && break
5262   done
5263 fi
5264 if test -z "$CC"; then
5265   ac_ct_CC=$CC
5266   for ac_prog in cl.exe
5267 do
5268   # Extract the first word of "$ac_prog", so it can be a program name with args.
5269 set dummy $ac_prog; ac_word=$2
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5271 $as_echo_n "checking for $ac_word... " >&6; }
5272 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5273   $as_echo_n "(cached) " >&6
5274 else
5275   if test -n "$ac_ct_CC"; then
5276   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5277 else
5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279 for as_dir in $PATH
5280 do
5281   IFS=$as_save_IFS
5282   test -z "$as_dir" && as_dir=.
5283     for ac_exec_ext in '' $ac_executable_extensions; do
5284   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5285     ac_cv_prog_ac_ct_CC="$ac_prog"
5286     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5287     break 2
5288   fi
5289 done
5290   done
5291 IFS=$as_save_IFS
5292
5293 fi
5294 fi
5295 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5296 if test -n "$ac_ct_CC"; then
5297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5298 $as_echo "$ac_ct_CC" >&6; }
5299 else
5300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5301 $as_echo "no" >&6; }
5302 fi
5303
5304
5305   test -n "$ac_ct_CC" && break
5306 done
5307
5308   if test "x$ac_ct_CC" = x; then
5309     CC=""
5310   else
5311     case $cross_compiling:$ac_tool_warned in
5312 yes:)
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5315 ac_tool_warned=yes ;;
5316 esac
5317     CC=$ac_ct_CC
5318   fi
5319 fi
5320
5321 fi
5322
5323
5324 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5326 as_fn_error $? "no acceptable C compiler found in \$PATH
5327 See \`config.log' for more details" "$LINENO" 5; }
5328
5329 # Provide some information about the compiler.
5330 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5331 set X $ac_compile
5332 ac_compiler=$2
5333 for ac_option in --version -v -V -qversion; do
5334   { { ac_try="$ac_compiler $ac_option >&5"
5335 case "(($ac_try" in
5336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5337   *) ac_try_echo=$ac_try;;
5338 esac
5339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5340 $as_echo "$ac_try_echo"; } >&5
5341   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5342   ac_status=$?
5343   if test -s conftest.err; then
5344     sed '10a\
5345 ... rest of stderr output deleted ...
5346          10q' conftest.err >conftest.er1
5347     cat conftest.er1 >&5
5348   fi
5349   rm -f conftest.er1 conftest.err
5350   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5351   test $ac_status = 0; }
5352 done
5353
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5355 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5356 if ${ac_cv_c_compiler_gnu+:} false; then :
5357   $as_echo_n "(cached) " >&6
5358 else
5359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h.  */
5361
5362 int
5363 main ()
5364 {
5365 #ifndef __GNUC__
5366        choke me
5367 #endif
5368
5369   ;
5370   return 0;
5371 }
5372 _ACEOF
5373 if ac_fn_c_try_compile "$LINENO"; then :
5374   ac_compiler_gnu=yes
5375 else
5376   ac_compiler_gnu=no
5377 fi
5378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5379 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5380
5381 fi
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5383 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5384 if test $ac_compiler_gnu = yes; then
5385   GCC=yes
5386 else
5387   GCC=
5388 fi
5389 ac_test_CFLAGS=${CFLAGS+set}
5390 ac_save_CFLAGS=$CFLAGS
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5392 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5393 if ${ac_cv_prog_cc_g+:} false; then :
5394   $as_echo_n "(cached) " >&6
5395 else
5396   ac_save_c_werror_flag=$ac_c_werror_flag
5397    ac_c_werror_flag=yes
5398    ac_cv_prog_cc_g=no
5399    CFLAGS="-g"
5400    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401 /* end confdefs.h.  */
5402
5403 int
5404 main ()
5405 {
5406
5407   ;
5408   return 0;
5409 }
5410 _ACEOF
5411 if ac_fn_c_try_compile "$LINENO"; then :
5412   ac_cv_prog_cc_g=yes
5413 else
5414   CFLAGS=""
5415       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416 /* end confdefs.h.  */
5417
5418 int
5419 main ()
5420 {
5421
5422   ;
5423   return 0;
5424 }
5425 _ACEOF
5426 if ac_fn_c_try_compile "$LINENO"; then :
5427
5428 else
5429   ac_c_werror_flag=$ac_save_c_werror_flag
5430          CFLAGS="-g"
5431          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432 /* end confdefs.h.  */
5433
5434 int
5435 main ()
5436 {
5437
5438   ;
5439   return 0;
5440 }
5441 _ACEOF
5442 if ac_fn_c_try_compile "$LINENO"; then :
5443   ac_cv_prog_cc_g=yes
5444 fi
5445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5446 fi
5447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5448 fi
5449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5450    ac_c_werror_flag=$ac_save_c_werror_flag
5451 fi
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5453 $as_echo "$ac_cv_prog_cc_g" >&6; }
5454 if test "$ac_test_CFLAGS" = set; then
5455   CFLAGS=$ac_save_CFLAGS
5456 elif test $ac_cv_prog_cc_g = yes; then
5457   if test "$GCC" = yes; then
5458     CFLAGS="-g -O2"
5459   else
5460     CFLAGS="-g"
5461   fi
5462 else
5463   if test "$GCC" = yes; then
5464     CFLAGS="-O2"
5465   else
5466     CFLAGS=
5467   fi
5468 fi
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5470 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5471 if ${ac_cv_prog_cc_c89+:} false; then :
5472   $as_echo_n "(cached) " >&6
5473 else
5474   ac_cv_prog_cc_c89=no
5475 ac_save_CC=$CC
5476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5477 /* end confdefs.h.  */
5478 #include <stdarg.h>
5479 #include <stdio.h>
5480 struct stat;
5481 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5482 struct buf { int x; };
5483 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5484 static char *e (p, i)
5485      char **p;
5486      int i;
5487 {
5488   return p[i];
5489 }
5490 static char *f (char * (*g) (char **, int), char **p, ...)
5491 {
5492   char *s;
5493   va_list v;
5494   va_start (v,p);
5495   s = g (p, va_arg (v,int));
5496   va_end (v);
5497   return s;
5498 }
5499
5500 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5501    function prototypes and stuff, but not '\xHH' hex character constants.
5502    These don't provoke an error unfortunately, instead are silently treated
5503    as 'x'.  The following induces an error, until -std is added to get
5504    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5505    array size at least.  It's necessary to write '\x00'==0 to get something
5506    that's true only with -std.  */
5507 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5508
5509 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5510    inside strings and character constants.  */
5511 #define FOO(x) 'x'
5512 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5513
5514 int test (int i, double x);
5515 struct s1 {int (*f) (int a);};
5516 struct s2 {int (*f) (double a);};
5517 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5518 int argc;
5519 char **argv;
5520 int
5521 main ()
5522 {
5523 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5524   ;
5525   return 0;
5526 }
5527 _ACEOF
5528 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5529         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5530 do
5531   CC="$ac_save_CC $ac_arg"
5532   if ac_fn_c_try_compile "$LINENO"; then :
5533   ac_cv_prog_cc_c89=$ac_arg
5534 fi
5535 rm -f core conftest.err conftest.$ac_objext
5536   test "x$ac_cv_prog_cc_c89" != "xno" && break
5537 done
5538 rm -f conftest.$ac_ext
5539 CC=$ac_save_CC
5540
5541 fi
5542 # AC_CACHE_VAL
5543 case "x$ac_cv_prog_cc_c89" in
5544   x)
5545     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5546 $as_echo "none needed" >&6; } ;;
5547   xno)
5548     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5549 $as_echo "unsupported" >&6; } ;;
5550   *)
5551     CC="$CC $ac_cv_prog_cc_c89"
5552     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5553 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5554 esac
5555 if test "x$ac_cv_prog_cc_c89" != xno; then :
5556
5557 fi
5558
5559 ac_ext=c
5560 ac_cpp='$CPP $CPPFLAGS'
5561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5564
5565 ac_ext=c
5566 ac_cpp='$CPP $CPPFLAGS'
5567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5571 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5572 if ${am_cv_prog_cc_c_o+:} false; then :
5573   $as_echo_n "(cached) " >&6
5574 else
5575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576 /* end confdefs.h.  */
5577
5578 int
5579 main ()
5580 {
5581
5582   ;
5583   return 0;
5584 }
5585 _ACEOF
5586   # Make sure it works both with $CC and with simple cc.
5587   # Following AC_PROG_CC_C_O, we do the test twice because some
5588   # compilers refuse to overwrite an existing .o file with -o,
5589   # though they will create one.
5590   am_cv_prog_cc_c_o=yes
5591   for am_i in 1 2; do
5592     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5593    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5594    ac_status=$?
5595    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596    (exit $ac_status); } \
5597          && test -f conftest2.$ac_objext; then
5598       : OK
5599     else
5600       am_cv_prog_cc_c_o=no
5601       break
5602     fi
5603   done
5604   rm -f core conftest*
5605   unset am_i
5606 fi
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5608 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5609 if test "$am_cv_prog_cc_c_o" != yes; then
5610    # Losing compiler, so override with the script.
5611    # FIXME: It is wrong to rewrite CC.
5612    # But if we don't then we get into trouble of one sort or another.
5613    # A longer-term fix would be to have automake use am__CC in this case,
5614    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5615    CC="$am_aux_dir/compile $CC"
5616 fi
5617 ac_ext=c
5618 ac_cpp='$CPP $CPPFLAGS'
5619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5622
5623
5624 depcc="$CC"   am_compiler_list=
5625
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5627 $as_echo_n "checking dependency style of $depcc... " >&6; }
5628 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5629   $as_echo_n "(cached) " >&6
5630 else
5631   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5632   # We make a subdir and do the tests there.  Otherwise we can end up
5633   # making bogus files that we don't know about and never remove.  For
5634   # instance it was reported that on HP-UX the gcc test will end up
5635   # making a dummy file named 'D' -- because '-MD' means "put the output
5636   # in D".
5637   rm -rf conftest.dir
5638   mkdir conftest.dir
5639   # Copy depcomp to subdir because otherwise we won't find it if we're
5640   # using a relative directory.
5641   cp "$am_depcomp" conftest.dir
5642   cd conftest.dir
5643   # We will build objects and dependencies in a subdirectory because
5644   # it helps to detect inapplicable dependency modes.  For instance
5645   # both Tru64's cc and ICC support -MD to output dependencies as a
5646   # side effect of compilation, but ICC will put the dependencies in
5647   # the current directory while Tru64 will put them in the object
5648   # directory.
5649   mkdir sub
5650
5651   am_cv_CC_dependencies_compiler_type=none
5652   if test "$am_compiler_list" = ""; then
5653      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5654   fi
5655   am__universal=false
5656   case " $depcc " in #(
5657      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5658      esac
5659
5660   for depmode in $am_compiler_list; do
5661     # Setup a source with many dependencies, because some compilers
5662     # like to wrap large dependency lists on column 80 (with \), and
5663     # we should not choose a depcomp mode which is confused by this.
5664     #
5665     # We need to recreate these files for each test, as the compiler may
5666     # overwrite some of them when testing with obscure command lines.
5667     # This happens at least with the AIX C compiler.
5668     : > sub/conftest.c
5669     for i in 1 2 3 4 5 6; do
5670       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5671       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5672       # Solaris 10 /bin/sh.
5673       echo '/* dummy */' > sub/conftst$i.h
5674     done
5675     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5676
5677     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5678     # mode.  It turns out that the SunPro C++ compiler does not properly
5679     # handle '-M -o', and we need to detect this.  Also, some Intel
5680     # versions had trouble with output in subdirs.
5681     am__obj=sub/conftest.${OBJEXT-o}
5682     am__minus_obj="-o $am__obj"
5683     case $depmode in
5684     gcc)
5685       # This depmode causes a compiler race in universal mode.
5686       test "$am__universal" = false || continue
5687       ;;
5688     nosideeffect)
5689       # After this tag, mechanisms are not by side-effect, so they'll
5690       # only be used when explicitly requested.
5691       if test "x$enable_dependency_tracking" = xyes; then
5692         continue
5693       else
5694         break
5695       fi
5696       ;;
5697     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5698       # This compiler won't grok '-c -o', but also, the minuso test has
5699       # not run yet.  These depmodes are late enough in the game, and
5700       # so weak that their functioning should not be impacted.
5701       am__obj=conftest.${OBJEXT-o}
5702       am__minus_obj=
5703       ;;
5704     none) break ;;
5705     esac
5706     if depmode=$depmode \
5707        source=sub/conftest.c object=$am__obj \
5708        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5709        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5710          >/dev/null 2>conftest.err &&
5711        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5712        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5713        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5714        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5715       # icc doesn't choke on unknown options, it will just issue warnings
5716       # or remarks (even with -Werror).  So we grep stderr for any message
5717       # that says an option was ignored or not supported.
5718       # When given -MP, icc 7.0 and 7.1 complain thusly:
5719       #   icc: Command line warning: ignoring option '-M'; no argument required
5720       # The diagnosis changed in icc 8.0:
5721       #   icc: Command line remark: option '-MP' not supported
5722       if (grep 'ignoring option' conftest.err ||
5723           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5724         am_cv_CC_dependencies_compiler_type=$depmode
5725         break
5726       fi
5727     fi
5728   done
5729
5730   cd ..
5731   rm -rf conftest.dir
5732 else
5733   am_cv_CC_dependencies_compiler_type=none
5734 fi
5735
5736 fi
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5738 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5739 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5740
5741  if
5742   test "x$enable_dependency_tracking" != xno \
5743   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5744   am__fastdepCC_TRUE=
5745   am__fastdepCC_FALSE='#'
5746 else
5747   am__fastdepCC_TRUE='#'
5748   am__fastdepCC_FALSE=
5749 fi
5750
5751
5752    case $ac_cv_prog_cc_stdc in #(
5753   no) :
5754     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5755   *) :
5756     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5757 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5758 if ${ac_cv_prog_cc_c99+:} false; then :
5759   $as_echo_n "(cached) " >&6
5760 else
5761   ac_cv_prog_cc_c99=no
5762 ac_save_CC=$CC
5763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5764 /* end confdefs.h.  */
5765 #include <stdarg.h>
5766 #include <stdbool.h>
5767 #include <stdlib.h>
5768 #include <wchar.h>
5769 #include <stdio.h>
5770
5771 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
5772 #define debug(...) fprintf (stderr, __VA_ARGS__)
5773 #define showlist(...) puts (#__VA_ARGS__)
5774 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5775 static void
5776 test_varargs_macros (void)
5777 {
5778   int x = 1234;
5779   int y = 5678;
5780   debug ("Flag");
5781   debug ("X = %d\n", x);
5782   showlist (The first, second, and third items.);
5783   report (x>y, "x is %d but y is %d", x, y);
5784 }
5785
5786 // Check long long types.
5787 #define BIG64 18446744073709551615ull
5788 #define BIG32 4294967295ul
5789 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5790 #if !BIG_OK
5791   your preprocessor is broken;
5792 #endif
5793 #if BIG_OK
5794 #else
5795   your preprocessor is broken;
5796 #endif
5797 static long long int bignum = -9223372036854775807LL;
5798 static unsigned long long int ubignum = BIG64;
5799
5800 struct incomplete_array
5801 {
5802   int datasize;
5803   double data[];
5804 };
5805
5806 struct named_init {
5807   int number;
5808   const wchar_t *name;
5809   double average;
5810 };
5811
5812 typedef const char *ccp;
5813
5814 static inline int
5815 test_restrict (ccp restrict text)
5816 {
5817   // See if C++-style comments work.
5818   // Iterate through items via the restricted pointer.
5819   // Also check for declarations in for loops.
5820   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5821     continue;
5822   return 0;
5823 }
5824
5825 // Check varargs and va_copy.
5826 static void
5827 test_varargs (const char *format, ...)
5828 {
5829   va_list args;
5830   va_start (args, format);
5831   va_list args_copy;
5832   va_copy (args_copy, args);
5833
5834   const char *str;
5835   int number;
5836   float fnumber;
5837
5838   while (*format)
5839     {
5840       switch (*format++)
5841         {
5842         case 's': // string
5843           str = va_arg (args_copy, const char *);
5844           break;
5845         case 'd': // int
5846           number = va_arg (args_copy, int);
5847           break;
5848         case 'f': // float
5849           fnumber = va_arg (args_copy, double);
5850           break;
5851         default:
5852           break;
5853         }
5854     }
5855   va_end (args_copy);
5856   va_end (args);
5857 }
5858
5859 int
5860 main ()
5861 {
5862
5863   // Check bool.
5864   _Bool success = false;
5865
5866   // Check restrict.
5867   if (test_restrict ("String literal") == 0)
5868     success = true;
5869   char *restrict newvar = "Another string";
5870
5871   // Check varargs.
5872   test_varargs ("s, d' f .", "string", 65, 34.234);
5873   test_varargs_macros ();
5874
5875   // Check flexible array members.
5876   struct incomplete_array *ia =
5877     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5878   ia->datasize = 10;
5879   for (int i = 0; i < ia->datasize; ++i)
5880     ia->data[i] = i * 1.234;
5881
5882   // Check named initializers.
5883   struct named_init ni = {
5884     .number = 34,
5885     .name = L"Test wide string",
5886     .average = 543.34343,
5887   };
5888
5889   ni.number = 58;
5890
5891   int dynamic_array[ni.number];
5892   dynamic_array[ni.number - 1] = 543;
5893
5894   // work around unused variable warnings
5895   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5896           || dynamic_array[ni.number - 1] != 543);
5897
5898   ;
5899   return 0;
5900 }
5901 _ACEOF
5902 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5903 do
5904   CC="$ac_save_CC $ac_arg"
5905   if ac_fn_c_try_compile "$LINENO"; then :
5906   ac_cv_prog_cc_c99=$ac_arg
5907 fi
5908 rm -f core conftest.err conftest.$ac_objext
5909   test "x$ac_cv_prog_cc_c99" != "xno" && break
5910 done
5911 rm -f conftest.$ac_ext
5912 CC=$ac_save_CC
5913
5914 fi
5915 # AC_CACHE_VAL
5916 case "x$ac_cv_prog_cc_c99" in
5917   x)
5918     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5919 $as_echo "none needed" >&6; } ;;
5920   xno)
5921     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5922 $as_echo "unsupported" >&6; } ;;
5923   *)
5924     CC="$CC $ac_cv_prog_cc_c99"
5925     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5926 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5927 esac
5928 if test "x$ac_cv_prog_cc_c99" != xno; then :
5929   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5930 else
5931   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5932 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5933 if ${ac_cv_prog_cc_c89+:} false; then :
5934   $as_echo_n "(cached) " >&6
5935 else
5936   ac_cv_prog_cc_c89=no
5937 ac_save_CC=$CC
5938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5939 /* end confdefs.h.  */
5940 #include <stdarg.h>
5941 #include <stdio.h>
5942 struct stat;
5943 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5944 struct buf { int x; };
5945 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5946 static char *e (p, i)
5947      char **p;
5948      int i;
5949 {
5950   return p[i];
5951 }
5952 static char *f (char * (*g) (char **, int), char **p, ...)
5953 {
5954   char *s;
5955   va_list v;
5956   va_start (v,p);
5957   s = g (p, va_arg (v,int));
5958   va_end (v);
5959   return s;
5960 }
5961
5962 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5963    function prototypes and stuff, but not '\xHH' hex character constants.
5964    These don't provoke an error unfortunately, instead are silently treated
5965    as 'x'.  The following induces an error, until -std is added to get
5966    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5967    array size at least.  It's necessary to write '\x00'==0 to get something
5968    that's true only with -std.  */
5969 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5970
5971 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5972    inside strings and character constants.  */
5973 #define FOO(x) 'x'
5974 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5975
5976 int test (int i, double x);
5977 struct s1 {int (*f) (int a);};
5978 struct s2 {int (*f) (double a);};
5979 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5980 int argc;
5981 char **argv;
5982 int
5983 main ()
5984 {
5985 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5986   ;
5987   return 0;
5988 }
5989 _ACEOF
5990 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5991         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5992 do
5993   CC="$ac_save_CC $ac_arg"
5994   if ac_fn_c_try_compile "$LINENO"; then :
5995   ac_cv_prog_cc_c89=$ac_arg
5996 fi
5997 rm -f core conftest.err conftest.$ac_objext
5998   test "x$ac_cv_prog_cc_c89" != "xno" && break
5999 done
6000 rm -f conftest.$ac_ext
6001 CC=$ac_save_CC
6002
6003 fi
6004 # AC_CACHE_VAL
6005 case "x$ac_cv_prog_cc_c89" in
6006   x)
6007     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6008 $as_echo "none needed" >&6; } ;;
6009   xno)
6010     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6011 $as_echo "unsupported" >&6; } ;;
6012   *)
6013     CC="$CC $ac_cv_prog_cc_c89"
6014     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6015 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6016 esac
6017 if test "x$ac_cv_prog_cc_c89" != xno; then :
6018   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6019 else
6020   ac_cv_prog_cc_stdc=no
6021 fi
6022
6023 fi
6024  ;;
6025 esac
6026   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6027 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6028   if ${ac_cv_prog_cc_stdc+:} false; then :
6029   $as_echo_n "(cached) " >&6
6030 fi
6031
6032   case $ac_cv_prog_cc_stdc in #(
6033   no) :
6034     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6035 $as_echo "unsupported" >&6; } ;; #(
6036   '') :
6037     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6038 $as_echo "none needed" >&6; } ;; #(
6039   *) :
6040     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6041 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6042 esac
6043
6044
6045 # SELinux support - off by default
6046
6047 # Check whether --enable-selinux was given.
6048 if test "${enable_selinux+set}" = set; then :
6049   enableval=$enable_selinux; enable_selinux=$enableval
6050 else
6051   enable_selinux="no"
6052 fi
6053
6054 if test "$enable_selinux" = "yes"; then
6055
6056 $as_echo "#define WITH_SELINUX 1" >>confdefs.h
6057
6058   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getfilecon in -lselinux" >&5
6059 $as_echo_n "checking for getfilecon in -lselinux... " >&6; }
6060 if ${ac_cv_lib_selinux_getfilecon+:} false; then :
6061   $as_echo_n "(cached) " >&6
6062 else
6063   ac_check_lib_save_LIBS=$LIBS
6064 LIBS="-lselinux  $LIBS"
6065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6066 /* end confdefs.h.  */
6067
6068 /* Override any GCC internal prototype to avoid an error.
6069    Use char because int might match the return type of a GCC
6070    builtin and then its argument prototype would still apply.  */
6071 #ifdef __cplusplus
6072 extern "C"
6073 #endif
6074 char getfilecon ();
6075 int
6076 main ()
6077 {
6078 return getfilecon ();
6079   ;
6080   return 0;
6081 }
6082 _ACEOF
6083 if ac_fn_c_try_link "$LINENO"; then :
6084   ac_cv_lib_selinux_getfilecon=yes
6085 else
6086   ac_cv_lib_selinux_getfilecon=no
6087 fi
6088 rm -f core conftest.err conftest.$ac_objext \
6089     conftest$ac_exeext conftest.$ac_ext
6090 LIBS=$ac_check_lib_save_LIBS
6091 fi
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_getfilecon" >&5
6093 $as_echo "$ac_cv_lib_selinux_getfilecon" >&6; }
6094 if test "x$ac_cv_lib_selinux_getfilecon" = xyes; then :
6095   SELINUX_LIB=-lselinux
6096 else
6097
6098      as_fn_error $? "Cannot find selinux static library" "$LINENO" 5
6099 fi
6100
6101 fi
6102
6103
6104 # Call fork before all stat calls to stop hanging on NFS mounts
6105
6106 # Check whether --enable-timeout_stat was given.
6107 if test "${enable_timeout_stat+set}" = set; then :
6108   enableval=$enable_timeout_stat; enable_timeout_stat=$enableval
6109 else
6110   enable_timeout_stat="no"
6111 fi
6112
6113 if test "$enable_timeout_stat" = "yes"; then
6114
6115 $as_echo "#define WITH_TIMEOUT_STAT 1" >>confdefs.h
6116
6117 fi
6118 if test "$enable_timeout_stat" = "static"; then
6119
6120 $as_echo "#define WITH_TIMEOUT_STAT 2" >>confdefs.h
6121
6122 fi
6123  if test "$enable_timeout_stat" = "static"; then
6124   WANT_TIMEOUT_STAT_TRUE=
6125   WANT_TIMEOUT_STAT_FALSE='#'
6126 else
6127   WANT_TIMEOUT_STAT_TRUE='#'
6128   WANT_TIMEOUT_STAT_FALSE=
6129 fi
6130
6131
6132 # Use string search for network based file systems but only if the system
6133 # has /proc/self/mountinfo
6134
6135 # Check whether --enable-mountinfo_list was given.
6136 if test "${enable_mountinfo_list+set}" = set; then :
6137   enableval=$enable_mountinfo_list; enable_mountinfo_list="yes"
6138 else
6139   enable_mountinfo_list="no"
6140 fi
6141
6142 if test "$enable_mountinfo_list" = "yes" -a -e /proc/self/mountinfo ; then
6143
6144 $as_echo "#define WITH_MOUNTINFO_LIST 1" >>confdefs.h
6145
6146 fi
6147
6148 # Enable hardened compile and link flags
6149 # Check whether --enable-harden_flags was given.
6150 if test "${enable_harden_flags+set}" = set; then :
6151   enableval=$enable_harden_flags; enable_harden_flags=$enableval
6152 else
6153   enable_harden_flags="yes"
6154 fi
6155
6156
6157
6158 # Check whether --enable-ipv6 was given.
6159 if test "${enable_ipv6+set}" = set; then :
6160   enableval=$enable_ipv6; enable_ipv6=$enableval
6161 else
6162   enable_ipv6="yes"
6163 fi
6164
6165 if test "$enable_ipv6" = "yes"; then
6166
6167 $as_echo "#define WITH_IPV6 1" >>confdefs.h
6168
6169 fi
6170
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
6172 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
6173 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
6174   $as_echo_n "(cached) " >&6
6175 else
6176   ac_check_lib_save_LIBS=$LIBS
6177 LIBS="-ltinfo  $LIBS"
6178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6179 /* end confdefs.h.  */
6180
6181 /* Override any GCC internal prototype to avoid an error.
6182    Use char because int might match the return type of a GCC
6183    builtin and then its argument prototype would still apply.  */
6184 #ifdef __cplusplus
6185 extern "C"
6186 #endif
6187 char tgetent ();
6188 int
6189 main ()
6190 {
6191 return tgetent ();
6192   ;
6193   return 0;
6194 }
6195 _ACEOF
6196 if ac_fn_c_try_link "$LINENO"; then :
6197   ac_cv_lib_tinfo_tgetent=yes
6198 else
6199   ac_cv_lib_tinfo_tgetent=no
6200 fi
6201 rm -f core conftest.err conftest.$ac_objext \
6202     conftest$ac_exeext conftest.$ac_ext
6203 LIBS=$ac_check_lib_save_LIBS
6204 fi
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
6206 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
6207 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
6208   TERMCAP_LIB=-ltinfo
6209 else
6210    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
6211 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
6212 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
6213   $as_echo_n "(cached) " >&6
6214 else
6215   ac_check_lib_save_LIBS=$LIBS
6216 LIBS="-lncurses  $LIBS"
6217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6218 /* end confdefs.h.  */
6219
6220 /* Override any GCC internal prototype to avoid an error.
6221    Use char because int might match the return type of a GCC
6222    builtin and then its argument prototype would still apply.  */
6223 #ifdef __cplusplus
6224 extern "C"
6225 #endif
6226 char tgetent ();
6227 int
6228 main ()
6229 {
6230 return tgetent ();
6231   ;
6232   return 0;
6233 }
6234 _ACEOF
6235 if ac_fn_c_try_link "$LINENO"; then :
6236   ac_cv_lib_ncurses_tgetent=yes
6237 else
6238   ac_cv_lib_ncurses_tgetent=no
6239 fi
6240 rm -f core conftest.err conftest.$ac_objext \
6241     conftest$ac_exeext conftest.$ac_ext
6242 LIBS=$ac_check_lib_save_LIBS
6243 fi
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
6245 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
6246 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
6247   TERMCAP_LIB=-lncurses
6248 else
6249    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
6250 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
6251 if ${ac_cv_lib_termcap_tgetent+:} false; then :
6252   $as_echo_n "(cached) " >&6
6253 else
6254   ac_check_lib_save_LIBS=$LIBS
6255 LIBS="-ltermcap  $LIBS"
6256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6257 /* end confdefs.h.  */
6258
6259 /* Override any GCC internal prototype to avoid an error.
6260    Use char because int might match the return type of a GCC
6261    builtin and then its argument prototype would still apply.  */
6262 #ifdef __cplusplus
6263 extern "C"
6264 #endif
6265 char tgetent ();
6266 int
6267 main ()
6268 {
6269 return tgetent ();
6270   ;
6271   return 0;
6272 }
6273 _ACEOF
6274 if ac_fn_c_try_link "$LINENO"; then :
6275   ac_cv_lib_termcap_tgetent=yes
6276 else
6277   ac_cv_lib_termcap_tgetent=no
6278 fi
6279 rm -f core conftest.err conftest.$ac_objext \
6280     conftest$ac_exeext conftest.$ac_ext
6281 LIBS=$ac_check_lib_save_LIBS
6282 fi
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
6284 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
6285 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
6286   TERMCAP_LIB=-ltermcap
6287 else
6288    as_fn_error $? "Cannot find tinfo, ncurses or termcap libraries" "$LINENO" 5
6289
6290 fi
6291
6292
6293 fi
6294
6295
6296 fi
6297
6298
6299
6300 ac_header_dirent=no
6301 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6302   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6304 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6305 if eval \${$as_ac_Header+:} false; then :
6306   $as_echo_n "(cached) " >&6
6307 else
6308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6309 /* end confdefs.h.  */
6310 #include <sys/types.h>
6311 #include <$ac_hdr>
6312
6313 int
6314 main ()
6315 {
6316 if ((DIR *) 0)
6317 return 0;
6318   ;
6319   return 0;
6320 }
6321 _ACEOF
6322 if ac_fn_c_try_compile "$LINENO"; then :
6323   eval "$as_ac_Header=yes"
6324 else
6325   eval "$as_ac_Header=no"
6326 fi
6327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6328 fi
6329 eval ac_res=\$$as_ac_Header
6330                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6331 $as_echo "$ac_res" >&6; }
6332 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6333   cat >>confdefs.h <<_ACEOF
6334 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6335 _ACEOF
6336
6337 ac_header_dirent=$ac_hdr; break
6338 fi
6339
6340 done
6341 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6342 if test $ac_header_dirent = dirent.h; then
6343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6344 $as_echo_n "checking for library containing opendir... " >&6; }
6345 if ${ac_cv_search_opendir+:} false; then :
6346   $as_echo_n "(cached) " >&6
6347 else
6348   ac_func_search_save_LIBS=$LIBS
6349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350 /* end confdefs.h.  */
6351
6352 /* Override any GCC internal prototype to avoid an error.
6353    Use char because int might match the return type of a GCC
6354    builtin and then its argument prototype would still apply.  */
6355 #ifdef __cplusplus
6356 extern "C"
6357 #endif
6358 char opendir ();
6359 int
6360 main ()
6361 {
6362 return opendir ();
6363   ;
6364   return 0;
6365 }
6366 _ACEOF
6367 for ac_lib in '' dir; do
6368   if test -z "$ac_lib"; then
6369     ac_res="none required"
6370   else
6371     ac_res=-l$ac_lib
6372     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6373   fi
6374   if ac_fn_c_try_link "$LINENO"; then :
6375   ac_cv_search_opendir=$ac_res
6376 fi
6377 rm -f core conftest.err conftest.$ac_objext \
6378     conftest$ac_exeext
6379   if ${ac_cv_search_opendir+:} false; then :
6380   break
6381 fi
6382 done
6383 if ${ac_cv_search_opendir+:} false; then :
6384
6385 else
6386   ac_cv_search_opendir=no
6387 fi
6388 rm conftest.$ac_ext
6389 LIBS=$ac_func_search_save_LIBS
6390 fi
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6392 $as_echo "$ac_cv_search_opendir" >&6; }
6393 ac_res=$ac_cv_search_opendir
6394 if test "$ac_res" != no; then :
6395   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6396
6397 fi
6398
6399 else
6400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6401 $as_echo_n "checking for library containing opendir... " >&6; }
6402 if ${ac_cv_search_opendir+:} false; then :
6403   $as_echo_n "(cached) " >&6
6404 else
6405   ac_func_search_save_LIBS=$LIBS
6406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407 /* end confdefs.h.  */
6408
6409 /* Override any GCC internal prototype to avoid an error.
6410    Use char because int might match the return type of a GCC
6411    builtin and then its argument prototype would still apply.  */
6412 #ifdef __cplusplus
6413 extern "C"
6414 #endif
6415 char opendir ();
6416 int
6417 main ()
6418 {
6419 return opendir ();
6420   ;
6421   return 0;
6422 }
6423 _ACEOF
6424 for ac_lib in '' x; do
6425   if test -z "$ac_lib"; then
6426     ac_res="none required"
6427   else
6428     ac_res=-l$ac_lib
6429     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6430   fi
6431   if ac_fn_c_try_link "$LINENO"; then :
6432   ac_cv_search_opendir=$ac_res
6433 fi
6434 rm -f core conftest.err conftest.$ac_objext \
6435     conftest$ac_exeext
6436   if ${ac_cv_search_opendir+:} false; then :
6437   break
6438 fi
6439 done
6440 if ${ac_cv_search_opendir+:} false; then :
6441
6442 else
6443   ac_cv_search_opendir=no
6444 fi
6445 rm conftest.$ac_ext
6446 LIBS=$ac_func_search_save_LIBS
6447 fi
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6449 $as_echo "$ac_cv_search_opendir" >&6; }
6450 ac_res=$ac_cv_search_opendir
6451 if test "$ac_res" != no; then :
6452   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6453
6454 fi
6455
6456 fi
6457
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6459 $as_echo_n "checking for ANSI C header files... " >&6; }
6460 if ${ac_cv_header_stdc+:} false; then :
6461   $as_echo_n "(cached) " >&6
6462 else
6463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h.  */
6465 #include <stdlib.h>
6466 #include <stdarg.h>
6467 #include <string.h>
6468 #include <float.h>
6469
6470 int
6471 main ()
6472 {
6473
6474   ;
6475   return 0;
6476 }
6477 _ACEOF
6478 if ac_fn_c_try_compile "$LINENO"; then :
6479   ac_cv_header_stdc=yes
6480 else
6481   ac_cv_header_stdc=no
6482 fi
6483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6484
6485 if test $ac_cv_header_stdc = yes; then
6486   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6488 /* end confdefs.h.  */
6489 #include <string.h>
6490
6491 _ACEOF
6492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6493   $EGREP "memchr" >/dev/null 2>&1; then :
6494
6495 else
6496   ac_cv_header_stdc=no
6497 fi
6498 rm -f conftest*
6499
6500 fi
6501
6502 if test $ac_cv_header_stdc = yes; then
6503   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h.  */
6506 #include <stdlib.h>
6507
6508 _ACEOF
6509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6510   $EGREP "free" >/dev/null 2>&1; then :
6511
6512 else
6513   ac_cv_header_stdc=no
6514 fi
6515 rm -f conftest*
6516
6517 fi
6518
6519 if test $ac_cv_header_stdc = yes; then
6520   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6521   if test "$cross_compiling" = yes; then :
6522   :
6523 else
6524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6525 /* end confdefs.h.  */
6526 #include <ctype.h>
6527 #include <stdlib.h>
6528 #if ((' ' & 0x0FF) == 0x020)
6529 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6530 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6531 #else
6532 # define ISLOWER(c) \
6533                    (('a' <= (c) && (c) <= 'i') \
6534                      || ('j' <= (c) && (c) <= 'r') \
6535                      || ('s' <= (c) && (c) <= 'z'))
6536 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6537 #endif
6538
6539 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6540 int
6541 main ()
6542 {
6543   int i;
6544   for (i = 0; i < 256; i++)
6545     if (XOR (islower (i), ISLOWER (i))
6546         || toupper (i) != TOUPPER (i))
6547       return 2;
6548   return 0;
6549 }
6550 _ACEOF
6551 if ac_fn_c_try_run "$LINENO"; then :
6552
6553 else
6554   ac_cv_header_stdc=no
6555 fi
6556 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6557   conftest.$ac_objext conftest.beam conftest.$ac_ext
6558 fi
6559
6560 fi
6561 fi
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6563 $as_echo "$ac_cv_header_stdc" >&6; }
6564 if test $ac_cv_header_stdc = yes; then
6565
6566 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6567
6568 fi
6569
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6571 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6572 if ${ac_cv_header_sys_wait_h+:} false; then :
6573   $as_echo_n "(cached) " >&6
6574 else
6575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6576 /* end confdefs.h.  */
6577 #include <sys/types.h>
6578 #include <sys/wait.h>
6579 #ifndef WEXITSTATUS
6580 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6581 #endif
6582 #ifndef WIFEXITED
6583 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6584 #endif
6585
6586 int
6587 main ()
6588 {
6589   int s;
6590   wait (&s);
6591   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6592   ;
6593   return 0;
6594 }
6595 _ACEOF
6596 if ac_fn_c_try_compile "$LINENO"; then :
6597   ac_cv_header_sys_wait_h=yes
6598 else
6599   ac_cv_header_sys_wait_h=no
6600 fi
6601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6602 fi
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6604 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6605 if test $ac_cv_header_sys_wait_h = yes; then
6606
6607 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6608
6609 fi
6610
6611 for ac_header in arpa/inet.h fcntl.h langinfo.h libintl.h limits.h locale.h mntent.h netdb.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h termios.h unistd.h
6612 do :
6613   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6614 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6615 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6616   cat >>confdefs.h <<_ACEOF
6617 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6618 _ACEOF
6619
6620 fi
6621
6622 done
6623
6624
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6626 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6627 if ${ac_cv_c_const+:} false; then :
6628   $as_echo_n "(cached) " >&6
6629 else
6630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631 /* end confdefs.h.  */
6632
6633 int
6634 main ()
6635 {
6636
6637 #ifndef __cplusplus
6638   /* Ultrix mips cc rejects this sort of thing.  */
6639   typedef int charset[2];
6640   const charset cs = { 0, 0 };
6641   /* SunOS 4.1.1 cc rejects this.  */
6642   char const *const *pcpcc;
6643   char **ppc;
6644   /* NEC SVR4.0.2 mips cc rejects this.  */
6645   struct point {int x, y;};
6646   static struct point const zero = {0,0};
6647   /* AIX XL C 1.02.0.0 rejects this.
6648      It does not let you subtract one const X* pointer from another in
6649      an arm of an if-expression whose if-part is not a constant
6650      expression */
6651   const char *g = "string";
6652   pcpcc = &g + (g ? g-g : 0);
6653   /* HPUX 7.0 cc rejects these. */
6654   ++pcpcc;
6655   ppc = (char**) pcpcc;
6656   pcpcc = (char const *const *) ppc;
6657   { /* SCO 3.2v4 cc rejects this sort of thing.  */
6658     char tx;
6659     char *t = &tx;
6660     char const *s = 0 ? (char *) 0 : (char const *) 0;
6661
6662     *t++ = 0;
6663     if (s) return 0;
6664   }
6665   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6666     int x[] = {25, 17};
6667     const int *foo = &x[0];
6668     ++foo;
6669   }
6670   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6671     typedef const int *iptr;
6672     iptr p = 0;
6673     ++p;
6674   }
6675   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6676        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6677     struct s { int j; const int *ap[3]; } bx;
6678     struct s *b = &bx; b->j = 5;
6679   }
6680   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6681     const int foo = 10;
6682     if (!foo) return 0;
6683   }
6684   return !cs[0] && !zero.x;
6685 #endif
6686
6687   ;
6688   return 0;
6689 }
6690 _ACEOF
6691 if ac_fn_c_try_compile "$LINENO"; then :
6692   ac_cv_c_const=yes
6693 else
6694   ac_cv_c_const=no
6695 fi
6696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6697 fi
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6699 $as_echo "$ac_cv_c_const" >&6; }
6700 if test $ac_cv_c_const = no; then
6701
6702 $as_echo "#define const /**/" >>confdefs.h
6703
6704 fi
6705
6706 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6707 if test "x$ac_cv_type_pid_t" = xyes; then :
6708
6709 else
6710
6711 cat >>confdefs.h <<_ACEOF
6712 #define pid_t int
6713 _ACEOF
6714
6715 fi
6716
6717 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6718 if test "x$ac_cv_type_size_t" = xyes; then :
6719
6720 else
6721
6722 cat >>confdefs.h <<_ACEOF
6723 #define size_t unsigned int
6724 _ACEOF
6725
6726 fi
6727
6728 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6729 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6730
6731 cat >>confdefs.h <<_ACEOF
6732 #define HAVE_STRUCT_STAT_ST_RDEV 1
6733 _ACEOF
6734
6735
6736 fi
6737
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6739 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6740 if ${ac_cv_type_uid_t+:} false; then :
6741   $as_echo_n "(cached) " >&6
6742 else
6743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6744 /* end confdefs.h.  */
6745 #include <sys/types.h>
6746
6747 _ACEOF
6748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6749   $EGREP "uid_t" >/dev/null 2>&1; then :
6750   ac_cv_type_uid_t=yes
6751 else
6752   ac_cv_type_uid_t=no
6753 fi
6754 rm -f conftest*
6755
6756 fi
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6758 $as_echo "$ac_cv_type_uid_t" >&6; }
6759 if test $ac_cv_type_uid_t = no; then
6760
6761 $as_echo "#define uid_t int" >>confdefs.h
6762
6763
6764 $as_echo "#define gid_t int" >>confdefs.h
6765
6766 fi
6767
6768
6769 # Check that harden CFLAGS and LDFLAGS will compile
6770 if test "$enable_harden_flags" = "yes"; then :
6771   HARDEN_CFLAGS="-g -O2 -fstack-protector-strong -Wformat -Werror=format-security"
6772   HARDEN_LDFLAGS="-Wl,-z,relro"
6773    { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler supports harden flags" >&5
6774 $as_echo_n "checking compiler supports harden flags... " >&6; }
6775   save_harden_cflags="$CFLAGS"
6776   CFLAGS="$CFLAGS $HARDEN_CFLAGS"
6777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h.  */
6779
6780 int
6781 main ()
6782 {
6783
6784   ;
6785   return 0;
6786 }
6787 _ACEOF
6788 if ac_fn_c_try_compile "$LINENO"; then :
6789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6790 $as_echo "yes" >&6; }
6791 else
6792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6793 $as_echo "no" >&6; }; HARDEN_CFLAGS=''
6794
6795 fi
6796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6797   CFLAGS="$save_harden_cflags"
6798 else
6799   HARDEN_CFLAGS=""
6800    HARDEN_LDFLAGS=""
6801 fi
6802
6803
6804
6805
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6807 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6808 if ${ac_cv_path_SED+:} false; then :
6809   $as_echo_n "(cached) " >&6
6810 else
6811             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6812      for ac_i in 1 2 3 4 5 6 7; do
6813        ac_script="$ac_script$as_nl$ac_script"
6814      done
6815      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6816      { ac_script=; unset ac_script;}
6817      if test -z "$SED"; then
6818   ac_path_SED_found=false
6819   # Loop through the user's path and test for each of PROGNAME-LIST
6820   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821 for as_dir in $PATH
6822 do
6823   IFS=$as_save_IFS
6824   test -z "$as_dir" && as_dir=.
6825     for ac_prog in sed gsed; do
6826     for ac_exec_ext in '' $ac_executable_extensions; do
6827       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6828       as_fn_executable_p "$ac_path_SED" || continue
6829 # Check for GNU ac_path_SED and select it if it is found.
6830   # Check for GNU $ac_path_SED
6831 case `"$ac_path_SED" --version 2>&1` in
6832 *GNU*)
6833   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6834 *)
6835   ac_count=0
6836   $as_echo_n 0123456789 >"conftest.in"
6837   while :
6838   do
6839     cat "conftest.in" "conftest.in" >"conftest.tmp"
6840     mv "conftest.tmp" "conftest.in"
6841     cp "conftest.in" "conftest.nl"
6842     $as_echo '' >> "conftest.nl"
6843     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6844     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6845     as_fn_arith $ac_count + 1 && ac_count=$as_val
6846     if test $ac_count -gt ${ac_path_SED_max-0}; then
6847       # Best one so far, save it but keep looking for a better one
6848       ac_cv_path_SED="$ac_path_SED"
6849       ac_path_SED_max=$ac_count
6850     fi
6851     # 10*(2^10) chars as input seems more than enough
6852     test $ac_count -gt 10 && break
6853   done
6854   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6855 esac
6856
6857       $ac_path_SED_found && break 3
6858     done
6859   done
6860   done
6861 IFS=$as_save_IFS
6862   if test -z "$ac_cv_path_SED"; then
6863     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6864   fi
6865 else
6866   ac_cv_path_SED=$SED
6867 fi
6868
6869 fi
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6871 $as_echo "$ac_cv_path_SED" >&6; }
6872  SED="$ac_cv_path_SED"
6873   rm -f conftest.sed
6874
6875
6876   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6877 $as_echo_n "checking whether NLS is requested... " >&6; }
6878     # Check whether --enable-nls was given.
6879 if test "${enable_nls+set}" = set; then :
6880   enableval=$enable_nls; USE_NLS=$enableval
6881 else
6882   USE_NLS=yes
6883 fi
6884
6885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6886 $as_echo "$USE_NLS" >&6; }
6887
6888
6889
6890
6891       GETTEXT_MACRO_VERSION=0.19
6892
6893
6894
6895
6896 # Prepare PATH_SEPARATOR.
6897 # The user is always right.
6898 if test "${PATH_SEPARATOR+set}" != set; then
6899   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6900   # contains only /bin. Note that ksh looks also at the FPATH variable,
6901   # so we have to set that as well for the test.
6902   PATH_SEPARATOR=:
6903   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6904     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6905            || PATH_SEPARATOR=';'
6906        }
6907 fi
6908
6909 # Find out how to test for executable files. Don't use a zero-byte file,
6910 # as systems may use methods other than mode bits to determine executability.
6911 cat >conf$$.file <<_ASEOF
6912 #! /bin/sh
6913 exit 0
6914 _ASEOF
6915 chmod +x conf$$.file
6916 if test -x conf$$.file >/dev/null 2>&1; then
6917   ac_executable_p="test -x"
6918 else
6919   ac_executable_p="test -f"
6920 fi
6921 rm -f conf$$.file
6922
6923 # Extract the first word of "msgfmt", so it can be a program name with args.
6924 set dummy msgfmt; ac_word=$2
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926 $as_echo_n "checking for $ac_word... " >&6; }
6927 if ${ac_cv_path_MSGFMT+:} false; then :
6928   $as_echo_n "(cached) " >&6
6929 else
6930   case "$MSGFMT" in
6931   [\\/]* | ?:[\\/]*)
6932     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6933     ;;
6934   *)
6935     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6936     for ac_dir in $PATH; do
6937       IFS="$ac_save_IFS"
6938       test -z "$ac_dir" && ac_dir=.
6939       for ac_exec_ext in '' $ac_executable_extensions; do
6940         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6941           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6942           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6943      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6944             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6945             break 2
6946           fi
6947         fi
6948       done
6949     done
6950     IFS="$ac_save_IFS"
6951   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6952     ;;
6953 esac
6954 fi
6955 MSGFMT="$ac_cv_path_MSGFMT"
6956 if test "$MSGFMT" != ":"; then
6957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6958 $as_echo "$MSGFMT" >&6; }
6959 else
6960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6961 $as_echo "no" >&6; }
6962 fi
6963
6964   # Extract the first word of "gmsgfmt", so it can be a program name with args.
6965 set dummy gmsgfmt; ac_word=$2
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6967 $as_echo_n "checking for $ac_word... " >&6; }
6968 if ${ac_cv_path_GMSGFMT+:} false; then :
6969   $as_echo_n "(cached) " >&6
6970 else
6971   case $GMSGFMT in
6972   [\\/]* | ?:[\\/]*)
6973   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6974   ;;
6975   *)
6976   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977 for as_dir in $PATH
6978 do
6979   IFS=$as_save_IFS
6980   test -z "$as_dir" && as_dir=.
6981     for ac_exec_ext in '' $ac_executable_extensions; do
6982   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6983     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6985     break 2
6986   fi
6987 done
6988   done
6989 IFS=$as_save_IFS
6990
6991   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6992   ;;
6993 esac
6994 fi
6995 GMSGFMT=$ac_cv_path_GMSGFMT
6996 if test -n "$GMSGFMT"; then
6997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6998 $as_echo "$GMSGFMT" >&6; }
6999 else
7000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7001 $as_echo "no" >&6; }
7002 fi
7003
7004
7005
7006     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7007     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
7008     *) MSGFMT_015=$MSGFMT ;;
7009   esac
7010
7011   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7012     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
7013     *) GMSGFMT_015=$GMSGFMT ;;
7014   esac
7015
7016
7017
7018 # Prepare PATH_SEPARATOR.
7019 # The user is always right.
7020 if test "${PATH_SEPARATOR+set}" != set; then
7021   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7022   # contains only /bin. Note that ksh looks also at the FPATH variable,
7023   # so we have to set that as well for the test.
7024   PATH_SEPARATOR=:
7025   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7026     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7027            || PATH_SEPARATOR=';'
7028        }
7029 fi
7030
7031 # Find out how to test for executable files. Don't use a zero-byte file,
7032 # as systems may use methods other than mode bits to determine executability.
7033 cat >conf$$.file <<_ASEOF
7034 #! /bin/sh
7035 exit 0
7036 _ASEOF
7037 chmod +x conf$$.file
7038 if test -x conf$$.file >/dev/null 2>&1; then
7039   ac_executable_p="test -x"
7040 else
7041   ac_executable_p="test -f"
7042 fi
7043 rm -f conf$$.file
7044
7045 # Extract the first word of "xgettext", so it can be a program name with args.
7046 set dummy xgettext; ac_word=$2
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7048 $as_echo_n "checking for $ac_word... " >&6; }
7049 if ${ac_cv_path_XGETTEXT+:} false; then :
7050   $as_echo_n "(cached) " >&6
7051 else
7052   case "$XGETTEXT" in
7053   [\\/]* | ?:[\\/]*)
7054     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7055     ;;
7056   *)
7057     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7058     for ac_dir in $PATH; do
7059       IFS="$ac_save_IFS"
7060       test -z "$ac_dir" && ac_dir=.
7061       for ac_exec_ext in '' $ac_executable_extensions; do
7062         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7063           echo "$as_me: trying $ac_dir/$ac_word..." >&5
7064           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
7065      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7066             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7067             break 2
7068           fi
7069         fi
7070       done
7071     done
7072     IFS="$ac_save_IFS"
7073   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7074     ;;
7075 esac
7076 fi
7077 XGETTEXT="$ac_cv_path_XGETTEXT"
7078 if test "$XGETTEXT" != ":"; then
7079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7080 $as_echo "$XGETTEXT" >&6; }
7081 else
7082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7083 $as_echo "no" >&6; }
7084 fi
7085
7086     rm -f messages.po
7087
7088     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7089     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
7090     *) XGETTEXT_015=$XGETTEXT ;;
7091   esac
7092
7093
7094
7095 # Prepare PATH_SEPARATOR.
7096 # The user is always right.
7097 if test "${PATH_SEPARATOR+set}" != set; then
7098   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7099   # contains only /bin. Note that ksh looks also at the FPATH variable,
7100   # so we have to set that as well for the test.
7101   PATH_SEPARATOR=:
7102   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7103     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7104            || PATH_SEPARATOR=';'
7105        }
7106 fi
7107
7108 # Find out how to test for executable files. Don't use a zero-byte file,
7109 # as systems may use methods other than mode bits to determine executability.
7110 cat >conf$$.file <<_ASEOF
7111 #! /bin/sh
7112 exit 0
7113 _ASEOF
7114 chmod +x conf$$.file
7115 if test -x conf$$.file >/dev/null 2>&1; then
7116   ac_executable_p="test -x"
7117 else
7118   ac_executable_p="test -f"
7119 fi
7120 rm -f conf$$.file
7121
7122 # Extract the first word of "msgmerge", so it can be a program name with args.
7123 set dummy msgmerge; ac_word=$2
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7125 $as_echo_n "checking for $ac_word... " >&6; }
7126 if ${ac_cv_path_MSGMERGE+:} false; then :
7127   $as_echo_n "(cached) " >&6
7128 else
7129   case "$MSGMERGE" in
7130   [\\/]* | ?:[\\/]*)
7131     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7132     ;;
7133   *)
7134     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7135     for ac_dir in $PATH; do
7136       IFS="$ac_save_IFS"
7137       test -z "$ac_dir" && ac_dir=.
7138       for ac_exec_ext in '' $ac_executable_extensions; do
7139         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7140           echo "$as_me: trying $ac_dir/$ac_word..." >&5
7141           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
7142             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7143             break 2
7144           fi
7145         fi
7146       done
7147     done
7148     IFS="$ac_save_IFS"
7149   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7150     ;;
7151 esac
7152 fi
7153 MSGMERGE="$ac_cv_path_MSGMERGE"
7154 if test "$MSGMERGE" != ":"; then
7155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7156 $as_echo "$MSGMERGE" >&6; }
7157 else
7158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7159 $as_echo "no" >&6; }
7160 fi
7161
7162
7163         test -n "$localedir" || localedir='${datadir}/locale'
7164
7165
7166     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
7167
7168
7169   ac_config_commands="$ac_config_commands po-directories"
7170
7171
7172
7173       if test "X$prefix" = "XNONE"; then
7174     acl_final_prefix="$ac_default_prefix"
7175   else
7176     acl_final_prefix="$prefix"
7177   fi
7178   if test "X$exec_prefix" = "XNONE"; then
7179     acl_final_exec_prefix='${prefix}'
7180   else
7181     acl_final_exec_prefix="$exec_prefix"
7182   fi
7183   acl_save_prefix="$prefix"
7184   prefix="$acl_final_prefix"
7185   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7186   prefix="$acl_save_prefix"
7187
7188 # Make sure we can run config.sub.
7189 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
7190   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
7191
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7193 $as_echo_n "checking build system type... " >&6; }
7194 if ${ac_cv_build+:} false; then :
7195   $as_echo_n "(cached) " >&6
7196 else
7197   ac_build_alias=$build_alias
7198 test "x$ac_build_alias" = x &&
7199   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
7200 test "x$ac_build_alias" = x &&
7201   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
7202 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
7203   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
7204
7205 fi
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7207 $as_echo "$ac_cv_build" >&6; }
7208 case $ac_cv_build in
7209 *-*-*) ;;
7210 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
7211 esac
7212 build=$ac_cv_build
7213 ac_save_IFS=$IFS; IFS='-'
7214 set x $ac_cv_build
7215 shift
7216 build_cpu=$1
7217 build_vendor=$2
7218 shift; shift
7219 # Remember, the first character of IFS is used to create $*,
7220 # except with old shells:
7221 build_os=$*
7222 IFS=$ac_save_IFS
7223 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7224
7225
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7227 $as_echo_n "checking host system type... " >&6; }
7228 if ${ac_cv_host+:} false; then :
7229   $as_echo_n "(cached) " >&6
7230 else
7231   if test "x$host_alias" = x; then
7232   ac_cv_host=$ac_cv_build
7233 else
7234   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
7235     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
7236 fi
7237
7238 fi
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7240 $as_echo "$ac_cv_host" >&6; }
7241 case $ac_cv_host in
7242 *-*-*) ;;
7243 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7244 esac
7245 host=$ac_cv_host
7246 ac_save_IFS=$IFS; IFS='-'
7247 set x $ac_cv_host
7248 shift
7249 host_cpu=$1
7250 host_vendor=$2
7251 shift; shift
7252 # Remember, the first character of IFS is used to create $*,
7253 # except with old shells:
7254 host_os=$*
7255 IFS=$ac_save_IFS
7256 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7257
7258
7259
7260
7261 # Check whether --with-gnu-ld was given.
7262 if test "${with_gnu_ld+set}" = set; then :
7263   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7264 else
7265   with_gnu_ld=no
7266 fi
7267
7268 # Prepare PATH_SEPARATOR.
7269 # The user is always right.
7270 if test "${PATH_SEPARATOR+set}" != set; then
7271   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7272   # contains only /bin. Note that ksh looks also at the FPATH variable,
7273   # so we have to set that as well for the test.
7274   PATH_SEPARATOR=:
7275   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7276     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7277            || PATH_SEPARATOR=';'
7278        }
7279 fi
7280
7281 ac_prog=ld
7282 if test "$GCC" = yes; then
7283   # Check if gcc -print-prog-name=ld gives a path.
7284   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7285 $as_echo_n "checking for ld used by $CC... " >&6; }
7286   case $host in
7287   *-*-mingw*)
7288     # gcc leaves a trailing carriage return which upsets mingw
7289     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7290   *)
7291     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7292   esac
7293   case $ac_prog in
7294     # Accept absolute paths.
7295     [\\/]* | ?:[\\/]*)
7296       re_direlt='/[^/][^/]*/\.\./'
7297       # Canonicalize the pathname of ld
7298       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7299       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7300         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7301       done
7302       test -z "$LD" && LD="$ac_prog"
7303       ;;
7304   "")
7305     # If it fails, then pretend we aren't using GCC.
7306     ac_prog=ld
7307     ;;
7308   *)
7309     # If it is relative, then search for the first ld in PATH.
7310     with_gnu_ld=unknown
7311     ;;
7312   esac
7313 elif test "$with_gnu_ld" = yes; then
7314   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7315 $as_echo_n "checking for GNU ld... " >&6; }
7316 else
7317   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7318 $as_echo_n "checking for non-GNU ld... " >&6; }
7319 fi
7320 if ${acl_cv_path_LD+:} false; then :
7321   $as_echo_n "(cached) " >&6
7322 else
7323   if test -z "$LD"; then
7324   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7325   for ac_dir in $PATH; do
7326     IFS="$acl_save_ifs"
7327     test -z "$ac_dir" && ac_dir=.
7328     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7329       acl_cv_path_LD="$ac_dir/$ac_prog"
7330       # Check to see if the program is GNU ld.  I'd rather use --version,
7331       # but apparently some variants of GNU ld only accept -v.
7332       # Break only if it was the GNU/non-GNU ld that we prefer.
7333       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7334       *GNU* | *'with BFD'*)
7335         test "$with_gnu_ld" != no && break
7336         ;;
7337       *)
7338         test "$with_gnu_ld" != yes && break
7339         ;;
7340       esac
7341     fi
7342   done
7343   IFS="$acl_save_ifs"
7344 else
7345   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7346 fi
7347 fi
7348
7349 LD="$acl_cv_path_LD"
7350 if test -n "$LD"; then
7351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7352 $as_echo "$LD" >&6; }
7353 else
7354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7355 $as_echo "no" >&6; }
7356 fi
7357 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7359 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7360 if ${acl_cv_prog_gnu_ld+:} false; then :
7361   $as_echo_n "(cached) " >&6
7362 else
7363   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7364 case `$LD -v 2>&1 </dev/null` in
7365 *GNU* | *'with BFD'*)
7366   acl_cv_prog_gnu_ld=yes
7367   ;;
7368 *)
7369   acl_cv_prog_gnu_ld=no
7370   ;;
7371 esac
7372 fi
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7374 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7375 with_gnu_ld=$acl_cv_prog_gnu_ld
7376
7377
7378
7379
7380                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7381 $as_echo_n "checking for shared library run path origin... " >&6; }
7382 if ${acl_cv_rpath+:} false; then :
7383   $as_echo_n "(cached) " >&6
7384 else
7385
7386     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7387     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7388     . ./conftest.sh
7389     rm -f ./conftest.sh
7390     acl_cv_rpath=done
7391
7392 fi
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7394 $as_echo "$acl_cv_rpath" >&6; }
7395   wl="$acl_cv_wl"
7396   acl_libext="$acl_cv_libext"
7397   acl_shlibext="$acl_cv_shlibext"
7398   acl_libname_spec="$acl_cv_libname_spec"
7399   acl_library_names_spec="$acl_cv_library_names_spec"
7400   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7401   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7402   acl_hardcode_direct="$acl_cv_hardcode_direct"
7403   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7404     # Check whether --enable-rpath was given.
7405 if test "${enable_rpath+set}" = set; then :
7406   enableval=$enable_rpath; :
7407 else
7408   enable_rpath=yes
7409 fi
7410
7411
7412
7413
7414   acl_libdirstem=lib
7415   acl_libdirstem2=
7416   case "$host_os" in
7417     solaris*)
7418                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7419 $as_echo_n "checking for 64-bit host... " >&6; }
7420 if ${gl_cv_solaris_64bit+:} false; then :
7421   $as_echo_n "(cached) " >&6
7422 else
7423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424 /* end confdefs.h.  */
7425
7426 #ifdef _LP64
7427 sixtyfour bits
7428 #endif
7429
7430 _ACEOF
7431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7432   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7433   gl_cv_solaris_64bit=yes
7434 else
7435   gl_cv_solaris_64bit=no
7436 fi
7437 rm -f conftest*
7438
7439
7440 fi
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7442 $as_echo "$gl_cv_solaris_64bit" >&6; }
7443       if test $gl_cv_solaris_64bit = yes; then
7444         acl_libdirstem=lib/64
7445         case "$host_cpu" in
7446           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
7447           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7448         esac
7449       fi
7450       ;;
7451     *)
7452       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7453       if test -n "$searchpath"; then
7454         acl_save_IFS="${IFS=    }"; IFS=":"
7455         for searchdir in $searchpath; do
7456           if test -d "$searchdir"; then
7457             case "$searchdir" in
7458               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7459               */../ | */.. )
7460                 # Better ignore directories of this form. They are misleading.
7461                 ;;
7462               *) searchdir=`cd "$searchdir" && pwd`
7463                  case "$searchdir" in
7464                    */lib64 ) acl_libdirstem=lib64 ;;
7465                  esac ;;
7466             esac
7467           fi
7468         done
7469         IFS="$acl_save_IFS"
7470       fi
7471       ;;
7472   esac
7473   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486     use_additional=yes
7487
7488   acl_save_prefix="$prefix"
7489   prefix="$acl_final_prefix"
7490   acl_save_exec_prefix="$exec_prefix"
7491   exec_prefix="$acl_final_exec_prefix"
7492
7493     eval additional_includedir=\"$includedir\"
7494     eval additional_libdir=\"$libdir\"
7495
7496   exec_prefix="$acl_save_exec_prefix"
7497   prefix="$acl_save_prefix"
7498
7499
7500 # Check whether --with-libiconv-prefix was given.
7501 if test "${with_libiconv_prefix+set}" = set; then :
7502   withval=$with_libiconv_prefix;
7503     if test "X$withval" = "Xno"; then
7504       use_additional=no
7505     else
7506       if test "X$withval" = "X"; then
7507
7508   acl_save_prefix="$prefix"
7509   prefix="$acl_final_prefix"
7510   acl_save_exec_prefix="$exec_prefix"
7511   exec_prefix="$acl_final_exec_prefix"
7512
7513           eval additional_includedir=\"$includedir\"
7514           eval additional_libdir=\"$libdir\"
7515
7516   exec_prefix="$acl_save_exec_prefix"
7517   prefix="$acl_save_prefix"
7518
7519       else
7520         additional_includedir="$withval/include"
7521         additional_libdir="$withval/$acl_libdirstem"
7522         if test "$acl_libdirstem2" != "$acl_libdirstem" \
7523            && ! test -d "$withval/$acl_libdirstem"; then
7524           additional_libdir="$withval/$acl_libdirstem2"
7525         fi
7526       fi
7527     fi
7528
7529 fi
7530
7531       LIBICONV=
7532   LTLIBICONV=
7533   INCICONV=
7534   LIBICONV_PREFIX=
7535       HAVE_LIBICONV=
7536   rpathdirs=
7537   ltrpathdirs=
7538   names_already_handled=
7539   names_next_round='iconv '
7540   while test -n "$names_next_round"; do
7541     names_this_round="$names_next_round"
7542     names_next_round=
7543     for name in $names_this_round; do
7544       already_handled=
7545       for n in $names_already_handled; do
7546         if test "$n" = "$name"; then
7547           already_handled=yes
7548           break
7549         fi
7550       done
7551       if test -z "$already_handled"; then
7552         names_already_handled="$names_already_handled $name"
7553                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
7554         eval value=\"\$HAVE_LIB$uppername\"
7555         if test -n "$value"; then
7556           if test "$value" = yes; then
7557             eval value=\"\$LIB$uppername\"
7558             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7559             eval value=\"\$LTLIB$uppername\"
7560             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7561           else
7562                                     :
7563           fi
7564         else
7565                               found_dir=
7566           found_la=
7567           found_so=
7568           found_a=
7569           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
7570           if test -n "$acl_shlibext"; then
7571             shrext=".$acl_shlibext"             # typically: shrext=.so
7572           else
7573             shrext=
7574           fi
7575           if test $use_additional = yes; then
7576             dir="$additional_libdir"
7577                                     if test -n "$acl_shlibext"; then
7578               if test -f "$dir/$libname$shrext"; then
7579                 found_dir="$dir"
7580                 found_so="$dir/$libname$shrext"
7581               else
7582                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7583                   ver=`(cd "$dir" && \
7584                         for f in "$libname$shrext".*; do echo "$f"; done \
7585                         | sed -e "s,^$libname$shrext\\\\.,," \
7586                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7587                         | sed 1q ) 2>/dev/null`
7588                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7589                     found_dir="$dir"
7590                     found_so="$dir/$libname$shrext.$ver"
7591                   fi
7592                 else
7593                   eval library_names=\"$acl_library_names_spec\"
7594                   for f in $library_names; do
7595                     if test -f "$dir/$f"; then
7596                       found_dir="$dir"
7597                       found_so="$dir/$f"
7598                       break
7599                     fi
7600                   done
7601                 fi
7602               fi
7603             fi
7604                         if test "X$found_dir" = "X"; then
7605               if test -f "$dir/$libname.$acl_libext"; then
7606                 found_dir="$dir"
7607                 found_a="$dir/$libname.$acl_libext"
7608               fi
7609             fi
7610             if test "X$found_dir" != "X"; then
7611               if test -f "$dir/$libname.la"; then
7612                 found_la="$dir/$libname.la"
7613               fi
7614             fi
7615           fi
7616           if test "X$found_dir" = "X"; then
7617             for x in $LDFLAGS $LTLIBICONV; do
7618
7619   acl_save_prefix="$prefix"
7620   prefix="$acl_final_prefix"
7621   acl_save_exec_prefix="$exec_prefix"
7622   exec_prefix="$acl_final_exec_prefix"
7623   eval x=\"$x\"
7624   exec_prefix="$acl_save_exec_prefix"
7625   prefix="$acl_save_prefix"
7626
7627               case "$x" in
7628                 -L*)
7629                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7630                                     if test -n "$acl_shlibext"; then
7631                     if test -f "$dir/$libname$shrext"; then
7632                       found_dir="$dir"
7633                       found_so="$dir/$libname$shrext"
7634                     else
7635                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7636                         ver=`(cd "$dir" && \
7637                               for f in "$libname$shrext".*; do echo "$f"; done \
7638                               | sed -e "s,^$libname$shrext\\\\.,," \
7639                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7640                               | sed 1q ) 2>/dev/null`
7641                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7642                           found_dir="$dir"
7643                           found_so="$dir/$libname$shrext.$ver"
7644                         fi
7645                       else
7646                         eval library_names=\"$acl_library_names_spec\"
7647                         for f in $library_names; do
7648                           if test -f "$dir/$f"; then
7649                             found_dir="$dir"
7650                             found_so="$dir/$f"
7651                             break
7652                           fi
7653                         done
7654                       fi
7655                     fi
7656                   fi
7657                                     if test "X$found_dir" = "X"; then
7658                     if test -f "$dir/$libname.$acl_libext"; then
7659                       found_dir="$dir"
7660                       found_a="$dir/$libname.$acl_libext"
7661                     fi
7662                   fi
7663                   if test "X$found_dir" != "X"; then
7664                     if test -f "$dir/$libname.la"; then
7665                       found_la="$dir/$libname.la"
7666                     fi
7667                   fi
7668                   ;;
7669               esac
7670               if test "X$found_dir" != "X"; then
7671                 break
7672               fi
7673             done
7674           fi
7675           if test "X$found_dir" != "X"; then
7676                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7677             if test "X$found_so" != "X"; then
7678                                                         if test "$enable_rpath" = no \
7679                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7680                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
7681                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7682               else
7683                                                                                 haveit=
7684                 for x in $ltrpathdirs; do
7685                   if test "X$x" = "X$found_dir"; then
7686                     haveit=yes
7687                     break
7688                   fi
7689                 done
7690                 if test -z "$haveit"; then
7691                   ltrpathdirs="$ltrpathdirs $found_dir"
7692                 fi
7693                                 if test "$acl_hardcode_direct" = yes; then
7694                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7695                 else
7696                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7697                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7698                                                             haveit=
7699                     for x in $rpathdirs; do
7700                       if test "X$x" = "X$found_dir"; then
7701                         haveit=yes
7702                         break
7703                       fi
7704                     done
7705                     if test -z "$haveit"; then
7706                       rpathdirs="$rpathdirs $found_dir"
7707                     fi
7708                   else
7709                                                                                 haveit=
7710                     for x in $LDFLAGS $LIBICONV; do
7711
7712   acl_save_prefix="$prefix"
7713   prefix="$acl_final_prefix"
7714   acl_save_exec_prefix="$exec_prefix"
7715   exec_prefix="$acl_final_exec_prefix"
7716   eval x=\"$x\"
7717   exec_prefix="$acl_save_exec_prefix"
7718   prefix="$acl_save_prefix"
7719
7720                       if test "X$x" = "X-L$found_dir"; then
7721                         haveit=yes
7722                         break
7723                       fi
7724                     done
7725                     if test -z "$haveit"; then
7726                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7727                     fi
7728                     if test "$acl_hardcode_minus_L" != no; then
7729                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7730                     else
7731                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7732                     fi
7733                   fi
7734                 fi
7735               fi
7736             else
7737               if test "X$found_a" != "X"; then
7738                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7739               else
7740                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7741               fi
7742             fi
7743                         additional_includedir=
7744             case "$found_dir" in
7745               */$acl_libdirstem | */$acl_libdirstem/)
7746                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7747                 if test "$name" = 'iconv'; then
7748                   LIBICONV_PREFIX="$basedir"
7749                 fi
7750                 additional_includedir="$basedir/include"
7751                 ;;
7752               */$acl_libdirstem2 | */$acl_libdirstem2/)
7753                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7754                 if test "$name" = 'iconv'; then
7755                   LIBICONV_PREFIX="$basedir"
7756                 fi
7757                 additional_includedir="$basedir/include"
7758                 ;;
7759             esac
7760             if test "X$additional_includedir" != "X"; then
7761                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7762                 haveit=
7763                 if test "X$additional_includedir" = "X/usr/local/include"; then
7764                   if test -n "$GCC"; then
7765                     case $host_os in
7766                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7767                     esac
7768                   fi
7769                 fi
7770                 if test -z "$haveit"; then
7771                   for x in $CPPFLAGS $INCICONV; do
7772
7773   acl_save_prefix="$prefix"
7774   prefix="$acl_final_prefix"
7775   acl_save_exec_prefix="$exec_prefix"
7776   exec_prefix="$acl_final_exec_prefix"
7777   eval x=\"$x\"
7778   exec_prefix="$acl_save_exec_prefix"
7779   prefix="$acl_save_prefix"
7780
7781                     if test "X$x" = "X-I$additional_includedir"; then
7782                       haveit=yes
7783                       break
7784                     fi
7785                   done
7786                   if test -z "$haveit"; then
7787                     if test -d "$additional_includedir"; then
7788                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7789                     fi
7790                   fi
7791                 fi
7792               fi
7793             fi
7794                         if test -n "$found_la"; then
7795                                                         save_libdir="$libdir"
7796               case "$found_la" in
7797                 */* | *\\*) . "$found_la" ;;
7798                 *) . "./$found_la" ;;
7799               esac
7800               libdir="$save_libdir"
7801                             for dep in $dependency_libs; do
7802                 case "$dep" in
7803                   -L*)
7804                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7805                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7806                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7807                       haveit=
7808                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7809                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7810                         if test -n "$GCC"; then
7811                           case $host_os in
7812                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7813                           esac
7814                         fi
7815                       fi
7816                       if test -z "$haveit"; then
7817                         haveit=
7818                         for x in $LDFLAGS $LIBICONV; do
7819
7820   acl_save_prefix="$prefix"
7821   prefix="$acl_final_prefix"
7822   acl_save_exec_prefix="$exec_prefix"
7823   exec_prefix="$acl_final_exec_prefix"
7824   eval x=\"$x\"
7825   exec_prefix="$acl_save_exec_prefix"
7826   prefix="$acl_save_prefix"
7827
7828                           if test "X$x" = "X-L$additional_libdir"; then
7829                             haveit=yes
7830                             break
7831                           fi
7832                         done
7833                         if test -z "$haveit"; then
7834                           if test -d "$additional_libdir"; then
7835                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7836                           fi
7837                         fi
7838                         haveit=
7839                         for x in $LDFLAGS $LTLIBICONV; do
7840
7841   acl_save_prefix="$prefix"
7842   prefix="$acl_final_prefix"
7843   acl_save_exec_prefix="$exec_prefix"
7844   exec_prefix="$acl_final_exec_prefix"
7845   eval x=\"$x\"
7846   exec_prefix="$acl_save_exec_prefix"
7847   prefix="$acl_save_prefix"
7848
7849                           if test "X$x" = "X-L$additional_libdir"; then
7850                             haveit=yes
7851                             break
7852                           fi
7853                         done
7854                         if test -z "$haveit"; then
7855                           if test -d "$additional_libdir"; then
7856                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7857                           fi
7858                         fi
7859                       fi
7860                     fi
7861                     ;;
7862                   -R*)
7863                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7864                     if test "$enable_rpath" != no; then
7865                                                                   haveit=
7866                       for x in $rpathdirs; do
7867                         if test "X$x" = "X$dir"; then
7868                           haveit=yes
7869                           break
7870                         fi
7871                       done
7872                       if test -z "$haveit"; then
7873                         rpathdirs="$rpathdirs $dir"
7874                       fi
7875                                                                   haveit=
7876                       for x in $ltrpathdirs; do
7877                         if test "X$x" = "X$dir"; then
7878                           haveit=yes
7879                           break
7880                         fi
7881                       done
7882                       if test -z "$haveit"; then
7883                         ltrpathdirs="$ltrpathdirs $dir"
7884                       fi
7885                     fi
7886                     ;;
7887                   -l*)
7888                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7889                     ;;
7890                   *.la)
7891                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7892                     ;;
7893                   *)
7894                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7895                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7896                     ;;
7897                 esac
7898               done
7899             fi
7900           else
7901                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7902             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7903           fi
7904         fi
7905       fi
7906     done
7907   done
7908   if test "X$rpathdirs" != "X"; then
7909     if test -n "$acl_hardcode_libdir_separator"; then
7910                         alldirs=
7911       for found_dir in $rpathdirs; do
7912         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7913       done
7914             acl_save_libdir="$libdir"
7915       libdir="$alldirs"
7916       eval flag=\"$acl_hardcode_libdir_flag_spec\"
7917       libdir="$acl_save_libdir"
7918       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7919     else
7920             for found_dir in $rpathdirs; do
7921         acl_save_libdir="$libdir"
7922         libdir="$found_dir"
7923         eval flag=\"$acl_hardcode_libdir_flag_spec\"
7924         libdir="$acl_save_libdir"
7925         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7926       done
7927     fi
7928   fi
7929   if test "X$ltrpathdirs" != "X"; then
7930             for found_dir in $ltrpathdirs; do
7931       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7932     done
7933   fi
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
7966 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
7967 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
7968   $as_echo_n "(cached) " >&6
7969 else
7970   gt_save_LIBS="$LIBS"
7971      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7972      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7973 /* end confdefs.h.  */
7974 #include <CoreFoundation/CFPreferences.h>
7975 int
7976 main ()
7977 {
7978 CFPreferencesCopyAppValue(NULL, NULL)
7979   ;
7980   return 0;
7981 }
7982 _ACEOF
7983 if ac_fn_c_try_link "$LINENO"; then :
7984   gt_cv_func_CFPreferencesCopyAppValue=yes
7985 else
7986   gt_cv_func_CFPreferencesCopyAppValue=no
7987 fi
7988 rm -f core conftest.err conftest.$ac_objext \
7989     conftest$ac_exeext conftest.$ac_ext
7990      LIBS="$gt_save_LIBS"
7991 fi
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
7993 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
7994   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
7995
7996 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
7997
7998   fi
7999     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
8000 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
8001 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
8002   $as_echo_n "(cached) " >&6
8003 else
8004   gt_save_LIBS="$LIBS"
8005      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8006      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007 /* end confdefs.h.  */
8008 #include <CoreFoundation/CFLocale.h>
8009 int
8010 main ()
8011 {
8012 CFLocaleCopyCurrent();
8013   ;
8014   return 0;
8015 }
8016 _ACEOF
8017 if ac_fn_c_try_link "$LINENO"; then :
8018   gt_cv_func_CFLocaleCopyCurrent=yes
8019 else
8020   gt_cv_func_CFLocaleCopyCurrent=no
8021 fi
8022 rm -f core conftest.err conftest.$ac_objext \
8023     conftest$ac_exeext conftest.$ac_ext
8024      LIBS="$gt_save_LIBS"
8025 fi
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
8027 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
8028   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8029
8030 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
8031
8032   fi
8033   INTL_MACOSX_LIBS=
8034   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8035     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
8036   fi
8037
8038
8039
8040
8041
8042
8043   LIBINTL=
8044   LTLIBINTL=
8045   POSUB=
8046
8047     case " $gt_needs " in
8048     *" need-formatstring-macros "*) gt_api_version=3 ;;
8049     *" need-ngettext "*) gt_api_version=2 ;;
8050     *) gt_api_version=1 ;;
8051   esac
8052   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
8053   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
8054
8055     if test "$USE_NLS" = "yes"; then
8056     gt_use_preinstalled_gnugettext=no
8057
8058
8059         if test $gt_api_version -ge 3; then
8060           gt_revision_test_code='
8061 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8062 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
8063 #endif
8064 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
8065 '
8066         else
8067           gt_revision_test_code=
8068         fi
8069         if test $gt_api_version -ge 2; then
8070           gt_expression_test_code=' + * ngettext ("", "", 0)'
8071         else
8072           gt_expression_test_code=
8073         fi
8074
8075         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8076 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8077 if eval \${$gt_func_gnugettext_libc+:} false; then :
8078   $as_echo_n "(cached) " >&6
8079 else
8080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8081 /* end confdefs.h.  */
8082
8083 #include <libintl.h>
8084 $gt_revision_test_code
8085 extern int _nl_msg_cat_cntr;
8086 extern int *_nl_domain_bindings;
8087
8088 int
8089 main ()
8090 {
8091
8092 bindtextdomain ("", "");
8093 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
8094
8095   ;
8096   return 0;
8097 }
8098 _ACEOF
8099 if ac_fn_c_try_link "$LINENO"; then :
8100   eval "$gt_func_gnugettext_libc=yes"
8101 else
8102   eval "$gt_func_gnugettext_libc=no"
8103 fi
8104 rm -f core conftest.err conftest.$ac_objext \
8105     conftest$ac_exeext conftest.$ac_ext
8106 fi
8107 eval ac_res=\$$gt_func_gnugettext_libc
8108                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8109 $as_echo "$ac_res" >&6; }
8110
8111         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
8112
8113
8114
8115
8116
8117           am_save_CPPFLAGS="$CPPFLAGS"
8118
8119   for element in $INCICONV; do
8120     haveit=
8121     for x in $CPPFLAGS; do
8122
8123   acl_save_prefix="$prefix"
8124   prefix="$acl_final_prefix"
8125   acl_save_exec_prefix="$exec_prefix"
8126   exec_prefix="$acl_final_exec_prefix"
8127   eval x=\"$x\"
8128   exec_prefix="$acl_save_exec_prefix"
8129   prefix="$acl_save_prefix"
8130
8131       if test "X$x" = "X$element"; then
8132         haveit=yes
8133         break
8134       fi
8135     done
8136     if test -z "$haveit"; then
8137       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8138     fi
8139   done
8140
8141
8142   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8143 $as_echo_n "checking for iconv... " >&6; }
8144 if ${am_cv_func_iconv+:} false; then :
8145   $as_echo_n "(cached) " >&6
8146 else
8147
8148     am_cv_func_iconv="no, consider installing GNU libiconv"
8149     am_cv_lib_iconv=no
8150     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8151 /* end confdefs.h.  */
8152
8153 #include <stdlib.h>
8154 #include <iconv.h>
8155
8156 int
8157 main ()
8158 {
8159 iconv_t cd = iconv_open("","");
8160            iconv(cd,NULL,NULL,NULL,NULL);
8161            iconv_close(cd);
8162   ;
8163   return 0;
8164 }
8165 _ACEOF
8166 if ac_fn_c_try_link "$LINENO"; then :
8167   am_cv_func_iconv=yes
8168 fi
8169 rm -f core conftest.err conftest.$ac_objext \
8170     conftest$ac_exeext conftest.$ac_ext
8171     if test "$am_cv_func_iconv" != yes; then
8172       am_save_LIBS="$LIBS"
8173       LIBS="$LIBS $LIBICONV"
8174       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8175 /* end confdefs.h.  */
8176
8177 #include <stdlib.h>
8178 #include <iconv.h>
8179
8180 int
8181 main ()
8182 {
8183 iconv_t cd = iconv_open("","");
8184              iconv(cd,NULL,NULL,NULL,NULL);
8185              iconv_close(cd);
8186   ;
8187   return 0;
8188 }
8189 _ACEOF
8190 if ac_fn_c_try_link "$LINENO"; then :
8191   am_cv_lib_iconv=yes
8192         am_cv_func_iconv=yes
8193 fi
8194 rm -f core conftest.err conftest.$ac_objext \
8195     conftest$ac_exeext conftest.$ac_ext
8196       LIBS="$am_save_LIBS"
8197     fi
8198
8199 fi
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8201 $as_echo "$am_cv_func_iconv" >&6; }
8202   if test "$am_cv_func_iconv" = yes; then
8203     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
8204 $as_echo_n "checking for working iconv... " >&6; }
8205 if ${am_cv_func_iconv_works+:} false; then :
8206   $as_echo_n "(cached) " >&6
8207 else
8208
8209                   am_save_LIBS="$LIBS"
8210       if test $am_cv_lib_iconv = yes; then
8211         LIBS="$LIBS $LIBICONV"
8212       fi
8213       am_cv_func_iconv_works=no
8214       for ac_iconv_const in '' 'const'; do
8215         if test "$cross_compiling" = yes; then :
8216   case "$host_os" in
8217              aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
8218              *)            am_cv_func_iconv_works="guessing yes" ;;
8219            esac
8220 else
8221   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8222 /* end confdefs.h.  */
8223
8224 #include <iconv.h>
8225 #include <string.h>
8226
8227 #ifndef ICONV_CONST
8228 # define ICONV_CONST $ac_iconv_const
8229 #endif
8230
8231 int
8232 main ()
8233 {
8234 int result = 0;
8235   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
8236      returns.  */
8237   {
8238     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
8239     if (cd_utf8_to_88591 != (iconv_t)(-1))
8240       {
8241         static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
8242         char buf[10];
8243         ICONV_CONST char *inptr = input;
8244         size_t inbytesleft = strlen (input);
8245         char *outptr = buf;
8246         size_t outbytesleft = sizeof (buf);
8247         size_t res = iconv (cd_utf8_to_88591,
8248                             &inptr, &inbytesleft,
8249                             &outptr, &outbytesleft);
8250         if (res == 0)
8251           result |= 1;
8252         iconv_close (cd_utf8_to_88591);
8253       }
8254   }
8255   /* Test against Solaris 10 bug: Failures are not distinguishable from
8256      successful returns.  */
8257   {
8258     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
8259     if (cd_ascii_to_88591 != (iconv_t)(-1))
8260       {
8261         static ICONV_CONST char input[] = "\263";
8262         char buf[10];
8263         ICONV_CONST char *inptr = input;
8264         size_t inbytesleft = strlen (input);
8265         char *outptr = buf;
8266         size_t outbytesleft = sizeof (buf);
8267         size_t res = iconv (cd_ascii_to_88591,
8268                             &inptr, &inbytesleft,
8269                             &outptr, &outbytesleft);
8270         if (res == 0)
8271           result |= 2;
8272         iconv_close (cd_ascii_to_88591);
8273       }
8274   }
8275   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
8276   {
8277     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
8278     if (cd_88591_to_utf8 != (iconv_t)(-1))
8279       {
8280         static ICONV_CONST char input[] = "\304";
8281         static char buf[2] = { (char)0xDE, (char)0xAD };
8282         ICONV_CONST char *inptr = input;
8283         size_t inbytesleft = 1;
8284         char *outptr = buf;
8285         size_t outbytesleft = 1;
8286         size_t res = iconv (cd_88591_to_utf8,
8287                             &inptr, &inbytesleft,
8288                             &outptr, &outbytesleft);
8289         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
8290           result |= 4;
8291         iconv_close (cd_88591_to_utf8);
8292       }
8293   }
8294 #if 0 /* This bug could be worked around by the caller.  */
8295   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
8296   {
8297     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
8298     if (cd_88591_to_utf8 != (iconv_t)(-1))
8299       {
8300         static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
8301         char buf[50];
8302         ICONV_CONST char *inptr = input;
8303         size_t inbytesleft = strlen (input);
8304         char *outptr = buf;
8305         size_t outbytesleft = sizeof (buf);
8306         size_t res = iconv (cd_88591_to_utf8,
8307                             &inptr, &inbytesleft,
8308                             &outptr, &outbytesleft);
8309         if ((int)res > 0)
8310           result |= 8;
8311         iconv_close (cd_88591_to_utf8);
8312       }
8313   }
8314 #endif
8315   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
8316      provided.  */
8317   if (/* Try standardized names.  */
8318       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
8319       /* Try IRIX, OSF/1 names.  */
8320       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
8321       /* Try AIX names.  */
8322       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
8323       /* Try HP-UX names.  */
8324       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
8325     result |= 16;
8326   return result;
8327
8328   ;
8329   return 0;
8330 }
8331 _ACEOF
8332 if ac_fn_c_try_run "$LINENO"; then :
8333   am_cv_func_iconv_works=yes
8334 fi
8335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8336   conftest.$ac_objext conftest.beam conftest.$ac_ext
8337 fi
8338
8339         test "$am_cv_func_iconv_works" = no || break
8340       done
8341       LIBS="$am_save_LIBS"
8342
8343 fi
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
8345 $as_echo "$am_cv_func_iconv_works" >&6; }
8346     case "$am_cv_func_iconv_works" in
8347       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
8348       *)   am_func_iconv=yes ;;
8349     esac
8350   else
8351     am_func_iconv=no am_cv_lib_iconv=no
8352   fi
8353   if test "$am_func_iconv" = yes; then
8354
8355 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8356
8357   fi
8358   if test "$am_cv_lib_iconv" = yes; then
8359     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8360 $as_echo_n "checking how to link with libiconv... " >&6; }
8361     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8362 $as_echo "$LIBICONV" >&6; }
8363   else
8364             CPPFLAGS="$am_save_CPPFLAGS"
8365     LIBICONV=
8366     LTLIBICONV=
8367   fi
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379     use_additional=yes
8380
8381   acl_save_prefix="$prefix"
8382   prefix="$acl_final_prefix"
8383   acl_save_exec_prefix="$exec_prefix"
8384   exec_prefix="$acl_final_exec_prefix"
8385
8386     eval additional_includedir=\"$includedir\"
8387     eval additional_libdir=\"$libdir\"
8388
8389   exec_prefix="$acl_save_exec_prefix"
8390   prefix="$acl_save_prefix"
8391
8392
8393 # Check whether --with-libintl-prefix was given.
8394 if test "${with_libintl_prefix+set}" = set; then :
8395   withval=$with_libintl_prefix;
8396     if test "X$withval" = "Xno"; then
8397       use_additional=no
8398     else
8399       if test "X$withval" = "X"; then
8400
8401   acl_save_prefix="$prefix"
8402   prefix="$acl_final_prefix"
8403   acl_save_exec_prefix="$exec_prefix"
8404   exec_prefix="$acl_final_exec_prefix"
8405
8406           eval additional_includedir=\"$includedir\"
8407           eval additional_libdir=\"$libdir\"
8408
8409   exec_prefix="$acl_save_exec_prefix"
8410   prefix="$acl_save_prefix"
8411
8412       else
8413         additional_includedir="$withval/include"
8414         additional_libdir="$withval/$acl_libdirstem"
8415         if test "$acl_libdirstem2" != "$acl_libdirstem" \
8416            && ! test -d "$withval/$acl_libdirstem"; then
8417           additional_libdir="$withval/$acl_libdirstem2"
8418         fi
8419       fi
8420     fi
8421
8422 fi
8423
8424       LIBINTL=
8425   LTLIBINTL=
8426   INCINTL=
8427   LIBINTL_PREFIX=
8428       HAVE_LIBINTL=
8429   rpathdirs=
8430   ltrpathdirs=
8431   names_already_handled=
8432   names_next_round='intl '
8433   while test -n "$names_next_round"; do
8434     names_this_round="$names_next_round"
8435     names_next_round=
8436     for name in $names_this_round; do
8437       already_handled=
8438       for n in $names_already_handled; do
8439         if test "$n" = "$name"; then
8440           already_handled=yes
8441           break
8442         fi
8443       done
8444       if test -z "$already_handled"; then
8445         names_already_handled="$names_already_handled $name"
8446                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8447         eval value=\"\$HAVE_LIB$uppername\"
8448         if test -n "$value"; then
8449           if test "$value" = yes; then
8450             eval value=\"\$LIB$uppername\"
8451             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8452             eval value=\"\$LTLIB$uppername\"
8453             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8454           else
8455                                     :
8456           fi
8457         else
8458                               found_dir=
8459           found_la=
8460           found_so=
8461           found_a=
8462           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
8463           if test -n "$acl_shlibext"; then
8464             shrext=".$acl_shlibext"             # typically: shrext=.so
8465           else
8466             shrext=
8467           fi
8468           if test $use_additional = yes; then
8469             dir="$additional_libdir"
8470                                     if test -n "$acl_shlibext"; then
8471               if test -f "$dir/$libname$shrext"; then
8472                 found_dir="$dir"
8473                 found_so="$dir/$libname$shrext"
8474               else
8475                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8476                   ver=`(cd "$dir" && \
8477                         for f in "$libname$shrext".*; do echo "$f"; done \
8478                         | sed -e "s,^$libname$shrext\\\\.,," \
8479                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8480                         | sed 1q ) 2>/dev/null`
8481                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8482                     found_dir="$dir"
8483                     found_so="$dir/$libname$shrext.$ver"
8484                   fi
8485                 else
8486                   eval library_names=\"$acl_library_names_spec\"
8487                   for f in $library_names; do
8488                     if test -f "$dir/$f"; then
8489                       found_dir="$dir"
8490                       found_so="$dir/$f"
8491                       break
8492                     fi
8493                   done
8494                 fi
8495               fi
8496             fi
8497                         if test "X$found_dir" = "X"; then
8498               if test -f "$dir/$libname.$acl_libext"; then
8499                 found_dir="$dir"
8500                 found_a="$dir/$libname.$acl_libext"
8501               fi
8502             fi
8503             if test "X$found_dir" != "X"; then
8504               if test -f "$dir/$libname.la"; then
8505                 found_la="$dir/$libname.la"
8506               fi
8507             fi
8508           fi
8509           if test "X$found_dir" = "X"; then
8510             for x in $LDFLAGS $LTLIBINTL; do
8511
8512   acl_save_prefix="$prefix"
8513   prefix="$acl_final_prefix"
8514   acl_save_exec_prefix="$exec_prefix"
8515   exec_prefix="$acl_final_exec_prefix"
8516   eval x=\"$x\"
8517   exec_prefix="$acl_save_exec_prefix"
8518   prefix="$acl_save_prefix"
8519
8520               case "$x" in
8521                 -L*)
8522                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8523                                     if test -n "$acl_shlibext"; then
8524                     if test -f "$dir/$libname$shrext"; then
8525                       found_dir="$dir"
8526                       found_so="$dir/$libname$shrext"
8527                     else
8528                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8529                         ver=`(cd "$dir" && \
8530                               for f in "$libname$shrext".*; do echo "$f"; done \
8531                               | sed -e "s,^$libname$shrext\\\\.,," \
8532                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8533                               | sed 1q ) 2>/dev/null`
8534                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8535                           found_dir="$dir"
8536                           found_so="$dir/$libname$shrext.$ver"
8537                         fi
8538                       else
8539                         eval library_names=\"$acl_library_names_spec\"
8540                         for f in $library_names; do
8541                           if test -f "$dir/$f"; then
8542                             found_dir="$dir"
8543                             found_so="$dir/$f"
8544                             break
8545                           fi
8546                         done
8547                       fi
8548                     fi
8549                   fi
8550                                     if test "X$found_dir" = "X"; then
8551                     if test -f "$dir/$libname.$acl_libext"; then
8552                       found_dir="$dir"
8553                       found_a="$dir/$libname.$acl_libext"
8554                     fi
8555                   fi
8556                   if test "X$found_dir" != "X"; then
8557                     if test -f "$dir/$libname.la"; then
8558                       found_la="$dir/$libname.la"
8559                     fi
8560                   fi
8561                   ;;
8562               esac
8563               if test "X$found_dir" != "X"; then
8564                 break
8565               fi
8566             done
8567           fi
8568           if test "X$found_dir" != "X"; then
8569                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8570             if test "X$found_so" != "X"; then
8571                                                         if test "$enable_rpath" = no \
8572                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8573                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8574                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8575               else
8576                                                                                 haveit=
8577                 for x in $ltrpathdirs; do
8578                   if test "X$x" = "X$found_dir"; then
8579                     haveit=yes
8580                     break
8581                   fi
8582                 done
8583                 if test -z "$haveit"; then
8584                   ltrpathdirs="$ltrpathdirs $found_dir"
8585                 fi
8586                                 if test "$acl_hardcode_direct" = yes; then
8587                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8588                 else
8589                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8590                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8591                                                             haveit=
8592                     for x in $rpathdirs; do
8593                       if test "X$x" = "X$found_dir"; then
8594                         haveit=yes
8595                         break
8596                       fi
8597                     done
8598                     if test -z "$haveit"; then
8599                       rpathdirs="$rpathdirs $found_dir"
8600                     fi
8601                   else
8602                                                                                 haveit=
8603                     for x in $LDFLAGS $LIBINTL; do
8604
8605   acl_save_prefix="$prefix"
8606   prefix="$acl_final_prefix"
8607   acl_save_exec_prefix="$exec_prefix"
8608   exec_prefix="$acl_final_exec_prefix"
8609   eval x=\"$x\"
8610   exec_prefix="$acl_save_exec_prefix"
8611   prefix="$acl_save_prefix"
8612
8613                       if test "X$x" = "X-L$found_dir"; then
8614                         haveit=yes
8615                         break
8616                       fi
8617                     done
8618                     if test -z "$haveit"; then
8619                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8620                     fi
8621                     if test "$acl_hardcode_minus_L" != no; then
8622                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8623                     else
8624                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8625                     fi
8626                   fi
8627                 fi
8628               fi
8629             else
8630               if test "X$found_a" != "X"; then
8631                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8632               else
8633                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8634               fi
8635             fi
8636                         additional_includedir=
8637             case "$found_dir" in
8638               */$acl_libdirstem | */$acl_libdirstem/)
8639                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8640                 if test "$name" = 'intl'; then
8641                   LIBINTL_PREFIX="$basedir"
8642                 fi
8643                 additional_includedir="$basedir/include"
8644                 ;;
8645               */$acl_libdirstem2 | */$acl_libdirstem2/)
8646                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8647                 if test "$name" = 'intl'; then
8648                   LIBINTL_PREFIX="$basedir"
8649                 fi
8650                 additional_includedir="$basedir/include"
8651                 ;;
8652             esac
8653             if test "X$additional_includedir" != "X"; then
8654                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8655                 haveit=
8656                 if test "X$additional_includedir" = "X/usr/local/include"; then
8657                   if test -n "$GCC"; then
8658                     case $host_os in
8659                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8660                     esac
8661                   fi
8662                 fi
8663                 if test -z "$haveit"; then
8664                   for x in $CPPFLAGS $INCINTL; do
8665
8666   acl_save_prefix="$prefix"
8667   prefix="$acl_final_prefix"
8668   acl_save_exec_prefix="$exec_prefix"
8669   exec_prefix="$acl_final_exec_prefix"
8670   eval x=\"$x\"
8671   exec_prefix="$acl_save_exec_prefix"
8672   prefix="$acl_save_prefix"
8673
8674                     if test "X$x" = "X-I$additional_includedir"; then
8675                       haveit=yes
8676                       break
8677                     fi
8678                   done
8679                   if test -z "$haveit"; then
8680                     if test -d "$additional_includedir"; then
8681                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8682                     fi
8683                   fi
8684                 fi
8685               fi
8686             fi
8687                         if test -n "$found_la"; then
8688                                                         save_libdir="$libdir"
8689               case "$found_la" in
8690                 */* | *\\*) . "$found_la" ;;
8691                 *) . "./$found_la" ;;
8692               esac
8693               libdir="$save_libdir"
8694                             for dep in $dependency_libs; do
8695                 case "$dep" in
8696                   -L*)
8697                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8698                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8699                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8700                       haveit=
8701                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8702                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8703                         if test -n "$GCC"; then
8704                           case $host_os in
8705                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8706                           esac
8707                         fi
8708                       fi
8709                       if test -z "$haveit"; then
8710                         haveit=
8711                         for x in $LDFLAGS $LIBINTL; do
8712
8713   acl_save_prefix="$prefix"
8714   prefix="$acl_final_prefix"
8715   acl_save_exec_prefix="$exec_prefix"
8716   exec_prefix="$acl_final_exec_prefix"
8717   eval x=\"$x\"
8718   exec_prefix="$acl_save_exec_prefix"
8719   prefix="$acl_save_prefix"
8720
8721                           if test "X$x" = "X-L$additional_libdir"; then
8722                             haveit=yes
8723                             break
8724                           fi
8725                         done
8726                         if test -z "$haveit"; then
8727                           if test -d "$additional_libdir"; then
8728                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8729                           fi
8730                         fi
8731                         haveit=
8732                         for x in $LDFLAGS $LTLIBINTL; do
8733
8734   acl_save_prefix="$prefix"
8735   prefix="$acl_final_prefix"
8736   acl_save_exec_prefix="$exec_prefix"
8737   exec_prefix="$acl_final_exec_prefix"
8738   eval x=\"$x\"
8739   exec_prefix="$acl_save_exec_prefix"
8740   prefix="$acl_save_prefix"
8741
8742                           if test "X$x" = "X-L$additional_libdir"; then
8743                             haveit=yes
8744                             break
8745                           fi
8746                         done
8747                         if test -z "$haveit"; then
8748                           if test -d "$additional_libdir"; then
8749                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8750                           fi
8751                         fi
8752                       fi
8753                     fi
8754                     ;;
8755                   -R*)
8756                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8757                     if test "$enable_rpath" != no; then
8758                                                                   haveit=
8759                       for x in $rpathdirs; do
8760                         if test "X$x" = "X$dir"; then
8761                           haveit=yes
8762                           break
8763                         fi
8764                       done
8765                       if test -z "$haveit"; then
8766                         rpathdirs="$rpathdirs $dir"
8767                       fi
8768                                                                   haveit=
8769                       for x in $ltrpathdirs; do
8770                         if test "X$x" = "X$dir"; then
8771                           haveit=yes
8772                           break
8773                         fi
8774                       done
8775                       if test -z "$haveit"; then
8776                         ltrpathdirs="$ltrpathdirs $dir"
8777                       fi
8778                     fi
8779                     ;;
8780                   -l*)
8781                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8782                     ;;
8783                   *.la)
8784                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8785                     ;;
8786                   *)
8787                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8788                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8789                     ;;
8790                 esac
8791               done
8792             fi
8793           else
8794                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8795             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8796           fi
8797         fi
8798       fi
8799     done
8800   done
8801   if test "X$rpathdirs" != "X"; then
8802     if test -n "$acl_hardcode_libdir_separator"; then
8803                         alldirs=
8804       for found_dir in $rpathdirs; do
8805         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8806       done
8807             acl_save_libdir="$libdir"
8808       libdir="$alldirs"
8809       eval flag=\"$acl_hardcode_libdir_flag_spec\"
8810       libdir="$acl_save_libdir"
8811       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8812     else
8813             for found_dir in $rpathdirs; do
8814         acl_save_libdir="$libdir"
8815         libdir="$found_dir"
8816         eval flag=\"$acl_hardcode_libdir_flag_spec\"
8817         libdir="$acl_save_libdir"
8818         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8819       done
8820     fi
8821   fi
8822   if test "X$ltrpathdirs" != "X"; then
8823             for found_dir in $ltrpathdirs; do
8824       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8825     done
8826   fi
8827
8828
8829
8830
8831
8832
8833           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8834 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
8835 if eval \${$gt_func_gnugettext_libintl+:} false; then :
8836   $as_echo_n "(cached) " >&6
8837 else
8838   gt_save_CPPFLAGS="$CPPFLAGS"
8839             CPPFLAGS="$CPPFLAGS $INCINTL"
8840             gt_save_LIBS="$LIBS"
8841             LIBS="$LIBS $LIBINTL"
8842                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8843 /* end confdefs.h.  */
8844
8845 #include <libintl.h>
8846 $gt_revision_test_code
8847 extern int _nl_msg_cat_cntr;
8848 extern
8849 #ifdef __cplusplus
8850 "C"
8851 #endif
8852 const char *_nl_expand_alias (const char *);
8853
8854 int
8855 main ()
8856 {
8857
8858 bindtextdomain ("", "");
8859 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
8860
8861   ;
8862   return 0;
8863 }
8864 _ACEOF
8865 if ac_fn_c_try_link "$LINENO"; then :
8866   eval "$gt_func_gnugettext_libintl=yes"
8867 else
8868   eval "$gt_func_gnugettext_libintl=no"
8869 fi
8870 rm -f core conftest.err conftest.$ac_objext \
8871     conftest$ac_exeext conftest.$ac_ext
8872                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
8873               LIBS="$LIBS $LIBICONV"
8874               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8875 /* end confdefs.h.  */
8876
8877 #include <libintl.h>
8878 $gt_revision_test_code
8879 extern int _nl_msg_cat_cntr;
8880 extern
8881 #ifdef __cplusplus
8882 "C"
8883 #endif
8884 const char *_nl_expand_alias (const char *);
8885
8886 int
8887 main ()
8888 {
8889
8890 bindtextdomain ("", "");
8891 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
8892
8893   ;
8894   return 0;
8895 }
8896 _ACEOF
8897 if ac_fn_c_try_link "$LINENO"; then :
8898   LIBINTL="$LIBINTL $LIBICONV"
8899                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8900                  eval "$gt_func_gnugettext_libintl=yes"
8901
8902 fi
8903 rm -f core conftest.err conftest.$ac_objext \
8904     conftest$ac_exeext conftest.$ac_ext
8905             fi
8906             CPPFLAGS="$gt_save_CPPFLAGS"
8907             LIBS="$gt_save_LIBS"
8908 fi
8909 eval ac_res=\$$gt_func_gnugettext_libintl
8910                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8911 $as_echo "$ac_res" >&6; }
8912         fi
8913
8914                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
8915            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
8916                 && test "$PACKAGE" != gettext-runtime \
8917                 && test "$PACKAGE" != gettext-tools; }; then
8918           gt_use_preinstalled_gnugettext=yes
8919         else
8920                     LIBINTL=
8921           LTLIBINTL=
8922           INCINTL=
8923         fi
8924
8925
8926
8927     if test -n "$INTL_MACOSX_LIBS"; then
8928       if test "$gt_use_preinstalled_gnugettext" = "yes" \
8929          || test "$nls_cv_use_gnu_gettext" = "yes"; then
8930                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
8931         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
8932       fi
8933     fi
8934
8935     if test "$gt_use_preinstalled_gnugettext" = "yes" \
8936        || test "$nls_cv_use_gnu_gettext" = "yes"; then
8937
8938 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8939
8940     else
8941       USE_NLS=no
8942     fi
8943   fi
8944
8945   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
8946 $as_echo_n "checking whether to use NLS... " >&6; }
8947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8948 $as_echo "$USE_NLS" >&6; }
8949   if test "$USE_NLS" = "yes"; then
8950     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
8951 $as_echo_n "checking where the gettext function comes from... " >&6; }
8952     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8953       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8954         gt_source="external libintl"
8955       else
8956         gt_source="libc"
8957       fi
8958     else
8959       gt_source="included intl directory"
8960     fi
8961     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
8962 $as_echo "$gt_source" >&6; }
8963   fi
8964
8965   if test "$USE_NLS" = "yes"; then
8966
8967     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8968       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8969         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
8970 $as_echo_n "checking how to link with libintl... " >&6; }
8971         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
8972 $as_echo "$LIBINTL" >&6; }
8973
8974   for element in $INCINTL; do
8975     haveit=
8976     for x in $CPPFLAGS; do
8977
8978   acl_save_prefix="$prefix"
8979   prefix="$acl_final_prefix"
8980   acl_save_exec_prefix="$exec_prefix"
8981   exec_prefix="$acl_final_exec_prefix"
8982   eval x=\"$x\"
8983   exec_prefix="$acl_save_exec_prefix"
8984   prefix="$acl_save_prefix"
8985
8986       if test "X$x" = "X$element"; then
8987         haveit=yes
8988         break
8989       fi
8990     done
8991     if test -z "$haveit"; then
8992       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8993     fi
8994   done
8995
8996       fi
8997
8998
8999 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9000
9001
9002 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9003
9004     fi
9005
9006         POSUB=po
9007   fi
9008
9009
9010
9011     INTLLIBS="$LIBINTL"
9012
9013
9014
9015
9016
9017
9018
9019 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "orig_eax" "ac_cv_member_struct_user_regs_struct_orig_eax" "#include <bits/types.h>
9020      #include <sys/user.h>
9021 "
9022 if test "x$ac_cv_member_struct_user_regs_struct_orig_eax" = xyes; then :
9023
9024 cat >>confdefs.h <<_ACEOF
9025 #define HAVE_STRUCT_USER_REGS_STRUCT_ORIG_EAX 1
9026 _ACEOF
9027
9028
9029 fi
9030 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "eax" "ac_cv_member_struct_user_regs_struct_eax" "#include <bits/types.h>
9031      #include <sys/user.h>
9032 "
9033 if test "x$ac_cv_member_struct_user_regs_struct_eax" = xyes; then :
9034
9035 cat >>confdefs.h <<_ACEOF
9036 #define HAVE_STRUCT_USER_REGS_STRUCT_EAX 1
9037 _ACEOF
9038
9039
9040 fi
9041 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "ebx" "ac_cv_member_struct_user_regs_struct_ebx" "#include <bits/types.h>
9042      #include <sys/user.h>
9043 "
9044 if test "x$ac_cv_member_struct_user_regs_struct_ebx" = xyes; then :
9045
9046 cat >>confdefs.h <<_ACEOF
9047 #define HAVE_STRUCT_USER_REGS_STRUCT_EBX 1
9048 _ACEOF
9049
9050
9051 fi
9052 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "ecx" "ac_cv_member_struct_user_regs_struct_ecx" "#include <bits/types.h>
9053      #include <sys/user.h>
9054 "
9055 if test "x$ac_cv_member_struct_user_regs_struct_ecx" = xyes; then :
9056
9057 cat >>confdefs.h <<_ACEOF
9058 #define HAVE_STRUCT_USER_REGS_STRUCT_ECX 1
9059 _ACEOF
9060
9061
9062 fi
9063 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "edx" "ac_cv_member_struct_user_regs_struct_edx" "#include <bits/types.h>
9064      #include <sys/user.h>
9065 "
9066 if test "x$ac_cv_member_struct_user_regs_struct_edx" = xyes; then :
9067
9068 cat >>confdefs.h <<_ACEOF
9069 #define HAVE_STRUCT_USER_REGS_STRUCT_EDX 1
9070 _ACEOF
9071
9072
9073 fi
9074 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "orig_rax" "ac_cv_member_struct_user_regs_struct_orig_rax" "#include <bits/types.h>
9075      #include <sys/user.h>
9076 "
9077 if test "x$ac_cv_member_struct_user_regs_struct_orig_rax" = xyes; then :
9078
9079 cat >>confdefs.h <<_ACEOF
9080 #define HAVE_STRUCT_USER_REGS_STRUCT_ORIG_RAX 1
9081 _ACEOF
9082
9083
9084 fi
9085 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "rax" "ac_cv_member_struct_user_regs_struct_rax" "#include <bits/types.h>
9086      #include <sys/user.h>
9087 "
9088 if test "x$ac_cv_member_struct_user_regs_struct_rax" = xyes; then :
9089
9090 cat >>confdefs.h <<_ACEOF
9091 #define HAVE_STRUCT_USER_REGS_STRUCT_RAX 1
9092 _ACEOF
9093
9094
9095 fi
9096 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "rdi" "ac_cv_member_struct_user_regs_struct_rdi" "#include <bits/types.h>
9097      #include <sys/user.h>
9098 "
9099 if test "x$ac_cv_member_struct_user_regs_struct_rdi" = xyes; then :
9100
9101 cat >>confdefs.h <<_ACEOF
9102 #define HAVE_STRUCT_USER_REGS_STRUCT_RDI 1
9103 _ACEOF
9104
9105
9106 fi
9107 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "rsi" "ac_cv_member_struct_user_regs_struct_rsi" "#include <bits/types.h>
9108      #include <sys/user.h>
9109 "
9110 if test "x$ac_cv_member_struct_user_regs_struct_rsi" = xyes; then :
9111
9112 cat >>confdefs.h <<_ACEOF
9113 #define HAVE_STRUCT_USER_REGS_STRUCT_RSI 1
9114 _ACEOF
9115
9116
9117 fi
9118 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "rdx" "ac_cv_member_struct_user_regs_struct_rdx" "#include <bits/types.h>
9119      #include <sys/user.h>
9120 "
9121 if test "x$ac_cv_member_struct_user_regs_struct_rdx" = xyes; then :
9122
9123 cat >>confdefs.h <<_ACEOF
9124 #define HAVE_STRUCT_USER_REGS_STRUCT_RDX 1
9125 _ACEOF
9126
9127
9128 fi
9129
9130 ac_fn_c_check_member "$LINENO" "struct pt_regs" "orig_gpr3" "ac_cv_member_struct_pt_regs_orig_gpr3" "#include <linux/ptrace.h>
9131 "
9132 if test "x$ac_cv_member_struct_pt_regs_orig_gpr3" = xyes; then :
9133
9134 cat >>confdefs.h <<_ACEOF
9135 #define HAVE_STRUCT_PT_REGS_ORIG_GPR3 1
9136 _ACEOF
9137
9138
9139 fi
9140 ac_fn_c_check_member "$LINENO" "struct pt_regs" "gpr" "ac_cv_member_struct_pt_regs_gpr" "#include <linux/ptrace.h>
9141 "
9142 if test "x$ac_cv_member_struct_pt_regs_gpr" = xyes; then :
9143
9144 cat >>confdefs.h <<_ACEOF
9145 #define HAVE_STRUCT_PT_REGS_GPR 1
9146 _ACEOF
9147
9148
9149 fi
9150
9151 ac_fn_c_check_member "$LINENO" "struct pt_regs" "uregs" "ac_cv_member_struct_pt_regs_uregs" "#include <asm/ptrace.h>
9152 "
9153 if test "x$ac_cv_member_struct_pt_regs_uregs" = xyes; then :
9154
9155 cat >>confdefs.h <<_ACEOF
9156 #define HAVE_STRUCT_PT_REGS_UREGS 1
9157 _ACEOF
9158
9159
9160 fi
9161
9162 ac_fn_c_check_member "$LINENO" "struct pt_regs" "regs" "ac_cv_member_struct_pt_regs_regs" "#include <asm/ptrace.h>
9163 "
9164 if test "x$ac_cv_member_struct_pt_regs_regs" = xyes; then :
9165
9166 cat >>confdefs.h <<_ACEOF
9167 #define HAVE_STRUCT_PT_REGS_REGS 1
9168 _ACEOF
9169
9170
9171 fi
9172 ac_fn_c_check_member "$LINENO" "struct pt_regs" "cp0_status" "ac_cv_member_struct_pt_regs_cp0_status" "#include <asm/ptrace.h>
9173 "
9174 if test "x$ac_cv_member_struct_pt_regs_cp0_status" = xyes; then :
9175
9176 cat >>confdefs.h <<_ACEOF
9177 #define HAVE_STRUCT_PT_REGS_CP0_STATUS 1
9178 _ACEOF
9179
9180
9181 fi
9182
9183 ac_fn_c_check_member "$LINENO" "struct pt_regs" "orig_d0" "ac_cv_member_struct_pt_regs_orig_d0" "#include <asm/ptrace.h>
9184 "
9185 if test "x$ac_cv_member_struct_pt_regs_orig_d0" = xyes; then :
9186
9187 cat >>confdefs.h <<_ACEOF
9188 #define HAVE_STRUCT_PT_REGS_ORIG_D0 1
9189 _ACEOF
9190
9191
9192 fi
9193 ac_fn_c_check_member "$LINENO" "struct pt_regs" "d0" "ac_cv_member_struct_pt_regs_d0" "#include <asm/ptrace.h>
9194 "
9195 if test "x$ac_cv_member_struct_pt_regs_d0" = xyes; then :
9196
9197 cat >>confdefs.h <<_ACEOF
9198 #define HAVE_STRUCT_PT_REGS_D0 1
9199 _ACEOF
9200
9201
9202 fi
9203
9204
9205 case ${host_os} in
9206   gnu*)
9207     want_fuser=no
9208     ;;
9209   *)
9210     want_fuser=yes
9211         ;;
9212 esac
9213  if test $want_fuser = yes; then
9214   WANT_FUSER_TRUE=
9215   WANT_FUSER_FALSE='#'
9216 else
9217   WANT_FUSER_TRUE='#'
9218   WANT_FUSER_FALSE=
9219 fi
9220
9221
9222  if test $ac_cv_member_struct_user_regs_struct_orig_eax = yes &&
9223    test $ac_cv_member_struct_user_regs_struct_eax = yes &&
9224    test $ac_cv_member_struct_user_regs_struct_ebx = yes &&
9225    test $ac_cv_member_struct_user_regs_struct_ecx = yes &&
9226    test $ac_cv_member_struct_user_regs_struct_edx = yes ; then
9227   WANT_PEEKFD_I386_TRUE=
9228   WANT_PEEKFD_I386_FALSE='#'
9229 else
9230   WANT_PEEKFD_I386_TRUE='#'
9231   WANT_PEEKFD_I386_FALSE=
9232 fi
9233
9234  if test $ac_cv_member_struct_user_regs_struct_orig_rax = yes &&
9235    test $ac_cv_member_struct_user_regs_struct_rax = yes &&
9236    test $ac_cv_member_struct_user_regs_struct_rdi = yes &&
9237    test $ac_cv_member_struct_user_regs_struct_rsi = yes &&
9238    test $ac_cv_member_struct_user_regs_struct_rdx = yes ; then
9239   WANT_PEEKFD_X86_64_TRUE=
9240   WANT_PEEKFD_X86_64_FALSE='#'
9241 else
9242   WANT_PEEKFD_X86_64_TRUE='#'
9243   WANT_PEEKFD_X86_64_FALSE=
9244 fi
9245
9246  if test $ac_cv_member_struct_pt_regs_orig_gpr3 = yes &&
9247    test $ac_cv_member_struct_pt_regs_gpr = yes ; then
9248   WANT_PEEKFD_PPC_TRUE=
9249   WANT_PEEKFD_PPC_FALSE='#'
9250 else
9251   WANT_PEEKFD_PPC_TRUE='#'
9252   WANT_PEEKFD_PPC_FALSE=
9253 fi
9254
9255  if test $ac_cv_member_struct_pt_regs_uregs = yes; then
9256   WANT_PEEKFD_ARM_TRUE=
9257   WANT_PEEKFD_ARM_FALSE='#'
9258 else
9259   WANT_PEEKFD_ARM_TRUE='#'
9260   WANT_PEEKFD_ARM_FALSE=
9261 fi
9262
9263  if test $build_cpu = mipsel &&
9264    test $ac_cv_member_struct_pt_regs_regs = yes &&
9265    test $ac_cv_member_struct_pt_regs_cp0_status = yes; then
9266   WANT_PEEKFD_MIPS_TRUE=
9267   WANT_PEEKFD_MIPS_FALSE='#'
9268 else
9269   WANT_PEEKFD_MIPS_TRUE='#'
9270   WANT_PEEKFD_MIPS_FALSE=
9271 fi
9272
9273  if test $ac_cv_member_struct_pt_regs_orig_d0 = yes &&
9274    test $ac_cv_member_struct_pt_regs_d0 = yes; then
9275   WANT_PEEKFD_M68K_TRUE=
9276   WANT_PEEKFD_M68K_FALSE='#'
9277 else
9278   WANT_PEEKFD_M68K_TRUE='#'
9279   WANT_PEEKFD_M68K_FALSE=
9280 fi
9281
9282
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
9284 $as_echo_n "checking whether closedir returns void... " >&6; }
9285 if ${ac_cv_func_closedir_void+:} false; then :
9286   $as_echo_n "(cached) " >&6
9287 else
9288   if test "$cross_compiling" = yes; then :
9289   ac_cv_func_closedir_void=yes
9290 else
9291   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9292 /* end confdefs.h.  */
9293 $ac_includes_default
9294 #include <$ac_header_dirent>
9295 #ifndef __cplusplus
9296 int closedir ();
9297 #endif
9298
9299 int
9300 main ()
9301 {
9302 return closedir (opendir (".")) != 0;
9303   ;
9304   return 0;
9305 }
9306 _ACEOF
9307 if ac_fn_c_try_run "$LINENO"; then :
9308   ac_cv_func_closedir_void=no
9309 else
9310   ac_cv_func_closedir_void=yes
9311 fi
9312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9313   conftest.$ac_objext conftest.beam conftest.$ac_ext
9314 fi
9315
9316 fi
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
9318 $as_echo "$ac_cv_func_closedir_void" >&6; }
9319 if test $ac_cv_func_closedir_void = yes; then
9320
9321 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
9322
9323 fi
9324
9325 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
9326 # -lseq on Dynix/PTX, -lgen on Unixware.
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
9328 $as_echo_n "checking for library containing getmntent... " >&6; }
9329 if ${ac_cv_search_getmntent+:} false; then :
9330   $as_echo_n "(cached) " >&6
9331 else
9332   ac_func_search_save_LIBS=$LIBS
9333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9334 /* end confdefs.h.  */
9335
9336 /* Override any GCC internal prototype to avoid an error.
9337    Use char because int might match the return type of a GCC
9338    builtin and then its argument prototype would still apply.  */
9339 #ifdef __cplusplus
9340 extern "C"
9341 #endif
9342 char getmntent ();
9343 int
9344 main ()
9345 {
9346 return getmntent ();
9347   ;
9348   return 0;
9349 }
9350 _ACEOF
9351 for ac_lib in '' sun seq gen; do
9352   if test -z "$ac_lib"; then
9353     ac_res="none required"
9354   else
9355     ac_res=-l$ac_lib
9356     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9357   fi
9358   if ac_fn_c_try_link "$LINENO"; then :
9359   ac_cv_search_getmntent=$ac_res
9360 fi
9361 rm -f core conftest.err conftest.$ac_objext \
9362     conftest$ac_exeext
9363   if ${ac_cv_search_getmntent+:} false; then :
9364   break
9365 fi
9366 done
9367 if ${ac_cv_search_getmntent+:} false; then :
9368
9369 else
9370   ac_cv_search_getmntent=no
9371 fi
9372 rm conftest.$ac_ext
9373 LIBS=$ac_func_search_save_LIBS
9374 fi
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
9376 $as_echo "$ac_cv_search_getmntent" >&6; }
9377 ac_res=$ac_cv_search_getmntent
9378 if test "$ac_res" != no; then :
9379   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9380   ac_cv_func_getmntent=yes
9381
9382 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
9383
9384 else
9385   ac_cv_func_getmntent=no
9386 fi
9387
9388
9389 if test $ac_cv_c_compiler_gnu = yes; then
9390     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
9391 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
9392 if ${ac_cv_prog_gcc_traditional+:} false; then :
9393   $as_echo_n "(cached) " >&6
9394 else
9395     ac_pattern="Autoconf.*'x'"
9396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9397 /* end confdefs.h.  */
9398 #include <sgtty.h>
9399 Autoconf TIOCGETP
9400 _ACEOF
9401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9402   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
9403   ac_cv_prog_gcc_traditional=yes
9404 else
9405   ac_cv_prog_gcc_traditional=no
9406 fi
9407 rm -f conftest*
9408
9409
9410   if test $ac_cv_prog_gcc_traditional = no; then
9411     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9412 /* end confdefs.h.  */
9413 #include <termio.h>
9414 Autoconf TCGETA
9415 _ACEOF
9416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9417   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
9418   ac_cv_prog_gcc_traditional=yes
9419 fi
9420 rm -f conftest*
9421
9422   fi
9423 fi
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
9425 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
9426   if test $ac_cv_prog_gcc_traditional = yes; then
9427     CC="$CC -traditional"
9428   fi
9429 fi
9430
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
9432 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
9433 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
9434   $as_echo_n "(cached) " >&6
9435 else
9436   rm -f conftest.sym conftest.file
9437 echo >conftest.file
9438 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
9439   if test "$cross_compiling" = yes; then :
9440   ac_cv_func_lstat_dereferences_slashed_symlink=no
9441 else
9442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9443 /* end confdefs.h.  */
9444 $ac_includes_default
9445 int
9446 main ()
9447 {
9448 struct stat sbuf;
9449      /* Linux will dereference the symlink and fail, as required by POSIX.
9450         That is better in the sense that it means we will not
9451         have to compile and use the lstat wrapper.  */
9452      return lstat ("conftest.sym/", &sbuf) == 0;
9453   ;
9454   return 0;
9455 }
9456 _ACEOF
9457 if ac_fn_c_try_run "$LINENO"; then :
9458   ac_cv_func_lstat_dereferences_slashed_symlink=yes
9459 else
9460   ac_cv_func_lstat_dereferences_slashed_symlink=no
9461 fi
9462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9463   conftest.$ac_objext conftest.beam conftest.$ac_ext
9464 fi
9465
9466 else
9467   # If the `ln -s' command failed, then we probably don't even
9468   # have an lstat function.
9469   ac_cv_func_lstat_dereferences_slashed_symlink=no
9470 fi
9471 rm -f conftest.sym conftest.file
9472
9473 fi
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
9475 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
9476
9477 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
9478
9479 cat >>confdefs.h <<_ACEOF
9480 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9481 _ACEOF
9482
9483
9484 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
9485   case " $LIBOBJS " in
9486   *" lstat.$ac_objext "* ) ;;
9487   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
9488  ;;
9489 esac
9490
9491 fi
9492
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
9494 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
9495 if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
9496   $as_echo_n "(cached) " >&6
9497 else
9498   if test "$cross_compiling" = yes; then :
9499   ac_cv_func_lstat_empty_string_bug=yes
9500 else
9501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9502 /* end confdefs.h.  */
9503 $ac_includes_default
9504 int
9505 main ()
9506 {
9507 struct stat sbuf;
9508   return lstat ("", &sbuf) == 0;
9509   ;
9510   return 0;
9511 }
9512 _ACEOF
9513 if ac_fn_c_try_run "$LINENO"; then :
9514   ac_cv_func_lstat_empty_string_bug=no
9515 else
9516   ac_cv_func_lstat_empty_string_bug=yes
9517 fi
9518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9519   conftest.$ac_objext conftest.beam conftest.$ac_ext
9520 fi
9521
9522 fi
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
9524 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
9525 if test $ac_cv_func_lstat_empty_string_bug = yes; then
9526   case " $LIBOBJS " in
9527   *" lstat.$ac_objext "* ) ;;
9528   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
9529  ;;
9530 esac
9531
9532
9533 cat >>confdefs.h <<_ACEOF
9534 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
9535 _ACEOF
9536
9537 fi
9538
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
9540 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
9541 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
9542   $as_echo_n "(cached) " >&6
9543 else
9544   rm -f conftest.sym conftest.file
9545 echo >conftest.file
9546 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
9547   if test "$cross_compiling" = yes; then :
9548   ac_cv_func_lstat_dereferences_slashed_symlink=no
9549 else
9550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9551 /* end confdefs.h.  */
9552 $ac_includes_default
9553 int
9554 main ()
9555 {
9556 struct stat sbuf;
9557      /* Linux will dereference the symlink and fail, as required by POSIX.
9558         That is better in the sense that it means we will not
9559         have to compile and use the lstat wrapper.  */
9560      return lstat ("conftest.sym/", &sbuf) == 0;
9561   ;
9562   return 0;
9563 }
9564 _ACEOF
9565 if ac_fn_c_try_run "$LINENO"; then :
9566   ac_cv_func_lstat_dereferences_slashed_symlink=yes
9567 else
9568   ac_cv_func_lstat_dereferences_slashed_symlink=no
9569 fi
9570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9571   conftest.$ac_objext conftest.beam conftest.$ac_ext
9572 fi
9573
9574 else
9575   # If the `ln -s' command failed, then we probably don't even
9576   # have an lstat function.
9577   ac_cv_func_lstat_dereferences_slashed_symlink=no
9578 fi
9579 rm -f conftest.sym conftest.file
9580
9581 fi
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
9583 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
9584
9585 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
9586
9587 cat >>confdefs.h <<_ACEOF
9588 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9589 _ACEOF
9590
9591
9592 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
9593   case " $LIBOBJS " in
9594   *" lstat.$ac_objext "* ) ;;
9595   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
9596  ;;
9597 esac
9598
9599 fi
9600
9601 for ac_header in stdlib.h
9602 do :
9603   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
9604 if test "x$ac_cv_header_stdlib_h" = xyes; then :
9605   cat >>confdefs.h <<_ACEOF
9606 #define HAVE_STDLIB_H 1
9607 _ACEOF
9608
9609 fi
9610
9611 done
9612
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
9614 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
9615 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
9616   $as_echo_n "(cached) " >&6
9617 else
9618   if test "$cross_compiling" = yes; then :
9619   ac_cv_func_malloc_0_nonnull=no
9620 else
9621   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9622 /* end confdefs.h.  */
9623 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
9624 # include <stdlib.h>
9625 #else
9626 char *malloc ();
9627 #endif
9628
9629 int
9630 main ()
9631 {
9632 return ! malloc (0);
9633   ;
9634   return 0;
9635 }
9636 _ACEOF
9637 if ac_fn_c_try_run "$LINENO"; then :
9638   ac_cv_func_malloc_0_nonnull=yes
9639 else
9640   ac_cv_func_malloc_0_nonnull=no
9641 fi
9642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9643   conftest.$ac_objext conftest.beam conftest.$ac_ext
9644 fi
9645
9646 fi
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
9648 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
9649 if test $ac_cv_func_malloc_0_nonnull = yes; then :
9650
9651 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
9652
9653 else
9654   $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
9655
9656    case " $LIBOBJS " in
9657   *" malloc.$ac_objext "* ) ;;
9658   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
9659  ;;
9660 esac
9661
9662
9663 $as_echo "#define malloc rpl_malloc" >>confdefs.h
9664
9665 fi
9666
9667
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
9669 $as_echo_n "checking for working memcmp... " >&6; }
9670 if ${ac_cv_func_memcmp_working+:} false; then :
9671   $as_echo_n "(cached) " >&6
9672 else
9673   if test "$cross_compiling" = yes; then :
9674   ac_cv_func_memcmp_working=no
9675 else
9676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9677 /* end confdefs.h.  */
9678 $ac_includes_default
9679 int
9680 main ()
9681 {
9682
9683   /* Some versions of memcmp are not 8-bit clean.  */
9684   char c0 = '\100', c1 = '\200', c2 = '\201';
9685   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9686     return 1;
9687
9688   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9689      or more and with at least one buffer not starting on a 4-byte boundary.
9690      William Lewis provided this test program.   */
9691   {
9692     char foo[21];
9693     char bar[21];
9694     int i;
9695     for (i = 0; i < 4; i++)
9696       {
9697         char *a = foo + i;
9698         char *b = bar + i;
9699         strcpy (a, "--------01111111");
9700         strcpy (b, "--------10000000");
9701         if (memcmp (a, b, 16) >= 0)
9702           return 1;
9703       }
9704     return 0;
9705   }
9706
9707   ;
9708   return 0;
9709 }
9710 _ACEOF
9711 if ac_fn_c_try_run "$LINENO"; then :
9712   ac_cv_func_memcmp_working=yes
9713 else
9714   ac_cv_func_memcmp_working=no
9715 fi
9716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9717   conftest.$ac_objext conftest.beam conftest.$ac_ext
9718 fi
9719
9720 fi
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
9722 $as_echo "$ac_cv_func_memcmp_working" >&6; }
9723 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
9724   *" memcmp.$ac_objext "* ) ;;
9725   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9726  ;;
9727 esac
9728
9729
9730 for ac_header in stdlib.h
9731 do :
9732   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
9733 if test "x$ac_cv_header_stdlib_h" = xyes; then :
9734   cat >>confdefs.h <<_ACEOF
9735 #define HAVE_STDLIB_H 1
9736 _ACEOF
9737
9738 fi
9739
9740 done
9741
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
9743 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
9744 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
9745   $as_echo_n "(cached) " >&6
9746 else
9747   if test "$cross_compiling" = yes; then :
9748   ac_cv_func_realloc_0_nonnull=no
9749 else
9750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9751 /* end confdefs.h.  */
9752 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
9753 # include <stdlib.h>
9754 #else
9755 char *realloc ();
9756 #endif
9757
9758 int
9759 main ()
9760 {
9761 return ! realloc (0, 0);
9762   ;
9763   return 0;
9764 }
9765 _ACEOF
9766 if ac_fn_c_try_run "$LINENO"; then :
9767   ac_cv_func_realloc_0_nonnull=yes
9768 else
9769   ac_cv_func_realloc_0_nonnull=no
9770 fi
9771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9772   conftest.$ac_objext conftest.beam conftest.$ac_ext
9773 fi
9774
9775 fi
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
9777 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
9778 if test $ac_cv_func_realloc_0_nonnull = yes; then :
9779
9780 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
9781
9782 else
9783   $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
9784
9785    case " $LIBOBJS " in
9786   *" realloc.$ac_objext "* ) ;;
9787   *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
9788  ;;
9789 esac
9790
9791
9792 $as_echo "#define realloc rpl_realloc" >>confdefs.h
9793
9794 fi
9795
9796
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
9798 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
9799 if ${ac_cv_func_stat_empty_string_bug+:} false; then :
9800   $as_echo_n "(cached) " >&6
9801 else
9802   if test "$cross_compiling" = yes; then :
9803   ac_cv_func_stat_empty_string_bug=yes
9804 else
9805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9806 /* end confdefs.h.  */
9807 $ac_includes_default
9808 int
9809 main ()
9810 {
9811 struct stat sbuf;
9812   return stat ("", &sbuf) == 0;
9813   ;
9814   return 0;
9815 }
9816 _ACEOF
9817 if ac_fn_c_try_run "$LINENO"; then :
9818   ac_cv_func_stat_empty_string_bug=no
9819 else
9820   ac_cv_func_stat_empty_string_bug=yes
9821 fi
9822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9823   conftest.$ac_objext conftest.beam conftest.$ac_ext
9824 fi
9825
9826 fi
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
9828 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
9829 if test $ac_cv_func_stat_empty_string_bug = yes; then
9830   case " $LIBOBJS " in
9831   *" stat.$ac_objext "* ) ;;
9832   *) LIBOBJS="$LIBOBJS stat.$ac_objext"
9833  ;;
9834 esac
9835
9836
9837 cat >>confdefs.h <<_ACEOF
9838 #define HAVE_STAT_EMPTY_STRING_BUG 1
9839 _ACEOF
9840
9841 fi
9842
9843 for ac_func in atexit getmntent memset nl_langinfo rawmemchr regcomp rpmatch setlocale socket strcasecmp strchr strdup strerror strpbrk strrchr strtoul
9844 do :
9845   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9846 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9847 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9848   cat >>confdefs.h <<_ACEOF
9849 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9850 _ACEOF
9851
9852 fi
9853 done
9854
9855
9856 # Check whether --enable-largefile was given.
9857 if test "${enable_largefile+set}" = set; then :
9858   enableval=$enable_largefile;
9859 fi
9860
9861 if test "$enable_largefile" != no; then
9862
9863   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9864 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9865 if ${ac_cv_sys_largefile_CC+:} false; then :
9866   $as_echo_n "(cached) " >&6
9867 else
9868   ac_cv_sys_largefile_CC=no
9869      if test "$GCC" != yes; then
9870        ac_save_CC=$CC
9871        while :; do
9872          # IRIX 6.2 and later do not support large files by default,
9873          # so use the C compiler's -n32 option if that helps.
9874          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9875 /* end confdefs.h.  */
9876 #include <sys/types.h>
9877  /* Check that off_t can represent 2**63 - 1 correctly.
9878     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9879     since some C++ compilers masquerading as C compilers
9880     incorrectly reject 9223372036854775807.  */
9881 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
9882   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9883                        && LARGE_OFF_T % 2147483647 == 1)
9884                       ? 1 : -1];
9885 int
9886 main ()
9887 {
9888
9889   ;
9890   return 0;
9891 }
9892 _ACEOF
9893          if ac_fn_c_try_compile "$LINENO"; then :
9894   break
9895 fi
9896 rm -f core conftest.err conftest.$ac_objext
9897          CC="$CC -n32"
9898          if ac_fn_c_try_compile "$LINENO"; then :
9899   ac_cv_sys_largefile_CC=' -n32'; break
9900 fi
9901 rm -f core conftest.err conftest.$ac_objext
9902          break
9903        done
9904        CC=$ac_save_CC
9905        rm -f conftest.$ac_ext
9906     fi
9907 fi
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
9909 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
9910   if test "$ac_cv_sys_largefile_CC" != no; then
9911     CC=$CC$ac_cv_sys_largefile_CC
9912   fi
9913
9914   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9915 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
9916 if ${ac_cv_sys_file_offset_bits+:} false; then :
9917   $as_echo_n "(cached) " >&6
9918 else
9919   while :; do
9920   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9921 /* end confdefs.h.  */
9922 #include <sys/types.h>
9923  /* Check that off_t can represent 2**63 - 1 correctly.
9924     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9925     since some C++ compilers masquerading as C compilers
9926     incorrectly reject 9223372036854775807.  */
9927 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
9928   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9929                        && LARGE_OFF_T % 2147483647 == 1)
9930                       ? 1 : -1];
9931 int
9932 main ()
9933 {
9934
9935   ;
9936   return 0;
9937 }
9938 _ACEOF
9939 if ac_fn_c_try_compile "$LINENO"; then :
9940   ac_cv_sys_file_offset_bits=no; break
9941 fi
9942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9944 /* end confdefs.h.  */
9945 #define _FILE_OFFSET_BITS 64
9946 #include <sys/types.h>
9947  /* Check that off_t can represent 2**63 - 1 correctly.
9948     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9949     since some C++ compilers masquerading as C compilers
9950     incorrectly reject 9223372036854775807.  */
9951 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
9952   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9953                        && LARGE_OFF_T % 2147483647 == 1)
9954                       ? 1 : -1];
9955 int
9956 main ()
9957 {
9958
9959   ;
9960   return 0;
9961 }
9962 _ACEOF
9963 if ac_fn_c_try_compile "$LINENO"; then :
9964   ac_cv_sys_file_offset_bits=64; break
9965 fi
9966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9967   ac_cv_sys_file_offset_bits=unknown
9968   break
9969 done
9970 fi
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
9972 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9973 case $ac_cv_sys_file_offset_bits in #(
9974   no | unknown) ;;
9975   *)
9976 cat >>confdefs.h <<_ACEOF
9977 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9978 _ACEOF
9979 ;;
9980 esac
9981 rm -rf conftest*
9982   if test $ac_cv_sys_file_offset_bits = unknown; then
9983     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
9984 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
9985 if ${ac_cv_sys_large_files+:} false; then :
9986   $as_echo_n "(cached) " >&6
9987 else
9988   while :; do
9989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9990 /* end confdefs.h.  */
9991 #include <sys/types.h>
9992  /* Check that off_t can represent 2**63 - 1 correctly.
9993     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9994     since some C++ compilers masquerading as C compilers
9995     incorrectly reject 9223372036854775807.  */
9996 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
9997   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9998                        && LARGE_OFF_T % 2147483647 == 1)
9999                       ? 1 : -1];
10000 int
10001 main ()
10002 {
10003
10004   ;
10005   return 0;
10006 }
10007 _ACEOF
10008 if ac_fn_c_try_compile "$LINENO"; then :
10009   ac_cv_sys_large_files=no; break
10010 fi
10011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10013 /* end confdefs.h.  */
10014 #define _LARGE_FILES 1
10015 #include <sys/types.h>
10016  /* Check that off_t can represent 2**63 - 1 correctly.
10017     We can't simply define LARGE_OFF_T to be 9223372036854775807,
10018     since some C++ compilers masquerading as C compilers
10019     incorrectly reject 9223372036854775807.  */
10020 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
10021   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10022                        && LARGE_OFF_T % 2147483647 == 1)
10023                       ? 1 : -1];
10024 int
10025 main ()
10026 {
10027
10028   ;
10029   return 0;
10030 }
10031 _ACEOF
10032 if ac_fn_c_try_compile "$LINENO"; then :
10033   ac_cv_sys_large_files=1; break
10034 fi
10035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10036   ac_cv_sys_large_files=unknown
10037   break
10038 done
10039 fi
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
10041 $as_echo "$ac_cv_sys_large_files" >&6; }
10042 case $ac_cv_sys_large_files in #(
10043   no | unknown) ;;
10044   *)
10045 cat >>confdefs.h <<_ACEOF
10046 #define _LARGE_FILES $ac_cv_sys_large_files
10047 _ACEOF
10048 ;;
10049 esac
10050 rm -rf conftest*
10051   fi
10052
10053
10054 fi
10055
10056
10057 if test x"$DEJAGNU" = x
10058 then
10059   DEJAGNU="\$(top_srcdir)/testsuite/global-conf.exp"
10060 fi
10061
10062
10063 ac_config_files="$ac_config_files Makefile doc/Makefile icons/Makefile po/Makefile.in testsuite/Makefile"
10064
10065 cat >confcache <<\_ACEOF
10066 # This file is a shell script that caches the results of configure
10067 # tests run on this system so they can be shared between configure
10068 # scripts and configure runs, see configure's option --config-cache.
10069 # It is not useful on other systems.  If it contains results you don't
10070 # want to keep, you may remove or edit it.
10071 #
10072 # config.status only pays attention to the cache file if you give it
10073 # the --recheck option to rerun configure.
10074 #
10075 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10076 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10077 # following values.
10078
10079 _ACEOF
10080
10081 # The following way of writing the cache mishandles newlines in values,
10082 # but we know of no workaround that is simple, portable, and efficient.
10083 # So, we kill variables containing newlines.
10084 # Ultrix sh set writes to stderr and can't be redirected directly,
10085 # and sets the high bit in the cache file unless we assign to the vars.
10086 (
10087   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10088     eval ac_val=\$$ac_var
10089     case $ac_val in #(
10090     *${as_nl}*)
10091       case $ac_var in #(
10092       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10093 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10094       esac
10095       case $ac_var in #(
10096       _ | IFS | as_nl) ;; #(
10097       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10098       *) { eval $ac_var=; unset $ac_var;} ;;
10099       esac ;;
10100     esac
10101   done
10102
10103   (set) 2>&1 |
10104     case $as_nl`(ac_space=' '; set) 2>&1` in #(
10105     *${as_nl}ac_space=\ *)
10106       # `set' does not quote correctly, so add quotes: double-quote
10107       # substitution turns \\\\ into \\, and sed turns \\ into \.
10108       sed -n \
10109         "s/'/'\\\\''/g;
10110           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10111       ;; #(
10112     *)
10113       # `set' quotes correctly as required by POSIX, so do not add quotes.
10114       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10115       ;;
10116     esac |
10117     sort
10118 ) |
10119   sed '
10120      /^ac_cv_env_/b end
10121      t clear
10122      :clear
10123      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10124      t end
10125      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10126      :end' >>confcache
10127 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10128   if test -w "$cache_file"; then
10129     if test "x$cache_file" != "x/dev/null"; then
10130       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10131 $as_echo "$as_me: updating cache $cache_file" >&6;}
10132       if test ! -f "$cache_file" || test -h "$cache_file"; then
10133         cat confcache >"$cache_file"
10134       else
10135         case $cache_file in #(
10136         */* | ?:*)
10137           mv -f confcache "$cache_file"$$ &&
10138           mv -f "$cache_file"$$ "$cache_file" ;; #(
10139         *)
10140           mv -f confcache "$cache_file" ;;
10141         esac
10142       fi
10143     fi
10144   else
10145     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10146 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10147   fi
10148 fi
10149 rm -f confcache
10150
10151 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10152 # Let make expand exec_prefix.
10153 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10154
10155 DEFS=-DHAVE_CONFIG_H
10156
10157 ac_libobjs=
10158 ac_ltlibobjs=
10159 U=
10160 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10161   # 1. Remove the extension, and $U if already installed.
10162   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10163   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10164   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10165   #    will be set to the directory where LIBOBJS objects are built.
10166   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10167   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10168 done
10169 LIBOBJS=$ac_libobjs
10170
10171 LTLIBOBJS=$ac_ltlibobjs
10172
10173
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10175 $as_echo_n "checking that generated files are newer than configure... " >&6; }
10176    if test -n "$am_sleep_pid"; then
10177      # Hide warnings about reused PIDs.
10178      wait $am_sleep_pid 2>/dev/null
10179    fi
10180    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10181 $as_echo "done" >&6; }
10182  if test -n "$EXEEXT"; then
10183   am__EXEEXT_TRUE=
10184   am__EXEEXT_FALSE='#'
10185 else
10186   am__EXEEXT_TRUE='#'
10187   am__EXEEXT_FALSE=
10188 fi
10189
10190 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10191   as_fn_error $? "conditional \"AMDEP\" was never defined.
10192 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10193 fi
10194 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10195   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10196 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10197 fi
10198 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10199   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
10200 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10201 fi
10202 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10203   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10204 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10205 fi
10206 if test -z "${WANT_TIMEOUT_STAT_TRUE}" && test -z "${WANT_TIMEOUT_STAT_FALSE}"; then
10207   as_fn_error $? "conditional \"WANT_TIMEOUT_STAT\" was never defined.
10208 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10209 fi
10210 if test -z "${WANT_FUSER_TRUE}" && test -z "${WANT_FUSER_FALSE}"; then
10211   as_fn_error $? "conditional \"WANT_FUSER\" was never defined.
10212 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10213 fi
10214 if test -z "${WANT_PEEKFD_I386_TRUE}" && test -z "${WANT_PEEKFD_I386_FALSE}"; then
10215   as_fn_error $? "conditional \"WANT_PEEKFD_I386\" was never defined.
10216 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10217 fi
10218 if test -z "${WANT_PEEKFD_X86_64_TRUE}" && test -z "${WANT_PEEKFD_X86_64_FALSE}"; then
10219   as_fn_error $? "conditional \"WANT_PEEKFD_X86_64\" was never defined.
10220 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10221 fi
10222 if test -z "${WANT_PEEKFD_PPC_TRUE}" && test -z "${WANT_PEEKFD_PPC_FALSE}"; then
10223   as_fn_error $? "conditional \"WANT_PEEKFD_PPC\" was never defined.
10224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10225 fi
10226 if test -z "${WANT_PEEKFD_ARM_TRUE}" && test -z "${WANT_PEEKFD_ARM_FALSE}"; then
10227   as_fn_error $? "conditional \"WANT_PEEKFD_ARM\" was never defined.
10228 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10229 fi
10230 if test -z "${WANT_PEEKFD_MIPS_TRUE}" && test -z "${WANT_PEEKFD_MIPS_FALSE}"; then
10231   as_fn_error $? "conditional \"WANT_PEEKFD_MIPS\" was never defined.
10232 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10233 fi
10234 if test -z "${WANT_PEEKFD_M68K_TRUE}" && test -z "${WANT_PEEKFD_M68K_FALSE}"; then
10235   as_fn_error $? "conditional \"WANT_PEEKFD_M68K\" was never defined.
10236 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10237 fi
10238
10239 : "${CONFIG_STATUS=./config.status}"
10240 ac_write_fail=0
10241 ac_clean_files_save=$ac_clean_files
10242 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10244 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10245 as_write_fail=0
10246 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10247 #! $SHELL
10248 # Generated by $as_me.
10249 # Run this file to recreate the current configuration.
10250 # Compiler output produced by configure, useful for debugging
10251 # configure, is in config.log if it exists.
10252
10253 debug=false
10254 ac_cs_recheck=false
10255 ac_cs_silent=false
10256
10257 SHELL=\${CONFIG_SHELL-$SHELL}
10258 export SHELL
10259 _ASEOF
10260 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10261 ## -------------------- ##
10262 ## M4sh Initialization. ##
10263 ## -------------------- ##
10264
10265 # Be more Bourne compatible
10266 DUALCASE=1; export DUALCASE # for MKS sh
10267 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10268   emulate sh
10269   NULLCMD=:
10270   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10271   # is contrary to our usage.  Disable this feature.
10272   alias -g '${1+"$@"}'='"$@"'
10273   setopt NO_GLOB_SUBST
10274 else
10275   case `(set -o) 2>/dev/null` in #(
10276   *posix*) :
10277     set -o posix ;; #(
10278   *) :
10279      ;;
10280 esac
10281 fi
10282
10283
10284 as_nl='
10285 '
10286 export as_nl
10287 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10288 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10289 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10290 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10291 # Prefer a ksh shell builtin over an external printf program on Solaris,
10292 # but without wasting forks for bash or zsh.
10293 if test -z "$BASH_VERSION$ZSH_VERSION" \
10294     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10295   as_echo='print -r --'
10296   as_echo_n='print -rn --'
10297 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10298   as_echo='printf %s\n'
10299   as_echo_n='printf %s'
10300 else
10301   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10302     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10303     as_echo_n='/usr/ucb/echo -n'
10304   else
10305     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10306     as_echo_n_body='eval
10307       arg=$1;
10308       case $arg in #(
10309       *"$as_nl"*)
10310         expr "X$arg" : "X\\(.*\\)$as_nl";
10311         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10312       esac;
10313       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10314     '
10315     export as_echo_n_body
10316     as_echo_n='sh -c $as_echo_n_body as_echo'
10317   fi
10318   export as_echo_body
10319   as_echo='sh -c $as_echo_body as_echo'
10320 fi
10321
10322 # The user is always right.
10323 if test "${PATH_SEPARATOR+set}" != set; then
10324   PATH_SEPARATOR=:
10325   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10326     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10327       PATH_SEPARATOR=';'
10328   }
10329 fi
10330
10331
10332 # IFS
10333 # We need space, tab and new line, in precisely that order.  Quoting is
10334 # there to prevent editors from complaining about space-tab.
10335 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10336 # splitting by setting IFS to empty value.)
10337 IFS=" ""        $as_nl"
10338
10339 # Find who we are.  Look in the path if we contain no directory separator.
10340 as_myself=
10341 case $0 in #((
10342   *[\\/]* ) as_myself=$0 ;;
10343   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10344 for as_dir in $PATH
10345 do
10346   IFS=$as_save_IFS
10347   test -z "$as_dir" && as_dir=.
10348     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10349   done
10350 IFS=$as_save_IFS
10351
10352      ;;
10353 esac
10354 # We did not find ourselves, most probably we were run as `sh COMMAND'
10355 # in which case we are not to be found in the path.
10356 if test "x$as_myself" = x; then
10357   as_myself=$0
10358 fi
10359 if test ! -f "$as_myself"; then
10360   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10361   exit 1
10362 fi
10363
10364 # Unset variables that we do not need and which cause bugs (e.g. in
10365 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
10366 # suppresses any "Segmentation fault" message there.  '((' could
10367 # trigger a bug in pdksh 5.2.14.
10368 for as_var in BASH_ENV ENV MAIL MAILPATH
10369 do eval test x\${$as_var+set} = xset \
10370   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10371 done
10372 PS1='$ '
10373 PS2='> '
10374 PS4='+ '
10375
10376 # NLS nuisances.
10377 LC_ALL=C
10378 export LC_ALL
10379 LANGUAGE=C
10380 export LANGUAGE
10381
10382 # CDPATH.
10383 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10384
10385
10386 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10387 # ----------------------------------------
10388 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10389 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10390 # script with STATUS, using 1 if that was 0.
10391 as_fn_error ()
10392 {
10393   as_status=$1; test $as_status -eq 0 && as_status=1
10394   if test "$4"; then
10395     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10396     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10397   fi
10398   $as_echo "$as_me: error: $2" >&2
10399   as_fn_exit $as_status
10400 } # as_fn_error
10401
10402
10403 # as_fn_set_status STATUS
10404 # -----------------------
10405 # Set $? to STATUS, without forking.
10406 as_fn_set_status ()
10407 {
10408   return $1
10409 } # as_fn_set_status
10410
10411 # as_fn_exit STATUS
10412 # -----------------
10413 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10414 as_fn_exit ()
10415 {
10416   set +e
10417   as_fn_set_status $1
10418   exit $1
10419 } # as_fn_exit
10420
10421 # as_fn_unset VAR
10422 # ---------------
10423 # Portably unset VAR.
10424 as_fn_unset ()
10425 {
10426   { eval $1=; unset $1;}
10427 }
10428 as_unset=as_fn_unset
10429 # as_fn_append VAR VALUE
10430 # ----------------------
10431 # Append the text in VALUE to the end of the definition contained in VAR. Take
10432 # advantage of any shell optimizations that allow amortized linear growth over
10433 # repeated appends, instead of the typical quadratic growth present in naive
10434 # implementations.
10435 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10436   eval 'as_fn_append ()
10437   {
10438     eval $1+=\$2
10439   }'
10440 else
10441   as_fn_append ()
10442   {
10443     eval $1=\$$1\$2
10444   }
10445 fi # as_fn_append
10446
10447 # as_fn_arith ARG...
10448 # ------------------
10449 # Perform arithmetic evaluation on the ARGs, and store the result in the
10450 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10451 # must be portable across $(()) and expr.
10452 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10453   eval 'as_fn_arith ()
10454   {
10455     as_val=$(( $* ))
10456   }'
10457 else
10458   as_fn_arith ()
10459   {
10460     as_val=`expr "$@" || test $? -eq 1`
10461   }
10462 fi # as_fn_arith
10463
10464
10465 if expr a : '\(a\)' >/dev/null 2>&1 &&
10466    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10467   as_expr=expr
10468 else
10469   as_expr=false
10470 fi
10471
10472 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10473   as_basename=basename
10474 else
10475   as_basename=false
10476 fi
10477
10478 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10479   as_dirname=dirname
10480 else
10481   as_dirname=false
10482 fi
10483
10484 as_me=`$as_basename -- "$0" ||
10485 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10486          X"$0" : 'X\(//\)$' \| \
10487          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10488 $as_echo X/"$0" |
10489     sed '/^.*\/\([^/][^/]*\)\/*$/{
10490             s//\1/
10491             q
10492           }
10493           /^X\/\(\/\/\)$/{
10494             s//\1/
10495             q
10496           }
10497           /^X\/\(\/\).*/{
10498             s//\1/
10499             q
10500           }
10501           s/.*/./; q'`
10502
10503 # Avoid depending upon Character Ranges.
10504 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10505 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10506 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10507 as_cr_digits='0123456789'
10508 as_cr_alnum=$as_cr_Letters$as_cr_digits
10509
10510 ECHO_C= ECHO_N= ECHO_T=
10511 case `echo -n x` in #(((((
10512 -n*)
10513   case `echo 'xy\c'` in
10514   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
10515   xy)  ECHO_C='\c';;
10516   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
10517        ECHO_T=' ';;
10518   esac;;
10519 *)
10520   ECHO_N='-n';;
10521 esac
10522
10523 rm -f conf$$ conf$$.exe conf$$.file
10524 if test -d conf$$.dir; then
10525   rm -f conf$$.dir/conf$$.file
10526 else
10527   rm -f conf$$.dir
10528   mkdir conf$$.dir 2>/dev/null
10529 fi
10530 if (echo >conf$$.file) 2>/dev/null; then
10531   if ln -s conf$$.file conf$$ 2>/dev/null; then
10532     as_ln_s='ln -s'
10533     # ... but there are two gotchas:
10534     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10535     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10536     # In both cases, we have to default to `cp -pR'.
10537     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10538       as_ln_s='cp -pR'
10539   elif ln conf$$.file conf$$ 2>/dev/null; then
10540     as_ln_s=ln
10541   else
10542     as_ln_s='cp -pR'
10543   fi
10544 else
10545   as_ln_s='cp -pR'
10546 fi
10547 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10548 rmdir conf$$.dir 2>/dev/null
10549
10550
10551 # as_fn_mkdir_p
10552 # -------------
10553 # Create "$as_dir" as a directory, including parents if necessary.
10554 as_fn_mkdir_p ()
10555 {
10556
10557   case $as_dir in #(
10558   -*) as_dir=./$as_dir;;
10559   esac
10560   test -d "$as_dir" || eval $as_mkdir_p || {
10561     as_dirs=
10562     while :; do
10563       case $as_dir in #(
10564       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10565       *) as_qdir=$as_dir;;
10566       esac
10567       as_dirs="'$as_qdir' $as_dirs"
10568       as_dir=`$as_dirname -- "$as_dir" ||
10569 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10570          X"$as_dir" : 'X\(//\)[^/]' \| \
10571          X"$as_dir" : 'X\(//\)$' \| \
10572          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10573 $as_echo X"$as_dir" |
10574     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10575             s//\1/
10576             q
10577           }
10578           /^X\(\/\/\)[^/].*/{
10579             s//\1/
10580             q
10581           }
10582           /^X\(\/\/\)$/{
10583             s//\1/
10584             q
10585           }
10586           /^X\(\/\).*/{
10587             s//\1/
10588             q
10589           }
10590           s/.*/./; q'`
10591       test -d "$as_dir" && break
10592     done
10593     test -z "$as_dirs" || eval "mkdir $as_dirs"
10594   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10595
10596
10597 } # as_fn_mkdir_p
10598 if mkdir -p . 2>/dev/null; then
10599   as_mkdir_p='mkdir -p "$as_dir"'
10600 else
10601   test -d ./-p && rmdir ./-p
10602   as_mkdir_p=false
10603 fi
10604
10605
10606 # as_fn_executable_p FILE
10607 # -----------------------
10608 # Test if FILE is an executable regular file.
10609 as_fn_executable_p ()
10610 {
10611   test -f "$1" && test -x "$1"
10612 } # as_fn_executable_p
10613 as_test_x='test -x'
10614 as_executable_p=as_fn_executable_p
10615
10616 # Sed expression to map a string onto a valid CPP name.
10617 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10618
10619 # Sed expression to map a string onto a valid variable name.
10620 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10621
10622
10623 exec 6>&1
10624 ## ----------------------------------- ##
10625 ## Main body of $CONFIG_STATUS script. ##
10626 ## ----------------------------------- ##
10627 _ASEOF
10628 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10629
10630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10631 # Save the log message, to keep $0 and so on meaningful, and to
10632 # report actual input values of CONFIG_FILES etc. instead of their
10633 # values after options handling.
10634 ac_log="
10635 This file was extended by psmisc $as_me 23.0, which was
10636 generated by GNU Autoconf 2.69.  Invocation command line was
10637
10638   CONFIG_FILES    = $CONFIG_FILES
10639   CONFIG_HEADERS  = $CONFIG_HEADERS
10640   CONFIG_LINKS    = $CONFIG_LINKS
10641   CONFIG_COMMANDS = $CONFIG_COMMANDS
10642   $ $0 $@
10643
10644 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10645 "
10646
10647 _ACEOF
10648
10649 case $ac_config_files in *"
10650 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10651 esac
10652
10653 case $ac_config_headers in *"
10654 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10655 esac
10656
10657
10658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10659 # Files that config.status was made for.
10660 config_files="$ac_config_files"
10661 config_headers="$ac_config_headers"
10662 config_commands="$ac_config_commands"
10663
10664 _ACEOF
10665
10666 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10667 ac_cs_usage="\
10668 \`$as_me' instantiates files and other configuration actions
10669 from templates according to the current configuration.  Unless the files
10670 and actions are specified as TAGs, all are instantiated by default.
10671
10672 Usage: $0 [OPTION]... [TAG]...
10673
10674   -h, --help       print this help, then exit
10675   -V, --version    print version number and configuration settings, then exit
10676       --config     print configuration, then exit
10677   -q, --quiet, --silent
10678                    do not print progress messages
10679   -d, --debug      don't remove temporary files
10680       --recheck    update $as_me by reconfiguring in the same conditions
10681       --file=FILE[:TEMPLATE]
10682                    instantiate the configuration file FILE
10683       --header=FILE[:TEMPLATE]
10684                    instantiate the configuration header FILE
10685
10686 Configuration files:
10687 $config_files
10688
10689 Configuration headers:
10690 $config_headers
10691
10692 Configuration commands:
10693 $config_commands
10694
10695 Report bugs to the package provider."
10696
10697 _ACEOF
10698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10699 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10700 ac_cs_version="\\
10701 psmisc config.status 23.0
10702 configured by $0, generated by GNU Autoconf 2.69,
10703   with options \\"\$ac_cs_config\\"
10704
10705 Copyright (C) 2012 Free Software Foundation, Inc.
10706 This config.status script is free software; the Free Software Foundation
10707 gives unlimited permission to copy, distribute and modify it."
10708
10709 ac_pwd='$ac_pwd'
10710 srcdir='$srcdir'
10711 INSTALL='$INSTALL'
10712 MKDIR_P='$MKDIR_P'
10713 AWK='$AWK'
10714 test -n "\$AWK" || AWK=awk
10715 _ACEOF
10716
10717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10718 # The default lists apply if the user does not specify any file.
10719 ac_need_defaults=:
10720 while test $# != 0
10721 do
10722   case $1 in
10723   --*=?*)
10724     ac_option=`expr "X$1" : 'X\([^=]*\)='`
10725     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10726     ac_shift=:
10727     ;;
10728   --*=)
10729     ac_option=`expr "X$1" : 'X\([^=]*\)='`
10730     ac_optarg=
10731     ac_shift=:
10732     ;;
10733   *)
10734     ac_option=$1
10735     ac_optarg=$2
10736     ac_shift=shift
10737     ;;
10738   esac
10739
10740   case $ac_option in
10741   # Handling of the options.
10742   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10743     ac_cs_recheck=: ;;
10744   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10745     $as_echo "$ac_cs_version"; exit ;;
10746   --config | --confi | --conf | --con | --co | --c )
10747     $as_echo "$ac_cs_config"; exit ;;
10748   --debug | --debu | --deb | --de | --d | -d )
10749     debug=: ;;
10750   --file | --fil | --fi | --f )
10751     $ac_shift
10752     case $ac_optarg in
10753     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10754     '') as_fn_error $? "missing file argument" ;;
10755     esac
10756     as_fn_append CONFIG_FILES " '$ac_optarg'"
10757     ac_need_defaults=false;;
10758   --header | --heade | --head | --hea )
10759     $ac_shift
10760     case $ac_optarg in
10761     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10762     esac
10763     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10764     ac_need_defaults=false;;
10765   --he | --h)
10766     # Conflict between --help and --header
10767     as_fn_error $? "ambiguous option: \`$1'
10768 Try \`$0 --help' for more information.";;
10769   --help | --hel | -h )
10770     $as_echo "$ac_cs_usage"; exit ;;
10771   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10772   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10773     ac_cs_silent=: ;;
10774
10775   # This is an error.
10776   -*) as_fn_error $? "unrecognized option: \`$1'
10777 Try \`$0 --help' for more information." ;;
10778
10779   *) as_fn_append ac_config_targets " $1"
10780      ac_need_defaults=false ;;
10781
10782   esac
10783   shift
10784 done
10785
10786 ac_configure_extra_args=
10787
10788 if $ac_cs_silent; then
10789   exec 6>/dev/null
10790   ac_configure_extra_args="$ac_configure_extra_args --silent"
10791 fi
10792
10793 _ACEOF
10794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10795 if \$ac_cs_recheck; then
10796   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10797   shift
10798   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10799   CONFIG_SHELL='$SHELL'
10800   export CONFIG_SHELL
10801   exec "\$@"
10802 fi
10803
10804 _ACEOF
10805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10806 exec 5>>config.log
10807 {
10808   echo
10809   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10810 ## Running $as_me. ##
10811 _ASBOX
10812   $as_echo "$ac_log"
10813 } >&5
10814
10815 _ACEOF
10816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10817 #
10818 # INIT-COMMANDS
10819 #
10820 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10821 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
10822     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
10823     # from automake < 1.5.
10824     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
10825     # Capture the value of LINGUAS because we need it to compute CATALOGS.
10826     LINGUAS="${LINGUAS-%UNSET%}"
10827
10828
10829 _ACEOF
10830
10831 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10832
10833 # Handling of arguments.
10834 for ac_config_target in $ac_config_targets
10835 do
10836   case $ac_config_target in
10837     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10838     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10839     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
10840     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10841     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10842     "icons/Makefile") CONFIG_FILES="$CONFIG_FILES icons/Makefile" ;;
10843     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
10844     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
10845
10846   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10847   esac
10848 done
10849
10850
10851 # If the user did not use the arguments to specify the items to instantiate,
10852 # then the envvar interface is used.  Set only those that are not.
10853 # We use the long form for the default assignment because of an extremely
10854 # bizarre bug on SunOS 4.1.3.
10855 if $ac_need_defaults; then
10856   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10857   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10858   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10859 fi
10860
10861 # Have a temporary directory for convenience.  Make it in the build tree
10862 # simply because there is no reason against having it here, and in addition,
10863 # creating and moving files from /tmp can sometimes cause problems.
10864 # Hook for its removal unless debugging.
10865 # Note that there is a small window in which the directory will not be cleaned:
10866 # after its creation but before its name has been assigned to `$tmp'.
10867 $debug ||
10868 {
10869   tmp= ac_tmp=
10870   trap 'exit_status=$?
10871   : "${ac_tmp:=$tmp}"
10872   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10873 ' 0
10874   trap 'as_fn_exit 1' 1 2 13 15
10875 }
10876 # Create a (secure) tmp directory for tmp files.
10877
10878 {
10879   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10880   test -d "$tmp"
10881 }  ||
10882 {
10883   tmp=./conf$$-$RANDOM
10884   (umask 077 && mkdir "$tmp")
10885 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10886 ac_tmp=$tmp
10887
10888 # Set up the scripts for CONFIG_FILES section.
10889 # No need to generate them if there are no CONFIG_FILES.
10890 # This happens for instance with `./config.status config.h'.
10891 if test -n "$CONFIG_FILES"; then
10892
10893
10894 ac_cr=`echo X | tr X '\015'`
10895 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10896 # But we know of no other shell where ac_cr would be empty at this
10897 # point, so we can use a bashism as a fallback.
10898 if test "x$ac_cr" = x; then
10899   eval ac_cr=\$\'\\r\'
10900 fi
10901 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10902 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10903   ac_cs_awk_cr='\\r'
10904 else
10905   ac_cs_awk_cr=$ac_cr
10906 fi
10907
10908 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10909 _ACEOF
10910
10911
10912 {
10913   echo "cat >conf$$subs.awk <<_ACEOF" &&
10914   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10915   echo "_ACEOF"
10916 } >conf$$subs.sh ||
10917   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10918 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10919 ac_delim='%!_!# '
10920 for ac_last_try in false false false false false :; do
10921   . ./conf$$subs.sh ||
10922     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10923
10924   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10925   if test $ac_delim_n = $ac_delim_num; then
10926     break
10927   elif $ac_last_try; then
10928     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10929   else
10930     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10931   fi
10932 done
10933 rm -f conf$$subs.sh
10934
10935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10936 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10937 _ACEOF
10938 sed -n '
10939 h
10940 s/^/S["/; s/!.*/"]=/
10941 p
10942 g
10943 s/^[^!]*!//
10944 :repl
10945 t repl
10946 s/'"$ac_delim"'$//
10947 t delim
10948 :nl
10949 h
10950 s/\(.\{148\}\)..*/\1/
10951 t more1
10952 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10953 p
10954 n
10955 b repl
10956 :more1
10957 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10958 p
10959 g
10960 s/.\{148\}//
10961 t nl
10962 :delim
10963 h
10964 s/\(.\{148\}\)..*/\1/
10965 t more2
10966 s/["\\]/\\&/g; s/^/"/; s/$/"/
10967 p
10968 b
10969 :more2
10970 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10971 p
10972 g
10973 s/.\{148\}//
10974 t delim
10975 ' <conf$$subs.awk | sed '
10976 /^[^""]/{
10977   N
10978   s/\n//
10979 }
10980 ' >>$CONFIG_STATUS || ac_write_fail=1
10981 rm -f conf$$subs.awk
10982 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10983 _ACAWK
10984 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10985   for (key in S) S_is_set[key] = 1
10986   FS = "\a"
10987
10988 }
10989 {
10990   line = $ 0
10991   nfields = split(line, field, "@")
10992   substed = 0
10993   len = length(field[1])
10994   for (i = 2; i < nfields; i++) {
10995     key = field[i]
10996     keylen = length(key)
10997     if (S_is_set[key]) {
10998       value = S[key]
10999       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11000       len += length(value) + length(field[++i])
11001       substed = 1
11002     } else
11003       len += 1 + keylen
11004   }
11005
11006   print line
11007 }
11008
11009 _ACAWK
11010 _ACEOF
11011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11012 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11013   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11014 else
11015   cat
11016 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11017   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11018 _ACEOF
11019
11020 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11021 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11022 # trailing colons and then remove the whole line if VPATH becomes empty
11023 # (actually we leave an empty line to preserve line numbers).
11024 if test "x$srcdir" = x.; then
11025   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
11026 h
11027 s///
11028 s/^/:/
11029 s/[      ]*$/:/
11030 s/:\$(srcdir):/:/g
11031 s/:\${srcdir}:/:/g
11032 s/:@srcdir@:/:/g
11033 s/^:*//
11034 s/:*$//
11035 x
11036 s/\(=[   ]*\).*/\1/
11037 G
11038 s/\n//
11039 s/^[^=]*=[       ]*$//
11040 }'
11041 fi
11042
11043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11044 fi # test -n "$CONFIG_FILES"
11045
11046 # Set up the scripts for CONFIG_HEADERS section.
11047 # No need to generate them if there are no CONFIG_HEADERS.
11048 # This happens for instance with `./config.status Makefile'.
11049 if test -n "$CONFIG_HEADERS"; then
11050 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11051 BEGIN {
11052 _ACEOF
11053
11054 # Transform confdefs.h into an awk script `defines.awk', embedded as
11055 # here-document in config.status, that substitutes the proper values into
11056 # config.h.in to produce config.h.
11057
11058 # Create a delimiter string that does not exist in confdefs.h, to ease
11059 # handling of long lines.
11060 ac_delim='%!_!# '
11061 for ac_last_try in false false :; do
11062   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11063   if test -z "$ac_tt"; then
11064     break
11065   elif $ac_last_try; then
11066     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11067   else
11068     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11069   fi
11070 done
11071
11072 # For the awk script, D is an array of macro values keyed by name,
11073 # likewise P contains macro parameters if any.  Preserve backslash
11074 # newline sequences.
11075
11076 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11077 sed -n '
11078 s/.\{148\}/&'"$ac_delim"'/g
11079 t rset
11080 :rset
11081 s/^[     ]*#[    ]*define[       ][      ]*/ /
11082 t def
11083 d
11084 :def
11085 s/\\$//
11086 t bsnl
11087 s/["\\]/\\&/g
11088 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
11089 D["\1"]=" \3"/p
11090 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
11091 d
11092 :bsnl
11093 s/["\\]/\\&/g
11094 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
11095 D["\1"]=" \3\\\\\\n"\\/p
11096 t cont
11097 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11098 t cont
11099 d
11100 :cont
11101 n
11102 s/.\{148\}/&'"$ac_delim"'/g
11103 t clear
11104 :clear
11105 s/\\$//
11106 t bsnlc
11107 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11108 d
11109 :bsnlc
11110 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11111 b cont
11112 ' <confdefs.h | sed '
11113 s/'"$ac_delim"'/"\\\
11114 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11115
11116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11117   for (key in D) D_is_set[key] = 1
11118   FS = "\a"
11119 }
11120 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11121   line = \$ 0
11122   split(line, arg, " ")
11123   if (arg[1] == "#") {
11124     defundef = arg[2]
11125     mac1 = arg[3]
11126   } else {
11127     defundef = substr(arg[1], 2)
11128     mac1 = arg[2]
11129   }
11130   split(mac1, mac2, "(") #)
11131   macro = mac2[1]
11132   prefix = substr(line, 1, index(line, defundef) - 1)
11133   if (D_is_set[macro]) {
11134     # Preserve the white space surrounding the "#".
11135     print prefix "define", macro P[macro] D[macro]
11136     next
11137   } else {
11138     # Replace #undef with comments.  This is necessary, for example,
11139     # in the case of _POSIX_SOURCE, which is predefined and required
11140     # on some systems where configure will not decide to define it.
11141     if (defundef == "undef") {
11142       print "/*", prefix defundef, macro, "*/"
11143       next
11144     }
11145   }
11146 }
11147 { print }
11148 _ACAWK
11149 _ACEOF
11150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11151   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11152 fi # test -n "$CONFIG_HEADERS"
11153
11154
11155 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
11156 shift
11157 for ac_tag
11158 do
11159   case $ac_tag in
11160   :[FHLC]) ac_mode=$ac_tag; continue;;
11161   esac
11162   case $ac_mode$ac_tag in
11163   :[FHL]*:*);;
11164   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11165   :[FH]-) ac_tag=-:-;;
11166   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11167   esac
11168   ac_save_IFS=$IFS
11169   IFS=:
11170   set x $ac_tag
11171   IFS=$ac_save_IFS
11172   shift
11173   ac_file=$1
11174   shift
11175
11176   case $ac_mode in
11177   :L) ac_source=$1;;
11178   :[FH])
11179     ac_file_inputs=
11180     for ac_f
11181     do
11182       case $ac_f in
11183       -) ac_f="$ac_tmp/stdin";;
11184       *) # Look for the file first in the build tree, then in the source tree
11185          # (if the path is not absolute).  The absolute path cannot be DOS-style,
11186          # because $ac_f cannot contain `:'.
11187          test -f "$ac_f" ||
11188            case $ac_f in
11189            [\\/$]*) false;;
11190            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11191            esac ||
11192            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11193       esac
11194       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11195       as_fn_append ac_file_inputs " '$ac_f'"
11196     done
11197
11198     # Let's still pretend it is `configure' which instantiates (i.e., don't
11199     # use $as_me), people would be surprised to read:
11200     #    /* config.h.  Generated by config.status.  */
11201     configure_input='Generated from '`
11202           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11203         `' by configure.'
11204     if test x"$ac_file" != x-; then
11205       configure_input="$ac_file.  $configure_input"
11206       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11207 $as_echo "$as_me: creating $ac_file" >&6;}
11208     fi
11209     # Neutralize special characters interpreted by sed in replacement strings.
11210     case $configure_input in #(
11211     *\&* | *\|* | *\\* )
11212        ac_sed_conf_input=`$as_echo "$configure_input" |
11213        sed 's/[\\\\&|]/\\\\&/g'`;; #(
11214     *) ac_sed_conf_input=$configure_input;;
11215     esac
11216
11217     case $ac_tag in
11218     *:-:* | *:-) cat >"$ac_tmp/stdin" \
11219       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11220     esac
11221     ;;
11222   esac
11223
11224   ac_dir=`$as_dirname -- "$ac_file" ||
11225 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11226          X"$ac_file" : 'X\(//\)[^/]' \| \
11227          X"$ac_file" : 'X\(//\)$' \| \
11228          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11229 $as_echo X"$ac_file" |
11230     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11231             s//\1/
11232             q
11233           }
11234           /^X\(\/\/\)[^/].*/{
11235             s//\1/
11236             q
11237           }
11238           /^X\(\/\/\)$/{
11239             s//\1/
11240             q
11241           }
11242           /^X\(\/\).*/{
11243             s//\1/
11244             q
11245           }
11246           s/.*/./; q'`
11247   as_dir="$ac_dir"; as_fn_mkdir_p
11248   ac_builddir=.
11249
11250 case "$ac_dir" in
11251 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11252 *)
11253   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11254   # A ".." for each directory in $ac_dir_suffix.
11255   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11256   case $ac_top_builddir_sub in
11257   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11258   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11259   esac ;;
11260 esac
11261 ac_abs_top_builddir=$ac_pwd
11262 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11263 # for backward compatibility:
11264 ac_top_builddir=$ac_top_build_prefix
11265
11266 case $srcdir in
11267   .)  # We are building in place.
11268     ac_srcdir=.
11269     ac_top_srcdir=$ac_top_builddir_sub
11270     ac_abs_top_srcdir=$ac_pwd ;;
11271   [\\/]* | ?:[\\/]* )  # Absolute name.
11272     ac_srcdir=$srcdir$ac_dir_suffix;
11273     ac_top_srcdir=$srcdir
11274     ac_abs_top_srcdir=$srcdir ;;
11275   *) # Relative name.
11276     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11277     ac_top_srcdir=$ac_top_build_prefix$srcdir
11278     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11279 esac
11280 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11281
11282
11283   case $ac_mode in
11284   :F)
11285   #
11286   # CONFIG_FILE
11287   #
11288
11289   case $INSTALL in
11290   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11291   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11292   esac
11293   ac_MKDIR_P=$MKDIR_P
11294   case $MKDIR_P in
11295   [\\/$]* | ?:[\\/]* ) ;;
11296   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11297   esac
11298 _ACEOF
11299
11300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11301 # If the template does not know about datarootdir, expand it.
11302 # FIXME: This hack should be removed a few years after 2.60.
11303 ac_datarootdir_hack=; ac_datarootdir_seen=
11304 ac_sed_dataroot='
11305 /datarootdir/ {
11306   p
11307   q
11308 }
11309 /@datadir@/p
11310 /@docdir@/p
11311 /@infodir@/p
11312 /@localedir@/p
11313 /@mandir@/p'
11314 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11315 *datarootdir*) ac_datarootdir_seen=yes;;
11316 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11317   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11318 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11319 _ACEOF
11320 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11321   ac_datarootdir_hack='
11322   s&@datadir@&$datadir&g
11323   s&@docdir@&$docdir&g
11324   s&@infodir@&$infodir&g
11325   s&@localedir@&$localedir&g
11326   s&@mandir@&$mandir&g
11327   s&\\\${datarootdir}&$datarootdir&g' ;;
11328 esac
11329 _ACEOF
11330
11331 # Neutralize VPATH when `$srcdir' = `.'.
11332 # Shell code in configure.ac might set extrasub.
11333 # FIXME: do we really want to maintain this feature?
11334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11335 ac_sed_extra="$ac_vpsub
11336 $extrasub
11337 _ACEOF
11338 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11339 :t
11340 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11341 s|@configure_input@|$ac_sed_conf_input|;t t
11342 s&@top_builddir@&$ac_top_builddir_sub&;t t
11343 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11344 s&@srcdir@&$ac_srcdir&;t t
11345 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11346 s&@top_srcdir@&$ac_top_srcdir&;t t
11347 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11348 s&@builddir@&$ac_builddir&;t t
11349 s&@abs_builddir@&$ac_abs_builddir&;t t
11350 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11351 s&@INSTALL@&$ac_INSTALL&;t t
11352 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11353 $ac_datarootdir_hack
11354 "
11355 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11356   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11357
11358 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11359   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11360   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
11361       "$ac_tmp/out"`; test -z "$ac_out"; } &&
11362   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11363 which seems to be undefined.  Please make sure it is defined" >&5
11364 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11365 which seems to be undefined.  Please make sure it is defined" >&2;}
11366
11367   rm -f "$ac_tmp/stdin"
11368   case $ac_file in
11369   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11370   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11371   esac \
11372   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11373  ;;
11374   :H)
11375   #
11376   # CONFIG_HEADER
11377   #
11378   if test x"$ac_file" != x-; then
11379     {
11380       $as_echo "/* $configure_input  */" \
11381       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11382     } >"$ac_tmp/config.h" \
11383       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11384     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11385       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11386 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11387     else
11388       rm -f "$ac_file"
11389       mv "$ac_tmp/config.h" "$ac_file" \
11390         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11391     fi
11392   else
11393     $as_echo "/* $configure_input  */" \
11394       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11395       || as_fn_error $? "could not create -" "$LINENO" 5
11396   fi
11397 # Compute "$ac_file"'s index in $config_headers.
11398 _am_arg="$ac_file"
11399 _am_stamp_count=1
11400 for _am_header in $config_headers :; do
11401   case $_am_header in
11402     $_am_arg | $_am_arg:* )
11403       break ;;
11404     * )
11405       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11406   esac
11407 done
11408 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11409 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11410          X"$_am_arg" : 'X\(//\)[^/]' \| \
11411          X"$_am_arg" : 'X\(//\)$' \| \
11412          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11413 $as_echo X"$_am_arg" |
11414     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11415             s//\1/
11416             q
11417           }
11418           /^X\(\/\/\)[^/].*/{
11419             s//\1/
11420             q
11421           }
11422           /^X\(\/\/\)$/{
11423             s//\1/
11424             q
11425           }
11426           /^X\(\/\).*/{
11427             s//\1/
11428             q
11429           }
11430           s/.*/./; q'`/stamp-h$_am_stamp_count
11431  ;;
11432
11433   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11434 $as_echo "$as_me: executing $ac_file commands" >&6;}
11435  ;;
11436   esac
11437
11438
11439   case $ac_file$ac_mode in
11440     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11441   # Older Autoconf quotes --file arguments for eval, but not when files
11442   # are listed without --file.  Let's play safe and only enable the eval
11443   # if we detect the quoting.
11444   case $CONFIG_FILES in
11445   *\'*) eval set x "$CONFIG_FILES" ;;
11446   *)   set x $CONFIG_FILES ;;
11447   esac
11448   shift
11449   for mf
11450   do
11451     # Strip MF so we end up with the name of the file.
11452     mf=`echo "$mf" | sed -e 's/:.*$//'`
11453     # Check whether this is an Automake generated Makefile or not.
11454     # We used to match only the files named 'Makefile.in', but
11455     # some people rename them; so instead we look at the file content.
11456     # Grep'ing the first line is not enough: some people post-process
11457     # each Makefile.in and add a new line on top of each file to say so.
11458     # Grep'ing the whole file is not good either: AIX grep has a line
11459     # limit of 2048, but all sed's we know have understand at least 4000.
11460     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11461       dirpart=`$as_dirname -- "$mf" ||
11462 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11463          X"$mf" : 'X\(//\)[^/]' \| \
11464          X"$mf" : 'X\(//\)$' \| \
11465          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11466 $as_echo X"$mf" |
11467     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11468             s//\1/
11469             q
11470           }
11471           /^X\(\/\/\)[^/].*/{
11472             s//\1/
11473             q
11474           }
11475           /^X\(\/\/\)$/{
11476             s//\1/
11477             q
11478           }
11479           /^X\(\/\).*/{
11480             s//\1/
11481             q
11482           }
11483           s/.*/./; q'`
11484     else
11485       continue
11486     fi
11487     # Extract the definition of DEPDIR, am__include, and am__quote
11488     # from the Makefile without running 'make'.
11489     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11490     test -z "$DEPDIR" && continue
11491     am__include=`sed -n 's/^am__include = //p' < "$mf"`
11492     test -z "$am__include" && continue
11493     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11494     # Find all dependency output files, they are included files with
11495     # $(DEPDIR) in their names.  We invoke sed twice because it is the
11496     # simplest approach to changing $(DEPDIR) to its actual value in the
11497     # expansion.
11498     for file in `sed -n "
11499       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11500          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
11501       # Make sure the directory exists.
11502       test -f "$dirpart/$file" && continue
11503       fdir=`$as_dirname -- "$file" ||
11504 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11505          X"$file" : 'X\(//\)[^/]' \| \
11506          X"$file" : 'X\(//\)$' \| \
11507          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11508 $as_echo X"$file" |
11509     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11510             s//\1/
11511             q
11512           }
11513           /^X\(\/\/\)[^/].*/{
11514             s//\1/
11515             q
11516           }
11517           /^X\(\/\/\)$/{
11518             s//\1/
11519             q
11520           }
11521           /^X\(\/\).*/{
11522             s//\1/
11523             q
11524           }
11525           s/.*/./; q'`
11526       as_dir=$dirpart/$fdir; as_fn_mkdir_p
11527       # echo "creating $dirpart/$file"
11528       echo '# dummy' > "$dirpart/$file"
11529     done
11530   done
11531 }
11532  ;;
11533     "po-directories":C)
11534     for ac_file in $CONFIG_FILES; do
11535       # Support "outfile[:infile[:infile...]]"
11536       case "$ac_file" in
11537         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11538       esac
11539       # PO directories have a Makefile.in generated from Makefile.in.in.
11540       case "$ac_file" in */Makefile.in)
11541         # Adjust a relative srcdir.
11542         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
11543         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
11544         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
11545         # In autoconf-2.13 it is called $ac_given_srcdir.
11546         # In autoconf-2.50 it is called $srcdir.
11547         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
11548         case "$ac_given_srcdir" in
11549           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
11550           /*) top_srcdir="$ac_given_srcdir" ;;
11551           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
11552         esac
11553         # Treat a directory as a PO directory if and only if it has a
11554         # POTFILES.in file. This allows packages to have multiple PO
11555         # directories under different names or in different locations.
11556         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
11557           rm -f "$ac_dir/POTFILES"
11558           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
11559           gt_tab=`printf '\t'`
11560           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
11561           POMAKEFILEDEPS="POTFILES.in"
11562           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
11563           # on $ac_dir but don't depend on user-specified configuration
11564           # parameters.
11565           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
11566             # The LINGUAS file contains the set of available languages.
11567             if test -n "$OBSOLETE_ALL_LINGUAS"; then
11568               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
11569             fi
11570             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
11571             # Hide the ALL_LINGUAS assignment from automake < 1.5.
11572             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
11573             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
11574           else
11575             # The set of available languages was given in configure.in.
11576             # Hide the ALL_LINGUAS assignment from automake < 1.5.
11577             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
11578           fi
11579           # Compute POFILES
11580           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
11581           # Compute UPDATEPOFILES
11582           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
11583           # Compute DUMMYPOFILES
11584           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
11585           # Compute GMOFILES
11586           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
11587           case "$ac_given_srcdir" in
11588             .) srcdirpre= ;;
11589             *) srcdirpre='$(srcdir)/' ;;
11590           esac
11591           POFILES=
11592           UPDATEPOFILES=
11593           DUMMYPOFILES=
11594           GMOFILES=
11595           for lang in $ALL_LINGUAS; do
11596             POFILES="$POFILES $srcdirpre$lang.po"
11597             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
11598             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
11599             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
11600           done
11601           # CATALOGS depends on both $ac_dir and the user's LINGUAS
11602           # environment variable.
11603           INST_LINGUAS=
11604           if test -n "$ALL_LINGUAS"; then
11605             for presentlang in $ALL_LINGUAS; do
11606               useit=no
11607               if test "%UNSET%" != "$LINGUAS"; then
11608                 desiredlanguages="$LINGUAS"
11609               else
11610                 desiredlanguages="$ALL_LINGUAS"
11611               fi
11612               for desiredlang in $desiredlanguages; do
11613                 # Use the presentlang catalog if desiredlang is
11614                 #   a. equal to presentlang, or
11615                 #   b. a variant of presentlang (because in this case,
11616                 #      presentlang can be used as a fallback for messages
11617                 #      which are not translated in the desiredlang catalog).
11618                 case "$desiredlang" in
11619                   "$presentlang"*) useit=yes;;
11620                 esac
11621               done
11622               if test $useit = yes; then
11623                 INST_LINGUAS="$INST_LINGUAS $presentlang"
11624               fi
11625             done
11626           fi
11627           CATALOGS=
11628           if test -n "$INST_LINGUAS"; then
11629             for lang in $INST_LINGUAS; do
11630               CATALOGS="$CATALOGS $lang.gmo"
11631             done
11632           fi
11633           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
11634           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
11635           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
11636             if test -f "$f"; then
11637               case "$f" in
11638                 *.orig | *.bak | *~) ;;
11639                 *) cat "$f" >> "$ac_dir/Makefile" ;;
11640               esac
11641             fi
11642           done
11643         fi
11644         ;;
11645       esac
11646     done ;;
11647
11648   esac
11649 done # for ac_tag
11650
11651
11652 as_fn_exit 0
11653 _ACEOF
11654 ac_clean_files=$ac_clean_files_save
11655
11656 test $ac_write_fail = 0 ||
11657   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11658
11659
11660 # configure is writing to config.log, and then calls config.status.
11661 # config.status does its own redirection, appending to config.log.
11662 # Unfortunately, on DOS this fails, as config.log is still kept open
11663 # by configure, so config.status won't be able to write to it; its
11664 # output is simply discarded.  So we exec the FD to /dev/null,
11665 # effectively closing config.log, so it can be properly (re)opened and
11666 # appended to by config.status.  When coming back to configure, we
11667 # need to make the FD available again.
11668 if test "$no_create" != yes; then
11669   ac_cs_success=:
11670   ac_config_status_args=
11671   test "$silent" = yes &&
11672     ac_config_status_args="$ac_config_status_args --quiet"
11673   exec 5>/dev/null
11674   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11675   exec 5>>config.log
11676   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11677   # would make configure fail if this is the last instruction.
11678   $ac_cs_success || as_fn_exit 1
11679 fi
11680 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11681   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11682 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11683 fi
11684