configure 759 KB
Newer Older
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3001
3002
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}

Emmanuel Bertin's avatar
Emmanuel Bertin committed
3003
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3004
3005
3006
3007
3008
3009
3010
3011
3012

# Installed binaries are usually stripped using `strip' when the user
# run `make install-strip'.  However `strip' might not be the right
# tool to use in cross-compilation environments, therefore Automake
# will honor the `STRIP' environment variable to overrule this program.
if test "$cross_compiling" != no; then
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
3013
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3014
$as_echo_n "checking for $ac_word... " >&6; }
3015
if ${ac_cv_prog_STRIP+:} false; then :
3016
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3017
3018
3019
3020
3021
3022
3023
3024
3025
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # 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=.
3026
    for ac_exec_ext in '' $ac_executable_extensions; do
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3027
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3028
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3029
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3030
3031
3032
    break 2
  fi
done
3033
  done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3034
IFS=$as_save_IFS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3035
3036
3037
3038
3039

fi
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
3040
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3041
$as_echo "$STRIP" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3042
else
3043
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3044
$as_echo "no" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3045
3046
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
3047

Emmanuel Bertin's avatar
Emmanuel Bertin committed
3048
3049
3050
3051
3052
fi
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
3053
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3054
$as_echo_n "checking for $ac_word... " >&6; }
3055
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3056
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3057
3058
3059
3060
3061
3062
3063
3064
3065
else
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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=.
3066
    for ac_exec_ext in '' $ac_executable_extensions; do
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3067
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3068
    ac_cv_prog_ac_ct_STRIP="strip"
3069
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3070
3071
3072
    break 2
  fi
done
3073
  done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3074
IFS=$as_save_IFS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3075
3076
3077
3078
3079

fi
fi
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
3080
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3081
$as_echo "$ac_ct_STRIP" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3082
else
3083
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3084
$as_echo "no" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3085
3086
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
3087
3088
3089
3090
3091
  if test "x$ac_ct_STRIP" = x; then
    STRIP=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
3092
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3093
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3094
3095
3096
3097
ac_tool_warned=yes ;;
esac
    STRIP=$ac_ct_STRIP
  fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3098
3099
3100
3101
3102
else
  STRIP="$ac_cv_prog_STRIP"
fi

fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3103
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134

# We need awk for the "check" target.  The system "awk" is bad on
# some platforms.
# Always define AMTAR for backward compatibility.

AMTAR=${AMTAR-"${am_missing_run}tar"}

am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'





date=`date +%Y-%m-%d`
date2=`date +"%a %b %d %Y"`
date3=`date +"%B %Y"`

cat >>confdefs.h <<_ACEOF
#define DATE "$date"
_ACEOF

PACKAGER="Emmanuel Bertin"

DATE2="$date2"

DATE3="$date3"


# Include macros


Emmanuel Bertin's avatar
Emmanuel Bertin committed
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159








# URBI_RESOLVE_DIR_PREPARE
# ------------------------
# Define urbi_resolve_dir.



# PATH URBI_RESOLVE_DIR(DIR)
# --------------------------
# Return the DIR with all inner variables expanded.



## Local Variables:
## mode: autoconf
## End:


Emmanuel Bertin's avatar
Emmanuel Bertin committed
3160
# Display pakage and version number
3161
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *********** Configuring:  $PACKAGE $VERSION ($date) **********" >&5
3162
$as_echo "*********** Configuring:  $PACKAGE $VERSION ($date) **********" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3163
3164
3165
3166

# Initialize the list of compilers to consider
cclist="cc gcc"

3167
# Provide special option for choosing automatically the compilation flags.
3168
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compilation flags are set automatically" >&5
3169
$as_echo_n "checking if compilation flags are set automatically... " >&6; }
3170
# Check whether --enable-auto-flags was given.
3171
3172
if test "${enable_auto_flags+set}" = set; then :
  enableval=$enable_auto_flags; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3173
3174
$as_echo "yes" >&6; }
else
3175
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3176
3177
3178
$as_echo "no" >&6; }
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
3179
3180

# Provide special option for the Linux Intel C compiler
3181
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux Intel C compiler mode" >&5
3182
$as_echo_n "checking for Linux Intel C compiler mode... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3183
# Check whether --enable-icc was given.
3184
if test "${enable_icc+set}" = set; then :
3185
  enableval=$enable_icc; cclist="icc $cclist"
3186
	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3187
$as_echo "yes" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3188
else
3189
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190
$as_echo "no" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3191
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3192
3193
3194
3195


# Checks for programs.
# GCC is chosen last because it is likely to yield less optimized code
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3196
3197
3198
3199
3200
3201
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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
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
if test -n "$ac_tool_prefix"; then
  for ac_prog in $cclist
  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
3212
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3213
$as_echo_n "checking for $ac_word... " >&6; }
3214
if ${ac_cv_prog_CC+:} false; then :
3215
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3216
3217
3218
3219
3220
3221
3222
3223
3224
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # 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=.
3225
    for ac_exec_ext in '' $ac_executable_extensions; do
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3226
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3227
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3228
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3229
3230
3231
    break 2
  fi
done
3232
  done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3233
IFS=$as_save_IFS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3234
3235
3236
3237
3238

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
3239
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3240
$as_echo "$CC" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3241
else
3242
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243
$as_echo "no" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3244
3245
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
3246

Emmanuel Bertin's avatar
Emmanuel Bertin committed
3247
3248
3249
3250
3251
3252
3253
3254
3255
    test -n "$CC" && break
  done
fi
if test -z "$CC"; then
  ac_ct_CC=$CC
  for ac_prog in $cclist
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
3256
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257
$as_echo_n "checking for $ac_word... " >&6; }
3258
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3259
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3260
3261
3262
3263
3264
3265
3266
3267
3268
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # 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=.
3269
    for ac_exec_ext in '' $ac_executable_extensions; do
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3270
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3271
    ac_cv_prog_ac_ct_CC="$ac_prog"
3272
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3273
3274
3275
    break 2
  fi
done
3276
  done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3277
IFS=$as_save_IFS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3278
3279
3280
3281
3282

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
3283
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3284
$as_echo "$ac_ct_CC" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3285
else
3286
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287
$as_echo "no" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3288
3289
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
3290

Emmanuel Bertin's avatar
Emmanuel Bertin committed
3291
3292
3293
  test -n "$ac_ct_CC" && break
done

Emmanuel Bertin's avatar
Emmanuel Bertin committed
3294
3295
3296
3297
3298
  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
3299
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3300
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3301
3302
3303
3304
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3305
3306
3307
fi


3308
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3309
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3310
3311
as_fn_error $? "no acceptable C compiler found in \$PATH
See \`config.log' for more details" "$LINENO" 5; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3312
3313

# Provide some information about the compiler.
3314
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3315
3316
set X $ac_compile
ac_compiler=$2
3317
3318
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3319
3320
3321
3322
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
3323
3324
3325
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3326
  ac_status=$?
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3337

3338
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
ac_clean_files_save=$ac_clean_files
3350
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3351
3352
3353
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
3354
3355
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
$as_echo_n "checking whether the C compiler works... " >&6; }
3356
3357
3358
3359
3360
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`

# The possible output files:
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"

Emmanuel Bertin's avatar
Emmanuel Bertin committed
3361
3362
3363
3364
ac_rmfiles=
for ac_file in $ac_files
do
  case $ac_file in
3365
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3366
3367
3368
3369
3370
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  esac
done
rm -f $ac_rmfiles

3371
if { { ac_try="$ac_link_default"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3372
3373
3374
3375
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
3376
3377
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3378
  (eval "$ac_link_default") 2>&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3379
  ac_status=$?
3380
3381
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3382
3383
3384
3385
3386
3387
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
# so that the user can short-circuit this test for compilers unknown to
# Autoconf.
for ac_file in $ac_files ''
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3388
3389
3390
do
  test -f "$ac_file" || continue
  case $ac_file in
3391
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3392
3393
3394
3395
3396
3397
	;;
    [ab].out )
	# We found the default executable, but exeext='' is most
	# certainly right.
	break;;
    *.* )
3398
	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3399
3400
3401
3402
3403
3404
3405
3406
	then :; else
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	fi
	# We set ac_cv_exeext here because the later test for it is not
	# safe: cross compilers may not add the suffix if given an `-o'
	# argument, so we may need to know it at that point already.
	# Even if this section looks crufty: it has the advantage of
	# actually working.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3407
3408
3409
3410
3411
	break;;
    * )
	break;;
  esac
done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3412
3413
test "$ac_cv_exeext" = no && ac_cv_exeext=

Emmanuel Bertin's avatar
Emmanuel Bertin committed
3414
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3415
3416
  ac_file=''
fi
3417
3418
3419
3420
if test -z "$ac_file"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
$as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3421
3422
sed 's/^/| /' conftest.$ac_ext >&5

3423
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3424
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3425
3426
3427
3428
3429
as_fn_error 77 "C compiler cannot create executables
See \`config.log' for more details" "$LINENO" 5; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3430
fi
3431
3432
3433
3434
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
$as_echo_n "checking for C compiler default output file name... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
$as_echo "$ac_file" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3435
3436
ac_exeext=$ac_cv_exeext

3437
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3438
ac_clean_files=$ac_clean_files_save
3439
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3440
$as_echo_n "checking for suffix of executables... " >&6; }
3441
if { { ac_try="$ac_link"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3442
3443
3444
3445
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
3446
3447
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3448
  (eval "$ac_link") 2>&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3449
  ac_status=$?
3450
3451
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3452
3453
3454
3455
3456
3457
3458
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
# work properly (i.e., refer to `conftest.exe'), while it won't with
# `rm'.
for ac_file in conftest.exe conftest conftest.*; do
  test -f "$ac_file" || continue
  case $ac_file in
3459
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3460
3461
3462
3463
3464
3465
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	  break;;
    * ) break;;
  esac
done
else
3466
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3467
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3468
3469
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details" "$LINENO" 5; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3470
fi
3471
3472
rm -f conftest conftest$ac_cv_exeext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3473
$as_echo "$ac_cv_exeext" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3474
3475
3476
3477

rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
int
main ()
{
FILE *f = fopen ("conftest.out", "w");
 return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
ac_clean_files="$ac_clean_files conftest.out"
# Check that the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
$as_echo_n "checking whether we are cross compiling... " >&6; }
if test "$cross_compiling" != yes; then
  { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
  if { ac_try='./conftest$ac_cv_exeext'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then
    cross_compiling=no
  else
    if test "$cross_compiling" = maybe; then
	cross_compiling=yes
    else
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run C compiled programs.
If you meant to cross compile, use \`--host'.
See \`config.log' for more details" "$LINENO" 5; }
    fi
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
$as_echo "$cross_compiling" >&6; }

rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
ac_clean_files=$ac_clean_files_save
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3538
$as_echo_n "checking for suffix of object files... " >&6; }
3539
if ${ac_cv_objext+:} false; then :
3540
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3541
else
3542
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.o conftest.obj
3554
if { { ac_try="$ac_compile"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3555
3556
3557
3558
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
3559
3560
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3561
  (eval "$ac_compile") 2>&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3562
  ac_status=$?
3563
3564
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3565
3566
  for ac_file in conftest.o conftest.obj conftest.*; do
  test -f "$ac_file" || continue;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3567
  case $ac_file in
3568
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3569
3570
3571
3572
3573
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
       break;;
  esac
done
else
3574
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3575
3576
sed 's/^/| /' conftest.$ac_ext >&5

3577
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3578
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3579
3580
as_fn_error $? "cannot compute suffix of object files: cannot compile
See \`config.log' for more details" "$LINENO" 5; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3581
3582
3583
fi
rm -f conftest.$ac_cv_objext conftest.$ac_ext
fi
3584
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3585
$as_echo "$ac_cv_objext" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3586
3587
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
3588
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3589
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3590
if ${ac_cv_c_compiler_gnu+:} false; then :
3591
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3592
else
3593
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
3607
if ac_fn_c_try_compile "$LINENO"; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3608
3609
  ac_compiler_gnu=yes
else
3610
  ac_compiler_gnu=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3611
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3612
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3613
3614
3615
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi
3616
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3617
3618
3619
3620
3621
3622
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GCC=yes
else
  GCC=
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3623
3624
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
3625
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3626
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3627
if ${ac_cv_prog_cc_g+:} false; then :
3628
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3629
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3630
3631
3632
3633
  ac_save_c_werror_flag=$ac_c_werror_flag
   ac_c_werror_flag=yes
   ac_cv_prog_cc_g=no
   CFLAGS="-g"
3634
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
3645
if ac_fn_c_try_compile "$LINENO"; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3646
3647
  ac_cv_prog_cc_g=yes
else
3648
3649
  CFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
3660
if ac_fn_c_try_compile "$LINENO"; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3661

3662
3663
else
  ac_c_werror_flag=$ac_save_c_werror_flag
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3664
	 CFLAGS="-g"
3665
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
3676
if ac_fn_c_try_compile "$LINENO"; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3677
3678
3679
3680
3681
3682
3683
3684
3685
  ac_cv_prog_cc_g=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_c_werror_flag=$ac_save_c_werror_flag
fi
3686
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3687
$as_echo "$ac_cv_prog_cc_g" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
if test "$ac_test_CFLAGS" = set; then
  CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
  if test "$GCC" = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-g"
  fi
else
  if test "$GCC" = yes; then
    CFLAGS="-O2"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3699
3700
3701
3702
  else
    CFLAGS=
  fi
fi
3703
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3704
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3705
if ${ac_cv_prog_cc_c89+:} false; then :
3706
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3707
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3708
  ac_cv_prog_cc_c89=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3709
ac_save_CC=$CC
3710
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}

/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3738
   as 'x'.  The following induces an error, until -std is added to get
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3739
3740
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3741
   that's true only with -std.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3742
3743
int osf4_cc_array ['\x00' == 0 ? 1 : -1];

Emmanuel Bertin's avatar
Emmanuel Bertin committed
3744
3745
3746
3747
3748
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];

Emmanuel Bertin's avatar
Emmanuel Bertin committed
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3763
3764
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3765
3766
do
  CC="$ac_save_CC $ac_arg"
3767
  if ac_fn_c_try_compile "$LINENO"; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3768
  ac_cv_prog_cc_c89=$ac_arg
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3769
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3770
3771
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3772
done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3773
rm -f conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3774
3775
3776
CC=$ac_save_CC

fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3777
3778
3779
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
3780
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3781
$as_echo "none needed" >&6; } ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3782
  xno)
3783
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3784
$as_echo "unsupported" >&6; } ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3785
  *)
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3786
    CC="$CC $ac_cv_prog_cc_c89"
3787
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3788
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3789
esac
3790
if test "x$ac_cv_prog_cc_c89" != xno; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3791

3792
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3793
3794
3795
3796
3797
3798
3799
3800

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
DEPDIR="${am__leading_dot}deps"

Emmanuel Bertin's avatar
Emmanuel Bertin committed
3801
ac_config_commands="$ac_config_commands depfiles"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3802
3803
3804
3805
3806
3807
3808
3809
3810


am_make=${MAKE-make}
cat > confinc << 'END'
am__doit:
	@echo done
.PHONY: am__doit
END
# If we don't find an include directive, just comment out the code.
3811
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3812
$as_echo_n "checking for style of include used by $am_make... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
am__include="#"
am__quote=
_am_result=none
# First try GNU make style include.
echo "include confinc" > confmf
# We grep out `Entering directory' and `Leaving directory'
# messages which can occur if `w' ends up in MAKEFLAGS.
# In particular we don't look at `^make:' because GNU make might
# be invoked under some other name (usually "gmake"), in which
# case it prints its new name instead of `make'.
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
   am__include=include
   am__quote=
   _am_result=GNU
fi
# Now try BSD make style include.
if test "$am__include" = "#"; then
   echo '.include "confinc"' > confmf
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
      am__include=.include
      am__quote="\""
      _am_result=BSD
   fi
fi


3839
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3840
$as_echo "$_am_result" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3841
3842
rm -f confinc confmf

Emmanuel Bertin's avatar
Emmanuel Bertin committed
3843
# Check whether --enable-dependency-tracking was given.
3844
if test "${enable_dependency_tracking+set}" = set; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3845
3846
  enableval=$enable_dependency_tracking;
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3847
3848
3849
3850
3851

if test "x$enable_dependency_tracking" != xno; then
  am_depcomp="$ac_aux_dir/depcomp"
  AMDEPBACKSLASH='\'
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3852
 if test "x$enable_dependency_tracking" != xno; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
  AMDEP_TRUE=
  AMDEP_FALSE='#'
else
  AMDEP_TRUE='#'
  AMDEP_FALSE=
fi



depcc="$CC"   am_compiler_list=

3864
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3865
$as_echo_n "checking dependency style of $depcc... " >&6; }
3866
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3867
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
else
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  # We make a subdir and do the tests there.  Otherwise we can end up
  # making bogus files that we don't know about and never remove.  For
  # instance it was reported that on HP-UX the gcc test will end up
  # making a dummy file named `D' -- because `-MD' means `put the output
  # in D'.
  mkdir conftest.dir
  # Copy depcomp to subdir because otherwise we won't find it if we're
  # using a relative directory.
  cp "$am_depcomp" conftest.dir
  cd conftest.dir
  # We will build objects and dependencies in a subdirectory because
  # it helps to detect inapplicable dependency modes.  For instance
  # both Tru64's cc and ICC support -MD to output dependencies as a
  # side effect of compilation, but ICC will put the dependencies in
  # the current directory while Tru64 will put them in the object
  # directory.
  mkdir sub

  am_cv_CC_dependencies_compiler_type=none
  if test "$am_compiler_list" = ""; then
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  fi
  for depmode in $am_compiler_list; do
    # Setup a source with many dependencies, because some compilers
    # like to wrap large dependency lists on column 80 (with \), and
    # we should not choose a depcomp mode which is confused by this.
    #
    # We need to recreate these files for each test, as the compiler may
    # overwrite some of them when testing with obscure command lines.
    # This happens at least with the AIX C compiler.
    : > sub/conftest.c
    for i in 1 2 3 4 5 6; do
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
      # Solaris 8's {/usr,}/bin/sh.
      touch sub/conftst$i.h
    done
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf

    case $depmode in
    nosideeffect)
      # after this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested
      if test "x$enable_dependency_tracking" = xyes; then
	continue
      else
	break
      fi
      ;;
    none) break ;;
    esac
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
    # mode.  It turns out that the SunPro C++ compiler does not properly
    # handle `-M -o', and we need to detect this.
    if depmode=$depmode \
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
         >/dev/null 2>conftest.err &&
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3929
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
      # icc doesn't choke on unknown options, it will just issue warnings
      # or remarks (even with -Werror).  So we grep stderr for any message
      # that says an option was ignored or not supported.
      # When given -MP, icc 7.0 and 7.1 complain thusly:
      #   icc: Command line warning: ignoring option '-M'; no argument required
      # The diagnosis changed in icc 8.0:
      #   icc: Command line remark: option '-MP' not supported
      if (grep 'ignoring option' conftest.err ||
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
        am_cv_CC_dependencies_compiler_type=$depmode
        break
      fi
    fi
  done

  cd ..
  rm -rf conftest.dir
else
  am_cv_CC_dependencies_compiler_type=none
fi

fi
3955
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3956
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3957
3958
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type

Emmanuel Bertin's avatar
Emmanuel Bertin committed
3959
 if
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
  test "x$enable_dependency_tracking" != xno \
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  am__fastdepCC_TRUE=
  am__fastdepCC_FALSE='#'
else
  am__fastdepCC_TRUE='#'
  am__fastdepCC_FALSE=
fi


Emmanuel Bertin's avatar
Emmanuel Bertin committed
3970
# C Compiler: Check that it is ANSI C and POSIX-compliant
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3971
3972
3973
3974
3975
3976
3977
3978
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
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3979
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3980
$as_echo_n "checking for $ac_word... " >&6; }
3981
if ${ac_cv_prog_CC+:} false; then :
3982
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3983
3984
3985
3986
3987
3988
3989
3990
3991
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # 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=.
3992
    for ac_exec_ext in '' $ac_executable_extensions; do
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3993
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3994
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3995
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3996
3997
3998
    break 2
  fi
done
3999
  done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4000
IFS=$as_save_IFS
For faster browsing, not all history is shown. View entire blame