mfiler4のgitリポジトリ
リビジョン | a087aa9929a1921713cbb66dd337fafc55928379 (tree) |
---|---|
日時 | 2012-10-30 01:30:39 |
作者 | ab25cq <ab25cq@gmai...> |
コミッター | ab25cq |
made runnable cygwin
@@ -1,4 +1,9 @@ | ||
1 | 1 | |
2 | +2012 30th Octorber version 1.0.1 | |
3 | + | |
4 | + Made runnable on cygwin | |
5 | + | |
6 | + | |
2 | 7 | 2012 26th Octorber version 1.0.1 |
3 | 8 | |
4 | 9 | Check mfiler4 with migemo and fixed bug |
@@ -1,9 +1,11 @@ | ||
1 | 1 | #! /bin/sh |
2 | 2 | # Guess values for system-dependent variables and create Makefiles. |
3 | -# Generated by GNU Autoconf 2.69. | |
3 | +# Generated by GNU Autoconf 2.68. | |
4 | 4 | # |
5 | 5 | # |
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. | |
7 | 9 | # |
8 | 10 | # |
9 | 11 | # This configure script is free software; the Free Software Foundation |
@@ -132,31 +134,6 @@ export LANGUAGE | ||
132 | 134 | # CDPATH. |
133 | 135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
134 | 136 | |
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;} | |
160 | 137 | if test "x$CONFIG_SHELL" = x; then |
161 | 138 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
162 | 139 | emulate sh |
@@ -190,8 +167,7 @@ if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | ||
190 | 167 | else |
191 | 168 | exitcode=1; echo positional parameters were not saved. |
192 | 169 | fi |
193 | -test x\$exitcode = x0 || exit 1 | |
194 | -test -x / || exit 1" | |
170 | +test x\$exitcode = x0 || exit 1" | |
195 | 171 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
196 | 172 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
197 | 173 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
@@ -236,25 +212,21 @@ IFS=$as_save_IFS | ||
236 | 212 | |
237 | 213 | |
238 | 214 | 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+"$@"} | |
258 | 230 | fi |
259 | 231 | |
260 | 232 | if test x$as_have_required = xno; then : |
@@ -356,14 +328,6 @@ $as_echo X"$as_dir" | | ||
356 | 328 | |
357 | 329 | |
358 | 330 | } # 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 | |
367 | 331 | # as_fn_append VAR VALUE |
368 | 332 | # ---------------------- |
369 | 333 | # 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 | ||
485 | 449 | chmod +x "$as_me.lineno" || |
486 | 450 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
487 | 451 | |
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 | |
492 | 452 | # Don't try to exec as it changes $[0], causing all sort of problems |
493 | 453 | # (the dirname of $[0] is not the place where we might find the |
494 | 454 | # original and so on. Autoconf is especially sensitive to this). |
@@ -523,16 +483,16 @@ if (echo >conf$$.file) 2>/dev/null; then | ||
523 | 483 | # ... but there are two gotchas: |
524 | 484 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
525 | 485 | # 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'. | |
527 | 487 | 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' | |
529 | 489 | elif ln conf$$.file conf$$ 2>/dev/null; then |
530 | 490 | as_ln_s=ln |
531 | 491 | else |
532 | - as_ln_s='cp -pR' | |
492 | + as_ln_s='cp -p' | |
533 | 493 | fi |
534 | 494 | else |
535 | - as_ln_s='cp -pR' | |
495 | + as_ln_s='cp -p' | |
536 | 496 | fi |
537 | 497 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
538 | 498 | rmdir conf$$.dir 2>/dev/null |
@@ -544,8 +504,28 @@ else | ||
544 | 504 | as_mkdir_p=false |
545 | 505 | fi |
546 | 506 | |
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 | |
549 | 529 | |
550 | 530 | # Sed expression to map a string onto a valid CPP name. |
551 | 531 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
@@ -624,7 +604,6 @@ LIBOBJS | ||
624 | 604 | EGREP |
625 | 605 | GREP |
626 | 606 | CPP |
627 | -CYGWIN_DLL | |
628 | 607 | SYSTEM_MIGEMODIR |
629 | 608 | INSTALL_DATA |
630 | 609 | INSTALL_SCRIPT |
@@ -679,7 +658,6 @@ ac_user_opts=' | ||
679 | 658 | enable_option_checking |
680 | 659 | with_debug |
681 | 660 | with_gprof_debug |
682 | -with_socket | |
683 | 661 | with_optimize |
684 | 662 | with_migemo |
685 | 663 | with_migemo_dir |
@@ -1151,6 +1129,8 @@ target=$target_alias | ||
1151 | 1129 | if test "x$host_alias" != x; then |
1152 | 1130 | if test "x$build_alias" = x; then |
1153 | 1131 | cross_compiling=maybe |
1132 | + $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. | |
1133 | + If a cross compiler is detected then cross compile mode will be used" >&2 | |
1154 | 1134 | elif test "x$build_alias" != "x$host_alias"; then |
1155 | 1135 | cross_compiling=yes |
1156 | 1136 | fi |
@@ -1304,7 +1284,6 @@ Optional Packages: | ||
1304 | 1284 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1305 | 1285 | --with-debug include debug info |
1306 | 1286 | --with-gprof-debug include debug info |
1307 | - --with-socket enable remote control | |
1308 | 1287 | --with-optimize with optimize flag(-O2) CFLAGS |
1309 | 1288 | --with-migemo enable migemo |
1310 | 1289 | --with-migemo-dir=DIR set migemo directory |
@@ -1389,9 +1368,9 @@ test -n "$ac_init_help" && exit $ac_status | ||
1389 | 1368 | if $ac_init_version; then |
1390 | 1369 | cat <<\_ACEOF |
1391 | 1370 | configure |
1392 | -generated by GNU Autoconf 2.69 | |
1371 | +generated by GNU Autoconf 2.68 | |
1393 | 1372 | |
1394 | -Copyright (C) 2012 Free Software Foundation, Inc. | |
1373 | +Copyright (C) 2010 Free Software Foundation, Inc. | |
1395 | 1374 | This configure script is free software; the Free Software Foundation |
1396 | 1375 | gives unlimited permission to copy, distribute and modify it. |
1397 | 1376 | _ACEOF |
@@ -1636,12 +1615,58 @@ $as_echo "$ac_res" >&6; } | ||
1636 | 1615 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1637 | 1616 | |
1638 | 1617 | } # ac_fn_c_check_header_compile |
1618 | + | |
1619 | +# ac_fn_c_try_link LINENO | |
1620 | +# ----------------------- | |
1621 | +# Try to link conftest.$ac_ext, and return whether this succeeded. | |
1622 | +ac_fn_c_try_link () | |
1623 | +{ | |
1624 | + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1625 | + rm -f conftest.$ac_objext conftest$ac_exeext | |
1626 | + if { { ac_try="$ac_link" | |
1627 | +case "(($ac_try" in | |
1628 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1629 | + *) ac_try_echo=$ac_try;; | |
1630 | +esac | |
1631 | +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1632 | +$as_echo "$ac_try_echo"; } >&5 | |
1633 | + (eval "$ac_link") 2>conftest.err | |
1634 | + ac_status=$? | |
1635 | + if test -s conftest.err; then | |
1636 | + grep -v '^ *+' conftest.err >conftest.er1 | |
1637 | + cat conftest.er1 >&5 | |
1638 | + mv -f conftest.er1 conftest.err | |
1639 | + fi | |
1640 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1641 | + test $ac_status = 0; } && { | |
1642 | + test -z "$ac_c_werror_flag" || | |
1643 | + test ! -s conftest.err | |
1644 | + } && test -s conftest$ac_exeext && { | |
1645 | + test "$cross_compiling" = yes || | |
1646 | + $as_test_x conftest$ac_exeext | |
1647 | + }; then : | |
1648 | + ac_retval=0 | |
1649 | +else | |
1650 | + $as_echo "$as_me: failed program was:" >&5 | |
1651 | +sed 's/^/| /' conftest.$ac_ext >&5 | |
1652 | + | |
1653 | + ac_retval=1 | |
1654 | +fi | |
1655 | + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1656 | + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1657 | + # interfere with the next link command; also delete a directory that is | |
1658 | + # left behind by Apple's compiler. We do this before executing the actions. | |
1659 | + rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1660 | + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1661 | + as_fn_set_status $ac_retval | |
1662 | + | |
1663 | +} # ac_fn_c_try_link | |
1639 | 1664 | cat >config.log <<_ACEOF |
1640 | 1665 | This file contains any messages produced by compilers while |
1641 | 1666 | running configure, to aid debugging if configure makes a mistake. |
1642 | 1667 | |
1643 | 1668 | It was created by $as_me, which was |
1644 | -generated by GNU Autoconf 2.69. Invocation command line was | |
1669 | +generated by GNU Autoconf 2.68. Invocation command line was | |
1645 | 1670 | |
1646 | 1671 | $ $0 $@ |
1647 | 1672 |
@@ -1899,7 +1924,7 @@ $as_echo "$as_me: loading site script $ac_site_file" >&6;} | ||
1899 | 1924 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
1900 | 1925 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
1901 | 1926 | as_fn_error $? "failed to load site script $ac_site_file |
1902 | -See \`config.log' for more details" "$LINENO" 5; } | |
1927 | +See \`config.log' for more details" "$LINENO" 5 ; } | |
1903 | 1928 | fi |
1904 | 1929 | done |
1905 | 1930 |
@@ -2014,7 +2039,7 @@ do | ||
2014 | 2039 | IFS=$as_save_IFS |
2015 | 2040 | test -z "$as_dir" && as_dir=. |
2016 | 2041 | for ac_exec_ext in '' $ac_executable_extensions; do |
2017 | - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2042 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2018 | 2043 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2019 | 2044 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2020 | 2045 | break 2 |
@@ -2054,7 +2079,7 @@ do | ||
2054 | 2079 | IFS=$as_save_IFS |
2055 | 2080 | test -z "$as_dir" && as_dir=. |
2056 | 2081 | for ac_exec_ext in '' $ac_executable_extensions; do |
2057 | - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2082 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2058 | 2083 | ac_cv_prog_ac_ct_CC="gcc" |
2059 | 2084 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2060 | 2085 | break 2 |
@@ -2107,7 +2132,7 @@ do | ||
2107 | 2132 | IFS=$as_save_IFS |
2108 | 2133 | test -z "$as_dir" && as_dir=. |
2109 | 2134 | for ac_exec_ext in '' $ac_executable_extensions; do |
2110 | - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2135 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2111 | 2136 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2112 | 2137 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2113 | 2138 | break 2 |
@@ -2148,7 +2173,7 @@ do | ||
2148 | 2173 | IFS=$as_save_IFS |
2149 | 2174 | test -z "$as_dir" && as_dir=. |
2150 | 2175 | for ac_exec_ext in '' $ac_executable_extensions; do |
2151 | - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2176 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2152 | 2177 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2153 | 2178 | ac_prog_rejected=yes |
2154 | 2179 | continue |
@@ -2206,7 +2231,7 @@ do | ||
2206 | 2231 | IFS=$as_save_IFS |
2207 | 2232 | test -z "$as_dir" && as_dir=. |
2208 | 2233 | for ac_exec_ext in '' $ac_executable_extensions; do |
2209 | - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2234 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2210 | 2235 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2211 | 2236 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2212 | 2237 | break 2 |
@@ -2250,7 +2275,7 @@ do | ||
2250 | 2275 | IFS=$as_save_IFS |
2251 | 2276 | test -z "$as_dir" && as_dir=. |
2252 | 2277 | for ac_exec_ext in '' $ac_executable_extensions; do |
2253 | - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2278 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2254 | 2279 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2255 | 2280 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2256 | 2281 | break 2 |
@@ -2293,7 +2318,7 @@ fi | ||
2293 | 2318 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2294 | 2319 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2295 | 2320 | as_fn_error $? "no acceptable C compiler found in \$PATH |
2296 | -See \`config.log' for more details" "$LINENO" 5; } | |
2321 | +See \`config.log' for more details" "$LINENO" 5 ; } | |
2297 | 2322 | |
2298 | 2323 | # Provide some information about the compiler. |
2299 | 2324 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
@@ -2408,7 +2433,7 @@ sed 's/^/| /' conftest.$ac_ext >&5 | ||
2408 | 2433 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2409 | 2434 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2410 | 2435 | as_fn_error 77 "C compiler cannot create executables |
2411 | -See \`config.log' for more details" "$LINENO" 5; } | |
2436 | +See \`config.log' for more details" "$LINENO" 5 ; } | |
2412 | 2437 | else |
2413 | 2438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2414 | 2439 | $as_echo "yes" >&6; } |
@@ -2451,7 +2476,7 @@ else | ||
2451 | 2476 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2452 | 2477 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2453 | 2478 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
2454 | -See \`config.log' for more details" "$LINENO" 5; } | |
2479 | +See \`config.log' for more details" "$LINENO" 5 ; } | |
2455 | 2480 | fi |
2456 | 2481 | rm -f conftest conftest$ac_cv_exeext |
2457 | 2482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
@@ -2510,7 +2535,7 @@ $as_echo "$ac_try_echo"; } >&5 | ||
2510 | 2535 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2511 | 2536 | as_fn_error $? "cannot run C compiled programs. |
2512 | 2537 | If you meant to cross compile, use \`--host'. |
2513 | -See \`config.log' for more details" "$LINENO" 5; } | |
2538 | +See \`config.log' for more details" "$LINENO" 5 ; } | |
2514 | 2539 | fi |
2515 | 2540 | fi |
2516 | 2541 | fi |
@@ -2562,7 +2587,7 @@ sed 's/^/| /' conftest.$ac_ext >&5 | ||
2562 | 2587 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2563 | 2588 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2564 | 2589 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
2565 | -See \`config.log' for more details" "$LINENO" 5; } | |
2590 | +See \`config.log' for more details" "$LINENO" 5 ; } | |
2566 | 2591 | fi |
2567 | 2592 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2568 | 2593 | fi |
@@ -2696,7 +2721,8 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2696 | 2721 | /* end confdefs.h. */ |
2697 | 2722 | #include <stdarg.h> |
2698 | 2723 | #include <stdio.h> |
2699 | -struct stat; | |
2724 | +#include <sys/types.h> | |
2725 | +#include <sys/stat.h> | |
2700 | 2726 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
2701 | 2727 | struct buf { int x; }; |
2702 | 2728 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
@@ -2847,7 +2873,7 @@ case $as_dir/ in #(( | ||
2847 | 2873 | # by default. |
2848 | 2874 | for ac_prog in ginstall scoinst install; do |
2849 | 2875 | for ac_exec_ext in '' $ac_executable_extensions; do |
2850 | - if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2876 | + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
2851 | 2877 | if test $ac_prog = install && |
2852 | 2878 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2853 | 2879 | # AIX install. It has an incompatible calling convention. |
@@ -2929,12 +2955,6 @@ if test "${with_gprof_debug+set}" = set; then : | ||
2929 | 2955 | fi |
2930 | 2956 | |
2931 | 2957 | |
2932 | -# Check whether --with-socket was given. | |
2933 | -if test "${with_socket+set}" = set; then : | |
2934 | - withval=$with_socket; ENABLE_SOCKET=1; | |
2935 | -fi | |
2936 | - | |
2937 | - | |
2938 | 2958 | # Check whether --with-optimize was given. |
2939 | 2959 | if test "${with_optimize+set}" = set; then : |
2940 | 2960 | withval=$with_optimize; ENABLE_OPTIMIZE=1 |
@@ -3047,11 +3067,6 @@ then | ||
3047 | 3067 | fi |
3048 | 3068 | fi |
3049 | 3069 | |
3050 | -if test -n "$ENABLE_SOCKET" | |
3051 | -then | |
3052 | - CFLAGS="$CFLAGS -DENABLE_SOCKET" | |
3053 | -fi | |
3054 | - | |
3055 | 3070 | if test $ENABLE_OPTIMIZE = 1 |
3056 | 3071 | then |
3057 | 3072 | CFLAGS="$CFLAGS -O2" |
@@ -3063,37 +3078,38 @@ CFLAGS="-DSYSCONFDIR=\"\\\"$sysconfdir/mfiler4/\\\"\" -DDATAROOTDIR=\"\\\"$datar | ||
3063 | 3078 | |
3064 | 3079 | |
3065 | 3080 | ##################################################################### |
3066 | -# OSの判定 cygwinとLinuxのみ | |
3081 | +# Operating System | |
3067 | 3082 | ##################################################################### |
3068 | 3083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Operating System" >&5 |
3069 | 3084 | $as_echo_n "checking Operating System... " >&6; } |
3070 | 3085 | |
3071 | -if test `uname -s | sed -e 's/\(.*\)-\(.*\)/\1/'` = "CYGWIN_NT"; then | |
3072 | - echo "CYGWIN_NT" | |
3086 | +if uname -s | grep -q CYGWIN; then | |
3087 | + echo "CYGWIN" | |
3073 | 3088 | $as_echo "#define __CYGWIN__ 1" >>confdefs.h |
3074 | 3089 | |
3075 | - | |
3076 | - CYGWIN_DLL=xyzsh.dll | |
3077 | - | |
3090 | + OS=CYGWIN | |
3078 | 3091 | elif test `uname -s` = "Darwin"; then |
3079 | 3092 | echo "Darwin" |
3080 | 3093 | |
3081 | 3094 | $as_echo "#define __DARWIN__ 1" >>confdefs.h |
3082 | 3095 | |
3096 | + OS=DARWIN | |
3083 | 3097 | elif test `uname -s` = "FreeBSD"; then |
3084 | 3098 | echo "FreeBSD" |
3085 | 3099 | |
3086 | 3100 | $as_echo "#define __FREEBSD__ 1" >>confdefs.h |
3087 | 3101 | |
3102 | + OS=FREEBSD | |
3088 | 3103 | else |
3089 | 3104 | echo "Linux" |
3090 | 3105 | |
3091 | 3106 | $as_echo "#define __LINUX__ 1" >>confdefs.h |
3092 | 3107 | |
3108 | + OS=LINUX | |
3093 | 3109 | fi |
3094 | 3110 | |
3095 | -########################################################################### | |
3096 | -# cursesのインストールの有無を調べる | |
3111 | +########################################################################## | |
3112 | +# libxyzsh | |
3097 | 3113 | ########################################################################### |
3098 | 3114 | |
3099 | 3115 | ac_ext=c |
@@ -3224,7 +3240,7 @@ else | ||
3224 | 3240 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3225 | 3241 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3226 | 3242 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
3227 | -See \`config.log' for more details" "$LINENO" 5; } | |
3243 | +See \`config.log' for more details" "$LINENO" 5 ; } | |
3228 | 3244 | fi |
3229 | 3245 | |
3230 | 3246 | ac_ext=c |
@@ -3250,7 +3266,7 @@ do | ||
3250 | 3266 | for ac_prog in grep ggrep; do |
3251 | 3267 | for ac_exec_ext in '' $ac_executable_extensions; do |
3252 | 3268 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
3253 | - as_fn_executable_p "$ac_path_GREP" || continue | |
3269 | + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3254 | 3270 | # Check for GNU ac_path_GREP and select it if it is found. |
3255 | 3271 | # Check for GNU $ac_path_GREP |
3256 | 3272 | case `"$ac_path_GREP" --version 2>&1` in |
@@ -3316,7 +3332,7 @@ do | ||
3316 | 3332 | for ac_prog in egrep; do |
3317 | 3333 | for ac_exec_ext in '' $ac_executable_extensions; do |
3318 | 3334 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
3319 | - as_fn_executable_p "$ac_path_EGREP" || continue | |
3335 | + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3320 | 3336 | # Check for GNU ac_path_EGREP and select it if it is found. |
3321 | 3337 | # Check for GNU $ac_path_EGREP |
3322 | 3338 | case `"$ac_path_EGREP" --version 2>&1` in |
@@ -3493,6 +3509,78 @@ fi | ||
3493 | 3509 | done |
3494 | 3510 | |
3495 | 3511 | |
3512 | +ac_fn_c_check_header_mongrel "$LINENO" "xyzsh/xyzsh.h" "ac_cv_header_xyzsh_xyzsh_h" "$ac_includes_default" | |
3513 | +if test "x$ac_cv_header_xyzsh_xyzsh_h" = xyes; then : | |
3514 | + LIBS="$LIBS -lxyzsh"; $as_echo "#define HAVE_XYZSH_H 1" >>confdefs.h | |
3515 | + | |
3516 | +else | |
3517 | + exit | |
3518 | +fi | |
3519 | + | |
3520 | + | |
3521 | + | |
3522 | +###################################################################### | |
3523 | +# readline settings | |
3524 | +###################################################################### | |
3525 | +ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default" | |
3526 | +if test "x$ac_cv_header_readline_readline_h" = xyes; then : | |
3527 | + $as_echo "#define HAVE_READLINE_H 1" >>confdefs.h | |
3528 | + | |
3529 | +else | |
3530 | + exit | |
3531 | +fi | |
3532 | + | |
3533 | + | |
3534 | +ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default" | |
3535 | +if test "x$ac_cv_header_readline_history_h" = xyes; then : | |
3536 | + $as_echo "#define HAVE_READLINE_HISTORY_H 1" >>confdefs.h | |
3537 | + | |
3538 | +else | |
3539 | + exit | |
3540 | +fi | |
3541 | + | |
3542 | + | |
3543 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lreadline" >&5 | |
3544 | +$as_echo_n "checking for main in -lreadline... " >&6; } | |
3545 | +if ${ac_cv_lib_readline_main+:} false; then : | |
3546 | + $as_echo_n "(cached) " >&6 | |
3547 | +else | |
3548 | + ac_check_lib_save_LIBS=$LIBS | |
3549 | +LIBS="-lreadline $LIBS" | |
3550 | +cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3551 | +/* end confdefs.h. */ | |
3552 | + | |
3553 | + | |
3554 | +int | |
3555 | +main () | |
3556 | +{ | |
3557 | +return main (); | |
3558 | + ; | |
3559 | + return 0; | |
3560 | +} | |
3561 | +_ACEOF | |
3562 | +if ac_fn_c_try_link "$LINENO"; then : | |
3563 | + ac_cv_lib_readline_main=yes | |
3564 | +else | |
3565 | + ac_cv_lib_readline_main=no | |
3566 | +fi | |
3567 | +rm -f core conftest.err conftest.$ac_objext \ | |
3568 | + conftest$ac_exeext conftest.$ac_ext | |
3569 | +LIBS=$ac_check_lib_save_LIBS | |
3570 | +fi | |
3571 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_main" >&5 | |
3572 | +$as_echo "$ac_cv_lib_readline_main" >&6; } | |
3573 | +if test "x$ac_cv_lib_readline_main" = xyes; then : | |
3574 | + LIBS="$LIBS -lreadline" | |
3575 | +else | |
3576 | + exit | |
3577 | +fi | |
3578 | +ac_cv_lib_readline=ac_cv_lib_readline_main | |
3579 | + | |
3580 | + | |
3581 | +########################################################################### | |
3582 | +# libcurses | |
3583 | +########################################################################### | |
3496 | 3584 | ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default" |
3497 | 3585 | if test "x$ac_cv_header_ncurses_h" = xyes; then : |
3498 | 3586 | NCURSES_OK=1; LIBS="$LIBS -lncurses"; $as_echo "#define HAVE_NCURSES_H 1" >>confdefs.h |
@@ -3514,7 +3602,7 @@ then | ||
3514 | 3602 | fi |
3515 | 3603 | |
3516 | 3604 | ########################################################################### |
3517 | -# 数学ライブラリのインストールの有無を調べる | |
3605 | +# math library | |
3518 | 3606 | ########################################################################### |
3519 | 3607 | ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default" |
3520 | 3608 | if test "x$ac_cv_header_math_h" = xyes; then : |
@@ -3527,7 +3615,7 @@ fi | ||
3527 | 3615 | |
3528 | 3616 | |
3529 | 3617 | ########################################################################## |
3530 | -# 鬼車のインストールの有無を調べる | |
3618 | +# oniguruma | |
3531 | 3619 | ########################################################################### |
3532 | 3620 | ac_fn_c_check_header_mongrel "$LINENO" "oniguruma.h" "ac_cv_header_oniguruma_h" "$ac_includes_default" |
3533 | 3621 | if test "x$ac_cv_header_oniguruma_h" = xyes; then : |
@@ -3539,21 +3627,8 @@ fi | ||
3539 | 3627 | |
3540 | 3628 | |
3541 | 3629 | |
3542 | -########################################################################## | |
3543 | -# xyzshのインストールの有無を調べる | |
3544 | -########################################################################### | |
3545 | -ac_fn_c_check_header_mongrel "$LINENO" "xyzsh/xyzsh.h" "ac_cv_header_xyzsh_xyzsh_h" "$ac_includes_default" | |
3546 | -if test "x$ac_cv_header_xyzsh_xyzsh_h" = xyes; then : | |
3547 | - LIBS="$LIBS -lxyzsh"; $as_echo "#define HAVE_XYZSH_H 1" >>confdefs.h | |
3548 | - | |
3549 | -else | |
3550 | - exit | |
3551 | -fi | |
3552 | - | |
3553 | - | |
3554 | - | |
3555 | 3630 | #################################################################### |
3556 | -# iconv(必須) | |
3631 | +# iconv settings | |
3557 | 3632 | #################################################################### |
3558 | 3633 | ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default" |
3559 | 3634 | if test "x$ac_cv_header_iconv_h" = xyes; then : |
@@ -3565,8 +3640,13 @@ fi | ||
3565 | 3640 | |
3566 | 3641 | |
3567 | 3642 | |
3643 | +if test "$OS" = CYGWIN|| test "$OS" = DARWIN || test "$OS" = FREEBSD | |
3644 | +then | |
3645 | + LIBS="$LIBS -liconv" | |
3646 | +fi | |
3647 | + | |
3568 | 3648 | ########################################################################## |
3569 | -# migemoのインストールの有無を調べる | |
3649 | +# migemo | |
3570 | 3650 | ########################################################################### |
3571 | 3651 | if test $ENABLE_MIGEMO = 1 |
3572 | 3652 | then |
@@ -3992,16 +4072,16 @@ if (echo >conf$$.file) 2>/dev/null; then | ||
3992 | 4072 | # ... but there are two gotchas: |
3993 | 4073 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
3994 | 4074 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
3995 | - # In both cases, we have to default to `cp -pR'. | |
4075 | + # In both cases, we have to default to `cp -p'. | |
3996 | 4076 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
3997 | - as_ln_s='cp -pR' | |
4077 | + as_ln_s='cp -p' | |
3998 | 4078 | elif ln conf$$.file conf$$ 2>/dev/null; then |
3999 | 4079 | as_ln_s=ln |
4000 | 4080 | else |
4001 | - as_ln_s='cp -pR' | |
4081 | + as_ln_s='cp -p' | |
4002 | 4082 | fi |
4003 | 4083 | else |
4004 | - as_ln_s='cp -pR' | |
4084 | + as_ln_s='cp -p' | |
4005 | 4085 | fi |
4006 | 4086 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
4007 | 4087 | rmdir conf$$.dir 2>/dev/null |
@@ -4061,16 +4141,28 @@ else | ||
4061 | 4141 | as_mkdir_p=false |
4062 | 4142 | fi |
4063 | 4143 | |
4064 | - | |
4065 | -# as_fn_executable_p FILE | |
4066 | -# ----------------------- | |
4067 | -# Test if FILE is an executable regular file. | |
4068 | -as_fn_executable_p () | |
4069 | -{ | |
4070 | - test -f "$1" && test -x "$1" | |
4071 | -} # as_fn_executable_p | |
4072 | -as_test_x='test -x' | |
4073 | -as_executable_p=as_fn_executable_p | |
4144 | +if test -x / >/dev/null 2>&1; then | |
4145 | + as_test_x='test -x' | |
4146 | +else | |
4147 | + if ls -dL / >/dev/null 2>&1; then | |
4148 | + as_ls_L_option=L | |
4149 | + else | |
4150 | + as_ls_L_option= | |
4151 | + fi | |
4152 | + as_test_x=' | |
4153 | + eval sh -c '\'' | |
4154 | + if test -d "$1"; then | |
4155 | + test -d "$1/."; | |
4156 | + else | |
4157 | + case $1 in #( | |
4158 | + -*)set "./$1";; | |
4159 | + esac; | |
4160 | + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
4161 | + ???[sx]*):;;*)false;;esac;fi | |
4162 | + '\'' sh | |
4163 | + ' | |
4164 | +fi | |
4165 | +as_executable_p=$as_test_x | |
4074 | 4166 | |
4075 | 4167 | # Sed expression to map a string onto a valid CPP name. |
4076 | 4168 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
@@ -4092,7 +4184,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
4092 | 4184 | # values after options handling. |
4093 | 4185 | ac_log=" |
4094 | 4186 | This file was extended by $as_me, which was |
4095 | -generated by GNU Autoconf 2.69. Invocation command line was | |
4187 | +generated by GNU Autoconf 2.68. Invocation command line was | |
4096 | 4188 | |
4097 | 4189 | CONFIG_FILES = $CONFIG_FILES |
4098 | 4190 | CONFIG_HEADERS = $CONFIG_HEADERS |
@@ -4154,10 +4246,10 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
4154 | 4246 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
4155 | 4247 | ac_cs_version="\\ |
4156 | 4248 | config.status |
4157 | -configured by $0, generated by GNU Autoconf 2.69, | |
4249 | +configured by $0, generated by GNU Autoconf 2.68, | |
4158 | 4250 | with options \\"\$ac_cs_config\\" |
4159 | 4251 | |
4160 | -Copyright (C) 2012 Free Software Foundation, Inc. | |
4252 | +Copyright (C) 2010 Free Software Foundation, Inc. | |
4161 | 4253 | This config.status script is free software; the Free Software Foundation |
4162 | 4254 | gives unlimited permission to copy, distribute and modify it." |
4163 | 4255 |
@@ -4246,7 +4338,7 @@ fi | ||
4246 | 4338 | _ACEOF |
4247 | 4339 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
4248 | 4340 | if \$ac_cs_recheck; then |
4249 | - set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
4341 | + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
4250 | 4342 | shift |
4251 | 4343 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
4252 | 4344 | CONFIG_SHELL='$SHELL' |
@@ -4278,7 +4370,7 @@ do | ||
4278 | 4370 | "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; |
4279 | 4371 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
4280 | 4372 | |
4281 | - *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
4373 | + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; | |
4282 | 4374 | esac |
4283 | 4375 | done |
4284 | 4376 |
@@ -4595,7 +4687,7 @@ do | ||
4595 | 4687 | esac |
4596 | 4688 | case $ac_mode$ac_tag in |
4597 | 4689 | :[FHL]*:*);; |
4598 | - :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
4690 | + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; | |
4599 | 4691 | :[FH]-) ac_tag=-:-;; |
4600 | 4692 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
4601 | 4693 | esac |
@@ -4623,7 +4715,7 @@ do | ||
4623 | 4715 | [\\/$]*) false;; |
4624 | 4716 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
4625 | 4717 | esac || |
4626 | - as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
4718 | + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; | |
4627 | 4719 | esac |
4628 | 4720 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
4629 | 4721 | as_fn_append ac_file_inputs " '$ac_f'" |
@@ -4650,7 +4742,7 @@ $as_echo "$as_me: creating $ac_file" >&6;} | ||
4650 | 4742 | |
4651 | 4743 | case $ac_tag in |
4652 | 4744 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
4653 | - || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
4745 | + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
4654 | 4746 | esac |
4655 | 4747 | ;; |
4656 | 4748 | esac |
@@ -19,7 +19,6 @@ DEBUGGING=0 | ||
19 | 19 | |
20 | 20 | AC_ARG_WITH(debug, [ --with-debug include debug info ], [ DEBUGGING=1; ], []) |
21 | 21 | AC_ARG_WITH(gprof-debug, [ --with-gprof-debug include debug info ], [ DEBUGGING=2; ], []) |
22 | -AC_ARG_WITH(socket, [ --with-socket enable remote control ], [ ENABLE_SOCKET=1; ], []) | |
23 | 22 | AC_ARG_WITH(optimize, [ --with-optimize with optimize flag(-O2) CFLAGS ], [ ENABLE_OPTIMIZE=1 ], [ ENABLE_OPTIMIZE=0 ]) |
24 | 23 | AC_ARG_WITH(migemo, [ --with-migemo enable migemo ], [ ENABLE_MIGEMO=1 ], [ ENABLE_MIGEMO=0 ]) |
25 | 24 | AC_ARG_WITH(migemo-dir, [ --with-migemo-dir=DIR set migemo directory ], [ MIGEMO_DIR="$with_val" ], [ MIGEMO_DIR= ]) |
@@ -88,11 +87,6 @@ then | ||
88 | 87 | fi |
89 | 88 | fi |
90 | 89 | |
91 | -if test -n "$ENABLE_SOCKET" | |
92 | -then | |
93 | - CFLAGS="$CFLAGS -DENABLE_SOCKET" | |
94 | -fi | |
95 | - | |
96 | 90 | if test $ENABLE_OPTIMIZE = 1 |
97 | 91 | then |
98 | 92 | CFLAGS="$CFLAGS -O2" |
@@ -104,32 +98,45 @@ AC_SUBST(CFLAGS) | ||
104 | 98 | AC_SUBST(SYSTEM_MIGEMODIR) |
105 | 99 | |
106 | 100 | ##################################################################### |
107 | -# OSの判定 cygwinとLinuxのみ | |
101 | +# Operating System | |
108 | 102 | ##################################################################### |
109 | 103 | AC_MSG_CHECKING(Operating System) |
110 | 104 | |
111 | -if test `uname -s | sed -e 's/\(.*\)-\(.*\)/\1/'` = "CYGWIN_NT"; then | |
112 | - echo "CYGWIN_NT" | |
105 | +if uname -s | grep -q CYGWIN; then | |
106 | + echo "CYGWIN" | |
113 | 107 | AC_DEFINE(__CYGWIN__, 1) |
114 | - | |
115 | - CYGWIN_DLL=xyzsh.dll | |
116 | - AC_SUBST(CYGWIN_DLL) | |
108 | + OS=CYGWIN | |
117 | 109 | elif test `uname -s` = "Darwin"; then |
118 | 110 | echo "Darwin" |
119 | 111 | |
120 | 112 | AC_DEFINE(__DARWIN__, 1) |
113 | + OS=DARWIN | |
121 | 114 | elif test `uname -s` = "FreeBSD"; then |
122 | 115 | echo "FreeBSD" |
123 | 116 | |
124 | 117 | AC_DEFINE(__FREEBSD__, 1) |
118 | + OS=FREEBSD | |
125 | 119 | else |
126 | 120 | echo "Linux" |
127 | 121 | |
128 | 122 | AC_DEFINE(__LINUX__, 1) |
123 | + OS=LINUX | |
129 | 124 | fi |
130 | 125 | |
126 | +########################################################################## | |
127 | +# libxyzsh | |
128 | +########################################################################### | |
129 | +AC_CHECK_HEADER(xyzsh/xyzsh.h, [ LIBS="$LIBS -lxyzsh"; AC_DEFINE(HAVE_XYZSH_H, 1) ], [ exit ]) | |
130 | + | |
131 | +###################################################################### | |
132 | +# readline settings | |
133 | +###################################################################### | |
134 | +AC_CHECK_HEADER(readline/readline.h, [AC_DEFINE(HAVE_READLINE_H, 1)], [ exit ]) | |
135 | +AC_CHECK_HEADER(readline/history.h, [AC_DEFINE(HAVE_READLINE_HISTORY_H, 1)], [ exit ]) | |
136 | +AC_HAVE_LIBRARY(readline, [ LIBS="$LIBS -lreadline" ], [ exit ]) | |
137 | + | |
131 | 138 | ########################################################################### |
132 | -# cursesのインストールの有無を調べる | |
139 | +# libcurses | |
133 | 140 | ########################################################################### |
134 | 141 | AC_CHECK_HEADER(ncurses.h, [NCURSES_OK=1; LIBS="$LIBS -lncurses"; AC_DEFINE(HAVE_NCURSES_H, 1)]) |
135 | 142 | AC_CHECK_HEADER(ncurses/ncurses.h, [NCURSES_OK=1; LIBS="$LIBS -lncurses"; AC_DEFINE(HAVE_NCURSES_NCURSES_H, 1)]) |
@@ -140,27 +147,27 @@ then | ||
140 | 147 | fi |
141 | 148 | |
142 | 149 | ########################################################################### |
143 | -# 数学ライブラリのインストールの有無を調べる | |
150 | +# math library | |
144 | 151 | ########################################################################### |
145 | 152 | AC_CHECK_HEADER(math.h, [LIBS="$LIBS -lm"; AC_DEFINE(HAVE_MATH_H, 1)], [ exit ]) |
146 | 153 | |
147 | 154 | ########################################################################## |
148 | -# 鬼車のインストールの有無を調べる | |
155 | +# oniguruma | |
149 | 156 | ########################################################################### |
150 | 157 | AC_CHECK_HEADER(oniguruma.h, [LIBS="$LIBS -lonig"; AC_DEFINE(HAVE_ONIGURUMA_H, 1)], [ exit ]) |
151 | 158 | |
152 | -########################################################################## | |
153 | -# xyzshのインストールの有無を調べる | |
154 | -########################################################################### | |
155 | -AC_CHECK_HEADER(xyzsh/xyzsh.h, [ LIBS="$LIBS -lxyzsh"; AC_DEFINE(HAVE_XYZSH_H, 1) ], [ exit ]) | |
156 | - | |
157 | 159 | #################################################################### |
158 | -# iconv(必須) | |
160 | +# iconv settings | |
159 | 161 | #################################################################### |
160 | 162 | AC_CHECK_HEADER(iconv.h, [AC_DEFINE(HAVE_ICONV_H, 1)], [ exit ]) |
161 | 163 | |
164 | +if test "$OS" = CYGWIN|| test "$OS" = DARWIN || test "$OS" = FREEBSD | |
165 | +then | |
166 | + LIBS="$LIBS -liconv" | |
167 | +fi | |
168 | + | |
162 | 169 | ########################################################################## |
163 | -# migemoのインストールの有無を調べる | |
170 | +# migemo | |
164 | 171 | ########################################################################### |
165 | 172 | if test $ENABLE_MIGEMO = 1 |
166 | 173 | then |
@@ -1336,207 +1336,6 @@ BOOL filer_reset_marks(int dir) | ||
1336 | 1336 | /////////////////////////////////////////////////// |
1337 | 1337 | // ファイラ描写 |
1338 | 1338 | /////////////////////////////////////////////////// |
1339 | -#if defined(__CYGWIN__) | |
1340 | -int filer_make_size_str(char* result, __off64_t size) | |
1341 | -{ | |
1342 | - char* file_size = getenv("VIEW_FILE_SIZE"); | |
1343 | - if(strcmp(file_size, "Human") == 0) { | |
1344 | - char tmp[256]; | |
1345 | - __off64_t size2; | |
1346 | - if(size < 1024) { | |
1347 | - size2 = size; | |
1348 | - snprintf(tmp, 256, "%ld", size2); | |
1349 | - | |
1350 | - char* end = tmp + strlen(tmp); | |
1351 | - | |
1352 | - char* p = tmp; | |
1353 | - char* p2 = result; | |
1354 | - | |
1355 | - while(*p) { | |
1356 | - if(end - p == 7) { | |
1357 | - *p2++ = *p++; | |
1358 | - *p2++ = ','; | |
1359 | - } | |
1360 | - else if(end - p == 4) { | |
1361 | - *p2++ = *p++; | |
1362 | - *p2++ = ','; | |
1363 | - } | |
1364 | - else { | |
1365 | - *p2++ = *p++; | |
1366 | - } | |
1367 | - } | |
1368 | - | |
1369 | - *p2 = 0; | |
1370 | - } | |
1371 | - else if(size < 1024*1024) { | |
1372 | - size2 = size / 1024; | |
1373 | - snprintf(tmp, 256, "%ld", size2); | |
1374 | - | |
1375 | - char* end = tmp + strlen(tmp); | |
1376 | - | |
1377 | - char* p = tmp; | |
1378 | - char* p2 = result; | |
1379 | - | |
1380 | - while(*p) { | |
1381 | - if(end - p == 9) { | |
1382 | - *p2++ = *p++; | |
1383 | - *p2++ = ','; | |
1384 | - } | |
1385 | - else if(end - p == 6) { | |
1386 | - *p2++ = *p++; | |
1387 | - *p2++ = ','; | |
1388 | - } | |
1389 | - else { | |
1390 | - *p2++ = *p++; | |
1391 | - } | |
1392 | - } | |
1393 | - | |
1394 | - *p2++ = 'k'; | |
1395 | - *p2 = 0; | |
1396 | - } | |
1397 | - else if(size < 1024*1024*1024) { | |
1398 | - size2 = size / (1024*1024); | |
1399 | - snprintf(tmp, 256, "%ld", size2); | |
1400 | - | |
1401 | - char* end = tmp + strlen(tmp); | |
1402 | - | |
1403 | - char* p = tmp; | |
1404 | - char* p2 = result; | |
1405 | - | |
1406 | - while(*p) { | |
1407 | - if(end - p == 9) { | |
1408 | - *p2++ = *p++; | |
1409 | - *p2++ = ','; | |
1410 | - } | |
1411 | - else if(end - p == 6) { | |
1412 | - *p2++ = *p++; | |
1413 | - *p2++ = ','; | |
1414 | - } | |
1415 | - else { | |
1416 | - *p2++ = *p++; | |
1417 | - } | |
1418 | - } | |
1419 | - | |
1420 | - *p2++ = 'M'; | |
1421 | - *p2 = 0; | |
1422 | - } | |
1423 | - else { | |
1424 | - size2 = size / (1024*1024*1024); | |
1425 | - snprintf(tmp, 256, "%ld", size2); | |
1426 | - | |
1427 | - char* end = tmp + strlen(tmp); | |
1428 | - | |
1429 | - char* p = tmp; | |
1430 | - char* p2 = result; | |
1431 | - | |
1432 | - while(*p) { | |
1433 | - if(end - p == 9) { | |
1434 | - *p2++ = *p++; | |
1435 | - *p2++ = ','; | |
1436 | - } | |
1437 | - else if(end - p == 6) { | |
1438 | - *p2++ = *p++; | |
1439 | - *p2++ = ','; | |
1440 | - } | |
1441 | - else { | |
1442 | - *p2++ = *p++; | |
1443 | - } | |
1444 | - } | |
1445 | - | |
1446 | - *p2++ = 'G'; | |
1447 | - *p2 = 0; | |
1448 | - } | |
1449 | - | |
1450 | - return 7; | |
1451 | - } | |
1452 | - else if(strcmp(file_size, "Normal") == 0) { | |
1453 | - if(size < 1024*1024) { | |
1454 | - char tmp[256]; | |
1455 | - snprintf(tmp, 256, "%ld", size); | |
1456 | - char* end = tmp + strlen(tmp); | |
1457 | - | |
1458 | - char* p = tmp; | |
1459 | - char* p2 = result; | |
1460 | - | |
1461 | - while(*p) { | |
1462 | - if(end - p == 7) { | |
1463 | - *p2++ = *p++; | |
1464 | - *p2++ = ','; | |
1465 | - } | |
1466 | - else if(end - p == 4) { | |
1467 | - *p2++ = *p++; | |
1468 | - *p2++ = ','; | |
1469 | - } | |
1470 | - else { | |
1471 | - *p2++ = *p++; | |
1472 | - } | |
1473 | - } | |
1474 | - *p2 = 0; | |
1475 | - } | |
1476 | - else { | |
1477 | - size = size / (1024*1024); | |
1478 | - | |
1479 | - char tmp[256]; | |
1480 | - snprintf(tmp, 256, "%ld", size); | |
1481 | - char* end = tmp + strlen(tmp); | |
1482 | - | |
1483 | - char* p = tmp; | |
1484 | - char* p2 = result; | |
1485 | - | |
1486 | - while(*p) { | |
1487 | - if(end - p == 9) { | |
1488 | - *p2++ = *p++; | |
1489 | - *p2++ = ','; | |
1490 | - } | |
1491 | - else if(end - p == 6) { | |
1492 | - *p2++ = *p++; | |
1493 | - *p2++ = ','; | |
1494 | - } | |
1495 | - else { | |
1496 | - *p2++ = *p++; | |
1497 | - } | |
1498 | - } | |
1499 | - *p2++ = 'M'; | |
1500 | - *p2 = 0; | |
1501 | - } | |
1502 | - | |
1503 | - return 9; | |
1504 | - } | |
1505 | - else if(strcmp(file_size, "Plane") == 0) { | |
1506 | - char tmp[256]; | |
1507 | - snprintf(tmp, 256, "%ld", size); | |
1508 | - char* end = tmp + strlen(tmp); | |
1509 | - | |
1510 | - char* p = tmp; | |
1511 | - char* p2 = result; | |
1512 | - | |
1513 | - while(*p) { | |
1514 | - if(end - p == 10) { | |
1515 | - *p2++ = *p++; | |
1516 | - *p2++ = ','; | |
1517 | - } | |
1518 | - else if(end - p == 7) { | |
1519 | - *p2++ = *p++; | |
1520 | - *p2++ = ','; | |
1521 | - } | |
1522 | - else if(end - p == 4) { | |
1523 | - *p2++ = *p++; | |
1524 | - *p2++ = ','; | |
1525 | - } | |
1526 | - else { | |
1527 | - *p2++ = *p++; | |
1528 | - } | |
1529 | - } | |
1530 | - *p2 = 0; | |
1531 | - | |
1532 | - return 14; | |
1533 | - } | |
1534 | - else { | |
1535 | - fprintf(stderr, "VIEW_FILE_SIZE is Normal or Human or Plane.\n"); | |
1536 | - exit(1); | |
1537 | - } | |
1538 | -} | |
1539 | -#else | |
1540 | 1339 | int filer_make_size_str(char* result, __off64_t size) |
1541 | 1340 | { |
1542 | 1341 | char* file_size = getenv("VIEW_FILE_SIZE"); |
@@ -1736,16 +1535,11 @@ int filer_make_size_str(char* result, __off64_t size) | ||
1736 | 1535 | exit(1); |
1737 | 1536 | } |
1738 | 1537 | } |
1739 | -#endif | |
1740 | 1538 | |
1741 | 1539 | static void make_size_str2(char* result, __off64_t size) |
1742 | 1540 | { |
1743 | 1541 | char tmp[256]; |
1744 | -#if defined(__CYGWIN__) | |
1745 | - snprintf(tmp, 256, "%ld", size); | |
1746 | -#else | |
1747 | 1542 | snprintf(tmp, 256, "%lld", size); |
1748 | -#endif | |
1749 | 1543 | char* end = tmp + strlen(tmp); |
1750 | 1544 | |
1751 | 1545 | char* p = tmp; |