public software.sextractor

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

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