ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure
Revision: 1.132
Committed: Sat Apr 3 23:12:54 2010 UTC (14 years, 3 months ago) by sf-exg
Branch: MAIN
Changes since 1.131: +5607 -9229 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 pcg 1.1 #! /bin/sh
2     # Guess values for system-dependent variables and create Makefiles.
3 sf-exg 1.132 # Generated by GNU Autoconf 2.65.
4     #
5 pcg 1.1 #
6 ayin 1.108 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 sf-exg 1.132 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8     # Inc.
9     #
10     #
11 pcg 1.1 # This configure script is free software; the Free Software Foundation
12     # gives unlimited permission to copy, distribute and modify it.
13 sf-exg 1.132 ## -------------------- ##
14     ## M4sh Initialization. ##
15     ## -------------------- ##
16 pcg 1.11
17 ayin 1.108 # Be more Bourne compatible
18     DUALCASE=1; export DUALCASE # for MKS sh
19 sf-exg 1.132 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 pcg 1.11 emulate sh
21     NULLCMD=:
22 sf-exg 1.132 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 pcg 1.11 # is contrary to our usage. Disable this feature.
24     alias -g '${1+"$@"}'='"$@"'
25 ayin 1.108 setopt NO_GLOB_SUBST
26     else
27 sf-exg 1.132 case `(set -o) 2>/dev/null` in #(
28     *posix*) :
29     set -o posix ;; #(
30     *) :
31     ;;
32 ayin 1.108 esac
33     fi
34    
35    
36 sf-exg 1.132 as_nl='
37     '
38     export as_nl
39     # Printing a long string crashes Solaris 7 /usr/bin/printf.
40     as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43     # Prefer a ksh shell builtin over an external printf program on Solaris,
44     # but without wasting forks for bash or zsh.
45     if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47     as_echo='print -r --'
48     as_echo_n='print -rn --'
49     elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50     as_echo='printf %s\n'
51     as_echo_n='printf %s'
52     else
53     if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56 ayin 1.108 else
57 sf-exg 1.132 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59     arg=$1;
60     case $arg in #(
61     *"$as_nl"*)
62     expr "X$arg" : "X\\(.*\\)$as_nl";
63     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64     esac;
65     expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69 ayin 1.108 fi
70 sf-exg 1.132 export as_echo_body
71     as_echo='sh -c $as_echo_body as_echo'
72 pcg 1.11 fi
73    
74 sf-exg 1.132 # The user is always right.
75     if test "${PATH_SEPARATOR+set}" != set; then
76     PATH_SEPARATOR=:
77     (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79     PATH_SEPARATOR=';'
80     }
81 pcg 1.11 fi
82    
83    
84 ayin 1.108 # IFS
85     # We need space, tab and new line, in precisely that order. Quoting is
86     # there to prevent editors from complaining about space-tab.
87     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88     # splitting by setting IFS to empty value.)
89     IFS=" "" $as_nl"
90    
91     # Find who we are. Look in the path if we contain no directory separator.
92 sf-exg 1.132 case $0 in #((
93 ayin 1.108 *[\\/]* ) as_myself=$0 ;;
94     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95     for as_dir in $PATH
96     do
97     IFS=$as_save_IFS
98     test -z "$as_dir" && as_dir=.
99 sf-exg 1.132 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100     done
101 ayin 1.108 IFS=$as_save_IFS
102    
103     ;;
104     esac
105     # We did not find ourselves, most probably we were run as `sh COMMAND'
106     # in which case we are not to be found in the path.
107     if test "x$as_myself" = x; then
108     as_myself=$0
109     fi
110     if test ! -f "$as_myself"; then
111 sf-exg 1.132 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112     exit 1
113 ayin 1.108 fi
114    
115 sf-exg 1.132 # Unset variables that we do not need and which cause bugs (e.g. in
116     # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117     # suppresses any "Segmentation fault" message there. '((' could
118     # trigger a bug in pdksh 5.2.14.
119     for as_var in BASH_ENV ENV MAIL MAILPATH
120     do eval test x\${$as_var+set} = xset \
121     && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 ayin 1.108 done
123 pcg 1.11 PS1='$ '
124     PS2='> '
125     PS4='+ '
126    
127     # NLS nuisances.
128 sf-exg 1.132 LC_ALL=C
129     export LC_ALL
130     LANGUAGE=C
131     export LANGUAGE
132 ayin 1.108
133     # CDPATH.
134 sf-exg 1.132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 ayin 1.108
136     if test "x$CONFIG_SHELL" = x; then
137 sf-exg 1.132 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138     emulate sh
139     NULLCMD=:
140     # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141     # is contrary to our usage. Disable this feature.
142     alias -g '\${1+\"\$@\"}'='\"\$@\"'
143     setopt NO_GLOB_SUBST
144 ayin 1.108 else
145 sf-exg 1.132 case \`(set -o) 2>/dev/null\` in #(
146     *posix*) :
147     set -o posix ;; #(
148     *) :
149     ;;
150     esac
151 ayin 1.108 fi
152 sf-exg 1.132 "
153     as_required="as_fn_return () { (exit \$1); }
154     as_fn_success () { as_fn_return 0; }
155     as_fn_failure () { as_fn_return 1; }
156     as_fn_ret_success () { return 0; }
157     as_fn_ret_failure () { return 1; }
158 root 1.105
159 ayin 1.108 exitcode=0
160 sf-exg 1.132 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161     as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162     as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163     as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164     if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165    
166     else
167     exitcode=1; echo positional parameters were not saved.
168     fi
169     test x\$exitcode = x0 || exit 1"
170     as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171     as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172     eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173     test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174     test \$(( 1 + 1 )) = 2 || exit 1"
175     if (eval "$as_required") 2>/dev/null; then :
176     as_have_required=yes
177 ayin 1.108 else
178 sf-exg 1.132 as_have_required=no
179 ayin 1.108 fi
180 sf-exg 1.132 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181 root 1.105
182 ayin 1.108 else
183 sf-exg 1.132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184     as_found=false
185 pcg 1.11 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186     do
187     IFS=$as_save_IFS
188     test -z "$as_dir" && as_dir=.
189 sf-exg 1.132 as_found=:
190     case $as_dir in #(
191 pcg 1.11 /*)
192 ayin 1.108 for as_base in sh bash ksh sh5; do
193 sf-exg 1.132 # Try only shells that exist, to save several forks.
194     as_shell=$as_dir/$as_base
195     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197     CONFIG_SHELL=$as_shell as_have_required=yes
198     if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199     break 2
200     fi
201     fi
202 ayin 1.108 done;;
203     esac
204 sf-exg 1.132 as_found=false
205 ayin 1.108 done
206 sf-exg 1.132 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208     CONFIG_SHELL=$SHELL as_have_required=yes
209     fi; }
210 ayin 1.108 IFS=$as_save_IFS
211    
212    
213 sf-exg 1.132 if test "x$CONFIG_SHELL" != x; then :
214     # We cannot yet assume a decent shell, so we have to provide a
215     # neutralization value for shells without unset; and this also
216     # works around shells that cannot unset nonexistent variables.
217     BASH_ENV=/dev/null
218     ENV=/dev/null
219     (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220     export CONFIG_SHELL
221     exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222     fi
223    
224     if test x$as_have_required = xno; then :
225     $as_echo "$0: This script requires a shell more modern than all"
226     $as_echo "$0: the shells that I found on your system."
227     if test x${ZSH_VERSION+set} = xset ; then
228     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230     else
231     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232     $0: including any error possibly output before this
233     $0: message. Then install a modern shell, or manually run
234     $0: the script under such a shell if you do have one."
235     fi
236     exit 1
237     fi
238 ayin 1.108 fi
239     fi
240 sf-exg 1.132 SHELL=${CONFIG_SHELL-/bin/sh}
241     export SHELL
242     # Unset more variables known to interfere with behavior of common tools.
243     CLICOLOR_FORCE= GREP_OPTIONS=
244     unset CLICOLOR_FORCE GREP_OPTIONS
245 ayin 1.108
246 sf-exg 1.132 ## --------------------- ##
247     ## M4sh Shell Functions. ##
248     ## --------------------- ##
249     # as_fn_unset VAR
250     # ---------------
251     # Portably unset VAR.
252     as_fn_unset ()
253     {
254     { eval $1=; unset $1;}
255     }
256     as_unset=as_fn_unset
257    
258     # as_fn_set_status STATUS
259     # -----------------------
260     # Set $? to STATUS, without forking.
261     as_fn_set_status ()
262     {
263     return $1
264     } # as_fn_set_status
265    
266     # as_fn_exit STATUS
267     # -----------------
268     # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269     as_fn_exit ()
270     {
271     set +e
272     as_fn_set_status $1
273     exit $1
274     } # as_fn_exit
275    
276     # as_fn_mkdir_p
277     # -------------
278     # Create "$as_dir" as a directory, including parents if necessary.
279     as_fn_mkdir_p ()
280     {
281 ayin 1.108
282 sf-exg 1.132 case $as_dir in #(
283     -*) as_dir=./$as_dir;;
284     esac
285     test -d "$as_dir" || eval $as_mkdir_p || {
286     as_dirs=
287     while :; do
288     case $as_dir in #(
289     *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290     *) as_qdir=$as_dir;;
291     esac
292     as_dirs="'$as_qdir' $as_dirs"
293     as_dir=`$as_dirname -- "$as_dir" ||
294     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295     X"$as_dir" : 'X\(//\)[^/]' \| \
296     X"$as_dir" : 'X\(//\)$' \| \
297     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298     $as_echo X"$as_dir" |
299     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300     s//\1/
301     q
302     }
303     /^X\(\/\/\)[^/].*/{
304     s//\1/
305     q
306     }
307     /^X\(\/\/\)$/{
308     s//\1/
309     q
310     }
311     /^X\(\/\).*/{
312     s//\1/
313     q
314     }
315     s/.*/./; q'`
316     test -d "$as_dir" && break
317     done
318     test -z "$as_dirs" || eval "mkdir $as_dirs"
319     } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320 ayin 1.108
321    
322 sf-exg 1.132 } # as_fn_mkdir_p
323     # as_fn_append VAR VALUE
324     # ----------------------
325     # Append the text in VALUE to the end of the definition contained in VAR. Take
326     # advantage of any shell optimizations that allow amortized linear growth over
327     # repeated appends, instead of the typical quadratic growth present in naive
328     # implementations.
329     if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330     eval 'as_fn_append ()
331     {
332     eval $1+=\$2
333     }'
334 ayin 1.108 else
335 sf-exg 1.132 as_fn_append ()
336     {
337     eval $1=\$$1\$2
338     }
339     fi # as_fn_append
340    
341     # as_fn_arith ARG...
342     # ------------------
343     # Perform arithmetic evaluation on the ARGs, and store the result in the
344     # global $as_val. Take advantage of shells that can avoid forks. The arguments
345     # must be portable across $(()) and expr.
346     if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347     eval 'as_fn_arith ()
348     {
349     as_val=$(( $* ))
350     }'
351 ayin 1.108 else
352 sf-exg 1.132 as_fn_arith ()
353     {
354     as_val=`expr "$@" || test $? -eq 1`
355     }
356     fi # as_fn_arith
357    
358    
359     # as_fn_error ERROR [LINENO LOG_FD]
360     # ---------------------------------
361     # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362     # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363     # script with status $?, using 1 if that was 0.
364     as_fn_error ()
365     {
366     as_status=$?; test $as_status -eq 0 && as_status=1
367     if test "$3"; then
368     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370     fi
371     $as_echo "$as_me: error: $1" >&2
372     as_fn_exit $as_status
373     } # as_fn_error
374 ayin 1.108
375 sf-exg 1.132 if expr a : '\(a\)' >/dev/null 2>&1 &&
376     test "X`expr 00001 : '.*\(...\)'`" = X001; then
377     as_expr=expr
378 ayin 1.108 else
379 sf-exg 1.132 as_expr=false
380 ayin 1.108 fi
381    
382 sf-exg 1.132 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383     as_basename=basename
384 ayin 1.108 else
385 sf-exg 1.132 as_basename=false
386 ayin 1.108 fi
387    
388 sf-exg 1.132 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389     as_dirname=dirname
390 ayin 1.108 else
391 sf-exg 1.132 as_dirname=false
392 ayin 1.108 fi
393    
394 sf-exg 1.132 as_me=`$as_basename -- "$0" ||
395     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396     X"$0" : 'X\(//\)$' \| \
397     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398     $as_echo X/"$0" |
399     sed '/^.*\/\([^/][^/]*\)\/*$/{
400     s//\1/
401     q
402     }
403     /^X\/\(\/\/\)$/{
404     s//\1/
405     q
406     }
407     /^X\/\(\/\).*/{
408     s//\1/
409     q
410     }
411     s/.*/./; q'`
412 ayin 1.108
413 sf-exg 1.132 # Avoid depending upon Character Ranges.
414     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417     as_cr_digits='0123456789'
418     as_cr_alnum=$as_cr_Letters$as_cr_digits
419 ayin 1.108
420    
421 sf-exg 1.132 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422     as_lineno_2=$LINENO as_lineno_2a=$LINENO
423     eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424     test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425     # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 ayin 1.108 sed -n '
427     p
428     /[$]LINENO/=
429     ' <$as_myself |
430 pcg 1.11 sed '
431 ayin 1.108 s/[$]LINENO.*/&-/
432     t lineno
433     b
434     :lineno
435 pcg 1.11 N
436 ayin 1.108 :loop
437     s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 pcg 1.11 t loop
439 ayin 1.108 s/-\n.*//
440 pcg 1.11 ' >$as_me.lineno &&
441 ayin 1.108 chmod +x "$as_me.lineno" ||
442 sf-exg 1.132 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443 pcg 1.11
444     # Don't try to exec as it changes $[0], causing all sort of problems
445     # (the dirname of $[0] is not the place where we might find the
446 ayin 1.108 # original and so on. Autoconf is especially sensitive to this).
447     . "./$as_me.lineno"
448 pcg 1.11 # Exit status is that of the last command.
449     exit
450     }
451    
452 sf-exg 1.132 ECHO_C= ECHO_N= ECHO_T=
453     case `echo -n x` in #(((((
454     -n*)
455     case `echo 'xy\c'` in
456 ayin 1.108 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 sf-exg 1.132 xy) ECHO_C='\c';;
458     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459     ECHO_T=' ';;
460 ayin 1.108 esac;;
461     *)
462     ECHO_N='-n';;
463 pcg 1.11 esac
464    
465     rm -f conf$$ conf$$.exe conf$$.file
466 ayin 1.108 if test -d conf$$.dir; then
467     rm -f conf$$.dir/conf$$.file
468     else
469     rm -f conf$$.dir
470 sf-exg 1.132 mkdir conf$$.dir 2>/dev/null
471 ayin 1.108 fi
472 sf-exg 1.132 if (echo >conf$$.file) 2>/dev/null; then
473     if ln -s conf$$.file conf$$ 2>/dev/null; then
474     as_ln_s='ln -s'
475     # ... but there are two gotchas:
476     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478     # In both cases, we have to default to `cp -p'.
479     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480     as_ln_s='cp -p'
481     elif ln conf$$.file conf$$ 2>/dev/null; then
482     as_ln_s=ln
483     else
484 pcg 1.11 as_ln_s='cp -p'
485 sf-exg 1.132 fi
486 pcg 1.11 else
487     as_ln_s='cp -p'
488     fi
489 ayin 1.108 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490     rmdir conf$$.dir 2>/dev/null
491 pcg 1.11
492     if mkdir -p . 2>/dev/null; then
493 sf-exg 1.132 as_mkdir_p='mkdir -p "$as_dir"'
494 pcg 1.11 else
495     test -d ./-p && rmdir ./-p
496     as_mkdir_p=false
497     fi
498    
499 ayin 1.108 if test -x / >/dev/null 2>&1; then
500     as_test_x='test -x'
501     else
502     if ls -dL / >/dev/null 2>&1; then
503     as_ls_L_option=L
504     else
505     as_ls_L_option=
506     fi
507     as_test_x='
508     eval sh -c '\''
509     if test -d "$1"; then
510 sf-exg 1.132 test -d "$1/.";
511 ayin 1.108 else
512 sf-exg 1.132 case $1 in #(
513     -*)set "./$1";;
514 ayin 1.108 esac;
515 sf-exg 1.132 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ayin 1.108 ???[sx]*):;;*)false;;esac;fi
517     '\'' sh
518     '
519     fi
520     as_executable_p=$as_test_x
521 pcg 1.11
522     # Sed expression to map a string onto a valid CPP name.
523     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524    
525     # Sed expression to map a string onto a valid variable name.
526     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527    
528    
529 sf-exg 1.132 test -n "$DJDIR" || exec 7<&0 </dev/null
530     exec 6>&1
531 pcg 1.1
532 pcg 1.11 # Name of the host.
533     # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534     # so uname gets run too.
535     ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536    
537     #
538     # Initializations.
539     #
540     ac_default_prefix=/usr/local
541 ayin 1.108 ac_clean_files=
542 pcg 1.11 ac_config_libobj_dir=.
543 ayin 1.108 LIBOBJS=
544 pcg 1.11 cross_compiling=no
545     subdirs=
546     MFLAGS=
547     MAKEFLAGS=
548    
549     # Identity of this package.
550     PACKAGE_NAME=
551     PACKAGE_TARNAME=
552     PACKAGE_VERSION=
553     PACKAGE_STRING=
554     PACKAGE_BUGREPORT=
555 sf-exg 1.132 PACKAGE_URL=
556 pcg 1.11
557     ac_unique_file="src/feature.h"
558     # Factoring default headers for most tests.
559     ac_includes_default="\
560     #include <stdio.h>
561 ayin 1.108 #ifdef HAVE_SYS_TYPES_H
562 pcg 1.11 # include <sys/types.h>
563     #endif
564 ayin 1.108 #ifdef HAVE_SYS_STAT_H
565 pcg 1.11 # include <sys/stat.h>
566     #endif
567 ayin 1.108 #ifdef STDC_HEADERS
568 pcg 1.11 # include <stdlib.h>
569     # include <stddef.h>
570     #else
571 ayin 1.108 # ifdef HAVE_STDLIB_H
572 pcg 1.11 # include <stdlib.h>
573     # endif
574     #endif
575 ayin 1.108 #ifdef HAVE_STRING_H
576     # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 pcg 1.11 # include <memory.h>
578     # endif
579     # include <string.h>
580     #endif
581 ayin 1.108 #ifdef HAVE_STRINGS_H
582 pcg 1.11 # include <strings.h>
583     #endif
584 ayin 1.108 #ifdef HAVE_INTTYPES_H
585 pcg 1.11 # include <inttypes.h>
586     #endif
587 ayin 1.108 #ifdef HAVE_STDINT_H
588     # include <stdint.h>
589     #endif
590     #ifdef HAVE_UNISTD_H
591 pcg 1.11 # include <unistd.h>
592     #endif"
593    
594 sf-exg 1.132 ac_subst_vars='LTLIBOBJS
595     LIBOBJS
596     AFTERIMAGE_LIBS
597     AFTERIMAGE_CFLAGS
598     PERL_O
599     IF_PERL
600     PERLPRIVLIBEXP
601     PERLFLAGS
602     PERLLIB
603     PERL
604     XFT_CONFIG
605     PKG_CONFIG
606     afterimage_config
607     X_EXTRA_LIBS
608     X_LIBS
609     X_PRE_LIBS
610     X_CFLAGS
611     XMKMF
612     TIC
613     CXXCPP
614     RXVTNAME
615     LINKER
616     EGREP
617     GREP
618     INSTALL_DATA
619     INSTALL_SCRIPT
620     INSTALL_PROGRAM
621     CPP
622     ac_ct_CXX
623     CXXFLAGS
624     CXX
625     OBJEXT
626     EXEEXT
627     ac_ct_CC
628     CPPFLAGS
629     LDFLAGS
630     CFLAGS
631     CC
632     DATE
633     VERSION
634     host_os
635     host_vendor
636     host_cpu
637     host
638     build_os
639     build_vendor
640     build_cpu
641     build
642     target_alias
643     host_alias
644     build_alias
645     LIBS
646     ECHO_T
647     ECHO_N
648     ECHO_C
649     DEFS
650     mandir
651     localedir
652     libdir
653     psdir
654     pdfdir
655     dvidir
656     htmldir
657     infodir
658     docdir
659     oldincludedir
660     includedir
661     localstatedir
662     sharedstatedir
663     sysconfdir
664     datadir
665     datarootdir
666     libexecdir
667     sbindir
668     bindir
669     program_transform_name
670     prefix
671     exec_prefix
672     PACKAGE_URL
673     PACKAGE_BUGREPORT
674     PACKAGE_STRING
675     PACKAGE_VERSION
676     PACKAGE_TARNAME
677     PACKAGE_NAME
678 ayin 1.108 PATH_SEPARATOR
679 sf-exg 1.132 SHELL'
680 root 1.73 ac_subst_files=''
681 sf-exg 1.132 ac_user_opts='
682     enable_option_checking
683     enable_everything
684     enable_assert
685     enable_warnings
686     enable_256_color
687     enable_unicode3
688     enable_combining
689     enable_xft
690     enable_font_styles
691     enable_afterimage
692     with_afterimage_config
693     enable_transparency
694     enable_fading
695     enable_rxvt_scroll
696     enable_next_scroll
697     enable_xterm_scroll
698     enable_perl
699     with_codesets
700     enable_xim
701     enable_backspace_key
702     enable_delete_key
703     enable_resources
704     enable_8bitctrls
705     enable_fallback
706     with_res_name
707     with_res_class
708     with_name
709     enable_swapscreen
710     enable_iso14755
711     enable_frills
712     enable_keepscrolling
713     enable_selectionscrolling
714     enable_mousewheel
715     enable_slipwheeling
716     enable_smart_resize
717     enable_text_blink
718     enable_pointer_blank
719     with_term
720     with_terminfo
721     with_x
722     enable_utmp
723     enable_wtmp
724     enable_lastlog
725     '
726 ayin 1.108 ac_precious_vars='build_alias
727     host_alias
728     target_alias
729     CC
730     CFLAGS
731     LDFLAGS
732     LIBS
733     CPPFLAGS
734     CXX
735     CXXFLAGS
736     CCC
737     CPP
738 root 1.116 CXXCPP
739     XMKMF'
740 ayin 1.108
741 pcg 1.1
742     # Initialize some variables set by options.
743 pcg 1.11 ac_init_help=
744     ac_init_version=false
745 sf-exg 1.132 ac_unrecognized_opts=
746     ac_unrecognized_sep=
747 pcg 1.1 # The variables have the same names as the options, with
748     # dashes changed to underlines.
749 pcg 1.11 cache_file=/dev/null
750 pcg 1.1 exec_prefix=NONE
751     no_create=
752     no_recursion=
753     prefix=NONE
754     program_prefix=NONE
755     program_suffix=NONE
756     program_transform_name=s,x,x,
757     silent=
758     site=
759     srcdir=
760     verbose=
761     x_includes=NONE
762     x_libraries=NONE
763 pcg 1.11
764     # Installation directory options.
765     # These are left unexpanded so users can "make install exec_prefix=/foo"
766     # and all the variables that are supposed to be based on exec_prefix
767     # by default will actually change.
768     # Use braces instead of parens because sh, perl, etc. also accept them.
769 ayin 1.108 # (The list follows the same order as the GNU Coding Standards.)
770 pcg 1.1 bindir='${exec_prefix}/bin'
771     sbindir='${exec_prefix}/sbin'
772     libexecdir='${exec_prefix}/libexec'
773 ayin 1.108 datarootdir='${prefix}/share'
774     datadir='${datarootdir}'
775 pcg 1.1 sysconfdir='${prefix}/etc'
776     sharedstatedir='${prefix}/com'
777     localstatedir='${prefix}/var'
778     includedir='${prefix}/include'
779     oldincludedir='/usr/include'
780 ayin 1.108 docdir='${datarootdir}/doc/${PACKAGE}'
781     infodir='${datarootdir}/info'
782     htmldir='${docdir}'
783     dvidir='${docdir}'
784     pdfdir='${docdir}'
785     psdir='${docdir}'
786     libdir='${exec_prefix}/lib'
787     localedir='${datarootdir}/locale'
788     mandir='${datarootdir}/man'
789 pcg 1.1
790     ac_prev=
791 ayin 1.108 ac_dashdash=
792 pcg 1.1 for ac_option
793     do
794     # If the previous option needs an argument, assign it.
795     if test -n "$ac_prev"; then
796 ayin 1.108 eval $ac_prev=\$ac_option
797 pcg 1.1 ac_prev=
798     continue
799     fi
800    
801 ayin 1.108 case $ac_option in
802     *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
803     *) ac_optarg=yes ;;
804     esac
805 pcg 1.1
806     # Accept the important Cygnus configure options, so we can diagnose typos.
807    
808 ayin 1.108 case $ac_dashdash$ac_option in
809     --)
810     ac_dashdash=yes ;;
811 pcg 1.1
812     -bindir | --bindir | --bindi | --bind | --bin | --bi)
813     ac_prev=bindir ;;
814     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
815 pcg 1.11 bindir=$ac_optarg ;;
816 pcg 1.1
817     -build | --build | --buil | --bui | --bu)
818 pcg 1.11 ac_prev=build_alias ;;
819 pcg 1.1 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
820 pcg 1.11 build_alias=$ac_optarg ;;
821 pcg 1.1
822     -cache-file | --cache-file | --cache-fil | --cache-fi \
823     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
824     ac_prev=cache_file ;;
825     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
826     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
827 pcg 1.11 cache_file=$ac_optarg ;;
828    
829     --config-cache | -C)
830     cache_file=config.cache ;;
831 pcg 1.1
832 ayin 1.108 -datadir | --datadir | --datadi | --datad)
833 pcg 1.1 ac_prev=datadir ;;
834 ayin 1.108 -datadir=* | --datadir=* | --datadi=* | --datad=*)
835 pcg 1.11 datadir=$ac_optarg ;;
836 pcg 1.1
837 ayin 1.108 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
838     | --dataroo | --dataro | --datar)
839     ac_prev=datarootdir ;;
840     -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
841     | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
842     datarootdir=$ac_optarg ;;
843    
844 pcg 1.1 -disable-* | --disable-*)
845 sf-exg 1.132 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
846 pcg 1.1 # Reject names that are not valid shell variable names.
847 sf-exg 1.132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
848     as_fn_error "invalid feature name: $ac_useropt"
849     ac_useropt_orig=$ac_useropt
850     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
851     case $ac_user_opts in
852     *"
853     "enable_$ac_useropt"
854     "*) ;;
855     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
856     ac_unrecognized_sep=', ';;
857     esac
858     eval enable_$ac_useropt=no ;;
859 ayin 1.108
860     -docdir | --docdir | --docdi | --doc | --do)
861     ac_prev=docdir ;;
862     -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
863     docdir=$ac_optarg ;;
864    
865     -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
866     ac_prev=dvidir ;;
867     -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
868     dvidir=$ac_optarg ;;
869 pcg 1.1
870     -enable-* | --enable-*)
871 sf-exg 1.132 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
872 pcg 1.1 # Reject names that are not valid shell variable names.
873 sf-exg 1.132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
874     as_fn_error "invalid feature name: $ac_useropt"
875     ac_useropt_orig=$ac_useropt
876     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
877     case $ac_user_opts in
878     *"
879     "enable_$ac_useropt"
880     "*) ;;
881     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
882     ac_unrecognized_sep=', ';;
883     esac
884     eval enable_$ac_useropt=\$ac_optarg ;;
885 pcg 1.1
886     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
887     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
888     | --exec | --exe | --ex)
889     ac_prev=exec_prefix ;;
890     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
891     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
892     | --exec=* | --exe=* | --ex=*)
893 pcg 1.11 exec_prefix=$ac_optarg ;;
894 pcg 1.1
895     -gas | --gas | --ga | --g)
896     # Obsolete; use --with-gas.
897     with_gas=yes ;;
898    
899 pcg 1.11 -help | --help | --hel | --he | -h)
900     ac_init_help=long ;;
901     -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
902     ac_init_help=recursive ;;
903     -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
904     ac_init_help=short ;;
905 pcg 1.1
906     -host | --host | --hos | --ho)
907 pcg 1.11 ac_prev=host_alias ;;
908 pcg 1.1 -host=* | --host=* | --hos=* | --ho=*)
909 pcg 1.11 host_alias=$ac_optarg ;;
910 pcg 1.1
911 ayin 1.108 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
912     ac_prev=htmldir ;;
913     -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
914     | --ht=*)
915     htmldir=$ac_optarg ;;
916    
917 pcg 1.1 -includedir | --includedir | --includedi | --included | --include \
918     | --includ | --inclu | --incl | --inc)
919     ac_prev=includedir ;;
920     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
921     | --includ=* | --inclu=* | --incl=* | --inc=*)
922 pcg 1.11 includedir=$ac_optarg ;;
923 pcg 1.1
924     -infodir | --infodir | --infodi | --infod | --info | --inf)
925     ac_prev=infodir ;;
926     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
927 pcg 1.11 infodir=$ac_optarg ;;
928 pcg 1.1
929     -libdir | --libdir | --libdi | --libd)
930     ac_prev=libdir ;;
931     -libdir=* | --libdir=* | --libdi=* | --libd=*)
932 pcg 1.11 libdir=$ac_optarg ;;
933 pcg 1.1
934     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
935     | --libexe | --libex | --libe)
936     ac_prev=libexecdir ;;
937     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
938     | --libexe=* | --libex=* | --libe=*)
939 pcg 1.11 libexecdir=$ac_optarg ;;
940 pcg 1.1
941 ayin 1.108 -localedir | --localedir | --localedi | --localed | --locale)
942     ac_prev=localedir ;;
943     -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
944     localedir=$ac_optarg ;;
945    
946 pcg 1.1 -localstatedir | --localstatedir | --localstatedi | --localstated \
947 ayin 1.108 | --localstate | --localstat | --localsta | --localst | --locals)
948 pcg 1.1 ac_prev=localstatedir ;;
949     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
950 ayin 1.108 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
951 pcg 1.11 localstatedir=$ac_optarg ;;
952 pcg 1.1
953     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
954     ac_prev=mandir ;;
955     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
956 pcg 1.11 mandir=$ac_optarg ;;
957 pcg 1.1
958     -nfp | --nfp | --nf)
959     # Obsolete; use --without-fp.
960     with_fp=no ;;
961    
962     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
963 pcg 1.11 | --no-cr | --no-c | -n)
964 pcg 1.1 no_create=yes ;;
965    
966     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
967     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
968     no_recursion=yes ;;
969    
970     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
971     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
972     | --oldin | --oldi | --old | --ol | --o)
973     ac_prev=oldincludedir ;;
974     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
975     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
976     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
977 pcg 1.11 oldincludedir=$ac_optarg ;;
978 pcg 1.1
979     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
980     ac_prev=prefix ;;
981     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
982 pcg 1.11 prefix=$ac_optarg ;;
983 pcg 1.1
984     -program-prefix | --program-prefix | --program-prefi | --program-pref \
985     | --program-pre | --program-pr | --program-p)
986     ac_prev=program_prefix ;;
987     -program-prefix=* | --program-prefix=* | --program-prefi=* \
988     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
989 pcg 1.11 program_prefix=$ac_optarg ;;
990 pcg 1.1
991     -program-suffix | --program-suffix | --program-suffi | --program-suff \
992     | --program-suf | --program-su | --program-s)
993     ac_prev=program_suffix ;;
994     -program-suffix=* | --program-suffix=* | --program-suffi=* \
995     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
996 pcg 1.11 program_suffix=$ac_optarg ;;
997 pcg 1.1
998     -program-transform-name | --program-transform-name \
999     | --program-transform-nam | --program-transform-na \
1000     | --program-transform-n | --program-transform- \
1001     | --program-transform | --program-transfor \
1002     | --program-transfo | --program-transf \
1003     | --program-trans | --program-tran \
1004     | --progr-tra | --program-tr | --program-t)
1005     ac_prev=program_transform_name ;;
1006     -program-transform-name=* | --program-transform-name=* \
1007     | --program-transform-nam=* | --program-transform-na=* \
1008     | --program-transform-n=* | --program-transform-=* \
1009     | --program-transform=* | --program-transfor=* \
1010     | --program-transfo=* | --program-transf=* \
1011     | --program-trans=* | --program-tran=* \
1012     | --progr-tra=* | --program-tr=* | --program-t=*)
1013 pcg 1.11 program_transform_name=$ac_optarg ;;
1014 pcg 1.1
1015 ayin 1.108 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1016     ac_prev=pdfdir ;;
1017     -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1018     pdfdir=$ac_optarg ;;
1019    
1020     -psdir | --psdir | --psdi | --psd | --ps)
1021     ac_prev=psdir ;;
1022     -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1023     psdir=$ac_optarg ;;
1024    
1025 pcg 1.1 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1026     | -silent | --silent | --silen | --sile | --sil)
1027     silent=yes ;;
1028    
1029     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1030     ac_prev=sbindir ;;
1031     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1032     | --sbi=* | --sb=*)
1033 pcg 1.11 sbindir=$ac_optarg ;;
1034 pcg 1.1
1035     -sharedstatedir | --sharedstatedir | --sharedstatedi \
1036     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1037     | --sharedst | --shareds | --shared | --share | --shar \
1038     | --sha | --sh)
1039     ac_prev=sharedstatedir ;;
1040     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1041     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1042     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1043     | --sha=* | --sh=*)
1044 pcg 1.11 sharedstatedir=$ac_optarg ;;
1045 pcg 1.1
1046     -site | --site | --sit)
1047     ac_prev=site ;;
1048     -site=* | --site=* | --sit=*)
1049 pcg 1.11 site=$ac_optarg ;;
1050 pcg 1.1
1051     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1052     ac_prev=srcdir ;;
1053     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1054 pcg 1.11 srcdir=$ac_optarg ;;
1055 pcg 1.1
1056     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1057     | --syscon | --sysco | --sysc | --sys | --sy)
1058     ac_prev=sysconfdir ;;
1059     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1060     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1061 pcg 1.11 sysconfdir=$ac_optarg ;;
1062 pcg 1.1
1063     -target | --target | --targe | --targ | --tar | --ta | --t)
1064 pcg 1.11 ac_prev=target_alias ;;
1065 pcg 1.1 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1066 pcg 1.11 target_alias=$ac_optarg ;;
1067 pcg 1.1
1068     -v | -verbose | --verbose | --verbos | --verbo | --verb)
1069     verbose=yes ;;
1070    
1071 pcg 1.11 -version | --version | --versio | --versi | --vers | -V)
1072     ac_init_version=: ;;
1073 pcg 1.1
1074     -with-* | --with-*)
1075 sf-exg 1.132 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1076 pcg 1.1 # Reject names that are not valid shell variable names.
1077 sf-exg 1.132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078     as_fn_error "invalid package name: $ac_useropt"
1079     ac_useropt_orig=$ac_useropt
1080     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081     case $ac_user_opts in
1082     *"
1083     "with_$ac_useropt"
1084     "*) ;;
1085     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1086     ac_unrecognized_sep=', ';;
1087     esac
1088     eval with_$ac_useropt=\$ac_optarg ;;
1089 pcg 1.1
1090     -without-* | --without-*)
1091 sf-exg 1.132 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1092 pcg 1.1 # Reject names that are not valid shell variable names.
1093 sf-exg 1.132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094     as_fn_error "invalid package name: $ac_useropt"
1095     ac_useropt_orig=$ac_useropt
1096     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1097     case $ac_user_opts in
1098     *"
1099     "with_$ac_useropt"
1100     "*) ;;
1101     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1102     ac_unrecognized_sep=', ';;
1103     esac
1104     eval with_$ac_useropt=no ;;
1105 pcg 1.1
1106     --x)
1107     # Obsolete; use --with-x.
1108     with_x=yes ;;
1109    
1110     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1111     | --x-incl | --x-inc | --x-in | --x-i)
1112     ac_prev=x_includes ;;
1113     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1114     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1115 pcg 1.11 x_includes=$ac_optarg ;;
1116 pcg 1.1
1117     -x-libraries | --x-libraries | --x-librarie | --x-librari \
1118     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1119     ac_prev=x_libraries ;;
1120     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1121     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1122 pcg 1.11 x_libraries=$ac_optarg ;;
1123 pcg 1.1
1124 sf-exg 1.132 -*) as_fn_error "unrecognized option: \`$ac_option'
1125     Try \`$0 --help' for more information."
1126 pcg 1.1 ;;
1127    
1128 pcg 1.11 *=*)
1129     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1130     # Reject names that are not valid shell variable names.
1131 sf-exg 1.132 case $ac_envvar in #(
1132     '' | [0-9]* | *[!_$as_cr_alnum]* )
1133     as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1134     esac
1135 ayin 1.108 eval $ac_envvar=\$ac_optarg
1136 pcg 1.11 export $ac_envvar ;;
1137    
1138 pcg 1.1 *)
1139 pcg 1.11 # FIXME: should be removed in autoconf 3.0.
1140 sf-exg 1.132 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1141 pcg 1.11 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1142 sf-exg 1.132 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1143 pcg 1.11 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1144 pcg 1.1 ;;
1145    
1146     esac
1147     done
1148    
1149     if test -n "$ac_prev"; then
1150 pcg 1.11 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1151 sf-exg 1.132 as_fn_error "missing argument to $ac_option"
1152     fi
1153    
1154     if test -n "$ac_unrecognized_opts"; then
1155     case $enable_option_checking in
1156     no) ;;
1157     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1158     *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1159     esac
1160 pcg 1.1 fi
1161    
1162 sf-exg 1.132 # Check all directory arguments for consistency.
1163 ayin 1.108 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1164     datadir sysconfdir sharedstatedir localstatedir includedir \
1165     oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1166     libdir localedir mandir
1167 pcg 1.11 do
1168 ayin 1.108 eval ac_val=\$$ac_var
1169 sf-exg 1.132 # Remove trailing slashes.
1170     case $ac_val in
1171     */ )
1172     ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1173     eval $ac_var=\$ac_val;;
1174     esac
1175     # Be sure to have absolute directory names.
1176 pcg 1.11 case $ac_val in
1177 ayin 1.108 [\\/$]* | ?:[\\/]* ) continue;;
1178     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1179 pcg 1.1 esac
1180 sf-exg 1.132 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1181 pcg 1.1 done
1182    
1183 pcg 1.11 # There might be people who depend on the old broken behavior: `$host'
1184     # used to hold the argument of --host etc.
1185     # FIXME: To remove some day.
1186     build=$build_alias
1187     host=$host_alias
1188     target=$target_alias
1189    
1190     # FIXME: To remove some day.
1191     if test "x$host_alias" != x; then
1192     if test "x$build_alias" = x; then
1193     cross_compiling=maybe
1194 sf-exg 1.132 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1195 pcg 1.11 If a cross compiler is detected then cross compile mode will be used." >&2
1196     elif test "x$build_alias" != "x$host_alias"; then
1197     cross_compiling=yes
1198     fi
1199     fi
1200    
1201     ac_tool_prefix=
1202     test -n "$host_alias" && ac_tool_prefix=$host_alias-
1203 pcg 1.1
1204 pcg 1.11 test "$silent" = yes && exec 6>/dev/null
1205 pcg 1.1
1206    
1207 ayin 1.108 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1208     ac_ls_di=`ls -di .` &&
1209     ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1210 sf-exg 1.132 as_fn_error "working directory cannot be determined"
1211 ayin 1.108 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1212 sf-exg 1.132 as_fn_error "pwd does not report name of working directory"
1213 ayin 1.108
1214    
1215 pcg 1.1 # Find the source files, if location was not specified.
1216     if test -z "$srcdir"; then
1217     ac_srcdir_defaulted=yes
1218 ayin 1.108 # Try the directory containing this script, then the parent directory.
1219 sf-exg 1.132 ac_confdir=`$as_dirname -- "$as_myself" ||
1220     $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1221     X"$as_myself" : 'X\(//\)[^/]' \| \
1222     X"$as_myself" : 'X\(//\)$' \| \
1223     X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1224     $as_echo X"$as_myself" |
1225 ayin 1.108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1226     s//\1/
1227     q
1228     }
1229     /^X\(\/\/\)[^/].*/{
1230     s//\1/
1231     q
1232     }
1233     /^X\(\/\/\)$/{
1234     s//\1/
1235     q
1236     }
1237     /^X\(\/\).*/{
1238     s//\1/
1239     q
1240     }
1241     s/.*/./; q'`
1242 pcg 1.1 srcdir=$ac_confdir
1243 ayin 1.108 if test ! -r "$srcdir/$ac_unique_file"; then
1244 pcg 1.1 srcdir=..
1245     fi
1246     else
1247     ac_srcdir_defaulted=no
1248     fi
1249 ayin 1.108 if test ! -r "$srcdir/$ac_unique_file"; then
1250     test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1251 sf-exg 1.132 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1252 ayin 1.108 fi
1253     ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1254     ac_abs_confdir=`(
1255 sf-exg 1.132 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1256 ayin 1.108 pwd)`
1257     # When building in place, set srcdir=.
1258     if test "$ac_abs_confdir" = "$ac_pwd"; then
1259     srcdir=.
1260     fi
1261     # Remove unnecessary trailing slashes from srcdir.
1262     # Double slashes in file names in object file debugging info
1263     # mess up M-x gdb in Emacs.
1264     case $srcdir in
1265     */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1266     esac
1267     for ac_var in $ac_precious_vars; do
1268     eval ac_env_${ac_var}_set=\${${ac_var}+set}
1269     eval ac_env_${ac_var}_value=\$${ac_var}
1270     eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1271     eval ac_cv_env_${ac_var}_value=\$${ac_var}
1272     done
1273    
1274 pcg 1.11 #
1275     # Report the --help message.
1276     #
1277     if test "$ac_init_help" = "long"; then
1278     # Omit some internal or obsolete options to make the list less imposing.
1279     # This message is too long to be a string in the A/UX 3.1 sh.
1280     cat <<_ACEOF
1281     \`configure' configures this package to adapt to many kinds of systems.
1282    
1283     Usage: $0 [OPTION]... [VAR=VALUE]...
1284    
1285     To assign environment variables (e.g., CC, CFLAGS...), specify them as
1286     VAR=VALUE. See below for descriptions of some of the useful variables.
1287    
1288     Defaults for the options are specified in brackets.
1289    
1290     Configuration:
1291     -h, --help display this help and exit
1292     --help=short display options specific to this package
1293     --help=recursive display the short help of all the included packages
1294     -V, --version display version information and exit
1295     -q, --quiet, --silent do not print \`checking...' messages
1296     --cache-file=FILE cache test results in FILE [disabled]
1297     -C, --config-cache alias for \`--cache-file=config.cache'
1298     -n, --no-create do not create output files
1299     --srcdir=DIR find the sources in DIR [configure dir or \`..']
1300    
1301     Installation directories:
1302     --prefix=PREFIX install architecture-independent files in PREFIX
1303 sf-exg 1.132 [$ac_default_prefix]
1304 pcg 1.11 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1305 sf-exg 1.132 [PREFIX]
1306 pcg 1.11
1307     By default, \`make install' will install all the files in
1308     \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1309     an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1310     for instance \`--prefix=\$HOME'.
1311    
1312     For better control, use the options below.
1313    
1314     Fine tuning of the installation directories:
1315 sf-exg 1.132 --bindir=DIR user executables [EPREFIX/bin]
1316     --sbindir=DIR system admin executables [EPREFIX/sbin]
1317     --libexecdir=DIR program executables [EPREFIX/libexec]
1318     --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1319     --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1320     --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1321     --libdir=DIR object code libraries [EPREFIX/lib]
1322     --includedir=DIR C header files [PREFIX/include]
1323     --oldincludedir=DIR C header files for non-gcc [/usr/include]
1324     --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1325     --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1326     --infodir=DIR info documentation [DATAROOTDIR/info]
1327     --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1328     --mandir=DIR man documentation [DATAROOTDIR/man]
1329     --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1330     --htmldir=DIR html documentation [DOCDIR]
1331     --dvidir=DIR dvi documentation [DOCDIR]
1332     --pdfdir=DIR pdf documentation [DOCDIR]
1333     --psdir=DIR ps documentation [DOCDIR]
1334 pcg 1.11 _ACEOF
1335    
1336     cat <<\_ACEOF
1337    
1338     X features:
1339     --x-includes=DIR X include files are in DIR
1340     --x-libraries=DIR X library files are in DIR
1341    
1342     Program names:
1343     --program-prefix=PREFIX prepend PREFIX to installed program names
1344     --program-suffix=SUFFIX append SUFFIX to installed program names
1345     --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1346    
1347     System types:
1348     --build=BUILD configure for building on BUILD [guessed]
1349     --host=HOST cross-compile to build programs to run on HOST [BUILD]
1350     _ACEOF
1351     fi
1352    
1353     if test -n "$ac_init_help"; then
1354    
1355     cat <<\_ACEOF
1356    
1357     Optional Features:
1358 sf-exg 1.132 --disable-option-checking ignore unrecognized --enable/--with options
1359 pcg 1.11 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1360     --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1361 pcg 1.13 --enable-everything enable standard non-multichoice features
1362 root 1.125 NOTE: this option is order dependent
1363 root 1.130 --enable-assert enable assertions
1364 ayin 1.114 --enable-warnings turn on g++ warnings
1365 sf-exg 1.132 --enable-256-color enable 256-color support
1366 pcg 1.11 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1367 pcg 1.18 --enable-combining enable composition of base and combining characters
1368 pcg 1.15 --enable-xft enable xft support on systems that have it
1369 root 1.39 --enable-font-styles enable bold and italic support
1370 root 1.125 --enable-afterimage enable integration with libAfterImage for background images
1371 pcg 1.11 --enable-transparency enable transparent backgrounds
1372 root 1.31 --enable-fading enable colors fading when off focus
1373 pcg 1.11 --enable-rxvt-scroll enable rxvt style scrollbar
1374     --enable-next-scroll enable NeXT style scrollbar
1375     --enable-xterm-scroll enable Xterm style scrollbar
1376 root 1.60 --enable-perl enable embedded perl interpreter
1377 pcg 1.11 --enable-xim XIM (X Input Method) protocol support
1378     --disable-backspace-key disable handling of the backspace key
1379     --disable-delete-key disable handling of the delete key
1380     --disable-resources disable all resource checking
1381 root 1.26 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1382 ayin 1.114 --enable-fallback[=CLASS] fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1383 pcg 1.11 --disable-swapscreen disable swap screen support
1384 root 1.34 --enable-iso14755 enable support for extended ISO 14755 modes
1385 pcg 1.11 --enable-frills enable support for rarely used features
1386     --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1387     --enable-selectionscrolling enable scrolling during selections
1388     --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1389 ayin 1.114 --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel)
1390 pcg 1.11 --enable-smart-resize enable smart growth/shrink behaviour
1391     --enable-text-blink enable blinking text
1392 root 1.131 --enable-pointer-blank enable pointer blanking when typing or inactive
1393 root 1.92 --enable-utmp enable utmp (utmpx) support
1394     --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1395     --enable-lastlog enable lastlog support (requires --enable-utmp)
1396 pcg 1.11
1397     Optional Packages:
1398     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1399     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1400 root 1.103 --with-afterimage-config=DIR use libAfterImage config script in DIR
1401 ayin 1.114 --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
1402 pcg 1.15 --with-res-name=NAME use this as default resource name (default: urxvt)
1403 pcg 1.18 --with-res-class=CLASS use this as the resource class (default: URxvt)
1404 pcg 1.15 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1405     --with-term=NAME set the terminal to NAME (default: rxvt)
1406 pcg 1.11 --with-terminfo=PATH set the path to the terminfo tree to PATH
1407     --with-x use the X Window System
1408    
1409     Some influential environment variables:
1410     CC C compiler command
1411     CFLAGS C compiler flags
1412     LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1413     nonstandard directory <lib dir>
1414 ayin 1.108 LIBS libraries to pass to the linker, e.g. -l<library>
1415 sf-exg 1.132 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1416 ayin 1.108 you have headers in a nonstandard directory <include dir>
1417 pcg 1.11 CXX C++ compiler command
1418     CXXFLAGS C++ compiler flags
1419     CPP C preprocessor
1420 root 1.116 CXXCPP C++ preprocessor
1421 ayin 1.108 XMKMF Path to xmkmf, Makefile generator for X Window System
1422 pcg 1.11
1423     Use these variables to override the choices made by `configure' or to help
1424     it to find libraries and programs with nonstandard names/locations.
1425    
1426 sf-exg 1.132 Report bugs to the package provider.
1427 pcg 1.11 _ACEOF
1428 ayin 1.108 ac_status=$?
1429 pcg 1.11 fi
1430    
1431     if test "$ac_init_help" = "recursive"; then
1432     # If there are subdirs, report their specific --help.
1433     for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1434 sf-exg 1.132 test -d "$ac_dir" ||
1435     { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1436     continue
1437 pcg 1.11 ac_builddir=.
1438    
1439 ayin 1.108 case "$ac_dir" in
1440     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1441     *)
1442 sf-exg 1.132 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1443 ayin 1.108 # A ".." for each directory in $ac_dir_suffix.
1444 sf-exg 1.132 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1445 ayin 1.108 case $ac_top_builddir_sub in
1446     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1447     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1448     esac ;;
1449     esac
1450     ac_abs_top_builddir=$ac_pwd
1451     ac_abs_builddir=$ac_pwd$ac_dir_suffix
1452     # for backward compatibility:
1453     ac_top_builddir=$ac_top_build_prefix
1454 pcg 1.11
1455     case $srcdir in
1456 ayin 1.108 .) # We are building in place.
1457 pcg 1.11 ac_srcdir=.
1458 ayin 1.108 ac_top_srcdir=$ac_top_builddir_sub
1459     ac_abs_top_srcdir=$ac_pwd ;;
1460     [\\/]* | ?:[\\/]* ) # Absolute name.
1461 pcg 1.11 ac_srcdir=$srcdir$ac_dir_suffix;
1462 ayin 1.108 ac_top_srcdir=$srcdir
1463     ac_abs_top_srcdir=$srcdir ;;
1464     *) # Relative name.
1465     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1466     ac_top_srcdir=$ac_top_build_prefix$srcdir
1467     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1468 pcg 1.11 esac
1469 ayin 1.108 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1470 pcg 1.11
1471 ayin 1.108 cd "$ac_dir" || { ac_status=$?; continue; }
1472     # Check for guested configure.
1473     if test -f "$ac_srcdir/configure.gnu"; then
1474     echo &&
1475     $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1476     elif test -f "$ac_srcdir/configure"; then
1477     echo &&
1478     $SHELL "$ac_srcdir/configure" --help=recursive
1479 pcg 1.11 else
1480 sf-exg 1.132 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1481 ayin 1.108 fi || ac_status=$?
1482     cd "$ac_pwd" || { ac_status=$?; break; }
1483 pcg 1.11 done
1484     fi
1485    
1486 ayin 1.108 test -n "$ac_init_help" && exit $ac_status
1487 pcg 1.11 if $ac_init_version; then
1488     cat <<\_ACEOF
1489 ayin 1.108 configure
1490 sf-exg 1.132 generated by GNU Autoconf 2.65
1491 pcg 1.11
1492 sf-exg 1.132 Copyright (C) 2009 Free Software Foundation, Inc.
1493 pcg 1.11 This configure script is free software; the Free Software Foundation
1494     gives unlimited permission to copy, distribute and modify it.
1495     _ACEOF
1496 ayin 1.108 exit
1497 pcg 1.11 fi
1498    
1499 sf-exg 1.132 ## ------------------------ ##
1500     ## Autoconf initialization. ##
1501     ## ------------------------ ##
1502    
1503     # ac_fn_c_try_compile LINENO
1504     # --------------------------
1505     # Try to compile conftest.$ac_ext, and return whether this succeeded.
1506     ac_fn_c_try_compile ()
1507     {
1508     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1509     rm -f conftest.$ac_objext
1510     if { { ac_try="$ac_compile"
1511     case "(($ac_try" in
1512     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1513     *) ac_try_echo=$ac_try;;
1514     esac
1515     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1516     $as_echo "$ac_try_echo"; } >&5
1517     (eval "$ac_compile") 2>conftest.err
1518     ac_status=$?
1519     if test -s conftest.err; then
1520     grep -v '^ *+' conftest.err >conftest.er1
1521     cat conftest.er1 >&5
1522     mv -f conftest.er1 conftest.err
1523     fi
1524     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1525     test $ac_status = 0; } && {
1526     test -z "$ac_c_werror_flag" ||
1527     test ! -s conftest.err
1528     } && test -s conftest.$ac_objext; then :
1529     ac_retval=0
1530     else
1531     $as_echo "$as_me: failed program was:" >&5
1532     sed 's/^/| /' conftest.$ac_ext >&5
1533    
1534     ac_retval=1
1535     fi
1536     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1537     as_fn_set_status $ac_retval
1538 pcg 1.11
1539 sf-exg 1.132 } # ac_fn_c_try_compile
1540 pcg 1.11
1541 sf-exg 1.132 # ac_fn_cxx_try_compile LINENO
1542     # ----------------------------
1543     # Try to compile conftest.$ac_ext, and return whether this succeeded.
1544     ac_fn_cxx_try_compile ()
1545 pcg 1.11 {
1546 sf-exg 1.132 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547     rm -f conftest.$ac_objext
1548     if { { ac_try="$ac_compile"
1549     case "(($ac_try" in
1550     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551     *) ac_try_echo=$ac_try;;
1552     esac
1553     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554     $as_echo "$ac_try_echo"; } >&5
1555     (eval "$ac_compile") 2>conftest.err
1556     ac_status=$?
1557     if test -s conftest.err; then
1558     grep -v '^ *+' conftest.err >conftest.er1
1559     cat conftest.er1 >&5
1560     mv -f conftest.er1 conftest.err
1561     fi
1562     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563     test $ac_status = 0; } && {
1564     test -z "$ac_cxx_werror_flag" ||
1565     test ! -s conftest.err
1566     } && test -s conftest.$ac_objext; then :
1567     ac_retval=0
1568     else
1569     $as_echo "$as_me: failed program was:" >&5
1570     sed 's/^/| /' conftest.$ac_ext >&5
1571    
1572     ac_retval=1
1573     fi
1574     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1575     as_fn_set_status $ac_retval
1576    
1577     } # ac_fn_cxx_try_compile
1578 pcg 1.11
1579 sf-exg 1.132 # ac_fn_c_try_cpp LINENO
1580     # ----------------------
1581     # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1582     ac_fn_c_try_cpp ()
1583     {
1584     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585     if { { ac_try="$ac_cpp conftest.$ac_ext"
1586     case "(($ac_try" in
1587     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588     *) ac_try_echo=$ac_try;;
1589     esac
1590     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591     $as_echo "$ac_try_echo"; } >&5
1592     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1593     ac_status=$?
1594     if test -s conftest.err; then
1595     grep -v '^ *+' conftest.err >conftest.er1
1596     cat conftest.er1 >&5
1597     mv -f conftest.er1 conftest.err
1598     fi
1599     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600     test $ac_status = 0; } >/dev/null && {
1601     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1602     test ! -s conftest.err
1603     }; then :
1604     ac_retval=0
1605     else
1606     $as_echo "$as_me: failed program was:" >&5
1607     sed 's/^/| /' conftest.$ac_ext >&5
1608 pcg 1.11
1609 sf-exg 1.132 ac_retval=1
1610     fi
1611     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1612     as_fn_set_status $ac_retval
1613 pcg 1.11
1614 sf-exg 1.132 } # ac_fn_c_try_cpp
1615 ayin 1.108
1616 sf-exg 1.132 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1617     # -------------------------------------------------------
1618     # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1619     # the include files in INCLUDES and setting the cache variable VAR
1620     # accordingly.
1621     ac_fn_c_check_header_mongrel ()
1622 ayin 1.108 {
1623 sf-exg 1.132 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1625     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1626     $as_echo_n "checking for $2... " >&6; }
1627     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1628     $as_echo_n "(cached) " >&6
1629     fi
1630     eval ac_res=\$$3
1631     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1632     $as_echo "$ac_res" >&6; }
1633 ayin 1.108 else
1634 sf-exg 1.132 # Is the header compilable?
1635     { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1636     $as_echo_n "checking $2 usability... " >&6; }
1637     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1638 ayin 1.108 /* end confdefs.h. */
1639 sf-exg 1.132 $4
1640     #include <$2>
1641 ayin 1.108 _ACEOF
1642 sf-exg 1.132 if ac_fn_c_try_compile "$LINENO"; then :
1643     ac_header_compiler=yes
1644 pcg 1.1 else
1645 sf-exg 1.132 ac_header_compiler=no
1646 ayin 1.108 fi
1647     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1648 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1649     $as_echo "$ac_header_compiler" >&6; }
1650 ayin 1.108
1651 sf-exg 1.132 # Is the header present?
1652     { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1653     $as_echo_n "checking $2 presence... " >&6; }
1654     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655 pcg 1.11 /* end confdefs.h. */
1656 sf-exg 1.132 #include <$2>
1657 pcg 1.11 _ACEOF
1658 sf-exg 1.132 if ac_fn_c_try_cpp "$LINENO"; then :
1659     ac_header_preproc=yes
1660 pcg 1.1 else
1661 sf-exg 1.132 ac_header_preproc=no
1662 pcg 1.1 fi
1663 sf-exg 1.132 rm -f conftest.err conftest.$ac_ext
1664     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1665     $as_echo "$ac_header_preproc" >&6; }
1666 ayin 1.108
1667 sf-exg 1.132 # So? What about this header?
1668     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1669     yes:no: )
1670     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1671     $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1672     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1673     $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1674     ;;
1675     no:yes:* )
1676     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1677     $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1678     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1679     $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1680     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1681     $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1682     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1683     $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1684     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1685     $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1686     ;;
1687 ayin 1.108 esac
1688 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1689     $as_echo_n "checking for $2... " >&6; }
1690     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1691     $as_echo_n "(cached) " >&6
1692     else
1693     eval "$3=\$ac_header_compiler"
1694     fi
1695     eval ac_res=\$$3
1696     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1697     $as_echo "$ac_res" >&6; }
1698 pcg 1.11 fi
1699 sf-exg 1.132 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1700    
1701     } # ac_fn_c_check_header_mongrel
1702 pcg 1.11
1703 sf-exg 1.132 # ac_fn_c_try_run LINENO
1704     # ----------------------
1705     # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1706     # that executables *can* be run.
1707     ac_fn_c_try_run ()
1708     {
1709     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710     if { { ac_try="$ac_link"
1711 ayin 1.108 case "(($ac_try" in
1712     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713     *) ac_try_echo=$ac_try;;
1714     esac
1715 sf-exg 1.132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716     $as_echo "$ac_try_echo"; } >&5
1717     (eval "$ac_link") 2>&5
1718 pcg 1.11 ac_status=$?
1719 sf-exg 1.132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720     test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1721     { { case "(($ac_try" in
1722 ayin 1.108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723     *) ac_try_echo=$ac_try;;
1724     esac
1725 sf-exg 1.132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726     $as_echo "$ac_try_echo"; } >&5
1727     (eval "$ac_try") 2>&5
1728 pcg 1.11 ac_status=$?
1729 sf-exg 1.132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730     test $ac_status = 0; }; }; then :
1731     ac_retval=0
1732     else
1733     $as_echo "$as_me: program exited with status $ac_status" >&5
1734     $as_echo "$as_me: failed program was:" >&5
1735     sed 's/^/| /' conftest.$ac_ext >&5
1736    
1737     ac_retval=$ac_status
1738     fi
1739     rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1740     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1741     as_fn_set_status $ac_retval
1742    
1743     } # ac_fn_c_try_run
1744    
1745     # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1746     # -------------------------------------------------------
1747     # Tests whether HEADER exists and can be compiled using the include files in
1748     # INCLUDES, setting the cache variable VAR accordingly.
1749     ac_fn_c_check_header_compile ()
1750     {
1751     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753     $as_echo_n "checking for $2... " >&6; }
1754     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1755     $as_echo_n "(cached) " >&6
1756     else
1757     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758     /* end confdefs.h. */
1759     $4
1760     #include <$2>
1761     _ACEOF
1762     if ac_fn_c_try_compile "$LINENO"; then :
1763     eval "$3=yes"
1764     else
1765     eval "$3=no"
1766     fi
1767     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1768     fi
1769     eval ac_res=\$$3
1770     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1771     $as_echo "$ac_res" >&6; }
1772     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1773    
1774     } # ac_fn_c_check_header_compile
1775    
1776     # ac_fn_c_try_link LINENO
1777     # -----------------------
1778     # Try to link conftest.$ac_ext, and return whether this succeeded.
1779     ac_fn_c_try_link ()
1780     {
1781     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782     rm -f conftest.$ac_objext conftest$ac_exeext
1783     if { { ac_try="$ac_link"
1784 ayin 1.108 case "(($ac_try" in
1785     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786     *) ac_try_echo=$ac_try;;
1787     esac
1788 sf-exg 1.132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789     $as_echo "$ac_try_echo"; } >&5
1790     (eval "$ac_link") 2>conftest.err
1791 pcg 1.11 ac_status=$?
1792 sf-exg 1.132 if test -s conftest.err; then
1793     grep -v '^ *+' conftest.err >conftest.er1
1794     cat conftest.er1 >&5
1795     mv -f conftest.er1 conftest.err
1796     fi
1797     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798     test $ac_status = 0; } && {
1799     test -z "$ac_c_werror_flag" ||
1800     test ! -s conftest.err
1801     } && test -s conftest$ac_exeext && {
1802     test "$cross_compiling" = yes ||
1803     $as_test_x conftest$ac_exeext
1804     }; then :
1805     ac_retval=0
1806     else
1807     $as_echo "$as_me: failed program was:" >&5
1808     sed 's/^/| /' conftest.$ac_ext >&5
1809 pcg 1.11
1810 sf-exg 1.132 ac_retval=1
1811     fi
1812     # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1813     # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1814     # interfere with the next link command; also delete a directory that is
1815     # left behind by Apple's compiler. We do this before executing the actions.
1816     rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1817     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1818     as_fn_set_status $ac_retval
1819    
1820     } # ac_fn_c_try_link
1821 pcg 1.11
1822 sf-exg 1.132 # ac_fn_cxx_try_link LINENO
1823     # -------------------------
1824     # Try to link conftest.$ac_ext, and return whether this succeeded.
1825     ac_fn_cxx_try_link ()
1826 pcg 1.11 {
1827 sf-exg 1.132 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828     rm -f conftest.$ac_objext conftest$ac_exeext
1829     if { { ac_try="$ac_link"
1830 ayin 1.108 case "(($ac_try" in
1831     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832     *) ac_try_echo=$ac_try;;
1833     esac
1834 sf-exg 1.132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835     $as_echo "$ac_try_echo"; } >&5
1836     (eval "$ac_link") 2>conftest.err
1837 pcg 1.11 ac_status=$?
1838 sf-exg 1.132 if test -s conftest.err; then
1839     grep -v '^ *+' conftest.err >conftest.er1
1840     cat conftest.er1 >&5
1841     mv -f conftest.er1 conftest.err
1842     fi
1843     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844     test $ac_status = 0; } && {
1845 ayin 1.108 test -z "$ac_cxx_werror_flag" ||
1846     test ! -s conftest.err
1847 sf-exg 1.132 } && test -s conftest$ac_exeext && {
1848     test "$cross_compiling" = yes ||
1849     $as_test_x conftest$ac_exeext
1850     }; then :
1851     ac_retval=0
1852 pcg 1.11 else
1853 sf-exg 1.132 $as_echo "$as_me: failed program was:" >&5
1854 pcg 1.11 sed 's/^/| /' conftest.$ac_ext >&5
1855    
1856 sf-exg 1.132 ac_retval=1
1857 pcg 1.11 fi
1858 sf-exg 1.132 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1859     # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1860     # interfere with the next link command; also delete a directory that is
1861     # left behind by Apple's compiler. We do this before executing the actions.
1862     rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1863     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1864     as_fn_set_status $ac_retval
1865 ayin 1.108
1866 sf-exg 1.132 } # ac_fn_cxx_try_link
1867 pcg 1.11
1868 sf-exg 1.132 # ac_fn_cxx_check_func LINENO FUNC VAR
1869     # ------------------------------------
1870     # Tests whether FUNC exists, setting the cache variable VAR accordingly
1871     ac_fn_cxx_check_func ()
1872     {
1873     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875     $as_echo_n "checking for $2... " >&6; }
1876     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1877     $as_echo_n "(cached) " >&6
1878 pcg 1.11 else
1879 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880 pcg 1.11 /* end confdefs.h. */
1881 sf-exg 1.132 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1882     For example, HP-UX 11i <limits.h> declares gettimeofday. */
1883     #define $2 innocuous_$2
1884    
1885     /* System header to define __stub macros and hopefully few prototypes,
1886     which can conflict with char $2 (); below.
1887     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1888     <limits.h> exists even on freestanding compilers. */
1889    
1890     #ifdef __STDC__
1891     # include <limits.h>
1892     #else
1893     # include <assert.h>
1894     #endif
1895    
1896     #undef $2
1897    
1898     /* Override any GCC internal prototype to avoid an error.
1899     Use char because int might match the return type of a GCC
1900     builtin and then its argument prototype would still apply. */
1901     #ifdef __cplusplus
1902     extern "C"
1903     #endif
1904     char $2 ();
1905     /* The GNU C library defines this for functions which it implements
1906     to always fail with ENOSYS. Some functions are actually named
1907     something starting with __ and the normal name is an alias. */
1908     #if defined __stub_$2 || defined __stub___$2
1909     choke me
1910     #endif
1911 pcg 1.11
1912     int
1913     main ()
1914     {
1915 sf-exg 1.132 return $2 ();
1916 pcg 1.11 ;
1917     return 0;
1918     }
1919     _ACEOF
1920 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
1921     eval "$3=yes"
1922     else
1923     eval "$3=no"
1924     fi
1925     rm -f core conftest.err conftest.$ac_objext \
1926     conftest$ac_exeext conftest.$ac_ext
1927     fi
1928     eval ac_res=\$$3
1929     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930     $as_echo "$ac_res" >&6; }
1931     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1932    
1933     } # ac_fn_cxx_check_func
1934    
1935     # ac_fn_cxx_try_cpp LINENO
1936     # ------------------------
1937     # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1938     ac_fn_cxx_try_cpp ()
1939     {
1940     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941     if { { ac_try="$ac_cpp conftest.$ac_ext"
1942 ayin 1.108 case "(($ac_try" in
1943     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944     *) ac_try_echo=$ac_try;;
1945     esac
1946 sf-exg 1.132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947     $as_echo "$ac_try_echo"; } >&5
1948     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1949 pcg 1.11 ac_status=$?
1950 sf-exg 1.132 if test -s conftest.err; then
1951     grep -v '^ *+' conftest.err >conftest.er1
1952     cat conftest.er1 >&5
1953     mv -f conftest.er1 conftest.err
1954     fi
1955     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956     test $ac_status = 0; } >/dev/null && {
1957     test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1958 ayin 1.108 test ! -s conftest.err
1959 sf-exg 1.132 }; then :
1960     ac_retval=0
1961 pcg 1.11 else
1962 sf-exg 1.132 $as_echo "$as_me: failed program was:" >&5
1963 pcg 1.11 sed 's/^/| /' conftest.$ac_ext >&5
1964    
1965 sf-exg 1.132 ac_retval=1
1966     fi
1967     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1968     as_fn_set_status $ac_retval
1969    
1970     } # ac_fn_cxx_try_cpp
1971    
1972     # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1973     # ---------------------------------------------------------
1974     # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1975     # the include files in INCLUDES and setting the cache variable VAR
1976     # accordingly.
1977     ac_fn_cxx_check_header_mongrel ()
1978     {
1979     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1981     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1982     $as_echo_n "checking for $2... " >&6; }
1983     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1984     $as_echo_n "(cached) " >&6
1985     fi
1986     eval ac_res=\$$3
1987     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1988     $as_echo "$ac_res" >&6; }
1989     else
1990     # Is the header compilable?
1991     { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1992     $as_echo_n "checking $2 usability... " >&6; }
1993     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994     /* end confdefs.h. */
1995     $4
1996     #include <$2>
1997 pcg 1.11 _ACEOF
1998 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
1999     ac_header_compiler=yes
2000     else
2001     ac_header_compiler=no
2002     fi
2003     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2005     $as_echo "$ac_header_compiler" >&6; }
2006    
2007     # Is the header present?
2008     { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2009     $as_echo_n "checking $2 presence... " >&6; }
2010     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 pcg 1.11 /* end confdefs.h. */
2012 sf-exg 1.132 #include <$2>
2013     _ACEOF
2014     if ac_fn_cxx_try_cpp "$LINENO"; then :
2015     ac_header_preproc=yes
2016     else
2017     ac_header_preproc=no
2018     fi
2019     rm -f conftest.err conftest.$ac_ext
2020     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2021     $as_echo "$ac_header_preproc" >&6; }
2022    
2023     # So? What about this header?
2024     case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2025     yes:no: )
2026     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2027     $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2028     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2029     $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2030     ;;
2031     no:yes:* )
2032     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2033     $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2034     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2035     $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2036     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2037     $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2038     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2039     $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2040     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2041     $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2042     ;;
2043     esac
2044     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2045     $as_echo_n "checking for $2... " >&6; }
2046     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2047     $as_echo_n "(cached) " >&6
2048     else
2049     eval "$3=\$ac_header_compiler"
2050     fi
2051     eval ac_res=\$$3
2052     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053     $as_echo "$ac_res" >&6; }
2054     fi
2055     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2056 ayin 1.108
2057 sf-exg 1.132 } # ac_fn_cxx_check_header_mongrel
2058    
2059     # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2060     # ---------------------------------------------
2061     # Tests whether TYPE exists after having included INCLUDES, setting cache
2062     # variable VAR accordingly.
2063     ac_fn_cxx_check_type ()
2064     {
2065     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2067     $as_echo_n "checking for $2... " >&6; }
2068     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2069     $as_echo_n "(cached) " >&6
2070     else
2071     eval "$3=no"
2072     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073     /* end confdefs.h. */
2074     $4
2075     int
2076     main ()
2077     {
2078     if (sizeof ($2))
2079     return 0;
2080     ;
2081     return 0;
2082     }
2083     _ACEOF
2084     if ac_fn_cxx_try_compile "$LINENO"; then :
2085     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086     /* end confdefs.h. */
2087     $4
2088 pcg 1.11 int
2089     main ()
2090     {
2091 sf-exg 1.132 if (sizeof (($2)))
2092     return 0;
2093 pcg 1.11 ;
2094     return 0;
2095     }
2096     _ACEOF
2097 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
2098    
2099 pcg 1.11 else
2100 sf-exg 1.132 eval "$3=yes"
2101     fi
2102     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103     fi
2104     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105     fi
2106     eval ac_res=\$$3
2107     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2108     $as_echo "$ac_res" >&6; }
2109     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2110    
2111     } # ac_fn_cxx_check_type
2112    
2113     # ac_fn_c_find_intX_t LINENO BITS VAR
2114     # -----------------------------------
2115     # Finds a signed integer type with width BITS, setting cache variable VAR
2116     # accordingly.
2117     ac_fn_c_find_intX_t ()
2118     {
2119     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2120     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2121     $as_echo_n "checking for int$2_t... " >&6; }
2122     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2123     $as_echo_n "(cached) " >&6
2124     else
2125     eval "$3=no"
2126     # Order is important - never check a type that is potentially smaller
2127     # than half of the expected target width.
2128     for ac_type in int$2_t 'int' 'long int' \
2129     'long long int' 'short int' 'signed char'; do
2130     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131     /* end confdefs.h. */
2132     $ac_includes_default
2133     int
2134     main ()
2135     {
2136     static int test_array [1 - 2 * !(enum { N = $2 / 2 - 1 };
2137     0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2138     test_array [0] = 0
2139 pcg 1.11
2140 sf-exg 1.132 ;
2141     return 0;
2142     }
2143 pcg 1.11 _ACEOF
2144 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
2145     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146 pcg 1.11 /* end confdefs.h. */
2147 sf-exg 1.132 $ac_includes_default
2148 pcg 1.11 int
2149     main ()
2150     {
2151 sf-exg 1.132 static int test_array [1 - 2 * !(enum { N = $2 / 2 - 1 };
2152     ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2153     < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2154     test_array [0] = 0
2155 ayin 1.108
2156 pcg 1.11 ;
2157     return 0;
2158     }
2159     _ACEOF
2160 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
2161    
2162     else
2163     case $ac_type in #(
2164     int$2_t) :
2165     eval "$3=yes" ;; #(
2166     *) :
2167     eval "$3=\$ac_type" ;;
2168 ayin 1.108 esac
2169 pcg 1.11 fi
2170 ayin 1.108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2171     fi
2172     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2173 sf-exg 1.132 eval as_val=\$$3
2174     if test "x$as_val" = x""no; then :
2175 pcg 1.11
2176 ayin 1.108 else
2177 sf-exg 1.132 break
2178 ayin 1.108 fi
2179 sf-exg 1.132 done
2180 pcg 1.11 fi
2181 sf-exg 1.132 eval ac_res=\$$3
2182     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2183     $as_echo "$ac_res" >&6; }
2184     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2185    
2186     } # ac_fn_c_find_intX_t
2187    
2188     # ac_fn_c_find_uintX_t LINENO BITS VAR
2189     # ------------------------------------
2190     # Finds an unsigned integer type with width BITS, setting cache variable VAR
2191     # accordingly.
2192     ac_fn_c_find_uintX_t ()
2193     {
2194     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2195     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2196     $as_echo_n "checking for uint$2_t... " >&6; }
2197     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2198     $as_echo_n "(cached) " >&6
2199     else
2200     eval "$3=no"
2201     # Order is important - never check a type that is potentially smaller
2202     # than half of the expected target width.
2203     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2204     'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2205     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2206     /* end confdefs.h. */
2207     $ac_includes_default
2208     int
2209     main ()
2210     {
2211     static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2212     test_array [0] = 0
2213 ayin 1.108
2214 sf-exg 1.132 ;
2215     return 0;
2216     }
2217 pcg 1.11 _ACEOF
2218 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
2219     case $ac_type in #(
2220     uint$2_t) :
2221     eval "$3=yes" ;; #(
2222     *) :
2223     eval "$3=\$ac_type" ;;
2224 ayin 1.108 esac
2225 pcg 1.11 fi
2226 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227     eval as_val=\$$3
2228     if test "x$as_val" = x""no; then :
2229 ayin 1.108
2230 sf-exg 1.132 else
2231 pcg 1.11 break
2232     fi
2233 sf-exg 1.132 done
2234     fi
2235     eval ac_res=\$$3
2236     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2237     $as_echo "$ac_res" >&6; }
2238     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2239 pcg 1.11
2240 sf-exg 1.132 } # ac_fn_c_find_uintX_t
2241 pcg 1.11
2242 sf-exg 1.132 # ac_fn_cxx_try_run LINENO
2243     # ------------------------
2244     # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2245     # that executables *can* be run.
2246     ac_fn_cxx_try_run ()
2247     {
2248     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2249     if { { ac_try="$ac_link"
2250 ayin 1.108 case "(($ac_try" in
2251     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252     *) ac_try_echo=$ac_try;;
2253     esac
2254 sf-exg 1.132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2255     $as_echo "$ac_try_echo"; } >&5
2256     (eval "$ac_link") 2>&5
2257     ac_status=$?
2258     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2259     test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2260     { { case "(($ac_try" in
2261     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2262     *) ac_try_echo=$ac_try;;
2263     esac
2264     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2265     $as_echo "$ac_try_echo"; } >&5
2266     (eval "$ac_try") 2>&5
2267 pcg 1.11 ac_status=$?
2268 sf-exg 1.132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2269     test $ac_status = 0; }; }; then :
2270     ac_retval=0
2271 pcg 1.1 else
2272 sf-exg 1.132 $as_echo "$as_me: program exited with status $ac_status" >&5
2273     $as_echo "$as_me: failed program was:" >&5
2274 pcg 1.11 sed 's/^/| /' conftest.$ac_ext >&5
2275    
2276 sf-exg 1.132 ac_retval=$ac_status
2277 pcg 1.1 fi
2278 sf-exg 1.132 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2279     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2280     as_fn_set_status $ac_retval
2281    
2282     } # ac_fn_cxx_try_run
2283     cat >config.log <<_ACEOF
2284     This file contains any messages produced by compilers while
2285     running configure, to aid debugging if configure makes a mistake.
2286    
2287     It was created by $as_me, which was
2288     generated by GNU Autoconf 2.65. Invocation command line was
2289 ayin 1.108
2290 sf-exg 1.132 $ $0 $@
2291 pcg 1.11
2292     _ACEOF
2293 sf-exg 1.132 exec 5>>config.log
2294     {
2295     cat <<_ASUNAME
2296     ## --------- ##
2297     ## Platform. ##
2298     ## --------- ##
2299 pcg 1.11
2300 sf-exg 1.132 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2301     uname -m = `(uname -m) 2>/dev/null || echo unknown`
2302     uname -r = `(uname -r) 2>/dev/null || echo unknown`
2303     uname -s = `(uname -s) 2>/dev/null || echo unknown`
2304     uname -v = `(uname -v) 2>/dev/null || echo unknown`
2305 ayin 1.108
2306 sf-exg 1.132 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2307     /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2308 pcg 1.11
2309 sf-exg 1.132 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2310     /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2311     /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2312     /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2313     /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2314     /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2315     /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2316 pcg 1.11
2317 sf-exg 1.132 _ASUNAME
2318 pcg 1.1
2319 sf-exg 1.132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 pcg 1.11 for as_dir in $PATH
2321     do
2322     IFS=$as_save_IFS
2323     test -z "$as_dir" && as_dir=.
2324 sf-exg 1.132 $as_echo "PATH: $as_dir"
2325     done
2326 ayin 1.108 IFS=$as_save_IFS
2327 pcg 1.11
2328 sf-exg 1.132 } >&5
2329 pcg 1.1
2330 sf-exg 1.132 cat >&5 <<_ACEOF
2331 pcg 1.1
2332    
2333 sf-exg 1.132 ## ----------- ##
2334     ## Core tests. ##
2335     ## ----------- ##
2336 pcg 1.1
2337 sf-exg 1.132 _ACEOF
2338 pcg 1.1
2339    
2340 sf-exg 1.132 # Keep a trace of the command line.
2341     # Strip out --no-create and --no-recursion so they do not pile up.
2342     # Strip out --silent because we don't want to record it for future runs.
2343     # Also quote any args containing shell meta-characters.
2344     # Make two passes to allow for proper duplicate-argument suppression.
2345     ac_configure_args=
2346     ac_configure_args0=
2347     ac_configure_args1=
2348     ac_must_keep_next=false
2349     for ac_pass in 1 2
2350 ayin 1.108 do
2351 sf-exg 1.132 for ac_arg
2352 ayin 1.108 do
2353 sf-exg 1.132 case $ac_arg in
2354     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2355     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2356     | -silent | --silent | --silen | --sile | --sil)
2357     continue ;;
2358     *\'*)
2359     ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2360     esac
2361     case $ac_pass in
2362     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2363     2)
2364     as_fn_append ac_configure_args1 " '$ac_arg'"
2365     if test $ac_must_keep_next = true; then
2366     ac_must_keep_next=false # Got value, back to normal.
2367     else
2368     case $ac_arg in
2369     *=* | --config-cache | -C | -disable-* | --disable-* \
2370     | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2371     | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2372     | -with-* | --with-* | -without-* | --without-* | --x)
2373     case "$ac_configure_args0 " in
2374     "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2375     esac
2376     ;;
2377     -* ) ac_must_keep_next=true ;;
2378     esac
2379     fi
2380     as_fn_append ac_configure_args " '$ac_arg'"
2381     ;;
2382     esac
2383 ayin 1.108 done
2384 sf-exg 1.132 done
2385     { ac_configure_args0=; unset ac_configure_args0;}
2386     { ac_configure_args1=; unset ac_configure_args1;}
2387 ayin 1.108
2388 sf-exg 1.132 # When interrupted or exit'd, cleanup temporary files, and complete
2389     # config.log. We remove comments because anyway the quotes in there
2390     # would cause problems or look ugly.
2391     # WARNING: Use '\'' to represent an apostrophe within the trap.
2392     # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2393     trap 'exit_status=$?
2394     # Save into config.log some information that might help in debugging.
2395     {
2396     echo
2397 ayin 1.108
2398 sf-exg 1.132 cat <<\_ASBOX
2399     ## ---------------- ##
2400     ## Cache variables. ##
2401     ## ---------------- ##
2402     _ASBOX
2403     echo
2404     # The following way of writing the cache mishandles newlines in values,
2405     (
2406     for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2407     eval ac_val=\$$ac_var
2408     case $ac_val in #(
2409     *${as_nl}*)
2410     case $ac_var in #(
2411     *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2412     $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2413     esac
2414     case $ac_var in #(
2415     _ | IFS | as_nl) ;; #(
2416     BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2417     *) { eval $ac_var=; unset $ac_var;} ;;
2418     esac ;;
2419     esac
2420 ayin 1.108 done
2421 sf-exg 1.132 (set) 2>&1 |
2422     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2423     *${as_nl}ac_space=\ *)
2424     sed -n \
2425     "s/'\''/'\''\\\\'\'''\''/g;
2426     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2427     ;; #(
2428     *)
2429     sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2430     ;;
2431     esac |
2432     sort
2433     )
2434     echo
2435 root 1.105
2436 sf-exg 1.132 cat <<\_ASBOX
2437     ## ----------------- ##
2438     ## Output variables. ##
2439     ## ----------------- ##
2440     _ASBOX
2441     echo
2442     for ac_var in $ac_subst_vars
2443     do
2444     eval ac_val=\$$ac_var
2445     case $ac_val in
2446     *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2447     esac
2448     $as_echo "$ac_var='\''$ac_val'\''"
2449     done | sort
2450     echo
2451 root 1.105
2452 sf-exg 1.132 if test -n "$ac_subst_files"; then
2453     cat <<\_ASBOX
2454     ## ------------------- ##
2455     ## File substitutions. ##
2456     ## ------------------- ##
2457     _ASBOX
2458     echo
2459     for ac_var in $ac_subst_files
2460     do
2461     eval ac_val=\$$ac_var
2462     case $ac_val in
2463     *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2464     esac
2465     $as_echo "$ac_var='\''$ac_val'\''"
2466     done | sort
2467     echo
2468     fi
2469 root 1.105
2470 sf-exg 1.132 if test -s confdefs.h; then
2471     cat <<\_ASBOX
2472     ## ----------- ##
2473     ## confdefs.h. ##
2474     ## ----------- ##
2475     _ASBOX
2476     echo
2477     cat confdefs.h
2478     echo
2479 ayin 1.108 fi
2480 sf-exg 1.132 test "$ac_signal" != 0 &&
2481     $as_echo "$as_me: caught signal $ac_signal"
2482     $as_echo "$as_me: exit $exit_status"
2483     } >&5
2484     rm -f core *.core core.conftest.* &&
2485     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2486     exit $exit_status
2487     ' 0
2488     for ac_signal in 1 2 13 15; do
2489     trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2490 ayin 1.108 done
2491 sf-exg 1.132 ac_signal=0
2492 ayin 1.108
2493 sf-exg 1.132 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2494     rm -f -r conftest* confdefs.h
2495 ayin 1.108
2496 sf-exg 1.132 $as_echo "/* confdefs.h */" > confdefs.h
2497 ayin 1.108
2498 sf-exg 1.132 # Predefined preprocessor variables.
2499 ayin 1.108
2500 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
2501     #define PACKAGE_NAME "$PACKAGE_NAME"
2502     _ACEOF
2503 ayin 1.108
2504 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
2505     #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2506     _ACEOF
2507 ayin 1.108
2508 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
2509     #define PACKAGE_VERSION "$PACKAGE_VERSION"
2510     _ACEOF
2511 ayin 1.108
2512 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
2513     #define PACKAGE_STRING "$PACKAGE_STRING"
2514     _ACEOF
2515 ayin 1.108
2516 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
2517     #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2518     _ACEOF
2519 ayin 1.108
2520 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
2521     #define PACKAGE_URL "$PACKAGE_URL"
2522 ayin 1.104 _ACEOF
2523    
2524 ayin 1.108
2525 sf-exg 1.132 # Let the site file select an alternate cache file if it wants to.
2526     # Prefer an explicitly selected file to automatically selected ones.
2527     ac_site_file1=NONE
2528     ac_site_file2=NONE
2529     if test -n "$CONFIG_SITE"; then
2530     ac_site_file1=$CONFIG_SITE
2531     elif test "x$prefix" != xNONE; then
2532     ac_site_file1=$prefix/share/config.site
2533     ac_site_file2=$prefix/etc/config.site
2534 ayin 1.104 else
2535 sf-exg 1.132 ac_site_file1=$ac_default_prefix/share/config.site
2536     ac_site_file2=$ac_default_prefix/etc/config.site
2537 ayin 1.108 fi
2538 sf-exg 1.132 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2539     do
2540     test "x$ac_site_file" = xNONE && continue
2541     if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2542     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2543     $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2544     sed 's/^/| /' "$ac_site_file" >&5
2545     . "$ac_site_file"
2546     fi
2547     done
2548 ayin 1.108
2549 sf-exg 1.132 if test -r "$cache_file"; then
2550     # Some versions of bash will fail to source /dev/null (special files
2551     # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2552     if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2553     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2554     $as_echo "$as_me: loading cache $cache_file" >&6;}
2555     case $cache_file in
2556     [\\/]* | ?:[\\/]* ) . "$cache_file";;
2557     *) . "./$cache_file";;
2558     esac
2559     fi
2560 ayin 1.108 else
2561 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2562     $as_echo "$as_me: creating cache $cache_file" >&6;}
2563     >$cache_file
2564     fi
2565 ayin 1.106
2566 sf-exg 1.132 # Check that the precious variables saved in the cache have kept the same
2567     # value.
2568     ac_cache_corrupted=false
2569     for ac_var in $ac_precious_vars; do
2570     eval ac_old_set=\$ac_cv_env_${ac_var}_set
2571     eval ac_new_set=\$ac_env_${ac_var}_set
2572     eval ac_old_val=\$ac_cv_env_${ac_var}_value
2573     eval ac_new_val=\$ac_env_${ac_var}_value
2574     case $ac_old_set,$ac_new_set in
2575     set,)
2576     { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2577     $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2578     ac_cache_corrupted=: ;;
2579     ,set)
2580     { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2581     $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2582     ac_cache_corrupted=: ;;
2583     ,);;
2584     *)
2585     if test "x$ac_old_val" != "x$ac_new_val"; then
2586     # differences in whitespace do not lead to failure.
2587     ac_old_val_w=`echo x $ac_old_val`
2588     ac_new_val_w=`echo x $ac_new_val`
2589     if test "$ac_old_val_w" != "$ac_new_val_w"; then
2590     { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2591     $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2592     ac_cache_corrupted=:
2593     else
2594     { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2595     $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2596     eval $ac_var=\$ac_old_val
2597     fi
2598     { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2599     $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2600     { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2601     $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2602     fi;;
2603     esac
2604     # Pass precious variables to config.status.
2605     if test "$ac_new_set" = set; then
2606     case $ac_new_val in
2607     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2608     *) ac_arg=$ac_var=$ac_new_val ;;
2609     esac
2610     case " $ac_configure_args " in
2611     *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2612     *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2613     esac
2614 ayin 1.108 fi
2615 sf-exg 1.132 done
2616     if $ac_cache_corrupted; then
2617     { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2618     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2619     { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2620     $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2621     as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2622     fi
2623     ## -------------------- ##
2624     ## Main body of script. ##
2625     ## -------------------- ##
2626    
2627     ac_ext=c
2628     ac_cpp='$CPP $CPPFLAGS'
2629     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2630     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2631     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2632    
2633    
2634    
2635 ayin 1.106
2636 sf-exg 1.132 ac_config_headers="$ac_config_headers config.h:config.h.in"
2637 ayin 1.108
2638    
2639 sf-exg 1.132 ac_aux_dir=
2640     for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2641     for ac_t in install-sh install.sh shtool; do
2642     if test -f "$ac_dir/$ac_t"; then
2643     ac_aux_dir=$ac_dir
2644     ac_install_sh="$ac_aux_dir/$ac_t -c"
2645     break 2
2646     fi
2647     done
2648 ayin 1.108 done
2649 sf-exg 1.132 if test -z "$ac_aux_dir"; then
2650     as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2651 ayin 1.106 fi
2652    
2653 sf-exg 1.132 # These three variables are undocumented and unsupported,
2654     # and are intended to be withdrawn in a future Autoconf release.
2655     # They can cause serious problems if a builder's source tree is in a directory
2656     # whose full name contains unusual characters.
2657     ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2658     ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2659     ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2660 ayin 1.106
2661    
2662 sf-exg 1.132 # Make sure we can run config.sub.
2663     $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2664     as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2665 ayin 1.106
2666 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2667     $as_echo_n "checking build system type... " >&6; }
2668     if test "${ac_cv_build+set}" = set; then :
2669     $as_echo_n "(cached) " >&6
2670     else
2671     ac_build_alias=$build_alias
2672     test "x$ac_build_alias" = x &&
2673     ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2674     test "x$ac_build_alias" = x &&
2675     as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2676     ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2677     as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2678 ayin 1.106
2679 sf-exg 1.132 fi
2680     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2681     $as_echo "$ac_cv_build" >&6; }
2682     case $ac_cv_build in
2683     *-*-*) ;;
2684     *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2685 ayin 1.108 esac
2686 sf-exg 1.132 build=$ac_cv_build
2687     ac_save_IFS=$IFS; IFS='-'
2688     set x $ac_cv_build
2689     shift
2690     build_cpu=$1
2691     build_vendor=$2
2692     shift; shift
2693     # Remember, the first character of IFS is used to create $*,
2694     # except with old shells:
2695     build_os=$*
2696     IFS=$ac_save_IFS
2697     case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2698 root 1.80
2699 root 1.84
2700 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2701     $as_echo_n "checking host system type... " >&6; }
2702     if test "${ac_cv_host+set}" = set; then :
2703     $as_echo_n "(cached) " >&6
2704     else
2705     if test "x$host_alias" = x; then
2706     ac_cv_host=$ac_cv_build
2707     else
2708     ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2709     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2710     fi
2711 root 1.84
2712 sf-exg 1.132 fi
2713     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2714     $as_echo "$ac_cv_host" >&6; }
2715     case $ac_cv_host in
2716     *-*-*) ;;
2717     *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2718     esac
2719     host=$ac_cv_host
2720     ac_save_IFS=$IFS; IFS='-'
2721     set x $ac_cv_host
2722     shift
2723     host_cpu=$1
2724     host_vendor=$2
2725     shift; shift
2726     # Remember, the first character of IFS is used to create $*,
2727     # except with old shells:
2728     host_os=$*
2729     IFS=$ac_save_IFS
2730     case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2731 root 1.84
2732 ayin 1.108
2733 root 1.80
2734 sf-exg 1.132 VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2735     DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2736 root 1.80
2737 sf-exg 1.132 echo ""
2738     echo "configuring for rxvt $VERSION"
2739     echo ""
2740 root 1.83
2741 sf-exg 1.132 orig_CXXFLAGS="$CXXFLAGS"
2742 root 1.83
2743 sf-exg 1.132 ac_ext=c
2744     ac_cpp='$CPP $CPPFLAGS'
2745     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2746     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2747     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2748     if test -n "$ac_tool_prefix"; then
2749     # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2750     set dummy ${ac_tool_prefix}gcc; ac_word=$2
2751     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2752     $as_echo_n "checking for $ac_word... " >&6; }
2753     if test "${ac_cv_prog_CC+set}" = set; then :
2754     $as_echo_n "(cached) " >&6
2755     else
2756     if test -n "$CC"; then
2757     ac_cv_prog_CC="$CC" # Let the user override the test.
2758 root 1.80 else
2759 sf-exg 1.132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760     for as_dir in $PATH
2761     do
2762     IFS=$as_save_IFS
2763     test -z "$as_dir" && as_dir=.
2764     for ac_exec_ext in '' $ac_executable_extensions; do
2765     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2768     break 2
2769     fi
2770     done
2771     done
2772     IFS=$as_save_IFS
2773 root 1.80
2774     fi
2775 sf-exg 1.132 fi
2776     CC=$ac_cv_prog_CC
2777     if test -n "$CC"; then
2778     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2779     $as_echo "$CC" >&6; }
2780     else
2781     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2782     $as_echo "no" >&6; }
2783 root 1.80 fi
2784    
2785    
2786 sf-exg 1.132 fi
2787     if test -z "$ac_cv_prog_CC"; then
2788     ac_ct_CC=$CC
2789     # Extract the first word of "gcc", so it can be a program name with args.
2790     set dummy gcc; ac_word=$2
2791     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2792     $as_echo_n "checking for $ac_word... " >&6; }
2793     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2794     $as_echo_n "(cached) " >&6
2795     else
2796     if test -n "$ac_ct_CC"; then
2797     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2798     else
2799     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800     for as_dir in $PATH
2801     do
2802     IFS=$as_save_IFS
2803     test -z "$as_dir" && as_dir=.
2804     for ac_exec_ext in '' $ac_executable_extensions; do
2805     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2806     ac_cv_prog_ac_ct_CC="gcc"
2807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2808     break 2
2809     fi
2810     done
2811     done
2812     IFS=$as_save_IFS
2813 pcg 1.11
2814 sf-exg 1.132 fi
2815     fi
2816     ac_ct_CC=$ac_cv_prog_ac_ct_CC
2817     if test -n "$ac_ct_CC"; then
2818     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2819     $as_echo "$ac_ct_CC" >&6; }
2820 root 1.57 else
2821 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822     $as_echo "no" >&6; }
2823     fi
2824 root 1.57
2825 sf-exg 1.132 if test "x$ac_ct_CC" = x; then
2826     CC=""
2827     else
2828     case $cross_compiling:$ac_tool_warned in
2829     yes:)
2830     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2831     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2832     ac_tool_warned=yes ;;
2833 ayin 1.108 esac
2834 sf-exg 1.132 CC=$ac_ct_CC
2835     fi
2836 root 1.57 else
2837 sf-exg 1.132 CC="$ac_cv_prog_CC"
2838 root 1.57 fi
2839 ayin 1.108
2840 sf-exg 1.132 if test -z "$CC"; then
2841     if test -n "$ac_tool_prefix"; then
2842     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2843     set dummy ${ac_tool_prefix}cc; ac_word=$2
2844     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2845     $as_echo_n "checking for $ac_word... " >&6; }
2846     if test "${ac_cv_prog_CC+set}" = set; then :
2847     $as_echo_n "(cached) " >&6
2848 root 1.57 else
2849 sf-exg 1.132 if test -n "$CC"; then
2850     ac_cv_prog_CC="$CC" # Let the user override the test.
2851 pcg 1.25 else
2852 sf-exg 1.132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853     for as_dir in $PATH
2854     do
2855     IFS=$as_save_IFS
2856     test -z "$as_dir" && as_dir=.
2857     for ac_exec_ext in '' $ac_executable_extensions; do
2858     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2859     ac_cv_prog_CC="${ac_tool_prefix}cc"
2860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2861     break 2
2862     fi
2863     done
2864     done
2865     IFS=$as_save_IFS
2866 pcg 1.25
2867 sf-exg 1.132 fi
2868     fi
2869     CC=$ac_cv_prog_CC
2870     if test -n "$CC"; then
2871     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2872     $as_echo "$CC" >&6; }
2873 pcg 1.25 else
2874 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875     $as_echo "no" >&6; }
2876     fi
2877    
2878 pcg 1.25
2879 sf-exg 1.132 fi
2880 pcg 1.25 fi
2881 sf-exg 1.132 if test -z "$CC"; then
2882     # Extract the first word of "cc", so it can be a program name with args.
2883     set dummy cc; ac_word=$2
2884     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2885     $as_echo_n "checking for $ac_word... " >&6; }
2886     if test "${ac_cv_prog_CC+set}" = set; then :
2887     $as_echo_n "(cached) " >&6
2888     else
2889     if test -n "$CC"; then
2890     ac_cv_prog_CC="$CC" # Let the user override the test.
2891     else
2892     ac_prog_rejected=no
2893     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894     for as_dir in $PATH
2895     do
2896     IFS=$as_save_IFS
2897     test -z "$as_dir" && as_dir=.
2898     for ac_exec_ext in '' $ac_executable_extensions; do
2899     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2900     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2901     ac_prog_rejected=yes
2902     continue
2903     fi
2904     ac_cv_prog_CC="cc"
2905     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2906     break 2
2907     fi
2908     done
2909     done
2910     IFS=$as_save_IFS
2911 ayin 1.108
2912 sf-exg 1.132 if test $ac_prog_rejected = yes; then
2913     # We found a bogon in the path, so make sure we never use it.
2914     set dummy $ac_cv_prog_CC
2915     shift
2916     if test $# != 0; then
2917     # We chose a different compiler from the bogus one.
2918     # However, it has the same basename, so the bogon will be chosen
2919     # first if we set CC to just the basename; use the full file name.
2920     shift
2921     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2922     fi
2923     fi
2924 pcg 1.25 fi
2925     fi
2926 sf-exg 1.132 CC=$ac_cv_prog_CC
2927     if test -n "$CC"; then
2928     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2929     $as_echo "$CC" >&6; }
2930     else
2931     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2932     $as_echo "no" >&6; }
2933 root 1.57 fi
2934    
2935    
2936 sf-exg 1.132 fi
2937     if test -z "$CC"; then
2938     if test -n "$ac_tool_prefix"; then
2939     for ac_prog in cl.exe
2940     do
2941     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2942     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2943     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944     $as_echo_n "checking for $ac_word... " >&6; }
2945     if test "${ac_cv_prog_CC+set}" = set; then :
2946     $as_echo_n "(cached) " >&6
2947     else
2948     if test -n "$CC"; then
2949     ac_cv_prog_CC="$CC" # Let the user override the test.
2950 root 1.57 else
2951 sf-exg 1.132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952     for as_dir in $PATH
2953     do
2954     IFS=$as_save_IFS
2955     test -z "$as_dir" && as_dir=.
2956     for ac_exec_ext in '' $ac_executable_extensions; do
2957     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2958     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2960     break 2
2961     fi
2962     done
2963     done
2964     IFS=$as_save_IFS
2965 root 1.57
2966 sf-exg 1.132 fi
2967     fi
2968     CC=$ac_cv_prog_CC
2969     if test -n "$CC"; then
2970     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2971     $as_echo "$CC" >&6; }
2972     else
2973     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974     $as_echo "no" >&6; }
2975     fi
2976 root 1.57
2977    
2978 sf-exg 1.132 test -n "$CC" && break
2979     done
2980     fi
2981     if test -z "$CC"; then
2982     ac_ct_CC=$CC
2983     for ac_prog in cl.exe
2984     do
2985     # Extract the first word of "$ac_prog", so it can be a program name with args.
2986     set dummy $ac_prog; ac_word=$2
2987     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988     $as_echo_n "checking for $ac_word... " >&6; }
2989     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2990     $as_echo_n "(cached) " >&6
2991     else
2992     if test -n "$ac_ct_CC"; then
2993     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2994 root 1.57 else
2995 sf-exg 1.132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996     for as_dir in $PATH
2997     do
2998     IFS=$as_save_IFS
2999     test -z "$as_dir" && as_dir=.
3000     for ac_exec_ext in '' $ac_executable_extensions; do
3001     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3002     ac_cv_prog_ac_ct_CC="$ac_prog"
3003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3004     break 2
3005     fi
3006     done
3007     done
3008     IFS=$as_save_IFS
3009 pcg 1.25
3010 root 1.57 fi
3011     fi
3012 sf-exg 1.132 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3013     if test -n "$ac_ct_CC"; then
3014     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3015     $as_echo "$ac_ct_CC" >&6; }
3016 root 1.57 else
3017 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018     $as_echo "no" >&6; }
3019     fi
3020    
3021    
3022     test -n "$ac_ct_CC" && break
3023     done
3024 pcg 1.25
3025 sf-exg 1.132 if test "x$ac_ct_CC" = x; then
3026     CC=""
3027     else
3028     case $cross_compiling:$ac_tool_warned in
3029     yes:)
3030     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3031     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3032     ac_tool_warned=yes ;;
3033 ayin 1.108 esac
3034 sf-exg 1.132 CC=$ac_ct_CC
3035     fi
3036 pcg 1.25 fi
3037 ayin 1.108
3038 pcg 1.25 fi
3039    
3040 root 1.57
3041 sf-exg 1.132 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3042     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3043     as_fn_error "no acceptable C compiler found in \$PATH
3044     See \`config.log' for more details." "$LINENO" 5; }
3045 root 1.57
3046 sf-exg 1.132 # Provide some information about the compiler.
3047     $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3048     set X $ac_compile
3049     ac_compiler=$2
3050     for ac_option in --version -v -V -qversion; do
3051     { { ac_try="$ac_compiler $ac_option >&5"
3052     case "(($ac_try" in
3053     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054     *) ac_try_echo=$ac_try;;
3055     esac
3056     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3057     $as_echo "$ac_try_echo"; } >&5
3058     (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3059     ac_status=$?
3060     if test -s conftest.err; then
3061     sed '10a\
3062     ... rest of stderr output deleted ...
3063     10q' conftest.err >conftest.er1
3064     cat conftest.er1 >&5
3065     fi
3066     rm -f conftest.er1 conftest.err
3067     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3068     test $ac_status = 0; }
3069     done
3070 root 1.57
3071 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3072     /* end confdefs.h. */
3073 root 1.57
3074     int
3075     main ()
3076     {
3077 sf-exg 1.132
3078 root 1.57 ;
3079     return 0;
3080     }
3081     _ACEOF
3082 sf-exg 1.132 ac_clean_files_save=$ac_clean_files
3083     ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3084     # Try to create an executable without -o first, disregard a.out.
3085     # It will help us diagnose broken compilers, and finding out an intuition
3086     # of exeext.
3087     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3088     $as_echo_n "checking whether the C compiler works... " >&6; }
3089     ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3090    
3091     # The possible output files:
3092     ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3093    
3094     ac_rmfiles=
3095     for ac_file in $ac_files
3096     do
3097     case $ac_file in
3098     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3099     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3100     esac
3101     done
3102     rm -f $ac_rmfiles
3103    
3104     if { { ac_try="$ac_link_default"
3105 ayin 1.108 case "(($ac_try" in
3106     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107     *) ac_try_echo=$ac_try;;
3108     esac
3109 sf-exg 1.132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3110     $as_echo "$ac_try_echo"; } >&5
3111     (eval "$ac_link_default") 2>&5
3112 root 1.57 ac_status=$?
3113 sf-exg 1.132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3114     test $ac_status = 0; }; then :
3115     # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3116     # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3117     # in a Makefile. We should not override ac_cv_exeext if it was cached,
3118     # so that the user can short-circuit this test for compilers unknown to
3119     # Autoconf.
3120     for ac_file in $ac_files ''
3121     do
3122     test -f "$ac_file" || continue
3123     case $ac_file in
3124     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3125     ;;
3126     [ab].out )
3127     # We found the default executable, but exeext='' is most
3128     # certainly right.
3129     break;;
3130     *.* )
3131     if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3132     then :; else
3133     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3134     fi
3135     # We set ac_cv_exeext here because the later test for it is not
3136     # safe: cross compilers may not add the suffix if given an `-o'
3137     # argument, so we may need to know it at that point already.
3138     # Even if this section looks crufty: it has the advantage of
3139     # actually working.
3140     break;;
3141     * )
3142     break;;
3143     esac
3144     done
3145     test "$ac_cv_exeext" = no && ac_cv_exeext=
3146    
3147 root 1.57 else
3148 sf-exg 1.132 ac_file=''
3149 root 1.57 fi
3150 sf-exg 1.132 if test -z "$ac_file"; then :
3151     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152     $as_echo "no" >&6; }
3153     $as_echo "$as_me: failed program was:" >&5
3154     sed 's/^/| /' conftest.$ac_ext >&5
3155    
3156     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3157     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3158     { as_fn_set_status 77
3159     as_fn_error "C compiler cannot create executables
3160     See \`config.log' for more details." "$LINENO" 5; }; }
3161     else
3162     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3163     $as_echo "yes" >&6; }
3164     fi
3165     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3166     $as_echo_n "checking for C compiler default output file name... " >&6; }
3167     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3168     $as_echo "$ac_file" >&6; }
3169     ac_exeext=$ac_cv_exeext
3170 ayin 1.108
3171 sf-exg 1.132 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3172     ac_clean_files=$ac_clean_files_save
3173     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3174     $as_echo_n "checking for suffix of executables... " >&6; }
3175     if { { ac_try="$ac_link"
3176     case "(($ac_try" in
3177     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178     *) ac_try_echo=$ac_try;;
3179     esac
3180     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3181     $as_echo "$ac_try_echo"; } >&5
3182     (eval "$ac_link") 2>&5
3183     ac_status=$?
3184     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3185     test $ac_status = 0; }; then :
3186     # If both `conftest.exe' and `conftest' are `present' (well, observable)
3187     # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3188     # work properly (i.e., refer to `conftest.exe'), while it won't with
3189     # `rm'.
3190     for ac_file in conftest.exe conftest conftest.*; do
3191     test -f "$ac_file" || continue
3192     case $ac_file in
3193     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3194     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3195     break;;
3196     * ) break;;
3197     esac
3198     done
3199 root 1.57 else
3200 sf-exg 1.132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3201     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3202     as_fn_error "cannot compute suffix of executables: cannot compile and link
3203     See \`config.log' for more details." "$LINENO" 5; }
3204     fi
3205     rm -f conftest conftest$ac_cv_exeext
3206     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3207     $as_echo "$ac_cv_exeext" >&6; }
3208    
3209     rm -f conftest.$ac_ext
3210     EXEEXT=$ac_cv_exeext
3211     ac_exeext=$EXEEXT
3212     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213 pcg 1.25 /* end confdefs.h. */
3214 sf-exg 1.132 #include <stdio.h>
3215 pcg 1.25 int
3216     main ()
3217     {
3218 sf-exg 1.132 FILE *f = fopen ("conftest.out", "w");
3219     return ferror (f) || fclose (f) != 0;
3220    
3221 pcg 1.25 ;
3222     return 0;
3223     }
3224     _ACEOF
3225 sf-exg 1.132 ac_clean_files="$ac_clean_files conftest.out"
3226     # Check that the compiler produces executables we can run. If not, either
3227     # the compiler is broken, or we cross compile.
3228     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3229     $as_echo_n "checking whether we are cross compiling... " >&6; }
3230     if test "$cross_compiling" != yes; then
3231     { { ac_try="$ac_link"
3232 ayin 1.108 case "(($ac_try" in
3233     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234     *) ac_try_echo=$ac_try;;
3235     esac
3236 sf-exg 1.132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3237     $as_echo "$ac_try_echo"; } >&5
3238     (eval "$ac_link") 2>&5
3239     ac_status=$?
3240     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3241     test $ac_status = 0; }
3242     if { ac_try='./conftest$ac_cv_exeext'
3243     { { case "(($ac_try" in
3244     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245     *) ac_try_echo=$ac_try;;
3246     esac
3247     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3248     $as_echo "$ac_try_echo"; } >&5
3249     (eval "$ac_try") 2>&5
3250 pcg 1.25 ac_status=$?
3251 sf-exg 1.132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3252     test $ac_status = 0; }; }; then
3253     cross_compiling=no
3254     else
3255     if test "$cross_compiling" = maybe; then
3256     cross_compiling=yes
3257     else
3258     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3259     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3260     as_fn_error "cannot run C compiled programs.
3261     If you meant to cross compile, use \`--host'.
3262     See \`config.log' for more details." "$LINENO" 5; }
3263 root 1.54 fi
3264 root 1.130 fi
3265     fi
3266 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3267     $as_echo "$cross_compiling" >&6; }
3268 root 1.130
3269 sf-exg 1.132 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3270     ac_clean_files=$ac_clean_files_save
3271     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3272     $as_echo_n "checking for suffix of object files... " >&6; }
3273     if test "${ac_cv_objext+set}" = set; then :
3274     $as_echo_n "(cached) " >&6
3275     else
3276     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3277 ayin 1.114 /* end confdefs.h. */
3278    
3279     int
3280     main ()
3281     {
3282    
3283     ;
3284     return 0;
3285     }
3286     _ACEOF
3287 sf-exg 1.132 rm -f conftest.o conftest.obj
3288     if { { ac_try="$ac_compile"
3289 ayin 1.114 case "(($ac_try" in
3290     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291     *) ac_try_echo=$ac_try;;
3292     esac
3293 sf-exg 1.132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3294     $as_echo "$ac_try_echo"; } >&5
3295     (eval "$ac_compile") 2>&5
3296 ayin 1.114 ac_status=$?
3297 sf-exg 1.132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3298     test $ac_status = 0; }; then :
3299     for ac_file in conftest.o conftest.obj conftest.*; do
3300     test -f "$ac_file" || continue;
3301     case $ac_file in
3302     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3303     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3304     break;;
3305     esac
3306     done
3307 ayin 1.114 else
3308 sf-exg 1.132 $as_echo "$as_me: failed program was:" >&5
3309 ayin 1.114 sed 's/^/| /' conftest.$ac_ext >&5
3310    
3311 sf-exg 1.132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3312     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3313     as_fn_error "cannot compute suffix of object files: cannot compile
3314     See \`config.log' for more details." "$LINENO" 5; }
3315     fi
3316     rm -f conftest.$ac_cv_objext conftest.$ac_ext
3317 ayin 1.114 fi
3318 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3319     $as_echo "$ac_cv_objext" >&6; }
3320     OBJEXT=$ac_cv_objext
3321     ac_objext=$OBJEXT
3322     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3323     $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3324     if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3325     $as_echo_n "(cached) " >&6
3326     else
3327     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3328     /* end confdefs.h. */
3329    
3330     int
3331     main ()
3332     {
3333     #ifndef __GNUC__
3334     choke me
3335     #endif
3336 ayin 1.114
3337 sf-exg 1.132 ;
3338     return 0;
3339     }
3340     _ACEOF
3341     if ac_fn_c_try_compile "$LINENO"; then :
3342     ac_compiler_gnu=yes
3343     else
3344     ac_compiler_gnu=no
3345     fi
3346 ayin 1.114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3347 sf-exg 1.132 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3348    
3349     fi
3350     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3351     $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3352     if test $ac_compiler_gnu = yes; then
3353     GCC=yes
3354     else
3355     GCC=
3356 ayin 1.114 fi
3357 sf-exg 1.132 ac_test_CFLAGS=${CFLAGS+set}
3358     ac_save_CFLAGS=$CFLAGS
3359     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3360     $as_echo_n "checking whether $CC accepts -g... " >&6; }
3361     if test "${ac_cv_prog_cc_g+set}" = set; then :
3362     $as_echo_n "(cached) " >&6
3363     else
3364     ac_save_c_werror_flag=$ac_c_werror_flag
3365     ac_c_werror_flag=yes
3366     ac_cv_prog_cc_g=no
3367     CFLAGS="-g"
3368     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3369     /* end confdefs.h. */
3370 ayin 1.114
3371 sf-exg 1.132 int
3372     main ()
3373     {
3374 root 1.105
3375 sf-exg 1.132 ;
3376     return 0;
3377     }
3378     _ACEOF
3379     if ac_fn_c_try_compile "$LINENO"; then :
3380     ac_cv_prog_cc_g=yes
3381     else
3382     CFLAGS=""
3383     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384     /* end confdefs.h. */
3385 ayin 1.108
3386 sf-exg 1.132 int
3387     main ()
3388     {
3389 root 1.105
3390 sf-exg 1.132 ;
3391     return 0;
3392     }
3393     _ACEOF
3394     if ac_fn_c_try_compile "$LINENO"; then :
3395 ayin 1.108
3396 sf-exg 1.132 else
3397     ac_c_werror_flag=$ac_save_c_werror_flag
3398     CFLAGS="-g"
3399     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400     /* end confdefs.h. */
3401 root 1.105
3402 sf-exg 1.132 int
3403     main ()
3404     {
3405 ayin 1.108
3406 sf-exg 1.132 ;
3407     return 0;
3408     }
3409     _ACEOF
3410     if ac_fn_c_try_compile "$LINENO"; then :
3411     ac_cv_prog_cc_g=yes
3412     fi
3413     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3414     fi
3415     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3416     fi
3417     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3418     ac_c_werror_flag=$ac_save_c_werror_flag
3419     fi
3420     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3421     $as_echo "$ac_cv_prog_cc_g" >&6; }
3422     if test "$ac_test_CFLAGS" = set; then
3423     CFLAGS=$ac_save_CFLAGS
3424     elif test $ac_cv_prog_cc_g = yes; then
3425     if test "$GCC" = yes; then
3426     CFLAGS="-g -O2"
3427     else
3428     CFLAGS="-g"
3429     fi
3430     else
3431     if test "$GCC" = yes; then
3432     CFLAGS="-O2"
3433     else
3434     CFLAGS=
3435 pcg 1.1 fi
3436 ayin 1.108 fi
3437 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3438     $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3439     if test "${ac_cv_prog_cc_c89+set}" = set; then :
3440     $as_echo_n "(cached) " >&6
3441     else
3442     ac_cv_prog_cc_c89=no
3443     ac_save_CC=$CC
3444     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445     /* end confdefs.h. */
3446     #include <stdarg.h>
3447     #include <stdio.h>
3448     #include <sys/types.h>
3449     #include <sys/stat.h>
3450     /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3451     struct buf { int x; };
3452     FILE * (*rcsopen) (struct buf *, struct stat *, int);
3453     static char *e (p, i)
3454     char **p;
3455     int i;
3456     {
3457     return p[i];
3458     }
3459     static char *f (char * (*g) (char **, int), char **p, ...)
3460     {
3461     char *s;
3462     va_list v;
3463     va_start (v,p);
3464     s = g (p, va_arg (v,int));
3465     va_end (v);
3466     return s;
3467     }
3468    
3469     /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3470     function prototypes and stuff, but not '\xHH' hex character constants.
3471     These don't provoke an error unfortunately, instead are silently treated
3472     as 'x'. The following induces an error, until -std is added to get
3473     proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3474     array size at least. It's necessary to write '\x00'==0 to get something
3475     that's true only with -std. */
3476     int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3477 root 1.105
3478 sf-exg 1.132 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3479     inside strings and character constants. */
3480     #define FOO(x) 'x'
3481     int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3482 ayin 1.108
3483 sf-exg 1.132 int test (int i, double x);
3484     struct s1 {int (*f) (int a);};
3485     struct s2 {int (*f) (double a);};
3486     int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3487     int argc;
3488     char **argv;
3489     int
3490     main ()
3491     {
3492     return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3493     ;
3494     return 0;
3495     }
3496     _ACEOF
3497     for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3498     -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3499     do
3500     CC="$ac_save_CC $ac_arg"
3501     if ac_fn_c_try_compile "$LINENO"; then :
3502     ac_cv_prog_cc_c89=$ac_arg
3503 ayin 1.108 fi
3504 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext
3505     test "x$ac_cv_prog_cc_c89" != "xno" && break
3506     done
3507     rm -f conftest.$ac_ext
3508     CC=$ac_save_CC
3509 root 1.103
3510 sf-exg 1.132 fi
3511     # AC_CACHE_VAL
3512     case "x$ac_cv_prog_cc_c89" in
3513     x)
3514     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3515     $as_echo "none needed" >&6; } ;;
3516     xno)
3517     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3518     $as_echo "unsupported" >&6; } ;;
3519     *)
3520     CC="$CC $ac_cv_prog_cc_c89"
3521     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3522     $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3523     esac
3524     if test "x$ac_cv_prog_cc_c89" != xno; then :
3525 root 1.105
3526 ayin 1.108 fi
3527 root 1.105
3528 sf-exg 1.132 ac_ext=c
3529     ac_cpp='$CPP $CPPFLAGS'
3530     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3531     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3532     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3533 ayin 1.108
3534 sf-exg 1.132 ac_ext=cpp
3535     ac_cpp='$CXXCPP $CPPFLAGS'
3536     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3537     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3539     if test -z "$CXX"; then
3540     if test -n "$CCC"; then
3541     CXX=$CCC
3542     else
3543     if test -n "$ac_tool_prefix"; then
3544     for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3545     do
3546     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3547     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3548     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3549     $as_echo_n "checking for $ac_word... " >&6; }
3550     if test "${ac_cv_prog_CXX+set}" = set; then :
3551     $as_echo_n "(cached) " >&6
3552     else
3553     if test -n "$CXX"; then
3554     ac_cv_prog_CXX="$CXX" # Let the user override the test.
3555     else
3556     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557     for as_dir in $PATH
3558     do
3559     IFS=$as_save_IFS
3560     test -z "$as_dir" && as_dir=.
3561     for ac_exec_ext in '' $ac_executable_extensions; do
3562     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3563     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3565     break 2
3566 pcg 1.1 fi
3567 sf-exg 1.132 done
3568     done
3569     IFS=$as_save_IFS
3570 root 1.105
3571 ayin 1.108 fi
3572     fi
3573 sf-exg 1.132 CXX=$ac_cv_prog_CXX
3574     if test -n "$CXX"; then
3575     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3576     $as_echo "$CXX" >&6; }
3577     else
3578     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579     $as_echo "no" >&6; }
3580 ayin 1.108 fi
3581 root 1.105
3582 ayin 1.108
3583 sf-exg 1.132 test -n "$CXX" && break
3584     done
3585 ayin 1.108 fi
3586 sf-exg 1.132 if test -z "$CXX"; then
3587     ac_ct_CXX=$CXX
3588     for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3589     do
3590     # Extract the first word of "$ac_prog", so it can be a program name with args.
3591     set dummy $ac_prog; ac_word=$2
3592     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3593     $as_echo_n "checking for $ac_word... " >&6; }
3594     if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3595     $as_echo_n "(cached) " >&6
3596     else
3597     if test -n "$ac_ct_CXX"; then
3598     ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3599     else
3600     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601     for as_dir in $PATH
3602     do
3603     IFS=$as_save_IFS
3604     test -z "$as_dir" && as_dir=.
3605     for ac_exec_ext in '' $ac_executable_extensions; do
3606     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3607     ac_cv_prog_ac_ct_CXX="$ac_prog"
3608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3609     break 2
3610 root 1.60 fi
3611 sf-exg 1.132 done
3612     done
3613     IFS=$as_save_IFS
3614 ayin 1.108
3615     fi
3616     fi
3617 sf-exg 1.132 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3618     if test -n "$ac_ct_CXX"; then
3619     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3620     $as_echo "$ac_ct_CXX" >&6; }
3621     else
3622     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3623     $as_echo "no" >&6; }
3624 ayin 1.108 fi
3625 root 1.105
3626 ayin 1.108
3627 sf-exg 1.132 test -n "$ac_ct_CXX" && break
3628     done
3629 pcg 1.1
3630 sf-exg 1.132 if test "x$ac_ct_CXX" = x; then
3631     CXX="g++"
3632     else
3633     case $cross_compiling:$ac_tool_warned in
3634     yes:)
3635     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3636     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3637     ac_tool_warned=yes ;;
3638     esac
3639     CXX=$ac_ct_CXX
3640 pcg 1.1 fi
3641 ayin 1.108 fi
3642 root 1.105
3643 pcg 1.1 fi
3644 ayin 1.108 fi
3645 sf-exg 1.132 # Provide some information about the compiler.
3646     $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3647     set X $ac_compile
3648     ac_compiler=$2
3649     for ac_option in --version -v -V -qversion; do
3650     { { ac_try="$ac_compiler $ac_option >&5"
3651     case "(($ac_try" in
3652     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653     *) ac_try_echo=$ac_try;;
3654     esac
3655     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3656     $as_echo "$ac_try_echo"; } >&5
3657     (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3658     ac_status=$?
3659     if test -s conftest.err; then
3660     sed '10a\
3661     ... rest of stderr output deleted ...
3662     10q' conftest.err >conftest.er1
3663     cat conftest.er1 >&5
3664 root 1.26 fi
3665 sf-exg 1.132 rm -f conftest.er1 conftest.err
3666     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3667     test $ac_status = 0; }
3668     done
3669 ayin 1.108
3670 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3671     $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3672     if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3673     $as_echo_n "(cached) " >&6
3674     else
3675     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676     /* end confdefs.h. */
3677 root 1.26
3678 sf-exg 1.132 int
3679     main ()
3680     {
3681     #ifndef __GNUC__
3682     choke me
3683     #endif
3684 pcg 1.15
3685 sf-exg 1.132 ;
3686     return 0;
3687     }
3688 pcg 1.15 _ACEOF
3689 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
3690     ac_compiler_gnu=yes
3691     else
3692     ac_compiler_gnu=no
3693 pcg 1.15 fi
3694 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3695     ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3696 pcg 1.15
3697 ayin 1.108 fi
3698 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3699     $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3700     if test $ac_compiler_gnu = yes; then
3701     GXX=yes
3702     else
3703     GXX=
3704 ayin 1.108 fi
3705 sf-exg 1.132 ac_test_CXXFLAGS=${CXXFLAGS+set}
3706     ac_save_CXXFLAGS=$CXXFLAGS
3707     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3708     $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3709     if test "${ac_cv_prog_cxx_g+set}" = set; then :
3710     $as_echo_n "(cached) " >&6
3711     else
3712     ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3713     ac_cxx_werror_flag=yes
3714     ac_cv_prog_cxx_g=no
3715     CXXFLAGS="-g"
3716     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3717     /* end confdefs.h. */
3718 ayin 1.108
3719 sf-exg 1.132 int
3720     main ()
3721     {
3722 pcg 1.15
3723 sf-exg 1.132 ;
3724     return 0;
3725     }
3726 pcg 1.15 _ACEOF
3727 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
3728     ac_cv_prog_cxx_g=yes
3729     else
3730     CXXFLAGS=""
3731     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732     /* end confdefs.h. */
3733 pcg 1.15
3734 sf-exg 1.132 int
3735     main ()
3736     {
3737 pcg 1.15
3738 sf-exg 1.132 ;
3739     return 0;
3740     }
3741 root 1.39 _ACEOF
3742 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
3743 root 1.39
3744 sf-exg 1.132 else
3745     ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3746     CXXFLAGS="-g"
3747     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748     /* end confdefs.h. */
3749 root 1.39
3750 sf-exg 1.132 int
3751     main ()
3752     {
3753 pcg 1.15
3754 sf-exg 1.132 ;
3755     return 0;
3756     }
3757 pcg 1.11 _ACEOF
3758 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
3759     ac_cv_prog_cxx_g=yes
3760 ayin 1.108 fi
3761 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3762 ayin 1.108 fi
3763 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3764 ayin 1.108 fi
3765 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3766     ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3767 ayin 1.108 fi
3768 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3769     $as_echo "$ac_cv_prog_cxx_g" >&6; }
3770     if test "$ac_test_CXXFLAGS" = set; then
3771     CXXFLAGS=$ac_save_CXXFLAGS
3772     elif test $ac_cv_prog_cxx_g = yes; then
3773     if test "$GXX" = yes; then
3774     CXXFLAGS="-g -O2"
3775     else
3776     CXXFLAGS="-g"
3777 pcg 1.1 fi
3778 sf-exg 1.132 else
3779     if test "$GXX" = yes; then
3780     CXXFLAGS="-O2"
3781     else
3782     CXXFLAGS=
3783 pcg 1.1 fi
3784 ayin 1.108 fi
3785 sf-exg 1.132 ac_ext=c
3786     ac_cpp='$CPP $CPPFLAGS'
3787     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3788     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3789     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3790 ayin 1.108
3791 sf-exg 1.132 ac_ext=c
3792     ac_cpp='$CPP $CPPFLAGS'
3793     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3794     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3795     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3796     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3797     $as_echo_n "checking how to run the C preprocessor... " >&6; }
3798     # On Suns, sometimes $CPP names a directory.
3799     if test -n "$CPP" && test -d "$CPP"; then
3800     CPP=
3801 ayin 1.108 fi
3802 sf-exg 1.132 if test -z "$CPP"; then
3803     if test "${ac_cv_prog_CPP+set}" = set; then :
3804     $as_echo_n "(cached) " >&6
3805     else
3806     # Double quotes because CPP needs to be expanded
3807     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3808     do
3809     ac_preproc_ok=false
3810     for ac_c_preproc_warn_flag in '' yes
3811     do
3812     # Use a header file that comes with gcc, so configuring glibc
3813     # with a fresh cross-compiler works.
3814     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3815     # <limits.h> exists even on freestanding compilers.
3816     # On the NeXT, cc -E runs the code through the compiler's parser,
3817     # not just through cpp. "Syntax error" is here to catch this case.
3818     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819     /* end confdefs.h. */
3820     #ifdef __STDC__
3821     # include <limits.h>
3822     #else
3823     # include <assert.h>
3824     #endif
3825     Syntax error
3826     _ACEOF
3827     if ac_fn_c_try_cpp "$LINENO"; then :
3828 ayin 1.108
3829 sf-exg 1.132 else
3830     # Broken: fails on valid input.
3831     continue
3832 ayin 1.108 fi
3833 sf-exg 1.132 rm -f conftest.err conftest.$ac_ext
3834 ayin 1.108
3835 sf-exg 1.132 # OK, works on sane cases. Now check whether nonexistent headers
3836     # can be detected and how.
3837     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838     /* end confdefs.h. */
3839     #include <ac_nonexistent.h>
3840 pcg 1.11 _ACEOF
3841 sf-exg 1.132 if ac_fn_c_try_cpp "$LINENO"; then :
3842     # Broken: success on invalid input.
3843     continue
3844     else
3845     # Passes both tests.
3846     ac_preproc_ok=:
3847     break
3848 ayin 1.108 fi
3849 sf-exg 1.132 rm -f conftest.err conftest.$ac_ext
3850 ayin 1.108
3851 sf-exg 1.132 done
3852     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3853     rm -f conftest.err conftest.$ac_ext
3854     if $ac_preproc_ok; then :
3855     break
3856     fi
3857 root 1.105
3858 sf-exg 1.132 done
3859     ac_cv_prog_CPP=$CPP
3860 pcg 1.1
3861 ayin 1.108 fi
3862 sf-exg 1.132 CPP=$ac_cv_prog_CPP
3863 pcg 1.1 else
3864 sf-exg 1.132 ac_cv_prog_CPP=$CPP
3865     fi
3866     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3867     $as_echo "$CPP" >&6; }
3868     ac_preproc_ok=false
3869     for ac_c_preproc_warn_flag in '' yes
3870 pcg 1.11 do
3871 ayin 1.104 # Use a header file that comes with gcc, so configuring glibc
3872     # with a fresh cross-compiler works.
3873     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3874     # <limits.h> exists even on freestanding compilers.
3875     # On the NeXT, cc -E runs the code through the compiler's parser,
3876 root 1.80 # not just through cpp. "Syntax error" is here to catch this case.
3877 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878 root 1.80 /* end confdefs.h. */
3879     #ifdef __STDC__
3880     # include <limits.h>
3881     #else
3882     # include <assert.h>
3883     #endif
3884     Syntax error
3885     _ACEOF
3886 sf-exg 1.132 if ac_fn_c_try_cpp "$LINENO"; then :
3887    
3888 root 1.80 else
3889     # Broken: fails on valid input.
3890     continue
3891     fi
3892     rm -f conftest.err conftest.$ac_ext
3893    
3894 ayin 1.108 # OK, works on sane cases. Now check whether nonexistent headers
3895 root 1.80 # can be detected and how.
3896 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 root 1.80 /* end confdefs.h. */
3898     #include <ac_nonexistent.h>
3899 sf-exg 1.132 _ACEOF
3900     if ac_fn_c_try_cpp "$LINENO"; then :
3901     # Broken: success on invalid input.
3902     continue
3903     else
3904     # Passes both tests.
3905     ac_preproc_ok=:
3906     break
3907     fi
3908     rm -f conftest.err conftest.$ac_ext
3909    
3910     done
3911     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3912     rm -f conftest.err conftest.$ac_ext
3913     if $ac_preproc_ok; then :
3914    
3915     else
3916     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3917     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3918     as_fn_error "C preprocessor \"$CPP\" fails sanity check
3919     See \`config.log' for more details." "$LINENO" 5; }
3920     fi
3921    
3922     ac_ext=c
3923     ac_cpp='$CPP $CPPFLAGS'
3924     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3925     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3926     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3927    
3928     # Find a good install program. We prefer a C program (faster),
3929     # so one script is as good as another. But avoid the broken or
3930     # incompatible versions:
3931     # SysV /etc/install, /usr/sbin/install
3932     # SunOS /usr/etc/install
3933     # IRIX /sbin/install
3934     # AIX /bin/install
3935     # AmigaOS /C/install, which installs bootblocks on floppy discs
3936     # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3937     # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3938     # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3939     # OS/2's system install, which has a completely different semantic
3940     # ./install, which can be erroneously created by make from ./install.sh.
3941     # Reject install programs that cannot install multiple files.
3942     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3943     $as_echo_n "checking for a BSD-compatible install... " >&6; }
3944     if test -z "$INSTALL"; then
3945     if test "${ac_cv_path_install+set}" = set; then :
3946     $as_echo_n "(cached) " >&6
3947     else
3948     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949     for as_dir in $PATH
3950     do
3951     IFS=$as_save_IFS
3952     test -z "$as_dir" && as_dir=.
3953     # Account for people who put trailing slashes in PATH elements.
3954     case $as_dir/ in #((
3955     ./ | .// | /[cC]/* | \
3956     /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3957     ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3958     /usr/ucb/* ) ;;
3959     *)
3960     # OSF1 and SCO ODT 3.0 have their own names for install.
3961     # Don't use installbsd from OSF since it installs stuff as root
3962     # by default.
3963     for ac_prog in ginstall scoinst install; do
3964     for ac_exec_ext in '' $ac_executable_extensions; do
3965     if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3966     if test $ac_prog = install &&
3967     grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3968     # AIX install. It has an incompatible calling convention.
3969     :
3970     elif test $ac_prog = install &&
3971     grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3972     # program-specific install script used by HP pwplus--don't use.
3973     :
3974     else
3975     rm -rf conftest.one conftest.two conftest.dir
3976     echo one > conftest.one
3977     echo two > conftest.two
3978     mkdir conftest.dir
3979     if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3980     test -s conftest.one && test -s conftest.two &&
3981     test -s conftest.dir/conftest.one &&
3982     test -s conftest.dir/conftest.two
3983     then
3984     ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3985     break 3
3986     fi
3987     fi
3988     fi
3989     done
3990     done
3991     ;;
3992     esac
3993    
3994     done
3995     IFS=$as_save_IFS
3996    
3997     rm -rf conftest.one conftest.two conftest.dir
3998    
3999     fi
4000     if test "${ac_cv_path_install+set}" = set; then
4001     INSTALL=$ac_cv_path_install
4002     else
4003     # As a last resort, use the slow shell script. Don't cache a
4004     # value for INSTALL within a source directory, because that will
4005     # break other packages using the cache if that directory is
4006     # removed, or if the value is a relative name.
4007     INSTALL=$ac_install_sh
4008     fi
4009     fi
4010     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4011     $as_echo "$INSTALL" >&6; }
4012    
4013     # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4014     # It thinks the first close brace ends the variable substitution.
4015     test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4016    
4017     test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4018    
4019     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4020    
4021    
4022    
4023    
4024     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4025     $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4026     if test "${ac_cv_path_GREP+set}" = set; then :
4027     $as_echo_n "(cached) " >&6
4028     else
4029     if test -z "$GREP"; then
4030     ac_path_GREP_found=false
4031     # Loop through the user's path and test for each of PROGNAME-LIST
4032     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033     for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4034     do
4035     IFS=$as_save_IFS
4036     test -z "$as_dir" && as_dir=.
4037     for ac_prog in grep ggrep; do
4038     for ac_exec_ext in '' $ac_executable_extensions; do
4039     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4040     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4041     # Check for GNU ac_path_GREP and select it if it is found.
4042     # Check for GNU $ac_path_GREP
4043     case `"$ac_path_GREP" --version 2>&1` in
4044     *GNU*)
4045     ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4046     *)
4047     ac_count=0
4048     $as_echo_n 0123456789 >"conftest.in"
4049     while :
4050     do
4051     cat "conftest.in" "conftest.in" >"conftest.tmp"
4052     mv "conftest.tmp" "conftest.in"
4053     cp "conftest.in" "conftest.nl"
4054     $as_echo 'GREP' >> "conftest.nl"
4055     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4056     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4057     as_fn_arith $ac_count + 1 && ac_count=$as_val
4058     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4059     # Best one so far, save it but keep looking for a better one
4060     ac_cv_path_GREP="$ac_path_GREP"
4061     ac_path_GREP_max=$ac_count
4062     fi
4063     # 10*(2^10) chars as input seems more than enough
4064     test $ac_count -gt 10 && break
4065     done
4066     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4067     esac
4068    
4069     $ac_path_GREP_found && break 3
4070     done
4071     done
4072     done
4073     IFS=$as_save_IFS
4074     if test -z "$ac_cv_path_GREP"; then
4075     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4076     fi
4077 root 1.80 else
4078 sf-exg 1.132 ac_cv_path_GREP=$GREP
4079 root 1.80 fi
4080 ayin 1.108
4081 root 1.80 fi
4082 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4083     $as_echo "$ac_cv_path_GREP" >&6; }
4084     GREP="$ac_cv_path_GREP"
4085 root 1.80
4086    
4087 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4088     $as_echo_n "checking for egrep... " >&6; }
4089     if test "${ac_cv_path_EGREP+set}" = set; then :
4090     $as_echo_n "(cached) " >&6
4091 root 1.80 else
4092 sf-exg 1.132 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4093     then ac_cv_path_EGREP="$GREP -E"
4094     else
4095     if test -z "$EGREP"; then
4096     ac_path_EGREP_found=false
4097     # Loop through the user's path and test for each of PROGNAME-LIST
4098     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099     for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4100 root 1.80 do
4101 sf-exg 1.132 IFS=$as_save_IFS
4102     test -z "$as_dir" && as_dir=.
4103     for ac_prog in egrep; do
4104     for ac_exec_ext in '' $ac_executable_extensions; do
4105     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4106     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4107     # Check for GNU ac_path_EGREP and select it if it is found.
4108     # Check for GNU $ac_path_EGREP
4109     case `"$ac_path_EGREP" --version 2>&1` in
4110     *GNU*)
4111     ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4112     *)
4113     ac_count=0
4114     $as_echo_n 0123456789 >"conftest.in"
4115     while :
4116     do
4117     cat "conftest.in" "conftest.in" >"conftest.tmp"
4118     mv "conftest.tmp" "conftest.in"
4119     cp "conftest.in" "conftest.nl"
4120     $as_echo 'EGREP' >> "conftest.nl"
4121     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4122     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4123     as_fn_arith $ac_count + 1 && ac_count=$as_val
4124     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4125     # Best one so far, save it but keep looking for a better one
4126     ac_cv_path_EGREP="$ac_path_EGREP"
4127     ac_path_EGREP_max=$ac_count
4128     fi
4129     # 10*(2^10) chars as input seems more than enough
4130     test $ac_count -gt 10 && break
4131     done
4132     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4133 ayin 1.108 esac
4134 root 1.80
4135 sf-exg 1.132 $ac_path_EGREP_found && break 3
4136     done
4137     done
4138     done
4139     IFS=$as_save_IFS
4140     if test -z "$ac_cv_path_EGREP"; then
4141     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4142     fi
4143 root 1.80 else
4144 sf-exg 1.132 ac_cv_path_EGREP=$EGREP
4145 root 1.80 fi
4146 ayin 1.108
4147 sf-exg 1.132 fi
4148 root 1.116 fi
4149 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4150     $as_echo "$ac_cv_path_EGREP" >&6; }
4151     EGREP="$ac_cv_path_EGREP"
4152 root 1.116
4153    
4154 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4155     $as_echo_n "checking for ANSI C header files... " >&6; }
4156     if test "${ac_cv_header_stdc+set}" = set; then :
4157     $as_echo_n "(cached) " >&6
4158 root 1.116 else
4159 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 root 1.116 /* end confdefs.h. */
4161     #include <stdlib.h>
4162     #include <stdarg.h>
4163     #include <string.h>
4164     #include <float.h>
4165    
4166     int
4167     main ()
4168     {
4169    
4170     ;
4171     return 0;
4172     }
4173     _ACEOF
4174 sf-exg 1.132 if ac_fn_c_try_compile "$LINENO"; then :
4175 root 1.116 ac_cv_header_stdc=yes
4176     else
4177 sf-exg 1.132 ac_cv_header_stdc=no
4178 root 1.116 fi
4179     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180    
4181     if test $ac_cv_header_stdc = yes; then
4182     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4183 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184 root 1.116 /* end confdefs.h. */
4185     #include <string.h>
4186    
4187     _ACEOF
4188     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4189 sf-exg 1.132 $EGREP "memchr" >/dev/null 2>&1; then :
4190    
4191 root 1.116 else
4192     ac_cv_header_stdc=no
4193     fi
4194     rm -f conftest*
4195    
4196     fi
4197    
4198     if test $ac_cv_header_stdc = yes; then
4199     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4200 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 root 1.116 /* end confdefs.h. */
4202     #include <stdlib.h>
4203    
4204     _ACEOF
4205     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4206 sf-exg 1.132 $EGREP "free" >/dev/null 2>&1; then :
4207    
4208 root 1.116 else
4209     ac_cv_header_stdc=no
4210     fi
4211     rm -f conftest*
4212    
4213     fi
4214    
4215     if test $ac_cv_header_stdc = yes; then
4216     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4217 sf-exg 1.132 if test "$cross_compiling" = yes; then :
4218 root 1.116 :
4219     else
4220 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 root 1.116 /* end confdefs.h. */
4222     #include <ctype.h>
4223     #include <stdlib.h>
4224     #if ((' ' & 0x0FF) == 0x020)
4225     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4226     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4227     #else
4228     # define ISLOWER(c) \
4229     (('a' <= (c) && (c) <= 'i') \
4230     || ('j' <= (c) && (c) <= 'r') \
4231     || ('s' <= (c) && (c) <= 'z'))
4232     # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4233     #endif
4234    
4235     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4236     int
4237     main ()
4238     {
4239     int i;
4240     for (i = 0; i < 256; i++)
4241     if (XOR (islower (i), ISLOWER (i))
4242     || toupper (i) != TOUPPER (i))
4243     return 2;
4244     return 0;
4245     }
4246     _ACEOF
4247 sf-exg 1.132 if ac_fn_c_try_run "$LINENO"; then :
4248 root 1.116
4249     else
4250 sf-exg 1.132 ac_cv_header_stdc=no
4251     fi
4252     rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4253     conftest.$ac_objext conftest.beam conftest.$ac_ext
4254     fi
4255 root 1.116
4256     fi
4257 sf-exg 1.132 fi
4258     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4259     $as_echo "$ac_cv_header_stdc" >&6; }
4260     if test $ac_cv_header_stdc = yes; then
4261 root 1.116
4262 sf-exg 1.132 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4263 root 1.116
4264     fi
4265    
4266 sf-exg 1.132 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4267     for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4268     inttypes.h stdint.h unistd.h
4269     do :
4270     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4271     ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4272     "
4273     eval as_val=\$$as_ac_Header
4274     if test "x$as_val" = x""yes; then :
4275 root 1.116 cat >>confdefs.h <<_ACEOF
4276 sf-exg 1.132 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4277 root 1.116 _ACEOF
4278    
4279     fi
4280    
4281     done
4282    
4283    
4284    
4285 sf-exg 1.132 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4286     if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4287     MINIX=yes
4288     else
4289     MINIX=
4290     fi
4291 root 1.116
4292 root 1.117
4293 sf-exg 1.132 if test "$MINIX" = yes; then
4294 root 1.119
4295 sf-exg 1.132 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4296 root 1.119
4297 ayin 1.121
4298 sf-exg 1.132 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4299 root 1.127
4300 root 1.129
4301 sf-exg 1.132 $as_echo "#define _MINIX 1" >>confdefs.h
4302 root 1.116
4303 sf-exg 1.132 fi
4304 root 1.116
4305    
4306 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4307     $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4308     if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4309     $as_echo_n "(cached) " >&6
4310     else
4311     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312     /* end confdefs.h. */
4313 root 1.116
4314 sf-exg 1.132 # define __EXTENSIONS__ 1
4315     $ac_includes_default
4316 root 1.116 int
4317     main ()
4318     {
4319 sf-exg 1.132
4320 root 1.116 ;
4321     return 0;
4322     }
4323     _ACEOF
4324 sf-exg 1.132 if ac_fn_c_try_compile "$LINENO"; then :
4325     ac_cv_safe_to_define___extensions__=yes
4326 root 1.116 else
4327 sf-exg 1.132 ac_cv_safe_to_define___extensions__=no
4328     fi
4329     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4330     fi
4331     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4332     $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4333     test $ac_cv_safe_to_define___extensions__ = yes &&
4334     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4335 root 1.116
4336 sf-exg 1.132 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4337 root 1.116
4338 sf-exg 1.132 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4339 root 1.116
4340 sf-exg 1.132 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4341 root 1.116
4342 sf-exg 1.132 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4343 root 1.116
4344    
4345    
4346    
4347 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4348     $as_echo_n "checking for library containing strerror... " >&6; }
4349     if test "${ac_cv_search_strerror+set}" = set; then :
4350     $as_echo_n "(cached) " >&6
4351     else
4352     ac_func_search_save_LIBS=$LIBS
4353     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4354     /* end confdefs.h. */
4355 root 1.116
4356     /* Override any GCC internal prototype to avoid an error.
4357     Use char because int might match the return type of a GCC
4358     builtin and then its argument prototype would still apply. */
4359     #ifdef __cplusplus
4360     extern "C"
4361     #endif
4362 sf-exg 1.132 char strerror ();
4363 root 1.116 int
4364     main ()
4365     {
4366 sf-exg 1.132 return strerror ();
4367 root 1.116 ;
4368     return 0;
4369     }
4370     _ACEOF
4371 sf-exg 1.132 for ac_lib in '' cposix; do
4372     if test -z "$ac_lib"; then
4373     ac_res="none required"
4374     else
4375     ac_res=-l$ac_lib
4376     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4377     fi
4378     if ac_fn_c_try_link "$LINENO"; then :
4379     ac_cv_search_strerror=$ac_res
4380     fi
4381     rm -f core conftest.err conftest.$ac_objext \
4382     conftest$ac_exeext
4383     if test "${ac_cv_search_strerror+set}" = set; then :
4384     break
4385     fi
4386     done
4387     if test "${ac_cv_search_strerror+set}" = set; then :
4388    
4389 root 1.116 else
4390 sf-exg 1.132 ac_cv_search_strerror=no
4391     fi
4392     rm conftest.$ac_ext
4393     LIBS=$ac_func_search_save_LIBS
4394     fi
4395     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4396     $as_echo "$ac_cv_search_strerror" >&6; }
4397     ac_res=$ac_cv_search_strerror
4398     if test "$ac_res" != no; then :
4399     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4400 root 1.116
4401     fi
4402    
4403 sf-exg 1.132 ac_ext=cpp
4404     ac_cpp='$CXXCPP $CPPFLAGS'
4405     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4406     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4407     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4408    
4409    
4410     if test x$GCC = xyes && test x$GXX = xyes; then
4411     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5
4412     $as_echo_n "checking for working libsupc++... " >&6; }
4413     save_CXX="$CXX"
4414     save_LIBS="$LIBS"
4415     CXX="$CC"
4416     LIBS="$LIBS -lsupc++"
4417     LINKER="$CC"
4418 root 1.116
4419 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420 root 1.129 /* end confdefs.h. */
4421 sf-exg 1.132 struct test { }; void f() try { throw new test; } catch (...) { throw; }
4422 root 1.129 int
4423     main ()
4424     {
4425 sf-exg 1.132
4426 root 1.129 ;
4427     return 0;
4428     }
4429     _ACEOF
4430 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
4431     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4432     $as_echo "ok" >&6; }
4433     else
4434 root 1.129
4435 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, making everything bigger and slower" >&5
4436     $as_echo "no, making everything bigger and slower" >&6; }
4437     LIBS="$save_LIBS"
4438     LINKER="$save_CXX"
4439 root 1.129
4440    
4441     fi
4442 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
4443     conftest$ac_exeext conftest.$ac_ext
4444     CXX="$save_CXX"
4445     fi
4446     LINKER=$LINKER
4447 root 1.129
4448 root 1.116
4449 sf-exg 1.132 if test -z "$orig_CXXFLAGS"; then
4450     if test x$GCC = xyes && test "x$GXX" = xyes; then
4451     CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs"
4452     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453 root 1.116 /* end confdefs.h. */
4454    
4455     int
4456     main ()
4457     {
4458 sf-exg 1.132
4459 root 1.116 ;
4460     return 0;
4461     }
4462     _ACEOF
4463 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
4464    
4465 root 1.116 else
4466 sf-exg 1.132 CXXFLAGS="-g -O3"
4467     fi
4468     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4469     else
4470     CXXFLAGS="-O"
4471     fi
4472     CFLAGS="$CXXFLAGS"
4473 root 1.116 fi
4474    
4475 sf-exg 1.132 case $host in
4476     *-*-solaris* )
4477 root 1.116
4478 sf-exg 1.132 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4479 root 1.116
4480 sf-exg 1.132 ;;
4481     esac
4482 root 1.116
4483 sf-exg 1.132 ac_fn_cxx_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
4484     if test "x$ac_cv_func_setlocale" = x""yes; then :
4485 root 1.116
4486     else
4487 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setlocale in -lxpg4" >&5
4488     $as_echo_n "checking for setlocale in -lxpg4... " >&6; }
4489     if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then :
4490     $as_echo_n "(cached) " >&6
4491     else
4492     ac_check_lib_save_LIBS=$LIBS
4493     LIBS="-lxpg4 $LIBS"
4494     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495 root 1.116 /* end confdefs.h. */
4496    
4497     /* Override any GCC internal prototype to avoid an error.
4498     Use char because int might match the return type of a GCC
4499     builtin and then its argument prototype would still apply. */
4500     #ifdef __cplusplus
4501     extern "C"
4502     #endif
4503 sf-exg 1.132 char setlocale ();
4504 root 1.116 int
4505     main ()
4506     {
4507 sf-exg 1.132 return setlocale ();
4508 root 1.116 ;
4509     return 0;
4510     }
4511     _ACEOF
4512 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
4513     ac_cv_lib_xpg4_setlocale=yes
4514 root 1.116 else
4515 sf-exg 1.132 ac_cv_lib_xpg4_setlocale=no
4516     fi
4517     rm -f core conftest.err conftest.$ac_objext \
4518     conftest$ac_exeext conftest.$ac_ext
4519     LIBS=$ac_check_lib_save_LIBS
4520 root 1.116 fi
4521 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4_setlocale" >&5
4522     $as_echo "$ac_cv_lib_xpg4_setlocale" >&6; }
4523     if test "x$ac_cv_lib_xpg4_setlocale" = x""yes; then :
4524     LIBS="$LIBS -lxpg4"
4525 root 1.116 fi
4526    
4527     fi
4528    
4529    
4530 sf-exg 1.132 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
4531     if test "x$ac_cv_func_gethostbyname" = x""yes; then :
4532 root 1.116
4533 root 1.123 else
4534 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
4535     $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4536     if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
4537     $as_echo_n "(cached) " >&6
4538     else
4539     ac_check_lib_save_LIBS=$LIBS
4540     LIBS="-lnsl $LIBS"
4541     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 root 1.123 /* end confdefs.h. */
4543    
4544     /* Override any GCC internal prototype to avoid an error.
4545     Use char because int might match the return type of a GCC
4546     builtin and then its argument prototype would still apply. */
4547     #ifdef __cplusplus
4548     extern "C"
4549     #endif
4550 sf-exg 1.132 char gethostbyname ();
4551 root 1.123 int
4552     main ()
4553     {
4554 sf-exg 1.132 return gethostbyname ();
4555 root 1.123 ;
4556     return 0;
4557     }
4558     _ACEOF
4559 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
4560     ac_cv_lib_nsl_gethostbyname=yes
4561 root 1.123 else
4562 sf-exg 1.132 ac_cv_lib_nsl_gethostbyname=no
4563     fi
4564     rm -f core conftest.err conftest.$ac_objext \
4565     conftest$ac_exeext conftest.$ac_ext
4566     LIBS=$ac_check_lib_save_LIBS
4567     fi
4568     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
4569     $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
4570     if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
4571     LIBS="$LIBS -lnsl"
4572 root 1.123 fi
4573    
4574     fi
4575    
4576 sf-exg 1.132 ac_fn_cxx_check_func "$LINENO" "socket" "ac_cv_func_socket"
4577     if test "x$ac_cv_func_socket" = x""yes; then :
4578 root 1.123
4579 sf-exg 1.132 else
4580     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
4581     $as_echo_n "checking for socket in -lsocket... " >&6; }
4582     if test "${ac_cv_lib_socket_socket+set}" = set; then :
4583     $as_echo_n "(cached) " >&6
4584 root 1.123 else
4585     ac_check_lib_save_LIBS=$LIBS
4586 sf-exg 1.132 LIBS="-lsocket $LIBS"
4587     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4588 root 1.123 /* end confdefs.h. */
4589    
4590     /* Override any GCC internal prototype to avoid an error.
4591     Use char because int might match the return type of a GCC
4592     builtin and then its argument prototype would still apply. */
4593     #ifdef __cplusplus
4594     extern "C"
4595     #endif
4596 sf-exg 1.132 char socket ();
4597 root 1.123 int
4598     main ()
4599     {
4600 sf-exg 1.132 return socket ();
4601 root 1.123 ;
4602     return 0;
4603     }
4604     _ACEOF
4605 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
4606     ac_cv_lib_socket_socket=yes
4607 root 1.123 else
4608 sf-exg 1.132 ac_cv_lib_socket_socket=no
4609     fi
4610     rm -f core conftest.err conftest.$ac_objext \
4611     conftest$ac_exeext conftest.$ac_ext
4612     LIBS=$ac_check_lib_save_LIBS
4613     fi
4614     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
4615     $as_echo "$ac_cv_lib_socket_socket" >&6; }
4616     if test "x$ac_cv_lib_socket_socket" = x""yes; then :
4617     LIBS="$LIBS -lsocket"
4618     fi
4619 root 1.123
4620     fi
4621    
4622 sf-exg 1.132
4623     support_frills=yes
4624     support_inheritpixmap=yes
4625     support_fading=yes
4626     support_keepscrolling=yes
4627     support_selectionscrolling=yes
4628     support_mousewheel=yes
4629     support_mouseslipwheel=yes
4630     support_text_blink=yes
4631     support_pointer_blank=yes
4632     support_scroll_rxvt=yes
4633     support_scroll_next=yes
4634     support_scroll_xterm=yes
4635     support_xim=yes
4636     support_afterimage=yes
4637     support_afterstep=yes
4638     support_xft=yes
4639     support_unicode3=no
4640     support_combining=yes
4641     support_8bitctrls=no
4642     support_iso14755=yes
4643     support_styles=yes
4644     support_perl=yes
4645     codesets=all
4646    
4647    
4648     # Check whether --enable-everything was given.
4649     if test "${enable_everything+set}" = set; then :
4650     enableval=$enable_everything;
4651     if test x$enableval = xno; then
4652     support_frills=no
4653     support_inheritpixmap=no
4654     support_fading=no
4655     support_keepscrolling=no
4656     support_selectionscrolling=no
4657     support_lastlog=no
4658     support_mousewheel=no
4659     support_mouseslipwheel=no
4660     support_text_blink=no
4661     support_pointer_blank=no
4662     support_scroll_rxvt=no
4663     support_scroll_next=no
4664     support_scroll_xterm=no
4665     support_utmp=no
4666     support_wtmp=no
4667     support_xim=no
4668     support_afterimage=no
4669     support_afterstep=no
4670     support_xft=no
4671     support_unicode3=no
4672     support_combining=no
4673     support_8bitctrls=no
4674     support_iso14755=no
4675     support_styles=no
4676     support_perl=no
4677     codesets=
4678     fi
4679     if test x$enableval = xyes; then
4680     support_frills=yes
4681     support_inheritpixmap=yes
4682     support_fading=yes
4683     support_keepscrolling=yes
4684     support_selectionscrolling=yes
4685     support_lastlog=yes
4686     support_mousewheel=yes
4687     support_mouseslipwheel=yes
4688     support_text_blink=yes
4689     support_pointer_blank=yes
4690     support_scroll_rxvt=yes
4691     support_scroll_next=yes
4692     support_scroll_xterm=yes
4693     support_utmp=yes
4694     support_wtmp=yes
4695     support_xim=yes
4696     support_afterimage=yes
4697     support_afterstep=yes
4698     support_xft=yes
4699     support_unicode3=yes
4700     support_combining=yes
4701     #support_8bitctrls=yes
4702     support_iso14755=yes
4703     support_styles=yes
4704     support_perl=yes
4705     codesets=all
4706     fi
4707    
4708 root 1.123 fi
4709    
4710    
4711 sf-exg 1.132 ASSERTIONS=no
4712     # Check whether --enable-assert was given.
4713     if test "${enable_assert+set}" = set; then :
4714     enableval=$enable_assert; if test x$enableval = xyes; then
4715     ASSERTIONS=yes
4716     fi
4717 root 1.123 fi
4718    
4719 sf-exg 1.132 if test x$ASSERTIONS = xno; then
4720 root 1.123
4721 sf-exg 1.132 $as_echo "#define NDEBUG 1" >>confdefs.h
4722 root 1.123
4723 sf-exg 1.132 fi
4724 root 1.123
4725 sf-exg 1.132 WARNINGS=no
4726     # Check whether --enable-warnings was given.
4727     if test "${enable_warnings+set}" = set; then :
4728     enableval=$enable_warnings; if test x$enableval = xyes; then
4729     WARNINGS=yes
4730     fi
4731     fi
4732 root 1.123
4733 sf-exg 1.132 if test x$GXX = xyes; then
4734     if test $WARNINGS = yes; then
4735     save_CXXFLAGS="$CXXFLAGS"
4736     CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor"
4737     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4738     /* end confdefs.h. */
4739 root 1.123
4740     int
4741     main ()
4742     {
4743 sf-exg 1.132
4744 root 1.123 ;
4745     return 0;
4746     }
4747     _ACEOF
4748 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
4749    
4750     else
4751     CXXFLAGS="$save_CXXFLAGS"
4752     fi
4753     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4754     else
4755     CXXFLAGS="$CXXFLAGS -w"
4756     fi
4757     fi
4758    
4759     support_256_color=no
4760     # Check whether --enable-256-color was given.
4761     if test "${enable_256_color+set}" = set; then :
4762     enableval=$enable_256_color; if test x$enableval = xyes; then
4763     support_256_color=yes
4764     fi
4765     fi
4766    
4767     if test x$support_256_color = xyes; then
4768    
4769     $as_echo "#define USE_256_COLORS 1" >>confdefs.h
4770    
4771     fi
4772    
4773     # Check whether --enable-unicode3 was given.
4774     if test "${enable_unicode3+set}" = set; then :
4775     enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then
4776     support_unicode3=$enableval
4777     fi
4778     fi
4779    
4780    
4781     # Check whether --enable-combining was given.
4782     if test "${enable_combining+set}" = set; then :
4783     enableval=$enable_combining; if test x$enableval = xyes -o x$enableval = xno; then
4784     support_combining=$enableval
4785     fi
4786     fi
4787    
4788    
4789     # Check whether --enable-xft was given.
4790     if test "${enable_xft+set}" = set; then :
4791     enableval=$enable_xft; if test x$enableval = xyes -o x$enableval = xno; then
4792     support_xft=$enableval
4793     fi
4794     fi
4795    
4796    
4797     # Check whether --enable-font-styles was given.
4798     if test "${enable_font_styles+set}" = set; then :
4799     enableval=$enable_font_styles; if test x$enableval = xyes -o x$enableval = xno; then
4800     support_styles=$enableval
4801     fi
4802     fi
4803    
4804 root 1.123
4805 sf-exg 1.132 # Check whether --enable-afterimage was given.
4806     if test "${enable_afterimage+set}" = set; then :
4807     enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then
4808     support_afterimage=$enableval
4809     fi
4810 root 1.123 fi
4811    
4812 sf-exg 1.132
4813    
4814     # Check whether --with-afterimage_config was given.
4815     if test "${with_afterimage_config+set}" = set; then :
4816     withval=$with_afterimage_config; if test "x$withval" != x; then
4817     afterimage_config=$withval/afterimage-config
4818     fi
4819 root 1.123 fi
4820    
4821 sf-exg 1.132
4822    
4823     # Check whether --enable-transparency was given.
4824     if test "${enable_transparency+set}" = set; then :
4825     enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then
4826     support_inheritpixmap=$enableval
4827     fi
4828 root 1.123 fi
4829    
4830    
4831 sf-exg 1.132 # Check whether --enable-fading was given.
4832     if test "${enable_fading+set}" = set; then :
4833     enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then
4834     support_fading=$enableval
4835     fi
4836 root 1.123 fi
4837    
4838    
4839 sf-exg 1.132 # Check whether --enable-rxvt-scroll was given.
4840     if test "${enable_rxvt_scroll+set}" = set; then :
4841     enableval=$enable_rxvt_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4842     support_scroll_rxvt=$enableval
4843     fi
4844     fi
4845 root 1.116
4846    
4847 sf-exg 1.132 # Check whether --enable-next-scroll was given.
4848     if test "${enable_next_scroll+set}" = set; then :
4849     enableval=$enable_next_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4850     support_scroll_next=$enableval
4851     fi
4852     fi
4853 root 1.116
4854    
4855 sf-exg 1.132 # Check whether --enable-xterm-scroll was given.
4856     if test "${enable_xterm_scroll+set}" = set; then :
4857     enableval=$enable_xterm_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4858     support_scroll_xterm=$enableval
4859     fi
4860 root 1.116 fi
4861    
4862    
4863 sf-exg 1.132 # Check whether --enable-perl was given.
4864     if test "${enable_perl+set}" = set; then :
4865     enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then
4866     support_perl=$enableval
4867     fi
4868 root 1.116 fi
4869    
4870    
4871    
4872 sf-exg 1.132 # Check whether --with-codesets was given.
4873     if test "${with_codesets+set}" = set; then :
4874     withval=$with_codesets; codesets="$withval"
4875     fi
4876 root 1.116
4877    
4878 sf-exg 1.132 # Check whether --enable-xim was given.
4879     if test "${enable_xim+set}" = set; then :
4880     enableval=$enable_xim; if test x$enableval = xyes -o x$enableval = xno; then
4881     support_xim=$enableval
4882 root 1.116 fi
4883 sf-exg 1.132 fi
4884    
4885 root 1.116
4886 sf-exg 1.132 # Check whether --enable-backspace-key was given.
4887     if test "${enable_backspace_key+set}" = set; then :
4888     enableval=$enable_backspace_key; if test x$enableval = xno; then
4889 root 1.80
4890 sf-exg 1.132 $as_echo "#define NO_BACKSPACE_KEY 1" >>confdefs.h
4891 root 1.116
4892 sf-exg 1.132 fi
4893     fi
4894 root 1.116
4895 pcg 1.24
4896 sf-exg 1.132 # Check whether --enable-delete-key was given.
4897     if test "${enable_delete_key+set}" = set; then :
4898     enableval=$enable_delete_key; if test x$enableval = xno; then
4899 pcg 1.11
4900 sf-exg 1.132 $as_echo "#define NO_DELETE_KEY 1" >>confdefs.h
4901 pcg 1.1
4902     fi
4903     fi
4904    
4905 pcg 1.11
4906 sf-exg 1.132 # Check whether --enable-resources was given.
4907     if test "${enable_resources+set}" = set; then :
4908     enableval=$enable_resources; if test x$enableval = xno; then
4909 pcg 1.11
4910 sf-exg 1.132 $as_echo "#define NO_RESOURCES 1" >>confdefs.h
4911 pcg 1.11
4912 sf-exg 1.132 fi
4913     fi
4914 pcg 1.11
4915    
4916 sf-exg 1.132 # Check whether --enable-8bitctrls was given.
4917     if test "${enable_8bitctrls+set}" = set; then :
4918     enableval=$enable_8bitctrls; if test x$enableval = xyes -o x$enableval = xno; then
4919     support_8bitctrls=$enableval
4920     fi
4921     fi
4922 pcg 1.11
4923 pcg 1.1
4924 sf-exg 1.132 RESFALLBACK=Rxvt
4925     # Check whether --enable-fallback was given.
4926     if test "${enable_fallback+set}" = set; then :
4927     enableval=$enable_fallback;
4928     test x$enableval = xyes && enableval=Rxvt
4929     test x$enableval = xno && enableval=
4930     RESFALLBACK="$enableval"
4931 pcg 1.11
4932 pcg 1.1 fi
4933 ayin 1.108
4934 pcg 1.1
4935 sf-exg 1.132 if test x$RESFALLBACK != x; then
4936    
4937     cat >>confdefs.h <<_ACEOF
4938     #define RESFALLBACK "$RESFALLBACK"
4939 pcg 1.11 _ACEOF
4940    
4941 pcg 1.1 fi
4942 ayin 1.108
4943 sf-exg 1.132 RESNAME=urxvt
4944 pcg 1.1
4945 sf-exg 1.132 # Check whether --with-res-name was given.
4946     if test "${with_res_name+set}" = set; then :
4947     withval=$with_res_name; RESNAME="$withval"
4948 ayin 1.106 fi
4949 pcg 1.1
4950 sf-exg 1.132
4951     cat >>confdefs.h <<_ACEOF
4952     #define RESNAME "$RESNAME"
4953     _ACEOF
4954    
4955    
4956     RESCLASS=URxvt
4957    
4958     # Check whether --with-res-class was given.
4959     if test "${with_res_class+set}" = set; then :
4960     withval=$with_res_class; RESCLASS="$withval"
4961 pcg 1.1 fi
4962    
4963 pcg 1.11
4964 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
4965     #define RESCLASS "$RESCLASS"
4966 pcg 1.11 _ACEOF
4967 pcg 1.1
4968    
4969 sf-exg 1.132 RXVTNAME=urxvt
4970    
4971     # Check whether --with-name was given.
4972     if test "${with_name+set}" = set; then :
4973     withval=$with_name; RXVTNAME="$withval"
4974     fi
4975    
4976    
4977     cat >>confdefs.h <<_ACEOF
4978     #define RXVTNAME "$RXVTNAME"
4979 pcg 1.11 _ACEOF
4980 pcg 1.1
4981    
4982 sf-exg 1.132 RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
4983 pcg 1.11
4984 pcg 1.1
4985 sf-exg 1.132 # Check whether --enable-swapscreen was given.
4986     if test "${enable_swapscreen+set}" = set; then :
4987     enableval=$enable_swapscreen; if test x$enableval = xno; then
4988 pcg 1.1
4989 sf-exg 1.132 $as_echo "#define NO_SECONDARY_SCREEN 1" >>confdefs.h
4990 pcg 1.11
4991 sf-exg 1.132 fi
4992 ayin 1.102 fi
4993 ayin 1.108
4994    
4995 sf-exg 1.132 # Check whether --enable-iso14755 was given.
4996     if test "${enable_iso14755+set}" = set; then :
4997     enableval=$enable_iso14755; if test x$enableval = xyes -o x$enableval = xno; then
4998     support_iso14755=$enableval
4999 pcg 1.1 fi
5000 sf-exg 1.132 fi
5001 pcg 1.1
5002    
5003 sf-exg 1.132 # Check whether --enable-frills was given.
5004     if test "${enable_frills+set}" = set; then :
5005     enableval=$enable_frills; if test x$enableval = xyes -o x$enableval = xno; then
5006     support_frills=$enableval
5007     fi
5008     fi
5009 pcg 1.11
5010 pcg 1.1
5011 sf-exg 1.132 # Check whether --enable-keepscrolling was given.
5012     if test "${enable_keepscrolling+set}" = set; then :
5013     enableval=$enable_keepscrolling; if test x$enableval = xyes -o x$enableval = xno; then
5014     support_keepscrolling=$enableval
5015     fi
5016     fi
5017 pcg 1.1
5018 pcg 1.11
5019 sf-exg 1.132 # Check whether --enable-selectionscrolling was given.
5020     if test "${enable_selectionscrolling+set}" = set; then :
5021     enableval=$enable_selectionscrolling; if test x$enableval = xyes -o x$enableval = xno; then
5022     support_selectionscrolling=$enableval
5023     fi
5024 pcg 1.11 fi
5025 ayin 1.108
5026 sf-exg 1.132
5027     # Check whether --enable-mousewheel was given.
5028     if test "${enable_mousewheel+set}" = set; then :
5029     enableval=$enable_mousewheel; if test x$enableval = xyes -o x$enableval = xno; then
5030     support_mousewheel=$enableval
5031     fi
5032 pcg 1.1 fi
5033    
5034 pcg 1.11
5035 sf-exg 1.132 # Check whether --enable-slipwheeling was given.
5036     if test "${enable_slipwheeling+set}" = set; then :
5037     enableval=$enable_slipwheeling; if test x$enableval = xyes -o x$enableval = xno; then
5038     support_mouseslipwheel=$enableval
5039     fi
5040 pcg 1.11 fi
5041 ayin 1.108
5042 sf-exg 1.132
5043     # Check whether --enable-smart-resize was given.
5044     if test "${enable_smart_resize+set}" = set; then :
5045     enableval=$enable_smart_resize; if test x$enableval = xyes; then
5046    
5047     $as_echo "#define SMART_RESIZE 1" >>confdefs.h
5048    
5049     fi
5050 pcg 1.11 fi
5051 sf-exg 1.132
5052    
5053     # Check whether --enable-text-blink was given.
5054     if test "${enable_text_blink+set}" = set; then :
5055     enableval=$enable_text_blink; if test x$enableval = xyes -o x$enableval = xno; then
5056     support_text_blink=$enableval
5057     fi
5058 pcg 1.1 fi
5059    
5060 sf-exg 1.132
5061     # Check whether --enable-pointer-blank was given.
5062     if test "${enable_pointer_blank+set}" = set; then :
5063     enableval=$enable_pointer_blank; if test x$enableval = xyes -o x$enableval = xno; then
5064     support_pointer_blank=$enableval
5065     fi
5066 pcg 1.11 fi
5067 ayin 1.108
5068 pcg 1.1
5069 sf-exg 1.132
5070     # Check whether --with-term was given.
5071     if test "${with_term+set}" = set; then :
5072     withval=$with_term; if test x$withval != x; then
5073    
5074     cat >>confdefs.h <<_ACEOF
5075     #define TERMENV "$withval"
5076 pcg 1.11 _ACEOF
5077 sf-exg 1.132 term="$withval"
5078     fi
5079     fi
5080 pcg 1.11
5081    
5082    
5083 sf-exg 1.132 # Check whether --with-terminfo was given.
5084     if test "${with_terminfo+set}" = set; then :
5085     withval=$with_terminfo; if test x$withval != x; then
5086 pcg 1.11
5087 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
5088     #define RXVT_TERMINFO "$withval"
5089     _ACEOF
5090     terminfo="$withval"
5091     fi
5092     fi
5093 pcg 1.1
5094 pcg 1.11
5095 ayin 1.108
5096 sf-exg 1.132 LIBEV_M4_AVOID_LIBRT=1
5097 pcg 1.11
5098 sf-exg 1.132 ac_ext=cpp
5099     ac_cpp='$CXXCPP $CPPFLAGS'
5100     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5101     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5102     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5103     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5104     $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5105     if test -z "$CXXCPP"; then
5106     if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5107     $as_echo_n "(cached) " >&6
5108 pcg 1.1 else
5109 sf-exg 1.132 # Double quotes because CXXCPP needs to be expanded
5110     for CXXCPP in "$CXX -E" "/lib/cpp"
5111     do
5112     ac_preproc_ok=false
5113     for ac_cxx_preproc_warn_flag in '' yes
5114     do
5115     # Use a header file that comes with gcc, so configuring glibc
5116     # with a fresh cross-compiler works.
5117     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5118     # <limits.h> exists even on freestanding compilers.
5119     # On the NeXT, cc -E runs the code through the compiler's parser,
5120     # not just through cpp. "Syntax error" is here to catch this case.
5121     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5122 pcg 1.11 /* end confdefs.h. */
5123 sf-exg 1.132 #ifdef __STDC__
5124     # include <limits.h>
5125     #else
5126     # include <assert.h>
5127 pcg 1.11 #endif
5128 sf-exg 1.132 Syntax error
5129 pcg 1.11 _ACEOF
5130 sf-exg 1.132 if ac_fn_cxx_try_cpp "$LINENO"; then :
5131    
5132 pcg 1.11 else
5133 sf-exg 1.132 # Broken: fails on valid input.
5134     continue
5135 pcg 1.11 fi
5136 sf-exg 1.132 rm -f conftest.err conftest.$ac_ext
5137 ayin 1.108
5138 sf-exg 1.132 # OK, works on sane cases. Now check whether nonexistent headers
5139     # can be detected and how.
5140     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5141 pcg 1.11 /* end confdefs.h. */
5142 sf-exg 1.132 #include <ac_nonexistent.h>
5143 pcg 1.11 _ACEOF
5144 sf-exg 1.132 if ac_fn_cxx_try_cpp "$LINENO"; then :
5145     # Broken: success on invalid input.
5146     continue
5147 pcg 1.11 else
5148 sf-exg 1.132 # Passes both tests.
5149     ac_preproc_ok=:
5150     break
5151 pcg 1.11 fi
5152 sf-exg 1.132 rm -f conftest.err conftest.$ac_ext
5153 ayin 1.108
5154 sf-exg 1.132 done
5155     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5156     rm -f conftest.err conftest.$ac_ext
5157     if $ac_preproc_ok; then :
5158     break
5159 pcg 1.1 fi
5160    
5161 sf-exg 1.132 done
5162     ac_cv_prog_CXXCPP=$CXXCPP
5163 pcg 1.1
5164 sf-exg 1.132 fi
5165     CXXCPP=$ac_cv_prog_CXXCPP
5166 pcg 1.11 else
5167 sf-exg 1.132 ac_cv_prog_CXXCPP=$CXXCPP
5168     fi
5169     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5170     $as_echo "$CXXCPP" >&6; }
5171     ac_preproc_ok=false
5172     for ac_cxx_preproc_warn_flag in '' yes
5173     do
5174     # Use a header file that comes with gcc, so configuring glibc
5175     # with a fresh cross-compiler works.
5176     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5177     # <limits.h> exists even on freestanding compilers.
5178     # On the NeXT, cc -E runs the code through the compiler's parser,
5179     # not just through cpp. "Syntax error" is here to catch this case.
5180     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181 pcg 1.11 /* end confdefs.h. */
5182     #ifdef __STDC__
5183     # include <limits.h>
5184     #else
5185     # include <assert.h>
5186     #endif
5187 sf-exg 1.132 Syntax error
5188     _ACEOF
5189     if ac_fn_cxx_try_cpp "$LINENO"; then :
5190 pcg 1.11
5191 sf-exg 1.132 else
5192     # Broken: fails on valid input.
5193     continue
5194     fi
5195     rm -f conftest.err conftest.$ac_ext
5196 pcg 1.11
5197 sf-exg 1.132 # OK, works on sane cases. Now check whether nonexistent headers
5198     # can be detected and how.
5199     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5200     /* end confdefs.h. */
5201     #include <ac_nonexistent.h>
5202 pcg 1.11 _ACEOF
5203 sf-exg 1.132 if ac_fn_cxx_try_cpp "$LINENO"; then :
5204     # Broken: success on invalid input.
5205     continue
5206 pcg 1.11 else
5207 sf-exg 1.132 # Passes both tests.
5208     ac_preproc_ok=:
5209     break
5210     fi
5211     rm -f conftest.err conftest.$ac_ext
5212    
5213     done
5214     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5215     rm -f conftest.err conftest.$ac_ext
5216     if $ac_preproc_ok; then :
5217 pcg 1.11
5218 sf-exg 1.132 else
5219     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5220     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5221     as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5222     See \`config.log' for more details." "$LINENO" 5; }
5223 pcg 1.1 fi
5224 ayin 1.108
5225 sf-exg 1.132 ac_ext=cpp
5226     ac_cpp='$CXXCPP $CPPFLAGS'
5227     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5228     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5229     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5230 pcg 1.1
5231 pcg 1.11
5232 sf-exg 1.132 for ac_header in sys/inotify.h sys/epoll.h sys/event.h port.h poll.h sys/select.h sys/eventfd.h sys/signalfd.h
5233     do :
5234     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5235     ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5236     eval as_val=\$$as_ac_Header
5237     if test "x$as_val" = x""yes; then :
5238     cat >>confdefs.h <<_ACEOF
5239     #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5240 pcg 1.11 _ACEOF
5241    
5242     fi
5243 ayin 1.108
5244 sf-exg 1.132 done
5245 pcg 1.1
5246    
5247 sf-exg 1.132 for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd signalfd
5248     do :
5249     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5250     ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
5251     eval as_val=\$$as_ac_var
5252     if test "x$as_val" = x""yes; then :
5253     cat >>confdefs.h <<_ACEOF
5254     #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5255 pcg 1.11 _ACEOF
5256    
5257 sf-exg 1.132 fi
5258     done
5259 pcg 1.11
5260    
5261 sf-exg 1.132 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5262     if test "x$ac_cv_func_clock_gettime" = x""yes; then :
5263 pcg 1.11
5264 sf-exg 1.132 else
5265 pcg 1.1
5266 sf-exg 1.132 if test $(uname) = Linux; then
5267     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5
5268     $as_echo_n "checking for clock_gettime syscall... " >&6; }
5269     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270     /* end confdefs.h. */
5271     #include <unistd.h>
5272     #include <sys/syscall.h>
5273     #include <time.h>
5274 pcg 1.11 int
5275     main ()
5276     {
5277 sf-exg 1.132 struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts)
5278 pcg 1.11 ;
5279     return 0;
5280     }
5281     _ACEOF
5282 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
5283     ac_have_clock_syscall=1
5284 pcg 1.11
5285 sf-exg 1.132 $as_echo "#define HAVE_CLOCK_SYSCALL 1" >>confdefs.h
5286 ayin 1.108
5287 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5288     $as_echo "yes" >&6; }
5289     else
5290     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5291     $as_echo "no" >&6; }
5292 pcg 1.1 fi
5293 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
5294     conftest$ac_exeext conftest.$ac_ext
5295     fi
5296     if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then
5297     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
5298     $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
5299     if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
5300     $as_echo_n "(cached) " >&6
5301 pcg 1.1 else
5302 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
5303 sf-exg 1.132 LIBS="-lrt $LIBS"
5304     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305 pcg 1.11 /* end confdefs.h. */
5306    
5307 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
5308     Use char because int might match the return type of a GCC
5309     builtin and then its argument prototype would still apply. */
5310 pcg 1.11 #ifdef __cplusplus
5311     extern "C"
5312     #endif
5313 sf-exg 1.132 char clock_gettime ();
5314 pcg 1.11 int
5315     main ()
5316     {
5317 sf-exg 1.132 return clock_gettime ();
5318 pcg 1.11 ;
5319     return 0;
5320     }
5321     _ACEOF
5322 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
5323     ac_cv_lib_rt_clock_gettime=yes
5324 pcg 1.11 else
5325 sf-exg 1.132 ac_cv_lib_rt_clock_gettime=no
5326 pcg 1.11 fi
5327 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
5328     conftest$ac_exeext conftest.$ac_ext
5329 pcg 1.11 LIBS=$ac_check_lib_save_LIBS
5330     fi
5331 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
5332     $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
5333     if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
5334     cat >>confdefs.h <<_ACEOF
5335     #define HAVE_LIBRT 1
5336     _ACEOF
5337    
5338     LIBS="-lrt $LIBS"
5339    
5340 pcg 1.1 fi
5341    
5342 sf-exg 1.132 unset ac_cv_func_clock_gettime
5343     for ac_func in clock_gettime
5344     do :
5345     ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5346     if test "x$ac_cv_func_clock_gettime" = x""yes; then :
5347     cat >>confdefs.h <<_ACEOF
5348     #define HAVE_CLOCK_GETTIME 1
5349     _ACEOF
5350 pcg 1.1
5351 sf-exg 1.132 fi
5352     done
5353 pcg 1.11
5354 sf-exg 1.132 fi
5355 pcg 1.11
5356 sf-exg 1.132 fi
5357 pcg 1.11
5358    
5359 sf-exg 1.132 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5360     if test "x$ac_cv_func_nanosleep" = x""yes; then :
5361 pcg 1.11
5362     else
5363 pcg 1.1
5364 sf-exg 1.132 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
5365     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
5366     $as_echo_n "checking for nanosleep in -lrt... " >&6; }
5367     if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
5368     $as_echo_n "(cached) " >&6
5369 pcg 1.1 else
5370 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
5371 sf-exg 1.132 LIBS="-lrt $LIBS"
5372     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5373 pcg 1.11 /* end confdefs.h. */
5374    
5375 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
5376     Use char because int might match the return type of a GCC
5377     builtin and then its argument prototype would still apply. */
5378 pcg 1.11 #ifdef __cplusplus
5379     extern "C"
5380     #endif
5381 sf-exg 1.132 char nanosleep ();
5382 pcg 1.11 int
5383     main ()
5384     {
5385 sf-exg 1.132 return nanosleep ();
5386 pcg 1.11 ;
5387     return 0;
5388     }
5389     _ACEOF
5390 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
5391     ac_cv_lib_rt_nanosleep=yes
5392 pcg 1.11 else
5393 sf-exg 1.132 ac_cv_lib_rt_nanosleep=no
5394     fi
5395     rm -f core conftest.err conftest.$ac_objext \
5396     conftest$ac_exeext conftest.$ac_ext
5397     LIBS=$ac_check_lib_save_LIBS
5398     fi
5399     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
5400     $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
5401     if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
5402     cat >>confdefs.h <<_ACEOF
5403     #define HAVE_LIBRT 1
5404     _ACEOF
5405    
5406     LIBS="-lrt $LIBS"
5407 pcg 1.11
5408     fi
5409 ayin 1.108
5410 sf-exg 1.132 unset ac_cv_func_nanosleep
5411     for ac_func in nanosleep
5412     do :
5413     ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5414     if test "x$ac_cv_func_nanosleep" = x""yes; then :
5415     cat >>confdefs.h <<_ACEOF
5416     #define HAVE_NANOSLEEP 1
5417     _ACEOF
5418    
5419 pcg 1.11 fi
5420 sf-exg 1.132 done
5421    
5422     fi
5423    
5424 pcg 1.1 fi
5425    
5426    
5427 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil in -lm" >&5
5428     $as_echo_n "checking for ceil in -lm... " >&6; }
5429     if test "${ac_cv_lib_m_ceil+set}" = set; then :
5430     $as_echo_n "(cached) " >&6
5431 pcg 1.1 else
5432 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
5433 sf-exg 1.132 LIBS="-lm $LIBS"
5434     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435 pcg 1.11 /* end confdefs.h. */
5436    
5437 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
5438     Use char because int might match the return type of a GCC
5439     builtin and then its argument prototype would still apply. */
5440 pcg 1.11 #ifdef __cplusplus
5441     extern "C"
5442     #endif
5443 sf-exg 1.132 char ceil ();
5444 pcg 1.11 int
5445     main ()
5446     {
5447 sf-exg 1.132 return ceil ();
5448 pcg 1.11 ;
5449     return 0;
5450     }
5451     _ACEOF
5452 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
5453     ac_cv_lib_m_ceil=yes
5454 pcg 1.11 else
5455 sf-exg 1.132 ac_cv_lib_m_ceil=no
5456 pcg 1.11 fi
5457 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
5458     conftest$ac_exeext conftest.$ac_ext
5459 pcg 1.11 LIBS=$ac_check_lib_save_LIBS
5460     fi
5461 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ceil" >&5
5462     $as_echo "$ac_cv_lib_m_ceil" >&6; }
5463     if test "x$ac_cv_lib_m_ceil" = x""yes; then :
5464     cat >>confdefs.h <<_ACEOF
5465     #define HAVE_LIBM 1
5466     _ACEOF
5467 pcg 1.1
5468 sf-exg 1.132 LIBS="-lm $LIBS"
5469 pcg 1.1
5470     fi
5471    
5472    
5473 root 1.103
5474    
5475 sf-exg 1.132
5476     # Extract the first word of "tic", so it can be a program name with args.
5477     set dummy tic; ac_word=$2
5478     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5479     $as_echo_n "checking for $ac_word... " >&6; }
5480     if test "${ac_cv_path_TIC+set}" = set; then :
5481     $as_echo_n "(cached) " >&6
5482 root 1.103 else
5483 sf-exg 1.132 case $TIC in
5484 root 1.103 [\\/]* | ?:[\\/]*)
5485 sf-exg 1.132 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
5486 root 1.103 ;;
5487     *)
5488     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489     for as_dir in $PATH
5490     do
5491     IFS=$as_save_IFS
5492     test -z "$as_dir" && as_dir=.
5493 sf-exg 1.132 for ac_exec_ext in '' $ac_executable_extensions; do
5494 ayin 1.108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5495 sf-exg 1.132 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
5496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5497 root 1.103 break 2
5498     fi
5499     done
5500 sf-exg 1.132 done
5501 ayin 1.108 IFS=$as_save_IFS
5502 root 1.103
5503 sf-exg 1.132 test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":"
5504 root 1.103 ;;
5505     esac
5506     fi
5507 sf-exg 1.132 TIC=$ac_cv_path_TIC
5508     if test -n "$TIC"; then
5509     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIC" >&5
5510     $as_echo "$TIC" >&6; }
5511     else
5512     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5513     $as_echo "no" >&6; }
5514     fi
5515    
5516    
5517    
5518     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5519     $as_echo_n "checking for X... " >&6; }
5520    
5521    
5522     # Check whether --with-x was given.
5523     if test "${with_x+set}" = set; then :
5524     withval=$with_x;
5525     fi
5526    
5527     # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5528     if test "x$with_x" = xno; then
5529     # The user explicitly disabled X.
5530     have_x=disabled
5531     else
5532     case $x_includes,$x_libraries in #(
5533     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
5534     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
5535     $as_echo_n "(cached) " >&6
5536 root 1.103 else
5537 sf-exg 1.132 # One or both of the vars are not set, and there is no cached value.
5538     ac_x_includes=no ac_x_libraries=no
5539     rm -f -r conftest.dir
5540     if mkdir conftest.dir; then
5541     cd conftest.dir
5542     cat >Imakefile <<'_ACEOF'
5543     incroot:
5544     @echo incroot='${INCROOT}'
5545     usrlibdir:
5546     @echo usrlibdir='${USRLIBDIR}'
5547     libdir:
5548     @echo libdir='${LIBDIR}'
5549     _ACEOF
5550     if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5551     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5552     for ac_var in incroot usrlibdir libdir; do
5553     eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5554     done
5555     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5556     for ac_extension in a so sl dylib la dll; do
5557     if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5558     test -f "$ac_im_libdir/libX11.$ac_extension"; then
5559     ac_im_usrlibdir=$ac_im_libdir; break
5560     fi
5561     done
5562     # Screen out bogus values from the imake configuration. They are
5563     # bogus both because they are the default anyway, and because
5564     # using them would break gcc on systems where it needs fixed includes.
5565     case $ac_im_incroot in
5566     /usr/include) ac_x_includes= ;;
5567     *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5568     esac
5569     case $ac_im_usrlibdir in
5570     /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5571     *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5572     esac
5573     fi
5574     cd ..
5575     rm -f -r conftest.dir
5576 root 1.103 fi
5577    
5578 sf-exg 1.132 # Standard set of common directories for X headers.
5579     # Check X11 before X11Rn because it is often a symlink to the current release.
5580     ac_x_header_dirs='
5581     /usr/X11/include
5582     /usr/X11R7/include
5583     /usr/X11R6/include
5584     /usr/X11R5/include
5585     /usr/X11R4/include
5586    
5587     /usr/include/X11
5588     /usr/include/X11R7
5589     /usr/include/X11R6
5590     /usr/include/X11R5
5591     /usr/include/X11R4
5592    
5593     /usr/local/X11/include
5594     /usr/local/X11R7/include
5595     /usr/local/X11R6/include
5596     /usr/local/X11R5/include
5597     /usr/local/X11R4/include
5598    
5599     /usr/local/include/X11
5600     /usr/local/include/X11R7
5601     /usr/local/include/X11R6
5602     /usr/local/include/X11R5
5603     /usr/local/include/X11R4
5604    
5605     /usr/X386/include
5606     /usr/x386/include
5607     /usr/XFree86/include/X11
5608    
5609     /usr/include
5610     /usr/local/include
5611     /usr/unsupported/include
5612     /usr/athena/include
5613     /usr/local/x11r5/include
5614     /usr/lpp/Xamples/include
5615    
5616     /usr/openwin/include
5617     /usr/openwin/share/include'
5618 ayin 1.108
5619 sf-exg 1.132 if test "$ac_x_includes" = no; then
5620     # Guess where to find include files, by looking for Xlib.h.
5621     # First, try using that file with no special directory specified.
5622     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5623     /* end confdefs.h. */
5624     #include <X11/Xlib.h>
5625     _ACEOF
5626     if ac_fn_cxx_try_cpp "$LINENO"; then :
5627     # We can compile using X headers with no special include directory.
5628     ac_x_includes=
5629     else
5630     for ac_dir in $ac_x_header_dirs; do
5631     if test -r "$ac_dir/X11/Xlib.h"; then
5632     ac_x_includes=$ac_dir
5633     break
5634 root 1.103 fi
5635 sf-exg 1.132 done
5636     fi
5637     rm -f conftest.err conftest.$ac_ext
5638     fi # $ac_x_includes = no
5639    
5640     if test "$ac_x_libraries" = no; then
5641     # Check for the libraries.
5642     # See if we find them without any special options.
5643     # Don't add to $LIBS permanently.
5644     ac_save_LIBS=$LIBS
5645     LIBS="-lX11 $LIBS"
5646     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5647     /* end confdefs.h. */
5648     #include <X11/Xlib.h>
5649     int
5650     main ()
5651     {
5652     XrmInitialize ()
5653     ;
5654     return 0;
5655     }
5656     _ACEOF
5657     if ac_fn_cxx_try_link "$LINENO"; then :
5658     LIBS=$ac_save_LIBS
5659     # We can link X programs with no special library path.
5660     ac_x_libraries=
5661     else
5662     LIBS=$ac_save_LIBS
5663     for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5664     do
5665     # Don't even attempt the hair of trying to link an X program!
5666     for ac_extension in a so sl dylib la dll; do
5667     if test -r "$ac_dir/libX11.$ac_extension"; then
5668     ac_x_libraries=$ac_dir
5669     break 2
5670 root 1.103 fi
5671 sf-exg 1.132 done
5672     done
5673 root 1.103 fi
5674 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
5675     conftest$ac_exeext conftest.$ac_ext
5676     fi # $ac_x_libraries = no
5677 root 1.103
5678 sf-exg 1.132 case $ac_x_includes,$ac_x_libraries in #(
5679     no,* | *,no | *\'*)
5680     # Didn't find X, or a directory has "'" in its name.
5681     ac_cv_have_x="have_x=no";; #(
5682     *)
5683     # Record where we found X for the cache.
5684     ac_cv_have_x="have_x=yes\
5685     ac_x_includes='$ac_x_includes'\
5686     ac_x_libraries='$ac_x_libraries'"
5687     esac
5688     fi
5689     ;; #(
5690     *) have_x=yes;;
5691     esac
5692     eval "$ac_cv_have_x"
5693     fi # $with_x != no
5694 pcg 1.11
5695 sf-exg 1.132 if test "$have_x" != yes; then
5696     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5697     $as_echo "$have_x" >&6; }
5698     no_x=yes
5699     else
5700     # If each of the values was on the command line, it overrides each guess.
5701     test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5702     test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5703     # Update the cache value to reflect the command line values.
5704     ac_cv_have_x="have_x=yes\
5705     ac_x_includes='$x_includes'\
5706     ac_x_libraries='$x_libraries'"
5707     { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5708     $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5709     fi
5710 pcg 1.11
5711 sf-exg 1.132 if test "$no_x" = yes; then
5712     # Not all programs may use this symbol, but it does not hurt to define it.
5713 pcg 1.11
5714 sf-exg 1.132 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
5715 pcg 1.11
5716 sf-exg 1.132 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5717     else
5718     if test -n "$x_includes"; then
5719     X_CFLAGS="$X_CFLAGS -I$x_includes"
5720     fi
5721 pcg 1.11
5722 sf-exg 1.132 # It would also be nice to do this for all -L options, not just this one.
5723     if test -n "$x_libraries"; then
5724     X_LIBS="$X_LIBS -L$x_libraries"
5725     # For Solaris; some versions of Sun CC require a space after -R and
5726     # others require no space. Words are not sufficient . . . .
5727     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
5728     $as_echo_n "checking whether -R must be followed by a space... " >&6; }
5729     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5730     ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
5731     ac_cxx_werror_flag=yes
5732     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5733     /* end confdefs.h. */
5734 pcg 1.11
5735 sf-exg 1.132 int
5736     main ()
5737     {
5738 pcg 1.11
5739 sf-exg 1.132 ;
5740     return 0;
5741     }
5742     _ACEOF
5743     if ac_fn_cxx_try_link "$LINENO"; then :
5744     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5745     $as_echo "no" >&6; }
5746     X_LIBS="$X_LIBS -R$x_libraries"
5747 pcg 1.11 else
5748 sf-exg 1.132 LIBS="$ac_xsave_LIBS -R $x_libraries"
5749     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750 pcg 1.11 /* end confdefs.h. */
5751 sf-exg 1.132
5752     int
5753     main ()
5754     {
5755    
5756     ;
5757     return 0;
5758     }
5759 pcg 1.11 _ACEOF
5760 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
5761     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5762     $as_echo "yes" >&6; }
5763     X_LIBS="$X_LIBS -R $x_libraries"
5764 pcg 1.11 else
5765 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5766     $as_echo "neither works" >&6; }
5767     fi
5768     rm -f core conftest.err conftest.$ac_objext \
5769     conftest$ac_exeext conftest.$ac_ext
5770 pcg 1.11 fi
5771 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
5772     conftest$ac_exeext conftest.$ac_ext
5773     ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
5774     LIBS=$ac_xsave_LIBS
5775     fi
5776 ayin 1.108
5777 sf-exg 1.132 # Check for system-dependent libraries X programs must link with.
5778     # Do this before checking for the system-independent R6 libraries
5779     # (-lICE), since we may need -lsocket or whatever for X linking.
5780 pcg 1.11
5781 sf-exg 1.132 if test "$ISC" = yes; then
5782     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5783     else
5784     # Martyn Johnson says this is needed for Ultrix, if the X
5785     # libraries were built with DECnet support. And Karl Berry says
5786     # the Alpha needs dnet_stub (dnet does not exist).
5787     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5788     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5789 pcg 1.11 /* end confdefs.h. */
5790 sf-exg 1.132
5791     /* Override any GCC internal prototype to avoid an error.
5792     Use char because int might match the return type of a GCC
5793     builtin and then its argument prototype would still apply. */
5794     #ifdef __cplusplus
5795     extern "C"
5796     #endif
5797     char XOpenDisplay ();
5798     int
5799     main ()
5800     {
5801     return XOpenDisplay ();
5802     ;
5803     return 0;
5804     }
5805 pcg 1.11 _ACEOF
5806 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
5807    
5808     else
5809     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5810     $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
5811     if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
5812     $as_echo_n "(cached) " >&6
5813 pcg 1.1 else
5814 sf-exg 1.132 ac_check_lib_save_LIBS=$LIBS
5815     LIBS="-ldnet $LIBS"
5816     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5817     /* end confdefs.h. */
5818 pcg 1.11
5819 sf-exg 1.132 /* Override any GCC internal prototype to avoid an error.
5820     Use char because int might match the return type of a GCC
5821     builtin and then its argument prototype would still apply. */
5822     #ifdef __cplusplus
5823     extern "C"
5824     #endif
5825     char dnet_ntoa ();
5826     int
5827     main ()
5828     {
5829     return dnet_ntoa ();
5830     ;
5831     return 0;
5832     }
5833     _ACEOF
5834     if ac_fn_cxx_try_link "$LINENO"; then :
5835     ac_cv_lib_dnet_dnet_ntoa=yes
5836 pcg 1.1 else
5837 sf-exg 1.132 ac_cv_lib_dnet_dnet_ntoa=no
5838 pcg 1.1 fi
5839 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
5840     conftest$ac_exeext conftest.$ac_ext
5841     LIBS=$ac_check_lib_save_LIBS
5842 pcg 1.1 fi
5843 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5844     $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5845     if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
5846     X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5847 pcg 1.1 fi
5848 pcg 1.11
5849 sf-exg 1.132 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5850     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
5851     $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5852     if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
5853     $as_echo_n "(cached) " >&6
5854 pcg 1.11 else
5855 sf-exg 1.132 ac_check_lib_save_LIBS=$LIBS
5856     LIBS="-ldnet_stub $LIBS"
5857     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5858 pcg 1.11 /* end confdefs.h. */
5859 sf-exg 1.132
5860     /* Override any GCC internal prototype to avoid an error.
5861     Use char because int might match the return type of a GCC
5862     builtin and then its argument prototype would still apply. */
5863     #ifdef __cplusplus
5864     extern "C"
5865     #endif
5866     char dnet_ntoa ();
5867 pcg 1.11 int
5868     main ()
5869     {
5870 sf-exg 1.132 return dnet_ntoa ();
5871 pcg 1.11 ;
5872     return 0;
5873     }
5874     _ACEOF
5875 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
5876     ac_cv_lib_dnet_stub_dnet_ntoa=yes
5877 pcg 1.1 else
5878 sf-exg 1.132 ac_cv_lib_dnet_stub_dnet_ntoa=no
5879     fi
5880     rm -f core conftest.err conftest.$ac_objext \
5881     conftest$ac_exeext conftest.$ac_ext
5882     LIBS=$ac_check_lib_save_LIBS
5883     fi
5884     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5885     $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5886     if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
5887     X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5888 pcg 1.1 fi
5889 ayin 1.108
5890 sf-exg 1.132 fi
5891 pcg 1.1 fi
5892 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
5893     conftest$ac_exeext conftest.$ac_ext
5894     LIBS="$ac_xsave_LIBS"
5895 pcg 1.1
5896 sf-exg 1.132 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5897     # to get the SysV transport functions.
5898     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5899     # needs -lnsl.
5900     # The nsl library prevents programs from opening the X display
5901     # on Irix 5.2, according to T.E. Dickey.
5902     # The functions gethostbyname, getservbyname, and inet_addr are
5903     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5904     ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5905     if test "x$ac_cv_func_gethostbyname" = x""yes; then :
5906 pcg 1.1
5907     fi
5908    
5909 sf-exg 1.132 if test $ac_cv_func_gethostbyname = no; then
5910     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5911     $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5912     if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
5913     $as_echo_n "(cached) " >&6
5914 root 1.99 else
5915 sf-exg 1.132 ac_check_lib_save_LIBS=$LIBS
5916     LIBS="-lnsl $LIBS"
5917     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5918 root 1.99 /* end confdefs.h. */
5919    
5920 sf-exg 1.132 /* Override any GCC internal prototype to avoid an error.
5921     Use char because int might match the return type of a GCC
5922     builtin and then its argument prototype would still apply. */
5923     #ifdef __cplusplus
5924     extern "C"
5925     #endif
5926     char gethostbyname ();
5927 root 1.99 int
5928     main ()
5929     {
5930 sf-exg 1.132 return gethostbyname ();
5931 root 1.99 ;
5932     return 0;
5933     }
5934     _ACEOF
5935 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
5936     ac_cv_lib_nsl_gethostbyname=yes
5937 root 1.99 else
5938 sf-exg 1.132 ac_cv_lib_nsl_gethostbyname=no
5939 root 1.99 fi
5940 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
5941     conftest$ac_exeext conftest.$ac_ext
5942     LIBS=$ac_check_lib_save_LIBS
5943 root 1.99 fi
5944 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5945     $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5946     if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
5947     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5948 root 1.99 fi
5949 pcg 1.1
5950 sf-exg 1.132 if test $ac_cv_lib_nsl_gethostbyname = no; then
5951     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
5952     $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
5953     if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
5954     $as_echo_n "(cached) " >&6
5955 pcg 1.11 else
5956 sf-exg 1.132 ac_check_lib_save_LIBS=$LIBS
5957     LIBS="-lbsd $LIBS"
5958     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5959 pcg 1.11 /* end confdefs.h. */
5960 sf-exg 1.132
5961     /* Override any GCC internal prototype to avoid an error.
5962     Use char because int might match the return type of a GCC
5963     builtin and then its argument prototype would still apply. */
5964     #ifdef __cplusplus
5965     extern "C"
5966     #endif
5967     char gethostbyname ();
5968 pcg 1.11 int
5969     main ()
5970     {
5971 sf-exg 1.132 return gethostbyname ();
5972 pcg 1.11 ;
5973     return 0;
5974     }
5975     _ACEOF
5976 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
5977     ac_cv_lib_bsd_gethostbyname=yes
5978 pcg 1.1 else
5979 sf-exg 1.132 ac_cv_lib_bsd_gethostbyname=no
5980     fi
5981     rm -f core conftest.err conftest.$ac_objext \
5982     conftest$ac_exeext conftest.$ac_ext
5983     LIBS=$ac_check_lib_save_LIBS
5984     fi
5985     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
5986     $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
5987     if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
5988     X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5989 pcg 1.1 fi
5990 ayin 1.108
5991 sf-exg 1.132 fi
5992     fi
5993 pcg 1.1
5994 sf-exg 1.132 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5995     # socket/setsockopt and other routines are undefined under SCO ODT
5996     # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5997     # on later versions), says Simon Leinen: it contains gethostby*
5998     # variants that don't use the name server (or something). -lsocket
5999     # must be given before -lnsl if both are needed. We assume that
6000     # if connect needs -lnsl, so does gethostbyname.
6001     ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
6002     if test "x$ac_cv_func_connect" = x""yes; then :
6003 pcg 1.1
6004     fi
6005    
6006 sf-exg 1.132 if test $ac_cv_func_connect = no; then
6007     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
6008     $as_echo_n "checking for connect in -lsocket... " >&6; }
6009     if test "${ac_cv_lib_socket_connect+set}" = set; then :
6010     $as_echo_n "(cached) " >&6
6011 pcg 1.11 else
6012 sf-exg 1.132 ac_check_lib_save_LIBS=$LIBS
6013     LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6014     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6015 pcg 1.11 /* end confdefs.h. */
6016 sf-exg 1.132
6017     /* Override any GCC internal prototype to avoid an error.
6018     Use char because int might match the return type of a GCC
6019     builtin and then its argument prototype would still apply. */
6020     #ifdef __cplusplus
6021     extern "C"
6022     #endif
6023     char connect ();
6024 pcg 1.11 int
6025     main ()
6026     {
6027 sf-exg 1.132 return connect ();
6028 pcg 1.11 ;
6029     return 0;
6030     }
6031     _ACEOF
6032 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
6033     ac_cv_lib_socket_connect=yes
6034 pcg 1.1 else
6035 sf-exg 1.132 ac_cv_lib_socket_connect=no
6036     fi
6037     rm -f core conftest.err conftest.$ac_objext \
6038     conftest$ac_exeext conftest.$ac_ext
6039     LIBS=$ac_check_lib_save_LIBS
6040     fi
6041     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
6042     $as_echo "$ac_cv_lib_socket_connect" >&6; }
6043     if test "x$ac_cv_lib_socket_connect" = x""yes; then :
6044     X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6045 pcg 1.1 fi
6046 ayin 1.108
6047 sf-exg 1.132 fi
6048 pcg 1.1
6049 sf-exg 1.132 # Guillermo Gomez says -lposix is necessary on A/UX.
6050     ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
6051     if test "x$ac_cv_func_remove" = x""yes; then :
6052 pcg 1.1
6053     fi
6054    
6055 sf-exg 1.132 if test $ac_cv_func_remove = no; then
6056     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
6057     $as_echo_n "checking for remove in -lposix... " >&6; }
6058     if test "${ac_cv_lib_posix_remove+set}" = set; then :
6059     $as_echo_n "(cached) " >&6
6060 pcg 1.1 else
6061 sf-exg 1.132 ac_check_lib_save_LIBS=$LIBS
6062     LIBS="-lposix $LIBS"
6063     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064 pcg 1.11 /* end confdefs.h. */
6065    
6066 sf-exg 1.132 /* Override any GCC internal prototype to avoid an error.
6067     Use char because int might match the return type of a GCC
6068     builtin and then its argument prototype would still apply. */
6069     #ifdef __cplusplus
6070     extern "C"
6071     #endif
6072     char remove ();
6073     int
6074     main ()
6075     {
6076     return remove ();
6077     ;
6078     return 0;
6079     }
6080 pcg 1.11 _ACEOF
6081 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
6082     ac_cv_lib_posix_remove=yes
6083 pcg 1.1 else
6084 sf-exg 1.132 ac_cv_lib_posix_remove=no
6085     fi
6086     rm -f core conftest.err conftest.$ac_objext \
6087     conftest$ac_exeext conftest.$ac_ext
6088     LIBS=$ac_check_lib_save_LIBS
6089 pcg 1.1 fi
6090 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
6091     $as_echo "$ac_cv_lib_posix_remove" >&6; }
6092     if test "x$ac_cv_lib_posix_remove" = x""yes; then :
6093     X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6094 pcg 1.1 fi
6095    
6096 sf-exg 1.132 fi
6097 pcg 1.11
6098 sf-exg 1.132 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6099     ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
6100     if test "x$ac_cv_func_shmat" = x""yes; then :
6101 pcg 1.1
6102     fi
6103    
6104 sf-exg 1.132 if test $ac_cv_func_shmat = no; then
6105     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
6106     $as_echo_n "checking for shmat in -lipc... " >&6; }
6107     if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
6108     $as_echo_n "(cached) " >&6
6109 pcg 1.11 else
6110 sf-exg 1.132 ac_check_lib_save_LIBS=$LIBS
6111     LIBS="-lipc $LIBS"
6112     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6113 pcg 1.11 /* end confdefs.h. */
6114 pcg 1.1
6115 sf-exg 1.132 /* Override any GCC internal prototype to avoid an error.
6116     Use char because int might match the return type of a GCC
6117     builtin and then its argument prototype would still apply. */
6118     #ifdef __cplusplus
6119     extern "C"
6120     #endif
6121     char shmat ();
6122 pcg 1.11 int
6123     main ()
6124 pcg 1.1 {
6125 sf-exg 1.132 return shmat ();
6126 pcg 1.11 ;
6127     return 0;
6128 pcg 1.1 }
6129 pcg 1.11 _ACEOF
6130 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
6131     ac_cv_lib_ipc_shmat=yes
6132 ayin 1.122 else
6133 sf-exg 1.132 ac_cv_lib_ipc_shmat=no
6134 ayin 1.122 fi
6135 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
6136     conftest$ac_exeext conftest.$ac_ext
6137     LIBS=$ac_check_lib_save_LIBS
6138 pcg 1.11 fi
6139 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
6140     $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
6141     if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
6142     X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6143 pcg 1.11 fi
6144 ayin 1.108
6145 sf-exg 1.132 fi
6146     fi
6147 pcg 1.1
6148 sf-exg 1.132 # Check for libraries that X11R6 Xt/Xaw programs need.
6149     ac_save_LDFLAGS=$LDFLAGS
6150     test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6151     # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6152     # check for ICE first), but we must link in the order -lSM -lICE or
6153     # we get undefined symbols. So assume we have SM if we have ICE.
6154     # These have to be linked with before -lX11, unlike the other
6155     # libraries we check for below, so use a different variable.
6156     # John Interrante, Karl Berry
6157     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
6158     $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
6159     if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
6160     $as_echo_n "(cached) " >&6
6161 pcg 1.1 else
6162 sf-exg 1.132 ac_check_lib_save_LIBS=$LIBS
6163     LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6164     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6165 pcg 1.11 /* end confdefs.h. */
6166 sf-exg 1.132
6167     /* Override any GCC internal prototype to avoid an error.
6168     Use char because int might match the return type of a GCC
6169     builtin and then its argument prototype would still apply. */
6170     #ifdef __cplusplus
6171     extern "C"
6172     #endif
6173     char IceConnectionNumber ();
6174 pcg 1.11 int
6175     main ()
6176     {
6177 sf-exg 1.132 return IceConnectionNumber ();
6178 pcg 1.11 ;
6179     return 0;
6180     }
6181     _ACEOF
6182 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
6183     ac_cv_lib_ICE_IceConnectionNumber=yes
6184 pcg 1.1 else
6185 sf-exg 1.132 ac_cv_lib_ICE_IceConnectionNumber=no
6186     fi
6187     rm -f core conftest.err conftest.$ac_objext \
6188     conftest$ac_exeext conftest.$ac_ext
6189     LIBS=$ac_check_lib_save_LIBS
6190     fi
6191     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6192     $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6193     if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
6194     X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6195     fi
6196 pcg 1.11
6197 sf-exg 1.132 LDFLAGS=$ac_save_LDFLAGS
6198 ayin 1.122
6199 pcg 1.1 fi
6200 ayin 1.108
6201 ayin 1.122
6202 sf-exg 1.132 AFTERIMAGE_CFLAGS=
6203     AFTERIMAGE_LIBS=
6204     AFTERIMAGE_VERSION=
6205 ayin 1.122
6206 sf-exg 1.132 if test x$support_afterimage = xyes; then
6207     support_afterimage=no
6208 ayin 1.122
6209 sf-exg 1.132 if test "x$afterimage_config" = "x" ; then
6210     # Extract the first word of "afterimage-config", so it can be a program name with args.
6211     set dummy afterimage-config; ac_word=$2
6212     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6213     $as_echo_n "checking for $ac_word... " >&6; }
6214     if test "${ac_cv_path_afterimage_config+set}" = set; then :
6215     $as_echo_n "(cached) " >&6
6216     else
6217     case $afterimage_config in
6218     [\\/]* | ?:[\\/]*)
6219     ac_cv_path_afterimage_config="$afterimage_config" # Let the user override the test with a path.
6220     ;;
6221     *)
6222     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223     for as_dir in $PATH
6224     do
6225     IFS=$as_save_IFS
6226     test -z "$as_dir" && as_dir=.
6227     for ac_exec_ext in '' $ac_executable_extensions; do
6228     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6229     ac_cv_path_afterimage_config="$as_dir/$ac_word$ac_exec_ext"
6230     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6231     break 2
6232     fi
6233     done
6234     done
6235     IFS=$as_save_IFS
6236 pcg 1.1
6237 sf-exg 1.132 test -z "$ac_cv_path_afterimage_config" && ac_cv_path_afterimage_config="no"
6238     ;;
6239     esac
6240     fi
6241     afterimage_config=$ac_cv_path_afterimage_config
6242     if test -n "$afterimage_config"; then
6243     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $afterimage_config" >&5
6244     $as_echo "$afterimage_config" >&6; }
6245 pcg 1.11 else
6246 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6247     $as_echo "no" >&6; }
6248     fi
6249    
6250 ayin 1.122
6251 sf-exg 1.132 fi
6252     if test "x$afterimage_config" != "xno" ; then
6253     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libAfterImage version >= 1.15" >&5
6254     $as_echo_n "checking for libAfterImage version >= 1.15... " >&6; }
6255     xAFTERIMAGE_VERSION=`$afterimage_config --version`
6256     if test -n "$xAFTERIMAGE_VERSION" ; then
6257     xAFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
6258     xAFTERIMAGE_LIBS=`$afterimage_config --libs`
6259     if test "x$xAFTERIMAGE_LIBS" != "x"; then
6260     libai_ver_major=`echo $xAFTERIMAGE_VERSION | cut -f 1 -d .`
6261     libai_ver_minor=`echo $xAFTERIMAGE_VERSION | cut -f 2 -d .`
6262     if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then
6263     support_afterimage=yes
6264     AFTERIMAGE_CFLAGS="$xAFTERIMAGE_CFLAGS"
6265     AFTERIMAGE_LIBS="$xAFTERIMAGE_LIBS"
6266     AFTERIMAGE_VERSION="$xAFTERIMAGE_VERSION"
6267     fi
6268     fi
6269     fi
6270     if test "x$support_afterimage" = "xyes"; then
6271     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AFTERIMAGE_LIBS" >&5
6272     $as_echo "$AFTERIMAGE_LIBS" >&6; }
6273     else
6274     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6275     $as_echo "no" >&6; }
6276     fi
6277     fi
6278 ayin 1.122 fi
6279    
6280 sf-exg 1.132 for ac_header in \
6281     sys/byteorder.h \
6282     sys/ioctl.h \
6283     sys/sockio.h \
6284     sys/strredir.h \
6285     stdint.h \
6286     wchar.h \
6287     cwchar \
6288 ayin 1.122
6289 sf-exg 1.132 do :
6290     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6291     ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6292     eval as_val=\$$as_ac_Header
6293     if test "x$as_val" = x""yes; then :
6294     cat >>confdefs.h <<_ACEOF
6295     #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6296     _ACEOF
6297 ayin 1.122
6298 pcg 1.1 fi
6299 ayin 1.108
6300 sf-exg 1.132 done
6301 ayin 1.122
6302 pcg 1.1
6303 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPointer" >&5
6304     $as_echo_n "checking for XPointer... " >&6; }
6305     if test "${rxvt_cv_xpointer+set}" = set; then :
6306     $as_echo_n "(cached) " >&6
6307 pcg 1.11 else
6308 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6309 pcg 1.11 /* end confdefs.h. */
6310 sf-exg 1.132 #include <X11/Xlib.h>
6311 pcg 1.11 int
6312     main ()
6313     {
6314 sf-exg 1.132 XPointer dummy;
6315 pcg 1.11 ;
6316     return 0;
6317     }
6318     _ACEOF
6319 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
6320     rxvt_cv_xpointer=yes
6321 pcg 1.1 else
6322 sf-exg 1.132 rxvt_cv_xpointer=no
6323 pcg 1.1 fi
6324 ayin 1.108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6325 pcg 1.1 fi
6326 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xpointer" >&5
6327     $as_echo "$rxvt_cv_xpointer" >&6; }
6328     if test x$rxvt_cv_xpointer = xyes; then
6329 ayin 1.122
6330 sf-exg 1.132 $as_echo "#define HAVE_XPOINTER 1" >>confdefs.h
6331 pcg 1.1
6332 sf-exg 1.132 fi
6333 pcg 1.1
6334 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB_ILLEGAL_ACCESS" >&5
6335     $as_echo_n "checking for XLIB_ILLEGAL_ACCESS... " >&6; }
6336     if test "${rxvt_cv_xlib_illegal_access+set}" = set; then :
6337     $as_echo_n "(cached) " >&6
6338 root 1.83 else
6339 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6340 root 1.83 /* end confdefs.h. */
6341    
6342 sf-exg 1.132 #define XLIB_ILLEGAL_ACCESS
6343     #include <X11/Xlib.h>
6344 pcg 1.11
6345 root 1.83 int
6346     main ()
6347     {
6348 sf-exg 1.132
6349     Display *dpy;
6350     dpy->xdefaults = (char *)0;
6351    
6352 root 1.83 ;
6353     return 0;
6354     }
6355     _ACEOF
6356 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
6357     rxvt_cv_xlib_illegal_access=yes
6358 root 1.83 else
6359 sf-exg 1.132 rxvt_cv_xlib_illegal_access=no
6360 pcg 1.11
6361 root 1.83 fi
6362 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6363 root 1.83 fi
6364 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xlib_illegal_access" >&5
6365     $as_echo "$rxvt_cv_xlib_illegal_access" >&6; }
6366     if test x$rxvt_cv_xlib_illegal_access = xyes; then
6367 pcg 1.11
6368 sf-exg 1.132 $as_echo "#define XLIB_ILLEGAL_ACCESS 1" >>confdefs.h
6369 pcg 1.11
6370 ayin 1.108 fi
6371 ayin 1.102
6372 sf-exg 1.132 ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
6373     if test "x$ac_cv_type_mode_t" = x""yes; then :
6374 ayin 1.108
6375 sf-exg 1.132 else
6376 ayin 1.102
6377 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
6378     #define mode_t int
6379     _ACEOF
6380 ayin 1.108
6381     fi
6382    
6383 sf-exg 1.132 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6384     if test "x$ac_cv_type_pid_t" = x""yes; then :
6385 root 1.92
6386 sf-exg 1.132 else
6387 root 1.92
6388 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
6389     #define pid_t int
6390 root 1.92 _ACEOF
6391    
6392     fi
6393    
6394 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6395     $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6396     if test "${ac_cv_type_uid_t+set}" = set; then :
6397     $as_echo_n "(cached) " >&6
6398     else
6399     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400     /* end confdefs.h. */
6401     #include <sys/types.h>
6402    
6403 root 1.92 _ACEOF
6404 sf-exg 1.132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6405     $EGREP "uid_t" >/dev/null 2>&1; then :
6406     ac_cv_type_uid_t=yes
6407     else
6408     ac_cv_type_uid_t=no
6409 root 1.92 fi
6410 sf-exg 1.132 rm -f conftest*
6411 root 1.92
6412     fi
6413 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6414     $as_echo "$ac_cv_type_uid_t" >&6; }
6415     if test $ac_cv_type_uid_t = no; then
6416 root 1.92
6417 sf-exg 1.132 $as_echo "#define uid_t int" >>confdefs.h
6418 pcg 1.11
6419 root 1.88
6420 sf-exg 1.132 $as_echo "#define gid_t int" >>confdefs.h
6421 root 1.88
6422 sf-exg 1.132 fi
6423 root 1.88
6424 sf-exg 1.132 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6425     case $ac_cv_c_int16_t in #(
6426     no|yes) ;; #(
6427     *)
6428 root 1.88
6429 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
6430     #define int16_t $ac_cv_c_int16_t
6431 root 1.88 _ACEOF
6432 sf-exg 1.132 ;;
6433 ayin 1.108 esac
6434 root 1.88
6435 sf-exg 1.132 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6436     case $ac_cv_c_uint16_t in #(
6437     no|yes) ;; #(
6438     *)
6439    
6440 ayin 1.108
6441 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
6442     #define uint16_t $ac_cv_c_uint16_t
6443 root 1.88 _ACEOF
6444 sf-exg 1.132 ;;
6445     esac
6446 root 1.88
6447 sf-exg 1.132 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6448     case $ac_cv_c_int32_t in #(
6449     no|yes) ;; #(
6450     *)
6451 root 1.88
6452 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
6453     #define int32_t $ac_cv_c_int32_t
6454 root 1.88 _ACEOF
6455 sf-exg 1.132 ;;
6456 ayin 1.108 esac
6457 root 1.88
6458 sf-exg 1.132 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6459     case $ac_cv_c_uint32_t in #(
6460     no|yes) ;; #(
6461     *)
6462    
6463     $as_echo "#define _UINT32_T 1" >>confdefs.h
6464 ayin 1.108
6465 root 1.88
6466 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
6467     #define uint32_t $ac_cv_c_uint32_t
6468 root 1.88 _ACEOF
6469 sf-exg 1.132 ;;
6470     esac
6471    
6472    
6473     for ac_func in unsetenv
6474     do :
6475     ac_fn_cxx_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
6476     if test "x$ac_cv_func_unsetenv" = x""yes; then :
6477     cat >>confdefs.h <<_ACEOF
6478     #define HAVE_UNSETENV 1
6479 root 1.88 _ACEOF
6480    
6481     fi
6482 sf-exg 1.132 done
6483    
6484    
6485    
6486     support_utmp=yes
6487     support_wtmp=yes
6488     support_lastlog=yes
6489 ayin 1.108
6490 sf-exg 1.132 # Check whether --enable-utmp was given.
6491     if test "${enable_utmp+set}" = set; then :
6492     enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then
6493     support_utmp=$enableval
6494     fi
6495     fi
6496 root 1.88
6497 ayin 1.108
6498 sf-exg 1.132 # Check whether --enable-wtmp was given.
6499     if test "${enable_wtmp+set}" = set; then :
6500     enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then
6501     support_wtmp=$enableval
6502     fi
6503 root 1.88 fi
6504    
6505 sf-exg 1.132
6506     # Check whether --enable-lastlog was given.
6507     if test "${enable_lastlog+set}" = set; then :
6508     enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then
6509     support_lastlog=$enableval
6510     fi
6511 root 1.88 fi
6512 sf-exg 1.132
6513    
6514     if test x$support_utmp = xyes; then
6515    
6516     $as_echo "#define UTMP_SUPPORT 1" >>confdefs.h
6517 root 1.88
6518     fi
6519 sf-exg 1.132 if test x$support_wtmp = xyes; then
6520    
6521     $as_echo "#define WTMP_SUPPORT 1" >>confdefs.h
6522 root 1.88
6523 sf-exg 1.132 fi
6524     if test x$support_lastlog = xyes; then
6525 root 1.88
6526 sf-exg 1.132 $as_echo "#define LASTLOG_SUPPORT 1" >>confdefs.h
6527 root 1.88
6528 sf-exg 1.132 fi
6529 root 1.88
6530 sf-exg 1.132 for ac_func in \
6531     updwtmp \
6532     updwtmpx \
6533     updlastlogx \
6534 root 1.128
6535 sf-exg 1.132 do :
6536     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6537     ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
6538     eval as_val=\$$as_ac_var
6539     if test "x$as_val" = x""yes; then :
6540     cat >>confdefs.h <<_ACEOF
6541     #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6542 root 1.88 _ACEOF
6543    
6544     fi
6545 sf-exg 1.132 done
6546 ayin 1.108
6547 root 1.88
6548 sf-exg 1.132 for ac_header in lastlog.h
6549     do :
6550     ac_fn_cxx_check_header_mongrel "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "$ac_includes_default"
6551     if test "x$ac_cv_header_lastlog_h" = x""yes; then :
6552     cat >>confdefs.h <<_ACEOF
6553     #define HAVE_LASTLOG_H 1
6554 root 1.88 _ACEOF
6555    
6556     fi
6557 ayin 1.108
6558 sf-exg 1.132 done
6559 root 1.88
6560 ayin 1.108
6561 root 1.88
6562 sf-exg 1.132 for ac_header in utmp.h
6563     do :
6564     ac_fn_cxx_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
6565     if test "x$ac_cv_header_utmp_h" = x""yes; then :
6566 root 1.128 cat >>confdefs.h <<_ACEOF
6567 sf-exg 1.132 #define HAVE_UTMP_H 1
6568 root 1.128 _ACEOF
6569 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utmp" >&5
6570     $as_echo_n "checking for struct utmp... " >&6; }
6571     if test "${pt_cv_struct_utmp+set}" = set; then :
6572     $as_echo_n "(cached) " >&6
6573 root 1.88 else
6574 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575 root 1.88 /* end confdefs.h. */
6576     #include <sys/types.h>
6577     #include <utmp.h>
6578     int
6579     main ()
6580     {
6581     struct utmp ut;
6582     ;
6583     return 0;
6584     }
6585     _ACEOF
6586 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
6587     pt_cv_struct_utmp=yes
6588 root 1.88 else
6589 sf-exg 1.132 pt_cv_struct_utmp=no
6590 root 1.88 fi
6591 ayin 1.108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6592 root 1.88 fi
6593 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_struct_utmp" >&5
6594     $as_echo "$pt_cv_struct_utmp" >&6; }
6595     if test x$pt_cv_struct_utmp = xyes; then
6596 root 1.88
6597 sf-exg 1.132 $as_echo "#define HAVE_STRUCT_UTMP 1" >>confdefs.h
6598 root 1.88
6599     fi
6600    
6601    
6602 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host in utmp struct" >&5
6603     $as_echo_n "checking for ut_host in utmp struct... " >&6; }
6604     if test "${pt_cv_struct_utmp_host+set}" = set; then :
6605     $as_echo_n "(cached) " >&6
6606 root 1.88 else
6607 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608 root 1.88 /* end confdefs.h. */
6609     #include <sys/types.h>
6610     #include <utmp.h>
6611     int
6612     main ()
6613     {
6614     struct utmp ut; ut.ut_host;
6615     ;
6616     return 0;
6617     }
6618     _ACEOF
6619 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
6620     pt_cv_struct_utmp_host=yes
6621 root 1.88 else
6622 sf-exg 1.132 pt_cv_struct_utmp_host=no
6623 root 1.88 fi
6624 ayin 1.108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6625 root 1.88 fi
6626 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_struct_utmp_host" >&5
6627     $as_echo "$pt_cv_struct_utmp_host" >&6; }
6628     if test x$pt_cv_struct_utmp_host = xyes; then
6629 root 1.88
6630 sf-exg 1.132 $as_echo "#define HAVE_UTMP_HOST 1" >>confdefs.h
6631 root 1.88
6632     fi
6633    
6634 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid in utmp struct" >&5
6635     $as_echo_n "checking for ut_pid in utmp struct... " >&6; }
6636     if test "${pt_cv_struct_utmp_pid+set}" = set; then :
6637     $as_echo_n "(cached) " >&6
6638 root 1.88 else
6639 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6640 root 1.88 /* end confdefs.h. */
6641     #include <sys/types.h>
6642     #include <utmp.h>
6643     int
6644     main ()
6645     {
6646     struct utmp ut; ut.ut_pid;
6647     ;
6648     return 0;
6649     }
6650     _ACEOF
6651 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
6652     pt_cv_struct_utmp_pid=yes
6653 root 1.88 else
6654 sf-exg 1.132 pt_cv_struct_utmp_pid=no
6655 root 1.88 fi
6656 ayin 1.108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6657 root 1.88 fi
6658 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_struct_utmp_pid" >&5
6659     $as_echo "$pt_cv_struct_utmp_pid" >&6; }
6660     if test x$pt_cv_struct_utmp_pid = xyes; then
6661 root 1.88
6662 sf-exg 1.132 $as_echo "#define HAVE_UTMP_PID 1" >>confdefs.h
6663 root 1.88
6664     fi
6665    
6666     fi
6667    
6668 root 1.128 done
6669    
6670 root 1.88
6671 root 1.128 for ac_header in utmpx.h
6672 sf-exg 1.132 do :
6673     ac_fn_cxx_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
6674     if test "x$ac_cv_header_utmpx_h" = x""yes; then :
6675 root 1.128 cat >>confdefs.h <<_ACEOF
6676 sf-exg 1.132 #define HAVE_UTMPX_H 1
6677 root 1.128 _ACEOF
6678 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utmpx" >&5
6679     $as_echo_n "checking for struct utmpx... " >&6; }
6680     if test "${pt_cv_struct_utmpx+set}" = set; then :
6681     $as_echo_n "(cached) " >&6
6682 root 1.88 else
6683 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684 root 1.88 /* end confdefs.h. */
6685     #include <sys/types.h>
6686     #include <utmpx.h>
6687     int
6688     main ()
6689     {
6690     struct utmpx ut;
6691     ;
6692     return 0;
6693     }
6694     _ACEOF
6695 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
6696     pt_cv_struct_utmpx=yes
6697 root 1.88 else
6698 sf-exg 1.132 pt_cv_struct_utmpx=no
6699 root 1.88 fi
6700 ayin 1.108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6701 root 1.88 fi
6702 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_struct_utmpx" >&5
6703     $as_echo "$pt_cv_struct_utmpx" >&6; }
6704     if test x$pt_cv_struct_utmpx = xyes; then
6705 root 1.88
6706 sf-exg 1.132 $as_echo "#define HAVE_STRUCT_UTMPX 1" >>confdefs.h
6707 root 1.88
6708     fi
6709    
6710    
6711 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host in utmpx struct" >&5
6712     $as_echo_n "checking for host in utmpx struct... " >&6; }
6713     if test "${pt_cv_struct_utmpx_host+set}" = set; then :
6714     $as_echo_n "(cached) " >&6
6715 root 1.88 else
6716 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717 root 1.88 /* end confdefs.h. */
6718     #include <sys/types.h>
6719     #include <utmpx.h>
6720     int
6721     main ()
6722     {
6723     struct utmpx utx; utx.ut_host;
6724     ;
6725     return 0;
6726     }
6727     _ACEOF
6728 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
6729     pt_cv_struct_utmpx_host=yes
6730 root 1.88 else
6731 sf-exg 1.132 pt_cv_struct_utmpx_host=no
6732 root 1.88 fi
6733 ayin 1.108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6734 root 1.88 fi
6735 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_struct_utmpx_host" >&5
6736     $as_echo "$pt_cv_struct_utmpx_host" >&6; }
6737     if test x$pt_cv_struct_utmpx_host = xyes; then
6738 root 1.88
6739 sf-exg 1.132 $as_echo "#define HAVE_UTMPX_HOST 1" >>confdefs.h
6740 root 1.88
6741     fi
6742    
6743 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for session in utmpx struct" >&5
6744     $as_echo_n "checking for session in utmpx struct... " >&6; }
6745     if test "${pt_cv_struct_utmpx_session+set}" = set; then :
6746     $as_echo_n "(cached) " >&6
6747 root 1.88 else
6748 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749 root 1.88 /* end confdefs.h. */
6750     #include <sys/types.h>
6751     #include <utmpx.h>
6752     int
6753     main ()
6754     {
6755     struct utmpx utx; utx.ut_session;
6756     ;
6757     return 0;
6758     }
6759     _ACEOF
6760 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
6761     pt_cv_struct_utmpx_session=yes
6762 ayin 1.108 else
6763 sf-exg 1.132 pt_cv_struct_utmpx_session=no
6764 root 1.88 fi
6765 ayin 1.108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6766 root 1.88 fi
6767 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_struct_utmpx_session" >&5
6768     $as_echo "$pt_cv_struct_utmpx_session" >&6; }
6769     if test x$pt_cv_struct_utmpx_session = xyes; then
6770 root 1.88
6771 sf-exg 1.132 $as_echo "#define HAVE_UTMPX_SESSION 1" >>confdefs.h
6772 root 1.88
6773     fi
6774    
6775     fi
6776    
6777 root 1.128 done
6778 root 1.88
6779 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lastlog" >&5
6780     $as_echo_n "checking for struct lastlog... " >&6; }
6781     if test "${pt_cv_struct_lastlog+set}" = set; then :
6782     $as_echo_n "(cached) " >&6
6783 root 1.88 else
6784 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785 root 1.88 /* end confdefs.h. */
6786     #include <sys/types.h>
6787     #include <utmp.h>
6788     #ifdef HAVE_LASTLOG_H
6789     #include <lastlog.h>
6790     #endif
6791    
6792     int
6793     main ()
6794     {
6795     struct lastlog ll;
6796     ;
6797     return 0;
6798     }
6799     _ACEOF
6800 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
6801     pt_cv_struct_lastlog=yes
6802 root 1.88 else
6803 sf-exg 1.132 pt_cv_struct_lastlog=no
6804 root 1.88 fi
6805 ayin 1.108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6806 root 1.88 fi
6807 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_struct_lastlog" >&5
6808     $as_echo "$pt_cv_struct_lastlog" >&6; }
6809     if test x$pt_cv_struct_lastlog = xyes; then
6810 root 1.88
6811 sf-exg 1.132 $as_echo "#define HAVE_STRUCT_LASTLOG 1" >>confdefs.h
6812 root 1.88
6813     fi
6814    
6815 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lastlogx" >&5
6816     $as_echo_n "checking for struct lastlogx... " >&6; }
6817     if test "${pt_cv_struct_lastlogx+set}" = set; then :
6818     $as_echo_n "(cached) " >&6
6819 root 1.88 else
6820 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821 root 1.88 /* end confdefs.h. */
6822     #include <sys/types.h>
6823     #include <utmpx.h>
6824     #ifdef HAVE_LASTLOG_H
6825     #include <lastlog.h>
6826     #endif
6827    
6828     int
6829     main ()
6830     {
6831     struct lastlogx ll;
6832     ;
6833     return 0;
6834     }
6835     _ACEOF
6836 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
6837     pt_cv_struct_lastlogx=yes
6838 root 1.88 else
6839 sf-exg 1.132 pt_cv_struct_lastlogx=no
6840 root 1.88 fi
6841 ayin 1.108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6842 root 1.88 fi
6843 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_struct_lastlogx" >&5
6844     $as_echo "$pt_cv_struct_lastlogx" >&6; }
6845     if test x$pt_cv_struct_lastlogx = xyes; then
6846 root 1.88
6847 sf-exg 1.132 $as_echo "#define HAVE_STRUCT_LASTLOGX 1" >>confdefs.h
6848 root 1.88
6849     fi
6850    
6851    
6852 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where utmp is located" >&5
6853     $as_echo_n "checking where utmp is located... " >&6; }
6854     if test "${pt_cv_path_utmp+set}" = set; then :
6855     $as_echo_n "(cached) " >&6
6856 root 1.88 else
6857 sf-exg 1.132 if test "$cross_compiling" = yes; then :
6858     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define UTMP_FILE in config.h manually" >&5
6859     $as_echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;}
6860 root 1.88 else
6861 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862 root 1.88 /* end confdefs.h. */
6863     #include <stdio.h>
6864 ayin 1.102 #include <stdlib.h>
6865 root 1.88 #include <sys/types.h>
6866     #include <utmp.h>
6867     #include <errno.h>
6868     main()
6869     {
6870     char **u, *utmplist[] = {
6871     "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL };
6872     FILE *a, *f=fopen("conftestval", "w");
6873     if (!f) exit(1);
6874     #ifdef UTMP_FILE
6875     fprintf(f, "%s\n", UTMP_FILE);
6876     exit(0);
6877     #endif
6878     #ifdef _PATH_UTMP
6879     fprintf(f, "%s\n", _PATH_UTMP);
6880     exit(0);
6881     #endif
6882     for (u = utmplist; *u; u++) {
6883     if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
6884     fprintf(f, "%s\n", *u);
6885     exit(0);
6886     }
6887     }
6888     exit(0);
6889     }
6890     _ACEOF
6891 sf-exg 1.132 if ac_fn_cxx_try_run "$LINENO"; then :
6892     pt_cv_path_utmp=`cat conftestval`
6893 root 1.88 else
6894 sf-exg 1.132 pt_cv_path_utmp=
6895 root 1.88 fi
6896 sf-exg 1.132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6897     conftest.$ac_objext conftest.beam conftest.$ac_ext
6898 root 1.88 fi
6899 ayin 1.108
6900 root 1.88 fi
6901 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5
6902     $as_echo "$pt_cv_path_utmp" >&6; }
6903     if test x$pt_cv_path_utmp != x; then
6904 root 1.88
6905     cat >>confdefs.h <<_ACEOF
6906 sf-exg 1.132 #define UTMP_FILE "$pt_cv_path_utmp"
6907 root 1.88 _ACEOF
6908    
6909     fi
6910    
6911    
6912 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where utmpx is located" >&5
6913     $as_echo_n "checking where utmpx is located... " >&6; }
6914     if test "${pt_cv_path_utmpx+set}" = set; then :
6915     $as_echo_n "(cached) " >&6
6916 root 1.88 else
6917 sf-exg 1.132 if test "$cross_compiling" = yes; then :
6918     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define UTMPX_FILE in config.h manually" >&5
6919     $as_echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;}
6920 root 1.88 else
6921 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6922 root 1.88 /* end confdefs.h. */
6923     #include <stdio.h>
6924 ayin 1.102 #include <stdlib.h>
6925 root 1.88 #include <sys/types.h>
6926     #include <utmpx.h>
6927     #include <errno.h>
6928     #include <sys/stat.h>
6929     #ifdef HAVE_STRING_H
6930     #include <string.h>
6931     #endif
6932     main()
6933     {
6934     char **u, *p, *utmplist[] = {
6935     #ifdef UTMPX_FILE
6936     UTMPX_FILE,
6937     #endif
6938     #ifdef _PATH_UTMPX
6939     _PATH_UTMPX,
6940     #endif
6941     "/var/adm/utmpx", "/etc/utmpx", NULL };
6942     FILE *a, *f=fopen("conftestval", "w");
6943     struct stat statu, statux;
6944     if (!f) exit(1);
6945     for (u = utmplist; *u; u++) {
6946     if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
6947     if (stat(*u, &statux) < 0)
6948     continue;
6949     p = strdup(*u);
6950     p[strlen(p) - 1] = '\0';
6951     if (stat(p, &statu) >= 0
6952     && (statu.st_mtime - statux.st_mtime > 86400))
6953     continue;
6954     fprintf(f, "%s\n", *u);
6955     exit(0);
6956     }
6957     }
6958     exit(0);
6959     }
6960     _ACEOF
6961 sf-exg 1.132 if ac_fn_cxx_try_run "$LINENO"; then :
6962     pt_cv_path_utmpx=`cat conftestval`
6963 root 1.88 else
6964 sf-exg 1.132 pt_cv_path_utmpx=
6965 root 1.88 fi
6966 sf-exg 1.132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6967     conftest.$ac_objext conftest.beam conftest.$ac_ext
6968 root 1.88 fi
6969 ayin 1.108
6970 root 1.88 fi
6971 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmpx" >&5
6972     $as_echo "$pt_cv_path_utmpx" >&6; }
6973     if test x$pt_cv_path_utmpx != x; then
6974 root 1.88
6975     cat >>confdefs.h <<_ACEOF
6976 sf-exg 1.132 #define UTMPX_FILE "$pt_cv_path_utmpx"
6977 root 1.88 _ACEOF
6978    
6979     fi
6980    
6981    
6982 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where wtmp is located" >&5
6983     $as_echo_n "checking where wtmp is located... " >&6; }
6984     if test "${pt_cv_path_wtmp+set}" = set; then :
6985     $as_echo_n "(cached) " >&6
6986 root 1.88 else
6987 sf-exg 1.132 if test "$cross_compiling" = yes; then :
6988     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define WTMP_FILE in config.h manually" >&5
6989     $as_echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;}
6990 root 1.88 else
6991 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6992 root 1.88 /* end confdefs.h. */
6993     #include <stdio.h>
6994 ayin 1.102 #include <stdlib.h>
6995 root 1.88 #include <sys/types.h>
6996     #ifdef HAVE_UTMP_H
6997     #include <utmp.h>
6998     #endif
6999     #include <errno.h>
7000     main()
7001     {
7002     char **w, *wtmplist[] = {
7003     "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
7004     FILE *a, *f=fopen("conftestval", "w");
7005     if (!f) exit(1);
7006     #ifdef WTMP_FILE
7007     fprintf(f, "%s\n", WTMP_FILE);
7008     exit(0);
7009     #endif
7010     #ifdef _PATH_WTMP
7011     fprintf(f, "%s\n", _PATH_WTMP);
7012     exit(0);
7013     #endif
7014     for (w = wtmplist; *w; w++) {
7015     if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
7016     fprintf(f, "%s\n", *w);
7017     exit(0);
7018     }
7019     }
7020     exit(0);
7021     }
7022     _ACEOF
7023 sf-exg 1.132 if ac_fn_cxx_try_run "$LINENO"; then :
7024     pt_cv_path_wtmp=`cat conftestval`
7025 root 1.88 else
7026 sf-exg 1.132 pt_cv_path_wtmp=
7027 root 1.88 fi
7028 sf-exg 1.132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7029     conftest.$ac_objext conftest.beam conftest.$ac_ext
7030 root 1.88 fi
7031 ayin 1.108
7032 root 1.88 fi
7033 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5
7034     $as_echo "$pt_cv_path_wtmp" >&6; }
7035     if test x$pt_cv_path_wtmp != x; then
7036 root 1.88
7037     cat >>confdefs.h <<_ACEOF
7038 sf-exg 1.132 #define WTMP_FILE "$pt_cv_path_wtmp"
7039 root 1.88 _ACEOF
7040    
7041     fi
7042    
7043 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where wtmpx is located" >&5
7044     $as_echo_n "checking where wtmpx is located... " >&6; }
7045     if test "${pt_cv_path_wtmpx+set}" = set; then :
7046     $as_echo_n "(cached) " >&6
7047 root 1.88 else
7048 sf-exg 1.132 if test "$cross_compiling" = yes; then :
7049     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define WTMPX_FILE in config.h manually" >&5
7050     $as_echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;}
7051 root 1.88 else
7052 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053 root 1.88 /* end confdefs.h. */
7054     #include <stdio.h>
7055 ayin 1.102 #include <stdlib.h>
7056 root 1.88 #ifdef HAVE_UTMPX_H
7057     #include <utmpx.h>
7058     #endif
7059     #include <errno.h>
7060     main()
7061     {
7062     char **w, *wtmplist[] = {
7063     "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
7064     FILE *a, *f=fopen("conftestval", "w");
7065     if (!f) exit(1);
7066     #ifdef WTMPX_FILE
7067     fprintf(f, "%s\n", WTMPX_FILE);
7068     exit(0);
7069     #endif
7070     #ifdef _PATH_WTMPX
7071     fprintf(f, "%s\n", _PATH_WTMPX);
7072     exit(0);
7073     #endif
7074     for (w = wtmplist; *w; w++) {
7075     if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
7076     fprintf(f, "%s\n", *w);
7077     exit(0);
7078     }
7079     }
7080     exit(0);
7081     }
7082     _ACEOF
7083 sf-exg 1.132 if ac_fn_cxx_try_run "$LINENO"; then :
7084     pt_cv_path_wtmpx=`cat conftestval`
7085 root 1.88 else
7086 sf-exg 1.132 pt_cv_path_wtmpx=
7087 root 1.88 fi
7088 sf-exg 1.132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7089     conftest.$ac_objext conftest.beam conftest.$ac_ext
7090 root 1.88 fi
7091 ayin 1.108
7092 root 1.88 fi
7093 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5
7094     $as_echo "$pt_cv_path_wtmpx" >&6; }
7095     if test x$pt_cv_path_wtmpx != x; then
7096 root 1.88
7097     cat >>confdefs.h <<_ACEOF
7098 sf-exg 1.132 #define WTMPX_FILE "$pt_cv_path_wtmpx"
7099 root 1.88 _ACEOF
7100    
7101     fi
7102    
7103 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where lastlog is located" >&5
7104     $as_echo_n "checking where lastlog is located... " >&6; }
7105     if test "${pt_cv_path_lastlog+set}" = set; then :
7106     $as_echo_n "(cached) " >&6
7107 root 1.88 else
7108 sf-exg 1.132 if test "$cross_compiling" = yes; then :
7109     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define LASTLOG_FILE in config.h manually" >&5
7110     $as_echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;}
7111 root 1.88 else
7112 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113 root 1.88 /* end confdefs.h. */
7114     #include <stdio.h>
7115 ayin 1.102 #include <stdlib.h>
7116 root 1.88 #include <sys/types.h>
7117     #ifdef HAVE_UTMPX_H
7118     #include <utmpx.h>
7119     #elif defined(HAVE_UTMP_H)
7120     #include <utmp.h>
7121     #endif
7122     #ifdef HAVE_LASTLOG_H
7123     #include <lastlog.h>
7124     #endif
7125     #include <errno.h>
7126     main()
7127     {
7128     char **w, *lastloglist[] = { "/var/log/lastlog", NULL };
7129     FILE *a, *f=fopen("conftestval", "w");
7130     if (!f) exit(1);
7131     #ifdef LASTLOG_FILE
7132     fprintf(f, "%s\n", LASTLOG_FILE);
7133     exit(0);
7134     #endif
7135     #ifdef _PATH_LASTLOG
7136     fprintf(f, "%s\n", _PATH_LASTLOG);
7137     exit(0);
7138     #endif
7139     for (w = lastloglist; *w; w++) {
7140     if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
7141     fprintf(f, "%s\n", *w);
7142     exit(0);
7143     }
7144     }
7145     exit(0);
7146     }
7147     _ACEOF
7148 sf-exg 1.132 if ac_fn_cxx_try_run "$LINENO"; then :
7149     pt_cv_path_lastlog=`cat conftestval`
7150 root 1.88 else
7151 sf-exg 1.132 pt_cv_path_lastlog=
7152 root 1.88 fi
7153 sf-exg 1.132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7154     conftest.$ac_objext conftest.beam conftest.$ac_ext
7155 root 1.88 fi
7156 ayin 1.108
7157 root 1.88 fi
7158 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5
7159     $as_echo "$pt_cv_path_lastlog" >&6; }
7160     if test x$pt_cv_path_lastlog != x; then
7161 root 1.88
7162     cat >>confdefs.h <<_ACEOF
7163 sf-exg 1.132 #define LASTLOG_FILE "$pt_cv_path_lastlog"
7164 root 1.88 _ACEOF
7165    
7166     fi
7167    
7168 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where lastlogx is located" >&5
7169     $as_echo_n "checking where lastlogx is located... " >&6; }
7170     if test "${pt_cv_path_lastlogx+set}" = set; then :
7171     $as_echo_n "(cached) " >&6
7172 root 1.88 else
7173 sf-exg 1.132 if test "$cross_compiling" = yes; then :
7174     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define LASTLOGX_FILE in config.h manually" >&5
7175     $as_echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;}
7176 root 1.88 else
7177 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178 root 1.88 /* end confdefs.h. */
7179     #include <stdio.h>
7180 ayin 1.102 #include <stdlib.h>
7181 root 1.88 #ifdef HAVE_UTMPX_H
7182     #include <utmpx.h>
7183     #endif
7184     #include <errno.h>
7185     main()
7186     {
7187     char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL };
7188     FILE *a, *f=fopen("conftestval", "w");
7189     if (!f) exit(1);
7190     #ifdef LASTLOGX_FILE
7191     fprintf(f, "%s\n", LASTLOGX_FILE);
7192     exit(0);
7193     #endif
7194     #ifdef _PATH_LASTLOGX
7195     fprintf(f, "%s\n", _PATH_LASTLOGX);
7196     exit(0);
7197     #endif
7198     for (w = wtmplist; *w; w++) {
7199     if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
7200     fprintf(f, "%s\n", *w);
7201     exit(0);
7202     }
7203     }
7204     exit(0);
7205     }
7206     _ACEOF
7207 sf-exg 1.132 if ac_fn_cxx_try_run "$LINENO"; then :
7208     pt_cv_path_lastlogx=`cat conftestval`
7209 root 1.88 else
7210 sf-exg 1.132 pt_cv_path_lastlogx=
7211 root 1.88 fi
7212 sf-exg 1.132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7213     conftest.$ac_objext conftest.beam conftest.$ac_ext
7214 root 1.88 fi
7215 ayin 1.108
7216 root 1.88 fi
7217 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5
7218     $as_echo "$pt_cv_path_lastlogx" >&6; }
7219     if test x$pt_cv_path_lastlogx != x; then
7220 root 1.88
7221     cat >>confdefs.h <<_ACEOF
7222 sf-exg 1.132 #define LASTLOGX_FILE "$pt_cv_path_lastlogx"
7223 root 1.88 _ACEOF
7224    
7225     fi
7226    
7227    
7228    
7229    
7230 ayin 1.114 save_LIBS=$LIBS
7231     save_CFLAGS=$CFLAGS
7232 root 1.88 CFLAGS="$CFLAGS $X_CFLAGS"
7233     LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7234 ayin 1.111 if test x$support_xim = xyes; then
7235 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working Xlocale" >&5
7236     $as_echo_n "checking for working Xlocale... " >&6; }
7237     if test "${rxvt_cv_func_xlocale+set}" = set; then :
7238     $as_echo_n "(cached) " >&6
7239 root 1.88 else
7240 sf-exg 1.132 if test "$cross_compiling" = yes; then :
7241 ayin 1.111 :
7242 root 1.88 else
7243 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7244 root 1.88 /* end confdefs.h. */
7245     #include <X11/Xlib.h>
7246 ayin 1.111 #include <stdlib.h>
7247     main() {
7248     char *p;
7249     if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
7250     exit (XSupportsLocale() ? 0 : 1);
7251     else
7252     exit (1);}
7253 root 1.88 _ACEOF
7254 sf-exg 1.132 if ac_fn_cxx_try_run "$LINENO"; then :
7255 ayin 1.111 rxvt_cv_func_xlocale=yes
7256 root 1.88 else
7257 sf-exg 1.132 rxvt_cv_func_xlocale=no
7258 root 1.88 fi
7259 sf-exg 1.132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7260     conftest.$ac_objext conftest.beam conftest.$ac_ext
7261 root 1.88 fi
7262 ayin 1.108
7263 root 1.88 fi
7264 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xlocale" >&5
7265     $as_echo "$rxvt_cv_func_xlocale" >&6; }
7266 root 1.105 if test x$rxvt_cv_func_xlocale = xyes; then
7267 root 1.88
7268 sf-exg 1.132 $as_echo "#define USE_XIM 1" >>confdefs.h
7269 root 1.88
7270 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken XIM callback" >&5
7271     $as_echo_n "checking for broken XIM callback... " >&6; }
7272     if test "${rxvt_cv_broken_ximcb+set}" = set; then :
7273     $as_echo_n "(cached) " >&6
7274 ayin 1.111 else
7275 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7276     /* end confdefs.h. */
7277 ayin 1.111
7278     #include <X11/Xlib.h>
7279    
7280     void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
7281    
7282     void f() {
7283     XIMCallback cb;
7284     cb.callback = im_destroy_cb;
7285     }
7286    
7287     _ACEOF
7288 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
7289 root 1.131 rxvt_cv_broken_ximcb=yes
7290 ayin 1.111 else
7291 sf-exg 1.132 rxvt_cv_broken_ximcb=no
7292 ayin 1.111 fi
7293     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7294     fi
7295 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_broken_ximcb" >&5
7296     $as_echo "$rxvt_cv_broken_ximcb" >&6; }
7297 ayin 1.111
7298 root 1.131 if test x$rxvt_cv_broken_ximcb = xyes; then
7299 ayin 1.111
7300 sf-exg 1.132 $as_echo "#define XIMCB_PROTO_BROKEN 1" >>confdefs.h
7301 ayin 1.111
7302     fi
7303 root 1.105 fi
7304 root 1.88 fi
7305    
7306 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working X setlocale" >&5
7307     $as_echo_n "checking for working X setlocale... " >&6; }
7308     if test "${rxvt_cv_func_xsetlocale+set}" = set; then :
7309     $as_echo_n "(cached) " >&6
7310 root 1.88 else
7311 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7312 root 1.88 /* end confdefs.h. */
7313     #define X_LOCALE 1
7314     #include <X11/Xlocale.h>
7315     int
7316     main ()
7317     {
7318     setlocale(LC_CTYPE, "");
7319     ;
7320     return 0;
7321     }
7322     _ACEOF
7323 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
7324 root 1.88 rxvt_cv_func_xsetlocale=yes
7325     else
7326 sf-exg 1.132 rxvt_cv_func_xsetlocale=no
7327 root 1.88 fi
7328 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
7329     conftest$ac_exeext conftest.$ac_ext
7330 root 1.88 fi
7331 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xsetlocale" >&5
7332     $as_echo "$rxvt_cv_func_xsetlocale" >&6; }
7333 root 1.88 if test x$rxvt_cv_func_xsetlocale = xyes; then
7334    
7335 sf-exg 1.132 $as_echo "#define HAVE_XSETLOCALE 1" >>confdefs.h
7336 root 1.88
7337     fi
7338 ayin 1.114 LIBS=$save_LIBS
7339     CFLAGS=$save_CFLAGS
7340 root 1.88
7341 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working plain setlocale" >&5
7342     $as_echo_n "checking for working plain setlocale... " >&6; }
7343     if test "${rxvt_cv_func_setlocale+set}" = set; then :
7344     $as_echo_n "(cached) " >&6
7345 root 1.88 else
7346 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7347 root 1.88 /* end confdefs.h. */
7348     #include <clocale>
7349     int
7350     main ()
7351     {
7352     setlocale(LC_CTYPE, "");
7353     ;
7354     return 0;
7355     }
7356     _ACEOF
7357 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
7358 root 1.88 rxvt_cv_func_setlocale=yes
7359     else
7360 sf-exg 1.132 rxvt_cv_func_setlocale=no
7361 root 1.88 fi
7362 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
7363     conftest$ac_exeext conftest.$ac_ext
7364 root 1.88 fi
7365 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_setlocale" >&5
7366     $as_echo "$rxvt_cv_func_setlocale" >&6; }
7367 root 1.88 if test x$rxvt_cv_func_setlocale = xyes; then
7368    
7369 sf-exg 1.132 $as_echo "#define HAVE_SETLOCALE 1" >>confdefs.h
7370 root 1.88
7371     fi
7372    
7373 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working nl_langinfo" >&5
7374     $as_echo_n "checking for working nl_langinfo... " >&6; }
7375     if test "${rxvt_cv_func_nl_langinfo+set}" = set; then :
7376     $as_echo_n "(cached) " >&6
7377 root 1.88 else
7378 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7379 root 1.88 /* end confdefs.h. */
7380     #include <langinfo.h>
7381     int
7382     main ()
7383     {
7384     nl_langinfo(CODESET);
7385     ;
7386     return 0;
7387     }
7388     _ACEOF
7389 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
7390 root 1.88 rxvt_cv_func_nl_langinfo=yes
7391     else
7392 sf-exg 1.132 rxvt_cv_func_nl_langinfo=no
7393 root 1.88 fi
7394 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
7395     conftest$ac_exeext conftest.$ac_ext
7396 root 1.88 fi
7397 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_nl_langinfo" >&5
7398     $as_echo "$rxvt_cv_func_nl_langinfo" >&6; }
7399 root 1.88 if test x$rxvt_cv_func_nl_langinfo = xyes; then
7400    
7401 sf-exg 1.132 $as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h
7402 root 1.88
7403     fi
7404    
7405    
7406 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5
7407     $as_echo_n "checking for unix-compliant filehandle passing ability... " >&6; }
7408     if test "${pt_cv_can_pass_fds+set}" = set; then :
7409     $as_echo_n "(cached) " >&6
7410 root 1.88 else
7411 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7412 root 1.88 /* end confdefs.h. */
7413    
7414 root 1.93 #include <cstddef> // broken bsds (is that redundant?) need this
7415 root 1.88 #include <sys/types.h>
7416     #include <sys/socket.h>
7417     #include <sys/uio.h>
7418    
7419     int
7420     main ()
7421     {
7422    
7423     {
7424     msghdr msg;
7425     iovec iov;
7426     char buf [100];
7427     char data = 0;
7428    
7429     iov.iov_base = &data;
7430     iov.iov_len = 1;
7431    
7432     msg.msg_iov = &iov;
7433     msg.msg_iovlen = 1;
7434     msg.msg_control = buf;
7435     msg.msg_controllen = sizeof buf;
7436    
7437     cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
7438     cmsg->cmsg_level = SOL_SOCKET;
7439     cmsg->cmsg_type = SCM_RIGHTS;
7440     cmsg->cmsg_len = 100;
7441    
7442     *(int *)CMSG_DATA (cmsg) = 5;
7443    
7444     return sendmsg (3, &msg, 0);
7445     }
7446    
7447     ;
7448     return 0;
7449     }
7450     _ACEOF
7451 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
7452     pt_cv_can_pass_fds=yes
7453 root 1.88 else
7454 sf-exg 1.132 pt_cv_can_pass_fds=no
7455 root 1.88 fi
7456 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
7457     conftest$ac_exeext conftest.$ac_ext
7458 pcg 1.11 fi
7459 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_can_pass_fds" >&5
7460     $as_echo "$pt_cv_can_pass_fds" >&6; }
7461     if test x$pt_cv_can_pass_fds = xyes; then
7462 root 1.83
7463 sf-exg 1.132 $as_echo "#define HAVE_UNIX_FDPASS 1" >>confdefs.h
7464 root 1.83
7465 sf-exg 1.132 else
7466     as_fn_error "libptytty requires unix-compliant filehandle passing ability" "$LINENO" 5
7467     fi
7468 root 1.83
7469    
7470    
7471 sf-exg 1.132 for ac_header in \
7472     pty.h \
7473     util.h \
7474     libutil.h \
7475     sys/ioctl.h \
7476     sys/stropts.h \
7477     stropts.h \
7478 root 1.83
7479 sf-exg 1.132 do :
7480     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7481     ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7482     eval as_val=\$$as_ac_Header
7483     if test "x$as_val" = x""yes; then :
7484     cat >>confdefs.h <<_ACEOF
7485     #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7486     _ACEOF
7487 root 1.94
7488 sf-exg 1.132 fi
7489 root 1.94
7490 sf-exg 1.132 done
7491 root 1.94
7492    
7493 root 1.88 for ac_func in \
7494     revoke \
7495     _getpty \
7496     getpt \
7497     posix_openpt \
7498     isastream \
7499 root 1.94 setuid \
7500     seteuid \
7501     setreuid \
7502     setresuid \
7503 root 1.83
7504 sf-exg 1.132 do :
7505     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7506     ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
7507     eval as_val=\$$as_ac_var
7508     if test "x$as_val" = x""yes; then :
7509 root 1.88 cat >>confdefs.h <<_ACEOF
7510 sf-exg 1.132 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7511 root 1.88 _ACEOF
7512    
7513     fi
7514     done
7515    
7516    
7517     have_clone=no
7518    
7519 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptym/clone" >&5
7520     $as_echo_n "checking for /dev/ptym/clone... " >&6; }
7521 root 1.88 if test -e /dev/ptym/clone; then
7522 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7523     $as_echo "yes" >&6; }
7524 root 1.88
7525 sf-exg 1.132 $as_echo "#define HAVE_DEV_CLONE 1" >>confdefs.h
7526 root 1.88
7527 root 1.83
7528 sf-exg 1.132 $as_echo "#define CLONE_DEVICE \"/dev/ptym/clone\"" >>confdefs.h
7529 root 1.56
7530 root 1.88 have_clone=yes
7531     else
7532 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7533     $as_echo "no" >&6; }
7534 root 1.56 fi
7535    
7536 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
7537     $as_echo_n "checking for /dev/ptc... " >&6; }
7538 root 1.88 if test -e /dev/ptc; then
7539 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7540     $as_echo "yes" >&6; }
7541 root 1.88
7542 sf-exg 1.132 $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
7543 root 1.88
7544    
7545 sf-exg 1.132 $as_echo "#define CLONE_DEVICE \"/dev/ptc\"" >>confdefs.h
7546 root 1.88
7547     have_clone=yes
7548 root 1.31 else
7549 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7550     $as_echo "no" >&6; }
7551 root 1.88 fi
7552    
7553     case $host in
7554     *-*-cygwin*)
7555     have_clone=yes
7556    
7557 sf-exg 1.132 $as_echo "#define CLONE_DEVICE \"/dev/ptmx\"" >>confdefs.h
7558 root 1.88
7559     ;;
7560     *)
7561 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
7562     $as_echo_n "checking for /dev/ptmx... " >&6; }
7563 root 1.88 if test -e /dev/ptmx; then
7564 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7565     $as_echo "yes" >&6; }
7566 root 1.88
7567 sf-exg 1.132 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
7568 root 1.88
7569    
7570 sf-exg 1.132 $as_echo "#define CLONE_DEVICE \"/dev/ptmx\"" >>confdefs.h
7571 root 1.88
7572     have_clone=yes
7573     else
7574 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7575     $as_echo "no" >&6; }
7576 root 1.88 fi
7577     ;;
7578     esac
7579    
7580     if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then
7581 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5
7582     $as_echo_n "checking for UNIX98 ptys... " >&6; }
7583     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7584 root 1.83 /* end confdefs.h. */
7585 root 1.88 #include <stdlib.h>
7586 root 1.83 int
7587     main ()
7588     {
7589 root 1.88 grantpt(0);unlockpt(0);ptsname(0);
7590 root 1.83 ;
7591     return 0;
7592 root 1.31 }
7593     _ACEOF
7594 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
7595 root 1.88 unix98_pty=yes
7596    
7597 sf-exg 1.132 $as_echo "#define UNIX98_PTY 1" >>confdefs.h
7598 root 1.88
7599 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7600     $as_echo "yes" >&6; }
7601 root 1.31 else
7602 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7603     $as_echo "no" >&6; }
7604 root 1.31 fi
7605 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
7606     conftest$ac_exeext conftest.$ac_ext
7607 root 1.31 fi
7608    
7609 root 1.88 if test -z "$unix98_pty"; then
7610 sf-exg 1.132 for ac_func in openpty
7611     do :
7612     ac_fn_cxx_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
7613     if test "x$ac_cv_func_openpty" = x""yes; then :
7614 root 1.88 cat >>confdefs.h <<_ACEOF
7615 sf-exg 1.132 #define HAVE_OPENPTY 1
7616 root 1.83 _ACEOF
7617    
7618 root 1.88 else
7619 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
7620     $as_echo_n "checking for openpty in -lutil... " >&6; }
7621     if test "${ac_cv_lib_util_openpty+set}" = set; then :
7622     $as_echo_n "(cached) " >&6
7623 root 1.66 else
7624 root 1.88 ac_check_lib_save_LIBS=$LIBS
7625     LIBS="-lutil $LIBS"
7626 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627 root 1.88 /* end confdefs.h. */
7628 root 1.87
7629 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
7630     Use char because int might match the return type of a GCC
7631     builtin and then its argument prototype would still apply. */
7632 root 1.88 #ifdef __cplusplus
7633     extern "C"
7634     #endif
7635     char openpty ();
7636     int
7637     main ()
7638     {
7639 ayin 1.108 return openpty ();
7640 root 1.88 ;
7641     return 0;
7642 root 1.66 }
7643     _ACEOF
7644 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
7645 root 1.88 ac_cv_lib_util_openpty=yes
7646 root 1.66 else
7647 sf-exg 1.132 ac_cv_lib_util_openpty=no
7648 root 1.88 fi
7649 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
7650     conftest$ac_exeext conftest.$ac_ext
7651 root 1.88 LIBS=$ac_check_lib_save_LIBS
7652 root 1.66 fi
7653 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
7654     $as_echo "$ac_cv_lib_util_openpty" >&6; }
7655     if test "x$ac_cv_lib_util_openpty" = x""yes; then :
7656     $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
7657 root 1.88 LIBS="$LIBS -lutil"
7658 root 1.66 fi
7659 root 1.87
7660 root 1.88 fi
7661     done
7662 pcg 1.1
7663     fi
7664    
7665    
7666 root 1.90
7667 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tty group" >&5
7668     $as_echo_n "checking for tty group... " >&6; }
7669     if test "${pt_cv_tty_group+set}" = set; then :
7670     $as_echo_n "(cached) " >&6
7671 root 1.90 else
7672 sf-exg 1.132 if test "$cross_compiling" = yes; then :
7673     pt_cv_tty_group=no
7674 root 1.90 else
7675 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7676 root 1.90 /* end confdefs.h. */
7677    
7678     #include <sys/types.h>
7679     #include <sys/stat.h>
7680     #include <unistd.h>
7681     #include <grp.h>
7682    
7683     main()
7684     {
7685     struct stat st;
7686     struct group *gr;
7687     char *tty;
7688     gr = getgrnam("tty");
7689     tty = ttyname(0);
7690     if (gr != 0
7691     && tty != 0
7692     && (stat(tty, &st)) == 0
7693     && st.st_gid == gr->gr_gid)
7694     return 0;
7695     else
7696     return 1;
7697     }
7698     _ACEOF
7699 sf-exg 1.132 if ac_fn_cxx_try_run "$LINENO"; then :
7700     pt_cv_tty_group=yes
7701 root 1.90 else
7702 sf-exg 1.132 pt_cv_tty_group=no
7703 root 1.90 fi
7704 sf-exg 1.132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7705     conftest.$ac_objext conftest.beam conftest.$ac_ext
7706 root 1.90 fi
7707 ayin 1.108
7708 root 1.90 fi
7709 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_tty_group" >&5
7710     $as_echo "$pt_cv_tty_group" >&6; }
7711     if test x$pt_cv_tty_group = xyes; then
7712 root 1.90
7713 sf-exg 1.132 $as_echo "#define TTY_GID_SUPPORT 1" >>confdefs.h
7714 root 1.90
7715     fi
7716    
7717 root 1.39 if test x$support_xft = xyes; then
7718 root 1.86 # Extract the first word of "pkg-config", so it can be a program name with args.
7719     set dummy pkg-config; ac_word=$2
7720 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7721     $as_echo_n "checking for $ac_word... " >&6; }
7722     if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7723     $as_echo_n "(cached) " >&6
7724 root 1.86 else
7725     case $PKG_CONFIG in
7726     [\\/]* | ?:[\\/]*)
7727     ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7728     ;;
7729     *)
7730     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731     for as_dir in $PATH
7732     do
7733     IFS=$as_save_IFS
7734     test -z "$as_dir" && as_dir=.
7735 sf-exg 1.132 for ac_exec_ext in '' $ac_executable_extensions; do
7736 ayin 1.108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7737 root 1.86 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7738 sf-exg 1.132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7739 root 1.86 break 2
7740     fi
7741     done
7742 sf-exg 1.132 done
7743 ayin 1.108 IFS=$as_save_IFS
7744 root 1.86
7745     test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7746     ;;
7747     esac
7748     fi
7749     PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7750     if test -n "$PKG_CONFIG"; then
7751 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7752     $as_echo "$PKG_CONFIG" >&6; }
7753 root 1.86 else
7754 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7755     $as_echo "no" >&6; }
7756 root 1.86 fi
7757    
7758 ayin 1.108
7759 root 1.90 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
7760 root 1.117 X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS"
7761 root 1.90 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
7762     else
7763     # Extract the first word of "xft-config", so it can be a program name with args.
7764 root 1.86 set dummy xft-config; ac_word=$2
7765 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7766     $as_echo_n "checking for $ac_word... " >&6; }
7767     if test "${ac_cv_path_XFT_CONFIG+set}" = set; then :
7768     $as_echo_n "(cached) " >&6
7769 root 1.86 else
7770     case $XFT_CONFIG in
7771     [\\/]* | ?:[\\/]*)
7772     ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
7773     ;;
7774     *)
7775     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776     for as_dir in $PATH
7777     do
7778     IFS=$as_save_IFS
7779     test -z "$as_dir" && as_dir=.
7780 sf-exg 1.132 for ac_exec_ext in '' $ac_executable_extensions; do
7781 ayin 1.108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7782 root 1.86 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7783 sf-exg 1.132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7784 root 1.86 break 2
7785     fi
7786     done
7787 sf-exg 1.132 done
7788 ayin 1.108 IFS=$as_save_IFS
7789 root 1.86
7790     test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
7791     ;;
7792     esac
7793     fi
7794     XFT_CONFIG=$ac_cv_path_XFT_CONFIG
7795     if test -n "$XFT_CONFIG"; then
7796 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5
7797     $as_echo "$XFT_CONFIG" >&6; }
7798 root 1.86 else
7799 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7800     $as_echo "no" >&6; }
7801 root 1.86 fi
7802    
7803 ayin 1.108
7804 root 1.86 if test $XFT_CONFIG != no; then
7805 root 1.117 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
7806 root 1.86 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
7807     fi
7808     fi
7809 root 1.34
7810 root 1.118 save_LIBS="$LIBS"
7811     LIBS="$LIBS $X_LIBS"
7812 sf-exg 1.132 for ac_header in X11/Xft/Xft.h
7813     do :
7814     ac_fn_cxx_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
7815     if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
7816 root 1.39 cat >>confdefs.h <<_ACEOF
7817 sf-exg 1.132 #define HAVE_X11_XFT_XFT_H 1
7818 pcg 1.11 _ACEOF
7819 pcg 1.1
7820 root 1.39 else
7821     support_xft=no
7822 pcg 1.1 fi
7823 pcg 1.11
7824 root 1.39 done
7825 pcg 1.1
7826 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftDrawString32 in -lXft" >&5
7827     $as_echo_n "checking for XftDrawString32 in -lXft... " >&6; }
7828     if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then :
7829     $as_echo_n "(cached) " >&6
7830 root 1.39 else
7831     ac_check_lib_save_LIBS=$LIBS
7832     LIBS="-lXft $LIBS"
7833 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7834 root 1.39 /* end confdefs.h. */
7835    
7836 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
7837     Use char because int might match the return type of a GCC
7838     builtin and then its argument prototype would still apply. */
7839 root 1.39 #ifdef __cplusplus
7840     extern "C"
7841     #endif
7842     char XftDrawString32 ();
7843     int
7844     main ()
7845     {
7846 ayin 1.108 return XftDrawString32 ();
7847 root 1.39 ;
7848     return 0;
7849     }
7850     _ACEOF
7851 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
7852 root 1.39 ac_cv_lib_Xft_XftDrawString32=yes
7853     else
7854 sf-exg 1.132 ac_cv_lib_Xft_XftDrawString32=no
7855 root 1.39 fi
7856 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
7857     conftest$ac_exeext conftest.$ac_ext
7858 root 1.39 LIBS=$ac_check_lib_save_LIBS
7859     fi
7860 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftDrawString32" >&5
7861     $as_echo "$ac_cv_lib_Xft_XftDrawString32" >&6; }
7862     if test "x$ac_cv_lib_Xft_XftDrawString32" = x""yes; then :
7863 root 1.118 :
7864 root 1.39 else
7865     support_xft=no
7866     fi
7867    
7868 root 1.118 LIBS="$save_LIBS"
7869 root 1.39
7870     if test x$support_xft = xyes; then
7871    
7872 sf-exg 1.132 $as_echo "#define XFT 1" >>confdefs.h
7873 root 1.39
7874     fi
7875     fi
7876     if test x$support_styles = xyes; then
7877    
7878 sf-exg 1.132 $as_echo "#define ENABLE_STYLES 1" >>confdefs.h
7879 root 1.39
7880     fi
7881     if test x$support_iso14755 = xyes; then
7882    
7883 sf-exg 1.132 $as_echo "#define ISO_14755 1" >>confdefs.h
7884 root 1.39
7885     fi
7886     if test x$support_8bitctrls = xyes; then
7887    
7888 sf-exg 1.132 $as_echo "#define EIGHT_BIT_CONTROLS 1" >>confdefs.h
7889 root 1.39
7890     fi
7891     if test x$support_fading = xyes; then
7892    
7893 sf-exg 1.132 $as_echo "#define OFF_FOCUS_FADING 1" >>confdefs.h
7894 root 1.39
7895     fi
7896     if test x$support_inheritpixmap = xyes; then
7897    
7898 sf-exg 1.132 $as_echo "#define ENABLE_TRANSPARENCY 1" >>confdefs.h
7899 root 1.39
7900     fi
7901     if test x$support_keepscrolling = xno; then
7902    
7903 sf-exg 1.132 $as_echo "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h
7904 root 1.39
7905     fi
7906     if test x$support_selectionscrolling = xyes; then
7907    
7908 sf-exg 1.132 $as_echo "#define SELECTION_SCROLLING 1" >>confdefs.h
7909 root 1.39
7910     fi
7911 ayin 1.111 if test x$support_frills = xyes; then
7912    
7913 sf-exg 1.132 $as_echo "#define ENABLE_FRILLS 1" >>confdefs.h
7914 ayin 1.111
7915     fi
7916 pcg 1.1 if test x$support_mousewheel = xyes; then
7917 pcg 1.11
7918 sf-exg 1.132 $as_echo "#define MOUSE_WHEEL 1" >>confdefs.h
7919 pcg 1.1
7920     fi
7921     if test x$support_mouseslipwheel = xyes; then
7922 pcg 1.11
7923 sf-exg 1.132 $as_echo "#define MOUSE_SLIP_WHEELING 1" >>confdefs.h
7924 pcg 1.1
7925     fi
7926 ayin 1.110 if test x$support_afterimage = xyes; then
7927 pcg 1.11
7928 sf-exg 1.132 $as_echo "#define HAVE_AFTERIMAGE 1" >>confdefs.h
7929 pcg 1.1
7930 root 1.103
7931 sf-exg 1.132 $as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h
7932 root 1.103
7933     fi
7934    
7935    
7936 ayin 1.126 scrolltypes=plain
7937    
7938 sf-exg 1.132 $as_echo "#define PLAIN_SCROLLBAR 1" >>confdefs.h
7939 ayin 1.126
7940    
7941 pcg 1.1 if test x$support_scroll_rxvt = xyes; then
7942 pcg 1.11
7943 sf-exg 1.132 $as_echo "#define RXVT_SCROLLBAR 1" >>confdefs.h
7944 pcg 1.1
7945 ayin 1.126 scrolltypes="$scrolltypes rxvt"
7946 pcg 1.1 fi
7947     if test x$support_scroll_next = xyes; then
7948 pcg 1.11
7949 sf-exg 1.132 $as_echo "#define NEXT_SCROLLBAR 1" >>confdefs.h
7950 pcg 1.1
7951     scrolltypes="$scrolltypes next"
7952     fi
7953     if test x$support_scroll_xterm = xyes; then
7954 pcg 1.11
7955 sf-exg 1.132 $as_echo "#define XTERM_SCROLLBAR 1" >>confdefs.h
7956 pcg 1.1
7957     scrolltypes="$scrolltypes xterm"
7958     fi
7959     if test x$support_pointer_blank = xyes; then
7960 pcg 1.11
7961 sf-exg 1.132 $as_echo "#define POINTER_BLANK 1" >>confdefs.h
7962 pcg 1.1
7963     fi
7964 pcg 1.11 if test x$support_text_blink = xyes; then
7965    
7966 sf-exg 1.132 $as_echo "#define TEXT_BLINK 1" >>confdefs.h
7967 pcg 1.1
7968     fi
7969     if test x$support_unicode3 = xyes; then
7970 pcg 1.11
7971 sf-exg 1.132 $as_echo "#define UNICODE_3 1" >>confdefs.h
7972 pcg 1.1
7973     fi
7974 pcg 1.18 if test x$support_combining = xyes; then
7975    
7976 sf-exg 1.132 $as_echo "#define ENABLE_COMBINING 1" >>confdefs.h
7977 pcg 1.18
7978     fi
7979 pcg 1.1 if test x$codesets = xall; then
7980 root 1.40 codesets=jp,jp-ext,kr,zh,zh-ext
7981 pcg 1.1 fi
7982 pcg 1.11
7983 sf-exg 1.132 $as_echo "#define ENCODING_EU 1" >>confdefs.h
7984 pcg 1.1
7985 pcg 1.13
7986 sf-exg 1.132 $as_echo "#define ENCODING_VN 1" >>confdefs.h
7987 pcg 1.13
7988 root 1.34 for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
7989 pcg 1.13 case "$codeset" in
7990 pcg 1.11 JP )
7991 sf-exg 1.132 $as_echo "#define ENCODING_JP 1" >>confdefs.h
7992 pcg 1.1 ;;
7993 pcg 1.11 JP_EXT )
7994 sf-exg 1.132 $as_echo "#define ENCODING_JP_EXT 1" >>confdefs.h
7995 pcg 1.1 ;;
7996 pcg 1.11 KR )
7997 sf-exg 1.132 $as_echo "#define ENCODING_KR 1" >>confdefs.h
7998 pcg 1.1 ;;
7999 root 1.40 ZH )
8000 sf-exg 1.132 $as_echo "#define ENCODING_ZH 1" >>confdefs.h
8001 pcg 1.1 ;;
8002 root 1.40 ZH_EXT )
8003 sf-exg 1.132 $as_echo "#define ENCODING_ZH_EXT 1" >>confdefs.h
8004 pcg 1.1 ;;
8005     esac
8006     done
8007    
8008 root 1.60 IF_PERL=\#
8009     if test x$support_perl = xyes; then
8010     # Extract the first word of "perl5", so it can be a program name with args.
8011     set dummy perl5; ac_word=$2
8012 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8013     $as_echo_n "checking for $ac_word... " >&6; }
8014     if test "${ac_cv_path_PERL+set}" = set; then :
8015     $as_echo_n "(cached) " >&6
8016 root 1.60 else
8017     case $PERL in
8018     [\\/]* | ?:[\\/]*)
8019     ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8020     ;;
8021     *)
8022     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023     for as_dir in $PATH
8024     do
8025     IFS=$as_save_IFS
8026     test -z "$as_dir" && as_dir=.
8027 sf-exg 1.132 for ac_exec_ext in '' $ac_executable_extensions; do
8028 ayin 1.108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8029 root 1.60 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
8030 sf-exg 1.132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8031 root 1.60 break 2
8032     fi
8033     done
8034 sf-exg 1.132 done
8035 ayin 1.108 IFS=$as_save_IFS
8036 root 1.60
8037     ;;
8038     esac
8039     fi
8040     PERL=$ac_cv_path_PERL
8041     if test -n "$PERL"; then
8042 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
8043     $as_echo "$PERL" >&6; }
8044 root 1.60 else
8045 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046     $as_echo "no" >&6; }
8047 root 1.60 fi
8048    
8049 ayin 1.108
8050 root 1.60 # Extract the first word of "perl", so it can be a program name with args.
8051     set dummy perl; ac_word=$2
8052 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8053     $as_echo_n "checking for $ac_word... " >&6; }
8054     if test "${ac_cv_path_PERL+set}" = set; then :
8055     $as_echo_n "(cached) " >&6
8056 root 1.60 else
8057     case $PERL in
8058     [\\/]* | ?:[\\/]*)
8059     ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8060     ;;
8061     *)
8062     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8063     for as_dir in $PATH
8064     do
8065     IFS=$as_save_IFS
8066     test -z "$as_dir" && as_dir=.
8067 sf-exg 1.132 for ac_exec_ext in '' $ac_executable_extensions; do
8068 ayin 1.108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8069 root 1.60 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
8070 sf-exg 1.132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8071 root 1.60 break 2
8072     fi
8073     done
8074 sf-exg 1.132 done
8075 ayin 1.108 IFS=$as_save_IFS
8076 root 1.60
8077     ;;
8078     esac
8079     fi
8080     PERL=$ac_cv_path_PERL
8081     if test -n "$PERL"; then
8082 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
8083     $as_echo "$PERL" >&6; }
8084 root 1.60 else
8085 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8086     $as_echo "no" >&6; }
8087 root 1.60 fi
8088    
8089    
8090 ayin 1.108
8091 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PERL suitability" >&5
8092     $as_echo_n "checking for $PERL suitability... " >&6; }
8093 root 1.60 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
8094    
8095 root 1.62 save_CXXFLAGS="$CXXFLAGS"
8096     save_LIBS="$LIBS"
8097     CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
8098     LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
8099 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8100 root 1.62 /* end confdefs.h. */
8101    
8102     #include <EXTERN.h>
8103     #include <perl.h>
8104     #include <XSUB.h>
8105    
8106     int
8107     main ()
8108     {
8109    
8110     PerlInterpreter *perl = perl_alloc ();
8111    
8112     ;
8113     return 0;
8114     }
8115     _ACEOF
8116 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
8117 root 1.62 rxvt_perl_link=yes
8118     else
8119 sf-exg 1.132 rxvt_perl_link=no
8120 root 1.62 fi
8121 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
8122     conftest$ac_exeext conftest.$ac_ext
8123 root 1.62 CXXFLAGS="$save_CXXFLAGS"
8124     LIBS="$save_LIBS"
8125    
8126     if test x$rxvt_perl_link = xyes; then
8127 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8128     $as_echo "ok" >&6; }
8129 root 1.62
8130 sf-exg 1.132 $as_echo "#define ENABLE_PERL 1" >>confdefs.h
8131 root 1.60
8132 root 1.62 IF_PERL=
8133     PERL_O=rxvtperl.o
8134     PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
8135     PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
8136     PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
8137     else
8138 sf-exg 1.132 as_fn_error "no, unable to link" "$LINENO" 5
8139 root 1.62 fi
8140 root 1.60 else
8141 sf-exg 1.132 as_fn_error "no working perl found, or perl not version >= 5.8" "$LINENO" 5
8142 root 1.60 fi
8143     fi
8144    
8145    
8146    
8147    
8148    
8149    
8150    
8151 pcg 1.1
8152    
8153    
8154    
8155    
8156    
8157    
8158    
8159    
8160    
8161 root 1.103
8162    
8163 pcg 1.1 test "$program_prefix" != NONE &&
8164 ayin 1.108 program_transform_name="s&^&$program_prefix&;$program_transform_name"
8165 pcg 1.1 # Use a double $ so make ignores it.
8166     test "$program_suffix" != NONE &&
8167 ayin 1.108 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
8168 sf-exg 1.132 # Double any \ or $.
8169 pcg 1.11 # By default was `s,x,x', remove it if useless.
8170 sf-exg 1.132 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
8171     program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
8172 pcg 1.1
8173    
8174 ayin 1.124 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile"
8175 root 1.32
8176 pcg 1.11 cat >confcache <<\_ACEOF
8177 pcg 1.1 # This file is a shell script that caches the results of configure
8178     # tests run on this system so they can be shared between configure
8179 pcg 1.11 # scripts and configure runs, see configure's option --config-cache.
8180     # It is not useful on other systems. If it contains results you don't
8181     # want to keep, you may remove or edit it.
8182 pcg 1.1 #
8183 pcg 1.11 # config.status only pays attention to the cache file if you give it
8184     # the --recheck option to rerun configure.
8185 pcg 1.1 #
8186 pcg 1.11 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8187     # loading this file, other *unset* `ac_cv_foo' will be assigned the
8188     # following values.
8189    
8190     _ACEOF
8191    
8192 pcg 1.1 # The following way of writing the cache mishandles newlines in values,
8193     # but we know of no workaround that is simple, portable, and efficient.
8194 ayin 1.108 # So, we kill variables containing newlines.
8195 pcg 1.1 # Ultrix sh set writes to stderr and can't be redirected directly,
8196     # and sets the high bit in the cache file unless we assign to the vars.
8197 ayin 1.108 (
8198     for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8199     eval ac_val=\$$ac_var
8200     case $ac_val in #(
8201     *${as_nl}*)
8202     case $ac_var in #(
8203 sf-exg 1.132 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8204     $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8205 ayin 1.108 esac
8206     case $ac_var in #(
8207     _ | IFS | as_nl) ;; #(
8208 sf-exg 1.132 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8209     *) { eval $ac_var=; unset $ac_var;} ;;
8210 ayin 1.108 esac ;;
8211     esac
8212     done
8213    
8214 pcg 1.11 (set) 2>&1 |
8215 ayin 1.108 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8216     *${as_nl}ac_space=\ *)
8217 sf-exg 1.132 # `set' does not quote correctly, so add quotes: double-quote
8218     # substitution turns \\\\ into \\, and sed turns \\ into \.
8219 pcg 1.11 sed -n \
8220     "s/'/'\\\\''/g;
8221     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8222 ayin 1.108 ;; #(
8223 pcg 1.11 *)
8224     # `set' quotes correctly as required by POSIX, so do not add quotes.
8225 ayin 1.108 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8226 pcg 1.11 ;;
8227 ayin 1.108 esac |
8228     sort
8229     ) |
8230 pcg 1.11 sed '
8231 ayin 1.108 /^ac_cv_env_/b end
8232 pcg 1.11 t clear
8233 ayin 1.108 :clear
8234 pcg 1.11 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8235     t end
8236 ayin 1.108 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8237     :end' >>confcache
8238     if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8239     if test -w "$cache_file"; then
8240     test "x$cache_file" != "x/dev/null" &&
8241 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8242     $as_echo "$as_me: updating cache $cache_file" >&6;}
8243 pcg 1.11 cat confcache >$cache_file
8244 pcg 1.1 else
8245 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8246     $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8247 pcg 1.1 fi
8248     fi
8249     rm -f confcache
8250    
8251     test "x$prefix" = xNONE && prefix=$ac_default_prefix
8252     # Let make expand exec_prefix.
8253     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8254    
8255 pcg 1.11 DEFS=-DHAVE_CONFIG_H
8256    
8257     ac_libobjs=
8258     ac_ltlibobjs=
8259     for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8260     # 1. Remove the extension, and $U if already installed.
8261 ayin 1.108 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8262 sf-exg 1.132 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8263 ayin 1.108 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8264     # will be set to the directory where LIBOBJS objects are built.
8265 sf-exg 1.132 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8266     as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8267 pcg 1.11 done
8268     LIBOBJS=$ac_libobjs
8269    
8270     LTLIBOBJS=$ac_ltlibobjs
8271    
8272 pcg 1.1
8273    
8274     : ${CONFIG_STATUS=./config.status}
8275 sf-exg 1.132 ac_write_fail=0
8276 pcg 1.11 ac_clean_files_save=$ac_clean_files
8277     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8278 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8279     $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8280     as_write_fail=0
8281     cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8282 pcg 1.11 #! $SHELL
8283     # Generated by $as_me.
8284 pcg 1.1 # Run this file to recreate the current configuration.
8285     # Compiler output produced by configure, useful for debugging
8286 pcg 1.11 # configure, is in config.log if it exists.
8287    
8288     debug=false
8289     ac_cs_recheck=false
8290     ac_cs_silent=false
8291 sf-exg 1.132
8292 pcg 1.11 SHELL=\${CONFIG_SHELL-$SHELL}
8293 sf-exg 1.132 export SHELL
8294     _ASEOF
8295     cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8296     ## -------------------- ##
8297     ## M4sh Initialization. ##
8298     ## -------------------- ##
8299 pcg 1.11
8300 ayin 1.108 # Be more Bourne compatible
8301     DUALCASE=1; export DUALCASE # for MKS sh
8302 sf-exg 1.132 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8303 pcg 1.11 emulate sh
8304     NULLCMD=:
8305 sf-exg 1.132 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8306 pcg 1.11 # is contrary to our usage. Disable this feature.
8307     alias -g '${1+"$@"}'='"$@"'
8308 ayin 1.108 setopt NO_GLOB_SUBST
8309     else
8310 sf-exg 1.132 case `(set -o) 2>/dev/null` in #(
8311     *posix*) :
8312     set -o posix ;; #(
8313     *) :
8314     ;;
8315 ayin 1.108 esac
8316     fi
8317    
8318    
8319 sf-exg 1.132 as_nl='
8320     '
8321     export as_nl
8322     # Printing a long string crashes Solaris 7 /usr/bin/printf.
8323     as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8324     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8325     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8326     # Prefer a ksh shell builtin over an external printf program on Solaris,
8327     # but without wasting forks for bash or zsh.
8328     if test -z "$BASH_VERSION$ZSH_VERSION" \
8329     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8330     as_echo='print -r --'
8331     as_echo_n='print -rn --'
8332     elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8333     as_echo='printf %s\n'
8334     as_echo_n='printf %s'
8335     else
8336     if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8337     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8338     as_echo_n='/usr/ucb/echo -n'
8339 ayin 1.108 else
8340 sf-exg 1.132 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8341     as_echo_n_body='eval
8342     arg=$1;
8343     case $arg in #(
8344     *"$as_nl"*)
8345     expr "X$arg" : "X\\(.*\\)$as_nl";
8346     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8347     esac;
8348     expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8349     '
8350     export as_echo_n_body
8351     as_echo_n='sh -c $as_echo_n_body as_echo'
8352 ayin 1.108 fi
8353 sf-exg 1.132 export as_echo_body
8354     as_echo='sh -c $as_echo_body as_echo'
8355 ayin 1.106 fi
8356    
8357 sf-exg 1.132 # The user is always right.
8358     if test "${PATH_SEPARATOR+set}" != set; then
8359     PATH_SEPARATOR=:
8360     (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8361     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8362     PATH_SEPARATOR=';'
8363     }
8364 pcg 1.11 fi
8365    
8366    
8367 ayin 1.108 # IFS
8368     # We need space, tab and new line, in precisely that order. Quoting is
8369     # there to prevent editors from complaining about space-tab.
8370     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8371     # splitting by setting IFS to empty value.)
8372     IFS=" "" $as_nl"
8373    
8374     # Find who we are. Look in the path if we contain no directory separator.
8375 sf-exg 1.132 case $0 in #((
8376 ayin 1.108 *[\\/]* ) as_myself=$0 ;;
8377     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8378     for as_dir in $PATH
8379     do
8380     IFS=$as_save_IFS
8381     test -z "$as_dir" && as_dir=.
8382 sf-exg 1.132 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8383     done
8384 ayin 1.108 IFS=$as_save_IFS
8385    
8386     ;;
8387     esac
8388     # We did not find ourselves, most probably we were run as `sh COMMAND'
8389     # in which case we are not to be found in the path.
8390     if test "x$as_myself" = x; then
8391     as_myself=$0
8392     fi
8393     if test ! -f "$as_myself"; then
8394 sf-exg 1.132 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8395     exit 1
8396 ayin 1.108 fi
8397    
8398 sf-exg 1.132 # Unset variables that we do not need and which cause bugs (e.g. in
8399     # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8400     # suppresses any "Segmentation fault" message there. '((' could
8401     # trigger a bug in pdksh 5.2.14.
8402     for as_var in BASH_ENV ENV MAIL MAILPATH
8403     do eval test x\${$as_var+set} = xset \
8404     && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8405 ayin 1.108 done
8406 ayin 1.106 PS1='$ '
8407     PS2='> '
8408 root 1.105 PS4='+ '
8409    
8410     # NLS nuisances.
8411 sf-exg 1.132 LC_ALL=C
8412     export LC_ALL
8413     LANGUAGE=C
8414     export LANGUAGE
8415    
8416     # CDPATH.
8417     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8418    
8419    
8420     # as_fn_error ERROR [LINENO LOG_FD]
8421     # ---------------------------------
8422     # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8423     # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8424     # script with status $?, using 1 if that was 0.
8425     as_fn_error ()
8426     {
8427     as_status=$?; test $as_status -eq 0 && as_status=1
8428     if test "$3"; then
8429     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8430     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
8431     fi
8432     $as_echo "$as_me: error: $1" >&2
8433     as_fn_exit $as_status
8434     } # as_fn_error
8435    
8436    
8437     # as_fn_set_status STATUS
8438     # -----------------------
8439     # Set $? to STATUS, without forking.
8440     as_fn_set_status ()
8441     {
8442     return $1
8443     } # as_fn_set_status
8444    
8445     # as_fn_exit STATUS
8446     # -----------------
8447     # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8448     as_fn_exit ()
8449     {
8450     set +e
8451     as_fn_set_status $1
8452     exit $1
8453     } # as_fn_exit
8454    
8455     # as_fn_unset VAR
8456     # ---------------
8457     # Portably unset VAR.
8458     as_fn_unset ()
8459     {
8460     { eval $1=; unset $1;}
8461     }
8462     as_unset=as_fn_unset
8463     # as_fn_append VAR VALUE
8464     # ----------------------
8465     # Append the text in VALUE to the end of the definition contained in VAR. Take
8466     # advantage of any shell optimizations that allow amortized linear growth over
8467     # repeated appends, instead of the typical quadratic growth present in naive
8468     # implementations.
8469     if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8470     eval 'as_fn_append ()
8471     {
8472     eval $1+=\$2
8473     }'
8474     else
8475     as_fn_append ()
8476     {
8477     eval $1=\$$1\$2
8478     }
8479     fi # as_fn_append
8480    
8481     # as_fn_arith ARG...
8482     # ------------------
8483     # Perform arithmetic evaluation on the ARGs, and store the result in the
8484     # global $as_val. Take advantage of shells that can avoid forks. The arguments
8485     # must be portable across $(()) and expr.
8486     if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8487     eval 'as_fn_arith ()
8488     {
8489     as_val=$(( $* ))
8490     }'
8491     else
8492     as_fn_arith ()
8493     {
8494     as_val=`expr "$@" || test $? -eq 1`
8495     }
8496     fi # as_fn_arith
8497    
8498 root 1.105
8499 ayin 1.108 if expr a : '\(a\)' >/dev/null 2>&1 &&
8500     test "X`expr 00001 : '.*\(...\)'`" = X001; then
8501 root 1.105 as_expr=expr
8502     else
8503     as_expr=false
8504     fi
8505    
8506 ayin 1.108 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8507 root 1.105 as_basename=basename
8508     else
8509     as_basename=false
8510     fi
8511    
8512 sf-exg 1.132 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8513     as_dirname=dirname
8514     else
8515     as_dirname=false
8516     fi
8517 root 1.105
8518 ayin 1.108 as_me=`$as_basename -- "$0" ||
8519 root 1.105 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8520     X"$0" : 'X\(//\)$' \| \
8521 ayin 1.108 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8522 sf-exg 1.132 $as_echo X/"$0" |
8523 ayin 1.108 sed '/^.*\/\([^/][^/]*\)\/*$/{
8524     s//\1/
8525     q
8526     }
8527     /^X\/\(\/\/\)$/{
8528     s//\1/
8529     q
8530     }
8531     /^X\/\(\/\).*/{
8532     s//\1/
8533     q
8534     }
8535     s/.*/./; q'`
8536    
8537 sf-exg 1.132 # Avoid depending upon Character Ranges.
8538     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8539     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8540     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8541     as_cr_digits='0123456789'
8542     as_cr_alnum=$as_cr_Letters$as_cr_digits
8543 ayin 1.108
8544     ECHO_C= ECHO_N= ECHO_T=
8545 sf-exg 1.132 case `echo -n x` in #(((((
8546 ayin 1.108 -n*)
8547 sf-exg 1.132 case `echo 'xy\c'` in
8548 ayin 1.108 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8549 sf-exg 1.132 xy) ECHO_C='\c';;
8550     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8551     ECHO_T=' ';;
8552 ayin 1.108 esac;;
8553     *)
8554     ECHO_N='-n';;
8555 pcg 1.11 esac
8556    
8557     rm -f conf$$ conf$$.exe conf$$.file
8558 ayin 1.108 if test -d conf$$.dir; then
8559     rm -f conf$$.dir/conf$$.file
8560     else
8561     rm -f conf$$.dir
8562 sf-exg 1.132 mkdir conf$$.dir 2>/dev/null
8563 ayin 1.108 fi
8564 sf-exg 1.132 if (echo >conf$$.file) 2>/dev/null; then
8565     if ln -s conf$$.file conf$$ 2>/dev/null; then
8566     as_ln_s='ln -s'
8567     # ... but there are two gotchas:
8568     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8569     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8570     # In both cases, we have to default to `cp -p'.
8571     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8572     as_ln_s='cp -p'
8573     elif ln conf$$.file conf$$ 2>/dev/null; then
8574     as_ln_s=ln
8575     else
8576 pcg 1.11 as_ln_s='cp -p'
8577 sf-exg 1.132 fi
8578 pcg 1.11 else
8579     as_ln_s='cp -p'
8580     fi
8581 ayin 1.108 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8582     rmdir conf$$.dir 2>/dev/null
8583 pcg 1.11
8584 sf-exg 1.132
8585     # as_fn_mkdir_p
8586     # -------------
8587     # Create "$as_dir" as a directory, including parents if necessary.
8588     as_fn_mkdir_p ()
8589     {
8590    
8591     case $as_dir in #(
8592     -*) as_dir=./$as_dir;;
8593     esac
8594     test -d "$as_dir" || eval $as_mkdir_p || {
8595     as_dirs=
8596     while :; do
8597     case $as_dir in #(
8598     *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8599     *) as_qdir=$as_dir;;
8600     esac
8601     as_dirs="'$as_qdir' $as_dirs"
8602     as_dir=`$as_dirname -- "$as_dir" ||
8603     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8604     X"$as_dir" : 'X\(//\)[^/]' \| \
8605     X"$as_dir" : 'X\(//\)$' \| \
8606     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8607     $as_echo X"$as_dir" |
8608     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8609     s//\1/
8610     q
8611     }
8612     /^X\(\/\/\)[^/].*/{
8613     s//\1/
8614     q
8615     }
8616     /^X\(\/\/\)$/{
8617     s//\1/
8618     q
8619     }
8620     /^X\(\/\).*/{
8621     s//\1/
8622     q
8623     }
8624     s/.*/./; q'`
8625     test -d "$as_dir" && break
8626     done
8627     test -z "$as_dirs" || eval "mkdir $as_dirs"
8628     } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
8629    
8630    
8631     } # as_fn_mkdir_p
8632 pcg 1.11 if mkdir -p . 2>/dev/null; then
8633 sf-exg 1.132 as_mkdir_p='mkdir -p "$as_dir"'
8634 pcg 1.11 else
8635     test -d ./-p && rmdir ./-p
8636     as_mkdir_p=false
8637     fi
8638    
8639 ayin 1.108 if test -x / >/dev/null 2>&1; then
8640     as_test_x='test -x'
8641     else
8642     if ls -dL / >/dev/null 2>&1; then
8643     as_ls_L_option=L
8644     else
8645     as_ls_L_option=
8646     fi
8647     as_test_x='
8648     eval sh -c '\''
8649     if test -d "$1"; then
8650 sf-exg 1.132 test -d "$1/.";
8651 ayin 1.108 else
8652 sf-exg 1.132 case $1 in #(
8653     -*)set "./$1";;
8654 ayin 1.108 esac;
8655 sf-exg 1.132 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8656 ayin 1.108 ???[sx]*):;;*)false;;esac;fi
8657     '\'' sh
8658     '
8659     fi
8660     as_executable_p=$as_test_x
8661 pcg 1.11
8662     # Sed expression to map a string onto a valid CPP name.
8663     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8664    
8665     # Sed expression to map a string onto a valid variable name.
8666     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8667    
8668    
8669     exec 6>&1
8670 sf-exg 1.132 ## ----------------------------------- ##
8671     ## Main body of $CONFIG_STATUS script. ##
8672     ## ----------------------------------- ##
8673     _ASEOF
8674     test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8675 pcg 1.11
8676 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8677     # Save the log message, to keep $0 and so on meaningful, and to
8678 pcg 1.11 # report actual input values of CONFIG_FILES etc. instead of their
8679 ayin 1.108 # values after options handling.
8680     ac_log="
8681 pcg 1.11 This file was extended by $as_me, which was
8682 sf-exg 1.132 generated by GNU Autoconf 2.65. Invocation command line was
8683 pcg 1.11
8684     CONFIG_FILES = $CONFIG_FILES
8685     CONFIG_HEADERS = $CONFIG_HEADERS
8686     CONFIG_LINKS = $CONFIG_LINKS
8687     CONFIG_COMMANDS = $CONFIG_COMMANDS
8688     $ $0 $@
8689    
8690 ayin 1.108 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8691     "
8692    
8693 pcg 1.11 _ACEOF
8694    
8695 sf-exg 1.132 case $ac_config_files in *"
8696     "*) set x $ac_config_files; shift; ac_config_files=$*;;
8697     esac
8698    
8699     case $ac_config_headers in *"
8700     "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8701     esac
8702    
8703    
8704     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8705 pcg 1.11 # Files that config.status was made for.
8706 ayin 1.108 config_files="$ac_config_files"
8707     config_headers="$ac_config_headers"
8708 ayin 1.106
8709 ayin 1.108 _ACEOF
8710 pcg 1.11
8711 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8712 pcg 1.11 ac_cs_usage="\
8713 sf-exg 1.132 \`$as_me' instantiates files and other configuration actions
8714     from templates according to the current configuration. Unless the files
8715     and actions are specified as TAGs, all are instantiated by default.
8716 pcg 1.11
8717 sf-exg 1.132 Usage: $0 [OPTION]... [TAG]...
8718 pcg 1.11
8719     -h, --help print this help, then exit
8720 ayin 1.108 -V, --version print version number and configuration settings, then exit
8721 sf-exg 1.132 --config print configuration, then exit
8722     -q, --quiet, --silent
8723     do not print progress messages
8724 pcg 1.11 -d, --debug don't remove temporary files
8725     --recheck update $as_me by reconfiguring in the same conditions
8726 sf-exg 1.132 --file=FILE[:TEMPLATE]
8727     instantiate the configuration file FILE
8728     --header=FILE[:TEMPLATE]
8729     instantiate the configuration header FILE
8730 pcg 1.11
8731     Configuration files:
8732     $config_files
8733    
8734     Configuration headers:
8735     $config_headers
8736    
8737 sf-exg 1.132 Report bugs to the package provider."
8738 ayin 1.108
8739 ayin 1.106 _ACEOF
8740 sf-exg 1.132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8741     ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8742 pcg 1.11 ac_cs_version="\\
8743     config.status
8744 sf-exg 1.132 configured by $0, generated by GNU Autoconf 2.65,
8745     with options \\"\$ac_cs_config\\"
8746 pcg 1.11
8747 sf-exg 1.132 Copyright (C) 2009 Free Software Foundation, Inc.
8748 pcg 1.11 This config.status script is free software; the Free Software Foundation
8749     gives unlimited permission to copy, distribute and modify it."
8750 ayin 1.108
8751     ac_pwd='$ac_pwd'
8752     srcdir='$srcdir'
8753     INSTALL='$INSTALL'
8754 sf-exg 1.132 test -n "\$AWK" || AWK=awk
8755 pcg 1.11 _ACEOF
8756    
8757 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8758     # The default lists apply if the user does not specify any file.
8759 pcg 1.11 ac_need_defaults=:
8760     while test $# != 0
8761 pcg 1.1 do
8762 pcg 1.11 case $1 in
8763     --*=*)
8764 ayin 1.108 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8765     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8766 pcg 1.11 ac_shift=:
8767     ;;
8768 ayin 1.108 *)
8769 pcg 1.11 ac_option=$1
8770     ac_optarg=$2
8771     ac_shift=shift
8772     ;;
8773     esac
8774    
8775     case $ac_option in
8776     # Handling of the options.
8777 pcg 1.1 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8778 pcg 1.11 ac_cs_recheck=: ;;
8779 ayin 1.108 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8780 sf-exg 1.132 $as_echo "$ac_cs_version"; exit ;;
8781     --config | --confi | --conf | --con | --co | --c )
8782     $as_echo "$ac_cs_config"; exit ;;
8783 ayin 1.108 --debug | --debu | --deb | --de | --d | -d )
8784 pcg 1.11 debug=: ;;
8785     --file | --fil | --fi | --f )
8786     $ac_shift
8787 sf-exg 1.132 case $ac_optarg in
8788     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8789     esac
8790     as_fn_append CONFIG_FILES " '$ac_optarg'"
8791 pcg 1.11 ac_need_defaults=false;;
8792     --header | --heade | --head | --hea )
8793     $ac_shift
8794 sf-exg 1.132 case $ac_optarg in
8795     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8796     esac
8797     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8798 pcg 1.11 ac_need_defaults=false;;
8799 ayin 1.108 --he | --h)
8800     # Conflict between --help and --header
8801 sf-exg 1.132 as_fn_error "ambiguous option: \`$1'
8802     Try \`$0 --help' for more information.";;
8803 ayin 1.108 --help | --hel | -h )
8804 sf-exg 1.132 $as_echo "$ac_cs_usage"; exit ;;
8805 pcg 1.11 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8806     | -silent | --silent | --silen | --sile | --sil | --si | --s)
8807     ac_cs_silent=: ;;
8808    
8809     # This is an error.
8810 sf-exg 1.132 -*) as_fn_error "unrecognized option: \`$1'
8811     Try \`$0 --help' for more information." ;;
8812 pcg 1.11
8813 sf-exg 1.132 *) as_fn_append ac_config_targets " $1"
8814 ayin 1.108 ac_need_defaults=false ;;
8815 pcg 1.11
8816     esac
8817     shift
8818     done
8819    
8820     ac_configure_extra_args=
8821    
8822     if $ac_cs_silent; then
8823     exec 6>/dev/null
8824     ac_configure_extra_args="$ac_configure_extra_args --silent"
8825     fi
8826    
8827     _ACEOF
8828 sf-exg 1.132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8829 pcg 1.11 if \$ac_cs_recheck; then
8830 sf-exg 1.132 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8831     shift
8832     \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8833     CONFIG_SHELL='$SHELL'
8834 ayin 1.108 export CONFIG_SHELL
8835 sf-exg 1.132 exec "\$@"
8836 pcg 1.11 fi
8837    
8838     _ACEOF
8839 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8840 ayin 1.108 exec 5>>config.log
8841     {
8842     echo
8843     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8844     ## Running $as_me. ##
8845     _ASBOX
8846 sf-exg 1.132 $as_echo "$ac_log"
8847 ayin 1.108 } >&5
8848 pcg 1.11
8849 ayin 1.108 _ACEOF
8850 sf-exg 1.132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8851 ayin 1.108 _ACEOF
8852 ayin 1.106
8853 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8854 ayin 1.106
8855 ayin 1.108 # Handling of arguments.
8856 pcg 1.11 for ac_config_target in $ac_config_targets
8857     do
8858 ayin 1.108 case $ac_config_target in
8859     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
8860     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8861     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8862     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8863    
8864 sf-exg 1.132 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8865 pcg 1.1 esac
8866     done
8867    
8868 ayin 1.108
8869 pcg 1.11 # If the user did not use the arguments to specify the items to instantiate,
8870     # then the envvar interface is used. Set only those that are not.
8871     # We use the long form for the default assignment because of an extremely
8872     # bizarre bug on SunOS 4.1.3.
8873     if $ac_need_defaults; then
8874     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8875     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8876     fi
8877    
8878     # Have a temporary directory for convenience. Make it in the build tree
8879 ayin 1.108 # simply because there is no reason against having it here, and in addition,
8880 pcg 1.11 # creating and moving files from /tmp can sometimes cause problems.
8881 ayin 1.108 # Hook for its removal unless debugging.
8882     # Note that there is a small window in which the directory will not be cleaned:
8883     # after its creation but before its name has been assigned to `$tmp'.
8884 pcg 1.11 $debug ||
8885     {
8886 ayin 1.108 tmp=
8887     trap 'exit_status=$?
8888     { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8889     ' 0
8890 sf-exg 1.132 trap 'as_fn_exit 1' 1 2 13 15
8891 pcg 1.11 }
8892     # Create a (secure) tmp directory for tmp files.
8893    
8894     {
8895 ayin 1.108 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8896 pcg 1.11 test -n "$tmp" && test -d "$tmp"
8897     } ||
8898     {
8899 ayin 1.108 tmp=./conf$$-$RANDOM
8900     (umask 077 && mkdir "$tmp")
8901 sf-exg 1.132 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
8902    
8903     # Set up the scripts for CONFIG_FILES section.
8904     # No need to generate them if there are no CONFIG_FILES.
8905     # This happens for instance with `./config.status config.h'.
8906     if test -n "$CONFIG_FILES"; then
8907 pcg 1.11
8908 ayin 1.108
8909 sf-exg 1.132 ac_cr=`echo X | tr X '\015'`
8910     # On cygwin, bash can eat \r inside `` if the user requested igncr.
8911     # But we know of no other shell where ac_cr would be empty at this
8912     # point, so we can use a bashism as a fallback.
8913     if test "x$ac_cr" = x; then
8914     eval ac_cr=\$\'\\r\'
8915     fi
8916     ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8917     if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8918     ac_cs_awk_cr='\r'
8919     else
8920     ac_cs_awk_cr=$ac_cr
8921     fi
8922 ayin 1.108
8923 sf-exg 1.132 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8924 ayin 1.106 _ACEOF
8925    
8926 ayin 1.108
8927 sf-exg 1.132 {
8928     echo "cat >conf$$subs.awk <<_ACEOF" &&
8929     echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8930     echo "_ACEOF"
8931     } >conf$$subs.sh ||
8932     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8933     ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8934 ayin 1.108 ac_delim='%!_!# '
8935     for ac_last_try in false false false false false :; do
8936 sf-exg 1.132 . ./conf$$subs.sh ||
8937     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8938 root 1.105
8939 sf-exg 1.132 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8940     if test $ac_delim_n = $ac_delim_num; then
8941 ayin 1.108 break
8942     elif $ac_last_try; then
8943 sf-exg 1.132 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8944 ayin 1.108 else
8945     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8946 root 1.105 fi
8947 ayin 1.108 done
8948 sf-exg 1.132 rm -f conf$$subs.sh
8949 ayin 1.108
8950 sf-exg 1.132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8951     cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8952 ayin 1.108 _ACEOF
8953 sf-exg 1.132 sed -n '
8954     h
8955     s/^/S["/; s/!.*/"]=/
8956     p
8957     g
8958     s/^[^!]*!//
8959     :repl
8960     t repl
8961     s/'"$ac_delim"'$//
8962     t delim
8963     :nl
8964     h
8965     s/\(.\{148\}\)..*/\1/
8966     t more1
8967     s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8968     p
8969     n
8970     b repl
8971     :more1
8972     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8973     p
8974     g
8975     s/.\{148\}//
8976     t nl
8977     :delim
8978     h
8979     s/\(.\{148\}\)..*/\1/
8980     t more2
8981     s/["\\]/\\&/g; s/^/"/; s/$/"/
8982     p
8983     b
8984     :more2
8985     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8986     p
8987     g
8988     s/.\{148\}//
8989     t delim
8990     ' <conf$$subs.awk | sed '
8991     /^[^""]/{
8992     N
8993     s/\n//
8994     }
8995     ' >>$CONFIG_STATUS || ac_write_fail=1
8996     rm -f conf$$subs.awk
8997     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8998     _ACAWK
8999     cat >>"\$tmp/subs1.awk" <<_ACAWK &&
9000     for (key in S) S_is_set[key] = 1
9001     FS = ""
9002 ayin 1.108
9003 sf-exg 1.132 }
9004     {
9005     line = $ 0
9006     nfields = split(line, field, "@")
9007     substed = 0
9008     len = length(field[1])
9009     for (i = 2; i < nfields; i++) {
9010     key = field[i]
9011     keylen = length(key)
9012     if (S_is_set[key]) {
9013     value = S[key]
9014     line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9015     len += length(value) + length(field[++i])
9016     substed = 1
9017     } else
9018     len += 1 + keylen
9019     }
9020    
9021     print line
9022     }
9023    
9024     _ACAWK
9025     _ACEOF
9026     cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9027     if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9028     sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9029     else
9030     cat
9031     fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
9032     || as_fn_error "could not setup config files machinery" "$LINENO" 5
9033     _ACEOF
9034 ayin 1.108
9035     # VPATH may cause trouble with some makes, so we remove $(srcdir),
9036     # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9037     # trailing colons and then remove the whole line if VPATH becomes empty
9038     # (actually we leave an empty line to preserve line numbers).
9039     if test "x$srcdir" = x.; then
9040     ac_vpsub='/^[ ]*VPATH[ ]*=/{
9041     s/:*\$(srcdir):*/:/
9042     s/:*\${srcdir}:*/:/
9043     s/:*@srcdir@:*/:/
9044     s/^\([^=]*=[ ]*\):*/\1/
9045     s/:*$//
9046     s/^[^=]*=[ ]*$//
9047     }'
9048     fi
9049    
9050 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9051 ayin 1.108 fi # test -n "$CONFIG_FILES"
9052    
9053 sf-exg 1.132 # Set up the scripts for CONFIG_HEADERS section.
9054     # No need to generate them if there are no CONFIG_HEADERS.
9055     # This happens for instance with `./config.status Makefile'.
9056     if test -n "$CONFIG_HEADERS"; then
9057     cat >"$tmp/defines.awk" <<\_ACAWK ||
9058     BEGIN {
9059     _ACEOF
9060    
9061     # Transform confdefs.h into an awk script `defines.awk', embedded as
9062     # here-document in config.status, that substitutes the proper values into
9063     # config.h.in to produce config.h.
9064    
9065     # Create a delimiter string that does not exist in confdefs.h, to ease
9066     # handling of long lines.
9067     ac_delim='%!_!# '
9068     for ac_last_try in false false :; do
9069     ac_t=`sed -n "/$ac_delim/p" confdefs.h`
9070     if test -z "$ac_t"; then
9071     break
9072     elif $ac_last_try; then
9073     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
9074     else
9075     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9076     fi
9077     done
9078    
9079     # For the awk script, D is an array of macro values keyed by name,
9080     # likewise P contains macro parameters if any. Preserve backslash
9081     # newline sequences.
9082    
9083     ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9084     sed -n '
9085     s/.\{148\}/&'"$ac_delim"'/g
9086     t rset
9087     :rset
9088     s/^[ ]*#[ ]*define[ ][ ]*/ /
9089     t def
9090     d
9091     :def
9092     s/\\$//
9093     t bsnl
9094     s/["\\]/\\&/g
9095     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9096     D["\1"]=" \3"/p
9097     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9098     d
9099     :bsnl
9100     s/["\\]/\\&/g
9101     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9102     D["\1"]=" \3\\\\\\n"\\/p
9103     t cont
9104     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9105     t cont
9106     d
9107     :cont
9108     n
9109     s/.\{148\}/&'"$ac_delim"'/g
9110     t clear
9111     :clear
9112     s/\\$//
9113     t bsnlc
9114     s/["\\]/\\&/g; s/^/"/; s/$/"/p
9115     d
9116     :bsnlc
9117     s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9118     b cont
9119     ' <confdefs.h | sed '
9120     s/'"$ac_delim"'/"\\\
9121     "/g' >>$CONFIG_STATUS || ac_write_fail=1
9122    
9123     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9124     for (key in D) D_is_set[key] = 1
9125     FS = ""
9126     }
9127     /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9128     line = \$ 0
9129     split(line, arg, " ")
9130     if (arg[1] == "#") {
9131     defundef = arg[2]
9132     mac1 = arg[3]
9133     } else {
9134     defundef = substr(arg[1], 2)
9135     mac1 = arg[2]
9136     }
9137     split(mac1, mac2, "(") #)
9138     macro = mac2[1]
9139     prefix = substr(line, 1, index(line, defundef) - 1)
9140     if (D_is_set[macro]) {
9141     # Preserve the white space surrounding the "#".
9142     print prefix "define", macro P[macro] D[macro]
9143     next
9144     } else {
9145     # Replace #undef with comments. This is necessary, for example,
9146     # in the case of _POSIX_SOURCE, which is predefined and required
9147     # on some systems where configure will not decide to define it.
9148     if (defundef == "undef") {
9149     print "/*", prefix defundef, macro, "*/"
9150     next
9151     }
9152     }
9153     }
9154     { print }
9155     _ACAWK
9156     _ACEOF
9157     cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9158     as_fn_error "could not setup config headers machinery" "$LINENO" 5
9159     fi # test -n "$CONFIG_HEADERS"
9160    
9161 ayin 1.108
9162 sf-exg 1.132 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
9163     shift
9164     for ac_tag
9165 ayin 1.108 do
9166     case $ac_tag in
9167     :[FHLC]) ac_mode=$ac_tag; continue;;
9168     esac
9169     case $ac_mode$ac_tag in
9170     :[FHL]*:*);;
9171 sf-exg 1.132 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
9172 ayin 1.108 :[FH]-) ac_tag=-:-;;
9173     :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9174     esac
9175     ac_save_IFS=$IFS
9176     IFS=:
9177     set x $ac_tag
9178     IFS=$ac_save_IFS
9179     shift
9180     ac_file=$1
9181     shift
9182    
9183     case $ac_mode in
9184     :L) ac_source=$1;;
9185     :[FH])
9186     ac_file_inputs=
9187     for ac_f
9188     do
9189     case $ac_f in
9190     -) ac_f="$tmp/stdin";;
9191     *) # Look for the file first in the build tree, then in the source tree
9192     # (if the path is not absolute). The absolute path cannot be DOS-style,
9193     # because $ac_f cannot contain `:'.
9194     test -f "$ac_f" ||
9195     case $ac_f in
9196     [\\/$]*) false;;
9197     *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9198     esac ||
9199 sf-exg 1.132 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9200 ayin 1.108 esac
9201 sf-exg 1.132 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9202     as_fn_append ac_file_inputs " '$ac_f'"
9203 ayin 1.108 done
9204    
9205     # Let's still pretend it is `configure' which instantiates (i.e., don't
9206     # use $as_me), people would be surprised to read:
9207     # /* config.h. Generated by config.status. */
9208 sf-exg 1.132 configure_input='Generated from '`
9209     $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9210     `' by configure.'
9211 ayin 1.108 if test x"$ac_file" != x-; then
9212     configure_input="$ac_file. $configure_input"
9213 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9214     $as_echo "$as_me: creating $ac_file" >&6;}
9215 ayin 1.108 fi
9216 sf-exg 1.132 # Neutralize special characters interpreted by sed in replacement strings.
9217     case $configure_input in #(
9218     *\&* | *\|* | *\\* )
9219     ac_sed_conf_input=`$as_echo "$configure_input" |
9220     sed 's/[\\\\&|]/\\\\&/g'`;; #(
9221     *) ac_sed_conf_input=$configure_input;;
9222     esac
9223 ayin 1.108
9224     case $ac_tag in
9225 sf-exg 1.132 *:-:* | *:-) cat >"$tmp/stdin" \
9226     || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
9227 ayin 1.108 esac
9228     ;;
9229 ayin 1.102 esac
9230    
9231 ayin 1.108 ac_dir=`$as_dirname -- "$ac_file" ||
9232 pcg 1.11 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9233     X"$ac_file" : 'X\(//\)[^/]' \| \
9234     X"$ac_file" : 'X\(//\)$' \| \
9235 ayin 1.108 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9236 sf-exg 1.132 $as_echo X"$ac_file" |
9237 ayin 1.108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9238     s//\1/
9239     q
9240     }
9241     /^X\(\/\/\)[^/].*/{
9242     s//\1/
9243     q
9244     }
9245     /^X\(\/\/\)$/{
9246     s//\1/
9247     q
9248     }
9249     /^X\(\/\).*/{
9250     s//\1/
9251     q
9252     }
9253     s/.*/./; q'`
9254 sf-exg 1.132 as_dir="$ac_dir"; as_fn_mkdir_p
9255 pcg 1.11 ac_builddir=.
9256    
9257 ayin 1.108 case "$ac_dir" in
9258     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9259     *)
9260 sf-exg 1.132 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9261 ayin 1.108 # A ".." for each directory in $ac_dir_suffix.
9262 sf-exg 1.132 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9263 ayin 1.108 case $ac_top_builddir_sub in
9264     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9265     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9266     esac ;;
9267     esac
9268     ac_abs_top_builddir=$ac_pwd
9269     ac_abs_builddir=$ac_pwd$ac_dir_suffix
9270     # for backward compatibility:
9271     ac_top_builddir=$ac_top_build_prefix
9272 pcg 1.11
9273     case $srcdir in
9274 ayin 1.108 .) # We are building in place.
9275 pcg 1.11 ac_srcdir=.
9276 ayin 1.108 ac_top_srcdir=$ac_top_builddir_sub
9277     ac_abs_top_srcdir=$ac_pwd ;;
9278     [\\/]* | ?:[\\/]* ) # Absolute name.
9279 pcg 1.11 ac_srcdir=$srcdir$ac_dir_suffix;
9280 ayin 1.108 ac_top_srcdir=$srcdir
9281     ac_abs_top_srcdir=$srcdir ;;
9282     *) # Relative name.
9283     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9284     ac_top_srcdir=$ac_top_build_prefix$srcdir
9285     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9286 pcg 1.11 esac
9287 ayin 1.108 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9288 pcg 1.11
9289    
9290 ayin 1.108 case $ac_mode in
9291     :F)
9292     #
9293     # CONFIG_FILE
9294     #
9295 pcg 1.1
9296 pcg 1.11 case $INSTALL in
9297     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9298 ayin 1.108 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9299 pcg 1.1 esac
9300 ayin 1.108 _ACEOF
9301 pcg 1.1
9302 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9303 ayin 1.108 # If the template does not know about datarootdir, expand it.
9304     # FIXME: This hack should be removed a few years after 2.60.
9305     ac_datarootdir_hack=; ac_datarootdir_seen=
9306 sf-exg 1.132 ac_sed_dataroot='
9307     /datarootdir/ {
9308 ayin 1.108 p
9309     q
9310     }
9311     /@datadir@/p
9312     /@docdir@/p
9313     /@infodir@/p
9314     /@localedir@/p
9315 sf-exg 1.132 /@mandir@/p'
9316     case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9317 ayin 1.108 *datarootdir*) ac_datarootdir_seen=yes;;
9318     *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9319 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9320     $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9321 ayin 1.108 _ACEOF
9322 sf-exg 1.132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9323 ayin 1.108 ac_datarootdir_hack='
9324     s&@datadir@&$datadir&g
9325     s&@docdir@&$docdir&g
9326     s&@infodir@&$infodir&g
9327     s&@localedir@&$localedir&g
9328     s&@mandir@&$mandir&g
9329 sf-exg 1.132 s&\\\${datarootdir}&$datarootdir&g' ;;
9330 ayin 1.108 esac
9331 root 1.105 _ACEOF
9332 ayin 1.108
9333     # Neutralize VPATH when `$srcdir' = `.'.
9334     # Shell code in configure.ac might set extrasub.
9335     # FIXME: do we really want to maintain this feature?
9336 sf-exg 1.132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9337     ac_sed_extra="$ac_vpsub
9338 pcg 1.11 $extrasub
9339     _ACEOF
9340 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9341 pcg 1.11 :t
9342     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9343 sf-exg 1.132 s|@configure_input@|$ac_sed_conf_input|;t t
9344 ayin 1.108 s&@top_builddir@&$ac_top_builddir_sub&;t t
9345 sf-exg 1.132 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9346 ayin 1.108 s&@srcdir@&$ac_srcdir&;t t
9347     s&@abs_srcdir@&$ac_abs_srcdir&;t t
9348     s&@top_srcdir@&$ac_top_srcdir&;t t
9349     s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9350     s&@builddir@&$ac_builddir&;t t
9351     s&@abs_builddir@&$ac_abs_builddir&;t t
9352     s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9353     s&@INSTALL@&$ac_INSTALL&;t t
9354     $ac_datarootdir_hack
9355 sf-exg 1.132 "
9356     eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9357     || as_fn_error "could not create $ac_file" "$LINENO" 5
9358 ayin 1.108
9359     test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9360     { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9361     { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9362 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9363 ayin 1.108 which seems to be undefined. Please make sure it is defined." >&5
9364 sf-exg 1.132 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9365 ayin 1.108 which seems to be undefined. Please make sure it is defined." >&2;}
9366 ayin 1.106
9367 ayin 1.108 rm -f "$tmp/stdin"
9368 pcg 1.11 case $ac_file in
9369 sf-exg 1.132 -) cat "$tmp/out" && rm -f "$tmp/out";;
9370     *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9371     esac \
9372     || as_fn_error "could not create $ac_file" "$LINENO" 5
9373 ayin 1.108 ;;
9374     :H)
9375     #
9376     # CONFIG_HEADER
9377     #
9378 pcg 1.11 if test x"$ac_file" != x-; then
9379 sf-exg 1.132 {
9380     $as_echo "/* $configure_input */" \
9381     && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9382     } >"$tmp/config.h" \
9383     || as_fn_error "could not create $ac_file" "$LINENO" 5
9384     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
9385     { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9386     $as_echo "$as_me: $ac_file is unchanged" >&6;}
9387 pcg 1.11 else
9388 sf-exg 1.132 rm -f "$ac_file"
9389     mv "$tmp/config.h" "$ac_file" \
9390     || as_fn_error "could not create $ac_file" "$LINENO" 5
9391 pcg 1.1 fi
9392 pcg 1.11 else
9393 sf-exg 1.132 $as_echo "/* $configure_input */" \
9394     && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9395     || as_fn_error "could not create -" "$LINENO" 5
9396 pcg 1.1 fi
9397 ayin 1.108 ;;
9398    
9399    
9400     esac
9401    
9402     done # for ac_tag
9403 pcg 1.11
9404 pcg 1.1
9405 sf-exg 1.132 as_fn_exit 0
9406 pcg 1.11 _ACEOF
9407     ac_clean_files=$ac_clean_files_save
9408 pcg 1.1
9409 sf-exg 1.132 test $ac_write_fail = 0 ||
9410     as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
9411    
9412 pcg 1.1
9413 pcg 1.11 # configure is writing to config.log, and then calls config.status.
9414     # config.status does its own redirection, appending to config.log.
9415     # Unfortunately, on DOS this fails, as config.log is still kept open
9416     # by configure, so config.status won't be able to write to it; its
9417     # output is simply discarded. So we exec the FD to /dev/null,
9418     # effectively closing config.log, so it can be properly (re)opened and
9419     # appended to by config.status. When coming back to configure, we
9420     # need to make the FD available again.
9421     if test "$no_create" != yes; then
9422     ac_cs_success=:
9423     ac_config_status_args=
9424     test "$silent" = yes &&
9425     ac_config_status_args="$ac_config_status_args --quiet"
9426     exec 5>/dev/null
9427     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9428     exec 5>>config.log
9429     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9430     # would make configure fail if this is the last instruction.
9431 sf-exg 1.132 $ac_cs_success || as_fn_exit $?
9432     fi
9433     if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9434     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9435     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9436 pcg 1.11 fi
9437 pcg 1.1
9438    
9439     echo "Configuration:
9440    
9441     Rxvt version: $VERSION : $DATE
9442     Source code location: $srcdir
9443     Install path: ${prefix}/bin
9444 pcg 1.13 Compiler: $CXX
9445 root 1.100 Compiler flags: $CXXFLAGS
9446 pcg 1.13 Linker: $LINKER"
9447 pcg 1.1
9448     if test x$term != x; then
9449 pcg 1.18 echo " set TERM to: $term"
9450 pcg 1.1 fi
9451     if test x$terminfo != x; then
9452 pcg 1.18 echo " set TERMINFO to: $terminfo"
9453     fi
9454     echo " default resource name: $RESNAME"
9455     echo " resource class: $RESCLASS"
9456     if test x$RESFALLBACK != x; then
9457     echo " resource class fallback: $RESFALLBACK"
9458 pcg 1.1 fi
9459 pcg 1.18 echo
9460 root 1.89 echo " embedded perl: $support_perl"
9461 root 1.109 echo " libafterimage: $support_afterimage"
9462 root 1.89 echo
9463 pcg 1.1 if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
9464     echo ".----------------------------------------------------------------."
9465     echo ". WARNING: --enable-xim was specified however the locale support ."
9466     echo ". functions could not be found. ."
9467     echo ". XIM is now being DISABLED! ."
9468     echo ".----------------------------------------------------------------."
9469     fi
9470 pcg 1.20
9471 root 1.96 echo "*** Optionally check src/feature.h for further, rarely used options ***"
9472 pcg 1.20 echo
9473