configure 759 KB
Newer Older
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5001
5002
5003
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
5004
    $as_echo 'GREP' >> "conftest.nl"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5005
5006
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5007
    as_fn_arith $ac_count + 1 && ac_count=$as_val
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_GREP="$ac_path_GREP"
      ac_path_GREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

5019
5020
      $ac_path_GREP_found && break 3
    done
5021
  done
5022
  done
5023
IFS=$as_save_IFS
5024
  if test -z "$ac_cv_path_GREP"; then
5025
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5026
  fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5027
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5028
  ac_cv_path_GREP=$GREP
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5029
5030
5031
fi

fi
5032
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5033
$as_echo "$ac_cv_path_GREP" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5034
 GREP="$ac_cv_path_GREP"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5035

Emmanuel Bertin's avatar
Emmanuel Bertin committed
5036

5037
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5038
$as_echo_n "checking for egrep... " >&6; }
5039
if ${ac_cv_path_EGREP+:} false; then :
5040
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5041
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5042
5043
5044
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   then ac_cv_path_EGREP="$GREP -E"
   else
5045
     if test -z "$EGREP"; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5046
  ac_path_EGREP_found=false
5047
5048
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5049
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5050
5051
5052
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
5053
    for ac_prog in egrep; do
5054
5055
5056
5057
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
# Check for GNU ac_path_EGREP and select it if it is found.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5058
5059
5060
5061
5062
5063
  # Check for GNU $ac_path_EGREP
case `"$ac_path_EGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
*)
  ac_count=0
5064
  $as_echo_n 0123456789 >"conftest.in"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5065
5066
5067
5068
5069
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
5070
    $as_echo 'EGREP' >> "conftest.nl"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5071
5072
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5073
    as_fn_arith $ac_count + 1 && ac_count=$as_val
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_EGREP="$ac_path_EGREP"
      ac_path_EGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

5085
5086
      $ac_path_EGREP_found && break 3
    done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5087
  done
5088
  done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5089
IFS=$as_save_IFS
5090
  if test -z "$ac_cv_path_EGREP"; then
5091
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5092
  fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5093
5094
5095
5096
5097
5098
else
  ac_cv_path_EGREP=$EGREP
fi

   fi
fi
5099
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5100
$as_echo "$ac_cv_path_EGREP" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5101
5102
5103
5104
5105
 EGREP="$ac_cv_path_EGREP"



# Check whether --with-gnu-ld was given.
5106
if test "${with_gnu_ld+set}" = set; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5107
5108
5109
5110
5111
5112
5113
5114
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
else
  with_gnu_ld=no
fi

ac_prog=ld
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
5115
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5116
$as_echo_n "checking for ld used by $CC... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5117
5118
5119
5120
  case $host in
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5121
  *)
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  esac
  case $ac_prog in
    # Accept absolute paths.
    [\\/]* | ?:[\\/]*)
      re_direlt='/[^/][^/]*/\.\./'
      # Canonicalize the pathname of ld
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5132
      done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
      test -z "$LD" && LD="$ac_prog"
      ;;
  "")
    # If it fails, then pretend we aren't using GCC.
    ac_prog=ld
    ;;
  *)
    # If it is relative, then search for the first ld in PATH.
    with_gnu_ld=unknown
    ;;
  esac
elif test "$with_gnu_ld" = yes; then
5145
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5146
$as_echo_n "checking for GNU ld... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5147
else
5148
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5149
$as_echo_n "checking for non-GNU ld... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5150
fi
5151
if ${lt_cv_path_LD+:} false; then :
5152
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
else
  if test -z "$LD"; then
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  for ac_dir in $PATH; do
    IFS="$lt_save_ifs"
    test -z "$ac_dir" && ac_dir=.
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
      lt_cv_path_LD="$ac_dir/$ac_prog"
      # Check to see if the program is GNU ld.  I'd rather use --version,
      # but apparently some variants of GNU ld only accept -v.
      # Break only if it was the GNU/non-GNU ld that we prefer.
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
      *GNU* | *'with BFD'*)
	test "$with_gnu_ld" != no && break
	;;
      *)
	test "$with_gnu_ld" != yes && break
	;;
      esac
    fi
  done
  IFS="$lt_save_ifs"
else
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
fi
fi

LD="$lt_cv_path_LD"
if test -n "$LD"; then
5182
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5183
$as_echo "$LD" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5184
else
5185
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186
$as_echo "no" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5187
fi
5188
5189
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5190
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5191
if ${lt_cv_prog_gnu_ld+:} false; then :
5192
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
else
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
case `$LD -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
  lt_cv_prog_gnu_ld=yes
  ;;
*)
  lt_cv_prog_gnu_ld=no
  ;;
esac
fi
5204
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5205
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5206
5207
5208
with_gnu_ld=$lt_cv_prog_gnu_ld


5209
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5210
$as_echo_n "checking for $LD option to reload object files... " >&6; }
5211
if ${lt_cv_ld_reload_flag+:} false; then :
5212
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5213
5214
5215
else
  lt_cv_ld_reload_flag='-r'
fi
5216
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5217
$as_echo "$lt_cv_ld_reload_flag" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
reload_flag=$lt_cv_ld_reload_flag
case $reload_flag in
"" | " "*) ;;
*) reload_flag=" $reload_flag" ;;
esac
reload_cmds='$LD$reload_flag -o $output$reload_objs'
case $host_os in
  darwin*)
    if test "$GCC" = yes; then
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
    else
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
    fi
    ;;
esac

5234
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
5235
$as_echo_n "checking for BSD-compatible nm... " >&6; }
5236
if ${lt_cv_path_NM+:} false; then :
5237
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
else
  if test -n "$NM"; then
  # Let the user override the test.
  lt_cv_path_NM="$NM"
else
  lt_nm_to_check="${ac_tool_prefix}nm"
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
    lt_nm_to_check="$lt_nm_to_check nm"
  fi
  for lt_tmp_nm in $lt_nm_to_check; do
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
      IFS="$lt_save_ifs"
      test -z "$ac_dir" && ac_dir=.
      tmp_nm="$ac_dir/$lt_tmp_nm"
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
	# Check to see if the nm accepts a BSD-compat flag.
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
	#   nm: unknown option "B" ignored
	# Tru64's nm complains that /dev/null is an invalid object file
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
	*/dev/null* | *'Invalid file or object type'*)
	  lt_cv_path_NM="$tmp_nm -B"
	  break
	  ;;
	*)
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
	  */dev/null*)
	    lt_cv_path_NM="$tmp_nm -p"
	    break
	    ;;
	  *)
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
	    continue # so that we can try to find one that supports BSD flags
	    ;;
	  esac
	  ;;
	esac
      fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5277
    done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5278
5279
5280
5281
5282
    IFS="$lt_save_ifs"
  done
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
fi
fi
5283
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5284
$as_echo "$lt_cv_path_NM" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5285
5286
NM="$lt_cv_path_NM"

5287
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5288
$as_echo_n "checking whether ln -s works... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5289
5290
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
5291
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5292
$as_echo "yes" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5293
else
5294
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5295
$as_echo "no, using $LN_S" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5296
5297
fi

5298
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5299
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5300
if ${lt_cv_deplibs_check_method+:} false; then :
5301
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
else
  lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_deplibs_check_method='unknown'
# Need to set the preceding variable on all platforms that support
# interlibrary dependencies.
# 'none' -- dependencies not supported.
# `unknown' -- same as none, but documents that we really don't know.
# 'pass_all' -- all dependencies passed with no checks.
# 'test_compile' -- check by making test program.
# 'file_magic [[regex]]' -- check by looking for files in library path
# which responds to the $file_magic_cmd with a given extended regex.
# If you have `file' or equivalent on your system and you're not sure
# whether `pass_all' will *always* work, you probably want this one.

case $host_os in
5318
aix4* | aix5*)
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
  lt_cv_deplibs_check_method=pass_all
  ;;

beos*)
  lt_cv_deplibs_check_method=pass_all
  ;;

bsdi[45]*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  lt_cv_file_magic_cmd='/usr/bin/file -L'
  lt_cv_file_magic_test_file=/shlib/libc.so
  ;;

cygwin*)
  # func_win32_libid is a shell function defined in ltmain.sh
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  lt_cv_file_magic_cmd='func_win32_libid'
  ;;

mingw* | pw32*)
  # Base MSYS/MinGW do not provide the 'file' command needed by
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
  # unless we find 'file', for example because we are cross-compiling.
  if ( file / ) >/dev/null 2>&1; then
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
    lt_cv_file_magic_cmd='func_win32_libid'
  else
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
    lt_cv_file_magic_cmd='$OBJDUMP -f'
  fi
  ;;

darwin* | rhapsody*)
  lt_cv_deplibs_check_method=pass_all
  ;;

freebsd* | dragonfly*)
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
    case $host_cpu in
    i*86 )
      # Not sure whether the presence of OpenBSD here was a mistake.
      # Let's accept both of them until this is cleared up.
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
      lt_cv_file_magic_cmd=/usr/bin/file
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
      ;;
    esac
  else
    lt_cv_deplibs_check_method=pass_all
  fi
  ;;

gnu*)
  lt_cv_deplibs_check_method=pass_all
  ;;

hpux10.20* | hpux11*)
  lt_cv_file_magic_cmd=/usr/bin/file
  case $host_cpu in
  ia64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
    ;;
  hppa*64*)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
    ;;
  *)
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
    ;;
  esac
  ;;

interix[3-9]*)
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  ;;

irix5* | irix6* | nonstopux*)
  case $LD in
  *-32|*"-32 ") libmagic=32-bit;;
  *-n32|*"-n32 ") libmagic=N32;;
  *-64|*"-64 ") libmagic=64-bit;;
  *) libmagic=never-match;;
  esac
  lt_cv_deplibs_check_method=pass_all
  ;;

# This must be Linux ELF.
linux* | k*bsd*-gnu)
  lt_cv_deplibs_check_method=pass_all
  ;;

netbsd*)
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  else
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  fi
  ;;

newos6*)
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  lt_cv_file_magic_cmd=/usr/bin/file
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
  ;;

nto-qnx*)
  lt_cv_deplibs_check_method=unknown
  ;;

openbsd*)
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  else
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  fi
  ;;

osf3* | osf4* | osf5*)
  lt_cv_deplibs_check_method=pass_all
  ;;

rdos*)
  lt_cv_deplibs_check_method=pass_all
  ;;

solaris*)
  lt_cv_deplibs_check_method=pass_all
  ;;

sysv4 | sysv4.3*)
  case $host_vendor in
  motorola)
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
    ;;
  ncr)
    lt_cv_deplibs_check_method=pass_all
    ;;
  sequent)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
    ;;
  sni)
    lt_cv_file_magic_cmd='/bin/file'
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
    lt_cv_file_magic_test_file=/lib/libc.so
    ;;
  siemens)
    lt_cv_deplibs_check_method=pass_all
    ;;
  pc)
    lt_cv_deplibs_check_method=pass_all
    ;;
  esac
  ;;

sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  lt_cv_deplibs_check_method=pass_all
  ;;
esac

fi
5484
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5485
$as_echo "$lt_cv_deplibs_check_method" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
file_magic_cmd=$lt_cv_file_magic_cmd
deplibs_check_method=$lt_cv_deplibs_check_method
test -z "$deplibs_check_method" && deplibs_check_method=unknown




# If no C compiler was specified, use CC.
LTCC=${LTCC-"$CC"}

# If no C compiler flags were specified, use CFLAGS.
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}

# Allow CC to be a program name with arguments.
compiler=$CC

# Check whether --enable-libtool-lock was given.
5503
if test "${enable_libtool_lock+set}" = set; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
  enableval=$enable_libtool_lock;
fi

test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes

# Some flags need to be propagated to the compiler or linker for good
# libtool support.
case $host in
ia64-*-hpux*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
5515
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5516
5517
  (eval $ac_compile) 2>&5
  ac_status=$?
5518
5519
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
    case `/usr/bin/file conftest.$ac_objext` in
    *ELF-32*)
      HPUX_IA64_MODE="32"
      ;;
    *ELF-64*)
      HPUX_IA64_MODE="64"
      ;;
    esac
  fi
  rm -rf conftest*
  ;;
*-*-irix6*)
  # Find out which ABI we are using.
5533
5534
  echo '#line 5533 "configure"' > conftest.$ac_ext
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5535
5536
  (eval $ac_compile) 2>&5
  ac_status=$?
5537
5538
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
   if test "$lt_cv_prog_gnu_ld" = yes; then
    case `/usr/bin/file conftest.$ac_objext` in
    *32-bit*)
      LD="${LD-ld} -melf32bsmip"
      ;;
    *N32*)
      LD="${LD-ld} -melf32bmipn32"
      ;;
    *64-bit*)
      LD="${LD-ld} -melf64bmip"
      ;;
    esac
   else
    case `/usr/bin/file conftest.$ac_objext` in
    *32-bit*)
      LD="${LD-ld} -32"
      ;;
    *N32*)
      LD="${LD-ld} -n32"
      ;;
    *64-bit*)
      LD="${LD-ld} -64"
      ;;
    esac
   fi
  fi
  rm -rf conftest*
  ;;

x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
s390*-*linux*|sparc*-*linux*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
5572
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5573
5574
  (eval $ac_compile) 2>&5
  ac_status=$?
5575
5576
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
    case `/usr/bin/file conftest.o` in
    *32-bit*)
      case $host in
        x86_64-*kfreebsd*-gnu)
          LD="${LD-ld} -m elf_i386_fbsd"
          ;;
        x86_64-*linux*)
          LD="${LD-ld} -m elf_i386"
          ;;
        ppc64-*linux*|powerpc64-*linux*)
          LD="${LD-ld} -m elf32ppclinux"
          ;;
        s390x-*linux*)
          LD="${LD-ld} -m elf_s390"
          ;;
        sparc64-*linux*)
          LD="${LD-ld} -m elf32_sparc"
          ;;
      esac
      ;;
    *64-bit*)
      libsuff=64
      case $host in
        x86_64-*kfreebsd*-gnu)
          LD="${LD-ld} -m elf_x86_64_fbsd"
          ;;
        x86_64-*linux*)
          LD="${LD-ld} -m elf_x86_64"
          ;;
        ppc*-*linux*|powerpc*-*linux*)
          LD="${LD-ld} -m elf64ppc"
          ;;
        s390*-*linux*)
          LD="${LD-ld} -m elf64_s390"
          ;;
        sparc*-*linux*)
          LD="${LD-ld} -m elf64_sparc"
          ;;
      esac
      ;;
    esac
  fi
  rm -rf conftest*
  ;;

*-*-sco3.2v5*)
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  SAVE_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -belf"
5626
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5627
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5628
if ${lt_cv_cc_needs_belf+:} false; then :
5629
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5630
5631
5632
5633
5634
5635
5636
else
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

5637
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
5648
if ac_fn_c_try_link "$LINENO"; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5649
5650
  lt_cv_cc_needs_belf=yes
else
5651
  lt_cv_cc_needs_belf=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5652
fi
5653
5654
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5655
5656
5657
5658
5659
5660
5661
     ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
5662
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5663
$as_echo "$lt_cv_cc_needs_belf" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5664
5665
5666
5667
5668
5669
5670
5671
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
    CFLAGS="$SAVE_CFLAGS"
  fi
  ;;
sparc*-*solaris*)
  # Find out which ABI we are using.
  echo 'int i;' > conftest.$ac_ext
5672
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5673
5674
  (eval $ac_compile) 2>&5
  ac_status=$?
5675
5676
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5677
5678
5679
5680
    case `/usr/bin/file conftest.o` in
    *64-bit*)
      case $lt_cv_prog_gnu_ld in
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5681
      *)    LD="${LD-ld} -64" ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
      esac
      ;;
    esac
  fi
  rm -rf conftest*
  ;;


esac

need_locks="$enable_libtool_lock"


ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5700
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5701
$as_echo_n "checking how to run the C preprocessor... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5702
5703
5704
5705
5706
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
5707
  if ${ac_cv_prog_CPP+:} false; then :
5708
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
5722
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5723
5724
5725
5726
5727
5728
5729
5730
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
5731
if ac_fn_c_try_cpp "$LINENO"; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5732

5733
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5734
5735
5736
  # Broken: fails on valid input.
continue
fi
5737
rm -f conftest.err conftest.i conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5738
5739
5740

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
5741
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5742
5743
5744
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
5745
if ac_fn_c_try_cpp "$LINENO"; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5746
5747
5748
5749
5750
5751
5752
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
5753
rm -f conftest.err conftest.i conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5754
5755
5756

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5757
5758
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
  break
fi

    done
    ac_cv_prog_CPP=$CPP

fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
5770
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5771
$as_echo "$CPP" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5772
5773
5774
5775
5776
5777
5778
5779
5780
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
5781
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5782
5783
5784
5785
5786
5787
5788
5789
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
5790
if ac_fn_c_try_cpp "$LINENO"; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5791

5792
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5793
5794
5795
  # Broken: fails on valid input.
continue
fi
5796
rm -f conftest.err conftest.i conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5797
5798
5799

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
5800
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5801
5802
5803
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
5804
if ac_fn_c_try_cpp "$LINENO"; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5805
5806
5807
5808
5809
5810
5811
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
5812
rm -f conftest.err conftest.i conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5813
5814
5815

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5816
5817
5818
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :

Emmanuel Bertin's avatar
Emmanuel Bertin committed
5819
else
5820
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5821
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5822
5823
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5824
5825
5826
5827
5828
5829
5830
5831
5832
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


5833
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5834
$as_echo_n "checking for ANSI C header files... " >&6; }
5835
if ${ac_cv_header_stdc+:} false; then :
5836
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5837
else
5838
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
/* end confdefs.h.  */
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

int
main ()
{

  ;
  return 0;
}
_ACEOF
5853
if ac_fn_c_try_compile "$LINENO"; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5854
5855
  ac_cv_header_stdc=yes
else
5856
  ac_cv_header_stdc=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5857
5858
5859
5860
5861
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5862
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5863
5864
5865
5866
5867
/* end confdefs.h.  */
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5868
5869
  $EGREP "memchr" >/dev/null 2>&1; then :

Emmanuel Bertin's avatar
Emmanuel Bertin committed
5870
5871
5872
5873
5874
5875
5876
5877
5878
else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5879
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5880
5881
5882
5883
5884
/* end confdefs.h.  */
#include <stdlib.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5885
5886
  $EGREP "free" >/dev/null 2>&1; then :

Emmanuel Bertin's avatar
Emmanuel Bertin committed
5887
5888
5889
5890
5891
5892
5893
5894
5895
else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5896
  if test "$cross_compiling" = yes; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5897
5898
  :
else
5899
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
/* end confdefs.h.  */
#include <ctype.h>
#include <stdlib.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) \
		   (('a' <= (c) && (c) <= 'i') \
		     || ('j' <= (c) && (c) <= 'r') \
		     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
	|| toupper (i) != TOUPPER (i))
      return 2;
  return 0;
}
_ACEOF
5926
if ac_fn_c_try_run "$LINENO"; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5927

5928
5929
else
  ac_cv_header_stdc=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5930
fi
5931
5932
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5933
5934
5935
5936
fi

fi
fi
5937
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5938
$as_echo "$ac_cv_header_stdc" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5939
5940
if test $ac_cv_header_stdc = yes; then

5941
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5942
5943
5944
5945
5946
5947

fi

# On IRIX 5.3, sys/types and inttypes.h are conflicting.
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
		  inttypes.h stdint.h unistd.h
5948
5949
5950
5951
5952
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5953
  cat >>confdefs.h <<_ACEOF
5954
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5955
5956
5957
5958
5959
5960
5961
5962
_ACEOF

fi

done


for ac_header in dlfcn.h
5963
5964
5965
do :
  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5966
  cat >>confdefs.h <<_ACEOF
5967
#define HAVE_DLFCN_H 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
_ACEOF

fi

done

ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
if test -z "$CXX"; then
  if test -n "$CCC"; then
    CXX=$CCC
  else
    if test -n "$ac_tool_prefix"; then
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5988
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5989
$as_echo_n "checking for $ac_word... " >&6; }
5990
if ${ac_cv_prog_CXX+:} false; then :
5991
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
5992
5993
5994
5995
5996
5997
5998
5999
6000
else
  if test -n "$CXX"; then
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
For faster browsing, not all history is shown. View entire blame