ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure
(Generate patch)

Comparing rxvt-unicode/configure (file contents):
Revision 1.151 by sf-exg, Thu Jan 19 11:09:56 2012 UTC vs.
Revision 1.162 by sf-exg, Tue Jun 16 12:06:53 2015 UTC

1#! /bin/sh 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles. 2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68. 3# Generated by GNU Autoconf 2.69.
4# 4#
5# 5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
9# 7#
10# 8#
11# This configure script is free software; the Free Software Foundation 9# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it. 10# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ## 11## -------------------- ##
132export LANGUAGE 130export LANGUAGE
133 131
134# CDPATH. 132# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 134
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
137if test "x$CONFIG_SHELL" = x; then 160if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh 162 emulate sh
140 NULLCMD=: 163 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 189
167else 190else
168 exitcode=1; echo positional parameters were not saved. 191 exitcode=1; echo positional parameters were not saved.
169fi 192fi
170test x\$exitcode = x0 || exit 1" 193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175test \$(( 1 + 1 )) = 2 || exit 1" 199test \$(( 1 + 1 )) = 2 || exit 1"
210fi; } 234fi; }
211IFS=$as_save_IFS 235IFS=$as_save_IFS
212 236
213 237
214 if test "x$CONFIG_SHELL" != x; then : 238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
215 # We cannot yet assume a decent shell, so we have to provide a 240 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also 241# neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables. 242# works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell. 243# Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null 244BASH_ENV=/dev/null
220 ENV=/dev/null 245ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # (((( 247case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;; 248 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;; 249 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;; 250 *x* ) as_opts=-x ;;
227 * ) as_opts= ;; 251 * ) as_opts= ;;
228 esac 252esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
230fi 258fi
231 259
232 if test x$as_have_required = xno; then : 260 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all" 261 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system." 262 $as_echo "$0: the shells that I found on your system."
326 test -z "$as_dirs" || eval "mkdir $as_dirs" 354 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328 356
329 357
330} # as_fn_mkdir_p 358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
331# as_fn_append VAR VALUE 367# as_fn_append VAR VALUE
332# ---------------------- 368# ----------------------
333# Append the text in VALUE to the end of the definition contained in VAR. Take 369# Append the text in VALUE to the end of the definition contained in VAR. Take
334# advantage of any shell optimizations that allow amortized linear growth over 370# advantage of any shell optimizations that allow amortized linear growth over
335# repeated appends, instead of the typical quadratic growth present in naive 371# repeated appends, instead of the typical quadratic growth present in naive
447 s/-\n.*// 483 s/-\n.*//
448 ' >$as_me.lineno && 484 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" || 485 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451 487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
452 # Don't try to exec as it changes $[0], causing all sort of problems 492 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the 493 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this). 494 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno" 495 . "./$as_me.lineno"
456 # Exit status is that of the last command. 496 # Exit status is that of the last command.
481 if ln -s conf$$.file conf$$ 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s' 522 as_ln_s='ln -s'
483 # ... but there are two gotchas: 523 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'. 526 # In both cases, we have to default to `cp -pR'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p' 528 as_ln_s='cp -pR'
489 elif ln conf$$.file conf$$ 2>/dev/null; then 529 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln 530 as_ln_s=ln
491 else 531 else
492 as_ln_s='cp -p' 532 as_ln_s='cp -pR'
493 fi 533 fi
494else 534else
495 as_ln_s='cp -p' 535 as_ln_s='cp -pR'
496fi 536fi
497rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498rmdir conf$$.dir 2>/dev/null 538rmdir conf$$.dir 2>/dev/null
499 539
500if mkdir -p . 2>/dev/null; then 540if mkdir -p . 2>/dev/null; then
502else 542else
503 test -d ./-p && rmdir ./-p 543 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false 544 as_mkdir_p=false
505fi 545fi
506 546
507if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x' 547as_test_x='test -x'
509else 548as_executable_p=as_fn_executable_p
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
514 fi
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
526 '
527fi
528as_executable_p=$as_test_x
529 549
530# Sed expression to map a string onto a valid CPP name. 550# Sed expression to map a string onto a valid CPP name.
531as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532 552
533# Sed expression to map a string onto a valid variable name. 553# Sed expression to map a string onto a valid variable name.
606PERLPRIVLIBEXP 626PERLPRIVLIBEXP
607PERLFLAGS 627PERLFLAGS
608PERLLIB 628PERLLIB
609PERL 629PERL
610XFT_CONFIG 630XFT_CONFIG
611AFTERIMAGE_LIBS
612AFTERIMAGE_CFLAGS
613afterimage_config
614STARTUP_NOTIFICATION_LIBS 631STARTUP_NOTIFICATION_LIBS
615STARTUP_NOTIFICATION_CFLAGS 632STARTUP_NOTIFICATION_CFLAGS
616PIXBUF_LIBS 633PIXBUF_LIBS
617PIXBUF_CFLAGS 634PIXBUF_CFLAGS
618PKG_CONFIG 635PKG_CONFIG
625CXXCPP 642CXXCPP
626RXVTNAME 643RXVTNAME
627LINKER 644LINKER
628EGREP 645EGREP
629GREP 646GREP
647CPP
630INSTALL_DATA 648INSTALL_DATA
631INSTALL_SCRIPT 649INSTALL_SCRIPT
632INSTALL_PROGRAM 650INSTALL_PROGRAM
633CPP
634ac_ct_CXX 651ac_ct_CXX
635CXXFLAGS 652CXXFLAGS
636CXX 653CXX
637OBJEXT 654OBJEXT
638EXEEXT 655EXEEXT
698enable_256_color 715enable_256_color
699enable_unicode3 716enable_unicode3
700enable_combining 717enable_combining
701enable_xft 718enable_xft
702enable_font_styles 719enable_font_styles
703enable_afterimage
704with_afterimage_config
705enable_pixbuf 720enable_pixbuf
706enable_startup_notification 721enable_startup_notification
707enable_transparency 722enable_transparency
708enable_fading 723enable_fading
709enable_rxvt_scroll 724enable_rxvt_scroll
1204 1219
1205# FIXME: To remove some day. 1220# FIXME: To remove some day.
1206if test "x$host_alias" != x; then 1221if test "x$host_alias" != x; then
1207 if test "x$build_alias" = x; then 1222 if test "x$build_alias" = x; then
1208 cross_compiling=maybe 1223 cross_compiling=maybe
1209 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1210 If a cross compiler is detected then cross compile mode will be used" >&2
1211 elif test "x$build_alias" != "x$host_alias"; then 1224 elif test "x$build_alias" != "x$host_alias"; then
1212 cross_compiling=yes 1225 cross_compiling=yes
1213 fi 1226 fi
1214fi 1227fi
1215 1228
1375 --enable-256-color enable 256-color support 1388 --enable-256-color enable 256-color support
1376 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 1389 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1377 --enable-combining enable composition of base and combining characters 1390 --enable-combining enable composition of base and combining characters
1378 --enable-xft enable xft support on systems that have it 1391 --enable-xft enable xft support on systems that have it
1379 --enable-font-styles enable bold and italic support 1392 --enable-font-styles enable bold and italic support
1380 --enable-afterimage enable integration with libAfterImage for background images (deprecated)
1381 --enable-pixbuf enable integration with gdk-pixbuf for background images 1393 --enable-pixbuf enable integration with gdk-pixbuf for background images
1382 --enable-startup-notification enable freedesktop startup notification support 1394 --enable-startup-notification enable freedesktop startup notification support
1383 --enable-transparency enable transparent backgrounds 1395 --enable-transparency enable transparent backgrounds
1384 --enable-fading enable colors fading when off focus 1396 --enable-fading enable colors fading when off focus
1385 --enable-rxvt-scroll enable rxvt style scrollbar 1397 --enable-rxvt-scroll enable rxvt style scrollbar
1407 --enable-lastlog enable lastlog support (requires --enable-utmp) 1419 --enable-lastlog enable lastlog support (requires --enable-utmp)
1408 1420
1409Optional Packages: 1421Optional Packages:
1410 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1422 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1411 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1423 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1412 --with-afterimage-config=DIR use libAfterImage config script in DIR
1413 --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) 1424 --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
1414 --with-res-name=NAME use this as default resource name (default: urxvt) 1425 --with-res-name=NAME use this as default resource name (default: urxvt)
1415 --with-res-class=CLASS use this as the resource class (default: URxvt) 1426 --with-res-class=CLASS use this as the resource class (default: URxvt)
1416 --with-name=NAME set the basename for the installed binaries (default: urxvt) 1427 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1417 --with-term=NAME set the terminal to NAME (default: rxvt) 1428 --with-term=NAME set the terminal to NAME (default: rxvt)
1497 1508
1498test -n "$ac_init_help" && exit $ac_status 1509test -n "$ac_init_help" && exit $ac_status
1499if $ac_init_version; then 1510if $ac_init_version; then
1500 cat <<\_ACEOF 1511 cat <<\_ACEOF
1501configure 1512configure
1502generated by GNU Autoconf 2.68 1513generated by GNU Autoconf 2.69
1503 1514
1504Copyright (C) 2010 Free Software Foundation, Inc. 1515Copyright (C) 2012 Free Software Foundation, Inc.
1505This configure script is free software; the Free Software Foundation 1516This configure script is free software; the Free Software Foundation
1506gives unlimited permission to copy, distribute and modify it. 1517gives unlimited permission to copy, distribute and modify it.
1507_ACEOF 1518_ACEOF
1508 exit 1519 exit
1509fi 1520fi
1810 test $ac_status = 0; } && { 1821 test $ac_status = 0; } && {
1811 test -z "$ac_c_werror_flag" || 1822 test -z "$ac_c_werror_flag" ||
1812 test ! -s conftest.err 1823 test ! -s conftest.err
1813 } && test -s conftest$ac_exeext && { 1824 } && test -s conftest$ac_exeext && {
1814 test "$cross_compiling" = yes || 1825 test "$cross_compiling" = yes ||
1815 $as_test_x conftest$ac_exeext 1826 test -x conftest$ac_exeext
1816 }; then : 1827 }; then :
1817 ac_retval=0 1828 ac_retval=0
1818else 1829else
1819 $as_echo "$as_me: failed program was:" >&5 1830 $as_echo "$as_me: failed program was:" >&5
1820sed 's/^/| /' conftest.$ac_ext >&5 1831sed 's/^/| /' conftest.$ac_ext >&5
1856 test $ac_status = 0; } && { 1867 test $ac_status = 0; } && {
1857 test -z "$ac_cxx_werror_flag" || 1868 test -z "$ac_cxx_werror_flag" ||
1858 test ! -s conftest.err 1869 test ! -s conftest.err
1859 } && test -s conftest$ac_exeext && { 1870 } && test -s conftest$ac_exeext && {
1860 test "$cross_compiling" = yes || 1871 test "$cross_compiling" = yes ||
1861 $as_test_x conftest$ac_exeext 1872 test -x conftest$ac_exeext
1862 }; then : 1873 }; then :
1863 ac_retval=0 1874 ac_retval=0
1864else 1875else
1865 $as_echo "$as_me: failed program was:" >&5 1876 $as_echo "$as_me: failed program was:" >&5
1866sed 's/^/| /' conftest.$ac_ext >&5 1877sed 's/^/| /' conftest.$ac_ext >&5
2145 enum { N = $2 / 2 - 1 }; 2156 enum { N = $2 / 2 - 1 };
2146int 2157int
2147main () 2158main ()
2148{ 2159{
2149static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 2160static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2150test_array [0] = 0 2161test_array [0] = 0;
2162return test_array [0];
2151 2163
2152 ; 2164 ;
2153 return 0; 2165 return 0;
2154} 2166}
2155_ACEOF 2167_ACEOF
2161int 2173int
2162main () 2174main ()
2163{ 2175{
2164static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 2176static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2165 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 2177 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2166test_array [0] = 0 2178test_array [0] = 0;
2179return test_array [0];
2167 2180
2168 ; 2181 ;
2169 return 0; 2182 return 0;
2170} 2183}
2171_ACEOF 2184_ACEOF
2218$ac_includes_default 2231$ac_includes_default
2219int 2232int
2220main () 2233main ()
2221{ 2234{
2222static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2235static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2223test_array [0] = 0 2236test_array [0] = 0;
2237return test_array [0];
2224 2238
2225 ; 2239 ;
2226 return 0; 2240 return 0;
2227} 2241}
2228_ACEOF 2242_ACEOF
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2247$as_echo "$ac_res" >&6; } 2261$as_echo "$ac_res" >&6; }
2248 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2262 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2249 2263
2250} # ac_fn_c_find_uintX_t 2264} # ac_fn_c_find_uintX_t
2265
2266# ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
2267# ------------------------------------------------------
2268# Tries to find if the field MEMBER exists in type AGGR, after including
2269# INCLUDES, setting cache variable VAR accordingly.
2270ac_fn_cxx_check_member ()
2271{
2272 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2274$as_echo_n "checking for $2.$3... " >&6; }
2275if eval \${$4+:} false; then :
2276 $as_echo_n "(cached) " >&6
2277else
2278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279/* end confdefs.h. */
2280$5
2281int
2282main ()
2283{
2284static $2 ac_aggr;
2285if (ac_aggr.$3)
2286return 0;
2287 ;
2288 return 0;
2289}
2290_ACEOF
2291if ac_fn_cxx_try_compile "$LINENO"; then :
2292 eval "$4=yes"
2293else
2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295/* end confdefs.h. */
2296$5
2297int
2298main ()
2299{
2300static $2 ac_aggr;
2301if (sizeof ac_aggr.$3)
2302return 0;
2303 ;
2304 return 0;
2305}
2306_ACEOF
2307if ac_fn_cxx_try_compile "$LINENO"; then :
2308 eval "$4=yes"
2309else
2310 eval "$4=no"
2311fi
2312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2313fi
2314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2315fi
2316eval ac_res=\$$4
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2318$as_echo "$ac_res" >&6; }
2319 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2320
2321} # ac_fn_cxx_check_member
2251 2322
2252# ac_fn_cxx_try_run LINENO 2323# ac_fn_cxx_try_run LINENO
2253# ------------------------ 2324# ------------------------
2254# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2325# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2255# that executables *can* be run. 2326# that executables *can* be run.
2293cat >config.log <<_ACEOF 2364cat >config.log <<_ACEOF
2294This file contains any messages produced by compilers while 2365This file contains any messages produced by compilers while
2295running configure, to aid debugging if configure makes a mistake. 2366running configure, to aid debugging if configure makes a mistake.
2296 2367
2297It was created by $as_me, which was 2368It was created by $as_me, which was
2298generated by GNU Autoconf 2.68. Invocation command line was 2369generated by GNU Autoconf 2.69. Invocation command line was
2299 2370
2300 $ $0 $@ 2371 $ $0 $@
2301 2372
2302_ACEOF 2373_ACEOF
2303exec 5>>config.log 2374exec 5>>config.log
2777for as_dir in $PATH 2848for as_dir in $PATH
2778do 2849do
2779 IFS=$as_save_IFS 2850 IFS=$as_save_IFS
2780 test -z "$as_dir" && as_dir=. 2851 test -z "$as_dir" && as_dir=.
2781 for ac_exec_ext in '' $ac_executable_extensions; do 2852 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2783 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2854 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785 break 2 2856 break 2
2786 fi 2857 fi
2787done 2858done
2817for as_dir in $PATH 2888for as_dir in $PATH
2818do 2889do
2819 IFS=$as_save_IFS 2890 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=. 2891 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do 2892 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2823 ac_cv_prog_ac_ct_CC="gcc" 2894 ac_cv_prog_ac_ct_CC="gcc"
2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 break 2 2896 break 2
2826 fi 2897 fi
2827done 2898done
2870for as_dir in $PATH 2941for as_dir in $PATH
2871do 2942do
2872 IFS=$as_save_IFS 2943 IFS=$as_save_IFS
2873 test -z "$as_dir" && as_dir=. 2944 test -z "$as_dir" && as_dir=.
2874 for ac_exec_ext in '' $ac_executable_extensions; do 2945 for ac_exec_ext in '' $ac_executable_extensions; do
2875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2876 ac_cv_prog_CC="${ac_tool_prefix}cc" 2947 ac_cv_prog_CC="${ac_tool_prefix}cc"
2877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 break 2 2949 break 2
2879 fi 2950 fi
2880done 2951done
2911for as_dir in $PATH 2982for as_dir in $PATH
2912do 2983do
2913 IFS=$as_save_IFS 2984 IFS=$as_save_IFS
2914 test -z "$as_dir" && as_dir=. 2985 test -z "$as_dir" && as_dir=.
2915 for ac_exec_ext in '' $ac_executable_extensions; do 2986 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2917 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2988 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2918 ac_prog_rejected=yes 2989 ac_prog_rejected=yes
2919 continue 2990 continue
2920 fi 2991 fi
2921 ac_cv_prog_CC="cc" 2992 ac_cv_prog_CC="cc"
2969for as_dir in $PATH 3040for as_dir in $PATH
2970do 3041do
2971 IFS=$as_save_IFS 3042 IFS=$as_save_IFS
2972 test -z "$as_dir" && as_dir=. 3043 test -z "$as_dir" && as_dir=.
2973 for ac_exec_ext in '' $ac_executable_extensions; do 3044 for ac_exec_ext in '' $ac_executable_extensions; do
2974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2975 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3046 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2977 break 2 3048 break 2
2978 fi 3049 fi
2979done 3050done
3013for as_dir in $PATH 3084for as_dir in $PATH
3014do 3085do
3015 IFS=$as_save_IFS 3086 IFS=$as_save_IFS
3016 test -z "$as_dir" && as_dir=. 3087 test -z "$as_dir" && as_dir=.
3017 for ac_exec_ext in '' $ac_executable_extensions; do 3088 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3019 ac_cv_prog_ac_ct_CC="$ac_prog" 3090 ac_cv_prog_ac_ct_CC="$ac_prog"
3020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3021 break 2 3092 break 2
3022 fi 3093 fi
3023done 3094done
3459ac_save_CC=$CC 3530ac_save_CC=$CC
3460cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461/* end confdefs.h. */ 3532/* end confdefs.h. */
3462#include <stdarg.h> 3533#include <stdarg.h>
3463#include <stdio.h> 3534#include <stdio.h>
3464#include <sys/types.h> 3535struct stat;
3465#include <sys/stat.h>
3466/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3536/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3467struct buf { int x; }; 3537struct buf { int x; };
3468FILE * (*rcsopen) (struct buf *, struct stat *, int); 3538FILE * (*rcsopen) (struct buf *, struct stat *, int);
3469static char *e (p, i) 3539static char *e (p, i)
3470 char **p; 3540 char **p;
3573for as_dir in $PATH 3643for as_dir in $PATH
3574do 3644do
3575 IFS=$as_save_IFS 3645 IFS=$as_save_IFS
3576 test -z "$as_dir" && as_dir=. 3646 test -z "$as_dir" && as_dir=.
3577 for ac_exec_ext in '' $ac_executable_extensions; do 3647 for ac_exec_ext in '' $ac_executable_extensions; do
3578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3579 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3649 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3581 break 2 3651 break 2
3582 fi 3652 fi
3583done 3653done
3617for as_dir in $PATH 3687for as_dir in $PATH
3618do 3688do
3619 IFS=$as_save_IFS 3689 IFS=$as_save_IFS
3620 test -z "$as_dir" && as_dir=. 3690 test -z "$as_dir" && as_dir=.
3621 for ac_exec_ext in '' $ac_executable_extensions; do 3691 for ac_exec_ext in '' $ac_executable_extensions; do
3622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3623 ac_cv_prog_ac_ct_CXX="$ac_prog" 3693 ac_cv_prog_ac_ct_CXX="$ac_prog"
3624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3625 break 2 3695 break 2
3626 fi 3696 fi
3627done 3697done
3802ac_cpp='$CPP $CPPFLAGS' 3872ac_cpp='$CPP $CPPFLAGS'
3803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3805ac_compiler_gnu=$ac_cv_c_compiler_gnu 3875ac_compiler_gnu=$ac_cv_c_compiler_gnu
3806 3876
3807ac_ext=c
3808ac_cpp='$CPP $CPPFLAGS'
3809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3811ac_compiler_gnu=$ac_cv_c_compiler_gnu
3812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3813$as_echo_n "checking how to run the C preprocessor... " >&6; }
3814# On Suns, sometimes $CPP names a directory.
3815if test -n "$CPP" && test -d "$CPP"; then
3816 CPP=
3817fi
3818if test -z "$CPP"; then
3819 if ${ac_cv_prog_CPP+:} false; then :
3820 $as_echo_n "(cached) " >&6
3821else
3822 # Double quotes because CPP needs to be expanded
3823 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3824 do
3825 ac_preproc_ok=false
3826for ac_c_preproc_warn_flag in '' yes
3827do
3828 # Use a header file that comes with gcc, so configuring glibc
3829 # with a fresh cross-compiler works.
3830 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3831 # <limits.h> exists even on freestanding compilers.
3832 # On the NeXT, cc -E runs the code through the compiler's parser,
3833 # not just through cpp. "Syntax error" is here to catch this case.
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835/* end confdefs.h. */
3836#ifdef __STDC__
3837# include <limits.h>
3838#else
3839# include <assert.h>
3840#endif
3841 Syntax error
3842_ACEOF
3843if ac_fn_c_try_cpp "$LINENO"; then :
3844
3845else
3846 # Broken: fails on valid input.
3847continue
3848fi
3849rm -f conftest.err conftest.i conftest.$ac_ext
3850
3851 # OK, works on sane cases. Now check whether nonexistent headers
3852 # can be detected and how.
3853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3854/* end confdefs.h. */
3855#include <ac_nonexistent.h>
3856_ACEOF
3857if ac_fn_c_try_cpp "$LINENO"; then :
3858 # Broken: success on invalid input.
3859continue
3860else
3861 # Passes both tests.
3862ac_preproc_ok=:
3863break
3864fi
3865rm -f conftest.err conftest.i conftest.$ac_ext
3866
3867done
3868# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3869rm -f conftest.i conftest.err conftest.$ac_ext
3870if $ac_preproc_ok; then :
3871 break
3872fi
3873
3874 done
3875 ac_cv_prog_CPP=$CPP
3876
3877fi
3878 CPP=$ac_cv_prog_CPP
3879else
3880 ac_cv_prog_CPP=$CPP
3881fi
3882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3883$as_echo "$CPP" >&6; }
3884ac_preproc_ok=false
3885for ac_c_preproc_warn_flag in '' yes
3886do
3887 # Use a header file that comes with gcc, so configuring glibc
3888 # with a fresh cross-compiler works.
3889 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3890 # <limits.h> exists even on freestanding compilers.
3891 # On the NeXT, cc -E runs the code through the compiler's parser,
3892 # not just through cpp. "Syntax error" is here to catch this case.
3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894/* end confdefs.h. */
3895#ifdef __STDC__
3896# include <limits.h>
3897#else
3898# include <assert.h>
3899#endif
3900 Syntax error
3901_ACEOF
3902if ac_fn_c_try_cpp "$LINENO"; then :
3903
3904else
3905 # Broken: fails on valid input.
3906continue
3907fi
3908rm -f conftest.err conftest.i conftest.$ac_ext
3909
3910 # OK, works on sane cases. Now check whether nonexistent headers
3911 # can be detected and how.
3912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913/* end confdefs.h. */
3914#include <ac_nonexistent.h>
3915_ACEOF
3916if ac_fn_c_try_cpp "$LINENO"; then :
3917 # Broken: success on invalid input.
3918continue
3919else
3920 # Passes both tests.
3921ac_preproc_ok=:
3922break
3923fi
3924rm -f conftest.err conftest.i conftest.$ac_ext
3925
3926done
3927# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3928rm -f conftest.i conftest.err conftest.$ac_ext
3929if $ac_preproc_ok; then :
3930
3931else
3932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3933$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3934as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3935See \`config.log' for more details" "$LINENO" 5; }
3936fi
3937
3938ac_ext=c
3939ac_cpp='$CPP $CPPFLAGS'
3940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3942ac_compiler_gnu=$ac_cv_c_compiler_gnu
3943
3944# Find a good install program. We prefer a C program (faster), 3877# Find a good install program. We prefer a C program (faster),
3945# so one script is as good as another. But avoid the broken or 3878# so one script is as good as another. But avoid the broken or
3946# incompatible versions: 3879# incompatible versions:
3947# SysV /etc/install, /usr/sbin/install 3880# SysV /etc/install, /usr/sbin/install
3948# SunOS /usr/etc/install 3881# SunOS /usr/etc/install
3976 # OSF1 and SCO ODT 3.0 have their own names for install. 3909 # OSF1 and SCO ODT 3.0 have their own names for install.
3977 # Don't use installbsd from OSF since it installs stuff as root 3910 # Don't use installbsd from OSF since it installs stuff as root
3978 # by default. 3911 # by default.
3979 for ac_prog in ginstall scoinst install; do 3912 for ac_prog in ginstall scoinst install; do
3980 for ac_exec_ext in '' $ac_executable_extensions; do 3913 for ac_exec_ext in '' $ac_executable_extensions; do
3981 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3914 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3982 if test $ac_prog = install && 3915 if test $ac_prog = install &&
3983 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3916 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3984 # AIX install. It has an incompatible calling convention. 3917 # AIX install. It has an incompatible calling convention.
3985 : 3918 :
3986 elif test $ac_prog = install && 3919 elif test $ac_prog = install &&
4034 3967
4035test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3968test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4036 3969
4037 3970
4038 3971
3972ac_ext=c
3973ac_cpp='$CPP $CPPFLAGS'
3974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3976ac_compiler_gnu=$ac_cv_c_compiler_gnu
3977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3978$as_echo_n "checking how to run the C preprocessor... " >&6; }
3979# On Suns, sometimes $CPP names a directory.
3980if test -n "$CPP" && test -d "$CPP"; then
3981 CPP=
3982fi
3983if test -z "$CPP"; then
3984 if ${ac_cv_prog_CPP+:} false; then :
3985 $as_echo_n "(cached) " >&6
3986else
3987 # Double quotes because CPP needs to be expanded
3988 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3989 do
3990 ac_preproc_ok=false
3991for ac_c_preproc_warn_flag in '' yes
3992do
3993 # Use a header file that comes with gcc, so configuring glibc
3994 # with a fresh cross-compiler works.
3995 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3996 # <limits.h> exists even on freestanding compilers.
3997 # On the NeXT, cc -E runs the code through the compiler's parser,
3998 # not just through cpp. "Syntax error" is here to catch this case.
3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000/* end confdefs.h. */
4001#ifdef __STDC__
4002# include <limits.h>
4003#else
4004# include <assert.h>
4005#endif
4006 Syntax error
4007_ACEOF
4008if ac_fn_c_try_cpp "$LINENO"; then :
4009
4010else
4011 # Broken: fails on valid input.
4012continue
4013fi
4014rm -f conftest.err conftest.i conftest.$ac_ext
4015
4016 # OK, works on sane cases. Now check whether nonexistent headers
4017 # can be detected and how.
4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019/* end confdefs.h. */
4020#include <ac_nonexistent.h>
4021_ACEOF
4022if ac_fn_c_try_cpp "$LINENO"; then :
4023 # Broken: success on invalid input.
4024continue
4025else
4026 # Passes both tests.
4027ac_preproc_ok=:
4028break
4029fi
4030rm -f conftest.err conftest.i conftest.$ac_ext
4031
4032done
4033# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4034rm -f conftest.i conftest.err conftest.$ac_ext
4035if $ac_preproc_ok; then :
4036 break
4037fi
4038
4039 done
4040 ac_cv_prog_CPP=$CPP
4041
4042fi
4043 CPP=$ac_cv_prog_CPP
4044else
4045 ac_cv_prog_CPP=$CPP
4046fi
4047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4048$as_echo "$CPP" >&6; }
4049ac_preproc_ok=false
4050for ac_c_preproc_warn_flag in '' yes
4051do
4052 # Use a header file that comes with gcc, so configuring glibc
4053 # with a fresh cross-compiler works.
4054 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4055 # <limits.h> exists even on freestanding compilers.
4056 # On the NeXT, cc -E runs the code through the compiler's parser,
4057 # not just through cpp. "Syntax error" is here to catch this case.
4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059/* end confdefs.h. */
4060#ifdef __STDC__
4061# include <limits.h>
4062#else
4063# include <assert.h>
4064#endif
4065 Syntax error
4066_ACEOF
4067if ac_fn_c_try_cpp "$LINENO"; then :
4068
4069else
4070 # Broken: fails on valid input.
4071continue
4072fi
4073rm -f conftest.err conftest.i conftest.$ac_ext
4074
4075 # OK, works on sane cases. Now check whether nonexistent headers
4076 # can be detected and how.
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078/* end confdefs.h. */
4079#include <ac_nonexistent.h>
4080_ACEOF
4081if ac_fn_c_try_cpp "$LINENO"; then :
4082 # Broken: success on invalid input.
4083continue
4084else
4085 # Passes both tests.
4086ac_preproc_ok=:
4087break
4088fi
4089rm -f conftest.err conftest.i conftest.$ac_ext
4090
4091done
4092# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4093rm -f conftest.i conftest.err conftest.$ac_ext
4094if $ac_preproc_ok; then :
4095
4096else
4097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4098$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4099as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4100See \`config.log' for more details" "$LINENO" 5; }
4101fi
4102
4103ac_ext=c
4104ac_cpp='$CPP $CPPFLAGS'
4105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107ac_compiler_gnu=$ac_cv_c_compiler_gnu
4108
4039 4109
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4041$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4111$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4042if ${ac_cv_path_GREP+:} false; then : 4112if ${ac_cv_path_GREP+:} false; then :
4043 $as_echo_n "(cached) " >&6 4113 $as_echo_n "(cached) " >&6
4051 IFS=$as_save_IFS 4121 IFS=$as_save_IFS
4052 test -z "$as_dir" && as_dir=. 4122 test -z "$as_dir" && as_dir=.
4053 for ac_prog in grep ggrep; do 4123 for ac_prog in grep ggrep; do
4054 for ac_exec_ext in '' $ac_executable_extensions; do 4124 for ac_exec_ext in '' $ac_executable_extensions; do
4055 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4125 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4056 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4126 as_fn_executable_p "$ac_path_GREP" || continue
4057# Check for GNU ac_path_GREP and select it if it is found. 4127# Check for GNU ac_path_GREP and select it if it is found.
4058 # Check for GNU $ac_path_GREP 4128 # Check for GNU $ac_path_GREP
4059case `"$ac_path_GREP" --version 2>&1` in 4129case `"$ac_path_GREP" --version 2>&1` in
4060*GNU*) 4130*GNU*)
4061 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4131 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4117 IFS=$as_save_IFS 4187 IFS=$as_save_IFS
4118 test -z "$as_dir" && as_dir=. 4188 test -z "$as_dir" && as_dir=.
4119 for ac_prog in egrep; do 4189 for ac_prog in egrep; do
4120 for ac_exec_ext in '' $ac_executable_extensions; do 4190 for ac_exec_ext in '' $ac_executable_extensions; do
4121 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4191 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4122 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4192 as_fn_executable_p "$ac_path_EGREP" || continue
4123# Check for GNU ac_path_EGREP and select it if it is found. 4193# Check for GNU ac_path_EGREP and select it if it is found.
4124 # Check for GNU $ac_path_EGREP 4194 # Check for GNU $ac_path_EGREP
4125case `"$ac_path_EGREP" --version 2>&1` in 4195case `"$ac_path_EGREP" --version 2>&1` in
4126*GNU*) 4196*GNU*)
4127 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4197 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4324 $as_echo_n "(cached) " >&6 4394 $as_echo_n "(cached) " >&6
4325else 4395else
4326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327/* end confdefs.h. */ 4397/* end confdefs.h. */
4328 4398
4329# define __EXTENSIONS__ 1 4399# define __EXTENSIONS__ 1
4330 $ac_includes_default 4400 $ac_includes_default
4331int 4401int
4332main () 4402main ()
4333{ 4403{
4334 4404
4335 ; 4405 ;
4837 support_styles=$enableval 4907 support_styles=$enableval
4838 fi 4908 fi
4839fi 4909fi
4840 4910
4841 4911
4842# Check whether --enable-afterimage was given.
4843if test "${enable_afterimage+set}" = set; then :
4844 enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then
4845 support_afterimage=$enableval
4846 fi
4847fi
4848
4849
4850
4851# Check whether --with-afterimage_config was given.
4852if test "${with_afterimage_config+set}" = set; then :
4853 withval=$with_afterimage_config; if test "x$withval" != x; then
4854 afterimage_config=$withval/afterimage-config
4855 fi
4856fi
4857
4858
4859# Check whether --enable-pixbuf was given. 4912# Check whether --enable-pixbuf was given.
4860if test "${enable_pixbuf+set}" = set; then : 4913if test "${enable_pixbuf+set}" = set; then :
4861 enableval=$enable_pixbuf; if test x$enableval = xyes -o x$enableval = xno; then 4914 enableval=$enable_pixbuf; if test x$enableval = xyes -o x$enableval = xno; then
4862 support_pixbuf=$enableval 4915 support_pixbuf=$enableval
4863 fi 4916 fi
4953 5006
4954 fi 5007 fi
4955fi 5008fi
4956 5009
4957 5010
5011support_resources=yes
4958# Check whether --enable-resources was given. 5012# Check whether --enable-resources was given.
4959if test "${enable_resources+set}" = set; then : 5013if test "${enable_resources+set}" = set; then :
4960 enableval=$enable_resources; if test x$enableval = xno; then 5014 enableval=$enable_resources; if test x$enableval = xno; then
4961 5015 support_resources=no
4962$as_echo "#define NO_RESOURCES 1" >>confdefs.h
4963
4964 fi 5016 fi
4965fi 5017fi
4966 5018
4967 5019
4968# Check whether --enable-8bitctrls was given. 5020# Check whether --enable-8bitctrls was given.
5140_ACEOF 5192_ACEOF
5141 terminfo="$withval" 5193 terminfo="$withval"
5142 fi 5194 fi
5143fi 5195fi
5144 5196
5197
5198if test x$support_resources = xno; then
5199 if test x$support_frills = xyes || test x$support_perl = xyes; then
5200 as_fn_error $? "--disable-resources requires --disable-frills --disable-perl" "$LINENO" 5
5201 fi
5202
5203
5204$as_echo "#define NO_RESOURCES 1" >>confdefs.h
5205
5206fi
5145 5207
5146 5208
5147LIBEV_M4_AVOID_LIBRT=1 5209LIBEV_M4_AVOID_LIBRT=1
5148 5210
5149ac_ext=cpp 5211ac_ext=cpp
5566for as_dir in $PATH 5628for as_dir in $PATH
5567do 5629do
5568 IFS=$as_save_IFS 5630 IFS=$as_save_IFS
5569 test -z "$as_dir" && as_dir=. 5631 test -z "$as_dir" && as_dir=.
5570 for ac_exec_ext in '' $ac_executable_extensions; do 5632 for ac_exec_ext in '' $ac_executable_extensions; do
5571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5572 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext" 5634 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
5573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5574 break 2 5636 break 2
5575 fi 5637 fi
5576done 5638done
6274 LDFLAGS=$ac_save_LDFLAGS 6336 LDFLAGS=$ac_save_LDFLAGS
6275 6337
6276fi 6338fi
6277 6339
6278 6340
6279image_lib=none 6341if test -n "$ac_tool_prefix"; then
6280
6281PIXBUF_CFLAGS=
6282PIXBUF_LIBS=
6283
6284if test x$support_pixbuf = xyes; then
6285 support_pixbuf=no
6286 # Extract the first word of "pkg-config", so it can be a program name with args. 6342 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6287set dummy pkg-config; ac_word=$2 6343set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6289$as_echo_n "checking for $ac_word... " >&6; } 6345$as_echo_n "checking for $ac_word... " >&6; }
6290if ${ac_cv_path_PKG_CONFIG+:} false; then : 6346if ${ac_cv_path_PKG_CONFIG+:} false; then :
6291 $as_echo_n "(cached) " >&6 6347 $as_echo_n "(cached) " >&6
6292else 6348else
6299for as_dir in $PATH 6355for as_dir in $PATH
6300do 6356do
6301 IFS=$as_save_IFS 6357 IFS=$as_save_IFS
6302 test -z "$as_dir" && as_dir=. 6358 test -z "$as_dir" && as_dir=.
6303 for ac_exec_ext in '' $ac_executable_extensions; do 6359 for ac_exec_ext in '' $ac_executable_extensions; do
6304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6305 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 6361 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6307 break 2 6363 break 2
6308 fi 6364 fi
6309done 6365done
6310 done 6366 done
6311IFS=$as_save_IFS 6367IFS=$as_save_IFS
6312 6368
6313 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6314 ;; 6369 ;;
6315esac 6370esac
6316fi 6371fi
6317PKG_CONFIG=$ac_cv_path_PKG_CONFIG 6372PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6318if test -n "$PKG_CONFIG"; then 6373if test -n "$PKG_CONFIG"; then
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6323$as_echo "no" >&6; } 6378$as_echo "no" >&6; }
6324fi 6379fi
6325 6380
6326 6381
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf" >&5
6328$as_echo_n "checking for gdk-pixbuf... " >&6; }
6329 if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then
6330 PIXBUF_CFLAGS="`$PKG_CONFIG gdk-pixbuf-2.0 --cflags`"
6331 PIXBUF_LIBS="`$PKG_CONFIG gdk-pixbuf-2.0 --libs`"
6332 support_pixbuf=yes
6333 fi
6334
6335 if test x$support_pixbuf = xyes; then
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6337$as_echo "ok" >&6; }
6338 image_lib=gdk-pixbuf
6339 support_afterimage=no
6340
6341$as_echo "#define HAVE_PIXBUF 1" >>confdefs.h
6342
6343
6344$as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h
6345
6346 else
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6348$as_echo "no" >&6; }
6349 fi
6350fi 6382fi
6351 6383if test -z "$ac_cv_path_PKG_CONFIG"; then
6352 6384 ac_pt_PKG_CONFIG=$PKG_CONFIG
6353
6354
6355STARTUP_NOTIFICATION_CFLAGS=
6356STARTUP_NOTIFICATION_LIBS=
6357
6358if test x$support_startup_notification = xyes; then
6359 support_startup_notification=no
6360 # Extract the first word of "pkg-config", so it can be a program name with args. 6385 # Extract the first word of "pkg-config", so it can be a program name with args.
6361set dummy pkg-config; ac_word=$2 6386set dummy pkg-config; ac_word=$2
6362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6363$as_echo_n "checking for $ac_word... " >&6; } 6388$as_echo_n "checking for $ac_word... " >&6; }
6364if ${ac_cv_path_PKG_CONFIG+:} false; then : 6389if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
6365 $as_echo_n "(cached) " >&6 6390 $as_echo_n "(cached) " >&6
6366else 6391else
6367 case $PKG_CONFIG in 6392 case $ac_pt_PKG_CONFIG in
6368 [\\/]* | ?:[\\/]*) 6393 [\\/]* | ?:[\\/]*)
6369 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 6394 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6370 ;; 6395 ;;
6371 *) 6396 *)
6372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373for as_dir in $PATH 6398for as_dir in $PATH
6374do 6399do
6375 IFS=$as_save_IFS 6400 IFS=$as_save_IFS
6376 test -z "$as_dir" && as_dir=. 6401 test -z "$as_dir" && as_dir=.
6377 for ac_exec_ext in '' $ac_executable_extensions; do 6402 for ac_exec_ext in '' $ac_executable_extensions; do
6378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6379 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 6404 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6381 break 2 6406 break 2
6382 fi 6407 fi
6383done 6408done
6384 done 6409 done
6385IFS=$as_save_IFS 6410IFS=$as_save_IFS
6386 6411
6387 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6388 ;; 6412 ;;
6389esac 6413esac
6390fi 6414fi
6391PKG_CONFIG=$ac_cv_path_PKG_CONFIG 6415ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6392if test -n "$PKG_CONFIG"; then 6416if test -n "$ac_pt_PKG_CONFIG"; then
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6394$as_echo "$PKG_CONFIG" >&6; } 6418$as_echo "$ac_pt_PKG_CONFIG" >&6; }
6395else 6419else
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6397$as_echo "no" >&6; } 6421$as_echo "no" >&6; }
6398fi 6422fi
6399 6423
6424 if test "x$ac_pt_PKG_CONFIG" = x; then
6425 PKG_CONFIG="no"
6426 else
6427 case $cross_compiling:$ac_tool_warned in
6428yes:)
6429{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6430$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6431ac_tool_warned=yes ;;
6432esac
6433 PKG_CONFIG=$ac_pt_PKG_CONFIG
6434 fi
6435else
6436 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6437fi
6400 6438
6439
6440image_lib=none
6441
6442PIXBUF_CFLAGS=
6443PIXBUF_LIBS=
6444
6445if test x$support_pixbuf = xyes; then
6446
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf-2.0" >&5
6448$as_echo_n "checking for gdk-pixbuf-2.0... " >&6; }
6449 if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then
6450 PIXBUF_CFLAGS="`$PKG_CONFIG gdk-pixbuf-2.0 --cflags`"
6451 PIXBUF_LIBS="`$PKG_CONFIG gdk-pixbuf-2.0 --libs`"
6452
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6454$as_echo "ok" >&6; }
6455
6456 image_lib=gdk-pixbuf
6457
6458$as_echo "#define HAVE_PIXBUF 1" >>confdefs.h
6459
6460
6461 else
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6463$as_echo "no" >&6; }
6464 :
6465 fi
6466
6467fi
6468
6469
6470
6471
6472STARTUP_NOTIFICATION_CFLAGS=
6473STARTUP_NOTIFICATION_LIBS=
6474
6475if test x$support_startup_notification = xyes; then
6476
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstartup-notification" >&5 6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstartup-notification-1.0" >&5
6402$as_echo_n "checking for libstartup-notification... " >&6; } 6478$as_echo_n "checking for libstartup-notification-1.0... " >&6; }
6403 if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then 6479 if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then
6404 STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG libstartup-notification-1.0 --cflags`" 6480 STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG libstartup-notification-1.0 --cflags`"
6405 STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG libstartup-notification-1.0 --libs`" 6481 STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG libstartup-notification-1.0 --libs`"
6406 support_startup_notification=yes
6407 fi
6408 6482
6409 if test x$support_startup_notification = xyes; then
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6411$as_echo "ok" >&6; } 6484$as_echo "ok" >&6; }
6412 6485
6486
6413$as_echo "#define HAVE_STARTUP_NOTIFICATION 1" >>confdefs.h 6487$as_echo "#define HAVE_STARTUP_NOTIFICATION 1" >>confdefs.h
6488
6414 6489
6415 else 6490 else
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6417$as_echo "no" >&6; } 6492$as_echo "no" >&6; }
6493 :
6418 fi 6494 fi
6419fi
6420 6495
6496fi
6421 6497
6422 6498
6423 6499
6424AFTERIMAGE_CFLAGS=
6425AFTERIMAGE_LIBS=
6426 6500
6427if test x$support_afterimage = xyes; then 6501if test x$support_frills = xyes; then
6428 support_afterimage=no
6429 6502
6430 if test "x$afterimage_config" = "x" ; then
6431 # Extract the first word of "afterimage-config", so it can be a program name with args.
6432set dummy afterimage-config; ac_word=$2
6433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmu" >&5
6434$as_echo_n "checking for $ac_word... " >&6; } 6504$as_echo_n "checking for xmu... " >&6; }
6435if ${ac_cv_path_afterimage_config+:} false; then : 6505 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xmu; then
6436 $as_echo_n "(cached) " >&6 6506 XMU_CFLAGS="`$PKG_CONFIG xmu --cflags`"
6437else 6507 XMU_LIBS="`$PKG_CONFIG xmu --libs`"
6438 case $afterimage_config in
6439 [\\/]* | ?:[\\/]*)
6440 ac_cv_path_afterimage_config="$afterimage_config" # Let the user override the test with a path.
6441 ;;
6442 *)
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444for as_dir in $PATH
6445do
6446 IFS=$as_save_IFS
6447 test -z "$as_dir" && as_dir=.
6448 for ac_exec_ext in '' $ac_executable_extensions; do
6449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6450 ac_cv_path_afterimage_config="$as_dir/$ac_word$ac_exec_ext"
6451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6452 break 2
6453 fi
6454done
6455 done
6456IFS=$as_save_IFS
6457 6508
6458 test -z "$ac_cv_path_afterimage_config" && ac_cv_path_afterimage_config="no"
6459 ;;
6460esac
6461fi
6462afterimage_config=$ac_cv_path_afterimage_config
6463if test -n "$afterimage_config"; then
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $afterimage_config" >&5 6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6465$as_echo "$afterimage_config" >&6; } 6510$as_echo "ok" >&6; }
6511
6512 X_LIBS="$XMU_LIBS $X_LIBS"
6513 CPPFLAGS="$CPPFLAGS $XMU_CFLAGS"
6514
6515$as_echo "#define HAVE_XMU 1" >>confdefs.h
6516
6517
6466else 6518 else
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6468$as_echo "no" >&6; } 6520$as_echo "no" >&6; }
6469fi 6521 :
6470
6471
6472 fi
6473 if test "x$afterimage_config" != "xno" ; then
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libAfterImage version >= 1.15" >&5
6475$as_echo_n "checking for libAfterImage version >= 1.15... " >&6; }
6476 AFTERIMAGE_VERSION=`$afterimage_config --version`
6477 if test -n "$AFTERIMAGE_VERSION" ; then
6478 AFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
6479 AFTERIMAGE_LIBS=`$afterimage_config --libs`
6480 if test "x$AFTERIMAGE_LIBS" != "x"; then
6481 libai_ver_major=`echo $AFTERIMAGE_VERSION | cut -f 1 -d .`
6482 libai_ver_minor=`echo $AFTERIMAGE_VERSION | cut -f 2 -d .`
6483 if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then
6484 support_afterimage=yes
6485 fi
6486 fi
6487 fi 6522 fi
6488 if test "x$support_afterimage" = "xyes"; then
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AFTERIMAGE_LIBS" >&5
6490$as_echo "$AFTERIMAGE_LIBS" >&6; }
6491 image_lib=libafterimage
6492 6523
6493$as_echo "#define HAVE_AFTERIMAGE 1" >>confdefs.h
6494
6495
6496$as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h
6497
6498 else
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500$as_echo "no" >&6; }
6501 AFTERIMAGE_CFLAGS=
6502 AFTERIMAGE_LIBS=
6503 fi
6504 fi
6505fi 6524fi
6506
6507
6508
6509 6525
6510for ac_header in \ 6526for ac_header in \
6511 sys/byteorder.h \ 6527 sys/byteorder.h \
6512 sys/ioctl.h \ 6528 sys/ioctl.h \
6513 sys/sockio.h \ 6529 sys/sockio.h \
6514 sys/strredir.h \ 6530 sys/strredir.h \
6515 stdint.h \ 6531 stdint.h \
6516 wchar.h \ 6532 wchar.h \
6517 cwchar \
6518 6533
6519do : 6534do :
6520 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6535 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6521ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6536ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6522if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6537if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6769 ac_fn_cxx_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default" 6784 ac_fn_cxx_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
6770if test "x$ac_cv_header_utmp_h" = xyes; then : 6785if test "x$ac_cv_header_utmp_h" = xyes; then :
6771 cat >>confdefs.h <<_ACEOF 6786 cat >>confdefs.h <<_ACEOF
6772#define HAVE_UTMP_H 1 6787#define HAVE_UTMP_H 1
6773_ACEOF 6788_ACEOF
6789
6774 ac_fn_cxx_check_type "$LINENO" "struct utmp" "ac_cv_type_struct_utmp" " 6790ac_fn_cxx_check_type "$LINENO" "struct utmp" "ac_cv_type_struct_utmp" "
6775#include <sys/types.h> 6791#include <sys/types.h>
6776#include <utmp.h> 6792#include <utmp.h>
6777 6793
6778" 6794"
6779if test "x$ac_cv_type_struct_utmp" = xyes; then : 6795if test "x$ac_cv_type_struct_utmp" = xyes; then :
6784 6800
6785 6801
6786fi 6802fi
6787 6803
6788 6804
6789
6790# ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
6791# ------------------------------------------------------
6792# Tries to find if the field MEMBER exists in type AGGR, after including
6793# INCLUDES, setting cache variable VAR accordingly.
6794ac_fn_cxx_check_member ()
6795{
6796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
6798$as_echo_n "checking for $2.$3... " >&6; }
6799if eval \${$4+:} false; then :
6800 $as_echo_n "(cached) " >&6
6801else
6802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6803/* end confdefs.h. */
6804$5
6805int
6806main ()
6807{
6808static $2 ac_aggr;
6809if (ac_aggr.$3)
6810return 0;
6811 ;
6812 return 0;
6813}
6814_ACEOF
6815if ac_fn_cxx_try_compile "$LINENO"; then :
6816 eval "$4=yes"
6817else
6818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6819/* end confdefs.h. */
6820$5
6821int
6822main ()
6823{
6824static $2 ac_aggr;
6825if (sizeof ac_aggr.$3)
6826return 0;
6827 ;
6828 return 0;
6829}
6830_ACEOF
6831if ac_fn_cxx_try_compile "$LINENO"; then :
6832 eval "$4=yes"
6833else
6834 eval "$4=no"
6835fi
6836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6837fi
6838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6839fi
6840eval ac_res=\$$4
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6842$as_echo "$ac_res" >&6; }
6843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6844
6845} # ac_fn_cxx_check_member
6846ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" " 6805ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" "
6847#include <sys/types.h> 6806#include <sys/types.h>
6848#include <utmp.h> 6807#include <utmp.h>
6849 6808
6850" 6809"
6877 ac_fn_cxx_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default" 6836 ac_fn_cxx_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
6878if test "x$ac_cv_header_utmpx_h" = xyes; then : 6837if test "x$ac_cv_header_utmpx_h" = xyes; then :
6879 cat >>confdefs.h <<_ACEOF 6838 cat >>confdefs.h <<_ACEOF
6880#define HAVE_UTMPX_H 1 6839#define HAVE_UTMPX_H 1
6881_ACEOF 6840_ACEOF
6841
6882 ac_fn_cxx_check_type "$LINENO" "struct utmpx" "ac_cv_type_struct_utmpx" " 6842ac_fn_cxx_check_type "$LINENO" "struct utmpx" "ac_cv_type_struct_utmpx" "
6883#include <sys/types.h> 6843#include <sys/types.h>
6884#include <utmpx.h> 6844#include <utmpx.h>
6885 6845
6886" 6846"
6887if test "x$ac_cv_type_struct_utmpx" = xyes; then : 6847if test "x$ac_cv_type_struct_utmpx" = xyes; then :
7090 7050
7091 7051
7092 7052
7093 7053
7094save_LIBS=$LIBS 7054save_LIBS=$LIBS
7095save_CFLAGS=$CFLAGS 7055save_CXXFLAGS=$CXXFLAGS
7096CFLAGS="$CFLAGS $X_CFLAGS" 7056CXXFLAGS="$CXXFLAGS $X_CFLAGS"
7097LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 7057LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7098if test x$support_xim = xyes; then 7058if test x$support_xim = xyes; then
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working Xlocale" >&5 7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working Xlocale" >&5
7100$as_echo_n "checking for working Xlocale... " >&6; } 7060$as_echo_n "checking for working Xlocale... " >&6; }
7101if ${rxvt_cv_func_xlocale+:} false; then : 7061if ${rxvt_cv_func_xlocale+:} false; then :
7201 7161
7202$as_echo "#define HAVE_XSETLOCALE 1" >>confdefs.h 7162$as_echo "#define HAVE_XSETLOCALE 1" >>confdefs.h
7203 7163
7204fi 7164fi
7205LIBS=$save_LIBS 7165LIBS=$save_LIBS
7206CFLAGS=$save_CFLAGS 7166CXXFLAGS=$save_CXXFLAGS
7207
7208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working plain setlocale" >&5
7209$as_echo_n "checking for working plain setlocale... " >&6; }
7210if ${rxvt_cv_func_setlocale+:} false; then :
7211 $as_echo_n "(cached) " >&6
7212else
7213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7214/* end confdefs.h. */
7215#include <clocale>
7216int
7217main ()
7218{
7219setlocale(LC_CTYPE, "");
7220 ;
7221 return 0;
7222}
7223_ACEOF
7224if ac_fn_cxx_try_link "$LINENO"; then :
7225 rxvt_cv_func_setlocale=yes
7226else
7227 rxvt_cv_func_setlocale=no
7228fi
7229rm -f core conftest.err conftest.$ac_objext \
7230 conftest$ac_exeext conftest.$ac_ext
7231fi
7232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_setlocale" >&5
7233$as_echo "$rxvt_cv_func_setlocale" >&6; }
7234if test x$rxvt_cv_func_setlocale = xyes; then
7235
7236$as_echo "#define HAVE_SETLOCALE 1" >>confdefs.h
7237
7238fi
7239 7167
7240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working nl_langinfo" >&5 7168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working nl_langinfo" >&5
7241$as_echo_n "checking for working nl_langinfo... " >&6; } 7169$as_echo_n "checking for working nl_langinfo... " >&6; }
7242if ${rxvt_cv_func_nl_langinfo+:} false; then : 7170if ${rxvt_cv_func_nl_langinfo+:} false; then :
7243 $as_echo_n "(cached) " >&6 7171 $as_echo_n "(cached) " >&6
7268$as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h 7196$as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h
7269 7197
7270fi 7198fi
7271 7199
7272 7200
7201
7273case $host in 7202case $host in
7274 *-*-solaris*) 7203 *-*-solaris*)
7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205/* end confdefs.h. */
7275 7206
7207#if __STDC_VERSION__ >= 199901L
7208error
7209#endif
7210
7211int
7212main ()
7213{
7214
7215 ;
7216 return 0;
7217}
7218_ACEOF
7219if ac_fn_cxx_try_compile "$LINENO"; then :
7276$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h 7220 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
7277 7221
7222else
7223 $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
7224
7225fi
7226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5 7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5
7279$as_echo_n "checking for library containing sendmsg... " >&6; } 7228$as_echo_n "checking for library containing sendmsg... " >&6; }
7280if ${ac_cv_search_sendmsg+:} false; then : 7229if ${ac_cv_search_sendmsg+:} false; then :
7281 $as_echo_n "(cached) " >&6 7230 $as_echo_n "(cached) " >&6
7282else 7231else
7340 $as_echo_n "(cached) " >&6 7289 $as_echo_n "(cached) " >&6
7341else 7290else
7342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7343/* end confdefs.h. */ 7292/* end confdefs.h. */
7344 7293
7345#include <cstddef> // broken bsds (is that redundant?) need this 7294#include <stddef.h> // broken bsds (is that redundant?) need this
7346#include <sys/types.h> 7295#include <sys/types.h>
7347#include <sys/socket.h> 7296#include <sys/socket.h>
7348#include <sys/uio.h> 7297#include <sys/uio.h>
7349 7298
7350int 7299int
7402for ac_header in \ 7351for ac_header in \
7403 pty.h \ 7352 pty.h \
7404 util.h \ 7353 util.h \
7405 libutil.h \ 7354 libutil.h \
7406 sys/ioctl.h \ 7355 sys/ioctl.h \
7407 sys/stropts.h \
7408 stropts.h \ 7356 stropts.h \
7409 7357
7410do : 7358do :
7411 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7359 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7412ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7360ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7581 7529
7582$as_echo "#define TTY_GID_SUPPORT 1" >>confdefs.h 7530$as_echo "#define TTY_GID_SUPPORT 1" >>confdefs.h
7583 7531
7584fi 7532fi
7585 7533
7534support_image=no
7535if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then
7536 support_image=yes
7537fi
7586if test x$support_xft = xyes || test x$support_inheritpixmap = xyes; then 7538if test x$support_xft = xyes || test x$support_image = xyes; then
7587 rxvt_have_xrender=no 7539 rxvt_have_xrender=no
7588 # Extract the first word of "pkg-config", so it can be a program name with args. 7540
7589set dummy pkg-config; ac_word=$2
7590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xrender" >&5
7591$as_echo_n "checking for $ac_word... " >&6; } 7542$as_echo_n "checking for xrender... " >&6; }
7592if ${ac_cv_path_PKG_CONFIG+:} false; then :
7593 $as_echo_n "(cached) " >&6
7594else
7595 case $PKG_CONFIG in
7596 [\\/]* | ?:[\\/]*)
7597 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7598 ;;
7599 *)
7600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601for as_dir in $PATH
7602do
7603 IFS=$as_save_IFS
7604 test -z "$as_dir" && as_dir=.
7605 for ac_exec_ext in '' $ac_executable_extensions; do
7606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7607 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7609 break 2
7610 fi
7611done
7612 done
7613IFS=$as_save_IFS
7614
7615 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7616 ;;
7617esac
7618fi
7619PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7620if test -n "$PKG_CONFIG"; then
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7622$as_echo "$PKG_CONFIG" >&6; }
7623else
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7625$as_echo "no" >&6; }
7626fi
7627
7628
7629 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then 7543 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then
7544 XRENDER_CFLAGS="`$PKG_CONFIG xrender --cflags`"
7630 X_LIBS="`$PKG_CONFIG xrender --libs` $X_LIBS" 7545 XRENDER_LIBS="`$PKG_CONFIG xrender --libs`"
7631 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xrender --cflags`" 7546
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7548$as_echo "ok" >&6; }
7549
7550 X_LIBS="$XRENDER_LIBS $X_LIBS"
7551 CPPFLAGS="$CPPFLAGS $XRENDER_CFLAGS"
7632 rxvt_have_xrender=yes 7552 rxvt_have_xrender=yes
7633 7553
7634 save_LIBS="$LIBS" 7554 save_LIBS="$LIBS"
7635 LIBS="$LIBS $X_LIBS" 7555 LIBS="$LIBS $X_LIBS"
7636 ac_fn_cxx_check_header_mongrel "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "$ac_includes_default" 7556 ac_fn_cxx_check_header_mongrel "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "$ac_includes_default"
7647else 7567else
7648 rxvt_have_xrender=no 7568 rxvt_have_xrender=no
7649fi 7569fi
7650 7570
7651 LIBS="$save_LIBS" 7571 LIBS="$save_LIBS"
7572
7573 else
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7575$as_echo "no" >&6; }
7576 :
7652 fi 7577 fi
7578
7653fi 7579fi
7654 7580
7655if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then 7581if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then
7656 # Extract the first word of "pkg-config", so it can be a program name with args. 7582
7657set dummy pkg-config; ac_word=$2
7658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig xft" >&5
7659$as_echo_n "checking for $ac_word... " >&6; } 7584$as_echo_n "checking for fontconfig xft... " >&6; }
7660if ${ac_cv_path_PKG_CONFIG+:} false; then : 7585 if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig xft; then
7661 $as_echo_n "(cached) " >&6 7586 XFT_CFLAGS="`$PKG_CONFIG fontconfig xft --cflags`"
7662else 7587 XFT_LIBS="`$PKG_CONFIG fontconfig xft --libs`"
7663 case $PKG_CONFIG in
7664 [\\/]* | ?:[\\/]*)
7665 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7666 ;;
7667 *)
7668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669for as_dir in $PATH
7670do
7671 IFS=$as_save_IFS
7672 test -z "$as_dir" && as_dir=.
7673 for ac_exec_ext in '' $ac_executable_extensions; do
7674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7675 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7677 break 2
7678 fi
7679done
7680 done
7681IFS=$as_save_IFS
7682 7588
7683 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7684 ;;
7685esac
7686fi
7687PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7688if test -n "$PKG_CONFIG"; then
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7690$as_echo "$PKG_CONFIG" >&6; } 7590$as_echo "ok" >&6; }
7591
7592 X_LIBS="$XFT_LIBS $X_LIBS"
7593 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
7594
7691else 7595 else
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7693$as_echo "no" >&6; } 7597$as_echo "no" >&6; }
7694fi
7695 7598
7696
7697 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
7698 X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS"
7699 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
7700 else
7701 # Extract the first word of "xft-config", so it can be a program name with args. 7599 # Extract the first word of "xft-config", so it can be a program name with args.
7702set dummy xft-config; ac_word=$2 7600set dummy xft-config; ac_word=$2
7703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7704$as_echo_n "checking for $ac_word... " >&6; } 7602$as_echo_n "checking for $ac_word... " >&6; }
7705if ${ac_cv_path_XFT_CONFIG+:} false; then : 7603if ${ac_cv_path_XFT_CONFIG+:} false; then :
7714for as_dir in $PATH 7612for as_dir in $PATH
7715do 7613do
7716 IFS=$as_save_IFS 7614 IFS=$as_save_IFS
7717 test -z "$as_dir" && as_dir=. 7615 test -z "$as_dir" && as_dir=.
7718 for ac_exec_ext in '' $ac_executable_extensions; do 7616 for ac_exec_ext in '' $ac_executable_extensions; do
7719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7720 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7618 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7722 break 2 7620 break 2
7723 fi 7621 fi
7724done 7622done
7741 7639
7742 if test $XFT_CONFIG != no; then 7640 if test $XFT_CONFIG != no; then
7743 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" 7641 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
7744 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" 7642 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
7745 fi 7643 fi
7746 fi
7747 7644
7748 if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig; then
7749 X_LIBS="`$PKG_CONFIG fontconfig --libs` $X_LIBS"
7750 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG fontconfig --cflags`"
7751 fi 7645 fi
7646
7752 7647
7753 save_LIBS="$LIBS" 7648 save_LIBS="$LIBS"
7754 LIBS="$LIBS $X_LIBS" 7649 LIBS="$LIBS $X_LIBS"
7755 for ac_header in X11/Xft/Xft.h 7650 for ac_header in X11/Xft/Xft.h fontconfig/fontconfig.h
7756do : 7651do :
7652 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7757 ac_fn_cxx_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default" 7653ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7758if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then : 7654if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7759 cat >>confdefs.h <<_ACEOF 7655 cat >>confdefs.h <<_ACEOF
7760#define HAVE_X11_XFT_XFT_H 1 7656#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7761_ACEOF 7657_ACEOF
7762 7658
7763else 7659else
7764 support_xft=no 7660 support_xft=no
7765fi 7661fi
7766 7662
7767done 7663done
7768 7664
7665 for ac_func in XftDrawString32 FcPatternGet
7666do :
7667 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7668ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
7669if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7670 cat >>confdefs.h <<_ACEOF
7671#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7672_ACEOF
7673
7674else
7675 support_xft=no
7676fi
7677done
7678
7679 LIBS="$save_LIBS"
7680
7681 if test x$support_xft = xyes; then
7682
7683$as_echo "#define XFT 1" >>confdefs.h
7684
7685 fi
7686fi
7687
7688if test x$support_image = xyes && test x$rxvt_have_xrender = xyes; then
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftDrawString32 in -lXft" >&5 7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Render >= 0.11" >&5
7770$as_echo_n "checking for XftDrawString32 in -lXft... " >&6; } 7690$as_echo_n "checking for Render >= 0.11... " >&6; }
7771if ${ac_cv_lib_Xft_XftDrawString32+:} false; then :
7772 $as_echo_n "(cached) " >&6
7773else
7774 ac_check_lib_save_LIBS=$LIBS
7775LIBS="-lXft $LIBS"
7776cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777/* end confdefs.h. */ 7692/* end confdefs.h. */
7778 7693
7779/* Override any GCC internal prototype to avoid an error. 7694#include <X11/extensions/Xrender.h>
7780 Use char because int might match the return type of a GCC 7695#if RENDER_MAJOR == 0 && RENDER_MINOR <= 10
7781 builtin and then its argument prototype would still apply. */ 7696error
7782#ifdef __cplusplus
7783extern "C"
7784#endif 7697#endif
7785char XftDrawString32 (); 7698
7786int 7699int
7787main () 7700main ()
7788{ 7701{
7789return XftDrawString32 (); 7702
7790 ; 7703 ;
7791 return 0; 7704 return 0;
7792} 7705}
7793_ACEOF 7706_ACEOF
7794if ac_fn_cxx_try_link "$LINENO"; then : 7707if ac_fn_cxx_try_compile "$LINENO"; then :
7795 ac_cv_lib_Xft_XftDrawString32=yes 7708
7796else 7709else
7797 ac_cv_lib_Xft_XftDrawString32=no 7710 support_image=no
7798fi 7711fi
7799rm -f core conftest.err conftest.$ac_objext \ 7712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7800 conftest$ac_exeext conftest.$ac_ext
7801LIBS=$ac_check_lib_save_LIBS
7802fi
7803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftDrawString32" >&5
7804$as_echo "$ac_cv_lib_Xft_XftDrawString32" >&6; }
7805if test "x$ac_cv_lib_Xft_XftDrawString32" = xyes; then :
7806 :
7807else
7808 support_xft=no
7809fi
7810
7811 for ac_header in fontconfig/fontconfig.h
7812do :
7813 ac_fn_cxx_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
7814if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
7815 cat >>confdefs.h <<_ACEOF
7816#define HAVE_FONTCONFIG_FONTCONFIG_H 1
7817_ACEOF
7818
7819else
7820 support_xft=no
7821fi
7822
7823done
7824
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcPatternGet in -lfontconfig" >&5
7826$as_echo_n "checking for FcPatternGet in -lfontconfig... " >&6; }
7827if ${ac_cv_lib_fontconfig_FcPatternGet+:} false; then :
7828 $as_echo_n "(cached) " >&6
7829else
7830 ac_check_lib_save_LIBS=$LIBS
7831LIBS="-lfontconfig $LIBS"
7832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833/* end confdefs.h. */
7834
7835/* Override any GCC internal prototype to avoid an error.
7836 Use char because int might match the return type of a GCC
7837 builtin and then its argument prototype would still apply. */
7838#ifdef __cplusplus
7839extern "C"
7840#endif
7841char FcPatternGet ();
7842int
7843main ()
7844{
7845return FcPatternGet ();
7846 ;
7847 return 0;
7848}
7849_ACEOF
7850if ac_fn_cxx_try_link "$LINENO"; then :
7851 ac_cv_lib_fontconfig_FcPatternGet=yes
7852else
7853 ac_cv_lib_fontconfig_FcPatternGet=no
7854fi
7855rm -f core conftest.err conftest.$ac_objext \
7856 conftest$ac_exeext conftest.$ac_ext
7857LIBS=$ac_check_lib_save_LIBS
7858fi
7859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcPatternGet" >&5
7860$as_echo "$ac_cv_lib_fontconfig_FcPatternGet" >&6; }
7861if test "x$ac_cv_lib_fontconfig_FcPatternGet" = xyes; then :
7862 :
7863else
7864 support_xft=no
7865fi
7866
7867 LIBS="$save_LIBS"
7868
7869 if test x$support_xft = xyes; then 7713 if test x$support_image = xyes; then
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7715$as_echo "ok" >&6; }
7716 LIBS="$LIBS -lm"
7870 7717
7871$as_echo "#define XFT 1" >>confdefs.h 7718$as_echo "#define XRENDER 1" >>confdefs.h
7872 7719
7720
7721 if test x$support_inheritpixmap = xyes; then
7722
7723$as_echo "#define ENABLE_TRANSPARENCY 1" >>confdefs.h
7724
7873 fi 7725 fi
7726 else
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728$as_echo "no" >&6; }
7729 fi
7874fi 7730fi
7731
7875if test x$support_styles = xyes; then 7732if test x$support_styles = xyes; then
7876 7733
7877$as_echo "#define ENABLE_STYLES 1" >>confdefs.h 7734$as_echo "#define ENABLE_STYLES 1" >>confdefs.h
7878 7735
7879fi 7736fi
7888 7745
7889fi 7746fi
7890if test x$support_fading = xyes; then 7747if test x$support_fading = xyes; then
7891 7748
7892$as_echo "#define OFF_FOCUS_FADING 1" >>confdefs.h 7749$as_echo "#define OFF_FOCUS_FADING 1" >>confdefs.h
7893
7894fi
7895if test x$support_inheritpixmap = xyes; then
7896 if test x$rxvt_have_xrender = xyes; then
7897 LIBS="$LIBS -lm"
7898
7899$as_echo "#define XRENDER 1" >>confdefs.h
7900
7901 fi
7902
7903$as_echo "#define ENABLE_TRANSPARENCY 1" >>confdefs.h
7904 7750
7905fi 7751fi
7906if test x$support_keepscrolling = xno; then 7752if test x$support_keepscrolling = xno; then
7907 7753
7908$as_echo "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h 7754$as_echo "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h
8019for as_dir in $PATH 7865for as_dir in $PATH
8020do 7866do
8021 IFS=$as_save_IFS 7867 IFS=$as_save_IFS
8022 test -z "$as_dir" && as_dir=. 7868 test -z "$as_dir" && as_dir=.
8023 for ac_exec_ext in '' $ac_executable_extensions; do 7869 for ac_exec_ext in '' $ac_executable_extensions; do
8024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8025 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 7871 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
8026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8027 break 2 7873 break 2
8028 fi 7874 fi
8029done 7875done
8030 done 7876 done
8031IFS=$as_save_IFS 7877IFS=$as_save_IFS
8032 7878
8033 ;; 7879 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
8034esac
8035fi
8036PERL=$ac_cv_path_PERL
8037if test -n "$PERL"; then
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
8039$as_echo "$PERL" >&6; }
8040else
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042$as_echo "no" >&6; }
8043fi
8044
8045
8046 # Extract the first word of "perl", so it can be a program name with args.
8047set dummy perl; ac_word=$2
8048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8049$as_echo_n "checking for $ac_word... " >&6; }
8050if ${ac_cv_path_PERL+:} false; then :
8051 $as_echo_n "(cached) " >&6
8052else
8053 case $PERL in
8054 [\\/]* | ?:[\\/]*)
8055 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8056 ;;
8057 *)
8058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8059for as_dir in $PATH
8060do
8061 IFS=$as_save_IFS
8062 test -z "$as_dir" && as_dir=.
8063 for ac_exec_ext in '' $ac_executable_extensions; do
8064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8065 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
8066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8067 break 2
8068 fi
8069done
8070 done
8071IFS=$as_save_IFS
8072
8073 ;; 7880 ;;
8074esac 7881esac
8075fi 7882fi
8076PERL=$ac_cv_path_PERL 7883PERL=$ac_cv_path_PERL
8077if test -n "$PERL"; then 7884if test -n "$PERL"; then
8552 if ln -s conf$$.file conf$$ 2>/dev/null; then 8359 if ln -s conf$$.file conf$$ 2>/dev/null; then
8553 as_ln_s='ln -s' 8360 as_ln_s='ln -s'
8554 # ... but there are two gotchas: 8361 # ... but there are two gotchas:
8555 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 8362 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8556 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 8363 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8557 # In both cases, we have to default to `cp -p'. 8364 # In both cases, we have to default to `cp -pR'.
8558 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 8365 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8559 as_ln_s='cp -p' 8366 as_ln_s='cp -pR'
8560 elif ln conf$$.file conf$$ 2>/dev/null; then 8367 elif ln conf$$.file conf$$ 2>/dev/null; then
8561 as_ln_s=ln 8368 as_ln_s=ln
8562 else 8369 else
8563 as_ln_s='cp -p' 8370 as_ln_s='cp -pR'
8564 fi 8371 fi
8565else 8372else
8566 as_ln_s='cp -p' 8373 as_ln_s='cp -pR'
8567fi 8374fi
8568rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 8375rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8569rmdir conf$$.dir 2>/dev/null 8376rmdir conf$$.dir 2>/dev/null
8570 8377
8571 8378
8621else 8428else
8622 test -d ./-p && rmdir ./-p 8429 test -d ./-p && rmdir ./-p
8623 as_mkdir_p=false 8430 as_mkdir_p=false
8624fi 8431fi
8625 8432
8626if test -x / >/dev/null 2>&1; then 8433
8434# as_fn_executable_p FILE
8435# -----------------------
8436# Test if FILE is an executable regular file.
8437as_fn_executable_p ()
8438{
8439 test -f "$1" && test -x "$1"
8440} # as_fn_executable_p
8627 as_test_x='test -x' 8441as_test_x='test -x'
8628else 8442as_executable_p=as_fn_executable_p
8629 if ls -dL / >/dev/null 2>&1; then
8630 as_ls_L_option=L
8631 else
8632 as_ls_L_option=
8633 fi
8634 as_test_x='
8635 eval sh -c '\''
8636 if test -d "$1"; then
8637 test -d "$1/.";
8638 else
8639 case $1 in #(
8640 -*)set "./$1";;
8641 esac;
8642 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8643 ???[sx]*):;;*)false;;esac;fi
8644 '\'' sh
8645 '
8646fi
8647as_executable_p=$as_test_x
8648 8443
8649# Sed expression to map a string onto a valid CPP name. 8444# Sed expression to map a string onto a valid CPP name.
8650as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 8445as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8651 8446
8652# Sed expression to map a string onto a valid variable name. 8447# Sed expression to map a string onto a valid variable name.
8664# Save the log message, to keep $0 and so on meaningful, and to 8459# Save the log message, to keep $0 and so on meaningful, and to
8665# report actual input values of CONFIG_FILES etc. instead of their 8460# report actual input values of CONFIG_FILES etc. instead of their
8666# values after options handling. 8461# values after options handling.
8667ac_log=" 8462ac_log="
8668This file was extended by $as_me, which was 8463This file was extended by $as_me, which was
8669generated by GNU Autoconf 2.68. Invocation command line was 8464generated by GNU Autoconf 2.69. Invocation command line was
8670 8465
8671 CONFIG_FILES = $CONFIG_FILES 8466 CONFIG_FILES = $CONFIG_FILES
8672 CONFIG_HEADERS = $CONFIG_HEADERS 8467 CONFIG_HEADERS = $CONFIG_HEADERS
8673 CONFIG_LINKS = $CONFIG_LINKS 8468 CONFIG_LINKS = $CONFIG_LINKS
8674 CONFIG_COMMANDS = $CONFIG_COMMANDS 8469 CONFIG_COMMANDS = $CONFIG_COMMANDS
8726_ACEOF 8521_ACEOF
8727cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8522cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8728ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 8523ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8729ac_cs_version="\\ 8524ac_cs_version="\\
8730config.status 8525config.status
8731configured by $0, generated by GNU Autoconf 2.68, 8526configured by $0, generated by GNU Autoconf 2.69,
8732 with options \\"\$ac_cs_config\\" 8527 with options \\"\$ac_cs_config\\"
8733 8528
8734Copyright (C) 2010 Free Software Foundation, Inc. 8529Copyright (C) 2012 Free Software Foundation, Inc.
8735This config.status script is free software; the Free Software Foundation 8530This config.status script is free software; the Free Software Foundation
8736gives unlimited permission to copy, distribute and modify it." 8531gives unlimited permission to copy, distribute and modify it."
8737 8532
8738ac_pwd='$ac_pwd' 8533ac_pwd='$ac_pwd'
8739srcdir='$srcdir' 8534srcdir='$srcdir'
8818fi 8613fi
8819 8614
8820_ACEOF 8615_ACEOF
8821cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8616cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8822if \$ac_cs_recheck; then 8617if \$ac_cs_recheck; then
8823 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 8618 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8824 shift 8619 shift
8825 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 8620 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8826 CONFIG_SHELL='$SHELL' 8621 CONFIG_SHELL='$SHELL'
8827 export CONFIG_SHELL 8622 export CONFIG_SHELL
8828 exec "\$@" 8623 exec "\$@"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines