ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure
Revision: 1.133
Committed: Wed Jul 21 09:06:20 2010 UTC (13 years, 10 months ago) by sf-exg
Branch: MAIN
Changes since 1.132: +185 -240 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_try_cpp LINENO
1869     # ------------------------
1870     # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1871     ac_fn_cxx_try_cpp ()
1872     {
1873     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874     if { { ac_try="$ac_cpp conftest.$ac_ext"
1875 ayin 1.108 case "(($ac_try" in
1876     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877     *) ac_try_echo=$ac_try;;
1878     esac
1879 sf-exg 1.132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880     $as_echo "$ac_try_echo"; } >&5
1881     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1882 pcg 1.11 ac_status=$?
1883 sf-exg 1.132 if test -s conftest.err; then
1884     grep -v '^ *+' conftest.err >conftest.er1
1885     cat conftest.er1 >&5
1886     mv -f conftest.er1 conftest.err
1887     fi
1888     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889     test $ac_status = 0; } >/dev/null && {
1890     test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1891 ayin 1.108 test ! -s conftest.err
1892 sf-exg 1.132 }; then :
1893     ac_retval=0
1894 pcg 1.11 else
1895 sf-exg 1.132 $as_echo "$as_me: failed program was:" >&5
1896 pcg 1.11 sed 's/^/| /' conftest.$ac_ext >&5
1897    
1898 sf-exg 1.132 ac_retval=1
1899     fi
1900     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1901     as_fn_set_status $ac_retval
1902    
1903     } # ac_fn_cxx_try_cpp
1904    
1905     # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1906     # ---------------------------------------------------------
1907     # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1908     # the include files in INCLUDES and setting the cache variable VAR
1909     # accordingly.
1910     ac_fn_cxx_check_header_mongrel ()
1911     {
1912     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1914     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915     $as_echo_n "checking for $2... " >&6; }
1916     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1917     $as_echo_n "(cached) " >&6
1918     fi
1919     eval ac_res=\$$3
1920     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921     $as_echo "$ac_res" >&6; }
1922     else
1923     # Is the header compilable?
1924     { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1925     $as_echo_n "checking $2 usability... " >&6; }
1926     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927     /* end confdefs.h. */
1928     $4
1929     #include <$2>
1930 pcg 1.11 _ACEOF
1931 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
1932     ac_header_compiler=yes
1933     else
1934     ac_header_compiler=no
1935     fi
1936     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1938     $as_echo "$ac_header_compiler" >&6; }
1939    
1940     # Is the header present?
1941     { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1942     $as_echo_n "checking $2 presence... " >&6; }
1943     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 pcg 1.11 /* end confdefs.h. */
1945 sf-exg 1.132 #include <$2>
1946     _ACEOF
1947     if ac_fn_cxx_try_cpp "$LINENO"; then :
1948     ac_header_preproc=yes
1949     else
1950     ac_header_preproc=no
1951     fi
1952     rm -f conftest.err conftest.$ac_ext
1953     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1954     $as_echo "$ac_header_preproc" >&6; }
1955    
1956     # So? What about this header?
1957     case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1958     yes:no: )
1959     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1960     $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1961     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1962     $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1963     ;;
1964     no:yes:* )
1965     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1966     $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1967     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1968     $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1969     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1970     $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1971     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1972     $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1973     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1974     $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1975     ;;
1976     esac
1977     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1978     $as_echo_n "checking for $2... " >&6; }
1979     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1980     $as_echo_n "(cached) " >&6
1981     else
1982     eval "$3=\$ac_header_compiler"
1983     fi
1984     eval ac_res=\$$3
1985     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986     $as_echo "$ac_res" >&6; }
1987     fi
1988     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1989 ayin 1.108
1990 sf-exg 1.132 } # ac_fn_cxx_check_header_mongrel
1991    
1992 sf-exg 1.133 # ac_fn_cxx_check_func LINENO FUNC VAR
1993     # ------------------------------------
1994     # Tests whether FUNC exists, setting the cache variable VAR accordingly
1995     ac_fn_cxx_check_func ()
1996     {
1997     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1999     $as_echo_n "checking for $2... " >&6; }
2000     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2001     $as_echo_n "(cached) " >&6
2002     else
2003     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004     /* end confdefs.h. */
2005     /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2006     For example, HP-UX 11i <limits.h> declares gettimeofday. */
2007     #define $2 innocuous_$2
2008    
2009     /* System header to define __stub macros and hopefully few prototypes,
2010     which can conflict with char $2 (); below.
2011     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2012     <limits.h> exists even on freestanding compilers. */
2013    
2014     #ifdef __STDC__
2015     # include <limits.h>
2016     #else
2017     # include <assert.h>
2018     #endif
2019    
2020     #undef $2
2021    
2022     /* Override any GCC internal prototype to avoid an error.
2023     Use char because int might match the return type of a GCC
2024     builtin and then its argument prototype would still apply. */
2025     #ifdef __cplusplus
2026     extern "C"
2027     #endif
2028     char $2 ();
2029     /* The GNU C library defines this for functions which it implements
2030     to always fail with ENOSYS. Some functions are actually named
2031     something starting with __ and the normal name is an alias. */
2032     #if defined __stub_$2 || defined __stub___$2
2033     choke me
2034     #endif
2035    
2036     int
2037     main ()
2038     {
2039     return $2 ();
2040     ;
2041     return 0;
2042     }
2043     _ACEOF
2044     if ac_fn_cxx_try_link "$LINENO"; then :
2045     eval "$3=yes"
2046     else
2047     eval "$3=no"
2048     fi
2049     rm -f core conftest.err conftest.$ac_objext \
2050     conftest$ac_exeext conftest.$ac_ext
2051     fi
2052     eval ac_res=\$$3
2053     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054     $as_echo "$ac_res" >&6; }
2055     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2056    
2057     } # ac_fn_cxx_check_func
2058    
2059 sf-exg 1.132 # 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.133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setlocale" >&5
4484     $as_echo_n "checking for library containing setlocale... " >&6; }
4485     if test "${ac_cv_search_setlocale+set}" = set; then :
4486 sf-exg 1.132 $as_echo_n "(cached) " >&6
4487     else
4488 sf-exg 1.133 ac_func_search_save_LIBS=$LIBS
4489 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490 root 1.116 /* end confdefs.h. */
4491    
4492     /* Override any GCC internal prototype to avoid an error.
4493     Use char because int might match the return type of a GCC
4494     builtin and then its argument prototype would still apply. */
4495     #ifdef __cplusplus
4496     extern "C"
4497     #endif
4498 sf-exg 1.132 char setlocale ();
4499 root 1.116 int
4500     main ()
4501     {
4502 sf-exg 1.132 return setlocale ();
4503 root 1.116 ;
4504     return 0;
4505     }
4506     _ACEOF
4507 sf-exg 1.133 for ac_lib in '' xpg4; do
4508     if test -z "$ac_lib"; then
4509     ac_res="none required"
4510     else
4511     ac_res=-l$ac_lib
4512     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4513     fi
4514     if ac_fn_cxx_try_link "$LINENO"; then :
4515     ac_cv_search_setlocale=$ac_res
4516 sf-exg 1.132 fi
4517     rm -f core conftest.err conftest.$ac_objext \
4518 sf-exg 1.133 conftest$ac_exeext
4519     if test "${ac_cv_search_setlocale+set}" = set; then :
4520     break
4521     fi
4522     done
4523     if test "${ac_cv_search_setlocale+set}" = set; then :
4524    
4525     else
4526     ac_cv_search_setlocale=no
4527 root 1.116 fi
4528 sf-exg 1.133 rm conftest.$ac_ext
4529     LIBS=$ac_func_search_save_LIBS
4530 root 1.116 fi
4531 sf-exg 1.133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setlocale" >&5
4532     $as_echo "$ac_cv_search_setlocale" >&6; }
4533     ac_res=$ac_cv_search_setlocale
4534     if test "$ac_res" != no; then :
4535     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4536 root 1.116
4537     fi
4538    
4539    
4540 sf-exg 1.133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
4541     $as_echo_n "checking for library containing gethostbyname... " >&6; }
4542     if test "${ac_cv_search_gethostbyname+set}" = set; then :
4543 sf-exg 1.132 $as_echo_n "(cached) " >&6
4544     else
4545 sf-exg 1.133 ac_func_search_save_LIBS=$LIBS
4546 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 root 1.123 /* end confdefs.h. */
4548    
4549     /* Override any GCC internal prototype to avoid an error.
4550     Use char because int might match the return type of a GCC
4551     builtin and then its argument prototype would still apply. */
4552     #ifdef __cplusplus
4553     extern "C"
4554     #endif
4555 sf-exg 1.132 char gethostbyname ();
4556 root 1.123 int
4557     main ()
4558     {
4559 sf-exg 1.132 return gethostbyname ();
4560 root 1.123 ;
4561     return 0;
4562     }
4563     _ACEOF
4564 sf-exg 1.133 for ac_lib in '' nsl; do
4565     if test -z "$ac_lib"; then
4566     ac_res="none required"
4567     else
4568     ac_res=-l$ac_lib
4569     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4570     fi
4571     if ac_fn_cxx_try_link "$LINENO"; then :
4572     ac_cv_search_gethostbyname=$ac_res
4573 sf-exg 1.132 fi
4574     rm -f core conftest.err conftest.$ac_objext \
4575 sf-exg 1.133 conftest$ac_exeext
4576     if test "${ac_cv_search_gethostbyname+set}" = set; then :
4577     break
4578     fi
4579     done
4580     if test "${ac_cv_search_gethostbyname+set}" = set; then :
4581    
4582     else
4583     ac_cv_search_gethostbyname=no
4584 sf-exg 1.132 fi
4585 sf-exg 1.133 rm conftest.$ac_ext
4586     LIBS=$ac_func_search_save_LIBS
4587 root 1.123 fi
4588 sf-exg 1.133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
4589     $as_echo "$ac_cv_search_gethostbyname" >&6; }
4590     ac_res=$ac_cv_search_gethostbyname
4591     if test "$ac_res" != no; then :
4592     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4593 root 1.123
4594     fi
4595    
4596 sf-exg 1.133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
4597     $as_echo_n "checking for library containing socket... " >&6; }
4598     if test "${ac_cv_search_socket+set}" = set; then :
4599 sf-exg 1.132 $as_echo_n "(cached) " >&6
4600 root 1.123 else
4601 sf-exg 1.133 ac_func_search_save_LIBS=$LIBS
4602 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4603 root 1.123 /* end confdefs.h. */
4604    
4605     /* Override any GCC internal prototype to avoid an error.
4606     Use char because int might match the return type of a GCC
4607     builtin and then its argument prototype would still apply. */
4608     #ifdef __cplusplus
4609     extern "C"
4610     #endif
4611 sf-exg 1.132 char socket ();
4612 root 1.123 int
4613     main ()
4614     {
4615 sf-exg 1.132 return socket ();
4616 root 1.123 ;
4617     return 0;
4618     }
4619     _ACEOF
4620 sf-exg 1.133 for ac_lib in '' socket; do
4621     if test -z "$ac_lib"; then
4622     ac_res="none required"
4623     else
4624     ac_res=-l$ac_lib
4625     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4626     fi
4627     if ac_fn_cxx_try_link "$LINENO"; then :
4628     ac_cv_search_socket=$ac_res
4629 sf-exg 1.132 fi
4630     rm -f core conftest.err conftest.$ac_objext \
4631 sf-exg 1.133 conftest$ac_exeext
4632     if test "${ac_cv_search_socket+set}" = set; then :
4633     break
4634     fi
4635     done
4636     if test "${ac_cv_search_socket+set}" = set; then :
4637    
4638     else
4639     ac_cv_search_socket=no
4640 sf-exg 1.132 fi
4641 sf-exg 1.133 rm conftest.$ac_ext
4642     LIBS=$ac_func_search_save_LIBS
4643 sf-exg 1.132 fi
4644 sf-exg 1.133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
4645     $as_echo "$ac_cv_search_socket" >&6; }
4646     ac_res=$ac_cv_search_socket
4647     if test "$ac_res" != no; then :
4648     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4649 root 1.123
4650     fi
4651    
4652 sf-exg 1.132
4653     support_frills=yes
4654     support_inheritpixmap=yes
4655     support_fading=yes
4656     support_keepscrolling=yes
4657     support_selectionscrolling=yes
4658     support_mousewheel=yes
4659     support_mouseslipwheel=yes
4660     support_text_blink=yes
4661     support_pointer_blank=yes
4662     support_scroll_rxvt=yes
4663     support_scroll_next=yes
4664     support_scroll_xterm=yes
4665     support_xim=yes
4666     support_afterimage=yes
4667     support_afterstep=yes
4668     support_xft=yes
4669     support_unicode3=no
4670     support_combining=yes
4671     support_8bitctrls=no
4672     support_iso14755=yes
4673     support_styles=yes
4674     support_perl=yes
4675     codesets=all
4676    
4677    
4678     # Check whether --enable-everything was given.
4679     if test "${enable_everything+set}" = set; then :
4680     enableval=$enable_everything;
4681     if test x$enableval = xno; then
4682     support_frills=no
4683     support_inheritpixmap=no
4684     support_fading=no
4685     support_keepscrolling=no
4686     support_selectionscrolling=no
4687     support_lastlog=no
4688     support_mousewheel=no
4689     support_mouseslipwheel=no
4690     support_text_blink=no
4691     support_pointer_blank=no
4692     support_scroll_rxvt=no
4693     support_scroll_next=no
4694     support_scroll_xterm=no
4695     support_utmp=no
4696     support_wtmp=no
4697     support_xim=no
4698     support_afterimage=no
4699     support_afterstep=no
4700     support_xft=no
4701     support_unicode3=no
4702     support_combining=no
4703     support_8bitctrls=no
4704     support_iso14755=no
4705     support_styles=no
4706     support_perl=no
4707     codesets=
4708     fi
4709     if test x$enableval = xyes; then
4710     support_frills=yes
4711     support_inheritpixmap=yes
4712     support_fading=yes
4713     support_keepscrolling=yes
4714     support_selectionscrolling=yes
4715     support_lastlog=yes
4716     support_mousewheel=yes
4717     support_mouseslipwheel=yes
4718     support_text_blink=yes
4719     support_pointer_blank=yes
4720     support_scroll_rxvt=yes
4721     support_scroll_next=yes
4722     support_scroll_xterm=yes
4723     support_utmp=yes
4724     support_wtmp=yes
4725     support_xim=yes
4726     support_afterimage=yes
4727     support_afterstep=yes
4728     support_xft=yes
4729     support_unicode3=yes
4730     support_combining=yes
4731     #support_8bitctrls=yes
4732     support_iso14755=yes
4733     support_styles=yes
4734     support_perl=yes
4735     codesets=all
4736     fi
4737    
4738 root 1.123 fi
4739    
4740    
4741 sf-exg 1.132 ASSERTIONS=no
4742     # Check whether --enable-assert was given.
4743     if test "${enable_assert+set}" = set; then :
4744     enableval=$enable_assert; if test x$enableval = xyes; then
4745     ASSERTIONS=yes
4746     fi
4747 root 1.123 fi
4748    
4749 sf-exg 1.132 if test x$ASSERTIONS = xno; then
4750 root 1.123
4751 sf-exg 1.132 $as_echo "#define NDEBUG 1" >>confdefs.h
4752 root 1.123
4753 sf-exg 1.132 fi
4754 root 1.123
4755 sf-exg 1.132 WARNINGS=no
4756     # Check whether --enable-warnings was given.
4757     if test "${enable_warnings+set}" = set; then :
4758     enableval=$enable_warnings; if test x$enableval = xyes; then
4759     WARNINGS=yes
4760     fi
4761     fi
4762 root 1.123
4763 sf-exg 1.132 if test x$GXX = xyes; then
4764     if test $WARNINGS = yes; then
4765     save_CXXFLAGS="$CXXFLAGS"
4766     CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor"
4767     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4768     /* end confdefs.h. */
4769 root 1.123
4770     int
4771     main ()
4772     {
4773 sf-exg 1.132
4774 root 1.123 ;
4775     return 0;
4776     }
4777     _ACEOF
4778 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
4779    
4780     else
4781     CXXFLAGS="$save_CXXFLAGS"
4782     fi
4783     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4784     else
4785     CXXFLAGS="$CXXFLAGS -w"
4786     fi
4787     fi
4788    
4789     support_256_color=no
4790     # Check whether --enable-256-color was given.
4791     if test "${enable_256_color+set}" = set; then :
4792     enableval=$enable_256_color; if test x$enableval = xyes; then
4793     support_256_color=yes
4794     fi
4795     fi
4796    
4797     if test x$support_256_color = xyes; then
4798    
4799     $as_echo "#define USE_256_COLORS 1" >>confdefs.h
4800    
4801     fi
4802    
4803     # Check whether --enable-unicode3 was given.
4804     if test "${enable_unicode3+set}" = set; then :
4805     enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then
4806     support_unicode3=$enableval
4807     fi
4808     fi
4809    
4810    
4811     # Check whether --enable-combining was given.
4812     if test "${enable_combining+set}" = set; then :
4813     enableval=$enable_combining; if test x$enableval = xyes -o x$enableval = xno; then
4814     support_combining=$enableval
4815     fi
4816     fi
4817    
4818    
4819     # Check whether --enable-xft was given.
4820     if test "${enable_xft+set}" = set; then :
4821     enableval=$enable_xft; if test x$enableval = xyes -o x$enableval = xno; then
4822     support_xft=$enableval
4823     fi
4824     fi
4825    
4826    
4827     # Check whether --enable-font-styles was given.
4828     if test "${enable_font_styles+set}" = set; then :
4829     enableval=$enable_font_styles; if test x$enableval = xyes -o x$enableval = xno; then
4830     support_styles=$enableval
4831     fi
4832     fi
4833    
4834 root 1.123
4835 sf-exg 1.132 # Check whether --enable-afterimage was given.
4836     if test "${enable_afterimage+set}" = set; then :
4837     enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then
4838     support_afterimage=$enableval
4839     fi
4840 root 1.123 fi
4841    
4842 sf-exg 1.132
4843    
4844     # Check whether --with-afterimage_config was given.
4845     if test "${with_afterimage_config+set}" = set; then :
4846     withval=$with_afterimage_config; if test "x$withval" != x; then
4847     afterimage_config=$withval/afterimage-config
4848     fi
4849 root 1.123 fi
4850    
4851 sf-exg 1.132
4852    
4853     # Check whether --enable-transparency was given.
4854     if test "${enable_transparency+set}" = set; then :
4855     enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then
4856     support_inheritpixmap=$enableval
4857     fi
4858 root 1.123 fi
4859    
4860    
4861 sf-exg 1.132 # Check whether --enable-fading was given.
4862     if test "${enable_fading+set}" = set; then :
4863     enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then
4864     support_fading=$enableval
4865     fi
4866 root 1.123 fi
4867    
4868    
4869 sf-exg 1.132 # Check whether --enable-rxvt-scroll was given.
4870     if test "${enable_rxvt_scroll+set}" = set; then :
4871     enableval=$enable_rxvt_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4872     support_scroll_rxvt=$enableval
4873     fi
4874     fi
4875 root 1.116
4876    
4877 sf-exg 1.132 # Check whether --enable-next-scroll was given.
4878     if test "${enable_next_scroll+set}" = set; then :
4879     enableval=$enable_next_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4880     support_scroll_next=$enableval
4881     fi
4882     fi
4883 root 1.116
4884    
4885 sf-exg 1.132 # Check whether --enable-xterm-scroll was given.
4886     if test "${enable_xterm_scroll+set}" = set; then :
4887     enableval=$enable_xterm_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4888     support_scroll_xterm=$enableval
4889     fi
4890 root 1.116 fi
4891    
4892    
4893 sf-exg 1.132 # Check whether --enable-perl was given.
4894     if test "${enable_perl+set}" = set; then :
4895     enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then
4896     support_perl=$enableval
4897     fi
4898 root 1.116 fi
4899    
4900    
4901    
4902 sf-exg 1.132 # Check whether --with-codesets was given.
4903     if test "${with_codesets+set}" = set; then :
4904     withval=$with_codesets; codesets="$withval"
4905     fi
4906 root 1.116
4907    
4908 sf-exg 1.132 # Check whether --enable-xim was given.
4909     if test "${enable_xim+set}" = set; then :
4910     enableval=$enable_xim; if test x$enableval = xyes -o x$enableval = xno; then
4911     support_xim=$enableval
4912 root 1.116 fi
4913 sf-exg 1.132 fi
4914    
4915 root 1.116
4916 sf-exg 1.132 # Check whether --enable-backspace-key was given.
4917     if test "${enable_backspace_key+set}" = set; then :
4918     enableval=$enable_backspace_key; if test x$enableval = xno; then
4919 root 1.80
4920 sf-exg 1.132 $as_echo "#define NO_BACKSPACE_KEY 1" >>confdefs.h
4921 root 1.116
4922 sf-exg 1.132 fi
4923     fi
4924 root 1.116
4925 pcg 1.24
4926 sf-exg 1.132 # Check whether --enable-delete-key was given.
4927     if test "${enable_delete_key+set}" = set; then :
4928     enableval=$enable_delete_key; if test x$enableval = xno; then
4929 pcg 1.11
4930 sf-exg 1.132 $as_echo "#define NO_DELETE_KEY 1" >>confdefs.h
4931 pcg 1.1
4932     fi
4933     fi
4934    
4935 pcg 1.11
4936 sf-exg 1.132 # Check whether --enable-resources was given.
4937     if test "${enable_resources+set}" = set; then :
4938     enableval=$enable_resources; if test x$enableval = xno; then
4939 pcg 1.11
4940 sf-exg 1.132 $as_echo "#define NO_RESOURCES 1" >>confdefs.h
4941 pcg 1.11
4942 sf-exg 1.132 fi
4943     fi
4944 pcg 1.11
4945    
4946 sf-exg 1.132 # Check whether --enable-8bitctrls was given.
4947     if test "${enable_8bitctrls+set}" = set; then :
4948     enableval=$enable_8bitctrls; if test x$enableval = xyes -o x$enableval = xno; then
4949     support_8bitctrls=$enableval
4950     fi
4951     fi
4952 pcg 1.11
4953 pcg 1.1
4954 sf-exg 1.132 RESFALLBACK=Rxvt
4955     # Check whether --enable-fallback was given.
4956     if test "${enable_fallback+set}" = set; then :
4957     enableval=$enable_fallback;
4958     test x$enableval = xyes && enableval=Rxvt
4959     test x$enableval = xno && enableval=
4960     RESFALLBACK="$enableval"
4961 pcg 1.11
4962 pcg 1.1 fi
4963 ayin 1.108
4964 pcg 1.1
4965 sf-exg 1.132 if test x$RESFALLBACK != x; then
4966    
4967     cat >>confdefs.h <<_ACEOF
4968     #define RESFALLBACK "$RESFALLBACK"
4969 pcg 1.11 _ACEOF
4970    
4971 pcg 1.1 fi
4972 ayin 1.108
4973 sf-exg 1.132 RESNAME=urxvt
4974 pcg 1.1
4975 sf-exg 1.132 # Check whether --with-res-name was given.
4976     if test "${with_res_name+set}" = set; then :
4977     withval=$with_res_name; RESNAME="$withval"
4978 ayin 1.106 fi
4979 pcg 1.1
4980 sf-exg 1.132
4981     cat >>confdefs.h <<_ACEOF
4982     #define RESNAME "$RESNAME"
4983     _ACEOF
4984    
4985    
4986     RESCLASS=URxvt
4987    
4988     # Check whether --with-res-class was given.
4989     if test "${with_res_class+set}" = set; then :
4990     withval=$with_res_class; RESCLASS="$withval"
4991 pcg 1.1 fi
4992    
4993 pcg 1.11
4994 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
4995     #define RESCLASS "$RESCLASS"
4996 pcg 1.11 _ACEOF
4997 pcg 1.1
4998    
4999 sf-exg 1.132 RXVTNAME=urxvt
5000    
5001     # Check whether --with-name was given.
5002     if test "${with_name+set}" = set; then :
5003     withval=$with_name; RXVTNAME="$withval"
5004     fi
5005    
5006    
5007     cat >>confdefs.h <<_ACEOF
5008     #define RXVTNAME "$RXVTNAME"
5009 pcg 1.11 _ACEOF
5010 pcg 1.1
5011    
5012 sf-exg 1.132 RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
5013 pcg 1.11
5014 pcg 1.1
5015 sf-exg 1.132 # Check whether --enable-swapscreen was given.
5016     if test "${enable_swapscreen+set}" = set; then :
5017     enableval=$enable_swapscreen; if test x$enableval = xno; then
5018 pcg 1.1
5019 sf-exg 1.132 $as_echo "#define NO_SECONDARY_SCREEN 1" >>confdefs.h
5020 pcg 1.11
5021 sf-exg 1.132 fi
5022 ayin 1.102 fi
5023 ayin 1.108
5024    
5025 sf-exg 1.132 # Check whether --enable-iso14755 was given.
5026     if test "${enable_iso14755+set}" = set; then :
5027     enableval=$enable_iso14755; if test x$enableval = xyes -o x$enableval = xno; then
5028     support_iso14755=$enableval
5029 pcg 1.1 fi
5030 sf-exg 1.132 fi
5031 pcg 1.1
5032    
5033 sf-exg 1.132 # Check whether --enable-frills was given.
5034     if test "${enable_frills+set}" = set; then :
5035     enableval=$enable_frills; if test x$enableval = xyes -o x$enableval = xno; then
5036     support_frills=$enableval
5037     fi
5038     fi
5039 pcg 1.11
5040 pcg 1.1
5041 sf-exg 1.132 # Check whether --enable-keepscrolling was given.
5042     if test "${enable_keepscrolling+set}" = set; then :
5043     enableval=$enable_keepscrolling; if test x$enableval = xyes -o x$enableval = xno; then
5044     support_keepscrolling=$enableval
5045     fi
5046     fi
5047 pcg 1.1
5048 pcg 1.11
5049 sf-exg 1.132 # Check whether --enable-selectionscrolling was given.
5050     if test "${enable_selectionscrolling+set}" = set; then :
5051     enableval=$enable_selectionscrolling; if test x$enableval = xyes -o x$enableval = xno; then
5052     support_selectionscrolling=$enableval
5053     fi
5054 pcg 1.11 fi
5055 ayin 1.108
5056 sf-exg 1.132
5057     # Check whether --enable-mousewheel was given.
5058     if test "${enable_mousewheel+set}" = set; then :
5059     enableval=$enable_mousewheel; if test x$enableval = xyes -o x$enableval = xno; then
5060     support_mousewheel=$enableval
5061     fi
5062 pcg 1.1 fi
5063    
5064 pcg 1.11
5065 sf-exg 1.132 # Check whether --enable-slipwheeling was given.
5066     if test "${enable_slipwheeling+set}" = set; then :
5067     enableval=$enable_slipwheeling; if test x$enableval = xyes -o x$enableval = xno; then
5068     support_mouseslipwheel=$enableval
5069     fi
5070 pcg 1.11 fi
5071 ayin 1.108
5072 sf-exg 1.132
5073     # Check whether --enable-smart-resize was given.
5074     if test "${enable_smart_resize+set}" = set; then :
5075     enableval=$enable_smart_resize; if test x$enableval = xyes; then
5076    
5077     $as_echo "#define SMART_RESIZE 1" >>confdefs.h
5078    
5079     fi
5080 pcg 1.11 fi
5081 sf-exg 1.132
5082    
5083     # Check whether --enable-text-blink was given.
5084     if test "${enable_text_blink+set}" = set; then :
5085     enableval=$enable_text_blink; if test x$enableval = xyes -o x$enableval = xno; then
5086     support_text_blink=$enableval
5087     fi
5088 pcg 1.1 fi
5089    
5090 sf-exg 1.132
5091     # Check whether --enable-pointer-blank was given.
5092     if test "${enable_pointer_blank+set}" = set; then :
5093     enableval=$enable_pointer_blank; if test x$enableval = xyes -o x$enableval = xno; then
5094     support_pointer_blank=$enableval
5095     fi
5096 pcg 1.11 fi
5097 ayin 1.108
5098 pcg 1.1
5099 sf-exg 1.132
5100     # Check whether --with-term was given.
5101     if test "${with_term+set}" = set; then :
5102     withval=$with_term; if test x$withval != x; then
5103    
5104     cat >>confdefs.h <<_ACEOF
5105     #define TERMENV "$withval"
5106 pcg 1.11 _ACEOF
5107 sf-exg 1.132 term="$withval"
5108     fi
5109     fi
5110 pcg 1.11
5111    
5112    
5113 sf-exg 1.132 # Check whether --with-terminfo was given.
5114     if test "${with_terminfo+set}" = set; then :
5115     withval=$with_terminfo; if test x$withval != x; then
5116 pcg 1.11
5117 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
5118     #define RXVT_TERMINFO "$withval"
5119     _ACEOF
5120     terminfo="$withval"
5121     fi
5122     fi
5123 pcg 1.1
5124 pcg 1.11
5125 ayin 1.108
5126 sf-exg 1.132 LIBEV_M4_AVOID_LIBRT=1
5127 pcg 1.11
5128 sf-exg 1.132 ac_ext=cpp
5129     ac_cpp='$CXXCPP $CPPFLAGS'
5130     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5131     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5132     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5133     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5134     $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5135     if test -z "$CXXCPP"; then
5136     if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5137     $as_echo_n "(cached) " >&6
5138 pcg 1.1 else
5139 sf-exg 1.132 # Double quotes because CXXCPP needs to be expanded
5140     for CXXCPP in "$CXX -E" "/lib/cpp"
5141     do
5142     ac_preproc_ok=false
5143     for ac_cxx_preproc_warn_flag in '' yes
5144     do
5145     # Use a header file that comes with gcc, so configuring glibc
5146     # with a fresh cross-compiler works.
5147     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5148     # <limits.h> exists even on freestanding compilers.
5149     # On the NeXT, cc -E runs the code through the compiler's parser,
5150     # not just through cpp. "Syntax error" is here to catch this case.
5151     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152 pcg 1.11 /* end confdefs.h. */
5153 sf-exg 1.132 #ifdef __STDC__
5154     # include <limits.h>
5155     #else
5156     # include <assert.h>
5157 pcg 1.11 #endif
5158 sf-exg 1.132 Syntax error
5159 pcg 1.11 _ACEOF
5160 sf-exg 1.132 if ac_fn_cxx_try_cpp "$LINENO"; then :
5161    
5162 pcg 1.11 else
5163 sf-exg 1.132 # Broken: fails on valid input.
5164     continue
5165 pcg 1.11 fi
5166 sf-exg 1.132 rm -f conftest.err conftest.$ac_ext
5167 ayin 1.108
5168 sf-exg 1.132 # OK, works on sane cases. Now check whether nonexistent headers
5169     # can be detected and how.
5170     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171 pcg 1.11 /* end confdefs.h. */
5172 sf-exg 1.132 #include <ac_nonexistent.h>
5173 pcg 1.11 _ACEOF
5174 sf-exg 1.132 if ac_fn_cxx_try_cpp "$LINENO"; then :
5175     # Broken: success on invalid input.
5176     continue
5177 pcg 1.11 else
5178 sf-exg 1.132 # Passes both tests.
5179     ac_preproc_ok=:
5180     break
5181 pcg 1.11 fi
5182 sf-exg 1.132 rm -f conftest.err conftest.$ac_ext
5183 ayin 1.108
5184 sf-exg 1.132 done
5185     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5186     rm -f conftest.err conftest.$ac_ext
5187     if $ac_preproc_ok; then :
5188     break
5189 pcg 1.1 fi
5190    
5191 sf-exg 1.132 done
5192     ac_cv_prog_CXXCPP=$CXXCPP
5193 pcg 1.1
5194 sf-exg 1.132 fi
5195     CXXCPP=$ac_cv_prog_CXXCPP
5196 pcg 1.11 else
5197 sf-exg 1.132 ac_cv_prog_CXXCPP=$CXXCPP
5198     fi
5199     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5200     $as_echo "$CXXCPP" >&6; }
5201     ac_preproc_ok=false
5202     for ac_cxx_preproc_warn_flag in '' yes
5203     do
5204     # Use a header file that comes with gcc, so configuring glibc
5205     # with a fresh cross-compiler works.
5206     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5207     # <limits.h> exists even on freestanding compilers.
5208     # On the NeXT, cc -E runs the code through the compiler's parser,
5209     # not just through cpp. "Syntax error" is here to catch this case.
5210     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211 pcg 1.11 /* end confdefs.h. */
5212     #ifdef __STDC__
5213     # include <limits.h>
5214     #else
5215     # include <assert.h>
5216     #endif
5217 sf-exg 1.132 Syntax error
5218     _ACEOF
5219     if ac_fn_cxx_try_cpp "$LINENO"; then :
5220 pcg 1.11
5221 sf-exg 1.132 else
5222     # Broken: fails on valid input.
5223     continue
5224     fi
5225     rm -f conftest.err conftest.$ac_ext
5226 pcg 1.11
5227 sf-exg 1.132 # OK, works on sane cases. Now check whether nonexistent headers
5228     # can be detected and how.
5229     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5230     /* end confdefs.h. */
5231     #include <ac_nonexistent.h>
5232 pcg 1.11 _ACEOF
5233 sf-exg 1.132 if ac_fn_cxx_try_cpp "$LINENO"; then :
5234     # Broken: success on invalid input.
5235     continue
5236 pcg 1.11 else
5237 sf-exg 1.132 # Passes both tests.
5238     ac_preproc_ok=:
5239     break
5240     fi
5241     rm -f conftest.err conftest.$ac_ext
5242    
5243     done
5244     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5245     rm -f conftest.err conftest.$ac_ext
5246     if $ac_preproc_ok; then :
5247 pcg 1.11
5248 sf-exg 1.132 else
5249     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5250     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5251     as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5252     See \`config.log' for more details." "$LINENO" 5; }
5253 pcg 1.1 fi
5254 ayin 1.108
5255 sf-exg 1.132 ac_ext=cpp
5256     ac_cpp='$CXXCPP $CPPFLAGS'
5257     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5258     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5259     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5260 pcg 1.1
5261 pcg 1.11
5262 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
5263     do :
5264     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5265     ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5266     eval as_val=\$$as_ac_Header
5267     if test "x$as_val" = x""yes; then :
5268     cat >>confdefs.h <<_ACEOF
5269     #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5270 pcg 1.11 _ACEOF
5271    
5272     fi
5273 ayin 1.108
5274 sf-exg 1.132 done
5275 pcg 1.1
5276    
5277 sf-exg 1.132 for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd signalfd
5278     do :
5279     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5280     ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
5281     eval as_val=\$$as_ac_var
5282     if test "x$as_val" = x""yes; then :
5283     cat >>confdefs.h <<_ACEOF
5284     #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5285 pcg 1.11 _ACEOF
5286    
5287 sf-exg 1.132 fi
5288     done
5289 pcg 1.11
5290    
5291 sf-exg 1.132 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5292     if test "x$ac_cv_func_clock_gettime" = x""yes; then :
5293 pcg 1.11
5294 sf-exg 1.132 else
5295 pcg 1.1
5296 sf-exg 1.132 if test $(uname) = Linux; then
5297     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5
5298     $as_echo_n "checking for clock_gettime syscall... " >&6; }
5299     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300     /* end confdefs.h. */
5301     #include <unistd.h>
5302     #include <sys/syscall.h>
5303     #include <time.h>
5304 pcg 1.11 int
5305     main ()
5306     {
5307 sf-exg 1.132 struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts)
5308 pcg 1.11 ;
5309     return 0;
5310     }
5311     _ACEOF
5312 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
5313     ac_have_clock_syscall=1
5314 pcg 1.11
5315 sf-exg 1.132 $as_echo "#define HAVE_CLOCK_SYSCALL 1" >>confdefs.h
5316 ayin 1.108
5317 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5318     $as_echo "yes" >&6; }
5319     else
5320     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321     $as_echo "no" >&6; }
5322 pcg 1.1 fi
5323 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
5324     conftest$ac_exeext conftest.$ac_ext
5325     fi
5326     if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then
5327     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
5328     $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
5329     if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
5330     $as_echo_n "(cached) " >&6
5331 pcg 1.1 else
5332 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
5333 sf-exg 1.132 LIBS="-lrt $LIBS"
5334     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5335 pcg 1.11 /* end confdefs.h. */
5336    
5337 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
5338     Use char because int might match the return type of a GCC
5339     builtin and then its argument prototype would still apply. */
5340 pcg 1.11 #ifdef __cplusplus
5341     extern "C"
5342     #endif
5343 sf-exg 1.132 char clock_gettime ();
5344 pcg 1.11 int
5345     main ()
5346     {
5347 sf-exg 1.132 return clock_gettime ();
5348 pcg 1.11 ;
5349     return 0;
5350     }
5351     _ACEOF
5352 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
5353     ac_cv_lib_rt_clock_gettime=yes
5354 pcg 1.11 else
5355 sf-exg 1.132 ac_cv_lib_rt_clock_gettime=no
5356 pcg 1.11 fi
5357 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
5358     conftest$ac_exeext conftest.$ac_ext
5359 pcg 1.11 LIBS=$ac_check_lib_save_LIBS
5360     fi
5361 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
5362     $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
5363     if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
5364     cat >>confdefs.h <<_ACEOF
5365     #define HAVE_LIBRT 1
5366     _ACEOF
5367    
5368     LIBS="-lrt $LIBS"
5369    
5370 pcg 1.1 fi
5371    
5372 sf-exg 1.132 unset ac_cv_func_clock_gettime
5373     for ac_func in clock_gettime
5374     do :
5375     ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5376     if test "x$ac_cv_func_clock_gettime" = x""yes; then :
5377     cat >>confdefs.h <<_ACEOF
5378     #define HAVE_CLOCK_GETTIME 1
5379     _ACEOF
5380 pcg 1.1
5381 sf-exg 1.132 fi
5382     done
5383 pcg 1.11
5384 sf-exg 1.132 fi
5385 pcg 1.11
5386 sf-exg 1.132 fi
5387 pcg 1.11
5388    
5389 sf-exg 1.132 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5390     if test "x$ac_cv_func_nanosleep" = x""yes; then :
5391 pcg 1.11
5392     else
5393 pcg 1.1
5394 sf-exg 1.132 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
5395     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
5396     $as_echo_n "checking for nanosleep in -lrt... " >&6; }
5397     if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
5398     $as_echo_n "(cached) " >&6
5399 pcg 1.1 else
5400 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
5401 sf-exg 1.132 LIBS="-lrt $LIBS"
5402     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403 pcg 1.11 /* end confdefs.h. */
5404    
5405 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
5406     Use char because int might match the return type of a GCC
5407     builtin and then its argument prototype would still apply. */
5408 pcg 1.11 #ifdef __cplusplus
5409     extern "C"
5410     #endif
5411 sf-exg 1.132 char nanosleep ();
5412 pcg 1.11 int
5413     main ()
5414     {
5415 sf-exg 1.132 return nanosleep ();
5416 pcg 1.11 ;
5417     return 0;
5418     }
5419     _ACEOF
5420 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
5421     ac_cv_lib_rt_nanosleep=yes
5422 pcg 1.11 else
5423 sf-exg 1.132 ac_cv_lib_rt_nanosleep=no
5424     fi
5425     rm -f core conftest.err conftest.$ac_objext \
5426     conftest$ac_exeext conftest.$ac_ext
5427     LIBS=$ac_check_lib_save_LIBS
5428     fi
5429     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
5430     $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
5431     if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
5432     cat >>confdefs.h <<_ACEOF
5433     #define HAVE_LIBRT 1
5434     _ACEOF
5435    
5436     LIBS="-lrt $LIBS"
5437 pcg 1.11
5438     fi
5439 ayin 1.108
5440 sf-exg 1.132 unset ac_cv_func_nanosleep
5441     for ac_func in nanosleep
5442     do :
5443     ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5444     if test "x$ac_cv_func_nanosleep" = x""yes; then :
5445     cat >>confdefs.h <<_ACEOF
5446     #define HAVE_NANOSLEEP 1
5447     _ACEOF
5448    
5449 pcg 1.11 fi
5450 sf-exg 1.132 done
5451    
5452     fi
5453    
5454 pcg 1.1 fi
5455    
5456    
5457 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil in -lm" >&5
5458     $as_echo_n "checking for ceil in -lm... " >&6; }
5459     if test "${ac_cv_lib_m_ceil+set}" = set; then :
5460     $as_echo_n "(cached) " >&6
5461 pcg 1.1 else
5462 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
5463 sf-exg 1.132 LIBS="-lm $LIBS"
5464     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5465 pcg 1.11 /* end confdefs.h. */
5466    
5467 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
5468     Use char because int might match the return type of a GCC
5469     builtin and then its argument prototype would still apply. */
5470 pcg 1.11 #ifdef __cplusplus
5471     extern "C"
5472     #endif
5473 sf-exg 1.132 char ceil ();
5474 pcg 1.11 int
5475     main ()
5476     {
5477 sf-exg 1.132 return ceil ();
5478 pcg 1.11 ;
5479     return 0;
5480     }
5481     _ACEOF
5482 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
5483     ac_cv_lib_m_ceil=yes
5484 pcg 1.11 else
5485 sf-exg 1.132 ac_cv_lib_m_ceil=no
5486 pcg 1.11 fi
5487 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
5488     conftest$ac_exeext conftest.$ac_ext
5489 pcg 1.11 LIBS=$ac_check_lib_save_LIBS
5490     fi
5491 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ceil" >&5
5492     $as_echo "$ac_cv_lib_m_ceil" >&6; }
5493     if test "x$ac_cv_lib_m_ceil" = x""yes; then :
5494     cat >>confdefs.h <<_ACEOF
5495     #define HAVE_LIBM 1
5496     _ACEOF
5497 pcg 1.1
5498 sf-exg 1.132 LIBS="-lm $LIBS"
5499 pcg 1.1
5500     fi
5501    
5502    
5503 root 1.103
5504    
5505 sf-exg 1.132
5506     # Extract the first word of "tic", so it can be a program name with args.
5507     set dummy tic; ac_word=$2
5508     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5509     $as_echo_n "checking for $ac_word... " >&6; }
5510     if test "${ac_cv_path_TIC+set}" = set; then :
5511     $as_echo_n "(cached) " >&6
5512 root 1.103 else
5513 sf-exg 1.132 case $TIC in
5514 root 1.103 [\\/]* | ?:[\\/]*)
5515 sf-exg 1.132 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
5516 root 1.103 ;;
5517     *)
5518     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5519     for as_dir in $PATH
5520     do
5521     IFS=$as_save_IFS
5522     test -z "$as_dir" && as_dir=.
5523 sf-exg 1.132 for ac_exec_ext in '' $ac_executable_extensions; do
5524 ayin 1.108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5525 sf-exg 1.132 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
5526     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5527 root 1.103 break 2
5528     fi
5529     done
5530 sf-exg 1.132 done
5531 ayin 1.108 IFS=$as_save_IFS
5532 root 1.103
5533 sf-exg 1.132 test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":"
5534 root 1.103 ;;
5535     esac
5536     fi
5537 sf-exg 1.132 TIC=$ac_cv_path_TIC
5538     if test -n "$TIC"; then
5539     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIC" >&5
5540     $as_echo "$TIC" >&6; }
5541     else
5542     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543     $as_echo "no" >&6; }
5544     fi
5545    
5546    
5547    
5548     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5549     $as_echo_n "checking for X... " >&6; }
5550    
5551    
5552     # Check whether --with-x was given.
5553     if test "${with_x+set}" = set; then :
5554     withval=$with_x;
5555     fi
5556    
5557     # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5558     if test "x$with_x" = xno; then
5559     # The user explicitly disabled X.
5560     have_x=disabled
5561     else
5562     case $x_includes,$x_libraries in #(
5563     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
5564     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
5565     $as_echo_n "(cached) " >&6
5566 root 1.103 else
5567 sf-exg 1.132 # One or both of the vars are not set, and there is no cached value.
5568     ac_x_includes=no ac_x_libraries=no
5569     rm -f -r conftest.dir
5570     if mkdir conftest.dir; then
5571     cd conftest.dir
5572     cat >Imakefile <<'_ACEOF'
5573     incroot:
5574     @echo incroot='${INCROOT}'
5575     usrlibdir:
5576     @echo usrlibdir='${USRLIBDIR}'
5577     libdir:
5578     @echo libdir='${LIBDIR}'
5579     _ACEOF
5580     if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5581     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5582     for ac_var in incroot usrlibdir libdir; do
5583     eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5584     done
5585     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5586     for ac_extension in a so sl dylib la dll; do
5587     if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5588     test -f "$ac_im_libdir/libX11.$ac_extension"; then
5589     ac_im_usrlibdir=$ac_im_libdir; break
5590     fi
5591     done
5592     # Screen out bogus values from the imake configuration. They are
5593     # bogus both because they are the default anyway, and because
5594     # using them would break gcc on systems where it needs fixed includes.
5595     case $ac_im_incroot in
5596     /usr/include) ac_x_includes= ;;
5597     *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5598     esac
5599     case $ac_im_usrlibdir in
5600     /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5601     *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5602     esac
5603     fi
5604     cd ..
5605     rm -f -r conftest.dir
5606 root 1.103 fi
5607    
5608 sf-exg 1.132 # Standard set of common directories for X headers.
5609     # Check X11 before X11Rn because it is often a symlink to the current release.
5610     ac_x_header_dirs='
5611     /usr/X11/include
5612     /usr/X11R7/include
5613     /usr/X11R6/include
5614     /usr/X11R5/include
5615     /usr/X11R4/include
5616    
5617     /usr/include/X11
5618     /usr/include/X11R7
5619     /usr/include/X11R6
5620     /usr/include/X11R5
5621     /usr/include/X11R4
5622    
5623     /usr/local/X11/include
5624     /usr/local/X11R7/include
5625     /usr/local/X11R6/include
5626     /usr/local/X11R5/include
5627     /usr/local/X11R4/include
5628    
5629     /usr/local/include/X11
5630     /usr/local/include/X11R7
5631     /usr/local/include/X11R6
5632     /usr/local/include/X11R5
5633     /usr/local/include/X11R4
5634    
5635     /usr/X386/include
5636     /usr/x386/include
5637     /usr/XFree86/include/X11
5638    
5639     /usr/include
5640     /usr/local/include
5641     /usr/unsupported/include
5642     /usr/athena/include
5643     /usr/local/x11r5/include
5644     /usr/lpp/Xamples/include
5645    
5646     /usr/openwin/include
5647     /usr/openwin/share/include'
5648 ayin 1.108
5649 sf-exg 1.132 if test "$ac_x_includes" = no; then
5650     # Guess where to find include files, by looking for Xlib.h.
5651     # First, try using that file with no special directory specified.
5652     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653     /* end confdefs.h. */
5654     #include <X11/Xlib.h>
5655     _ACEOF
5656     if ac_fn_cxx_try_cpp "$LINENO"; then :
5657     # We can compile using X headers with no special include directory.
5658     ac_x_includes=
5659     else
5660     for ac_dir in $ac_x_header_dirs; do
5661     if test -r "$ac_dir/X11/Xlib.h"; then
5662     ac_x_includes=$ac_dir
5663     break
5664 root 1.103 fi
5665 sf-exg 1.132 done
5666     fi
5667     rm -f conftest.err conftest.$ac_ext
5668     fi # $ac_x_includes = no
5669    
5670     if test "$ac_x_libraries" = no; then
5671     # Check for the libraries.
5672     # See if we find them without any special options.
5673     # Don't add to $LIBS permanently.
5674     ac_save_LIBS=$LIBS
5675     LIBS="-lX11 $LIBS"
5676     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677     /* end confdefs.h. */
5678     #include <X11/Xlib.h>
5679     int
5680     main ()
5681     {
5682     XrmInitialize ()
5683     ;
5684     return 0;
5685     }
5686     _ACEOF
5687     if ac_fn_cxx_try_link "$LINENO"; then :
5688     LIBS=$ac_save_LIBS
5689     # We can link X programs with no special library path.
5690     ac_x_libraries=
5691     else
5692     LIBS=$ac_save_LIBS
5693     for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5694     do
5695     # Don't even attempt the hair of trying to link an X program!
5696     for ac_extension in a so sl dylib la dll; do
5697     if test -r "$ac_dir/libX11.$ac_extension"; then
5698     ac_x_libraries=$ac_dir
5699     break 2
5700 root 1.103 fi
5701 sf-exg 1.132 done
5702     done
5703 root 1.103 fi
5704 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
5705     conftest$ac_exeext conftest.$ac_ext
5706     fi # $ac_x_libraries = no
5707 root 1.103
5708 sf-exg 1.132 case $ac_x_includes,$ac_x_libraries in #(
5709     no,* | *,no | *\'*)
5710     # Didn't find X, or a directory has "'" in its name.
5711     ac_cv_have_x="have_x=no";; #(
5712     *)
5713     # Record where we found X for the cache.
5714     ac_cv_have_x="have_x=yes\
5715     ac_x_includes='$ac_x_includes'\
5716     ac_x_libraries='$ac_x_libraries'"
5717     esac
5718     fi
5719     ;; #(
5720     *) have_x=yes;;
5721     esac
5722     eval "$ac_cv_have_x"
5723     fi # $with_x != no
5724 pcg 1.11
5725 sf-exg 1.132 if test "$have_x" != yes; then
5726     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5727     $as_echo "$have_x" >&6; }
5728     no_x=yes
5729     else
5730     # If each of the values was on the command line, it overrides each guess.
5731     test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5732     test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5733     # Update the cache value to reflect the command line values.
5734     ac_cv_have_x="have_x=yes\
5735     ac_x_includes='$x_includes'\
5736     ac_x_libraries='$x_libraries'"
5737     { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5738     $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5739     fi
5740 pcg 1.11
5741 sf-exg 1.132 if test "$no_x" = yes; then
5742     # Not all programs may use this symbol, but it does not hurt to define it.
5743 pcg 1.11
5744 sf-exg 1.132 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
5745 pcg 1.11
5746 sf-exg 1.132 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5747     else
5748     if test -n "$x_includes"; then
5749     X_CFLAGS="$X_CFLAGS -I$x_includes"
5750     fi
5751 pcg 1.11
5752 sf-exg 1.132 # It would also be nice to do this for all -L options, not just this one.
5753     if test -n "$x_libraries"; then
5754     X_LIBS="$X_LIBS -L$x_libraries"
5755     # For Solaris; some versions of Sun CC require a space after -R and
5756     # others require no space. Words are not sufficient . . . .
5757     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
5758     $as_echo_n "checking whether -R must be followed by a space... " >&6; }
5759     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5760     ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
5761     ac_cxx_werror_flag=yes
5762     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5763     /* end confdefs.h. */
5764 pcg 1.11
5765 sf-exg 1.132 int
5766     main ()
5767     {
5768 pcg 1.11
5769 sf-exg 1.132 ;
5770     return 0;
5771     }
5772     _ACEOF
5773     if ac_fn_cxx_try_link "$LINENO"; then :
5774     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5775     $as_echo "no" >&6; }
5776     X_LIBS="$X_LIBS -R$x_libraries"
5777 pcg 1.11 else
5778 sf-exg 1.132 LIBS="$ac_xsave_LIBS -R $x_libraries"
5779     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5780 pcg 1.11 /* end confdefs.h. */
5781 sf-exg 1.132
5782     int
5783     main ()
5784     {
5785    
5786     ;
5787     return 0;
5788     }
5789 pcg 1.11 _ACEOF
5790 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
5791     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5792     $as_echo "yes" >&6; }
5793     X_LIBS="$X_LIBS -R $x_libraries"
5794 pcg 1.11 else
5795 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5796     $as_echo "neither works" >&6; }
5797     fi
5798     rm -f core conftest.err conftest.$ac_objext \
5799     conftest$ac_exeext conftest.$ac_ext
5800 pcg 1.11 fi
5801 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
5802     conftest$ac_exeext conftest.$ac_ext
5803     ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
5804     LIBS=$ac_xsave_LIBS
5805     fi
5806 ayin 1.108
5807 sf-exg 1.132 # Check for system-dependent libraries X programs must link with.
5808     # Do this before checking for the system-independent R6 libraries
5809     # (-lICE), since we may need -lsocket or whatever for X linking.
5810 pcg 1.11
5811 sf-exg 1.132 if test "$ISC" = yes; then
5812     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5813     else
5814     # Martyn Johnson says this is needed for Ultrix, if the X
5815     # libraries were built with DECnet support. And Karl Berry says
5816     # the Alpha needs dnet_stub (dnet does not exist).
5817     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5818     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5819 pcg 1.11 /* end confdefs.h. */
5820 sf-exg 1.132
5821     /* Override any GCC internal prototype to avoid an error.
5822     Use char because int might match the return type of a GCC
5823     builtin and then its argument prototype would still apply. */
5824     #ifdef __cplusplus
5825     extern "C"
5826     #endif
5827     char XOpenDisplay ();
5828     int
5829     main ()
5830     {
5831     return XOpenDisplay ();
5832     ;
5833     return 0;
5834     }
5835 pcg 1.11 _ACEOF
5836 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
5837    
5838     else
5839     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5840     $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
5841     if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
5842     $as_echo_n "(cached) " >&6
5843 pcg 1.1 else
5844 sf-exg 1.132 ac_check_lib_save_LIBS=$LIBS
5845     LIBS="-ldnet $LIBS"
5846     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5847     /* end confdefs.h. */
5848 pcg 1.11
5849 sf-exg 1.132 /* Override any GCC internal prototype to avoid an error.
5850     Use char because int might match the return type of a GCC
5851     builtin and then its argument prototype would still apply. */
5852     #ifdef __cplusplus
5853     extern "C"
5854     #endif
5855     char dnet_ntoa ();
5856     int
5857     main ()
5858     {
5859     return dnet_ntoa ();
5860     ;
5861     return 0;
5862     }
5863     _ACEOF
5864     if ac_fn_cxx_try_link "$LINENO"; then :
5865     ac_cv_lib_dnet_dnet_ntoa=yes
5866 pcg 1.1 else
5867 sf-exg 1.132 ac_cv_lib_dnet_dnet_ntoa=no
5868 pcg 1.1 fi
5869 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
5870     conftest$ac_exeext conftest.$ac_ext
5871     LIBS=$ac_check_lib_save_LIBS
5872 pcg 1.1 fi
5873 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5874     $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5875     if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
5876     X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5877 pcg 1.1 fi
5878 pcg 1.11
5879 sf-exg 1.132 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5880     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
5881     $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5882     if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
5883     $as_echo_n "(cached) " >&6
5884 pcg 1.11 else
5885 sf-exg 1.132 ac_check_lib_save_LIBS=$LIBS
5886     LIBS="-ldnet_stub $LIBS"
5887     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5888 pcg 1.11 /* end confdefs.h. */
5889 sf-exg 1.132
5890     /* Override any GCC internal prototype to avoid an error.
5891     Use char because int might match the return type of a GCC
5892     builtin and then its argument prototype would still apply. */
5893     #ifdef __cplusplus
5894     extern "C"
5895     #endif
5896     char dnet_ntoa ();
5897 pcg 1.11 int
5898     main ()
5899     {
5900 sf-exg 1.132 return dnet_ntoa ();
5901 pcg 1.11 ;
5902     return 0;
5903     }
5904     _ACEOF
5905 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
5906     ac_cv_lib_dnet_stub_dnet_ntoa=yes
5907 pcg 1.1 else
5908 sf-exg 1.132 ac_cv_lib_dnet_stub_dnet_ntoa=no
5909     fi
5910     rm -f core conftest.err conftest.$ac_objext \
5911     conftest$ac_exeext conftest.$ac_ext
5912     LIBS=$ac_check_lib_save_LIBS
5913     fi
5914     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5915     $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5916     if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
5917     X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5918 pcg 1.1 fi
5919 ayin 1.108
5920 sf-exg 1.132 fi
5921 pcg 1.1 fi
5922 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
5923     conftest$ac_exeext conftest.$ac_ext
5924     LIBS="$ac_xsave_LIBS"
5925 pcg 1.1
5926 sf-exg 1.132 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5927     # to get the SysV transport functions.
5928     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5929     # needs -lnsl.
5930     # The nsl library prevents programs from opening the X display
5931     # on Irix 5.2, according to T.E. Dickey.
5932     # The functions gethostbyname, getservbyname, and inet_addr are
5933     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5934     ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5935     if test "x$ac_cv_func_gethostbyname" = x""yes; then :
5936 pcg 1.1
5937     fi
5938    
5939 sf-exg 1.132 if test $ac_cv_func_gethostbyname = no; then
5940     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5941     $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5942     if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
5943     $as_echo_n "(cached) " >&6
5944 root 1.99 else
5945 sf-exg 1.132 ac_check_lib_save_LIBS=$LIBS
5946     LIBS="-lnsl $LIBS"
5947     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5948 root 1.99 /* end confdefs.h. */
5949    
5950 sf-exg 1.132 /* Override any GCC internal prototype to avoid an error.
5951     Use char because int might match the return type of a GCC
5952     builtin and then its argument prototype would still apply. */
5953     #ifdef __cplusplus
5954     extern "C"
5955     #endif
5956     char gethostbyname ();
5957 root 1.99 int
5958     main ()
5959     {
5960 sf-exg 1.132 return gethostbyname ();
5961 root 1.99 ;
5962     return 0;
5963     }
5964     _ACEOF
5965 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
5966     ac_cv_lib_nsl_gethostbyname=yes
5967 root 1.99 else
5968 sf-exg 1.132 ac_cv_lib_nsl_gethostbyname=no
5969 root 1.99 fi
5970 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
5971     conftest$ac_exeext conftest.$ac_ext
5972     LIBS=$ac_check_lib_save_LIBS
5973 root 1.99 fi
5974 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5975     $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5976     if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
5977     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5978 root 1.99 fi
5979 pcg 1.1
5980 sf-exg 1.132 if test $ac_cv_lib_nsl_gethostbyname = no; then
5981     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
5982     $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
5983     if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
5984     $as_echo_n "(cached) " >&6
5985 pcg 1.11 else
5986 sf-exg 1.132 ac_check_lib_save_LIBS=$LIBS
5987     LIBS="-lbsd $LIBS"
5988     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5989 pcg 1.11 /* end confdefs.h. */
5990 sf-exg 1.132
5991     /* Override any GCC internal prototype to avoid an error.
5992     Use char because int might match the return type of a GCC
5993     builtin and then its argument prototype would still apply. */
5994     #ifdef __cplusplus
5995     extern "C"
5996     #endif
5997     char gethostbyname ();
5998 pcg 1.11 int
5999     main ()
6000     {
6001 sf-exg 1.132 return gethostbyname ();
6002 pcg 1.11 ;
6003     return 0;
6004     }
6005     _ACEOF
6006 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
6007     ac_cv_lib_bsd_gethostbyname=yes
6008 pcg 1.1 else
6009 sf-exg 1.132 ac_cv_lib_bsd_gethostbyname=no
6010     fi
6011     rm -f core conftest.err conftest.$ac_objext \
6012     conftest$ac_exeext conftest.$ac_ext
6013     LIBS=$ac_check_lib_save_LIBS
6014     fi
6015     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
6016     $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
6017     if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
6018     X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6019 pcg 1.1 fi
6020 ayin 1.108
6021 sf-exg 1.132 fi
6022     fi
6023 pcg 1.1
6024 sf-exg 1.132 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6025     # socket/setsockopt and other routines are undefined under SCO ODT
6026     # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6027     # on later versions), says Simon Leinen: it contains gethostby*
6028     # variants that don't use the name server (or something). -lsocket
6029     # must be given before -lnsl if both are needed. We assume that
6030     # if connect needs -lnsl, so does gethostbyname.
6031     ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
6032     if test "x$ac_cv_func_connect" = x""yes; then :
6033 pcg 1.1
6034     fi
6035    
6036 sf-exg 1.132 if test $ac_cv_func_connect = no; then
6037     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
6038     $as_echo_n "checking for connect in -lsocket... " >&6; }
6039     if test "${ac_cv_lib_socket_connect+set}" = set; then :
6040     $as_echo_n "(cached) " >&6
6041 pcg 1.11 else
6042 sf-exg 1.132 ac_check_lib_save_LIBS=$LIBS
6043     LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6044     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045 pcg 1.11 /* end confdefs.h. */
6046 sf-exg 1.132
6047     /* Override any GCC internal prototype to avoid an error.
6048     Use char because int might match the return type of a GCC
6049     builtin and then its argument prototype would still apply. */
6050     #ifdef __cplusplus
6051     extern "C"
6052     #endif
6053     char connect ();
6054 pcg 1.11 int
6055     main ()
6056     {
6057 sf-exg 1.132 return connect ();
6058 pcg 1.11 ;
6059     return 0;
6060     }
6061     _ACEOF
6062 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
6063     ac_cv_lib_socket_connect=yes
6064 pcg 1.1 else
6065 sf-exg 1.132 ac_cv_lib_socket_connect=no
6066     fi
6067     rm -f core conftest.err conftest.$ac_objext \
6068     conftest$ac_exeext conftest.$ac_ext
6069     LIBS=$ac_check_lib_save_LIBS
6070     fi
6071     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
6072     $as_echo "$ac_cv_lib_socket_connect" >&6; }
6073     if test "x$ac_cv_lib_socket_connect" = x""yes; then :
6074     X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6075 pcg 1.1 fi
6076 ayin 1.108
6077 sf-exg 1.132 fi
6078 pcg 1.1
6079 sf-exg 1.132 # Guillermo Gomez says -lposix is necessary on A/UX.
6080     ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
6081     if test "x$ac_cv_func_remove" = x""yes; then :
6082 pcg 1.1
6083     fi
6084    
6085 sf-exg 1.132 if test $ac_cv_func_remove = no; then
6086     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
6087     $as_echo_n "checking for remove in -lposix... " >&6; }
6088     if test "${ac_cv_lib_posix_remove+set}" = set; then :
6089     $as_echo_n "(cached) " >&6
6090 pcg 1.1 else
6091 sf-exg 1.132 ac_check_lib_save_LIBS=$LIBS
6092     LIBS="-lposix $LIBS"
6093     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6094 pcg 1.11 /* end confdefs.h. */
6095    
6096 sf-exg 1.132 /* Override any GCC internal prototype to avoid an error.
6097     Use char because int might match the return type of a GCC
6098     builtin and then its argument prototype would still apply. */
6099     #ifdef __cplusplus
6100     extern "C"
6101     #endif
6102     char remove ();
6103     int
6104     main ()
6105     {
6106     return remove ();
6107     ;
6108     return 0;
6109     }
6110 pcg 1.11 _ACEOF
6111 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
6112     ac_cv_lib_posix_remove=yes
6113 pcg 1.1 else
6114 sf-exg 1.132 ac_cv_lib_posix_remove=no
6115     fi
6116     rm -f core conftest.err conftest.$ac_objext \
6117     conftest$ac_exeext conftest.$ac_ext
6118     LIBS=$ac_check_lib_save_LIBS
6119 pcg 1.1 fi
6120 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
6121     $as_echo "$ac_cv_lib_posix_remove" >&6; }
6122     if test "x$ac_cv_lib_posix_remove" = x""yes; then :
6123     X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6124 pcg 1.1 fi
6125    
6126 sf-exg 1.132 fi
6127 pcg 1.11
6128 sf-exg 1.132 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6129     ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
6130     if test "x$ac_cv_func_shmat" = x""yes; then :
6131 pcg 1.1
6132     fi
6133    
6134 sf-exg 1.132 if test $ac_cv_func_shmat = no; then
6135     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
6136     $as_echo_n "checking for shmat in -lipc... " >&6; }
6137     if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
6138     $as_echo_n "(cached) " >&6
6139 pcg 1.11 else
6140 sf-exg 1.132 ac_check_lib_save_LIBS=$LIBS
6141     LIBS="-lipc $LIBS"
6142     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6143 pcg 1.11 /* end confdefs.h. */
6144 pcg 1.1
6145 sf-exg 1.132 /* Override any GCC internal prototype to avoid an error.
6146     Use char because int might match the return type of a GCC
6147     builtin and then its argument prototype would still apply. */
6148     #ifdef __cplusplus
6149     extern "C"
6150     #endif
6151     char shmat ();
6152 pcg 1.11 int
6153     main ()
6154 pcg 1.1 {
6155 sf-exg 1.132 return shmat ();
6156 pcg 1.11 ;
6157     return 0;
6158 pcg 1.1 }
6159 pcg 1.11 _ACEOF
6160 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
6161     ac_cv_lib_ipc_shmat=yes
6162 ayin 1.122 else
6163 sf-exg 1.132 ac_cv_lib_ipc_shmat=no
6164 ayin 1.122 fi
6165 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
6166     conftest$ac_exeext conftest.$ac_ext
6167     LIBS=$ac_check_lib_save_LIBS
6168 pcg 1.11 fi
6169 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
6170     $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
6171     if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
6172     X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6173 pcg 1.11 fi
6174 ayin 1.108
6175 sf-exg 1.132 fi
6176     fi
6177 pcg 1.1
6178 sf-exg 1.132 # Check for libraries that X11R6 Xt/Xaw programs need.
6179     ac_save_LDFLAGS=$LDFLAGS
6180     test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6181     # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6182     # check for ICE first), but we must link in the order -lSM -lICE or
6183     # we get undefined symbols. So assume we have SM if we have ICE.
6184     # These have to be linked with before -lX11, unlike the other
6185     # libraries we check for below, so use a different variable.
6186     # John Interrante, Karl Berry
6187     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
6188     $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
6189     if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
6190     $as_echo_n "(cached) " >&6
6191 pcg 1.1 else
6192 sf-exg 1.132 ac_check_lib_save_LIBS=$LIBS
6193     LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6194     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6195 pcg 1.11 /* end confdefs.h. */
6196 sf-exg 1.132
6197     /* Override any GCC internal prototype to avoid an error.
6198     Use char because int might match the return type of a GCC
6199     builtin and then its argument prototype would still apply. */
6200     #ifdef __cplusplus
6201     extern "C"
6202     #endif
6203     char IceConnectionNumber ();
6204 pcg 1.11 int
6205     main ()
6206     {
6207 sf-exg 1.132 return IceConnectionNumber ();
6208 pcg 1.11 ;
6209     return 0;
6210     }
6211     _ACEOF
6212 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
6213     ac_cv_lib_ICE_IceConnectionNumber=yes
6214 pcg 1.1 else
6215 sf-exg 1.132 ac_cv_lib_ICE_IceConnectionNumber=no
6216     fi
6217     rm -f core conftest.err conftest.$ac_objext \
6218     conftest$ac_exeext conftest.$ac_ext
6219     LIBS=$ac_check_lib_save_LIBS
6220     fi
6221     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6222     $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6223     if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
6224     X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6225     fi
6226 pcg 1.11
6227 sf-exg 1.132 LDFLAGS=$ac_save_LDFLAGS
6228 ayin 1.122
6229 pcg 1.1 fi
6230 ayin 1.108
6231 ayin 1.122
6232 sf-exg 1.132 AFTERIMAGE_CFLAGS=
6233     AFTERIMAGE_LIBS=
6234     AFTERIMAGE_VERSION=
6235 ayin 1.122
6236 sf-exg 1.132 if test x$support_afterimage = xyes; then
6237     support_afterimage=no
6238 ayin 1.122
6239 sf-exg 1.132 if test "x$afterimage_config" = "x" ; then
6240     # Extract the first word of "afterimage-config", so it can be a program name with args.
6241     set dummy afterimage-config; ac_word=$2
6242     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6243     $as_echo_n "checking for $ac_word... " >&6; }
6244     if test "${ac_cv_path_afterimage_config+set}" = set; then :
6245     $as_echo_n "(cached) " >&6
6246     else
6247     case $afterimage_config in
6248     [\\/]* | ?:[\\/]*)
6249     ac_cv_path_afterimage_config="$afterimage_config" # Let the user override the test with a path.
6250     ;;
6251     *)
6252     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253     for as_dir in $PATH
6254     do
6255     IFS=$as_save_IFS
6256     test -z "$as_dir" && as_dir=.
6257     for ac_exec_ext in '' $ac_executable_extensions; do
6258     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6259     ac_cv_path_afterimage_config="$as_dir/$ac_word$ac_exec_ext"
6260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6261     break 2
6262     fi
6263     done
6264     done
6265     IFS=$as_save_IFS
6266 pcg 1.1
6267 sf-exg 1.132 test -z "$ac_cv_path_afterimage_config" && ac_cv_path_afterimage_config="no"
6268     ;;
6269     esac
6270     fi
6271     afterimage_config=$ac_cv_path_afterimage_config
6272     if test -n "$afterimage_config"; then
6273     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $afterimage_config" >&5
6274     $as_echo "$afterimage_config" >&6; }
6275 pcg 1.11 else
6276 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6277     $as_echo "no" >&6; }
6278     fi
6279    
6280 ayin 1.122
6281 sf-exg 1.132 fi
6282     if test "x$afterimage_config" != "xno" ; then
6283     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libAfterImage version >= 1.15" >&5
6284     $as_echo_n "checking for libAfterImage version >= 1.15... " >&6; }
6285     xAFTERIMAGE_VERSION=`$afterimage_config --version`
6286     if test -n "$xAFTERIMAGE_VERSION" ; then
6287     xAFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
6288     xAFTERIMAGE_LIBS=`$afterimage_config --libs`
6289     if test "x$xAFTERIMAGE_LIBS" != "x"; then
6290     libai_ver_major=`echo $xAFTERIMAGE_VERSION | cut -f 1 -d .`
6291     libai_ver_minor=`echo $xAFTERIMAGE_VERSION | cut -f 2 -d .`
6292     if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then
6293     support_afterimage=yes
6294     AFTERIMAGE_CFLAGS="$xAFTERIMAGE_CFLAGS"
6295     AFTERIMAGE_LIBS="$xAFTERIMAGE_LIBS"
6296     AFTERIMAGE_VERSION="$xAFTERIMAGE_VERSION"
6297     fi
6298     fi
6299     fi
6300     if test "x$support_afterimage" = "xyes"; then
6301     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AFTERIMAGE_LIBS" >&5
6302     $as_echo "$AFTERIMAGE_LIBS" >&6; }
6303     else
6304     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6305     $as_echo "no" >&6; }
6306     fi
6307     fi
6308 ayin 1.122 fi
6309    
6310 sf-exg 1.132 for ac_header in \
6311     sys/byteorder.h \
6312     sys/ioctl.h \
6313     sys/sockio.h \
6314     sys/strredir.h \
6315     stdint.h \
6316     wchar.h \
6317     cwchar \
6318 ayin 1.122
6319 sf-exg 1.132 do :
6320     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6321     ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6322     eval as_val=\$$as_ac_Header
6323     if test "x$as_val" = x""yes; then :
6324     cat >>confdefs.h <<_ACEOF
6325     #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6326     _ACEOF
6327 ayin 1.122
6328 pcg 1.1 fi
6329 ayin 1.108
6330 sf-exg 1.132 done
6331 ayin 1.122
6332 pcg 1.1
6333 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPointer" >&5
6334     $as_echo_n "checking for XPointer... " >&6; }
6335     if test "${rxvt_cv_xpointer+set}" = set; then :
6336     $as_echo_n "(cached) " >&6
6337 pcg 1.11 else
6338 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339 pcg 1.11 /* end confdefs.h. */
6340 sf-exg 1.132 #include <X11/Xlib.h>
6341 pcg 1.11 int
6342     main ()
6343     {
6344 sf-exg 1.132 XPointer dummy;
6345 pcg 1.11 ;
6346     return 0;
6347     }
6348     _ACEOF
6349 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
6350     rxvt_cv_xpointer=yes
6351 pcg 1.1 else
6352 sf-exg 1.132 rxvt_cv_xpointer=no
6353 pcg 1.1 fi
6354 ayin 1.108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6355 pcg 1.1 fi
6356 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xpointer" >&5
6357     $as_echo "$rxvt_cv_xpointer" >&6; }
6358     if test x$rxvt_cv_xpointer = xyes; then
6359 ayin 1.122
6360 sf-exg 1.132 $as_echo "#define HAVE_XPOINTER 1" >>confdefs.h
6361 pcg 1.1
6362 sf-exg 1.132 fi
6363 pcg 1.1
6364 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB_ILLEGAL_ACCESS" >&5
6365     $as_echo_n "checking for XLIB_ILLEGAL_ACCESS... " >&6; }
6366     if test "${rxvt_cv_xlib_illegal_access+set}" = set; then :
6367     $as_echo_n "(cached) " >&6
6368 root 1.83 else
6369 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6370 root 1.83 /* end confdefs.h. */
6371    
6372 sf-exg 1.132 #define XLIB_ILLEGAL_ACCESS
6373     #include <X11/Xlib.h>
6374 pcg 1.11
6375 root 1.83 int
6376     main ()
6377     {
6378 sf-exg 1.132
6379     Display *dpy;
6380     dpy->xdefaults = (char *)0;
6381    
6382 root 1.83 ;
6383     return 0;
6384     }
6385     _ACEOF
6386 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
6387     rxvt_cv_xlib_illegal_access=yes
6388 root 1.83 else
6389 sf-exg 1.132 rxvt_cv_xlib_illegal_access=no
6390 pcg 1.11
6391 root 1.83 fi
6392 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6393 root 1.83 fi
6394 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xlib_illegal_access" >&5
6395     $as_echo "$rxvt_cv_xlib_illegal_access" >&6; }
6396     if test x$rxvt_cv_xlib_illegal_access = xyes; then
6397 pcg 1.11
6398 sf-exg 1.132 $as_echo "#define XLIB_ILLEGAL_ACCESS 1" >>confdefs.h
6399 pcg 1.11
6400 ayin 1.108 fi
6401 ayin 1.102
6402 sf-exg 1.132 ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
6403     if test "x$ac_cv_type_mode_t" = x""yes; then :
6404 ayin 1.108
6405 sf-exg 1.132 else
6406 ayin 1.102
6407 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
6408     #define mode_t int
6409     _ACEOF
6410 ayin 1.108
6411     fi
6412    
6413 sf-exg 1.132 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6414     if test "x$ac_cv_type_pid_t" = x""yes; then :
6415 root 1.92
6416 sf-exg 1.132 else
6417 root 1.92
6418 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
6419     #define pid_t int
6420 root 1.92 _ACEOF
6421    
6422     fi
6423    
6424 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6425     $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6426     if test "${ac_cv_type_uid_t+set}" = set; then :
6427     $as_echo_n "(cached) " >&6
6428     else
6429     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430     /* end confdefs.h. */
6431     #include <sys/types.h>
6432    
6433 root 1.92 _ACEOF
6434 sf-exg 1.132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6435     $EGREP "uid_t" >/dev/null 2>&1; then :
6436     ac_cv_type_uid_t=yes
6437     else
6438     ac_cv_type_uid_t=no
6439 root 1.92 fi
6440 sf-exg 1.132 rm -f conftest*
6441 root 1.92
6442     fi
6443 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6444     $as_echo "$ac_cv_type_uid_t" >&6; }
6445     if test $ac_cv_type_uid_t = no; then
6446 root 1.92
6447 sf-exg 1.132 $as_echo "#define uid_t int" >>confdefs.h
6448 pcg 1.11
6449 root 1.88
6450 sf-exg 1.132 $as_echo "#define gid_t int" >>confdefs.h
6451 root 1.88
6452 sf-exg 1.132 fi
6453 root 1.88
6454 sf-exg 1.132 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6455     case $ac_cv_c_int16_t in #(
6456     no|yes) ;; #(
6457     *)
6458 root 1.88
6459 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
6460     #define int16_t $ac_cv_c_int16_t
6461 root 1.88 _ACEOF
6462 sf-exg 1.132 ;;
6463 ayin 1.108 esac
6464 root 1.88
6465 sf-exg 1.132 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6466     case $ac_cv_c_uint16_t in #(
6467     no|yes) ;; #(
6468     *)
6469    
6470 ayin 1.108
6471 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
6472     #define uint16_t $ac_cv_c_uint16_t
6473 root 1.88 _ACEOF
6474 sf-exg 1.132 ;;
6475     esac
6476 root 1.88
6477 sf-exg 1.132 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6478     case $ac_cv_c_int32_t in #(
6479     no|yes) ;; #(
6480     *)
6481 root 1.88
6482 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
6483     #define int32_t $ac_cv_c_int32_t
6484 root 1.88 _ACEOF
6485 sf-exg 1.132 ;;
6486 ayin 1.108 esac
6487 root 1.88
6488 sf-exg 1.132 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6489     case $ac_cv_c_uint32_t in #(
6490     no|yes) ;; #(
6491     *)
6492    
6493     $as_echo "#define _UINT32_T 1" >>confdefs.h
6494 ayin 1.108
6495 root 1.88
6496 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
6497     #define uint32_t $ac_cv_c_uint32_t
6498 root 1.88 _ACEOF
6499 sf-exg 1.132 ;;
6500     esac
6501    
6502    
6503     for ac_func in unsetenv
6504     do :
6505     ac_fn_cxx_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
6506     if test "x$ac_cv_func_unsetenv" = x""yes; then :
6507     cat >>confdefs.h <<_ACEOF
6508     #define HAVE_UNSETENV 1
6509 root 1.88 _ACEOF
6510    
6511     fi
6512 sf-exg 1.132 done
6513    
6514    
6515    
6516     support_utmp=yes
6517     support_wtmp=yes
6518     support_lastlog=yes
6519 ayin 1.108
6520 sf-exg 1.132 # Check whether --enable-utmp was given.
6521     if test "${enable_utmp+set}" = set; then :
6522     enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then
6523     support_utmp=$enableval
6524     fi
6525     fi
6526 root 1.88
6527 ayin 1.108
6528 sf-exg 1.132 # Check whether --enable-wtmp was given.
6529     if test "${enable_wtmp+set}" = set; then :
6530     enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then
6531     support_wtmp=$enableval
6532     fi
6533 root 1.88 fi
6534    
6535 sf-exg 1.132
6536     # Check whether --enable-lastlog was given.
6537     if test "${enable_lastlog+set}" = set; then :
6538     enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then
6539     support_lastlog=$enableval
6540     fi
6541 root 1.88 fi
6542 sf-exg 1.132
6543    
6544     if test x$support_utmp = xyes; then
6545    
6546     $as_echo "#define UTMP_SUPPORT 1" >>confdefs.h
6547 root 1.88
6548     fi
6549 sf-exg 1.132 if test x$support_wtmp = xyes; then
6550    
6551     $as_echo "#define WTMP_SUPPORT 1" >>confdefs.h
6552 root 1.88
6553 sf-exg 1.132 fi
6554     if test x$support_lastlog = xyes; then
6555 root 1.88
6556 sf-exg 1.132 $as_echo "#define LASTLOG_SUPPORT 1" >>confdefs.h
6557 root 1.88
6558 sf-exg 1.132 fi
6559 root 1.88
6560 sf-exg 1.132 for ac_func in \
6561     updwtmp \
6562     updwtmpx \
6563     updlastlogx \
6564 root 1.128
6565 sf-exg 1.132 do :
6566     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6567     ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
6568     eval as_val=\$$as_ac_var
6569     if test "x$as_val" = x""yes; then :
6570     cat >>confdefs.h <<_ACEOF
6571     #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6572 root 1.88 _ACEOF
6573    
6574     fi
6575 sf-exg 1.132 done
6576 ayin 1.108
6577 root 1.88
6578 sf-exg 1.132 for ac_header in lastlog.h
6579     do :
6580     ac_fn_cxx_check_header_mongrel "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "$ac_includes_default"
6581     if test "x$ac_cv_header_lastlog_h" = x""yes; then :
6582     cat >>confdefs.h <<_ACEOF
6583     #define HAVE_LASTLOG_H 1
6584 root 1.88 _ACEOF
6585    
6586     fi
6587 ayin 1.108
6588 sf-exg 1.132 done
6589 root 1.88
6590 ayin 1.108
6591 root 1.88
6592 sf-exg 1.132 for ac_header in utmp.h
6593     do :
6594     ac_fn_cxx_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
6595     if test "x$ac_cv_header_utmp_h" = x""yes; then :
6596 root 1.128 cat >>confdefs.h <<_ACEOF
6597 sf-exg 1.132 #define HAVE_UTMP_H 1
6598 root 1.128 _ACEOF
6599 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utmp" >&5
6600     $as_echo_n "checking for struct utmp... " >&6; }
6601     if test "${pt_cv_struct_utmp+set}" = set; then :
6602     $as_echo_n "(cached) " >&6
6603 root 1.88 else
6604 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6605 root 1.88 /* end confdefs.h. */
6606     #include <sys/types.h>
6607     #include <utmp.h>
6608     int
6609     main ()
6610     {
6611     struct utmp ut;
6612     ;
6613     return 0;
6614     }
6615     _ACEOF
6616 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
6617     pt_cv_struct_utmp=yes
6618 root 1.88 else
6619 sf-exg 1.132 pt_cv_struct_utmp=no
6620 root 1.88 fi
6621 ayin 1.108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6622 root 1.88 fi
6623 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_struct_utmp" >&5
6624     $as_echo "$pt_cv_struct_utmp" >&6; }
6625     if test x$pt_cv_struct_utmp = xyes; then
6626 root 1.88
6627 sf-exg 1.132 $as_echo "#define HAVE_STRUCT_UTMP 1" >>confdefs.h
6628 root 1.88
6629     fi
6630    
6631    
6632 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host in utmp struct" >&5
6633     $as_echo_n "checking for ut_host in utmp struct... " >&6; }
6634     if test "${pt_cv_struct_utmp_host+set}" = set; then :
6635     $as_echo_n "(cached) " >&6
6636 root 1.88 else
6637 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638 root 1.88 /* end confdefs.h. */
6639     #include <sys/types.h>
6640     #include <utmp.h>
6641     int
6642     main ()
6643     {
6644     struct utmp ut; ut.ut_host;
6645     ;
6646     return 0;
6647     }
6648     _ACEOF
6649 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
6650     pt_cv_struct_utmp_host=yes
6651 root 1.88 else
6652 sf-exg 1.132 pt_cv_struct_utmp_host=no
6653 root 1.88 fi
6654 ayin 1.108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6655 root 1.88 fi
6656 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_struct_utmp_host" >&5
6657     $as_echo "$pt_cv_struct_utmp_host" >&6; }
6658     if test x$pt_cv_struct_utmp_host = xyes; then
6659 root 1.88
6660 sf-exg 1.132 $as_echo "#define HAVE_UTMP_HOST 1" >>confdefs.h
6661 root 1.88
6662     fi
6663    
6664 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid in utmp struct" >&5
6665     $as_echo_n "checking for ut_pid in utmp struct... " >&6; }
6666     if test "${pt_cv_struct_utmp_pid+set}" = set; then :
6667     $as_echo_n "(cached) " >&6
6668 root 1.88 else
6669 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670 root 1.88 /* end confdefs.h. */
6671     #include <sys/types.h>
6672     #include <utmp.h>
6673     int
6674     main ()
6675     {
6676     struct utmp ut; ut.ut_pid;
6677     ;
6678     return 0;
6679     }
6680     _ACEOF
6681 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
6682     pt_cv_struct_utmp_pid=yes
6683 root 1.88 else
6684 sf-exg 1.132 pt_cv_struct_utmp_pid=no
6685 root 1.88 fi
6686 ayin 1.108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6687 root 1.88 fi
6688 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_struct_utmp_pid" >&5
6689     $as_echo "$pt_cv_struct_utmp_pid" >&6; }
6690     if test x$pt_cv_struct_utmp_pid = xyes; then
6691 root 1.88
6692 sf-exg 1.132 $as_echo "#define HAVE_UTMP_PID 1" >>confdefs.h
6693 root 1.88
6694     fi
6695    
6696     fi
6697    
6698 root 1.128 done
6699    
6700 root 1.88
6701 root 1.128 for ac_header in utmpx.h
6702 sf-exg 1.132 do :
6703     ac_fn_cxx_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
6704     if test "x$ac_cv_header_utmpx_h" = x""yes; then :
6705 root 1.128 cat >>confdefs.h <<_ACEOF
6706 sf-exg 1.132 #define HAVE_UTMPX_H 1
6707 root 1.128 _ACEOF
6708 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utmpx" >&5
6709     $as_echo_n "checking for struct utmpx... " >&6; }
6710     if test "${pt_cv_struct_utmpx+set}" = set; then :
6711     $as_echo_n "(cached) " >&6
6712 root 1.88 else
6713 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6714 root 1.88 /* end confdefs.h. */
6715     #include <sys/types.h>
6716     #include <utmpx.h>
6717     int
6718     main ()
6719     {
6720     struct utmpx ut;
6721     ;
6722     return 0;
6723     }
6724     _ACEOF
6725 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
6726     pt_cv_struct_utmpx=yes
6727 root 1.88 else
6728 sf-exg 1.132 pt_cv_struct_utmpx=no
6729 root 1.88 fi
6730 ayin 1.108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6731 root 1.88 fi
6732 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_struct_utmpx" >&5
6733     $as_echo "$pt_cv_struct_utmpx" >&6; }
6734     if test x$pt_cv_struct_utmpx = xyes; then
6735 root 1.88
6736 sf-exg 1.132 $as_echo "#define HAVE_STRUCT_UTMPX 1" >>confdefs.h
6737 root 1.88
6738     fi
6739    
6740    
6741 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host in utmpx struct" >&5
6742     $as_echo_n "checking for host in utmpx struct... " >&6; }
6743     if test "${pt_cv_struct_utmpx_host+set}" = set; then :
6744     $as_echo_n "(cached) " >&6
6745 root 1.88 else
6746 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6747 root 1.88 /* end confdefs.h. */
6748     #include <sys/types.h>
6749     #include <utmpx.h>
6750     int
6751     main ()
6752     {
6753     struct utmpx utx; utx.ut_host;
6754     ;
6755     return 0;
6756     }
6757     _ACEOF
6758 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
6759     pt_cv_struct_utmpx_host=yes
6760 root 1.88 else
6761 sf-exg 1.132 pt_cv_struct_utmpx_host=no
6762 root 1.88 fi
6763 ayin 1.108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6764 root 1.88 fi
6765 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_struct_utmpx_host" >&5
6766     $as_echo "$pt_cv_struct_utmpx_host" >&6; }
6767     if test x$pt_cv_struct_utmpx_host = xyes; then
6768 root 1.88
6769 sf-exg 1.132 $as_echo "#define HAVE_UTMPX_HOST 1" >>confdefs.h
6770 root 1.88
6771     fi
6772    
6773 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for session in utmpx struct" >&5
6774     $as_echo_n "checking for session in utmpx struct... " >&6; }
6775     if test "${pt_cv_struct_utmpx_session+set}" = set; then :
6776     $as_echo_n "(cached) " >&6
6777 root 1.88 else
6778 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6779 root 1.88 /* end confdefs.h. */
6780     #include <sys/types.h>
6781     #include <utmpx.h>
6782     int
6783     main ()
6784     {
6785     struct utmpx utx; utx.ut_session;
6786     ;
6787     return 0;
6788     }
6789     _ACEOF
6790 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
6791     pt_cv_struct_utmpx_session=yes
6792 ayin 1.108 else
6793 sf-exg 1.132 pt_cv_struct_utmpx_session=no
6794 root 1.88 fi
6795 ayin 1.108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6796 root 1.88 fi
6797 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_struct_utmpx_session" >&5
6798     $as_echo "$pt_cv_struct_utmpx_session" >&6; }
6799     if test x$pt_cv_struct_utmpx_session = xyes; then
6800 root 1.88
6801 sf-exg 1.132 $as_echo "#define HAVE_UTMPX_SESSION 1" >>confdefs.h
6802 root 1.88
6803     fi
6804    
6805     fi
6806    
6807 root 1.128 done
6808 root 1.88
6809 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lastlog" >&5
6810     $as_echo_n "checking for struct lastlog... " >&6; }
6811     if test "${pt_cv_struct_lastlog+set}" = set; then :
6812     $as_echo_n "(cached) " >&6
6813 root 1.88 else
6814 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6815 root 1.88 /* end confdefs.h. */
6816     #include <sys/types.h>
6817     #include <utmp.h>
6818     #ifdef HAVE_LASTLOG_H
6819     #include <lastlog.h>
6820     #endif
6821    
6822     int
6823     main ()
6824     {
6825     struct lastlog ll;
6826     ;
6827     return 0;
6828     }
6829     _ACEOF
6830 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
6831     pt_cv_struct_lastlog=yes
6832 root 1.88 else
6833 sf-exg 1.132 pt_cv_struct_lastlog=no
6834 root 1.88 fi
6835 ayin 1.108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6836 root 1.88 fi
6837 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_struct_lastlog" >&5
6838     $as_echo "$pt_cv_struct_lastlog" >&6; }
6839     if test x$pt_cv_struct_lastlog = xyes; then
6840 root 1.88
6841 sf-exg 1.132 $as_echo "#define HAVE_STRUCT_LASTLOG 1" >>confdefs.h
6842 root 1.88
6843     fi
6844    
6845 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lastlogx" >&5
6846     $as_echo_n "checking for struct lastlogx... " >&6; }
6847     if test "${pt_cv_struct_lastlogx+set}" = set; then :
6848     $as_echo_n "(cached) " >&6
6849 root 1.88 else
6850 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851 root 1.88 /* end confdefs.h. */
6852     #include <sys/types.h>
6853     #include <utmpx.h>
6854     #ifdef HAVE_LASTLOG_H
6855     #include <lastlog.h>
6856     #endif
6857    
6858     int
6859     main ()
6860     {
6861     struct lastlogx ll;
6862     ;
6863     return 0;
6864     }
6865     _ACEOF
6866 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
6867     pt_cv_struct_lastlogx=yes
6868 root 1.88 else
6869 sf-exg 1.132 pt_cv_struct_lastlogx=no
6870 root 1.88 fi
6871 ayin 1.108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6872 root 1.88 fi
6873 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_struct_lastlogx" >&5
6874     $as_echo "$pt_cv_struct_lastlogx" >&6; }
6875     if test x$pt_cv_struct_lastlogx = xyes; then
6876 root 1.88
6877 sf-exg 1.132 $as_echo "#define HAVE_STRUCT_LASTLOGX 1" >>confdefs.h
6878 root 1.88
6879     fi
6880    
6881    
6882 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where utmp is located" >&5
6883     $as_echo_n "checking where utmp is located... " >&6; }
6884     if test "${pt_cv_path_utmp+set}" = set; then :
6885     $as_echo_n "(cached) " >&6
6886 root 1.88 else
6887 sf-exg 1.132 if test "$cross_compiling" = yes; then :
6888     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define UTMP_FILE in config.h manually" >&5
6889     $as_echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;}
6890 root 1.88 else
6891 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6892 root 1.88 /* end confdefs.h. */
6893     #include <stdio.h>
6894 ayin 1.102 #include <stdlib.h>
6895 root 1.88 #include <sys/types.h>
6896     #include <utmp.h>
6897     #include <errno.h>
6898     main()
6899     {
6900     char **u, *utmplist[] = {
6901     "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL };
6902     FILE *a, *f=fopen("conftestval", "w");
6903     if (!f) exit(1);
6904     #ifdef UTMP_FILE
6905     fprintf(f, "%s\n", UTMP_FILE);
6906     exit(0);
6907     #endif
6908     #ifdef _PATH_UTMP
6909     fprintf(f, "%s\n", _PATH_UTMP);
6910     exit(0);
6911     #endif
6912     for (u = utmplist; *u; u++) {
6913     if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
6914     fprintf(f, "%s\n", *u);
6915     exit(0);
6916     }
6917     }
6918     exit(0);
6919     }
6920     _ACEOF
6921 sf-exg 1.132 if ac_fn_cxx_try_run "$LINENO"; then :
6922     pt_cv_path_utmp=`cat conftestval`
6923 root 1.88 else
6924 sf-exg 1.132 pt_cv_path_utmp=
6925 root 1.88 fi
6926 sf-exg 1.132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6927     conftest.$ac_objext conftest.beam conftest.$ac_ext
6928 root 1.88 fi
6929 ayin 1.108
6930 root 1.88 fi
6931 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5
6932     $as_echo "$pt_cv_path_utmp" >&6; }
6933     if test x$pt_cv_path_utmp != x; then
6934 root 1.88
6935     cat >>confdefs.h <<_ACEOF
6936 sf-exg 1.132 #define UTMP_FILE "$pt_cv_path_utmp"
6937 root 1.88 _ACEOF
6938    
6939     fi
6940    
6941    
6942 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where wtmp is located" >&5
6943     $as_echo_n "checking where wtmp is located... " >&6; }
6944     if test "${pt_cv_path_wtmp+set}" = set; then :
6945     $as_echo_n "(cached) " >&6
6946 root 1.88 else
6947 sf-exg 1.132 if test "$cross_compiling" = yes; then :
6948     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define WTMP_FILE in config.h manually" >&5
6949     $as_echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;}
6950 root 1.88 else
6951 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6952 root 1.88 /* end confdefs.h. */
6953     #include <stdio.h>
6954 ayin 1.102 #include <stdlib.h>
6955 root 1.88 #include <sys/types.h>
6956     #ifdef HAVE_UTMP_H
6957     #include <utmp.h>
6958     #endif
6959     #include <errno.h>
6960     main()
6961     {
6962     char **w, *wtmplist[] = {
6963     "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
6964     FILE *a, *f=fopen("conftestval", "w");
6965     if (!f) exit(1);
6966     #ifdef WTMP_FILE
6967     fprintf(f, "%s\n", WTMP_FILE);
6968     exit(0);
6969     #endif
6970     #ifdef _PATH_WTMP
6971     fprintf(f, "%s\n", _PATH_WTMP);
6972     exit(0);
6973     #endif
6974     for (w = wtmplist; *w; w++) {
6975     if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
6976     fprintf(f, "%s\n", *w);
6977     exit(0);
6978     }
6979     }
6980     exit(0);
6981     }
6982     _ACEOF
6983 sf-exg 1.132 if ac_fn_cxx_try_run "$LINENO"; then :
6984     pt_cv_path_wtmp=`cat conftestval`
6985 root 1.88 else
6986 sf-exg 1.132 pt_cv_path_wtmp=
6987 root 1.88 fi
6988 sf-exg 1.132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6989     conftest.$ac_objext conftest.beam conftest.$ac_ext
6990 root 1.88 fi
6991 ayin 1.108
6992 root 1.88 fi
6993 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5
6994     $as_echo "$pt_cv_path_wtmp" >&6; }
6995     if test x$pt_cv_path_wtmp != x; then
6996 root 1.88
6997     cat >>confdefs.h <<_ACEOF
6998 sf-exg 1.132 #define WTMP_FILE "$pt_cv_path_wtmp"
6999 root 1.88 _ACEOF
7000    
7001     fi
7002    
7003 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where wtmpx is located" >&5
7004     $as_echo_n "checking where wtmpx is located... " >&6; }
7005     if test "${pt_cv_path_wtmpx+set}" = set; then :
7006     $as_echo_n "(cached) " >&6
7007 root 1.88 else
7008 sf-exg 1.132 if test "$cross_compiling" = yes; then :
7009     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define WTMPX_FILE in config.h manually" >&5
7010     $as_echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;}
7011 root 1.88 else
7012 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7013 root 1.88 /* end confdefs.h. */
7014     #include <stdio.h>
7015 ayin 1.102 #include <stdlib.h>
7016 root 1.88 #ifdef HAVE_UTMPX_H
7017     #include <utmpx.h>
7018     #endif
7019     #include <errno.h>
7020     main()
7021     {
7022     char **w, *wtmplist[] = {
7023     "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
7024     FILE *a, *f=fopen("conftestval", "w");
7025     if (!f) exit(1);
7026     #ifdef WTMPX_FILE
7027     fprintf(f, "%s\n", WTMPX_FILE);
7028     exit(0);
7029     #endif
7030     #ifdef _PATH_WTMPX
7031     fprintf(f, "%s\n", _PATH_WTMPX);
7032     exit(0);
7033     #endif
7034     for (w = wtmplist; *w; w++) {
7035     if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
7036     fprintf(f, "%s\n", *w);
7037     exit(0);
7038     }
7039     }
7040     exit(0);
7041     }
7042     _ACEOF
7043 sf-exg 1.132 if ac_fn_cxx_try_run "$LINENO"; then :
7044     pt_cv_path_wtmpx=`cat conftestval`
7045 root 1.88 else
7046 sf-exg 1.132 pt_cv_path_wtmpx=
7047 root 1.88 fi
7048 sf-exg 1.132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7049     conftest.$ac_objext conftest.beam conftest.$ac_ext
7050 root 1.88 fi
7051 ayin 1.108
7052 root 1.88 fi
7053 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5
7054     $as_echo "$pt_cv_path_wtmpx" >&6; }
7055     if test x$pt_cv_path_wtmpx != x; then
7056 root 1.88
7057     cat >>confdefs.h <<_ACEOF
7058 sf-exg 1.132 #define WTMPX_FILE "$pt_cv_path_wtmpx"
7059 root 1.88 _ACEOF
7060    
7061     fi
7062    
7063 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where lastlog is located" >&5
7064     $as_echo_n "checking where lastlog is located... " >&6; }
7065     if test "${pt_cv_path_lastlog+set}" = set; then :
7066     $as_echo_n "(cached) " >&6
7067 root 1.88 else
7068 sf-exg 1.132 if test "$cross_compiling" = yes; then :
7069     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define LASTLOG_FILE in config.h manually" >&5
7070     $as_echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;}
7071 root 1.88 else
7072 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7073 root 1.88 /* end confdefs.h. */
7074     #include <stdio.h>
7075 ayin 1.102 #include <stdlib.h>
7076 root 1.88 #include <sys/types.h>
7077     #ifdef HAVE_UTMPX_H
7078     #include <utmpx.h>
7079     #elif defined(HAVE_UTMP_H)
7080     #include <utmp.h>
7081     #endif
7082     #ifdef HAVE_LASTLOG_H
7083     #include <lastlog.h>
7084     #endif
7085     #include <errno.h>
7086     main()
7087     {
7088     char **w, *lastloglist[] = { "/var/log/lastlog", NULL };
7089     FILE *a, *f=fopen("conftestval", "w");
7090     if (!f) exit(1);
7091     #ifdef LASTLOG_FILE
7092     fprintf(f, "%s\n", LASTLOG_FILE);
7093     exit(0);
7094     #endif
7095     #ifdef _PATH_LASTLOG
7096     fprintf(f, "%s\n", _PATH_LASTLOG);
7097     exit(0);
7098     #endif
7099     for (w = lastloglist; *w; w++) {
7100     if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
7101     fprintf(f, "%s\n", *w);
7102     exit(0);
7103     }
7104     }
7105     exit(0);
7106     }
7107     _ACEOF
7108 sf-exg 1.132 if ac_fn_cxx_try_run "$LINENO"; then :
7109     pt_cv_path_lastlog=`cat conftestval`
7110 root 1.88 else
7111 sf-exg 1.132 pt_cv_path_lastlog=
7112 root 1.88 fi
7113 sf-exg 1.132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7114     conftest.$ac_objext conftest.beam conftest.$ac_ext
7115 root 1.88 fi
7116 ayin 1.108
7117 root 1.88 fi
7118 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5
7119     $as_echo "$pt_cv_path_lastlog" >&6; }
7120     if test x$pt_cv_path_lastlog != x; then
7121 root 1.88
7122     cat >>confdefs.h <<_ACEOF
7123 sf-exg 1.132 #define LASTLOG_FILE "$pt_cv_path_lastlog"
7124 root 1.88 _ACEOF
7125    
7126     fi
7127    
7128 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where lastlogx is located" >&5
7129     $as_echo_n "checking where lastlogx is located... " >&6; }
7130     if test "${pt_cv_path_lastlogx+set}" = set; then :
7131     $as_echo_n "(cached) " >&6
7132 root 1.88 else
7133 sf-exg 1.132 if test "$cross_compiling" = yes; then :
7134     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define LASTLOGX_FILE in config.h manually" >&5
7135     $as_echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;}
7136 root 1.88 else
7137 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7138 root 1.88 /* end confdefs.h. */
7139     #include <stdio.h>
7140 ayin 1.102 #include <stdlib.h>
7141 root 1.88 #ifdef HAVE_UTMPX_H
7142     #include <utmpx.h>
7143     #endif
7144     #include <errno.h>
7145     main()
7146     {
7147     char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL };
7148     FILE *a, *f=fopen("conftestval", "w");
7149     if (!f) exit(1);
7150     #ifdef LASTLOGX_FILE
7151     fprintf(f, "%s\n", LASTLOGX_FILE);
7152     exit(0);
7153     #endif
7154     #ifdef _PATH_LASTLOGX
7155     fprintf(f, "%s\n", _PATH_LASTLOGX);
7156     exit(0);
7157     #endif
7158     for (w = wtmplist; *w; w++) {
7159     if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
7160     fprintf(f, "%s\n", *w);
7161     exit(0);
7162     }
7163     }
7164     exit(0);
7165     }
7166     _ACEOF
7167 sf-exg 1.132 if ac_fn_cxx_try_run "$LINENO"; then :
7168     pt_cv_path_lastlogx=`cat conftestval`
7169 root 1.88 else
7170 sf-exg 1.132 pt_cv_path_lastlogx=
7171 root 1.88 fi
7172 sf-exg 1.132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7173     conftest.$ac_objext conftest.beam conftest.$ac_ext
7174 root 1.88 fi
7175 ayin 1.108
7176 root 1.88 fi
7177 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5
7178     $as_echo "$pt_cv_path_lastlogx" >&6; }
7179     if test x$pt_cv_path_lastlogx != x; then
7180 root 1.88
7181     cat >>confdefs.h <<_ACEOF
7182 sf-exg 1.132 #define LASTLOGX_FILE "$pt_cv_path_lastlogx"
7183 root 1.88 _ACEOF
7184    
7185     fi
7186    
7187    
7188    
7189    
7190 ayin 1.114 save_LIBS=$LIBS
7191     save_CFLAGS=$CFLAGS
7192 root 1.88 CFLAGS="$CFLAGS $X_CFLAGS"
7193     LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7194 ayin 1.111 if test x$support_xim = xyes; then
7195 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working Xlocale" >&5
7196     $as_echo_n "checking for working Xlocale... " >&6; }
7197     if test "${rxvt_cv_func_xlocale+set}" = set; then :
7198     $as_echo_n "(cached) " >&6
7199 root 1.88 else
7200 sf-exg 1.132 if test "$cross_compiling" = yes; then :
7201 ayin 1.111 :
7202 root 1.88 else
7203 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7204 root 1.88 /* end confdefs.h. */
7205     #include <X11/Xlib.h>
7206 ayin 1.111 #include <stdlib.h>
7207     main() {
7208     char *p;
7209     if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
7210     exit (XSupportsLocale() ? 0 : 1);
7211     else
7212     exit (1);}
7213 root 1.88 _ACEOF
7214 sf-exg 1.132 if ac_fn_cxx_try_run "$LINENO"; then :
7215 ayin 1.111 rxvt_cv_func_xlocale=yes
7216 root 1.88 else
7217 sf-exg 1.132 rxvt_cv_func_xlocale=no
7218 root 1.88 fi
7219 sf-exg 1.132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7220     conftest.$ac_objext conftest.beam conftest.$ac_ext
7221 root 1.88 fi
7222 ayin 1.108
7223 root 1.88 fi
7224 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xlocale" >&5
7225     $as_echo "$rxvt_cv_func_xlocale" >&6; }
7226 root 1.105 if test x$rxvt_cv_func_xlocale = xyes; then
7227 root 1.88
7228 sf-exg 1.132 $as_echo "#define USE_XIM 1" >>confdefs.h
7229 root 1.88
7230 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken XIM callback" >&5
7231     $as_echo_n "checking for broken XIM callback... " >&6; }
7232     if test "${rxvt_cv_broken_ximcb+set}" = set; then :
7233     $as_echo_n "(cached) " >&6
7234 ayin 1.111 else
7235 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7236     /* end confdefs.h. */
7237 ayin 1.111
7238     #include <X11/Xlib.h>
7239    
7240     void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
7241    
7242     void f() {
7243     XIMCallback cb;
7244     cb.callback = im_destroy_cb;
7245     }
7246    
7247     _ACEOF
7248 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
7249 root 1.131 rxvt_cv_broken_ximcb=yes
7250 ayin 1.111 else
7251 sf-exg 1.132 rxvt_cv_broken_ximcb=no
7252 ayin 1.111 fi
7253     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7254     fi
7255 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_broken_ximcb" >&5
7256     $as_echo "$rxvt_cv_broken_ximcb" >&6; }
7257 ayin 1.111
7258 root 1.131 if test x$rxvt_cv_broken_ximcb = xyes; then
7259 ayin 1.111
7260 sf-exg 1.132 $as_echo "#define XIMCB_PROTO_BROKEN 1" >>confdefs.h
7261 ayin 1.111
7262     fi
7263 root 1.105 fi
7264 root 1.88 fi
7265    
7266 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working X setlocale" >&5
7267     $as_echo_n "checking for working X setlocale... " >&6; }
7268     if test "${rxvt_cv_func_xsetlocale+set}" = set; then :
7269     $as_echo_n "(cached) " >&6
7270 root 1.88 else
7271 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7272 root 1.88 /* end confdefs.h. */
7273     #define X_LOCALE 1
7274     #include <X11/Xlocale.h>
7275     int
7276     main ()
7277     {
7278     setlocale(LC_CTYPE, "");
7279     ;
7280     return 0;
7281     }
7282     _ACEOF
7283 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
7284 root 1.88 rxvt_cv_func_xsetlocale=yes
7285     else
7286 sf-exg 1.132 rxvt_cv_func_xsetlocale=no
7287 root 1.88 fi
7288 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
7289     conftest$ac_exeext conftest.$ac_ext
7290 root 1.88 fi
7291 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xsetlocale" >&5
7292     $as_echo "$rxvt_cv_func_xsetlocale" >&6; }
7293 root 1.88 if test x$rxvt_cv_func_xsetlocale = xyes; then
7294    
7295 sf-exg 1.132 $as_echo "#define HAVE_XSETLOCALE 1" >>confdefs.h
7296 root 1.88
7297     fi
7298 ayin 1.114 LIBS=$save_LIBS
7299     CFLAGS=$save_CFLAGS
7300 root 1.88
7301 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working plain setlocale" >&5
7302     $as_echo_n "checking for working plain setlocale... " >&6; }
7303     if test "${rxvt_cv_func_setlocale+set}" = set; then :
7304     $as_echo_n "(cached) " >&6
7305 root 1.88 else
7306 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7307 root 1.88 /* end confdefs.h. */
7308     #include <clocale>
7309     int
7310     main ()
7311     {
7312     setlocale(LC_CTYPE, "");
7313     ;
7314     return 0;
7315     }
7316     _ACEOF
7317 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
7318 root 1.88 rxvt_cv_func_setlocale=yes
7319     else
7320 sf-exg 1.132 rxvt_cv_func_setlocale=no
7321 root 1.88 fi
7322 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
7323     conftest$ac_exeext conftest.$ac_ext
7324 root 1.88 fi
7325 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_setlocale" >&5
7326     $as_echo "$rxvt_cv_func_setlocale" >&6; }
7327 root 1.88 if test x$rxvt_cv_func_setlocale = xyes; then
7328    
7329 sf-exg 1.132 $as_echo "#define HAVE_SETLOCALE 1" >>confdefs.h
7330 root 1.88
7331     fi
7332    
7333 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working nl_langinfo" >&5
7334     $as_echo_n "checking for working nl_langinfo... " >&6; }
7335     if test "${rxvt_cv_func_nl_langinfo+set}" = set; then :
7336     $as_echo_n "(cached) " >&6
7337 root 1.88 else
7338 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7339 root 1.88 /* end confdefs.h. */
7340     #include <langinfo.h>
7341     int
7342     main ()
7343     {
7344     nl_langinfo(CODESET);
7345     ;
7346     return 0;
7347     }
7348     _ACEOF
7349 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
7350 root 1.88 rxvt_cv_func_nl_langinfo=yes
7351     else
7352 sf-exg 1.132 rxvt_cv_func_nl_langinfo=no
7353 root 1.88 fi
7354 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
7355     conftest$ac_exeext conftest.$ac_ext
7356 root 1.88 fi
7357 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_nl_langinfo" >&5
7358     $as_echo "$rxvt_cv_func_nl_langinfo" >&6; }
7359 root 1.88 if test x$rxvt_cv_func_nl_langinfo = xyes; then
7360    
7361 sf-exg 1.132 $as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h
7362 root 1.88
7363     fi
7364    
7365    
7366 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5
7367     $as_echo_n "checking for unix-compliant filehandle passing ability... " >&6; }
7368     if test "${pt_cv_can_pass_fds+set}" = set; then :
7369     $as_echo_n "(cached) " >&6
7370 root 1.88 else
7371 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7372 root 1.88 /* end confdefs.h. */
7373    
7374 root 1.93 #include <cstddef> // broken bsds (is that redundant?) need this
7375 root 1.88 #include <sys/types.h>
7376     #include <sys/socket.h>
7377     #include <sys/uio.h>
7378    
7379     int
7380     main ()
7381     {
7382    
7383     {
7384     msghdr msg;
7385     iovec iov;
7386     char buf [100];
7387     char data = 0;
7388    
7389     iov.iov_base = &data;
7390     iov.iov_len = 1;
7391    
7392     msg.msg_iov = &iov;
7393     msg.msg_iovlen = 1;
7394     msg.msg_control = buf;
7395     msg.msg_controllen = sizeof buf;
7396    
7397     cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
7398     cmsg->cmsg_level = SOL_SOCKET;
7399     cmsg->cmsg_type = SCM_RIGHTS;
7400     cmsg->cmsg_len = 100;
7401    
7402     *(int *)CMSG_DATA (cmsg) = 5;
7403    
7404     return sendmsg (3, &msg, 0);
7405     }
7406    
7407     ;
7408     return 0;
7409     }
7410     _ACEOF
7411 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
7412     pt_cv_can_pass_fds=yes
7413 root 1.88 else
7414 sf-exg 1.132 pt_cv_can_pass_fds=no
7415 root 1.88 fi
7416 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
7417     conftest$ac_exeext conftest.$ac_ext
7418 pcg 1.11 fi
7419 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_can_pass_fds" >&5
7420     $as_echo "$pt_cv_can_pass_fds" >&6; }
7421     if test x$pt_cv_can_pass_fds = xyes; then
7422 root 1.83
7423 sf-exg 1.132 $as_echo "#define HAVE_UNIX_FDPASS 1" >>confdefs.h
7424 root 1.83
7425 sf-exg 1.132 else
7426     as_fn_error "libptytty requires unix-compliant filehandle passing ability" "$LINENO" 5
7427     fi
7428 root 1.83
7429    
7430    
7431 sf-exg 1.132 for ac_header in \
7432     pty.h \
7433     util.h \
7434     libutil.h \
7435     sys/ioctl.h \
7436     sys/stropts.h \
7437     stropts.h \
7438 root 1.83
7439 sf-exg 1.132 do :
7440     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7441     ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7442     eval as_val=\$$as_ac_Header
7443     if test "x$as_val" = x""yes; then :
7444     cat >>confdefs.h <<_ACEOF
7445     #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7446     _ACEOF
7447 root 1.94
7448 sf-exg 1.132 fi
7449 root 1.94
7450 sf-exg 1.132 done
7451 root 1.94
7452    
7453 root 1.88 for ac_func in \
7454     revoke \
7455     _getpty \
7456     getpt \
7457     posix_openpt \
7458     isastream \
7459 root 1.94 setuid \
7460     seteuid \
7461     setreuid \
7462     setresuid \
7463 root 1.83
7464 sf-exg 1.132 do :
7465     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7466     ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
7467     eval as_val=\$$as_ac_var
7468     if test "x$as_val" = x""yes; then :
7469 root 1.88 cat >>confdefs.h <<_ACEOF
7470 sf-exg 1.132 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7471 root 1.88 _ACEOF
7472    
7473     fi
7474     done
7475    
7476    
7477     have_clone=no
7478    
7479 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
7480     $as_echo_n "checking for /dev/ptc... " >&6; }
7481 root 1.88 if test -e /dev/ptc; then
7482 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7483     $as_echo "yes" >&6; }
7484 root 1.88
7485 sf-exg 1.132 $as_echo "#define CLONE_DEVICE \"/dev/ptc\"" >>confdefs.h
7486 root 1.88
7487     have_clone=yes
7488 root 1.31 else
7489 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7490     $as_echo "no" >&6; }
7491 root 1.88 fi
7492    
7493     case $host in
7494     *-*-cygwin*)
7495     have_clone=yes
7496    
7497 sf-exg 1.132 $as_echo "#define CLONE_DEVICE \"/dev/ptmx\"" >>confdefs.h
7498 root 1.88
7499     ;;
7500     *)
7501 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
7502     $as_echo_n "checking for /dev/ptmx... " >&6; }
7503 root 1.88 if test -e /dev/ptmx; then
7504 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7505     $as_echo "yes" >&6; }
7506 root 1.88
7507 sf-exg 1.132 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
7508 root 1.88
7509    
7510 sf-exg 1.132 $as_echo "#define CLONE_DEVICE \"/dev/ptmx\"" >>confdefs.h
7511 root 1.88
7512     have_clone=yes
7513     else
7514 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7515     $as_echo "no" >&6; }
7516 root 1.88 fi
7517     ;;
7518     esac
7519    
7520     if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then
7521 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5
7522     $as_echo_n "checking for UNIX98 ptys... " >&6; }
7523     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7524 root 1.83 /* end confdefs.h. */
7525 root 1.88 #include <stdlib.h>
7526 root 1.83 int
7527     main ()
7528     {
7529 root 1.88 grantpt(0);unlockpt(0);ptsname(0);
7530 root 1.83 ;
7531     return 0;
7532 root 1.31 }
7533     _ACEOF
7534 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
7535 root 1.88 unix98_pty=yes
7536    
7537 sf-exg 1.132 $as_echo "#define UNIX98_PTY 1" >>confdefs.h
7538 root 1.88
7539 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7540     $as_echo "yes" >&6; }
7541 root 1.31 else
7542 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7543     $as_echo "no" >&6; }
7544 root 1.31 fi
7545 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
7546     conftest$ac_exeext conftest.$ac_ext
7547 root 1.31 fi
7548    
7549 root 1.88 if test -z "$unix98_pty"; then
7550 sf-exg 1.133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
7551     $as_echo_n "checking for library containing openpty... " >&6; }
7552     if test "${ac_cv_search_openpty+set}" = set; then :
7553 sf-exg 1.132 $as_echo_n "(cached) " >&6
7554 root 1.66 else
7555 sf-exg 1.133 ac_func_search_save_LIBS=$LIBS
7556 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557 root 1.88 /* end confdefs.h. */
7558 root 1.87
7559 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
7560     Use char because int might match the return type of a GCC
7561     builtin and then its argument prototype would still apply. */
7562 root 1.88 #ifdef __cplusplus
7563     extern "C"
7564     #endif
7565     char openpty ();
7566     int
7567     main ()
7568     {
7569 ayin 1.108 return openpty ();
7570 root 1.88 ;
7571     return 0;
7572 root 1.66 }
7573     _ACEOF
7574 sf-exg 1.133 for ac_lib in '' util; do
7575     if test -z "$ac_lib"; then
7576     ac_res="none required"
7577     else
7578     ac_res=-l$ac_lib
7579     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7580     fi
7581     if ac_fn_cxx_try_link "$LINENO"; then :
7582     ac_cv_search_openpty=$ac_res
7583 root 1.88 fi
7584 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
7585 sf-exg 1.133 conftest$ac_exeext
7586     if test "${ac_cv_search_openpty+set}" = set; then :
7587     break
7588     fi
7589     done
7590     if test "${ac_cv_search_openpty+set}" = set; then :
7591    
7592     else
7593     ac_cv_search_openpty=no
7594 root 1.66 fi
7595 sf-exg 1.133 rm conftest.$ac_ext
7596     LIBS=$ac_func_search_save_LIBS
7597 root 1.66 fi
7598 sf-exg 1.133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
7599     $as_echo "$ac_cv_search_openpty" >&6; }
7600     ac_res=$ac_cv_search_openpty
7601     if test "$ac_res" != no; then :
7602     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7603    
7604     $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
7605 root 1.87
7606 root 1.88 fi
7607 pcg 1.1
7608     fi
7609    
7610    
7611 root 1.90
7612 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tty group" >&5
7613     $as_echo_n "checking for tty group... " >&6; }
7614     if test "${pt_cv_tty_group+set}" = set; then :
7615     $as_echo_n "(cached) " >&6
7616 root 1.90 else
7617 sf-exg 1.132 if test "$cross_compiling" = yes; then :
7618     pt_cv_tty_group=no
7619 root 1.90 else
7620 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7621 root 1.90 /* end confdefs.h. */
7622    
7623     #include <sys/types.h>
7624     #include <sys/stat.h>
7625     #include <unistd.h>
7626     #include <grp.h>
7627    
7628     main()
7629     {
7630     struct stat st;
7631     struct group *gr;
7632     char *tty;
7633     gr = getgrnam("tty");
7634     tty = ttyname(0);
7635     if (gr != 0
7636     && tty != 0
7637     && (stat(tty, &st)) == 0
7638     && st.st_gid == gr->gr_gid)
7639     return 0;
7640     else
7641     return 1;
7642     }
7643     _ACEOF
7644 sf-exg 1.132 if ac_fn_cxx_try_run "$LINENO"; then :
7645     pt_cv_tty_group=yes
7646 root 1.90 else
7647 sf-exg 1.132 pt_cv_tty_group=no
7648 root 1.90 fi
7649 sf-exg 1.132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7650     conftest.$ac_objext conftest.beam conftest.$ac_ext
7651 root 1.90 fi
7652 ayin 1.108
7653 root 1.90 fi
7654 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_tty_group" >&5
7655     $as_echo "$pt_cv_tty_group" >&6; }
7656     if test x$pt_cv_tty_group = xyes; then
7657 root 1.90
7658 sf-exg 1.132 $as_echo "#define TTY_GID_SUPPORT 1" >>confdefs.h
7659 root 1.90
7660     fi
7661    
7662 root 1.39 if test x$support_xft = xyes; then
7663 root 1.86 # Extract the first word of "pkg-config", so it can be a program name with args.
7664     set dummy pkg-config; ac_word=$2
7665 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7666     $as_echo_n "checking for $ac_word... " >&6; }
7667     if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7668     $as_echo_n "(cached) " >&6
7669 root 1.86 else
7670     case $PKG_CONFIG in
7671     [\\/]* | ?:[\\/]*)
7672     ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7673     ;;
7674     *)
7675     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676     for as_dir in $PATH
7677     do
7678     IFS=$as_save_IFS
7679     test -z "$as_dir" && as_dir=.
7680 sf-exg 1.132 for ac_exec_ext in '' $ac_executable_extensions; do
7681 ayin 1.108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7682 root 1.86 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7683 sf-exg 1.132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7684 root 1.86 break 2
7685     fi
7686     done
7687 sf-exg 1.132 done
7688 ayin 1.108 IFS=$as_save_IFS
7689 root 1.86
7690     test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7691     ;;
7692     esac
7693     fi
7694     PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7695     if test -n "$PKG_CONFIG"; then
7696 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7697     $as_echo "$PKG_CONFIG" >&6; }
7698 root 1.86 else
7699 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700     $as_echo "no" >&6; }
7701 root 1.86 fi
7702    
7703 ayin 1.108
7704 root 1.90 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
7705 root 1.117 X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS"
7706 root 1.90 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
7707     else
7708     # Extract the first word of "xft-config", so it can be a program name with args.
7709 root 1.86 set dummy xft-config; ac_word=$2
7710 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7711     $as_echo_n "checking for $ac_word... " >&6; }
7712     if test "${ac_cv_path_XFT_CONFIG+set}" = set; then :
7713     $as_echo_n "(cached) " >&6
7714 root 1.86 else
7715     case $XFT_CONFIG in
7716     [\\/]* | ?:[\\/]*)
7717     ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
7718     ;;
7719     *)
7720     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721     for as_dir in $PATH
7722     do
7723     IFS=$as_save_IFS
7724     test -z "$as_dir" && as_dir=.
7725 sf-exg 1.132 for ac_exec_ext in '' $ac_executable_extensions; do
7726 ayin 1.108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7727 root 1.86 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7728 sf-exg 1.132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7729 root 1.86 break 2
7730     fi
7731     done
7732 sf-exg 1.132 done
7733 ayin 1.108 IFS=$as_save_IFS
7734 root 1.86
7735     test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
7736     ;;
7737     esac
7738     fi
7739     XFT_CONFIG=$ac_cv_path_XFT_CONFIG
7740     if test -n "$XFT_CONFIG"; then
7741 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5
7742     $as_echo "$XFT_CONFIG" >&6; }
7743 root 1.86 else
7744 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7745     $as_echo "no" >&6; }
7746 root 1.86 fi
7747    
7748 ayin 1.108
7749 root 1.86 if test $XFT_CONFIG != no; then
7750 root 1.117 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
7751 root 1.86 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
7752     fi
7753     fi
7754 root 1.34
7755 root 1.118 save_LIBS="$LIBS"
7756     LIBS="$LIBS $X_LIBS"
7757 sf-exg 1.132 for ac_header in X11/Xft/Xft.h
7758     do :
7759     ac_fn_cxx_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
7760     if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
7761 root 1.39 cat >>confdefs.h <<_ACEOF
7762 sf-exg 1.132 #define HAVE_X11_XFT_XFT_H 1
7763 pcg 1.11 _ACEOF
7764 pcg 1.1
7765 root 1.39 else
7766     support_xft=no
7767 pcg 1.1 fi
7768 pcg 1.11
7769 root 1.39 done
7770 pcg 1.1
7771 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftDrawString32 in -lXft" >&5
7772     $as_echo_n "checking for XftDrawString32 in -lXft... " >&6; }
7773     if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then :
7774     $as_echo_n "(cached) " >&6
7775 root 1.39 else
7776     ac_check_lib_save_LIBS=$LIBS
7777     LIBS="-lXft $LIBS"
7778 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7779 root 1.39 /* end confdefs.h. */
7780    
7781 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
7782     Use char because int might match the return type of a GCC
7783     builtin and then its argument prototype would still apply. */
7784 root 1.39 #ifdef __cplusplus
7785     extern "C"
7786     #endif
7787     char XftDrawString32 ();
7788     int
7789     main ()
7790     {
7791 ayin 1.108 return XftDrawString32 ();
7792 root 1.39 ;
7793     return 0;
7794     }
7795     _ACEOF
7796 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
7797 root 1.39 ac_cv_lib_Xft_XftDrawString32=yes
7798     else
7799 sf-exg 1.132 ac_cv_lib_Xft_XftDrawString32=no
7800 root 1.39 fi
7801 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
7802     conftest$ac_exeext conftest.$ac_ext
7803 root 1.39 LIBS=$ac_check_lib_save_LIBS
7804     fi
7805 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftDrawString32" >&5
7806     $as_echo "$ac_cv_lib_Xft_XftDrawString32" >&6; }
7807     if test "x$ac_cv_lib_Xft_XftDrawString32" = x""yes; then :
7808 root 1.118 :
7809 root 1.39 else
7810     support_xft=no
7811     fi
7812    
7813 root 1.118 LIBS="$save_LIBS"
7814 root 1.39
7815     if test x$support_xft = xyes; then
7816    
7817 sf-exg 1.132 $as_echo "#define XFT 1" >>confdefs.h
7818 root 1.39
7819     fi
7820     fi
7821     if test x$support_styles = xyes; then
7822    
7823 sf-exg 1.132 $as_echo "#define ENABLE_STYLES 1" >>confdefs.h
7824 root 1.39
7825     fi
7826     if test x$support_iso14755 = xyes; then
7827    
7828 sf-exg 1.132 $as_echo "#define ISO_14755 1" >>confdefs.h
7829 root 1.39
7830     fi
7831     if test x$support_8bitctrls = xyes; then
7832    
7833 sf-exg 1.132 $as_echo "#define EIGHT_BIT_CONTROLS 1" >>confdefs.h
7834 root 1.39
7835     fi
7836     if test x$support_fading = xyes; then
7837    
7838 sf-exg 1.132 $as_echo "#define OFF_FOCUS_FADING 1" >>confdefs.h
7839 root 1.39
7840     fi
7841     if test x$support_inheritpixmap = xyes; then
7842    
7843 sf-exg 1.132 $as_echo "#define ENABLE_TRANSPARENCY 1" >>confdefs.h
7844 root 1.39
7845     fi
7846     if test x$support_keepscrolling = xno; then
7847    
7848 sf-exg 1.132 $as_echo "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h
7849 root 1.39
7850     fi
7851     if test x$support_selectionscrolling = xyes; then
7852    
7853 sf-exg 1.132 $as_echo "#define SELECTION_SCROLLING 1" >>confdefs.h
7854 root 1.39
7855     fi
7856 ayin 1.111 if test x$support_frills = xyes; then
7857    
7858 sf-exg 1.132 $as_echo "#define ENABLE_FRILLS 1" >>confdefs.h
7859 ayin 1.111
7860     fi
7861 pcg 1.1 if test x$support_mousewheel = xyes; then
7862 pcg 1.11
7863 sf-exg 1.132 $as_echo "#define MOUSE_WHEEL 1" >>confdefs.h
7864 pcg 1.1
7865     fi
7866     if test x$support_mouseslipwheel = xyes; then
7867 pcg 1.11
7868 sf-exg 1.132 $as_echo "#define MOUSE_SLIP_WHEELING 1" >>confdefs.h
7869 pcg 1.1
7870     fi
7871 ayin 1.110 if test x$support_afterimage = xyes; then
7872 pcg 1.11
7873 sf-exg 1.132 $as_echo "#define HAVE_AFTERIMAGE 1" >>confdefs.h
7874 pcg 1.1
7875 root 1.103
7876 sf-exg 1.132 $as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h
7877 root 1.103
7878     fi
7879    
7880    
7881 ayin 1.126 scrolltypes=plain
7882    
7883 sf-exg 1.132 $as_echo "#define PLAIN_SCROLLBAR 1" >>confdefs.h
7884 ayin 1.126
7885    
7886 pcg 1.1 if test x$support_scroll_rxvt = xyes; then
7887 pcg 1.11
7888 sf-exg 1.132 $as_echo "#define RXVT_SCROLLBAR 1" >>confdefs.h
7889 pcg 1.1
7890 ayin 1.126 scrolltypes="$scrolltypes rxvt"
7891 pcg 1.1 fi
7892     if test x$support_scroll_next = xyes; then
7893 pcg 1.11
7894 sf-exg 1.132 $as_echo "#define NEXT_SCROLLBAR 1" >>confdefs.h
7895 pcg 1.1
7896     scrolltypes="$scrolltypes next"
7897     fi
7898     if test x$support_scroll_xterm = xyes; then
7899 pcg 1.11
7900 sf-exg 1.132 $as_echo "#define XTERM_SCROLLBAR 1" >>confdefs.h
7901 pcg 1.1
7902     scrolltypes="$scrolltypes xterm"
7903     fi
7904     if test x$support_pointer_blank = xyes; then
7905 pcg 1.11
7906 sf-exg 1.132 $as_echo "#define POINTER_BLANK 1" >>confdefs.h
7907 pcg 1.1
7908     fi
7909 pcg 1.11 if test x$support_text_blink = xyes; then
7910    
7911 sf-exg 1.132 $as_echo "#define TEXT_BLINK 1" >>confdefs.h
7912 pcg 1.1
7913     fi
7914     if test x$support_unicode3 = xyes; then
7915 pcg 1.11
7916 sf-exg 1.132 $as_echo "#define UNICODE_3 1" >>confdefs.h
7917 pcg 1.1
7918     fi
7919 pcg 1.18 if test x$support_combining = xyes; then
7920    
7921 sf-exg 1.132 $as_echo "#define ENABLE_COMBINING 1" >>confdefs.h
7922 pcg 1.18
7923     fi
7924 pcg 1.1 if test x$codesets = xall; then
7925 root 1.40 codesets=jp,jp-ext,kr,zh,zh-ext
7926 pcg 1.1 fi
7927 pcg 1.11
7928 sf-exg 1.132 $as_echo "#define ENCODING_EU 1" >>confdefs.h
7929 pcg 1.1
7930 pcg 1.13
7931 sf-exg 1.132 $as_echo "#define ENCODING_VN 1" >>confdefs.h
7932 pcg 1.13
7933 root 1.34 for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
7934 pcg 1.13 case "$codeset" in
7935 pcg 1.11 JP )
7936 sf-exg 1.132 $as_echo "#define ENCODING_JP 1" >>confdefs.h
7937 pcg 1.1 ;;
7938 pcg 1.11 JP_EXT )
7939 sf-exg 1.132 $as_echo "#define ENCODING_JP_EXT 1" >>confdefs.h
7940 pcg 1.1 ;;
7941 pcg 1.11 KR )
7942 sf-exg 1.132 $as_echo "#define ENCODING_KR 1" >>confdefs.h
7943 pcg 1.1 ;;
7944 root 1.40 ZH )
7945 sf-exg 1.132 $as_echo "#define ENCODING_ZH 1" >>confdefs.h
7946 pcg 1.1 ;;
7947 root 1.40 ZH_EXT )
7948 sf-exg 1.132 $as_echo "#define ENCODING_ZH_EXT 1" >>confdefs.h
7949 pcg 1.1 ;;
7950     esac
7951     done
7952    
7953 root 1.60 IF_PERL=\#
7954     if test x$support_perl = xyes; then
7955     # Extract the first word of "perl5", so it can be a program name with args.
7956     set dummy perl5; ac_word=$2
7957 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7958     $as_echo_n "checking for $ac_word... " >&6; }
7959     if test "${ac_cv_path_PERL+set}" = set; then :
7960     $as_echo_n "(cached) " >&6
7961 root 1.60 else
7962     case $PERL in
7963     [\\/]* | ?:[\\/]*)
7964     ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7965     ;;
7966     *)
7967     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7968     for as_dir in $PATH
7969     do
7970     IFS=$as_save_IFS
7971     test -z "$as_dir" && as_dir=.
7972 sf-exg 1.132 for ac_exec_ext in '' $ac_executable_extensions; do
7973 ayin 1.108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7974 root 1.60 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7975 sf-exg 1.132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7976 root 1.60 break 2
7977     fi
7978     done
7979 sf-exg 1.132 done
7980 ayin 1.108 IFS=$as_save_IFS
7981 root 1.60
7982     ;;
7983     esac
7984     fi
7985     PERL=$ac_cv_path_PERL
7986     if test -n "$PERL"; then
7987 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7988     $as_echo "$PERL" >&6; }
7989 root 1.60 else
7990 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991     $as_echo "no" >&6; }
7992 root 1.60 fi
7993    
7994 ayin 1.108
7995 root 1.60 # Extract the first word of "perl", so it can be a program name with args.
7996     set dummy perl; ac_word=$2
7997 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7998     $as_echo_n "checking for $ac_word... " >&6; }
7999     if test "${ac_cv_path_PERL+set}" = set; then :
8000     $as_echo_n "(cached) " >&6
8001 root 1.60 else
8002     case $PERL in
8003     [\\/]* | ?:[\\/]*)
8004     ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8005     ;;
8006     *)
8007     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8008     for as_dir in $PATH
8009     do
8010     IFS=$as_save_IFS
8011     test -z "$as_dir" && as_dir=.
8012 sf-exg 1.132 for ac_exec_ext in '' $ac_executable_extensions; do
8013 ayin 1.108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8014 root 1.60 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
8015 sf-exg 1.132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8016 root 1.60 break 2
8017     fi
8018     done
8019 sf-exg 1.132 done
8020 ayin 1.108 IFS=$as_save_IFS
8021 root 1.60
8022     ;;
8023     esac
8024     fi
8025     PERL=$ac_cv_path_PERL
8026     if test -n "$PERL"; then
8027 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
8028     $as_echo "$PERL" >&6; }
8029 root 1.60 else
8030 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031     $as_echo "no" >&6; }
8032 root 1.60 fi
8033    
8034    
8035 ayin 1.108
8036 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PERL suitability" >&5
8037     $as_echo_n "checking for $PERL suitability... " >&6; }
8038 root 1.60 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
8039    
8040 root 1.62 save_CXXFLAGS="$CXXFLAGS"
8041     save_LIBS="$LIBS"
8042     CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
8043     LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
8044 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8045 root 1.62 /* end confdefs.h. */
8046    
8047     #include <EXTERN.h>
8048     #include <perl.h>
8049     #include <XSUB.h>
8050    
8051     int
8052     main ()
8053     {
8054    
8055     PerlInterpreter *perl = perl_alloc ();
8056    
8057     ;
8058     return 0;
8059     }
8060     _ACEOF
8061 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
8062 root 1.62 rxvt_perl_link=yes
8063     else
8064 sf-exg 1.132 rxvt_perl_link=no
8065 root 1.62 fi
8066 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
8067     conftest$ac_exeext conftest.$ac_ext
8068 root 1.62 CXXFLAGS="$save_CXXFLAGS"
8069     LIBS="$save_LIBS"
8070    
8071     if test x$rxvt_perl_link = xyes; then
8072 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8073     $as_echo "ok" >&6; }
8074 root 1.62
8075 sf-exg 1.132 $as_echo "#define ENABLE_PERL 1" >>confdefs.h
8076 root 1.60
8077 root 1.62 IF_PERL=
8078     PERL_O=rxvtperl.o
8079     PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
8080     PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
8081     PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
8082     else
8083 sf-exg 1.132 as_fn_error "no, unable to link" "$LINENO" 5
8084 root 1.62 fi
8085 root 1.60 else
8086 sf-exg 1.132 as_fn_error "no working perl found, or perl not version >= 5.8" "$LINENO" 5
8087 root 1.60 fi
8088     fi
8089    
8090    
8091    
8092    
8093    
8094    
8095    
8096 pcg 1.1
8097    
8098    
8099    
8100    
8101    
8102    
8103    
8104    
8105    
8106 root 1.103
8107    
8108 pcg 1.1 test "$program_prefix" != NONE &&
8109 ayin 1.108 program_transform_name="s&^&$program_prefix&;$program_transform_name"
8110 pcg 1.1 # Use a double $ so make ignores it.
8111     test "$program_suffix" != NONE &&
8112 ayin 1.108 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
8113 sf-exg 1.132 # Double any \ or $.
8114 pcg 1.11 # By default was `s,x,x', remove it if useless.
8115 sf-exg 1.132 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
8116     program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
8117 pcg 1.1
8118    
8119 ayin 1.124 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile"
8120 root 1.32
8121 pcg 1.11 cat >confcache <<\_ACEOF
8122 pcg 1.1 # This file is a shell script that caches the results of configure
8123     # tests run on this system so they can be shared between configure
8124 pcg 1.11 # scripts and configure runs, see configure's option --config-cache.
8125     # It is not useful on other systems. If it contains results you don't
8126     # want to keep, you may remove or edit it.
8127 pcg 1.1 #
8128 pcg 1.11 # config.status only pays attention to the cache file if you give it
8129     # the --recheck option to rerun configure.
8130 pcg 1.1 #
8131 pcg 1.11 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8132     # loading this file, other *unset* `ac_cv_foo' will be assigned the
8133     # following values.
8134    
8135     _ACEOF
8136    
8137 pcg 1.1 # The following way of writing the cache mishandles newlines in values,
8138     # but we know of no workaround that is simple, portable, and efficient.
8139 ayin 1.108 # So, we kill variables containing newlines.
8140 pcg 1.1 # Ultrix sh set writes to stderr and can't be redirected directly,
8141     # and sets the high bit in the cache file unless we assign to the vars.
8142 ayin 1.108 (
8143     for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8144     eval ac_val=\$$ac_var
8145     case $ac_val in #(
8146     *${as_nl}*)
8147     case $ac_var in #(
8148 sf-exg 1.132 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8149     $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8150 ayin 1.108 esac
8151     case $ac_var in #(
8152     _ | IFS | as_nl) ;; #(
8153 sf-exg 1.132 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8154     *) { eval $ac_var=; unset $ac_var;} ;;
8155 ayin 1.108 esac ;;
8156     esac
8157     done
8158    
8159 pcg 1.11 (set) 2>&1 |
8160 ayin 1.108 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8161     *${as_nl}ac_space=\ *)
8162 sf-exg 1.132 # `set' does not quote correctly, so add quotes: double-quote
8163     # substitution turns \\\\ into \\, and sed turns \\ into \.
8164 pcg 1.11 sed -n \
8165     "s/'/'\\\\''/g;
8166     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8167 ayin 1.108 ;; #(
8168 pcg 1.11 *)
8169     # `set' quotes correctly as required by POSIX, so do not add quotes.
8170 ayin 1.108 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8171 pcg 1.11 ;;
8172 ayin 1.108 esac |
8173     sort
8174     ) |
8175 pcg 1.11 sed '
8176 ayin 1.108 /^ac_cv_env_/b end
8177 pcg 1.11 t clear
8178 ayin 1.108 :clear
8179 pcg 1.11 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8180     t end
8181 ayin 1.108 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8182     :end' >>confcache
8183     if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8184     if test -w "$cache_file"; then
8185     test "x$cache_file" != "x/dev/null" &&
8186 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8187     $as_echo "$as_me: updating cache $cache_file" >&6;}
8188 pcg 1.11 cat confcache >$cache_file
8189 pcg 1.1 else
8190 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8191     $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8192 pcg 1.1 fi
8193     fi
8194     rm -f confcache
8195    
8196     test "x$prefix" = xNONE && prefix=$ac_default_prefix
8197     # Let make expand exec_prefix.
8198     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8199    
8200 pcg 1.11 DEFS=-DHAVE_CONFIG_H
8201    
8202     ac_libobjs=
8203     ac_ltlibobjs=
8204     for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8205     # 1. Remove the extension, and $U if already installed.
8206 ayin 1.108 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8207 sf-exg 1.132 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8208 ayin 1.108 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8209     # will be set to the directory where LIBOBJS objects are built.
8210 sf-exg 1.132 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8211     as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8212 pcg 1.11 done
8213     LIBOBJS=$ac_libobjs
8214    
8215     LTLIBOBJS=$ac_ltlibobjs
8216    
8217 pcg 1.1
8218    
8219     : ${CONFIG_STATUS=./config.status}
8220 sf-exg 1.132 ac_write_fail=0
8221 pcg 1.11 ac_clean_files_save=$ac_clean_files
8222     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8223 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8224     $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8225     as_write_fail=0
8226     cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8227 pcg 1.11 #! $SHELL
8228     # Generated by $as_me.
8229 pcg 1.1 # Run this file to recreate the current configuration.
8230     # Compiler output produced by configure, useful for debugging
8231 pcg 1.11 # configure, is in config.log if it exists.
8232    
8233     debug=false
8234     ac_cs_recheck=false
8235     ac_cs_silent=false
8236 sf-exg 1.132
8237 pcg 1.11 SHELL=\${CONFIG_SHELL-$SHELL}
8238 sf-exg 1.132 export SHELL
8239     _ASEOF
8240     cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8241     ## -------------------- ##
8242     ## M4sh Initialization. ##
8243     ## -------------------- ##
8244 pcg 1.11
8245 ayin 1.108 # Be more Bourne compatible
8246     DUALCASE=1; export DUALCASE # for MKS sh
8247 sf-exg 1.132 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8248 pcg 1.11 emulate sh
8249     NULLCMD=:
8250 sf-exg 1.132 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8251 pcg 1.11 # is contrary to our usage. Disable this feature.
8252     alias -g '${1+"$@"}'='"$@"'
8253 ayin 1.108 setopt NO_GLOB_SUBST
8254     else
8255 sf-exg 1.132 case `(set -o) 2>/dev/null` in #(
8256     *posix*) :
8257     set -o posix ;; #(
8258     *) :
8259     ;;
8260 ayin 1.108 esac
8261     fi
8262    
8263    
8264 sf-exg 1.132 as_nl='
8265     '
8266     export as_nl
8267     # Printing a long string crashes Solaris 7 /usr/bin/printf.
8268     as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8269     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8270     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8271     # Prefer a ksh shell builtin over an external printf program on Solaris,
8272     # but without wasting forks for bash or zsh.
8273     if test -z "$BASH_VERSION$ZSH_VERSION" \
8274     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8275     as_echo='print -r --'
8276     as_echo_n='print -rn --'
8277     elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8278     as_echo='printf %s\n'
8279     as_echo_n='printf %s'
8280     else
8281     if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8282     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8283     as_echo_n='/usr/ucb/echo -n'
8284 ayin 1.108 else
8285 sf-exg 1.132 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8286     as_echo_n_body='eval
8287     arg=$1;
8288     case $arg in #(
8289     *"$as_nl"*)
8290     expr "X$arg" : "X\\(.*\\)$as_nl";
8291     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8292     esac;
8293     expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8294     '
8295     export as_echo_n_body
8296     as_echo_n='sh -c $as_echo_n_body as_echo'
8297 ayin 1.108 fi
8298 sf-exg 1.132 export as_echo_body
8299     as_echo='sh -c $as_echo_body as_echo'
8300 ayin 1.106 fi
8301    
8302 sf-exg 1.132 # The user is always right.
8303     if test "${PATH_SEPARATOR+set}" != set; then
8304     PATH_SEPARATOR=:
8305     (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8306     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8307     PATH_SEPARATOR=';'
8308     }
8309 pcg 1.11 fi
8310    
8311    
8312 ayin 1.108 # IFS
8313     # We need space, tab and new line, in precisely that order. Quoting is
8314     # there to prevent editors from complaining about space-tab.
8315     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8316     # splitting by setting IFS to empty value.)
8317     IFS=" "" $as_nl"
8318    
8319     # Find who we are. Look in the path if we contain no directory separator.
8320 sf-exg 1.132 case $0 in #((
8321 ayin 1.108 *[\\/]* ) as_myself=$0 ;;
8322     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8323     for as_dir in $PATH
8324     do
8325     IFS=$as_save_IFS
8326     test -z "$as_dir" && as_dir=.
8327 sf-exg 1.132 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8328     done
8329 ayin 1.108 IFS=$as_save_IFS
8330    
8331     ;;
8332     esac
8333     # We did not find ourselves, most probably we were run as `sh COMMAND'
8334     # in which case we are not to be found in the path.
8335     if test "x$as_myself" = x; then
8336     as_myself=$0
8337     fi
8338     if test ! -f "$as_myself"; then
8339 sf-exg 1.132 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8340     exit 1
8341 ayin 1.108 fi
8342    
8343 sf-exg 1.132 # Unset variables that we do not need and which cause bugs (e.g. in
8344     # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8345     # suppresses any "Segmentation fault" message there. '((' could
8346     # trigger a bug in pdksh 5.2.14.
8347     for as_var in BASH_ENV ENV MAIL MAILPATH
8348     do eval test x\${$as_var+set} = xset \
8349     && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8350 ayin 1.108 done
8351 ayin 1.106 PS1='$ '
8352     PS2='> '
8353 root 1.105 PS4='+ '
8354    
8355     # NLS nuisances.
8356 sf-exg 1.132 LC_ALL=C
8357     export LC_ALL
8358     LANGUAGE=C
8359     export LANGUAGE
8360    
8361     # CDPATH.
8362     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8363    
8364    
8365     # as_fn_error ERROR [LINENO LOG_FD]
8366     # ---------------------------------
8367     # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8368     # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8369     # script with status $?, using 1 if that was 0.
8370     as_fn_error ()
8371     {
8372     as_status=$?; test $as_status -eq 0 && as_status=1
8373     if test "$3"; then
8374     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8375     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
8376     fi
8377     $as_echo "$as_me: error: $1" >&2
8378     as_fn_exit $as_status
8379     } # as_fn_error
8380    
8381    
8382     # as_fn_set_status STATUS
8383     # -----------------------
8384     # Set $? to STATUS, without forking.
8385     as_fn_set_status ()
8386     {
8387     return $1
8388     } # as_fn_set_status
8389    
8390     # as_fn_exit STATUS
8391     # -----------------
8392     # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8393     as_fn_exit ()
8394     {
8395     set +e
8396     as_fn_set_status $1
8397     exit $1
8398     } # as_fn_exit
8399    
8400     # as_fn_unset VAR
8401     # ---------------
8402     # Portably unset VAR.
8403     as_fn_unset ()
8404     {
8405     { eval $1=; unset $1;}
8406     }
8407     as_unset=as_fn_unset
8408     # as_fn_append VAR VALUE
8409     # ----------------------
8410     # Append the text in VALUE to the end of the definition contained in VAR. Take
8411     # advantage of any shell optimizations that allow amortized linear growth over
8412     # repeated appends, instead of the typical quadratic growth present in naive
8413     # implementations.
8414     if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8415     eval 'as_fn_append ()
8416     {
8417     eval $1+=\$2
8418     }'
8419     else
8420     as_fn_append ()
8421     {
8422     eval $1=\$$1\$2
8423     }
8424     fi # as_fn_append
8425    
8426     # as_fn_arith ARG...
8427     # ------------------
8428     # Perform arithmetic evaluation on the ARGs, and store the result in the
8429     # global $as_val. Take advantage of shells that can avoid forks. The arguments
8430     # must be portable across $(()) and expr.
8431     if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8432     eval 'as_fn_arith ()
8433     {
8434     as_val=$(( $* ))
8435     }'
8436     else
8437     as_fn_arith ()
8438     {
8439     as_val=`expr "$@" || test $? -eq 1`
8440     }
8441     fi # as_fn_arith
8442    
8443 root 1.105
8444 ayin 1.108 if expr a : '\(a\)' >/dev/null 2>&1 &&
8445     test "X`expr 00001 : '.*\(...\)'`" = X001; then
8446 root 1.105 as_expr=expr
8447     else
8448     as_expr=false
8449     fi
8450    
8451 ayin 1.108 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8452 root 1.105 as_basename=basename
8453     else
8454     as_basename=false
8455     fi
8456    
8457 sf-exg 1.132 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8458     as_dirname=dirname
8459     else
8460     as_dirname=false
8461     fi
8462 root 1.105
8463 ayin 1.108 as_me=`$as_basename -- "$0" ||
8464 root 1.105 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8465     X"$0" : 'X\(//\)$' \| \
8466 ayin 1.108 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8467 sf-exg 1.132 $as_echo X/"$0" |
8468 ayin 1.108 sed '/^.*\/\([^/][^/]*\)\/*$/{
8469     s//\1/
8470     q
8471     }
8472     /^X\/\(\/\/\)$/{
8473     s//\1/
8474     q
8475     }
8476     /^X\/\(\/\).*/{
8477     s//\1/
8478     q
8479     }
8480     s/.*/./; q'`
8481    
8482 sf-exg 1.132 # Avoid depending upon Character Ranges.
8483     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8484     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8485     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8486     as_cr_digits='0123456789'
8487     as_cr_alnum=$as_cr_Letters$as_cr_digits
8488 ayin 1.108
8489     ECHO_C= ECHO_N= ECHO_T=
8490 sf-exg 1.132 case `echo -n x` in #(((((
8491 ayin 1.108 -n*)
8492 sf-exg 1.132 case `echo 'xy\c'` in
8493 ayin 1.108 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8494 sf-exg 1.132 xy) ECHO_C='\c';;
8495     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8496     ECHO_T=' ';;
8497 ayin 1.108 esac;;
8498     *)
8499     ECHO_N='-n';;
8500 pcg 1.11 esac
8501    
8502     rm -f conf$$ conf$$.exe conf$$.file
8503 ayin 1.108 if test -d conf$$.dir; then
8504     rm -f conf$$.dir/conf$$.file
8505     else
8506     rm -f conf$$.dir
8507 sf-exg 1.132 mkdir conf$$.dir 2>/dev/null
8508 ayin 1.108 fi
8509 sf-exg 1.132 if (echo >conf$$.file) 2>/dev/null; then
8510     if ln -s conf$$.file conf$$ 2>/dev/null; then
8511     as_ln_s='ln -s'
8512     # ... but there are two gotchas:
8513     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8514     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8515     # In both cases, we have to default to `cp -p'.
8516     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8517     as_ln_s='cp -p'
8518     elif ln conf$$.file conf$$ 2>/dev/null; then
8519     as_ln_s=ln
8520     else
8521 pcg 1.11 as_ln_s='cp -p'
8522 sf-exg 1.132 fi
8523 pcg 1.11 else
8524     as_ln_s='cp -p'
8525     fi
8526 ayin 1.108 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8527     rmdir conf$$.dir 2>/dev/null
8528 pcg 1.11
8529 sf-exg 1.132
8530     # as_fn_mkdir_p
8531     # -------------
8532     # Create "$as_dir" as a directory, including parents if necessary.
8533     as_fn_mkdir_p ()
8534     {
8535    
8536     case $as_dir in #(
8537     -*) as_dir=./$as_dir;;
8538     esac
8539     test -d "$as_dir" || eval $as_mkdir_p || {
8540     as_dirs=
8541     while :; do
8542     case $as_dir in #(
8543     *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8544     *) as_qdir=$as_dir;;
8545     esac
8546     as_dirs="'$as_qdir' $as_dirs"
8547     as_dir=`$as_dirname -- "$as_dir" ||
8548     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8549     X"$as_dir" : 'X\(//\)[^/]' \| \
8550     X"$as_dir" : 'X\(//\)$' \| \
8551     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8552     $as_echo X"$as_dir" |
8553     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8554     s//\1/
8555     q
8556     }
8557     /^X\(\/\/\)[^/].*/{
8558     s//\1/
8559     q
8560     }
8561     /^X\(\/\/\)$/{
8562     s//\1/
8563     q
8564     }
8565     /^X\(\/\).*/{
8566     s//\1/
8567     q
8568     }
8569     s/.*/./; q'`
8570     test -d "$as_dir" && break
8571     done
8572     test -z "$as_dirs" || eval "mkdir $as_dirs"
8573     } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
8574    
8575    
8576     } # as_fn_mkdir_p
8577 pcg 1.11 if mkdir -p . 2>/dev/null; then
8578 sf-exg 1.132 as_mkdir_p='mkdir -p "$as_dir"'
8579 pcg 1.11 else
8580     test -d ./-p && rmdir ./-p
8581     as_mkdir_p=false
8582     fi
8583    
8584 ayin 1.108 if test -x / >/dev/null 2>&1; then
8585     as_test_x='test -x'
8586     else
8587     if ls -dL / >/dev/null 2>&1; then
8588     as_ls_L_option=L
8589     else
8590     as_ls_L_option=
8591     fi
8592     as_test_x='
8593     eval sh -c '\''
8594     if test -d "$1"; then
8595 sf-exg 1.132 test -d "$1/.";
8596 ayin 1.108 else
8597 sf-exg 1.132 case $1 in #(
8598     -*)set "./$1";;
8599 ayin 1.108 esac;
8600 sf-exg 1.132 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8601 ayin 1.108 ???[sx]*):;;*)false;;esac;fi
8602     '\'' sh
8603     '
8604     fi
8605     as_executable_p=$as_test_x
8606 pcg 1.11
8607     # Sed expression to map a string onto a valid CPP name.
8608     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8609    
8610     # Sed expression to map a string onto a valid variable name.
8611     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8612    
8613    
8614     exec 6>&1
8615 sf-exg 1.132 ## ----------------------------------- ##
8616     ## Main body of $CONFIG_STATUS script. ##
8617     ## ----------------------------------- ##
8618     _ASEOF
8619     test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8620 pcg 1.11
8621 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8622     # Save the log message, to keep $0 and so on meaningful, and to
8623 pcg 1.11 # report actual input values of CONFIG_FILES etc. instead of their
8624 ayin 1.108 # values after options handling.
8625     ac_log="
8626 pcg 1.11 This file was extended by $as_me, which was
8627 sf-exg 1.132 generated by GNU Autoconf 2.65. Invocation command line was
8628 pcg 1.11
8629     CONFIG_FILES = $CONFIG_FILES
8630     CONFIG_HEADERS = $CONFIG_HEADERS
8631     CONFIG_LINKS = $CONFIG_LINKS
8632     CONFIG_COMMANDS = $CONFIG_COMMANDS
8633     $ $0 $@
8634    
8635 ayin 1.108 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8636     "
8637    
8638 pcg 1.11 _ACEOF
8639    
8640 sf-exg 1.132 case $ac_config_files in *"
8641     "*) set x $ac_config_files; shift; ac_config_files=$*;;
8642     esac
8643    
8644     case $ac_config_headers in *"
8645     "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8646     esac
8647    
8648    
8649     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8650 pcg 1.11 # Files that config.status was made for.
8651 ayin 1.108 config_files="$ac_config_files"
8652     config_headers="$ac_config_headers"
8653 ayin 1.106
8654 ayin 1.108 _ACEOF
8655 pcg 1.11
8656 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8657 pcg 1.11 ac_cs_usage="\
8658 sf-exg 1.132 \`$as_me' instantiates files and other configuration actions
8659     from templates according to the current configuration. Unless the files
8660     and actions are specified as TAGs, all are instantiated by default.
8661 pcg 1.11
8662 sf-exg 1.132 Usage: $0 [OPTION]... [TAG]...
8663 pcg 1.11
8664     -h, --help print this help, then exit
8665 ayin 1.108 -V, --version print version number and configuration settings, then exit
8666 sf-exg 1.132 --config print configuration, then exit
8667     -q, --quiet, --silent
8668     do not print progress messages
8669 pcg 1.11 -d, --debug don't remove temporary files
8670     --recheck update $as_me by reconfiguring in the same conditions
8671 sf-exg 1.132 --file=FILE[:TEMPLATE]
8672     instantiate the configuration file FILE
8673     --header=FILE[:TEMPLATE]
8674     instantiate the configuration header FILE
8675 pcg 1.11
8676     Configuration files:
8677     $config_files
8678    
8679     Configuration headers:
8680     $config_headers
8681    
8682 sf-exg 1.132 Report bugs to the package provider."
8683 ayin 1.108
8684 ayin 1.106 _ACEOF
8685 sf-exg 1.132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8686     ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8687 pcg 1.11 ac_cs_version="\\
8688     config.status
8689 sf-exg 1.132 configured by $0, generated by GNU Autoconf 2.65,
8690     with options \\"\$ac_cs_config\\"
8691 pcg 1.11
8692 sf-exg 1.132 Copyright (C) 2009 Free Software Foundation, Inc.
8693 pcg 1.11 This config.status script is free software; the Free Software Foundation
8694     gives unlimited permission to copy, distribute and modify it."
8695 ayin 1.108
8696     ac_pwd='$ac_pwd'
8697     srcdir='$srcdir'
8698     INSTALL='$INSTALL'
8699 sf-exg 1.132 test -n "\$AWK" || AWK=awk
8700 pcg 1.11 _ACEOF
8701    
8702 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8703     # The default lists apply if the user does not specify any file.
8704 pcg 1.11 ac_need_defaults=:
8705     while test $# != 0
8706 pcg 1.1 do
8707 pcg 1.11 case $1 in
8708     --*=*)
8709 ayin 1.108 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8710     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8711 pcg 1.11 ac_shift=:
8712     ;;
8713 ayin 1.108 *)
8714 pcg 1.11 ac_option=$1
8715     ac_optarg=$2
8716     ac_shift=shift
8717     ;;
8718     esac
8719    
8720     case $ac_option in
8721     # Handling of the options.
8722 pcg 1.1 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8723 pcg 1.11 ac_cs_recheck=: ;;
8724 ayin 1.108 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8725 sf-exg 1.132 $as_echo "$ac_cs_version"; exit ;;
8726     --config | --confi | --conf | --con | --co | --c )
8727     $as_echo "$ac_cs_config"; exit ;;
8728 ayin 1.108 --debug | --debu | --deb | --de | --d | -d )
8729 pcg 1.11 debug=: ;;
8730     --file | --fil | --fi | --f )
8731     $ac_shift
8732 sf-exg 1.132 case $ac_optarg in
8733     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8734     esac
8735     as_fn_append CONFIG_FILES " '$ac_optarg'"
8736 pcg 1.11 ac_need_defaults=false;;
8737     --header | --heade | --head | --hea )
8738     $ac_shift
8739 sf-exg 1.132 case $ac_optarg in
8740     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8741     esac
8742     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8743 pcg 1.11 ac_need_defaults=false;;
8744 ayin 1.108 --he | --h)
8745     # Conflict between --help and --header
8746 sf-exg 1.132 as_fn_error "ambiguous option: \`$1'
8747     Try \`$0 --help' for more information.";;
8748 ayin 1.108 --help | --hel | -h )
8749 sf-exg 1.132 $as_echo "$ac_cs_usage"; exit ;;
8750 pcg 1.11 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8751     | -silent | --silent | --silen | --sile | --sil | --si | --s)
8752     ac_cs_silent=: ;;
8753    
8754     # This is an error.
8755 sf-exg 1.132 -*) as_fn_error "unrecognized option: \`$1'
8756     Try \`$0 --help' for more information." ;;
8757 pcg 1.11
8758 sf-exg 1.132 *) as_fn_append ac_config_targets " $1"
8759 ayin 1.108 ac_need_defaults=false ;;
8760 pcg 1.11
8761     esac
8762     shift
8763     done
8764    
8765     ac_configure_extra_args=
8766    
8767     if $ac_cs_silent; then
8768     exec 6>/dev/null
8769     ac_configure_extra_args="$ac_configure_extra_args --silent"
8770     fi
8771    
8772     _ACEOF
8773 sf-exg 1.132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8774 pcg 1.11 if \$ac_cs_recheck; then
8775 sf-exg 1.132 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8776     shift
8777     \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8778     CONFIG_SHELL='$SHELL'
8779 ayin 1.108 export CONFIG_SHELL
8780 sf-exg 1.132 exec "\$@"
8781 pcg 1.11 fi
8782    
8783     _ACEOF
8784 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8785 ayin 1.108 exec 5>>config.log
8786     {
8787     echo
8788     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8789     ## Running $as_me. ##
8790     _ASBOX
8791 sf-exg 1.132 $as_echo "$ac_log"
8792 ayin 1.108 } >&5
8793 pcg 1.11
8794 ayin 1.108 _ACEOF
8795 sf-exg 1.132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8796 ayin 1.108 _ACEOF
8797 ayin 1.106
8798 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8799 ayin 1.106
8800 ayin 1.108 # Handling of arguments.
8801 pcg 1.11 for ac_config_target in $ac_config_targets
8802     do
8803 ayin 1.108 case $ac_config_target in
8804     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
8805     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8806     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8807     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8808    
8809 sf-exg 1.132 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8810 pcg 1.1 esac
8811     done
8812    
8813 ayin 1.108
8814 pcg 1.11 # If the user did not use the arguments to specify the items to instantiate,
8815     # then the envvar interface is used. Set only those that are not.
8816     # We use the long form for the default assignment because of an extremely
8817     # bizarre bug on SunOS 4.1.3.
8818     if $ac_need_defaults; then
8819     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8820     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8821     fi
8822    
8823     # Have a temporary directory for convenience. Make it in the build tree
8824 ayin 1.108 # simply because there is no reason against having it here, and in addition,
8825 pcg 1.11 # creating and moving files from /tmp can sometimes cause problems.
8826 ayin 1.108 # Hook for its removal unless debugging.
8827     # Note that there is a small window in which the directory will not be cleaned:
8828     # after its creation but before its name has been assigned to `$tmp'.
8829 pcg 1.11 $debug ||
8830     {
8831 ayin 1.108 tmp=
8832     trap 'exit_status=$?
8833     { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8834     ' 0
8835 sf-exg 1.132 trap 'as_fn_exit 1' 1 2 13 15
8836 pcg 1.11 }
8837     # Create a (secure) tmp directory for tmp files.
8838    
8839     {
8840 ayin 1.108 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8841 pcg 1.11 test -n "$tmp" && test -d "$tmp"
8842     } ||
8843     {
8844 ayin 1.108 tmp=./conf$$-$RANDOM
8845     (umask 077 && mkdir "$tmp")
8846 sf-exg 1.132 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
8847    
8848     # Set up the scripts for CONFIG_FILES section.
8849     # No need to generate them if there are no CONFIG_FILES.
8850     # This happens for instance with `./config.status config.h'.
8851     if test -n "$CONFIG_FILES"; then
8852 pcg 1.11
8853 ayin 1.108
8854 sf-exg 1.132 ac_cr=`echo X | tr X '\015'`
8855     # On cygwin, bash can eat \r inside `` if the user requested igncr.
8856     # But we know of no other shell where ac_cr would be empty at this
8857     # point, so we can use a bashism as a fallback.
8858     if test "x$ac_cr" = x; then
8859     eval ac_cr=\$\'\\r\'
8860     fi
8861     ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8862     if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8863     ac_cs_awk_cr='\r'
8864     else
8865     ac_cs_awk_cr=$ac_cr
8866     fi
8867 ayin 1.108
8868 sf-exg 1.132 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8869 ayin 1.106 _ACEOF
8870    
8871 ayin 1.108
8872 sf-exg 1.132 {
8873     echo "cat >conf$$subs.awk <<_ACEOF" &&
8874     echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8875     echo "_ACEOF"
8876     } >conf$$subs.sh ||
8877     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8878     ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8879 ayin 1.108 ac_delim='%!_!# '
8880     for ac_last_try in false false false false false :; do
8881 sf-exg 1.132 . ./conf$$subs.sh ||
8882     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8883 root 1.105
8884 sf-exg 1.132 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8885     if test $ac_delim_n = $ac_delim_num; then
8886 ayin 1.108 break
8887     elif $ac_last_try; then
8888 sf-exg 1.132 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8889 ayin 1.108 else
8890     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8891 root 1.105 fi
8892 ayin 1.108 done
8893 sf-exg 1.132 rm -f conf$$subs.sh
8894 ayin 1.108
8895 sf-exg 1.132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8896     cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8897 ayin 1.108 _ACEOF
8898 sf-exg 1.132 sed -n '
8899     h
8900     s/^/S["/; s/!.*/"]=/
8901     p
8902     g
8903     s/^[^!]*!//
8904     :repl
8905     t repl
8906     s/'"$ac_delim"'$//
8907     t delim
8908     :nl
8909     h
8910     s/\(.\{148\}\)..*/\1/
8911     t more1
8912     s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8913     p
8914     n
8915     b repl
8916     :more1
8917     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8918     p
8919     g
8920     s/.\{148\}//
8921     t nl
8922     :delim
8923     h
8924     s/\(.\{148\}\)..*/\1/
8925     t more2
8926     s/["\\]/\\&/g; s/^/"/; s/$/"/
8927     p
8928     b
8929     :more2
8930     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8931     p
8932     g
8933     s/.\{148\}//
8934     t delim
8935     ' <conf$$subs.awk | sed '
8936     /^[^""]/{
8937     N
8938     s/\n//
8939     }
8940     ' >>$CONFIG_STATUS || ac_write_fail=1
8941     rm -f conf$$subs.awk
8942     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8943     _ACAWK
8944     cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8945     for (key in S) S_is_set[key] = 1
8946     FS = ""
8947 ayin 1.108
8948 sf-exg 1.132 }
8949     {
8950     line = $ 0
8951     nfields = split(line, field, "@")
8952     substed = 0
8953     len = length(field[1])
8954     for (i = 2; i < nfields; i++) {
8955     key = field[i]
8956     keylen = length(key)
8957     if (S_is_set[key]) {
8958     value = S[key]
8959     line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8960     len += length(value) + length(field[++i])
8961     substed = 1
8962     } else
8963     len += 1 + keylen
8964     }
8965    
8966     print line
8967     }
8968    
8969     _ACAWK
8970     _ACEOF
8971     cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8972     if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8973     sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8974     else
8975     cat
8976     fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8977     || as_fn_error "could not setup config files machinery" "$LINENO" 5
8978     _ACEOF
8979 ayin 1.108
8980     # VPATH may cause trouble with some makes, so we remove $(srcdir),
8981     # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8982     # trailing colons and then remove the whole line if VPATH becomes empty
8983     # (actually we leave an empty line to preserve line numbers).
8984     if test "x$srcdir" = x.; then
8985     ac_vpsub='/^[ ]*VPATH[ ]*=/{
8986     s/:*\$(srcdir):*/:/
8987     s/:*\${srcdir}:*/:/
8988     s/:*@srcdir@:*/:/
8989     s/^\([^=]*=[ ]*\):*/\1/
8990     s/:*$//
8991     s/^[^=]*=[ ]*$//
8992     }'
8993     fi
8994    
8995 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8996 ayin 1.108 fi # test -n "$CONFIG_FILES"
8997    
8998 sf-exg 1.132 # Set up the scripts for CONFIG_HEADERS section.
8999     # No need to generate them if there are no CONFIG_HEADERS.
9000     # This happens for instance with `./config.status Makefile'.
9001     if test -n "$CONFIG_HEADERS"; then
9002     cat >"$tmp/defines.awk" <<\_ACAWK ||
9003     BEGIN {
9004     _ACEOF
9005    
9006     # Transform confdefs.h into an awk script `defines.awk', embedded as
9007     # here-document in config.status, that substitutes the proper values into
9008     # config.h.in to produce config.h.
9009    
9010     # Create a delimiter string that does not exist in confdefs.h, to ease
9011     # handling of long lines.
9012     ac_delim='%!_!# '
9013     for ac_last_try in false false :; do
9014     ac_t=`sed -n "/$ac_delim/p" confdefs.h`
9015     if test -z "$ac_t"; then
9016     break
9017     elif $ac_last_try; then
9018     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
9019     else
9020     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9021     fi
9022     done
9023    
9024     # For the awk script, D is an array of macro values keyed by name,
9025     # likewise P contains macro parameters if any. Preserve backslash
9026     # newline sequences.
9027    
9028     ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9029     sed -n '
9030     s/.\{148\}/&'"$ac_delim"'/g
9031     t rset
9032     :rset
9033     s/^[ ]*#[ ]*define[ ][ ]*/ /
9034     t def
9035     d
9036     :def
9037     s/\\$//
9038     t bsnl
9039     s/["\\]/\\&/g
9040     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9041     D["\1"]=" \3"/p
9042     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9043     d
9044     :bsnl
9045     s/["\\]/\\&/g
9046     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9047     D["\1"]=" \3\\\\\\n"\\/p
9048     t cont
9049     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9050     t cont
9051     d
9052     :cont
9053     n
9054     s/.\{148\}/&'"$ac_delim"'/g
9055     t clear
9056     :clear
9057     s/\\$//
9058     t bsnlc
9059     s/["\\]/\\&/g; s/^/"/; s/$/"/p
9060     d
9061     :bsnlc
9062     s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9063     b cont
9064     ' <confdefs.h | sed '
9065     s/'"$ac_delim"'/"\\\
9066     "/g' >>$CONFIG_STATUS || ac_write_fail=1
9067    
9068     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9069     for (key in D) D_is_set[key] = 1
9070     FS = ""
9071     }
9072     /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9073     line = \$ 0
9074     split(line, arg, " ")
9075     if (arg[1] == "#") {
9076     defundef = arg[2]
9077     mac1 = arg[3]
9078     } else {
9079     defundef = substr(arg[1], 2)
9080     mac1 = arg[2]
9081     }
9082     split(mac1, mac2, "(") #)
9083     macro = mac2[1]
9084     prefix = substr(line, 1, index(line, defundef) - 1)
9085     if (D_is_set[macro]) {
9086     # Preserve the white space surrounding the "#".
9087     print prefix "define", macro P[macro] D[macro]
9088     next
9089     } else {
9090     # Replace #undef with comments. This is necessary, for example,
9091     # in the case of _POSIX_SOURCE, which is predefined and required
9092     # on some systems where configure will not decide to define it.
9093     if (defundef == "undef") {
9094     print "/*", prefix defundef, macro, "*/"
9095     next
9096     }
9097     }
9098     }
9099     { print }
9100     _ACAWK
9101     _ACEOF
9102     cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9103     as_fn_error "could not setup config headers machinery" "$LINENO" 5
9104     fi # test -n "$CONFIG_HEADERS"
9105    
9106 ayin 1.108
9107 sf-exg 1.132 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
9108     shift
9109     for ac_tag
9110 ayin 1.108 do
9111     case $ac_tag in
9112     :[FHLC]) ac_mode=$ac_tag; continue;;
9113     esac
9114     case $ac_mode$ac_tag in
9115     :[FHL]*:*);;
9116 sf-exg 1.132 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
9117 ayin 1.108 :[FH]-) ac_tag=-:-;;
9118     :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9119     esac
9120     ac_save_IFS=$IFS
9121     IFS=:
9122     set x $ac_tag
9123     IFS=$ac_save_IFS
9124     shift
9125     ac_file=$1
9126     shift
9127    
9128     case $ac_mode in
9129     :L) ac_source=$1;;
9130     :[FH])
9131     ac_file_inputs=
9132     for ac_f
9133     do
9134     case $ac_f in
9135     -) ac_f="$tmp/stdin";;
9136     *) # Look for the file first in the build tree, then in the source tree
9137     # (if the path is not absolute). The absolute path cannot be DOS-style,
9138     # because $ac_f cannot contain `:'.
9139     test -f "$ac_f" ||
9140     case $ac_f in
9141     [\\/$]*) false;;
9142     *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9143     esac ||
9144 sf-exg 1.132 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9145 ayin 1.108 esac
9146 sf-exg 1.132 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9147     as_fn_append ac_file_inputs " '$ac_f'"
9148 ayin 1.108 done
9149    
9150     # Let's still pretend it is `configure' which instantiates (i.e., don't
9151     # use $as_me), people would be surprised to read:
9152     # /* config.h. Generated by config.status. */
9153 sf-exg 1.132 configure_input='Generated from '`
9154     $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9155     `' by configure.'
9156 ayin 1.108 if test x"$ac_file" != x-; then
9157     configure_input="$ac_file. $configure_input"
9158 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9159     $as_echo "$as_me: creating $ac_file" >&6;}
9160 ayin 1.108 fi
9161 sf-exg 1.132 # Neutralize special characters interpreted by sed in replacement strings.
9162     case $configure_input in #(
9163     *\&* | *\|* | *\\* )
9164     ac_sed_conf_input=`$as_echo "$configure_input" |
9165     sed 's/[\\\\&|]/\\\\&/g'`;; #(
9166     *) ac_sed_conf_input=$configure_input;;
9167     esac
9168 ayin 1.108
9169     case $ac_tag in
9170 sf-exg 1.132 *:-:* | *:-) cat >"$tmp/stdin" \
9171     || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
9172 ayin 1.108 esac
9173     ;;
9174 ayin 1.102 esac
9175    
9176 ayin 1.108 ac_dir=`$as_dirname -- "$ac_file" ||
9177 pcg 1.11 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9178     X"$ac_file" : 'X\(//\)[^/]' \| \
9179     X"$ac_file" : 'X\(//\)$' \| \
9180 ayin 1.108 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9181 sf-exg 1.132 $as_echo X"$ac_file" |
9182 ayin 1.108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9183     s//\1/
9184     q
9185     }
9186     /^X\(\/\/\)[^/].*/{
9187     s//\1/
9188     q
9189     }
9190     /^X\(\/\/\)$/{
9191     s//\1/
9192     q
9193     }
9194     /^X\(\/\).*/{
9195     s//\1/
9196     q
9197     }
9198     s/.*/./; q'`
9199 sf-exg 1.132 as_dir="$ac_dir"; as_fn_mkdir_p
9200 pcg 1.11 ac_builddir=.
9201    
9202 ayin 1.108 case "$ac_dir" in
9203     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9204     *)
9205 sf-exg 1.132 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9206 ayin 1.108 # A ".." for each directory in $ac_dir_suffix.
9207 sf-exg 1.132 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9208 ayin 1.108 case $ac_top_builddir_sub in
9209     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9210     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9211     esac ;;
9212     esac
9213     ac_abs_top_builddir=$ac_pwd
9214     ac_abs_builddir=$ac_pwd$ac_dir_suffix
9215     # for backward compatibility:
9216     ac_top_builddir=$ac_top_build_prefix
9217 pcg 1.11
9218     case $srcdir in
9219 ayin 1.108 .) # We are building in place.
9220 pcg 1.11 ac_srcdir=.
9221 ayin 1.108 ac_top_srcdir=$ac_top_builddir_sub
9222     ac_abs_top_srcdir=$ac_pwd ;;
9223     [\\/]* | ?:[\\/]* ) # Absolute name.
9224 pcg 1.11 ac_srcdir=$srcdir$ac_dir_suffix;
9225 ayin 1.108 ac_top_srcdir=$srcdir
9226     ac_abs_top_srcdir=$srcdir ;;
9227     *) # Relative name.
9228     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9229     ac_top_srcdir=$ac_top_build_prefix$srcdir
9230     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9231 pcg 1.11 esac
9232 ayin 1.108 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9233 pcg 1.11
9234    
9235 ayin 1.108 case $ac_mode in
9236     :F)
9237     #
9238     # CONFIG_FILE
9239     #
9240 pcg 1.1
9241 pcg 1.11 case $INSTALL in
9242     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9243 ayin 1.108 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9244 pcg 1.1 esac
9245 ayin 1.108 _ACEOF
9246 pcg 1.1
9247 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9248 ayin 1.108 # If the template does not know about datarootdir, expand it.
9249     # FIXME: This hack should be removed a few years after 2.60.
9250     ac_datarootdir_hack=; ac_datarootdir_seen=
9251 sf-exg 1.132 ac_sed_dataroot='
9252     /datarootdir/ {
9253 ayin 1.108 p
9254     q
9255     }
9256     /@datadir@/p
9257     /@docdir@/p
9258     /@infodir@/p
9259     /@localedir@/p
9260 sf-exg 1.132 /@mandir@/p'
9261     case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9262 ayin 1.108 *datarootdir*) ac_datarootdir_seen=yes;;
9263     *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9264 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9265     $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9266 ayin 1.108 _ACEOF
9267 sf-exg 1.132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9268 ayin 1.108 ac_datarootdir_hack='
9269     s&@datadir@&$datadir&g
9270     s&@docdir@&$docdir&g
9271     s&@infodir@&$infodir&g
9272     s&@localedir@&$localedir&g
9273     s&@mandir@&$mandir&g
9274 sf-exg 1.132 s&\\\${datarootdir}&$datarootdir&g' ;;
9275 ayin 1.108 esac
9276 root 1.105 _ACEOF
9277 ayin 1.108
9278     # Neutralize VPATH when `$srcdir' = `.'.
9279     # Shell code in configure.ac might set extrasub.
9280     # FIXME: do we really want to maintain this feature?
9281 sf-exg 1.132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9282     ac_sed_extra="$ac_vpsub
9283 pcg 1.11 $extrasub
9284     _ACEOF
9285 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9286 pcg 1.11 :t
9287     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9288 sf-exg 1.132 s|@configure_input@|$ac_sed_conf_input|;t t
9289 ayin 1.108 s&@top_builddir@&$ac_top_builddir_sub&;t t
9290 sf-exg 1.132 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9291 ayin 1.108 s&@srcdir@&$ac_srcdir&;t t
9292     s&@abs_srcdir@&$ac_abs_srcdir&;t t
9293     s&@top_srcdir@&$ac_top_srcdir&;t t
9294     s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9295     s&@builddir@&$ac_builddir&;t t
9296     s&@abs_builddir@&$ac_abs_builddir&;t t
9297     s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9298     s&@INSTALL@&$ac_INSTALL&;t t
9299     $ac_datarootdir_hack
9300 sf-exg 1.132 "
9301     eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9302     || as_fn_error "could not create $ac_file" "$LINENO" 5
9303 ayin 1.108
9304     test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9305     { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9306     { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9307 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9308 ayin 1.108 which seems to be undefined. Please make sure it is defined." >&5
9309 sf-exg 1.132 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9310 ayin 1.108 which seems to be undefined. Please make sure it is defined." >&2;}
9311 ayin 1.106
9312 ayin 1.108 rm -f "$tmp/stdin"
9313 pcg 1.11 case $ac_file in
9314 sf-exg 1.132 -) cat "$tmp/out" && rm -f "$tmp/out";;
9315     *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9316     esac \
9317     || as_fn_error "could not create $ac_file" "$LINENO" 5
9318 ayin 1.108 ;;
9319     :H)
9320     #
9321     # CONFIG_HEADER
9322     #
9323 pcg 1.11 if test x"$ac_file" != x-; then
9324 sf-exg 1.132 {
9325     $as_echo "/* $configure_input */" \
9326     && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9327     } >"$tmp/config.h" \
9328     || as_fn_error "could not create $ac_file" "$LINENO" 5
9329     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
9330     { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9331     $as_echo "$as_me: $ac_file is unchanged" >&6;}
9332 pcg 1.11 else
9333 sf-exg 1.132 rm -f "$ac_file"
9334     mv "$tmp/config.h" "$ac_file" \
9335     || as_fn_error "could not create $ac_file" "$LINENO" 5
9336 pcg 1.1 fi
9337 pcg 1.11 else
9338 sf-exg 1.132 $as_echo "/* $configure_input */" \
9339     && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9340     || as_fn_error "could not create -" "$LINENO" 5
9341 pcg 1.1 fi
9342 ayin 1.108 ;;
9343    
9344    
9345     esac
9346    
9347     done # for ac_tag
9348 pcg 1.11
9349 pcg 1.1
9350 sf-exg 1.132 as_fn_exit 0
9351 pcg 1.11 _ACEOF
9352     ac_clean_files=$ac_clean_files_save
9353 pcg 1.1
9354 sf-exg 1.132 test $ac_write_fail = 0 ||
9355     as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
9356    
9357 pcg 1.1
9358 pcg 1.11 # configure is writing to config.log, and then calls config.status.
9359     # config.status does its own redirection, appending to config.log.
9360     # Unfortunately, on DOS this fails, as config.log is still kept open
9361     # by configure, so config.status won't be able to write to it; its
9362     # output is simply discarded. So we exec the FD to /dev/null,
9363     # effectively closing config.log, so it can be properly (re)opened and
9364     # appended to by config.status. When coming back to configure, we
9365     # need to make the FD available again.
9366     if test "$no_create" != yes; then
9367     ac_cs_success=:
9368     ac_config_status_args=
9369     test "$silent" = yes &&
9370     ac_config_status_args="$ac_config_status_args --quiet"
9371     exec 5>/dev/null
9372     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9373     exec 5>>config.log
9374     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9375     # would make configure fail if this is the last instruction.
9376 sf-exg 1.132 $ac_cs_success || as_fn_exit $?
9377     fi
9378     if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9379     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9380     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9381 pcg 1.11 fi
9382 pcg 1.1
9383    
9384     echo "Configuration:
9385    
9386     Rxvt version: $VERSION : $DATE
9387     Source code location: $srcdir
9388     Install path: ${prefix}/bin
9389 pcg 1.13 Compiler: $CXX
9390 root 1.100 Compiler flags: $CXXFLAGS
9391 pcg 1.13 Linker: $LINKER"
9392 pcg 1.1
9393     if test x$term != x; then
9394 pcg 1.18 echo " set TERM to: $term"
9395 pcg 1.1 fi
9396     if test x$terminfo != x; then
9397 pcg 1.18 echo " set TERMINFO to: $terminfo"
9398     fi
9399     echo " default resource name: $RESNAME"
9400     echo " resource class: $RESCLASS"
9401     if test x$RESFALLBACK != x; then
9402     echo " resource class fallback: $RESFALLBACK"
9403 pcg 1.1 fi
9404 pcg 1.18 echo
9405 root 1.89 echo " embedded perl: $support_perl"
9406 root 1.109 echo " libafterimage: $support_afterimage"
9407 root 1.89 echo
9408 pcg 1.1 if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
9409     echo ".----------------------------------------------------------------."
9410     echo ". WARNING: --enable-xim was specified however the locale support ."
9411     echo ". functions could not be found. ."
9412     echo ". XIM is now being DISABLED! ."
9413     echo ".----------------------------------------------------------------."
9414     fi
9415 pcg 1.20
9416 root 1.96 echo "*** Optionally check src/feature.h for further, rarely used options ***"
9417 pcg 1.20 echo
9418