comparison configure.in @ 1259:d9c553868a01

[xemacs-hg @ 2003-02-05 10:07:26 by stephent] fix --srcdir <87y94voxmm.fsf@tleepslib.sk.tsukuba.ac.jp> darwin configure fixes <873cn3qcgh.fsf_-_@tleepslib.sk.tsukuba.ac.jp> restore USE_XFONTSET <877kcfqcnz.fsf@tleepslib.sk.tsukuba.ac.jp>
author stephent
date Wed, 05 Feb 2003 10:07:33 +0000
parents 6041a741b6d6
children 8c5cf108f035
comparison
equal deleted inserted replaced
1258:473e76fb6d95 1259:d9c553868a01
250 250
251 dnl Initialize some variables set by options. 251 dnl Initialize some variables set by options.
252 dnl The variables have the same names as the options, with 252 dnl The variables have the same names as the options, with
253 dnl dashes changed to underlines. 253 dnl dashes changed to underlines.
254 254
255 define([USAGE_ERROR],
256 [(echo "$progname: Usage error:"
257 echo " " $1
258 echo " Use \`$progname --help' to show usage.") >&2 && exit 1])
259
255 define([AC_INIT_PARSE_ARGS],[ 260 define([AC_INIT_PARSE_ARGS],[
256 261
257 dnl Get sane consistent behavior from various shells 262 dnl Get sane consistent behavior from various shells
258 dnl Avoid losing with weird user CDPATHs 263 dnl Avoid losing with weird user CDPATHs
259 264
272 unset CDPATH 277 unset CDPATH
273 else 278 else
274 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi 279 if test -n "$CDPATH"; then CDPATH="."; export CDPATH; fi
275 fi 280 fi
276 281
282 dnl srcdir is used internally by autoconf macros
283 dnl parse it here
284 for xe_parse_arg in "$@"; do
285 case $xe_parse_arg in
286 --srcdir) USAGE_ERROR("The \`--srcdir' option requires a boolean value: \`yes' or \`no'.") ;;
287 --srcdir=*) srcdir=`echo $xe_parse_arg | sed -e 's/--srcdir=//'` ;;
288 *) ;;
289 esac
290 done
291
277 dnl Initialize some variables set by options. 292 dnl Initialize some variables set by options.
278 dnl The variables have the same names as the options, with 293 dnl The variables have the same names as the options, with
279 dnl dashes changed to underlines. 294 dnl dashes changed to underlines.
280 exec_prefix=NONE 295 exec_prefix=NONE
281 host=NONE 296 host=NONE
286 program_prefix=NONE 301 program_prefix=NONE
287 program_suffix=NONE 302 program_suffix=NONE
288 program_transform_name=s,x,x, 303 program_transform_name=s,x,x,
289 silent= 304 silent=
290 site= 305 site=
291 srcdir=
292 target=NONE 306 target=NONE
293 verbose= 307 verbose=
294 x_includes=NONE 308 x_includes=NONE
295 x_libraries=NONE 309 x_libraries=NONE
296 310
391 405
392 dnl ------------------ 406 dnl ------------------
393 dnl Options Processing 407 dnl Options Processing
394 dnl ------------------ 408 dnl ------------------
395 409
396 define([USAGE_ERROR],
397 [(echo "$progname: Usage error:"
398 echo " " $1
399 echo " Use \`$progname --help' to show usage.") >&2 && exit 1])
400
401 dnl Record all the arguments, so we can save them in config.status. 410 dnl Record all the arguments, so we can save them in config.status.
402 arguments="$@" 411 arguments="$@"
403 412
404 dnl Shell Magic: Quote the quoted arguments in ARGUMENTS. At a later date, 413 dnl Shell Magic: Quote the quoted arguments in ARGUMENTS. At a later date,
405 dnl in order to get the arguments back in $@, we have to do an 414 dnl in order to get the arguments back in $@, we have to do an
427 dnl some shell magic to make 'set x "$arguments"; shift' work portably. 436 dnl some shell magic to make 'set x "$arguments"; shift' work portably.
428 while test $# != 0; do 437 while test $# != 0; do
429 arg="$1"; shift 438 arg="$1"; shift
430 case "$arg" in 439 case "$arg" in
431 --no-create|--no-recursion) ;; 440 --no-create|--no-recursion) ;;
441 --srcdir=*) ;;
432 dnl Anything starting with a hyphen we assume is an option. 442 dnl Anything starting with a hyphen we assume is an option.
433 -* ) 443 -* )
434 dnl Separate the switch name from the value it is being given. 444 dnl Separate the switch name from the value it is being given.
435 case "$arg" in 445 case "$arg" in
436 -*=*) 446 -*=*)
537 eval "$opt=\"$val\"" ;; 547 eval "$opt=\"$val\"" ;;
538 548
539 549
540 dnl Options that take a user-supplied value, as in --x-includes=/usr/X11R6/include 550 dnl Options that take a user-supplied value, as in --x-includes=/usr/X11R6/include
541 dnl The cache-file option is ignored (for compatibility with other configures) 551 dnl The cache-file option is ignored (for compatibility with other configures)
542 srcdir | \
543 compiler | \ 552 compiler | \
544 xemacs_compiler | \ 553 xemacs_compiler | \
545 cflags | \ 554 cflags | \
546 cflags_warning | \ 555 cflags_warning | \
547 cpp | \ 556 cpp | \
884 XE_CHECK_FEATURE_DEPENDENCY(cde, tooltalk) 893 XE_CHECK_FEATURE_DEPENDENCY(cde, tooltalk)
885 894
886 dnl Find the source directory. 895 dnl Find the source directory.
887 case "$srcdir" in 896 case "$srcdir" in
888 897
889 dnl If srcdir is not specified, see if "." or ".." might work. 898 dnl If srcdir is not specified, try directory part of $0, ".", or "..".
890 "" ) 899 "" )
891 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[[^/]]*$||'`" "." ".." ; do 900 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[[^/]]*$||'`" "." ".." ; do
892 if test -f "$dir/src/lisp.h" -a \ 901 if test -f "$dir/src/lisp.h" -a \
893 -f "$dir/lisp/version.el" ; then 902 -f "$dir/lisp/version.el" ; then
894 srcdir="$dir" 903 srcdir="$dir"
895 break 904 break
896 fi 905 fi
897 done 906 done
898 if test -z "$srcdir" ; then 907 if test -z "$srcdir" ; then
899 USAGE_ERROR(["Neither the current directory nor its parent seem to 908 USAGE_ERROR(["None of the path to configure, the current directory,
900 contain the XEmacs sources. If you do not want to build XEmacs in its 909 and its parent seem to contain the XEmacs sources. If you do not want
901 source tree, you should run \`$progname' in the directory in which 910 to build XEmacs in its source tree, you should run \`$progname' in the
902 you wish to build XEmacs, using the \`--srcdir' option to say where the 911 directory in which you wish to build XEmacs, using the \`--srcdir' option
903 sources may be found."]) 912 to say where the sources may be found."])
904 fi 913 fi
905 ;; 914 ;;
906 915
907 dnl Otherwise, check if the directory they specified is okay. 916 dnl Otherwise, check if the directory they specified is okay.
908 * ) 917 * )
1599 dnl $opsys detection complete; defaults depending on $opsys follow 1608 dnl $opsys detection complete; defaults depending on $opsys follow
1600 dnl -------------------------------------------------------------- 1609 dnl --------------------------------------------------------------
1601 1610
1602 if test -z "$pdump"; then 1611 if test -z "$pdump"; then
1603 case "$opsys" in 1612 case "$opsys" in
1604 linux* ) pdump=yes ;; dnl glibc 2.3.1 seems to hose unexec 1613 linux* ) pdump=yes ;; dnl glibc 2.3.1 seems to hose unexec
1605 *-*-darwin* ) pdump=yes ;; dnl No "native" working dumper available 1614 darwin ) pdump=yes ;; dnl No "native" working dumper available
1606 *) pdump=no ;; 1615 *) pdump=no ;;
1607 esac 1616 esac
1608 fi 1617 fi
1609 1618
1610 if test -z "$dynamic"; then 1619 if test -z "$dynamic"; then
1611 case "$opsys" in 1620 case "$opsys" in
1615 fi 1624 fi
1616 if test "$dynamic" = "yes"; then 1625 if test "$dynamic" = "yes"; then
1617 case "$opsys" in 1626 case "$opsys" in
1618 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;; 1627 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1619 decosf* ) ld_call_shared="-call_shared" ;; 1628 decosf* ) ld_call_shared="-call_shared" ;;
1629 darwin ) AC_DEFINE(DLSYM_NEEDS_UNDERSCORE) ;;
1620 esac 1630 esac
1621 else dnl "$dynamic" = "no" 1631 else dnl "$dynamic" = "no"
1622 case "$opsys" in 1632 case "$opsys" in
1623 sol2 ) 1633 sol2 )
1624 echo "Static linking is not supported on Solaris 2." 1634 echo "Static linking is not supported on Solaris 2."