• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

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

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


Commit MetaInfo

Révision5b937b3a0b092471c50ed67048687aa2a7d92c8b (tree)
l'heure2013-01-22 10:37:40
Auteurab25cq <ab25cq@gmai...>
Commiterab25cq

Message de Log

1.3.3

Change Summary

Modification

--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,4 +1,12 @@
11
2+2013 January version 1.3.3
3+
4+ 1. Modified configure.in and Makfile.in especially for related docdir and sysconfdir
5+
6+ 2. Added XYZSH_DOCDIR for help.xyzsh. Remained XYZSH_DATAROOTDIR.
7+
8+ 3. After runned on command line, changed "HIT ANY KEY" working.
9+
210 2013 20th January version 1.3.2
311
412 1. Added "strip" and "objinfo" inner command
--- a/configure
+++ b/configure
@@ -1,11 +1,9 @@
11 #! /bin/sh
22 # Guess values for system-dependent variables and create Makefiles.
3-# Generated by GNU Autoconf 2.68.
3+# Generated by GNU Autoconf 2.69.
44 #
55 #
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.
6+# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
97 #
108 #
119 # This configure script is free software; the Free Software Foundation
@@ -134,6 +132,31 @@ export LANGUAGE
134132 # CDPATH.
135133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136134
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;}
137160 if test "x$CONFIG_SHELL" = x; then
138161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139162 emulate sh
@@ -167,7 +190,8 @@ if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167190 else
168191 exitcode=1; echo positional parameters were not saved.
169192 fi
170-test x\$exitcode = x0 || exit 1"
193+test x\$exitcode = x0 || exit 1
194+test -x / || exit 1"
171195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
@@ -212,21 +236,25 @@ IFS=$as_save_IFS
212236
213237
214238 if test "x$CONFIG_SHELL" != x; then :
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+"$@"}
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
230258 fi
231259
232260 if test x$as_have_required = xno; then :
@@ -328,6 +356,14 @@ $as_echo X"$as_dir" |
328356
329357
330358 } # 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
331367 # as_fn_append VAR VALUE
332368 # ----------------------
333369 # Append the text in VALUE to the end of the definition contained in VAR. Take
@@ -449,6 +485,10 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits
449485 chmod +x "$as_me.lineno" ||
450486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451487
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
452492 # Don't try to exec as it changes $[0], causing all sort of problems
453493 # (the dirname of $[0] is not the place where we might find the
454494 # original and so on. Autoconf is especially sensitive to this).
@@ -483,16 +523,16 @@ if (echo >conf$$.file) 2>/dev/null; then
483523 # ... but there are two gotchas:
484524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486- # In both cases, we have to default to `cp -p'.
526+ # In both cases, we have to default to `cp -pR'.
487527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488- as_ln_s='cp -p'
528+ as_ln_s='cp -pR'
489529 elif ln conf$$.file conf$$ 2>/dev/null; then
490530 as_ln_s=ln
491531 else
492- as_ln_s='cp -p'
532+ as_ln_s='cp -pR'
493533 fi
494534 else
495- as_ln_s='cp -p'
535+ as_ln_s='cp -pR'
496536 fi
497537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498538 rmdir conf$$.dir 2>/dev/null
@@ -504,28 +544,8 @@ else
504544 as_mkdir_p=false
505545 fi
506546
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
547+as_test_x='test -x'
548+as_executable_p=as_fn_executable_p
529549
530550 # Sed expression to map a string onto a valid CPP name.
531551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
@@ -1136,8 +1156,6 @@ target=$target_alias
11361156 if test "x$host_alias" != x; then
11371157 if test "x$build_alias" = x; then
11381158 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
11411159 elif test "x$build_alias" != "x$host_alias"; then
11421160 cross_compiling=yes
11431161 fi
@@ -1376,9 +1394,9 @@ test -n "$ac_init_help" && exit $ac_status
13761394 if $ac_init_version; then
13771395 cat <<\_ACEOF
13781396 configure
1379-generated by GNU Autoconf 2.68
1397+generated by GNU Autoconf 2.69
13801398
1381-Copyright (C) 2010 Free Software Foundation, Inc.
1399+Copyright (C) 2012 Free Software Foundation, Inc.
13821400 This configure script is free software; the Free Software Foundation
13831401 gives unlimited permission to copy, distribute and modify it.
13841402 _ACEOF
@@ -1651,7 +1669,7 @@ $as_echo "$ac_try_echo"; } >&5
16511669 test ! -s conftest.err
16521670 } && test -s conftest$ac_exeext && {
16531671 test "$cross_compiling" = yes ||
1654- $as_test_x conftest$ac_exeext
1672+ test -x conftest$ac_exeext
16551673 }; then :
16561674 ac_retval=0
16571675 else
@@ -1674,7 +1692,7 @@ This file contains any messages produced by compilers while
16741692 running configure, to aid debugging if configure makes a mistake.
16751693
16761694 It was created by $as_me, which was
1677-generated by GNU Autoconf 2.68. Invocation command line was
1695+generated by GNU Autoconf 2.69. Invocation command line was
16781696
16791697 $ $0 $@
16801698
@@ -1932,7 +1950,7 @@ $as_echo "$as_me: loading site script $ac_site_file" >&6;}
19321950 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19331951 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19341952 as_fn_error $? "failed to load site script $ac_site_file
1935-See \`config.log' for more details" "$LINENO" 5 ; }
1953+See \`config.log' for more details" "$LINENO" 5; }
19361954 fi
19371955 done
19381956
@@ -2047,7 +2065,7 @@ do
20472065 IFS=$as_save_IFS
20482066 test -z "$as_dir" && as_dir=.
20492067 for ac_exec_ext in '' $ac_executable_extensions; do
2050- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2068+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20512069 ac_cv_prog_CC="${ac_tool_prefix}gcc"
20522070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20532071 break 2
@@ -2087,7 +2105,7 @@ do
20872105 IFS=$as_save_IFS
20882106 test -z "$as_dir" && as_dir=.
20892107 for ac_exec_ext in '' $ac_executable_extensions; do
2090- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2108+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20912109 ac_cv_prog_ac_ct_CC="gcc"
20922110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20932111 break 2
@@ -2140,7 +2158,7 @@ do
21402158 IFS=$as_save_IFS
21412159 test -z "$as_dir" && as_dir=.
21422160 for ac_exec_ext in '' $ac_executable_extensions; do
2143- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2161+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21442162 ac_cv_prog_CC="${ac_tool_prefix}cc"
21452163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21462164 break 2
@@ -2181,7 +2199,7 @@ do
21812199 IFS=$as_save_IFS
21822200 test -z "$as_dir" && as_dir=.
21832201 for ac_exec_ext in '' $ac_executable_extensions; do
2184- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2202+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21852203 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
21862204 ac_prog_rejected=yes
21872205 continue
@@ -2239,7 +2257,7 @@ do
22392257 IFS=$as_save_IFS
22402258 test -z "$as_dir" && as_dir=.
22412259 for ac_exec_ext in '' $ac_executable_extensions; do
2242- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2260+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22432261 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
22442262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22452263 break 2
@@ -2283,7 +2301,7 @@ do
22832301 IFS=$as_save_IFS
22842302 test -z "$as_dir" && as_dir=.
22852303 for ac_exec_ext in '' $ac_executable_extensions; do
2286- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2304+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22872305 ac_cv_prog_ac_ct_CC="$ac_prog"
22882306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22892307 break 2
@@ -2326,7 +2344,7 @@ fi
23262344 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23272345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23282346 as_fn_error $? "no acceptable C compiler found in \$PATH
2329-See \`config.log' for more details" "$LINENO" 5 ; }
2347+See \`config.log' for more details" "$LINENO" 5; }
23302348
23312349 # Provide some information about the compiler.
23322350 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
@@ -2441,7 +2459,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
24412459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24422460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24432461 as_fn_error 77 "C compiler cannot create executables
2444-See \`config.log' for more details" "$LINENO" 5 ; }
2462+See \`config.log' for more details" "$LINENO" 5; }
24452463 else
24462464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24472465 $as_echo "yes" >&6; }
@@ -2484,7 +2502,7 @@ else
24842502 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24852503 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24862504 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2487-See \`config.log' for more details" "$LINENO" 5 ; }
2505+See \`config.log' for more details" "$LINENO" 5; }
24882506 fi
24892507 rm -f conftest conftest$ac_cv_exeext
24902508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
@@ -2543,7 +2561,7 @@ $as_echo "$ac_try_echo"; } >&5
25432561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25442562 as_fn_error $? "cannot run C compiled programs.
25452563 If you meant to cross compile, use \`--host'.
2546-See \`config.log' for more details" "$LINENO" 5 ; }
2564+See \`config.log' for more details" "$LINENO" 5; }
25472565 fi
25482566 fi
25492567 fi
@@ -2595,7 +2613,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
25952613 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25962614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25972615 as_fn_error $? "cannot compute suffix of object files: cannot compile
2598-See \`config.log' for more details" "$LINENO" 5 ; }
2616+See \`config.log' for more details" "$LINENO" 5; }
25992617 fi
26002618 rm -f conftest.$ac_cv_objext conftest.$ac_ext
26012619 fi
@@ -2729,8 +2747,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27292747 /* end confdefs.h. */
27302748 #include <stdarg.h>
27312749 #include <stdio.h>
2732-#include <sys/types.h>
2733-#include <sys/stat.h>
2750+struct stat;
27342751 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
27352752 struct buf { int x; };
27362753 FILE * (*rcsopen) (struct buf *, struct stat *, int);
@@ -2881,7 +2898,7 @@ case $as_dir/ in #((
28812898 # by default.
28822899 for ac_prog in ginstall scoinst install; do
28832900 for ac_exec_ext in '' $ac_executable_extensions; do
2884- if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2901+ if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
28852902 if test $ac_prog = install &&
28862903 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
28872904 # AIX install. It has an incompatible calling convention.
@@ -3192,8 +3209,13 @@ fi
31923209
31933210
31943211
3195-CFLAGS="-I./src $CFLAGS"
3196-CFLAGS="-DSYSCONFDIR=\"\\\"$sysconfdir/xyzsh/\\\"\" -DDATAROOTDIR=\"\\\"$datarootdir/doc/xyzsh/\\\"\" -DSYSTEM_MIGEMODIR=\"\\\"$SYSTEM_MIGEMODIR\\\"\" $CFLAGS"
3212+##########################################################
3213+# environmnet variables
3214+##########################################################
3215+CC=gcc
3216+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"
31973219
31983220
31993221
@@ -3329,7 +3351,7 @@ else
33293351 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33303352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33313353 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3332-See \`config.log' for more details" "$LINENO" 5 ; }
3354+See \`config.log' for more details" "$LINENO" 5; }
33333355 fi
33343356
33353357 ac_ext=c
@@ -3355,7 +3377,7 @@ do
33553377 for ac_prog in grep ggrep; do
33563378 for ac_exec_ext in '' $ac_executable_extensions; do
33573379 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3358- { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3380+ as_fn_executable_p "$ac_path_GREP" || continue
33593381 # Check for GNU ac_path_GREP and select it if it is found.
33603382 # Check for GNU $ac_path_GREP
33613383 case `"$ac_path_GREP" --version 2>&1` in
@@ -3421,7 +3443,7 @@ do
34213443 for ac_prog in egrep; do
34223444 for ac_exec_ext in '' $ac_executable_extensions; do
34233445 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3424- { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3446+ as_fn_executable_p "$ac_path_EGREP" || continue
34253447 # Check for GNU ac_path_EGREP and select it if it is found.
34263448 # Check for GNU $ac_path_EGREP
34273449 case `"$ac_path_EGREP" --version 2>&1` in
@@ -4387,16 +4409,16 @@ if (echo >conf$$.file) 2>/dev/null; then
43874409 # ... but there are two gotchas:
43884410 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
43894411 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4390- # In both cases, we have to default to `cp -p'.
4412+ # In both cases, we have to default to `cp -pR'.
43914413 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4392- as_ln_s='cp -p'
4414+ as_ln_s='cp -pR'
43934415 elif ln conf$$.file conf$$ 2>/dev/null; then
43944416 as_ln_s=ln
43954417 else
4396- as_ln_s='cp -p'
4418+ as_ln_s='cp -pR'
43974419 fi
43984420 else
4399- as_ln_s='cp -p'
4421+ as_ln_s='cp -pR'
44004422 fi
44014423 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
44024424 rmdir conf$$.dir 2>/dev/null
@@ -4456,28 +4478,16 @@ else
44564478 as_mkdir_p=false
44574479 fi
44584480
4459-if test -x / >/dev/null 2>&1; then
4460- as_test_x='test -x'
4461-else
4462- if ls -dL / >/dev/null 2>&1; then
4463- as_ls_L_option=L
4464- else
4465- as_ls_L_option=
4466- fi
4467- as_test_x='
4468- eval sh -c '\''
4469- if test -d "$1"; then
4470- test -d "$1/.";
4471- else
4472- case $1 in #(
4473- -*)set "./$1";;
4474- esac;
4475- case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
4476- ???[sx]*):;;*)false;;esac;fi
4477- '\'' sh
4478- '
4479-fi
4480-as_executable_p=$as_test_x
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
44814491
44824492 # Sed expression to map a string onto a valid CPP name.
44834493 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
@@ -4499,7 +4509,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
44994509 # values after options handling.
45004510 ac_log="
45014511 This file was extended by $as_me, which was
4502-generated by GNU Autoconf 2.68. Invocation command line was
4512+generated by GNU Autoconf 2.69. Invocation command line was
45034513
45044514 CONFIG_FILES = $CONFIG_FILES
45054515 CONFIG_HEADERS = $CONFIG_HEADERS
@@ -4561,10 +4571,10 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45614571 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
45624572 ac_cs_version="\\
45634573 config.status
4564-configured by $0, generated by GNU Autoconf 2.68,
4574+configured by $0, generated by GNU Autoconf 2.69,
45654575 with options \\"\$ac_cs_config\\"
45664576
4567-Copyright (C) 2010 Free Software Foundation, Inc.
4577+Copyright (C) 2012 Free Software Foundation, Inc.
45684578 This config.status script is free software; the Free Software Foundation
45694579 gives unlimited permission to copy, distribute and modify it."
45704580
@@ -4653,7 +4663,7 @@ fi
46534663 _ACEOF
46544664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46554665 if \$ac_cs_recheck; then
4656- set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4666+ set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
46574667 shift
46584668 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
46594669 CONFIG_SHELL='$SHELL'
@@ -4685,7 +4695,7 @@ do
46854695 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
46864696 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
46874697
4688- *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
4698+ *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
46894699 esac
46904700 done
46914701
@@ -5002,7 +5012,7 @@ do
50025012 esac
50035013 case $ac_mode$ac_tag in
50045014 :[FHL]*:*);;
5005- :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
5015+ :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
50065016 :[FH]-) ac_tag=-:-;;
50075017 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
50085018 esac
@@ -5030,7 +5040,7 @@ do
50305040 [\\/$]*) false;;
50315041 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
50325042 esac ||
5033- as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
5043+ as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
50345044 esac
50355045 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
50365046 as_fn_append ac_file_inputs " '$ac_f'"
@@ -5057,7 +5067,7 @@ $as_echo "$as_me: creating $ac_file" >&6;}
50575067
50585068 case $ac_tag in
50595069 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5060- || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5070+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
50615071 esac
50625072 ;;
50635073 esac
--- a/configure.in
+++ b/configure.in
@@ -194,8 +194,13 @@ AC_SUBST(LIBXYZSHA)
194194 AC_SUBST(LIBXYZSHSO1)
195195 AC_SUBST(LIBXYZSHSO)
196196
197-CFLAGS="-I./src $CFLAGS"
198-CFLAGS="-DSYSCONFDIR=\"\\\"$sysconfdir/xyzsh/\\\"\" -DDATAROOTDIR=\"\\\"$datarootdir/doc/xyzsh/\\\"\" -DSYSTEM_MIGEMODIR=\"\\\"$SYSTEM_MIGEMODIR\\\"\" $CFLAGS"
197+##########################################################
198+# environmnet variables
199+##########################################################
200+CC=gcc
201+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"
199204
200205 AC_SUBST(CFLAGS)
201206
--- a/help.xyzsh
+++ b/help.xyzsh
@@ -39,7 +39,7 @@ class Help (
3939 if(ary -size ARGV |= 0\n) (
4040 if(funinfo | egrep -q '^current object: help<-root$') (
4141 print "-+- マニュアル -+-" \n \n
42- cat $XYZSH_DATAROOTDIR/USAGE.ja
42+ cat $XYZSH_DOCDIR/USAGE.ja
4343 print "-+- コマンド -+-" \n \n
4444 hash -La HELPS.ja| each -La -number 2 ( | lines -La 1 (|chomp|add \n\n) )
4545 ) else (
@@ -54,7 +54,7 @@ class Help (
5454 ) else (
5555 ary -size ARGV | if(| = 0\n ) (
5656 if(funinfo | egrep -q '^current object: help<-root$') (
57- cat $XYZSH_DATAROOTDIR/USAGE
57+ cat $XYZSH_DOCDIR/USAGE
5858 hash -La HELPS| each -La -number 2 ( | lines -La 1 (|chomp|add \n\n) )
5959 ) else (
6060 hash -La HELPS| each -La -number 2 ( | lines -La 1 (|chomp|add \n\n) )
--- a/src/interface.c
+++ b/src/interface.c
@@ -230,6 +230,8 @@ void readline_write_history()
230230 }
231231 }
232232
233+// EOF --> rcode == -2
234+// errors --> rcode == -1
233235 BOOL xyzsh_readline_interface_onetime(int* rcode, char* cmdline, int cursor_point, char* source_name, char** argv, int argc, fXyzshJobDone xyzsh_job_done_)
234236 {
235237 /// start interactive shell ///
@@ -258,6 +260,7 @@ BOOL xyzsh_readline_interface_onetime(int* rcode, char* cmdline, int cursor_poin
258260
259261 /// run ///
260262 if(buf == NULL) {
263+ *rcode = -2;
261264 }
262265 else if(*buf) {
263266 stack_start_stack();
--- a/src/xyzsh.c
+++ b/src/xyzsh.c
@@ -85,8 +85,9 @@ static void xyzsh_read_rc()
8585
8686 void xyzsh_init(enum eAppType app_type, BOOL no_runtime_script)
8787 {
88- setenv("XYZSH_VERSION", "1.3.2", 1);
89- setenv("XYZSH_DATAROOTDIR", DATAROOTDIR, 1);
88+ setenv("XYZSH_VERSION", "1.3.3", 1);
89+ setenv("XYZSH_DOCDIR", DOCDIR, 1);
90+ setenv("XYZSH_DATAROOTDIR", DOCDIR, 1);
9091
9192 setlocale(LC_ALL, "");
9293