~ubuntu-branches/ubuntu/maverick/luatex/maverick

« back to all changes in this revision

Viewing changes to source/texk/web2c/configure

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Preining
  • Date: 2009-10-22 02:16:43 UTC
  • mfrom: (1.1.8 upstream) (4.2.2 sid)
  • Revision ID: james.westby@ubuntu.com-20091022021643-hvoq5boj9y5q92ao
Tags: 0.40.6-1
* new upstream release (add Announce file)
* fix FTBFS due to new poppler version (Closes: #529331)

Show diffs side-by-side

added added

removed removed

Lines of Context:
904
904
CXX_HACK_DEPS
905
905
CXXLD
906
906
CXXCPP
 
907
WARNING_CXXFLAGS
907
908
am__fastdepCXX_FALSE
908
909
am__fastdepCXX_TRUE
909
910
CXXDEPMODE
910
911
ac_ct_CXX
911
912
CXXFLAGS
912
913
CXX
 
914
WARNING_CFLAGS
913
915
CPP
914
916
OTOOL64
915
917
OTOOL
1030
1032
with_gnu_ld
1031
1033
enable_libtool_lock
1032
1034
enable_largefile
 
1035
enable_compiler_warnings
1033
1036
enable_cxx_runtime_hack
1034
1037
with_tex_banner
1035
1038
with_editor
1056
1059
enable_unitermwin
1057
1060
enable_mp
1058
1061
enable_web_progs
 
1062
enable_missing
1059
1063
with_fontconfig_includes
1060
1064
with_fontconfig_libdir
1061
1065
with_x
1737
1741
  --enable-dependency-tracking   do not reject slow dependency extractors
1738
1742
  --disable-libtool-lock  avoid locking (might break parallel builds)
1739
1743
  --disable-largefile     omit support for large files
 
1744
  --enable-compiler-warnings=[no|min|yes|max]
 
1745
                          Turn on compiler warnings [default: yes if
 
1746
                          maintainer-mode, min otherwise]
1740
1747
  --enable-cxx-runtime-hack  link C++ runtime statically
1741
1748
  --enable-auto-core      cause TeX&MF to dump core, given a certain filename
1742
1749
  --disable-dump-share    make fmt/base/mem files architecture-dependent
1761
1768
  --enable-unitermwin     include Uniterm window support
1762
1769
  --disable-mp            do not build METAPOST
1763
1770
  --disable-web-progs     do not build WEB programs bibtex ... weave
 
1771
  --disable-missing       terminate if a requested program or feature must be
 
1772
                          disabled, e.g., due to missing libraries
1764
1773
 
1765
1774
Optional Packages:
1766
1775
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
4408
4417
else
4409
4418
  lt_cv_nm_interface="BSD nm"
4410
4419
  echo "int some_variable = 0;" > conftest.$ac_ext
4411
 
  (eval echo "\"\$as_me:4411: $ac_compile\"" >&5)
 
4420
  (eval echo "\"\$as_me:4420: $ac_compile\"" >&5)
4412
4421
  (eval "$ac_compile" 2>conftest.err)
4413
4422
  cat conftest.err >&5
4414
 
  (eval echo "\"\$as_me:4414: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
4423
  (eval echo "\"\$as_me:4423: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4415
4424
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4416
4425
  cat conftest.err >&5
4417
 
  (eval echo "\"\$as_me:4417: output\"" >&5)
 
4426
  (eval echo "\"\$as_me:4426: output\"" >&5)
4418
4427
  cat conftest.out >&5
4419
4428
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4420
4429
    lt_cv_nm_interface="MS dumpbin"
5620
5629
  ;;
5621
5630
*-*-irix6*)
5622
5631
  # Find out which ABI we are using.
5623
 
  echo '#line 5623 "configure"' > conftest.$ac_ext
 
5632
  echo '#line 5632 "configure"' > conftest.$ac_ext
5624
5633
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5625
5634
  (eval $ac_compile) 2>&5
5626
5635
  ac_status=$?
6975
6984
 
6976
6985
done
6977
6986
 
 
6987
# Check whether --enable-compiler-warnings was given.
 
6988
if test "${enable_compiler_warnings+set}" = set; then
 
6989
  enableval=$enable_compiler_warnings;
 
6990
fi
 
6991
case $enable_compiler_warnings in
 
6992
  no | min | yes | max) : ;;
 
6993
  *) if test "x$enable_maintainer_mode" = xyes; then
 
6994
  enable_compiler_warnings=yes
 
6995
else
 
6996
  enable_compiler_warnings=min
 
6997
fi
 
6998
 ;;
 
6999
esac
 
7000
 
 
7001
 
6978
7002
 
6979
7003
if test "`cd $srcdir && pwd`" != "`pwd`"; then
6980
7004
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7667
7691
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7668
7692
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7669
7693
   -e 's:$: $lt_compiler_flag:'`
7670
 
   (eval echo "\"\$as_me:7670: $lt_compile\"" >&5)
 
7694
   (eval echo "\"\$as_me:7694: $lt_compile\"" >&5)
7671
7695
   (eval "$lt_compile" 2>conftest.err)
7672
7696
   ac_status=$?
7673
7697
   cat conftest.err >&5
7674
 
   echo "$as_me:7674: \$? = $ac_status" >&5
 
7698
   echo "$as_me:7698: \$? = $ac_status" >&5
7675
7699
   if (exit $ac_status) && test -s "$ac_outfile"; then
7676
7700
     # The compiler can only warn and ignore the option if not recognized
7677
7701
     # So say no if there are warnings other than the usual output.
8006
8030
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8007
8031
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8008
8032
   -e 's:$: $lt_compiler_flag:'`
8009
 
   (eval echo "\"\$as_me:8009: $lt_compile\"" >&5)
 
8033
   (eval echo "\"\$as_me:8033: $lt_compile\"" >&5)
8010
8034
   (eval "$lt_compile" 2>conftest.err)
8011
8035
   ac_status=$?
8012
8036
   cat conftest.err >&5
8013
 
   echo "$as_me:8013: \$? = $ac_status" >&5
 
8037
   echo "$as_me:8037: \$? = $ac_status" >&5
8014
8038
   if (exit $ac_status) && test -s "$ac_outfile"; then
8015
8039
     # The compiler can only warn and ignore the option if not recognized
8016
8040
     # So say no if there are warnings other than the usual output.
8111
8135
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8112
8136
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8113
8137
   -e 's:$: $lt_compiler_flag:'`
8114
 
   (eval echo "\"\$as_me:8114: $lt_compile\"" >&5)
 
8138
   (eval echo "\"\$as_me:8138: $lt_compile\"" >&5)
8115
8139
   (eval "$lt_compile" 2>out/conftest.err)
8116
8140
   ac_status=$?
8117
8141
   cat out/conftest.err >&5
8118
 
   echo "$as_me:8118: \$? = $ac_status" >&5
 
8142
   echo "$as_me:8142: \$? = $ac_status" >&5
8119
8143
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8120
8144
   then
8121
8145
     # The compiler can only warn and ignore the option if not recognized
8166
8190
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8167
8191
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8168
8192
   -e 's:$: $lt_compiler_flag:'`
8169
 
   (eval echo "\"\$as_me:8169: $lt_compile\"" >&5)
 
8193
   (eval echo "\"\$as_me:8193: $lt_compile\"" >&5)
8170
8194
   (eval "$lt_compile" 2>out/conftest.err)
8171
8195
   ac_status=$?
8172
8196
   cat out/conftest.err >&5
8173
 
   echo "$as_me:8173: \$? = $ac_status" >&5
 
8197
   echo "$as_me:8197: \$? = $ac_status" >&5
8174
8198
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8175
8199
   then
8176
8200
     # The compiler can only warn and ignore the option if not recognized
10966
10990
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10967
10991
  lt_status=$lt_dlunknown
10968
10992
  cat > conftest.$ac_ext <<_LT_EOF
10969
 
#line 10969 "configure"
 
10993
#line 10993 "configure"
10970
10994
#include "confdefs.h"
10971
10995
 
10972
10996
#if HAVE_DLFCN_H
11062
11086
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11063
11087
  lt_status=$lt_dlunknown
11064
11088
  cat > conftest.$ac_ext <<_LT_EOF
11065
 
#line 11065 "configure"
 
11089
#line 11089 "configure"
11066
11090
#include "confdefs.h"
11067
11091
 
11068
11092
#if HAVE_DLFCN_H
12995
13019
fi
12996
13020
{ $as_echo "$as_me:$LINENO: result: $kb_cv_c_prototypes" >&5
12997
13021
$as_echo "$kb_cv_c_prototypes" >&6; }
12998
 
if test "$kb_cv_c_prototypes" = yes; then
12999
 
 
13000
 
cat >>confdefs.h <<\_ACEOF
13001
 
#define HAVE_PROTOTYPES 1
13002
 
_ACEOF
13003
 
 
 
13022
if test "x$kb_cv_c_prototypes" = xno; then
 
13023
  { { $as_echo "$as_me:$LINENO: error: Sorry, your compiler does not understand prototypes." >&5
 
13024
$as_echo "$as_me: error: Sorry, your compiler does not understand prototypes." >&2;}
 
13025
   { (exit 1); exit 1; }; }
13004
13026
fi
13005
13027
{ $as_echo "$as_me:$LINENO: checking whether program_invocation_name is predefined" >&5
13006
13028
$as_echo_n "checking whether program_invocation_name is predefined... " >&6; }
13065
13087
_ACEOF
13066
13088
 
13067
13089
fi
13068
 
 
13069
 
 
13070
 
ac_ext=cpp
13071
 
ac_cpp='$CXXCPP $CPPFLAGS'
13072
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13073
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13074
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13075
 
if test -z "$CXX"; then
13076
 
  if test -n "$CCC"; then
13077
 
    CXX=$CCC
13078
 
  else
13079
 
    if test -n "$ac_tool_prefix"; then
13080
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13081
 
  do
13082
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13083
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13084
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13085
 
$as_echo_n "checking for $ac_word... " >&6; }
13086
 
if test "${ac_cv_prog_CXX+set}" = set; then
13087
 
  $as_echo_n "(cached) " >&6
13088
 
else
13089
 
  if test -n "$CXX"; then
13090
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
13091
 
else
13092
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13093
 
for as_dir in $PATH
13094
 
do
13095
 
  IFS=$as_save_IFS
13096
 
  test -z "$as_dir" && as_dir=.
13097
 
  for ac_exec_ext in '' $ac_executable_extensions; do
13098
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13099
 
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13100
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13101
 
    break 2
13102
 
  fi
13103
 
done
13104
 
done
13105
 
IFS=$as_save_IFS
13106
 
 
13107
 
fi
13108
 
fi
13109
 
CXX=$ac_cv_prog_CXX
13110
 
if test -n "$CXX"; then
13111
 
  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
13112
 
$as_echo "$CXX" >&6; }
13113
 
else
13114
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
13115
 
$as_echo "no" >&6; }
13116
 
fi
13117
 
 
13118
 
 
13119
 
    test -n "$CXX" && break
13120
 
  done
13121
 
fi
13122
 
if test -z "$CXX"; then
13123
 
  ac_ct_CXX=$CXX
13124
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13125
 
do
13126
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
13127
 
set dummy $ac_prog; ac_word=$2
13128
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13129
 
$as_echo_n "checking for $ac_word... " >&6; }
13130
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13131
 
  $as_echo_n "(cached) " >&6
13132
 
else
13133
 
  if test -n "$ac_ct_CXX"; then
13134
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13135
 
else
13136
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13137
 
for as_dir in $PATH
13138
 
do
13139
 
  IFS=$as_save_IFS
13140
 
  test -z "$as_dir" && as_dir=.
13141
 
  for ac_exec_ext in '' $ac_executable_extensions; do
13142
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13143
 
    ac_cv_prog_ac_ct_CXX="$ac_prog"
13144
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13145
 
    break 2
13146
 
  fi
13147
 
done
13148
 
done
13149
 
IFS=$as_save_IFS
13150
 
 
13151
 
fi
13152
 
fi
13153
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13154
 
if test -n "$ac_ct_CXX"; then
13155
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13156
 
$as_echo "$ac_ct_CXX" >&6; }
13157
 
else
13158
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
13159
 
$as_echo "no" >&6; }
13160
 
fi
13161
 
 
13162
 
 
13163
 
  test -n "$ac_ct_CXX" && break
13164
 
done
13165
 
 
13166
 
  if test "x$ac_ct_CXX" = x; then
13167
 
    CXX="g++"
13168
 
  else
13169
 
    case $cross_compiling:$ac_tool_warned in
13170
 
yes:)
13171
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
13172
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13173
 
ac_tool_warned=yes ;;
13174
 
esac
13175
 
    CXX=$ac_ct_CXX
13176
 
  fi
13177
 
fi
13178
 
 
13179
 
  fi
13180
 
fi
13181
 
# Provide some information about the compiler.
13182
 
$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
13183
 
set X $ac_compile
13184
 
ac_compiler=$2
13185
 
{ (ac_try="$ac_compiler --version >&5"
13186
 
case "(($ac_try" in
13187
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13188
 
  *) ac_try_echo=$ac_try;;
13189
 
esac
13190
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13191
 
$as_echo "$ac_try_echo") >&5
13192
 
  (eval "$ac_compiler --version >&5") 2>&5
13193
 
  ac_status=$?
13194
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195
 
  (exit $ac_status); }
13196
 
{ (ac_try="$ac_compiler -v >&5"
13197
 
case "(($ac_try" in
13198
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13199
 
  *) ac_try_echo=$ac_try;;
13200
 
esac
13201
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13202
 
$as_echo "$ac_try_echo") >&5
13203
 
  (eval "$ac_compiler -v >&5") 2>&5
13204
 
  ac_status=$?
13205
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206
 
  (exit $ac_status); }
13207
 
{ (ac_try="$ac_compiler -V >&5"
13208
 
case "(($ac_try" in
13209
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13210
 
  *) ac_try_echo=$ac_try;;
13211
 
esac
13212
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13213
 
$as_echo "$ac_try_echo") >&5
13214
 
  (eval "$ac_compiler -V >&5") 2>&5
13215
 
  ac_status=$?
13216
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217
 
  (exit $ac_status); }
13218
 
 
13219
 
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13220
 
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13221
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13222
 
  $as_echo_n "(cached) " >&6
13223
 
else
13224
 
  cat >conftest.$ac_ext <<_ACEOF
13225
 
/* confdefs.h.  */
13226
 
_ACEOF
13227
 
cat confdefs.h >>conftest.$ac_ext
13228
 
cat >>conftest.$ac_ext <<_ACEOF
13229
 
/* end confdefs.h.  */
13230
 
 
13231
 
int
13232
 
main ()
13233
 
{
13234
 
#ifndef __GNUC__
13235
 
       choke me
13236
 
#endif
13237
 
 
13238
 
  ;
13239
 
  return 0;
13240
 
}
13241
 
_ACEOF
13242
 
rm -f conftest.$ac_objext
13243
 
if { (ac_try="$ac_compile"
13244
 
case "(($ac_try" in
13245
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13246
 
  *) ac_try_echo=$ac_try;;
13247
 
esac
13248
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13249
 
$as_echo "$ac_try_echo") >&5
13250
 
  (eval "$ac_compile") 2>conftest.er1
13251
 
  ac_status=$?
13252
 
  grep -v '^ *+' conftest.er1 >conftest.err
13253
 
  rm -f conftest.er1
13254
 
  cat conftest.err >&5
13255
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256
 
  (exit $ac_status); } && {
13257
 
         test -z "$ac_cxx_werror_flag" ||
13258
 
         test ! -s conftest.err
13259
 
       } && test -s conftest.$ac_objext; then
13260
 
  ac_compiler_gnu=yes
13261
 
else
13262
 
  $as_echo "$as_me: failed program was:" >&5
13263
 
sed 's/^/| /' conftest.$ac_ext >&5
13264
 
 
13265
 
        ac_compiler_gnu=no
13266
 
fi
13267
 
 
13268
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13269
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13270
 
 
13271
 
fi
13272
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13273
 
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13274
 
if test $ac_compiler_gnu = yes; then
13275
 
  GXX=yes
13276
 
else
13277
 
  GXX=
13278
 
fi
13279
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
13280
 
ac_save_CXXFLAGS=$CXXFLAGS
13281
 
{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13282
 
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
13283
 
if test "${ac_cv_prog_cxx_g+set}" = set; then
13284
 
  $as_echo_n "(cached) " >&6
13285
 
else
13286
 
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13287
 
   ac_cxx_werror_flag=yes
13288
 
   ac_cv_prog_cxx_g=no
13289
 
   CXXFLAGS="-g"
13290
 
   cat >conftest.$ac_ext <<_ACEOF
13291
 
/* confdefs.h.  */
13292
 
_ACEOF
13293
 
cat confdefs.h >>conftest.$ac_ext
13294
 
cat >>conftest.$ac_ext <<_ACEOF
13295
 
/* end confdefs.h.  */
13296
 
 
13297
 
int
13298
 
main ()
13299
 
{
13300
 
 
13301
 
  ;
13302
 
  return 0;
13303
 
}
13304
 
_ACEOF
13305
 
rm -f conftest.$ac_objext
13306
 
if { (ac_try="$ac_compile"
13307
 
case "(($ac_try" in
13308
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13309
 
  *) ac_try_echo=$ac_try;;
13310
 
esac
13311
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13312
 
$as_echo "$ac_try_echo") >&5
13313
 
  (eval "$ac_compile") 2>conftest.er1
13314
 
  ac_status=$?
13315
 
  grep -v '^ *+' conftest.er1 >conftest.err
13316
 
  rm -f conftest.er1
13317
 
  cat conftest.err >&5
13318
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319
 
  (exit $ac_status); } && {
13320
 
         test -z "$ac_cxx_werror_flag" ||
13321
 
         test ! -s conftest.err
13322
 
       } && test -s conftest.$ac_objext; then
13323
 
  ac_cv_prog_cxx_g=yes
13324
 
else
13325
 
  $as_echo "$as_me: failed program was:" >&5
13326
 
sed 's/^/| /' conftest.$ac_ext >&5
13327
 
 
13328
 
        CXXFLAGS=""
13329
 
      cat >conftest.$ac_ext <<_ACEOF
13330
 
/* confdefs.h.  */
13331
 
_ACEOF
13332
 
cat confdefs.h >>conftest.$ac_ext
13333
 
cat >>conftest.$ac_ext <<_ACEOF
13334
 
/* end confdefs.h.  */
13335
 
 
13336
 
int
13337
 
main ()
13338
 
{
13339
 
 
13340
 
  ;
13341
 
  return 0;
13342
 
}
13343
 
_ACEOF
13344
 
rm -f conftest.$ac_objext
13345
 
if { (ac_try="$ac_compile"
13346
 
case "(($ac_try" in
13347
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13348
 
  *) ac_try_echo=$ac_try;;
13349
 
esac
13350
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13351
 
$as_echo "$ac_try_echo") >&5
13352
 
  (eval "$ac_compile") 2>conftest.er1
13353
 
  ac_status=$?
13354
 
  grep -v '^ *+' conftest.er1 >conftest.err
13355
 
  rm -f conftest.er1
13356
 
  cat conftest.err >&5
13357
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358
 
  (exit $ac_status); } && {
13359
 
         test -z "$ac_cxx_werror_flag" ||
13360
 
         test ! -s conftest.err
13361
 
       } && test -s conftest.$ac_objext; then
13362
 
  :
13363
 
else
13364
 
  $as_echo "$as_me: failed program was:" >&5
13365
 
sed 's/^/| /' conftest.$ac_ext >&5
13366
 
 
13367
 
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13368
 
         CXXFLAGS="-g"
13369
 
         cat >conftest.$ac_ext <<_ACEOF
13370
 
/* confdefs.h.  */
13371
 
_ACEOF
13372
 
cat confdefs.h >>conftest.$ac_ext
13373
 
cat >>conftest.$ac_ext <<_ACEOF
13374
 
/* end confdefs.h.  */
13375
 
 
13376
 
int
13377
 
main ()
13378
 
{
13379
 
 
13380
 
  ;
13381
 
  return 0;
13382
 
}
13383
 
_ACEOF
13384
 
rm -f conftest.$ac_objext
13385
 
if { (ac_try="$ac_compile"
13386
 
case "(($ac_try" in
13387
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13388
 
  *) ac_try_echo=$ac_try;;
13389
 
esac
13390
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13391
 
$as_echo "$ac_try_echo") >&5
13392
 
  (eval "$ac_compile") 2>conftest.er1
13393
 
  ac_status=$?
13394
 
  grep -v '^ *+' conftest.er1 >conftest.err
13395
 
  rm -f conftest.er1
13396
 
  cat conftest.err >&5
13397
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398
 
  (exit $ac_status); } && {
13399
 
         test -z "$ac_cxx_werror_flag" ||
13400
 
         test ! -s conftest.err
13401
 
       } && test -s conftest.$ac_objext; then
13402
 
  ac_cv_prog_cxx_g=yes
13403
 
else
13404
 
  $as_echo "$as_me: failed program was:" >&5
13405
 
sed 's/^/| /' conftest.$ac_ext >&5
13406
 
 
13407
 
 
13408
 
fi
13409
 
 
13410
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13411
 
fi
13412
 
 
13413
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13414
 
fi
13415
 
 
13416
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13417
 
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13418
 
fi
13419
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13420
 
$as_echo "$ac_cv_prog_cxx_g" >&6; }
13421
 
if test "$ac_test_CXXFLAGS" = set; then
13422
 
  CXXFLAGS=$ac_save_CXXFLAGS
13423
 
elif test $ac_cv_prog_cxx_g = yes; then
13424
 
  if test "$GXX" = yes; then
13425
 
    CXXFLAGS="-g -O2"
13426
 
  else
13427
 
    CXXFLAGS="-g"
13428
 
  fi
13429
 
else
13430
 
  if test "$GXX" = yes; then
13431
 
    CXXFLAGS="-O2"
13432
 
  else
13433
 
    CXXFLAGS=
13434
 
  fi
13435
 
fi
13436
 
ac_ext=c
13437
 
ac_cpp='$CPP $CPPFLAGS'
13438
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13439
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13440
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13441
 
 
13442
 
depcc="$CXX"  am_compiler_list=
13443
 
 
13444
 
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13445
 
$as_echo_n "checking dependency style of $depcc... " >&6; }
13446
 
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
13447
 
  $as_echo_n "(cached) " >&6
13448
 
else
13449
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13450
 
  # We make a subdir and do the tests there.  Otherwise we can end up
13451
 
  # making bogus files that we don't know about and never remove.  For
13452
 
  # instance it was reported that on HP-UX the gcc test will end up
13453
 
  # making a dummy file named `D' -- because `-MD' means `put the output
13454
 
  # in D'.
13455
 
  mkdir conftest.dir
13456
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
13457
 
  # using a relative directory.
13458
 
  cp "$am_depcomp" conftest.dir
13459
 
  cd conftest.dir
13460
 
  # We will build objects and dependencies in a subdirectory because
13461
 
  # it helps to detect inapplicable dependency modes.  For instance
13462
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
13463
 
  # side effect of compilation, but ICC will put the dependencies in
13464
 
  # the current directory while Tru64 will put them in the object
13465
 
  # directory.
13466
 
  mkdir sub
13467
 
 
13468
 
  am_cv_CXX_dependencies_compiler_type=none
13469
 
  if test "$am_compiler_list" = ""; then
13470
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13471
 
  fi
13472
 
  for depmode in $am_compiler_list; do
13473
 
    # Setup a source with many dependencies, because some compilers
13474
 
    # like to wrap large dependency lists on column 80 (with \), and
13475
 
    # we should not choose a depcomp mode which is confused by this.
13476
 
    #
13477
 
    # We need to recreate these files for each test, as the compiler may
13478
 
    # overwrite some of them when testing with obscure command lines.
13479
 
    # This happens at least with the AIX C compiler.
13480
 
    : > sub/conftest.c
13481
 
    for i in 1 2 3 4 5 6; do
13482
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
13483
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13484
 
      # Solaris 8's {/usr,}/bin/sh.
13485
 
      touch sub/conftst$i.h
13486
 
    done
13487
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13488
 
 
13489
 
    case $depmode in
13490
 
    nosideeffect)
13491
 
      # after this tag, mechanisms are not by side-effect, so they'll
13492
 
      # only be used when explicitly requested
13493
 
      if test "x$enable_dependency_tracking" = xyes; then
13494
 
        continue
13495
 
      else
13496
 
        break
13497
 
      fi
13498
 
      ;;
13499
 
    none) break ;;
13500
 
    esac
13501
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
13502
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
13503
 
    # handle `-M -o', and we need to detect this.
13504
 
    if depmode=$depmode \
13505
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13506
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13507
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13508
 
         >/dev/null 2>conftest.err &&
13509
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13510
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13511
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13512
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13513
 
      # icc doesn't choke on unknown options, it will just issue warnings
13514
 
      # or remarks (even with -Werror).  So we grep stderr for any message
13515
 
      # that says an option was ignored or not supported.
13516
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
13517
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
13518
 
      # The diagnosis changed in icc 8.0:
13519
 
      #   icc: Command line remark: option '-MP' not supported
13520
 
      if (grep 'ignoring option' conftest.err ||
13521
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13522
 
        am_cv_CXX_dependencies_compiler_type=$depmode
13523
 
        break
13524
 
      fi
13525
 
    fi
13526
 
  done
13527
 
 
13528
 
  cd ..
13529
 
  rm -rf conftest.dir
13530
 
else
13531
 
  am_cv_CXX_dependencies_compiler_type=none
13532
 
fi
13533
 
 
13534
 
fi
13535
 
{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
13536
 
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13537
 
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13538
 
 
13539
 
 if
13540
 
  test "x$enable_dependency_tracking" != xno \
13541
 
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13542
 
  am__fastdepCXX_TRUE=
13543
 
  am__fastdepCXX_FALSE='#'
13544
 
else
13545
 
  am__fastdepCXX_TRUE='#'
13546
 
  am__fastdepCXX_FALSE=
13547
 
fi
13548
 
 
13549
 
 
13550
 
 
13551
 
ac_ext=cpp
13552
 
ac_cpp='$CXXCPP $CPPFLAGS'
13553
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13554
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13555
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13556
 
if test -z "$CXX"; then
13557
 
  if test -n "$CCC"; then
13558
 
    CXX=$CCC
13559
 
  else
13560
 
    if test -n "$ac_tool_prefix"; then
13561
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13562
 
  do
13563
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13564
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13565
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13566
 
$as_echo_n "checking for $ac_word... " >&6; }
13567
 
if test "${ac_cv_prog_CXX+set}" = set; then
13568
 
  $as_echo_n "(cached) " >&6
13569
 
else
13570
 
  if test -n "$CXX"; then
13571
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
13572
 
else
13573
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13574
 
for as_dir in $PATH
13575
 
do
13576
 
  IFS=$as_save_IFS
13577
 
  test -z "$as_dir" && as_dir=.
13578
 
  for ac_exec_ext in '' $ac_executable_extensions; do
13579
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13580
 
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13581
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13582
 
    break 2
13583
 
  fi
13584
 
done
13585
 
done
13586
 
IFS=$as_save_IFS
13587
 
 
13588
 
fi
13589
 
fi
13590
 
CXX=$ac_cv_prog_CXX
13591
 
if test -n "$CXX"; then
13592
 
  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
13593
 
$as_echo "$CXX" >&6; }
13594
 
else
13595
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
13596
 
$as_echo "no" >&6; }
13597
 
fi
13598
 
 
13599
 
 
13600
 
    test -n "$CXX" && break
13601
 
  done
13602
 
fi
13603
 
if test -z "$CXX"; then
13604
 
  ac_ct_CXX=$CXX
13605
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13606
 
do
13607
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
13608
 
set dummy $ac_prog; ac_word=$2
13609
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13610
 
$as_echo_n "checking for $ac_word... " >&6; }
13611
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13612
 
  $as_echo_n "(cached) " >&6
13613
 
else
13614
 
  if test -n "$ac_ct_CXX"; then
13615
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13616
 
else
13617
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13618
 
for as_dir in $PATH
13619
 
do
13620
 
  IFS=$as_save_IFS
13621
 
  test -z "$as_dir" && as_dir=.
13622
 
  for ac_exec_ext in '' $ac_executable_extensions; do
13623
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13624
 
    ac_cv_prog_ac_ct_CXX="$ac_prog"
13625
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13626
 
    break 2
13627
 
  fi
13628
 
done
13629
 
done
13630
 
IFS=$as_save_IFS
13631
 
 
13632
 
fi
13633
 
fi
13634
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13635
 
if test -n "$ac_ct_CXX"; then
13636
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13637
 
$as_echo "$ac_ct_CXX" >&6; }
13638
 
else
13639
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
13640
 
$as_echo "no" >&6; }
13641
 
fi
13642
 
 
13643
 
 
13644
 
  test -n "$ac_ct_CXX" && break
13645
 
done
13646
 
 
13647
 
  if test "x$ac_ct_CXX" = x; then
13648
 
    CXX="g++"
13649
 
  else
13650
 
    case $cross_compiling:$ac_tool_warned in
13651
 
yes:)
13652
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
13653
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13654
 
ac_tool_warned=yes ;;
13655
 
esac
13656
 
    CXX=$ac_ct_CXX
13657
 
  fi
13658
 
fi
13659
 
 
13660
 
  fi
13661
 
fi
13662
 
# Provide some information about the compiler.
13663
 
$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
13664
 
set X $ac_compile
13665
 
ac_compiler=$2
13666
 
{ (ac_try="$ac_compiler --version >&5"
13667
 
case "(($ac_try" in
13668
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13669
 
  *) ac_try_echo=$ac_try;;
13670
 
esac
13671
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13672
 
$as_echo "$ac_try_echo") >&5
13673
 
  (eval "$ac_compiler --version >&5") 2>&5
13674
 
  ac_status=$?
13675
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676
 
  (exit $ac_status); }
13677
 
{ (ac_try="$ac_compiler -v >&5"
13678
 
case "(($ac_try" in
13679
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13680
 
  *) ac_try_echo=$ac_try;;
13681
 
esac
13682
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13683
 
$as_echo "$ac_try_echo") >&5
13684
 
  (eval "$ac_compiler -v >&5") 2>&5
13685
 
  ac_status=$?
13686
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687
 
  (exit $ac_status); }
13688
 
{ (ac_try="$ac_compiler -V >&5"
13689
 
case "(($ac_try" in
13690
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691
 
  *) ac_try_echo=$ac_try;;
13692
 
esac
13693
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13694
 
$as_echo "$ac_try_echo") >&5
13695
 
  (eval "$ac_compiler -V >&5") 2>&5
13696
 
  ac_status=$?
13697
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698
 
  (exit $ac_status); }
13699
 
 
13700
 
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13701
 
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13702
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13703
 
  $as_echo_n "(cached) " >&6
13704
 
else
13705
 
  cat >conftest.$ac_ext <<_ACEOF
13706
 
/* confdefs.h.  */
13707
 
_ACEOF
13708
 
cat confdefs.h >>conftest.$ac_ext
13709
 
cat >>conftest.$ac_ext <<_ACEOF
13710
 
/* end confdefs.h.  */
13711
 
 
13712
 
int
13713
 
main ()
13714
 
{
13715
 
#ifndef __GNUC__
13716
 
       choke me
13717
 
#endif
13718
 
 
13719
 
  ;
13720
 
  return 0;
13721
 
}
13722
 
_ACEOF
13723
 
rm -f conftest.$ac_objext
13724
 
if { (ac_try="$ac_compile"
13725
 
case "(($ac_try" in
13726
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13727
 
  *) ac_try_echo=$ac_try;;
13728
 
esac
13729
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13730
 
$as_echo "$ac_try_echo") >&5
13731
 
  (eval "$ac_compile") 2>conftest.er1
13732
 
  ac_status=$?
13733
 
  grep -v '^ *+' conftest.er1 >conftest.err
13734
 
  rm -f conftest.er1
13735
 
  cat conftest.err >&5
13736
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737
 
  (exit $ac_status); } && {
13738
 
         test -z "$ac_cxx_werror_flag" ||
13739
 
         test ! -s conftest.err
13740
 
       } && test -s conftest.$ac_objext; then
13741
 
  ac_compiler_gnu=yes
13742
 
else
13743
 
  $as_echo "$as_me: failed program was:" >&5
13744
 
sed 's/^/| /' conftest.$ac_ext >&5
13745
 
 
13746
 
        ac_compiler_gnu=no
13747
 
fi
13748
 
 
13749
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13750
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13751
 
 
13752
 
fi
13753
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13754
 
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13755
 
if test $ac_compiler_gnu = yes; then
13756
 
  GXX=yes
13757
 
else
13758
 
  GXX=
13759
 
fi
13760
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
13761
 
ac_save_CXXFLAGS=$CXXFLAGS
13762
 
{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13763
 
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
13764
 
if test "${ac_cv_prog_cxx_g+set}" = set; then
13765
 
  $as_echo_n "(cached) " >&6
13766
 
else
13767
 
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13768
 
   ac_cxx_werror_flag=yes
13769
 
   ac_cv_prog_cxx_g=no
13770
 
   CXXFLAGS="-g"
13771
 
   cat >conftest.$ac_ext <<_ACEOF
13772
 
/* confdefs.h.  */
13773
 
_ACEOF
13774
 
cat confdefs.h >>conftest.$ac_ext
13775
 
cat >>conftest.$ac_ext <<_ACEOF
13776
 
/* end confdefs.h.  */
13777
 
 
13778
 
int
13779
 
main ()
13780
 
{
13781
 
 
13782
 
  ;
13783
 
  return 0;
13784
 
}
13785
 
_ACEOF
13786
 
rm -f conftest.$ac_objext
13787
 
if { (ac_try="$ac_compile"
13788
 
case "(($ac_try" in
13789
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13790
 
  *) ac_try_echo=$ac_try;;
13791
 
esac
13792
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13793
 
$as_echo "$ac_try_echo") >&5
13794
 
  (eval "$ac_compile") 2>conftest.er1
13795
 
  ac_status=$?
13796
 
  grep -v '^ *+' conftest.er1 >conftest.err
13797
 
  rm -f conftest.er1
13798
 
  cat conftest.err >&5
13799
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800
 
  (exit $ac_status); } && {
13801
 
         test -z "$ac_cxx_werror_flag" ||
13802
 
         test ! -s conftest.err
13803
 
       } && test -s conftest.$ac_objext; then
13804
 
  ac_cv_prog_cxx_g=yes
13805
 
else
13806
 
  $as_echo "$as_me: failed program was:" >&5
13807
 
sed 's/^/| /' conftest.$ac_ext >&5
13808
 
 
13809
 
        CXXFLAGS=""
13810
 
      cat >conftest.$ac_ext <<_ACEOF
13811
 
/* confdefs.h.  */
13812
 
_ACEOF
13813
 
cat confdefs.h >>conftest.$ac_ext
13814
 
cat >>conftest.$ac_ext <<_ACEOF
13815
 
/* end confdefs.h.  */
13816
 
 
13817
 
int
13818
 
main ()
13819
 
{
13820
 
 
13821
 
  ;
13822
 
  return 0;
13823
 
}
13824
 
_ACEOF
13825
 
rm -f conftest.$ac_objext
13826
 
if { (ac_try="$ac_compile"
13827
 
case "(($ac_try" in
13828
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13829
 
  *) ac_try_echo=$ac_try;;
13830
 
esac
13831
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13832
 
$as_echo "$ac_try_echo") >&5
13833
 
  (eval "$ac_compile") 2>conftest.er1
13834
 
  ac_status=$?
13835
 
  grep -v '^ *+' conftest.er1 >conftest.err
13836
 
  rm -f conftest.er1
13837
 
  cat conftest.err >&5
13838
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839
 
  (exit $ac_status); } && {
13840
 
         test -z "$ac_cxx_werror_flag" ||
13841
 
         test ! -s conftest.err
13842
 
       } && test -s conftest.$ac_objext; then
13843
 
  :
13844
 
else
13845
 
  $as_echo "$as_me: failed program was:" >&5
13846
 
sed 's/^/| /' conftest.$ac_ext >&5
13847
 
 
13848
 
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13849
 
         CXXFLAGS="-g"
13850
 
         cat >conftest.$ac_ext <<_ACEOF
13851
 
/* confdefs.h.  */
13852
 
_ACEOF
13853
 
cat confdefs.h >>conftest.$ac_ext
13854
 
cat >>conftest.$ac_ext <<_ACEOF
13855
 
/* end confdefs.h.  */
13856
 
 
13857
 
int
13858
 
main ()
13859
 
{
13860
 
 
13861
 
  ;
13862
 
  return 0;
13863
 
}
13864
 
_ACEOF
13865
 
rm -f conftest.$ac_objext
13866
 
if { (ac_try="$ac_compile"
13867
 
case "(($ac_try" in
13868
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13869
 
  *) ac_try_echo=$ac_try;;
13870
 
esac
13871
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13872
 
$as_echo "$ac_try_echo") >&5
13873
 
  (eval "$ac_compile") 2>conftest.er1
13874
 
  ac_status=$?
13875
 
  grep -v '^ *+' conftest.er1 >conftest.err
13876
 
  rm -f conftest.er1
13877
 
  cat conftest.err >&5
13878
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879
 
  (exit $ac_status); } && {
13880
 
         test -z "$ac_cxx_werror_flag" ||
13881
 
         test ! -s conftest.err
13882
 
       } && test -s conftest.$ac_objext; then
13883
 
  ac_cv_prog_cxx_g=yes
13884
 
else
13885
 
  $as_echo "$as_me: failed program was:" >&5
13886
 
sed 's/^/| /' conftest.$ac_ext >&5
13887
 
 
13888
 
 
13889
 
fi
13890
 
 
13891
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13892
 
fi
13893
 
 
13894
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13895
 
fi
13896
 
 
13897
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13898
 
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13899
 
fi
13900
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13901
 
$as_echo "$ac_cv_prog_cxx_g" >&6; }
13902
 
if test "$ac_test_CXXFLAGS" = set; then
13903
 
  CXXFLAGS=$ac_save_CXXFLAGS
13904
 
elif test $ac_cv_prog_cxx_g = yes; then
13905
 
  if test "$GXX" = yes; then
13906
 
    CXXFLAGS="-g -O2"
13907
 
  else
13908
 
    CXXFLAGS="-g"
13909
 
  fi
13910
 
else
13911
 
  if test "$GXX" = yes; then
13912
 
    CXXFLAGS="-O2"
13913
 
  else
13914
 
    CXXFLAGS=
13915
 
  fi
13916
 
fi
13917
 
ac_ext=c
13918
 
ac_cpp='$CPP $CPPFLAGS'
13919
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13920
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13921
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13922
 
 
13923
 
depcc="$CXX"  am_compiler_list=
13924
 
 
13925
 
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13926
 
$as_echo_n "checking dependency style of $depcc... " >&6; }
13927
 
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
13928
 
  $as_echo_n "(cached) " >&6
13929
 
else
13930
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13931
 
  # We make a subdir and do the tests there.  Otherwise we can end up
13932
 
  # making bogus files that we don't know about and never remove.  For
13933
 
  # instance it was reported that on HP-UX the gcc test will end up
13934
 
  # making a dummy file named `D' -- because `-MD' means `put the output
13935
 
  # in D'.
13936
 
  mkdir conftest.dir
13937
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
13938
 
  # using a relative directory.
13939
 
  cp "$am_depcomp" conftest.dir
13940
 
  cd conftest.dir
13941
 
  # We will build objects and dependencies in a subdirectory because
13942
 
  # it helps to detect inapplicable dependency modes.  For instance
13943
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
13944
 
  # side effect of compilation, but ICC will put the dependencies in
13945
 
  # the current directory while Tru64 will put them in the object
13946
 
  # directory.
13947
 
  mkdir sub
13948
 
 
13949
 
  am_cv_CXX_dependencies_compiler_type=none
13950
 
  if test "$am_compiler_list" = ""; then
13951
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13952
 
  fi
13953
 
  for depmode in $am_compiler_list; do
13954
 
    # Setup a source with many dependencies, because some compilers
13955
 
    # like to wrap large dependency lists on column 80 (with \), and
13956
 
    # we should not choose a depcomp mode which is confused by this.
13957
 
    #
13958
 
    # We need to recreate these files for each test, as the compiler may
13959
 
    # overwrite some of them when testing with obscure command lines.
13960
 
    # This happens at least with the AIX C compiler.
13961
 
    : > sub/conftest.c
13962
 
    for i in 1 2 3 4 5 6; do
13963
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
13964
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13965
 
      # Solaris 8's {/usr,}/bin/sh.
13966
 
      touch sub/conftst$i.h
13967
 
    done
13968
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13969
 
 
13970
 
    case $depmode in
13971
 
    nosideeffect)
13972
 
      # after this tag, mechanisms are not by side-effect, so they'll
13973
 
      # only be used when explicitly requested
13974
 
      if test "x$enable_dependency_tracking" = xyes; then
13975
 
        continue
13976
 
      else
13977
 
        break
13978
 
      fi
13979
 
      ;;
13980
 
    none) break ;;
13981
 
    esac
13982
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
13983
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
13984
 
    # handle `-M -o', and we need to detect this.
13985
 
    if depmode=$depmode \
13986
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13987
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13988
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13989
 
         >/dev/null 2>conftest.err &&
13990
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13991
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13992
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13993
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13994
 
      # icc doesn't choke on unknown options, it will just issue warnings
13995
 
      # or remarks (even with -Werror).  So we grep stderr for any message
13996
 
      # that says an option was ignored or not supported.
13997
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
13998
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
13999
 
      # The diagnosis changed in icc 8.0:
14000
 
      #   icc: Command line remark: option '-MP' not supported
14001
 
      if (grep 'ignoring option' conftest.err ||
14002
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14003
 
        am_cv_CXX_dependencies_compiler_type=$depmode
14004
 
        break
14005
 
      fi
14006
 
    fi
14007
 
  done
14008
 
 
14009
 
  cd ..
14010
 
  rm -rf conftest.dir
14011
 
else
14012
 
  am_cv_CXX_dependencies_compiler_type=none
14013
 
fi
14014
 
 
14015
 
fi
14016
 
{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
14017
 
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
14018
 
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14019
 
 
14020
 
 if
14021
 
  test "x$enable_dependency_tracking" != xno \
14022
 
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14023
 
  am__fastdepCXX_TRUE=
14024
 
  am__fastdepCXX_FALSE='#'
14025
 
else
14026
 
  am__fastdepCXX_TRUE='#'
14027
 
  am__fastdepCXX_FALSE=
14028
 
fi
 
13090
{ $as_echo "$as_me:$LINENO: checking what warning flags to pass to the C compiler" >&5
 
13091
$as_echo_n "checking what warning flags to pass to the C compiler... " >&6; }
 
13092
if test "${kpse_cv_warning_cflags+set}" = set; then
 
13093
  $as_echo_n "(cached) " >&6
 
13094
else
 
13095
  if test "x$enable_compiler_warnings" = xno; then
 
13096
  kpse_cv_warning_cflags=
 
13097
elif test "x$GCC" = xyes; then
 
13098
  kpse_cv_warning_cflags="-Wall -Wunused"
 
13099
  case `$CC -dumpversion` in
 
13100
  3.4.* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;;
 
13101
esac
 
13102
 
 
13103
  case `$CC -dumpversion` in
 
13104
  3.[234].* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;;
 
13105
esac
 
13106
 
 
13107
  if test "x$enable_compiler_warnings" != xmin; then
 
13108
    kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
 
13109
    if test "x$enable_compiler_warnings" != xyes; then
 
13110
      kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wimplicit -Wparentheses -Wreturn-type"
 
13111
      kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wswitch -Wtrigraphs -Wshadow -Wpointer-arith"
 
13112
      kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
 
13113
      case `$CC -dumpversion` in
 
13114
  3.4.* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;;
 
13115
esac
 
13116
 
 
13117
    fi
 
13118
  fi
 
13119
else
 
13120
  : # FIXME: warning flags for non-gcc compilers
 
13121
fi
 
13122
fi
 
13123
{ $as_echo "$as_me:$LINENO: result: $kpse_cv_warning_cflags" >&5
 
13124
$as_echo "$kpse_cv_warning_cflags" >&6; }
 
13125
WARNING_CFLAGS=$kpse_cv_warning_cflags
 
13126
 
 
13127
 
 
13128
 
 
13129
 
 
13130
 
 
13131
 
 
13132
ac_ext=cpp
 
13133
ac_cpp='$CXXCPP $CPPFLAGS'
 
13134
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13135
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13136
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
13137
if test -z "$CXX"; then
 
13138
  if test -n "$CCC"; then
 
13139
    CXX=$CCC
 
13140
  else
 
13141
    if test -n "$ac_tool_prefix"; then
 
13142
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
13143
  do
 
13144
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
13145
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
13146
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
13147
$as_echo_n "checking for $ac_word... " >&6; }
 
13148
if test "${ac_cv_prog_CXX+set}" = set; then
 
13149
  $as_echo_n "(cached) " >&6
 
13150
else
 
13151
  if test -n "$CXX"; then
 
13152
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
13153
else
 
13154
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13155
for as_dir in $PATH
 
13156
do
 
13157
  IFS=$as_save_IFS
 
13158
  test -z "$as_dir" && as_dir=.
 
13159
  for ac_exec_ext in '' $ac_executable_extensions; do
 
13160
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
13161
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
13162
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13163
    break 2
 
13164
  fi
 
13165
done
 
13166
done
 
13167
IFS=$as_save_IFS
 
13168
 
 
13169
fi
 
13170
fi
 
13171
CXX=$ac_cv_prog_CXX
 
13172
if test -n "$CXX"; then
 
13173
  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
 
13174
$as_echo "$CXX" >&6; }
 
13175
else
 
13176
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
13177
$as_echo "no" >&6; }
 
13178
fi
 
13179
 
 
13180
 
 
13181
    test -n "$CXX" && break
 
13182
  done
 
13183
fi
 
13184
if test -z "$CXX"; then
 
13185
  ac_ct_CXX=$CXX
 
13186
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
13187
do
 
13188
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
13189
set dummy $ac_prog; ac_word=$2
 
13190
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
13191
$as_echo_n "checking for $ac_word... " >&6; }
 
13192
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
13193
  $as_echo_n "(cached) " >&6
 
13194
else
 
13195
  if test -n "$ac_ct_CXX"; then
 
13196
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
13197
else
 
13198
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13199
for as_dir in $PATH
 
13200
do
 
13201
  IFS=$as_save_IFS
 
13202
  test -z "$as_dir" && as_dir=.
 
13203
  for ac_exec_ext in '' $ac_executable_extensions; do
 
13204
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
13205
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
13206
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13207
    break 2
 
13208
  fi
 
13209
done
 
13210
done
 
13211
IFS=$as_save_IFS
 
13212
 
 
13213
fi
 
13214
fi
 
13215
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
13216
if test -n "$ac_ct_CXX"; then
 
13217
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
13218
$as_echo "$ac_ct_CXX" >&6; }
 
13219
else
 
13220
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
13221
$as_echo "no" >&6; }
 
13222
fi
 
13223
 
 
13224
 
 
13225
  test -n "$ac_ct_CXX" && break
 
13226
done
 
13227
 
 
13228
  if test "x$ac_ct_CXX" = x; then
 
13229
    CXX="g++"
 
13230
  else
 
13231
    case $cross_compiling:$ac_tool_warned in
 
13232
yes:)
 
13233
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
13234
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
13235
ac_tool_warned=yes ;;
 
13236
esac
 
13237
    CXX=$ac_ct_CXX
 
13238
  fi
 
13239
fi
 
13240
 
 
13241
  fi
 
13242
fi
 
13243
# Provide some information about the compiler.
 
13244
$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
13245
set X $ac_compile
 
13246
ac_compiler=$2
 
13247
{ (ac_try="$ac_compiler --version >&5"
 
13248
case "(($ac_try" in
 
13249
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13250
  *) ac_try_echo=$ac_try;;
 
13251
esac
 
13252
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13253
$as_echo "$ac_try_echo") >&5
 
13254
  (eval "$ac_compiler --version >&5") 2>&5
 
13255
  ac_status=$?
 
13256
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13257
  (exit $ac_status); }
 
13258
{ (ac_try="$ac_compiler -v >&5"
 
13259
case "(($ac_try" in
 
13260
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13261
  *) ac_try_echo=$ac_try;;
 
13262
esac
 
13263
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13264
$as_echo "$ac_try_echo") >&5
 
13265
  (eval "$ac_compiler -v >&5") 2>&5
 
13266
  ac_status=$?
 
13267
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13268
  (exit $ac_status); }
 
13269
{ (ac_try="$ac_compiler -V >&5"
 
13270
case "(($ac_try" in
 
13271
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13272
  *) ac_try_echo=$ac_try;;
 
13273
esac
 
13274
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13275
$as_echo "$ac_try_echo") >&5
 
13276
  (eval "$ac_compiler -V >&5") 2>&5
 
13277
  ac_status=$?
 
13278
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13279
  (exit $ac_status); }
 
13280
 
 
13281
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
13282
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
13283
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
13284
  $as_echo_n "(cached) " >&6
 
13285
else
 
13286
  cat >conftest.$ac_ext <<_ACEOF
 
13287
/* confdefs.h.  */
 
13288
_ACEOF
 
13289
cat confdefs.h >>conftest.$ac_ext
 
13290
cat >>conftest.$ac_ext <<_ACEOF
 
13291
/* end confdefs.h.  */
 
13292
 
 
13293
int
 
13294
main ()
 
13295
{
 
13296
#ifndef __GNUC__
 
13297
       choke me
 
13298
#endif
 
13299
 
 
13300
  ;
 
13301
  return 0;
 
13302
}
 
13303
_ACEOF
 
13304
rm -f conftest.$ac_objext
 
13305
if { (ac_try="$ac_compile"
 
13306
case "(($ac_try" in
 
13307
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13308
  *) ac_try_echo=$ac_try;;
 
13309
esac
 
13310
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13311
$as_echo "$ac_try_echo") >&5
 
13312
  (eval "$ac_compile") 2>conftest.er1
 
13313
  ac_status=$?
 
13314
  grep -v '^ *+' conftest.er1 >conftest.err
 
13315
  rm -f conftest.er1
 
13316
  cat conftest.err >&5
 
13317
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13318
  (exit $ac_status); } && {
 
13319
         test -z "$ac_cxx_werror_flag" ||
 
13320
         test ! -s conftest.err
 
13321
       } && test -s conftest.$ac_objext; then
 
13322
  ac_compiler_gnu=yes
 
13323
else
 
13324
  $as_echo "$as_me: failed program was:" >&5
 
13325
sed 's/^/| /' conftest.$ac_ext >&5
 
13326
 
 
13327
        ac_compiler_gnu=no
 
13328
fi
 
13329
 
 
13330
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13331
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
13332
 
 
13333
fi
 
13334
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
13335
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
13336
if test $ac_compiler_gnu = yes; then
 
13337
  GXX=yes
 
13338
else
 
13339
  GXX=
 
13340
fi
 
13341
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
13342
ac_save_CXXFLAGS=$CXXFLAGS
 
13343
{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
13344
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
13345
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
13346
  $as_echo_n "(cached) " >&6
 
13347
else
 
13348
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
13349
   ac_cxx_werror_flag=yes
 
13350
   ac_cv_prog_cxx_g=no
 
13351
   CXXFLAGS="-g"
 
13352
   cat >conftest.$ac_ext <<_ACEOF
 
13353
/* confdefs.h.  */
 
13354
_ACEOF
 
13355
cat confdefs.h >>conftest.$ac_ext
 
13356
cat >>conftest.$ac_ext <<_ACEOF
 
13357
/* end confdefs.h.  */
 
13358
 
 
13359
int
 
13360
main ()
 
13361
{
 
13362
 
 
13363
  ;
 
13364
  return 0;
 
13365
}
 
13366
_ACEOF
 
13367
rm -f conftest.$ac_objext
 
13368
if { (ac_try="$ac_compile"
 
13369
case "(($ac_try" in
 
13370
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13371
  *) ac_try_echo=$ac_try;;
 
13372
esac
 
13373
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13374
$as_echo "$ac_try_echo") >&5
 
13375
  (eval "$ac_compile") 2>conftest.er1
 
13376
  ac_status=$?
 
13377
  grep -v '^ *+' conftest.er1 >conftest.err
 
13378
  rm -f conftest.er1
 
13379
  cat conftest.err >&5
 
13380
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13381
  (exit $ac_status); } && {
 
13382
         test -z "$ac_cxx_werror_flag" ||
 
13383
         test ! -s conftest.err
 
13384
       } && test -s conftest.$ac_objext; then
 
13385
  ac_cv_prog_cxx_g=yes
 
13386
else
 
13387
  $as_echo "$as_me: failed program was:" >&5
 
13388
sed 's/^/| /' conftest.$ac_ext >&5
 
13389
 
 
13390
        CXXFLAGS=""
 
13391
      cat >conftest.$ac_ext <<_ACEOF
 
13392
/* confdefs.h.  */
 
13393
_ACEOF
 
13394
cat confdefs.h >>conftest.$ac_ext
 
13395
cat >>conftest.$ac_ext <<_ACEOF
 
13396
/* end confdefs.h.  */
 
13397
 
 
13398
int
 
13399
main ()
 
13400
{
 
13401
 
 
13402
  ;
 
13403
  return 0;
 
13404
}
 
13405
_ACEOF
 
13406
rm -f conftest.$ac_objext
 
13407
if { (ac_try="$ac_compile"
 
13408
case "(($ac_try" in
 
13409
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13410
  *) ac_try_echo=$ac_try;;
 
13411
esac
 
13412
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13413
$as_echo "$ac_try_echo") >&5
 
13414
  (eval "$ac_compile") 2>conftest.er1
 
13415
  ac_status=$?
 
13416
  grep -v '^ *+' conftest.er1 >conftest.err
 
13417
  rm -f conftest.er1
 
13418
  cat conftest.err >&5
 
13419
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13420
  (exit $ac_status); } && {
 
13421
         test -z "$ac_cxx_werror_flag" ||
 
13422
         test ! -s conftest.err
 
13423
       } && test -s conftest.$ac_objext; then
 
13424
  :
 
13425
else
 
13426
  $as_echo "$as_me: failed program was:" >&5
 
13427
sed 's/^/| /' conftest.$ac_ext >&5
 
13428
 
 
13429
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
13430
         CXXFLAGS="-g"
 
13431
         cat >conftest.$ac_ext <<_ACEOF
 
13432
/* confdefs.h.  */
 
13433
_ACEOF
 
13434
cat confdefs.h >>conftest.$ac_ext
 
13435
cat >>conftest.$ac_ext <<_ACEOF
 
13436
/* end confdefs.h.  */
 
13437
 
 
13438
int
 
13439
main ()
 
13440
{
 
13441
 
 
13442
  ;
 
13443
  return 0;
 
13444
}
 
13445
_ACEOF
 
13446
rm -f conftest.$ac_objext
 
13447
if { (ac_try="$ac_compile"
 
13448
case "(($ac_try" in
 
13449
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13450
  *) ac_try_echo=$ac_try;;
 
13451
esac
 
13452
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13453
$as_echo "$ac_try_echo") >&5
 
13454
  (eval "$ac_compile") 2>conftest.er1
 
13455
  ac_status=$?
 
13456
  grep -v '^ *+' conftest.er1 >conftest.err
 
13457
  rm -f conftest.er1
 
13458
  cat conftest.err >&5
 
13459
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13460
  (exit $ac_status); } && {
 
13461
         test -z "$ac_cxx_werror_flag" ||
 
13462
         test ! -s conftest.err
 
13463
       } && test -s conftest.$ac_objext; then
 
13464
  ac_cv_prog_cxx_g=yes
 
13465
else
 
13466
  $as_echo "$as_me: failed program was:" >&5
 
13467
sed 's/^/| /' conftest.$ac_ext >&5
 
13468
 
 
13469
 
 
13470
fi
 
13471
 
 
13472
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13473
fi
 
13474
 
 
13475
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13476
fi
 
13477
 
 
13478
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13479
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
13480
fi
 
13481
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
13482
$as_echo "$ac_cv_prog_cxx_g" >&6; }
 
13483
if test "$ac_test_CXXFLAGS" = set; then
 
13484
  CXXFLAGS=$ac_save_CXXFLAGS
 
13485
elif test $ac_cv_prog_cxx_g = yes; then
 
13486
  if test "$GXX" = yes; then
 
13487
    CXXFLAGS="-g -O2"
 
13488
  else
 
13489
    CXXFLAGS="-g"
 
13490
  fi
 
13491
else
 
13492
  if test "$GXX" = yes; then
 
13493
    CXXFLAGS="-O2"
 
13494
  else
 
13495
    CXXFLAGS=
 
13496
  fi
 
13497
fi
 
13498
ac_ext=c
 
13499
ac_cpp='$CPP $CPPFLAGS'
 
13500
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13501
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13502
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13503
 
 
13504
depcc="$CXX"  am_compiler_list=
 
13505
 
 
13506
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
13507
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
13508
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
13509
  $as_echo_n "(cached) " >&6
 
13510
else
 
13511
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
13512
  # We make a subdir and do the tests there.  Otherwise we can end up
 
13513
  # making bogus files that we don't know about and never remove.  For
 
13514
  # instance it was reported that on HP-UX the gcc test will end up
 
13515
  # making a dummy file named `D' -- because `-MD' means `put the output
 
13516
  # in D'.
 
13517
  mkdir conftest.dir
 
13518
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
13519
  # using a relative directory.
 
13520
  cp "$am_depcomp" conftest.dir
 
13521
  cd conftest.dir
 
13522
  # We will build objects and dependencies in a subdirectory because
 
13523
  # it helps to detect inapplicable dependency modes.  For instance
 
13524
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
13525
  # side effect of compilation, but ICC will put the dependencies in
 
13526
  # the current directory while Tru64 will put them in the object
 
13527
  # directory.
 
13528
  mkdir sub
 
13529
 
 
13530
  am_cv_CXX_dependencies_compiler_type=none
 
13531
  if test "$am_compiler_list" = ""; then
 
13532
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
13533
  fi
 
13534
  for depmode in $am_compiler_list; do
 
13535
    # Setup a source with many dependencies, because some compilers
 
13536
    # like to wrap large dependency lists on column 80 (with \), and
 
13537
    # we should not choose a depcomp mode which is confused by this.
 
13538
    #
 
13539
    # We need to recreate these files for each test, as the compiler may
 
13540
    # overwrite some of them when testing with obscure command lines.
 
13541
    # This happens at least with the AIX C compiler.
 
13542
    : > sub/conftest.c
 
13543
    for i in 1 2 3 4 5 6; do
 
13544
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
13545
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
13546
      # Solaris 8's {/usr,}/bin/sh.
 
13547
      touch sub/conftst$i.h
 
13548
    done
 
13549
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
13550
 
 
13551
    case $depmode in
 
13552
    nosideeffect)
 
13553
      # after this tag, mechanisms are not by side-effect, so they'll
 
13554
      # only be used when explicitly requested
 
13555
      if test "x$enable_dependency_tracking" = xyes; then
 
13556
        continue
 
13557
      else
 
13558
        break
 
13559
      fi
 
13560
      ;;
 
13561
    none) break ;;
 
13562
    esac
 
13563
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
13564
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
13565
    # handle `-M -o', and we need to detect this.
 
13566
    if depmode=$depmode \
 
13567
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
13568
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
13569
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
13570
         >/dev/null 2>conftest.err &&
 
13571
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
13572
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
13573
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
13574
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
13575
      # icc doesn't choke on unknown options, it will just issue warnings
 
13576
      # or remarks (even with -Werror).  So we grep stderr for any message
 
13577
      # that says an option was ignored or not supported.
 
13578
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
13579
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
13580
      # The diagnosis changed in icc 8.0:
 
13581
      #   icc: Command line remark: option '-MP' not supported
 
13582
      if (grep 'ignoring option' conftest.err ||
 
13583
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
13584
        am_cv_CXX_dependencies_compiler_type=$depmode
 
13585
        break
 
13586
      fi
 
13587
    fi
 
13588
  done
 
13589
 
 
13590
  cd ..
 
13591
  rm -rf conftest.dir
 
13592
else
 
13593
  am_cv_CXX_dependencies_compiler_type=none
 
13594
fi
 
13595
 
 
13596
fi
 
13597
{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
13598
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
 
13599
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
13600
 
 
13601
 if
 
13602
  test "x$enable_dependency_tracking" != xno \
 
13603
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
13604
  am__fastdepCXX_TRUE=
 
13605
  am__fastdepCXX_FALSE='#'
 
13606
else
 
13607
  am__fastdepCXX_TRUE='#'
 
13608
  am__fastdepCXX_FALSE=
 
13609
fi
 
13610
 
 
13611
 
 
13612
 
 
13613
ac_ext=cpp
 
13614
ac_cpp='$CXXCPP $CPPFLAGS'
 
13615
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13616
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13617
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
13618
if test -z "$CXX"; then
 
13619
  if test -n "$CCC"; then
 
13620
    CXX=$CCC
 
13621
  else
 
13622
    if test -n "$ac_tool_prefix"; then
 
13623
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
13624
  do
 
13625
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
13626
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
13627
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
13628
$as_echo_n "checking for $ac_word... " >&6; }
 
13629
if test "${ac_cv_prog_CXX+set}" = set; then
 
13630
  $as_echo_n "(cached) " >&6
 
13631
else
 
13632
  if test -n "$CXX"; then
 
13633
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
13634
else
 
13635
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13636
for as_dir in $PATH
 
13637
do
 
13638
  IFS=$as_save_IFS
 
13639
  test -z "$as_dir" && as_dir=.
 
13640
  for ac_exec_ext in '' $ac_executable_extensions; do
 
13641
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
13642
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
13643
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13644
    break 2
 
13645
  fi
 
13646
done
 
13647
done
 
13648
IFS=$as_save_IFS
 
13649
 
 
13650
fi
 
13651
fi
 
13652
CXX=$ac_cv_prog_CXX
 
13653
if test -n "$CXX"; then
 
13654
  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
 
13655
$as_echo "$CXX" >&6; }
 
13656
else
 
13657
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
13658
$as_echo "no" >&6; }
 
13659
fi
 
13660
 
 
13661
 
 
13662
    test -n "$CXX" && break
 
13663
  done
 
13664
fi
 
13665
if test -z "$CXX"; then
 
13666
  ac_ct_CXX=$CXX
 
13667
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
13668
do
 
13669
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
13670
set dummy $ac_prog; ac_word=$2
 
13671
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
13672
$as_echo_n "checking for $ac_word... " >&6; }
 
13673
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
13674
  $as_echo_n "(cached) " >&6
 
13675
else
 
13676
  if test -n "$ac_ct_CXX"; then
 
13677
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
13678
else
 
13679
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13680
for as_dir in $PATH
 
13681
do
 
13682
  IFS=$as_save_IFS
 
13683
  test -z "$as_dir" && as_dir=.
 
13684
  for ac_exec_ext in '' $ac_executable_extensions; do
 
13685
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
13686
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
13687
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
13688
    break 2
 
13689
  fi
 
13690
done
 
13691
done
 
13692
IFS=$as_save_IFS
 
13693
 
 
13694
fi
 
13695
fi
 
13696
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
13697
if test -n "$ac_ct_CXX"; then
 
13698
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
13699
$as_echo "$ac_ct_CXX" >&6; }
 
13700
else
 
13701
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
13702
$as_echo "no" >&6; }
 
13703
fi
 
13704
 
 
13705
 
 
13706
  test -n "$ac_ct_CXX" && break
 
13707
done
 
13708
 
 
13709
  if test "x$ac_ct_CXX" = x; then
 
13710
    CXX="g++"
 
13711
  else
 
13712
    case $cross_compiling:$ac_tool_warned in
 
13713
yes:)
 
13714
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
13715
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
13716
ac_tool_warned=yes ;;
 
13717
esac
 
13718
    CXX=$ac_ct_CXX
 
13719
  fi
 
13720
fi
 
13721
 
 
13722
  fi
 
13723
fi
 
13724
# Provide some information about the compiler.
 
13725
$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
13726
set X $ac_compile
 
13727
ac_compiler=$2
 
13728
{ (ac_try="$ac_compiler --version >&5"
 
13729
case "(($ac_try" in
 
13730
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13731
  *) ac_try_echo=$ac_try;;
 
13732
esac
 
13733
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13734
$as_echo "$ac_try_echo") >&5
 
13735
  (eval "$ac_compiler --version >&5") 2>&5
 
13736
  ac_status=$?
 
13737
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13738
  (exit $ac_status); }
 
13739
{ (ac_try="$ac_compiler -v >&5"
 
13740
case "(($ac_try" in
 
13741
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13742
  *) ac_try_echo=$ac_try;;
 
13743
esac
 
13744
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13745
$as_echo "$ac_try_echo") >&5
 
13746
  (eval "$ac_compiler -v >&5") 2>&5
 
13747
  ac_status=$?
 
13748
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13749
  (exit $ac_status); }
 
13750
{ (ac_try="$ac_compiler -V >&5"
 
13751
case "(($ac_try" in
 
13752
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13753
  *) ac_try_echo=$ac_try;;
 
13754
esac
 
13755
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13756
$as_echo "$ac_try_echo") >&5
 
13757
  (eval "$ac_compiler -V >&5") 2>&5
 
13758
  ac_status=$?
 
13759
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13760
  (exit $ac_status); }
 
13761
 
 
13762
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
13763
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
13764
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
13765
  $as_echo_n "(cached) " >&6
 
13766
else
 
13767
  cat >conftest.$ac_ext <<_ACEOF
 
13768
/* confdefs.h.  */
 
13769
_ACEOF
 
13770
cat confdefs.h >>conftest.$ac_ext
 
13771
cat >>conftest.$ac_ext <<_ACEOF
 
13772
/* end confdefs.h.  */
 
13773
 
 
13774
int
 
13775
main ()
 
13776
{
 
13777
#ifndef __GNUC__
 
13778
       choke me
 
13779
#endif
 
13780
 
 
13781
  ;
 
13782
  return 0;
 
13783
}
 
13784
_ACEOF
 
13785
rm -f conftest.$ac_objext
 
13786
if { (ac_try="$ac_compile"
 
13787
case "(($ac_try" in
 
13788
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13789
  *) ac_try_echo=$ac_try;;
 
13790
esac
 
13791
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13792
$as_echo "$ac_try_echo") >&5
 
13793
  (eval "$ac_compile") 2>conftest.er1
 
13794
  ac_status=$?
 
13795
  grep -v '^ *+' conftest.er1 >conftest.err
 
13796
  rm -f conftest.er1
 
13797
  cat conftest.err >&5
 
13798
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13799
  (exit $ac_status); } && {
 
13800
         test -z "$ac_cxx_werror_flag" ||
 
13801
         test ! -s conftest.err
 
13802
       } && test -s conftest.$ac_objext; then
 
13803
  ac_compiler_gnu=yes
 
13804
else
 
13805
  $as_echo "$as_me: failed program was:" >&5
 
13806
sed 's/^/| /' conftest.$ac_ext >&5
 
13807
 
 
13808
        ac_compiler_gnu=no
 
13809
fi
 
13810
 
 
13811
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13812
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
13813
 
 
13814
fi
 
13815
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
13816
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
13817
if test $ac_compiler_gnu = yes; then
 
13818
  GXX=yes
 
13819
else
 
13820
  GXX=
 
13821
fi
 
13822
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
13823
ac_save_CXXFLAGS=$CXXFLAGS
 
13824
{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
13825
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
13826
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
13827
  $as_echo_n "(cached) " >&6
 
13828
else
 
13829
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
13830
   ac_cxx_werror_flag=yes
 
13831
   ac_cv_prog_cxx_g=no
 
13832
   CXXFLAGS="-g"
 
13833
   cat >conftest.$ac_ext <<_ACEOF
 
13834
/* confdefs.h.  */
 
13835
_ACEOF
 
13836
cat confdefs.h >>conftest.$ac_ext
 
13837
cat >>conftest.$ac_ext <<_ACEOF
 
13838
/* end confdefs.h.  */
 
13839
 
 
13840
int
 
13841
main ()
 
13842
{
 
13843
 
 
13844
  ;
 
13845
  return 0;
 
13846
}
 
13847
_ACEOF
 
13848
rm -f conftest.$ac_objext
 
13849
if { (ac_try="$ac_compile"
 
13850
case "(($ac_try" in
 
13851
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13852
  *) ac_try_echo=$ac_try;;
 
13853
esac
 
13854
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13855
$as_echo "$ac_try_echo") >&5
 
13856
  (eval "$ac_compile") 2>conftest.er1
 
13857
  ac_status=$?
 
13858
  grep -v '^ *+' conftest.er1 >conftest.err
 
13859
  rm -f conftest.er1
 
13860
  cat conftest.err >&5
 
13861
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13862
  (exit $ac_status); } && {
 
13863
         test -z "$ac_cxx_werror_flag" ||
 
13864
         test ! -s conftest.err
 
13865
       } && test -s conftest.$ac_objext; then
 
13866
  ac_cv_prog_cxx_g=yes
 
13867
else
 
13868
  $as_echo "$as_me: failed program was:" >&5
 
13869
sed 's/^/| /' conftest.$ac_ext >&5
 
13870
 
 
13871
        CXXFLAGS=""
 
13872
      cat >conftest.$ac_ext <<_ACEOF
 
13873
/* confdefs.h.  */
 
13874
_ACEOF
 
13875
cat confdefs.h >>conftest.$ac_ext
 
13876
cat >>conftest.$ac_ext <<_ACEOF
 
13877
/* end confdefs.h.  */
 
13878
 
 
13879
int
 
13880
main ()
 
13881
{
 
13882
 
 
13883
  ;
 
13884
  return 0;
 
13885
}
 
13886
_ACEOF
 
13887
rm -f conftest.$ac_objext
 
13888
if { (ac_try="$ac_compile"
 
13889
case "(($ac_try" in
 
13890
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13891
  *) ac_try_echo=$ac_try;;
 
13892
esac
 
13893
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13894
$as_echo "$ac_try_echo") >&5
 
13895
  (eval "$ac_compile") 2>conftest.er1
 
13896
  ac_status=$?
 
13897
  grep -v '^ *+' conftest.er1 >conftest.err
 
13898
  rm -f conftest.er1
 
13899
  cat conftest.err >&5
 
13900
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13901
  (exit $ac_status); } && {
 
13902
         test -z "$ac_cxx_werror_flag" ||
 
13903
         test ! -s conftest.err
 
13904
       } && test -s conftest.$ac_objext; then
 
13905
  :
 
13906
else
 
13907
  $as_echo "$as_me: failed program was:" >&5
 
13908
sed 's/^/| /' conftest.$ac_ext >&5
 
13909
 
 
13910
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
13911
         CXXFLAGS="-g"
 
13912
         cat >conftest.$ac_ext <<_ACEOF
 
13913
/* confdefs.h.  */
 
13914
_ACEOF
 
13915
cat confdefs.h >>conftest.$ac_ext
 
13916
cat >>conftest.$ac_ext <<_ACEOF
 
13917
/* end confdefs.h.  */
 
13918
 
 
13919
int
 
13920
main ()
 
13921
{
 
13922
 
 
13923
  ;
 
13924
  return 0;
 
13925
}
 
13926
_ACEOF
 
13927
rm -f conftest.$ac_objext
 
13928
if { (ac_try="$ac_compile"
 
13929
case "(($ac_try" in
 
13930
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13931
  *) ac_try_echo=$ac_try;;
 
13932
esac
 
13933
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
13934
$as_echo "$ac_try_echo") >&5
 
13935
  (eval "$ac_compile") 2>conftest.er1
 
13936
  ac_status=$?
 
13937
  grep -v '^ *+' conftest.er1 >conftest.err
 
13938
  rm -f conftest.er1
 
13939
  cat conftest.err >&5
 
13940
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13941
  (exit $ac_status); } && {
 
13942
         test -z "$ac_cxx_werror_flag" ||
 
13943
         test ! -s conftest.err
 
13944
       } && test -s conftest.$ac_objext; then
 
13945
  ac_cv_prog_cxx_g=yes
 
13946
else
 
13947
  $as_echo "$as_me: failed program was:" >&5
 
13948
sed 's/^/| /' conftest.$ac_ext >&5
 
13949
 
 
13950
 
 
13951
fi
 
13952
 
 
13953
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13954
fi
 
13955
 
 
13956
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13957
fi
 
13958
 
 
13959
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13960
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
13961
fi
 
13962
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
13963
$as_echo "$ac_cv_prog_cxx_g" >&6; }
 
13964
if test "$ac_test_CXXFLAGS" = set; then
 
13965
  CXXFLAGS=$ac_save_CXXFLAGS
 
13966
elif test $ac_cv_prog_cxx_g = yes; then
 
13967
  if test "$GXX" = yes; then
 
13968
    CXXFLAGS="-g -O2"
 
13969
  else
 
13970
    CXXFLAGS="-g"
 
13971
  fi
 
13972
else
 
13973
  if test "$GXX" = yes; then
 
13974
    CXXFLAGS="-O2"
 
13975
  else
 
13976
    CXXFLAGS=
 
13977
  fi
 
13978
fi
 
13979
ac_ext=c
 
13980
ac_cpp='$CPP $CPPFLAGS'
 
13981
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13982
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13983
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13984
 
 
13985
depcc="$CXX"  am_compiler_list=
 
13986
 
 
13987
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
13988
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
13989
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
13990
  $as_echo_n "(cached) " >&6
 
13991
else
 
13992
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
13993
  # We make a subdir and do the tests there.  Otherwise we can end up
 
13994
  # making bogus files that we don't know about and never remove.  For
 
13995
  # instance it was reported that on HP-UX the gcc test will end up
 
13996
  # making a dummy file named `D' -- because `-MD' means `put the output
 
13997
  # in D'.
 
13998
  mkdir conftest.dir
 
13999
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
14000
  # using a relative directory.
 
14001
  cp "$am_depcomp" conftest.dir
 
14002
  cd conftest.dir
 
14003
  # We will build objects and dependencies in a subdirectory because
 
14004
  # it helps to detect inapplicable dependency modes.  For instance
 
14005
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
14006
  # side effect of compilation, but ICC will put the dependencies in
 
14007
  # the current directory while Tru64 will put them in the object
 
14008
  # directory.
 
14009
  mkdir sub
 
14010
 
 
14011
  am_cv_CXX_dependencies_compiler_type=none
 
14012
  if test "$am_compiler_list" = ""; then
 
14013
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
14014
  fi
 
14015
  for depmode in $am_compiler_list; do
 
14016
    # Setup a source with many dependencies, because some compilers
 
14017
    # like to wrap large dependency lists on column 80 (with \), and
 
14018
    # we should not choose a depcomp mode which is confused by this.
 
14019
    #
 
14020
    # We need to recreate these files for each test, as the compiler may
 
14021
    # overwrite some of them when testing with obscure command lines.
 
14022
    # This happens at least with the AIX C compiler.
 
14023
    : > sub/conftest.c
 
14024
    for i in 1 2 3 4 5 6; do
 
14025
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
14026
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
14027
      # Solaris 8's {/usr,}/bin/sh.
 
14028
      touch sub/conftst$i.h
 
14029
    done
 
14030
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
14031
 
 
14032
    case $depmode in
 
14033
    nosideeffect)
 
14034
      # after this tag, mechanisms are not by side-effect, so they'll
 
14035
      # only be used when explicitly requested
 
14036
      if test "x$enable_dependency_tracking" = xyes; then
 
14037
        continue
 
14038
      else
 
14039
        break
 
14040
      fi
 
14041
      ;;
 
14042
    none) break ;;
 
14043
    esac
 
14044
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
14045
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
14046
    # handle `-M -o', and we need to detect this.
 
14047
    if depmode=$depmode \
 
14048
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
14049
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
14050
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
14051
         >/dev/null 2>conftest.err &&
 
14052
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
14053
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
14054
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
14055
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
14056
      # icc doesn't choke on unknown options, it will just issue warnings
 
14057
      # or remarks (even with -Werror).  So we grep stderr for any message
 
14058
      # that says an option was ignored or not supported.
 
14059
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
14060
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
14061
      # The diagnosis changed in icc 8.0:
 
14062
      #   icc: Command line remark: option '-MP' not supported
 
14063
      if (grep 'ignoring option' conftest.err ||
 
14064
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
14065
        am_cv_CXX_dependencies_compiler_type=$depmode
 
14066
        break
 
14067
      fi
 
14068
    fi
 
14069
  done
 
14070
 
 
14071
  cd ..
 
14072
  rm -rf conftest.dir
 
14073
else
 
14074
  am_cv_CXX_dependencies_compiler_type=none
 
14075
fi
 
14076
 
 
14077
fi
 
14078
{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
14079
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
 
14080
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
14081
 
 
14082
 if
 
14083
  test "x$enable_dependency_tracking" != xno \
 
14084
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
14085
  am__fastdepCXX_TRUE=
 
14086
  am__fastdepCXX_FALSE='#'
 
14087
else
 
14088
  am__fastdepCXX_TRUE='#'
 
14089
  am__fastdepCXX_FALSE=
 
14090
fi
 
14091
 
 
14092
{ $as_echo "$as_me:$LINENO: checking what warning flags to pass to the C++ compiler" >&5
 
14093
$as_echo_n "checking what warning flags to pass to the C++ compiler... " >&6; }
 
14094
if test "${kpse_cv_warning_cxxflags+set}" = set; then
 
14095
  $as_echo_n "(cached) " >&6
 
14096
else
 
14097
  if test "x$enable_compiler_warnings" = xno; then
 
14098
  kpse_cv_warning_cxxflags=
 
14099
elif test "x$GXX" = xyes; then
 
14100
  kpse_cv_warning_cxxflags="-Wall -Wunused"
 
14101
  case `$CXX -dumpversion` in
 
14102
  3.[234].* | 4.*) kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wno-unknown-pragmas" ;;
 
14103
esac
 
14104
 
 
14105
  if test "x$enable_compiler_warnings" != xmin; then
 
14106
    if test "x$enable_compiler_warnings" != xyes; then
 
14107
      kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wimplicit -Wparentheses -Wreturn-type"
 
14108
      kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wswitch -Wtrigraphs -Wshadow -Wpointer-arith"
 
14109
      kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wcast-qual -Wcast-align -Wwrite-strings"
 
14110
    fi
 
14111
  fi
 
14112
else
 
14113
  : # FIXME: warning flags for non-g++ compilers
 
14114
fi
 
14115
fi
 
14116
{ $as_echo "$as_me:$LINENO: result: $kpse_cv_warning_cxxflags" >&5
 
14117
$as_echo "$kpse_cv_warning_cxxflags" >&6; }
 
14118
WARNING_CXXFLAGS=$kpse_cv_warning_cxxflags
14029
14119
 
14030
14120
 
14031
14121
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16078
16168
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16079
16169
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16080
16170
   -e 's:$: $lt_compiler_flag:'`
16081
 
   (eval echo "\"\$as_me:16081: $lt_compile\"" >&5)
 
16171
   (eval echo "\"\$as_me:16171: $lt_compile\"" >&5)
16082
16172
   (eval "$lt_compile" 2>conftest.err)
16083
16173
   ac_status=$?
16084
16174
   cat conftest.err >&5
16085
 
   echo "$as_me:16085: \$? = $ac_status" >&5
 
16175
   echo "$as_me:16175: \$? = $ac_status" >&5
16086
16176
   if (exit $ac_status) && test -s "$ac_outfile"; then
16087
16177
     # The compiler can only warn and ignore the option if not recognized
16088
16178
     # So say no if there are warnings other than the usual output.
16177
16267
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16178
16268
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16179
16269
   -e 's:$: $lt_compiler_flag:'`
16180
 
   (eval echo "\"\$as_me:16180: $lt_compile\"" >&5)
 
16270
   (eval echo "\"\$as_me:16270: $lt_compile\"" >&5)
16181
16271
   (eval "$lt_compile" 2>out/conftest.err)
16182
16272
   ac_status=$?
16183
16273
   cat out/conftest.err >&5
16184
 
   echo "$as_me:16184: \$? = $ac_status" >&5
 
16274
   echo "$as_me:16274: \$? = $ac_status" >&5
16185
16275
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16186
16276
   then
16187
16277
     # The compiler can only warn and ignore the option if not recognized
16229
16319
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16230
16320
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16231
16321
   -e 's:$: $lt_compiler_flag:'`
16232
 
   (eval echo "\"\$as_me:16232: $lt_compile\"" >&5)
 
16322
   (eval echo "\"\$as_me:16322: $lt_compile\"" >&5)
16233
16323
   (eval "$lt_compile" 2>out/conftest.err)
16234
16324
   ac_status=$?
16235
16325
   cat out/conftest.err >&5
16236
 
   echo "$as_me:16236: \$? = $ac_status" >&5
 
16326
   echo "$as_me:16326: \$? = $ac_status" >&5
16237
16327
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16238
16328
   then
16239
16329
     # The compiler can only warn and ignore the option if not recognized
18079
18169
fi
18080
18170
 
18081
18171
 
 
18172
# Check whether --enable-missing was given.
 
18173
if test "${enable_missing+set}" = set; then
 
18174
  enableval=$enable_missing;
 
18175
fi
 
18176
 
18082
18177
if test "x$enable_luatex:$enable_ipc" != xno:no; then
18083
18178
  case $ac_cv_search_connect in
18084
18179
  "none required") : ;;
18085
18180
  no) if test "x$enable_luatex" = xyes; then
18086
18181
  { $as_echo "$as_me:$LINENO: WARNING: Sorry, no socket library: can not build luaTeX" >&5
18087
18182
$as_echo "$as_me: WARNING: Sorry, no socket library: can not build luaTeX" >&2;}
 
18183
if test "x$enable_missing" = xno; then
 
18184
  { { $as_echo "$as_me:$LINENO: error: terminating." >&5
 
18185
$as_echo "$as_me: error: terminating." >&2;}
 
18186
   { (exit 1); exit 1; }; }
 
18187
fi
 
18188
 
 
18189
 
18088
18190
                             enable_luatex=no
18089
18191
fi
18090
18192
 
18091
18193
                      if test "x$enable_ipc" = xyes; then
18092
18194
  { $as_echo "$as_me:$LINENO: WARNING: no socket library: disabling ipc" >&5
18093
18195
$as_echo "$as_me: WARNING: no socket library: disabling ipc" >&2;}
 
18196
if test "x$enable_missing" = xno; then
 
18197
  { { $as_echo "$as_me:$LINENO: error: terminating." >&5
 
18198
$as_echo "$as_me: error: terminating." >&2;}
 
18199
   { (exit 1); exit 1; }; }
 
18200
fi
 
18201
 
 
18202
 
18094
18203
                             enable_ipc=no
18095
18204
fi
18096
18205
 ;;
18381
18490
  no) if test "x$enable_luatex" = xyes; then
18382
18491
  { $as_echo "$as_me:$LINENO: WARNING: Sorry, no inet_aton(): can not build luaTeX" >&5
18383
18492
$as_echo "$as_me: WARNING: Sorry, no inet_aton(): can not build luaTeX" >&2;}
 
18493
if test "x$enable_missing" = xno; then
 
18494
  { { $as_echo "$as_me:$LINENO: error: terminating." >&5
 
18495
$as_echo "$as_me: error: terminating." >&2;}
 
18496
   { (exit 1); exit 1; }; }
 
18497
fi
 
18498
 
 
18499
 
18384
18500
                        enable_luatex=no
18385
18501
fi
18386
18502
 ;;
18392
18508
  no) if test "x$enable_luatex" = xyes; then
18393
18509
  { $as_echo "$as_me:$LINENO: WARNING: Sorry, no gethostbyname(): can not build luaTeX" >&5
18394
18510
$as_echo "$as_me: WARNING: Sorry, no gethostbyname(): can not build luaTeX" >&2;}
 
18511
if test "x$enable_missing" = xno; then
 
18512
  { { $as_echo "$as_me:$LINENO: error: terminating." >&5
 
18513
$as_echo "$as_me: error: terminating." >&2;}
 
18514
   { (exit 1); exit 1; }; }
 
18515
fi
 
18516
 
 
18517
 
18395
18518
                        enable_luatex=no
18396
18519
fi
18397
18520
 ;;
18403
18526
  no) if test "x$enable_luatex" = xyes; then
18404
18527
  { $as_echo "$as_me:$LINENO: WARNING: Sorry, no nanosleep(): can not build luaTeX" >&5
18405
18528
$as_echo "$as_me: WARNING: Sorry, no nanosleep(): can not build luaTeX" >&2;}
 
18529
if test "x$enable_missing" = xno; then
 
18530
  { { $as_echo "$as_me:$LINENO: error: terminating." >&5
 
18531
$as_echo "$as_me: error: terminating." >&2;}
 
18532
   { (exit 1); exit 1; }; }
 
18533
fi
 
18534
 
 
18535
 
18406
18536
                        enable_luatex=no
18407
18537
fi
18408
18538
 ;;
18580
18710
else
18581
18711
  kpse_save_CPPFLAGS=$CPPFLAGS
18582
18712
kpse_save_LIBS=$LIBS
 
18713
kpse_cv_fontconfig_includes=
 
18714
kpse_cv_fontconfig_libs='-lfontconfig'
18583
18715
if test "x$with_fontconfig_includes:$with_fontconfig_libdir" != x:; then
18584
18716
  if test "x$with_fontconfig_includes" != x; then
18585
18717
    kpse_cv_fontconfig_includes="-I$with_fontconfig_includes"
18586
18718
  fi
18587
18719
  if test "x$with_fontconfig_libdir" != x; then
18588
 
    kpse_cv_fontconfig_libdir="-L$with_fontconfig_libdir -lfontconfig"
 
18720
    kpse_cv_fontconfig_libs="-L$with_fontconfig_libdir $kpse_cv_fontconfig_libs"
18589
18721
  fi
18590
18722
elif $PKG_CONFIG fontconfig; then
18591
18723
  kpse_cv_fontconfig_includes=`$PKG_CONFIG fontconfig --cflags`
18592
18724
  kpse_cv_fontconfig_libs=`$PKG_CONFIG fontconfig --libs`
18593
 
else
18594
 
  kpse_cv_fontconfig_includes=
18595
 
  kpse_cv_fontconfig_libs='-lfontconfig'
18596
18725
fi
18597
18726
CPPFLAGS="$kpse_cv_fontconfig_includes $CPPFLAGS"
18598
18727
LIBS="$kpse_cv_fontconfig_libs $LIBS"
18663
18792
if test "x$enable_xetex:$kpse_cv_have_Carbon:$kpse_cv_have_fontconfig" = xyes:no:no; then
18664
18793
  { $as_echo "$as_me:$LINENO: WARNING: Sorry, can not build XeTeX without Carbon framework or fontconfig" >&5
18665
18794
$as_echo "$as_me: WARNING: Sorry, can not build XeTeX without Carbon framework or fontconfig" >&2;}
 
18795
if test "x$enable_missing" = xno; then
 
18796
  { { $as_echo "$as_me:$LINENO: error: terminating." >&5
 
18797
$as_echo "$as_me: error: terminating." >&2;}
 
18798
   { (exit 1); exit 1; }; }
 
18799
fi
 
18800
 
 
18801
 
18666
18802
       enable_xetex=no
18667
18803
fi
18668
18804
 
18809
18945
 
18810
18946
 
18811
18947
# Handle --with-mf-x-toolkit and --with-x
 
18948
test "x$enable_mf" = xno || enable_mf=yes
18812
18949
case $with_mf_x_toolkit in
18813
18950
  yes|no) : ;;
18814
 
  ''|y|ye) with_mf_x_toolkit=yes ;;
 
18951
  '') with_mf_x_toolkit=$enable_mf ;;
 
18952
  y|ye) with_mf_x_toolkit=yes ;;
18815
18953
  n) with_mf_x_toolkit=no ;;
18816
18954
  *) { $as_echo "$as_me:$LINENO: WARNING: unknown --with-mf-x-toolkit argument \`$with_mf_x_toolkit'; using yes." >&5
18817
18955
$as_echo "$as_me: WARNING: unknown --with-mf-x-toolkit argument \`$with_mf_x_toolkit'; using yes." >&2;}
 
18956
if test "x$enable_missing" = xno; then
 
18957
  { { $as_echo "$as_me:$LINENO: error: terminating." >&5
 
18958
$as_echo "$as_me: error: terminating." >&2;}
 
18959
   { (exit 1); exit 1; }; }
 
18960
fi
 
18961
 
 
18962
 
18818
18963
             with_mf_x_toolkit=yes ;;
18819
18964
esac
18820
18965
 
18821
18966
test "x$with_x_toolkit" = xyes && with_x=yes
18822
18967
test "x$with_x" = xno && with_x_toolkit=no
18823
 
: ${with_x=yes} # tell PATH_XTRA to use X by default, if not specified.
 
18968
: ${with_x=$enable_mf} # tell PATH_XTRA to use X for Metafont, if not specified.
18824
18969
 
18825
18970
# Distinguish no X at all, no toolkit, or toolkit.
18826
18971
{ $as_echo "$as_me:$LINENO: checking for X" >&5
20204
20349
 
20205
20350
if test "x$with_x" = xyes; then
20206
20351
  if test "x$no_x" = xyes; then
20207
 
    { { $as_echo "$as_me:$LINENO: error: Sorry, could not find required X include and library files." >&5
20208
 
$as_echo "$as_me: error: Sorry, could not find required X include and library files." >&2;}
 
20352
    { { $as_echo "$as_me:$LINENO: error: Sorry, could not find X include and library files required for Metafont." >&5
 
20353
$as_echo "$as_me: error: Sorry, could not find X include and library files required for Metafont." >&2;}
20209
20354
   { (exit 1); exit 1; }; }
20210
20355
  fi
20211
20356
  test -n "$x_libraries" && XLFLAG="-L$x_libraries"
24099
24244
  if $FT2_CONFIG --ftversion >/dev/null 2>&1; then
24100
24245
  FREETYPE2_INCLUDES=`$FT2_CONFIG --cflags`
24101
24246
  FREETYPE2_LIBS=`$FT2_CONFIG --libs`
24102
 
elif test "x$need_freetype2:$with_freetype2_xpdf" = 'xyes:yes'; then
 
24247
elif test "x$need_freetype2:$with_system_freetype2" = 'xyes:yes'; then
24103
24248
  { { $as_echo "$as_me:$LINENO: error: did not find freetype-config required for system freetype2 library" >&5
24104
24249
$as_echo "$as_me: error: did not find freetype-config required for system freetype2 library" >&2;}
24105
24250
   { (exit 1); exit 1; }; }