ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure
Revision: 1.166
Committed: Thu May 13 19:24:27 2021 UTC (3 years, 1 month ago) by root
Branch: MAIN
Changes since 1.165: +3632 -2755 lines
Log Message:
*** empty log message ***

File Contents

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