~ubuntu-branches/ubuntu/trusty/nilfs-tools/trusty

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2011-08-12 20:42:38 UTC
  • mto: This revision was merged to the branch mainline in revision 11.
  • Revision ID: james.westby@ubuntu.com-20110812204238-3i5mnvvmg7amtyjm
Tags: upstream-2.1.0~rc2
ImportĀ upstreamĀ versionĀ 2.1.0~rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.61 for NILFS utils 2.1.0-rc1.
 
3
# Generated by GNU Autoconf 2.61 for NILFS utils 2.1.0-rc2.
4
4
#
5
5
# Report bugs to <linux-nilfs@vger.kernel.org>.
6
6
#
728
728
# Identity of this package.
729
729
PACKAGE_NAME='NILFS utils'
730
730
PACKAGE_TARNAME='nilfs-utils'
731
 
PACKAGE_VERSION='2.1.0-rc1'
732
 
PACKAGE_STRING='NILFS utils 2.1.0-rc1'
 
731
PACKAGE_VERSION='2.1.0-rc2'
 
732
PACKAGE_STRING='NILFS utils 2.1.0-rc2'
733
733
PACKAGE_BUGREPORT='linux-nilfs@vger.kernel.org'
734
734
 
735
735
ac_unique_file="config.h.in"
875
875
ac_ct_F77
876
876
LIBTOOL
877
877
LDCONFIG
 
878
LIB_POSIX_MQ
 
879
LIB_POSIX_SEM
 
880
CONFIG_LIBMOUNT_TRUE
 
881
CONFIG_LIBMOUNT_FALSE
 
882
LIB_MOUNT
878
883
ALLOCA
879
884
LIBOBJS
880
885
LTLIBOBJS'
1396
1401
  # Omit some internal or obsolete options to make the list less imposing.
1397
1402
  # This message is too long to be a string in the A/UX 3.1 sh.
1398
1403
  cat <<_ACEOF
1399
 
\`configure' configures NILFS utils 2.1.0-rc1 to adapt to many kinds of systems.
 
1404
\`configure' configures NILFS utils 2.1.0-rc2 to adapt to many kinds of systems.
1400
1405
 
1401
1406
Usage: $0 [OPTION]... [VAR=VALUE]...
1402
1407
 
1466
1471
 
1467
1472
if test -n "$ac_init_help"; then
1468
1473
  case $ac_init_help in
1469
 
     short | recursive ) echo "Configuration of NILFS utils 2.1.0-rc1:";;
 
1474
     short | recursive ) echo "Configuration of NILFS utils 2.1.0-rc2:";;
1470
1475
   esac
1471
1476
  cat <<\_ACEOF
1472
1477
 
1480
1485
  --enable-fast-install[=PKGS]
1481
1486
                          optimize for fast installation [default=yes]
1482
1487
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1488
  --enable-libmount=ARG   Link mount.nilfs2 with libmount [ARG=yes]
 
1489
                          (EXPERIMENTAL)
1483
1490
  --disable-largefile     omit support for large files
1484
1491
 
1485
1492
Optional Packages:
1569
1576
test -n "$ac_init_help" && exit $ac_status
1570
1577
if $ac_init_version; then
1571
1578
  cat <<\_ACEOF
1572
 
NILFS utils configure 2.1.0-rc1
 
1579
NILFS utils configure 2.1.0-rc2
1573
1580
generated by GNU Autoconf 2.61
1574
1581
 
1575
1582
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1583
1590
This file contains any messages produced by compilers while
1584
1591
running configure, to aid debugging if configure makes a mistake.
1585
1592
 
1586
 
It was created by NILFS utils $as_me 2.1.0-rc1, which was
 
1593
It was created by NILFS utils $as_me 2.1.0-rc2, which was
1587
1594
generated by GNU Autoconf 2.61.  Invocation command line was
1588
1595
 
1589
1596
  $ $0 $@
2273
2280
 
2274
2281
# Define the identity of the package.
2275
2282
 PACKAGE='nilfs-utils'
2276
 
 VERSION='2.1.0-rc1'
 
2283
 VERSION='2.1.0-rc2'
2277
2284
 
2278
2285
 
2279
2286
cat >>confdefs.h <<_ACEOF
4995
5002
  ;;
4996
5003
*-*-irix6*)
4997
5004
  # Find out which ABI we are using.
4998
 
  echo '#line 4998 "configure"' > conftest.$ac_ext
 
5005
  echo '#line 5005 "configure"' > conftest.$ac_ext
4999
5006
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5000
5007
  (eval $ac_compile) 2>&5
5001
5008
  ac_status=$?
7822
7829
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7823
7830
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7824
7831
   -e 's:$: $lt_compiler_flag:'`
7825
 
   (eval echo "\"\$as_me:7825: $lt_compile\"" >&5)
 
7832
   (eval echo "\"\$as_me:7832: $lt_compile\"" >&5)
7826
7833
   (eval "$lt_compile" 2>conftest.err)
7827
7834
   ac_status=$?
7828
7835
   cat conftest.err >&5
7829
 
   echo "$as_me:7829: \$? = $ac_status" >&5
 
7836
   echo "$as_me:7836: \$? = $ac_status" >&5
7830
7837
   if (exit $ac_status) && test -s "$ac_outfile"; then
7831
7838
     # The compiler can only warn and ignore the option if not recognized
7832
7839
     # So say no if there are warnings other than the usual output.
8112
8119
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8113
8120
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8114
8121
   -e 's:$: $lt_compiler_flag:'`
8115
 
   (eval echo "\"\$as_me:8115: $lt_compile\"" >&5)
 
8122
   (eval echo "\"\$as_me:8122: $lt_compile\"" >&5)
8116
8123
   (eval "$lt_compile" 2>conftest.err)
8117
8124
   ac_status=$?
8118
8125
   cat conftest.err >&5
8119
 
   echo "$as_me:8119: \$? = $ac_status" >&5
 
8126
   echo "$as_me:8126: \$? = $ac_status" >&5
8120
8127
   if (exit $ac_status) && test -s "$ac_outfile"; then
8121
8128
     # The compiler can only warn and ignore the option if not recognized
8122
8129
     # So say no if there are warnings other than the usual output.
8216
8223
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8217
8224
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8218
8225
   -e 's:$: $lt_compiler_flag:'`
8219
 
   (eval echo "\"\$as_me:8219: $lt_compile\"" >&5)
 
8226
   (eval echo "\"\$as_me:8226: $lt_compile\"" >&5)
8220
8227
   (eval "$lt_compile" 2>out/conftest.err)
8221
8228
   ac_status=$?
8222
8229
   cat out/conftest.err >&5
8223
 
   echo "$as_me:8223: \$? = $ac_status" >&5
 
8230
   echo "$as_me:8230: \$? = $ac_status" >&5
8224
8231
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8225
8232
   then
8226
8233
     # The compiler can only warn and ignore the option if not recognized
10593
10600
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10594
10601
  lt_status=$lt_dlunknown
10595
10602
  cat > conftest.$ac_ext <<EOF
10596
 
#line 10596 "configure"
 
10603
#line 10603 "configure"
10597
10604
#include "confdefs.h"
10598
10605
 
10599
10606
#if HAVE_DLFCN_H
10693
10700
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10694
10701
  lt_status=$lt_dlunknown
10695
10702
  cat > conftest.$ac_ext <<EOF
10696
 
#line 10696 "configure"
 
10703
#line 10703 "configure"
10697
10704
#include "confdefs.h"
10698
10705
 
10699
10706
#if HAVE_DLFCN_H
13094
13101
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13095
13102
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13096
13103
   -e 's:$: $lt_compiler_flag:'`
13097
 
   (eval echo "\"\$as_me:13097: $lt_compile\"" >&5)
 
13104
   (eval echo "\"\$as_me:13104: $lt_compile\"" >&5)
13098
13105
   (eval "$lt_compile" 2>conftest.err)
13099
13106
   ac_status=$?
13100
13107
   cat conftest.err >&5
13101
 
   echo "$as_me:13101: \$? = $ac_status" >&5
 
13108
   echo "$as_me:13108: \$? = $ac_status" >&5
13102
13109
   if (exit $ac_status) && test -s "$ac_outfile"; then
13103
13110
     # The compiler can only warn and ignore the option if not recognized
13104
13111
     # So say no if there are warnings other than the usual output.
13198
13205
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13199
13206
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13200
13207
   -e 's:$: $lt_compiler_flag:'`
13201
 
   (eval echo "\"\$as_me:13201: $lt_compile\"" >&5)
 
13208
   (eval echo "\"\$as_me:13208: $lt_compile\"" >&5)
13202
13209
   (eval "$lt_compile" 2>out/conftest.err)
13203
13210
   ac_status=$?
13204
13211
   cat out/conftest.err >&5
13205
 
   echo "$as_me:13205: \$? = $ac_status" >&5
 
13212
   echo "$as_me:13212: \$? = $ac_status" >&5
13206
13213
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13207
13214
   then
13208
13215
     # The compiler can only warn and ignore the option if not recognized
14796
14803
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14797
14804
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14798
14805
   -e 's:$: $lt_compiler_flag:'`
14799
 
   (eval echo "\"\$as_me:14799: $lt_compile\"" >&5)
 
14806
   (eval echo "\"\$as_me:14806: $lt_compile\"" >&5)
14800
14807
   (eval "$lt_compile" 2>conftest.err)
14801
14808
   ac_status=$?
14802
14809
   cat conftest.err >&5
14803
 
   echo "$as_me:14803: \$? = $ac_status" >&5
 
14810
   echo "$as_me:14810: \$? = $ac_status" >&5
14804
14811
   if (exit $ac_status) && test -s "$ac_outfile"; then
14805
14812
     # The compiler can only warn and ignore the option if not recognized
14806
14813
     # So say no if there are warnings other than the usual output.
14900
14907
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14901
14908
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14902
14909
   -e 's:$: $lt_compiler_flag:'`
14903
 
   (eval echo "\"\$as_me:14903: $lt_compile\"" >&5)
 
14910
   (eval echo "\"\$as_me:14910: $lt_compile\"" >&5)
14904
14911
   (eval "$lt_compile" 2>out/conftest.err)
14905
14912
   ac_status=$?
14906
14913
   cat out/conftest.err >&5
14907
 
   echo "$as_me:14907: \$? = $ac_status" >&5
 
14914
   echo "$as_me:14914: \$? = $ac_status" >&5
14908
14915
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14909
14916
   then
14910
14917
     # The compiler can only warn and ignore the option if not recognized
17120
17127
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17121
17128
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17122
17129
   -e 's:$: $lt_compiler_flag:'`
17123
 
   (eval echo "\"\$as_me:17123: $lt_compile\"" >&5)
 
17130
   (eval echo "\"\$as_me:17130: $lt_compile\"" >&5)
17124
17131
   (eval "$lt_compile" 2>conftest.err)
17125
17132
   ac_status=$?
17126
17133
   cat conftest.err >&5
17127
 
   echo "$as_me:17127: \$? = $ac_status" >&5
 
17134
   echo "$as_me:17134: \$? = $ac_status" >&5
17128
17135
   if (exit $ac_status) && test -s "$ac_outfile"; then
17129
17136
     # The compiler can only warn and ignore the option if not recognized
17130
17137
     # So say no if there are warnings other than the usual output.
17410
17417
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17411
17418
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17412
17419
   -e 's:$: $lt_compiler_flag:'`
17413
 
   (eval echo "\"\$as_me:17413: $lt_compile\"" >&5)
 
17420
   (eval echo "\"\$as_me:17420: $lt_compile\"" >&5)
17414
17421
   (eval "$lt_compile" 2>conftest.err)
17415
17422
   ac_status=$?
17416
17423
   cat conftest.err >&5
17417
 
   echo "$as_me:17417: \$? = $ac_status" >&5
 
17424
   echo "$as_me:17424: \$? = $ac_status" >&5
17418
17425
   if (exit $ac_status) && test -s "$ac_outfile"; then
17419
17426
     # The compiler can only warn and ignore the option if not recognized
17420
17427
     # So say no if there are warnings other than the usual output.
17514
17521
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17515
17522
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17516
17523
   -e 's:$: $lt_compiler_flag:'`
17517
 
   (eval echo "\"\$as_me:17517: $lt_compile\"" >&5)
 
17524
   (eval echo "\"\$as_me:17524: $lt_compile\"" >&5)
17518
17525
   (eval "$lt_compile" 2>out/conftest.err)
17519
17526
   ac_status=$?
17520
17527
   cat out/conftest.err >&5
17521
 
   echo "$as_me:17521: \$? = $ac_status" >&5
 
17528
   echo "$as_me:17528: \$? = $ac_status" >&5
17522
17529
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17523
17530
   then
17524
17531
     # The compiler can only warn and ignore the option if not recognized
20249
20256
 
20250
20257
 
20251
20258
 
 
20259
# Check for options.
 
20260
# Check whether --enable-libmount was given.
 
20261
if test "${enable_libmount+set}" = set; then
 
20262
  enableval=$enable_libmount; enable_libmount=$enableval
 
20263
else
 
20264
  enable_libmount=no; \
 
20265
         if test -L /etc/mtab; then enable_libmount=yes; fi
 
20266
fi
 
20267
 
 
20268
 
20252
20269
# Checks for libraries.
20253
20270
{ echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
20254
20271
echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6; }
20324
20341
fi
20325
20342
 
20326
20343
 
20327
 
{ echo "$as_me:$LINENO: checking for sem_open in -lrt" >&5
 
20344
LIB_POSIX_MQ=''
 
20345
{ echo "$as_me:$LINENO: checking for mq_open" >&5
 
20346
echo $ECHO_N "checking for mq_open... $ECHO_C" >&6; }
 
20347
if test "${ac_cv_func_mq_open+set}" = set; then
 
20348
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20349
else
 
20350
  cat >conftest.$ac_ext <<_ACEOF
 
20351
/* confdefs.h.  */
 
20352
_ACEOF
 
20353
cat confdefs.h >>conftest.$ac_ext
 
20354
cat >>conftest.$ac_ext <<_ACEOF
 
20355
/* end confdefs.h.  */
 
20356
/* Define mq_open to an innocuous variant, in case <limits.h> declares mq_open.
 
20357
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20358
#define mq_open innocuous_mq_open
 
20359
 
 
20360
/* System header to define __stub macros and hopefully few prototypes,
 
20361
    which can conflict with char mq_open (); below.
 
20362
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
20363
    <limits.h> exists even on freestanding compilers.  */
 
20364
 
 
20365
#ifdef __STDC__
 
20366
# include <limits.h>
 
20367
#else
 
20368
# include <assert.h>
 
20369
#endif
 
20370
 
 
20371
#undef mq_open
 
20372
 
 
20373
/* Override any GCC internal prototype to avoid an error.
 
20374
   Use char because int might match the return type of a GCC
 
20375
   builtin and then its argument prototype would still apply.  */
 
20376
#ifdef __cplusplus
 
20377
extern "C"
 
20378
#endif
 
20379
char mq_open ();
 
20380
/* The GNU C library defines this for functions which it implements
 
20381
    to always fail with ENOSYS.  Some functions are actually named
 
20382
    something starting with __ and the normal name is an alias.  */
 
20383
#if defined __stub_mq_open || defined __stub___mq_open
 
20384
choke me
 
20385
#endif
 
20386
 
 
20387
int
 
20388
main ()
 
20389
{
 
20390
return mq_open ();
 
20391
  ;
 
20392
  return 0;
 
20393
}
 
20394
_ACEOF
 
20395
rm -f conftest.$ac_objext conftest$ac_exeext
 
20396
if { (ac_try="$ac_link"
 
20397
case "(($ac_try" in
 
20398
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20399
  *) ac_try_echo=$ac_try;;
 
20400
esac
 
20401
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20402
  (eval "$ac_link") 2>conftest.er1
 
20403
  ac_status=$?
 
20404
  grep -v '^ *+' conftest.er1 >conftest.err
 
20405
  rm -f conftest.er1
 
20406
  cat conftest.err >&5
 
20407
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20408
  (exit $ac_status); } && {
 
20409
         test -z "$ac_c_werror_flag" ||
 
20410
         test ! -s conftest.err
 
20411
       } && test -s conftest$ac_exeext &&
 
20412
       $as_test_x conftest$ac_exeext; then
 
20413
  ac_cv_func_mq_open=yes
 
20414
else
 
20415
  echo "$as_me: failed program was:" >&5
 
20416
sed 's/^/| /' conftest.$ac_ext >&5
 
20417
 
 
20418
        ac_cv_func_mq_open=no
 
20419
fi
 
20420
 
 
20421
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20422
      conftest$ac_exeext conftest.$ac_ext
 
20423
fi
 
20424
{ echo "$as_me:$LINENO: result: $ac_cv_func_mq_open" >&5
 
20425
echo "${ECHO_T}$ac_cv_func_mq_open" >&6; }
 
20426
if test $ac_cv_func_mq_open = yes; then
 
20427
  :
 
20428
else
 
20429
  { echo "$as_me:$LINENO: checking for mq_open in -lrt" >&5
 
20430
echo $ECHO_N "checking for mq_open in -lrt... $ECHO_C" >&6; }
 
20431
if test "${ac_cv_lib_rt_mq_open+set}" = set; then
 
20432
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20433
else
 
20434
  ac_check_lib_save_LIBS=$LIBS
 
20435
LIBS="-lrt  $LIBS"
 
20436
cat >conftest.$ac_ext <<_ACEOF
 
20437
/* confdefs.h.  */
 
20438
_ACEOF
 
20439
cat confdefs.h >>conftest.$ac_ext
 
20440
cat >>conftest.$ac_ext <<_ACEOF
 
20441
/* end confdefs.h.  */
 
20442
 
 
20443
/* Override any GCC internal prototype to avoid an error.
 
20444
   Use char because int might match the return type of a GCC
 
20445
   builtin and then its argument prototype would still apply.  */
 
20446
#ifdef __cplusplus
 
20447
extern "C"
 
20448
#endif
 
20449
char mq_open ();
 
20450
int
 
20451
main ()
 
20452
{
 
20453
return mq_open ();
 
20454
  ;
 
20455
  return 0;
 
20456
}
 
20457
_ACEOF
 
20458
rm -f conftest.$ac_objext conftest$ac_exeext
 
20459
if { (ac_try="$ac_link"
 
20460
case "(($ac_try" in
 
20461
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20462
  *) ac_try_echo=$ac_try;;
 
20463
esac
 
20464
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20465
  (eval "$ac_link") 2>conftest.er1
 
20466
  ac_status=$?
 
20467
  grep -v '^ *+' conftest.er1 >conftest.err
 
20468
  rm -f conftest.er1
 
20469
  cat conftest.err >&5
 
20470
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20471
  (exit $ac_status); } && {
 
20472
         test -z "$ac_c_werror_flag" ||
 
20473
         test ! -s conftest.err
 
20474
       } && test -s conftest$ac_exeext &&
 
20475
       $as_test_x conftest$ac_exeext; then
 
20476
  ac_cv_lib_rt_mq_open=yes
 
20477
else
 
20478
  echo "$as_me: failed program was:" >&5
 
20479
sed 's/^/| /' conftest.$ac_ext >&5
 
20480
 
 
20481
        ac_cv_lib_rt_mq_open=no
 
20482
fi
 
20483
 
 
20484
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20485
      conftest$ac_exeext conftest.$ac_ext
 
20486
LIBS=$ac_check_lib_save_LIBS
 
20487
fi
 
20488
{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_mq_open" >&5
 
20489
echo "${ECHO_T}$ac_cv_lib_rt_mq_open" >&6; }
 
20490
if test $ac_cv_lib_rt_mq_open = yes; then
 
20491
  LIB_POSIX_MQ=-lrt
 
20492
else
 
20493
  { echo "$as_me:$LINENO: checking for mq_open in -lposix4" >&5
 
20494
echo $ECHO_N "checking for mq_open in -lposix4... $ECHO_C" >&6; }
 
20495
if test "${ac_cv_lib_posix4_mq_open+set}" = set; then
 
20496
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20497
else
 
20498
  ac_check_lib_save_LIBS=$LIBS
 
20499
LIBS="-lposix4  $LIBS"
 
20500
cat >conftest.$ac_ext <<_ACEOF
 
20501
/* confdefs.h.  */
 
20502
_ACEOF
 
20503
cat confdefs.h >>conftest.$ac_ext
 
20504
cat >>conftest.$ac_ext <<_ACEOF
 
20505
/* end confdefs.h.  */
 
20506
 
 
20507
/* Override any GCC internal prototype to avoid an error.
 
20508
   Use char because int might match the return type of a GCC
 
20509
   builtin and then its argument prototype would still apply.  */
 
20510
#ifdef __cplusplus
 
20511
extern "C"
 
20512
#endif
 
20513
char mq_open ();
 
20514
int
 
20515
main ()
 
20516
{
 
20517
return mq_open ();
 
20518
  ;
 
20519
  return 0;
 
20520
}
 
20521
_ACEOF
 
20522
rm -f conftest.$ac_objext conftest$ac_exeext
 
20523
if { (ac_try="$ac_link"
 
20524
case "(($ac_try" in
 
20525
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20526
  *) ac_try_echo=$ac_try;;
 
20527
esac
 
20528
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20529
  (eval "$ac_link") 2>conftest.er1
 
20530
  ac_status=$?
 
20531
  grep -v '^ *+' conftest.er1 >conftest.err
 
20532
  rm -f conftest.er1
 
20533
  cat conftest.err >&5
 
20534
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20535
  (exit $ac_status); } && {
 
20536
         test -z "$ac_c_werror_flag" ||
 
20537
         test ! -s conftest.err
 
20538
       } && test -s conftest$ac_exeext &&
 
20539
       $as_test_x conftest$ac_exeext; then
 
20540
  ac_cv_lib_posix4_mq_open=yes
 
20541
else
 
20542
  echo "$as_me: failed program was:" >&5
 
20543
sed 's/^/| /' conftest.$ac_ext >&5
 
20544
 
 
20545
        ac_cv_lib_posix4_mq_open=no
 
20546
fi
 
20547
 
 
20548
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20549
      conftest$ac_exeext conftest.$ac_ext
 
20550
LIBS=$ac_check_lib_save_LIBS
 
20551
fi
 
20552
{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_mq_open" >&5
 
20553
echo "${ECHO_T}$ac_cv_lib_posix4_mq_open" >&6; }
 
20554
if test $ac_cv_lib_posix4_mq_open = yes; then
 
20555
  LIB_POSIX_MQ=-lposix4
 
20556
else
 
20557
  { { echo "$as_me:$LINENO: error: posix message queue not found" >&5
 
20558
echo "$as_me: error: posix message queue not found" >&2;}
 
20559
   { (exit 1); exit 1; }; }
 
20560
fi
 
20561
 
 
20562
fi
 
20563
 
 
20564
fi
 
20565
 
 
20566
 
 
20567
 
 
20568
LIB_POSIX_SEM=''
 
20569
{ echo "$as_me:$LINENO: checking for sem_open" >&5
 
20570
echo $ECHO_N "checking for sem_open... $ECHO_C" >&6; }
 
20571
if test "${ac_cv_func_sem_open+set}" = set; then
 
20572
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20573
else
 
20574
  cat >conftest.$ac_ext <<_ACEOF
 
20575
/* confdefs.h.  */
 
20576
_ACEOF
 
20577
cat confdefs.h >>conftest.$ac_ext
 
20578
cat >>conftest.$ac_ext <<_ACEOF
 
20579
/* end confdefs.h.  */
 
20580
/* Define sem_open to an innocuous variant, in case <limits.h> declares sem_open.
 
20581
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20582
#define sem_open innocuous_sem_open
 
20583
 
 
20584
/* System header to define __stub macros and hopefully few prototypes,
 
20585
    which can conflict with char sem_open (); below.
 
20586
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
20587
    <limits.h> exists even on freestanding compilers.  */
 
20588
 
 
20589
#ifdef __STDC__
 
20590
# include <limits.h>
 
20591
#else
 
20592
# include <assert.h>
 
20593
#endif
 
20594
 
 
20595
#undef sem_open
 
20596
 
 
20597
/* Override any GCC internal prototype to avoid an error.
 
20598
   Use char because int might match the return type of a GCC
 
20599
   builtin and then its argument prototype would still apply.  */
 
20600
#ifdef __cplusplus
 
20601
extern "C"
 
20602
#endif
 
20603
char sem_open ();
 
20604
/* The GNU C library defines this for functions which it implements
 
20605
    to always fail with ENOSYS.  Some functions are actually named
 
20606
    something starting with __ and the normal name is an alias.  */
 
20607
#if defined __stub_sem_open || defined __stub___sem_open
 
20608
choke me
 
20609
#endif
 
20610
 
 
20611
int
 
20612
main ()
 
20613
{
 
20614
return sem_open ();
 
20615
  ;
 
20616
  return 0;
 
20617
}
 
20618
_ACEOF
 
20619
rm -f conftest.$ac_objext conftest$ac_exeext
 
20620
if { (ac_try="$ac_link"
 
20621
case "(($ac_try" in
 
20622
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20623
  *) ac_try_echo=$ac_try;;
 
20624
esac
 
20625
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20626
  (eval "$ac_link") 2>conftest.er1
 
20627
  ac_status=$?
 
20628
  grep -v '^ *+' conftest.er1 >conftest.err
 
20629
  rm -f conftest.er1
 
20630
  cat conftest.err >&5
 
20631
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20632
  (exit $ac_status); } && {
 
20633
         test -z "$ac_c_werror_flag" ||
 
20634
         test ! -s conftest.err
 
20635
       } && test -s conftest$ac_exeext &&
 
20636
       $as_test_x conftest$ac_exeext; then
 
20637
  ac_cv_func_sem_open=yes
 
20638
else
 
20639
  echo "$as_me: failed program was:" >&5
 
20640
sed 's/^/| /' conftest.$ac_ext >&5
 
20641
 
 
20642
        ac_cv_func_sem_open=no
 
20643
fi
 
20644
 
 
20645
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20646
      conftest$ac_exeext conftest.$ac_ext
 
20647
fi
 
20648
{ echo "$as_me:$LINENO: result: $ac_cv_func_sem_open" >&5
 
20649
echo "${ECHO_T}$ac_cv_func_sem_open" >&6; }
 
20650
if test $ac_cv_func_sem_open = yes; then
 
20651
  :
 
20652
else
 
20653
  { echo "$as_me:$LINENO: checking for sem_open in -lrt" >&5
20328
20654
echo $ECHO_N "checking for sem_open in -lrt... $ECHO_C" >&6; }
20329
20655
if test "${ac_cv_lib_rt_sem_open+set}" = set; then
20330
20656
  echo $ECHO_N "(cached) $ECHO_C" >&6
20386
20712
{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sem_open" >&5
20387
20713
echo "${ECHO_T}$ac_cv_lib_rt_sem_open" >&6; }
20388
20714
if test $ac_cv_lib_rt_sem_open = yes; then
20389
 
 
20390
 
cat >>confdefs.h <<\_ACEOF
20391
 
#define HAVE_LIBRT 1
20392
 
_ACEOF
20393
 
 
20394
 
else
20395
 
  { { echo "$as_me:$LINENO: error: rt library not found" >&5
20396
 
echo "$as_me: error: rt library not found" >&2;}
 
20715
  LIB_POSIX_SEM=-lrt
 
20716
else
 
20717
  { echo "$as_me:$LINENO: checking for sem_open in -lpthread" >&5
 
20718
echo $ECHO_N "checking for sem_open in -lpthread... $ECHO_C" >&6; }
 
20719
if test "${ac_cv_lib_pthread_sem_open+set}" = set; then
 
20720
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20721
else
 
20722
  ac_check_lib_save_LIBS=$LIBS
 
20723
LIBS="-lpthread  $LIBS"
 
20724
cat >conftest.$ac_ext <<_ACEOF
 
20725
/* confdefs.h.  */
 
20726
_ACEOF
 
20727
cat confdefs.h >>conftest.$ac_ext
 
20728
cat >>conftest.$ac_ext <<_ACEOF
 
20729
/* end confdefs.h.  */
 
20730
 
 
20731
/* Override any GCC internal prototype to avoid an error.
 
20732
   Use char because int might match the return type of a GCC
 
20733
   builtin and then its argument prototype would still apply.  */
 
20734
#ifdef __cplusplus
 
20735
extern "C"
 
20736
#endif
 
20737
char sem_open ();
 
20738
int
 
20739
main ()
 
20740
{
 
20741
return sem_open ();
 
20742
  ;
 
20743
  return 0;
 
20744
}
 
20745
_ACEOF
 
20746
rm -f conftest.$ac_objext conftest$ac_exeext
 
20747
if { (ac_try="$ac_link"
 
20748
case "(($ac_try" in
 
20749
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20750
  *) ac_try_echo=$ac_try;;
 
20751
esac
 
20752
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20753
  (eval "$ac_link") 2>conftest.er1
 
20754
  ac_status=$?
 
20755
  grep -v '^ *+' conftest.er1 >conftest.err
 
20756
  rm -f conftest.er1
 
20757
  cat conftest.err >&5
 
20758
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20759
  (exit $ac_status); } && {
 
20760
         test -z "$ac_c_werror_flag" ||
 
20761
         test ! -s conftest.err
 
20762
       } && test -s conftest$ac_exeext &&
 
20763
       $as_test_x conftest$ac_exeext; then
 
20764
  ac_cv_lib_pthread_sem_open=yes
 
20765
else
 
20766
  echo "$as_me: failed program was:" >&5
 
20767
sed 's/^/| /' conftest.$ac_ext >&5
 
20768
 
 
20769
        ac_cv_lib_pthread_sem_open=no
 
20770
fi
 
20771
 
 
20772
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20773
      conftest$ac_exeext conftest.$ac_ext
 
20774
LIBS=$ac_check_lib_save_LIBS
 
20775
fi
 
20776
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_open" >&5
 
20777
echo "${ECHO_T}$ac_cv_lib_pthread_sem_open" >&6; }
 
20778
if test $ac_cv_lib_pthread_sem_open = yes; then
 
20779
  LIB_POSIX_SEM=-lpthread
 
20780
else
 
20781
  { echo "$as_me:$LINENO: checking for sem_open in -lposix4" >&5
 
20782
echo $ECHO_N "checking for sem_open in -lposix4... $ECHO_C" >&6; }
 
20783
if test "${ac_cv_lib_posix4_sem_open+set}" = set; then
 
20784
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20785
else
 
20786
  ac_check_lib_save_LIBS=$LIBS
 
20787
LIBS="-lposix4  $LIBS"
 
20788
cat >conftest.$ac_ext <<_ACEOF
 
20789
/* confdefs.h.  */
 
20790
_ACEOF
 
20791
cat confdefs.h >>conftest.$ac_ext
 
20792
cat >>conftest.$ac_ext <<_ACEOF
 
20793
/* end confdefs.h.  */
 
20794
 
 
20795
/* Override any GCC internal prototype to avoid an error.
 
20796
   Use char because int might match the return type of a GCC
 
20797
   builtin and then its argument prototype would still apply.  */
 
20798
#ifdef __cplusplus
 
20799
extern "C"
 
20800
#endif
 
20801
char sem_open ();
 
20802
int
 
20803
main ()
 
20804
{
 
20805
return sem_open ();
 
20806
  ;
 
20807
  return 0;
 
20808
}
 
20809
_ACEOF
 
20810
rm -f conftest.$ac_objext conftest$ac_exeext
 
20811
if { (ac_try="$ac_link"
 
20812
case "(($ac_try" in
 
20813
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20814
  *) ac_try_echo=$ac_try;;
 
20815
esac
 
20816
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20817
  (eval "$ac_link") 2>conftest.er1
 
20818
  ac_status=$?
 
20819
  grep -v '^ *+' conftest.er1 >conftest.err
 
20820
  rm -f conftest.er1
 
20821
  cat conftest.err >&5
 
20822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20823
  (exit $ac_status); } && {
 
20824
         test -z "$ac_c_werror_flag" ||
 
20825
         test ! -s conftest.err
 
20826
       } && test -s conftest$ac_exeext &&
 
20827
       $as_test_x conftest$ac_exeext; then
 
20828
  ac_cv_lib_posix4_sem_open=yes
 
20829
else
 
20830
  echo "$as_me: failed program was:" >&5
 
20831
sed 's/^/| /' conftest.$ac_ext >&5
 
20832
 
 
20833
        ac_cv_lib_posix4_sem_open=no
 
20834
fi
 
20835
 
 
20836
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20837
      conftest$ac_exeext conftest.$ac_ext
 
20838
LIBS=$ac_check_lib_save_LIBS
 
20839
fi
 
20840
{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sem_open" >&5
 
20841
echo "${ECHO_T}$ac_cv_lib_posix4_sem_open" >&6; }
 
20842
if test $ac_cv_lib_posix4_sem_open = yes; then
 
20843
  LIB_POSIX_SEM=-lposix4
 
20844
else
 
20845
  { { echo "$as_me:$LINENO: error: posix semaphore not found" >&5
 
20846
echo "$as_me: error: posix semaphore not found" >&2;}
20397
20847
   { (exit 1); exit 1; }; }
20398
20848
fi
20399
20849
 
 
20850
fi
 
20851
 
 
20852
fi
 
20853
 
 
20854
fi
 
20855
 
 
20856
 
20400
20857
 
20401
20858
# Checks for header files.
20402
20859
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20661
21118
 
20662
21119
 
20663
21120
 
 
21121
 
20664
21122
for ac_header in fcntl.h libintl.h limits.h locale.h mntent.h paths.h \
20665
21123
                  stdlib.h string.h strings.h sys/ioctl.h sys/mount.h \
20666
21124
                  sys/time.h syslog.h unistd.h linux/types.h grp.h pwd.h \
20667
 
                  mntent.h semaphore.h ctype.h mqueue.h
20668
 
do
20669
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20670
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20671
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20672
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20673
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20674
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20675
 
fi
20676
 
ac_res=`eval echo '${'$as_ac_Header'}'`
20677
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
20678
 
echo "${ECHO_T}$ac_res" >&6; }
20679
 
else
20680
 
  # Is the header compilable?
20681
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20682
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20683
 
cat >conftest.$ac_ext <<_ACEOF
20684
 
/* confdefs.h.  */
20685
 
_ACEOF
20686
 
cat confdefs.h >>conftest.$ac_ext
20687
 
cat >>conftest.$ac_ext <<_ACEOF
20688
 
/* end confdefs.h.  */
20689
 
$ac_includes_default
20690
 
#include <$ac_header>
20691
 
_ACEOF
20692
 
rm -f conftest.$ac_objext
20693
 
if { (ac_try="$ac_compile"
20694
 
case "(($ac_try" in
20695
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20696
 
  *) ac_try_echo=$ac_try;;
20697
 
esac
20698
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20699
 
  (eval "$ac_compile") 2>conftest.er1
20700
 
  ac_status=$?
20701
 
  grep -v '^ *+' conftest.er1 >conftest.err
20702
 
  rm -f conftest.er1
20703
 
  cat conftest.err >&5
20704
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705
 
  (exit $ac_status); } && {
20706
 
         test -z "$ac_c_werror_flag" ||
20707
 
         test ! -s conftest.err
20708
 
       } && test -s conftest.$ac_objext; then
20709
 
  ac_header_compiler=yes
20710
 
else
20711
 
  echo "$as_me: failed program was:" >&5
20712
 
sed 's/^/| /' conftest.$ac_ext >&5
20713
 
 
20714
 
        ac_header_compiler=no
20715
 
fi
20716
 
 
20717
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20718
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20719
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
20720
 
 
20721
 
# Is the header present?
20722
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20723
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20724
 
cat >conftest.$ac_ext <<_ACEOF
20725
 
/* confdefs.h.  */
20726
 
_ACEOF
20727
 
cat confdefs.h >>conftest.$ac_ext
20728
 
cat >>conftest.$ac_ext <<_ACEOF
20729
 
/* end confdefs.h.  */
20730
 
#include <$ac_header>
20731
 
_ACEOF
20732
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
20733
 
case "(($ac_try" in
20734
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20735
 
  *) ac_try_echo=$ac_try;;
20736
 
esac
20737
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20738
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20739
 
  ac_status=$?
20740
 
  grep -v '^ *+' conftest.er1 >conftest.err
20741
 
  rm -f conftest.er1
20742
 
  cat conftest.err >&5
20743
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744
 
  (exit $ac_status); } >/dev/null && {
20745
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20746
 
         test ! -s conftest.err
20747
 
       }; then
20748
 
  ac_header_preproc=yes
20749
 
else
20750
 
  echo "$as_me: failed program was:" >&5
20751
 
sed 's/^/| /' conftest.$ac_ext >&5
20752
 
 
20753
 
  ac_header_preproc=no
20754
 
fi
20755
 
 
20756
 
rm -f conftest.err conftest.$ac_ext
20757
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20758
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
20759
 
 
20760
 
# So?  What about this header?
20761
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20762
 
  yes:no: )
20763
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20764
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20765
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20766
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20767
 
    ac_header_preproc=yes
20768
 
    ;;
20769
 
  no:yes:* )
20770
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20771
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20772
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20773
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20774
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20775
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20776
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20777
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20778
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20779
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20780
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20781
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20782
 
    ( cat <<\_ASBOX
20783
 
## ------------------------------------------ ##
20784
 
## Report this to linux-nilfs@vger.kernel.org ##
20785
 
## ------------------------------------------ ##
20786
 
_ASBOX
20787
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
20788
 
    ;;
20789
 
esac
20790
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20791
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20792
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20793
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20794
 
else
20795
 
  eval "$as_ac_Header=\$ac_header_preproc"
20796
 
fi
20797
 
ac_res=`eval echo '${'$as_ac_Header'}'`
20798
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
20799
 
echo "${ECHO_T}$ac_res" >&6; }
20800
 
 
20801
 
fi
20802
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20803
 
  cat >>confdefs.h <<_ACEOF
20804
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20805
 
_ACEOF
20806
 
 
20807
 
fi
20808
 
 
20809
 
done
 
21125
                  mntent.h semaphore.h ctype.h mqueue.h linux/magic.h
 
21126
do
 
21127
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
21128
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
21129
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21130
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
21131
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
21132
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21133
fi
 
21134
ac_res=`eval echo '${'$as_ac_Header'}'`
 
21135
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
21136
echo "${ECHO_T}$ac_res" >&6; }
 
21137
else
 
21138
  # Is the header compilable?
 
21139
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
21140
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
21141
cat >conftest.$ac_ext <<_ACEOF
 
21142
/* confdefs.h.  */
 
21143
_ACEOF
 
21144
cat confdefs.h >>conftest.$ac_ext
 
21145
cat >>conftest.$ac_ext <<_ACEOF
 
21146
/* end confdefs.h.  */
 
21147
$ac_includes_default
 
21148
#include <$ac_header>
 
21149
_ACEOF
 
21150
rm -f conftest.$ac_objext
 
21151
if { (ac_try="$ac_compile"
 
21152
case "(($ac_try" in
 
21153
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21154
  *) ac_try_echo=$ac_try;;
 
21155
esac
 
21156
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21157
  (eval "$ac_compile") 2>conftest.er1
 
21158
  ac_status=$?
 
21159
  grep -v '^ *+' conftest.er1 >conftest.err
 
21160
  rm -f conftest.er1
 
21161
  cat conftest.err >&5
 
21162
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21163
  (exit $ac_status); } && {
 
21164
         test -z "$ac_c_werror_flag" ||
 
21165
         test ! -s conftest.err
 
21166
       } && test -s conftest.$ac_objext; then
 
21167
  ac_header_compiler=yes
 
21168
else
 
21169
  echo "$as_me: failed program was:" >&5
 
21170
sed 's/^/| /' conftest.$ac_ext >&5
 
21171
 
 
21172
        ac_header_compiler=no
 
21173
fi
 
21174
 
 
21175
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21176
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21177
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
21178
 
 
21179
# Is the header present?
 
21180
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
21181
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
21182
cat >conftest.$ac_ext <<_ACEOF
 
21183
/* confdefs.h.  */
 
21184
_ACEOF
 
21185
cat confdefs.h >>conftest.$ac_ext
 
21186
cat >>conftest.$ac_ext <<_ACEOF
 
21187
/* end confdefs.h.  */
 
21188
#include <$ac_header>
 
21189
_ACEOF
 
21190
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
21191
case "(($ac_try" in
 
21192
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21193
  *) ac_try_echo=$ac_try;;
 
21194
esac
 
21195
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21196
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
21197
  ac_status=$?
 
21198
  grep -v '^ *+' conftest.er1 >conftest.err
 
21199
  rm -f conftest.er1
 
21200
  cat conftest.err >&5
 
21201
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21202
  (exit $ac_status); } >/dev/null && {
 
21203
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
21204
         test ! -s conftest.err
 
21205
       }; then
 
21206
  ac_header_preproc=yes
 
21207
else
 
21208
  echo "$as_me: failed program was:" >&5
 
21209
sed 's/^/| /' conftest.$ac_ext >&5
 
21210
 
 
21211
  ac_header_preproc=no
 
21212
fi
 
21213
 
 
21214
rm -f conftest.err conftest.$ac_ext
 
21215
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21216
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
21217
 
 
21218
# So?  What about this header?
 
21219
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21220
  yes:no: )
 
21221
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
21222
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21223
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
21224
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
21225
    ac_header_preproc=yes
 
21226
    ;;
 
21227
  no:yes:* )
 
21228
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
21229
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
21230
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
21231
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
21232
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
21233
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
21234
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
21235
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21236
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
21237
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
21238
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
21239
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
21240
    ( cat <<\_ASBOX
 
21241
## ------------------------------------------ ##
 
21242
## Report this to linux-nilfs@vger.kernel.org ##
 
21243
## ------------------------------------------ ##
 
21244
_ASBOX
 
21245
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
21246
    ;;
 
21247
esac
 
21248
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21249
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
21250
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
21251
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21252
else
 
21253
  eval "$as_ac_Header=\$ac_header_preproc"
 
21254
fi
 
21255
ac_res=`eval echo '${'$as_ac_Header'}'`
 
21256
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
21257
echo "${ECHO_T}$ac_res" >&6; }
 
21258
 
 
21259
fi
 
21260
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
21261
  cat >>confdefs.h <<_ACEOF
 
21262
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
21263
_ACEOF
 
21264
 
 
21265
fi
 
21266
 
 
21267
done
 
21268
 
 
21269
 
 
21270
# Check for conditional libraries and headers.
 
21271
if test "${enable_libmount}" = "yes"; then
 
21272
   { echo "$as_me:$LINENO: checking for mnt_context_do_mount in -lmount" >&5
 
21273
echo $ECHO_N "checking for mnt_context_do_mount in -lmount... $ECHO_C" >&6; }
 
21274
if test "${ac_cv_lib_mount_mnt_context_do_mount+set}" = set; then
 
21275
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21276
else
 
21277
  ac_check_lib_save_LIBS=$LIBS
 
21278
LIBS="-lmount  $LIBS"
 
21279
cat >conftest.$ac_ext <<_ACEOF
 
21280
/* confdefs.h.  */
 
21281
_ACEOF
 
21282
cat confdefs.h >>conftest.$ac_ext
 
21283
cat >>conftest.$ac_ext <<_ACEOF
 
21284
/* end confdefs.h.  */
 
21285
 
 
21286
/* Override any GCC internal prototype to avoid an error.
 
21287
   Use char because int might match the return type of a GCC
 
21288
   builtin and then its argument prototype would still apply.  */
 
21289
#ifdef __cplusplus
 
21290
extern "C"
 
21291
#endif
 
21292
char mnt_context_do_mount ();
 
21293
int
 
21294
main ()
 
21295
{
 
21296
return mnt_context_do_mount ();
 
21297
  ;
 
21298
  return 0;
 
21299
}
 
21300
_ACEOF
 
21301
rm -f conftest.$ac_objext conftest$ac_exeext
 
21302
if { (ac_try="$ac_link"
 
21303
case "(($ac_try" in
 
21304
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21305
  *) ac_try_echo=$ac_try;;
 
21306
esac
 
21307
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21308
  (eval "$ac_link") 2>conftest.er1
 
21309
  ac_status=$?
 
21310
  grep -v '^ *+' conftest.er1 >conftest.err
 
21311
  rm -f conftest.er1
 
21312
  cat conftest.err >&5
 
21313
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21314
  (exit $ac_status); } && {
 
21315
         test -z "$ac_c_werror_flag" ||
 
21316
         test ! -s conftest.err
 
21317
       } && test -s conftest$ac_exeext &&
 
21318
       $as_test_x conftest$ac_exeext; then
 
21319
  ac_cv_lib_mount_mnt_context_do_mount=yes
 
21320
else
 
21321
  echo "$as_me: failed program was:" >&5
 
21322
sed 's/^/| /' conftest.$ac_ext >&5
 
21323
 
 
21324
        ac_cv_lib_mount_mnt_context_do_mount=no
 
21325
fi
 
21326
 
 
21327
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21328
      conftest$ac_exeext conftest.$ac_ext
 
21329
LIBS=$ac_check_lib_save_LIBS
 
21330
fi
 
21331
{ echo "$as_me:$LINENO: result: $ac_cv_lib_mount_mnt_context_do_mount" >&5
 
21332
echo "${ECHO_T}$ac_cv_lib_mount_mnt_context_do_mount" >&6; }
 
21333
if test $ac_cv_lib_mount_mnt_context_do_mount = yes; then
 
21334
  LIB_MOUNT="-lmount"
 
21335
else
 
21336
  { { echo "$as_me:$LINENO: error: libmount needed" >&5
 
21337
echo "$as_me: error: libmount needed" >&2;}
 
21338
   { (exit 1); exit 1; }; }
 
21339
fi
 
21340
 
 
21341
 
 
21342
for ac_header in libmount/libmount.h
 
21343
do
 
21344
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
21345
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
21346
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21347
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
21348
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
21349
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21350
fi
 
21351
ac_res=`eval echo '${'$as_ac_Header'}'`
 
21352
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
21353
echo "${ECHO_T}$ac_res" >&6; }
 
21354
else
 
21355
  # Is the header compilable?
 
21356
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
21357
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
21358
cat >conftest.$ac_ext <<_ACEOF
 
21359
/* confdefs.h.  */
 
21360
_ACEOF
 
21361
cat confdefs.h >>conftest.$ac_ext
 
21362
cat >>conftest.$ac_ext <<_ACEOF
 
21363
/* end confdefs.h.  */
 
21364
$ac_includes_default
 
21365
#include <$ac_header>
 
21366
_ACEOF
 
21367
rm -f conftest.$ac_objext
 
21368
if { (ac_try="$ac_compile"
 
21369
case "(($ac_try" in
 
21370
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21371
  *) ac_try_echo=$ac_try;;
 
21372
esac
 
21373
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21374
  (eval "$ac_compile") 2>conftest.er1
 
21375
  ac_status=$?
 
21376
  grep -v '^ *+' conftest.er1 >conftest.err
 
21377
  rm -f conftest.er1
 
21378
  cat conftest.err >&5
 
21379
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21380
  (exit $ac_status); } && {
 
21381
         test -z "$ac_c_werror_flag" ||
 
21382
         test ! -s conftest.err
 
21383
       } && test -s conftest.$ac_objext; then
 
21384
  ac_header_compiler=yes
 
21385
else
 
21386
  echo "$as_me: failed program was:" >&5
 
21387
sed 's/^/| /' conftest.$ac_ext >&5
 
21388
 
 
21389
        ac_header_compiler=no
 
21390
fi
 
21391
 
 
21392
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21393
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21394
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
21395
 
 
21396
# Is the header present?
 
21397
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
21398
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
21399
cat >conftest.$ac_ext <<_ACEOF
 
21400
/* confdefs.h.  */
 
21401
_ACEOF
 
21402
cat confdefs.h >>conftest.$ac_ext
 
21403
cat >>conftest.$ac_ext <<_ACEOF
 
21404
/* end confdefs.h.  */
 
21405
#include <$ac_header>
 
21406
_ACEOF
 
21407
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
21408
case "(($ac_try" in
 
21409
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21410
  *) ac_try_echo=$ac_try;;
 
21411
esac
 
21412
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21413
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
21414
  ac_status=$?
 
21415
  grep -v '^ *+' conftest.er1 >conftest.err
 
21416
  rm -f conftest.er1
 
21417
  cat conftest.err >&5
 
21418
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21419
  (exit $ac_status); } >/dev/null && {
 
21420
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
21421
         test ! -s conftest.err
 
21422
       }; then
 
21423
  ac_header_preproc=yes
 
21424
else
 
21425
  echo "$as_me: failed program was:" >&5
 
21426
sed 's/^/| /' conftest.$ac_ext >&5
 
21427
 
 
21428
  ac_header_preproc=no
 
21429
fi
 
21430
 
 
21431
rm -f conftest.err conftest.$ac_ext
 
21432
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21433
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
21434
 
 
21435
# So?  What about this header?
 
21436
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21437
  yes:no: )
 
21438
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
21439
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21440
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
21441
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
21442
    ac_header_preproc=yes
 
21443
    ;;
 
21444
  no:yes:* )
 
21445
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
21446
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
21447
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
21448
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
21449
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
21450
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
21451
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
21452
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21453
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
21454
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
21455
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
21456
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
21457
    ( cat <<\_ASBOX
 
21458
## ------------------------------------------ ##
 
21459
## Report this to linux-nilfs@vger.kernel.org ##
 
21460
## ------------------------------------------ ##
 
21461
_ASBOX
 
21462
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
21463
    ;;
 
21464
esac
 
21465
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21466
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
21467
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
21468
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21469
else
 
21470
  eval "$as_ac_Header=\$ac_header_preproc"
 
21471
fi
 
21472
ac_res=`eval echo '${'$as_ac_Header'}'`
 
21473
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
21474
echo "${ECHO_T}$ac_res" >&6; }
 
21475
 
 
21476
fi
 
21477
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
21478
  cat >>confdefs.h <<_ACEOF
 
21479
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
21480
_ACEOF
 
21481
 
 
21482
fi
 
21483
 
 
21484
done
 
21485
 
 
21486
fi
 
21487
 if test "$enable_libmount" = "yes"; then
 
21488
  CONFIG_LIBMOUNT_TRUE=
 
21489
  CONFIG_LIBMOUNT_FALSE='#'
 
21490
else
 
21491
  CONFIG_LIBMOUNT_TRUE='#'
 
21492
  CONFIG_LIBMOUNT_FALSE=
 
21493
fi
 
21494
 
20810
21495
 
20811
21496
 
20812
21497
# Checks for typedefs, structures, and compiler characteristics.
25025
25710
Usually this means the macro was only invoked conditionally." >&2;}
25026
25711
   { (exit 1); exit 1; }; }
25027
25712
fi
 
25713
if test -z "${CONFIG_LIBMOUNT_TRUE}" && test -z "${CONFIG_LIBMOUNT_FALSE}"; then
 
25714
  { { echo "$as_me:$LINENO: error: conditional \"CONFIG_LIBMOUNT\" was never defined.
 
25715
Usually this means the macro was only invoked conditionally." >&5
 
25716
echo "$as_me: error: conditional \"CONFIG_LIBMOUNT\" was never defined.
 
25717
Usually this means the macro was only invoked conditionally." >&2;}
 
25718
   { (exit 1); exit 1; }; }
 
25719
fi
25028
25720
 
25029
25721
: ${CONFIG_STATUS=./config.status}
25030
25722
ac_clean_files_save=$ac_clean_files
25325
26017
# report actual input values of CONFIG_FILES etc. instead of their
25326
26018
# values after options handling.
25327
26019
ac_log="
25328
 
This file was extended by NILFS utils $as_me 2.1.0-rc1, which was
 
26020
This file was extended by NILFS utils $as_me 2.1.0-rc2, which was
25329
26021
generated by GNU Autoconf 2.61.  Invocation command line was
25330
26022
 
25331
26023
  CONFIG_FILES    = $CONFIG_FILES
25378
26070
_ACEOF
25379
26071
cat >>$CONFIG_STATUS <<_ACEOF
25380
26072
ac_cs_version="\\
25381
 
NILFS utils config.status 2.1.0-rc1
 
26073
NILFS utils config.status 2.1.0-rc2
25382
26074
configured by $0, generated by GNU Autoconf 2.61,
25383
26075
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25384
26076
 
25714
26406
ac_ct_F77!$ac_ct_F77$ac_delim
25715
26407
LIBTOOL!$LIBTOOL$ac_delim
25716
26408
LDCONFIG!$LDCONFIG$ac_delim
 
26409
LIB_POSIX_MQ!$LIB_POSIX_MQ$ac_delim
 
26410
LIB_POSIX_SEM!$LIB_POSIX_SEM$ac_delim
 
26411
CONFIG_LIBMOUNT_TRUE!$CONFIG_LIBMOUNT_TRUE$ac_delim
 
26412
CONFIG_LIBMOUNT_FALSE!$CONFIG_LIBMOUNT_FALSE$ac_delim
 
26413
LIB_MOUNT!$LIB_MOUNT$ac_delim
25717
26414
ALLOCA!$ALLOCA$ac_delim
25718
26415
LIBOBJS!$LIBOBJS$ac_delim
25719
26416
LTLIBOBJS!$LTLIBOBJS$ac_delim
25720
26417
_ACEOF
25721
26418
 
25722
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then
 
26419
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then
25723
26420
    break
25724
26421
  elif $ac_last_try; then
25725
26422
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5