| 51 |
|
|
| 52 |
AC_CANONICAL_HOST |
AC_CANONICAL_HOST |
| 53 |
|
|
| 54 |
|
dnl |
| 55 |
|
AC_ARG_PROGRAM |
| 56 |
|
|
| 57 |
dnl build and install libraries, server or client |
dnl build and install libraries, server or client |
| 58 |
|
|
| 59 |
AC_ARG_ENABLE(debug, |
AC_ARG_ENABLE(debug, |
| 306 |
fi |
fi |
| 307 |
|
|
| 308 |
dnl |
dnl |
| 309 |
|
dnl Install layout controlling |
| 310 |
|
dnl |
| 311 |
|
AC_ARG_ENABLE(traditional-layout, |
| 312 |
|
[ --enable-traditional-layout Install files in traditional directories [[default=yes]]], |
| 313 |
|
[case "${enableval}" in |
| 314 |
|
yes) trad_layout=true ;; |
| 315 |
|
no) trad_layout=false ;; |
| 316 |
|
*) AC_MSG_ERROR([bad value for --enable-traditional-layout]) ;; |
| 317 |
|
esac], trad_layout=true) |
| 318 |
|
|
| 319 |
|
if test $trad_layout = "true"; then |
| 320 |
|
WNNSBINDIR="\$(bindir)" |
| 321 |
|
# More path settings will come later ... |
| 322 |
|
else |
| 323 |
|
WNNSBINDIR="\$(sbindir)" |
| 324 |
|
# Same as above. |
| 325 |
|
fi |
| 326 |
|
AC_SUBST(WNNSBINDIR) |
| 327 |
|
dnl Same as above. |
| 328 |
|
|
| 329 |
|
AC_ARG_ENABLE(sub-bindir, |
| 330 |
|
[ --enable-sub-bindir Install executables to (ex.) $(bindir)/Wnn4 [[default=yes if --enable-traditional-layout, no otherwise]]], |
| 331 |
|
[case "${enableval}" in |
| 332 |
|
yes) sub_bindir=true ;; |
| 333 |
|
no) sub_bindir=false ;; |
| 334 |
|
*) AC_MSG_ERROR([bad value for --enable-sub-bindir]) ;; |
| 335 |
|
esac], sub_bindir=guess) |
| 336 |
|
|
| 337 |
|
if test $sub_bindir = "guess"; then |
| 338 |
|
if test $trad_layout = "true"; then |
| 339 |
|
sub_bindir=true |
| 340 |
|
else |
| 341 |
|
sub_bindir=false |
| 342 |
|
fi |
| 343 |
|
fi |
| 344 |
|
if test $sub_bindir = "true"; then |
| 345 |
|
if_enable_sub_bindir=' ' |
| 346 |
|
if_disable_sub_bindir='#' |
| 347 |
|
else |
| 348 |
|
if_enable_sub_bindir='#' |
| 349 |
|
if_disable_sub_bindir=' ' |
| 350 |
|
fi |
| 351 |
|
AC_SUBST(if_enable_sub_bindir) |
| 352 |
|
AC_SUBST(if_disable_sub_bindir) |
| 353 |
|
|
| 354 |
|
# for debug |
| 355 |
|
AC_MSG_CHECKING([if we use traditional layout]) |
| 356 |
|
if test $trad_layout = "true"; then |
| 357 |
|
AC_MSG_RESULT(yes) |
| 358 |
|
else |
| 359 |
|
AC_MSG_RESULT(no) |
| 360 |
|
fi |
| 361 |
|
|
| 362 |
|
AC_MSG_CHECKING([if we install binaries on \$(bindir)/Wnn4 (etc.)]) |
| 363 |
|
if test $sub_bindir = "true"; then |
| 364 |
|
AC_MSG_RESULT(yes) |
| 365 |
|
else |
| 366 |
|
AC_MSG_RESULT(no) |
| 367 |
|
fi |
| 368 |
|
|
| 369 |
|
dnl |
| 370 |
dnl Checks for cc and cpp. |
dnl Checks for cc and cpp. |
| 371 |
dnl |
dnl |
| 372 |
AC_PROG_CC |
AC_PROG_CC |