• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

シェルスクリプト言語xyzshのソースコード。


Commit MetaInfo

修订版16015314635b75755a6e42bebbaf14f517a27583 (tree)
时间2013-01-22 14:37:45
作者ab25cq <ab25cq@gmai...>
Commiterab25cq

Log Message

1.3.3

更改概述

差异

--- a/configure
+++ b/configure
@@ -1,9 +1,11 @@
11 #! /bin/sh
22 # Guess values for system-dependent variables and create Makefiles.
3-# Generated by GNU Autoconf 2.69.
3+# Generated by GNU Autoconf 2.68.
44 #
55 #
6-# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
6+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7+# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8+# Foundation, Inc.
79 #
810 #
911 # This configure script is free software; the Free Software Foundation
@@ -132,31 +134,6 @@ export LANGUAGE
132134 # CDPATH.
133135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134136
135-# Use a proper internal environment variable to ensure we don't fall
136- # into an infinite loop, continuously re-executing ourselves.
137- if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138- _as_can_reexec=no; export _as_can_reexec;
139- # We cannot yet assume a decent shell, so we have to provide a
140-# neutralization value for shells without unset; and this also
141-# works around shells that cannot unset nonexistent variables.
142-# Preserve -v and -x to the replacement shell.
143-BASH_ENV=/dev/null
144-ENV=/dev/null
145-(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146-case $- in # ((((
147- *v*x* | *x*v* ) as_opts=-vx ;;
148- *v* ) as_opts=-v ;;
149- *x* ) as_opts=-x ;;
150- * ) as_opts= ;;
151-esac
152-exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153-# Admittedly, this is quite paranoid, since all the known shells bail
154-# out after a failed `exec'.
155-$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156-as_fn_exit 255
157- fi
158- # We don't want this to propagate to other subprocesses.
159- { _as_can_reexec=; unset _as_can_reexec;}
160137 if test "x$CONFIG_SHELL" = x; then
161138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162139 emulate sh
@@ -190,8 +167,7 @@ if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190167 else
191168 exitcode=1; echo positional parameters were not saved.
192169 fi
193-test x\$exitcode = x0 || exit 1
194-test -x / || exit 1"
170+test x\$exitcode = x0 || exit 1"
195171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
@@ -236,25 +212,21 @@ IFS=$as_save_IFS
236212
237213
238214 if test "x$CONFIG_SHELL" != x; then :
239- export CONFIG_SHELL
240- # We cannot yet assume a decent shell, so we have to provide a
241-# neutralization value for shells without unset; and this also
242-# works around shells that cannot unset nonexistent variables.
243-# Preserve -v and -x to the replacement shell.
244-BASH_ENV=/dev/null
245-ENV=/dev/null
246-(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247-case $- in # ((((
248- *v*x* | *x*v* ) as_opts=-vx ;;
249- *v* ) as_opts=-v ;;
250- *x* ) as_opts=-x ;;
251- * ) as_opts= ;;
252-esac
253-exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254-# Admittedly, this is quite paranoid, since all the known shells bail
255-# out after a failed `exec'.
256-$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257-exit 255
215+ # We cannot yet assume a decent shell, so we have to provide a
216+ # neutralization value for shells without unset; and this also
217+ # works around shells that cannot unset nonexistent variables.
218+ # Preserve -v and -x to the replacement shell.
219+ BASH_ENV=/dev/null
220+ ENV=/dev/null
221+ (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222+ export CONFIG_SHELL
223+ case $- in # ((((
224+ *v*x* | *x*v* ) as_opts=-vx ;;
225+ *v* ) as_opts=-v ;;
226+ *x* ) as_opts=-x ;;
227+ * ) as_opts= ;;
228+ esac
229+ exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
258230 fi
259231
260232 if test x$as_have_required = xno; then :
@@ -356,14 +328,6 @@ $as_echo X"$as_dir" |
356328
357329
358330 } # as_fn_mkdir_p
359-
360-# as_fn_executable_p FILE
361-# -----------------------
362-# Test if FILE is an executable regular file.
363-as_fn_executable_p ()
364-{
365- test -f "$1" && test -x "$1"
366-} # as_fn_executable_p
367331 # as_fn_append VAR VALUE
368332 # ----------------------
369333 # Append the text in VALUE to the end of the definition contained in VAR. Take
@@ -485,10 +449,6 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits
485449 chmod +x "$as_me.lineno" ||
486450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487451
488- # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489- # already done that, so ensure we don't try to do so again and fall
490- # in an infinite loop. This has already happened in practice.
491- _as_can_reexec=no; export _as_can_reexec
492452 # Don't try to exec as it changes $[0], causing all sort of problems
493453 # (the dirname of $[0] is not the place where we might find the
494454 # original and so on. Autoconf is especially sensitive to this).
@@ -523,16 +483,16 @@ if (echo >conf$$.file) 2>/dev/null; then
523483 # ... but there are two gotchas:
524484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526- # In both cases, we have to default to `cp -pR'.
486+ # In both cases, we have to default to `cp -p'.
527487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528- as_ln_s='cp -pR'
488+ as_ln_s='cp -p'
529489 elif ln conf$$.file conf$$ 2>/dev/null; then
530490 as_ln_s=ln
531491 else
532- as_ln_s='cp -pR'
492+ as_ln_s='cp -p'
533493 fi
534494 else
535- as_ln_s='cp -pR'
495+ as_ln_s='cp -p'
536496 fi
537497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538498 rmdir conf$$.dir 2>/dev/null
@@ -544,8 +504,28 @@ else
544504 as_mkdir_p=false
545505 fi
546506
547-as_test_x='test -x'
548-as_executable_p=as_fn_executable_p
507+if test -x / >/dev/null 2>&1; then
508+ as_test_x='test -x'
509+else
510+ if ls -dL / >/dev/null 2>&1; then
511+ as_ls_L_option=L
512+ else
513+ as_ls_L_option=
514+ fi
515+ as_test_x='
516+ eval sh -c '\''
517+ if test -d "$1"; then
518+ test -d "$1/.";
519+ else
520+ case $1 in #(
521+ -*)set "./$1";;
522+ esac;
523+ case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524+ ???[sx]*):;;*)false;;esac;fi
525+ '\'' sh
526+ '
527+fi
528+as_executable_p=$as_test_x
549529
550530 # Sed expression to map a string onto a valid CPP name.
551531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
@@ -1156,6 +1136,8 @@ target=$target_alias
11561136 if test "x$host_alias" != x; then
11571137 if test "x$build_alias" = x; then
11581138 cross_compiling=maybe
1139+ $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1140+ If a cross compiler is detected then cross compile mode will be used" >&2
11591141 elif test "x$build_alias" != "x$host_alias"; then
11601142 cross_compiling=yes
11611143 fi
@@ -1394,9 +1376,9 @@ test -n "$ac_init_help" && exit $ac_status
13941376 if $ac_init_version; then
13951377 cat <<\_ACEOF
13961378 configure
1397-generated by GNU Autoconf 2.69
1379+generated by GNU Autoconf 2.68
13981380
1399-Copyright (C) 2012 Free Software Foundation, Inc.
1381+Copyright (C) 2010 Free Software Foundation, Inc.
14001382 This configure script is free software; the Free Software Foundation
14011383 gives unlimited permission to copy, distribute and modify it.
14021384 _ACEOF
@@ -1669,7 +1651,7 @@ $as_echo "$ac_try_echo"; } >&5
16691651 test ! -s conftest.err
16701652 } && test -s conftest$ac_exeext && {
16711653 test "$cross_compiling" = yes ||
1672- test -x conftest$ac_exeext
1654+ $as_test_x conftest$ac_exeext
16731655 }; then :
16741656 ac_retval=0
16751657 else
@@ -1692,7 +1674,7 @@ This file contains any messages produced by compilers while
16921674 running configure, to aid debugging if configure makes a mistake.
16931675
16941676 It was created by $as_me, which was
1695-generated by GNU Autoconf 2.69. Invocation command line was
1677+generated by GNU Autoconf 2.68. Invocation command line was
16961678
16971679 $ $0 $@
16981680
@@ -1950,7 +1932,7 @@ $as_echo "$as_me: loading site script $ac_site_file" >&6;}
19501932 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19511933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19521934 as_fn_error $? "failed to load site script $ac_site_file
1953-See \`config.log' for more details" "$LINENO" 5; }
1935+See \`config.log' for more details" "$LINENO" 5 ; }
19541936 fi
19551937 done
19561938
@@ -2065,7 +2047,7 @@ do
20652047 IFS=$as_save_IFS
20662048 test -z "$as_dir" && as_dir=.
20672049 for ac_exec_ext in '' $ac_executable_extensions; do
2068- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2050+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20692051 ac_cv_prog_CC="${ac_tool_prefix}gcc"
20702052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20712053 break 2
@@ -2105,7 +2087,7 @@ do
21052087 IFS=$as_save_IFS
21062088 test -z "$as_dir" && as_dir=.
21072089 for ac_exec_ext in '' $ac_executable_extensions; do
2108- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2090+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21092091 ac_cv_prog_ac_ct_CC="gcc"
21102092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21112093 break 2
@@ -2158,7 +2140,7 @@ do
21582140 IFS=$as_save_IFS
21592141 test -z "$as_dir" && as_dir=.
21602142 for ac_exec_ext in '' $ac_executable_extensions; do
2161- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2143+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21622144 ac_cv_prog_CC="${ac_tool_prefix}cc"
21632145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21642146 break 2
@@ -2199,7 +2181,7 @@ do
21992181 IFS=$as_save_IFS
22002182 test -z "$as_dir" && as_dir=.
22012183 for ac_exec_ext in '' $ac_executable_extensions; do
2202- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2184+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22032185 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
22042186 ac_prog_rejected=yes
22052187 continue
@@ -2257,7 +2239,7 @@ do
22572239 IFS=$as_save_IFS
22582240 test -z "$as_dir" && as_dir=.
22592241 for ac_exec_ext in '' $ac_executable_extensions; do
2260- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2242+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22612243 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
22622244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22632245 break 2
@@ -2301,7 +2283,7 @@ do
23012283 IFS=$as_save_IFS
23022284 test -z "$as_dir" && as_dir=.
23032285 for ac_exec_ext in '' $ac_executable_extensions; do
2304- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2286+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23052287 ac_cv_prog_ac_ct_CC="$ac_prog"
23062288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23072289 break 2
@@ -2344,7 +2326,7 @@ fi
23442326 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23452327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23462328 as_fn_error $? "no acceptable C compiler found in \$PATH
2347-See \`config.log' for more details" "$LINENO" 5; }
2329+See \`config.log' for more details" "$LINENO" 5 ; }
23482330
23492331 # Provide some information about the compiler.
23502332 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
@@ -2459,7 +2441,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
24592441 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24602442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24612443 as_fn_error 77 "C compiler cannot create executables
2462-See \`config.log' for more details" "$LINENO" 5; }
2444+See \`config.log' for more details" "$LINENO" 5 ; }
24632445 else
24642446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24652447 $as_echo "yes" >&6; }
@@ -2502,7 +2484,7 @@ else
25022484 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25032485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25042486 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2505-See \`config.log' for more details" "$LINENO" 5; }
2487+See \`config.log' for more details" "$LINENO" 5 ; }
25062488 fi
25072489 rm -f conftest conftest$ac_cv_exeext
25082490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
@@ -2561,7 +2543,7 @@ $as_echo "$ac_try_echo"; } >&5
25612543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25622544 as_fn_error $? "cannot run C compiled programs.
25632545 If you meant to cross compile, use \`--host'.
2564-See \`config.log' for more details" "$LINENO" 5; }
2546+See \`config.log' for more details" "$LINENO" 5 ; }
25652547 fi
25662548 fi
25672549 fi
@@ -2613,7 +2595,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
26132595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26142596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26152597 as_fn_error $? "cannot compute suffix of object files: cannot compile
2616-See \`config.log' for more details" "$LINENO" 5; }
2598+See \`config.log' for more details" "$LINENO" 5 ; }
26172599 fi
26182600 rm -f conftest.$ac_cv_objext conftest.$ac_ext
26192601 fi
@@ -2747,7 +2729,8 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27472729 /* end confdefs.h. */
27482730 #include <stdarg.h>
27492731 #include <stdio.h>
2750-struct stat;
2732+#include <sys/types.h>
2733+#include <sys/stat.h>
27512734 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
27522735 struct buf { int x; };
27532736 FILE * (*rcsopen) (struct buf *, struct stat *, int);
@@ -2898,7 +2881,7 @@ case $as_dir/ in #((
28982881 # by default.
28992882 for ac_prog in ginstall scoinst install; do
29002883 for ac_exec_ext in '' $ac_executable_extensions; do
2901- if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2884+ if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
29022885 if test $ac_prog = install &&
29032886 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
29042887 # AIX install. It has an incompatible calling convention.
@@ -3049,6 +3032,8 @@ $as_echo_n "checking Operating System... " >&6; }
30493032 OBJ="src/gc.o src/stack.o src/string.o src/list.o src/kanji.o src/debug.o src/hash.o src/vector.o src/block.o src/fun.o src/class.o src/completion.o src/xyzsh.o src/parser.o src/run.o src/readline.o src/curses.o src/cmd_base.o src/cmd_obj.o src/cmd_file.o src/cmd_str.o src/cmd_ary.o src/cmd_condition.o src/interface.o src/object.o src/uobject.o src/cmd_num.o src/cmd_curses.o src/fd.o src/nfun.o src/extprog.o"
30503033
30513034
3035+CFLAGS='-DSYSCONFDIR="\"${sysconfdir}/\"" -DDOCDIR="\"${docdir}/\"" -DSYSTEM_MIGEMODIR="\"${SYSTEM_MIGEMODIR}\""'
3036+
30523037 if test `uname -s` = "Darwin"; then
30533038 echo "Darwin"
30543039
@@ -3063,7 +3048,7 @@ if test `uname -s` = "Darwin"; then
30633048 LIBXYZSHASTRIP=-s
30643049
30653050
3066- CFLAGS="-Isrc/ -I. -L. -I$myprefix/include -L$myprefix/lib -fPIC"
3051+ CFLAGS="-Isrc/ -I. -L. -I$myprefix/include -L$myprefix/lib -fPIC $CFLAGS"
30673052 elif test `uname -s` = "SunOS"; then
30683053 echo "SunOS"
30693054
@@ -3078,7 +3063,7 @@ elif test `uname -s` = "SunOS"; then
30783063 LIBXYZSHASTRIP=-s
30793064
30803065
3081- CFLAGS="-Isrc/ -I. -L. -I$myprefix/include -L$myprefix/lib -fPIC"
3066+ CFLAGS="-Isrc/ -I. -L. -I$myprefix/include -L$myprefix/lib -fPIC $CFLAGS"
30823067 elif test `uname -s` = "FreeBSD"; then
30833068 echo "FreeBSD"
30843069
@@ -3093,7 +3078,7 @@ elif test `uname -s` = "FreeBSD"; then
30933078 LIBXYZSHASTRIP=-s
30943079
30953080
3096- CFLAGS="-Isrc/ -I. -L. -I$myprefix/include -L$myprefix/lib -fPIC"
3081+ CFLAGS="-Isrc/ -I. -L. -I$myprefix/include -L$myprefix/lib -fPIC $CFLAGS"
30973082 elif uname -s | grep -q CYGWIN_NT; then
30983083 echo CYGWIN
30993084
@@ -3108,7 +3093,7 @@ elif uname -s | grep -q CYGWIN_NT; then
31083093 LIBXYZSHASTRIP=
31093094
31103095
3111- CFLAGS="-Isrc/ -I. -L. -I$myprefix/include -L$myprefix/lib"
3096+ CFLAGS="-Isrc/ -I. -L. -I$myprefix/include -L$myprefix/lib $CFLAGS"
31123097 STATIC_LINK=1
31133098 else
31143099 echo "Linux"
@@ -3124,13 +3109,23 @@ else
31243109 LIBXYZSHASTRIP=-s
31253110
31263111
3127- CFLAGS="-Isrc/ -I. -L. -I$myprefix/include -L$myprefix/lib -fPIC"
3112+ CFLAGS="-Isrc/ -I. -L. -I$myprefix/include -L$myprefix/lib -fPIC $CFLAGS"
31283113 fi
31293114
31303115
31313116 ##########################################################################
31323117 # CFLAGS settings
31333118 ##########################################################################
3119+if test -d /usr/include
3120+then
3121+ CFLAGS="$CFLAGS -I/usr/include"
3122+fi
3123+
3124+if test -d /usr/lib
3125+then
3126+ CFLAGS="$CFLAGS -L/usr/lib"
3127+fi
3128+
31343129 if test -d /usr/local/include
31353130 then
31363131 CFLAGS="$CFLAGS -I/usr/local/include"
@@ -3209,15 +3204,12 @@ fi
32093204
32103205
32113206
3207+
32123208 ##########################################################
32133209 # environmnet variables
32143210 ##########################################################
32153211 CC=gcc
32163212 INSTALL="/usr/bin/install -c"
3217-CFLAGS='-DSYSCONFDIR="\"${sysconfdir}/\"" -DDOCDIR="\"${docdir}/\"" -DSYSTEM_MIGEMODIR="\"${SYSTEM_MIGEMODIR}\"" -I./src -Isrc/ -I. -L. -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/local/include -L/usr/local/lib -O3'
3218-LIBS="-lreadline -lcursesw -lncursesw -lm -lonig -lmigemo"
3219-
3220-
32213213
32223214 ######################################################################
32233215 # readline settings (When with static link, must be ordered before ncurses)
@@ -3351,7 +3343,7 @@ else
33513343 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33523344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33533345 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3354-See \`config.log' for more details" "$LINENO" 5; }
3346+See \`config.log' for more details" "$LINENO" 5 ; }
33553347 fi
33563348
33573349 ac_ext=c
@@ -3377,7 +3369,7 @@ do
33773369 for ac_prog in grep ggrep; do
33783370 for ac_exec_ext in '' $ac_executable_extensions; do
33793371 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3380- as_fn_executable_p "$ac_path_GREP" || continue
3372+ { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
33813373 # Check for GNU ac_path_GREP and select it if it is found.
33823374 # Check for GNU $ac_path_GREP
33833375 case `"$ac_path_GREP" --version 2>&1` in
@@ -3443,7 +3435,7 @@ do
34433435 for ac_prog in egrep; do
34443436 for ac_exec_ext in '' $ac_executable_extensions; do
34453437 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3446- as_fn_executable_p "$ac_path_EGREP" || continue
3438+ { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
34473439 # Check for GNU ac_path_EGREP and select it if it is found.
34483440 # Check for GNU $ac_path_EGREP
34493441 case `"$ac_path_EGREP" --version 2>&1` in
@@ -3693,6 +3685,7 @@ if test "x$ac_cv_header_ncurses_ncurses_h" = xyes; then :
36933685 fi
36943686
36953687
3688+echo $CFLAGS
36963689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcursesw" >&5
36973690 $as_echo_n "checking for main in -lcursesw... " >&6; }
36983691 if ${ac_cv_lib_cursesw_main+:} false; then :
@@ -4409,16 +4402,16 @@ if (echo >conf$$.file) 2>/dev/null; then
44094402 # ... but there are two gotchas:
44104403 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
44114404 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4412- # In both cases, we have to default to `cp -pR'.
4405+ # In both cases, we have to default to `cp -p'.
44134406 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4414- as_ln_s='cp -pR'
4407+ as_ln_s='cp -p'
44154408 elif ln conf$$.file conf$$ 2>/dev/null; then
44164409 as_ln_s=ln
44174410 else
4418- as_ln_s='cp -pR'
4411+ as_ln_s='cp -p'
44194412 fi
44204413 else
4421- as_ln_s='cp -pR'
4414+ as_ln_s='cp -p'
44224415 fi
44234416 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
44244417 rmdir conf$$.dir 2>/dev/null
@@ -4478,16 +4471,28 @@ else
44784471 as_mkdir_p=false
44794472 fi
44804473
4481-
4482-# as_fn_executable_p FILE
4483-# -----------------------
4484-# Test if FILE is an executable regular file.
4485-as_fn_executable_p ()
4486-{
4487- test -f "$1" && test -x "$1"
4488-} # as_fn_executable_p
4489-as_test_x='test -x'
4490-as_executable_p=as_fn_executable_p
4474+if test -x / >/dev/null 2>&1; then
4475+ as_test_x='test -x'
4476+else
4477+ if ls -dL / >/dev/null 2>&1; then
4478+ as_ls_L_option=L
4479+ else
4480+ as_ls_L_option=
4481+ fi
4482+ as_test_x='
4483+ eval sh -c '\''
4484+ if test -d "$1"; then
4485+ test -d "$1/.";
4486+ else
4487+ case $1 in #(
4488+ -*)set "./$1";;
4489+ esac;
4490+ case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
4491+ ???[sx]*):;;*)false;;esac;fi
4492+ '\'' sh
4493+ '
4494+fi
4495+as_executable_p=$as_test_x
44914496
44924497 # Sed expression to map a string onto a valid CPP name.
44934498 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
@@ -4509,7 +4514,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45094514 # values after options handling.
45104515 ac_log="
45114516 This file was extended by $as_me, which was
4512-generated by GNU Autoconf 2.69. Invocation command line was
4517+generated by GNU Autoconf 2.68. Invocation command line was
45134518
45144519 CONFIG_FILES = $CONFIG_FILES
45154520 CONFIG_HEADERS = $CONFIG_HEADERS
@@ -4571,10 +4576,10 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45714576 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
45724577 ac_cs_version="\\
45734578 config.status
4574-configured by $0, generated by GNU Autoconf 2.69,
4579+configured by $0, generated by GNU Autoconf 2.68,
45754580 with options \\"\$ac_cs_config\\"
45764581
4577-Copyright (C) 2012 Free Software Foundation, Inc.
4582+Copyright (C) 2010 Free Software Foundation, Inc.
45784583 This config.status script is free software; the Free Software Foundation
45794584 gives unlimited permission to copy, distribute and modify it."
45804585
@@ -4663,7 +4668,7 @@ fi
46634668 _ACEOF
46644669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46654670 if \$ac_cs_recheck; then
4666- set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4671+ set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
46674672 shift
46684673 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
46694674 CONFIG_SHELL='$SHELL'
@@ -4695,7 +4700,7 @@ do
46954700 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
46964701 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
46974702
4698- *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4703+ *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
46994704 esac
47004705 done
47014706
@@ -5012,7 +5017,7 @@ do
50125017 esac
50135018 case $ac_mode$ac_tag in
50145019 :[FHL]*:*);;
5015- :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5020+ :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
50165021 :[FH]-) ac_tag=-:-;;
50175022 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
50185023 esac
@@ -5040,7 +5045,7 @@ do
50405045 [\\/$]*) false;;
50415046 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
50425047 esac ||
5043- as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5048+ as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
50445049 esac
50455050 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
50465051 as_fn_append ac_file_inputs " '$ac_f'"
@@ -5067,7 +5072,7 @@ $as_echo "$as_me: creating $ac_file" >&6;}
50675072
50685073 case $ac_tag in
50695074 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5070- || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5075+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
50715076 esac
50725077 ;;
50735078 esac
--- a/configure.in
+++ b/configure.in
@@ -39,6 +39,8 @@ AC_MSG_CHECKING(Operating System)
3939 OBJ="src/gc.o src/stack.o src/string.o src/list.o src/kanji.o src/debug.o src/hash.o src/vector.o src/block.o src/fun.o src/class.o src/completion.o src/xyzsh.o src/parser.o src/run.o src/readline.o src/curses.o src/cmd_base.o src/cmd_obj.o src/cmd_file.o src/cmd_str.o src/cmd_ary.o src/cmd_condition.o src/interface.o src/object.o src/uobject.o src/cmd_num.o src/cmd_curses.o src/fd.o src/nfun.o src/extprog.o"
4040 AC_SUBST(OBJ)
4141
42+CFLAGS='-DSYSCONFDIR="\"${sysconfdir}/\"" -DDOCDIR="\"${docdir}/\"" -DSYSTEM_MIGEMODIR="\"${SYSTEM_MIGEMODIR}\""'
43+
4244 if test `uname -s` = "Darwin"; then
4345 echo "Darwin"
4446
@@ -52,7 +54,7 @@ if test `uname -s` = "Darwin"; then
5254 LIBXYZSHASTRIP=-s
5355 AC_SUBST(LIBXYZSHASTRIP)
5456
55- CFLAGS="-Isrc/ -I. -L. -I$myprefix/include -L$myprefix/lib -fPIC"
57+ CFLAGS="-Isrc/ -I. -L. -I$myprefix/include -L$myprefix/lib -fPIC $CFLAGS"
5658 elif test `uname -s` = "SunOS"; then
5759 echo "SunOS"
5860
@@ -66,7 +68,7 @@ elif test `uname -s` = "SunOS"; then
6668 LIBXYZSHASTRIP=-s
6769 AC_SUBST(LIBXYZSHASTRIP)
6870
69- CFLAGS="-Isrc/ -I. -L. -I$myprefix/include -L$myprefix/lib -fPIC"
71+ CFLAGS="-Isrc/ -I. -L. -I$myprefix/include -L$myprefix/lib -fPIC $CFLAGS"
7072 elif test `uname -s` = "FreeBSD"; then
7173 echo "FreeBSD"
7274
@@ -80,7 +82,7 @@ elif test `uname -s` = "FreeBSD"; then
8082 LIBXYZSHASTRIP=-s
8183 AC_SUBST(LIBXYZSHASTRIP)
8284
83- CFLAGS="-Isrc/ -I. -L. -I$myprefix/include -L$myprefix/lib -fPIC"
85+ CFLAGS="-Isrc/ -I. -L. -I$myprefix/include -L$myprefix/lib -fPIC $CFLAGS"
8486 elif uname -s | grep -q CYGWIN_NT; then
8587 echo CYGWIN
8688
@@ -94,7 +96,7 @@ elif uname -s | grep -q CYGWIN_NT; then
9496 LIBXYZSHASTRIP=
9597 AC_SUBST(LIBXYZSHASTRIP)
9698
97- CFLAGS="-Isrc/ -I. -L. -I$myprefix/include -L$myprefix/lib"
99+ CFLAGS="-Isrc/ -I. -L. -I$myprefix/include -L$myprefix/lib $CFLAGS"
98100 STATIC_LINK=1
99101 else
100102 echo "Linux"
@@ -109,13 +111,23 @@ else
109111 LIBXYZSHASTRIP=-s
110112 AC_SUBST(LIBXYZSHASTRIP)
111113
112- CFLAGS="-Isrc/ -I. -L. -I$myprefix/include -L$myprefix/lib -fPIC"
114+ CFLAGS="-Isrc/ -I. -L. -I$myprefix/include -L$myprefix/lib -fPIC $CFLAGS"
113115 fi
114116
115117
116118 ##########################################################################
117119 # CFLAGS settings
118120 ##########################################################################
121+if test -d /usr/include
122+then
123+ CFLAGS="$CFLAGS -I/usr/include"
124+fi
125+
126+if test -d /usr/lib
127+then
128+ CFLAGS="$CFLAGS -L/usr/lib"
129+fi
130+
119131 if test -d /usr/local/include
120132 then
121133 CFLAGS="$CFLAGS -I/usr/local/include"
@@ -193,16 +205,13 @@ fi
193205 AC_SUBST(LIBXYZSHA)
194206 AC_SUBST(LIBXYZSHSO1)
195207 AC_SUBST(LIBXYZSHSO)
208+AC_SUBST(CFLAGS)
196209
197210 ##########################################################
198211 # environmnet variables
199212 ##########################################################
200213 CC=gcc
201214 INSTALL="/usr/bin/install -c"
202-CFLAGS='-DSYSCONFDIR="\"${sysconfdir}/\"" -DDOCDIR="\"${docdir}/\"" -DSYSTEM_MIGEMODIR="\"${SYSTEM_MIGEMODIR}\"" -I./src -Isrc/ -I. -L. -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/local/include -L/usr/local/lib -O3'
203-LIBS="-lreadline -lcursesw -lncursesw -lm -lonig -lmigemo"
204-
205-AC_SUBST(CFLAGS)
206215
207216 ######################################################################
208217 # readline settings (When with static link, must be ordered before ncurses)
@@ -216,6 +225,7 @@ AC_HAVE_LIBRARY(readline, [ LIBS="$LIBS -lreadline" ], [ exit ])
216225 #####################################################################
217226 AC_CHECK_HEADER(ncurses.h, [NCURSES_OK=1; AC_DEFINE(HAVE_NCURSES_H, 1)])
218227 AC_CHECK_HEADER(ncurses/ncurses.h, [NCURSES_OK=1; AC_DEFINE(HAVE_NCURSES_NCURSES_H, 1)])
228+echo $CFLAGS
219229 AC_HAVE_LIBRARY(cursesw, [ LIBS="$LIBS -lcursesw"; NCURSES_OK2=1 ])
220230 AC_HAVE_LIBRARY(ncursesw, [ LIBS="$LIBS -lncursesw"; NCURSES_OK2=1 ])
221231