ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure
Revision: 1.156
Committed: Tue Jun 19 18:17:56 2012 UTC (12 years ago) by root
Branch: MAIN
Changes since 1.155: +23 -0 lines
Log Message:
*** empty log message ***

File Contents

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