public software.sextractor

[/] [trunk/] [configure] - Blame information for rev 177

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 bertin
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3 177 bertin
# Generated by GNU Autoconf 2.61 for sextractor 2.8.3.
4 2 bertin
#
5
# Report bugs to .
6
#
7 173 bertin
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 2 bertin
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
## --------------------- ##
12
## M4sh Initialization.  ##
13
## --------------------- ##
14
 
15 173 bertin
# Be more Bourne compatible
16
DUALCASE=1; export DUALCASE # for MKS sh
17 2 bertin
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18
  emulate sh
19
  NULLCMD=:
20
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21
  # is contrary to our usage.  Disable this feature.
22
  alias -g '${1+"$@"}'='"$@"'
23 173 bertin
  setopt NO_GLOB_SUBST
24
else
25
  case `(set -o) 2>/dev/null` in
26
  *posix*) set -o posix ;;
27
esac
28
 
29 2 bertin
fi
30
 
31 173 bertin
 
32
 
33
 
34
# PATH needs CR
35
# Avoid depending upon Character Ranges.
36
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39
as_cr_digits='0123456789'
40
as_cr_alnum=$as_cr_Letters$as_cr_digits
41
 
42
# The user is always right.
43
if test "${PATH_SEPARATOR+set}" != set; then
44
  echo "#! /bin/sh" >conf$$.sh
45
  echo  "exit 0"   >>conf$$.sh
46
  chmod +x conf$$.sh
47
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48
    PATH_SEPARATOR=';'
49
  else
50
    PATH_SEPARATOR=:
51
  fi
52
  rm -f conf$$.sh
53
fi
54
 
55 2 bertin
# Support unset when possible.
56
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57
  as_unset=unset
58
else
59
  as_unset=false
60
fi
61
 
62
 
63 173 bertin
# IFS
64
# We need space, tab and new line, in precisely that order.  Quoting is
65
# there to prevent editors from complaining about space-tab.
66
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67
# splitting by setting IFS to empty value.)
68
as_nl='
69
'
70
IFS=" ""        $as_nl"
71
 
72
# Find who we are.  Look in the path if we contain no directory separator.
73
case $0 in
74
  *[\\/]* ) as_myself=$0 ;;
75
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76
for as_dir in $PATH
77
do
78
  IFS=$as_save_IFS
79
  test -z "$as_dir" && as_dir=.
80
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81
done
82
IFS=$as_save_IFS
83
 
84
     ;;
85
esac
86
# We did not find ourselves, most probably we were run as `sh COMMAND'
87
# in which case we are not to be found in the path.
88
if test "x$as_myself" = x; then
89
  as_myself=$0
90
fi
91
if test ! -f "$as_myself"; then
92
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93
  { (exit 1); exit 1; }
94
fi
95
 
96 2 bertin
# Work around bugs in pre-3.0 UWIN ksh.
97 173 bertin
for as_var in ENV MAIL MAILPATH
98
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99
done
100 2 bertin
PS1='$ '
101
PS2='> '
102
PS4='+ '
103
 
104
# NLS nuisances.
105
for as_var in \
106
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108
  LC_TELEPHONE LC_TIME
109
do
110
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111
    eval $as_var=C; export $as_var
112
  else
113 173 bertin
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 2 bertin
  fi
115
done
116
 
117
# Required to use basename.
118 173 bertin
if expr a : '\(a\)' >/dev/null 2>&1 &&
119
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 2 bertin
  as_expr=expr
121
else
122
  as_expr=false
123
fi
124
 
125 173 bertin
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 2 bertin
  as_basename=basename
127
else
128
  as_basename=false
129
fi
130
 
131
 
132
# Name of the executable.
133 173 bertin
as_me=`$as_basename -- "$0" ||
134 2 bertin
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135
         X"$0" : 'X\(//\)$' \| \
136 173 bertin
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 2 bertin
echo X/"$0" |
138 173 bertin
    sed '/^.*\/\([^/][^/]*\)\/*$/{
139
            s//\1/
140
            q
141
          }
142
          /^X\/\(\/\/\)$/{
143
            s//\1/
144
            q
145
          }
146
          /^X\/\(\/\).*/{
147
            s//\1/
148
            q
149
          }
150
          s/.*/./; q'`
151 2 bertin
 
152 173 bertin
# CDPATH.
153
$as_unset CDPATH
154 2 bertin
 
155
 
156 173 bertin
if test "x$CONFIG_SHELL" = x; then
157
  if (eval ":") 2>/dev/null; then
158
  as_have_required=yes
159
else
160
  as_have_required=no
161 2 bertin
fi
162
 
163 173 bertin
  if test $as_have_required = yes &&     (eval ":
164
(as_func_return () {
165
  (exit \$1)
166
}
167
as_func_success () {
168
  as_func_return 0
169
}
170
as_func_failure () {
171
  as_func_return 1
172
}
173
as_func_ret_success () {
174
  return 0
175
}
176
as_func_ret_failure () {
177
  return 1
178
}
179 2 bertin
 
180 173 bertin
exitcode=0
181
if as_func_success; then
182
  :
183
else
184
  exitcode=1
185
  echo as_func_success failed.
186
fi
187 2 bertin
 
188 173 bertin
if as_func_failure; then
189
  exitcode=1
190
  echo as_func_failure succeeded.
191
fi
192
 
193
if as_func_ret_success; then
194
  :
195
else
196
  exitcode=1
197
  echo as_func_ret_success failed.
198
fi
199
 
200
if as_func_ret_failure; then
201
  exitcode=1
202
  echo as_func_ret_failure succeeded.
203
fi
204
 
205
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206
  :
207
else
208
  exitcode=1
209
  echo positional parameters were not saved.
210
fi
211
 
212
test \$exitcode = 0) || { (exit 1); exit 1; }
213
 
214
(
215
  as_lineno_1=\$LINENO
216
  as_lineno_2=\$LINENO
217
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219
") 2> /dev/null; then
220
  :
221
else
222
  as_candidate_shells=
223 2 bertin
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225
do
226
  IFS=$as_save_IFS
227
  test -z "$as_dir" && as_dir=.
228 173 bertin
  case $as_dir in
229 2 bertin
         /*)
230 173 bertin
           for as_base in sh bash ksh sh5; do
231
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232
           done;;
233
       esac
234
done
235
IFS=$as_save_IFS
236
 
237
 
238
      for as_shell in $as_candidate_shells $SHELL; do
239
         # Try only shells that exist, to save several forks.
240
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241
                { ("$as_shell") 2> /dev/null <<\_ASEOF
242
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243
  emulate sh
244
  NULLCMD=:
245
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246
  # is contrary to our usage.  Disable this feature.
247
  alias -g '${1+"$@"}'='"$@"'
248
  setopt NO_GLOB_SUBST
249
else
250
  case `(set -o) 2>/dev/null` in
251
  *posix*) set -o posix ;;
252
esac
253
 
254
fi
255
 
256
 
257
:
258
_ASEOF
259
}; then
260
  CONFIG_SHELL=$as_shell
261
               as_have_required=yes
262
               if { "$as_shell" 2> /dev/null <<\_ASEOF
263
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264
  emulate sh
265
  NULLCMD=:
266
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267
  # is contrary to our usage.  Disable this feature.
268
  alias -g '${1+"$@"}'='"$@"'
269
  setopt NO_GLOB_SUBST
270
else
271
  case `(set -o) 2>/dev/null` in
272
  *posix*) set -o posix ;;
273
esac
274
 
275
fi
276
 
277
 
278
:
279
(as_func_return () {
280
  (exit $1)
281
}
282
as_func_success () {
283
  as_func_return 0
284
}
285
as_func_failure () {
286
  as_func_return 1
287
}
288
as_func_ret_success () {
289
  return 0
290
}
291
as_func_ret_failure () {
292
  return 1
293
}
294
 
295
exitcode=0
296
if as_func_success; then
297
  :
298
else
299
  exitcode=1
300
  echo as_func_success failed.
301
fi
302
 
303
if as_func_failure; then
304
  exitcode=1
305
  echo as_func_failure succeeded.
306
fi
307
 
308
if as_func_ret_success; then
309
  :
310
else
311
  exitcode=1
312
  echo as_func_ret_success failed.
313
fi
314
 
315
if as_func_ret_failure; then
316
  exitcode=1
317
  echo as_func_ret_failure succeeded.
318
fi
319
 
320
if ( set x; as_func_ret_success y && test x = "$1" ); then
321
  :
322
else
323
  exitcode=1
324
  echo positional parameters were not saved.
325
fi
326
 
327
test $exitcode = 0) || { (exit 1); exit 1; }
328
 
329
(
330 2 bertin
  as_lineno_1=$LINENO
331
  as_lineno_2=$LINENO
332
  test "x$as_lineno_1" != "x$as_lineno_2" &&
333 173 bertin
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334 2 bertin
 
335 173 bertin
_ASEOF
336
}; then
337
  break
338
fi
339
 
340
fi
341
 
342
      done
343
 
344
      if test "x$CONFIG_SHELL" != x; then
345
  for as_var in BASH_ENV ENV
346
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347
        done
348
        export CONFIG_SHELL
349
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350
fi
351
 
352
 
353
    if test $as_have_required = no; then
354
  echo This script requires a shell more modern than all the
355
      echo shells that I found on your system.  Please install a
356
      echo modern shell, or manually run the script under such a
357
      echo shell if you do have one.
358
      { (exit 1); exit 1; }
359
fi
360
 
361
 
362
fi
363
 
364
fi
365
 
366
 
367
 
368
(eval "as_func_return () {
369
  (exit \$1)
370
}
371
as_func_success () {
372
  as_func_return 0
373
}
374
as_func_failure () {
375
  as_func_return 1
376
}
377
as_func_ret_success () {
378
  return 0
379
}
380
as_func_ret_failure () {
381
  return 1
382
}
383
 
384
exitcode=0
385
if as_func_success; then
386
  :
387
else
388
  exitcode=1
389
  echo as_func_success failed.
390
fi
391
 
392
if as_func_failure; then
393
  exitcode=1
394
  echo as_func_failure succeeded.
395
fi
396
 
397
if as_func_ret_success; then
398
  :
399
else
400
  exitcode=1
401
  echo as_func_ret_success failed.
402
fi
403
 
404
if as_func_ret_failure; then
405
  exitcode=1
406
  echo as_func_ret_failure succeeded.
407
fi
408
 
409
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410
  :
411
else
412
  exitcode=1
413
  echo positional parameters were not saved.
414
fi
415
 
416
test \$exitcode = 0") || {
417
  echo No shell found that supports shell functions.
418
  echo Please tell autoconf@gnu.org about your system,
419
  echo including any error possibly output before this
420
  echo message
421
}
422
 
423
 
424
 
425
  as_lineno_1=$LINENO
426
  as_lineno_2=$LINENO
427
  test "x$as_lineno_1" != "x$as_lineno_2" &&
428
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
 
430 2 bertin
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431
  # uniformly replaced by the line number.  The first 'sed' inserts a
432 173 bertin
  # line-number line after each line using $LINENO; the second 'sed'
433
  # does the real work.  The second script uses 'N' to pair each
434
  # line-number line with the line containing $LINENO, and appends
435
  # trailing '-' during substitution so that $LINENO is not a special
436
  # case at line end.
437 2 bertin
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 173 bertin
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
439
  # E. McMahon (1931-1989) for sed's syntax.  :-)
440
  sed -n '
441
    p
442
    /[$]LINENO/=
443
  ' <$as_myself |
444 2 bertin
    sed '
445 173 bertin
      s/[$]LINENO.*/&-/
446
      t lineno
447
      b
448
      :lineno
449 2 bertin
      N
450 173 bertin
      :loop
451
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 2 bertin
      t loop
453 173 bertin
      s/-\n.*//
454 2 bertin
    ' >$as_me.lineno &&
455 173 bertin
  chmod +x "$as_me.lineno" ||
456 2 bertin
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457
   { (exit 1); exit 1; }; }
458
 
459
  # Don't try to exec as it changes $[0], causing all sort of problems
460
  # (the dirname of $[0] is not the place where we might find the
461 173 bertin
  # original and so on.  Autoconf is especially sensitive to this).
462
  . "./$as_me.lineno"
463 2 bertin
  # Exit status is that of the last command.
464
  exit
465
}
466
 
467
 
468 173 bertin
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469
  as_dirname=dirname
470
else
471
  as_dirname=false
472
fi
473
 
474
ECHO_C= ECHO_N= ECHO_T=
475
case `echo -n x` in
476
-n*)
477
  case `echo 'x\c'` in
478
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479
  *)   ECHO_C='\c';;
480
  esac;;
481
*)
482
  ECHO_N='-n';;
483 2 bertin
esac
484
 
485 173 bertin
if expr a : '\(a\)' >/dev/null 2>&1 &&
486
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 2 bertin
  as_expr=expr
488
else
489
  as_expr=false
490
fi
491
 
492
rm -f conf$$ conf$$.exe conf$$.file
493 173 bertin
if test -d conf$$.dir; then
494
  rm -f conf$$.dir/conf$$.file
495
else
496
  rm -f conf$$.dir
497
  mkdir conf$$.dir
498
fi
499 2 bertin
echo >conf$$.file
500
if ln -s conf$$.file conf$$ 2>/dev/null; then
501 173 bertin
  as_ln_s='ln -s'
502
  # ... but there are two gotchas:
503
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505
  # In both cases, we have to default to `cp -p'.
506
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 2 bertin
    as_ln_s='cp -p'
508
elif ln conf$$.file conf$$ 2>/dev/null; then
509
  as_ln_s=ln
510
else
511
  as_ln_s='cp -p'
512
fi
513 173 bertin
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514
rmdir conf$$.dir 2>/dev/null
515 2 bertin
 
516
if mkdir -p . 2>/dev/null; then
517
  as_mkdir_p=:
518
else
519
  test -d ./-p && rmdir ./-p
520
  as_mkdir_p=false
521
fi
522
 
523 173 bertin
if test -x / >/dev/null 2>&1; then
524
  as_test_x='test -x'
525
else
526
  if ls -dL / >/dev/null 2>&1; then
527
    as_ls_L_option=L
528
  else
529
    as_ls_L_option=
530
  fi
531
  as_test_x='
532
    eval sh -c '\''
533
      if test -d "$1"; then
534
        test -d "$1/.";
535
      else
536
        case $1 in
537
        -*)set "./$1";;
538
        esac;
539
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540
        ???[sx]*):;;*)false;;esac;fi
541
    '\'' sh
542
  '
543
fi
544
as_executable_p=$as_test_x
545 2 bertin
 
546
# Sed expression to map a string onto a valid CPP name.
547
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
 
549
# Sed expression to map a string onto a valid variable name.
550
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
 
552
 
553
 
554
 
555 173 bertin
# Check that we are running under the correct shell.
556
SHELL=${CONFIG_SHELL-/bin/sh}
557 2 bertin
 
558 173 bertin
case X$ECHO in
559
X*--fallback-echo)
560
  # Remove one level of quotation (which was required for Make).
561
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562
  ;;
563
esac
564
 
565
echo=${ECHO-echo}
566
if test "X$1" = X--no-reexec; then
567
  # Discard the --no-reexec flag, and continue.
568
  shift
569
elif test "X$1" = X--fallback-echo; then
570
  # Avoid inline document here, it may be left over
571
  :
572
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573
  # Yippee, $echo works!
574
  :
575
else
576
  # Restart under the correct shell.
577
  exec $SHELL "$0" --no-reexec ${1+"$@"}
578
fi
579
 
580
if test "X$1" = X--fallback-echo; then
581
  # used as fallback echo
582
  shift
583
  cat <
584
$*
585
EOF
586
  exit 0
587
fi
588
 
589
# The HP-UX ksh and POSIX shell print the target directory to stdout
590
# if CDPATH is set.
591
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
 
593
if test -z "$ECHO"; then
594
if test "X${echo_test_string+set}" != Xset; then
595
# find a string as large as possible, as long as the shell can cope with it
596
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599
       echo_test_string=`eval $cmd` &&
600
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601
    then
602
      break
603
    fi
604
  done
605
fi
606
 
607
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609
   test "X$echo_testing_string" = "X$echo_test_string"; then
610
  :
611
else
612
  # The Solaris, AIX, and Digital Unix default echo programs unquote
613
  # backslashes.  This makes it impossible to quote backslashes using
614
  #   echo "$something" | sed 's/\\/\\\\/g'
615
  #
616
  # So, first we look for a working echo in the user's PATH.
617
 
618
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619
  for dir in $PATH /usr/ucb; do
620
    IFS="$lt_save_ifs"
621
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624
       test "X$echo_testing_string" = "X$echo_test_string"; then
625
      echo="$dir/echo"
626
      break
627
    fi
628
  done
629
  IFS="$lt_save_ifs"
630
 
631
  if test "X$echo" = Xecho; then
632
    # We didn't find a better echo, so look for alternatives.
633
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635
       test "X$echo_testing_string" = "X$echo_test_string"; then
636
      # This shell has a builtin print -r that does the trick.
637
      echo='print -r'
638
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639
         test "X$CONFIG_SHELL" != X/bin/ksh; then
640
      # If we have ksh, try running configure again with it.
641
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642
      export ORIGINAL_CONFIG_SHELL
643
      CONFIG_SHELL=/bin/ksh
644
      export CONFIG_SHELL
645
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646
    else
647
      # Try using printf.
648
      echo='printf %s\n'
649
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651
         test "X$echo_testing_string" = "X$echo_test_string"; then
652
        # Cool, printf works
653
        :
654
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655
           test "X$echo_testing_string" = 'X\t' &&
656
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657
           test "X$echo_testing_string" = "X$echo_test_string"; then
658
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659
        export CONFIG_SHELL
660
        SHELL="$CONFIG_SHELL"
661
        export SHELL
662
        echo="$CONFIG_SHELL $0 --fallback-echo"
663
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664
           test "X$echo_testing_string" = 'X\t' &&
665
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666
           test "X$echo_testing_string" = "X$echo_test_string"; then
667
        echo="$CONFIG_SHELL $0 --fallback-echo"
668
      else
669
        # maybe with a smaller string...
670
        prev=:
671
 
672
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674
          then
675
            break
676
          fi
677
          prev="$cmd"
678
        done
679
 
680
        if test "$prev" != 'sed 50q "$0"'; then
681
          echo_test_string=`eval $prev`
682
          export echo_test_string
683
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684
        else
685
          # Oops.  We lost completely, so just stick with echo.
686
          echo=echo
687
        fi
688
      fi
689
    fi
690
  fi
691
fi
692
fi
693
 
694
# Copy echo and quote the copy suitably for passing to libtool from
695
# the Makefile, instead of quoting the original, which is used later.
696
ECHO=$echo
697
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699
fi
700
 
701
 
702
 
703
 
704
tagnames=${tagnames+${tagnames},}CXX
705
 
706
tagnames=${tagnames+${tagnames},}F77
707
 
708
exec 7<&0 &1
709
 
710 2 bertin
# Name of the host.
711
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712
# so uname gets run too.
713
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
 
715
#
716
# Initializations.
717
#
718
ac_default_prefix=/usr/local
719 173 bertin
ac_clean_files=
720 2 bertin
ac_config_libobj_dir=.
721 173 bertin
LIBOBJS=
722 2 bertin
cross_compiling=no
723
subdirs=
724
MFLAGS=
725
MAKEFLAGS=
726
SHELL=${CONFIG_SHELL-/bin/sh}
727
 
728
# Identity of this package.
729
PACKAGE_NAME='sextractor'
730
PACKAGE_TARNAME='sextractor'
731 177 bertin
PACKAGE_VERSION='2.8.3'
732
PACKAGE_STRING='sextractor 2.8.3'
733 2 bertin
PACKAGE_BUGREPORT='bertin@iap.fr'
734
 
735
ac_unique_file="src/makeit.c"
736
# Factoring default headers for most tests.
737
ac_includes_default="\
738
#include 
739 173 bertin
#ifdef HAVE_SYS_TYPES_H
740 2 bertin
# include 
741
#endif
742 173 bertin
#ifdef HAVE_SYS_STAT_H
743 2 bertin
# include 
744
#endif
745 173 bertin
#ifdef STDC_HEADERS
746 2 bertin
# include 
747
# include 
748
#else
749 173 bertin
# ifdef HAVE_STDLIB_H
750 2 bertin
#  include 
751
# endif
752
#endif
753 173 bertin
#ifdef HAVE_STRING_H
754
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 2 bertin
#  include 
756
# endif
757
# include 
758
#endif
759 173 bertin
#ifdef HAVE_STRINGS_H
760 2 bertin
# include 
761
#endif
762 173 bertin
#ifdef HAVE_INTTYPES_H
763 2 bertin
# include 
764
#endif
765 173 bertin
#ifdef HAVE_STDINT_H
766
# include 
767
#endif
768
#ifdef HAVE_UNISTD_H
769 2 bertin
# include 
770
#endif"
771
 
772 173 bertin
ac_subst_vars='SHELL
773
PATH_SEPARATOR
774
PACKAGE_NAME
775
PACKAGE_TARNAME
776
PACKAGE_VERSION
777
PACKAGE_STRING
778
PACKAGE_BUGREPORT
779
exec_prefix
780
prefix
781
program_transform_name
782
bindir
783
sbindir
784
libexecdir
785
datarootdir
786
datadir
787
sysconfdir
788
sharedstatedir
789
localstatedir
790
includedir
791
oldincludedir
792
docdir
793
infodir
794
htmldir
795
dvidir
796
pdfdir
797
psdir
798
libdir
799
localedir
800
mandir
801
DEFS
802
ECHO_C
803
ECHO_N
804
ECHO_T
805
LIBS
806
build_alias
807
host_alias
808
target_alias
809
INSTALL_PROGRAM
810
INSTALL_SCRIPT
811
INSTALL_DATA
812
am__isrc
813
CYGPATH_W
814
PACKAGE
815
VERSION
816
ACLOCAL
817
AUTOCONF
818
AUTOMAKE
819
AUTOHEADER
820
MAKEINFO
821
install_sh
822
STRIP
823
INSTALL_STRIP_PROGRAM
824
mkdir_p
825
AWK
826
SET_MAKE
827
am__leading_dot
828
AMTAR
829
am__tar
830
am__untar
831
PACKAGER
832
DATE2
833
DATE3
834
CC
835
CFLAGS
836
LDFLAGS
837
CPPFLAGS
838
ac_ct_CC
839
EXEEXT
840
OBJEXT
841
DEPDIR
842
am__include
843
am__quote
844
AMDEP_TRUE
845
AMDEP_FALSE
846
AMDEPBACKSLASH
847
CCDEPMODE
848
am__fastdepCC_TRUE
849
am__fastdepCC_FALSE
850
build
851
build_cpu
852
build_vendor
853
build_os
854
host
855
host_cpu
856
host_vendor
857
host_os
858
SED
859
GREP
860
EGREP
861
LN_S
862
ECHO
863
AR
864
RANLIB
865
CPP
866
CXX
867
CXXFLAGS
868
ac_ct_CXX
869
CXXDEPMODE
870
am__fastdepCXX_TRUE
871
am__fastdepCXX_FALSE
872
CXXCPP
873
F77
874
FFLAGS
875
ac_ct_F77
876
LIBTOOL
877
LIBOBJS
878
PTHREAD_CC
879
PTHREAD_LIBS
880
PTHREAD_CFLAGS
881
USE_THREADS_TRUE
882
USE_THREADS_FALSE
883
FFTW_LIBS
884
FFTW_ERROR
885
ATLAS_LIBPATH
886
ATLAS_CFLAGS
887
ATLAS_LIB
888
ATLAS_ERROR
889
LTLIBOBJS'
890 2 bertin
ac_subst_files=''
891 173 bertin
      ac_precious_vars='build_alias
892
host_alias
893
target_alias
894
CC
895
CFLAGS
896
LDFLAGS
897
LIBS
898
CPPFLAGS
899
CPP
900
CXX
901
CXXFLAGS
902
CCC
903
CXXCPP
904
F77
905
FFLAGS'
906 2 bertin
 
907 173 bertin
 
908 2 bertin
# Initialize some variables set by options.
909
ac_init_help=
910
ac_init_version=false
911
# The variables have the same names as the options, with
912
# dashes changed to underlines.
913
cache_file=/dev/null
914
exec_prefix=NONE
915
no_create=
916
no_recursion=
917
prefix=NONE
918
program_prefix=NONE
919
program_suffix=NONE
920
program_transform_name=s,x,x,
921
silent=
922
site=
923
srcdir=
924
verbose=
925
x_includes=NONE
926
x_libraries=NONE
927
 
928
# Installation directory options.
929
# These are left unexpanded so users can "make install exec_prefix=/foo"
930
# and all the variables that are supposed to be based on exec_prefix
931
# by default will actually change.
932
# Use braces instead of parens because sh, perl, etc. also accept them.
933 173 bertin
# (The list follows the same order as the GNU Coding Standards.)
934 2 bertin
bindir='${exec_prefix}/bin'
935
sbindir='${exec_prefix}/sbin'
936
libexecdir='${exec_prefix}/libexec'
937 173 bertin
datarootdir='${prefix}/share'
938
datadir='${datarootdir}'
939 2 bertin
sysconfdir='${prefix}/etc'
940
sharedstatedir='${prefix}/com'
941
localstatedir='${prefix}/var'
942
includedir='${prefix}/include'
943
oldincludedir='/usr/include'
944 173 bertin
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
945
infodir='${datarootdir}/info'
946
htmldir='${docdir}'
947
dvidir='${docdir}'
948
pdfdir='${docdir}'
949
psdir='${docdir}'
950
libdir='${exec_prefix}/lib'
951
localedir='${datarootdir}/locale'
952
mandir='${datarootdir}/man'
953 2 bertin
 
954
ac_prev=
955 173 bertin
ac_dashdash=
956 2 bertin
for ac_option
957
do
958
  # If the previous option needs an argument, assign it.
959
  if test -n "$ac_prev"; then
960 173 bertin
    eval $ac_prev=\$ac_option
961 2 bertin
    ac_prev=
962
    continue
963
  fi
964
 
965 173 bertin
  case $ac_option in
966
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
967
  *)    ac_optarg=yes ;;
968
  esac
969 2 bertin
 
970
  # Accept the important Cygnus configure options, so we can diagnose typos.
971
 
972 173 bertin
  case $ac_dashdash$ac_option in
973
  --)
974
    ac_dashdash=yes ;;
975 2 bertin
 
976
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
977
    ac_prev=bindir ;;
978
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
979
    bindir=$ac_optarg ;;
980
 
981
  -build | --build | --buil | --bui | --bu)
982
    ac_prev=build_alias ;;
983
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
984
    build_alias=$ac_optarg ;;
985
 
986
  -cache-file | --cache-file | --cache-fil | --cache-fi \
987
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
988
    ac_prev=cache_file ;;
989
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
990
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
991
    cache_file=$ac_optarg ;;
992
 
993
  --config-cache | -C)
994
    cache_file=config.cache ;;
995
 
996 173 bertin
  -datadir | --datadir | --datadi | --datad)
997 2 bertin
    ac_prev=datadir ;;
998 173 bertin
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
999 2 bertin
    datadir=$ac_optarg ;;
1000
 
1001 173 bertin
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1002
  | --dataroo | --dataro | --datar)
1003
    ac_prev=datarootdir ;;
1004
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1005
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1006
    datarootdir=$ac_optarg ;;
1007
 
1008 2 bertin
  -disable-* | --disable-*)
1009
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1010
    # Reject names that are not valid shell variable names.
1011 173 bertin
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1012 2 bertin
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1013
   { (exit 1); exit 1; }; }
1014 173 bertin
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1015
    eval enable_$ac_feature=no ;;
1016 2 bertin
 
1017 173 bertin
  -docdir | --docdir | --docdi | --doc | --do)
1018
    ac_prev=docdir ;;
1019
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1020
    docdir=$ac_optarg ;;
1021
 
1022
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1023
    ac_prev=dvidir ;;
1024
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1025
    dvidir=$ac_optarg ;;
1026
 
1027 2 bertin
  -enable-* | --enable-*)
1028
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1029
    # Reject names that are not valid shell variable names.
1030 173 bertin
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1031 2 bertin
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1032
   { (exit 1); exit 1; }; }
1033 173 bertin
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1034
    eval enable_$ac_feature=\$ac_optarg ;;
1035 2 bertin
 
1036
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1037
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1038
  | --exec | --exe | --ex)
1039
    ac_prev=exec_prefix ;;
1040
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1041
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1042
  | --exec=* | --exe=* | --ex=*)
1043
    exec_prefix=$ac_optarg ;;
1044
 
1045
  -gas | --gas | --ga | --g)
1046
    # Obsolete; use --with-gas.
1047
    with_gas=yes ;;
1048
 
1049
  -help | --help | --hel | --he | -h)
1050
    ac_init_help=long ;;
1051
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1052
    ac_init_help=recursive ;;
1053
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1054
    ac_init_help=short ;;
1055
 
1056
  -host | --host | --hos | --ho)
1057
    ac_prev=host_alias ;;
1058
  -host=* | --host=* | --hos=* | --ho=*)
1059
    host_alias=$ac_optarg ;;
1060
 
1061 173 bertin
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1062
    ac_prev=htmldir ;;
1063
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1064
  | --ht=*)
1065
    htmldir=$ac_optarg ;;
1066
 
1067 2 bertin
  -includedir | --includedir | --includedi | --included | --include \
1068
  | --includ | --inclu | --incl | --inc)
1069
    ac_prev=includedir ;;
1070
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1071
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1072
    includedir=$ac_optarg ;;
1073
 
1074
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1075
    ac_prev=infodir ;;
1076
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1077
    infodir=$ac_optarg ;;
1078
 
1079
  -libdir | --libdir | --libdi | --libd)
1080
    ac_prev=libdir ;;
1081
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1082
    libdir=$ac_optarg ;;
1083
 
1084
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1085
  | --libexe | --libex | --libe)
1086
    ac_prev=libexecdir ;;
1087
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1088
  | --libexe=* | --libex=* | --libe=*)
1089
    libexecdir=$ac_optarg ;;
1090
 
1091 173 bertin
  -localedir | --localedir | --localedi | --localed | --locale)
1092
    ac_prev=localedir ;;
1093
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1094
    localedir=$ac_optarg ;;
1095
 
1096 2 bertin
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1097 173 bertin
  | --localstate | --localstat | --localsta | --localst | --locals)
1098 2 bertin
    ac_prev=localstatedir ;;
1099
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1100 173 bertin
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1101 2 bertin
    localstatedir=$ac_optarg ;;
1102
 
1103
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1104
    ac_prev=mandir ;;
1105
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1106
    mandir=$ac_optarg ;;
1107
 
1108
  -nfp | --nfp | --nf)
1109
    # Obsolete; use --without-fp.
1110
    with_fp=no ;;
1111
 
1112
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1113
  | --no-cr | --no-c | -n)
1114
    no_create=yes ;;
1115
 
1116
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1117
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1118
    no_recursion=yes ;;
1119
 
1120
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1121
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1122
  | --oldin | --oldi | --old | --ol | --o)
1123
    ac_prev=oldincludedir ;;
1124
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1125
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1126
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1127
    oldincludedir=$ac_optarg ;;
1128
 
1129
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1130
    ac_prev=prefix ;;
1131
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1132
    prefix=$ac_optarg ;;
1133
 
1134
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1135
  | --program-pre | --program-pr | --program-p)
1136
    ac_prev=program_prefix ;;
1137
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1138
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1139
    program_prefix=$ac_optarg ;;
1140
 
1141
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1142
  | --program-suf | --program-su | --program-s)
1143
    ac_prev=program_suffix ;;
1144
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1145
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1146
    program_suffix=$ac_optarg ;;
1147
 
1148
  -program-transform-name | --program-transform-name \
1149
  | --program-transform-nam | --program-transform-na \
1150
  | --program-transform-n | --program-transform- \
1151
  | --program-transform | --program-transfor \
1152
  | --program-transfo | --program-transf \
1153
  | --program-trans | --program-tran \
1154
  | --progr-tra | --program-tr | --program-t)
1155
    ac_prev=program_transform_name ;;
1156
  -program-transform-name=* | --program-transform-name=* \
1157
  | --program-transform-nam=* | --program-transform-na=* \
1158
  | --program-transform-n=* | --program-transform-=* \
1159
  | --program-transform=* | --program-transfor=* \
1160
  | --program-transfo=* | --program-transf=* \
1161
  | --program-trans=* | --program-tran=* \
1162
  | --progr-tra=* | --program-tr=* | --program-t=*)
1163
    program_transform_name=$ac_optarg ;;
1164
 
1165 173 bertin
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1166
    ac_prev=pdfdir ;;
1167
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1168
    pdfdir=$ac_optarg ;;
1169
 
1170
  -psdir | --psdir | --psdi | --psd | --ps)
1171
    ac_prev=psdir ;;
1172
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1173
    psdir=$ac_optarg ;;
1174
 
1175 2 bertin
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1176
  | -silent | --silent | --silen | --sile | --sil)
1177
    silent=yes ;;
1178
 
1179
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1180
    ac_prev=sbindir ;;
1181
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1182
  | --sbi=* | --sb=*)
1183
    sbindir=$ac_optarg ;;
1184
 
1185
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1186
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1187
  | --sharedst | --shareds | --shared | --share | --shar \
1188
  | --sha | --sh)
1189
    ac_prev=sharedstatedir ;;
1190
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1191
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1192
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1193
  | --sha=* | --sh=*)
1194
    sharedstatedir=$ac_optarg ;;
1195
 
1196
  -site | --site | --sit)
1197
    ac_prev=site ;;
1198
  -site=* | --site=* | --sit=*)
1199
    site=$ac_optarg ;;
1200
 
1201
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1202
    ac_prev=srcdir ;;
1203
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1204
    srcdir=$ac_optarg ;;
1205
 
1206
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1207
  | --syscon | --sysco | --sysc | --sys | --sy)
1208
    ac_prev=sysconfdir ;;
1209
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1210
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1211
    sysconfdir=$ac_optarg ;;
1212
 
1213
  -target | --target | --targe | --targ | --tar | --ta | --t)
1214
    ac_prev=target_alias ;;
1215
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1216
    target_alias=$ac_optarg ;;
1217
 
1218
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1219
    verbose=yes ;;
1220
 
1221
  -version | --version | --versio | --versi | --vers | -V)
1222
    ac_init_version=: ;;
1223
 
1224
  -with-* | --with-*)
1225
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1226
    # Reject names that are not valid shell variable names.
1227 173 bertin
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1228 2 bertin
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1229
   { (exit 1); exit 1; }; }
1230 173 bertin
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1231
    eval with_$ac_package=\$ac_optarg ;;
1232 2 bertin
 
1233
  -without-* | --without-*)
1234
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1235
    # Reject names that are not valid shell variable names.
1236 173 bertin
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237 2 bertin
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1238
   { (exit 1); exit 1; }; }
1239 173 bertin
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1240
    eval with_$ac_package=no ;;
1241 2 bertin
 
1242
  --x)
1243
    # Obsolete; use --with-x.
1244
    with_x=yes ;;
1245
 
1246
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1247
  | --x-incl | --x-inc | --x-in | --x-i)
1248
    ac_prev=x_includes ;;
1249
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1250
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1251
    x_includes=$ac_optarg ;;
1252
 
1253
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1254
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1255
    ac_prev=x_libraries ;;
1256
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1257
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1258
    x_libraries=$ac_optarg ;;
1259
 
1260
  -*) { echo "$as_me: error: unrecognized option: $ac_option
1261
Try \`$0 --help' for more information." >&2
1262
   { (exit 1); exit 1; }; }
1263
    ;;
1264
 
1265
  *=*)
1266
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1267
    # Reject names that are not valid shell variable names.
1268
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1269
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1270
   { (exit 1); exit 1; }; }
1271 173 bertin
    eval $ac_envvar=\$ac_optarg
1272 2 bertin
    export $ac_envvar ;;
1273
 
1274
  *)
1275
    # FIXME: should be removed in autoconf 3.0.
1276
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1277
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1278
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1279
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1280
    ;;
1281
 
1282
  esac
1283
done
1284
 
1285
if test -n "$ac_prev"; then
1286
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1287
  { echo "$as_me: error: missing argument to $ac_option" >&2
1288
   { (exit 1); exit 1; }; }
1289
fi
1290
 
1291 173 bertin
# Be sure to have absolute directory names.
1292
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293
                datadir sysconfdir sharedstatedir localstatedir includedir \
1294
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295
                libdir localedir mandir
1296 2 bertin
do
1297 173 bertin
  eval ac_val=\$$ac_var
1298 2 bertin
  case $ac_val in
1299 173 bertin
    [\\/$]* | ?:[\\/]* )  continue;;
1300
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1301 2 bertin
  esac
1302 173 bertin
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1303
   { (exit 1); exit 1; }; }
1304 2 bertin
done
1305
 
1306
# There might be people who depend on the old broken behavior: `$host'
1307
# used to hold the argument of --host etc.
1308
# FIXME: To remove some day.
1309
build=$build_alias
1310
host=$host_alias
1311
target=$target_alias
1312
 
1313
# FIXME: To remove some day.
1314
if test "x$host_alias" != x; then
1315
  if test "x$build_alias" = x; then
1316
    cross_compiling=maybe
1317
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1318
    If a cross compiler is detected then cross compile mode will be used." >&2
1319
  elif test "x$build_alias" != "x$host_alias"; then
1320
    cross_compiling=yes
1321
  fi
1322
fi
1323
 
1324
ac_tool_prefix=
1325
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1326
 
1327
test "$silent" = yes && exec 6>/dev/null
1328
 
1329
 
1330 173 bertin
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1331
ac_ls_di=`ls -di .` &&
1332
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1333
  { echo "$as_me: error: Working directory cannot be determined" >&2
1334
   { (exit 1); exit 1; }; }
1335
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1336
  { echo "$as_me: error: pwd does not report name of working directory" >&2
1337
   { (exit 1); exit 1; }; }
1338
 
1339
 
1340 2 bertin
# Find the source files, if location was not specified.
1341
if test -z "$srcdir"; then
1342
  ac_srcdir_defaulted=yes
1343 173 bertin
  # Try the directory containing this script, then the parent directory.
1344
  ac_confdir=`$as_dirname -- "$0" ||
1345 2 bertin
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1346
         X"$0" : 'X\(//\)[^/]' \| \
1347
         X"$0" : 'X\(//\)$' \| \
1348 173 bertin
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1349 2 bertin
echo X"$0" |
1350 173 bertin
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1351
            s//\1/
1352
            q
1353
          }
1354
          /^X\(\/\/\)[^/].*/{
1355
            s//\1/
1356
            q
1357
          }
1358
          /^X\(\/\/\)$/{
1359
            s//\1/
1360
            q
1361
          }
1362
          /^X\(\/\).*/{
1363
            s//\1/
1364
            q
1365
          }
1366
          s/.*/./; q'`
1367 2 bertin
  srcdir=$ac_confdir
1368 173 bertin
  if test ! -r "$srcdir/$ac_unique_file"; then
1369 2 bertin
    srcdir=..
1370
  fi
1371
else
1372
  ac_srcdir_defaulted=no
1373
fi
1374 173 bertin
if test ! -r "$srcdir/$ac_unique_file"; then
1375
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1376
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1377 2 bertin
   { (exit 1); exit 1; }; }
1378 173 bertin
fi
1379
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1380
ac_abs_confdir=`(
1381
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1382 2 bertin
   { (exit 1); exit 1; }; }
1383 173 bertin
        pwd)`
1384
# When building in place, set srcdir=.
1385
if test "$ac_abs_confdir" = "$ac_pwd"; then
1386
  srcdir=.
1387 2 bertin
fi
1388 173 bertin
# Remove unnecessary trailing slashes from srcdir.
1389
# Double slashes in file names in object file debugging info
1390
# mess up M-x gdb in Emacs.
1391
case $srcdir in
1392
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1393
esac
1394
for ac_var in $ac_precious_vars; do
1395
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1396
  eval ac_env_${ac_var}_value=\$${ac_var}
1397
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1398
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1399
done
1400 2 bertin
 
1401
#
1402
# Report the --help message.
1403
#
1404
if test "$ac_init_help" = "long"; then
1405
  # Omit some internal or obsolete options to make the list less imposing.
1406
  # This message is too long to be a string in the A/UX 3.1 sh.
1407
  cat <<_ACEOF
1408 177 bertin
\`configure' configures sextractor 2.8.3 to adapt to many kinds of systems.
1409 2 bertin
 
1410
Usage: $0 [OPTION]... [VAR=VALUE]...
1411
 
1412
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1413
VAR=VALUE.  See below for descriptions of some of the useful variables.
1414
 
1415
Defaults for the options are specified in brackets.
1416
 
1417
Configuration:
1418
  -h, --help              display this help and exit
1419
      --help=short        display options specific to this package
1420
      --help=recursive    display the short help of all the included packages
1421
  -V, --version           display version information and exit
1422
  -q, --quiet, --silent   do not print \`checking...' messages
1423
      --cache-file=FILE   cache test results in FILE [disabled]
1424
  -C, --config-cache      alias for \`--cache-file=config.cache'
1425
  -n, --no-create         do not create output files
1426
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1427
 
1428
Installation directories:
1429
  --prefix=PREFIX         install architecture-independent files in PREFIX
1430
                          [$ac_default_prefix]
1431
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1432
                          [PREFIX]
1433
 
1434
By default, \`make install' will install all the files in
1435
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1436
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1437
for instance \`--prefix=\$HOME'.
1438
 
1439
For better control, use the options below.
1440
 
1441
Fine tuning of the installation directories:
1442
  --bindir=DIR           user executables [EPREFIX/bin]
1443
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1444
  --libexecdir=DIR       program executables [EPREFIX/libexec]
1445
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1446
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1447
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1448
  --libdir=DIR           object code libraries [EPREFIX/lib]
1449
  --includedir=DIR       C header files [PREFIX/include]
1450
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1451 173 bertin
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1452
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1453
  --infodir=DIR          info documentation [DATAROOTDIR/info]
1454
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1455
  --mandir=DIR           man documentation [DATAROOTDIR/man]
1456
  --docdir=DIR           documentation root [DATAROOTDIR/doc/sextractor]
1457
  --htmldir=DIR          html documentation [DOCDIR]
1458
  --dvidir=DIR           dvi documentation [DOCDIR]
1459
  --pdfdir=DIR           pdf documentation [DOCDIR]
1460
  --psdir=DIR            ps documentation [DOCDIR]
1461 2 bertin
_ACEOF
1462
 
1463
  cat <<\_ACEOF
1464
 
1465
Program names:
1466
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1467
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1468
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1469 173 bertin
 
1470
System types:
1471
  --build=BUILD     configure for building on BUILD [guessed]
1472
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1473 2 bertin
_ACEOF
1474
fi
1475
 
1476
if test -n "$ac_init_help"; then
1477
  case $ac_init_help in
1478 177 bertin
     short | recursive ) echo "Configuration of sextractor 2.8.3:";;
1479 2 bertin
   esac
1480
  cat <<\_ACEOF
1481
 
1482
Optional Features:
1483
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1484
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1485
  --enable-icc            Enable special mode for compilation with the Intel
1486
                          compiler (off by default)
1487 173 bertin
  --disable-dependency-tracking  speeds up one-time build
1488
  --enable-dependency-tracking   do not reject slow dependency extractors
1489
  --enable-static[=PKGS]  build static libraries [default=no]
1490
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1491
  --enable-fast-install[=PKGS]
1492
                          optimize for fast installation [default=yes]
1493
  --disable-libtool-lock  avoid locking (might break parallel builds)
1494
  --disable-largefile     omit support for large files
1495
  --enable-threads[=]
1496
                          Enable multhreading (on with up to $n_pthreads
1497
                          threads by default)
1498 2 bertin
  --enable-gprof          Enable special mode for compilation with the gprof
1499
                          profiler (off by default)
1500
  --enable-static         Enable static linking (off by default)
1501
 
1502 173 bertin
Optional Packages:
1503
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1504
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1505
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1506
  --with-pic              try to use only PIC/non-PIC objects [default=use
1507
                          both]
1508
  --with-tags[=TAGS]      include additional configurations [automatic]
1509
  --with-atlas=
1510
                          Provide an alternative path to the ATLAS library
1511
  --with-atlas-incdir=
1512
                          Provide an alternative path to the ATLAS include
1513
                          directory
1514
  --with-fftw=
1515
                          Provide an alternative path to the FFTW library
1516
  --with-fftw-incdir=
1517
                          Provide an alternative path to the FFTW include
1518
                          directory
1519
  --with-xsl_url=
1520
                          Provide an alternative default URL of the XSLT
1521
                          filter
1522
 
1523 2 bertin
Some influential environment variables:
1524
  CC          C compiler command
1525
  CFLAGS      C compiler flags
1526
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1527
              nonstandard directory 
1528 173 bertin
  LIBS        libraries to pass to the linker, e.g. -l
1529
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
1530
              you have headers in a nonstandard directory 
1531 2 bertin
  CPP         C preprocessor
1532 173 bertin
  CXX         C++ compiler command
1533
  CXXFLAGS    C++ compiler flags
1534
  CXXCPP      C++ preprocessor
1535
  F77         Fortran 77 compiler command
1536
  FFLAGS      Fortran 77 compiler flags
1537 2 bertin
 
1538
Use these variables to override the choices made by `configure' or to help
1539
it to find libraries and programs with nonstandard names/locations.
1540
 
1541
Report bugs to .
1542
_ACEOF
1543 173 bertin
ac_status=$?
1544 2 bertin
fi
1545
 
1546
if test "$ac_init_help" = "recursive"; then
1547
  # If there are subdirs, report their specific --help.
1548
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1549 173 bertin
    test -d "$ac_dir" || continue
1550 2 bertin
    ac_builddir=.
1551
 
1552 173 bertin
case "$ac_dir" in
1553
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554
*)
1555 2 bertin
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1556 173 bertin
  # A ".." for each directory in $ac_dir_suffix.
1557
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1558
  case $ac_top_builddir_sub in
1559
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1561
  esac ;;
1562
esac
1563
ac_abs_top_builddir=$ac_pwd
1564
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1565
# for backward compatibility:
1566
ac_top_builddir=$ac_top_build_prefix
1567 2 bertin
 
1568
case $srcdir in
1569 173 bertin
  .)  # We are building in place.
1570 2 bertin
    ac_srcdir=.
1571 173 bertin
    ac_top_srcdir=$ac_top_builddir_sub
1572
    ac_abs_top_srcdir=$ac_pwd ;;
1573
  [\\/]* | ?:[\\/]* )  # Absolute name.
1574 2 bertin
    ac_srcdir=$srcdir$ac_dir_suffix;
1575 173 bertin
    ac_top_srcdir=$srcdir
1576
    ac_abs_top_srcdir=$srcdir ;;
1577
  *) # Relative name.
1578
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1579
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1580
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1581 2 bertin
esac
1582 173 bertin
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1583 2 bertin
 
1584 173 bertin
    cd "$ac_dir" || { ac_status=$?; continue; }
1585
    # Check for guested configure.
1586
    if test -f "$ac_srcdir/configure.gnu"; then
1587
      echo &&
1588
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1589
    elif test -f "$ac_srcdir/configure"; then
1590
      echo &&
1591
      $SHELL "$ac_srcdir/configure" --help=recursive
1592 2 bertin
    else
1593
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1594 173 bertin
    fi || ac_status=$?
1595
    cd "$ac_pwd" || { ac_status=$?; break; }
1596 2 bertin
  done
1597
fi
1598
 
1599 173 bertin
test -n "$ac_init_help" && exit $ac_status
1600 2 bertin
if $ac_init_version; then
1601
  cat <<\_ACEOF
1602 177 bertin
sextractor configure 2.8.3
1603 173 bertin
generated by GNU Autoconf 2.61
1604 2 bertin
 
1605 173 bertin
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1606
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1607 2 bertin
This configure script is free software; the Free Software Foundation
1608
gives unlimited permission to copy, distribute and modify it.
1609
_ACEOF
1610 173 bertin
  exit
1611 2 bertin
fi
1612 173 bertin
cat >config.log <<_ACEOF
1613 2 bertin
This file contains any messages produced by compilers while
1614
running configure, to aid debugging if configure makes a mistake.
1615
 
1616 177 bertin
It was created by sextractor $as_me 2.8.3, which was
1617 173 bertin
generated by GNU Autoconf 2.61.  Invocation command line was
1618 2 bertin
 
1619
  $ $0 $@
1620
 
1621
_ACEOF
1622 173 bertin
exec 5>>config.log
1623 2 bertin
{
1624
cat <<_ASUNAME
1625
## --------- ##
1626
## Platform. ##
1627
## --------- ##
1628
 
1629
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1630
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1631
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1632
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1633
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1634
 
1635
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1636
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1637
 
1638
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1639
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1640
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1641 173 bertin
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1642 2 bertin
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1643
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1644
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1645
 
1646
_ASUNAME
1647
 
1648
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649
for as_dir in $PATH
1650
do
1651
  IFS=$as_save_IFS
1652
  test -z "$as_dir" && as_dir=.
1653
  echo "PATH: $as_dir"
1654
done
1655 173 bertin
IFS=$as_save_IFS
1656 2 bertin
 
1657
} >&5
1658
 
1659
cat >&5 <<_ACEOF
1660
 
1661
 
1662
## ----------- ##
1663
## Core tests. ##
1664
## ----------- ##
1665
 
1666
_ACEOF
1667
 
1668
 
1669
# Keep a trace of the command line.
1670
# Strip out --no-create and --no-recursion so they do not pile up.
1671
# Strip out --silent because we don't want to record it for future runs.
1672
# Also quote any args containing shell meta-characters.
1673
# Make two passes to allow for proper duplicate-argument suppression.
1674
ac_configure_args=
1675
ac_configure_args0=
1676
ac_configure_args1=
1677
ac_must_keep_next=false
1678
for ac_pass in 1 2
1679
do
1680
  for ac_arg
1681
  do
1682
    case $ac_arg in
1683
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1684
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1685
    | -silent | --silent | --silen | --sile | --sil)
1686
      continue ;;
1687 173 bertin
    *\'*)
1688 2 bertin
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1689
    esac
1690
    case $ac_pass in
1691
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1692
    2)
1693
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1694
      if test $ac_must_keep_next = true; then
1695
        ac_must_keep_next=false # Got value, back to normal.
1696
      else
1697
        case $ac_arg in
1698
          *=* | --config-cache | -C | -disable-* | --disable-* \
1699
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1700
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1701
          | -with-* | --with-* | -without-* | --without-* | --x)
1702
            case "$ac_configure_args0 " in
1703
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1704
            esac
1705
            ;;
1706
          -* ) ac_must_keep_next=true ;;
1707
        esac
1708
      fi
1709 173 bertin
      ac_configure_args="$ac_configure_args '$ac_arg'"
1710 2 bertin
      ;;
1711
    esac
1712
  done
1713
done
1714
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1715
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1716
 
1717
# When interrupted or exit'd, cleanup temporary files, and complete
1718
# config.log.  We remove comments because anyway the quotes in there
1719
# would cause problems or look ugly.
1720 173 bertin
# WARNING: Use '\'' to represent an apostrophe within the trap.
1721
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1722 2 bertin
trap 'exit_status=$?
1723
  # Save into config.log some information that might help in debugging.
1724
  {
1725
    echo
1726
 
1727
    cat <<\_ASBOX
1728
## ---------------- ##
1729
## Cache variables. ##
1730
## ---------------- ##
1731
_ASBOX
1732
    echo
1733
    # The following way of writing the cache mishandles newlines in values,
1734 173 bertin
(
1735
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1736
    eval ac_val=\$$ac_var
1737
    case $ac_val in #(
1738
    *${as_nl}*)
1739
      case $ac_var in #(
1740
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1741
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1742
      esac
1743
      case $ac_var in #(
1744
      _ | IFS | as_nl) ;; #(
1745
      *) $as_unset $ac_var ;;
1746
      esac ;;
1747
    esac
1748
  done
1749 2 bertin
  (set) 2>&1 |
1750 173 bertin
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1751
    *${as_nl}ac_space=\ *)
1752 2 bertin
      sed -n \
1753 173 bertin
        "s/'\''/'\''\\\\'\'''\''/g;
1754
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1755
      ;; #(
1756 2 bertin
    *)
1757 173 bertin
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1758 2 bertin
      ;;
1759 173 bertin
    esac |
1760
    sort
1761
)
1762 2 bertin
    echo
1763
 
1764
    cat <<\_ASBOX
1765
## ----------------- ##
1766
## Output variables. ##
1767
## ----------------- ##
1768
_ASBOX
1769
    echo
1770
    for ac_var in $ac_subst_vars
1771
    do
1772 173 bertin
      eval ac_val=\$$ac_var
1773
      case $ac_val in
1774
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1775
      esac
1776
      echo "$ac_var='\''$ac_val'\''"
1777 2 bertin
    done | sort
1778
    echo
1779
 
1780
    if test -n "$ac_subst_files"; then
1781
      cat <<\_ASBOX
1782 173 bertin
## ------------------- ##
1783
## File substitutions. ##
1784
## ------------------- ##
1785 2 bertin
_ASBOX
1786
      echo
1787
      for ac_var in $ac_subst_files
1788
      do
1789 173 bertin
        eval ac_val=\$$ac_var
1790
        case $ac_val in
1791
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1792
        esac
1793
        echo "$ac_var='\''$ac_val'\''"
1794 2 bertin
      done | sort
1795
      echo
1796
    fi
1797
 
1798
    if test -s confdefs.h; then
1799
      cat <<\_ASBOX
1800
## ----------- ##
1801
## confdefs.h. ##
1802
## ----------- ##
1803
_ASBOX
1804
      echo
1805 173 bertin
      cat confdefs.h
1806 2 bertin
      echo
1807
    fi
1808
    test "$ac_signal" != 0 &&
1809
      echo "$as_me: caught signal $ac_signal"
1810
    echo "$as_me: exit $exit_status"
1811
  } >&5
1812 173 bertin
  rm -f core *.core core.conftest.* &&
1813
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1814 2 bertin
    exit $exit_status
1815 173 bertin
' 0
1816 2 bertin
for ac_signal in 1 2 13 15; do
1817
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1818
done
1819
ac_signal=0
1820
 
1821
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1822 173 bertin
rm -f -r conftest* confdefs.h
1823 2 bertin
 
1824
# Predefined preprocessor variables.
1825
 
1826
cat >>confdefs.h <<_ACEOF
1827
#define PACKAGE_NAME "$PACKAGE_NAME"
1828
_ACEOF
1829
 
1830
 
1831
cat >>confdefs.h <<_ACEOF
1832
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1833
_ACEOF
1834
 
1835
 
1836
cat >>confdefs.h <<_ACEOF
1837
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1838
_ACEOF
1839
 
1840
 
1841
cat >>confdefs.h <<_ACEOF
1842
#define PACKAGE_STRING "$PACKAGE_STRING"
1843
_ACEOF
1844
 
1845
 
1846
cat >>confdefs.h <<_ACEOF
1847
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1848
_ACEOF
1849
 
1850
 
1851
# Let the site file select an alternate cache file if it wants to.
1852
# Prefer explicitly selected file to automatically selected ones.
1853 173 bertin
if test -n "$CONFIG_SITE"; then
1854
  set x "$CONFIG_SITE"
1855
elif test "x$prefix" != xNONE; then
1856
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1857
else
1858
  set x "$ac_default_prefix/share/config.site" \
1859
        "$ac_default_prefix/etc/config.site"
1860 2 bertin
fi
1861 173 bertin
shift
1862
for ac_site_file
1863
do
1864 2 bertin
  if test -r "$ac_site_file"; then
1865
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1866
echo "$as_me: loading site script $ac_site_file" >&6;}
1867
    sed 's/^/| /' "$ac_site_file" >&5
1868
    . "$ac_site_file"
1869
  fi
1870
done
1871
 
1872
 
1873
# Check that the precious variables saved in the cache have kept the same
1874
# value.
1875
ac_cache_corrupted=false
1876 173 bertin
for ac_var in $ac_precious_vars; do
1877 2 bertin
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1878
  eval ac_new_set=\$ac_env_${ac_var}_set
1879 173 bertin
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1880
  eval ac_new_val=\$ac_env_${ac_var}_value
1881 2 bertin
  case $ac_old_set,$ac_new_set in
1882
    set,)
1883
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1884
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1885
      ac_cache_corrupted=: ;;
1886
    ,set)
1887
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1888
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1889
      ac_cache_corrupted=: ;;
1890
    ,);;
1891
    *)
1892
      if test "x$ac_old_val" != "x$ac_new_val"; then
1893
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1894
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1895
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1896
echo "$as_me:   former value:  $ac_old_val" >&2;}
1897
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1898
echo "$as_me:   current value: $ac_new_val" >&2;}
1899
        ac_cache_corrupted=:
1900
      fi;;
1901
  esac
1902
  # Pass precious variables to config.status.
1903
  if test "$ac_new_set" = set; then
1904
    case $ac_new_val in
1905 173 bertin
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1906 2 bertin
    *) ac_arg=$ac_var=$ac_new_val ;;
1907
    esac
1908
    case " $ac_configure_args " in
1909
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1910
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1911
    esac
1912
  fi
1913
done
1914
if $ac_cache_corrupted; then
1915
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1916
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1917
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1918
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1919
   { (exit 1); exit 1; }; }
1920
fi
1921
 
1922
 
1923
 
1924
 
1925
 
1926
 
1927
 
1928
 
1929
 
1930
 
1931
 
1932
 
1933
 
1934
 
1935
 
1936
 
1937
 
1938
 
1939
 
1940
 
1941
 
1942
 
1943
 
1944
 
1945
 
1946 173 bertin
ac_ext=c
1947
ac_cpp='$CPP $CPPFLAGS'
1948
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1949
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1950
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1951 2 bertin
 
1952
 
1953
 
1954
ac_aux_dir=
1955 173 bertin
for ac_dir in autoconf "$srcdir"/autoconf; do
1956
  if test -f "$ac_dir/install-sh"; then
1957 2 bertin
    ac_aux_dir=$ac_dir
1958
    ac_install_sh="$ac_aux_dir/install-sh -c"
1959
    break
1960 173 bertin
  elif test -f "$ac_dir/install.sh"; then
1961 2 bertin
    ac_aux_dir=$ac_dir
1962
    ac_install_sh="$ac_aux_dir/install.sh -c"
1963
    break
1964 173 bertin
  elif test -f "$ac_dir/shtool"; then
1965 2 bertin
    ac_aux_dir=$ac_dir
1966
    ac_install_sh="$ac_aux_dir/shtool install -c"
1967
    break
1968
  fi
1969
done
1970
if test -z "$ac_aux_dir"; then
1971 173 bertin
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1972
echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1973 2 bertin
   { (exit 1); exit 1; }; }
1974
fi
1975
 
1976 173 bertin
# These three variables are undocumented and unsupported,
1977
# and are intended to be withdrawn in a future Autoconf release.
1978
# They can cause serious problems if a builder's source tree is in a directory
1979
# whose full name contains unusual characters.
1980
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1981
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1982
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1983 2 bertin
 
1984 173 bertin
 
1985
ac_config_headers="$ac_config_headers config.h"
1986
 
1987
am__api_version='1.10'
1988
 
1989 2 bertin
# Find a good install program.  We prefer a C program (faster),
1990
# so one script is as good as another.  But avoid the broken or
1991
# incompatible versions:
1992
# SysV /etc/install, /usr/sbin/install
1993
# SunOS /usr/etc/install
1994
# IRIX /sbin/install
1995
# AIX /bin/install
1996
# AmigaOS /C/install, which installs bootblocks on floppy discs
1997
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1998
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1999
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2000
# OS/2's system install, which has a completely different semantic
2001
# ./install, which can be erroneously created by make from ./install.sh.
2002 173 bertin
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2003
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2004 2 bertin
if test -z "$INSTALL"; then
2005
if test "${ac_cv_path_install+set}" = set; then
2006
  echo $ECHO_N "(cached) $ECHO_C" >&6
2007
else
2008
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009
for as_dir in $PATH
2010
do
2011
  IFS=$as_save_IFS
2012
  test -z "$as_dir" && as_dir=.
2013
  # Account for people who put trailing slashes in PATH elements.
2014
case $as_dir/ in
2015
  ./ | .// | /cC/* | \
2016
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2017
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2018
  /usr/ucb/* ) ;;
2019
  *)
2020
    # OSF1 and SCO ODT 3.0 have their own names for install.
2021
    # Don't use installbsd from OSF since it installs stuff as root
2022
    # by default.
2023
    for ac_prog in ginstall scoinst install; do
2024
      for ac_exec_ext in '' $ac_executable_extensions; do
2025 173 bertin
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2026 2 bertin
          if test $ac_prog = install &&
2027
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2028
            # AIX install.  It has an incompatible calling convention.
2029
            :
2030
          elif test $ac_prog = install &&
2031
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2032
            # program-specific install script used by HP pwplus--don't use.
2033
            :
2034
          else
2035
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2036
            break 3
2037
          fi
2038
        fi
2039
      done
2040
    done
2041
    ;;
2042
esac
2043
done
2044 173 bertin
IFS=$as_save_IFS
2045 2 bertin
 
2046
 
2047
fi
2048
  if test "${ac_cv_path_install+set}" = set; then
2049
    INSTALL=$ac_cv_path_install
2050
  else
2051 173 bertin
    # As a last resort, use the slow shell script.  Don't cache a
2052
    # value for INSTALL within a source directory, because that will
2053 2 bertin
    # break other packages using the cache if that directory is
2054 173 bertin
    # removed, or if the value is a relative name.
2055 2 bertin
    INSTALL=$ac_install_sh
2056
  fi
2057
fi
2058 173 bertin
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2059
echo "${ECHO_T}$INSTALL" >&6; }
2060 2 bertin
 
2061
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2062
# It thinks the first close brace ends the variable substitution.
2063
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2064
 
2065
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2066
 
2067
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2068
 
2069 173 bertin
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2070
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2071 2 bertin
# Just in case
2072
sleep 1
2073
echo timestamp > conftest.file
2074
# Do `set' in a subshell so we don't clobber the current shell's
2075
# arguments.  Must try -L first in case configure is actually a
2076
# symlink; some systems play weird games with the mod time of symlinks
2077
# (eg FreeBSD returns the mod time of the symlink's containing
2078
# directory).
2079
if (
2080
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2081
   if test "$*" = "X"; then
2082
      # -L didn't work.
2083
      set X `ls -t $srcdir/configure conftest.file`
2084
   fi
2085
   rm -f conftest.file
2086
   if test "$*" != "X $srcdir/configure conftest.file" \
2087
      && test "$*" != "X conftest.file $srcdir/configure"; then
2088
 
2089
      # If neither matched, then we have a broken ls.  This can happen
2090
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2091
      # broken ls alias from the environment.  This has actually
2092
      # happened.  Such a system could not be considered "sane".
2093
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2094
alias in your environment" >&5
2095
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2096
alias in your environment" >&2;}
2097
   { (exit 1); exit 1; }; }
2098
   fi
2099
 
2100
   test "$2" = conftest.file
2101
   )
2102
then
2103
   # Ok.
2104
   :
2105
else
2106
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2107
Check your system clock" >&5
2108
echo "$as_me: error: newly created file is older than distributed files!
2109
Check your system clock" >&2;}
2110
   { (exit 1); exit 1; }; }
2111
fi
2112 173 bertin
{ echo "$as_me:$LINENO: result: yes" >&5
2113
echo "${ECHO_T}yes" >&6; }
2114 2 bertin
test "$program_prefix" != NONE &&
2115 173 bertin
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2116 2 bertin
# Use a double $ so make ignores it.
2117
test "$program_suffix" != NONE &&
2118 173 bertin
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2119 2 bertin
# Double any \ or $.  echo might interpret backslashes.
2120
# By default was `s,x,x', remove it if useless.
2121
cat <<\_ACEOF >conftest.sed
2122
s/[\\$]/&&/g;s/;s,x,x,$//
2123
_ACEOF
2124
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2125 173 bertin
rm -f conftest.sed
2126 2 bertin
 
2127
# expand $ac_aux_dir to an absolute path
2128
am_aux_dir=`cd $ac_aux_dir && pwd`
2129
 
2130
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2131
# Use eval to expand $SHELL
2132
if eval "$MISSING --run true"; then
2133
  am_missing_run="$MISSING --run "
2134
else
2135
  am_missing_run=
2136
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2137
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2138
fi
2139
 
2140 173 bertin
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2141
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2142
if test -z "$MKDIR_P"; then
2143
  if test "${ac_cv_path_mkdir+set}" = set; then
2144
  echo $ECHO_N "(cached) $ECHO_C" >&6
2145 2 bertin
else
2146 173 bertin
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2148
do
2149
  IFS=$as_save_IFS
2150
  test -z "$as_dir" && as_dir=.
2151
  for ac_prog in mkdir gmkdir; do
2152
         for ac_exec_ext in '' $ac_executable_extensions; do
2153
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2154
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2155
             'mkdir (GNU coreutils) '* | \
2156
             'mkdir (coreutils) '* | \
2157
             'mkdir (fileutils) '4.1*)
2158
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2159
               break 3;;
2160
           esac
2161
         done
2162
       done
2163
done
2164
IFS=$as_save_IFS
2165
 
2166
fi
2167
 
2168
  if test "${ac_cv_path_mkdir+set}" = set; then
2169
    MKDIR_P="$ac_cv_path_mkdir -p"
2170 2 bertin
  else
2171 173 bertin
    # As a last resort, use the slow shell script.  Don't cache a
2172
    # value for MKDIR_P within a source directory, because that will
2173
    # break other packages using the cache if that directory is
2174
    # removed, or if the value is a relative name.
2175
    test -d ./--version && rmdir ./--version
2176
    MKDIR_P="$ac_install_sh -d"
2177 2 bertin
  fi
2178
fi
2179 173 bertin
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2180
echo "${ECHO_T}$MKDIR_P" >&6; }
2181 2 bertin
 
2182 173 bertin
mkdir_p="$MKDIR_P"
2183
case $mkdir_p in
2184
  [\\/$]* | ?:[\\/]*) ;;
2185
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2186
esac
2187
 
2188 2 bertin
for ac_prog in gawk mawk nawk awk
2189
do
2190
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2191
set dummy $ac_prog; ac_word=$2
2192 173 bertin
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2193
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2194 2 bertin
if test "${ac_cv_prog_AWK+set}" = set; then
2195
  echo $ECHO_N "(cached) $ECHO_C" >&6
2196
else
2197
  if test -n "$AWK"; then
2198
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2199
else
2200
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2201
for as_dir in $PATH
2202
do
2203
  IFS=$as_save_IFS
2204
  test -z "$as_dir" && as_dir=.
2205
  for ac_exec_ext in '' $ac_executable_extensions; do
2206 173 bertin
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2207 2 bertin
    ac_cv_prog_AWK="$ac_prog"
2208
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2209
    break 2
2210
  fi
2211
done
2212
done
2213 173 bertin
IFS=$as_save_IFS
2214 2 bertin
 
2215
fi
2216
fi
2217
AWK=$ac_cv_prog_AWK
2218
if test -n "$AWK"; then
2219 173 bertin
  { echo "$as_me:$LINENO: result: $AWK" >&5
2220
echo "${ECHO_T}$AWK" >&6; }
2221 2 bertin
else
2222 173 bertin
  { echo "$as_me:$LINENO: result: no" >&5
2223
echo "${ECHO_T}no" >&6; }
2224 2 bertin
fi
2225
 
2226 173 bertin
 
2227 2 bertin
  test -n "$AWK" && break
2228
done
2229
 
2230 173 bertin
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2231
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2232
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2233
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2234 2 bertin
  echo $ECHO_N "(cached) $ECHO_C" >&6
2235
else
2236
  cat >conftest.make <<\_ACEOF
2237 173 bertin
SHELL = /bin/sh
2238 2 bertin
all:
2239 173 bertin
        @echo '@@@%%%=$(MAKE)=@@@%%%'
2240 2 bertin
_ACEOF
2241
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2242 173 bertin
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2243
  *@@@%%%=?*=@@@%%%*)
2244
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2245
  *)
2246
    eval ac_cv_prog_make_${ac_make}_set=no;;
2247
esac
2248 2 bertin
rm -f conftest.make
2249
fi
2250 173 bertin
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2251
  { echo "$as_me:$LINENO: result: yes" >&5
2252
echo "${ECHO_T}yes" >&6; }
2253 2 bertin
  SET_MAKE=
2254
else
2255 173 bertin
  { echo "$as_me:$LINENO: result: no" >&5
2256
echo "${ECHO_T}no" >&6; }
2257 2 bertin
  SET_MAKE="MAKE=${MAKE-make}"
2258
fi
2259
 
2260
rm -rf .tst 2>/dev/null
2261
mkdir .tst 2>/dev/null
2262
if test -d .tst; then
2263
  am__leading_dot=.
2264
else
2265
  am__leading_dot=_
2266
fi
2267
rmdir .tst 2>/dev/null
2268
 
2269 173 bertin
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2270
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2271
  # is not polluted with repeated "-I."
2272
  am__isrc=' -I$(srcdir)'
2273
  # test to see if srcdir already configured
2274
  if test -f $srcdir/config.status; then
2275
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2276 2 bertin
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2277
   { (exit 1); exit 1; }; }
2278 173 bertin
  fi
2279 2 bertin
fi
2280
 
2281
# test whether we have cygpath
2282
if test -z "$CYGPATH_W"; then
2283
  if (cygpath --version) >/dev/null 2>/dev/null; then
2284
    CYGPATH_W='cygpath -w'
2285
  else
2286
    CYGPATH_W=echo
2287
  fi
2288
fi
2289
 
2290
 
2291
# Define the identity of the package.
2292
 PACKAGE='sextractor'
2293 177 bertin
 VERSION='2.8.3'
2294 2 bertin
 
2295
 
2296
cat >>confdefs.h <<_ACEOF
2297
#define PACKAGE "$PACKAGE"
2298
_ACEOF
2299
 
2300
 
2301
cat >>confdefs.h <<_ACEOF
2302
#define VERSION "$VERSION"
2303
_ACEOF
2304
 
2305
# Some tools Automake needs.
2306
 
2307
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2308
 
2309
 
2310
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2311
 
2312
 
2313
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2314
 
2315
 
2316
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2317
 
2318
 
2319
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2320
 
2321 173 bertin
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2322 2 bertin
 
2323
# Installed binaries are usually stripped using `strip' when the user
2324
# run `make install-strip'.  However `strip' might not be the right
2325
# tool to use in cross-compilation environments, therefore Automake
2326
# will honor the `STRIP' environment variable to overrule this program.
2327
if test "$cross_compiling" != no; then
2328
  if test -n "$ac_tool_prefix"; then
2329
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2330
set dummy ${ac_tool_prefix}strip; ac_word=$2
2331 173 bertin
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2332
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2333 2 bertin
if test "${ac_cv_prog_STRIP+set}" = set; then
2334
  echo $ECHO_N "(cached) $ECHO_C" >&6
2335
else
2336
  if test -n "$STRIP"; then
2337
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2338
else
2339
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340
for as_dir in $PATH
2341
do
2342
  IFS=$as_save_IFS
2343
  test -z "$as_dir" && as_dir=.
2344
  for ac_exec_ext in '' $ac_executable_extensions; do
2345 173 bertin
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2346 2 bertin
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2347
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2348
    break 2
2349
  fi
2350
done
2351
done
2352 173 bertin
IFS=$as_save_IFS
2353 2 bertin
 
2354
fi
2355
fi
2356
STRIP=$ac_cv_prog_STRIP
2357
if test -n "$STRIP"; then
2358 173 bertin
  { echo "$as_me:$LINENO: result: $STRIP" >&5
2359
echo "${ECHO_T}$STRIP" >&6; }
2360 2 bertin
else
2361 173 bertin
  { echo "$as_me:$LINENO: result: no" >&5
2362
echo "${ECHO_T}no" >&6; }
2363 2 bertin
fi
2364
 
2365 173 bertin
 
2366 2 bertin
fi
2367
if test -z "$ac_cv_prog_STRIP"; then
2368
  ac_ct_STRIP=$STRIP
2369
  # Extract the first word of "strip", so it can be a program name with args.
2370
set dummy strip; ac_word=$2
2371 173 bertin
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2372
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2373 2 bertin
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2374
  echo $ECHO_N "(cached) $ECHO_C" >&6
2375
else
2376
  if test -n "$ac_ct_STRIP"; then
2377
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2378
else
2379
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380
for as_dir in $PATH
2381
do
2382
  IFS=$as_save_IFS
2383
  test -z "$as_dir" && as_dir=.
2384
  for ac_exec_ext in '' $ac_executable_extensions; do
2385 173 bertin
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2386 2 bertin
    ac_cv_prog_ac_ct_STRIP="strip"
2387
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2388
    break 2
2389
  fi
2390
done
2391
done
2392 173 bertin
IFS=$as_save_IFS
2393 2 bertin
 
2394
fi
2395
fi
2396
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2397
if test -n "$ac_ct_STRIP"; then
2398 173 bertin
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2399
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2400 2 bertin
else
2401 173 bertin
  { echo "$as_me:$LINENO: result: no" >&5
2402
echo "${ECHO_T}no" >&6; }
2403 2 bertin
fi
2404
 
2405 173 bertin
  if test "x$ac_ct_STRIP" = x; then
2406
    STRIP=":"
2407
  else
2408
    case $cross_compiling:$ac_tool_warned in
2409
yes:)
2410
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2411
whose name does not start with the host triplet.  If you think this
2412
configuration is useful to you, please write to autoconf@gnu.org." >&5
2413
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2414
whose name does not start with the host triplet.  If you think this
2415
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2416
ac_tool_warned=yes ;;
2417
esac
2418
    STRIP=$ac_ct_STRIP
2419
  fi
2420 2 bertin
else
2421
  STRIP="$ac_cv_prog_STRIP"
2422
fi
2423
 
2424
fi
2425 173 bertin
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2426 2 bertin
 
2427
# We need awk for the "check" target.  The system "awk" is bad on
2428
# some platforms.
2429 4 bertin
# Always define AMTAR for backward compatibility.
2430 2 bertin
 
2431 4 bertin
AMTAR=${AMTAR-"${am_missing_run}tar"}
2432 2 bertin
 
2433 4 bertin
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2434 2 bertin
 
2435 4 bertin
 
2436
 
2437
 
2438
 
2439 2 bertin
date=`date +%Y-%m-%d`
2440
date2=`date +"%a %b %d %Y"`
2441
date3=`date +"%B %Y"`
2442
 
2443
cat >>confdefs.h <<_ACEOF
2444
#define DATE "$date"
2445
_ACEOF
2446
 
2447
PACKAGER="Emmanuel Bertin"
2448
 
2449
DATE2="$date2"
2450
 
2451
DATE3="$date3"
2452
 
2453
 
2454
# Include macros
2455
 
2456
 
2457 173 bertin
 
2458
 
2459
 
2460
 
2461
 
2462
 
2463
 
2464
 
2465
# URBI_RESOLVE_DIR_PREPARE
2466
# ------------------------
2467
# Define urbi_resolve_dir.
2468
 
2469
 
2470
 
2471
# PATH URBI_RESOLVE_DIR(DIR)
2472
# --------------------------
2473
# Return the DIR with all inner variables expanded.
2474
 
2475
 
2476
 
2477
## Local Variables:
2478
## mode: autoconf
2479
## End:
2480
 
2481
 
2482 2 bertin
# Display pakage and version number
2483 173 bertin
{ echo "$as_me:$LINENO: result: *********** Configuring:  $PACKAGE $VERSION ($date) **********" >&5
2484
echo "${ECHO_T}*********** Configuring:  $PACKAGE $VERSION ($date) **********" >&6; }
2485 2 bertin
 
2486
# Initialize the list of compilers to consider
2487
cclist="cc gcc"
2488
 
2489
# Backup and reset the input CFLAGS and LDFLAGS
2490
mycflags="$CFLAGS"
2491
CFLAGS=""
2492
myldflags="$LDFLAGS"
2493
LDFLAGS=""
2494
 
2495
# Provide special option for the Linux Intel C compiler
2496 173 bertin
{ echo "$as_me:$LINENO: checking for Linux Intel C compiler mode" >&5
2497
echo $ECHO_N "checking for Linux Intel C compiler mode... $ECHO_C" >&6; }
2498
# Check whether --enable-icc was given.
2499 2 bertin
if test "${enable_icc+set}" = set; then
2500 173 bertin
  enableval=$enable_icc; use_icc="yes"
2501 2 bertin
        cclist="icc $cclist"
2502 173 bertin
        { echo "$as_me:$LINENO: result: yes" >&5
2503
echo "${ECHO_T}yes" >&6; }
2504 2 bertin
else
2505
  use_icc="no"
2506 173 bertin
        { echo "$as_me:$LINENO: result: no" >&5
2507
echo "${ECHO_T}no" >&6; }
2508
fi
2509 2 bertin
 
2510
 
2511
# Checks for programs.
2512
# GCC is chosen last because it is likely to yield less optimized code
2513
ac_ext=c
2514
ac_cpp='$CPP $CPPFLAGS'
2515
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2516
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2517
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2518 173 bertin
 
2519
ac_ext=c
2520
ac_cpp='$CPP $CPPFLAGS'
2521
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2522
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2523
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2524 2 bertin
if test -n "$ac_tool_prefix"; then
2525
  for ac_prog in $cclist
2526
  do
2527
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2528
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2529 173 bertin
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2530
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2531 2 bertin
if test "${ac_cv_prog_CC+set}" = set; then
2532
  echo $ECHO_N "(cached) $ECHO_C" >&6
2533
else
2534
  if test -n "$CC"; then
2535
  ac_cv_prog_CC="$CC" # Let the user override the test.
2536
else
2537
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538
for as_dir in $PATH
2539
do
2540
  IFS=$as_save_IFS
2541
  test -z "$as_dir" && as_dir=.
2542
  for ac_exec_ext in '' $ac_executable_extensions; do
2543 173 bertin
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2544 2 bertin
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2545
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2546
    break 2
2547
  fi
2548
done
2549
done
2550 173 bertin
IFS=$as_save_IFS
2551 2 bertin
 
2552
fi
2553
fi
2554
CC=$ac_cv_prog_CC
2555
if test -n "$CC"; then
2556 173 bertin
  { echo "$as_me:$LINENO: result: $CC" >&5
2557
echo "${ECHO_T}$CC" >&6; }
2558 2 bertin
else
2559 173 bertin
  { echo "$as_me:$LINENO: result: no" >&5
2560
echo "${ECHO_T}no" >&6; }
2561 2 bertin
fi
2562
 
2563 173 bertin
 
2564 2 bertin
    test -n "$CC" && break
2565
  done
2566
fi
2567
if test -z "$CC"; then
2568
  ac_ct_CC=$CC
2569
  for ac_prog in $cclist
2570
do
2571
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2572
set dummy $ac_prog; ac_word=$2
2573 173 bertin
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2574
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2575 2 bertin
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2576
  echo $ECHO_N "(cached) $ECHO_C" >&6
2577
else
2578
  if test -n "$ac_ct_CC"; then
2579
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2580
else
2581
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582
for as_dir in $PATH
2583
do
2584
  IFS=$as_save_IFS
2585
  test -z "$as_dir" && as_dir=.
2586
  for ac_exec_ext in '' $ac_executable_extensions; do
2587 173 bertin
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2588 2 bertin
    ac_cv_prog_ac_ct_CC="$ac_prog"
2589
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2590
    break 2
2591
  fi
2592
done
2593
done
2594 173 bertin
IFS=$as_save_IFS
2595 2 bertin
 
2596
fi
2597
fi
2598
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2599
if test -n "$ac_ct_CC"; then
2600 173 bertin
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2601
echo "${ECHO_T}$ac_ct_CC" >&6; }
2602 2 bertin
else
2603 173 bertin
  { echo "$as_me:$LINENO: result: no" >&5
2604
echo "${ECHO_T}no" >&6; }
2605 2 bertin
fi
2606
 
2607 173 bertin
 
2608 2 bertin
  test -n "$ac_ct_CC" && break
2609
done
2610
 
2611 173 bertin
  if test "x$ac_ct_CC" = x; then
2612
    CC=""
2613
  else
2614
    case $cross_compiling:$ac_tool_warned in
2615
yes:)
2616
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2617
whose name does not start with the host triplet.  If you think this
2618
configuration is useful to you, please write to autoconf@gnu.org." >&5
2619
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2620
whose name does not start with the host triplet.  If you think this
2621
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2622
ac_tool_warned=yes ;;
2623
esac
2624
    CC=$ac_ct_CC
2625
  fi
2626 2 bertin
fi
2627
 
2628
 
2629
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2630
See \`config.log' for more details." >&5
2631
echo "$as_me: error: no acceptable C compiler found in \$PATH
2632
See \`config.log' for more details." >&2;}
2633
   { (exit 1); exit 1; }; }
2634
 
2635
# Provide some information about the compiler.
2636 173 bertin
echo "$as_me:$LINENO: checking for C compiler version" >&5
2637 2 bertin
ac_compiler=`set X $ac_compile; echo $2`
2638 173 bertin
{ (ac_try="$ac_compiler --version >&5"
2639
case "(($ac_try" in
2640
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2641
  *) ac_try_echo=$ac_try;;
2642
esac
2643
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2644
  (eval "$ac_compiler --version >&5") 2>&5
2645 2 bertin
  ac_status=$?
2646
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647
  (exit $ac_status); }
2648 173 bertin
{ (ac_try="$ac_compiler -v >&5"
2649
case "(($ac_try" in
2650
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2651
  *) ac_try_echo=$ac_try;;
2652
esac
2653
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2654
  (eval "$ac_compiler -v >&5") 2>&5
2655 2 bertin
  ac_status=$?
2656
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657
  (exit $ac_status); }
2658 173 bertin
{ (ac_try="$ac_compiler -V >&5"
2659
case "(($ac_try" in
2660
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661
  *) ac_try_echo=$ac_try;;
2662
esac
2663
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2664
  (eval "$ac_compiler -V >&5") 2>&5
2665 2 bertin
  ac_status=$?
2666
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667
  (exit $ac_status); }
2668
 
2669
cat >conftest.$ac_ext <<_ACEOF
2670
/* confdefs.h.  */
2671
_ACEOF
2672
cat confdefs.h >>conftest.$ac_ext
2673
cat >>conftest.$ac_ext <<_ACEOF
2674
/* end confdefs.h.  */
2675
 
2676
int
2677
main ()
2678
{
2679
 
2680
  ;
2681
  return 0;
2682
}
2683
_ACEOF
2684
ac_clean_files_save=$ac_clean_files
2685
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2686
# Try to create an executable without -o first, disregard a.out.
2687
# It will help us diagnose broken compilers, and finding out an intuition
2688
# of exeext.
2689 173 bertin
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2690
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2691 2 bertin
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2692 173 bertin
#
2693
# List of possible output files, starting from the most likely.
2694
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2695
# only as a last resort.  b.out is created by i960 compilers.
2696
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2697
#
2698
# The IRIX 6 linker writes into existing files which may not be
2699
# executable, retaining their permissions.  Remove them first so a
2700
# subsequent execution test works.
2701
ac_rmfiles=
2702
for ac_file in $ac_files
2703
do
2704
  case $ac_file in
2705
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2706
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2707
  esac
2708
done
2709
rm -f $ac_rmfiles
2710
 
2711
if { (ac_try="$ac_link_default"
2712
case "(($ac_try" in
2713
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714
  *) ac_try_echo=$ac_try;;
2715
esac
2716
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717
  (eval "$ac_link_default") 2>&5
2718 2 bertin
  ac_status=$?
2719
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720
  (exit $ac_status); }; then
2721 173 bertin
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2722
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2723
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2724
# so that the user can short-circuit this test for compilers unknown to
2725
# Autoconf.
2726
for ac_file in $ac_files ''
2727 2 bertin
do
2728
  test -f "$ac_file" || continue
2729
  case $ac_file in
2730 173 bertin
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2731 2 bertin
        ;;
2732
    [ab].out )
2733
        # We found the default executable, but exeext='' is most
2734
        # certainly right.
2735
        break;;
2736
    *.* )
2737 173 bertin
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2738
        then :; else
2739
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2740
        fi
2741
        # We set ac_cv_exeext here because the later test for it is not
2742
        # safe: cross compilers may not add the suffix if given an `-o'
2743
        # argument, so we may need to know it at that point already.
2744
        # Even if this section looks crufty: it has the advantage of
2745
        # actually working.
2746 2 bertin
        break;;
2747
    * )
2748
        break;;
2749
  esac
2750
done
2751 173 bertin
test "$ac_cv_exeext" = no && ac_cv_exeext=
2752
 
2753 2 bertin
else
2754 173 bertin
  ac_file=''
2755
fi
2756
 
2757
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2758
echo "${ECHO_T}$ac_file" >&6; }
2759
if test -z "$ac_file"; then
2760 2 bertin
  echo "$as_me: failed program was:" >&5
2761
sed 's/^/| /' conftest.$ac_ext >&5
2762
 
2763
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2764
See \`config.log' for more details." >&5
2765
echo "$as_me: error: C compiler cannot create executables
2766
See \`config.log' for more details." >&2;}
2767
   { (exit 77); exit 77; }; }
2768
fi
2769
 
2770
ac_exeext=$ac_cv_exeext
2771
 
2772 173 bertin
# Check that the compiler produces executables we can run.  If not, either
2773 2 bertin
# the compiler is broken, or we cross compile.
2774 173 bertin
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2775
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2776 2 bertin
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2777
# If not cross compiling, check that we can run a simple program.
2778
if test "$cross_compiling" != yes; then
2779
  if { ac_try='./$ac_file'
2780 173 bertin
  { (case "(($ac_try" in
2781
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782
  *) ac_try_echo=$ac_try;;
2783
esac
2784
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2785
  (eval "$ac_try") 2>&5
2786 2 bertin
  ac_status=$?
2787
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788
  (exit $ac_status); }; }; then
2789
    cross_compiling=no
2790
  else
2791
    if test "$cross_compiling" = maybe; then
2792
        cross_compiling=yes
2793
    else
2794
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2795
If you meant to cross compile, use \`--host'.
2796
See \`config.log' for more details." >&5
2797
echo "$as_me: error: cannot run C compiled programs.
2798
If you meant to cross compile, use \`--host'.
2799
See \`config.log' for more details." >&2;}
2800
   { (exit 1); exit 1; }; }
2801
    fi
2802
  fi
2803
fi
2804 173 bertin
{ echo "$as_me:$LINENO: result: yes" >&5
2805
echo "${ECHO_T}yes" >&6; }
2806 2 bertin
 
2807
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2808
ac_clean_files=$ac_clean_files_save
2809 173 bertin
# Check that the compiler produces executables we can run.  If not, either
2810 2 bertin
# the compiler is broken, or we cross compile.
2811 173 bertin
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2812
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2813
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2814
echo "${ECHO_T}$cross_compiling" >&6; }
2815 2 bertin
 
2816 173 bertin
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2817
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2818
if { (ac_try="$ac_link"
2819
case "(($ac_try" in
2820
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821
  *) ac_try_echo=$ac_try;;
2822
esac
2823
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2824
  (eval "$ac_link") 2>&5
2825 2 bertin
  ac_status=$?
2826
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827
  (exit $ac_status); }; then
2828
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2829
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2830
# work properly (i.e., refer to `conftest.exe'), while it won't with
2831
# `rm'.
2832
for ac_file in conftest.exe conftest conftest.*; do
2833
  test -f "$ac_file" || continue
2834
  case $ac_file in
2835 173 bertin
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2836 2 bertin
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2837
          break;;
2838
    * ) break;;
2839
  esac
2840
done
2841
else
2842
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2843
See \`config.log' for more details." >&5
2844
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2845
See \`config.log' for more details." >&2;}
2846
   { (exit 1); exit 1; }; }
2847
fi
2848
 
2849
rm -f conftest$ac_cv_exeext
2850 173 bertin
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2851
echo "${ECHO_T}$ac_cv_exeext" >&6; }
2852 2 bertin
 
2853
rm -f conftest.$ac_ext
2854
EXEEXT=$ac_cv_exeext
2855
ac_exeext=$EXEEXT
2856 173 bertin
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2857
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2858 2 bertin
if test "${ac_cv_objext+set}" = set; then
2859
  echo $ECHO_N "(cached) $ECHO_C" >&6
2860
else
2861
  cat >conftest.$ac_ext <<_ACEOF
2862
/* confdefs.h.  */
2863
_ACEOF
2864
cat confdefs.h >>conftest.$ac_ext
2865
cat >>conftest.$ac_ext <<_ACEOF
2866
/* end confdefs.h.  */
2867
 
2868
int
2869
main ()
2870
{
2871
 
2872
  ;
2873
  return 0;
2874
}
2875
_ACEOF
2876
rm -f conftest.o conftest.obj
2877 173 bertin
if { (ac_try="$ac_compile"
2878
case "(($ac_try" in
2879
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880
  *) ac_try_echo=$ac_try;;
2881
esac
2882
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883
  (eval "$ac_compile") 2>&5
2884 2 bertin
  ac_status=$?
2885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886
  (exit $ac_status); }; then
2887 173 bertin
  for ac_file in conftest.o conftest.obj conftest.*; do
2888
  test -f "$ac_file" || continue;
2889 2 bertin
  case $ac_file in
2890 173 bertin
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2891 2 bertin
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2892
       break;;
2893
  esac
2894
done
2895
else
2896
  echo "$as_me: failed program was:" >&5
2897
sed 's/^/| /' conftest.$ac_ext >&5
2898
 
2899
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2900
See \`config.log' for more details." >&5
2901
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2902
See \`config.log' for more details." >&2;}
2903
   { (exit 1); exit 1; }; }
2904
fi
2905
 
2906
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2907
fi
2908 173 bertin
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2909
echo "${ECHO_T}$ac_cv_objext" >&6; }
2910 2 bertin
OBJEXT=$ac_cv_objext
2911
ac_objext=$OBJEXT
2912 173 bertin
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2913
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2914 2 bertin
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2915
  echo $ECHO_N "(cached) $ECHO_C" >&6
2916
else
2917
  cat >conftest.$ac_ext <<_ACEOF
2918
/* confdefs.h.  */
2919
_ACEOF
2920
cat confdefs.h >>conftest.$ac_ext
2921
cat >>conftest.$ac_ext <<_ACEOF
2922
/* end confdefs.h.  */
2923
 
2924
int
2925
main ()
2926
{
2927
#ifndef __GNUC__
2928
       choke me
2929
#endif
2930
 
2931
  ;
2932
  return 0;
2933
}
2934
_ACEOF
2935
rm -f conftest.$ac_objext
2936 173 bertin
if { (ac_try="$ac_compile"
2937
case "(($ac_try" in
2938
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939
  *) ac_try_echo=$ac_try;;
2940
esac
2941
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942
  (eval "$ac_compile") 2>conftest.er1
2943 2 bertin
  ac_status=$?
2944
  grep -v '^ *+' conftest.er1 >conftest.err
2945
  rm -f conftest.er1
2946
  cat conftest.err >&5
2947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 173 bertin
  (exit $ac_status); } && {
2949
         test -z "$ac_c_werror_flag" ||
2950
         test ! -s conftest.err
2951
       } && test -s conftest.$ac_objext; then
2952 2 bertin
  ac_compiler_gnu=yes
2953
else
2954
  echo "$as_me: failed program was:" >&5
2955
sed 's/^/| /' conftest.$ac_ext >&5
2956
 
2957 173 bertin
        ac_compiler_gnu=no
2958 2 bertin
fi
2959 173 bertin
 
2960
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2961 2 bertin
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2962
 
2963
fi
2964 173 bertin
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2965
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2966 2 bertin
GCC=`test $ac_compiler_gnu = yes && echo yes`
2967
ac_test_CFLAGS=${CFLAGS+set}
2968
ac_save_CFLAGS=$CFLAGS
2969 173 bertin
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2970
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2971 2 bertin
if test "${ac_cv_prog_cc_g+set}" = set; then
2972
  echo $ECHO_N "(cached) $ECHO_C" >&6
2973
else
2974 173 bertin
  ac_save_c_werror_flag=$ac_c_werror_flag
2975
   ac_c_werror_flag=yes
2976
   ac_cv_prog_cc_g=no
2977
   CFLAGS="-g"
2978
   cat >conftest.$ac_ext <<_ACEOF
2979 2 bertin
/* confdefs.h.  */
2980
_ACEOF
2981
cat confdefs.h >>conftest.$ac_ext
2982
cat >>conftest.$ac_ext <<_ACEOF
2983
/* end confdefs.h.  */
2984
 
2985
int
2986
main ()
2987
{
2988
 
2989
  ;
2990
  return 0;
2991
}
2992
_ACEOF
2993
rm -f conftest.$ac_objext
2994 173 bertin
if { (ac_try="$ac_compile"
2995
case "(($ac_try" in
2996
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997
  *) ac_try_echo=$ac_try;;
2998
esac
2999
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3000
  (eval "$ac_compile") 2>conftest.er1
3001 2 bertin
  ac_status=$?
3002
  grep -v '^ *+' conftest.er1 >conftest.err
3003
  rm -f conftest.er1
3004
  cat conftest.err >&5
3005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 173 bertin
  (exit $ac_status); } && {
3007
         test -z "$ac_c_werror_flag" ||
3008
         test ! -s conftest.err
3009
       } && test -s conftest.$ac_objext; then
3010
  ac_cv_prog_cc_g=yes
3011
else
3012
  echo "$as_me: failed program was:" >&5
3013
sed 's/^/| /' conftest.$ac_ext >&5
3014
 
3015
        CFLAGS=""
3016
      cat >conftest.$ac_ext <<_ACEOF
3017
/* confdefs.h.  */
3018
_ACEOF
3019
cat confdefs.h >>conftest.$ac_ext
3020
cat >>conftest.$ac_ext <<_ACEOF
3021
/* end confdefs.h.  */
3022
 
3023
int
3024
main ()
3025
{
3026
 
3027
  ;
3028
  return 0;
3029
}
3030
_ACEOF
3031
rm -f conftest.$ac_objext
3032
if { (ac_try="$ac_compile"
3033
case "(($ac_try" in
3034
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035
  *) ac_try_echo=$ac_try;;
3036
esac
3037
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3038
  (eval "$ac_compile") 2>conftest.er1
3039 2 bertin
  ac_status=$?
3040 173 bertin
  grep -v '^ *+' conftest.er1 >conftest.err
3041
  rm -f conftest.er1
3042
  cat conftest.err >&5
3043 2 bertin
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 173 bertin
  (exit $ac_status); } && {
3045
         test -z "$ac_c_werror_flag" ||
3046
         test ! -s conftest.err
3047
       } && test -s conftest.$ac_objext; then
3048
  :
3049
else
3050
  echo "$as_me: failed program was:" >&5
3051
sed 's/^/| /' conftest.$ac_ext >&5
3052
 
3053
        ac_c_werror_flag=$ac_save_c_werror_flag
3054
         CFLAGS="-g"
3055
         cat >conftest.$ac_ext <<_ACEOF
3056
/* confdefs.h.  */
3057
_ACEOF
3058
cat confdefs.h >>conftest.$ac_ext
3059
cat >>conftest.$ac_ext <<_ACEOF
3060
/* end confdefs.h.  */
3061
 
3062
int
3063
main ()
3064
{
3065
 
3066
  ;
3067
  return 0;
3068
}
3069
_ACEOF
3070
rm -f conftest.$ac_objext
3071
if { (ac_try="$ac_compile"
3072
case "(($ac_try" in
3073
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074
  *) ac_try_echo=$ac_try;;
3075
esac
3076
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077
  (eval "$ac_compile") 2>conftest.er1
3078 2 bertin
  ac_status=$?
3079 173 bertin
  grep -v '^ *+' conftest.er1 >conftest.err
3080
  rm -f conftest.er1
3081
  cat conftest.err >&5
3082 2 bertin
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 173 bertin
  (exit $ac_status); } && {
3084
         test -z "$ac_c_werror_flag" ||
3085
         test ! -s conftest.err
3086
       } && test -s conftest.$ac_objext; then
3087 2 bertin
  ac_cv_prog_cc_g=yes
3088
else
3089
  echo "$as_me: failed program was:" >&5
3090
sed 's/^/| /' conftest.$ac_ext >&5
3091
 
3092 173 bertin
 
3093 2 bertin
fi
3094 173 bertin
 
3095
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3096 2 bertin
fi
3097 173 bertin
 
3098
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3099
fi
3100
 
3101
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3102
   ac_c_werror_flag=$ac_save_c_werror_flag
3103
fi
3104
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3105
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3106 2 bertin
if test "$ac_test_CFLAGS" = set; then
3107
  CFLAGS=$ac_save_CFLAGS
3108
elif test $ac_cv_prog_cc_g = yes; then
3109
  if test "$GCC" = yes; then
3110
    CFLAGS="-g -O2"
3111
  else
3112
    CFLAGS="-g"
3113
  fi
3114
else
3115
  if test "$GCC" = yes; then
3116
    CFLAGS="-O2"
3117
  else
3118
    CFLAGS=
3119
  fi
3120
fi
3121 173 bertin
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3122
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3123
if test "${ac_cv_prog_cc_c89+set}" = set; then
3124 2 bertin
  echo $ECHO_N "(cached) $ECHO_C" >&6
3125
else
3126 173 bertin
  ac_cv_prog_cc_c89=no
3127 2 bertin
ac_save_CC=$CC
3128
cat >conftest.$ac_ext <<_ACEOF
3129
/* confdefs.h.  */
3130
_ACEOF
3131
cat confdefs.h >>conftest.$ac_ext
3132
cat >>conftest.$ac_ext <<_ACEOF
3133
/* end confdefs.h.  */
3134
#include 
3135
#include 
3136
#include 
3137
#include 
3138
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3139
struct buf { int x; };
3140
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3141
static char *e (p, i)
3142
     char **p;
3143
     int i;
3144
{
3145
  return p[i];
3146
}
3147
static char *f (char * (*g) (char **, int), char **p, ...)
3148
{
3149
  char *s;
3150
  va_list v;
3151
  va_start (v,p);
3152
  s = g (p, va_arg (v,int));
3153
  va_end (v);
3154
  return s;
3155
}
3156
 
3157
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3158
   function prototypes and stuff, but not '\xHH' hex character constants.
3159
   These don't provoke an error unfortunately, instead are silently treated
3160 173 bertin
   as 'x'.  The following induces an error, until -std is added to get
3161 2 bertin
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3162
   array size at least.  It's necessary to write '\x00'==0 to get something
3163 173 bertin
   that's true only with -std.  */
3164 2 bertin
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3165
 
3166 173 bertin
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3167
   inside strings and character constants.  */
3168
#define FOO(x) 'x'
3169
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3170
 
3171 2 bertin
int test (int i, double x);
3172
struct s1 {int (*f) (int a);};
3173
struct s2 {int (*f) (double a);};
3174
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3175
int argc;
3176
char **argv;
3177
int
3178
main ()
3179
{
3180
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3181
  ;
3182
  return 0;
3183
}
3184
_ACEOF
3185 173 bertin
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3186
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3187 2 bertin
do
3188
  CC="$ac_save_CC $ac_arg"
3189
  rm -f conftest.$ac_objext
3190 173 bertin
if { (ac_try="$ac_compile"
3191
case "(($ac_try" in
3192
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193
  *) ac_try_echo=$ac_try;;
3194
esac
3195
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3196
  (eval "$ac_compile") 2>conftest.er1
3197 2 bertin
  ac_status=$?
3198
  grep -v '^ *+' conftest.er1 >conftest.err
3199
  rm -f conftest.er1
3200
  cat conftest.err >&5
3201
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 173 bertin
  (exit $ac_status); } && {
3203
         test -z "$ac_c_werror_flag" ||
3204
         test ! -s conftest.err
3205
       } && test -s conftest.$ac_objext; then
3206
  ac_cv_prog_cc_c89=$ac_arg
3207 2 bertin
else
3208
  echo "$as_me: failed program was:" >&5
3209
sed 's/^/| /' conftest.$ac_ext >&5
3210
 
3211 173 bertin
 
3212 2 bertin
fi
3213 173 bertin
 
3214
rm -f core conftest.err conftest.$ac_objext
3215
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3216 2 bertin
done
3217 173 bertin
rm -f conftest.$ac_ext
3218 2 bertin
CC=$ac_save_CC
3219
 
3220
fi
3221 173 bertin
# AC_CACHE_VAL
3222
case "x$ac_cv_prog_cc_c89" in
3223
  x)
3224
    { echo "$as_me:$LINENO: result: none needed" >&5
3225
echo "${ECHO_T}none needed" >&6; } ;;
3226
  xno)
3227
    { echo "$as_me:$LINENO: result: unsupported" >&5
3228
echo "${ECHO_T}unsupported" >&6; } ;;
3229 2 bertin
  *)
3230 173 bertin
    CC="$CC $ac_cv_prog_cc_c89"
3231
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3232
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3233 2 bertin
esac
3234
 
3235
 
3236
ac_ext=c
3237
ac_cpp='$CPP $CPPFLAGS'
3238
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3241
DEPDIR="${am__leading_dot}deps"
3242
 
3243 173 bertin
ac_config_commands="$ac_config_commands depfiles"
3244 2 bertin
 
3245
 
3246
am_make=${MAKE-make}
3247
cat > confinc << 'END'
3248
am__doit:
3249
        @echo done
3250
.PHONY: am__doit
3251
END
3252
# If we don't find an include directive, just comment out the code.
3253 173 bertin
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3254
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3255 2 bertin
am__include="#"
3256
am__quote=
3257
_am_result=none
3258
# First try GNU make style include.
3259
echo "include confinc" > confmf
3260
# We grep out `Entering directory' and `Leaving directory'
3261
# messages which can occur if `w' ends up in MAKEFLAGS.
3262
# In particular we don't look at `^make:' because GNU make might
3263
# be invoked under some other name (usually "gmake"), in which
3264
# case it prints its new name instead of `make'.
3265
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3266
   am__include=include
3267
   am__quote=
3268
   _am_result=GNU
3269
fi
3270
# Now try BSD make style include.
3271
if test "$am__include" = "#"; then
3272
   echo '.include "confinc"' > confmf
3273
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3274
      am__include=.include
3275
      am__quote="\""
3276
      _am_result=BSD
3277
   fi
3278
fi
3279
 
3280
 
3281 173 bertin
{ echo "$as_me:$LINENO: result: $_am_result" >&5
3282
echo "${ECHO_T}$_am_result" >&6; }
3283 2 bertin
rm -f confinc confmf
3284
 
3285 173 bertin
# Check whether --enable-dependency-tracking was given.
3286 2 bertin
if test "${enable_dependency_tracking+set}" = set; then
3287 173 bertin
  enableval=$enable_dependency_tracking;
3288
fi
3289 2 bertin
 
3290
if test "x$enable_dependency_tracking" != xno; then
3291
  am_depcomp="$ac_aux_dir/depcomp"
3292
  AMDEPBACKSLASH='\'
3293
fi
3294 173 bertin
 if test "x$enable_dependency_tracking" != xno; then
3295 2 bertin
  AMDEP_TRUE=
3296
  AMDEP_FALSE='#'
3297
else
3298
  AMDEP_TRUE='#'
3299
  AMDEP_FALSE=
3300
fi
3301
 
3302
 
3303
 
3304
depcc="$CC"   am_compiler_list=
3305
 
3306 173 bertin
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3307
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3308 2 bertin
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3309
  echo $ECHO_N "(cached) $ECHO_C" >&6
3310
else
3311
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3312
  # We make a subdir and do the tests there.  Otherwise we can end up
3313
  # making bogus files that we don't know about and never remove.  For
3314
  # instance it was reported that on HP-UX the gcc test will end up
3315
  # making a dummy file named `D' -- because `-MD' means `put the output
3316
  # in D'.
3317
  mkdir conftest.dir
3318
  # Copy depcomp to subdir because otherwise we won't find it if we're
3319
  # using a relative directory.
3320
  cp "$am_depcomp" conftest.dir
3321
  cd conftest.dir
3322
  # We will build objects and dependencies in a subdirectory because
3323
  # it helps to detect inapplicable dependency modes.  For instance
3324
  # both Tru64's cc and ICC support -MD to output dependencies as a
3325
  # side effect of compilation, but ICC will put the dependencies in
3326
  # the current directory while Tru64 will put them in the object
3327
  # directory.
3328
  mkdir sub
3329
 
3330
  am_cv_CC_dependencies_compiler_type=none
3331
  if test "$am_compiler_list" = ""; then
3332
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3333
  fi
3334
  for depmode in $am_compiler_list; do
3335
    # Setup a source with many dependencies, because some compilers
3336
    # like to wrap large dependency lists on column 80 (with \), and
3337
    # we should not choose a depcomp mode which is confused by this.
3338
    #
3339
    # We need to recreate these files for each test, as the compiler may
3340
    # overwrite some of them when testing with obscure command lines.
3341
    # This happens at least with the AIX C compiler.
3342
    : > sub/conftest.c
3343
    for i in 1 2 3 4 5 6; do
3344
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3345
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3346
      # Solaris 8's {/usr,}/bin/sh.
3347
      touch sub/conftst$i.h
3348
    done
3349
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3350
 
3351
    case $depmode in
3352
    nosideeffect)
3353
      # after this tag, mechanisms are not by side-effect, so they'll
3354
      # only be used when explicitly requested
3355
      if test "x$enable_dependency_tracking" = xyes; then
3356
        continue
3357
      else
3358
        break
3359
      fi
3360
      ;;
3361
    none) break ;;
3362
    esac
3363
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3364
    # mode.  It turns out that the SunPro C++ compiler does not properly
3365
    # handle `-M -o', and we need to detect this.
3366
    if depmode=$depmode \
3367
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3368
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3369
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3370
         >/dev/null 2>conftest.err &&
3371 173 bertin
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3372 2 bertin
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3373
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3374
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3375
      # icc doesn't choke on unknown options, it will just issue warnings
3376
      # or remarks (even with -Werror).  So we grep stderr for any message
3377
      # that says an option was ignored or not supported.
3378
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3379
      #   icc: Command line warning: ignoring option '-M'; no argument required
3380
      # The diagnosis changed in icc 8.0:
3381
      #   icc: Command line remark: option '-MP' not supported
3382
      if (grep 'ignoring option' conftest.err ||
3383
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3384
        am_cv_CC_dependencies_compiler_type=$depmode
3385
        break
3386
      fi
3387
    fi
3388
  done
3389
 
3390
  cd ..
3391
  rm -rf conftest.dir
3392
else
3393
  am_cv_CC_dependencies_compiler_type=none
3394
fi
3395
 
3396
fi
3397 173 bertin
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3398
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3399 2 bertin
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3400
 
3401 173 bertin
 if
3402 2 bertin
  test "x$enable_dependency_tracking" != xno \
3403
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3404
  am__fastdepCC_TRUE=
3405
  am__fastdepCC_FALSE='#'
3406
else
3407
  am__fastdepCC_TRUE='#'
3408
  am__fastdepCC_FALSE=
3409
fi
3410
 
3411
 
3412 173 bertin
# C Compiler: Check that it is ANSI C and POSIX-compliant
3413 2 bertin
ac_ext=c
3414
ac_cpp='$CPP $CPPFLAGS'
3415
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3416
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3417
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3418
if test -n "$ac_tool_prefix"; then
3419
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3420
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3421 173 bertin
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3422
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3423 2 bertin
if test "${ac_cv_prog_CC+set}" = set; then
3424
  echo $ECHO_N "(cached) $ECHO_C" >&6
3425
else
3426
  if test -n "$CC"; then
3427
  ac_cv_prog_CC="$CC" # Let the user override the test.
3428
else
3429
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430
for as_dir in $PATH
3431
do
3432
  IFS=$as_save_IFS
3433
  test -z "$as_dir" && as_dir=.
3434
  for ac_exec_ext in '' $ac_executable_extensions; do
3435 173 bertin
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3436 2 bertin
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3437
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3438
    break 2
3439
  fi
3440
done
3441
done
3442 173 bertin
IFS=$as_save_IFS
3443 2 bertin
 
3444
fi
3445
fi
3446
CC=$ac_cv_prog_CC
3447
if test -n "$CC"; then
3448 173 bertin
  { echo "$as_me:$LINENO: result: $CC" >&5
3449
echo "${ECHO_T}$CC" >&6; }
3450 2 bertin
else
3451 173 bertin
  { echo "$as_me:$LINENO: result: no" >&5
3452
echo "${ECHO_T}no" >&6; }
3453 2 bertin
fi
3454
 
3455 173 bertin
 
3456 2 bertin
fi
3457
if test -z "$ac_cv_prog_CC"; then
3458
  ac_ct_CC=$CC
3459
  # Extract the first word of "gcc", so it can be a program name with args.
3460
set dummy gcc; ac_word=$2
3461 173 bertin
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3462
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3463 2 bertin
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3464
  echo $ECHO_N "(cached) $ECHO_C" >&6
3465
else
3466
  if test -n "$ac_ct_CC"; then
3467
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3468
else
3469
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470
for as_dir in $PATH
3471
do
3472
  IFS=$as_save_IFS
3473
  test -z "$as_dir" && as_dir=.
3474
  for ac_exec_ext in '' $ac_executable_extensions; do
3475 173 bertin
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3476 2 bertin
    ac_cv_prog_ac_ct_CC="gcc"
3477
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3478
    break 2
3479
  fi
3480
done
3481
done
3482 173 bertin
IFS=$as_save_IFS
3483 2 bertin
 
3484
fi
3485
fi
3486
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3487
if test -n "$ac_ct_CC"; then
3488 173 bertin
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3489
echo "${ECHO_T}$ac_ct_CC" >&6; }
3490 2 bertin
else
3491 173 bertin
  { echo "$as_me:$LINENO: result: no" >&5
3492
echo "${ECHO_T}no" >&6; }
3493 2 bertin
fi
3494
 
3495 173 bertin
  if test "x$ac_ct_CC" = x; then
3496
    CC=""
3497
  else
3498
    case $cross_compiling:$ac_tool_warned in
3499
yes:)
3500
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3501
whose name does not start with the host triplet.  If you think this
3502
configuration is useful to you, please write to autoconf@gnu.org." >&5
3503
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3504
whose name does not start with the host triplet.  If you think this
3505
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3506
ac_tool_warned=yes ;;
3507
esac
3508
    CC=$ac_ct_CC
3509
  fi
3510 2 bertin
else
3511
  CC="$ac_cv_prog_CC"
3512
fi
3513
 
3514
if test -z "$CC"; then
3515 173 bertin
          if test -n "$ac_tool_prefix"; then
3516
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3517 2 bertin
set dummy ${ac_tool_prefix}cc; ac_word=$2
3518 173 bertin
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3519
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3520 2 bertin
if test "${ac_cv_prog_CC+set}" = set; then
3521
  echo $ECHO_N "(cached) $ECHO_C" >&6
3522
else
3523
  if test -n "$CC"; then
3524
  ac_cv_prog_CC="$CC" # Let the user override the test.
3525
else
3526
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527
for as_dir in $PATH
3528
do
3529
  IFS=$as_save_IFS
3530
  test -z "$as_dir" && as_dir=.
3531
  for ac_exec_ext in '' $ac_executable_extensions; do
3532 173 bertin
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3533 2 bertin
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3534
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3535
    break 2
3536
  fi
3537
done
3538
done
3539 173 bertin
IFS=$as_save_IFS
3540 2 bertin
 
3541
fi
3542
fi
3543
CC=$ac_cv_prog_CC
3544
if test -n "$CC"; then
3545 173 bertin
  { echo "$as_me:$LINENO: result: $CC" >&5
3546
echo "${ECHO_T}$CC" >&6; }
3547 2 bertin
else
3548 173 bertin
  { echo "$as_me:$LINENO: result: no" >&5
3549
echo "${ECHO_T}no" >&6; }
3550 2 bertin
fi
3551
 
3552 173 bertin
 
3553 2 bertin
  fi
3554
fi
3555
if test -z "$CC"; then
3556
  # Extract the first word of "cc", so it can be a program name with args.
3557
set dummy cc; ac_word=$2
3558 173 bertin
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3559
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3560 2 bertin
if test "${ac_cv_prog_CC+set}" = set; then
3561
  echo $ECHO_N "(cached) $ECHO_C" >&6
3562
else
3563
  if test -n "$CC"; then
3564
  ac_cv_prog_CC="$CC" # Let the user override the test.
3565
else
3566
  ac_prog_rejected=no
3567
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3568
for as_dir in $PATH
3569
do
3570
  IFS=$as_save_IFS
3571
  test -z "$as_dir" && as_dir=.
3572
  for ac_exec_ext in '' $ac_executable_extensions; do
3573 173 bertin
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3574 2 bertin
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3575
       ac_prog_rejected=yes
3576
       continue
3577
     fi
3578
    ac_cv_prog_CC="cc"
3579
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3580
    break 2
3581
  fi
3582
done
3583
done
3584 173 bertin
IFS=$as_save_IFS
3585 2 bertin
 
3586
if test $ac_prog_rejected = yes; then
3587
  # We found a bogon in the path, so make sure we never use it.
3588
  set dummy $ac_cv_prog_CC
3589
  shift
3590
  if test $# != 0; then
3591
    # We chose a different compiler from the bogus one.
3592
    # However, it has the same basename, so the bogon will be chosen
3593
    # first if we set CC to just the basename; use the full file name.
3594
    shift
3595
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3596
  fi
3597
fi
3598
fi
3599
fi
3600
CC=$ac_cv_prog_CC
3601
if test -n "$CC"; then
3602 173 bertin
  { echo "$as_me:$LINENO: result: $CC" >&5
3603
echo "${ECHO_T}$CC" >&6; }
3604 2 bertin
else
3605 173 bertin
  { echo "$as_me:$LINENO: result: no" >&5
3606
echo "${ECHO_T}no" >&6; }
3607 2 bertin
fi
3608
 
3609 173 bertin
 
3610 2 bertin
fi
3611
if test -z "$CC"; then
3612
  if test -n "$ac_tool_prefix"; then
3613 173 bertin
  for ac_prog in cl.exe
3614 2 bertin
  do
3615
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3616
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3617 173 bertin
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3618
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3619 2 bertin
if test "${ac_cv_prog_CC+set}" = set; then
3620
  echo $ECHO_N "(cached) $ECHO_C" >&6
3621
else
3622
  if test -n "$CC"; then
3623
  ac_cv_prog_CC="$CC" # Let the user override the test.
3624
else
3625
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626
for as_dir in $PATH
3627
do
3628
  IFS=$as_save_IFS
3629
  test -z "$as_dir" && as_dir=.
3630
  for ac_exec_ext in '' $ac_executable_extensions; do
3631 173 bertin
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3632 2 bertin
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3633
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3634
    break 2
3635
  fi
3636
done
3637
done
3638 173 bertin
IFS=$as_save_IFS
3639 2 bertin
 
3640
fi
3641
fi
3642
CC=$ac_cv_prog_CC
3643
if test -n "$CC"; then
3644 173 bertin
  { echo "$as_me:$LINENO: result: $CC" >&5
3645
echo "${ECHO_T}$CC" >&6; }
3646 2 bertin
else
3647 173 bertin
  { echo "$as_me:$LINENO: result: no" >&5
3648
echo "${ECHO_T}no" >&6; }
3649 2 bertin
fi
3650
 
3651 173 bertin
 
3652 2 bertin
    test -n "$CC" && break
3653
  done
3654
fi
3655
if test -z "$CC"; then
3656
  ac_ct_CC=$CC
3657 173 bertin
  for ac_prog in cl.exe
3658 2 bertin
do
3659
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3660
set dummy $ac_prog; ac_word=$2
3661 173 bertin
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3662
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3663 2 bertin
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3664
  echo $ECHO_N "(cached) $ECHO_C" >&6
3665
else
3666
  if test -n "$ac_ct_CC"; then
3667
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3668
else
3669
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670
for as_dir in $PATH
3671
do
3672
  IFS=$as_save_IFS
3673
  test -z "$as_dir" && as_dir=.
3674
  for ac_exec_ext in '' $ac_executable_extensions; do
3675 173 bertin
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3676 2 bertin
    ac_cv_prog_ac_ct_CC="$ac_prog"
3677
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3678
    break 2
3679
  fi
3680
done
3681
done
3682 173 bertin
IFS=$as_save_IFS
3683 2 bertin
 
3684
fi
3685
fi
3686
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3687
if test -n "$ac_ct_CC"; then
3688 173 bertin
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3689
echo "${ECHO_T}$ac_ct_CC" >&6; }
3690 2 bertin
else
3691 173 bertin
  { echo "$as_me:$LINENO: result: no" >&5
3692
echo "${ECHO_T}no" >&6; }
3693 2 bertin
fi
3694
 
3695 173 bertin
 
3696 2 bertin
  test -n "$ac_ct_CC" && break
3697
done
3698
 
3699 173 bertin
  if test "x$ac_ct_CC" = x; then
3700
    CC=""
3701
  else
3702
    case $cross_compiling:$ac_tool_warned in
3703
yes:)
3704
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3705
whose name does not start with the host triplet.  If you think this
3706
configuration is useful to you, please write to autoconf@gnu.org." >&5
3707
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3708
whose name does not start with the host triplet.  If you think this
3709
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3710
ac_tool_warned=yes ;;
3711
esac
3712
    CC=$ac_ct_CC
3713
  fi
3714 2 bertin
fi
3715
 
3716
fi
3717
 
3718
 
3719
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3720
See \`config.log' for more details." >&5
3721
echo "$as_me: error: no acceptable C compiler found in \$PATH
3722
See \`config.log' for more details." >&2;}
3723
   { (exit 1); exit 1; }; }
3724
 
3725
# Provide some information about the compiler.
3726 173 bertin
echo "$as_me:$LINENO: checking for C compiler version" >&5
3727 2 bertin
ac_compiler=`set X $ac_compile; echo $2`
3728 173 bertin
{ (ac_try="$ac_compiler --version >&5"
3729
case "(($ac_try" in
3730
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731
  *) ac_try_echo=$ac_try;;
3732
esac
3733
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3734
  (eval "$ac_compiler --version >&5") 2>&5
3735 2 bertin
  ac_status=$?
3736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737
  (exit $ac_status); }
3738 173 bertin
{ (ac_try="$ac_compiler -v >&5"
3739
case "(($ac_try" in
3740
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741
  *) ac_try_echo=$ac_try;;
3742
esac
3743
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3744
  (eval "$ac_compiler -v >&5") 2>&5
3745 2 bertin
  ac_status=$?
3746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747
  (exit $ac_status); }
3748 173 bertin
{ (ac_try="$ac_compiler -V >&5"
3749
case "(($ac_try" in
3750
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3751
  *) ac_try_echo=$ac_try;;
3752
esac
3753
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3754
  (eval "$ac_compiler -V >&5") 2>&5
3755 2 bertin
  ac_status=$?
3756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757
  (exit $ac_status); }
3758
 
3759 173 bertin
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3760
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3761 2 bertin
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3762
  echo $ECHO_N "(cached) $ECHO_C" >&6
3763
else
3764
  cat >conftest.$ac_ext <<_ACEOF
3765
/* confdefs.h.  */
3766
_ACEOF
3767
cat confdefs.h >>conftest.$ac_ext
3768
cat >>conftest.$ac_ext <<_ACEOF
3769
/* end confdefs.h.  */
3770
 
3771
int
3772
main ()
3773
{
3774
#ifndef __GNUC__
3775
       choke me
3776
#endif
3777
 
3778
  ;
3779
  return 0;
3780
}
3781
_ACEOF
3782
rm -f conftest.$ac_objext
3783 173 bertin
if { (ac_try="$ac_compile"
3784
case "(($ac_try" in
3785
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786
  *) ac_try_echo=$ac_try;;
3787
esac
3788
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3789
  (eval "$ac_compile") 2>conftest.er1
3790 2 bertin
  ac_status=$?
3791
  grep -v '^ *+' conftest.er1 >conftest.err
3792
  rm -f conftest.er1
3793
  cat conftest.err >&5
3794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 173 bertin
  (exit $ac_status); } && {
3796
         test -z "$ac_c_werror_flag" ||
3797
         test ! -s conftest.err
3798
       } && test -s conftest.$ac_objext; then
3799 2 bertin
  ac_compiler_gnu=yes
3800
else
3801
  echo "$as_me: failed program was:" >&5
3802
sed 's/^/| /' conftest.$ac_ext >&5
3803
 
3804 173 bertin
        ac_compiler_gnu=no
3805 2 bertin
fi
3806 173 bertin
 
3807
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3808 2 bertin
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3809
 
3810
fi
3811 173 bertin
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3812
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3813 2 bertin
GCC=`test $ac_compiler_gnu = yes && echo yes`
3814
ac_test_CFLAGS=${CFLAGS+set}
3815
ac_save_CFLAGS=$CFLAGS
3816 173 bertin
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3817
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3818 2 bertin
if test "${ac_cv_prog_cc_g+set}" = set; then
3819
  echo $ECHO_N "(cached) $ECHO_C" >&6
3820
else
3821 173 bertin
  ac_save_c_werror_flag=$ac_c_werror_flag
3822
   ac_c_werror_flag=yes
3823
   ac_cv_prog_cc_g=no
3824
   CFLAGS="-g"
3825
   cat >conftest.$ac_ext <<_ACEOF
3826 2 bertin
/* confdefs.h.  */
3827
_ACEOF
3828
cat confdefs.h >>conftest.$ac_ext
3829
cat >>conftest.$ac_ext <<_ACEOF
3830
/* end confdefs.h.  */
3831
 
3832
int
3833
main ()
3834
{
3835
 
3836
  ;
3837
  return 0;
3838
}
3839
_ACEOF
3840
rm -f conftest.$ac_objext
3841 173 bertin
if { (ac_try="$ac_compile"
3842
case "(($ac_try" in
3843
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844
  *) ac_try_echo=$ac_try;;
3845
esac
3846
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3847
  (eval "$ac_compile") 2>conftest.er1
3848 2 bertin
  ac_status=$?
3849
  grep -v '^ *+' conftest.er1 >conftest.err
3850
  rm -f conftest.er1
3851
  cat conftest.err >&5
3852
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 173 bertin
  (exit $ac_status); } && {
3854
         test -z "$ac_c_werror_flag" ||
3855
         test ! -s conftest.err
3856
       } && test -s conftest.$ac_objext; then
3857
  ac_cv_prog_cc_g=yes
3858
else
3859
  echo "$as_me: failed program was:" >&5
3860
sed 's/^/| /' conftest.$ac_ext >&5
3861
 
3862
        CFLAGS=""
3863
      cat >conftest.$ac_ext <<_ACEOF
3864
/* confdefs.h.  */
3865
_ACEOF
3866
cat confdefs.h >>conftest.$ac_ext
3867
cat >>conftest.$ac_ext <<_ACEOF
3868
/* end confdefs.h.  */
3869
 
3870
int
3871
main ()
3872
{
3873
 
3874
  ;
3875
  return 0;
3876
}
3877
_ACEOF
3878
rm -f conftest.$ac_objext
3879
if { (ac_try="$ac_compile"
3880
case "(($ac_try" in
3881
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3882
  *) ac_try_echo=$ac_try;;
3883
esac
3884
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3885
  (eval "$ac_compile") 2>conftest.er1
3886 2 bertin
  ac_status=$?
3887 173 bertin
  grep -v '^ *+' conftest.er1 >conftest.err
3888
  rm -f conftest.er1
3889
  cat conftest.err >&5
3890 2 bertin
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 173 bertin
  (exit $ac_status); } && {
3892
         test -z "$ac_c_werror_flag" ||
3893
         test ! -s conftest.err
3894
       } && test -s conftest.$ac_objext; then
3895
  :
3896
else
3897
  echo "$as_me: failed program was:" >&5
3898
sed 's/^/| /' conftest.$ac_ext >&5
3899
 
3900
        ac_c_werror_flag=$ac_save_c_werror_flag
3901
         CFLAGS="-g"
3902
         cat >conftest.$ac_ext <<_ACEOF
3903
/* confdefs.h.  */
3904
_ACEOF
3905
cat confdefs.h >>conftest.$ac_ext
3906
cat >>conftest.$ac_ext <<_ACEOF
3907
/* end confdefs.h.  */
3908
 
3909
int
3910
main ()
3911
{
3912
 
3913
  ;
3914
  return 0;
3915
}
3916
_ACEOF
3917
rm -f conftest.$ac_objext
3918
if { (ac_try="$ac_compile"
3919
case "(($ac_try" in
3920
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3921
  *) ac_try_echo=$ac_try;;
3922
esac
3923
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3924
  (eval "$ac_compile") 2>conftest.er1
3925 2 bertin
  ac_status=$?
3926 173 bertin
  grep -v '^ *+' conftest.er1 >conftest.err
3927
  rm -f conftest.er1
3928
  cat conftest.err >&5
3929 2 bertin
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 173 bertin
  (exit $ac_status); } && {
3931
         test -z "$ac_c_werror_flag" ||
3932
         test ! -s conftest.err
3933
       } && test -s conftest.$ac_objext; then
3934 2 bertin
  ac_cv_prog_cc_g=yes
3935
else
3936
  echo "$as_me: failed program was:" >&5
3937
sed 's/^/| /' conftest.$ac_ext >&5
3938
 
3939 173 bertin
 
3940 2 bertin
fi
3941 173 bertin
 
3942
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3943 2 bertin
fi
3944 173 bertin
 
3945
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3946
fi
3947
 
3948
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3949
   ac_c_werror_flag=$ac_save_c_werror_flag
3950
fi
3951
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3952
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3953 2 bertin
if test "$ac_test_CFLAGS" = set; then
3954
  CFLAGS=$ac_save_CFLAGS
3955
elif test $ac_cv_prog_cc_g = yes; then
3956
  if test "$GCC" = yes; then
3957
    CFLAGS="-g -O2"
3958
  else
3959
    CFLAGS="-g"
3960
  fi
3961
else
3962
  if test "$GCC" = yes; then
3963
    CFLAGS="-O2"
3964
  else
3965
    CFLAGS=
3966
  fi
3967
fi
3968 173 bertin
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3969
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3970
if test "${ac_cv_prog_cc_c89+set}" = set; then
3971 2 bertin
  echo $ECHO_N "(cached) $ECHO_C" >&6
3972
else
3973 173 bertin
  ac_cv_prog_cc_c89=no
3974 2 bertin
ac_save_CC=$CC
3975
cat >conftest.$ac_ext <<_ACEOF
3976
/* confdefs.h.  */
3977
_ACEOF
3978
cat confdefs.h >>conftest.$ac_ext
3979
cat >>conftest.$ac_ext <<_ACEOF
3980
/* end confdefs.h.  */
3981
#include 
3982
#include 
3983
#include 
3984
#include 
3985
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3986
struct buf { int x; };
3987
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3988
static char *e (p, i)
3989
     char **p;
3990
     int i;
3991
{
3992
  return p[i];
3993
}
3994
static char *f (char * (*g) (char **, int), char **p, ...)
3995
{
3996
  char *s;
3997
  va_list v;
3998
  va_start (v,p);
3999
  s = g (p, va_arg (v,int));
4000
  va_end (v);
4001
  return s;
4002
}
4003
 
4004
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4005
   function prototypes and stuff, but not '\xHH' hex character constants.
4006
   These don't provoke an error unfortunately, instead are silently treated
4007 173 bertin
   as 'x'.  The following induces an error, until -std is added to get
4008 2 bertin
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4009
   array size at least.  It's necessary to write '\x00'==0 to get something
4010 173 bertin
   that's true only with -std.  */
4011 2 bertin
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4012
 
4013 173 bertin
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4014
   inside strings and character constants.  */
4015
#define FOO(x) 'x'
4016
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4017
 
4018 2 bertin
int test (int i, double x);
4019
struct s1 {int (*f) (int a);};
4020
struct s2 {int (*f) (double a);};
4021
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4022
int argc;
4023
char **argv;
4024
int
4025
main ()
4026
{
4027
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4028
  ;
4029
  return 0;
4030
}
4031
_ACEOF
4032 173 bertin
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4033
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4034 2 bertin
do
4035
  CC="$ac_save_CC $ac_arg"
4036
  rm -f conftest.$ac_objext
4037 173 bertin
if { (ac_try="$ac_compile"
4038
case "(($ac_try" in
4039
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4040
  *) ac_try_echo=$ac_try;;
4041
esac
4042
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4043
  (eval "$ac_compile") 2>conftest.er1
4044 2 bertin
  ac_status=$?
4045
  grep -v '^ *+' conftest.er1 >conftest.err
4046
  rm -f conftest.er1
4047
  cat conftest.err >&5
4048
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 173 bertin
  (exit $ac_status); } && {
4050
         test -z "$ac_c_werror_flag" ||
4051
         test ! -s conftest.err
4052
       } && test -s conftest.$ac_objext; then
4053
  ac_cv_prog_cc_c89=$ac_arg
4054 2 bertin
else
4055
  echo "$as_me: failed program was:" >&5
4056
sed 's/^/| /' conftest.$ac_ext >&5
4057
 
4058 173 bertin
 
4059 2 bertin
fi
4060 173 bertin
 
4061
rm -f core conftest.err conftest.$ac_objext
4062
  test "x$ac_cv_prog_cc_c89" != "xno" && break
4063 2 bertin
done
4064 173 bertin
rm -f conftest.$ac_ext
4065 2 bertin
CC=$ac_save_CC
4066
 
4067
fi
4068 173 bertin
# AC_CACHE_VAL
4069
case "x$ac_cv_prog_cc_c89" in
4070
  x)
4071
    { echo "$as_me:$LINENO: result: none needed" >&5
4072
echo "${ECHO_T}none needed" >&6; } ;;
4073
  xno)
4074
    { echo "$as_me:$LINENO: result: unsupported" >&5
4075
echo "${ECHO_T}unsupported" >&6; } ;;
4076 2 bertin
  *)
4077 173 bertin
    CC="$CC $ac_cv_prog_cc_c89"
4078
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4079
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4080 2 bertin
esac
4081
 
4082
 
4083
ac_ext=c
4084
ac_cpp='$CPP $CPPFLAGS'
4085
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4086
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4087
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4088
 
4089
depcc="$CC"   am_compiler_list=
4090
 
4091 173 bertin
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4092
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4093 2 bertin
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4094
  echo $ECHO_N "(cached) $ECHO_C" >&6
4095
else
4096
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4097
  # We make a subdir and do the tests there.  Otherwise we can end up
4098
  # making bogus files that we don't know about and never remove.  For
4099
  # instance it was reported that on HP-UX the gcc test will end up
4100
  # making a dummy file named `D' -- because `-MD' means `put the output
4101
  # in D'.
4102
  mkdir conftest.dir
4103
  # Copy depcomp to subdir because otherwise we won't find it if we're
4104
  # using a relative directory.
4105
  cp "$am_depcomp" conftest.dir
4106
  cd conftest.dir
4107
  # We will build objects and dependencies in a subdirectory because
4108
  # it helps to detect inapplicable dependency modes.  For instance
4109
  # both Tru64's cc and ICC support -MD to output dependencies as a
4110
  # side effect of compilation, but ICC will put the dependencies in
4111
  # the current directory while Tru64 will put them in the object
4112
  # directory.
4113
  mkdir sub
4114
 
4115
  am_cv_CC_dependencies_compiler_type=none
4116
  if test "$am_compiler_list" = ""; then
4117
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4118
  fi
4119
  for depmode in $am_compiler_list; do
4120
    # Setup a source with many dependencies, because some compilers
4121
    # like to wrap large dependency lists on column 80 (with \), and
4122
    # we should not choose a depcomp mode which is confused by this.
4123
    #
4124
    # We need to recreate these files for each test, as the compiler may
4125
    # overwrite some of them when testing with obscure command lines.
4126
    # This happens at least with the AIX C compiler.
4127
    : > sub/conftest.c
4128
    for i in 1 2 3 4 5 6; do
4129
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4130
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4131
      # Solaris 8's {/usr,}/bin/sh.
4132
      touch sub/conftst$i.h
4133
    done
4134
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4135
 
4136
    case $depmode in
4137
    nosideeffect)
4138
      # after this tag, mechanisms are not by side-effect, so they'll
4139
      # only be used when explicitly requested
4140
      if test "x$enable_dependency_tracking" = xyes; then
4141
        continue
4142
      else
4143
        break
4144
      fi
4145
      ;;
4146
    none) break ;;
4147
    esac
4148
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4149
    # mode.  It turns out that the SunPro C++ compiler does not properly
4150
    # handle `-M -o', and we need to detect this.
4151
    if depmode=$depmode \
4152
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4153
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4154
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4155
         >/dev/null 2>conftest.err &&
4156 173 bertin
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4157 2 bertin
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4158
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4159
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4160
      # icc doesn't choke on unknown options, it will just issue warnings
4161
      # or remarks (even with -Werror).  So we grep stderr for any message
4162
      # that says an option was ignored or not supported.
4163
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4164
      #   icc: Command line warning: ignoring option '-M'; no argument required
4165
      # The diagnosis changed in icc 8.0:
4166
      #   icc: Command line remark: option '-MP' not supported
4167
      if (grep 'ignoring option' conftest.err ||
4168
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4169
        am_cv_CC_dependencies_compiler_type=$depmode
4170
        break
4171
      fi
4172
    fi
4173
  done
4174
 
4175
  cd ..
4176
  rm -rf conftest.dir
4177
else
4178
  am_cv_CC_dependencies_compiler_type=none
4179
fi
4180
 
4181
fi
4182 173 bertin
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4183
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4184 2 bertin
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4185
 
4186 173 bertin
 if
4187 2 bertin
  test "x$enable_dependency_tracking" != xno \
4188
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4189
  am__fastdepCC_TRUE=
4190
  am__fastdepCC_FALSE='#'
4191
else
4192
  am__fastdepCC_TRUE='#'
4193
  am__fastdepCC_FALSE=
4194
fi
4195
 
4196
 
4197
 
4198
am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
4199
 
4200
 
4201 173 bertin
{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
4202
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
4203 2 bertin
if test "${ac_cv_search_strerror+set}" = set; then
4204
  echo $ECHO_N "(cached) $ECHO_C" >&6
4205
else
4206
  ac_func_search_save_LIBS=$LIBS
4207
cat >conftest.$ac_ext <<_ACEOF
4208
/* confdefs.h.  */
4209
_ACEOF
4210
cat confdefs.h >>conftest.$ac_ext
4211
cat >>conftest.$ac_ext <<_ACEOF
4212
/* end confdefs.h.  */
4213
 
4214 173 bertin
/* Override any GCC internal prototype to avoid an error.
4215
   Use char because int might match the return type of a GCC
4216
   builtin and then its argument prototype would still apply.  */
4217 2 bertin
#ifdef __cplusplus
4218
extern "C"
4219
#endif
4220
char strerror ();
4221
int
4222
main ()
4223
{
4224 173 bertin
return strerror ();
4225 2 bertin
  ;
4226
  return 0;
4227
}
4228
_ACEOF
4229 173 bertin
for ac_lib in '' cposix; do
4230
  if test -z "$ac_lib"; then
4231
    ac_res="none required"
4232
  else
4233
    ac_res=-l$ac_lib
4234
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4235
  fi
4236
  rm -f conftest.$ac_objext conftest$ac_exeext
4237
if { (ac_try="$ac_link"
4238
case "(($ac_try" in
4239
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240
  *) ac_try_echo=$ac_try;;
4241
esac
4242
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4243
  (eval "$ac_link") 2>conftest.er1
4244 2 bertin
  ac_status=$?
4245
  grep -v '^ *+' conftest.er1 >conftest.err
4246
  rm -f conftest.er1
4247
  cat conftest.err >&5
4248
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 173 bertin
  (exit $ac_status); } && {
4250
         test -z "$ac_c_werror_flag" ||
4251
         test ! -s conftest.err
4252
       } && test -s conftest$ac_exeext &&
4253
       $as_test_x conftest$ac_exeext; then
4254
  ac_cv_search_strerror=$ac_res
4255 2 bertin
else
4256
  echo "$as_me: failed program was:" >&5
4257
sed 's/^/| /' conftest.$ac_ext >&5
4258
 
4259 173 bertin
 
4260 2 bertin
fi
4261
 
4262 173 bertin
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4263
      conftest$ac_exeext
4264
  if test "${ac_cv_search_strerror+set}" = set; then
4265
  break
4266
fi
4267
done
4268
if test "${ac_cv_search_strerror+set}" = set; then
4269
  :
4270 2 bertin
else
4271 173 bertin
  ac_cv_search_strerror=no
4272 2 bertin
fi
4273 173 bertin
rm conftest.$ac_ext
4274 2 bertin
LIBS=$ac_func_search_save_LIBS
4275
fi
4276 173 bertin
{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4277
echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4278
ac_res=$ac_cv_search_strerror
4279
if test "$ac_res" != no; then
4280
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4281 2 bertin
 
4282
fi
4283
 
4284
 
4285
  msg="for C compiler optimization flags"
4286 173 bertin
  { echo "$as_me:$LINENO: checking $msg" >&5
4287
echo $ECHO_N "checking $msg... $ECHO_C" >&6; }
4288 2 bertin
if test "${prog_cc_optim_flags+set}" = set; then
4289
  echo $ECHO_N "(cached) $ECHO_C" >&6
4290
else
4291
 
4292
    if test -n "$CC"; then
4293
      cat > conftest.c <
4294
int main(int argc, char **argv) { return 0; }
4295
EOF
4296
 
4297
 
4298 173 bertin
            if $CC -V 2>&1 | grep -i "Intel(R) 64" > /dev/null 2>&1 &&
4299
           $CC -c -O conftest.c > /dev/null 2>&1 &&
4300
           test -f conftest.o; then
4301
        prog_cc_optim_flags="-O3 -axWPTS -ip -no-prec-div -unroll"
4302
        prog_ld_optim_flags="-static-intel"
4303 2 bertin
 
4304 173 bertin
            elif $CC -V 2>&1 | grep -i "Intel(R)" > /dev/null 2>&1 &&
4305
           $CC -c -O conftest.c > /dev/null 2>&1 &&
4306
           test -f conftest.o; then
4307
        prog_cc_optim_flags="-O -axKWNPTS -ip -no-prec-div"
4308
        prog_ld_optim_flags="-static-intel"
4309
 
4310
            elif test "$GCC" = "yes"; then
4311
        prog_cc_optim_flags="-O3 -g -funroll-loops -fomit-frame-pointer -Wall"
4312
        prog_ld_optim_flags=""
4313
 
4314 2 bertin
            elif $CC -V 2>&1 | grep -i "WorkShop" > /dev/null 2>&1 &&
4315
           $CC -c -O conftest.c > /dev/null 2>&1 &&
4316
           test -f conftest.o; then
4317
        prog_cc_optim_flags="-O"
4318 173 bertin
        prog_ld_optim_flags=""
4319 2 bertin
 
4320
            elif ($CC -V 2>&1 | grep -i "Digital UNIX Compiler"> /dev/null 2>&1 ||
4321
           $CC -V 2>&1 | grep -i "Compaq C"> /dev/null 2>&1) &&
4322
           $CC -c -fast conftest.c > /dev/null 2>&1 &&
4323
           test -f conftest.o; then
4324 173 bertin
        prog_cc_optim_flags="-fast -tune host"
4325
        prog_ld_optim_flags=""
4326 2 bertin
 
4327
            elif $CC 2>&1 | grep -i "C for AIX Compiler" > /dev/null 2>&1 &&
4328
           $CC -c -qinfo=all -O2 conftest.c > /dev/null 2>&1 &&
4329
           test -f conftest.o; then
4330
        prog_cc_optim_flags="-O2"
4331 173 bertin
        prog_ld_optim_flags=""
4332 2 bertin
 
4333
            elif $CC -version 2>&1 | grep -i "MIPSpro Compilers" > /dev/null 2>&1 &&
4334
           $CC -c -fullwarn -O3 conftest.c > /dev/null 2>&1 &&
4335
           test -f conftest.o; then
4336
        prog_cc_optim_flags="-O3"
4337 173 bertin
        prog_ld_optim_flags=""
4338 2 bertin
 
4339
            elif what $CC 2>&1 | grep -i "HP C Compiler" > /dev/null 2>&1 &&
4340
           $CC -c -Aa +O3 conftest.c > /dev/null 2>&1 &&
4341
           test -f conftest.o; then
4342
        prog_cc_optim_flags="+O3"
4343 173 bertin
        prog_ld_optim_flags=""
4344 2 bertin
 
4345
            elif $CC -V 2>&1 | grep "/SX" > /dev/null 2>&1 &&
4346
           $CC -c -Xc -O conftest.c > /dev/null 2>&1 &&
4347
           test -f conftest.o; then
4348
        prog_cc_optim_flags="-O"
4349 173 bertin
        prog_ld_optim_flags=""
4350 2 bertin
 
4351
            elif $CC -V 2>&1 | grep -i "Cray" > /dev/null 2>&1 &&
4352
           $CC -c -h conform -O3 conftest.c > /dev/null 2>&1 &&
4353
           test -f conftest.o; then
4354
        prog_cc_optim_flags="-O3"
4355 173 bertin
        prog_ld_optim_flags=""
4356 2 bertin
 
4357
      fi
4358
      rm -f conftest.*
4359
    fi
4360
    if test -n "$prog_cc_optim_flags"; then
4361
      CFLAGS="$CFLAGS $prog_cc_optim_flags"
4362 173 bertin
      LDFLAGS="$LDFLAGS $prog_ld_optim_flags"
4363 2 bertin
    else
4364 173 bertin
      prog_cc_optim_flags=""
4365
      prog_ld_optim_flags=""
4366 2 bertin
    fi
4367
 
4368
fi
4369 173 bertin
{ echo "$as_me:$LINENO: result: $prog_cc_optim_flags" >&5
4370
echo "${ECHO_T}$prog_cc_optim_flags" >&6; }
4371 2 bertin
 
4372 173 bertin
# Check whether --enable-static was given.
4373
if test "${enable_static+set}" = set; then
4374
  enableval=$enable_static; p=${PACKAGE-default}
4375
    case $enableval in
4376
    yes) enable_static=yes ;;
4377
    no) enable_static=no ;;
4378
    *)
4379
     enable_static=no
4380
      # Look at the argument we got.  We use all the common list separators.
4381
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4382
      for pkg in $enableval; do
4383
        IFS="$lt_save_ifs"
4384
        if test "X$pkg" = "X$p"; then
4385
          enable_static=yes
4386
        fi
4387
      done
4388
      IFS="$lt_save_ifs"
4389
      ;;
4390
    esac
4391
else
4392
  enable_static=no
4393
fi
4394
 
4395
 
4396
 
4397
#AC_DISABLE_SHARED
4398
# Check whether --enable-shared was given.
4399
if test "${enable_shared+set}" = set; then
4400
  enableval=$enable_shared; p=${PACKAGE-default}
4401
    case $enableval in
4402
    yes) enable_shared=yes ;;
4403
    no) enable_shared=no ;;
4404
    *)
4405
      enable_shared=no
4406
      # Look at the argument we got.  We use all the common list separators.
4407
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4408
      for pkg in $enableval; do
4409
        IFS="$lt_save_ifs"
4410
        if test "X$pkg" = "X$p"; then
4411
          enable_shared=yes
4412
        fi
4413
      done
4414
      IFS="$lt_save_ifs"
4415
      ;;
4416
    esac
4417
else
4418
  enable_shared=yes
4419
fi
4420
 
4421
 
4422
# Check whether --enable-fast-install was given.
4423
if test "${enable_fast_install+set}" = set; then
4424
  enableval=$enable_fast_install; p=${PACKAGE-default}
4425
    case $enableval in
4426
    yes) enable_fast_install=yes ;;
4427
    no) enable_fast_install=no ;;
4428
    *)
4429
      enable_fast_install=no
4430
      # Look at the argument we got.  We use all the common list separators.
4431
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4432
      for pkg in $enableval; do
4433
        IFS="$lt_save_ifs"
4434
        if test "X$pkg" = "X$p"; then
4435
          enable_fast_install=yes
4436
        fi
4437
      done
4438
      IFS="$lt_save_ifs"
4439
      ;;
4440
    esac
4441
else
4442
  enable_fast_install=yes
4443
fi
4444
 
4445
 
4446
# Make sure we can run config.sub.
4447
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4448
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4449
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4450
   { (exit 1); exit 1; }; }
4451
 
4452
{ echo "$as_me:$LINENO: checking build system type" >&5
4453
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4454
if test "${ac_cv_build+set}" = set; then
4455 2 bertin
  echo $ECHO_N "(cached) $ECHO_C" >&6
4456
else
4457 173 bertin
  ac_build_alias=$build_alias
4458
test "x$ac_build_alias" = x &&
4459
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4460
test "x$ac_build_alias" = x &&
4461
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4462
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4463
   { (exit 1); exit 1; }; }
4464
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4465
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4466
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4467
   { (exit 1); exit 1; }; }
4468
 
4469
fi
4470
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4471
echo "${ECHO_T}$ac_cv_build" >&6; }
4472
case $ac_cv_build in
4473
*-*-*) ;;
4474
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4475
echo "$as_me: error: invalid value of canonical build" >&2;}
4476
   { (exit 1); exit 1; }; };;
4477
esac
4478
build=$ac_cv_build
4479
ac_save_IFS=$IFS; IFS='-'
4480
set x $ac_cv_build
4481
shift
4482
build_cpu=$1
4483
build_vendor=$2
4484
shift; shift
4485
# Remember, the first character of IFS is used to create $*,
4486
# except with old shells:
4487
build_os=$*
4488
IFS=$ac_save_IFS
4489
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4490
 
4491
 
4492
{ echo "$as_me:$LINENO: checking host system type" >&5
4493
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4494
if test "${ac_cv_host+set}" = set; then
4495
  echo $ECHO_N "(cached) $ECHO_C" >&6
4496 2 bertin
else
4497 173 bertin
  if test "x$host_alias" = x; then
4498
  ac_cv_host=$ac_cv_build
4499
else
4500
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4501
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4502
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4503
   { (exit 1); exit 1; }; }
4504
fi
4505
 
4506
fi
4507
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4508
echo "${ECHO_T}$ac_cv_host" >&6; }
4509
case $ac_cv_host in
4510
*-*-*) ;;
4511
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4512
echo "$as_me: error: invalid value of canonical host" >&2;}
4513
   { (exit 1); exit 1; }; };;
4514
esac
4515
host=$ac_cv_host
4516
ac_save_IFS=$IFS; IFS='-'
4517
set x $ac_cv_host
4518
shift
4519
host_cpu=$1
4520
host_vendor=$2
4521
shift; shift
4522
# Remember, the first character of IFS is used to create $*,
4523
# except with old shells:
4524
host_os=$*
4525
IFS=$ac_save_IFS
4526
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4527
 
4528
 
4529
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4530
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4531
if test "${lt_cv_path_SED+set}" = set; then
4532
  echo $ECHO_N "(cached) $ECHO_C" >&6
4533
else
4534
  # Loop through the user's path and test for sed and gsed.
4535
# Then use that list of sed's as ones to test for truncation.
4536 2 bertin
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537
for as_dir in $PATH
4538
do
4539
  IFS=$as_save_IFS
4540
  test -z "$as_dir" && as_dir=.
4541 173 bertin
  for lt_ac_prog in sed gsed; do
4542
    for ac_exec_ext in '' $ac_executable_extensions; do
4543
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4544
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4545
      fi
4546
    done
4547
  done
4548
done
4549
IFS=$as_save_IFS
4550
lt_ac_max=0
4551
lt_ac_count=0
4552
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4553
# along with /bin/sed that truncates output.
4554
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4555
  test ! -f $lt_ac_sed && continue
4556
  cat /dev/null > conftest.in
4557
  lt_ac_count=0
4558
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4559
  # Check for GNU sed and select it if it is found.
4560
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4561
    lt_cv_path_SED=$lt_ac_sed
4562
    break
4563 2 bertin
  fi
4564 173 bertin
  while true; do
4565
    cat conftest.in conftest.in >conftest.tmp
4566
    mv conftest.tmp conftest.in
4567
    cp conftest.in conftest.nl
4568
    echo >>conftest.nl
4569
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4570
    cmp -s conftest.out conftest.nl || break
4571
    # 10000 chars as input seems more than enough
4572
    test $lt_ac_count -gt 10 && break
4573
    lt_ac_count=`expr $lt_ac_count + 1`
4574
    if test $lt_ac_count -gt $lt_ac_max; then
4575
      lt_ac_max=$lt_ac_count
4576
      lt_cv_path_SED=$lt_ac_sed
4577
    fi
4578
  done
4579 2 bertin
done
4580 173 bertin
 
4581
fi
4582
 
4583
SED=$lt_cv_path_SED
4584
 
4585
{ echo "$as_me:$LINENO: result: $SED" >&5
4586
echo "${ECHO_T}$SED" >&6; }
4587
 
4588
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4589
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4590
if test "${ac_cv_path_GREP+set}" = set; then
4591
  echo $ECHO_N "(cached) $ECHO_C" >&6
4592
else
4593
  # Extract the first word of "grep ggrep" to use in msg output
4594
if test -z "$GREP"; then
4595
set dummy grep ggrep; ac_prog_name=$2
4596
if test "${ac_cv_path_GREP+set}" = set; then
4597
  echo $ECHO_N "(cached) $ECHO_C" >&6
4598
else
4599
  ac_path_GREP_found=false
4600
# Loop through the user's path and test for each of PROGNAME-LIST
4601
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4603
do
4604
  IFS=$as_save_IFS
4605
  test -z "$as_dir" && as_dir=.
4606
  for ac_prog in grep ggrep; do
4607
  for ac_exec_ext in '' $ac_executable_extensions; do
4608
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4609
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4610
    # Check for GNU ac_path_GREP and select it if it is found.
4611
  # Check for GNU $ac_path_GREP
4612
case `"$ac_path_GREP" --version 2>&1` in
4613
*GNU*)
4614
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4615
*)
4616
  ac_count=0
4617
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4618
  while :
4619
  do
4620
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4621
    mv "conftest.tmp" "conftest.in"
4622
    cp "conftest.in" "conftest.nl"
4623
    echo 'GREP' >> "conftest.nl"
4624
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4625
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4626
    ac_count=`expr $ac_count + 1`
4627
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4628
      # Best one so far, save it but keep looking for a better one
4629
      ac_cv_path_GREP="$ac_path_GREP"
4630
      ac_path_GREP_max=$ac_count
4631
    fi
4632
    # 10*(2^10) chars as input seems more than enough
4633
    test $ac_count -gt 10 && break
4634
  done
4635
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4636
esac
4637
 
4638
 
4639
    $ac_path_GREP_found && break 3
4640
  done
4641 2 bertin
done
4642
 
4643 173 bertin
done
4644
IFS=$as_save_IFS
4645
 
4646
 
4647 2 bertin
fi
4648 173 bertin
 
4649
GREP="$ac_cv_path_GREP"
4650
if test -z "$GREP"; then
4651
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4652
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4653
   { (exit 1); exit 1; }; }
4654 2 bertin
fi
4655 173 bertin
 
4656 2 bertin
else
4657 173 bertin
  ac_cv_path_GREP=$GREP
4658 2 bertin
fi
4659
 
4660 173 bertin
 
4661 2 bertin
fi
4662 173 bertin
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4663
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4664
 GREP="$ac_cv_path_GREP"
4665
 
4666
 
4667
{ echo "$as_me:$LINENO: checking for egrep" >&5
4668
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4669
if test "${ac_cv_path_EGREP+set}" = set; then
4670 2 bertin
  echo $ECHO_N "(cached) $ECHO_C" >&6
4671
else
4672 173 bertin
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4673
   then ac_cv_path_EGREP="$GREP -E"
4674
   else
4675
     # Extract the first word of "egrep" to use in msg output
4676
if test -z "$EGREP"; then
4677
set dummy egrep; ac_prog_name=$2
4678
if test "${ac_cv_path_EGREP+set}" = set; then
4679
  echo $ECHO_N "(cached) $ECHO_C" >&6
4680 2 bertin
else
4681 173 bertin
  ac_path_EGREP_found=false
4682
# Loop through the user's path and test for each of PROGNAME-LIST
4683 2 bertin
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684 173 bertin
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4685 2 bertin
do
4686
  IFS=$as_save_IFS
4687
  test -z "$as_dir" && as_dir=.
4688 173 bertin
  for ac_prog in egrep; do
4689 2 bertin
  for ac_exec_ext in '' $ac_executable_extensions; do
4690 173 bertin
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4691
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4692
    # Check for GNU ac_path_EGREP and select it if it is found.
4693
  # Check for GNU $ac_path_EGREP
4694
case `"$ac_path_EGREP" --version 2>&1` in
4695
*GNU*)
4696
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4697
*)
4698
  ac_count=0
4699
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4700
  while :
4701
  do
4702
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4703
    mv "conftest.tmp" "conftest.in"
4704
    cp "conftest.in" "conftest.nl"
4705
    echo 'EGREP' >> "conftest.nl"
4706
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4707
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4708
    ac_count=`expr $ac_count + 1`
4709
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4710
      # Best one so far, save it but keep looking for a better one
4711
      ac_cv_path_EGREP="$ac_path_EGREP"
4712
      ac_path_EGREP_max=$ac_count
4713
    fi
4714
    # 10*(2^10) chars as input seems more than enough
4715
    test $ac_count -gt 10 && break
4716
  done
4717
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4718
esac
4719
 
4720
 
4721
    $ac_path_EGREP_found && break 3
4722
  done
4723 2 bertin
done
4724 173 bertin
 
4725 2 bertin
done
4726 173 bertin
IFS=$as_save_IFS
4727 2 bertin
 
4728 173 bertin
 
4729 2 bertin
fi
4730 173 bertin
 
4731
EGREP="$ac_cv_path_EGREP"
4732
if test -z "$EGREP"; then
4733
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4734
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4735
   { (exit 1); exit 1; }; }
4736 2 bertin
fi
4737 173 bertin
 
4738 2 bertin
else
4739 173 bertin
  ac_cv_path_EGREP=$EGREP
4740 2 bertin
fi
4741
 
4742 173 bertin
 
4743
   fi
4744
fi
4745
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4746
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4747
 EGREP="$ac_cv_path_EGREP"
4748
 
4749
 
4750
 
4751
# Check whether --with-gnu-ld was given.
4752
if test "${with_gnu_ld+set}" = set; then
4753
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4754 2 bertin
else
4755 173 bertin
  with_gnu_ld=no
4756 2 bertin
fi
4757
 
4758 173 bertin
ac_prog=ld
4759
if test "$GCC" = yes; then
4760
  # Check if gcc -print-prog-name=ld gives a path.
4761
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4762
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4763
  case $host in
4764
  *-*-mingw*)
4765
    # gcc leaves a trailing carriage return which upsets mingw
4766
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4767 2 bertin
  *)
4768 173 bertin
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4769
  esac
4770
  case $ac_prog in
4771
    # Accept absolute paths.
4772
    [\\/]* | ?:[\\/]*)
4773
      re_direlt='/[^/][^/]*/\.\./'
4774
      # Canonicalize the pathname of ld
4775
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4776
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4777
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4778 2 bertin
      done
4779 173 bertin
      test -z "$LD" && LD="$ac_prog"
4780
      ;;
4781
  "")
4782
    # If it fails, then pretend we aren't using GCC.
4783
    ac_prog=ld
4784 2 bertin
    ;;
4785 173 bertin
  *)
4786
    # If it is relative, then search for the first ld in PATH.
4787
    with_gnu_ld=unknown
4788
    ;;
4789
  esac
4790
elif test "$with_gnu_ld" = yes; then
4791
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
4792
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4793
else
4794
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4795
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4796
fi
4797
if test "${lt_cv_path_LD+set}" = set; then
4798
  echo $ECHO_N "(cached) $ECHO_C" >&6
4799
else
4800
  if test -z "$LD"; then
4801
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4802
  for ac_dir in $PATH; do
4803
    IFS="$lt_save_ifs"
4804
    test -z "$ac_dir" && ac_dir=.
4805
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4806
      lt_cv_path_LD="$ac_dir/$ac_prog"
4807
      # Check to see if the program is GNU ld.  I'd rather use --version,
4808
      # but apparently some variants of GNU ld only accept -v.
4809
      # Break only if it was the GNU/non-GNU ld that we prefer.
4810
      case `"$lt_cv_path_LD" -v 2>&1 
4811
      *GNU* | *'with BFD'*)
4812
        test "$with_gnu_ld" != no && break
4813
        ;;
4814
      *)
4815
        test "$with_gnu_ld" != yes && break
4816
        ;;
4817
      esac
4818
    fi
4819
  done
4820
  IFS="$lt_save_ifs"
4821
else
4822
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4823
fi
4824
fi
4825
 
4826
LD="$lt_cv_path_LD"
4827
if test -n "$LD"; then
4828
  { echo "$as_me:$LINENO: result: $LD" >&5
4829
echo "${ECHO_T}$LD" >&6; }
4830
else
4831
  { echo "$as_me:$LINENO: result: no" >&5
4832
echo "${ECHO_T}no" >&6; }
4833
fi
4834
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4835
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4836
   { (exit 1); exit 1; }; }
4837
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4838
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4839
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4840
  echo $ECHO_N "(cached) $ECHO_C" >&6
4841
else
4842
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4843
case `$LD -v 2>&1 
4844
*GNU* | *'with BFD'*)
4845
  lt_cv_prog_gnu_ld=yes
4846
  ;;
4847
*)
4848
  lt_cv_prog_gnu_ld=no
4849
  ;;
4850 2 bertin
esac
4851 173 bertin
fi
4852
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4853
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4854
with_gnu_ld=$lt_cv_prog_gnu_ld
4855 2 bertin
 
4856
 
4857 173 bertin
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4858
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4859
if test "${lt_cv_ld_reload_flag+set}" = set; then
4860
  echo $ECHO_N "(cached) $ECHO_C" >&6
4861
else
4862
  lt_cv_ld_reload_flag='-r'
4863 2 bertin
fi
4864 173 bertin
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4865
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4866
reload_flag=$lt_cv_ld_reload_flag
4867
case $reload_flag in
4868
"" | " "*) ;;
4869
*) reload_flag=" $reload_flag" ;;
4870
esac
4871
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4872
case $host_os in<