comparison configure @ 109431:799b50142743

Merge from mainline.
author Katsumi Yamaoka <yamaoka@jpl.org>
date Sun, 11 Jul 2010 22:57:47 +0000
parents 8f3464b85afb
children b7e047772c64
comparison
equal deleted inserted replaced
109430:0b8608a36b55 109431:799b50142743
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.65 for emacs 24.0.50. 3 # Generated by GNU Autoconf 2.66 for emacs 24.0.50.
4 # 4 #
5 # 5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Inc. 8 # Foundation, Inc.
9 # 9 #
10 # 10 #
11 # This configure script is free software; the Free Software Foundation 11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it. 12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ## 13 ## -------------------- ##
314 } 314 }
315 s/.*/./; q'` 315 s/.*/./; q'`
316 test -d "$as_dir" && break 316 test -d "$as_dir" && break
317 done 317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs" 318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320 320
321 321
322 } # as_fn_mkdir_p 322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE 323 # as_fn_append VAR VALUE
324 # ---------------------- 324 # ----------------------
354 as_val=`expr "$@" || test $? -eq 1` 354 as_val=`expr "$@" || test $? -eq 1`
355 } 355 }
356 fi # as_fn_arith 356 fi # as_fn_arith
357 357
358 358
359 # as_fn_error ERROR [LINENO LOG_FD] 359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # --------------------------------- 360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0. 363 # script with STATUS, using 1 if that was 0.
364 as_fn_error () 364 as_fn_error ()
365 { 365 {
366 as_status=$?; test $as_status -eq 0 && as_status=1 366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$3"; then 367 if test "$4"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370 fi 370 fi
371 $as_echo "$as_me: error: $1" >&2 371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status 372 as_fn_exit $as_status
373 } # as_fn_error 373 } # as_fn_error
374 374
375 if expr a : '\(a\)' >/dev/null 2>&1 && 375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then 376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
528 528
529 test -n "$DJDIR" || exec 7<&0 </dev/null 529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1 530 exec 6>&1
531 531
532 # Name of the host. 532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 533 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534 # so uname gets run too. 534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536 536
537 # 537 #
538 # Initializations. 538 # Initializations.
945 945
946 -disable-* | --disable-*) 946 -disable-* | --disable-*)
947 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 947 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
948 # Reject names that are not valid shell variable names. 948 # Reject names that are not valid shell variable names.
949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950 as_fn_error "invalid feature name: $ac_useropt" 950 as_fn_error $? "invalid feature name: $ac_useropt"
951 ac_useropt_orig=$ac_useropt 951 ac_useropt_orig=$ac_useropt
952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953 case $ac_user_opts in 953 case $ac_user_opts in
954 *" 954 *"
955 "enable_$ac_useropt" 955 "enable_$ac_useropt"
971 971
972 -enable-* | --enable-*) 972 -enable-* | --enable-*)
973 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 973 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
974 # Reject names that are not valid shell variable names. 974 # Reject names that are not valid shell variable names.
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976 as_fn_error "invalid feature name: $ac_useropt" 976 as_fn_error $? "invalid feature name: $ac_useropt"
977 ac_useropt_orig=$ac_useropt 977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 978 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in 979 case $ac_user_opts in
980 *" 980 *"
981 "enable_$ac_useropt" 981 "enable_$ac_useropt"
1175 1175
1176 -with-* | --with-*) 1176 -with-* | --with-*)
1177 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1177 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1178 # Reject names that are not valid shell variable names. 1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180 as_fn_error "invalid package name: $ac_useropt" 1180 as_fn_error $? "invalid package name: $ac_useropt"
1181 ac_useropt_orig=$ac_useropt 1181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in 1183 case $ac_user_opts in
1184 *" 1184 *"
1185 "with_$ac_useropt" 1185 "with_$ac_useropt"
1191 1191
1192 -without-* | --without-*) 1192 -without-* | --without-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1193 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1194 # Reject names that are not valid shell variable names. 1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 as_fn_error "invalid package name: $ac_useropt" 1196 as_fn_error $? "invalid package name: $ac_useropt"
1197 ac_useropt_orig=$ac_useropt 1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in 1199 case $ac_user_opts in
1200 *" 1200 *"
1201 "with_$ac_useropt" 1201 "with_$ac_useropt"
1221 ac_prev=x_libraries ;; 1221 ac_prev=x_libraries ;;
1222 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1222 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1223 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1223 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1224 x_libraries=$ac_optarg ;; 1224 x_libraries=$ac_optarg ;;
1225 1225
1226 -*) as_fn_error "unrecognized option: \`$ac_option' 1226 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1227 Try \`$0 --help' for more information." 1227 Try \`$0 --help' for more information"
1228 ;; 1228 ;;
1229 1229
1230 *=*) 1230 *=*)
1231 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1231 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1232 # Reject names that are not valid shell variable names. 1232 # Reject names that are not valid shell variable names.
1233 case $ac_envvar in #( 1233 case $ac_envvar in #(
1234 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1234 '' | [0-9]* | *[!_$as_cr_alnum]* )
1235 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1235 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1236 esac 1236 esac
1237 eval $ac_envvar=\$ac_optarg 1237 eval $ac_envvar=\$ac_optarg
1238 export $ac_envvar ;; 1238 export $ac_envvar ;;
1239 1239
1240 *) 1240 *)
1248 esac 1248 esac
1249 done 1249 done
1250 1250
1251 if test -n "$ac_prev"; then 1251 if test -n "$ac_prev"; then
1252 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1252 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1253 as_fn_error "missing argument to $ac_option" 1253 as_fn_error $? "missing argument to $ac_option"
1254 fi 1254 fi
1255 1255
1256 if test -n "$ac_unrecognized_opts"; then 1256 if test -n "$ac_unrecognized_opts"; then
1257 case $enable_option_checking in 1257 case $enable_option_checking in
1258 no) ;; 1258 no) ;;
1259 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1259 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1260 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1260 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1261 esac 1261 esac
1262 fi 1262 fi
1263 1263
1264 # Check all directory arguments for consistency. 1264 # Check all directory arguments for consistency.
1277 # Be sure to have absolute directory names. 1277 # Be sure to have absolute directory names.
1278 case $ac_val in 1278 case $ac_val in
1279 [\\/$]* | ?:[\\/]* ) continue;; 1279 [\\/$]* | ?:[\\/]* ) continue;;
1280 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1280 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1281 esac 1281 esac
1282 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1282 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1283 done 1283 done
1284 1284
1285 # There might be people who depend on the old broken behavior: `$host' 1285 # There might be people who depend on the old broken behavior: `$host'
1286 # used to hold the argument of --host etc. 1286 # used to hold the argument of --host etc.
1287 # FIXME: To remove some day. 1287 # FIXME: To remove some day.
1291 1291
1292 # FIXME: To remove some day. 1292 # FIXME: To remove some day.
1293 if test "x$host_alias" != x; then 1293 if test "x$host_alias" != x; then
1294 if test "x$build_alias" = x; then 1294 if test "x$build_alias" = x; then
1295 cross_compiling=maybe 1295 cross_compiling=maybe
1296 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1296 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1297 If a cross compiler is detected then cross compile mode will be used." >&2 1297 If a cross compiler is detected then cross compile mode will be used" >&2
1298 elif test "x$build_alias" != "x$host_alias"; then 1298 elif test "x$build_alias" != "x$host_alias"; then
1299 cross_compiling=yes 1299 cross_compiling=yes
1300 fi 1300 fi
1301 fi 1301 fi
1302 1302
1307 1307
1308 1308
1309 ac_pwd=`pwd` && test -n "$ac_pwd" && 1309 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1310 ac_ls_di=`ls -di .` && 1310 ac_ls_di=`ls -di .` &&
1311 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1311 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1312 as_fn_error "working directory cannot be determined" 1312 as_fn_error $? "working directory cannot be determined"
1313 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1313 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314 as_fn_error "pwd does not report name of working directory" 1314 as_fn_error $? "pwd does not report name of working directory"
1315 1315
1316 1316
1317 # Find the source files, if location was not specified. 1317 # Find the source files, if location was not specified.
1318 if test -z "$srcdir"; then 1318 if test -z "$srcdir"; then
1319 ac_srcdir_defaulted=yes 1319 ac_srcdir_defaulted=yes
1348 else 1348 else
1349 ac_srcdir_defaulted=no 1349 ac_srcdir_defaulted=no
1350 fi 1350 fi
1351 if test ! -r "$srcdir/$ac_unique_file"; then 1351 if test ! -r "$srcdir/$ac_unique_file"; then
1352 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1352 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1353 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1353 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1354 fi 1354 fi
1355 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1355 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356 ac_abs_confdir=`( 1356 ac_abs_confdir=`(
1357 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1357 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1358 pwd)` 1358 pwd)`
1359 # When building in place, set srcdir=. 1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then 1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1361 srcdir=. 1361 srcdir=.
1362 fi 1362 fi
1392 Configuration: 1392 Configuration:
1393 -h, --help display this help and exit 1393 -h, --help display this help and exit
1394 --help=short display options specific to this package 1394 --help=short display options specific to this package
1395 --help=recursive display the short help of all the included packages 1395 --help=recursive display the short help of all the included packages
1396 -V, --version display version information and exit 1396 -V, --version display version information and exit
1397 -q, --quiet, --silent do not print \`checking...' messages 1397 -q, --quiet, --silent do not print \`checking ...' messages
1398 --cache-file=FILE cache test results in FILE [disabled] 1398 --cache-file=FILE cache test results in FILE [disabled]
1399 -C, --config-cache alias for \`--cache-file=config.cache' 1399 -C, --config-cache alias for \`--cache-file=config.cache'
1400 -n, --no-create do not create output files 1400 -n, --no-create do not create output files
1401 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1401 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1402 1402
1608 1608
1609 test -n "$ac_init_help" && exit $ac_status 1609 test -n "$ac_init_help" && exit $ac_status
1610 if $ac_init_version; then 1610 if $ac_init_version; then
1611 cat <<\_ACEOF 1611 cat <<\_ACEOF
1612 emacs configure 24.0.50 1612 emacs configure 24.0.50
1613 generated by GNU Autoconf 2.65 1613 generated by GNU Autoconf 2.66
1614 1614
1615 Copyright (C) 2009 Free Software Foundation, Inc. 1615 Copyright (C) 2010 Free Software Foundation, Inc.
1616 This configure script is free software; the Free Software Foundation 1616 This configure script is free software; the Free Software Foundation
1617 gives unlimited permission to copy, distribute and modify it. 1617 gives unlimited permission to copy, distribute and modify it.
1618 _ACEOF 1618 _ACEOF
1619 exit 1619 exit
1620 fi 1620 fi
1750 # the include files in INCLUDES and setting the cache variable VAR 1750 # the include files in INCLUDES and setting the cache variable VAR
1751 # accordingly. 1751 # accordingly.
1752 ac_fn_c_check_header_mongrel () 1752 ac_fn_c_check_header_mongrel ()
1753 { 1753 {
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1755 if eval "test \"\${$3+set}\"" = set; then :
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757 $as_echo_n "checking for $2... " >&6; } 1757 $as_echo_n "checking for $2... " >&6; }
1758 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1758 if eval "test \"\${$3+set}\"" = set; then :
1759 $as_echo_n "(cached) " >&6 1759 $as_echo_n "(cached) " >&6
1760 fi 1760 fi
1761 eval ac_res=\$$3 1761 eval ac_res=\$$3
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763 $as_echo "$ac_res" >&6; } 1763 $as_echo "$ac_res" >&6; }
1816 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1816 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1817 ;; 1817 ;;
1818 esac 1818 esac
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; } 1820 $as_echo_n "checking for $2... " >&6; }
1821 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1821 if eval "test \"\${$3+set}\"" = set; then :
1822 $as_echo_n "(cached) " >&6 1822 $as_echo_n "(cached) " >&6
1823 else 1823 else
1824 eval "$3=\$ac_header_compiler" 1824 eval "$3=\$ac_header_compiler"
1825 fi 1825 fi
1826 eval ac_res=\$$3 1826 eval ac_res=\$$3
1880 ac_fn_c_check_header_compile () 1880 ac_fn_c_check_header_compile ()
1881 { 1881 {
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884 $as_echo_n "checking for $2... " >&6; } 1884 $as_echo_n "checking for $2... " >&6; }
1885 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1885 if eval "test \"\${$3+set}\"" = set; then :
1886 $as_echo_n "(cached) " >&6 1886 $as_echo_n "(cached) " >&6
1887 else 1887 else
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h. */ 1889 /* end confdefs.h. */
1890 $4 1890 $4
1902 $as_echo "$ac_res" >&6; } 1902 $as_echo "$ac_res" >&6; }
1903 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1903 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1904 1904
1905 } # ac_fn_c_check_header_compile 1905 } # ac_fn_c_check_header_compile
1906 1906
1907 # ac_fn_c_check_decl LINENO SYMBOL VAR 1907 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1908 # ------------------------------------ 1908 # ---------------------------------------------
1909 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. 1909 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1910 # accordingly.
1910 ac_fn_c_check_decl () 1911 ac_fn_c_check_decl ()
1911 { 1912 {
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 1914 as_decl_name=`echo $2|sed 's/ *(.*//'`
1914 $as_echo_n "checking whether $2 is declared... " >&6; } 1915 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1915 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1917 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1918 if eval "test \"\${$3+set}\"" = set; then :
1916 $as_echo_n "(cached) " >&6 1919 $as_echo_n "(cached) " >&6
1917 else 1920 else
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */ 1922 /* end confdefs.h. */
1920 $4 1923 $4
1921 int 1924 int
1922 main () 1925 main ()
1923 { 1926 {
1924 #ifndef $2 1927 #ifndef $as_decl_name
1925 (void) $2; 1928 #ifdef __cplusplus
1929 (void) $as_decl_use;
1930 #else
1931 (void) $as_decl_name;
1932 #endif
1926 #endif 1933 #endif
1927 1934
1928 ; 1935 ;
1929 return 0; 1936 return 0;
1930 } 1937 }
1949 ac_fn_c_check_header_preproc () 1956 ac_fn_c_check_header_preproc ()
1950 { 1957 {
1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1953 $as_echo_n "checking for $2... " >&6; } 1960 $as_echo_n "checking for $2... " >&6; }
1954 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1961 if eval "test \"\${$3+set}\"" = set; then :
1955 $as_echo_n "(cached) " >&6 1962 $as_echo_n "(cached) " >&6
1956 else 1963 else
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */ 1965 /* end confdefs.h. */
1959 #include <$2> 1966 #include <$2>
1979 ac_fn_c_check_member () 1986 ac_fn_c_check_member ()
1980 { 1987 {
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1988 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1983 $as_echo_n "checking for $2.$3... " >&6; } 1990 $as_echo_n "checking for $2.$3... " >&6; }
1984 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : 1991 if eval "test \"\${$4+set}\"" = set; then :
1985 $as_echo_n "(cached) " >&6 1992 $as_echo_n "(cached) " >&6
1986 else 1993 else
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */ 1995 /* end confdefs.h. */
1989 $5 1996 $5
2035 ac_fn_c_check_func () 2042 ac_fn_c_check_func ()
2036 { 2043 {
2037 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2039 $as_echo_n "checking for $2... " >&6; } 2046 $as_echo_n "checking for $2... " >&6; }
2040 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2047 if eval "test \"\${$3+set}\"" = set; then :
2041 $as_echo_n "(cached) " >&6 2048 $as_echo_n "(cached) " >&6
2042 else 2049 else
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */ 2051 /* end confdefs.h. */
2045 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2052 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2103 ac_fn_c_check_type () 2110 ac_fn_c_check_type ()
2104 { 2111 {
2105 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2112 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2107 $as_echo_n "checking for $2... " >&6; } 2114 $as_echo_n "checking for $2... " >&6; }
2108 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2115 if eval "test \"\${$3+set}\"" = set; then :
2109 $as_echo_n "(cached) " >&6 2116 $as_echo_n "(cached) " >&6
2110 else 2117 else
2111 eval "$3=no" 2118 eval "$3=no"
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */ 2120 /* end confdefs.h. */
2152 cat >config.log <<_ACEOF 2159 cat >config.log <<_ACEOF
2153 This file contains any messages produced by compilers while 2160 This file contains any messages produced by compilers while
2154 running configure, to aid debugging if configure makes a mistake. 2161 running configure, to aid debugging if configure makes a mistake.
2155 2162
2156 It was created by emacs $as_me 24.0.50, which was 2163 It was created by emacs $as_me 24.0.50, which was
2157 generated by GNU Autoconf 2.65. Invocation command line was 2164 generated by GNU Autoconf 2.66. Invocation command line was
2158 2165
2159 $ $0 $@ 2166 $ $0 $@
2160 2167
2161 _ACEOF 2168 _ACEOF
2162 exec 5>>config.log 2169 exec 5>>config.log
2262 trap 'exit_status=$? 2269 trap 'exit_status=$?
2263 # Save into config.log some information that might help in debugging. 2270 # Save into config.log some information that might help in debugging.
2264 { 2271 {
2265 echo 2272 echo
2266 2273
2267 cat <<\_ASBOX 2274 $as_echo "## ---------------- ##
2268 ## ---------------- ##
2269 ## Cache variables. ## 2275 ## Cache variables. ##
2270 ## ---------------- ## 2276 ## ---------------- ##"
2271 _ASBOX
2272 echo 2277 echo
2273 # The following way of writing the cache mishandles newlines in values, 2278 # The following way of writing the cache mishandles newlines in values,
2274 ( 2279 (
2275 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2280 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2276 eval ac_val=\$$ac_var 2281 eval ac_val=\$$ac_var
2300 esac | 2305 esac |
2301 sort 2306 sort
2302 ) 2307 )
2303 echo 2308 echo
2304 2309
2305 cat <<\_ASBOX 2310 $as_echo "## ----------------- ##
2306 ## ----------------- ##
2307 ## Output variables. ## 2311 ## Output variables. ##
2308 ## ----------------- ## 2312 ## ----------------- ##"
2309 _ASBOX
2310 echo 2313 echo
2311 for ac_var in $ac_subst_vars 2314 for ac_var in $ac_subst_vars
2312 do 2315 do
2313 eval ac_val=\$$ac_var 2316 eval ac_val=\$$ac_var
2314 case $ac_val in 2317 case $ac_val in
2317 $as_echo "$ac_var='\''$ac_val'\''" 2320 $as_echo "$ac_var='\''$ac_val'\''"
2318 done | sort 2321 done | sort
2319 echo 2322 echo
2320 2323
2321 if test -n "$ac_subst_files"; then 2324 if test -n "$ac_subst_files"; then
2322 cat <<\_ASBOX 2325 $as_echo "## ------------------- ##
2323 ## ------------------- ##
2324 ## File substitutions. ## 2326 ## File substitutions. ##
2325 ## ------------------- ## 2327 ## ------------------- ##"
2326 _ASBOX
2327 echo 2328 echo
2328 for ac_var in $ac_subst_files 2329 for ac_var in $ac_subst_files
2329 do 2330 do
2330 eval ac_val=\$$ac_var 2331 eval ac_val=\$$ac_var
2331 case $ac_val in 2332 case $ac_val in
2335 done | sort 2336 done | sort
2336 echo 2337 echo
2337 fi 2338 fi
2338 2339
2339 if test -s confdefs.h; then 2340 if test -s confdefs.h; then
2340 cat <<\_ASBOX 2341 $as_echo "## ----------- ##
2341 ## ----------- ##
2342 ## confdefs.h. ## 2342 ## confdefs.h. ##
2343 ## ----------- ## 2343 ## ----------- ##"
2344 _ASBOX
2345 echo 2344 echo
2346 cat confdefs.h 2345 cat confdefs.h
2347 echo 2346 echo
2348 fi 2347 fi
2349 test "$ac_signal" != 0 && 2348 test "$ac_signal" != 0 &&
2394 # Let the site file select an alternate cache file if it wants to. 2393 # Let the site file select an alternate cache file if it wants to.
2395 # Prefer an explicitly selected file to automatically selected ones. 2394 # Prefer an explicitly selected file to automatically selected ones.
2396 ac_site_file1=NONE 2395 ac_site_file1=NONE
2397 ac_site_file2=NONE 2396 ac_site_file2=NONE
2398 if test -n "$CONFIG_SITE"; then 2397 if test -n "$CONFIG_SITE"; then
2399 ac_site_file1=$CONFIG_SITE 2398 # We do not want a PATH search for config.site.
2399 case $CONFIG_SITE in #((
2400 -*) ac_site_file1=./$CONFIG_SITE;;
2401 */*) ac_site_file1=$CONFIG_SITE;;
2402 *) ac_site_file1=./$CONFIG_SITE;;
2403 esac
2400 elif test "x$prefix" != xNONE; then 2404 elif test "x$prefix" != xNONE; then
2401 ac_site_file1=$prefix/share/config.site 2405 ac_site_file1=$prefix/share/config.site
2402 ac_site_file2=$prefix/etc/config.site 2406 ac_site_file2=$prefix/etc/config.site
2403 else 2407 else
2404 ac_site_file1=$ac_default_prefix/share/config.site 2408 ac_site_file1=$ac_default_prefix/share/config.site
2409 test "x$ac_site_file" = xNONE && continue 2413 test "x$ac_site_file" = xNONE && continue
2410 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2414 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2415 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2412 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2416 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2413 sed 's/^/| /' "$ac_site_file" >&5 2417 sed 's/^/| /' "$ac_site_file" >&5
2414 . "$ac_site_file" 2418 . "$ac_site_file" \
2419 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2421 as_fn_error $? "failed to load site script $ac_site_file
2422 See \`config.log' for more details" "$LINENO" 5; }
2415 fi 2423 fi
2416 done 2424 done
2417 2425
2418 if test -r "$cache_file"; then 2426 if test -r "$cache_file"; then
2419 # Some versions of bash will fail to source /dev/null (special files 2427 # Some versions of bash will fail to source /dev/null (special files
2490 if $ac_cache_corrupted; then 2498 if $ac_cache_corrupted; then
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2499 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2501 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2494 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2502 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2495 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2503 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2496 fi 2504 fi
2497 ## -------------------- ## 2505 ## -------------------- ##
2498 ## Main body of script. ## 2506 ## Main body of script. ##
2499 ## -------------------- ## 2507 ## -------------------- ##
2500 2508
2664 a | at | ath | athe | athen | athena ) val=athena ;; 2672 a | at | ath | athe | athen | athena ) val=athena ;;
2665 m | mo | mot | moti | motif ) val=motif ;; 2673 m | mo | mot | moti | motif ) val=motif ;;
2666 g | gt | gtk ) val=gtk ;; 2674 g | gt | gtk ) val=gtk ;;
2667 gtk3 ) val=gtk3 ;; 2675 gtk3 ) val=gtk3 ;;
2668 * ) 2676 * )
2669 as_fn_error "\`--with-x-toolkit=$withval' is invalid; 2677 as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
2670 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or 2678 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
2671 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5 2679 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
2672 ;; 2680 ;;
2673 esac 2681 esac
2674 with_x_toolkit=$val 2682 with_x_toolkit=$val
2943 stringbytes) ac_gc_check_stringbytes=1 ;; 2951 stringbytes) ac_gc_check_stringbytes=1 ;;
2944 stringoverrun) ac_gc_check_string_overrun=1 ;; 2952 stringoverrun) ac_gc_check_string_overrun=1 ;;
2945 stringfreelist) ac_gc_check_string_free_list=1 ;; 2953 stringfreelist) ac_gc_check_string_free_list=1 ;;
2946 xmallocoverrun) ac_xmalloc_overrun=1 ;; 2954 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2947 conslist) ac_gc_check_cons_list=1 ;; 2955 conslist) ac_gc_check_cons_list=1 ;;
2948 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;; 2956 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
2949 esac 2957 esac
2950 done 2958 done
2951 IFS="$ac_save_IFS" 2959 IFS="$ac_save_IFS"
2952 2960
2953 if test x$ac_enable_checking != x ; then 2961 if test x$ac_enable_checking != x ; then
3059 3067
3060 ### Canonicalize the configuration name. 3068 ### Canonicalize the configuration name.
3061 3069
3062 ac_aux_dir= 3070 ac_aux_dir=
3063 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3071 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3064 for ac_t in install-sh install.sh shtool; do 3072 if test -f "$ac_dir/install-sh"; then
3065 if test -f "$ac_dir/$ac_t"; then 3073 ac_aux_dir=$ac_dir
3066 ac_aux_dir=$ac_dir 3074 ac_install_sh="$ac_aux_dir/install-sh -c"
3067 ac_install_sh="$ac_aux_dir/$ac_t -c" 3075 break
3068 break 2 3076 elif test -f "$ac_dir/install.sh"; then
3069 fi 3077 ac_aux_dir=$ac_dir
3070 done 3078 ac_install_sh="$ac_aux_dir/install.sh -c"
3079 break
3080 elif test -f "$ac_dir/shtool"; then
3081 ac_aux_dir=$ac_dir
3082 ac_install_sh="$ac_aux_dir/shtool install -c"
3083 break
3084 fi
3071 done 3085 done
3072 if test -z "$ac_aux_dir"; then 3086 if test -z "$ac_aux_dir"; then
3073 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3087 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3074 fi 3088 fi
3075 3089
3076 # These three variables are undocumented and unsupported, 3090 # These three variables are undocumented and unsupported,
3077 # and are intended to be withdrawn in a future Autoconf release. 3091 # and are intended to be withdrawn in a future Autoconf release.
3078 # They can cause serious problems if a builder's source tree is in a directory 3092 # They can cause serious problems if a builder's source tree is in a directory
3082 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3096 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3083 3097
3084 3098
3085 # Make sure we can run config.sub. 3099 # Make sure we can run config.sub.
3086 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3100 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3087 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3101 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3088 3102
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3090 $as_echo_n "checking build system type... " >&6; } 3104 $as_echo_n "checking build system type... " >&6; }
3091 if test "${ac_cv_build+set}" = set; then : 3105 if test "${ac_cv_build+set}" = set; then :
3092 $as_echo_n "(cached) " >&6 3106 $as_echo_n "(cached) " >&6
3093 else 3107 else
3094 ac_build_alias=$build_alias 3108 ac_build_alias=$build_alias
3095 test "x$ac_build_alias" = x && 3109 test "x$ac_build_alias" = x &&
3096 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3110 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3097 test "x$ac_build_alias" = x && 3111 test "x$ac_build_alias" = x &&
3098 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 3112 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3099 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3113 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3100 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3114 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3101 3115
3102 fi 3116 fi
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3104 $as_echo "$ac_cv_build" >&6; } 3118 $as_echo "$ac_cv_build" >&6; }
3105 case $ac_cv_build in 3119 case $ac_cv_build in
3106 *-*-*) ;; 3120 *-*-*) ;;
3107 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 3121 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3108 esac 3122 esac
3109 build=$ac_cv_build 3123 build=$ac_cv_build
3110 ac_save_IFS=$IFS; IFS='-' 3124 ac_save_IFS=$IFS; IFS='-'
3111 set x $ac_cv_build 3125 set x $ac_cv_build
3112 shift 3126 shift
3127 else 3141 else
3128 if test "x$host_alias" = x; then 3142 if test "x$host_alias" = x; then
3129 ac_cv_host=$ac_cv_build 3143 ac_cv_host=$ac_cv_build
3130 else 3144 else
3131 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3145 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3132 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3146 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3133 fi 3147 fi
3134 3148
3135 fi 3149 fi
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3137 $as_echo "$ac_cv_host" >&6; } 3151 $as_echo "$ac_cv_host" >&6; }
3138 case $ac_cv_host in 3152 case $ac_cv_host in
3139 *-*-*) ;; 3153 *-*-*) ;;
3140 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 3154 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3141 esac 3155 esac
3142 host=$ac_cv_host 3156 host=$ac_cv_host
3143 ac_save_IFS=$IFS; IFS='-' 3157 ac_save_IFS=$IFS; IFS='-'
3144 set x $ac_cv_host 3158 set x $ac_cv_host
3145 shift 3159 shift
3429 fi 3443 fi
3430 3444
3431 3445
3432 3446
3433 if test $unported = yes; then 3447 if test $unported = yes; then
3434 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems. 3448 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
3435 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5 3449 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3436 fi 3450 fi
3437 3451
3438 machfile="m/${machine}.h" 3452 machfile="m/${machine}.h"
3439 opsysfile="s/${opsys}.h" 3453 opsysfile="s/${opsys}.h"
3743 fi 3757 fi
3744 3758
3745 3759
3746 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3760 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3761 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3748 as_fn_error "no acceptable C compiler found in \$PATH 3762 as_fn_error $? "no acceptable C compiler found in \$PATH
3749 See \`config.log' for more details." "$LINENO" 5; } 3763 See \`config.log' for more details" "$LINENO" 5; }
3750 3764
3751 # Provide some information about the compiler. 3765 # Provide some information about the compiler.
3752 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3766 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3753 set X $ac_compile 3767 set X $ac_compile
3754 ac_compiler=$2 3768 ac_compiler=$2
3858 $as_echo "$as_me: failed program was:" >&5 3872 $as_echo "$as_me: failed program was:" >&5
3859 sed 's/^/| /' conftest.$ac_ext >&5 3873 sed 's/^/| /' conftest.$ac_ext >&5
3860 3874
3861 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3875 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3862 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3876 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3863 { as_fn_set_status 77 3877 as_fn_error 77 "C compiler cannot create executables
3864 as_fn_error "C compiler cannot create executables 3878 See \`config.log' for more details" "$LINENO" 5; }
3865 See \`config.log' for more details." "$LINENO" 5; }; }
3866 else 3879 else
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3868 $as_echo "yes" >&6; } 3881 $as_echo "yes" >&6; }
3869 fi 3882 fi
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3902 esac 3915 esac
3903 done 3916 done
3904 else 3917 else
3905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3918 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3907 as_fn_error "cannot compute suffix of executables: cannot compile and link 3920 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3908 See \`config.log' for more details." "$LINENO" 5; } 3921 See \`config.log' for more details" "$LINENO" 5; }
3909 fi 3922 fi
3910 rm -f conftest conftest$ac_cv_exeext 3923 rm -f conftest conftest$ac_cv_exeext
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3912 $as_echo "$ac_cv_exeext" >&6; } 3925 $as_echo "$ac_cv_exeext" >&6; }
3913 3926
3960 if test "$cross_compiling" = maybe; then 3973 if test "$cross_compiling" = maybe; then
3961 cross_compiling=yes 3974 cross_compiling=yes
3962 else 3975 else
3963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3965 as_fn_error "cannot run C compiled programs. 3978 as_fn_error $? "cannot run C compiled programs.
3966 If you meant to cross compile, use \`--host'. 3979 If you meant to cross compile, use \`--host'.
3967 See \`config.log' for more details." "$LINENO" 5; } 3980 See \`config.log' for more details" "$LINENO" 5; }
3968 fi 3981 fi
3969 fi 3982 fi
3970 fi 3983 fi
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3972 $as_echo "$cross_compiling" >&6; } 3985 $as_echo "$cross_compiling" >&6; }
4013 $as_echo "$as_me: failed program was:" >&5 4026 $as_echo "$as_me: failed program was:" >&5
4014 sed 's/^/| /' conftest.$ac_ext >&5 4027 sed 's/^/| /' conftest.$ac_ext >&5
4015 4028
4016 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4017 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4018 as_fn_error "cannot compute suffix of object files: cannot compile 4031 as_fn_error $? "cannot compute suffix of object files: cannot compile
4019 See \`config.log' for more details." "$LINENO" 5; } 4032 See \`config.log' for more details" "$LINENO" 5; }
4020 fi 4033 fi
4021 rm -f conftest.$ac_cv_objext conftest.$ac_ext 4034 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4022 fi 4035 fi
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4024 $as_echo "$ac_cv_objext" >&6; } 4037 $as_echo "$ac_cv_objext" >&6; }
4433 if $ac_preproc_ok; then : 4446 if $ac_preproc_ok; then :
4434 4447
4435 else 4448 else
4436 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4449 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4438 as_fn_error "C preprocessor \"$CPP\" fails sanity check 4451 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4439 See \`config.log' for more details." "$LINENO" 5; } 4452 See \`config.log' for more details" "$LINENO" 5; }
4440 fi 4453 fi
4441 4454
4442 ac_ext=c 4455 ac_ext=c
4443 ac_cpp='$CPP $CPPFLAGS' 4456 ac_cpp='$CPP $CPPFLAGS'
4444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4495 done 4508 done
4496 done 4509 done
4497 done 4510 done
4498 IFS=$as_save_IFS 4511 IFS=$as_save_IFS
4499 if test -z "$ac_cv_path_GREP"; then 4512 if test -z "$ac_cv_path_GREP"; then
4500 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4513 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4501 fi 4514 fi
4502 else 4515 else
4503 ac_cv_path_GREP=$GREP 4516 ac_cv_path_GREP=$GREP
4504 fi 4517 fi
4505 4518
4561 done 4574 done
4562 done 4575 done
4563 done 4576 done
4564 IFS=$as_save_IFS 4577 IFS=$as_save_IFS
4565 if test -z "$ac_cv_path_EGREP"; then 4578 if test -z "$ac_cv_path_EGREP"; then
4566 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4579 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4567 fi 4580 fi
4568 else 4581 else
4569 ac_cv_path_EGREP=$EGREP 4582 ac_cv_path_EGREP=$EGREP
4570 fi 4583 fi
4571 4584
4693 inttypes.h stdint.h unistd.h 4706 inttypes.h stdint.h unistd.h
4694 do : 4707 do :
4695 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4708 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4696 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4709 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4697 " 4710 "
4698 eval as_val=\$$as_ac_Header 4711 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4699 if test "x$as_val" = x""yes; then :
4700 cat >>confdefs.h <<_ACEOF 4712 cat >>confdefs.h <<_ACEOF
4701 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4713 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4702 _ACEOF 4714 _ACEOF
4703 4715
4704 fi 4716 fi
4990 if $ac_preproc_ok; then : 5002 if $ac_preproc_ok; then :
4991 5003
4992 else 5004 else
4993 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5005 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4995 as_fn_error "C preprocessor \"$CPP\" fails sanity check 5007 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4996 See \`config.log' for more details." "$LINENO" 5; } 5008 See \`config.log' for more details" "$LINENO" 5; }
4997 fi 5009 fi
4998 5010
4999 ac_ext=c 5011 ac_ext=c
5000 ac_cpp='$CPP $CPPFLAGS' 5012 ac_cpp='$CPP $CPPFLAGS'
5001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5428 ## with pre-built manuals, from a Bazaar checkout. 5440 ## with pre-built manuals, from a Bazaar checkout.
5429 if test "$MAKEINFO" = "no"; then 5441 if test "$MAKEINFO" = "no"; then
5430 if test "x${with_makeinfo}" = "xno"; then 5442 if test "x${with_makeinfo}" = "xno"; then
5431 MAKEINFO=off 5443 MAKEINFO=off
5432 elif test ! -e $srcdir/info/emacs; then 5444 elif test ! -e $srcdir/info/emacs; then
5433 as_fn_error "You do not seem to have makeinfo >= 4.6, and your 5445 as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
5434 source tree does not seem to have pre-built manuals in the \`info' directory. 5446 source tree does not seem to have pre-built manuals in the \`info' directory.
5435 Either install a suitable version of makeinfo, or re-run configure 5447 Either install a suitable version of makeinfo, or re-run configure
5436 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5 5448 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5437 fi 5449 fi
5438 fi 5450 fi
5604 ## GNU libc, __malloc_initialized would normally be resolved to the 5616 ## GNU libc, __malloc_initialized would normally be resolved to the
5605 ## shared library's .bss section, which is fatal. 5617 ## shared library's .bss section, which is fatal.
5606 if test "x$GCC" = "xyes"; then 5618 if test "x$GCC" = "xyes"; then
5607 C_SWITCH_MACHINE="-fno-common" 5619 C_SWITCH_MACHINE="-fno-common"
5608 else 5620 else
5609 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5 5621 as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
5610 fi 5622 fi
5611 else 5623 else
5612 UNEXEC_OBJ=unexalpha.o 5624 UNEXEC_OBJ=unexalpha.o
5613 fi 5625 fi
5614 fi 5626 fi
5882 else 5894 else
5883 5895
5884 ## Some platforms don't use any of these files, so it is not 5896 ## Some platforms don't use any of these files, so it is not
5885 ## appropriate to put this test outside the if block. 5897 ## appropriate to put this test outside the if block.
5886 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \ 5898 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
5887 as_fn_error "crt*.o not found in specified location." "$LINENO" 5 5899 as_fn_error $? "crt*.o not found in specified location." "$LINENO" 5
5888 5900
5889 fi 5901 fi
5890 5902
5891 5903
5892 5904
5937 # Sound support for GNU/Linux and the free BSDs. 5949 # Sound support for GNU/Linux and the free BSDs.
5938 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h 5950 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5939 do : 5951 do :
5940 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5952 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5941 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5953 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5942 eval as_val=\$$as_ac_Header 5954 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5943 if test "x$as_val" = x""yes; then :
5944 cat >>confdefs.h <<_ACEOF 5955 cat >>confdefs.h <<_ACEOF
5945 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5956 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5946 _ACEOF 5957 _ACEOF
5947 have_sound_header=yes 5958 have_sound_header=yes
5948 fi 5959 fi
6129 else 6140 else
6130 emacs_alsa_subdir=no 6141 emacs_alsa_subdir=no
6131 fi 6142 fi
6132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6133 if test "$emacs_alsa_subdir" != yes; then 6144 if test "$emacs_alsa_subdir" != yes; then
6134 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5 6145 as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
6135 fi 6146 fi
6136 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE" 6147 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6137 fi 6148 fi
6138 6149
6139 CFLAGS="$SAVE_CFLAGS" 6150 CFLAGS="$SAVE_CFLAGS"
6164 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \ 6175 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6165 sys/utsname.h pwd.h utmp.h 6176 sys/utsname.h pwd.h utmp.h
6166 do : 6177 do :
6167 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6178 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6168 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6179 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6169 eval as_val=\$$as_ac_Header 6180 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6170 if test "x$as_val" = x""yes; then :
6171 cat >>confdefs.h <<_ACEOF 6181 cat >>confdefs.h <<_ACEOF
6172 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6182 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6173 _ACEOF 6183 _ACEOF
6174 6184
6175 fi 6185 fi
7007 7017
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7009 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 7019 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7010 set x ${MAKE-make} 7020 set x ${MAKE-make}
7011 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 7021 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7012 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 7022 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
7013 $as_echo_n "(cached) " >&6 7023 $as_echo_n "(cached) " >&6
7014 else 7024 else
7015 cat >conftest.make <<\_ACEOF 7025 cat >conftest.make <<\_ACEOF
7016 SHELL = /bin/sh 7026 SHELL = /bin/sh
7017 all: 7027 all:
7018 @echo '@@@%%%=$(MAKE)=@@@%%%' 7028 @echo '@@@%%%=$(MAKE)=@@@%%%'
7019 _ACEOF 7029 _ACEOF
7020 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 7030 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7021 case `${MAKE-make} -f conftest.make 2>/dev/null` in 7031 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7022 *@@@%%%=?*=@@@%%%*) 7032 *@@@%%%=?*=@@@%%%*)
7023 eval ac_cv_prog_make_${ac_make}_set=yes;; 7033 eval ac_cv_prog_make_${ac_make}_set=yes;;
7024 *) 7034 *)
7025 eval ac_cv_prog_make_${ac_make}_set=no;; 7035 eval ac_cv_prog_make_${ac_make}_set=no;;
7151 if test "x$with_x" = xno; then 7161 if test "x$with_x" = xno; then
7152 # The user explicitly disabled X. 7162 # The user explicitly disabled X.
7153 have_x=disabled 7163 have_x=disabled
7154 else 7164 else
7155 case $x_includes,$x_libraries in #( 7165 case $x_includes,$x_libraries in #(
7156 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #( 7166 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7157 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : 7167 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7158 $as_echo_n "(cached) " >&6 7168 $as_echo_n "(cached) " >&6
7159 else 7169 else
7160 # One or both of the vars are not set, and there is no cached value. 7170 # One or both of the vars are not set, and there is no cached value.
7161 ac_x_includes=no ac_x_libraries=no 7171 ac_x_includes=no ac_x_libraries=no
7169 @echo usrlibdir='${USRLIBDIR}' 7179 @echo usrlibdir='${USRLIBDIR}'
7170 libdir: 7180 libdir:
7171 @echo libdir='${LIBDIR}' 7181 @echo libdir='${LIBDIR}'
7172 _ACEOF 7182 _ACEOF
7173 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 7183 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7174 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 7184 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7175 for ac_var in incroot usrlibdir libdir; do 7185 for ac_var in incroot usrlibdir libdir; do
7176 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 7186 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7177 done 7187 done
7178 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 7188 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7179 for ac_extension in a so sl dylib la dll; do 7189 for ac_extension in a so sl dylib la dll; do
7439 fi 7449 fi
7440 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default" 7450 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7441 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then : 7451 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
7442 HAVE_NS=yes 7452 HAVE_NS=yes
7443 else 7453 else
7444 as_fn_error "\`--with-ns' was specified, but the include 7454 as_fn_error $? "\`--with-ns' was specified, but the include
7445 files are missing or cannot be compiled." "$LINENO" 5 7455 files are missing or cannot be compiled." "$LINENO" 5
7446 fi 7456 fi
7447 7457
7448 7458
7449 NS_HAVE_NSINTEGER=yes 7459 NS_HAVE_NSINTEGER=yes
7555 7565
7556 7566
7557 if test "$HAVE_XSERVER" = true || 7567 if test "$HAVE_XSERVER" = true ||
7558 test -n "$DISPLAY" || 7568 test -n "$DISPLAY" ||
7559 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then 7569 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7560 as_fn_error "You seem to be running X, but no X development libraries 7570 as_fn_error $? "You seem to be running X, but no X development libraries
7561 were found. You should install the relevant development files for X 7571 were found. You should install the relevant development files for X
7562 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make 7572 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7563 sure you have development files for image handling, i.e. 7573 sure you have development files for image handling, i.e.
7564 tiff, gif, jpeg, png and xpm. 7574 tiff, gif, jpeg, png and xpm.
7565 If you are sure you want Emacs compiled without X window support, pass 7575 If you are sure you want Emacs compiled without X window support, pass
7678 for ac_header in $ac_header_list 7688 for ac_header in $ac_header_list
7679 do : 7689 do :
7680 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7690 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7681 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7691 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7682 " 7692 "
7683 eval as_val=\$$as_ac_Header 7693 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7684 if test "x$as_val" = x""yes; then :
7685 cat >>confdefs.h <<_ACEOF 7694 cat >>confdefs.h <<_ACEOF
7686 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7695 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7687 _ACEOF 7696 _ACEOF
7688 7697
7689 fi 7698 fi
7785 7794
7786 int 7795 int
7787 main () 7796 main ()
7788 { 7797 {
7789 char *data, *data2, *data3; 7798 char *data, *data2, *data3;
7799 const char *cdata2;
7790 int i, pagesize; 7800 int i, pagesize;
7791 int fd, fd2; 7801 int fd, fd2;
7792 7802
7793 pagesize = getpagesize (); 7803 pagesize = getpagesize ();
7794 7804
7809 /* Next, check that the tail of a page is zero-filled. File must have 7819 /* Next, check that the tail of a page is zero-filled. File must have
7810 non-zero length, otherwise we risk SIGBUS for entire page. */ 7820 non-zero length, otherwise we risk SIGBUS for entire page. */
7811 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 7821 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7812 if (fd2 < 0) 7822 if (fd2 < 0)
7813 return 4; 7823 return 4;
7814 data2 = ""; 7824 cdata2 = "";
7815 if (write (fd2, data2, 1) != 1) 7825 if (write (fd2, cdata2, 1) != 1)
7816 return 5; 7826 return 5;
7817 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 7827 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7818 if (data2 == MAP_FAILED) 7828 if (data2 == MAP_FAILED)
7819 return 6; 7829 return 6;
7820 for (i = 0; i < pagesize; ++i) 7830 for (i = 0; i < pagesize; ++i)
7821 if (*(data2 + i)) 7831 if (*(data2 + i))
7822 return 7; 7832 return 7;
8184 for ac_func in XrmSetDatabase XScreenResourceString \ 8194 for ac_func in XrmSetDatabase XScreenResourceString \
8185 XScreenNumberOfScreen XSetWMProtocols 8195 XScreenNumberOfScreen XSetWMProtocols
8186 do : 8196 do :
8187 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8197 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8188 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8198 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8189 eval as_val=\$$as_ac_var 8199 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8190 if test "x$as_val" = x""yes; then :
8191 cat >>confdefs.h <<_ACEOF 8200 cat >>confdefs.h <<_ACEOF
8192 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8201 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8193 _ACEOF 8202 _ACEOF
8194 8203
8195 fi 8204 fi
8466 else 8475 else
8467 pkg_check_gtk=no 8476 pkg_check_gtk=no
8468 fi 8477 fi
8469 8478
8470 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then 8479 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8471 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5 8480 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
8472 fi 8481 fi
8473 fi 8482 fi
8474 8483
8475 if test "$pkg_check_gtk" != "yes"; then 8484 if test "$pkg_check_gtk" != "yes"; then
8476 HAVE_GTK=no 8485 HAVE_GTK=no
8572 else 8581 else
8573 pkg_check_gtk=no 8582 pkg_check_gtk=no
8574 fi 8583 fi
8575 8584
8576 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then 8585 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8577 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5 8586 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
8578 fi 8587 fi
8579 fi 8588 fi
8580 fi 8589 fi
8581 8590
8582 GTK_OBJ= 8591 GTK_OBJ=
8599 fi 8608 fi
8600 done 8609 done
8601 8610
8602 if test "${GTK_COMPILES}" != "yes"; then 8611 if test "${GTK_COMPILES}" != "yes"; then
8603 if test "$USE_X_TOOLKIT" != "maybe"; then 8612 if test "$USE_X_TOOLKIT" != "maybe"; then
8604 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5; 8613 as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8605 fi 8614 fi
8606 else 8615 else
8607 HAVE_GTK=yes 8616 HAVE_GTK=yes
8608 8617
8609 $as_echo "#define USE_GTK 1" >>confdefs.h 8618 $as_echo "#define USE_GTK 1" >>confdefs.h
8729 gtk_widget_get_mapped gtk_adjustment_get_page_size \ 8738 gtk_widget_get_mapped gtk_adjustment_get_page_size \
8730 gtk_orientable_set_orientation 8739 gtk_orientable_set_orientation
8731 do : 8740 do :
8732 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8741 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8733 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8742 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8734 eval as_val=\$$as_ac_var 8743 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8735 if test "x$as_val" = x""yes; then :
8736 cat >>confdefs.h <<_ACEOF 8744 cat >>confdefs.h <<_ACEOF
8737 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8745 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8738 _ACEOF 8746 _ACEOF
8739 8747
8740 fi 8748 fi
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5 9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9096 $as_echo "yes; using Lucid toolkit" >&6; } 9104 $as_echo "yes; using Lucid toolkit" >&6; }
9097 USE_X_TOOLKIT=LUCID 9105 USE_X_TOOLKIT=LUCID
9098 LUCID_LIBW=-lXaw 9106 LUCID_LIBW=-lXaw
9099 elif test x"${USE_X_TOOLKIT}" = xLUCID; then 9107 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
9100 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5 9108 as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
9101 else 9109 else
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5 9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
9103 $as_echo "no; do not use toolkit by default" >&6; } 9111 $as_echo "no; do not use toolkit by default" >&6; }
9104 USE_X_TOOLKIT=none 9112 USE_X_TOOLKIT=none
9105 fi 9113 fi
10272 # in /usr/include/libpng. 10280 # in /usr/include/libpng.
10273 for ac_header in png.h libpng/png.h 10281 for ac_header in png.h libpng/png.h
10274 do : 10282 do :
10275 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10283 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10276 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10284 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10277 eval as_val=\$$as_ac_Header 10285 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10278 if test "x$as_val" = x""yes; then :
10279 cat >>confdefs.h <<_ACEOF 10286 cat >>confdefs.h <<_ACEOF
10280 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10287 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10281 _ACEOF 10288 _ACEOF
10282 10289
10283 fi 10290 fi
10525 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no" 10532 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
10526 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" && 10533 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
10527 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no" 10534 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
10528 10535
10529 if test "X${MISSING}" != X; then 10536 if test "X${MISSING}" != X; then
10530 as_fn_error "The following required libraries were not found: 10537 as_fn_error $? "The following required libraries were not found:
10531 $MISSING 10538 $MISSING
10532 Maybe some development libraries/packages are missing? 10539 Maybe some development libraries/packages are missing?
10533 If you don't want to link with them give 10540 If you don't want to link with them give
10534 $WITH_NO 10541 $WITH_NO
10535 as options to configure" "$LINENO" 5 10542 as options to configure" "$LINENO" 5
10860 $as_echo "$ac_cv_os_cray" >&6; } 10867 $as_echo "$ac_cv_os_cray" >&6; }
10861 if test $ac_cv_os_cray = yes; then 10868 if test $ac_cv_os_cray = yes; then
10862 for ac_func in _getb67 GETB67 getb67; do 10869 for ac_func in _getb67 GETB67 getb67; do
10863 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10870 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10864 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 10871 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10865 eval as_val=\$$as_ac_var 10872 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10866 if test "x$as_val" = x""yes; then :
10867 10873
10868 cat >>confdefs.h <<_ACEOF 10874 cat >>confdefs.h <<_ACEOF
10869 #define CRAY_STACKSEG_END $ac_func 10875 #define CRAY_STACKSEG_END $ac_func
10870 _ACEOF 10876 _ACEOF
10871 10877
10925 10931
10926 fi 10932 fi
10927 10933
10928 10934
10929 if test x"$ac_cv_func_alloca_works" != xyes; then 10935 if test x"$ac_cv_func_alloca_works" != xyes; then
10930 as_fn_error "a system implementation of alloca is required " "$LINENO" 5 10936 as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5
10931 fi 10937 fi
10932 10938
10933 # fmod, logb, and frexp are found in -lm on most systems. 10939 # fmod, logb, and frexp are found in -lm on most systems.
10934 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. 10940 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
11121 $as_echo "no" >&6; } 11127 $as_echo "no" >&6; }
11122 fi 11128 fi
11123 11129
11124 11130
11125 if test $ac_cv_prog_liblockfile = yes; then 11131 if test $ac_cv_prog_liblockfile = yes; then
11126 as_fn_error "Shared liblockfile found but can't link against it. 11132 as_fn_error $? "Shared liblockfile found but can't link against it.
11127 This probably means that movemail could lose mail. 11133 This probably means that movemail could lose mail.
11128 There may be a \`development' package to install containing liblockfile." "$LINENO" 5 11134 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
11129 fi 11135 fi
11130 fi 11136 fi
11131 for ac_func in touchlock 11137 for ac_func in touchlock
11202 for ac_func in gethostname getdomainname dup2 \ 11208 for ac_func in gethostname getdomainname dup2 \
11203 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \ 11209 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
11204 random lrand48 logb frexp fmod rint cbrt ftime setsid \ 11210 random lrand48 logb frexp fmod rint cbrt ftime setsid \
11205 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ 11211 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11206 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \ 11212 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11207 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ 11213 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
11208 sendto recvfrom getsockopt setsockopt getsockname getpeername \ 11214 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11209 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \ 11215 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
11210 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \ 11216 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
11211 cfmakeraw cfsetspeed isnan copysign 11217 cfmakeraw cfsetspeed isnan copysign
11212 do : 11218 do :
11213 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11219 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11214 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11220 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11215 eval as_val=\$$as_ac_var 11221 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11216 if test "x$as_val" = x""yes; then :
11217 cat >>confdefs.h <<_ACEOF 11222 cat >>confdefs.h <<_ACEOF
11218 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11223 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11219 _ACEOF 11224 _ACEOF
11220 11225
11221 fi 11226 fi
11242 11247
11243 for ac_func in $ac_func_list 11248 for ac_func in $ac_func_list
11244 do : 11249 do :
11245 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11250 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11246 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11251 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11247 eval as_val=\$$as_ac_var 11252 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11248 if test "x$as_val" = x""yes; then :
11249 cat >>confdefs.h <<_ACEOF 11253 cat >>confdefs.h <<_ACEOF
11250 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11254 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11251 _ACEOF 11255 _ACEOF
11252 11256
11253 fi 11257 fi
11295 11299
11296 static time_t time_t_max; 11300 static time_t time_t_max;
11297 static time_t time_t_min; 11301 static time_t time_t_min;
11298 11302
11299 /* Values we'll use to set the TZ environment variable. */ 11303 /* Values we'll use to set the TZ environment variable. */
11300 static char *tz_strings[] = { 11304 static const char *tz_strings[] = {
11301 (char *) 0, "TZ=GMT0", "TZ=JST-9", 11305 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11302 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" 11306 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11303 }; 11307 };
11304 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) 11308 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11305 11309
11306 /* Return 0 if mktime fails to convert a date in the spring-forward gap. 11310 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11313 11317
11314 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" 11318 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11315 instead of "TZ=America/Vancouver" in order to detect the bug even 11319 instead of "TZ=America/Vancouver" in order to detect the bug even
11316 on systems that don't support the Olson extension, or don't have the 11320 on systems that don't support the Olson extension, or don't have the
11317 full zoneinfo tables installed. */ 11321 full zoneinfo tables installed. */
11318 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); 11322 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
11319 11323
11320 tm.tm_year = 98; 11324 tm.tm_year = 98;
11321 tm.tm_mon = 3; 11325 tm.tm_mon = 3;
11322 tm.tm_mday = 5; 11326 tm.tm_mday = 5;
11323 tm.tm_hour = 2; 11327 tm.tm_hour = 2;
11326 tm.tm_isdst = -1; 11330 tm.tm_isdst = -1;
11327 return mktime (&tm) != (time_t) -1; 11331 return mktime (&tm) != (time_t) -1;
11328 } 11332 }
11329 11333
11330 static int 11334 static int
11331 mktime_test1 (now) 11335 mktime_test1 (time_t now)
11332 time_t now;
11333 { 11336 {
11334 struct tm *lt; 11337 struct tm *lt;
11335 return ! (lt = localtime (&now)) || mktime (lt) == now; 11338 return ! (lt = localtime (&now)) || mktime (lt) == now;
11336 } 11339 }
11337 11340
11338 static int 11341 static int
11339 mktime_test (now) 11342 mktime_test (time_t now)
11340 time_t now;
11341 { 11343 {
11342 return (mktime_test1 (now) 11344 return (mktime_test1 (now)
11343 && mktime_test1 ((time_t) (time_t_max - now)) 11345 && mktime_test1 ((time_t) (time_t_max - now))
11344 && mktime_test1 ((time_t) (time_t_min + now))); 11346 && mktime_test1 ((time_t) (time_t_min + now)));
11345 } 11347 }
11359 mktime (&tm); 11361 mktime (&tm);
11360 return tm.tm_mon == 2 && tm.tm_mday == 31; 11362 return tm.tm_mon == 2 && tm.tm_mday == 31;
11361 } 11363 }
11362 11364
11363 static int 11365 static int
11364 bigtime_test (j) 11366 bigtime_test (int j)
11365 int j;
11366 { 11367 {
11367 struct tm tm; 11368 struct tm tm;
11368 time_t now; 11369 time_t now;
11369 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; 11370 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11370 now = mktime (&tm); 11371 now = mktime (&tm);
11404 11405
11405 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" 11406 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11406 instead of "TZ=America/Vancouver" in order to detect the bug even 11407 instead of "TZ=America/Vancouver" in order to detect the bug even
11407 on systems that don't support the Olson extension, or don't have the 11408 on systems that don't support the Olson extension, or don't have the
11408 full zoneinfo tables installed. */ 11409 full zoneinfo tables installed. */
11409 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); 11410 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
11410 11411
11411 t = mktime (&tm); 11412 t = mktime (&tm);
11412 11413
11413 /* Check that the result is either a failure, or close enough 11414 /* Check that the result is either a failure, or close enough
11414 to the correct answer that we can assume the discrepancy is 11415 to the correct answer that we can assume the discrepancy is
11439 11440
11440 delta = time_t_max / 997; /* a suitable prime number */ 11441 delta = time_t_max / 997; /* a suitable prime number */
11441 for (i = 0; i < N_STRINGS; i++) 11442 for (i = 0; i < N_STRINGS; i++)
11442 { 11443 {
11443 if (tz_strings[i]) 11444 if (tz_strings[i])
11444 putenv (tz_strings[i]); 11445 putenv ((char*) tz_strings[i]);
11445 11446
11446 for (t = 0; t <= time_t_max - delta; t += delta) 11447 for (t = 0; t <= time_t_max - delta; t += delta)
11447 if (! mktime_test (t)) 11448 if (! mktime_test (t))
11448 return 1; 11449 return 1;
11449 if (! (mktime_test ((time_t) 1) 11450 if (! (mktime_test ((time_t) 1)
11491 11492
11492 ac_have_func=no # yes means we've found a way to get the load average. 11493 ac_have_func=no # yes means we've found a way to get the load average.
11493 11494
11494 # Make sure getloadavg.c is where it belongs, at configure-time. 11495 # Make sure getloadavg.c is where it belongs, at configure-time.
11495 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" || 11496 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11496 as_fn_error "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5 11497 as_fn_error $? "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
11497 11498
11498 ac_save_LIBS=$LIBS 11499 ac_save_LIBS=$LIBS
11499 11500
11500 # Check for getloadavg, but be sure not to touch the cache variable. 11501 # Check for getloadavg, but be sure not to touch the cache variable.
11501 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg" 11502 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12360 else 12361 else
12361 have_tputs_et_al=false 12362 have_tputs_et_al=false
12362 fi 12363 fi
12363 12364
12364 if test "$have_tputs_et_al" != true; then 12365 if test "$have_tputs_et_al" != true; then
12365 as_fn_error "I couldn't find termcap functions (tputs and friends). 12366 as_fn_error $? "I couldn't find termcap functions (tputs and friends).
12366 Maybe some development libraries/packages are missing? Try installing 12367 Maybe some development libraries/packages are missing? Try installing
12367 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5 12368 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
12368 fi 12369 fi
12369 # Must define this when any termcap library is found. 12370 # Must define this when any termcap library is found.
12370 12371
13507 13508
13508 for ac_func in fork vfork 13509 for ac_func in fork vfork
13509 do : 13510 do :
13510 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13511 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13511 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13512 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13512 eval as_val=\$$as_ac_var 13513 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13513 if test "x$as_val" = x""yes; then :
13514 cat >>confdefs.h <<_ACEOF 13514 cat >>confdefs.h <<_ACEOF
13515 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13515 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13516 _ACEOF 13516 _ACEOF
13517 13517
13518 fi 13518 fi
13882 ## Hack to detect a buggy GCC version. 13882 ## Hack to detect a buggy GCC version.
13883 if test "x$GCC" = xyes \ 13883 if test "x$GCC" = xyes \
13884 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \ 13884 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
13885 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \ 13885 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
13886 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then 13886 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
13887 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5 13887 as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
13888 fi 13888 fi
13889 13889
13890 #### Find out which version of Emacs this is. 13890 #### Find out which version of Emacs this is.
13891 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \ 13891 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
13892 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` 13892 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
13893 if test x"${version}" = x; then 13893 if test x"${version}" = x; then
13894 as_fn_error "can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5 13894 as_fn_error $? "can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
13895 fi 13895 fi
13896 if test x"${version}" != x"$PACKAGE_VERSION"; then 13896 if test x"${version}" != x"$PACKAGE_VERSION"; then
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5 13897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
13898 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;} 13898 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
13899 fi 13899 fi
14450 14450
14451 DEFS=-DHAVE_CONFIG_H 14451 DEFS=-DHAVE_CONFIG_H
14452 14452
14453 ac_libobjs= 14453 ac_libobjs=
14454 ac_ltlibobjs= 14454 ac_ltlibobjs=
14455 U=
14455 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14456 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14456 # 1. Remove the extension, and $U if already installed. 14457 # 1. Remove the extension, and $U if already installed.
14457 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14458 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14458 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14459 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14459 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14460 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14611 14612
14612 # CDPATH. 14613 # CDPATH.
14613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14614 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14614 14615
14615 14616
14616 # as_fn_error ERROR [LINENO LOG_FD] 14617 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14617 # --------------------------------- 14618 # ----------------------------------------
14618 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14619 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14619 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14620 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14620 # script with status $?, using 1 if that was 0. 14621 # script with STATUS, using 1 if that was 0.
14621 as_fn_error () 14622 as_fn_error ()
14622 { 14623 {
14623 as_status=$?; test $as_status -eq 0 && as_status=1 14624 as_status=$1; test $as_status -eq 0 && as_status=1
14624 if test "$3"; then 14625 if test "$4"; then
14625 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14626 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14626 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 14627 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14627 fi 14628 fi
14628 $as_echo "$as_me: error: $1" >&2 14629 $as_echo "$as_me: error: $2" >&2
14629 as_fn_exit $as_status 14630 as_fn_exit $as_status
14630 } # as_fn_error 14631 } # as_fn_error
14631 14632
14632 14633
14633 # as_fn_set_status STATUS 14634 # as_fn_set_status STATUS
14819 } 14820 }
14820 s/.*/./; q'` 14821 s/.*/./; q'`
14821 test -d "$as_dir" && break 14822 test -d "$as_dir" && break
14822 done 14823 done
14823 test -z "$as_dirs" || eval "mkdir $as_dirs" 14824 test -z "$as_dirs" || eval "mkdir $as_dirs"
14824 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 14825 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14825 14826
14826 14827
14827 } # as_fn_mkdir_p 14828 } # as_fn_mkdir_p
14828 if mkdir -p . 2>/dev/null; then 14829 if mkdir -p . 2>/dev/null; then
14829 as_mkdir_p='mkdir -p "$as_dir"' 14830 as_mkdir_p='mkdir -p "$as_dir"'
14873 # Save the log message, to keep $0 and so on meaningful, and to 14874 # Save the log message, to keep $0 and so on meaningful, and to
14874 # report actual input values of CONFIG_FILES etc. instead of their 14875 # report actual input values of CONFIG_FILES etc. instead of their
14875 # values after options handling. 14876 # values after options handling.
14876 ac_log=" 14877 ac_log="
14877 This file was extended by emacs $as_me 24.0.50, which was 14878 This file was extended by emacs $as_me 24.0.50, which was
14878 generated by GNU Autoconf 2.65. Invocation command line was 14879 generated by GNU Autoconf 2.66. Invocation command line was
14879 14880
14880 CONFIG_FILES = $CONFIG_FILES 14881 CONFIG_FILES = $CONFIG_FILES
14881 CONFIG_HEADERS = $CONFIG_HEADERS 14882 CONFIG_HEADERS = $CONFIG_HEADERS
14882 CONFIG_LINKS = $CONFIG_LINKS 14883 CONFIG_LINKS = $CONFIG_LINKS
14883 CONFIG_COMMANDS = $CONFIG_COMMANDS 14884 CONFIG_COMMANDS = $CONFIG_COMMANDS
14939 _ACEOF 14940 _ACEOF
14940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14941 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 14942 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14942 ac_cs_version="\\ 14943 ac_cs_version="\\
14943 emacs config.status 24.0.50 14944 emacs config.status 24.0.50
14944 configured by $0, generated by GNU Autoconf 2.65, 14945 configured by $0, generated by GNU Autoconf 2.66,
14945 with options \\"\$ac_cs_config\\" 14946 with options \\"\$ac_cs_config\\"
14946 14947
14947 Copyright (C) 2009 Free Software Foundation, Inc. 14948 Copyright (C) 2010 Free Software Foundation, Inc.
14948 This config.status script is free software; the Free Software Foundation 14949 This config.status script is free software; the Free Software Foundation
14949 gives unlimited permission to copy, distribute and modify it." 14950 gives unlimited permission to copy, distribute and modify it."
14950 14951
14951 ac_pwd='$ac_pwd' 14952 ac_pwd='$ac_pwd'
14952 srcdir='$srcdir' 14953 srcdir='$srcdir'
14996 esac 14997 esac
14997 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14998 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14998 ac_need_defaults=false;; 14999 ac_need_defaults=false;;
14999 --he | --h) 15000 --he | --h)
15000 # Conflict between --help and --header 15001 # Conflict between --help and --header
15001 as_fn_error "ambiguous option: \`$1' 15002 as_fn_error $? "ambiguous option: \`$1'
15002 Try \`$0 --help' for more information.";; 15003 Try \`$0 --help' for more information.";;
15003 --help | --hel | -h ) 15004 --help | --hel | -h )
15004 $as_echo "$ac_cs_usage"; exit ;; 15005 $as_echo "$ac_cs_usage"; exit ;;
15005 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15006 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15006 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15007 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15007 ac_cs_silent=: ;; 15008 ac_cs_silent=: ;;
15008 15009
15009 # This is an error. 15010 # This is an error.
15010 -*) as_fn_error "unrecognized option: \`$1' 15011 -*) as_fn_error $? "unrecognized option: \`$1'
15011 Try \`$0 --help' for more information." ;; 15012 Try \`$0 --help' for more information." ;;
15012 15013
15013 *) as_fn_append ac_config_targets " $1" 15014 *) as_fn_append ac_config_targets " $1"
15014 ac_need_defaults=false ;; 15015 ac_need_defaults=false ;;
15015 15016
15073 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;; 15074 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
15074 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;; 15075 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
15075 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; 15076 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
15076 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 15077 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15077 15078
15078 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 15079 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15079 esac 15080 esac
15080 done 15081 done
15081 15082
15082 15083
15083 # If the user did not use the arguments to specify the items to instantiate, 15084 # If the user did not use the arguments to specify the items to instantiate,
15111 test -n "$tmp" && test -d "$tmp" 15112 test -n "$tmp" && test -d "$tmp"
15112 } || 15113 } ||
15113 { 15114 {
15114 tmp=./conf$$-$RANDOM 15115 tmp=./conf$$-$RANDOM
15115 (umask 077 && mkdir "$tmp") 15116 (umask 077 && mkdir "$tmp")
15116 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 15117 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15117 15118
15118 # Set up the scripts for CONFIG_FILES section. 15119 # Set up the scripts for CONFIG_FILES section.
15119 # No need to generate them if there are no CONFIG_FILES. 15120 # No need to generate them if there are no CONFIG_FILES.
15120 # This happens for instance with `./config.status config.h'. 15121 # This happens for instance with `./config.status config.h'.
15121 if test -n "$CONFIG_FILES"; then 15122 if test -n "$CONFIG_FILES"; then
15145 if test "x$ac_cr" = x; then 15146 if test "x$ac_cr" = x; then
15146 eval ac_cr=\$\'\\r\' 15147 eval ac_cr=\$\'\\r\'
15147 fi 15148 fi
15148 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15149 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15149 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15150 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15150 ac_cs_awk_cr='\r' 15151 ac_cs_awk_cr='\\r'
15151 else 15152 else
15152 ac_cs_awk_cr=$ac_cr 15153 ac_cs_awk_cr=$ac_cr
15153 fi 15154 fi
15154 15155
15155 echo 'BEGIN {' >"$tmp/subs1.awk" && 15156 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15162 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && 15163 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15163 echo "_ACAWK" && 15164 echo "_ACAWK" &&
15164 echo "_ACEOF" 15165 echo "_ACEOF"
15165 } >conf$$files.sh && 15166 } >conf$$files.sh &&
15166 . ./conf$$files.sh || 15167 . ./conf$$files.sh ||
15167 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 15168 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15168 rm -f conf$$files.sh 15169 rm -f conf$$files.sh
15169 15170
15170 { 15171 {
15171 echo "cat >conf$$subs.awk <<_ACEOF" && 15172 echo "cat >conf$$subs.awk <<_ACEOF" &&
15172 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15173 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15173 echo "_ACEOF" 15174 echo "_ACEOF"
15174 } >conf$$subs.sh || 15175 } >conf$$subs.sh ||
15175 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 15176 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15176 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 15177 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15177 ac_delim='%!_!# ' 15178 ac_delim='%!_!# '
15178 for ac_last_try in false false false false false :; do 15179 for ac_last_try in false false false false false :; do
15179 . ./conf$$subs.sh || 15180 . ./conf$$subs.sh ||
15180 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 15181 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15181 15182
15182 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15183 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15183 if test $ac_delim_n = $ac_delim_num; then 15184 if test $ac_delim_n = $ac_delim_num; then
15184 break 15185 break
15185 elif $ac_last_try; then 15186 elif $ac_last_try; then
15186 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 15187 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15187 else 15188 else
15188 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15189 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15189 fi 15190 fi
15190 done 15191 done
15191 rm -f conf$$subs.sh 15192 rm -f conf$$subs.sh
15276 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15277 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15277 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15278 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15278 else 15279 else
15279 cat 15280 cat
15280 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 15281 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15281 || as_fn_error "could not setup config files machinery" "$LINENO" 5 15282 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15282 _ACEOF 15283 _ACEOF
15283 15284
15284 # VPATH may cause trouble with some makes, so we remove $(srcdir), 15285 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15285 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 15286 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15286 # trailing colons and then remove the whole line if VPATH becomes empty 15287 # trailing colons and then remove the whole line if VPATH becomes empty
15287 # (actually we leave an empty line to preserve line numbers). 15288 # (actually we leave an empty line to preserve line numbers).
15288 if test "x$srcdir" = x.; then 15289 if test "x$srcdir" = x.; then
15289 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 15290 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15290 s/:*\$(srcdir):*/:/ 15291 h
15291 s/:*\${srcdir}:*/:/ 15292 s///
15292 s/:*@srcdir@:*/:/ 15293 s/^/:/
15293 s/^\([^=]*=[ ]*\):*/\1/ 15294 s/[ ]*$/:/
15295 s/:\$(srcdir):/:/g
15296 s/:\${srcdir}:/:/g
15297 s/:@srcdir@:/:/g
15298 s/^:*//
15294 s/:*$// 15299 s/:*$//
15300 x
15301 s/\(=[ ]*\).*/\1/
15302 G
15303 s/\n//
15295 s/^[^=]*=[ ]*$// 15304 s/^[^=]*=[ ]*$//
15296 }' 15305 }'
15297 fi 15306 fi
15298 15307
15299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15317 for ac_last_try in false false :; do 15326 for ac_last_try in false false :; do
15318 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 15327 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15319 if test -z "$ac_t"; then 15328 if test -z "$ac_t"; then
15320 break 15329 break
15321 elif $ac_last_try; then 15330 elif $ac_last_try; then
15322 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 15331 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15323 else 15332 else
15324 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15333 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15325 fi 15334 fi
15326 done 15335 done
15327 15336
15402 } 15411 }
15403 { print } 15412 { print }
15404 _ACAWK 15413 _ACAWK
15405 _ACEOF 15414 _ACEOF
15406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15407 as_fn_error "could not setup config headers machinery" "$LINENO" 5 15416 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15408 fi # test -n "$CONFIG_HEADERS" 15417 fi # test -n "$CONFIG_HEADERS"
15409 15418
15410 15419
15411 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 15420 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15412 shift 15421 shift
15415 case $ac_tag in 15424 case $ac_tag in
15416 :[FHLC]) ac_mode=$ac_tag; continue;; 15425 :[FHLC]) ac_mode=$ac_tag; continue;;
15417 esac 15426 esac
15418 case $ac_mode$ac_tag in 15427 case $ac_mode$ac_tag in
15419 :[FHL]*:*);; 15428 :[FHL]*:*);;
15420 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 15429 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15421 :[FH]-) ac_tag=-:-;; 15430 :[FH]-) ac_tag=-:-;;
15422 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15431 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15423 esac 15432 esac
15424 ac_save_IFS=$IFS 15433 ac_save_IFS=$IFS
15425 IFS=: 15434 IFS=:
15443 test -f "$ac_f" || 15452 test -f "$ac_f" ||
15444 case $ac_f in 15453 case $ac_f in
15445 [\\/$]*) false;; 15454 [\\/$]*) false;;
15446 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15455 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15447 esac || 15456 esac ||
15448 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15457 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15449 esac 15458 esac
15450 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15459 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15451 as_fn_append ac_file_inputs " '$ac_f'" 15460 as_fn_append ac_file_inputs " '$ac_f'"
15452 done 15461 done
15453 15462
15470 *) ac_sed_conf_input=$configure_input;; 15479 *) ac_sed_conf_input=$configure_input;;
15471 esac 15480 esac
15472 15481
15473 case $ac_tag in 15482 case $ac_tag in
15474 *:-:* | *:-) cat >"$tmp/stdin" \ 15483 *:-:* | *:-) cat >"$tmp/stdin" \
15475 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 15484 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15476 esac 15485 esac
15477 ;; 15486 ;;
15478 esac 15487 esac
15479 15488
15480 ac_dir=`$as_dirname -- "$ac_file" || 15489 ac_dir=`$as_dirname -- "$ac_file" ||
15606 if $ac_cs_awk_getline; then 15615 if $ac_cs_awk_getline; then
15607 $AWK -f "$tmp/subs.awk" 15616 $AWK -f "$tmp/subs.awk"
15608 else 15617 else
15609 $AWK -f "$tmp/subs.awk" | $SHELL 15618 $AWK -f "$tmp/subs.awk" | $SHELL
15610 fi >$tmp/out \ 15619 fi >$tmp/out \
15611 || as_fn_error "could not create $ac_file" "$LINENO" 5 15620 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15612 15621
15613 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15622 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15614 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 15623 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15615 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 15624 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15617 which seems to be undefined. Please make sure it is defined." >&5 15626 which seems to be undefined. Please make sure it is defined" >&5
15618 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15627 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15619 which seems to be undefined. Please make sure it is defined." >&2;} 15628 which seems to be undefined. Please make sure it is defined" >&2;}
15620 15629
15621 rm -f "$tmp/stdin" 15630 rm -f "$tmp/stdin"
15622 case $ac_file in 15631 case $ac_file in
15623 -) cat "$tmp/out" && rm -f "$tmp/out";; 15632 -) cat "$tmp/out" && rm -f "$tmp/out";;
15624 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 15633 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15625 esac \ 15634 esac \
15626 || as_fn_error "could not create $ac_file" "$LINENO" 5 15635 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15627 ;; 15636 ;;
15628 :H) 15637 :H)
15629 # 15638 #
15630 # CONFIG_HEADER 15639 # CONFIG_HEADER
15631 # 15640 #
15632 if test x"$ac_file" != x-; then 15641 if test x"$ac_file" != x-; then
15633 { 15642 {
15634 $as_echo "/* $configure_input */" \ 15643 $as_echo "/* $configure_input */" \
15635 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 15644 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15636 } >"$tmp/config.h" \ 15645 } >"$tmp/config.h" \
15637 || as_fn_error "could not create $ac_file" "$LINENO" 5 15646 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15638 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 15647 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15639 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 15648 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15640 $as_echo "$as_me: $ac_file is unchanged" >&6;} 15649 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15641 else 15650 else
15642 rm -f "$ac_file" 15651 rm -f "$ac_file"
15643 mv "$tmp/config.h" "$ac_file" \ 15652 mv "$tmp/config.h" "$ac_file" \
15644 || as_fn_error "could not create $ac_file" "$LINENO" 5 15653 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15645 fi 15654 fi
15646 else 15655 else
15647 $as_echo "/* $configure_input */" \ 15656 $as_echo "/* $configure_input */" \
15648 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 15657 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15649 || as_fn_error "could not create -" "$LINENO" 5 15658 || as_fn_error $? "could not create -" "$LINENO" 5
15650 fi 15659 fi
15651 ;; 15660 ;;
15652 15661
15653 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 15662 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15654 $as_echo "$as_me: executing $ac_file commands" >&6;} 15663 $as_echo "$as_me: executing $ac_file commands" >&6;}
15681 as_fn_exit 0 15690 as_fn_exit 0
15682 _ACEOF 15691 _ACEOF
15683 ac_clean_files=$ac_clean_files_save 15692 ac_clean_files=$ac_clean_files_save
15684 15693
15685 test $ac_write_fail = 0 || 15694 test $ac_write_fail = 0 ||
15686 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 15695 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15687 15696
15688 15697
15689 # configure is writing to config.log, and then calls config.status. 15698 # configure is writing to config.log, and then calls config.status.
15690 # config.status does its own redirection, appending to config.log. 15699 # config.status does its own redirection, appending to config.log.
15691 # Unfortunately, on DOS this fails, as config.log is still kept open 15700 # Unfortunately, on DOS this fails, as config.log is still kept open
15702 exec 5>/dev/null 15711 exec 5>/dev/null
15703 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15712 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15704 exec 5>>config.log 15713 exec 5>>config.log
15705 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15714 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15706 # would make configure fail if this is the last instruction. 15715 # would make configure fail if this is the last instruction.
15707 $ac_cs_success || as_fn_exit $? 15716 $ac_cs_success || as_fn_exit 1
15708 fi 15717 fi
15709 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15718 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15711 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15720 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15712 fi 15721 fi