ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure
Revision: 1.160
Committed: Sun Oct 27 16:20:55 2013 UTC (10 years, 7 months ago) by root
Branch: MAIN
CVS Tags: rxvt-unicode-rel-9_20, rxvt-unicode-rel-9_19
Changes since 1.159: +10 -93 lines
Log Message:
9.19

File Contents

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