diff options
| author | Chong Yidong | 2010-09-21 23:10:16 -0400 |
|---|---|---|
| committer | Chong Yidong | 2010-09-21 23:10:16 -0400 |
| commit | 4b9832a6f2031a95f72e06040c8860dca49bd2dd (patch) | |
| tree | c7be90e44ea819dbc847754df19f71b423224c57 | |
| parent | 1114abdb3d5a0f4f86d7a28f8c523c6f07790208 (diff) | |
| download | emacs-4b9832a6f2031a95f72e06040c8860dca49bd2dd.tar.gz emacs-4b9832a6f2031a95f72e06040c8860dca49bd2dd.zip | |
Rename libxml2 functions, and make parse tree format consistent with xml.el.
* xml.c: Switch to GNU indentation.
(make_dom): Change parse tree format to match xml.el.
(Fxml_parse_html_string_internal): Rename from html-parse-string.
(Fxml_parse_string_internal): Rename from xml-parse-string.
* configure.in: Announce whether libxml2 is linked to.
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rwxr-xr-x | configure | 412 | ||||
| -rw-r--r-- | configure.in | 2 | ||||
| -rw-r--r-- | etc/NEWS | 11 | ||||
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/xml.c | 129 |
6 files changed, 298 insertions, 267 deletions
| @@ -1,3 +1,7 @@ | |||
| 1 | 2010-09-22 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * configure.in: Announce whether libxml2 is linked to. | ||
| 4 | |||
| 1 | 2010-09-20 Dan Nicolaescu <dann@ics.uci.edu> | 5 | 2010-09-20 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 6 | ||
| 3 | * configure.in (LINKER): Rename to LD_FIRSTFLAG, do not include $(CC). | 7 | * configure.in (LINKER): Rename to LD_FIRSTFLAG, do not include $(CC). |
| @@ -1,11 +1,11 @@ | |||
| 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 |
| @@ -316,7 +316,7 @@ $as_echo X"$as_dir" | | |||
| 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 |
| @@ -356,19 +356,19 @@ else | |||
| 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 | ||
| @@ -530,7 +530,7 @@ 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 | ||
| @@ -956,7 +956,7 @@ do | |||
| 956 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | 956 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 957 | # Reject names that are not valid shell variable names. | 957 | # Reject names that are not valid shell variable names. |
| 958 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 958 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 959 | as_fn_error "invalid feature name: $ac_useropt" | 959 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 960 | ac_useropt_orig=$ac_useropt | 960 | ac_useropt_orig=$ac_useropt |
| 961 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 961 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 962 | case $ac_user_opts in | 962 | case $ac_user_opts in |
| @@ -982,7 +982,7 @@ do | |||
| 982 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | 982 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 983 | # Reject names that are not valid shell variable names. | 983 | # Reject names that are not valid shell variable names. |
| 984 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 984 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 985 | as_fn_error "invalid feature name: $ac_useropt" | 985 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 986 | ac_useropt_orig=$ac_useropt | 986 | ac_useropt_orig=$ac_useropt |
| 987 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 987 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 988 | case $ac_user_opts in | 988 | case $ac_user_opts in |
| @@ -1186,7 +1186,7 @@ do | |||
| 1186 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | 1186 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1187 | # Reject names that are not valid shell variable names. | 1187 | # Reject names that are not valid shell variable names. |
| 1188 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 1188 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1189 | as_fn_error "invalid package name: $ac_useropt" | 1189 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1190 | ac_useropt_orig=$ac_useropt | 1190 | ac_useropt_orig=$ac_useropt |
| 1191 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 1191 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1192 | case $ac_user_opts in | 1192 | case $ac_user_opts in |
| @@ -1202,7 +1202,7 @@ do | |||
| 1202 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | 1202 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1203 | # Reject names that are not valid shell variable names. | 1203 | # Reject names that are not valid shell variable names. |
| 1204 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 1204 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1205 | as_fn_error "invalid package name: $ac_useropt" | 1205 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1206 | ac_useropt_orig=$ac_useropt | 1206 | ac_useropt_orig=$ac_useropt |
| 1207 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 1207 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1208 | case $ac_user_opts in | 1208 | case $ac_user_opts in |
| @@ -1232,8 +1232,8 @@ do | |||
| 1232 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | 1232 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1233 | x_libraries=$ac_optarg ;; | 1233 | x_libraries=$ac_optarg ;; |
| 1234 | 1234 | ||
| 1235 | -*) as_fn_error "unrecognized option: \`$ac_option' | 1235 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1236 | Try \`$0 --help' for more information." | 1236 | Try \`$0 --help' for more information" |
| 1237 | ;; | 1237 | ;; |
| 1238 | 1238 | ||
| 1239 | *=*) | 1239 | *=*) |
| @@ -1241,7 +1241,7 @@ Try \`$0 --help' for more information." | |||
| 1241 | # Reject names that are not valid shell variable names. | 1241 | # Reject names that are not valid shell variable names. |
| 1242 | case $ac_envvar in #( | 1242 | case $ac_envvar in #( |
| 1243 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | 1243 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1244 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | 1244 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| 1245 | esac | 1245 | esac |
| 1246 | eval $ac_envvar=\$ac_optarg | 1246 | eval $ac_envvar=\$ac_optarg |
| 1247 | export $ac_envvar ;; | 1247 | export $ac_envvar ;; |
| @@ -1259,13 +1259,13 @@ done | |||
| 1259 | 1259 | ||
| 1260 | if test -n "$ac_prev"; then | 1260 | if test -n "$ac_prev"; then |
| 1261 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | 1261 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1262 | as_fn_error "missing argument to $ac_option" | 1262 | as_fn_error $? "missing argument to $ac_option" |
| 1263 | fi | 1263 | fi |
| 1264 | 1264 | ||
| 1265 | if test -n "$ac_unrecognized_opts"; then | 1265 | if test -n "$ac_unrecognized_opts"; then |
| 1266 | case $enable_option_checking in | 1266 | case $enable_option_checking in |
| 1267 | no) ;; | 1267 | no) ;; |
| 1268 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | 1268 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1269 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | 1269 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1270 | esac | 1270 | esac |
| 1271 | fi | 1271 | fi |
| @@ -1288,7 +1288,7 @@ do | |||
| 1288 | [\\/$]* | ?:[\\/]* ) continue;; | 1288 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1289 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | 1289 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1290 | esac | 1290 | esac |
| 1291 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" | 1291 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
| 1292 | done | 1292 | done |
| 1293 | 1293 | ||
| 1294 | # There might be people who depend on the old broken behavior: `$host' | 1294 | # There might be people who depend on the old broken behavior: `$host' |
| @@ -1302,8 +1302,8 @@ target=$target_alias | |||
| 1302 | if test "x$host_alias" != x; then | 1302 | if test "x$host_alias" != x; then |
| 1303 | if test "x$build_alias" = x; then | 1303 | if test "x$build_alias" = x; then |
| 1304 | cross_compiling=maybe | 1304 | cross_compiling=maybe |
| 1305 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | 1305 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
| 1306 | If a cross compiler is detected then cross compile mode will be used." >&2 | 1306 | If a cross compiler is detected then cross compile mode will be used" >&2 |
| 1307 | elif test "x$build_alias" != "x$host_alias"; then | 1307 | elif test "x$build_alias" != "x$host_alias"; then |
| 1308 | cross_compiling=yes | 1308 | cross_compiling=yes |
| 1309 | fi | 1309 | fi |
| @@ -1318,9 +1318,9 @@ test "$silent" = yes && exec 6>/dev/null | |||
| 1318 | ac_pwd=`pwd` && test -n "$ac_pwd" && | 1318 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1319 | ac_ls_di=`ls -di .` && | 1319 | ac_ls_di=`ls -di .` && |
| 1320 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | 1320 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1321 | as_fn_error "working directory cannot be determined" | 1321 | as_fn_error $? "working directory cannot be determined" |
| 1322 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | 1322 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1323 | as_fn_error "pwd does not report name of working directory" | 1323 | as_fn_error $? "pwd does not report name of working directory" |
| 1324 | 1324 | ||
| 1325 | 1325 | ||
| 1326 | # Find the source files, if location was not specified. | 1326 | # Find the source files, if location was not specified. |
| @@ -1359,11 +1359,11 @@ else | |||
| 1359 | fi | 1359 | fi |
| 1360 | if test ! -r "$srcdir/$ac_unique_file"; then | 1360 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1361 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | 1361 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1362 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | 1362 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
| 1363 | fi | 1363 | fi |
| 1364 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | 1364 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1365 | ac_abs_confdir=`( | 1365 | ac_abs_confdir=`( |
| 1366 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | 1366 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1367 | pwd)` | 1367 | pwd)` |
| 1368 | # When building in place, set srcdir=. | 1368 | # When building in place, set srcdir=. |
| 1369 | if test "$ac_abs_confdir" = "$ac_pwd"; then | 1369 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| @@ -1403,7 +1403,7 @@ Configuration: | |||
| 1403 | --help=short display options specific to this package | 1403 | --help=short display options specific to this package |
| 1404 | --help=recursive display the short help of all the included packages | 1404 | --help=recursive display the short help of all the included packages |
| 1405 | -V, --version display version information and exit | 1405 | -V, --version display version information and exit |
| 1406 | -q, --quiet, --silent do not print \`checking...' messages | 1406 | -q, --quiet, --silent do not print \`checking ...' messages |
| 1407 | --cache-file=FILE cache test results in FILE [disabled] | 1407 | --cache-file=FILE cache test results in FILE [disabled] |
| 1408 | -C, --config-cache alias for \`--cache-file=config.cache' | 1408 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1409 | -n, --no-create do not create output files | 1409 | -n, --no-create do not create output files |
| @@ -1621,9 +1621,9 @@ test -n "$ac_init_help" && exit $ac_status | |||
| 1621 | if $ac_init_version; then | 1621 | if $ac_init_version; then |
| 1622 | cat <<\_ACEOF | 1622 | cat <<\_ACEOF |
| 1623 | emacs configure 24.0.50 | 1623 | emacs configure 24.0.50 |
| 1624 | generated by GNU Autoconf 2.65 | 1624 | generated by GNU Autoconf 2.66 |
| 1625 | 1625 | ||
| 1626 | Copyright (C) 2009 Free Software Foundation, Inc. | 1626 | Copyright (C) 2010 Free Software Foundation, Inc. |
| 1627 | This configure script is free software; the Free Software Foundation | 1627 | This configure script is free software; the Free Software Foundation |
| 1628 | gives unlimited permission to copy, distribute and modify it. | 1628 | gives unlimited permission to copy, distribute and modify it. |
| 1629 | _ACEOF | 1629 | _ACEOF |
| @@ -1763,10 +1763,10 @@ fi | |||
| 1763 | ac_fn_c_check_header_mongrel () | 1763 | ac_fn_c_check_header_mongrel () |
| 1764 | { | 1764 | { |
| 1765 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 1765 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1766 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | 1766 | if eval "test \"\${$3+set}\"" = set; then : |
| 1767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 1767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1768 | $as_echo_n "checking for $2... " >&6; } | 1768 | $as_echo_n "checking for $2... " >&6; } |
| 1769 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | 1769 | if eval "test \"\${$3+set}\"" = set; then : |
| 1770 | $as_echo_n "(cached) " >&6 | 1770 | $as_echo_n "(cached) " >&6 |
| 1771 | fi | 1771 | fi |
| 1772 | eval ac_res=\$$3 | 1772 | eval ac_res=\$$3 |
| @@ -1829,7 +1829,7 @@ $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |||
| 1829 | esac | 1829 | esac |
| 1830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 1830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1831 | $as_echo_n "checking for $2... " >&6; } | 1831 | $as_echo_n "checking for $2... " >&6; } |
| 1832 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | 1832 | if eval "test \"\${$3+set}\"" = set; then : |
| 1833 | $as_echo_n "(cached) " >&6 | 1833 | $as_echo_n "(cached) " >&6 |
| 1834 | else | 1834 | else |
| 1835 | eval "$3=\$ac_header_compiler" | 1835 | eval "$3=\$ac_header_compiler" |
| @@ -1893,7 +1893,7 @@ ac_fn_c_check_header_compile () | |||
| 1893 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 1893 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 1894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1895 | $as_echo_n "checking for $2... " >&6; } | 1895 | $as_echo_n "checking for $2... " >&6; } |
| 1896 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | 1896 | if eval "test \"\${$3+set}\"" = set; then : |
| 1897 | $as_echo_n "(cached) " >&6 | 1897 | $as_echo_n "(cached) " >&6 |
| 1898 | else | 1898 | else |
| 1899 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 1899 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| @@ -1915,15 +1915,18 @@ $as_echo "$ac_res" >&6; } | |||
| 1915 | 1915 | ||
| 1916 | } # ac_fn_c_check_header_compile | 1916 | } # ac_fn_c_check_header_compile |
| 1917 | 1917 | ||
| 1918 | # ac_fn_c_check_decl LINENO SYMBOL VAR | 1918 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
| 1919 | # ------------------------------------ | 1919 | # --------------------------------------------- |
| 1920 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. | 1920 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 1921 | # accordingly. | ||
| 1921 | ac_fn_c_check_decl () | 1922 | ac_fn_c_check_decl () |
| 1922 | { | 1923 | { |
| 1923 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 1924 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 | 1925 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 1925 | $as_echo_n "checking whether $2 is declared... " >&6; } | 1926 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 1926 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | 1927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 1928 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | ||
| 1929 | if eval "test \"\${$3+set}\"" = set; then : | ||
| 1927 | $as_echo_n "(cached) " >&6 | 1930 | $as_echo_n "(cached) " >&6 |
| 1928 | else | 1931 | else |
| 1929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 1932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| @@ -1932,8 +1935,12 @@ $4 | |||
| 1932 | int | 1935 | int |
| 1933 | main () | 1936 | main () |
| 1934 | { | 1937 | { |
| 1935 | #ifndef $2 | 1938 | #ifndef $as_decl_name |
| 1936 | (void) $2; | 1939 | #ifdef __cplusplus |
| 1940 | (void) $as_decl_use; | ||
| 1941 | #else | ||
| 1942 | (void) $as_decl_name; | ||
| 1943 | #endif | ||
| 1937 | #endif | 1944 | #endif |
| 1938 | 1945 | ||
| 1939 | ; | 1946 | ; |
| @@ -1962,7 +1969,7 @@ ac_fn_c_check_header_preproc () | |||
| 1962 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 1969 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 1970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1964 | $as_echo_n "checking for $2... " >&6; } | 1971 | $as_echo_n "checking for $2... " >&6; } |
| 1965 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | 1972 | if eval "test \"\${$3+set}\"" = set; then : |
| 1966 | $as_echo_n "(cached) " >&6 | 1973 | $as_echo_n "(cached) " >&6 |
| 1967 | else | 1974 | else |
| 1968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 1975 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| @@ -1992,7 +1999,7 @@ ac_fn_c_check_member () | |||
| 1992 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 1999 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | 2000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 1994 | $as_echo_n "checking for $2.$3... " >&6; } | 2001 | $as_echo_n "checking for $2.$3... " >&6; } |
| 1995 | if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : | 2002 | if eval "test \"\${$4+set}\"" = set; then : |
| 1996 | $as_echo_n "(cached) " >&6 | 2003 | $as_echo_n "(cached) " >&6 |
| 1997 | else | 2004 | else |
| 1998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 2005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| @@ -2048,7 +2055,7 @@ ac_fn_c_check_func () | |||
| 2048 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 2055 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 2056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2050 | $as_echo_n "checking for $2... " >&6; } | 2057 | $as_echo_n "checking for $2... " >&6; } |
| 2051 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | 2058 | if eval "test \"\${$3+set}\"" = set; then : |
| 2052 | $as_echo_n "(cached) " >&6 | 2059 | $as_echo_n "(cached) " >&6 |
| 2053 | else | 2060 | else |
| 2054 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 2061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| @@ -2116,7 +2123,7 @@ ac_fn_c_check_type () | |||
| 2116 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 2123 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 2124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2118 | $as_echo_n "checking for $2... " >&6; } | 2125 | $as_echo_n "checking for $2... " >&6; } |
| 2119 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | 2126 | if eval "test \"\${$3+set}\"" = set; then : |
| 2120 | $as_echo_n "(cached) " >&6 | 2127 | $as_echo_n "(cached) " >&6 |
| 2121 | else | 2128 | else |
| 2122 | eval "$3=no" | 2129 | eval "$3=no" |
| @@ -2165,7 +2172,7 @@ This file contains any messages produced by compilers while | |||
| 2165 | running configure, to aid debugging if configure makes a mistake. | 2172 | running configure, to aid debugging if configure makes a mistake. |
| 2166 | 2173 | ||
| 2167 | It was created by emacs $as_me 24.0.50, which was | 2174 | It was created by emacs $as_me 24.0.50, which was |
| 2168 | generated by GNU Autoconf 2.65. Invocation command line was | 2175 | generated by GNU Autoconf 2.66. Invocation command line was |
| 2169 | 2176 | ||
| 2170 | $ $0 $@ | 2177 | $ $0 $@ |
| 2171 | 2178 | ||
| @@ -2275,11 +2282,9 @@ trap 'exit_status=$? | |||
| 2275 | { | 2282 | { |
| 2276 | echo | 2283 | echo |
| 2277 | 2284 | ||
| 2278 | cat <<\_ASBOX | 2285 | $as_echo "## ---------------- ## |
| 2279 | ## ---------------- ## | ||
| 2280 | ## Cache variables. ## | 2286 | ## Cache variables. ## |
| 2281 | ## ---------------- ## | 2287 | ## ---------------- ##" |
| 2282 | _ASBOX | ||
| 2283 | echo | 2288 | echo |
| 2284 | # The following way of writing the cache mishandles newlines in values, | 2289 | # The following way of writing the cache mishandles newlines in values, |
| 2285 | ( | 2290 | ( |
| @@ -2313,11 +2318,9 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |||
| 2313 | ) | 2318 | ) |
| 2314 | echo | 2319 | echo |
| 2315 | 2320 | ||
| 2316 | cat <<\_ASBOX | 2321 | $as_echo "## ----------------- ## |
| 2317 | ## ----------------- ## | ||
| 2318 | ## Output variables. ## | 2322 | ## Output variables. ## |
| 2319 | ## ----------------- ## | 2323 | ## ----------------- ##" |
| 2320 | _ASBOX | ||
| 2321 | echo | 2324 | echo |
| 2322 | for ac_var in $ac_subst_vars | 2325 | for ac_var in $ac_subst_vars |
| 2323 | do | 2326 | do |
| @@ -2330,11 +2333,9 @@ _ASBOX | |||
| 2330 | echo | 2333 | echo |
| 2331 | 2334 | ||
| 2332 | if test -n "$ac_subst_files"; then | 2335 | if test -n "$ac_subst_files"; then |
| 2333 | cat <<\_ASBOX | 2336 | $as_echo "## ------------------- ## |
| 2334 | ## ------------------- ## | ||
| 2335 | ## File substitutions. ## | 2337 | ## File substitutions. ## |
| 2336 | ## ------------------- ## | 2338 | ## ------------------- ##" |
| 2337 | _ASBOX | ||
| 2338 | echo | 2339 | echo |
| 2339 | for ac_var in $ac_subst_files | 2340 | for ac_var in $ac_subst_files |
| 2340 | do | 2341 | do |
| @@ -2348,11 +2349,9 @@ _ASBOX | |||
| 2348 | fi | 2349 | fi |
| 2349 | 2350 | ||
| 2350 | if test -s confdefs.h; then | 2351 | if test -s confdefs.h; then |
| 2351 | cat <<\_ASBOX | 2352 | $as_echo "## ----------- ## |
| 2352 | ## ----------- ## | ||
| 2353 | ## confdefs.h. ## | 2353 | ## confdefs.h. ## |
| 2354 | ## ----------- ## | 2354 | ## ----------- ##" |
| 2355 | _ASBOX | ||
| 2356 | echo | 2355 | echo |
| 2357 | cat confdefs.h | 2356 | cat confdefs.h |
| 2358 | echo | 2357 | echo |
| @@ -2407,7 +2406,12 @@ _ACEOF | |||
| 2407 | ac_site_file1=NONE | 2406 | ac_site_file1=NONE |
| 2408 | ac_site_file2=NONE | 2407 | ac_site_file2=NONE |
| 2409 | if test -n "$CONFIG_SITE"; then | 2408 | if test -n "$CONFIG_SITE"; then |
| 2410 | ac_site_file1=$CONFIG_SITE | 2409 | # We do not want a PATH search for config.site. |
| 2410 | case $CONFIG_SITE in #(( | ||
| 2411 | -*) ac_site_file1=./$CONFIG_SITE;; | ||
| 2412 | */*) ac_site_file1=$CONFIG_SITE;; | ||
| 2413 | *) ac_site_file1=./$CONFIG_SITE;; | ||
| 2414 | esac | ||
| 2411 | elif test "x$prefix" != xNONE; then | 2415 | elif test "x$prefix" != xNONE; then |
| 2412 | ac_site_file1=$prefix/share/config.site | 2416 | ac_site_file1=$prefix/share/config.site |
| 2413 | ac_site_file2=$prefix/etc/config.site | 2417 | ac_site_file2=$prefix/etc/config.site |
| @@ -2422,7 +2426,11 @@ do | |||
| 2422 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | 2426 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2423 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | 2427 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 2424 | sed 's/^/| /' "$ac_site_file" >&5 | 2428 | sed 's/^/| /' "$ac_site_file" >&5 |
| 2425 | . "$ac_site_file" | 2429 | . "$ac_site_file" \ |
| 2430 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
| 2431 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
| 2432 | as_fn_error $? "failed to load site script $ac_site_file | ||
| 2433 | See \`config.log' for more details" "$LINENO" 5; } | ||
| 2426 | fi | 2434 | fi |
| 2427 | done | 2435 | done |
| 2428 | 2436 | ||
| @@ -2503,7 +2511,7 @@ if $ac_cache_corrupted; then | |||
| 2503 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 2511 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2504 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | 2512 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2505 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | 2513 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2506 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | 2514 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
| 2507 | fi | 2515 | fi |
| 2508 | ## -------------------- ## | 2516 | ## -------------------- ## |
| 2509 | ## Main body of script. ## | 2517 | ## Main body of script. ## |
| @@ -2677,7 +2685,7 @@ if test "${with_x_toolkit+set}" = set; then : | |||
| 2677 | g | gt | gtk ) val=gtk ;; | 2685 | g | gt | gtk ) val=gtk ;; |
| 2678 | gtk3 ) val=gtk3 ;; | 2686 | gtk3 ) val=gtk3 ;; |
| 2679 | * ) | 2687 | * ) |
| 2680 | as_fn_error "\`--with-x-toolkit=$withval' is invalid; | 2688 | as_fn_error $? "\`--with-x-toolkit=$withval' is invalid; |
| 2681 | this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or | 2689 | this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or |
| 2682 | \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5 | 2690 | \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5 |
| 2683 | ;; | 2691 | ;; |
| @@ -2972,7 +2980,7 @@ do | |||
| 2972 | stringfreelist) ac_gc_check_string_free_list=1 ;; | 2980 | stringfreelist) ac_gc_check_string_free_list=1 ;; |
| 2973 | xmallocoverrun) ac_xmalloc_overrun=1 ;; | 2981 | xmallocoverrun) ac_xmalloc_overrun=1 ;; |
| 2974 | conslist) ac_gc_check_cons_list=1 ;; | 2982 | conslist) ac_gc_check_cons_list=1 ;; |
| 2975 | *) as_fn_error "unknown check category $check" "$LINENO" 5 ;; | 2983 | *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;; |
| 2976 | esac | 2984 | esac |
| 2977 | done | 2985 | done |
| 2978 | IFS="$ac_save_IFS" | 2986 | IFS="$ac_save_IFS" |
| @@ -3090,16 +3098,22 @@ fi | |||
| 3090 | 3098 | ||
| 3091 | ac_aux_dir= | 3099 | ac_aux_dir= |
| 3092 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | 3100 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 3093 | for ac_t in install-sh install.sh shtool; do | 3101 | if test -f "$ac_dir/install-sh"; then |
| 3094 | if test -f "$ac_dir/$ac_t"; then | 3102 | ac_aux_dir=$ac_dir |
| 3095 | ac_aux_dir=$ac_dir | 3103 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3096 | ac_install_sh="$ac_aux_dir/$ac_t -c" | 3104 | break |
| 3097 | break 2 | 3105 | elif test -f "$ac_dir/install.sh"; then |
| 3098 | fi | 3106 | ac_aux_dir=$ac_dir |
| 3099 | done | 3107 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3108 | break | ||
| 3109 | elif test -f "$ac_dir/shtool"; then | ||
| 3110 | ac_aux_dir=$ac_dir | ||
| 3111 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
| 3112 | break | ||
| 3113 | fi | ||
| 3100 | done | 3114 | done |
| 3101 | if test -z "$ac_aux_dir"; then | 3115 | if test -z "$ac_aux_dir"; then |
| 3102 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | 3116 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
| 3103 | fi | 3117 | fi |
| 3104 | 3118 | ||
| 3105 | # These three variables are undocumented and unsupported, | 3119 | # These three variables are undocumented and unsupported, |
| @@ -3113,7 +3127,7 @@ ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |||
| 3113 | 3127 | ||
| 3114 | # Make sure we can run config.sub. | 3128 | # Make sure we can run config.sub. |
| 3115 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | 3129 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 3116 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | 3130 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
| 3117 | 3131 | ||
| 3118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | 3132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 3119 | $as_echo_n "checking build system type... " >&6; } | 3133 | $as_echo_n "checking build system type... " >&6; } |
| @@ -3124,16 +3138,16 @@ else | |||
| 3124 | test "x$ac_build_alias" = x && | 3138 | test "x$ac_build_alias" = x && |
| 3125 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | 3139 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 3126 | test "x$ac_build_alias" = x && | 3140 | test "x$ac_build_alias" = x && |
| 3127 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | 3141 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| 3128 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | 3142 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 3129 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | 3143 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
| 3130 | 3144 | ||
| 3131 | fi | 3145 | fi |
| 3132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | 3146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 3133 | $as_echo "$ac_cv_build" >&6; } | 3147 | $as_echo "$ac_cv_build" >&6; } |
| 3134 | case $ac_cv_build in | 3148 | case $ac_cv_build in |
| 3135 | *-*-*) ;; | 3149 | *-*-*) ;; |
| 3136 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | 3150 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| 3137 | esac | 3151 | esac |
| 3138 | build=$ac_cv_build | 3152 | build=$ac_cv_build |
| 3139 | ac_save_IFS=$IFS; IFS='-' | 3153 | ac_save_IFS=$IFS; IFS='-' |
| @@ -3158,7 +3172,7 @@ else | |||
| 3158 | ac_cv_host=$ac_cv_build | 3172 | ac_cv_host=$ac_cv_build |
| 3159 | else | 3173 | else |
| 3160 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | 3174 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 3161 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | 3175 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
| 3162 | fi | 3176 | fi |
| 3163 | 3177 | ||
| 3164 | fi | 3178 | fi |
| @@ -3166,7 +3180,7 @@ fi | |||
| 3166 | $as_echo "$ac_cv_host" >&6; } | 3180 | $as_echo "$ac_cv_host" >&6; } |
| 3167 | case $ac_cv_host in | 3181 | case $ac_cv_host in |
| 3168 | *-*-*) ;; | 3182 | *-*-*) ;; |
| 3169 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | 3183 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| 3170 | esac | 3184 | esac |
| 3171 | host=$ac_cv_host | 3185 | host=$ac_cv_host |
| 3172 | ac_save_IFS=$IFS; IFS='-' | 3186 | ac_save_IFS=$IFS; IFS='-' |
| @@ -3460,7 +3474,7 @@ fi | |||
| 3460 | 3474 | ||
| 3461 | 3475 | ||
| 3462 | if test $unported = yes; then | 3476 | if test $unported = yes; then |
| 3463 | as_fn_error "Emacs hasn't been ported to \`${canonical}' systems. | 3477 | as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems. |
| 3464 | Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5 | 3478 | Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5 |
| 3465 | fi | 3479 | fi |
| 3466 | 3480 | ||
| @@ -3774,8 +3788,8 @@ fi | |||
| 3774 | 3788 | ||
| 3775 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 3789 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3776 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 3790 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3777 | as_fn_error "no acceptable C compiler found in \$PATH | 3791 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3778 | See \`config.log' for more details." "$LINENO" 5; } | 3792 | See \`config.log' for more details" "$LINENO" 5; } |
| 3779 | 3793 | ||
| 3780 | # Provide some information about the compiler. | 3794 | # Provide some information about the compiler. |
| 3781 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | 3795 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| @@ -3889,9 +3903,8 @@ sed 's/^/| /' conftest.$ac_ext >&5 | |||
| 3889 | 3903 | ||
| 3890 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 3904 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3891 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 3905 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3892 | { as_fn_set_status 77 | 3906 | as_fn_error 77 "C compiler cannot create executables |
| 3893 | as_fn_error "C compiler cannot create executables | 3907 | See \`config.log' for more details" "$LINENO" 5; } |
| 3894 | See \`config.log' for more details." "$LINENO" 5; }; } | ||
| 3895 | else | 3908 | else |
| 3896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 3909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3897 | $as_echo "yes" >&6; } | 3910 | $as_echo "yes" >&6; } |
| @@ -3933,8 +3946,8 @@ done | |||
| 3933 | else | 3946 | else |
| 3934 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 3947 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3935 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 3948 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3936 | as_fn_error "cannot compute suffix of executables: cannot compile and link | 3949 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3937 | See \`config.log' for more details." "$LINENO" 5; } | 3950 | See \`config.log' for more details" "$LINENO" 5; } |
| 3938 | fi | 3951 | fi |
| 3939 | rm -f conftest conftest$ac_cv_exeext | 3952 | rm -f conftest conftest$ac_cv_exeext |
| 3940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | 3953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| @@ -3991,9 +4004,9 @@ $as_echo "$ac_try_echo"; } >&5 | |||
| 3991 | else | 4004 | else |
| 3992 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 4005 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3993 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 4006 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3994 | as_fn_error "cannot run C compiled programs. | 4007 | as_fn_error $? "cannot run C compiled programs. |
| 3995 | If you meant to cross compile, use \`--host'. | 4008 | If you meant to cross compile, use \`--host'. |
| 3996 | See \`config.log' for more details." "$LINENO" 5; } | 4009 | See \`config.log' for more details" "$LINENO" 5; } |
| 3997 | fi | 4010 | fi |
| 3998 | fi | 4011 | fi |
| 3999 | fi | 4012 | fi |
| @@ -4044,8 +4057,8 @@ sed 's/^/| /' conftest.$ac_ext >&5 | |||
| 4044 | 4057 | ||
| 4045 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 4058 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4046 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 4059 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4047 | as_fn_error "cannot compute suffix of object files: cannot compile | 4060 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 4048 | See \`config.log' for more details." "$LINENO" 5; } | 4061 | See \`config.log' for more details" "$LINENO" 5; } |
| 4049 | fi | 4062 | fi |
| 4050 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | 4063 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 4051 | fi | 4064 | fi |
| @@ -4462,8 +4475,8 @@ if $ac_preproc_ok; then : | |||
| 4462 | else | 4475 | else |
| 4463 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 4476 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4464 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 4477 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4465 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | 4478 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 4466 | See \`config.log' for more details." "$LINENO" 5; } | 4479 | See \`config.log' for more details" "$LINENO" 5; } |
| 4467 | fi | 4480 | fi |
| 4468 | 4481 | ||
| 4469 | ac_ext=c | 4482 | ac_ext=c |
| @@ -4524,7 +4537,7 @@ esac | |||
| 4524 | done | 4537 | done |
| 4525 | IFS=$as_save_IFS | 4538 | IFS=$as_save_IFS |
| 4526 | if test -z "$ac_cv_path_GREP"; then | 4539 | if test -z "$ac_cv_path_GREP"; then |
| 4527 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | 4540 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4528 | fi | 4541 | fi |
| 4529 | else | 4542 | else |
| 4530 | ac_cv_path_GREP=$GREP | 4543 | ac_cv_path_GREP=$GREP |
| @@ -4590,7 +4603,7 @@ esac | |||
| 4590 | done | 4603 | done |
| 4591 | IFS=$as_save_IFS | 4604 | IFS=$as_save_IFS |
| 4592 | if test -z "$ac_cv_path_EGREP"; then | 4605 | if test -z "$ac_cv_path_EGREP"; then |
| 4593 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | 4606 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4594 | fi | 4607 | fi |
| 4595 | else | 4608 | else |
| 4596 | ac_cv_path_EGREP=$EGREP | 4609 | ac_cv_path_EGREP=$EGREP |
| @@ -4722,8 +4735,7 @@ do : | |||
| 4722 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 4735 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4723 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | 4736 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 4724 | " | 4737 | " |
| 4725 | eval as_val=\$$as_ac_Header | 4738 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 4726 | if test "x$as_val" = x""yes; then : | ||
| 4727 | cat >>confdefs.h <<_ACEOF | 4739 | cat >>confdefs.h <<_ACEOF |
| 4728 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 4740 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4729 | _ACEOF | 4741 | _ACEOF |
| @@ -5052,8 +5064,8 @@ if $ac_preproc_ok; then : | |||
| 5052 | else | 5064 | else |
| 5053 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 5065 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5054 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 5066 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5055 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | 5067 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 5056 | See \`config.log' for more details." "$LINENO" 5; } | 5068 | See \`config.log' for more details" "$LINENO" 5; } |
| 5057 | fi | 5069 | fi |
| 5058 | 5070 | ||
| 5059 | ac_ext=c | 5071 | ac_ext=c |
| @@ -5490,7 +5502,7 @@ if test "$MAKEINFO" = "no"; then | |||
| 5490 | if test "x${with_makeinfo}" = "xno"; then | 5502 | if test "x${with_makeinfo}" = "xno"; then |
| 5491 | MAKEINFO=off | 5503 | MAKEINFO=off |
| 5492 | elif test ! -e $srcdir/info/emacs; then | 5504 | elif test ! -e $srcdir/info/emacs; then |
| 5493 | as_fn_error "You do not seem to have makeinfo >= 4.6, and your | 5505 | as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your |
| 5494 | source tree does not seem to have pre-built manuals in the \`info' directory. | 5506 | source tree does not seem to have pre-built manuals in the \`info' directory. |
| 5495 | Either install a suitable version of makeinfo, or re-run configure | 5507 | Either install a suitable version of makeinfo, or re-run configure |
| 5496 | with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5 | 5508 | with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5 |
| @@ -5644,7 +5656,7 @@ fi | |||
| 5644 | if test "x$GCC" = "xyes"; then | 5656 | if test "x$GCC" = "xyes"; then |
| 5645 | C_SWITCH_MACHINE="-fno-common" | 5657 | C_SWITCH_MACHINE="-fno-common" |
| 5646 | else | 5658 | else |
| 5647 | as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5 | 5659 | as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5 |
| 5648 | fi | 5660 | fi |
| 5649 | else | 5661 | else |
| 5650 | UNEXEC_OBJ=unexalpha.o | 5662 | UNEXEC_OBJ=unexalpha.o |
| @@ -5922,7 +5934,7 @@ else | |||
| 5922 | ## Some platforms don't use any of these files, so it is not | 5934 | ## Some platforms don't use any of these files, so it is not |
| 5923 | ## appropriate to put this test outside the if block. | 5935 | ## appropriate to put this test outside the if block. |
| 5924 | test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \ | 5936 | test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \ |
| 5925 | as_fn_error "crt*.o not found in specified location." "$LINENO" 5 | 5937 | as_fn_error $? "crt*.o not found in specified location." "$LINENO" 5 |
| 5926 | 5938 | ||
| 5927 | fi | 5939 | fi |
| 5928 | 5940 | ||
| @@ -5977,8 +5989,7 @@ if test "${with_sound}" != "no"; then | |||
| 5977 | do : | 5989 | do : |
| 5978 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 5990 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5979 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 5991 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 5980 | eval as_val=\$$as_ac_Header | 5992 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 5981 | if test "x$as_val" = x""yes; then : | ||
| 5982 | cat >>confdefs.h <<_ACEOF | 5993 | cat >>confdefs.h <<_ACEOF |
| 5983 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 5994 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5984 | _ACEOF | 5995 | _ACEOF |
| @@ -6169,7 +6180,7 @@ else | |||
| 6169 | fi | 6180 | fi |
| 6170 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 6181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6171 | if test "$emacs_alsa_subdir" != yes; then | 6182 | if test "$emacs_alsa_subdir" != yes; then |
| 6172 | as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5 | 6183 | as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5 |
| 6173 | fi | 6184 | fi |
| 6174 | ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE" | 6185 | ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE" |
| 6175 | fi | 6186 | fi |
| @@ -6204,8 +6215,7 @@ for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ | |||
| 6204 | do : | 6215 | do : |
| 6205 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 6216 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6206 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 6217 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 6207 | eval as_val=\$$as_ac_Header | 6218 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 6208 | if test "x$as_val" = x""yes; then : | ||
| 6209 | cat >>confdefs.h <<_ACEOF | 6219 | cat >>confdefs.h <<_ACEOF |
| 6210 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 6220 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6211 | _ACEOF | 6221 | _ACEOF |
| @@ -7260,7 +7270,7 @@ $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |||
| 7260 | 7270 | ||
| 7261 | ;; #( | 7271 | ;; #( |
| 7262 | *) | 7272 | *) |
| 7263 | as_fn_error "unknown endianness | 7273 | as_fn_error $? "unknown endianness |
| 7264 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | 7274 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
| 7265 | esac | 7275 | esac |
| 7266 | 7276 | ||
| @@ -7269,7 +7279,7 @@ $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |||
| 7269 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | 7279 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 7270 | set x ${MAKE-make} | 7280 | set x ${MAKE-make} |
| 7271 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | 7281 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 7272 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | 7282 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : |
| 7273 | $as_echo_n "(cached) " >&6 | 7283 | $as_echo_n "(cached) " >&6 |
| 7274 | else | 7284 | else |
| 7275 | cat >conftest.make <<\_ACEOF | 7285 | cat >conftest.make <<\_ACEOF |
| @@ -7277,7 +7287,7 @@ SHELL = /bin/sh | |||
| 7277 | all: | 7287 | all: |
| 7278 | @echo '@@@%%%=$(MAKE)=@@@%%%' | 7288 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 7279 | _ACEOF | 7289 | _ACEOF |
| 7280 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | 7290 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| 7281 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | 7291 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 7282 | *@@@%%%=?*=@@@%%%*) | 7292 | *@@@%%%=?*=@@@%%%*) |
| 7283 | eval ac_cv_prog_make_${ac_make}_set=yes;; | 7293 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| @@ -7413,7 +7423,7 @@ if test "x$with_x" = xno; then | |||
| 7413 | have_x=disabled | 7423 | have_x=disabled |
| 7414 | else | 7424 | else |
| 7415 | case $x_includes,$x_libraries in #( | 7425 | case $x_includes,$x_libraries in #( |
| 7416 | *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #( | 7426 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( |
| 7417 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : | 7427 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : |
| 7418 | $as_echo_n "(cached) " >&6 | 7428 | $as_echo_n "(cached) " >&6 |
| 7419 | else | 7429 | else |
| @@ -7431,7 +7441,7 @@ libdir: | |||
| 7431 | @echo libdir='${LIBDIR}' | 7441 | @echo libdir='${LIBDIR}' |
| 7432 | _ACEOF | 7442 | _ACEOF |
| 7433 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then | 7443 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
| 7434 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | 7444 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| 7435 | for ac_var in incroot usrlibdir libdir; do | 7445 | for ac_var in incroot usrlibdir libdir; do |
| 7436 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" | 7446 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
| 7437 | done | 7447 | done |
| @@ -7700,7 +7710,7 @@ if test "${with_ns}" != no; then | |||
| 7700 | if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then : | 7710 | if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then : |
| 7701 | HAVE_NS=yes | 7711 | HAVE_NS=yes |
| 7702 | else | 7712 | else |
| 7703 | as_fn_error "\`--with-ns' was specified, but the include | 7713 | as_fn_error $? "\`--with-ns' was specified, but the include |
| 7704 | files are missing or cannot be compiled." "$LINENO" 5 | 7714 | files are missing or cannot be compiled." "$LINENO" 5 |
| 7705 | fi | 7715 | fi |
| 7706 | 7716 | ||
| @@ -7816,7 +7826,7 @@ fi | |||
| 7816 | if test "$HAVE_XSERVER" = true || | 7826 | if test "$HAVE_XSERVER" = true || |
| 7817 | test -n "$DISPLAY" || | 7827 | test -n "$DISPLAY" || |
| 7818 | test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then | 7828 | test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then |
| 7819 | as_fn_error "You seem to be running X, but no X development libraries | 7829 | as_fn_error $? "You seem to be running X, but no X development libraries |
| 7820 | were found. You should install the relevant development files for X | 7830 | were found. You should install the relevant development files for X |
| 7821 | and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make | 7831 | and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make |
| 7822 | sure you have development files for image handling, i.e. | 7832 | sure you have development files for image handling, i.e. |
| @@ -7939,8 +7949,7 @@ do : | |||
| 7939 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 7949 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7940 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | 7950 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 7941 | " | 7951 | " |
| 7942 | eval as_val=\$$as_ac_Header | 7952 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 7943 | if test "x$as_val" = x""yes; then : | ||
| 7944 | cat >>confdefs.h <<_ACEOF | 7953 | cat >>confdefs.h <<_ACEOF |
| 7945 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 7954 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7946 | _ACEOF | 7955 | _ACEOF |
| @@ -8447,8 +8456,7 @@ XScreenNumberOfScreen XSetWMProtocols | |||
| 8447 | do : | 8456 | do : |
| 8448 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 8457 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 8449 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 8458 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 8450 | eval as_val=\$$as_ac_var | 8459 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 8451 | if test "x$as_val" = x""yes; then : | ||
| 8452 | cat >>confdefs.h <<_ACEOF | 8460 | cat >>confdefs.h <<_ACEOF |
| 8453 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 8461 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 8454 | _ACEOF | 8462 | _ACEOF |
| @@ -8848,7 +8856,7 @@ $as_echo "no" >&6; } | |||
| 8848 | fi | 8856 | fi |
| 8849 | 8857 | ||
| 8850 | if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then | 8858 | if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then |
| 8851 | as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5 | 8859 | as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5 |
| 8852 | fi | 8860 | fi |
| 8853 | fi | 8861 | fi |
| 8854 | 8862 | ||
| @@ -8954,7 +8962,7 @@ $as_echo "no" >&6; } | |||
| 8954 | fi | 8962 | fi |
| 8955 | 8963 | ||
| 8956 | if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then | 8964 | if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then |
| 8957 | as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5 | 8965 | as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5 |
| 8958 | fi | 8966 | fi |
| 8959 | fi | 8967 | fi |
| 8960 | fi | 8968 | fi |
| @@ -8981,7 +8989,7 @@ done | |||
| 8981 | 8989 | ||
| 8982 | if test "${GTK_COMPILES}" != "yes"; then | 8990 | if test "${GTK_COMPILES}" != "yes"; then |
| 8983 | if test "$USE_X_TOOLKIT" != "maybe"; then | 8991 | if test "$USE_X_TOOLKIT" != "maybe"; then |
| 8984 | as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5; | 8992 | as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5; |
| 8985 | fi | 8993 | fi |
| 8986 | else | 8994 | else |
| 8987 | HAVE_GTK=yes | 8995 | HAVE_GTK=yes |
| @@ -9111,8 +9119,7 @@ $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h | |||
| 9111 | do : | 9119 | do : |
| 9112 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 9120 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9113 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 9121 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 9114 | eval as_val=\$$as_ac_var | 9122 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 9115 | if test "x$as_val" = x""yes; then : | ||
| 9116 | cat >>confdefs.h <<_ACEOF | 9123 | cat >>confdefs.h <<_ACEOF |
| 9117 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 9124 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9118 | _ACEOF | 9125 | _ACEOF |
| @@ -9477,7 +9484,7 @@ $as_echo "yes; using Lucid toolkit" >&6; } | |||
| 9477 | USE_X_TOOLKIT=LUCID | 9484 | USE_X_TOOLKIT=LUCID |
| 9478 | LUCID_LIBW=-lXaw | 9485 | LUCID_LIBW=-lXaw |
| 9479 | elif test x"${USE_X_TOOLKIT}" = xLUCID; then | 9486 | elif test x"${USE_X_TOOLKIT}" = xLUCID; then |
| 9480 | as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5 | 9487 | as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5 |
| 9481 | else | 9488 | else |
| 9482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5 | 9489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5 |
| 9483 | $as_echo "no; do not use toolkit by default" >&6; } | 9490 | $as_echo "no; do not use toolkit by default" >&6; } |
| @@ -10654,8 +10661,7 @@ if test "${HAVE_X11}" = "yes"; then | |||
| 10654 | do : | 10661 | do : |
| 10655 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 10662 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10656 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 10663 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 10657 | eval as_val=\$$as_ac_Header | 10664 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 10658 | if test "x$as_val" = x""yes; then : | ||
| 10659 | cat >>confdefs.h <<_ACEOF | 10665 | cat >>confdefs.h <<_ACEOF |
| 10660 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 10666 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10661 | _ACEOF | 10667 | _ACEOF |
| @@ -10907,7 +10913,7 @@ if test "${HAVE_X11}" = "yes"; then | |||
| 10907 | MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no" | 10913 | MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no" |
| 10908 | 10914 | ||
| 10909 | if test "X${MISSING}" != X; then | 10915 | if test "X${MISSING}" != X; then |
| 10910 | as_fn_error "The following required libraries were not found: | 10916 | as_fn_error $? "The following required libraries were not found: |
| 10911 | $MISSING | 10917 | $MISSING |
| 10912 | Maybe some development libraries/packages are missing? | 10918 | Maybe some development libraries/packages are missing? |
| 10913 | If you don't want to link with them give | 10919 | If you don't want to link with them give |
| @@ -11396,8 +11402,7 @@ if test $ac_cv_os_cray = yes; then | |||
| 11396 | for ac_func in _getb67 GETB67 getb67; do | 11402 | for ac_func in _getb67 GETB67 getb67; do |
| 11397 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 11403 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11398 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 11404 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 11399 | eval as_val=\$$as_ac_var | 11405 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 11400 | if test "x$as_val" = x""yes; then : | ||
| 11401 | 11406 | ||
| 11402 | cat >>confdefs.h <<_ACEOF | 11407 | cat >>confdefs.h <<_ACEOF |
| 11403 | #define CRAY_STACKSEG_END $ac_func | 11408 | #define CRAY_STACKSEG_END $ac_func |
| @@ -11461,7 +11466,7 @@ fi | |||
| 11461 | 11466 | ||
| 11462 | 11467 | ||
| 11463 | if test x"$ac_cv_func_alloca_works" != xyes; then | 11468 | if test x"$ac_cv_func_alloca_works" != xyes; then |
| 11464 | as_fn_error "a system implementation of alloca is required " "$LINENO" 5 | 11469 | as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5 |
| 11465 | fi | 11470 | fi |
| 11466 | 11471 | ||
| 11467 | # fmod, logb, and frexp are found in -lm on most systems. | 11472 | # fmod, logb, and frexp are found in -lm on most systems. |
| @@ -11657,7 +11662,7 @@ fi | |||
| 11657 | 11662 | ||
| 11658 | 11663 | ||
| 11659 | if test $ac_cv_prog_liblockfile = yes; then | 11664 | if test $ac_cv_prog_liblockfile = yes; then |
| 11660 | as_fn_error "Shared liblockfile found but can't link against it. | 11665 | as_fn_error $? "Shared liblockfile found but can't link against it. |
| 11661 | This probably means that movemail could lose mail. | 11666 | This probably means that movemail could lose mail. |
| 11662 | There may be a \`development' package to install containing liblockfile." "$LINENO" 5 | 11667 | There may be a \`development' package to install containing liblockfile." "$LINENO" 5 |
| 11663 | fi | 11668 | fi |
| @@ -11746,8 +11751,7 @@ cfmakeraw cfsetspeed isnan copysign __executable_start | |||
| 11746 | do : | 11751 | do : |
| 11747 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 11752 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11748 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 11753 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 11749 | eval as_val=\$$as_ac_var | 11754 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 11750 | if test "x$as_val" = x""yes; then : | ||
| 11751 | cat >>confdefs.h <<_ACEOF | 11755 | cat >>confdefs.h <<_ACEOF |
| 11752 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 11756 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11753 | _ACEOF | 11757 | _ACEOF |
| @@ -11778,8 +11782,7 @@ done | |||
| 11778 | do : | 11782 | do : |
| 11779 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 11783 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11780 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 11784 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 11781 | eval as_val=\$$as_ac_var | 11785 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 11782 | if test "x$as_val" = x""yes; then : | ||
| 11783 | cat >>confdefs.h <<_ACEOF | 11786 | cat >>confdefs.h <<_ACEOF |
| 11784 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 11787 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11785 | _ACEOF | 11788 | _ACEOF |
| @@ -11831,8 +11834,8 @@ static time_t time_t_max; | |||
| 11831 | static time_t time_t_min; | 11834 | static time_t time_t_min; |
| 11832 | 11835 | ||
| 11833 | /* Values we'll use to set the TZ environment variable. */ | 11836 | /* Values we'll use to set the TZ environment variable. */ |
| 11834 | static char *tz_strings[] = { | 11837 | static const char *tz_strings[] = { |
| 11835 | (char *) 0, "TZ=GMT0", "TZ=JST-9", | 11838 | (const char *) 0, "TZ=GMT0", "TZ=JST-9", |
| 11836 | "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" | 11839 | "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" |
| 11837 | }; | 11840 | }; |
| 11838 | #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) | 11841 | #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) |
| @@ -11849,7 +11852,7 @@ spring_forward_gap () | |||
| 11849 | instead of "TZ=America/Vancouver" in order to detect the bug even | 11852 | instead of "TZ=America/Vancouver" in order to detect the bug even |
| 11850 | on systems that don't support the Olson extension, or don't have the | 11853 | on systems that don't support the Olson extension, or don't have the |
| 11851 | full zoneinfo tables installed. */ | 11854 | full zoneinfo tables installed. */ |
| 11852 | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | 11855 | putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0"); |
| 11853 | 11856 | ||
| 11854 | tm.tm_year = 98; | 11857 | tm.tm_year = 98; |
| 11855 | tm.tm_mon = 3; | 11858 | tm.tm_mon = 3; |
| @@ -11862,16 +11865,14 @@ spring_forward_gap () | |||
| 11862 | } | 11865 | } |
| 11863 | 11866 | ||
| 11864 | static int | 11867 | static int |
| 11865 | mktime_test1 (now) | 11868 | mktime_test1 (time_t now) |
| 11866 | time_t now; | ||
| 11867 | { | 11869 | { |
| 11868 | struct tm *lt; | 11870 | struct tm *lt; |
| 11869 | return ! (lt = localtime (&now)) || mktime (lt) == now; | 11871 | return ! (lt = localtime (&now)) || mktime (lt) == now; |
| 11870 | } | 11872 | } |
| 11871 | 11873 | ||
| 11872 | static int | 11874 | static int |
| 11873 | mktime_test (now) | 11875 | mktime_test (time_t now) |
| 11874 | time_t now; | ||
| 11875 | { | 11876 | { |
| 11876 | return (mktime_test1 (now) | 11877 | return (mktime_test1 (now) |
| 11877 | && mktime_test1 ((time_t) (time_t_max - now)) | 11878 | && mktime_test1 ((time_t) (time_t_max - now)) |
| @@ -11895,8 +11896,7 @@ irix_6_4_bug () | |||
| 11895 | } | 11896 | } |
| 11896 | 11897 | ||
| 11897 | static int | 11898 | static int |
| 11898 | bigtime_test (j) | 11899 | bigtime_test (int j) |
| 11899 | int j; | ||
| 11900 | { | 11900 | { |
| 11901 | struct tm tm; | 11901 | struct tm tm; |
| 11902 | time_t now; | 11902 | time_t now; |
| @@ -11940,7 +11940,7 @@ year_2050_test () | |||
| 11940 | instead of "TZ=America/Vancouver" in order to detect the bug even | 11940 | instead of "TZ=America/Vancouver" in order to detect the bug even |
| 11941 | on systems that don't support the Olson extension, or don't have the | 11941 | on systems that don't support the Olson extension, or don't have the |
| 11942 | full zoneinfo tables installed. */ | 11942 | full zoneinfo tables installed. */ |
| 11943 | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | 11943 | putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0"); |
| 11944 | 11944 | ||
| 11945 | t = mktime (&tm); | 11945 | t = mktime (&tm); |
| 11946 | 11946 | ||
| @@ -11975,7 +11975,7 @@ main () | |||
| 11975 | for (i = 0; i < N_STRINGS; i++) | 11975 | for (i = 0; i < N_STRINGS; i++) |
| 11976 | { | 11976 | { |
| 11977 | if (tz_strings[i]) | 11977 | if (tz_strings[i]) |
| 11978 | putenv (tz_strings[i]); | 11978 | putenv ((char*) tz_strings[i]); |
| 11979 | 11979 | ||
| 11980 | for (t = 0; t <= time_t_max - delta; t += delta) | 11980 | for (t = 0; t <= time_t_max - delta; t += delta) |
| 11981 | if (! mktime_test (t)) | 11981 | if (! mktime_test (t)) |
| @@ -12027,7 +12027,7 @@ ac_have_func=no # yes means we've found a way to get the load average. | |||
| 12027 | 12027 | ||
| 12028 | # Make sure getloadavg.c is where it belongs, at configure-time. | 12028 | # Make sure getloadavg.c is where it belongs, at configure-time. |
| 12029 | test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" || | 12029 | test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" || |
| 12030 | as_fn_error "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5 | 12030 | as_fn_error $? "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5 |
| 12031 | 12031 | ||
| 12032 | ac_save_LIBS=$LIBS | 12032 | ac_save_LIBS=$LIBS |
| 12033 | 12033 | ||
| @@ -12896,7 +12896,7 @@ else | |||
| 12896 | fi | 12896 | fi |
| 12897 | 12897 | ||
| 12898 | if test "$have_tputs_et_al" != true; then | 12898 | if test "$have_tputs_et_al" != true; then |
| 12899 | as_fn_error "I couldn't find termcap functions (tputs and friends). | 12899 | as_fn_error $? "I couldn't find termcap functions (tputs and friends). |
| 12900 | Maybe some development libraries/packages are missing? Try installing | 12900 | Maybe some development libraries/packages are missing? Try installing |
| 12901 | libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5 | 12901 | libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5 |
| 12902 | fi | 12902 | fi |
| @@ -14043,8 +14043,7 @@ for ac_func in fork vfork | |||
| 14043 | do : | 14043 | do : |
| 14044 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 14044 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14045 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 14045 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 14046 | eval as_val=\$$as_ac_var | 14046 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 14047 | if test "x$as_val" = x""yes; then : | ||
| 14048 | cat >>confdefs.h <<_ACEOF | 14047 | cat >>confdefs.h <<_ACEOF |
| 14049 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 14048 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14050 | _ACEOF | 14049 | _ACEOF |
| @@ -14418,14 +14417,14 @@ if test "x$GCC" = xyes \ | |||
| 14418 | && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \ | 14417 | && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \ |
| 14419 | && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \ | 14418 | && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \ |
| 14420 | && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then | 14419 | && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then |
| 14421 | as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5 | 14420 | as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5 |
| 14422 | fi | 14421 | fi |
| 14423 | 14422 | ||
| 14424 | #### Find out which version of Emacs this is. | 14423 | #### Find out which version of Emacs this is. |
| 14425 | version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \ | 14424 | version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \ |
| 14426 | | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` | 14425 | | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` |
| 14427 | if test x"${version}" = x; then | 14426 | if test x"${version}" = x; then |
| 14428 | as_fn_error "can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5 | 14427 | as_fn_error $? "can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5 |
| 14429 | fi | 14428 | fi |
| 14430 | if test x"${version}" != x"$PACKAGE_VERSION"; then | 14429 | if test x"${version}" != x"$PACKAGE_VERSION"; then |
| 14431 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5 | 14430 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5 |
| @@ -14849,10 +14848,12 @@ echo " Does Emacs use a gif library? ${HAVE_GIF} $LIB | |||
| 14849 | echo " Does Emacs use -lpng? ${HAVE_PNG}" | 14848 | echo " Does Emacs use -lpng? ${HAVE_PNG}" |
| 14850 | echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}" | 14849 | echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}" |
| 14851 | echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}" | 14850 | echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}" |
| 14851 | |||
| 14852 | echo " Does Emacs use -lgpm? ${HAVE_GPM}" | 14852 | echo " Does Emacs use -lgpm? ${HAVE_GPM}" |
| 14853 | echo " Does Emacs use -ldbus? ${HAVE_DBUS}" | 14853 | echo " Does Emacs use -ldbus? ${HAVE_DBUS}" |
| 14854 | echo " Does Emacs use -lgconf? ${HAVE_GCONF}" | 14854 | echo " Does Emacs use -lgconf? ${HAVE_GCONF}" |
| 14855 | echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}" | 14855 | echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}" |
| 14856 | echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}" | ||
| 14856 | 14857 | ||
| 14857 | echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}" | 14858 | echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}" |
| 14858 | echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}" | 14859 | echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}" |
| @@ -14983,6 +14984,7 @@ DEFS=-DHAVE_CONFIG_H | |||
| 14983 | 14984 | ||
| 14984 | ac_libobjs= | 14985 | ac_libobjs= |
| 14985 | ac_ltlibobjs= | 14986 | ac_ltlibobjs= |
| 14987 | U= | ||
| 14986 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | 14988 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 14987 | # 1. Remove the extension, and $U if already installed. | 14989 | # 1. Remove the extension, and $U if already installed. |
| 14988 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | 14990 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| @@ -15145,19 +15147,19 @@ export LANGUAGE | |||
| 15145 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 15147 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 15146 | 15148 | ||
| 15147 | 15149 | ||
| 15148 | # as_fn_error ERROR [LINENO LOG_FD] | 15150 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 15149 | # --------------------------------- | 15151 | # ---------------------------------------- |
| 15150 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 15152 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 15151 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | 15153 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 15152 | # script with status $?, using 1 if that was 0. | 15154 | # script with STATUS, using 1 if that was 0. |
| 15153 | as_fn_error () | 15155 | as_fn_error () |
| 15154 | { | 15156 | { |
| 15155 | as_status=$?; test $as_status -eq 0 && as_status=1 | 15157 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 15156 | if test "$3"; then | 15158 | if test "$4"; then |
| 15157 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 15159 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 15158 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | 15160 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 15159 | fi | 15161 | fi |
| 15160 | $as_echo "$as_me: error: $1" >&2 | 15162 | $as_echo "$as_me: error: $2" >&2 |
| 15161 | as_fn_exit $as_status | 15163 | as_fn_exit $as_status |
| 15162 | } # as_fn_error | 15164 | } # as_fn_error |
| 15163 | 15165 | ||
| @@ -15353,7 +15355,7 @@ $as_echo X"$as_dir" | | |||
| 15353 | test -d "$as_dir" && break | 15355 | test -d "$as_dir" && break |
| 15354 | done | 15356 | done |
| 15355 | test -z "$as_dirs" || eval "mkdir $as_dirs" | 15357 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 15356 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | 15358 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 15357 | 15359 | ||
| 15358 | 15360 | ||
| 15359 | } # as_fn_mkdir_p | 15361 | } # as_fn_mkdir_p |
| @@ -15407,7 +15409,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |||
| 15407 | # values after options handling. | 15409 | # values after options handling. |
| 15408 | ac_log=" | 15410 | ac_log=" |
| 15409 | This file was extended by emacs $as_me 24.0.50, which was | 15411 | This file was extended by emacs $as_me 24.0.50, which was |
| 15410 | generated by GNU Autoconf 2.65. Invocation command line was | 15412 | generated by GNU Autoconf 2.66. Invocation command line was |
| 15411 | 15413 | ||
| 15412 | CONFIG_FILES = $CONFIG_FILES | 15414 | CONFIG_FILES = $CONFIG_FILES |
| 15413 | CONFIG_HEADERS = $CONFIG_HEADERS | 15415 | CONFIG_HEADERS = $CONFIG_HEADERS |
| @@ -15473,10 +15475,10 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |||
| 15473 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | 15475 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| 15474 | ac_cs_version="\\ | 15476 | ac_cs_version="\\ |
| 15475 | emacs config.status 24.0.50 | 15477 | emacs config.status 24.0.50 |
| 15476 | configured by $0, generated by GNU Autoconf 2.65, | 15478 | configured by $0, generated by GNU Autoconf 2.66, |
| 15477 | with options \\"\$ac_cs_config\\" | 15479 | with options \\"\$ac_cs_config\\" |
| 15478 | 15480 | ||
| 15479 | Copyright (C) 2009 Free Software Foundation, Inc. | 15481 | Copyright (C) 2010 Free Software Foundation, Inc. |
| 15480 | This config.status script is free software; the Free Software Foundation | 15482 | This config.status script is free software; the Free Software Foundation |
| 15481 | gives unlimited permission to copy, distribute and modify it." | 15483 | gives unlimited permission to copy, distribute and modify it." |
| 15482 | 15484 | ||
| @@ -15530,7 +15532,7 @@ do | |||
| 15530 | ac_need_defaults=false;; | 15532 | ac_need_defaults=false;; |
| 15531 | --he | --h) | 15533 | --he | --h) |
| 15532 | # Conflict between --help and --header | 15534 | # Conflict between --help and --header |
| 15533 | as_fn_error "ambiguous option: \`$1' | 15535 | as_fn_error $? "ambiguous option: \`$1' |
| 15534 | Try \`$0 --help' for more information.";; | 15536 | Try \`$0 --help' for more information.";; |
| 15535 | --help | --hel | -h ) | 15537 | --help | --hel | -h ) |
| 15536 | $as_echo "$ac_cs_usage"; exit ;; | 15538 | $as_echo "$ac_cs_usage"; exit ;; |
| @@ -15539,7 +15541,7 @@ Try \`$0 --help' for more information.";; | |||
| 15539 | ac_cs_silent=: ;; | 15541 | ac_cs_silent=: ;; |
| 15540 | 15542 | ||
| 15541 | # This is an error. | 15543 | # This is an error. |
| 15542 | -*) as_fn_error "unrecognized option: \`$1' | 15544 | -*) as_fn_error $? "unrecognized option: \`$1' |
| 15543 | Try \`$0 --help' for more information." ;; | 15545 | Try \`$0 --help' for more information." ;; |
| 15544 | 15546 | ||
| 15545 | *) as_fn_append ac_config_targets " $1" | 15547 | *) as_fn_append ac_config_targets " $1" |
| @@ -15607,7 +15609,7 @@ do | |||
| 15607 | "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; | 15609 | "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; |
| 15608 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | 15610 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
| 15609 | 15611 | ||
| 15610 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | 15612 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 15611 | esac | 15613 | esac |
| 15612 | done | 15614 | done |
| 15613 | 15615 | ||
| @@ -15645,7 +15647,7 @@ $debug || | |||
| 15645 | { | 15647 | { |
| 15646 | tmp=./conf$$-$RANDOM | 15648 | tmp=./conf$$-$RANDOM |
| 15647 | (umask 077 && mkdir "$tmp") | 15649 | (umask 077 && mkdir "$tmp") |
| 15648 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | 15650 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 15649 | 15651 | ||
| 15650 | # Set up the scripts for CONFIG_FILES section. | 15652 | # Set up the scripts for CONFIG_FILES section. |
| 15651 | # No need to generate them if there are no CONFIG_FILES. | 15653 | # No need to generate them if there are no CONFIG_FILES. |
| @@ -15679,7 +15681,7 @@ if test "x$ac_cr" = x; then | |||
| 15679 | fi | 15681 | fi |
| 15680 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | 15682 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 15681 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | 15683 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 15682 | ac_cs_awk_cr='\r' | 15684 | ac_cs_awk_cr='\\r' |
| 15683 | else | 15685 | else |
| 15684 | ac_cs_awk_cr=$ac_cr | 15686 | ac_cs_awk_cr=$ac_cr |
| 15685 | fi | 15687 | fi |
| @@ -15696,7 +15698,7 @@ _ACEOF | |||
| 15696 | echo "_ACEOF" | 15698 | echo "_ACEOF" |
| 15697 | } >conf$$files.sh && | 15699 | } >conf$$files.sh && |
| 15698 | . ./conf$$files.sh || | 15700 | . ./conf$$files.sh || |
| 15699 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | 15701 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 15700 | rm -f conf$$files.sh | 15702 | rm -f conf$$files.sh |
| 15701 | 15703 | ||
| 15702 | { | 15704 | { |
| @@ -15704,18 +15706,18 @@ rm -f conf$$files.sh | |||
| 15704 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | 15706 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 15705 | echo "_ACEOF" | 15707 | echo "_ACEOF" |
| 15706 | } >conf$$subs.sh || | 15708 | } >conf$$subs.sh || |
| 15707 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | 15709 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 15708 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | 15710 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 15709 | ac_delim='%!_!# ' | 15711 | ac_delim='%!_!# ' |
| 15710 | for ac_last_try in false false false false false :; do | 15712 | for ac_last_try in false false false false false :; do |
| 15711 | . ./conf$$subs.sh || | 15713 | . ./conf$$subs.sh || |
| 15712 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | 15714 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 15713 | 15715 | ||
| 15714 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | 15716 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 15715 | if test $ac_delim_n = $ac_delim_num; then | 15717 | if test $ac_delim_n = $ac_delim_num; then |
| 15716 | break | 15718 | break |
| 15717 | elif $ac_last_try; then | 15719 | elif $ac_last_try; then |
| 15718 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | 15720 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 15719 | else | 15721 | else |
| 15720 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 15722 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 15721 | fi | 15723 | fi |
| @@ -15810,20 +15812,28 @@ if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |||
| 15810 | else | 15812 | else |
| 15811 | cat | 15813 | cat |
| 15812 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | 15814 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
| 15813 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | 15815 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| 15814 | _ACEOF | 15816 | _ACEOF |
| 15815 | 15817 | ||
| 15816 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | 15818 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 15817 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | 15819 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 15818 | # trailing colons and then remove the whole line if VPATH becomes empty | 15820 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 15819 | # (actually we leave an empty line to preserve line numbers). | 15821 | # (actually we leave an empty line to preserve line numbers). |
| 15820 | if test "x$srcdir" = x.; then | 15822 | if test "x$srcdir" = x.; then |
| 15821 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | 15823 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 15822 | s/:*\$(srcdir):*/:/ | 15824 | h |
| 15823 | s/:*\${srcdir}:*/:/ | 15825 | s/// |
| 15824 | s/:*@srcdir@:*/:/ | 15826 | s/^/:/ |
| 15825 | s/^\([^=]*=[ ]*\):*/\1/ | 15827 | s/[ ]*$/:/ |
| 15828 | s/:\$(srcdir):/:/g | ||
| 15829 | s/:\${srcdir}:/:/g | ||
| 15830 | s/:@srcdir@:/:/g | ||
| 15831 | s/^:*// | ||
| 15826 | s/:*$// | 15832 | s/:*$// |
| 15833 | x | ||
| 15834 | s/\(=[ ]*\).*/\1/ | ||
| 15835 | G | ||
| 15836 | s/\n// | ||
| 15827 | s/^[^=]*=[ ]*$// | 15837 | s/^[^=]*=[ ]*$// |
| 15828 | }' | 15838 | }' |
| 15829 | fi | 15839 | fi |
| @@ -15851,7 +15861,7 @@ for ac_last_try in false false :; do | |||
| 15851 | if test -z "$ac_t"; then | 15861 | if test -z "$ac_t"; then |
| 15852 | break | 15862 | break |
| 15853 | elif $ac_last_try; then | 15863 | elif $ac_last_try; then |
| 15854 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | 15864 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 15855 | else | 15865 | else |
| 15856 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 15866 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 15857 | fi | 15867 | fi |
| @@ -15936,7 +15946,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |||
| 15936 | _ACAWK | 15946 | _ACAWK |
| 15937 | _ACEOF | 15947 | _ACEOF |
| 15938 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 15948 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 15939 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | 15949 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
| 15940 | fi # test -n "$CONFIG_HEADERS" | 15950 | fi # test -n "$CONFIG_HEADERS" |
| 15941 | 15951 | ||
| 15942 | 15952 | ||
| @@ -15949,7 +15959,7 @@ do | |||
| 15949 | esac | 15959 | esac |
| 15950 | case $ac_mode$ac_tag in | 15960 | case $ac_mode$ac_tag in |
| 15951 | :[FHL]*:*);; | 15961 | :[FHL]*:*);; |
| 15952 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | 15962 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 15953 | :[FH]-) ac_tag=-:-;; | 15963 | :[FH]-) ac_tag=-:-;; |
| 15954 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | 15964 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 15955 | esac | 15965 | esac |
| @@ -15977,7 +15987,7 @@ do | |||
| 15977 | [\\/$]*) false;; | 15987 | [\\/$]*) false;; |
| 15978 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | 15988 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 15979 | esac || | 15989 | esac || |
| 15980 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | 15990 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 15981 | esac | 15991 | esac |
| 15982 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | 15992 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 15983 | as_fn_append ac_file_inputs " '$ac_f'" | 15993 | as_fn_append ac_file_inputs " '$ac_f'" |
| @@ -16004,7 +16014,7 @@ $as_echo "$as_me: creating $ac_file" >&6;} | |||
| 16004 | 16014 | ||
| 16005 | case $ac_tag in | 16015 | case $ac_tag in |
| 16006 | *:-:* | *:-) cat >"$tmp/stdin" \ | 16016 | *:-:* | *:-) cat >"$tmp/stdin" \ |
| 16007 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | 16017 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 16008 | esac | 16018 | esac |
| 16009 | ;; | 16019 | ;; |
| 16010 | esac | 16020 | esac |
| @@ -16140,22 +16150,22 @@ if $ac_cs_awk_getline; then | |||
| 16140 | else | 16150 | else |
| 16141 | $AWK -f "$tmp/subs.awk" | $SHELL | 16151 | $AWK -f "$tmp/subs.awk" | $SHELL |
| 16142 | fi >$tmp/out \ | 16152 | fi >$tmp/out \ |
| 16143 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | 16153 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 16144 | 16154 | ||
| 16145 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | 16155 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 16146 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | 16156 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 16147 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | 16157 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 16148 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 16158 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 16149 | which seems to be undefined. Please make sure it is defined." >&5 | 16159 | which seems to be undefined. Please make sure it is defined" >&5 |
| 16150 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 16160 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 16151 | which seems to be undefined. Please make sure it is defined." >&2;} | 16161 | which seems to be undefined. Please make sure it is defined" >&2;} |
| 16152 | 16162 | ||
| 16153 | rm -f "$tmp/stdin" | 16163 | rm -f "$tmp/stdin" |
| 16154 | case $ac_file in | 16164 | case $ac_file in |
| 16155 | -) cat "$tmp/out" && rm -f "$tmp/out";; | 16165 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 16156 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | 16166 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 16157 | esac \ | 16167 | esac \ |
| 16158 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | 16168 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 16159 | ;; | 16169 | ;; |
| 16160 | :H) | 16170 | :H) |
| 16161 | # | 16171 | # |
| @@ -16166,19 +16176,19 @@ which seems to be undefined. Please make sure it is defined." >&2;} | |||
| 16166 | $as_echo "/* $configure_input */" \ | 16176 | $as_echo "/* $configure_input */" \ |
| 16167 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | 16177 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 16168 | } >"$tmp/config.h" \ | 16178 | } >"$tmp/config.h" \ |
| 16169 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | 16179 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 16170 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | 16180 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
| 16171 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | 16181 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 16172 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | 16182 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 16173 | else | 16183 | else |
| 16174 | rm -f "$ac_file" | 16184 | rm -f "$ac_file" |
| 16175 | mv "$tmp/config.h" "$ac_file" \ | 16185 | mv "$tmp/config.h" "$ac_file" \ |
| 16176 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | 16186 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 16177 | fi | 16187 | fi |
| 16178 | else | 16188 | else |
| 16179 | $as_echo "/* $configure_input */" \ | 16189 | $as_echo "/* $configure_input */" \ |
| 16180 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | 16190 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
| 16181 | || as_fn_error "could not create -" "$LINENO" 5 | 16191 | || as_fn_error $? "could not create -" "$LINENO" 5 |
| 16182 | fi | 16192 | fi |
| 16183 | ;; | 16193 | ;; |
| 16184 | 16194 | ||
| @@ -16215,7 +16225,7 @@ _ACEOF | |||
| 16215 | ac_clean_files=$ac_clean_files_save | 16225 | ac_clean_files=$ac_clean_files_save |
| 16216 | 16226 | ||
| 16217 | test $ac_write_fail = 0 || | 16227 | test $ac_write_fail = 0 || |
| 16218 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | 16228 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 16219 | 16229 | ||
| 16220 | 16230 | ||
| 16221 | # configure is writing to config.log, and then calls config.status. | 16231 | # configure is writing to config.log, and then calls config.status. |
| @@ -16236,7 +16246,7 @@ if test "$no_create" != yes; then | |||
| 16236 | exec 5>>config.log | 16246 | exec 5>>config.log |
| 16237 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 16247 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 16238 | # would make configure fail if this is the last instruction. | 16248 | # would make configure fail if this is the last instruction. |
| 16239 | $ac_cs_success || as_fn_exit $? | 16249 | $ac_cs_success || as_fn_exit 1 |
| 16240 | fi | 16250 | fi |
| 16241 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | 16251 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 16242 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | 16252 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
diff --git a/configure.in b/configure.in index 47f3e0d7538..caa9ad2ec99 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -3696,10 +3696,12 @@ echo " Does Emacs use a gif library? ${HAVE_GIF} $LIB | |||
| 3696 | echo " Does Emacs use -lpng? ${HAVE_PNG}" | 3696 | echo " Does Emacs use -lpng? ${HAVE_PNG}" |
| 3697 | echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}" | 3697 | echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}" |
| 3698 | echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}" | 3698 | echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}" |
| 3699 | |||
| 3699 | echo " Does Emacs use -lgpm? ${HAVE_GPM}" | 3700 | echo " Does Emacs use -lgpm? ${HAVE_GPM}" |
| 3700 | echo " Does Emacs use -ldbus? ${HAVE_DBUS}" | 3701 | echo " Does Emacs use -ldbus? ${HAVE_DBUS}" |
| 3701 | echo " Does Emacs use -lgconf? ${HAVE_GCONF}" | 3702 | echo " Does Emacs use -lgconf? ${HAVE_GCONF}" |
| 3702 | echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}" | 3703 | echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}" |
| 3704 | echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}" | ||
| 3703 | 3705 | ||
| 3704 | echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}" | 3706 | echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}" |
| 3705 | echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}" | 3707 | echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}" |
| @@ -561,10 +561,13 @@ by the Graphic Control Extension of the image. | |||
| 561 | ** XML and HTML parsing | 561 | ** XML and HTML parsing |
| 562 | 562 | ||
| 563 | *** If Emacs is compiled with libxml2 support (which is the default), | 563 | *** If Emacs is compiled with libxml2 support (which is the default), |
| 564 | two new Emacs Lisp-level functions are defined: `html-parse-string' | 564 | two new Emacs Lisp-level functions are defined: |
| 565 | (which will parse "real world" HTML) and `xml-parse-string' (which | 565 | `xml-parse-html-string-internal' (which will parse "real world" HTML) |
| 566 | parses XML). Both return an Emacs Lisp parse tree. See the Emacs | 566 | and `xml-parse-string-internal' (which parses XML). Both return an |
| 567 | Lisp Reference Manual for details. | 567 | Emacs Lisp parse tree. |
| 568 | |||
| 569 | FIXME: These should be front-ended by xml.el. | ||
| 570 | |||
| 568 | 571 | ||
| 569 | ** Isearch | 572 | ** Isearch |
| 570 | 573 | ||
diff --git a/src/ChangeLog b/src/ChangeLog index a44d97d96a1..4b3e76f851d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2010-09-22 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * xml.c: Switch to GNU indentation. | ||
| 4 | (make_dom): Change parse tree format to match xml.el. | ||
| 5 | (Fxml_parse_html_string_internal): Rename from html-parse-string. | ||
| 6 | (Fxml_parse_string_internal): Rename from xml-parse-string. | ||
| 7 | |||
| 1 | 2010-09-22 Kenichi Handa <handa@m17n.org> | 8 | 2010-09-22 Kenichi Handa <handa@m17n.org> |
| 2 | 9 | ||
| 3 | * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos | 10 | * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos |
| @@ -30,41 +30,46 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 30 | 30 | ||
| 31 | Lisp_Object make_dom (xmlNode *node) | 31 | Lisp_Object make_dom (xmlNode *node) |
| 32 | { | 32 | { |
| 33 | if (node->type == XML_ELEMENT_NODE) { | 33 | if (node->type == XML_ELEMENT_NODE) |
| 34 | Lisp_Object result = Fcons (intern (node->name), Qnil); | 34 | { |
| 35 | xmlNode *child; | 35 | Lisp_Object result = Fcons (intern (node->name), Qnil); |
| 36 | xmlAttr *property; | 36 | xmlNode *child; |
| 37 | 37 | xmlAttr *property; | |
| 38 | /* First add the attributes. */ | 38 | Lisp_Object plist = Qnil; |
| 39 | property = node->properties; | 39 | |
| 40 | while (property != NULL) { | 40 | /* First add the attributes. */ |
| 41 | if (property->children && | 41 | property = node->properties; |
| 42 | property->children->content) { | 42 | while (property != NULL) |
| 43 | char *pname = xmalloc (strlen (property->name) + 2); | 43 | { |
| 44 | *pname = ':'; | 44 | if (property->children && |
| 45 | strcpy(pname + 1, property->name); | 45 | property->children->content) |
| 46 | result = Fcons (Fcons (intern (pname), | 46 | { |
| 47 | build_string(property->children->content)), | 47 | plist = Fcons (Fcons (intern (property->name), |
| 48 | result); | 48 | build_string (property->children->content)), |
| 49 | xfree (pname); | 49 | plist); |
| 50 | } | 50 | } |
| 51 | property = property->next; | 51 | property = property->next; |
| 52 | } | ||
| 53 | result = Fcons (Fnreverse (plist), result); | ||
| 54 | |||
| 55 | /* Then add the children of the node. */ | ||
| 56 | child = node->children; | ||
| 57 | while (child != NULL) | ||
| 58 | { | ||
| 59 | result = Fcons (make_dom (child), result); | ||
| 60 | child = child->next; | ||
| 61 | } | ||
| 62 | |||
| 63 | return Fnreverse (result); | ||
| 52 | } | 64 | } |
| 53 | /* Then add the children of the node. */ | 65 | else if (node->type == XML_TEXT_NODE) |
| 54 | child = node->children; | 66 | { |
| 55 | while (child != NULL) { | 67 | if (node->content) |
| 56 | result = Fcons (make_dom (child), result); | 68 | return build_string (node->content); |
| 57 | child = child->next; | 69 | else |
| 70 | return Qnil; | ||
| 58 | } | 71 | } |
| 59 | return Fnreverse (result); | 72 | else |
| 60 | } else if (node->type == XML_TEXT_NODE) { | ||
| 61 | Lisp_Object content = Qnil; | ||
| 62 | |||
| 63 | if (node->content) | ||
| 64 | content = build_string (node->content); | ||
| 65 | |||
| 66 | return Fcons (intern (node->name), content); | ||
| 67 | } else | ||
| 68 | return Qnil; | 73 | return Qnil; |
| 69 | } | 74 | } |
| 70 | 75 | ||
| @@ -81,47 +86,47 @@ parse_string (Lisp_Object string, Lisp_Object base_url, int htmlp) | |||
| 81 | 86 | ||
| 82 | CHECK_STRING (string); | 87 | CHECK_STRING (string); |
| 83 | 88 | ||
| 84 | if (! NILP (base_url)) { | 89 | if (! NILP (base_url)) |
| 85 | CHECK_STRING (base_url); | 90 | { |
| 86 | burl = SDATA (base_url); | 91 | CHECK_STRING (base_url); |
| 87 | } | 92 | burl = SDATA (base_url); |
| 88 | 93 | } | |
| 89 | if (htmlp) | ||
| 90 | doc = htmlReadMemory (SDATA (string), SBYTES (string), burl, "utf-8", | ||
| 91 | HTML_PARSE_RECOVER|HTML_PARSE_NONET| | ||
| 92 | HTML_PARSE_NOWARNING|HTML_PARSE_NOERROR); | ||
| 93 | else | ||
| 94 | doc = xmlReadMemory (SDATA (string), SBYTES (string), burl, "utf-8", | ||
| 95 | XML_PARSE_NONET|XML_PARSE_NOWARNING| | ||
| 96 | XML_PARSE_NOERROR); | ||
| 97 | |||
| 98 | if (doc != NULL) { | ||
| 99 | node = xmlDocGetRootElement (doc); | ||
| 100 | if (node != NULL) | ||
| 101 | result = make_dom (node); | ||
| 102 | 94 | ||
| 103 | xmlFreeDoc (doc); | 95 | doc = htmlp |
| 104 | xmlCleanupParser (); | 96 | ? htmlReadMemory (SDATA (string), SBYTES (string), burl, "utf-8", |
| 105 | } | 97 | HTML_PARSE_RECOVER|HTML_PARSE_NONET| |
| 98 | HTML_PARSE_NOWARNING|HTML_PARSE_NOERROR) | ||
| 99 | : xmlReadMemory (SDATA (string), SBYTES (string), burl, "utf-8", | ||
| 100 | XML_PARSE_NONET|XML_PARSE_NOWARNING| | ||
| 101 | XML_PARSE_NOERROR); | ||
| 102 | |||
| 103 | if (doc != NULL) | ||
| 104 | { | ||
| 105 | node = xmlDocGetRootElement (doc); | ||
| 106 | if (node != NULL) | ||
| 107 | result = make_dom (node); | ||
| 108 | xmlFreeDoc (doc); | ||
| 109 | xmlCleanupParser (); | ||
| 110 | } | ||
| 106 | 111 | ||
| 107 | return result; | 112 | return result; |
| 108 | } | 113 | } |
| 109 | 114 | ||
| 110 | DEFUN ("html-parse-string", Fhtml_parse_string, Shtml_parse_string, | 115 | DEFUN ("xml-parse-html-string-internal", Fxml_parse_html_string_internal, |
| 116 | Sxml_parse_html_string_internal, | ||
| 111 | 1, 2, 0, | 117 | 1, 2, 0, |
| 112 | doc: /* Parse STRING as an HTML document and return the parse tree. | 118 | doc: /* Parse STRING as an HTML document and return the parse tree. |
| 113 | If BASE-URL is non-nil, it will be used to expand relative URLs in | 119 | If BASE-URL is non-nil, it is used to expand relative URLs. */) |
| 114 | the HTML document. */) | ||
| 115 | (Lisp_Object string, Lisp_Object base_url) | 120 | (Lisp_Object string, Lisp_Object base_url) |
| 116 | { | 121 | { |
| 117 | return parse_string (string, base_url, 1); | 122 | return parse_string (string, base_url, 1); |
| 118 | } | 123 | } |
| 119 | 124 | ||
| 120 | DEFUN ("xml-parse-string", Fxml_parse_string, Sxml_parse_string, | 125 | DEFUN ("xml-parse-string-internal", Fxml_parse_string_internal, |
| 126 | Sxml_parse_string_internal, | ||
| 121 | 1, 2, 0, | 127 | 1, 2, 0, |
| 122 | doc: /* Parse STRING as an XML document and return the parse tree. | 128 | doc: /* Parse STRING as an XML document and return the parse tree. |
| 123 | If BASE-URL is non-nil, it will be used to expand relative URLs in | 129 | If BASE-URL is non-nil, it is used to expand relative URLs. */) |
| 124 | the XML document. */) | ||
| 125 | (Lisp_Object string, Lisp_Object base_url) | 130 | (Lisp_Object string, Lisp_Object base_url) |
| 126 | { | 131 | { |
| 127 | return parse_string (string, base_url, 0); | 132 | return parse_string (string, base_url, 0); |
| @@ -134,8 +139,8 @@ the XML document. */) | |||
| 134 | void | 139 | void |
| 135 | syms_of_xml (void) | 140 | syms_of_xml (void) |
| 136 | { | 141 | { |
| 137 | defsubr (&Shtml_parse_string); | 142 | defsubr (&Sxml_parse_html_string_internal); |
| 138 | defsubr (&Sxml_parse_string); | 143 | defsubr (&Sxml_parse_string_internal); |
| 139 | } | 144 | } |
| 140 | 145 | ||
| 141 | #endif /* HAVE_LIBXML2 */ | 146 | #endif /* HAVE_LIBXML2 */ |