ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure
Revision: 1.153
Committed: Sat Jan 21 12:44:11 2012 UTC (12 years, 4 months ago) by root
Branch: MAIN
CVS Tags: rxvt-unicode-rel-9_15
Changes since 1.152: +96 -129 lines
Log Message:
9.15

File Contents

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