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

Comparing rxvt-unicode/configure (file contents):
Revision 1.132 by sf-exg, Sat Apr 3 23:12:54 2010 UTC vs.
Revision 1.134 by sf-exg, Thu Sep 2 15:51:55 2010 UTC

591# include <unistd.h> 591# include <unistd.h>
592#endif" 592#endif"
593 593
594ac_subst_vars='LTLIBOBJS 594ac_subst_vars='LTLIBOBJS
595LIBOBJS 595LIBOBJS
596AFTERIMAGE_LIBS
597AFTERIMAGE_CFLAGS
598PERL_O 596PERL_O
599IF_PERL 597IF_PERL
600PERLPRIVLIBEXP 598PERLPRIVLIBEXP
601PERLFLAGS 599PERLFLAGS
602PERLLIB 600PERLLIB
603PERL 601PERL
604XFT_CONFIG 602XFT_CONFIG
603AFTERIMAGE_LIBS
604AFTERIMAGE_CFLAGS
605afterimage_config
606PIXBUF_LIBS
607PIXBUF_CFLAGS
605PKG_CONFIG 608PKG_CONFIG
606afterimage_config
607X_EXTRA_LIBS 609X_EXTRA_LIBS
608X_LIBS 610X_LIBS
609X_PRE_LIBS 611X_PRE_LIBS
610X_CFLAGS 612X_CFLAGS
611XMKMF 613XMKMF
688enable_combining 690enable_combining
689enable_xft 691enable_xft
690enable_font_styles 692enable_font_styles
691enable_afterimage 693enable_afterimage
692with_afterimage_config 694with_afterimage_config
695enable_pixbuf
693enable_transparency 696enable_transparency
694enable_fading 697enable_fading
695enable_rxvt_scroll 698enable_rxvt_scroll
696enable_next_scroll 699enable_next_scroll
697enable_xterm_scroll 700enable_xterm_scroll
1337 1340
1338X features: 1341X features:
1339 --x-includes=DIR X include files are in DIR 1342 --x-includes=DIR X include files are in DIR
1340 --x-libraries=DIR X library files are in DIR 1343 --x-libraries=DIR X library files are in DIR
1341 1344
1342Program names:
1343 --program-prefix=PREFIX prepend PREFIX to installed program names
1344 --program-suffix=SUFFIX append SUFFIX to installed program names
1345 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1346
1347System types: 1345System types:
1348 --build=BUILD configure for building on BUILD [guessed] 1346 --build=BUILD configure for building on BUILD [guessed]
1349 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1347 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1350_ACEOF 1348_ACEOF
1351fi 1349fi
1366 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 1364 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1367 --enable-combining enable composition of base and combining characters 1365 --enable-combining enable composition of base and combining characters
1368 --enable-xft enable xft support on systems that have it 1366 --enable-xft enable xft support on systems that have it
1369 --enable-font-styles enable bold and italic support 1367 --enable-font-styles enable bold and italic support
1370 --enable-afterimage enable integration with libAfterImage for background images 1368 --enable-afterimage enable integration with libAfterImage for background images
1369 --enable-pixbuf enable integration with gdk-pixbuf for background images
1371 --enable-transparency enable transparent backgrounds 1370 --enable-transparency enable transparent backgrounds
1372 --enable-fading enable colors fading when off focus 1371 --enable-fading enable colors fading when off focus
1373 --enable-rxvt-scroll enable rxvt style scrollbar 1372 --enable-rxvt-scroll enable rxvt style scrollbar
1374 --enable-next-scroll enable NeXT style scrollbar 1373 --enable-next-scroll enable NeXT style scrollbar
1375 --enable-xterm-scroll enable Xterm style scrollbar 1374 --enable-xterm-scroll enable Xterm style scrollbar
1863 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1864 as_fn_set_status $ac_retval 1863 as_fn_set_status $ac_retval
1865 1864
1866} # ac_fn_cxx_try_link 1865} # ac_fn_cxx_try_link
1867 1866
1868# ac_fn_cxx_check_func LINENO FUNC VAR
1869# ------------------------------------
1870# Tests whether FUNC exists, setting the cache variable VAR accordingly
1871ac_fn_cxx_check_func ()
1872{
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875$as_echo_n "checking for $2... " >&6; }
1876if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1877 $as_echo_n "(cached) " >&6
1878else
1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880/* end confdefs.h. */
1881/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1883#define $2 innocuous_$2
1884
1885/* System header to define __stub macros and hopefully few prototypes,
1886 which can conflict with char $2 (); below.
1887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1888 <limits.h> exists even on freestanding compilers. */
1889
1890#ifdef __STDC__
1891# include <limits.h>
1892#else
1893# include <assert.h>
1894#endif
1895
1896#undef $2
1897
1898/* Override any GCC internal prototype to avoid an error.
1899 Use char because int might match the return type of a GCC
1900 builtin and then its argument prototype would still apply. */
1901#ifdef __cplusplus
1902extern "C"
1903#endif
1904char $2 ();
1905/* The GNU C library defines this for functions which it implements
1906 to always fail with ENOSYS. Some functions are actually named
1907 something starting with __ and the normal name is an alias. */
1908#if defined __stub_$2 || defined __stub___$2
1909choke me
1910#endif
1911
1912int
1913main ()
1914{
1915return $2 ();
1916 ;
1917 return 0;
1918}
1919_ACEOF
1920if ac_fn_cxx_try_link "$LINENO"; then :
1921 eval "$3=yes"
1922else
1923 eval "$3=no"
1924fi
1925rm -f core conftest.err conftest.$ac_objext \
1926 conftest$ac_exeext conftest.$ac_ext
1927fi
1928eval ac_res=\$$3
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930$as_echo "$ac_res" >&6; }
1931 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1932
1933} # ac_fn_cxx_check_func
1934
1935# ac_fn_cxx_try_cpp LINENO 1867# ac_fn_cxx_try_cpp LINENO
1936# ------------------------ 1868# ------------------------
1937# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1869# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1938ac_fn_cxx_try_cpp () 1870ac_fn_cxx_try_cpp ()
1939{ 1871{
2053$as_echo "$ac_res" >&6; } 1985$as_echo "$ac_res" >&6; }
2054fi 1986fi
2055 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1987 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2056 1988
2057} # ac_fn_cxx_check_header_mongrel 1989} # ac_fn_cxx_check_header_mongrel
1990
1991# ac_fn_cxx_check_func LINENO FUNC VAR
1992# ------------------------------------
1993# Tests whether FUNC exists, setting the cache variable VAR accordingly
1994ac_fn_cxx_check_func ()
1995{
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1998$as_echo_n "checking for $2... " >&6; }
1999if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2000 $as_echo_n "(cached) " >&6
2001else
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003/* end confdefs.h. */
2004/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2006#define $2 innocuous_$2
2007
2008/* System header to define __stub macros and hopefully few prototypes,
2009 which can conflict with char $2 (); below.
2010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2011 <limits.h> exists even on freestanding compilers. */
2012
2013#ifdef __STDC__
2014# include <limits.h>
2015#else
2016# include <assert.h>
2017#endif
2018
2019#undef $2
2020
2021/* Override any GCC internal prototype to avoid an error.
2022 Use char because int might match the return type of a GCC
2023 builtin and then its argument prototype would still apply. */
2024#ifdef __cplusplus
2025extern "C"
2026#endif
2027char $2 ();
2028/* The GNU C library defines this for functions which it implements
2029 to always fail with ENOSYS. Some functions are actually named
2030 something starting with __ and the normal name is an alias. */
2031#if defined __stub_$2 || defined __stub___$2
2032choke me
2033#endif
2034
2035int
2036main ()
2037{
2038return $2 ();
2039 ;
2040 return 0;
2041}
2042_ACEOF
2043if ac_fn_cxx_try_link "$LINENO"; then :
2044 eval "$3=yes"
2045else
2046 eval "$3=no"
2047fi
2048rm -f core conftest.err conftest.$ac_objext \
2049 conftest$ac_exeext conftest.$ac_ext
2050fi
2051eval ac_res=\$$3
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053$as_echo "$ac_res" >&6; }
2054 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2055
2056} # ac_fn_cxx_check_func
2058 2057
2059# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES 2058# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2060# --------------------------------------------- 2059# ---------------------------------------------
2061# Tests whether TYPE exists after having included INCLUDES, setting cache 2060# Tests whether TYPE exists after having included INCLUDES, setting cache
2062# variable VAR accordingly. 2061# variable VAR accordingly.
4478$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h 4477$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4479 4478
4480 ;; 4479 ;;
4481esac 4480esac
4482 4481
4483ac_fn_cxx_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
4484if test "x$ac_cv_func_setlocale" = x""yes; then :
4485
4486else
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setlocale in -lxpg4" >&5 4482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setlocale" >&5
4488$as_echo_n "checking for setlocale in -lxpg4... " >&6; } 4483$as_echo_n "checking for library containing setlocale... " >&6; }
4489if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then : 4484if test "${ac_cv_search_setlocale+set}" = set; then :
4490 $as_echo_n "(cached) " >&6 4485 $as_echo_n "(cached) " >&6
4491else 4486else
4492 ac_check_lib_save_LIBS=$LIBS 4487 ac_func_search_save_LIBS=$LIBS
4493LIBS="-lxpg4 $LIBS"
4494cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495/* end confdefs.h. */ 4489/* end confdefs.h. */
4496 4490
4497/* Override any GCC internal prototype to avoid an error. 4491/* Override any GCC internal prototype to avoid an error.
4498 Use char because int might match the return type of a GCC 4492 Use char because int might match the return type of a GCC
4507return setlocale (); 4501return setlocale ();
4508 ; 4502 ;
4509 return 0; 4503 return 0;
4510} 4504}
4511_ACEOF 4505_ACEOF
4506for ac_lib in '' xpg4; do
4507 if test -z "$ac_lib"; then
4508 ac_res="none required"
4509 else
4510 ac_res=-l$ac_lib
4511 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4512 fi
4512if ac_fn_cxx_try_link "$LINENO"; then : 4513 if ac_fn_cxx_try_link "$LINENO"; then :
4513 ac_cv_lib_xpg4_setlocale=yes 4514 ac_cv_search_setlocale=$ac_res
4514else
4515 ac_cv_lib_xpg4_setlocale=no
4516fi 4515fi
4517rm -f core conftest.err conftest.$ac_objext \ 4516rm -f core conftest.err conftest.$ac_objext \
4518 conftest$ac_exeext conftest.$ac_ext 4517 conftest$ac_exeext
4519LIBS=$ac_check_lib_save_LIBS 4518 if test "${ac_cv_search_setlocale+set}" = set; then :
4519 break
4520fi 4520fi
4521done
4522if test "${ac_cv_search_setlocale+set}" = set; then :
4523
4524else
4525 ac_cv_search_setlocale=no
4526fi
4527rm conftest.$ac_ext
4528LIBS=$ac_func_search_save_LIBS
4529fi
4521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4_setlocale" >&5 4530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setlocale" >&5
4522$as_echo "$ac_cv_lib_xpg4_setlocale" >&6; } 4531$as_echo "$ac_cv_search_setlocale" >&6; }
4523if test "x$ac_cv_lib_xpg4_setlocale" = x""yes; then : 4532ac_res=$ac_cv_search_setlocale
4524 LIBS="$LIBS -lxpg4" 4533if test "$ac_res" != no; then :
4525fi 4534 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4526 4535
4527fi 4536fi
4528 4537
4529 4538
4530ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
4531if test "x$ac_cv_func_gethostbyname" = x""yes; then :
4532
4533else
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 4539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
4535$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 4540$as_echo_n "checking for library containing gethostbyname... " >&6; }
4536if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : 4541if test "${ac_cv_search_gethostbyname+set}" = set; then :
4537 $as_echo_n "(cached) " >&6 4542 $as_echo_n "(cached) " >&6
4538else 4543else
4539 ac_check_lib_save_LIBS=$LIBS 4544 ac_func_search_save_LIBS=$LIBS
4540LIBS="-lnsl $LIBS"
4541cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4545cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542/* end confdefs.h. */ 4546/* end confdefs.h. */
4543 4547
4544/* Override any GCC internal prototype to avoid an error. 4548/* Override any GCC internal prototype to avoid an error.
4545 Use char because int might match the return type of a GCC 4549 Use char because int might match the return type of a GCC
4554return gethostbyname (); 4558return gethostbyname ();
4555 ; 4559 ;
4556 return 0; 4560 return 0;
4557} 4561}
4558_ACEOF 4562_ACEOF
4563for ac_lib in '' nsl; do
4564 if test -z "$ac_lib"; then
4565 ac_res="none required"
4566 else
4567 ac_res=-l$ac_lib
4568 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4569 fi
4559if ac_fn_cxx_try_link "$LINENO"; then : 4570 if ac_fn_cxx_try_link "$LINENO"; then :
4560 ac_cv_lib_nsl_gethostbyname=yes 4571 ac_cv_search_gethostbyname=$ac_res
4561else
4562 ac_cv_lib_nsl_gethostbyname=no
4563fi 4572fi
4564rm -f core conftest.err conftest.$ac_objext \ 4573rm -f core conftest.err conftest.$ac_objext \
4565 conftest$ac_exeext conftest.$ac_ext 4574 conftest$ac_exeext
4566LIBS=$ac_check_lib_save_LIBS 4575 if test "${ac_cv_search_gethostbyname+set}" = set; then :
4576 break
4567fi 4577fi
4578done
4579if test "${ac_cv_search_gethostbyname+set}" = set; then :
4580
4581else
4582 ac_cv_search_gethostbyname=no
4583fi
4584rm conftest.$ac_ext
4585LIBS=$ac_func_search_save_LIBS
4586fi
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 4587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
4569$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 4588$as_echo "$ac_cv_search_gethostbyname" >&6; }
4570if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : 4589ac_res=$ac_cv_search_gethostbyname
4571 LIBS="$LIBS -lnsl" 4590if test "$ac_res" != no; then :
4572fi 4591 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4573 4592
4574fi 4593fi
4575 4594
4576ac_fn_cxx_check_func "$LINENO" "socket" "ac_cv_func_socket"
4577if test "x$ac_cv_func_socket" = x""yes; then :
4578
4579else
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 4595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
4581$as_echo_n "checking for socket in -lsocket... " >&6; } 4596$as_echo_n "checking for library containing socket... " >&6; }
4582if test "${ac_cv_lib_socket_socket+set}" = set; then : 4597if test "${ac_cv_search_socket+set}" = set; then :
4583 $as_echo_n "(cached) " >&6 4598 $as_echo_n "(cached) " >&6
4584else 4599else
4585 ac_check_lib_save_LIBS=$LIBS 4600 ac_func_search_save_LIBS=$LIBS
4586LIBS="-lsocket $LIBS"
4587cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4588/* end confdefs.h. */ 4602/* end confdefs.h. */
4589 4603
4590/* Override any GCC internal prototype to avoid an error. 4604/* Override any GCC internal prototype to avoid an error.
4591 Use char because int might match the return type of a GCC 4605 Use char because int might match the return type of a GCC
4600return socket (); 4614return socket ();
4601 ; 4615 ;
4602 return 0; 4616 return 0;
4603} 4617}
4604_ACEOF 4618_ACEOF
4619for ac_lib in '' socket; do
4620 if test -z "$ac_lib"; then
4621 ac_res="none required"
4622 else
4623 ac_res=-l$ac_lib
4624 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4625 fi
4605if ac_fn_cxx_try_link "$LINENO"; then : 4626 if ac_fn_cxx_try_link "$LINENO"; then :
4606 ac_cv_lib_socket_socket=yes 4627 ac_cv_search_socket=$ac_res
4607else
4608 ac_cv_lib_socket_socket=no
4609fi 4628fi
4610rm -f core conftest.err conftest.$ac_objext \ 4629rm -f core conftest.err conftest.$ac_objext \
4611 conftest$ac_exeext conftest.$ac_ext 4630 conftest$ac_exeext
4612LIBS=$ac_check_lib_save_LIBS 4631 if test "${ac_cv_search_socket+set}" = set; then :
4632 break
4613fi 4633fi
4634done
4635if test "${ac_cv_search_socket+set}" = set; then :
4636
4637else
4638 ac_cv_search_socket=no
4639fi
4640rm conftest.$ac_ext
4641LIBS=$ac_func_search_save_LIBS
4642fi
4614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 4643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
4615$as_echo "$ac_cv_lib_socket_socket" >&6; } 4644$as_echo "$ac_cv_search_socket" >&6; }
4616if test "x$ac_cv_lib_socket_socket" = x""yes; then : 4645ac_res=$ac_cv_search_socket
4617 LIBS="$LIBS -lsocket" 4646if test "$ac_res" != no; then :
4618fi 4647 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4619 4648
4620fi 4649fi
4621 4650
4622 4651
4623support_frills=yes 4652support_frills=yes
4818 fi 4847 fi
4819fi 4848fi
4820 4849
4821 4850
4822 4851
4852# Check whether --enable-pixbuf was given.
4853if test "${enable_pixbuf+set}" = set; then :
4854 enableval=$enable_pixbuf; if test x$enableval = xyes -o x$enableval = xno; then
4855 support_pixbuf=$enableval
4856 fi
4857fi
4858
4859
4823# Check whether --enable-transparency was given. 4860# Check whether --enable-transparency was given.
4824if test "${enable_transparency+set}" = set; then : 4861if test "${enable_transparency+set}" = set; then :
4825 enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then 4862 enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then
4826 support_inheritpixmap=$enableval 4863 support_inheritpixmap=$enableval
4827 fi 4864 fi
4977cat >>confdefs.h <<_ACEOF 5014cat >>confdefs.h <<_ACEOF
4978#define RXVTNAME "$RXVTNAME" 5015#define RXVTNAME "$RXVTNAME"
4979_ACEOF 5016_ACEOF
4980 5017
4981 5018
4982RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
4983 5019
4984 5020
4985# Check whether --enable-swapscreen was given. 5021# Check whether --enable-swapscreen was given.
4986if test "${enable_swapscreen+set}" = set; then : 5022if test "${enable_swapscreen+set}" = set; then :
4987 enableval=$enable_swapscreen; if test x$enableval = xno; then 5023 enableval=$enable_swapscreen; if test x$enableval = xno; then
6197 LDFLAGS=$ac_save_LDFLAGS 6233 LDFLAGS=$ac_save_LDFLAGS
6198 6234
6199fi 6235fi
6200 6236
6201 6237
6238PIXBUF_CFLAGS=
6239PIXBUF_LIBS=
6240
6241if test x$support_pixbuf = xyes; then
6242 support_pixbuf=no
6243 # Extract the first word of "pkg-config", so it can be a program name with args.
6244set dummy pkg-config; ac_word=$2
6245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6246$as_echo_n "checking for $ac_word... " >&6; }
6247if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6248 $as_echo_n "(cached) " >&6
6249else
6250 case $PKG_CONFIG in
6251 [\\/]* | ?:[\\/]*)
6252 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6253 ;;
6254 *)
6255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256for as_dir in $PATH
6257do
6258 IFS=$as_save_IFS
6259 test -z "$as_dir" && as_dir=.
6260 for ac_exec_ext in '' $ac_executable_extensions; do
6261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6262 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6264 break 2
6265 fi
6266done
6267 done
6268IFS=$as_save_IFS
6269
6270 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6271 ;;
6272esac
6273fi
6274PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6275if test -n "$PKG_CONFIG"; then
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6277$as_echo "$PKG_CONFIG" >&6; }
6278else
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6280$as_echo "no" >&6; }
6281fi
6282
6283
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf" >&5
6285$as_echo_n "checking for gdk-pixbuf... " >&6; }
6286 if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-xlib-2.0; then
6287 PIXBUF_CFLAGS="`$PKG_CONFIG gdk-pixbuf-xlib-2.0 --cflags`"
6288 PIXBUF_LIBS="`$PKG_CONFIG gdk-pixbuf-xlib-2.0 --libs`"
6289 support_pixbuf=yes
6290 fi
6291
6292 if test x$support_pixbuf = xyes; then
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6294$as_echo "ok" >&6; }
6295 support_afterimage=no
6296
6297$as_echo "#define HAVE_PIXBUF 1" >>confdefs.h
6298
6299
6300$as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h
6301
6302 else
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6304$as_echo "no" >&6; }
6305 fi
6306fi
6307
6308
6309
6310
6202AFTERIMAGE_CFLAGS= 6311AFTERIMAGE_CFLAGS=
6203AFTERIMAGE_LIBS= 6312AFTERIMAGE_LIBS=
6204AFTERIMAGE_VERSION= 6313AFTERIMAGE_VERSION=
6205 6314
6206if test x$support_afterimage = xyes; then 6315if test x$support_afterimage = xyes; then
6268 fi 6377 fi
6269 fi 6378 fi
6270 if test "x$support_afterimage" = "xyes"; then 6379 if test "x$support_afterimage" = "xyes"; then
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AFTERIMAGE_LIBS" >&5 6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AFTERIMAGE_LIBS" >&5
6272$as_echo "$AFTERIMAGE_LIBS" >&6; } 6381$as_echo "$AFTERIMAGE_LIBS" >&6; }
6382
6383$as_echo "#define HAVE_AFTERIMAGE 1" >>confdefs.h
6384
6385
6386$as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h
6387
6273 else 6388 else
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6275$as_echo "no" >&6; } 6390$as_echo "no" >&6; }
6276 fi 6391 fi
6277 fi 6392 fi
6278fi 6393fi
6394
6395
6396
6279 6397
6280for ac_header in \ 6398for ac_header in \
6281 sys/byteorder.h \ 6399 sys/byteorder.h \
6282 sys/ioctl.h \ 6400 sys/ioctl.h \
6283 sys/sockio.h \ 6401 sys/sockio.h \
6907_ACEOF 7025_ACEOF
6908 7026
6909fi 7027fi
6910 7028
6911 7029
6912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where utmpx is located" >&5
6913$as_echo_n "checking where utmpx is located... " >&6; }
6914if test "${pt_cv_path_utmpx+set}" = set; then :
6915 $as_echo_n "(cached) " >&6
6916else
6917 if test "$cross_compiling" = yes; then :
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define UTMPX_FILE in config.h manually" >&5
6919$as_echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;}
6920else
6921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6922/* end confdefs.h. */
6923#include <stdio.h>
6924#include <stdlib.h>
6925#include <sys/types.h>
6926#include <utmpx.h>
6927#include <errno.h>
6928#include <sys/stat.h>
6929#ifdef HAVE_STRING_H
6930#include <string.h>
6931#endif
6932main()
6933{
6934 char **u, *p, *utmplist[] = {
6935#ifdef UTMPX_FILE
6936 UTMPX_FILE,
6937#endif
6938#ifdef _PATH_UTMPX
6939 _PATH_UTMPX,
6940#endif
6941 "/var/adm/utmpx", "/etc/utmpx", NULL };
6942 FILE *a, *f=fopen("conftestval", "w");
6943 struct stat statu, statux;
6944 if (!f) exit(1);
6945 for (u = utmplist; *u; u++) {
6946 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
6947 if (stat(*u, &statux) < 0)
6948 continue;
6949 p = strdup(*u);
6950 p[strlen(p) - 1] = '\0';
6951 if (stat(p, &statu) >= 0
6952 && (statu.st_mtime - statux.st_mtime > 86400))
6953 continue;
6954 fprintf(f, "%s\n", *u);
6955 exit(0);
6956 }
6957 }
6958 exit(0);
6959}
6960_ACEOF
6961if ac_fn_cxx_try_run "$LINENO"; then :
6962 pt_cv_path_utmpx=`cat conftestval`
6963else
6964 pt_cv_path_utmpx=
6965fi
6966rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6967 conftest.$ac_objext conftest.beam conftest.$ac_ext
6968fi
6969
6970fi
6971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmpx" >&5
6972$as_echo "$pt_cv_path_utmpx" >&6; }
6973if test x$pt_cv_path_utmpx != x; then
6974
6975cat >>confdefs.h <<_ACEOF
6976#define UTMPX_FILE "$pt_cv_path_utmpx"
6977_ACEOF
6978
6979fi
6980
6981
6982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where wtmp is located" >&5 7030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where wtmp is located" >&5
6983$as_echo_n "checking where wtmp is located... " >&6; } 7031$as_echo_n "checking where wtmp is located... " >&6; }
6984if test "${pt_cv_path_wtmp+set}" = set; then : 7032if test "${pt_cv_path_wtmp+set}" = set; then :
6985 $as_echo_n "(cached) " >&6 7033 $as_echo_n "(cached) " >&6
6986else 7034else
7514done 7562done
7515 7563
7516 7564
7517have_clone=no 7565have_clone=no
7518 7566
7519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptym/clone" >&5
7520$as_echo_n "checking for /dev/ptym/clone... " >&6; }
7521if test -e /dev/ptym/clone; then
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7523$as_echo "yes" >&6; }
7524
7525$as_echo "#define HAVE_DEV_CLONE 1" >>confdefs.h
7526
7527
7528$as_echo "#define CLONE_DEVICE \"/dev/ptym/clone\"" >>confdefs.h
7529
7530 have_clone=yes
7531else
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7533$as_echo "no" >&6; }
7534fi
7535
7536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 7567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
7537$as_echo_n "checking for /dev/ptc... " >&6; } 7568$as_echo_n "checking for /dev/ptc... " >&6; }
7538if test -e /dev/ptc; then 7569if test -e /dev/ptc; then
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7540$as_echo "yes" >&6; } 7571$as_echo "yes" >&6; }
7541
7542$as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
7543
7544 7572
7545$as_echo "#define CLONE_DEVICE \"/dev/ptc\"" >>confdefs.h 7573$as_echo "#define CLONE_DEVICE \"/dev/ptc\"" >>confdefs.h
7546 7574
7547 have_clone=yes 7575 have_clone=yes
7548else 7576else
7605rm -f core conftest.err conftest.$ac_objext \ 7633rm -f core conftest.err conftest.$ac_objext \
7606 conftest$ac_exeext conftest.$ac_ext 7634 conftest$ac_exeext conftest.$ac_ext
7607fi 7635fi
7608 7636
7609if test -z "$unix98_pty"; then 7637if test -z "$unix98_pty"; then
7610 for ac_func in openpty
7611do :
7612 ac_fn_cxx_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
7613if test "x$ac_cv_func_openpty" = x""yes; then :
7614 cat >>confdefs.h <<_ACEOF
7615#define HAVE_OPENPTY 1
7616_ACEOF
7617
7618else
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
7620$as_echo_n "checking for openpty in -lutil... " >&6; } 7639$as_echo_n "checking for library containing openpty... " >&6; }
7621if test "${ac_cv_lib_util_openpty+set}" = set; then : 7640if test "${ac_cv_search_openpty+set}" = set; then :
7622 $as_echo_n "(cached) " >&6 7641 $as_echo_n "(cached) " >&6
7623else 7642else
7624 ac_check_lib_save_LIBS=$LIBS 7643 ac_func_search_save_LIBS=$LIBS
7625LIBS="-lutil $LIBS"
7626cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627/* end confdefs.h. */ 7645/* end confdefs.h. */
7628 7646
7629/* Override any GCC internal prototype to avoid an error. 7647/* Override any GCC internal prototype to avoid an error.
7630 Use char because int might match the return type of a GCC 7648 Use char because int might match the return type of a GCC
7639return openpty (); 7657return openpty ();
7640 ; 7658 ;
7641 return 0; 7659 return 0;
7642} 7660}
7643_ACEOF 7661_ACEOF
7662for ac_lib in '' util; do
7663 if test -z "$ac_lib"; then
7664 ac_res="none required"
7665 else
7666 ac_res=-l$ac_lib
7667 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7668 fi
7644if ac_fn_cxx_try_link "$LINENO"; then : 7669 if ac_fn_cxx_try_link "$LINENO"; then :
7645 ac_cv_lib_util_openpty=yes 7670 ac_cv_search_openpty=$ac_res
7646else
7647 ac_cv_lib_util_openpty=no
7648fi 7671fi
7649rm -f core conftest.err conftest.$ac_objext \ 7672rm -f core conftest.err conftest.$ac_objext \
7650 conftest$ac_exeext conftest.$ac_ext 7673 conftest$ac_exeext
7651LIBS=$ac_check_lib_save_LIBS 7674 if test "${ac_cv_search_openpty+set}" = set; then :
7652fi 7675 break
7653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
7654$as_echo "$ac_cv_lib_util_openpty" >&6; }
7655if test "x$ac_cv_lib_util_openpty" = x""yes; then :
7656 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
7657 LIBS="$LIBS -lutil"
7658fi
7659
7660fi 7676fi
7661done 7677done
7678if test "${ac_cv_search_openpty+set}" = set; then :
7679
7680else
7681 ac_cv_search_openpty=no
7682fi
7683rm conftest.$ac_ext
7684LIBS=$ac_func_search_save_LIBS
7685fi
7686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
7687$as_echo "$ac_cv_search_openpty" >&6; }
7688ac_res=$ac_cv_search_openpty
7689if test "$ac_res" != no; then :
7690 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7691
7692$as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
7693
7694fi
7662 7695
7663fi 7696fi
7664 7697
7665 7698
7666 7699
7919 7952
7920fi 7953fi
7921if test x$support_mouseslipwheel = xyes; then 7954if test x$support_mouseslipwheel = xyes; then
7922 7955
7923$as_echo "#define MOUSE_SLIP_WHEELING 1" >>confdefs.h 7956$as_echo "#define MOUSE_SLIP_WHEELING 1" >>confdefs.h
7924
7925fi
7926if test x$support_afterimage = xyes; then
7927
7928$as_echo "#define HAVE_AFTERIMAGE 1" >>confdefs.h
7929
7930
7931$as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h
7932 7957
7933fi 7958fi
7934 7959
7935 7960
7936scrolltypes=plain 7961scrolltypes=plain
8145 8170
8146 8171
8147 8172
8148 8173
8149 8174
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163test "$program_prefix" != NONE &&
8164 program_transform_name="s&^&$program_prefix&;$program_transform_name"
8165# Use a double $ so make ignores it.
8166test "$program_suffix" != NONE &&
8167 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
8168# Double any \ or $.
8169# By default was `s,x,x', remove it if useless.
8170ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
8171program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
8172 8175
8173 8176
8174ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile" 8177ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile"
8175 8178
8176cat >confcache <<\_ACEOF 8179cat >confcache <<\_ACEOF

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines