ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure
Revision: 1.163
Committed: Sat May 14 08:28:25 2016 UTC (8 years ago) by root
Branch: MAIN
CVS Tags: rxvt-unicode-rel-9_22
Changes since 1.162: +10 -10 lines
Log Message:
9.22-maybe

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