OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [newlib/] [libc/] [configure] - Blame information for rev 517

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

Line No. Rev Author Line
1 207 jeremybenn
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.63 for newlib 1.18.0.
4
#
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
9
## --------------------- ##
10
## M4sh Initialization.  ##
11
## --------------------- ##
12
 
13
# Be more Bourne compatible
14
DUALCASE=1; export DUALCASE # for MKS sh
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16
  emulate sh
17
  NULLCMD=:
18
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19
  # is contrary to our usage.  Disable this feature.
20
  alias -g '${1+"$@"}'='"$@"'
21
  setopt NO_GLOB_SUBST
22
else
23
  case `(set -o) 2>/dev/null` in
24
  *posix*) set -o posix ;;
25
esac
26
 
27
fi
28
 
29
 
30
 
31
 
32
# PATH needs CR
33
# Avoid depending upon Character Ranges.
34
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37
as_cr_digits='0123456789'
38
as_cr_alnum=$as_cr_Letters$as_cr_digits
39
 
40
as_nl='
41
'
42
export as_nl
43
# Printing a long string crashes Solaris 7 /usr/bin/printf.
44
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48
  as_echo='printf %s\n'
49
  as_echo_n='printf %s'
50
else
51
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53
    as_echo_n='/usr/ucb/echo -n'
54
  else
55
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56
    as_echo_n_body='eval
57
      arg=$1;
58
      case $arg in
59
      *"$as_nl"*)
60
        expr "X$arg" : "X\\(.*\\)$as_nl";
61
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62
      esac;
63
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64
    '
65
    export as_echo_n_body
66
    as_echo_n='sh -c $as_echo_n_body as_echo'
67
  fi
68
  export as_echo_body
69
  as_echo='sh -c $as_echo_body as_echo'
70
fi
71
 
72
# The user is always right.
73
if test "${PATH_SEPARATOR+set}" != set; then
74
  PATH_SEPARATOR=:
75
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77
      PATH_SEPARATOR=';'
78
  }
79
fi
80
 
81
# Support unset when possible.
82
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83
  as_unset=unset
84
else
85
  as_unset=false
86
fi
87
 
88
 
89
# IFS
90
# We need space, tab and new line, in precisely that order.  Quoting is
91
# there to prevent editors from complaining about space-tab.
92
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93
# splitting by setting IFS to empty value.)
94
IFS=" ""        $as_nl"
95
 
96
# Find who we are.  Look in the path if we contain no directory separator.
97
case $0 in
98
  *[\\/]* ) as_myself=$0 ;;
99
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100
for as_dir in $PATH
101
do
102
  IFS=$as_save_IFS
103
  test -z "$as_dir" && as_dir=.
104
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105
done
106
IFS=$as_save_IFS
107
 
108
     ;;
109
esac
110
# We did not find ourselves, most probably we were run as `sh COMMAND'
111
# in which case we are not to be found in the path.
112
if test "x$as_myself" = x; then
113
  as_myself=$0
114
fi
115
if test ! -f "$as_myself"; then
116
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117
  { (exit 1); exit 1; }
118
fi
119
 
120
# Work around bugs in pre-3.0 UWIN ksh.
121
for as_var in ENV MAIL MAILPATH
122
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123
done
124
PS1='$ '
125
PS2='> '
126
PS4='+ '
127
 
128
# NLS nuisances.
129
LC_ALL=C
130
export LC_ALL
131
LANGUAGE=C
132
export LANGUAGE
133
 
134
# Required to use basename.
135
if expr a : '\(a\)' >/dev/null 2>&1 &&
136
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
137
  as_expr=expr
138
else
139
  as_expr=false
140
fi
141
 
142
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143
  as_basename=basename
144
else
145
  as_basename=false
146
fi
147
 
148
 
149
# Name of the executable.
150
as_me=`$as_basename -- "$0" ||
151
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152
         X"$0" : 'X\(//\)$' \| \
153
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154
$as_echo X/"$0" |
155
    sed '/^.*\/\([^/][^/]*\)\/*$/{
156
            s//\1/
157
            q
158
          }
159
          /^X\/\(\/\/\)$/{
160
            s//\1/
161
            q
162
          }
163
          /^X\/\(\/\).*/{
164
            s//\1/
165
            q
166
          }
167
          s/.*/./; q'`
168
 
169
# CDPATH.
170
$as_unset CDPATH
171
 
172
 
173
if test "x$CONFIG_SHELL" = x; then
174
  if (eval ":") 2>/dev/null; then
175
  as_have_required=yes
176
else
177
  as_have_required=no
178
fi
179
 
180
  if test $as_have_required = yes &&     (eval ":
181
(as_func_return () {
182
  (exit \$1)
183
}
184
as_func_success () {
185
  as_func_return 0
186
}
187
as_func_failure () {
188
  as_func_return 1
189
}
190
as_func_ret_success () {
191
  return 0
192
}
193
as_func_ret_failure () {
194
  return 1
195
}
196
 
197
exitcode=0
198
if as_func_success; then
199
  :
200
else
201
  exitcode=1
202
  echo as_func_success failed.
203
fi
204
 
205
if as_func_failure; then
206
  exitcode=1
207
  echo as_func_failure succeeded.
208
fi
209
 
210
if as_func_ret_success; then
211
  :
212
else
213
  exitcode=1
214
  echo as_func_ret_success failed.
215
fi
216
 
217
if as_func_ret_failure; then
218
  exitcode=1
219
  echo as_func_ret_failure succeeded.
220
fi
221
 
222
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223
  :
224
else
225
  exitcode=1
226
  echo positional parameters were not saved.
227
fi
228
 
229
test \$exitcode = 0) || { (exit 1); exit 1; }
230
 
231
(
232
  as_lineno_1=\$LINENO
233
  as_lineno_2=\$LINENO
234
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236
") 2> /dev/null; then
237
  :
238
else
239
  as_candidate_shells=
240
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242
do
243
  IFS=$as_save_IFS
244
  test -z "$as_dir" && as_dir=.
245
  case $as_dir in
246
         /*)
247
           for as_base in sh bash ksh sh5; do
248
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249
           done;;
250
       esac
251
done
252
IFS=$as_save_IFS
253
 
254
 
255
      for as_shell in $as_candidate_shells $SHELL; do
256
         # Try only shells that exist, to save several forks.
257
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258
                { ("$as_shell") 2> /dev/null <<\_ASEOF
259
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260
  emulate sh
261
  NULLCMD=:
262
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263
  # is contrary to our usage.  Disable this feature.
264
  alias -g '${1+"$@"}'='"$@"'
265
  setopt NO_GLOB_SUBST
266
else
267
  case `(set -o) 2>/dev/null` in
268
  *posix*) set -o posix ;;
269
esac
270
 
271
fi
272
 
273
 
274
:
275
_ASEOF
276
}; then
277
  CONFIG_SHELL=$as_shell
278
               as_have_required=yes
279
               if { "$as_shell" 2> /dev/null <<\_ASEOF
280
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281
  emulate sh
282
  NULLCMD=:
283
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284
  # is contrary to our usage.  Disable this feature.
285
  alias -g '${1+"$@"}'='"$@"'
286
  setopt NO_GLOB_SUBST
287
else
288
  case `(set -o) 2>/dev/null` in
289
  *posix*) set -o posix ;;
290
esac
291
 
292
fi
293
 
294
 
295
:
296
(as_func_return () {
297
  (exit $1)
298
}
299
as_func_success () {
300
  as_func_return 0
301
}
302
as_func_failure () {
303
  as_func_return 1
304
}
305
as_func_ret_success () {
306
  return 0
307
}
308
as_func_ret_failure () {
309
  return 1
310
}
311
 
312
exitcode=0
313
if as_func_success; then
314
  :
315
else
316
  exitcode=1
317
  echo as_func_success failed.
318
fi
319
 
320
if as_func_failure; then
321
  exitcode=1
322
  echo as_func_failure succeeded.
323
fi
324
 
325
if as_func_ret_success; then
326
  :
327
else
328
  exitcode=1
329
  echo as_func_ret_success failed.
330
fi
331
 
332
if as_func_ret_failure; then
333
  exitcode=1
334
  echo as_func_ret_failure succeeded.
335
fi
336
 
337
if ( set x; as_func_ret_success y && test x = "$1" ); then
338
  :
339
else
340
  exitcode=1
341
  echo positional parameters were not saved.
342
fi
343
 
344
test $exitcode = 0) || { (exit 1); exit 1; }
345
 
346
(
347
  as_lineno_1=$LINENO
348
  as_lineno_2=$LINENO
349
  test "x$as_lineno_1" != "x$as_lineno_2" &&
350
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
 
352
_ASEOF
353
}; then
354
  break
355
fi
356
 
357
fi
358
 
359
      done
360
 
361
      if test "x$CONFIG_SHELL" != x; then
362
  for as_var in BASH_ENV ENV
363
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364
        done
365
        export CONFIG_SHELL
366
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367
fi
368
 
369
 
370
    if test $as_have_required = no; then
371
  echo This script requires a shell more modern than all the
372
      echo shells that I found on your system.  Please install a
373
      echo modern shell, or manually run the script under such a
374
      echo shell if you do have one.
375
      { (exit 1); exit 1; }
376
fi
377
 
378
 
379
fi
380
 
381
fi
382
 
383
 
384
 
385
(eval "as_func_return () {
386
  (exit \$1)
387
}
388
as_func_success () {
389
  as_func_return 0
390
}
391
as_func_failure () {
392
  as_func_return 1
393
}
394
as_func_ret_success () {
395
  return 0
396
}
397
as_func_ret_failure () {
398
  return 1
399
}
400
 
401
exitcode=0
402
if as_func_success; then
403
  :
404
else
405
  exitcode=1
406
  echo as_func_success failed.
407
fi
408
 
409
if as_func_failure; then
410
  exitcode=1
411
  echo as_func_failure succeeded.
412
fi
413
 
414
if as_func_ret_success; then
415
  :
416
else
417
  exitcode=1
418
  echo as_func_ret_success failed.
419
fi
420
 
421
if as_func_ret_failure; then
422
  exitcode=1
423
  echo as_func_ret_failure succeeded.
424
fi
425
 
426
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427
  :
428
else
429
  exitcode=1
430
  echo positional parameters were not saved.
431
fi
432
 
433
test \$exitcode = 0") || {
434
  echo No shell found that supports shell functions.
435
  echo Please tell bug-autoconf@gnu.org about your system,
436
  echo including any error possibly output before this message.
437
  echo This can help us improve future autoconf versions.
438
  echo Configuration will now proceed without shell functions.
439
}
440
 
441
 
442
 
443
  as_lineno_1=$LINENO
444
  as_lineno_2=$LINENO
445
  test "x$as_lineno_1" != "x$as_lineno_2" &&
446
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
 
448
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449
  # uniformly replaced by the line number.  The first 'sed' inserts a
450
  # line-number line after each line using $LINENO; the second 'sed'
451
  # does the real work.  The second script uses 'N' to pair each
452
  # line-number line with the line containing $LINENO, and appends
453
  # trailing '-' during substitution so that $LINENO is not a special
454
  # case at line end.
455
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
457
  # E. McMahon (1931-1989) for sed's syntax.  :-)
458
  sed -n '
459
    p
460
    /[$]LINENO/=
461
  ' <$as_myself |
462
    sed '
463
      s/[$]LINENO.*/&-/
464
      t lineno
465
      b
466
      :lineno
467
      N
468
      :loop
469
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470
      t loop
471
      s/-\n.*//
472
    ' >$as_me.lineno &&
473
  chmod +x "$as_me.lineno" ||
474
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475
   { (exit 1); exit 1; }; }
476
 
477
  # Don't try to exec as it changes $[0], causing all sort of problems
478
  # (the dirname of $[0] is not the place where we might find the
479
  # original and so on.  Autoconf is especially sensitive to this).
480
  . "./$as_me.lineno"
481
  # Exit status is that of the last command.
482
  exit
483
}
484
 
485
 
486
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487
  as_dirname=dirname
488
else
489
  as_dirname=false
490
fi
491
 
492
ECHO_C= ECHO_N= ECHO_T=
493
case `echo -n x` in
494
-n*)
495
  case `echo 'x\c'` in
496
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497
  *)   ECHO_C='\c';;
498
  esac;;
499
*)
500
  ECHO_N='-n';;
501
esac
502
if expr a : '\(a\)' >/dev/null 2>&1 &&
503
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
504
  as_expr=expr
505
else
506
  as_expr=false
507
fi
508
 
509
rm -f conf$$ conf$$.exe conf$$.file
510
if test -d conf$$.dir; then
511
  rm -f conf$$.dir/conf$$.file
512
else
513
  rm -f conf$$.dir
514
  mkdir conf$$.dir 2>/dev/null
515
fi
516
if (echo >conf$$.file) 2>/dev/null; then
517
  if ln -s conf$$.file conf$$ 2>/dev/null; then
518
    as_ln_s='ln -s'
519
    # ... but there are two gotchas:
520
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522
    # In both cases, we have to default to `cp -p'.
523
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524
      as_ln_s='cp -p'
525
  elif ln conf$$.file conf$$ 2>/dev/null; then
526
    as_ln_s=ln
527
  else
528
    as_ln_s='cp -p'
529
  fi
530
else
531
  as_ln_s='cp -p'
532
fi
533
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534
rmdir conf$$.dir 2>/dev/null
535
 
536
if mkdir -p . 2>/dev/null; then
537
  as_mkdir_p=:
538
else
539
  test -d ./-p && rmdir ./-p
540
  as_mkdir_p=false
541
fi
542
 
543
if test -x / >/dev/null 2>&1; then
544
  as_test_x='test -x'
545
else
546
  if ls -dL / >/dev/null 2>&1; then
547
    as_ls_L_option=L
548
  else
549
    as_ls_L_option=
550
  fi
551
  as_test_x='
552
    eval sh -c '\''
553
      if test -d "$1"; then
554
        test -d "$1/.";
555
      else
556
        case $1 in
557
        -*)set "./$1";;
558
        esac;
559
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560
        ???[sx]*):;;*)false;;esac;fi
561
    '\'' sh
562
  '
563
fi
564
as_executable_p=$as_test_x
565
 
566
# Sed expression to map a string onto a valid CPP name.
567
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
 
569
# Sed expression to map a string onto a valid variable name.
570
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
 
572
 
573
 
574
 
575
# Check that we are running under the correct shell.
576
SHELL=${CONFIG_SHELL-/bin/sh}
577
 
578
case X$lt_ECHO in
579
X*--fallback-echo)
580
  # Remove one level of quotation (which was required for Make).
581
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582
  ;;
583
esac
584
 
585
ECHO=${lt_ECHO-echo}
586
if test "X$1" = X--no-reexec; then
587
  # Discard the --no-reexec flag, and continue.
588
  shift
589
elif test "X$1" = X--fallback-echo; then
590
  # Avoid inline document here, it may be left over
591
  :
592
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593
  # Yippee, $ECHO works!
594
  :
595
else
596
  # Restart under the correct shell.
597
  exec $SHELL "$0" --no-reexec ${1+"$@"}
598
fi
599
 
600
if test "X$1" = X--fallback-echo; then
601
  # used as fallback echo
602
  shift
603
  cat <<_LT_EOF
604
$*
605
_LT_EOF
606
  exit 0
607
fi
608
 
609
# The HP-UX ksh and POSIX shell print the target directory to stdout
610
# if CDPATH is set.
611
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
 
613
if test -z "$lt_ECHO"; then
614
  if test "X${echo_test_string+set}" != Xset; then
615
    # find a string as large as possible, as long as the shell can cope with it
616
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620
      then
621
        break
622
      fi
623
    done
624
  fi
625
 
626
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628
     test "X$echo_testing_string" = "X$echo_test_string"; then
629
    :
630
  else
631
    # The Solaris, AIX, and Digital Unix default echo programs unquote
632
    # backslashes.  This makes it impossible to quote backslashes using
633
    #   echo "$something" | sed 's/\\/\\\\/g'
634
    #
635
    # So, first we look for a working echo in the user's PATH.
636
 
637
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638
    for dir in $PATH /usr/ucb; do
639
      IFS="$lt_save_ifs"
640
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643
         test "X$echo_testing_string" = "X$echo_test_string"; then
644
        ECHO="$dir/echo"
645
        break
646
      fi
647
    done
648
    IFS="$lt_save_ifs"
649
 
650
    if test "X$ECHO" = Xecho; then
651
      # We didn't find a better echo, so look for alternatives.
652
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654
         test "X$echo_testing_string" = "X$echo_test_string"; then
655
        # This shell has a builtin print -r that does the trick.
656
        ECHO='print -r'
657
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658
           test "X$CONFIG_SHELL" != X/bin/ksh; then
659
        # If we have ksh, try running configure again with it.
660
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661
        export ORIGINAL_CONFIG_SHELL
662
        CONFIG_SHELL=/bin/ksh
663
        export CONFIG_SHELL
664
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665
      else
666
        # Try using printf.
667
        ECHO='printf %s\n'
668
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670
           test "X$echo_testing_string" = "X$echo_test_string"; then
671
          # Cool, printf works
672
          :
673
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674
             test "X$echo_testing_string" = 'X\t' &&
675
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676
             test "X$echo_testing_string" = "X$echo_test_string"; then
677
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678
          export CONFIG_SHELL
679
          SHELL="$CONFIG_SHELL"
680
          export SHELL
681
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
682
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683
             test "X$echo_testing_string" = 'X\t' &&
684
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685
             test "X$echo_testing_string" = "X$echo_test_string"; then
686
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
687
        else
688
          # maybe with a smaller string...
689
          prev=:
690
 
691
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693
            then
694
              break
695
            fi
696
            prev="$cmd"
697
          done
698
 
699
          if test "$prev" != 'sed 50q "$0"'; then
700
            echo_test_string=`eval $prev`
701
            export echo_test_string
702
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703
          else
704
            # Oops.  We lost completely, so just stick with echo.
705
            ECHO=echo
706
          fi
707
        fi
708
      fi
709
    fi
710
  fi
711
fi
712
 
713
# Copy echo and quote the copy suitably for passing to libtool from
714
# the Makefile, instead of quoting the original, which is used later.
715
lt_ECHO=$ECHO
716
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718
fi
719
 
720
 
721
 
722
 
723
exec 7<&0 &1
724
 
725
# Name of the host.
726
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727
# so uname gets run too.
728
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
 
730
#
731
# Initializations.
732
#
733
ac_default_prefix=/usr/local
734
ac_clean_files=
735
ac_config_libobj_dir=.
736
LIBOBJS=
737
cross_compiling=no
738
subdirs=
739
MFLAGS=
740
MAKEFLAGS=
741
SHELL=${CONFIG_SHELL-/bin/sh}
742
 
743
# Identity of this package.
744
PACKAGE_NAME='newlib'
745
PACKAGE_TARNAME='newlib'
746
PACKAGE_VERSION='1.18.0'
747
PACKAGE_STRING='newlib 1.18.0'
748
PACKAGE_BUGREPORT=''
749
 
750
ac_unique_file="sys.tex"
751
# Factoring default headers for most tests.
752
ac_includes_default="\
753
#include 
754
#ifdef HAVE_SYS_TYPES_H
755
# include 
756
#endif
757
#ifdef HAVE_SYS_STAT_H
758
# include 
759
#endif
760
#ifdef STDC_HEADERS
761
# include 
762
# include 
763
#else
764
# ifdef HAVE_STDLIB_H
765
#  include 
766
# endif
767
#endif
768
#ifdef HAVE_STRING_H
769
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
770
#  include 
771
# endif
772
# include 
773
#endif
774
#ifdef HAVE_STRINGS_H
775
# include 
776
#endif
777
#ifdef HAVE_INTTYPES_H
778
# include 
779
#endif
780
#ifdef HAVE_STDINT_H
781
# include 
782
#endif
783
#ifdef HAVE_UNISTD_H
784
# include 
785
#endif"
786
 
787
enable_option_checking=no
788
ac_subst_vars='am__EXEEXT_FALSE
789
am__EXEEXT_TRUE
790
LTLIBOBJS
791
LIBOBJS
792
LIBC_MACHINE_LIB
793
ENABLE_NEWLIB_ICONV_FALSE
794
ENABLE_NEWLIB_ICONV_TRUE
795
HAVE_LONG_DOUBLE_FALSE
796
HAVE_LONG_DOUBLE_TRUE
797
LIBC_SYS_LIB
798
extra_dir
799
LIBC_EXTRA_DEF
800
LIBC_EXTRA_LIB
801
HAVE_UNIX_DIR_FALSE
802
HAVE_UNIX_DIR_TRUE
803
LIBC_UNIX_LIB
804
HAVE_SYSCALL_DIR_FALSE
805
HAVE_SYSCALL_DIR_TRUE
806
LIBC_SYSCALL_LIB
807
HAVE_STDIO64_DIR_FALSE
808
HAVE_STDIO64_DIR_TRUE
809
LIBC_STDIO64_DEF
810
LIBC_STDIO64_LIB
811
HAVE_STDIO_DIR_FALSE
812
HAVE_STDIO_DIR_TRUE
813
LIBC_STDIO_DEF
814
LIBC_STDIO_LIB
815
HAVE_SIGNAL_DIR_FALSE
816
HAVE_SIGNAL_DIR_TRUE
817
LIBC_SIGNAL_DEF
818
LIBC_SIGNAL_LIB
819
HAVE_POSIX_DIR_FALSE
820
HAVE_POSIX_DIR_TRUE
821
LIBC_POSIX_LIB
822
CRT0
823
subdirs
824
CPP
825
OTOOL64
826
OTOOL
827
LIPO
828
NMEDIT
829
DSYMUTIL
830
lt_ECHO
831
LN_S
832
NM
833
ac_ct_DUMPBIN
834
DUMPBIN
835
LD
836
FGREP
837
EGREP
838
GREP
839
EXEEXT
840
ac_ct_CC
841
CPPFLAGS
842
CFLAGS
843
LIBTOOL
844
OBJDUMP
845
DLLTOOL
846
SED
847
sys_dir
848
machine_dir
849
libm_machine_dir
850
lpfx
851
aext
852
oext
853
OBJEXT
854
USE_LIBTOOL_FALSE
855
USE_LIBTOOL_TRUE
856
ELIX_LEVEL_4_FALSE
857
ELIX_LEVEL_4_TRUE
858
ELIX_LEVEL_3_FALSE
859
ELIX_LEVEL_3_TRUE
860
ELIX_LEVEL_2_FALSE
861
ELIX_LEVEL_2_TRUE
862
ELIX_LEVEL_1_FALSE
863
ELIX_LEVEL_1_TRUE
864
ELIX_LEVEL_0_FALSE
865
ELIX_LEVEL_0_TRUE
866
LDFLAGS
867
NEWLIB_CFLAGS
868
CCASFLAGS
869
CCAS
870
MAINT
871
MAINTAINER_MODE_FALSE
872
MAINTAINER_MODE_TRUE
873
READELF
874
RANLIB
875
AR
876
AS
877
am__fastdepCC_FALSE
878
am__fastdepCC_TRUE
879
CCDEPMODE
880
AMDEPBACKSLASH
881
AMDEP_FALSE
882
AMDEP_TRUE
883
am__quote
884
am__include
885
DEPDIR
886
CC
887
am__untar
888
am__tar
889
AMTAR
890
am__leading_dot
891
SET_MAKE
892
AWK
893
mkdir_p
894
MKDIR_P
895
INSTALL_STRIP_PROGRAM
896
STRIP
897
install_sh
898
MAKEINFO
899
AUTOHEADER
900
AUTOMAKE
901
AUTOCONF
902
ACLOCAL
903
VERSION
904
PACKAGE
905
CYGPATH_W
906
am__isrc
907
INSTALL_DATA
908
INSTALL_SCRIPT
909
INSTALL_PROGRAM
910
host_os
911
host_vendor
912
host_cpu
913
host
914
build_os
915
build_vendor
916
build_cpu
917
build
918
newlib_basedir
919
MAY_SUPPLY_SYSCALLS_FALSE
920
MAY_SUPPLY_SYSCALLS_TRUE
921
target_alias
922
host_alias
923
build_alias
924
LIBS
925
ECHO_T
926
ECHO_N
927
ECHO_C
928
DEFS
929
mandir
930
localedir
931
libdir
932
psdir
933
pdfdir
934
dvidir
935
htmldir
936
infodir
937
docdir
938
oldincludedir
939
includedir
940
localstatedir
941
sharedstatedir
942
sysconfdir
943
datadir
944
datarootdir
945
libexecdir
946
sbindir
947
bindir
948
program_transform_name
949
prefix
950
exec_prefix
951
PACKAGE_BUGREPORT
952
PACKAGE_STRING
953
PACKAGE_VERSION
954
PACKAGE_TARNAME
955
PACKAGE_NAME
956
PATH_SEPARATOR
957
SHELL'
958
ac_subst_files=''
959
ac_user_opts='
960
enable_option_checking
961
enable_newlib_io_pos_args
962
enable_multilib
963
enable_target_optspace
964
enable_malloc_debugging
965
enable_newlib_multithread
966
enable_newlib_iconv
967
enable_newlib_elix_level
968
enable_newlib_io_float
969
enable_newlib_supplied_syscalls
970
enable_dependency_tracking
971
enable_maintainer_mode
972
enable_shared
973
enable_static
974
with_pic
975
enable_fast_install
976
with_gnu_ld
977
enable_libtool_lock
978
'
979
      ac_precious_vars='build_alias
980
host_alias
981
target_alias
982
CCAS
983
CCASFLAGS
984
CC
985
CFLAGS
986
LDFLAGS
987
LIBS
988
CPPFLAGS
989
CPP'
990
ac_subdirs_all='machine sys'
991
 
992
# Initialize some variables set by options.
993
ac_init_help=
994
ac_init_version=false
995
ac_unrecognized_opts=
996
ac_unrecognized_sep=
997
# The variables have the same names as the options, with
998
# dashes changed to underlines.
999
cache_file=/dev/null
1000
exec_prefix=NONE
1001
no_create=
1002
no_recursion=
1003
prefix=NONE
1004
program_prefix=NONE
1005
program_suffix=NONE
1006
program_transform_name=s,x,x,
1007
silent=
1008
site=
1009
srcdir=
1010
verbose=
1011
x_includes=NONE
1012
x_libraries=NONE
1013
 
1014
# Installation directory options.
1015
# These are left unexpanded so users can "make install exec_prefix=/foo"
1016
# and all the variables that are supposed to be based on exec_prefix
1017
# by default will actually change.
1018
# Use braces instead of parens because sh, perl, etc. also accept them.
1019
# (The list follows the same order as the GNU Coding Standards.)
1020
bindir='${exec_prefix}/bin'
1021
sbindir='${exec_prefix}/sbin'
1022
libexecdir='${exec_prefix}/libexec'
1023
datarootdir='${prefix}/share'
1024
datadir='${datarootdir}'
1025
sysconfdir='${prefix}/etc'
1026
sharedstatedir='${prefix}/com'
1027
localstatedir='${prefix}/var'
1028
includedir='${prefix}/include'
1029
oldincludedir='/usr/include'
1030
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1031
infodir='${datarootdir}/info'
1032
htmldir='${docdir}'
1033
dvidir='${docdir}'
1034
pdfdir='${docdir}'
1035
psdir='${docdir}'
1036
libdir='${exec_prefix}/lib'
1037
localedir='${datarootdir}/locale'
1038
mandir='${datarootdir}/man'
1039
 
1040
ac_prev=
1041
ac_dashdash=
1042
for ac_option
1043
do
1044
  # If the previous option needs an argument, assign it.
1045
  if test -n "$ac_prev"; then
1046
    eval $ac_prev=\$ac_option
1047
    ac_prev=
1048
    continue
1049
  fi
1050
 
1051
  case $ac_option in
1052
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1053
  *)    ac_optarg=yes ;;
1054
  esac
1055
 
1056
  # Accept the important Cygnus configure options, so we can diagnose typos.
1057
 
1058
  case $ac_dashdash$ac_option in
1059
  --)
1060
    ac_dashdash=yes ;;
1061
 
1062
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1063
    ac_prev=bindir ;;
1064
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1065
    bindir=$ac_optarg ;;
1066
 
1067
  -build | --build | --buil | --bui | --bu)
1068
    ac_prev=build_alias ;;
1069
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1070
    build_alias=$ac_optarg ;;
1071
 
1072
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1073
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1074
    ac_prev=cache_file ;;
1075
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1076
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1077
    cache_file=$ac_optarg ;;
1078
 
1079
  --config-cache | -C)
1080
    cache_file=config.cache ;;
1081
 
1082
  -datadir | --datadir | --datadi | --datad)
1083
    ac_prev=datadir ;;
1084
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1085
    datadir=$ac_optarg ;;
1086
 
1087
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1088
  | --dataroo | --dataro | --datar)
1089
    ac_prev=datarootdir ;;
1090
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1091
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1092
    datarootdir=$ac_optarg ;;
1093
 
1094
  -disable-* | --disable-*)
1095
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1096
    # Reject names that are not valid shell variable names.
1097
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1099
   { (exit 1); exit 1; }; }
1100
    ac_useropt_orig=$ac_useropt
1101
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102
    case $ac_user_opts in
1103
      *"
1104
"enable_$ac_useropt"
1105
"*) ;;
1106
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1107
         ac_unrecognized_sep=', ';;
1108
    esac
1109
    eval enable_$ac_useropt=no ;;
1110
 
1111
  -docdir | --docdir | --docdi | --doc | --do)
1112
    ac_prev=docdir ;;
1113
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1114
    docdir=$ac_optarg ;;
1115
 
1116
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1117
    ac_prev=dvidir ;;
1118
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1119
    dvidir=$ac_optarg ;;
1120
 
1121
  -enable-* | --enable-*)
1122
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1123
    # Reject names that are not valid shell variable names.
1124
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1126
   { (exit 1); exit 1; }; }
1127
    ac_useropt_orig=$ac_useropt
1128
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129
    case $ac_user_opts in
1130
      *"
1131
"enable_$ac_useropt"
1132
"*) ;;
1133
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1134
         ac_unrecognized_sep=', ';;
1135
    esac
1136
    eval enable_$ac_useropt=\$ac_optarg ;;
1137
 
1138
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1139
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1140
  | --exec | --exe | --ex)
1141
    ac_prev=exec_prefix ;;
1142
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1143
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1144
  | --exec=* | --exe=* | --ex=*)
1145
    exec_prefix=$ac_optarg ;;
1146
 
1147
  -gas | --gas | --ga | --g)
1148
    # Obsolete; use --with-gas.
1149
    with_gas=yes ;;
1150
 
1151
  -help | --help | --hel | --he | -h)
1152
    ac_init_help=long ;;
1153
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1154
    ac_init_help=recursive ;;
1155
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1156
    ac_init_help=short ;;
1157
 
1158
  -host | --host | --hos | --ho)
1159
    ac_prev=host_alias ;;
1160
  -host=* | --host=* | --hos=* | --ho=*)
1161
    host_alias=$ac_optarg ;;
1162
 
1163
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1164
    ac_prev=htmldir ;;
1165
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1166
  | --ht=*)
1167
    htmldir=$ac_optarg ;;
1168
 
1169
  -includedir | --includedir | --includedi | --included | --include \
1170
  | --includ | --inclu | --incl | --inc)
1171
    ac_prev=includedir ;;
1172
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1173
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1174
    includedir=$ac_optarg ;;
1175
 
1176
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1177
    ac_prev=infodir ;;
1178
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1179
    infodir=$ac_optarg ;;
1180
 
1181
  -libdir | --libdir | --libdi | --libd)
1182
    ac_prev=libdir ;;
1183
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1184
    libdir=$ac_optarg ;;
1185
 
1186
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1187
  | --libexe | --libex | --libe)
1188
    ac_prev=libexecdir ;;
1189
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1190
  | --libexe=* | --libex=* | --libe=*)
1191
    libexecdir=$ac_optarg ;;
1192
 
1193
  -localedir | --localedir | --localedi | --localed | --locale)
1194
    ac_prev=localedir ;;
1195
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1196
    localedir=$ac_optarg ;;
1197
 
1198
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1199
  | --localstate | --localstat | --localsta | --localst | --locals)
1200
    ac_prev=localstatedir ;;
1201
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1202
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1203
    localstatedir=$ac_optarg ;;
1204
 
1205
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1206
    ac_prev=mandir ;;
1207
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1208
    mandir=$ac_optarg ;;
1209
 
1210
  -nfp | --nfp | --nf)
1211
    # Obsolete; use --without-fp.
1212
    with_fp=no ;;
1213
 
1214
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1215
  | --no-cr | --no-c | -n)
1216
    no_create=yes ;;
1217
 
1218
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1219
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1220
    no_recursion=yes ;;
1221
 
1222
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1223
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1224
  | --oldin | --oldi | --old | --ol | --o)
1225
    ac_prev=oldincludedir ;;
1226
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1227
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1228
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1229
    oldincludedir=$ac_optarg ;;
1230
 
1231
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1232
    ac_prev=prefix ;;
1233
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1234
    prefix=$ac_optarg ;;
1235
 
1236
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1237
  | --program-pre | --program-pr | --program-p)
1238
    ac_prev=program_prefix ;;
1239
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1240
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1241
    program_prefix=$ac_optarg ;;
1242
 
1243
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1244
  | --program-suf | --program-su | --program-s)
1245
    ac_prev=program_suffix ;;
1246
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1247
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1248
    program_suffix=$ac_optarg ;;
1249
 
1250
  -program-transform-name | --program-transform-name \
1251
  | --program-transform-nam | --program-transform-na \
1252
  | --program-transform-n | --program-transform- \
1253
  | --program-transform | --program-transfor \
1254
  | --program-transfo | --program-transf \
1255
  | --program-trans | --program-tran \
1256
  | --progr-tra | --program-tr | --program-t)
1257
    ac_prev=program_transform_name ;;
1258
  -program-transform-name=* | --program-transform-name=* \
1259
  | --program-transform-nam=* | --program-transform-na=* \
1260
  | --program-transform-n=* | --program-transform-=* \
1261
  | --program-transform=* | --program-transfor=* \
1262
  | --program-transfo=* | --program-transf=* \
1263
  | --program-trans=* | --program-tran=* \
1264
  | --progr-tra=* | --program-tr=* | --program-t=*)
1265
    program_transform_name=$ac_optarg ;;
1266
 
1267
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1268
    ac_prev=pdfdir ;;
1269
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1270
    pdfdir=$ac_optarg ;;
1271
 
1272
  -psdir | --psdir | --psdi | --psd | --ps)
1273
    ac_prev=psdir ;;
1274
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1275
    psdir=$ac_optarg ;;
1276
 
1277
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1278
  | -silent | --silent | --silen | --sile | --sil)
1279
    silent=yes ;;
1280
 
1281
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1282
    ac_prev=sbindir ;;
1283
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1284
  | --sbi=* | --sb=*)
1285
    sbindir=$ac_optarg ;;
1286
 
1287
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1288
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1289
  | --sharedst | --shareds | --shared | --share | --shar \
1290
  | --sha | --sh)
1291
    ac_prev=sharedstatedir ;;
1292
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1293
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1294
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1295
  | --sha=* | --sh=*)
1296
    sharedstatedir=$ac_optarg ;;
1297
 
1298
  -site | --site | --sit)
1299
    ac_prev=site ;;
1300
  -site=* | --site=* | --sit=*)
1301
    site=$ac_optarg ;;
1302
 
1303
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1304
    ac_prev=srcdir ;;
1305
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1306
    srcdir=$ac_optarg ;;
1307
 
1308
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1309
  | --syscon | --sysco | --sysc | --sys | --sy)
1310
    ac_prev=sysconfdir ;;
1311
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1312
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1313
    sysconfdir=$ac_optarg ;;
1314
 
1315
  -target | --target | --targe | --targ | --tar | --ta | --t)
1316
    ac_prev=target_alias ;;
1317
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1318
    target_alias=$ac_optarg ;;
1319
 
1320
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1321
    verbose=yes ;;
1322
 
1323
  -version | --version | --versio | --versi | --vers | -V)
1324
    ac_init_version=: ;;
1325
 
1326
  -with-* | --with-*)
1327
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1328
    # Reject names that are not valid shell variable names.
1329
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1330
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1331
   { (exit 1); exit 1; }; }
1332
    ac_useropt_orig=$ac_useropt
1333
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1334
    case $ac_user_opts in
1335
      *"
1336
"with_$ac_useropt"
1337
"*) ;;
1338
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1339
         ac_unrecognized_sep=', ';;
1340
    esac
1341
    eval with_$ac_useropt=\$ac_optarg ;;
1342
 
1343
  -without-* | --without-*)
1344
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1345
    # Reject names that are not valid shell variable names.
1346
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1347
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1348
   { (exit 1); exit 1; }; }
1349
    ac_useropt_orig=$ac_useropt
1350
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1351
    case $ac_user_opts in
1352
      *"
1353
"with_$ac_useropt"
1354
"*) ;;
1355
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1356
         ac_unrecognized_sep=', ';;
1357
    esac
1358
    eval with_$ac_useropt=no ;;
1359
 
1360
  --x)
1361
    # Obsolete; use --with-x.
1362
    with_x=yes ;;
1363
 
1364
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1365
  | --x-incl | --x-inc | --x-in | --x-i)
1366
    ac_prev=x_includes ;;
1367
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1368
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1369
    x_includes=$ac_optarg ;;
1370
 
1371
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1372
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1373
    ac_prev=x_libraries ;;
1374
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1375
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1376
    x_libraries=$ac_optarg ;;
1377
 
1378
  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1379
Try \`$0 --help' for more information." >&2
1380
   { (exit 1); exit 1; }; }
1381
    ;;
1382
 
1383
  *=*)
1384
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1385
    # Reject names that are not valid shell variable names.
1386
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1387
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1388
   { (exit 1); exit 1; }; }
1389
    eval $ac_envvar=\$ac_optarg
1390
    export $ac_envvar ;;
1391
 
1392
  *)
1393
    # FIXME: should be removed in autoconf 3.0.
1394
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1395
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1396
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1397
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1398
    ;;
1399
 
1400
  esac
1401
done
1402
 
1403
if test -n "$ac_prev"; then
1404
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1405
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1406
   { (exit 1); exit 1; }; }
1407
fi
1408
 
1409
if test -n "$ac_unrecognized_opts"; then
1410
  case $enable_option_checking in
1411
    no) ;;
1412
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1413
   { (exit 1); exit 1; }; } ;;
1414
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1415
  esac
1416
fi
1417
 
1418
# Check all directory arguments for consistency.
1419
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1420
                datadir sysconfdir sharedstatedir localstatedir includedir \
1421
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1422
                libdir localedir mandir
1423
do
1424
  eval ac_val=\$$ac_var
1425
  # Remove trailing slashes.
1426
  case $ac_val in
1427
    */ )
1428
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1429
      eval $ac_var=\$ac_val;;
1430
  esac
1431
  # Be sure to have absolute directory names.
1432
  case $ac_val in
1433
    [\\/$]* | ?:[\\/]* )  continue;;
1434
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1435
  esac
1436
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1437
   { (exit 1); exit 1; }; }
1438
done
1439
 
1440
# There might be people who depend on the old broken behavior: `$host'
1441
# used to hold the argument of --host etc.
1442
# FIXME: To remove some day.
1443
build=$build_alias
1444
host=$host_alias
1445
target=$target_alias
1446
 
1447
# FIXME: To remove some day.
1448
if test "x$host_alias" != x; then
1449
  if test "x$build_alias" = x; then
1450
    cross_compiling=maybe
1451
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1452
    If a cross compiler is detected then cross compile mode will be used." >&2
1453
  elif test "x$build_alias" != "x$host_alias"; then
1454
    cross_compiling=yes
1455
  fi
1456
fi
1457
 
1458
ac_tool_prefix=
1459
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1460
 
1461
test "$silent" = yes && exec 6>/dev/null
1462
 
1463
 
1464
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1465
ac_ls_di=`ls -di .` &&
1466
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1467
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1468
   { (exit 1); exit 1; }; }
1469
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1470
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1471
   { (exit 1); exit 1; }; }
1472
 
1473
 
1474
# Find the source files, if location was not specified.
1475
if test -z "$srcdir"; then
1476
  ac_srcdir_defaulted=yes
1477
  # Try the directory containing this script, then the parent directory.
1478
  ac_confdir=`$as_dirname -- "$as_myself" ||
1479
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1480
         X"$as_myself" : 'X\(//\)[^/]' \| \
1481
         X"$as_myself" : 'X\(//\)$' \| \
1482
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1483
$as_echo X"$as_myself" |
1484
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1485
            s//\1/
1486
            q
1487
          }
1488
          /^X\(\/\/\)[^/].*/{
1489
            s//\1/
1490
            q
1491
          }
1492
          /^X\(\/\/\)$/{
1493
            s//\1/
1494
            q
1495
          }
1496
          /^X\(\/\).*/{
1497
            s//\1/
1498
            q
1499
          }
1500
          s/.*/./; q'`
1501
  srcdir=$ac_confdir
1502
  if test ! -r "$srcdir/$ac_unique_file"; then
1503
    srcdir=..
1504
  fi
1505
else
1506
  ac_srcdir_defaulted=no
1507
fi
1508
if test ! -r "$srcdir/$ac_unique_file"; then
1509
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1510
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1511
   { (exit 1); exit 1; }; }
1512
fi
1513
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1514
ac_abs_confdir=`(
1515
        cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1516
   { (exit 1); exit 1; }; }
1517
        pwd)`
1518
# When building in place, set srcdir=.
1519
if test "$ac_abs_confdir" = "$ac_pwd"; then
1520
  srcdir=.
1521
fi
1522
# Remove unnecessary trailing slashes from srcdir.
1523
# Double slashes in file names in object file debugging info
1524
# mess up M-x gdb in Emacs.
1525
case $srcdir in
1526
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1527
esac
1528
for ac_var in $ac_precious_vars; do
1529
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1530
  eval ac_env_${ac_var}_value=\$${ac_var}
1531
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1532
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1533
done
1534
 
1535
#
1536
# Report the --help message.
1537
#
1538
if test "$ac_init_help" = "long"; then
1539
  # Omit some internal or obsolete options to make the list less imposing.
1540
  # This message is too long to be a string in the A/UX 3.1 sh.
1541
  cat <<_ACEOF
1542
\`configure' configures newlib 1.18.0 to adapt to many kinds of systems.
1543
 
1544
Usage: $0 [OPTION]... [VAR=VALUE]...
1545
 
1546
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1547
VAR=VALUE.  See below for descriptions of some of the useful variables.
1548
 
1549
Defaults for the options are specified in brackets.
1550
 
1551
Configuration:
1552
  -h, --help              display this help and exit
1553
      --help=short        display options specific to this package
1554
      --help=recursive    display the short help of all the included packages
1555
  -V, --version           display version information and exit
1556
  -q, --quiet, --silent   do not print \`checking...' messages
1557
      --cache-file=FILE   cache test results in FILE [disabled]
1558
  -C, --config-cache      alias for \`--cache-file=config.cache'
1559
  -n, --no-create         do not create output files
1560
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1561
 
1562
Installation directories:
1563
  --prefix=PREFIX         install architecture-independent files in PREFIX
1564
                          [$ac_default_prefix]
1565
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1566
                          [PREFIX]
1567
 
1568
By default, \`make install' will install all the files in
1569
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1570
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1571
for instance \`--prefix=\$HOME'.
1572
 
1573
For better control, use the options below.
1574
 
1575
Fine tuning of the installation directories:
1576
  --bindir=DIR            user executables [EPREFIX/bin]
1577
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1578
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1579
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1580
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1581
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1582
  --libdir=DIR            object code libraries [EPREFIX/lib]
1583
  --includedir=DIR        C header files [PREFIX/include]
1584
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1585
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1586
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1587
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1588
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1589
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1590
  --docdir=DIR            documentation root [DATAROOTDIR/doc/newlib]
1591
  --htmldir=DIR           html documentation [DOCDIR]
1592
  --dvidir=DIR            dvi documentation [DOCDIR]
1593
  --pdfdir=DIR            pdf documentation [DOCDIR]
1594
  --psdir=DIR             ps documentation [DOCDIR]
1595
_ACEOF
1596
 
1597
  cat <<\_ACEOF
1598
 
1599
Program names:
1600
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1601
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1602
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1603
 
1604
System types:
1605
  --build=BUILD     configure for building on BUILD [guessed]
1606
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1607
_ACEOF
1608
fi
1609
 
1610
if test -n "$ac_init_help"; then
1611
  case $ac_init_help in
1612
     short | recursive ) echo "Configuration of newlib 1.18.0:";;
1613
   esac
1614
  cat <<\_ACEOF
1615
 
1616
Optional Features:
1617
  --disable-option-checking  ignore unrecognized --enable/--with options
1618
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1619
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1620
  --enable-newlib-io-pos-args enable printf-family positional arg support
1621
  --enable-multilib         build many library versions (default)
1622
  --enable-target-optspace  optimize for space
1623
  --enable-malloc-debugging indicate malloc debugging requested
1624
  --enable-newlib-multithread        enable support for multiple threads
1625
  --enable-newlib-iconv     enable iconv library support
1626
  --enable-newlib-elix-level         supply desired elix library level (1-4)
1627
  --disable-newlib-io-float disable printf/scanf family float support
1628
  --disable-newlib-supplied-syscalls disable newlib from supplying syscalls
1629
  --disable-dependency-tracking  speeds up one-time build
1630
  --enable-dependency-tracking   do not reject slow dependency extractors
1631
  --enable-maintainer-mode  enable make rules and dependencies not useful
1632
                          (and sometimes confusing) to the casual installer
1633
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1634
  --enable-static[=PKGS]  build static libraries [default=yes]
1635
  --enable-fast-install[=PKGS]
1636
                          optimize for fast installation [default=yes]
1637
  --disable-libtool-lock  avoid locking (might break parallel builds)
1638
 
1639
Optional Packages:
1640
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1641
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1642
  --with-pic              try to use only PIC/non-PIC objects [default=use
1643
                          both]
1644
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1645
 
1646
Some influential environment variables:
1647
  CCAS        assembler compiler command (defaults to CC)
1648
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1649
  CC          C compiler command
1650
  CFLAGS      C compiler flags
1651
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1652
              nonstandard directory 
1653
  LIBS        libraries to pass to the linker, e.g. -l
1654
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
1655
              you have headers in a nonstandard directory 
1656
  CPP         C preprocessor
1657
 
1658
Use these variables to override the choices made by `configure' or to help
1659
it to find libraries and programs with nonstandard names/locations.
1660
 
1661
_ACEOF
1662
ac_status=$?
1663
fi
1664
 
1665
if test "$ac_init_help" = "recursive"; then
1666
  # If there are subdirs, report their specific --help.
1667
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1668
    test -d "$ac_dir" ||
1669
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1670
      continue
1671
    ac_builddir=.
1672
 
1673
case "$ac_dir" in
1674
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1675
*)
1676
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1677
  # A ".." for each directory in $ac_dir_suffix.
1678
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1679
  case $ac_top_builddir_sub in
1680
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1681
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1682
  esac ;;
1683
esac
1684
ac_abs_top_builddir=$ac_pwd
1685
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1686
# for backward compatibility:
1687
ac_top_builddir=$ac_top_build_prefix
1688
 
1689
case $srcdir in
1690
  .)  # We are building in place.
1691
    ac_srcdir=.
1692
    ac_top_srcdir=$ac_top_builddir_sub
1693
    ac_abs_top_srcdir=$ac_pwd ;;
1694
  [\\/]* | ?:[\\/]* )  # Absolute name.
1695
    ac_srcdir=$srcdir$ac_dir_suffix;
1696
    ac_top_srcdir=$srcdir
1697
    ac_abs_top_srcdir=$srcdir ;;
1698
  *) # Relative name.
1699
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1700
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1701
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1702
esac
1703
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1704
 
1705
    cd "$ac_dir" || { ac_status=$?; continue; }
1706
    # Check for guested configure.
1707
    if test -f "$ac_srcdir/configure.gnu"; then
1708
      echo &&
1709
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1710
    elif test -f "$ac_srcdir/configure"; then
1711
      echo &&
1712
      $SHELL "$ac_srcdir/configure" --help=recursive
1713
    else
1714
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1715
    fi || ac_status=$?
1716
    cd "$ac_pwd" || { ac_status=$?; break; }
1717
  done
1718
fi
1719
 
1720
test -n "$ac_init_help" && exit $ac_status
1721
if $ac_init_version; then
1722
  cat <<\_ACEOF
1723
newlib configure 1.18.0
1724
generated by GNU Autoconf 2.63
1725
 
1726
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1727
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1728
This configure script is free software; the Free Software Foundation
1729
gives unlimited permission to copy, distribute and modify it.
1730
_ACEOF
1731
  exit
1732
fi
1733
cat >config.log <<_ACEOF
1734
This file contains any messages produced by compilers while
1735
running configure, to aid debugging if configure makes a mistake.
1736
 
1737
It was created by newlib $as_me 1.18.0, which was
1738
generated by GNU Autoconf 2.63.  Invocation command line was
1739
 
1740
  $ $0 $@
1741
 
1742
_ACEOF
1743
exec 5>>config.log
1744
{
1745
cat <<_ASUNAME
1746
## --------- ##
1747
## Platform. ##
1748
## --------- ##
1749
 
1750
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1751
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1752
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1753
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1754
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1755
 
1756
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1757
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1758
 
1759
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1760
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1761
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1762
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1763
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1764
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1765
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1766
 
1767
_ASUNAME
1768
 
1769
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1770
for as_dir in $PATH
1771
do
1772
  IFS=$as_save_IFS
1773
  test -z "$as_dir" && as_dir=.
1774
  $as_echo "PATH: $as_dir"
1775
done
1776
IFS=$as_save_IFS
1777
 
1778
} >&5
1779
 
1780
cat >&5 <<_ACEOF
1781
 
1782
 
1783
## ----------- ##
1784
## Core tests. ##
1785
## ----------- ##
1786
 
1787
_ACEOF
1788
 
1789
 
1790
# Keep a trace of the command line.
1791
# Strip out --no-create and --no-recursion so they do not pile up.
1792
# Strip out --silent because we don't want to record it for future runs.
1793
# Also quote any args containing shell meta-characters.
1794
# Make two passes to allow for proper duplicate-argument suppression.
1795
ac_configure_args=
1796
ac_configure_args0=
1797
ac_configure_args1=
1798
ac_must_keep_next=false
1799
for ac_pass in 1 2
1800
do
1801
  for ac_arg
1802
  do
1803
    case $ac_arg in
1804
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1805
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1806
    | -silent | --silent | --silen | --sile | --sil)
1807
      continue ;;
1808
    *\'*)
1809
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1810
    esac
1811
    case $ac_pass in
1812
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1813
    2)
1814
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1815
      if test $ac_must_keep_next = true; then
1816
        ac_must_keep_next=false # Got value, back to normal.
1817
      else
1818
        case $ac_arg in
1819
          *=* | --config-cache | -C | -disable-* | --disable-* \
1820
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1821
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1822
          | -with-* | --with-* | -without-* | --without-* | --x)
1823
            case "$ac_configure_args0 " in
1824
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1825
            esac
1826
            ;;
1827
          -* ) ac_must_keep_next=true ;;
1828
        esac
1829
      fi
1830
      ac_configure_args="$ac_configure_args '$ac_arg'"
1831
      ;;
1832
    esac
1833
  done
1834
done
1835
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1836
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1837
 
1838
# When interrupted or exit'd, cleanup temporary files, and complete
1839
# config.log.  We remove comments because anyway the quotes in there
1840
# would cause problems or look ugly.
1841
# WARNING: Use '\'' to represent an apostrophe within the trap.
1842
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1843
trap 'exit_status=$?
1844
  # Save into config.log some information that might help in debugging.
1845
  {
1846
    echo
1847
 
1848
    cat <<\_ASBOX
1849
## ---------------- ##
1850
## Cache variables. ##
1851
## ---------------- ##
1852
_ASBOX
1853
    echo
1854
    # The following way of writing the cache mishandles newlines in values,
1855
(
1856
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1857
    eval ac_val=\$$ac_var
1858
    case $ac_val in #(
1859
    *${as_nl}*)
1860
      case $ac_var in #(
1861
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1862
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1863
      esac
1864
      case $ac_var in #(
1865
      _ | IFS | as_nl) ;; #(
1866
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1867
      *) $as_unset $ac_var ;;
1868
      esac ;;
1869
    esac
1870
  done
1871
  (set) 2>&1 |
1872
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1873
    *${as_nl}ac_space=\ *)
1874
      sed -n \
1875
        "s/'\''/'\''\\\\'\'''\''/g;
1876
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1877
      ;; #(
1878
    *)
1879
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1880
      ;;
1881
    esac |
1882
    sort
1883
)
1884
    echo
1885
 
1886
    cat <<\_ASBOX
1887
## ----------------- ##
1888
## Output variables. ##
1889
## ----------------- ##
1890
_ASBOX
1891
    echo
1892
    for ac_var in $ac_subst_vars
1893
    do
1894
      eval ac_val=\$$ac_var
1895
      case $ac_val in
1896
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1897
      esac
1898
      $as_echo "$ac_var='\''$ac_val'\''"
1899
    done | sort
1900
    echo
1901
 
1902
    if test -n "$ac_subst_files"; then
1903
      cat <<\_ASBOX
1904
## ------------------- ##
1905
## File substitutions. ##
1906
## ------------------- ##
1907
_ASBOX
1908
      echo
1909
      for ac_var in $ac_subst_files
1910
      do
1911
        eval ac_val=\$$ac_var
1912
        case $ac_val in
1913
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1914
        esac
1915
        $as_echo "$ac_var='\''$ac_val'\''"
1916
      done | sort
1917
      echo
1918
    fi
1919
 
1920
    if test -s confdefs.h; then
1921
      cat <<\_ASBOX
1922
## ----------- ##
1923
## confdefs.h. ##
1924
## ----------- ##
1925
_ASBOX
1926
      echo
1927
      cat confdefs.h
1928
      echo
1929
    fi
1930
    test "$ac_signal" != 0 &&
1931
      $as_echo "$as_me: caught signal $ac_signal"
1932
    $as_echo "$as_me: exit $exit_status"
1933
  } >&5
1934
  rm -f core *.core core.conftest.* &&
1935
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1936
    exit $exit_status
1937
' 0
1938
for ac_signal in 1 2 13 15; do
1939
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1940
done
1941
ac_signal=0
1942
 
1943
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1944
rm -f -r conftest* confdefs.h
1945
 
1946
# Predefined preprocessor variables.
1947
 
1948
cat >>confdefs.h <<_ACEOF
1949
#define PACKAGE_NAME "$PACKAGE_NAME"
1950
_ACEOF
1951
 
1952
 
1953
cat >>confdefs.h <<_ACEOF
1954
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1955
_ACEOF
1956
 
1957
 
1958
cat >>confdefs.h <<_ACEOF
1959
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1960
_ACEOF
1961
 
1962
 
1963
cat >>confdefs.h <<_ACEOF
1964
#define PACKAGE_STRING "$PACKAGE_STRING"
1965
_ACEOF
1966
 
1967
 
1968
cat >>confdefs.h <<_ACEOF
1969
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1970
_ACEOF
1971
 
1972
 
1973
# Let the site file select an alternate cache file if it wants to.
1974
# Prefer an explicitly selected file to automatically selected ones.
1975
ac_site_file1=NONE
1976
ac_site_file2=NONE
1977
if test -n "$CONFIG_SITE"; then
1978
  ac_site_file1=$CONFIG_SITE
1979
elif test "x$prefix" != xNONE; then
1980
  ac_site_file1=$prefix/share/config.site
1981
  ac_site_file2=$prefix/etc/config.site
1982
else
1983
  ac_site_file1=$ac_default_prefix/share/config.site
1984
  ac_site_file2=$ac_default_prefix/etc/config.site
1985
fi
1986
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1987
do
1988
  test "x$ac_site_file" = xNONE && continue
1989
  if test -r "$ac_site_file"; then
1990
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1991
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1992
    sed 's/^/| /' "$ac_site_file" >&5
1993
    . "$ac_site_file"
1994
  fi
1995
done
1996
 
1997
if test -r "$cache_file"; then
1998
  # Some versions of bash will fail to source /dev/null (special
1999
  # files actually), so we avoid doing that.
2000
  if test -f "$cache_file"; then
2001
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2002
$as_echo "$as_me: loading cache $cache_file" >&6;}
2003
    case $cache_file in
2004
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2005
      *)                      . "./$cache_file";;
2006
    esac
2007
  fi
2008
else
2009
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2010
$as_echo "$as_me: creating cache $cache_file" >&6;}
2011
  >$cache_file
2012
fi
2013
 
2014
# Check that the precious variables saved in the cache have kept the same
2015
# value.
2016
ac_cache_corrupted=false
2017
for ac_var in $ac_precious_vars; do
2018
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2019
  eval ac_new_set=\$ac_env_${ac_var}_set
2020
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2021
  eval ac_new_val=\$ac_env_${ac_var}_value
2022
  case $ac_old_set,$ac_new_set in
2023
    set,)
2024
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2025
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2026
      ac_cache_corrupted=: ;;
2027
    ,set)
2028
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2029
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2030
      ac_cache_corrupted=: ;;
2031
    ,);;
2032
    *)
2033
      if test "x$ac_old_val" != "x$ac_new_val"; then
2034
        # differences in whitespace do not lead to failure.
2035
        ac_old_val_w=`echo x $ac_old_val`
2036
        ac_new_val_w=`echo x $ac_new_val`
2037
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2038
          { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2039
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2040
          ac_cache_corrupted=:
2041
        else
2042
          { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2043
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2044
          eval $ac_var=\$ac_old_val
2045
        fi
2046
        { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2047
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2048
        { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2049
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2050
      fi;;
2051
  esac
2052
  # Pass precious variables to config.status.
2053
  if test "$ac_new_set" = set; then
2054
    case $ac_new_val in
2055
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2056
    *) ac_arg=$ac_var=$ac_new_val ;;
2057
    esac
2058
    case " $ac_configure_args " in
2059
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2060
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2061
    esac
2062
  fi
2063
done
2064
if $ac_cache_corrupted; then
2065
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2066
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2067
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2068
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2069
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2070
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2071
   { (exit 1); exit 1; }; }
2072
fi
2073
 
2074
 
2075
 
2076
 
2077
 
2078
 
2079
 
2080
 
2081
 
2082
 
2083
 
2084
 
2085
 
2086
 
2087
 
2088
 
2089
 
2090
 
2091
 
2092
 
2093
 
2094
 
2095
 
2096
 
2097
 
2098
ac_ext=c
2099
ac_cpp='$CPP $CPPFLAGS'
2100
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2101
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2102
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2103
 
2104
 
2105
 
2106
 
2107
ac_aux_dir=
2108
for ac_dir in ../.. "$srcdir"/../..; do
2109
  if test -f "$ac_dir/install-sh"; then
2110
    ac_aux_dir=$ac_dir
2111
    ac_install_sh="$ac_aux_dir/install-sh -c"
2112
    break
2113
  elif test -f "$ac_dir/install.sh"; then
2114
    ac_aux_dir=$ac_dir
2115
    ac_install_sh="$ac_aux_dir/install.sh -c"
2116
    break
2117
  elif test -f "$ac_dir/shtool"; then
2118
    ac_aux_dir=$ac_dir
2119
    ac_install_sh="$ac_aux_dir/shtool install -c"
2120
    break
2121
  fi
2122
done
2123
if test -z "$ac_aux_dir"; then
2124
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../.. \"$srcdir\"/../.." >&5
2125
$as_echo "$as_me: error: cannot find install-sh or install.sh in ../.. \"$srcdir\"/../.." >&2;}
2126
   { (exit 1); exit 1; }; }
2127
fi
2128
 
2129
# These three variables are undocumented and unsupported,
2130
# and are intended to be withdrawn in a future Autoconf release.
2131
# They can cause serious problems if a builder's source tree is in a directory
2132
# whose full name contains unusual characters.
2133
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2134
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2135
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2136
 
2137
 
2138
 
2139
# Check whether --enable-newlib-io-pos-args was given.
2140
if test "${enable_newlib_io_pos_args+set}" = set; then
2141
  enableval=$enable_newlib_io_pos_args; case "${enableval}" in
2142
  yes) newlib_io_pos_args=yes ;;
2143
  no)  newlib_io_pos_args=no ;;
2144
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-pos-args option" >&5
2145
$as_echo "$as_me: error: bad value ${enableval} for newlib-io-pos-args option" >&2;}
2146
   { (exit 1); exit 1; }; } ;;
2147
 esac
2148
else
2149
  newlib_io_pos_args=no
2150
fi
2151
 
2152
 
2153
# Make sure we can run config.sub.
2154
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2155
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2156
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2157
   { (exit 1); exit 1; }; }
2158
 
2159
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2160
$as_echo_n "checking build system type... " >&6; }
2161
if test "${ac_cv_build+set}" = set; then
2162
  $as_echo_n "(cached) " >&6
2163
else
2164
  ac_build_alias=$build_alias
2165
test "x$ac_build_alias" = x &&
2166
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2167
test "x$ac_build_alias" = x &&
2168
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2169
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2170
   { (exit 1); exit 1; }; }
2171
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2172
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2173
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2174
   { (exit 1); exit 1; }; }
2175
 
2176
fi
2177
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2178
$as_echo "$ac_cv_build" >&6; }
2179
case $ac_cv_build in
2180
*-*-*) ;;
2181
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2182
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2183
   { (exit 1); exit 1; }; };;
2184
esac
2185
build=$ac_cv_build
2186
ac_save_IFS=$IFS; IFS='-'
2187
set x $ac_cv_build
2188
shift
2189
build_cpu=$1
2190
build_vendor=$2
2191
shift; shift
2192
# Remember, the first character of IFS is used to create $*,
2193
# except with old shells:
2194
build_os=$*
2195
IFS=$ac_save_IFS
2196
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2197
 
2198
 
2199
am__api_version='1.11'
2200
 
2201
# Find a good install program.  We prefer a C program (faster),
2202
# so one script is as good as another.  But avoid the broken or
2203
# incompatible versions:
2204
# SysV /etc/install, /usr/sbin/install
2205
# SunOS /usr/etc/install
2206
# IRIX /sbin/install
2207
# AIX /bin/install
2208
# AmigaOS /C/install, which installs bootblocks on floppy discs
2209
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2210
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2211
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2212
# OS/2's system install, which has a completely different semantic
2213
# ./install, which can be erroneously created by make from ./install.sh.
2214
# Reject install programs that cannot install multiple files.
2215
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2216
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2217
if test -z "$INSTALL"; then
2218
if test "${ac_cv_path_install+set}" = set; then
2219
  $as_echo_n "(cached) " >&6
2220
else
2221
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222
for as_dir in $PATH
2223
do
2224
  IFS=$as_save_IFS
2225
  test -z "$as_dir" && as_dir=.
2226
  # Account for people who put trailing slashes in PATH elements.
2227
case $as_dir/ in
2228
  ./ | .// | /cC/* | \
2229
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2230
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2231
  /usr/ucb/* ) ;;
2232
  *)
2233
    # OSF1 and SCO ODT 3.0 have their own names for install.
2234
    # Don't use installbsd from OSF since it installs stuff as root
2235
    # by default.
2236
    for ac_prog in ginstall scoinst install; do
2237
      for ac_exec_ext in '' $ac_executable_extensions; do
2238
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2239
          if test $ac_prog = install &&
2240
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2241
            # AIX install.  It has an incompatible calling convention.
2242
            :
2243
          elif test $ac_prog = install &&
2244
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2245
            # program-specific install script used by HP pwplus--don't use.
2246
            :
2247
          else
2248
            rm -rf conftest.one conftest.two conftest.dir
2249
            echo one > conftest.one
2250
            echo two > conftest.two
2251
            mkdir conftest.dir
2252
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2253
              test -s conftest.one && test -s conftest.two &&
2254
              test -s conftest.dir/conftest.one &&
2255
              test -s conftest.dir/conftest.two
2256
            then
2257
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2258
              break 3
2259
            fi
2260
          fi
2261
        fi
2262
      done
2263
    done
2264
    ;;
2265
esac
2266
 
2267
done
2268
IFS=$as_save_IFS
2269
 
2270
rm -rf conftest.one conftest.two conftest.dir
2271
 
2272
fi
2273
  if test "${ac_cv_path_install+set}" = set; then
2274
    INSTALL=$ac_cv_path_install
2275
  else
2276
    # As a last resort, use the slow shell script.  Don't cache a
2277
    # value for INSTALL within a source directory, because that will
2278
    # break other packages using the cache if that directory is
2279
    # removed, or if the value is a relative name.
2280
    INSTALL=$ac_install_sh
2281
  fi
2282
fi
2283
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2284
$as_echo "$INSTALL" >&6; }
2285
 
2286
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2287
# It thinks the first close brace ends the variable substitution.
2288
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2289
 
2290
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2291
 
2292
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2293
 
2294
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2295
$as_echo_n "checking whether build environment is sane... " >&6; }
2296
# Just in case
2297
sleep 1
2298
echo timestamp > conftest.file
2299
# Reject unsafe characters in $srcdir or the absolute working directory
2300
# name.  Accept space and tab only in the latter.
2301
am_lf='
2302
'
2303
case `pwd` in
2304
  *[\\\"\#\$\&\'\`$am_lf]*)
2305
    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2306
$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2307
   { (exit 1); exit 1; }; };;
2308
esac
2309
case $srcdir in
2310
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2311
    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2312
$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2313
   { (exit 1); exit 1; }; };;
2314
esac
2315
 
2316
# Do `set' in a subshell so we don't clobber the current shell's
2317
# arguments.  Must try -L first in case configure is actually a
2318
# symlink; some systems play weird games with the mod time of symlinks
2319
# (eg FreeBSD returns the mod time of the symlink's containing
2320
# directory).
2321
if (
2322
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2323
   if test "$*" = "X"; then
2324
      # -L didn't work.
2325
      set X `ls -t "$srcdir/configure" conftest.file`
2326
   fi
2327
   rm -f conftest.file
2328
   if test "$*" != "X $srcdir/configure conftest.file" \
2329
      && test "$*" != "X conftest.file $srcdir/configure"; then
2330
 
2331
      # If neither matched, then we have a broken ls.  This can happen
2332
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2333
      # broken ls alias from the environment.  This has actually
2334
      # happened.  Such a system could not be considered "sane".
2335
      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2336
alias in your environment" >&5
2337
$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2338
alias in your environment" >&2;}
2339
   { (exit 1); exit 1; }; }
2340
   fi
2341
 
2342
   test "$2" = conftest.file
2343
   )
2344
then
2345
   # Ok.
2346
   :
2347
else
2348
   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2349
Check your system clock" >&5
2350
$as_echo "$as_me: error: newly created file is older than distributed files!
2351
Check your system clock" >&2;}
2352
   { (exit 1); exit 1; }; }
2353
fi
2354
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2355
$as_echo "yes" >&6; }
2356
test "$program_prefix" != NONE &&
2357
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2358
# Use a double $ so make ignores it.
2359
test "$program_suffix" != NONE &&
2360
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2361
# Double any \ or $.
2362
# By default was `s,x,x', remove it if useless.
2363
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2364
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2365
 
2366
# expand $ac_aux_dir to an absolute path
2367
am_aux_dir=`cd $ac_aux_dir && pwd`
2368
 
2369
if test x"${MISSING+set}" != xset; then
2370
  case $am_aux_dir in
2371
  *\ * | *\     *)
2372
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2373
  *)
2374
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2375
  esac
2376
fi
2377
# Use eval to expand $SHELL
2378
if eval "$MISSING --run true"; then
2379
  am_missing_run="$MISSING --run "
2380
else
2381
  am_missing_run=
2382
  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2383
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2384
fi
2385
 
2386
if test x"${install_sh}" != xset; then
2387
  case $am_aux_dir in
2388
  *\ * | *\     *)
2389
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2390
  *)
2391
    install_sh="\${SHELL} $am_aux_dir/install-sh"
2392
  esac
2393
fi
2394
 
2395
# Installed binaries are usually stripped using `strip' when the user
2396
# run `make install-strip'.  However `strip' might not be the right
2397
# tool to use in cross-compilation environments, therefore Automake
2398
# will honor the `STRIP' environment variable to overrule this program.
2399
if test "$cross_compiling" != no; then
2400
  if test -n "$ac_tool_prefix"; then
2401
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2402
set dummy ${ac_tool_prefix}strip; ac_word=$2
2403
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2404
$as_echo_n "checking for $ac_word... " >&6; }
2405
if test "${ac_cv_prog_STRIP+set}" = set; then
2406
  $as_echo_n "(cached) " >&6
2407
else
2408
  if test -n "$STRIP"; then
2409
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2410
else
2411
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412
for as_dir in $PATH
2413
do
2414
  IFS=$as_save_IFS
2415
  test -z "$as_dir" && as_dir=.
2416
  for ac_exec_ext in '' $ac_executable_extensions; do
2417
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2418
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2419
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2420
    break 2
2421
  fi
2422
done
2423
done
2424
IFS=$as_save_IFS
2425
 
2426
fi
2427
fi
2428
STRIP=$ac_cv_prog_STRIP
2429
if test -n "$STRIP"; then
2430
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2431
$as_echo "$STRIP" >&6; }
2432
else
2433
  { $as_echo "$as_me:$LINENO: result: no" >&5
2434
$as_echo "no" >&6; }
2435
fi
2436
 
2437
 
2438
fi
2439
if test -z "$ac_cv_prog_STRIP"; then
2440
  ac_ct_STRIP=$STRIP
2441
  # Extract the first word of "strip", so it can be a program name with args.
2442
set dummy strip; ac_word=$2
2443
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2444
$as_echo_n "checking for $ac_word... " >&6; }
2445
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2446
  $as_echo_n "(cached) " >&6
2447
else
2448
  if test -n "$ac_ct_STRIP"; then
2449
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2450
else
2451
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452
for as_dir in $PATH
2453
do
2454
  IFS=$as_save_IFS
2455
  test -z "$as_dir" && as_dir=.
2456
  for ac_exec_ext in '' $ac_executable_extensions; do
2457
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2458
    ac_cv_prog_ac_ct_STRIP="strip"
2459
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2460
    break 2
2461
  fi
2462
done
2463
done
2464
IFS=$as_save_IFS
2465
 
2466
fi
2467
fi
2468
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2469
if test -n "$ac_ct_STRIP"; then
2470
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2471
$as_echo "$ac_ct_STRIP" >&6; }
2472
else
2473
  { $as_echo "$as_me:$LINENO: result: no" >&5
2474
$as_echo "no" >&6; }
2475
fi
2476
 
2477
  if test "x$ac_ct_STRIP" = x; then
2478
    STRIP=":"
2479
  else
2480
    case $cross_compiling:$ac_tool_warned in
2481
yes:)
2482
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2483
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2484
ac_tool_warned=yes ;;
2485
esac
2486
    STRIP=$ac_ct_STRIP
2487
  fi
2488
else
2489
  STRIP="$ac_cv_prog_STRIP"
2490
fi
2491
 
2492
fi
2493
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2494
 
2495
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2496
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2497
if test -z "$MKDIR_P"; then
2498
  if test "${ac_cv_path_mkdir+set}" = set; then
2499
  $as_echo_n "(cached) " >&6
2500
else
2501
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2503
do
2504
  IFS=$as_save_IFS
2505
  test -z "$as_dir" && as_dir=.
2506
  for ac_prog in mkdir gmkdir; do
2507
         for ac_exec_ext in '' $ac_executable_extensions; do
2508
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2509
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2510
             'mkdir (GNU coreutils) '* | \
2511
             'mkdir (coreutils) '* | \
2512
             'mkdir (fileutils) '4.1*)
2513
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2514
               break 3;;
2515
           esac
2516
         done
2517
       done
2518
done
2519
IFS=$as_save_IFS
2520
 
2521
fi
2522
 
2523
  if test "${ac_cv_path_mkdir+set}" = set; then
2524
    MKDIR_P="$ac_cv_path_mkdir -p"
2525
  else
2526
    # As a last resort, use the slow shell script.  Don't cache a
2527
    # value for MKDIR_P within a source directory, because that will
2528
    # break other packages using the cache if that directory is
2529
    # removed, or if the value is a relative name.
2530
    test -d ./--version && rmdir ./--version
2531
    MKDIR_P="$ac_install_sh -d"
2532
  fi
2533
fi
2534
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2535
$as_echo "$MKDIR_P" >&6; }
2536
 
2537
mkdir_p="$MKDIR_P"
2538
case $mkdir_p in
2539
  [\\/$]* | ?:[\\/]*) ;;
2540
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2541
esac
2542
 
2543
for ac_prog in gawk mawk nawk awk
2544
do
2545
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2546
set dummy $ac_prog; ac_word=$2
2547
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2548
$as_echo_n "checking for $ac_word... " >&6; }
2549
if test "${ac_cv_prog_AWK+set}" = set; then
2550
  $as_echo_n "(cached) " >&6
2551
else
2552
  if test -n "$AWK"; then
2553
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2554
else
2555
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556
for as_dir in $PATH
2557
do
2558
  IFS=$as_save_IFS
2559
  test -z "$as_dir" && as_dir=.
2560
  for ac_exec_ext in '' $ac_executable_extensions; do
2561
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2562
    ac_cv_prog_AWK="$ac_prog"
2563
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2564
    break 2
2565
  fi
2566
done
2567
done
2568
IFS=$as_save_IFS
2569
 
2570
fi
2571
fi
2572
AWK=$ac_cv_prog_AWK
2573
if test -n "$AWK"; then
2574
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2575
$as_echo "$AWK" >&6; }
2576
else
2577
  { $as_echo "$as_me:$LINENO: result: no" >&5
2578
$as_echo "no" >&6; }
2579
fi
2580
 
2581
 
2582
  test -n "$AWK" && break
2583
done
2584
 
2585
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2586
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2587
set x ${MAKE-make}
2588
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2589
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2590
  $as_echo_n "(cached) " >&6
2591
else
2592
  cat >conftest.make <<\_ACEOF
2593
SHELL = /bin/sh
2594
all:
2595
        @echo '@@@%%%=$(MAKE)=@@@%%%'
2596
_ACEOF
2597
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2598
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2599
  *@@@%%%=?*=@@@%%%*)
2600
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2601
  *)
2602
    eval ac_cv_prog_make_${ac_make}_set=no;;
2603
esac
2604
rm -f conftest.make
2605
fi
2606
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2607
  { $as_echo "$as_me:$LINENO: result: yes" >&5
2608
$as_echo "yes" >&6; }
2609
  SET_MAKE=
2610
else
2611
  { $as_echo "$as_me:$LINENO: result: no" >&5
2612
$as_echo "no" >&6; }
2613
  SET_MAKE="MAKE=${MAKE-make}"
2614
fi
2615
 
2616
rm -rf .tst 2>/dev/null
2617
mkdir .tst 2>/dev/null
2618
if test -d .tst; then
2619
  am__leading_dot=.
2620
else
2621
  am__leading_dot=_
2622
fi
2623
rmdir .tst 2>/dev/null
2624
 
2625
DEPDIR="${am__leading_dot}deps"
2626
 
2627
ac_config_commands="$ac_config_commands depfiles"
2628
 
2629
 
2630
am_make=${MAKE-make}
2631
cat > confinc << 'END'
2632
am__doit:
2633
        @echo this is the am__doit target
2634
.PHONY: am__doit
2635
END
2636
# If we don't find an include directive, just comment out the code.
2637
{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2638
$as_echo_n "checking for style of include used by $am_make... " >&6; }
2639
am__include="#"
2640
am__quote=
2641
_am_result=none
2642
# First try GNU make style include.
2643
echo "include confinc" > confmf
2644
# Ignore all kinds of additional output from `make'.
2645
case `$am_make -s -f confmf 2> /dev/null` in #(
2646
*the\ am__doit\ target*)
2647
  am__include=include
2648
  am__quote=
2649
  _am_result=GNU
2650
  ;;
2651
esac
2652
# Now try BSD make style include.
2653
if test "$am__include" = "#"; then
2654
   echo '.include "confinc"' > confmf
2655
   case `$am_make -s -f confmf 2> /dev/null` in #(
2656
   *the\ am__doit\ target*)
2657
     am__include=.include
2658
     am__quote="\""
2659
     _am_result=BSD
2660
     ;;
2661
   esac
2662
fi
2663
 
2664
 
2665
{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2666
$as_echo "$_am_result" >&6; }
2667
rm -f confinc confmf
2668
 
2669
# Check whether --enable-dependency-tracking was given.
2670
if test "${enable_dependency_tracking+set}" = set; then
2671
  enableval=$enable_dependency_tracking;
2672
fi
2673
 
2674
if test "x$enable_dependency_tracking" != xno; then
2675
  am_depcomp="$ac_aux_dir/depcomp"
2676
  AMDEPBACKSLASH='\'
2677
fi
2678
 if test "x$enable_dependency_tracking" != xno; then
2679
  AMDEP_TRUE=
2680
  AMDEP_FALSE='#'
2681
else
2682
  AMDEP_TRUE='#'
2683
  AMDEP_FALSE=
2684
fi
2685
 
2686
 
2687
 
2688
# Check whether --enable-multilib was given.
2689
if test "${enable_multilib+set}" = set; then
2690
  enableval=$enable_multilib; case "${enableval}" in
2691
  yes) multilib=yes ;;
2692
  no)  multilib=no ;;
2693
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
2694
$as_echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
2695
   { (exit 1); exit 1; }; } ;;
2696
 esac
2697
else
2698
  multilib=yes
2699
fi
2700
 
2701
# Check whether --enable-target-optspace was given.
2702
if test "${enable_target_optspace+set}" = set; then
2703
  enableval=$enable_target_optspace; case "${enableval}" in
2704
  yes) target_optspace=yes ;;
2705
  no)  target_optspace=no ;;
2706
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for target-optspace option" >&5
2707
$as_echo "$as_me: error: bad value ${enableval} for target-optspace option" >&2;}
2708
   { (exit 1); exit 1; }; } ;;
2709
 esac
2710
else
2711
  target_optspace=
2712
fi
2713
 
2714
# Check whether --enable-malloc-debugging was given.
2715
if test "${enable_malloc_debugging+set}" = set; then
2716
  enableval=$enable_malloc_debugging; case "${enableval}" in
2717
  yes) malloc_debugging=yes ;;
2718
  no)  malloc_debugging=no ;;
2719
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for malloc-debugging option" >&5
2720
$as_echo "$as_me: error: bad value ${enableval} for malloc-debugging option" >&2;}
2721
   { (exit 1); exit 1; }; } ;;
2722
 esac
2723
else
2724
  malloc_debugging=
2725
fi
2726
 
2727
# Check whether --enable-newlib-multithread was given.
2728
if test "${enable_newlib_multithread+set}" = set; then
2729
  enableval=$enable_newlib_multithread; case "${enableval}" in
2730
  yes) newlib_multithread=yes ;;
2731
  no)  newlib_multithread=no ;;
2732
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-multithread option" >&5
2733
$as_echo "$as_me: error: bad value ${enableval} for newlib-multithread option" >&2;}
2734
   { (exit 1); exit 1; }; } ;;
2735
 esac
2736
else
2737
  newlib_multithread=yes
2738
fi
2739
 
2740
# Check whether --enable-newlib-iconv was given.
2741
if test "${enable_newlib_iconv+set}" = set; then
2742
  enableval=$enable_newlib_iconv; if test "${newlib_iconv+set}" != set; then
2743
   case "${enableval}" in
2744
     yes) newlib_iconv=yes ;;
2745
     no)  newlib_iconv=no ;;
2746
     *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv option" >&5
2747
$as_echo "$as_me: error: bad value ${enableval} for newlib-iconv option" >&2;}
2748
   { (exit 1); exit 1; }; } ;;
2749
   esac
2750
 fi
2751
else
2752
  newlib_iconv=${newlib_iconv}
2753
fi
2754
 
2755
# Check whether --enable-newlib-elix-level was given.
2756
if test "${enable_newlib_elix_level+set}" = set; then
2757
  enableval=$enable_newlib_elix_level; case "${enableval}" in
2758
  0)   newlib_elix_level=0 ;;
2759
  1)   newlib_elix_level=1 ;;
2760
  2)   newlib_elix_level=2 ;;
2761
  3)   newlib_elix_level=3 ;;
2762
  4)   newlib_elix_level=4 ;;
2763
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-elix-level option" >&5
2764
$as_echo "$as_me: error: bad value ${enableval} for newlib-elix-level option" >&2;}
2765
   { (exit 1); exit 1; }; } ;;
2766
 esac
2767
else
2768
  newlib_elix_level=0
2769
fi
2770
 
2771
# Check whether --enable-newlib-io-float was given.
2772
if test "${enable_newlib_io_float+set}" = set; then
2773
  enableval=$enable_newlib_io_float; case "${enableval}" in
2774
  yes) newlib_io_float=yes ;;
2775
  no)  newlib_io_float=no ;;
2776
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-float option" >&5
2777
$as_echo "$as_me: error: bad value ${enableval} for newlib-io-float option" >&2;}
2778
   { (exit 1); exit 1; }; } ;;
2779
 esac
2780
else
2781
  newlib_io_float=yes
2782
fi
2783
 
2784
# Check whether --enable-newlib-supplied-syscalls was given.
2785
if test "${enable_newlib_supplied_syscalls+set}" = set; then
2786
  enableval=$enable_newlib_supplied_syscalls; case "${enableval}" in
2787
  yes) newlib_may_supply_syscalls=yes ;;
2788
  no)  newlib_may_supply_syscalls=no ;;
2789
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-supplied-syscalls option" >&5
2790
$as_echo "$as_me: error: bad value ${enableval} for newlib-supplied-syscalls option" >&2;}
2791
   { (exit 1); exit 1; }; } ;;
2792
 esac
2793
else
2794
  newlib_may_supply_syscalls=yes
2795
fi
2796
 
2797
 if test x${newlib_may_supply_syscalls} = xyes; then
2798
  MAY_SUPPLY_SYSCALLS_TRUE=
2799
  MAY_SUPPLY_SYSCALLS_FALSE='#'
2800
else
2801
  MAY_SUPPLY_SYSCALLS_TRUE='#'
2802
  MAY_SUPPLY_SYSCALLS_FALSE=
2803
fi
2804
 
2805
 
2806
 
2807
test -z "${with_target_subdir}" && with_target_subdir=.
2808
 
2809
if test "${srcdir}" = "."; then
2810
  if test "${with_target_subdir}" != "."; then
2811
    newlib_basedir="${srcdir}/${with_multisrctop}../.."
2812
  else
2813
    newlib_basedir="${srcdir}/${with_multisrctop}.."
2814
  fi
2815
else
2816
  newlib_basedir="${srcdir}/.."
2817
fi
2818
 
2819
 
2820
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2821
$as_echo_n "checking host system type... " >&6; }
2822
if test "${ac_cv_host+set}" = set; then
2823
  $as_echo_n "(cached) " >&6
2824
else
2825
  if test "x$host_alias" = x; then
2826
  ac_cv_host=$ac_cv_build
2827
else
2828
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2829
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2830
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2831
   { (exit 1); exit 1; }; }
2832
fi
2833
 
2834
fi
2835
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2836
$as_echo "$ac_cv_host" >&6; }
2837
case $ac_cv_host in
2838
*-*-*) ;;
2839
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2840
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2841
   { (exit 1); exit 1; }; };;
2842
esac
2843
host=$ac_cv_host
2844
ac_save_IFS=$IFS; IFS='-'
2845
set x $ac_cv_host
2846
shift
2847
host_cpu=$1
2848
host_vendor=$2
2849
shift; shift
2850
# Remember, the first character of IFS is used to create $*,
2851
# except with old shells:
2852
host_os=$*
2853
IFS=$ac_save_IFS
2854
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2855
 
2856
 
2857
 
2858
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2859
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2860
  # is not polluted with repeated "-I."
2861
  am__isrc=' -I$(srcdir)'
2862
  # test to see if srcdir already configured
2863
  if test -f $srcdir/config.status; then
2864
    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2865
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2866
   { (exit 1); exit 1; }; }
2867
  fi
2868
fi
2869
 
2870
# test whether we have cygpath
2871
if test -z "$CYGPATH_W"; then
2872
  if (cygpath --version) >/dev/null 2>/dev/null; then
2873
    CYGPATH_W='cygpath -w'
2874
  else
2875
    CYGPATH_W=echo
2876
  fi
2877
fi
2878
 
2879
 
2880
# Define the identity of the package.
2881
 PACKAGE='newlib'
2882
 VERSION='1.18.0'
2883
 
2884
 
2885
# Some tools Automake needs.
2886
 
2887
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2888
 
2889
 
2890
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2891
 
2892
 
2893
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2894
 
2895
 
2896
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2897
 
2898
 
2899
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2900
 
2901
# We need awk for the "check" target.  The system "awk" is bad on
2902
# some platforms.
2903
# Always define AMTAR for backward compatibility.
2904
 
2905
AMTAR=${AMTAR-"${am_missing_run}tar"}
2906
 
2907
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2908
 
2909
 
2910
 
2911
 
2912
 
2913
 
2914
# FIXME: We temporarily define our own version of AC_PROG_CC.  This is
2915
# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
2916
# are probably using a cross compiler, which will not be able to fully
2917
# link an executable.  This should really be fixed in autoconf
2918
# itself.
2919
 
2920
 
2921
 
2922
 
2923
 
2924
 
2925
 
2926
# Extract the first word of "gcc", so it can be a program name with args.
2927
set dummy gcc; ac_word=$2
2928
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2929
$as_echo_n "checking for $ac_word... " >&6; }
2930
if test "${ac_cv_prog_CC+set}" = set; then
2931
  $as_echo_n "(cached) " >&6
2932
else
2933
  if test -n "$CC"; then
2934
  ac_cv_prog_CC="$CC" # Let the user override the test.
2935
else
2936
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937
for as_dir in $PATH
2938
do
2939
  IFS=$as_save_IFS
2940
  test -z "$as_dir" && as_dir=.
2941
  for ac_exec_ext in '' $ac_executable_extensions; do
2942
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2943
    ac_cv_prog_CC="gcc"
2944
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2945
    break 2
2946
  fi
2947
done
2948
done
2949
IFS=$as_save_IFS
2950
 
2951
fi
2952
fi
2953
CC=$ac_cv_prog_CC
2954
if test -n "$CC"; then
2955
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2956
$as_echo "$CC" >&6; }
2957
else
2958
  { $as_echo "$as_me:$LINENO: result: no" >&5
2959
$as_echo "no" >&6; }
2960
fi
2961
 
2962
 
2963
 
2964
depcc="$CC"   am_compiler_list=
2965
 
2966
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2967
$as_echo_n "checking dependency style of $depcc... " >&6; }
2968
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2969
  $as_echo_n "(cached) " >&6
2970
else
2971
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2972
  # We make a subdir and do the tests there.  Otherwise we can end up
2973
  # making bogus files that we don't know about and never remove.  For
2974
  # instance it was reported that on HP-UX the gcc test will end up
2975
  # making a dummy file named `D' -- because `-MD' means `put the output
2976
  # in D'.
2977
  mkdir conftest.dir
2978
  # Copy depcomp to subdir because otherwise we won't find it if we're
2979
  # using a relative directory.
2980
  cp "$am_depcomp" conftest.dir
2981
  cd conftest.dir
2982
  # We will build objects and dependencies in a subdirectory because
2983
  # it helps to detect inapplicable dependency modes.  For instance
2984
  # both Tru64's cc and ICC support -MD to output dependencies as a
2985
  # side effect of compilation, but ICC will put the dependencies in
2986
  # the current directory while Tru64 will put them in the object
2987
  # directory.
2988
  mkdir sub
2989
 
2990
  am_cv_CC_dependencies_compiler_type=none
2991
  if test "$am_compiler_list" = ""; then
2992
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2993
  fi
2994
  am__universal=false
2995
  case " $depcc " in #(
2996
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
2997
     esac
2998
 
2999
  for depmode in $am_compiler_list; do
3000
    # Setup a source with many dependencies, because some compilers
3001
    # like to wrap large dependency lists on column 80 (with \), and
3002
    # we should not choose a depcomp mode which is confused by this.
3003
    #
3004
    # We need to recreate these files for each test, as the compiler may
3005
    # overwrite some of them when testing with obscure command lines.
3006
    # This happens at least with the AIX C compiler.
3007
    : > sub/conftest.c
3008
    for i in 1 2 3 4 5 6; do
3009
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3010
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3011
      # Solaris 8's {/usr,}/bin/sh.
3012
      touch sub/conftst$i.h
3013
    done
3014
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3015
 
3016
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3017
    # mode.  It turns out that the SunPro C++ compiler does not properly
3018
    # handle `-M -o', and we need to detect this.  Also, some Intel
3019
    # versions had trouble with output in subdirs
3020
    am__obj=sub/conftest.${OBJEXT-o}
3021
    am__minus_obj="-o $am__obj"
3022
    case $depmode in
3023
    gcc)
3024
      # This depmode causes a compiler race in universal mode.
3025
      test "$am__universal" = false || continue
3026
      ;;
3027
    nosideeffect)
3028
      # after this tag, mechanisms are not by side-effect, so they'll
3029
      # only be used when explicitly requested
3030
      if test "x$enable_dependency_tracking" = xyes; then
3031
        continue
3032
      else
3033
        break
3034
      fi
3035
      ;;
3036
    msvisualcpp | msvcmsys)
3037
      # This compiler won't grok `-c -o', but also, the minuso test has
3038
      # not run yet.  These depmodes are late enough in the game, and
3039
      # so weak that their functioning should not be impacted.
3040
      am__obj=conftest.${OBJEXT-o}
3041
      am__minus_obj=
3042
      ;;
3043
    none) break ;;
3044
    esac
3045
    if depmode=$depmode \
3046
       source=sub/conftest.c object=$am__obj \
3047
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3048
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3049
         >/dev/null 2>conftest.err &&
3050
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3051
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3052
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3053
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3054
      # icc doesn't choke on unknown options, it will just issue warnings
3055
      # or remarks (even with -Werror).  So we grep stderr for any message
3056
      # that says an option was ignored or not supported.
3057
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3058
      #   icc: Command line warning: ignoring option '-M'; no argument required
3059
      # The diagnosis changed in icc 8.0:
3060
      #   icc: Command line remark: option '-MP' not supported
3061
      if (grep 'ignoring option' conftest.err ||
3062
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3063
        am_cv_CC_dependencies_compiler_type=$depmode
3064
        break
3065
      fi
3066
    fi
3067
  done
3068
 
3069
  cd ..
3070
  rm -rf conftest.dir
3071
else
3072
  am_cv_CC_dependencies_compiler_type=none
3073
fi
3074
 
3075
fi
3076
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3077
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3078
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3079
 
3080
 if
3081
  test "x$enable_dependency_tracking" != xno \
3082
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3083
  am__fastdepCC_TRUE=
3084
  am__fastdepCC_FALSE='#'
3085
else
3086
  am__fastdepCC_TRUE='#'
3087
  am__fastdepCC_FALSE=
3088
fi
3089
 
3090
 
3091
if test -z "$CC"; then
3092
  # Extract the first word of "cc", so it can be a program name with args.
3093
set dummy cc; ac_word=$2
3094
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3095
$as_echo_n "checking for $ac_word... " >&6; }
3096
if test "${ac_cv_prog_CC+set}" = set; then
3097
  $as_echo_n "(cached) " >&6
3098
else
3099
  if test -n "$CC"; then
3100
  ac_cv_prog_CC="$CC" # Let the user override the test.
3101
else
3102
  ac_prog_rejected=no
3103
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104
for as_dir in $PATH
3105
do
3106
  IFS=$as_save_IFS
3107
  test -z "$as_dir" && as_dir=.
3108
  for ac_exec_ext in '' $ac_executable_extensions; do
3109
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3110
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3111
       ac_prog_rejected=yes
3112
       continue
3113
     fi
3114
    ac_cv_prog_CC="cc"
3115
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3116
    break 2
3117
  fi
3118
done
3119
done
3120
IFS=$as_save_IFS
3121
 
3122
if test $ac_prog_rejected = yes; then
3123
  # We found a bogon in the path, so make sure we never use it.
3124
  set dummy $ac_cv_prog_CC
3125
  shift
3126
  if test $# != 0; then
3127
    # We chose a different compiler from the bogus one.
3128
    # However, it has the same basename, so the bogon will be chosen
3129
    # first if we set CC to just the basename; use the full file name.
3130
    shift
3131
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3132
  fi
3133
fi
3134
fi
3135
fi
3136
CC=$ac_cv_prog_CC
3137
if test -n "$CC"; then
3138
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3139
$as_echo "$CC" >&6; }
3140
else
3141
  { $as_echo "$as_me:$LINENO: result: no" >&5
3142
$as_echo "no" >&6; }
3143
fi
3144
 
3145
 
3146
  test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
3147
$as_echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
3148
   { (exit 1); exit 1; }; }
3149
fi
3150
 
3151
{ $as_echo "$as_me:$LINENO: checking whether we are using GNU C" >&5
3152
$as_echo_n "checking whether we are using GNU C... " >&6; }
3153
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3154
  $as_echo_n "(cached) " >&6
3155
else
3156
  cat > conftest.c <
3157
#ifdef __GNUC__
3158
  yes;
3159
#endif
3160
EOF
3161
if { ac_try='${CC-cc} -E conftest.c'
3162
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3163
  (eval $ac_try) 2>&5
3164
  ac_status=$?
3165
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166
  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3167
  ac_cv_c_compiler_gnu=yes
3168
else
3169
  ac_cv_c_compiler_gnu=no
3170
fi
3171
fi
3172
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3173
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3174
 
3175
if test $ac_cv_c_compiler_gnu = yes; then
3176
  GCC=yes
3177
  ac_test_CFLAGS="${CFLAGS+set}"
3178
  ac_save_CFLAGS="$CFLAGS"
3179
  ac_test_CFLAGS=${CFLAGS+set}
3180
ac_save_CFLAGS=$CFLAGS
3181
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3182
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3183
if test "${ac_cv_prog_cc_g+set}" = set; then
3184
  $as_echo_n "(cached) " >&6
3185
else
3186
  ac_save_c_werror_flag=$ac_c_werror_flag
3187
   ac_c_werror_flag=yes
3188
   ac_cv_prog_cc_g=no
3189
   CFLAGS="-g"
3190
   cat >conftest.$ac_ext <<_ACEOF
3191
/* confdefs.h.  */
3192
_ACEOF
3193
cat confdefs.h >>conftest.$ac_ext
3194
cat >>conftest.$ac_ext <<_ACEOF
3195
/* end confdefs.h.  */
3196
 
3197
int
3198
main ()
3199
{
3200
 
3201
  ;
3202
  return 0;
3203
}
3204
_ACEOF
3205
rm -f conftest.$ac_objext
3206
if { (ac_try="$ac_compile"
3207
case "(($ac_try" in
3208
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209
  *) ac_try_echo=$ac_try;;
3210
esac
3211
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3212
$as_echo "$ac_try_echo") >&5
3213
  (eval "$ac_compile") 2>conftest.er1
3214
  ac_status=$?
3215
  grep -v '^ *+' conftest.er1 >conftest.err
3216
  rm -f conftest.er1
3217
  cat conftest.err >&5
3218
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219
  (exit $ac_status); } && {
3220
         test -z "$ac_c_werror_flag" ||
3221
         test ! -s conftest.err
3222
       } && test -s conftest.$ac_objext; then
3223
  ac_cv_prog_cc_g=yes
3224
else
3225
  $as_echo "$as_me: failed program was:" >&5
3226
sed 's/^/| /' conftest.$ac_ext >&5
3227
 
3228
        CFLAGS=""
3229
      cat >conftest.$ac_ext <<_ACEOF
3230
/* confdefs.h.  */
3231
_ACEOF
3232
cat confdefs.h >>conftest.$ac_ext
3233
cat >>conftest.$ac_ext <<_ACEOF
3234
/* end confdefs.h.  */
3235
 
3236
int
3237
main ()
3238
{
3239
 
3240
  ;
3241
  return 0;
3242
}
3243
_ACEOF
3244
rm -f conftest.$ac_objext
3245
if { (ac_try="$ac_compile"
3246
case "(($ac_try" in
3247
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248
  *) ac_try_echo=$ac_try;;
3249
esac
3250
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3251
$as_echo "$ac_try_echo") >&5
3252
  (eval "$ac_compile") 2>conftest.er1
3253
  ac_status=$?
3254
  grep -v '^ *+' conftest.er1 >conftest.err
3255
  rm -f conftest.er1
3256
  cat conftest.err >&5
3257
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258
  (exit $ac_status); } && {
3259
         test -z "$ac_c_werror_flag" ||
3260
         test ! -s conftest.err
3261
       } && test -s conftest.$ac_objext; then
3262
  :
3263
else
3264
  $as_echo "$as_me: failed program was:" >&5
3265
sed 's/^/| /' conftest.$ac_ext >&5
3266
 
3267
        ac_c_werror_flag=$ac_save_c_werror_flag
3268
         CFLAGS="-g"
3269
         cat >conftest.$ac_ext <<_ACEOF
3270
/* confdefs.h.  */
3271
_ACEOF
3272
cat confdefs.h >>conftest.$ac_ext
3273
cat >>conftest.$ac_ext <<_ACEOF
3274
/* end confdefs.h.  */
3275
 
3276
int
3277
main ()
3278
{
3279
 
3280
  ;
3281
  return 0;
3282
}
3283
_ACEOF
3284
rm -f conftest.$ac_objext
3285
if { (ac_try="$ac_compile"
3286
case "(($ac_try" in
3287
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288
  *) ac_try_echo=$ac_try;;
3289
esac
3290
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3291
$as_echo "$ac_try_echo") >&5
3292
  (eval "$ac_compile") 2>conftest.er1
3293
  ac_status=$?
3294
  grep -v '^ *+' conftest.er1 >conftest.err
3295
  rm -f conftest.er1
3296
  cat conftest.err >&5
3297
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298
  (exit $ac_status); } && {
3299
         test -z "$ac_c_werror_flag" ||
3300
         test ! -s conftest.err
3301
       } && test -s conftest.$ac_objext; then
3302
  ac_cv_prog_cc_g=yes
3303
else
3304
  $as_echo "$as_me: failed program was:" >&5
3305
sed 's/^/| /' conftest.$ac_ext >&5
3306
 
3307
 
3308
fi
3309
 
3310
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3311
fi
3312
 
3313
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3314
fi
3315
 
3316
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3317
   ac_c_werror_flag=$ac_save_c_werror_flag
3318
fi
3319
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3320
$as_echo "$ac_cv_prog_cc_g" >&6; }
3321
if test "$ac_test_CFLAGS" = set; then
3322
  CFLAGS=$ac_save_CFLAGS
3323
elif test $ac_cv_prog_cc_g = yes; then
3324
  if test "$GCC" = yes; then
3325
    CFLAGS="-g -O2"
3326
  else
3327
    CFLAGS="-g"
3328
  fi
3329
else
3330
  if test "$GCC" = yes; then
3331
    CFLAGS="-O2"
3332
  else
3333
    CFLAGS=
3334
  fi
3335
fi
3336
  if test "$ac_test_CFLAGS" = set; then
3337
    CFLAGS="$ac_save_CFLAGS"
3338
  elif test $ac_cv_prog_cc_g = yes; then
3339
    CFLAGS="-g -O2"
3340
  else
3341
    CFLAGS="-O2"
3342
  fi
3343
else
3344
  GCC=
3345
  test "${CFLAGS+set}" = set || CFLAGS="-g"
3346
fi
3347
 
3348
 
3349
if test -n "$ac_tool_prefix"; then
3350
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3351
set dummy ${ac_tool_prefix}as; ac_word=$2
3352
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3353
$as_echo_n "checking for $ac_word... " >&6; }
3354
if test "${ac_cv_prog_AS+set}" = set; then
3355
  $as_echo_n "(cached) " >&6
3356
else
3357
  if test -n "$AS"; then
3358
  ac_cv_prog_AS="$AS" # Let the user override the test.
3359
else
3360
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361
for as_dir in $PATH
3362
do
3363
  IFS=$as_save_IFS
3364
  test -z "$as_dir" && as_dir=.
3365
  for ac_exec_ext in '' $ac_executable_extensions; do
3366
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3367
    ac_cv_prog_AS="${ac_tool_prefix}as"
3368
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3369
    break 2
3370
  fi
3371
done
3372
done
3373
IFS=$as_save_IFS
3374
 
3375
fi
3376
fi
3377
AS=$ac_cv_prog_AS
3378
if test -n "$AS"; then
3379
  { $as_echo "$as_me:$LINENO: result: $AS" >&5
3380
$as_echo "$AS" >&6; }
3381
else
3382
  { $as_echo "$as_me:$LINENO: result: no" >&5
3383
$as_echo "no" >&6; }
3384
fi
3385
 
3386
 
3387
fi
3388
if test -z "$ac_cv_prog_AS"; then
3389
  ac_ct_AS=$AS
3390
  # Extract the first word of "as", so it can be a program name with args.
3391
set dummy as; ac_word=$2
3392
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3393
$as_echo_n "checking for $ac_word... " >&6; }
3394
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3395
  $as_echo_n "(cached) " >&6
3396
else
3397
  if test -n "$ac_ct_AS"; then
3398
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3399
else
3400
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401
for as_dir in $PATH
3402
do
3403
  IFS=$as_save_IFS
3404
  test -z "$as_dir" && as_dir=.
3405
  for ac_exec_ext in '' $ac_executable_extensions; do
3406
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3407
    ac_cv_prog_ac_ct_AS="as"
3408
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3409
    break 2
3410
  fi
3411
done
3412
done
3413
IFS=$as_save_IFS
3414
 
3415
fi
3416
fi
3417
ac_ct_AS=$ac_cv_prog_ac_ct_AS
3418
if test -n "$ac_ct_AS"; then
3419
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3420
$as_echo "$ac_ct_AS" >&6; }
3421
else
3422
  { $as_echo "$as_me:$LINENO: result: no" >&5
3423
$as_echo "no" >&6; }
3424
fi
3425
 
3426
  if test "x$ac_ct_AS" = x; then
3427
    AS=""
3428
  else
3429
    case $cross_compiling:$ac_tool_warned in
3430
yes:)
3431
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3432
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3433
ac_tool_warned=yes ;;
3434
esac
3435
    AS=$ac_ct_AS
3436
  fi
3437
else
3438
  AS="$ac_cv_prog_AS"
3439
fi
3440
 
3441
if test -n "$ac_tool_prefix"; then
3442
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3443
set dummy ${ac_tool_prefix}ar; ac_word=$2
3444
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3445
$as_echo_n "checking for $ac_word... " >&6; }
3446
if test "${ac_cv_prog_AR+set}" = set; then
3447
  $as_echo_n "(cached) " >&6
3448
else
3449
  if test -n "$AR"; then
3450
  ac_cv_prog_AR="$AR" # Let the user override the test.
3451
else
3452
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453
for as_dir in $PATH
3454
do
3455
  IFS=$as_save_IFS
3456
  test -z "$as_dir" && as_dir=.
3457
  for ac_exec_ext in '' $ac_executable_extensions; do
3458
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3459
    ac_cv_prog_AR="${ac_tool_prefix}ar"
3460
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3461
    break 2
3462
  fi
3463
done
3464
done
3465
IFS=$as_save_IFS
3466
 
3467
fi
3468
fi
3469
AR=$ac_cv_prog_AR
3470
if test -n "$AR"; then
3471
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
3472
$as_echo "$AR" >&6; }
3473
else
3474
  { $as_echo "$as_me:$LINENO: result: no" >&5
3475
$as_echo "no" >&6; }
3476
fi
3477
 
3478
 
3479
fi
3480
if test -z "$ac_cv_prog_AR"; then
3481
  ac_ct_AR=$AR
3482
  # Extract the first word of "ar", so it can be a program name with args.
3483
set dummy ar; ac_word=$2
3484
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3485
$as_echo_n "checking for $ac_word... " >&6; }
3486
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3487
  $as_echo_n "(cached) " >&6
3488
else
3489
  if test -n "$ac_ct_AR"; then
3490
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3491
else
3492
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493
for as_dir in $PATH
3494
do
3495
  IFS=$as_save_IFS
3496
  test -z "$as_dir" && as_dir=.
3497
  for ac_exec_ext in '' $ac_executable_extensions; do
3498
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3499
    ac_cv_prog_ac_ct_AR="ar"
3500
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3501
    break 2
3502
  fi
3503
done
3504
done
3505
IFS=$as_save_IFS
3506
 
3507
fi
3508
fi
3509
ac_ct_AR=$ac_cv_prog_ac_ct_AR
3510
if test -n "$ac_ct_AR"; then
3511
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3512
$as_echo "$ac_ct_AR" >&6; }
3513
else
3514
  { $as_echo "$as_me:$LINENO: result: no" >&5
3515
$as_echo "no" >&6; }
3516
fi
3517
 
3518
  if test "x$ac_ct_AR" = x; then
3519
    AR=""
3520
  else
3521
    case $cross_compiling:$ac_tool_warned in
3522
yes:)
3523
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3524
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3525
ac_tool_warned=yes ;;
3526
esac
3527
    AR=$ac_ct_AR
3528
  fi
3529
else
3530
  AR="$ac_cv_prog_AR"
3531
fi
3532
 
3533
if test -n "$ac_tool_prefix"; then
3534
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3535
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3536
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3537
$as_echo_n "checking for $ac_word... " >&6; }
3538
if test "${ac_cv_prog_RANLIB+set}" = set; then
3539
  $as_echo_n "(cached) " >&6
3540
else
3541
  if test -n "$RANLIB"; then
3542
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3543
else
3544
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545
for as_dir in $PATH
3546
do
3547
  IFS=$as_save_IFS
3548
  test -z "$as_dir" && as_dir=.
3549
  for ac_exec_ext in '' $ac_executable_extensions; do
3550
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3551
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3552
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3553
    break 2
3554
  fi
3555
done
3556
done
3557
IFS=$as_save_IFS
3558
 
3559
fi
3560
fi
3561
RANLIB=$ac_cv_prog_RANLIB
3562
if test -n "$RANLIB"; then
3563
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3564
$as_echo "$RANLIB" >&6; }
3565
else
3566
  { $as_echo "$as_me:$LINENO: result: no" >&5
3567
$as_echo "no" >&6; }
3568
fi
3569
 
3570
 
3571
fi
3572
if test -z "$ac_cv_prog_RANLIB"; then
3573
  ac_ct_RANLIB=$RANLIB
3574
  # Extract the first word of "ranlib", so it can be a program name with args.
3575
set dummy ranlib; ac_word=$2
3576
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3577
$as_echo_n "checking for $ac_word... " >&6; }
3578
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3579
  $as_echo_n "(cached) " >&6
3580
else
3581
  if test -n "$ac_ct_RANLIB"; then
3582
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3583
else
3584
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585
for as_dir in $PATH
3586
do
3587
  IFS=$as_save_IFS
3588
  test -z "$as_dir" && as_dir=.
3589
  for ac_exec_ext in '' $ac_executable_extensions; do
3590
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3591
    ac_cv_prog_ac_ct_RANLIB="ranlib"
3592
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3593
    break 2
3594
  fi
3595
done
3596
done
3597
IFS=$as_save_IFS
3598
 
3599
fi
3600
fi
3601
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3602
if test -n "$ac_ct_RANLIB"; then
3603
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3604
$as_echo "$ac_ct_RANLIB" >&6; }
3605
else
3606
  { $as_echo "$as_me:$LINENO: result: no" >&5
3607
$as_echo "no" >&6; }
3608
fi
3609
 
3610
  if test "x$ac_ct_RANLIB" = x; then
3611
    RANLIB=":"
3612
  else
3613
    case $cross_compiling:$ac_tool_warned in
3614
yes:)
3615
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3616
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3617
ac_tool_warned=yes ;;
3618
esac
3619
    RANLIB=$ac_ct_RANLIB
3620
  fi
3621
else
3622
  RANLIB="$ac_cv_prog_RANLIB"
3623
fi
3624
 
3625
if test -n "$ac_tool_prefix"; then
3626
  # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
3627
set dummy ${ac_tool_prefix}readelf; ac_word=$2
3628
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3629
$as_echo_n "checking for $ac_word... " >&6; }
3630
if test "${ac_cv_prog_READELF+set}" = set; then
3631
  $as_echo_n "(cached) " >&6
3632
else
3633
  if test -n "$READELF"; then
3634
  ac_cv_prog_READELF="$READELF" # Let the user override the test.
3635
else
3636
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637
for as_dir in $PATH
3638
do
3639
  IFS=$as_save_IFS
3640
  test -z "$as_dir" && as_dir=.
3641
  for ac_exec_ext in '' $ac_executable_extensions; do
3642
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3643
    ac_cv_prog_READELF="${ac_tool_prefix}readelf"
3644
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3645
    break 2
3646
  fi
3647
done
3648
done
3649
IFS=$as_save_IFS
3650
 
3651
fi
3652
fi
3653
READELF=$ac_cv_prog_READELF
3654
if test -n "$READELF"; then
3655
  { $as_echo "$as_me:$LINENO: result: $READELF" >&5
3656
$as_echo "$READELF" >&6; }
3657
else
3658
  { $as_echo "$as_me:$LINENO: result: no" >&5
3659
$as_echo "no" >&6; }
3660
fi
3661
 
3662
 
3663
fi
3664
if test -z "$ac_cv_prog_READELF"; then
3665
  ac_ct_READELF=$READELF
3666
  # Extract the first word of "readelf", so it can be a program name with args.
3667
set dummy readelf; ac_word=$2
3668
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3669
$as_echo_n "checking for $ac_word... " >&6; }
3670
if test "${ac_cv_prog_ac_ct_READELF+set}" = set; then
3671
  $as_echo_n "(cached) " >&6
3672
else
3673
  if test -n "$ac_ct_READELF"; then
3674
  ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
3675
else
3676
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677
for as_dir in $PATH
3678
do
3679
  IFS=$as_save_IFS
3680
  test -z "$as_dir" && as_dir=.
3681
  for ac_exec_ext in '' $ac_executable_extensions; do
3682
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3683
    ac_cv_prog_ac_ct_READELF="readelf"
3684
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3685
    break 2
3686
  fi
3687
done
3688
done
3689
IFS=$as_save_IFS
3690
 
3691
fi
3692
fi
3693
ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
3694
if test -n "$ac_ct_READELF"; then
3695
  { $as_echo "$as_me:$LINENO: result: $ac_ct_READELF" >&5
3696
$as_echo "$ac_ct_READELF" >&6; }
3697
else
3698
  { $as_echo "$as_me:$LINENO: result: no" >&5
3699
$as_echo "no" >&6; }
3700
fi
3701
 
3702
  if test "x$ac_ct_READELF" = x; then
3703
    READELF=":"
3704
  else
3705
    case $cross_compiling:$ac_tool_warned in
3706
yes:)
3707
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3708
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3709
ac_tool_warned=yes ;;
3710
esac
3711
    READELF=$ac_ct_READELF
3712
  fi
3713
else
3714
  READELF="$ac_cv_prog_READELF"
3715
fi
3716
 
3717
 
3718
# Find a good install program.  We prefer a C program (faster),
3719
# so one script is as good as another.  But avoid the broken or
3720
# incompatible versions:
3721
# SysV /etc/install, /usr/sbin/install
3722
# SunOS /usr/etc/install
3723
# IRIX /sbin/install
3724
# AIX /bin/install
3725
# AmigaOS /C/install, which installs bootblocks on floppy discs
3726
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3727
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3728
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3729
# OS/2's system install, which has a completely different semantic
3730
# ./install, which can be erroneously created by make from ./install.sh.
3731
# Reject install programs that cannot install multiple files.
3732
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3733
$as_echo_n "checking for a BSD-compatible install... " >&6; }
3734
if test -z "$INSTALL"; then
3735
if test "${ac_cv_path_install+set}" = set; then
3736
  $as_echo_n "(cached) " >&6
3737
else
3738
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739
for as_dir in $PATH
3740
do
3741
  IFS=$as_save_IFS
3742
  test -z "$as_dir" && as_dir=.
3743
  # Account for people who put trailing slashes in PATH elements.
3744
case $as_dir/ in
3745
  ./ | .// | /cC/* | \
3746
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3747
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3748
  /usr/ucb/* ) ;;
3749
  *)
3750
    # OSF1 and SCO ODT 3.0 have their own names for install.
3751
    # Don't use installbsd from OSF since it installs stuff as root
3752
    # by default.
3753
    for ac_prog in ginstall scoinst install; do
3754
      for ac_exec_ext in '' $ac_executable_extensions; do
3755
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3756
          if test $ac_prog = install &&
3757
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3758
            # AIX install.  It has an incompatible calling convention.
3759
            :
3760
          elif test $ac_prog = install &&
3761
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3762
            # program-specific install script used by HP pwplus--don't use.
3763
            :
3764
          else
3765
            rm -rf conftest.one conftest.two conftest.dir
3766
            echo one > conftest.one
3767
            echo two > conftest.two
3768
            mkdir conftest.dir
3769
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3770
              test -s conftest.one && test -s conftest.two &&
3771
              test -s conftest.dir/conftest.one &&
3772
              test -s conftest.dir/conftest.two
3773
            then
3774
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3775
              break 3
3776
            fi
3777
          fi
3778
        fi
3779
      done
3780
    done
3781
    ;;
3782
esac
3783
 
3784
done
3785
IFS=$as_save_IFS
3786
 
3787
rm -rf conftest.one conftest.two conftest.dir
3788
 
3789
fi
3790
  if test "${ac_cv_path_install+set}" = set; then
3791
    INSTALL=$ac_cv_path_install
3792
  else
3793
    # As a last resort, use the slow shell script.  Don't cache a
3794
    # value for INSTALL within a source directory, because that will
3795
    # break other packages using the cache if that directory is
3796
    # removed, or if the value is a relative name.
3797
    INSTALL=$ac_install_sh
3798
  fi
3799
fi
3800
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3801
$as_echo "$INSTALL" >&6; }
3802
 
3803
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3804
# It thinks the first close brace ends the variable substitution.
3805
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3806
 
3807
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3808
 
3809
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3810
 
3811
 
3812
# Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13.  */
3813
ac_given_INSTALL=$INSTALL
3814
 
3815
 
3816
{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3817
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3818
    # Check whether --enable-maintainer-mode was given.
3819
if test "${enable_maintainer_mode+set}" = set; then
3820
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3821
else
3822
  USE_MAINTAINER_MODE=no
3823
fi
3824
 
3825
  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3826
$as_echo "$USE_MAINTAINER_MODE" >&6; }
3827
   if test $USE_MAINTAINER_MODE = yes; then
3828
  MAINTAINER_MODE_TRUE=
3829
  MAINTAINER_MODE_FALSE='#'
3830
else
3831
  MAINTAINER_MODE_TRUE='#'
3832
  MAINTAINER_MODE_FALSE=
3833
fi
3834
 
3835
  MAINT=$MAINTAINER_MODE_TRUE
3836
 
3837
 
3838
# By default we simply use the C compiler to build assembly code.
3839
 
3840
test "${CCAS+set}" = set || CCAS=$CC
3841
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3842
 
3843
 
3844
 
3845
 
3846
# We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
3847
# at least currently, we never actually build a program, so we never
3848
# need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
3849
# fails, because we are probably configuring with a cross compiler
3850
# which can't create executables.  So we include AC_EXEEXT to keep
3851
# automake happy, but we don't execute it, since we don't care about
3852
# the result.
3853
if false; then
3854
 
3855
  dummy_var=1
3856
fi
3857
 
3858
. ${newlib_basedir}/configure.host
3859
 
3860
newlib_cflags="${newlib_cflags} -fno-builtin"
3861
 
3862
NEWLIB_CFLAGS=${newlib_cflags}
3863
 
3864
 
3865
LDFLAGS=${ldflags}
3866
 
3867
 
3868
 if test x${newlib_elix_level} = x0; then
3869
  ELIX_LEVEL_0_TRUE=
3870
  ELIX_LEVEL_0_FALSE='#'
3871
else
3872
  ELIX_LEVEL_0_TRUE='#'
3873
  ELIX_LEVEL_0_FALSE=
3874
fi
3875
 
3876
 if test x${newlib_elix_level} = x1; then
3877
  ELIX_LEVEL_1_TRUE=
3878
  ELIX_LEVEL_1_FALSE='#'
3879
else
3880
  ELIX_LEVEL_1_TRUE='#'
3881
  ELIX_LEVEL_1_FALSE=
3882
fi
3883
 
3884
 if test x${newlib_elix_level} = x2; then
3885
  ELIX_LEVEL_2_TRUE=
3886
  ELIX_LEVEL_2_FALSE='#'
3887
else
3888
  ELIX_LEVEL_2_TRUE='#'
3889
  ELIX_LEVEL_2_FALSE=
3890
fi
3891
 
3892
 if test x${newlib_elix_level} = x3; then
3893
  ELIX_LEVEL_3_TRUE=
3894
  ELIX_LEVEL_3_FALSE='#'
3895
else
3896
  ELIX_LEVEL_3_TRUE='#'
3897
  ELIX_LEVEL_3_FALSE=
3898
fi
3899
 
3900
 if test x${newlib_elix_level} = x4; then
3901
  ELIX_LEVEL_4_TRUE=
3902
  ELIX_LEVEL_4_FALSE='#'
3903
else
3904
  ELIX_LEVEL_4_TRUE='#'
3905
  ELIX_LEVEL_4_FALSE=
3906
fi
3907
 
3908
 
3909
 if test x${use_libtool} = xyes; then
3910
  USE_LIBTOOL_TRUE=
3911
  USE_LIBTOOL_FALSE='#'
3912
else
3913
  USE_LIBTOOL_TRUE='#'
3914
  USE_LIBTOOL_FALSE=
3915
fi
3916
 
3917
 
3918
# Hard-code OBJEXT.  Normally it is set by AC_OBJEXT, but we
3919
# use oext, which is set in configure.host based on the target platform.
3920
OBJEXT=${oext}
3921
 
3922
 
3923
 
3924
 
3925
 
3926
 
3927
 
3928
 
3929
 
3930
 
3931
 
3932
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3933
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3934
if test "${ac_cv_path_SED+set}" = set; then
3935
  $as_echo_n "(cached) " >&6
3936
else
3937
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3938
     for ac_i in 1 2 3 4 5 6 7; do
3939
       ac_script="$ac_script$as_nl$ac_script"
3940
     done
3941
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3942
     $as_unset ac_script || ac_script=
3943
     if test -z "$SED"; then
3944
  ac_path_SED_found=false
3945
  # Loop through the user's path and test for each of PROGNAME-LIST
3946
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947
for as_dir in $PATH
3948
do
3949
  IFS=$as_save_IFS
3950
  test -z "$as_dir" && as_dir=.
3951
  for ac_prog in sed gsed; do
3952
    for ac_exec_ext in '' $ac_executable_extensions; do
3953
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3954
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3955
# Check for GNU ac_path_SED and select it if it is found.
3956
  # Check for GNU $ac_path_SED
3957
case `"$ac_path_SED" --version 2>&1` in
3958
*GNU*)
3959
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3960
*)
3961
  ac_count=0
3962
  $as_echo_n 0123456789 >"conftest.in"
3963
  while :
3964
  do
3965
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3966
    mv "conftest.tmp" "conftest.in"
3967
    cp "conftest.in" "conftest.nl"
3968
    $as_echo '' >> "conftest.nl"
3969
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3970
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3971
    ac_count=`expr $ac_count + 1`
3972
    if test $ac_count -gt ${ac_path_SED_max-0}; then
3973
      # Best one so far, save it but keep looking for a better one
3974
      ac_cv_path_SED="$ac_path_SED"
3975
      ac_path_SED_max=$ac_count
3976
    fi
3977
    # 10*(2^10) chars as input seems more than enough
3978
    test $ac_count -gt 10 && break
3979
  done
3980
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3981
esac
3982
 
3983
      $ac_path_SED_found && break 3
3984
    done
3985
  done
3986
done
3987
IFS=$as_save_IFS
3988
  if test -z "$ac_cv_path_SED"; then
3989
    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3990
$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3991
   { (exit 1); exit 1; }; }
3992
  fi
3993
else
3994
  ac_cv_path_SED=$SED
3995
fi
3996
 
3997
fi
3998
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3999
$as_echo "$ac_cv_path_SED" >&6; }
4000
 SED="$ac_cv_path_SED"
4001
  rm -f conftest.sed
4002
 
4003
test -z "$SED" && SED=sed
4004
Xsed="$SED -e 1s/^X//"
4005
 
4006
 
4007
 
4008
 
4009
 
4010
 
4011
 
4012
 
4013
 
4014
 
4015
 
4016
if test "${use_libtool}" = "yes"; then
4017
enable_win32_dll=yes
4018
 
4019
case $host in
4020
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
4021
  if test -n "$ac_tool_prefix"; then
4022
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4023
set dummy ${ac_tool_prefix}as; ac_word=$2
4024
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4025
$as_echo_n "checking for $ac_word... " >&6; }
4026
if test "${ac_cv_prog_AS+set}" = set; then
4027
  $as_echo_n "(cached) " >&6
4028
else
4029
  if test -n "$AS"; then
4030
  ac_cv_prog_AS="$AS" # Let the user override the test.
4031
else
4032
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033
for as_dir in $PATH
4034
do
4035
  IFS=$as_save_IFS
4036
  test -z "$as_dir" && as_dir=.
4037
  for ac_exec_ext in '' $ac_executable_extensions; do
4038
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4039
    ac_cv_prog_AS="${ac_tool_prefix}as"
4040
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4041
    break 2
4042
  fi
4043
done
4044
done
4045
IFS=$as_save_IFS
4046
 
4047
fi
4048
fi
4049
AS=$ac_cv_prog_AS
4050
if test -n "$AS"; then
4051
  { $as_echo "$as_me:$LINENO: result: $AS" >&5
4052
$as_echo "$AS" >&6; }
4053
else
4054
  { $as_echo "$as_me:$LINENO: result: no" >&5
4055
$as_echo "no" >&6; }
4056
fi
4057
 
4058
 
4059
fi
4060
if test -z "$ac_cv_prog_AS"; then
4061
  ac_ct_AS=$AS
4062
  # Extract the first word of "as", so it can be a program name with args.
4063
set dummy as; ac_word=$2
4064
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4065
$as_echo_n "checking for $ac_word... " >&6; }
4066
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4067
  $as_echo_n "(cached) " >&6
4068
else
4069
  if test -n "$ac_ct_AS"; then
4070
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4071
else
4072
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073
for as_dir in $PATH
4074
do
4075
  IFS=$as_save_IFS
4076
  test -z "$as_dir" && as_dir=.
4077
  for ac_exec_ext in '' $ac_executable_extensions; do
4078
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4079
    ac_cv_prog_ac_ct_AS="as"
4080
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4081
    break 2
4082
  fi
4083
done
4084
done
4085
IFS=$as_save_IFS
4086
 
4087
fi
4088
fi
4089
ac_ct_AS=$ac_cv_prog_ac_ct_AS
4090
if test -n "$ac_ct_AS"; then
4091
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4092
$as_echo "$ac_ct_AS" >&6; }
4093
else
4094
  { $as_echo "$as_me:$LINENO: result: no" >&5
4095
$as_echo "no" >&6; }
4096
fi
4097
 
4098
  if test "x$ac_ct_AS" = x; then
4099
    AS="false"
4100
  else
4101
    case $cross_compiling:$ac_tool_warned in
4102
yes:)
4103
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4104
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4105
ac_tool_warned=yes ;;
4106
esac
4107
    AS=$ac_ct_AS
4108
  fi
4109
else
4110
  AS="$ac_cv_prog_AS"
4111
fi
4112
 
4113
  if test -n "$ac_tool_prefix"; then
4114
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4115
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4116
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4117
$as_echo_n "checking for $ac_word... " >&6; }
4118
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4119
  $as_echo_n "(cached) " >&6
4120
else
4121
  if test -n "$DLLTOOL"; then
4122
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4123
else
4124
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125
for as_dir in $PATH
4126
do
4127
  IFS=$as_save_IFS
4128
  test -z "$as_dir" && as_dir=.
4129
  for ac_exec_ext in '' $ac_executable_extensions; do
4130
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4131
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4132
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4133
    break 2
4134
  fi
4135
done
4136
done
4137
IFS=$as_save_IFS
4138
 
4139
fi
4140
fi
4141
DLLTOOL=$ac_cv_prog_DLLTOOL
4142
if test -n "$DLLTOOL"; then
4143
  { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4144
$as_echo "$DLLTOOL" >&6; }
4145
else
4146
  { $as_echo "$as_me:$LINENO: result: no" >&5
4147
$as_echo "no" >&6; }
4148
fi
4149
 
4150
 
4151
fi
4152
if test -z "$ac_cv_prog_DLLTOOL"; then
4153
  ac_ct_DLLTOOL=$DLLTOOL
4154
  # Extract the first word of "dlltool", so it can be a program name with args.
4155
set dummy dlltool; ac_word=$2
4156
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4157
$as_echo_n "checking for $ac_word... " >&6; }
4158
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4159
  $as_echo_n "(cached) " >&6
4160
else
4161
  if test -n "$ac_ct_DLLTOOL"; then
4162
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4163
else
4164
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165
for as_dir in $PATH
4166
do
4167
  IFS=$as_save_IFS
4168
  test -z "$as_dir" && as_dir=.
4169
  for ac_exec_ext in '' $ac_executable_extensions; do
4170
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4171
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4172
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4173
    break 2
4174
  fi
4175
done
4176
done
4177
IFS=$as_save_IFS
4178
 
4179
fi
4180
fi
4181
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4182
if test -n "$ac_ct_DLLTOOL"; then
4183
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4184
$as_echo "$ac_ct_DLLTOOL" >&6; }
4185
else
4186
  { $as_echo "$as_me:$LINENO: result: no" >&5
4187
$as_echo "no" >&6; }
4188
fi
4189
 
4190
  if test "x$ac_ct_DLLTOOL" = x; then
4191
    DLLTOOL="false"
4192
  else
4193
    case $cross_compiling:$ac_tool_warned in
4194
yes:)
4195
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4196
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4197
ac_tool_warned=yes ;;
4198
esac
4199
    DLLTOOL=$ac_ct_DLLTOOL
4200
  fi
4201
else
4202
  DLLTOOL="$ac_cv_prog_DLLTOOL"
4203
fi
4204
 
4205
  if test -n "$ac_tool_prefix"; then
4206
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4207
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4208
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4209
$as_echo_n "checking for $ac_word... " >&6; }
4210
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4211
  $as_echo_n "(cached) " >&6
4212
else
4213
  if test -n "$OBJDUMP"; then
4214
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4215
else
4216
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217
for as_dir in $PATH
4218
do
4219
  IFS=$as_save_IFS
4220
  test -z "$as_dir" && as_dir=.
4221
  for ac_exec_ext in '' $ac_executable_extensions; do
4222
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4223
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4224
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4225
    break 2
4226
  fi
4227
done
4228
done
4229
IFS=$as_save_IFS
4230
 
4231
fi
4232
fi
4233
OBJDUMP=$ac_cv_prog_OBJDUMP
4234
if test -n "$OBJDUMP"; then
4235
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4236
$as_echo "$OBJDUMP" >&6; }
4237
else
4238
  { $as_echo "$as_me:$LINENO: result: no" >&5
4239
$as_echo "no" >&6; }
4240
fi
4241
 
4242
 
4243
fi
4244
if test -z "$ac_cv_prog_OBJDUMP"; then
4245
  ac_ct_OBJDUMP=$OBJDUMP
4246
  # Extract the first word of "objdump", so it can be a program name with args.
4247
set dummy objdump; ac_word=$2
4248
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4249
$as_echo_n "checking for $ac_word... " >&6; }
4250
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4251
  $as_echo_n "(cached) " >&6
4252
else
4253
  if test -n "$ac_ct_OBJDUMP"; then
4254
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4255
else
4256
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257
for as_dir in $PATH
4258
do
4259
  IFS=$as_save_IFS
4260
  test -z "$as_dir" && as_dir=.
4261
  for ac_exec_ext in '' $ac_executable_extensions; do
4262
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4263
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4264
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4265
    break 2
4266
  fi
4267
done
4268
done
4269
IFS=$as_save_IFS
4270
 
4271
fi
4272
fi
4273
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4274
if test -n "$ac_ct_OBJDUMP"; then
4275
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4276
$as_echo "$ac_ct_OBJDUMP" >&6; }
4277
else
4278
  { $as_echo "$as_me:$LINENO: result: no" >&5
4279
$as_echo "no" >&6; }
4280
fi
4281
 
4282
  if test "x$ac_ct_OBJDUMP" = x; then
4283
    OBJDUMP="false"
4284
  else
4285
    case $cross_compiling:$ac_tool_warned in
4286
yes:)
4287
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4288
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4289
ac_tool_warned=yes ;;
4290
esac
4291
    OBJDUMP=$ac_ct_OBJDUMP
4292
  fi
4293
else
4294
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4295
fi
4296
 
4297
  ;;
4298
esac
4299
 
4300
test -z "$AS" && AS=as
4301
 
4302
 
4303
 
4304
 
4305
 
4306
test -z "$DLLTOOL" && DLLTOOL=dlltool
4307
 
4308
 
4309
 
4310
 
4311
 
4312
test -z "$OBJDUMP" && OBJDUMP=objdump
4313
 
4314
 
4315
 
4316
 
4317
 
4318
 
4319
 
4320
case `pwd` in
4321
  *\ * | *\     *)
4322
    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4323
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4324
esac
4325
 
4326
 
4327
 
4328
macro_version='2.2.6'
4329
macro_revision='1.3012'
4330
 
4331
 
4332
 
4333
 
4334
 
4335
 
4336
 
4337
 
4338
 
4339
 
4340
 
4341
 
4342
 
4343
ltmain="$ac_aux_dir/ltmain.sh"
4344
 
4345
ac_ext=c
4346
ac_cpp='$CPP $CPPFLAGS'
4347
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4348
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4349
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4350
if test -n "$ac_tool_prefix"; then
4351
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4352
set dummy ${ac_tool_prefix}gcc; ac_word=$2
4353
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4354
$as_echo_n "checking for $ac_word... " >&6; }
4355
if test "${ac_cv_prog_CC+set}" = set; then
4356
  $as_echo_n "(cached) " >&6
4357
else
4358
  if test -n "$CC"; then
4359
  ac_cv_prog_CC="$CC" # Let the user override the test.
4360
else
4361
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362
for as_dir in $PATH
4363
do
4364
  IFS=$as_save_IFS
4365
  test -z "$as_dir" && as_dir=.
4366
  for ac_exec_ext in '' $ac_executable_extensions; do
4367
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4368
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4369
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4370
    break 2
4371
  fi
4372
done
4373
done
4374
IFS=$as_save_IFS
4375
 
4376
fi
4377
fi
4378
CC=$ac_cv_prog_CC
4379
if test -n "$CC"; then
4380
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4381
$as_echo "$CC" >&6; }
4382
else
4383
  { $as_echo "$as_me:$LINENO: result: no" >&5
4384
$as_echo "no" >&6; }
4385
fi
4386
 
4387
 
4388
fi
4389
if test -z "$ac_cv_prog_CC"; then
4390
  ac_ct_CC=$CC
4391
  # Extract the first word of "gcc", so it can be a program name with args.
4392
set dummy gcc; ac_word=$2
4393
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4394
$as_echo_n "checking for $ac_word... " >&6; }
4395
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4396
  $as_echo_n "(cached) " >&6
4397
else
4398
  if test -n "$ac_ct_CC"; then
4399
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4400
else
4401
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402
for as_dir in $PATH
4403
do
4404
  IFS=$as_save_IFS
4405
  test -z "$as_dir" && as_dir=.
4406
  for ac_exec_ext in '' $ac_executable_extensions; do
4407
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4408
    ac_cv_prog_ac_ct_CC="gcc"
4409
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4410
    break 2
4411
  fi
4412
done
4413
done
4414
IFS=$as_save_IFS
4415
 
4416
fi
4417
fi
4418
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4419
if test -n "$ac_ct_CC"; then
4420
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4421
$as_echo "$ac_ct_CC" >&6; }
4422
else
4423
  { $as_echo "$as_me:$LINENO: result: no" >&5
4424
$as_echo "no" >&6; }
4425
fi
4426
 
4427
  if test "x$ac_ct_CC" = x; then
4428
    CC=""
4429
  else
4430
    case $cross_compiling:$ac_tool_warned in
4431
yes:)
4432
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4433
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4434
ac_tool_warned=yes ;;
4435
esac
4436
    CC=$ac_ct_CC
4437
  fi
4438
else
4439
  CC="$ac_cv_prog_CC"
4440
fi
4441
 
4442
if test -z "$CC"; then
4443
          if test -n "$ac_tool_prefix"; then
4444
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4445
set dummy ${ac_tool_prefix}cc; ac_word=$2
4446
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4447
$as_echo_n "checking for $ac_word... " >&6; }
4448
if test "${ac_cv_prog_CC+set}" = set; then
4449
  $as_echo_n "(cached) " >&6
4450
else
4451
  if test -n "$CC"; then
4452
  ac_cv_prog_CC="$CC" # Let the user override the test.
4453
else
4454
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4455
for as_dir in $PATH
4456
do
4457
  IFS=$as_save_IFS
4458
  test -z "$as_dir" && as_dir=.
4459
  for ac_exec_ext in '' $ac_executable_extensions; do
4460
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4461
    ac_cv_prog_CC="${ac_tool_prefix}cc"
4462
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4463
    break 2
4464
  fi
4465
done
4466
done
4467
IFS=$as_save_IFS
4468
 
4469
fi
4470
fi
4471
CC=$ac_cv_prog_CC
4472
if test -n "$CC"; then
4473
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4474
$as_echo "$CC" >&6; }
4475
else
4476
  { $as_echo "$as_me:$LINENO: result: no" >&5
4477
$as_echo "no" >&6; }
4478
fi
4479
 
4480
 
4481
  fi
4482
fi
4483
if test -z "$CC"; then
4484
  # Extract the first word of "cc", so it can be a program name with args.
4485
set dummy cc; ac_word=$2
4486
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4487
$as_echo_n "checking for $ac_word... " >&6; }
4488
if test "${ac_cv_prog_CC+set}" = set; then
4489
  $as_echo_n "(cached) " >&6
4490
else
4491
  if test -n "$CC"; then
4492
  ac_cv_prog_CC="$CC" # Let the user override the test.
4493
else
4494
  ac_prog_rejected=no
4495
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496
for as_dir in $PATH
4497
do
4498
  IFS=$as_save_IFS
4499
  test -z "$as_dir" && as_dir=.
4500
  for ac_exec_ext in '' $ac_executable_extensions; do
4501
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4502
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4503
       ac_prog_rejected=yes
4504
       continue
4505
     fi
4506
    ac_cv_prog_CC="cc"
4507
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4508
    break 2
4509
  fi
4510
done
4511
done
4512
IFS=$as_save_IFS
4513
 
4514
if test $ac_prog_rejected = yes; then
4515
  # We found a bogon in the path, so make sure we never use it.
4516
  set dummy $ac_cv_prog_CC
4517
  shift
4518
  if test $# != 0; then
4519
    # We chose a different compiler from the bogus one.
4520
    # However, it has the same basename, so the bogon will be chosen
4521
    # first if we set CC to just the basename; use the full file name.
4522
    shift
4523
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4524
  fi
4525
fi
4526
fi
4527
fi
4528
CC=$ac_cv_prog_CC
4529
if test -n "$CC"; then
4530
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4531
$as_echo "$CC" >&6; }
4532
else
4533
  { $as_echo "$as_me:$LINENO: result: no" >&5
4534
$as_echo "no" >&6; }
4535
fi
4536
 
4537
 
4538
fi
4539
if test -z "$CC"; then
4540
  if test -n "$ac_tool_prefix"; then
4541
  for ac_prog in cl.exe
4542
  do
4543
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4544
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4545
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4546
$as_echo_n "checking for $ac_word... " >&6; }
4547
if test "${ac_cv_prog_CC+set}" = set; then
4548
  $as_echo_n "(cached) " >&6
4549
else
4550
  if test -n "$CC"; then
4551
  ac_cv_prog_CC="$CC" # Let the user override the test.
4552
else
4553
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554
for as_dir in $PATH
4555
do
4556
  IFS=$as_save_IFS
4557
  test -z "$as_dir" && as_dir=.
4558
  for ac_exec_ext in '' $ac_executable_extensions; do
4559
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4560
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4561
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4562
    break 2
4563
  fi
4564
done
4565
done
4566
IFS=$as_save_IFS
4567
 
4568
fi
4569
fi
4570
CC=$ac_cv_prog_CC
4571
if test -n "$CC"; then
4572
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4573
$as_echo "$CC" >&6; }
4574
else
4575
  { $as_echo "$as_me:$LINENO: result: no" >&5
4576
$as_echo "no" >&6; }
4577
fi
4578
 
4579
 
4580
    test -n "$CC" && break
4581
  done
4582
fi
4583
if test -z "$CC"; then
4584
  ac_ct_CC=$CC
4585
  for ac_prog in cl.exe
4586
do
4587
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4588
set dummy $ac_prog; ac_word=$2
4589
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4590
$as_echo_n "checking for $ac_word... " >&6; }
4591
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4592
  $as_echo_n "(cached) " >&6
4593
else
4594
  if test -n "$ac_ct_CC"; then
4595
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4596
else
4597
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598
for as_dir in $PATH
4599
do
4600
  IFS=$as_save_IFS
4601
  test -z "$as_dir" && as_dir=.
4602
  for ac_exec_ext in '' $ac_executable_extensions; do
4603
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4604
    ac_cv_prog_ac_ct_CC="$ac_prog"
4605
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4606
    break 2
4607
  fi
4608
done
4609
done
4610
IFS=$as_save_IFS
4611
 
4612
fi
4613
fi
4614
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4615
if test -n "$ac_ct_CC"; then
4616
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4617
$as_echo "$ac_ct_CC" >&6; }
4618
else
4619
  { $as_echo "$as_me:$LINENO: result: no" >&5
4620
$as_echo "no" >&6; }
4621
fi
4622
 
4623
 
4624
  test -n "$ac_ct_CC" && break
4625
done
4626
 
4627
  if test "x$ac_ct_CC" = x; then
4628
    CC=""
4629
  else
4630
    case $cross_compiling:$ac_tool_warned in
4631
yes:)
4632
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4633
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4634
ac_tool_warned=yes ;;
4635
esac
4636
    CC=$ac_ct_CC
4637
  fi
4638
fi
4639
 
4640
fi
4641
 
4642
 
4643
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4644
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4645
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4646
See \`config.log' for more details." >&5
4647
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4648
See \`config.log' for more details." >&2;}
4649
   { (exit 1); exit 1; }; }; }
4650
 
4651
# Provide some information about the compiler.
4652
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4653
set X $ac_compile
4654
ac_compiler=$2
4655
{ (ac_try="$ac_compiler --version >&5"
4656
case "(($ac_try" in
4657
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4658
  *) ac_try_echo=$ac_try;;
4659
esac
4660
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4661
$as_echo "$ac_try_echo") >&5
4662
  (eval "$ac_compiler --version >&5") 2>&5
4663
  ac_status=$?
4664
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665
  (exit $ac_status); }
4666
{ (ac_try="$ac_compiler -v >&5"
4667
case "(($ac_try" in
4668
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669
  *) ac_try_echo=$ac_try;;
4670
esac
4671
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4672
$as_echo "$ac_try_echo") >&5
4673
  (eval "$ac_compiler -v >&5") 2>&5
4674
  ac_status=$?
4675
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676
  (exit $ac_status); }
4677
{ (ac_try="$ac_compiler -V >&5"
4678
case "(($ac_try" in
4679
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680
  *) ac_try_echo=$ac_try;;
4681
esac
4682
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4683
$as_echo "$ac_try_echo") >&5
4684
  (eval "$ac_compiler -V >&5") 2>&5
4685
  ac_status=$?
4686
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687
  (exit $ac_status); }
4688
 
4689
cat >conftest.$ac_ext <<_ACEOF
4690
/* confdefs.h.  */
4691
_ACEOF
4692
cat confdefs.h >>conftest.$ac_ext
4693
cat >>conftest.$ac_ext <<_ACEOF
4694
/* end confdefs.h.  */
4695
 
4696
int
4697
main ()
4698
{
4699
 
4700
  ;
4701
  return 0;
4702
}
4703
_ACEOF
4704
ac_clean_files_save=$ac_clean_files
4705
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4706
# Try to create an executable without -o first, disregard a.out.
4707
# It will help us diagnose broken compilers, and finding out an intuition
4708
# of exeext.
4709
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4710
$as_echo_n "checking for C compiler default output file name... " >&6; }
4711
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4712
 
4713
# The possible output files:
4714
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4715
 
4716
ac_rmfiles=
4717
for ac_file in $ac_files
4718
do
4719
  case $ac_file in
4720
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4721
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4722
  esac
4723
done
4724
rm -f $ac_rmfiles
4725
 
4726
if { (ac_try="$ac_link_default"
4727
case "(($ac_try" in
4728
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729
  *) ac_try_echo=$ac_try;;
4730
esac
4731
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4732
$as_echo "$ac_try_echo") >&5
4733
  (eval "$ac_link_default") 2>&5
4734
  ac_status=$?
4735
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736
  (exit $ac_status); }; then
4737
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4738
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4739
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4740
# so that the user can short-circuit this test for compilers unknown to
4741
# Autoconf.
4742
for ac_file in $ac_files ''
4743
do
4744
  test -f "$ac_file" || continue
4745
  case $ac_file in
4746
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4747
        ;;
4748
    [ab].out )
4749
        # We found the default executable, but exeext='' is most
4750
        # certainly right.
4751
        break;;
4752
    *.* )
4753
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4754
        then :; else
4755
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4756
        fi
4757
        # We set ac_cv_exeext here because the later test for it is not
4758
        # safe: cross compilers may not add the suffix if given an `-o'
4759
        # argument, so we may need to know it at that point already.
4760
        # Even if this section looks crufty: it has the advantage of
4761
        # actually working.
4762
        break;;
4763
    * )
4764
        break;;
4765
  esac
4766
done
4767
test "$ac_cv_exeext" = no && ac_cv_exeext=
4768
 
4769
else
4770
  ac_file=''
4771
fi
4772
 
4773
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
4774
$as_echo "$ac_file" >&6; }
4775
if test -z "$ac_file"; then
4776
  $as_echo "$as_me: failed program was:" >&5
4777
sed 's/^/| /' conftest.$ac_ext >&5
4778
 
4779
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4780
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4781
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
4782
See \`config.log' for more details." >&5
4783
$as_echo "$as_me: error: C compiler cannot create executables
4784
See \`config.log' for more details." >&2;}
4785
   { (exit 77); exit 77; }; }; }
4786
fi
4787
 
4788
ac_exeext=$ac_cv_exeext
4789
 
4790
# Check that the compiler produces executables we can run.  If not, either
4791
# the compiler is broken, or we cross compile.
4792
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4793
$as_echo_n "checking whether the C compiler works... " >&6; }
4794
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4795
# If not cross compiling, check that we can run a simple program.
4796
if test "$cross_compiling" != yes; then
4797
  if { ac_try='./$ac_file'
4798
  { (case "(($ac_try" in
4799
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4800
  *) ac_try_echo=$ac_try;;
4801
esac
4802
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4803
$as_echo "$ac_try_echo") >&5
4804
  (eval "$ac_try") 2>&5
4805
  ac_status=$?
4806
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807
  (exit $ac_status); }; }; then
4808
    cross_compiling=no
4809
  else
4810
    if test "$cross_compiling" = maybe; then
4811
        cross_compiling=yes
4812
    else
4813
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4814
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4815
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
4816
If you meant to cross compile, use \`--host'.
4817
See \`config.log' for more details." >&5
4818
$as_echo "$as_me: error: cannot run C compiled programs.
4819
If you meant to cross compile, use \`--host'.
4820
See \`config.log' for more details." >&2;}
4821
   { (exit 1); exit 1; }; }; }
4822
    fi
4823
  fi
4824
fi
4825
{ $as_echo "$as_me:$LINENO: result: yes" >&5
4826
$as_echo "yes" >&6; }
4827
 
4828
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4829
ac_clean_files=$ac_clean_files_save
4830
# Check that the compiler produces executables we can run.  If not, either
4831
# the compiler is broken, or we cross compile.
4832
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4833
$as_echo_n "checking whether we are cross compiling... " >&6; }
4834
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
4835
$as_echo "$cross_compiling" >&6; }
4836
 
4837
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
4838
$as_echo_n "checking for suffix of executables... " >&6; }
4839
if { (ac_try="$ac_link"
4840
case "(($ac_try" in
4841
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842
  *) ac_try_echo=$ac_try;;
4843
esac
4844
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4845
$as_echo "$ac_try_echo") >&5
4846
  (eval "$ac_link") 2>&5
4847
  ac_status=$?
4848
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849
  (exit $ac_status); }; then
4850
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4851
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4852
# work properly (i.e., refer to `conftest.exe'), while it won't with
4853
# `rm'.
4854
for ac_file in conftest.exe conftest conftest.*; do
4855
  test -f "$ac_file" || continue
4856
  case $ac_file in
4857
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4858
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4859
          break;;
4860
    * ) break;;
4861
  esac
4862
done
4863
else
4864
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4865
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4866
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4867
See \`config.log' for more details." >&5
4868
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4869
See \`config.log' for more details." >&2;}
4870
   { (exit 1); exit 1; }; }; }
4871
fi
4872
 
4873
rm -f conftest$ac_cv_exeext
4874
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4875
$as_echo "$ac_cv_exeext" >&6; }
4876
 
4877
rm -f conftest.$ac_ext
4878
EXEEXT=$ac_cv_exeext
4879
ac_exeext=$EXEEXT
4880
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
4881
$as_echo_n "checking for suffix of object files... " >&6; }
4882
if test "${ac_cv_objext+set}" = set; then
4883
  $as_echo_n "(cached) " >&6
4884
else
4885
  cat >conftest.$ac_ext <<_ACEOF
4886
/* confdefs.h.  */
4887
_ACEOF
4888
cat confdefs.h >>conftest.$ac_ext
4889
cat >>conftest.$ac_ext <<_ACEOF
4890
/* end confdefs.h.  */
4891
 
4892
int
4893
main ()
4894
{
4895
 
4896
  ;
4897
  return 0;
4898
}
4899
_ACEOF
4900
rm -f conftest.o conftest.obj
4901
if { (ac_try="$ac_compile"
4902
case "(($ac_try" in
4903
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904
  *) ac_try_echo=$ac_try;;
4905
esac
4906
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4907
$as_echo "$ac_try_echo") >&5
4908
  (eval "$ac_compile") 2>&5
4909
  ac_status=$?
4910
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911
  (exit $ac_status); }; then
4912
  for ac_file in conftest.o conftest.obj conftest.*; do
4913
  test -f "$ac_file" || continue;
4914
  case $ac_file in
4915
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4916
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4917
       break;;
4918
  esac
4919
done
4920
else
4921
  $as_echo "$as_me: failed program was:" >&5
4922
sed 's/^/| /' conftest.$ac_ext >&5
4923
 
4924
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4925
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4926
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4927
See \`config.log' for more details." >&5
4928
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
4929
See \`config.log' for more details." >&2;}
4930
   { (exit 1); exit 1; }; }; }
4931
fi
4932
 
4933
rm -f conftest.$ac_cv_objext conftest.$ac_ext
4934
fi
4935
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4936
$as_echo "$ac_cv_objext" >&6; }
4937
OBJEXT=$ac_cv_objext
4938
ac_objext=$OBJEXT
4939
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4940
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4941
if test "${ac_cv_c_compiler_gnu+set}" = set; then
4942
  $as_echo_n "(cached) " >&6
4943
else
4944
  cat >conftest.$ac_ext <<_ACEOF
4945
/* confdefs.h.  */
4946
_ACEOF
4947
cat confdefs.h >>conftest.$ac_ext
4948
cat >>conftest.$ac_ext <<_ACEOF
4949
/* end confdefs.h.  */
4950
 
4951
int
4952
main ()
4953
{
4954
#ifndef __GNUC__
4955
       choke me
4956
#endif
4957
 
4958
  ;
4959
  return 0;
4960
}
4961
_ACEOF
4962
rm -f conftest.$ac_objext
4963
if { (ac_try="$ac_compile"
4964
case "(($ac_try" in
4965
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4966
  *) ac_try_echo=$ac_try;;
4967
esac
4968
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4969
$as_echo "$ac_try_echo") >&5
4970
  (eval "$ac_compile") 2>conftest.er1
4971
  ac_status=$?
4972
  grep -v '^ *+' conftest.er1 >conftest.err
4973
  rm -f conftest.er1
4974
  cat conftest.err >&5
4975
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976
  (exit $ac_status); } && {
4977
         test -z "$ac_c_werror_flag" ||
4978
         test ! -s conftest.err
4979
       } && test -s conftest.$ac_objext; then
4980
  ac_compiler_gnu=yes
4981
else
4982
  $as_echo "$as_me: failed program was:" >&5
4983
sed 's/^/| /' conftest.$ac_ext >&5
4984
 
4985
        ac_compiler_gnu=no
4986
fi
4987
 
4988
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4989
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4990
 
4991
fi
4992
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4993
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4994
if test $ac_compiler_gnu = yes; then
4995
  GCC=yes
4996
else
4997
  GCC=
4998
fi
4999
ac_test_CFLAGS=${CFLAGS+set}
5000
ac_save_CFLAGS=$CFLAGS
5001
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5002
$as_echo_n "checking whether $CC accepts -g... " >&6; }
5003
if test "${ac_cv_prog_cc_g+set}" = set; then
5004
  $as_echo_n "(cached) " >&6
5005
else
5006
  ac_save_c_werror_flag=$ac_c_werror_flag
5007
   ac_c_werror_flag=yes
5008
   ac_cv_prog_cc_g=no
5009
   CFLAGS="-g"
5010
   cat >conftest.$ac_ext <<_ACEOF
5011
/* confdefs.h.  */
5012
_ACEOF
5013
cat confdefs.h >>conftest.$ac_ext
5014
cat >>conftest.$ac_ext <<_ACEOF
5015
/* end confdefs.h.  */
5016
 
5017
int
5018
main ()
5019
{
5020
 
5021
  ;
5022
  return 0;
5023
}
5024
_ACEOF
5025
rm -f conftest.$ac_objext
5026
if { (ac_try="$ac_compile"
5027
case "(($ac_try" in
5028
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5029
  *) ac_try_echo=$ac_try;;
5030
esac
5031
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5032
$as_echo "$ac_try_echo") >&5
5033
  (eval "$ac_compile") 2>conftest.er1
5034
  ac_status=$?
5035
  grep -v '^ *+' conftest.er1 >conftest.err
5036
  rm -f conftest.er1
5037
  cat conftest.err >&5
5038
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039
  (exit $ac_status); } && {
5040
         test -z "$ac_c_werror_flag" ||
5041
         test ! -s conftest.err
5042
       } && test -s conftest.$ac_objext; then
5043
  ac_cv_prog_cc_g=yes
5044
else
5045
  $as_echo "$as_me: failed program was:" >&5
5046
sed 's/^/| /' conftest.$ac_ext >&5
5047
 
5048
        CFLAGS=""
5049
      cat >conftest.$ac_ext <<_ACEOF
5050
/* confdefs.h.  */
5051
_ACEOF
5052
cat confdefs.h >>conftest.$ac_ext
5053
cat >>conftest.$ac_ext <<_ACEOF
5054
/* end confdefs.h.  */
5055
 
5056
int
5057
main ()
5058
{
5059
 
5060
  ;
5061
  return 0;
5062
}
5063
_ACEOF
5064
rm -f conftest.$ac_objext
5065
if { (ac_try="$ac_compile"
5066
case "(($ac_try" in
5067
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5068
  *) ac_try_echo=$ac_try;;
5069
esac
5070
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5071
$as_echo "$ac_try_echo") >&5
5072
  (eval "$ac_compile") 2>conftest.er1
5073
  ac_status=$?
5074
  grep -v '^ *+' conftest.er1 >conftest.err
5075
  rm -f conftest.er1
5076
  cat conftest.err >&5
5077
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078
  (exit $ac_status); } && {
5079
         test -z "$ac_c_werror_flag" ||
5080
         test ! -s conftest.err
5081
       } && test -s conftest.$ac_objext; then
5082
  :
5083
else
5084
  $as_echo "$as_me: failed program was:" >&5
5085
sed 's/^/| /' conftest.$ac_ext >&5
5086
 
5087
        ac_c_werror_flag=$ac_save_c_werror_flag
5088
         CFLAGS="-g"
5089
         cat >conftest.$ac_ext <<_ACEOF
5090
/* confdefs.h.  */
5091
_ACEOF
5092
cat confdefs.h >>conftest.$ac_ext
5093
cat >>conftest.$ac_ext <<_ACEOF
5094
/* end confdefs.h.  */
5095
 
5096
int
5097
main ()
5098
{
5099
 
5100
  ;
5101
  return 0;
5102
}
5103
_ACEOF
5104
rm -f conftest.$ac_objext
5105
if { (ac_try="$ac_compile"
5106
case "(($ac_try" in
5107
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108
  *) ac_try_echo=$ac_try;;
5109
esac
5110
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5111
$as_echo "$ac_try_echo") >&5
5112
  (eval "$ac_compile") 2>conftest.er1
5113
  ac_status=$?
5114
  grep -v '^ *+' conftest.er1 >conftest.err
5115
  rm -f conftest.er1
5116
  cat conftest.err >&5
5117
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118
  (exit $ac_status); } && {
5119
         test -z "$ac_c_werror_flag" ||
5120
         test ! -s conftest.err
5121
       } && test -s conftest.$ac_objext; then
5122
  ac_cv_prog_cc_g=yes
5123
else
5124
  $as_echo "$as_me: failed program was:" >&5
5125
sed 's/^/| /' conftest.$ac_ext >&5
5126
 
5127
 
5128
fi
5129
 
5130
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5131
fi
5132
 
5133
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5134
fi
5135
 
5136
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5137
   ac_c_werror_flag=$ac_save_c_werror_flag
5138
fi
5139
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5140
$as_echo "$ac_cv_prog_cc_g" >&6; }
5141
if test "$ac_test_CFLAGS" = set; then
5142
  CFLAGS=$ac_save_CFLAGS
5143
elif test $ac_cv_prog_cc_g = yes; then
5144
  if test "$GCC" = yes; then
5145
    CFLAGS="-g -O2"
5146
  else
5147
    CFLAGS="-g"
5148
  fi
5149
else
5150
  if test "$GCC" = yes; then
5151
    CFLAGS="-O2"
5152
  else
5153
    CFLAGS=
5154
  fi
5155
fi
5156
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5157
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5158
if test "${ac_cv_prog_cc_c89+set}" = set; then
5159
  $as_echo_n "(cached) " >&6
5160
else
5161
  ac_cv_prog_cc_c89=no
5162
ac_save_CC=$CC
5163
cat >conftest.$ac_ext <<_ACEOF
5164
/* confdefs.h.  */
5165
_ACEOF
5166
cat confdefs.h >>conftest.$ac_ext
5167
cat >>conftest.$ac_ext <<_ACEOF
5168
/* end confdefs.h.  */
5169
#include 
5170
#include 
5171
#include 
5172
#include 
5173
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5174
struct buf { int x; };
5175
FILE * (*rcsopen) (struct buf *, struct stat *, int);
5176
static char *e (p, i)
5177
     char **p;
5178
     int i;
5179
{
5180
  return p[i];
5181
}
5182
static char *f (char * (*g) (char **, int), char **p, ...)
5183
{
5184
  char *s;
5185
  va_list v;
5186
  va_start (v,p);
5187
  s = g (p, va_arg (v,int));
5188
  va_end (v);
5189
  return s;
5190
}
5191
 
5192
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5193
   function prototypes and stuff, but not '\xHH' hex character constants.
5194
   These don't provoke an error unfortunately, instead are silently treated
5195
   as 'x'.  The following induces an error, until -std is added to get
5196
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5197
   array size at least.  It's necessary to write '\x00'==0 to get something
5198
   that's true only with -std.  */
5199
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5200
 
5201
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5202
   inside strings and character constants.  */
5203
#define FOO(x) 'x'
5204
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5205
 
5206
int test (int i, double x);
5207
struct s1 {int (*f) (int a);};
5208
struct s2 {int (*f) (double a);};
5209
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5210
int argc;
5211
char **argv;
5212
int
5213
main ()
5214
{
5215
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5216
  ;
5217
  return 0;
5218
}
5219
_ACEOF
5220
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5221
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5222
do
5223
  CC="$ac_save_CC $ac_arg"
5224
  rm -f conftest.$ac_objext
5225
if { (ac_try="$ac_compile"
5226
case "(($ac_try" in
5227
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228
  *) ac_try_echo=$ac_try;;
5229
esac
5230
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5231
$as_echo "$ac_try_echo") >&5
5232
  (eval "$ac_compile") 2>conftest.er1
5233
  ac_status=$?
5234
  grep -v '^ *+' conftest.er1 >conftest.err
5235
  rm -f conftest.er1
5236
  cat conftest.err >&5
5237
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238
  (exit $ac_status); } && {
5239
         test -z "$ac_c_werror_flag" ||
5240
         test ! -s conftest.err
5241
       } && test -s conftest.$ac_objext; then
5242
  ac_cv_prog_cc_c89=$ac_arg
5243
else
5244
  $as_echo "$as_me: failed program was:" >&5
5245
sed 's/^/| /' conftest.$ac_ext >&5
5246
 
5247
 
5248
fi
5249
 
5250
rm -f core conftest.err conftest.$ac_objext
5251
  test "x$ac_cv_prog_cc_c89" != "xno" && break
5252
done
5253
rm -f conftest.$ac_ext
5254
CC=$ac_save_CC
5255
 
5256
fi
5257
# AC_CACHE_VAL
5258
case "x$ac_cv_prog_cc_c89" in
5259
  x)
5260
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
5261
$as_echo "none needed" >&6; } ;;
5262
  xno)
5263
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5264
$as_echo "unsupported" >&6; } ;;
5265
  *)
5266
    CC="$CC $ac_cv_prog_cc_c89"
5267
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5268
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5269
esac
5270
 
5271
 
5272
ac_ext=c
5273
ac_cpp='$CPP $CPPFLAGS'
5274
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5275
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5276
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5277
 
5278
depcc="$CC"   am_compiler_list=
5279
 
5280
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5281
$as_echo_n "checking dependency style of $depcc... " >&6; }
5282
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5283
  $as_echo_n "(cached) " >&6
5284
else
5285
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5286
  # We make a subdir and do the tests there.  Otherwise we can end up
5287
  # making bogus files that we don't know about and never remove.  For
5288
  # instance it was reported that on HP-UX the gcc test will end up
5289
  # making a dummy file named `D' -- because `-MD' means `put the output
5290
  # in D'.
5291
  mkdir conftest.dir
5292
  # Copy depcomp to subdir because otherwise we won't find it if we're
5293
  # using a relative directory.
5294
  cp "$am_depcomp" conftest.dir
5295
  cd conftest.dir
5296
  # We will build objects and dependencies in a subdirectory because
5297
  # it helps to detect inapplicable dependency modes.  For instance
5298
  # both Tru64's cc and ICC support -MD to output dependencies as a
5299
  # side effect of compilation, but ICC will put the dependencies in
5300
  # the current directory while Tru64 will put them in the object
5301
  # directory.
5302
  mkdir sub
5303
 
5304
  am_cv_CC_dependencies_compiler_type=none
5305
  if test "$am_compiler_list" = ""; then
5306
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5307
  fi
5308
  am__universal=false
5309
  case " $depcc " in #(
5310
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5311
     esac
5312
 
5313
  for depmode in $am_compiler_list; do
5314
    # Setup a source with many dependencies, because some compilers
5315
    # like to wrap large dependency lists on column 80 (with \), and
5316
    # we should not choose a depcomp mode which is confused by this.
5317
    #
5318
    # We need to recreate these files for each test, as the compiler may
5319
    # overwrite some of them when testing with obscure command lines.
5320
    # This happens at least with the AIX C compiler.
5321
    : > sub/conftest.c
5322
    for i in 1 2 3 4 5 6; do
5323
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5324
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5325
      # Solaris 8's {/usr,}/bin/sh.
5326
      touch sub/conftst$i.h
5327
    done
5328
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5329
 
5330
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5331
    # mode.  It turns out that the SunPro C++ compiler does not properly
5332
    # handle `-M -o', and we need to detect this.  Also, some Intel
5333
    # versions had trouble with output in subdirs
5334
    am__obj=sub/conftest.${OBJEXT-o}
5335
    am__minus_obj="-o $am__obj"
5336
    case $depmode in
5337
    gcc)
5338
      # This depmode causes a compiler race in universal mode.
5339
      test "$am__universal" = false || continue
5340
      ;;
5341
    nosideeffect)
5342
      # after this tag, mechanisms are not by side-effect, so they'll
5343
      # only be used when explicitly requested
5344
      if test "x$enable_dependency_tracking" = xyes; then
5345
        continue
5346
      else
5347
        break
5348
      fi
5349
      ;;
5350
    msvisualcpp | msvcmsys)
5351
      # This compiler won't grok `-c -o', but also, the minuso test has
5352
      # not run yet.  These depmodes are late enough in the game, and
5353
      # so weak that their functioning should not be impacted.
5354
      am__obj=conftest.${OBJEXT-o}
5355
      am__minus_obj=
5356
      ;;
5357
    none) break ;;
5358
    esac
5359
    if depmode=$depmode \
5360
       source=sub/conftest.c object=$am__obj \
5361
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5362
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5363
         >/dev/null 2>conftest.err &&
5364
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5365
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5366
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5367
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5368
      # icc doesn't choke on unknown options, it will just issue warnings
5369
      # or remarks (even with -Werror).  So we grep stderr for any message
5370
      # that says an option was ignored or not supported.
5371
      # When given -MP, icc 7.0 and 7.1 complain thusly:
5372
      #   icc: Command line warning: ignoring option '-M'; no argument required
5373
      # The diagnosis changed in icc 8.0:
5374
      #   icc: Command line remark: option '-MP' not supported
5375
      if (grep 'ignoring option' conftest.err ||
5376
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5377
        am_cv_CC_dependencies_compiler_type=$depmode
5378
        break
5379
      fi
5380
    fi
5381
  done
5382
 
5383
  cd ..
5384
  rm -rf conftest.dir
5385
else
5386
  am_cv_CC_dependencies_compiler_type=none
5387
fi
5388
 
5389
fi
5390
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5391
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5392
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5393
 
5394
 if
5395
  test "x$enable_dependency_tracking" != xno \
5396
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5397
  am__fastdepCC_TRUE=
5398
  am__fastdepCC_FALSE='#'
5399
else
5400
  am__fastdepCC_TRUE='#'
5401
  am__fastdepCC_FALSE=
5402
fi
5403
 
5404
 
5405
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5406
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5407
if test "${ac_cv_path_GREP+set}" = set; then
5408
  $as_echo_n "(cached) " >&6
5409
else
5410
  if test -z "$GREP"; then
5411
  ac_path_GREP_found=false
5412
  # Loop through the user's path and test for each of PROGNAME-LIST
5413
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5415
do
5416
  IFS=$as_save_IFS
5417
  test -z "$as_dir" && as_dir=.
5418
  for ac_prog in grep ggrep; do
5419
    for ac_exec_ext in '' $ac_executable_extensions; do
5420
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5421
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5422
# Check for GNU ac_path_GREP and select it if it is found.
5423
  # Check for GNU $ac_path_GREP
5424
case `"$ac_path_GREP" --version 2>&1` in
5425
*GNU*)
5426
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5427
*)
5428
  ac_count=0
5429
  $as_echo_n 0123456789 >"conftest.in"
5430
  while :
5431
  do
5432
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5433
    mv "conftest.tmp" "conftest.in"
5434
    cp "conftest.in" "conftest.nl"
5435
    $as_echo 'GREP' >> "conftest.nl"
5436
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5437
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5438
    ac_count=`expr $ac_count + 1`
5439
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5440
      # Best one so far, save it but keep looking for a better one
5441
      ac_cv_path_GREP="$ac_path_GREP"
5442
      ac_path_GREP_max=$ac_count
5443
    fi
5444
    # 10*(2^10) chars as input seems more than enough
5445
    test $ac_count -gt 10 && break
5446
  done
5447
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5448
esac
5449
 
5450
      $ac_path_GREP_found && break 3
5451
    done
5452
  done
5453
done
5454
IFS=$as_save_IFS
5455
  if test -z "$ac_cv_path_GREP"; then
5456
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5457
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5458
   { (exit 1); exit 1; }; }
5459
  fi
5460
else
5461
  ac_cv_path_GREP=$GREP
5462
fi
5463
 
5464
fi
5465
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5466
$as_echo "$ac_cv_path_GREP" >&6; }
5467
 GREP="$ac_cv_path_GREP"
5468
 
5469
 
5470
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
5471
$as_echo_n "checking for egrep... " >&6; }
5472
if test "${ac_cv_path_EGREP+set}" = set; then
5473
  $as_echo_n "(cached) " >&6
5474
else
5475
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5476
   then ac_cv_path_EGREP="$GREP -E"
5477
   else
5478
     if test -z "$EGREP"; then
5479
  ac_path_EGREP_found=false
5480
  # Loop through the user's path and test for each of PROGNAME-LIST
5481
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5483
do
5484
  IFS=$as_save_IFS
5485
  test -z "$as_dir" && as_dir=.
5486
  for ac_prog in egrep; do
5487
    for ac_exec_ext in '' $ac_executable_extensions; do
5488
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5489
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5490
# Check for GNU ac_path_EGREP and select it if it is found.
5491
  # Check for GNU $ac_path_EGREP
5492
case `"$ac_path_EGREP" --version 2>&1` in
5493
*GNU*)
5494
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5495
*)
5496
  ac_count=0
5497
  $as_echo_n 0123456789 >"conftest.in"
5498
  while :
5499
  do
5500
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5501
    mv "conftest.tmp" "conftest.in"
5502
    cp "conftest.in" "conftest.nl"
5503
    $as_echo 'EGREP' >> "conftest.nl"
5504
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5505
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5506
    ac_count=`expr $ac_count + 1`
5507
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5508
      # Best one so far, save it but keep looking for a better one
5509
      ac_cv_path_EGREP="$ac_path_EGREP"
5510
      ac_path_EGREP_max=$ac_count
5511
    fi
5512
    # 10*(2^10) chars as input seems more than enough
5513
    test $ac_count -gt 10 && break
5514
  done
5515
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5516
esac
5517
 
5518
      $ac_path_EGREP_found && break 3
5519
    done
5520
  done
5521
done
5522
IFS=$as_save_IFS
5523
  if test -z "$ac_cv_path_EGREP"; then
5524
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5525
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5526
   { (exit 1); exit 1; }; }
5527
  fi
5528
else
5529
  ac_cv_path_EGREP=$EGREP
5530
fi
5531
 
5532
   fi
5533
fi
5534
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5535
$as_echo "$ac_cv_path_EGREP" >&6; }
5536
 EGREP="$ac_cv_path_EGREP"
5537
 
5538
 
5539
{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5540
$as_echo_n "checking for fgrep... " >&6; }
5541
if test "${ac_cv_path_FGREP+set}" = set; then
5542
  $as_echo_n "(cached) " >&6
5543
else
5544
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5545
   then ac_cv_path_FGREP="$GREP -F"
5546
   else
5547
     if test -z "$FGREP"; then
5548
  ac_path_FGREP_found=false
5549
  # Loop through the user's path and test for each of PROGNAME-LIST
5550
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5552
do
5553
  IFS=$as_save_IFS
5554
  test -z "$as_dir" && as_dir=.
5555
  for ac_prog in fgrep; do
5556
    for ac_exec_ext in '' $ac_executable_extensions; do
5557
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5558
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5559
# Check for GNU ac_path_FGREP and select it if it is found.
5560
  # Check for GNU $ac_path_FGREP
5561
case `"$ac_path_FGREP" --version 2>&1` in
5562
*GNU*)
5563
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5564
*)
5565
  ac_count=0
5566
  $as_echo_n 0123456789 >"conftest.in"
5567
  while :
5568
  do
5569
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5570
    mv "conftest.tmp" "conftest.in"
5571
    cp "conftest.in" "conftest.nl"
5572
    $as_echo 'FGREP' >> "conftest.nl"
5573
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5574
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5575
    ac_count=`expr $ac_count + 1`
5576
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5577
      # Best one so far, save it but keep looking for a better one
5578
      ac_cv_path_FGREP="$ac_path_FGREP"
5579
      ac_path_FGREP_max=$ac_count
5580
    fi
5581
    # 10*(2^10) chars as input seems more than enough
5582
    test $ac_count -gt 10 && break
5583
  done
5584
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5585
esac
5586
 
5587
      $ac_path_FGREP_found && break 3
5588
    done
5589
  done
5590
done
5591
IFS=$as_save_IFS
5592
  if test -z "$ac_cv_path_FGREP"; then
5593
    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5594
$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5595
   { (exit 1); exit 1; }; }
5596
  fi
5597
else
5598
  ac_cv_path_FGREP=$FGREP
5599
fi
5600
 
5601
   fi
5602
fi
5603
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5604
$as_echo "$ac_cv_path_FGREP" >&6; }
5605
 FGREP="$ac_cv_path_FGREP"
5606
 
5607
 
5608
test -z "$GREP" && GREP=grep
5609
 
5610
 
5611
 
5612
 
5613
 
5614
 
5615
 
5616
 
5617
 
5618
 
5619
 
5620
 
5621
 
5622
 
5623
 
5624
 
5625
 
5626
 
5627
 
5628
# Check whether --with-gnu-ld was given.
5629
if test "${with_gnu_ld+set}" = set; then
5630
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5631
else
5632
  with_gnu_ld=no
5633
fi
5634
 
5635
ac_prog=ld
5636
if test "$GCC" = yes; then
5637
  # Check if gcc -print-prog-name=ld gives a path.
5638
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5639
$as_echo_n "checking for ld used by $CC... " >&6; }
5640
  case $host in
5641
  *-*-mingw*)
5642
    # gcc leaves a trailing carriage return which upsets mingw
5643
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5644
  *)
5645
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5646
  esac
5647
  case $ac_prog in
5648
    # Accept absolute paths.
5649
    [\\/]* | ?:[\\/]*)
5650
      re_direlt='/[^/][^/]*/\.\./'
5651
      # Canonicalize the pathname of ld
5652
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5653
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5654
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5655
      done
5656
      test -z "$LD" && LD="$ac_prog"
5657
      ;;
5658
  "")
5659
    # If it fails, then pretend we aren't using GCC.
5660
    ac_prog=ld
5661
    ;;
5662
  *)
5663
    # If it is relative, then search for the first ld in PATH.
5664
    with_gnu_ld=unknown
5665
    ;;
5666
  esac
5667
elif test "$with_gnu_ld" = yes; then
5668
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5669
$as_echo_n "checking for GNU ld... " >&6; }
5670
else
5671
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5672
$as_echo_n "checking for non-GNU ld... " >&6; }
5673
fi
5674
if test "${lt_cv_path_LD+set}" = set; then
5675
  $as_echo_n "(cached) " >&6
5676
else
5677
  if test -z "$LD"; then
5678
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5679
  for ac_dir in $PATH; do
5680
    IFS="$lt_save_ifs"
5681
    test -z "$ac_dir" && ac_dir=.
5682
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5683
      lt_cv_path_LD="$ac_dir/$ac_prog"
5684
      # Check to see if the program is GNU ld.  I'd rather use --version,
5685
      # but apparently some variants of GNU ld only accept -v.
5686
      # Break only if it was the GNU/non-GNU ld that we prefer.
5687
      case `"$lt_cv_path_LD" -v 2>&1 
5688
      *GNU* | *'with BFD'*)
5689
        test "$with_gnu_ld" != no && break
5690
        ;;
5691
      *)
5692
        test "$with_gnu_ld" != yes && break
5693
        ;;
5694
      esac
5695
    fi
5696
  done
5697
  IFS="$lt_save_ifs"
5698
else
5699
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5700
fi
5701
fi
5702
 
5703
LD="$lt_cv_path_LD"
5704
if test -n "$LD"; then
5705
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
5706
$as_echo "$LD" >&6; }
5707
else
5708
  { $as_echo "$as_me:$LINENO: result: no" >&5
5709
$as_echo "no" >&6; }
5710
fi
5711
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5712
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5713
   { (exit 1); exit 1; }; }
5714
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5715
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5716
if test "${lt_cv_prog_gnu_ld+set}" = set; then
5717
  $as_echo_n "(cached) " >&6
5718
else
5719
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5720
case `$LD -v 2>&1 
5721
*GNU* | *'with BFD'*)
5722
  lt_cv_prog_gnu_ld=yes
5723
  ;;
5724
*)
5725
  lt_cv_prog_gnu_ld=no
5726
  ;;
5727
esac
5728
fi
5729
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5730
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5731
with_gnu_ld=$lt_cv_prog_gnu_ld
5732
 
5733
 
5734
 
5735
 
5736
 
5737
 
5738
 
5739
 
5740
 
5741
{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5742
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5743
if test "${lt_cv_path_NM+set}" = set; then
5744
  $as_echo_n "(cached) " >&6
5745
else
5746
  if test -n "$NM"; then
5747
  # Let the user override the test.
5748
  lt_cv_path_NM="$NM"
5749
else
5750
  lt_nm_to_check="${ac_tool_prefix}nm"
5751
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5752
    lt_nm_to_check="$lt_nm_to_check nm"
5753
  fi
5754
  for lt_tmp_nm in $lt_nm_to_check; do
5755
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5756
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5757
      IFS="$lt_save_ifs"
5758
      test -z "$ac_dir" && ac_dir=.
5759
      tmp_nm="$ac_dir/$lt_tmp_nm"
5760
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5761
        # Check to see if the nm accepts a BSD-compat flag.
5762
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5763
        #   nm: unknown option "B" ignored
5764
        # Tru64's nm complains that /dev/null is an invalid object file
5765
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5766
        */dev/null* | *'Invalid file or object type'*)
5767
          lt_cv_path_NM="$tmp_nm -B"
5768
          break
5769
          ;;
5770
        *)
5771
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5772
          */dev/null*)
5773
            lt_cv_path_NM="$tmp_nm -p"
5774
            break
5775
            ;;
5776
          *)
5777
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5778
            continue # so that we can try to find one that supports BSD flags
5779
            ;;
5780
          esac
5781
          ;;
5782
        esac
5783
      fi
5784
    done
5785
    IFS="$lt_save_ifs"
5786
  done
5787
  : ${lt_cv_path_NM=no}
5788
fi
5789
fi
5790
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5791
$as_echo "$lt_cv_path_NM" >&6; }
5792
if test "$lt_cv_path_NM" != "no"; then
5793
  NM="$lt_cv_path_NM"
5794
else
5795
  # Didn't find any BSD compatible name lister, look for dumpbin.
5796
  if test -n "$ac_tool_prefix"; then
5797
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5798
  do
5799
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5800
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5801
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5802
$as_echo_n "checking for $ac_word... " >&6; }
5803
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5804
  $as_echo_n "(cached) " >&6
5805
else
5806
  if test -n "$DUMPBIN"; then
5807
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5808
else
5809
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810
for as_dir in $PATH
5811
do
5812
  IFS=$as_save_IFS
5813
  test -z "$as_dir" && as_dir=.
5814
  for ac_exec_ext in '' $ac_executable_extensions; do
5815
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5816
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5817
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5818
    break 2
5819
  fi
5820
done
5821
done
5822
IFS=$as_save_IFS
5823
 
5824
fi
5825
fi
5826
DUMPBIN=$ac_cv_prog_DUMPBIN
5827
if test -n "$DUMPBIN"; then
5828
  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5829
$as_echo "$DUMPBIN" >&6; }
5830
else
5831
  { $as_echo "$as_me:$LINENO: result: no" >&5
5832
$as_echo "no" >&6; }
5833
fi
5834
 
5835
 
5836
    test -n "$DUMPBIN" && break
5837
  done
5838
fi
5839
if test -z "$DUMPBIN"; then
5840
  ac_ct_DUMPBIN=$DUMPBIN
5841
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5842
do
5843
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5844
set dummy $ac_prog; ac_word=$2
5845
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5846
$as_echo_n "checking for $ac_word... " >&6; }
5847
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5848
  $as_echo_n "(cached) " >&6
5849
else
5850
  if test -n "$ac_ct_DUMPBIN"; then
5851
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5852
else
5853
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854
for as_dir in $PATH
5855
do
5856
  IFS=$as_save_IFS
5857
  test -z "$as_dir" && as_dir=.
5858
  for ac_exec_ext in '' $ac_executable_extensions; do
5859
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5860
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5861
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5862
    break 2
5863
  fi
5864
done
5865
done
5866
IFS=$as_save_IFS
5867
 
5868
fi
5869
fi
5870
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5871
if test -n "$ac_ct_DUMPBIN"; then
5872
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5873
$as_echo "$ac_ct_DUMPBIN" >&6; }
5874
else
5875
  { $as_echo "$as_me:$LINENO: result: no" >&5
5876
$as_echo "no" >&6; }
5877
fi
5878
 
5879
 
5880
  test -n "$ac_ct_DUMPBIN" && break
5881
done
5882
 
5883
  if test "x$ac_ct_DUMPBIN" = x; then
5884
    DUMPBIN=":"
5885
  else
5886
    case $cross_compiling:$ac_tool_warned in
5887
yes:)
5888
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5889
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5890
ac_tool_warned=yes ;;
5891
esac
5892
    DUMPBIN=$ac_ct_DUMPBIN
5893
  fi
5894
fi
5895
 
5896
 
5897
  if test "$DUMPBIN" != ":"; then
5898
    NM="$DUMPBIN"
5899
  fi
5900
fi
5901
test -z "$NM" && NM=nm
5902
 
5903
 
5904
 
5905
 
5906
 
5907
 
5908
{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5909
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5910
if test "${lt_cv_nm_interface+set}" = set; then
5911
  $as_echo_n "(cached) " >&6
5912
else
5913
  lt_cv_nm_interface="BSD nm"
5914
  echo "int some_variable = 0;" > conftest.$ac_ext
5915
  (eval echo "\"\$as_me:5915: $ac_compile\"" >&5)
5916
  (eval "$ac_compile" 2>conftest.err)
5917
  cat conftest.err >&5
5918
  (eval echo "\"\$as_me:5918: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5919
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5920
  cat conftest.err >&5
5921
  (eval echo "\"\$as_me:5921: output\"" >&5)
5922
  cat conftest.out >&5
5923
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5924
    lt_cv_nm_interface="MS dumpbin"
5925
  fi
5926
  rm -f conftest*
5927
fi
5928
{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5929
$as_echo "$lt_cv_nm_interface" >&6; }
5930
 
5931
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5932
$as_echo_n "checking whether ln -s works... " >&6; }
5933
LN_S=$as_ln_s
5934
if test "$LN_S" = "ln -s"; then
5935
  { $as_echo "$as_me:$LINENO: result: yes" >&5
5936
$as_echo "yes" >&6; }
5937
else
5938
  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5939
$as_echo "no, using $LN_S" >&6; }
5940
fi
5941
 
5942
# find the maximum length of command line arguments
5943
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5944
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5945
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5946
  $as_echo_n "(cached) " >&6
5947
else
5948
    i=0
5949
  teststring="ABCD"
5950
 
5951
  case $build_os in
5952
  msdosdjgpp*)
5953
    # On DJGPP, this test can blow up pretty badly due to problems in libc
5954
    # (any single argument exceeding 2000 bytes causes a buffer overrun
5955
    # during glob expansion).  Even if it were fixed, the result of this
5956
    # check would be larger than it should be.
5957
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5958
    ;;
5959
 
5960
  gnu*)
5961
    # Under GNU Hurd, this test is not required because there is
5962
    # no limit to the length of command line arguments.
5963
    # Libtool will interpret -1 as no limit whatsoever
5964
    lt_cv_sys_max_cmd_len=-1;
5965
    ;;
5966
 
5967
  cygwin* | mingw* | cegcc*)
5968
    # On Win9x/ME, this test blows up -- it succeeds, but takes
5969
    # about 5 minutes as the teststring grows exponentially.
5970
    # Worse, since 9x/ME are not pre-emptively multitasking,
5971
    # you end up with a "frozen" computer, even though with patience
5972
    # the test eventually succeeds (with a max line length of 256k).
5973
    # Instead, let's just punt: use the minimum linelength reported by
5974
    # all of the supported platforms: 8192 (on NT/2K/XP).
5975
    lt_cv_sys_max_cmd_len=8192;
5976
    ;;
5977
 
5978
  amigaos*)
5979
    # On AmigaOS with pdksh, this test takes hours, literally.
5980
    # So we just punt and use a minimum line length of 8192.
5981
    lt_cv_sys_max_cmd_len=8192;
5982
    ;;
5983
 
5984
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5985
    # This has been around since 386BSD, at least.  Likely further.
5986
    if test -x /sbin/sysctl; then
5987
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5988
    elif test -x /usr/sbin/sysctl; then
5989
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5990
    else
5991
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5992
    fi
5993
    # And add a safety zone
5994
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5995
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5996
    ;;
5997
 
5998
  interix*)
5999
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6000
    lt_cv_sys_max_cmd_len=196608
6001
    ;;
6002
 
6003
  osf*)
6004
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6005
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6006
    # nice to cause kernel panics so lets avoid the loop below.
6007
    # First set a reasonable default.
6008
    lt_cv_sys_max_cmd_len=16384
6009
    #
6010
    if test -x /sbin/sysconfig; then
6011
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6012
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6013
      esac
6014
    fi
6015
    ;;
6016
  sco3.2v5*)
6017
    lt_cv_sys_max_cmd_len=102400
6018
    ;;
6019
  sysv5* | sco5v6* | sysv4.2uw2*)
6020
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6021
    if test -n "$kargmax"; then
6022
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6023
    else
6024
      lt_cv_sys_max_cmd_len=32768
6025
    fi
6026
    ;;
6027
  *)
6028
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6029
    if test -n "$lt_cv_sys_max_cmd_len"; then
6030
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6031
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6032
    else
6033
      # Make teststring a little bigger before we do anything with it.
6034
      # a 1K string should be a reasonable start.
6035
      for i in 1 2 3 4 5 6 7 8 ; do
6036
        teststring=$teststring$teststring
6037
      done
6038
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6039
      # If test is not a shell built-in, we'll probably end up computing a
6040
      # maximum length that is only half of the actual maximum length, but
6041
      # we can't tell.
6042
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6043
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6044
              test $i != 17 # 1/2 MB should be enough
6045
      do
6046
        i=`expr $i + 1`
6047
        teststring=$teststring$teststring
6048
      done
6049
      # Only check the string length outside the loop.
6050
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6051
      teststring=
6052
      # Add a significant safety factor because C++ compilers can tack on
6053
      # massive amounts of additional arguments before passing them to the
6054
      # linker.  It appears as though 1/2 is a usable value.
6055
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6056
    fi
6057
    ;;
6058
  esac
6059
 
6060
fi
6061
 
6062
if test -n $lt_cv_sys_max_cmd_len ; then
6063
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6064
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6065
else
6066
  { $as_echo "$as_me:$LINENO: result: none" >&5
6067
$as_echo "none" >&6; }
6068
fi
6069
max_cmd_len=$lt_cv_sys_max_cmd_len
6070
 
6071
 
6072
 
6073
 
6074
 
6075
 
6076
: ${CP="cp -f"}
6077
: ${MV="mv -f"}
6078
: ${RM="rm -f"}
6079
 
6080
{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6081
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6082
# Try some XSI features
6083
xsi_shell=no
6084
( _lt_dummy="a/b/c"
6085
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6086
      = c,a/b,, \
6087
    && eval 'test $(( 1 + 1 )) -eq 2 \
6088
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6089
  && xsi_shell=yes
6090
{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6091
$as_echo "$xsi_shell" >&6; }
6092
 
6093
 
6094
{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6095
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6096
lt_shell_append=no
6097
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6098
    >/dev/null 2>&1 \
6099
  && lt_shell_append=yes
6100
{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6101
$as_echo "$lt_shell_append" >&6; }
6102
 
6103
 
6104
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6105
  lt_unset=unset
6106
else
6107
  lt_unset=false
6108
fi
6109
 
6110
 
6111
 
6112
 
6113
 
6114
# test EBCDIC or ASCII
6115
case `echo X|tr X '\101'` in
6116
 A) # ASCII based system
6117
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6118
  lt_SP2NL='tr \040 \012'
6119
  lt_NL2SP='tr \015\012 \040\040'
6120
  ;;
6121
 *) # EBCDIC based system
6122
  lt_SP2NL='tr \100 \n'
6123
  lt_NL2SP='tr \r\n \100\100'
6124
  ;;
6125
esac
6126
 
6127
 
6128
 
6129
 
6130
 
6131
 
6132
 
6133
 
6134
 
6135
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6136
$as_echo_n "checking for $LD option to reload object files... " >&6; }
6137
if test "${lt_cv_ld_reload_flag+set}" = set; then
6138
  $as_echo_n "(cached) " >&6
6139
else
6140
  lt_cv_ld_reload_flag='-r'
6141
fi
6142
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6143
$as_echo "$lt_cv_ld_reload_flag" >&6; }
6144
reload_flag=$lt_cv_ld_reload_flag
6145
case $reload_flag in
6146
"" | " "*) ;;
6147
*) reload_flag=" $reload_flag" ;;
6148
esac
6149
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6150
case $host_os in
6151
  darwin*)
6152
    if test "$GCC" = yes; then
6153
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6154
    else
6155
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6156
    fi
6157
    ;;
6158
esac
6159
 
6160
 
6161
 
6162
 
6163
 
6164
 
6165
 
6166
 
6167
 
6168
if test -n "$ac_tool_prefix"; then
6169
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6170
set dummy ${ac_tool_prefix}objdump; ac_word=$2
6171
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6172
$as_echo_n "checking for $ac_word... " >&6; }
6173
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6174
  $as_echo_n "(cached) " >&6
6175
else
6176
  if test -n "$OBJDUMP"; then
6177
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6178
else
6179
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180
for as_dir in $PATH
6181
do
6182
  IFS=$as_save_IFS
6183
  test -z "$as_dir" && as_dir=.
6184
  for ac_exec_ext in '' $ac_executable_extensions; do
6185
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6186
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6187
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6188
    break 2
6189
  fi
6190
done
6191
done
6192
IFS=$as_save_IFS
6193
 
6194
fi
6195
fi
6196
OBJDUMP=$ac_cv_prog_OBJDUMP
6197
if test -n "$OBJDUMP"; then
6198
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6199
$as_echo "$OBJDUMP" >&6; }
6200
else
6201
  { $as_echo "$as_me:$LINENO: result: no" >&5
6202
$as_echo "no" >&6; }
6203
fi
6204
 
6205
 
6206
fi
6207
if test -z "$ac_cv_prog_OBJDUMP"; then
6208
  ac_ct_OBJDUMP=$OBJDUMP
6209
  # Extract the first word of "objdump", so it can be a program name with args.
6210
set dummy objdump; ac_word=$2
6211
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6212
$as_echo_n "checking for $ac_word... " >&6; }
6213
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6214
  $as_echo_n "(cached) " >&6
6215
else
6216
  if test -n "$ac_ct_OBJDUMP"; then
6217
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6218
else
6219
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220
for as_dir in $PATH
6221
do
6222
  IFS=$as_save_IFS
6223
  test -z "$as_dir" && as_dir=.
6224
  for ac_exec_ext in '' $ac_executable_extensions; do
6225
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6226
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6227
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6228
    break 2
6229
  fi
6230
done
6231
done
6232
IFS=$as_save_IFS
6233
 
6234
fi
6235
fi
6236
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6237
if test -n "$ac_ct_OBJDUMP"; then
6238
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6239
$as_echo "$ac_ct_OBJDUMP" >&6; }
6240
else
6241
  { $as_echo "$as_me:$LINENO: result: no" >&5
6242
$as_echo "no" >&6; }
6243
fi
6244
 
6245
  if test "x$ac_ct_OBJDUMP" = x; then
6246
    OBJDUMP="false"
6247
  else
6248
    case $cross_compiling:$ac_tool_warned in
6249
yes:)
6250
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6251
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6252
ac_tool_warned=yes ;;
6253
esac
6254
    OBJDUMP=$ac_ct_OBJDUMP
6255
  fi
6256
else
6257
  OBJDUMP="$ac_cv_prog_OBJDUMP"
6258
fi
6259
 
6260
test -z "$OBJDUMP" && OBJDUMP=objdump
6261
 
6262
 
6263
 
6264
 
6265
 
6266
 
6267
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6268
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6269
if test "${lt_cv_deplibs_check_method+set}" = set; then
6270
  $as_echo_n "(cached) " >&6
6271
else
6272
  lt_cv_file_magic_cmd='$MAGIC_CMD'
6273
lt_cv_file_magic_test_file=
6274
lt_cv_deplibs_check_method='unknown'
6275
# Need to set the preceding variable on all platforms that support
6276
# interlibrary dependencies.
6277
# 'none' -- dependencies not supported.
6278
# `unknown' -- same as none, but documents that we really don't know.
6279
# 'pass_all' -- all dependencies passed with no checks.
6280
# 'test_compile' -- check by making test program.
6281
# 'file_magic [[regex]]' -- check by looking for files in library path
6282
# which responds to the $file_magic_cmd with a given extended regex.
6283
# If you have `file' or equivalent on your system and you're not sure
6284
# whether `pass_all' will *always* work, you probably want this one.
6285
 
6286
case $host_os in
6287
aix[4-9]*)
6288
  lt_cv_deplibs_check_method=pass_all
6289
  ;;
6290
 
6291
beos*)
6292
  lt_cv_deplibs_check_method=pass_all
6293
  ;;
6294
 
6295
bsdi[45]*)
6296
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6297
  lt_cv_file_magic_cmd='/usr/bin/file -L'
6298
  lt_cv_file_magic_test_file=/shlib/libc.so
6299
  ;;
6300
 
6301
cygwin*)
6302
  # func_win32_libid is a shell function defined in ltmain.sh
6303
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6304
  lt_cv_file_magic_cmd='func_win32_libid'
6305
  ;;
6306
 
6307
mingw* | pw32*)
6308
  # Base MSYS/MinGW do not provide the 'file' command needed by
6309
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6310
  # unless we find 'file', for example because we are cross-compiling.
6311
  if ( file / ) >/dev/null 2>&1; then
6312
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6313
    lt_cv_file_magic_cmd='func_win32_libid'
6314
  else
6315
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6316
    lt_cv_file_magic_cmd='$OBJDUMP -f'
6317
  fi
6318
  ;;
6319
 
6320
cegcc)
6321
  # use the weaker test based on 'objdump'. See mingw*.
6322
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6323
  lt_cv_file_magic_cmd='$OBJDUMP -f'
6324
  ;;
6325
 
6326
darwin* | rhapsody*)
6327
  lt_cv_deplibs_check_method=pass_all
6328
  ;;
6329
 
6330
freebsd* | dragonfly*)
6331
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6332
    case $host_cpu in
6333
    i*86 )
6334
      # Not sure whether the presence of OpenBSD here was a mistake.
6335
      # Let's accept both of them until this is cleared up.
6336
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6337
      lt_cv_file_magic_cmd=/usr/bin/file
6338
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6339
      ;;
6340
    esac
6341
  else
6342
    lt_cv_deplibs_check_method=pass_all
6343
  fi
6344
  ;;
6345
 
6346
gnu*)
6347
  lt_cv_deplibs_check_method=pass_all
6348
  ;;
6349
 
6350
hpux10.20* | hpux11*)
6351
  lt_cv_file_magic_cmd=/usr/bin/file
6352
  case $host_cpu in
6353
  ia64*)
6354
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6355
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6356
    ;;
6357
  hppa*64*)
6358
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6359
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6360
    ;;
6361
  *)
6362
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6363
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6364
    ;;
6365
  esac
6366
  ;;
6367
 
6368
interix[3-9]*)
6369
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6370
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6371
  ;;
6372
 
6373
irix5* | irix6* | nonstopux*)
6374
  case $LD in
6375
  *-32|*"-32 ") libmagic=32-bit;;
6376
  *-n32|*"-n32 ") libmagic=N32;;
6377
  *-64|*"-64 ") libmagic=64-bit;;
6378
  *) libmagic=never-match;;
6379
  esac
6380
  lt_cv_deplibs_check_method=pass_all
6381
  ;;
6382
 
6383
# This must be Linux ELF.
6384
linux* | k*bsd*-gnu | kopensolaris*-gnu)
6385
  lt_cv_deplibs_check_method=pass_all
6386
  ;;
6387
 
6388
netbsd*)
6389
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6390
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6391
  else
6392
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6393
  fi
6394
  ;;
6395
 
6396
newos6*)
6397
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6398
  lt_cv_file_magic_cmd=/usr/bin/file
6399
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6400
  ;;
6401
 
6402
*nto* | *qnx*)
6403
  lt_cv_deplibs_check_method=pass_all
6404
  ;;
6405
 
6406
openbsd*)
6407
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6408
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6409
  else
6410
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6411
  fi
6412
  ;;
6413
 
6414
osf3* | osf4* | osf5*)
6415
  lt_cv_deplibs_check_method=pass_all
6416
  ;;
6417
 
6418
rdos*)
6419
  lt_cv_deplibs_check_method=pass_all
6420
  ;;
6421
 
6422
solaris*)
6423
  lt_cv_deplibs_check_method=pass_all
6424
  ;;
6425
 
6426
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6427
  lt_cv_deplibs_check_method=pass_all
6428
  ;;
6429
 
6430
sysv4 | sysv4.3*)
6431
  case $host_vendor in
6432
  motorola)
6433
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6434
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6435
    ;;
6436
  ncr)
6437
    lt_cv_deplibs_check_method=pass_all
6438
    ;;
6439
  sequent)
6440
    lt_cv_file_magic_cmd='/bin/file'
6441
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6442
    ;;
6443
  sni)
6444
    lt_cv_file_magic_cmd='/bin/file'
6445
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6446
    lt_cv_file_magic_test_file=/lib/libc.so
6447
    ;;
6448
  siemens)
6449
    lt_cv_deplibs_check_method=pass_all
6450
    ;;
6451
  pc)
6452
    lt_cv_deplibs_check_method=pass_all
6453
    ;;
6454
  esac
6455
  ;;
6456
 
6457
tpf*)
6458
  lt_cv_deplibs_check_method=pass_all
6459
  ;;
6460
esac
6461
 
6462
fi
6463
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6464
$as_echo "$lt_cv_deplibs_check_method" >&6; }
6465
file_magic_cmd=$lt_cv_file_magic_cmd
6466
deplibs_check_method=$lt_cv_deplibs_check_method
6467
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6468
 
6469
 
6470
 
6471
 
6472
 
6473
 
6474
 
6475
 
6476
 
6477
 
6478
 
6479
 
6480
if test -n "$ac_tool_prefix"; then
6481
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6482
set dummy ${ac_tool_prefix}ar; ac_word=$2
6483
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6484
$as_echo_n "checking for $ac_word... " >&6; }
6485
if test "${ac_cv_prog_AR+set}" = set; then
6486
  $as_echo_n "(cached) " >&6
6487
else
6488
  if test -n "$AR"; then
6489
  ac_cv_prog_AR="$AR" # Let the user override the test.
6490
else
6491
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492
for as_dir in $PATH
6493
do
6494
  IFS=$as_save_IFS
6495
  test -z "$as_dir" && as_dir=.
6496
  for ac_exec_ext in '' $ac_executable_extensions; do
6497
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6498
    ac_cv_prog_AR="${ac_tool_prefix}ar"
6499
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6500
    break 2
6501
  fi
6502
done
6503
done
6504
IFS=$as_save_IFS
6505
 
6506
fi
6507
fi
6508
AR=$ac_cv_prog_AR
6509
if test -n "$AR"; then
6510
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
6511
$as_echo "$AR" >&6; }
6512
else
6513
  { $as_echo "$as_me:$LINENO: result: no" >&5
6514
$as_echo "no" >&6; }
6515
fi
6516
 
6517
 
6518
fi
6519
if test -z "$ac_cv_prog_AR"; then
6520
  ac_ct_AR=$AR
6521
  # Extract the first word of "ar", so it can be a program name with args.
6522
set dummy ar; ac_word=$2
6523
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6524
$as_echo_n "checking for $ac_word... " >&6; }
6525
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6526
  $as_echo_n "(cached) " >&6
6527
else
6528
  if test -n "$ac_ct_AR"; then
6529
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6530
else
6531
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532
for as_dir in $PATH
6533
do
6534
  IFS=$as_save_IFS
6535
  test -z "$as_dir" && as_dir=.
6536
  for ac_exec_ext in '' $ac_executable_extensions; do
6537
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6538
    ac_cv_prog_ac_ct_AR="ar"
6539
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6540
    break 2
6541
  fi
6542
done
6543
done
6544
IFS=$as_save_IFS
6545
 
6546
fi
6547
fi
6548
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6549
if test -n "$ac_ct_AR"; then
6550
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6551
$as_echo "$ac_ct_AR" >&6; }
6552
else
6553
  { $as_echo "$as_me:$LINENO: result: no" >&5
6554
$as_echo "no" >&6; }
6555
fi
6556
 
6557
  if test "x$ac_ct_AR" = x; then
6558
    AR="false"
6559
  else
6560
    case $cross_compiling:$ac_tool_warned in
6561
yes:)
6562
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6563
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6564
ac_tool_warned=yes ;;
6565
esac
6566
    AR=$ac_ct_AR
6567
  fi
6568
else
6569
  AR="$ac_cv_prog_AR"
6570
fi
6571
 
6572
test -z "$AR" && AR=ar
6573
test -z "$AR_FLAGS" && AR_FLAGS=cru
6574
 
6575
 
6576
 
6577
 
6578
 
6579
 
6580
 
6581
 
6582
 
6583
 
6584
 
6585
if test -n "$ac_tool_prefix"; then
6586
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6587
set dummy ${ac_tool_prefix}strip; ac_word=$2
6588
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6589
$as_echo_n "checking for $ac_word... " >&6; }
6590
if test "${ac_cv_prog_STRIP+set}" = set; then
6591
  $as_echo_n "(cached) " >&6
6592
else
6593
  if test -n "$STRIP"; then
6594
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6595
else
6596
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597
for as_dir in $PATH
6598
do
6599
  IFS=$as_save_IFS
6600
  test -z "$as_dir" && as_dir=.
6601
  for ac_exec_ext in '' $ac_executable_extensions; do
6602
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6603
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6604
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6605
    break 2
6606
  fi
6607
done
6608
done
6609
IFS=$as_save_IFS
6610
 
6611
fi
6612
fi
6613
STRIP=$ac_cv_prog_STRIP
6614
if test -n "$STRIP"; then
6615
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6616
$as_echo "$STRIP" >&6; }
6617
else
6618
  { $as_echo "$as_me:$LINENO: result: no" >&5
6619
$as_echo "no" >&6; }
6620
fi
6621
 
6622
 
6623
fi
6624
if test -z "$ac_cv_prog_STRIP"; then
6625
  ac_ct_STRIP=$STRIP
6626
  # Extract the first word of "strip", so it can be a program name with args.
6627
set dummy strip; ac_word=$2
6628
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6629
$as_echo_n "checking for $ac_word... " >&6; }
6630
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6631
  $as_echo_n "(cached) " >&6
6632
else
6633
  if test -n "$ac_ct_STRIP"; then
6634
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6635
else
6636
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637
for as_dir in $PATH
6638
do
6639
  IFS=$as_save_IFS
6640
  test -z "$as_dir" && as_dir=.
6641
  for ac_exec_ext in '' $ac_executable_extensions; do
6642
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6643
    ac_cv_prog_ac_ct_STRIP="strip"
6644
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6645
    break 2
6646
  fi
6647
done
6648
done
6649
IFS=$as_save_IFS
6650
 
6651
fi
6652
fi
6653
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6654
if test -n "$ac_ct_STRIP"; then
6655
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6656
$as_echo "$ac_ct_STRIP" >&6; }
6657
else
6658
  { $as_echo "$as_me:$LINENO: result: no" >&5
6659
$as_echo "no" >&6; }
6660
fi
6661
 
6662
  if test "x$ac_ct_STRIP" = x; then
6663
    STRIP=":"
6664
  else
6665
    case $cross_compiling:$ac_tool_warned in
6666
yes:)
6667
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6668
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6669
ac_tool_warned=yes ;;
6670
esac
6671
    STRIP=$ac_ct_STRIP
6672
  fi
6673
else
6674
  STRIP="$ac_cv_prog_STRIP"
6675
fi
6676
 
6677
test -z "$STRIP" && STRIP=:
6678
 
6679
 
6680
 
6681
 
6682
 
6683
 
6684
if test -n "$ac_tool_prefix"; then
6685
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6686
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6687
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6688
$as_echo_n "checking for $ac_word... " >&6; }
6689
if test "${ac_cv_prog_RANLIB+set}" = set; then
6690
  $as_echo_n "(cached) " >&6
6691
else
6692
  if test -n "$RANLIB"; then
6693
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6694
else
6695
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696
for as_dir in $PATH
6697
do
6698
  IFS=$as_save_IFS
6699
  test -z "$as_dir" && as_dir=.
6700
  for ac_exec_ext in '' $ac_executable_extensions; do
6701
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6702
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6703
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6704
    break 2
6705
  fi
6706
done
6707
done
6708
IFS=$as_save_IFS
6709
 
6710
fi
6711
fi
6712
RANLIB=$ac_cv_prog_RANLIB
6713
if test -n "$RANLIB"; then
6714
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6715
$as_echo "$RANLIB" >&6; }
6716
else
6717
  { $as_echo "$as_me:$LINENO: result: no" >&5
6718
$as_echo "no" >&6; }
6719
fi
6720
 
6721
 
6722
fi
6723
if test -z "$ac_cv_prog_RANLIB"; then
6724
  ac_ct_RANLIB=$RANLIB
6725
  # Extract the first word of "ranlib", so it can be a program name with args.
6726
set dummy ranlib; ac_word=$2
6727
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6728
$as_echo_n "checking for $ac_word... " >&6; }
6729
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6730
  $as_echo_n "(cached) " >&6
6731
else
6732
  if test -n "$ac_ct_RANLIB"; then
6733
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6734
else
6735
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736
for as_dir in $PATH
6737
do
6738
  IFS=$as_save_IFS
6739
  test -z "$as_dir" && as_dir=.
6740
  for ac_exec_ext in '' $ac_executable_extensions; do
6741
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6742
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6743
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6744
    break 2
6745
  fi
6746
done
6747
done
6748
IFS=$as_save_IFS
6749
 
6750
fi
6751
fi
6752
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6753
if test -n "$ac_ct_RANLIB"; then
6754
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6755
$as_echo "$ac_ct_RANLIB" >&6; }
6756
else
6757
  { $as_echo "$as_me:$LINENO: result: no" >&5
6758
$as_echo "no" >&6; }
6759
fi
6760
 
6761
  if test "x$ac_ct_RANLIB" = x; then
6762
    RANLIB=":"
6763
  else
6764
    case $cross_compiling:$ac_tool_warned in
6765
yes:)
6766
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6767
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6768
ac_tool_warned=yes ;;
6769
esac
6770
    RANLIB=$ac_ct_RANLIB
6771
  fi
6772
else
6773
  RANLIB="$ac_cv_prog_RANLIB"
6774
fi
6775
 
6776
test -z "$RANLIB" && RANLIB=:
6777
 
6778
 
6779
 
6780
 
6781
 
6782
 
6783
# Determine commands to create old-style static archives.
6784
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6785
old_postinstall_cmds='chmod 644 $oldlib'
6786
old_postuninstall_cmds=
6787
 
6788
if test -n "$RANLIB"; then
6789
  case $host_os in
6790
  openbsd*)
6791
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6792
    ;;
6793
  *)
6794
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6795
    ;;
6796
  esac
6797
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6798
fi
6799
 
6800
 
6801
 
6802
 
6803
 
6804
 
6805
 
6806
 
6807
 
6808
 
6809
 
6810
 
6811
 
6812
 
6813
 
6814
 
6815
 
6816
 
6817
 
6818
 
6819
 
6820
 
6821
 
6822
 
6823
 
6824
 
6825
 
6826
 
6827
 
6828
 
6829
 
6830
 
6831
 
6832
 
6833
# If no C compiler was specified, use CC.
6834
LTCC=${LTCC-"$CC"}
6835
 
6836
# If no C compiler flags were specified, use CFLAGS.
6837
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6838
 
6839
# Allow CC to be a program name with arguments.
6840
compiler=$CC
6841
 
6842
 
6843
# Check for command to grab the raw symbol name followed by C symbol from nm.
6844
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6845
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6846
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6847
  $as_echo_n "(cached) " >&6
6848
else
6849
 
6850
# These are sane defaults that work on at least a few old systems.
6851
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6852
 
6853
# Character class describing NM global symbol codes.
6854
symcode='[BCDEGRST]'
6855
 
6856
# Regexp to match symbols that can be accessed directly from C.
6857
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6858
 
6859
# Define system-specific variables.
6860
case $host_os in
6861
aix*)
6862
  symcode='[BCDT]'
6863
  ;;
6864
cygwin* | mingw* | pw32* | cegcc*)
6865
  symcode='[ABCDGISTW]'
6866
  ;;
6867
hpux*)
6868
  if test "$host_cpu" = ia64; then
6869
    symcode='[ABCDEGRST]'
6870
  fi
6871
  ;;
6872
irix* | nonstopux*)
6873
  symcode='[BCDEGRST]'
6874
  ;;
6875
osf*)
6876
  symcode='[BCDEGQRST]'
6877
  ;;
6878
solaris*)
6879
  symcode='[BDRT]'
6880
  ;;
6881
sco3.2v5*)
6882
  symcode='[DT]'
6883
  ;;
6884
sysv4.2uw2*)
6885
  symcode='[DT]'
6886
  ;;
6887
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6888
  symcode='[ABDT]'
6889
  ;;
6890
sysv4)
6891
  symcode='[DFNSTU]'
6892
  ;;
6893
esac
6894
 
6895
# If we're using GNU nm, then use its standard symbol codes.
6896
case `$NM -V 2>&1` in
6897
*GNU* | *'with BFD'*)
6898
  symcode='[ABCDGIRSTW]' ;;
6899
esac
6900
 
6901
# Transform an extracted symbol line into a proper C declaration.
6902
# Some systems (esp. on ia64) link data and code symbols differently,
6903
# so use this general approach.
6904
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6905
 
6906
# Transform an extracted symbol line into symbol name and symbol address
6907
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6908
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6909
 
6910
# Handle CRLF in mingw tool chain
6911
opt_cr=
6912
case $build_os in
6913
mingw*)
6914
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6915
  ;;
6916
esac
6917
 
6918
# Try without a prefix underscore, then with it.
6919
for ac_symprfx in "" "_"; do
6920
 
6921
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6922
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6923
 
6924
  # Write the raw and C identifiers.
6925
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6926
    # Fake it for dumpbin and say T for any non-static function
6927
    # and D for any global variable.
6928
    # Also find C++ and __fastcall symbols from MSVC++,
6929
    # which start with @ or ?.
6930
    lt_cv_sys_global_symbol_pipe="$AWK '"\
6931
"     {last_section=section; section=\$ 3};"\
6932
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6933
"     \$ 0!~/External *\|/{next};"\
6934
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6935
"     {if(hide[section]) next};"\
6936
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6937
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6938
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6939
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6940
"     ' prfx=^$ac_symprfx"
6941
  else
6942
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6943
  fi
6944
 
6945
  # Check to see that the pipe works correctly.
6946
  pipe_works=no
6947
 
6948
  rm -f conftest*
6949
  cat > conftest.$ac_ext <<_LT_EOF
6950
#ifdef __cplusplus
6951
extern "C" {
6952
#endif
6953
char nm_test_var;
6954
void nm_test_func(void);
6955
void nm_test_func(void){}
6956
#ifdef __cplusplus
6957
}
6958
#endif
6959
int main(){nm_test_var='a';nm_test_func();return(0);}
6960
_LT_EOF
6961
 
6962
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6963
  (eval $ac_compile) 2>&5
6964
  ac_status=$?
6965
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966
  (exit $ac_status); }; then
6967
    # Now try to grab the symbols.
6968
    nlist=conftest.nm
6969
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6970
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6971
  ac_status=$?
6972
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973
  (exit $ac_status); } && test -s "$nlist"; then
6974
      # Try sorting and uniquifying the output.
6975
      if sort "$nlist" | uniq > "$nlist"T; then
6976
        mv -f "$nlist"T "$nlist"
6977
      else
6978
        rm -f "$nlist"T
6979
      fi
6980
 
6981
      # Make sure that we snagged all the symbols we need.
6982
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6983
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6984
          cat <<_LT_EOF > conftest.$ac_ext
6985
#ifdef __cplusplus
6986
extern "C" {
6987
#endif
6988
 
6989
_LT_EOF
6990
          # Now generate the symbol file.
6991
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6992
 
6993
          cat <<_LT_EOF >> conftest.$ac_ext
6994
 
6995
/* The mapping between symbol names and symbols.  */
6996
const struct {
6997
  const char *name;
6998
  void       *address;
6999
}
7000
lt__PROGRAM__LTX_preloaded_symbols[] =
7001
{
7002
  { "@PROGRAM@", (void *) 0 },
7003
_LT_EOF
7004
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7005
          cat <<\_LT_EOF >> conftest.$ac_ext
7006
  {0, (void *) 0}
7007
};
7008
 
7009
/* This works around a problem in FreeBSD linker */
7010
#ifdef FREEBSD_WORKAROUND
7011
static const void *lt_preloaded_setup() {
7012
  return lt__PROGRAM__LTX_preloaded_symbols;
7013
}
7014
#endif
7015
 
7016
#ifdef __cplusplus
7017
}
7018
#endif
7019
_LT_EOF
7020
          # Now try linking the two files.
7021
          mv conftest.$ac_objext conftstm.$ac_objext
7022
          lt_save_LIBS="$LIBS"
7023
          lt_save_CFLAGS="$CFLAGS"
7024
          LIBS="conftstm.$ac_objext"
7025
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7026
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7027
  (eval $ac_link) 2>&5
7028
  ac_status=$?
7029
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7031
            pipe_works=yes
7032
          fi
7033
          LIBS="$lt_save_LIBS"
7034
          CFLAGS="$lt_save_CFLAGS"
7035
        else
7036
          echo "cannot find nm_test_func in $nlist" >&5
7037
        fi
7038
      else
7039
        echo "cannot find nm_test_var in $nlist" >&5
7040
      fi
7041
    else
7042
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7043
    fi
7044
  else
7045
    echo "$progname: failed program was:" >&5
7046
    cat conftest.$ac_ext >&5
7047
  fi
7048
  rm -rf conftest* conftst*
7049
 
7050
  # Do not use the global_symbol_pipe unless it works.
7051
  if test "$pipe_works" = yes; then
7052
    break
7053
  else
7054
    lt_cv_sys_global_symbol_pipe=
7055
  fi
7056
done
7057
 
7058
fi
7059
 
7060
if test -z "$lt_cv_sys_global_symbol_pipe"; then
7061
  lt_cv_sys_global_symbol_to_cdecl=
7062
fi
7063
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7064
  { $as_echo "$as_me:$LINENO: result: failed" >&5
7065
$as_echo "failed" >&6; }
7066
else
7067
  { $as_echo "$as_me:$LINENO: result: ok" >&5
7068
$as_echo "ok" >&6; }
7069
fi
7070
 
7071
 
7072
 
7073
 
7074
 
7075
 
7076
 
7077
 
7078
 
7079
 
7080
 
7081
 
7082
 
7083
 
7084
 
7085
 
7086
 
7087
 
7088
 
7089
 
7090
 
7091
 
7092
 
7093
# Check whether --enable-libtool-lock was given.
7094
if test "${enable_libtool_lock+set}" = set; then
7095
  enableval=$enable_libtool_lock;
7096
fi
7097
 
7098
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7099
 
7100
# Some flags need to be propagated to the compiler or linker for good
7101
# libtool support.
7102
case $host in
7103
ia64-*-hpux*)
7104
  # Find out which ABI we are using.
7105
  echo 'int i;' > conftest.$ac_ext
7106
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7107
  (eval $ac_compile) 2>&5
7108
  ac_status=$?
7109
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110
  (exit $ac_status); }; then
7111
    case `/usr/bin/file conftest.$ac_objext` in
7112
      *ELF-32*)
7113
        HPUX_IA64_MODE="32"
7114
        ;;
7115
      *ELF-64*)
7116
        HPUX_IA64_MODE="64"
7117
        ;;
7118
    esac
7119
  fi
7120
  rm -rf conftest*
7121
  ;;
7122
*-*-irix6*)
7123
  # Find out which ABI we are using.
7124
  echo '#line 7124 "configure"' > conftest.$ac_ext
7125
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7126
  (eval $ac_compile) 2>&5
7127
  ac_status=$?
7128
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129
  (exit $ac_status); }; then
7130
    if test "$lt_cv_prog_gnu_ld" = yes; then
7131
      case `/usr/bin/file conftest.$ac_objext` in
7132
        *32-bit*)
7133
          LD="${LD-ld} -melf32bsmip"
7134
          ;;
7135
        *N32*)
7136
          LD="${LD-ld} -melf32bmipn32"
7137
          ;;
7138
        *64-bit*)
7139
          LD="${LD-ld} -melf64bmip"
7140
        ;;
7141
      esac
7142
    else
7143
      case `/usr/bin/file conftest.$ac_objext` in
7144
        *32-bit*)
7145
          LD="${LD-ld} -32"
7146
          ;;
7147
        *N32*)
7148
          LD="${LD-ld} -n32"
7149
          ;;
7150
        *64-bit*)
7151
          LD="${LD-ld} -64"
7152
          ;;
7153
      esac
7154
    fi
7155
  fi
7156
  rm -rf conftest*
7157
  ;;
7158
 
7159
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7160
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7161
  # Find out which ABI we are using.
7162
  echo 'int i;' > conftest.$ac_ext
7163
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7164
  (eval $ac_compile) 2>&5
7165
  ac_status=$?
7166
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167
  (exit $ac_status); }; then
7168
    case `/usr/bin/file conftest.o` in
7169
      *32-bit*)
7170
        case $host in
7171
          x86_64-*kfreebsd*-gnu)
7172
            LD="${LD-ld} -m elf_i386_fbsd"
7173
            ;;
7174
          x86_64-*linux*)
7175
            LD="${LD-ld} -m elf_i386"
7176
            ;;
7177
          ppc64-*linux*|powerpc64-*linux*)
7178
            LD="${LD-ld} -m elf32ppclinux"
7179
            ;;
7180
          s390x-*linux*)
7181
            LD="${LD-ld} -m elf_s390"
7182
            ;;
7183
          sparc64-*linux*)
7184
            LD="${LD-ld} -m elf32_sparc"
7185
            ;;
7186
        esac
7187
        ;;
7188
      *64-bit*)
7189
        case $host in
7190
          x86_64-*kfreebsd*-gnu)
7191
            LD="${LD-ld} -m elf_x86_64_fbsd"
7192
            ;;
7193
          x86_64-*linux*)
7194
            LD="${LD-ld} -m elf_x86_64"
7195
            ;;
7196
          ppc*-*linux*|powerpc*-*linux*)
7197
            LD="${LD-ld} -m elf64ppc"
7198
            ;;
7199
          s390*-*linux*|s390*-*tpf*)
7200
            LD="${LD-ld} -m elf64_s390"
7201
            ;;
7202
          sparc*-*linux*)
7203
            LD="${LD-ld} -m elf64_sparc"
7204
            ;;
7205
        esac
7206
        ;;
7207
    esac
7208
  fi
7209
  rm -rf conftest*
7210
  ;;
7211
 
7212
*-*-sco3.2v5*)
7213
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7214
  SAVE_CFLAGS="$CFLAGS"
7215
  CFLAGS="$CFLAGS -belf"
7216
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7217
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7218
if test "${lt_cv_cc_needs_belf+set}" = set; then
7219
  $as_echo_n "(cached) " >&6
7220
else
7221
  ac_ext=c
7222
ac_cpp='$CPP $CPPFLAGS'
7223
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7224
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7225
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7226
 
7227
     cat >conftest.$ac_ext <<_ACEOF
7228
/* confdefs.h.  */
7229
_ACEOF
7230
cat confdefs.h >>conftest.$ac_ext
7231
cat >>conftest.$ac_ext <<_ACEOF
7232
/* end confdefs.h.  */
7233
 
7234
int
7235
main ()
7236
{
7237
 
7238
  ;
7239
  return 0;
7240
}
7241
_ACEOF
7242
rm -f conftest.$ac_objext conftest$ac_exeext
7243
if { (ac_try="$ac_link"
7244
case "(($ac_try" in
7245
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7246
  *) ac_try_echo=$ac_try;;
7247
esac
7248
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7249
$as_echo "$ac_try_echo") >&5
7250
  (eval "$ac_link") 2>conftest.er1
7251
  ac_status=$?
7252
  grep -v '^ *+' conftest.er1 >conftest.err
7253
  rm -f conftest.er1
7254
  cat conftest.err >&5
7255
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256
  (exit $ac_status); } && {
7257
         test -z "$ac_c_werror_flag" ||
7258
         test ! -s conftest.err
7259
       } && test -s conftest$ac_exeext && {
7260
         test "$cross_compiling" = yes ||
7261
         $as_test_x conftest$ac_exeext
7262
       }; then
7263
  lt_cv_cc_needs_belf=yes
7264
else
7265
  $as_echo "$as_me: failed program was:" >&5
7266
sed 's/^/| /' conftest.$ac_ext >&5
7267
 
7268
        lt_cv_cc_needs_belf=no
7269
fi
7270
 
7271
rm -rf conftest.dSYM
7272
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7273
      conftest$ac_exeext conftest.$ac_ext
7274
     ac_ext=c
7275
ac_cpp='$CPP $CPPFLAGS'
7276
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7277
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7278
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7279
 
7280
fi
7281
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7282
$as_echo "$lt_cv_cc_needs_belf" >&6; }
7283
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7284
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7285
    CFLAGS="$SAVE_CFLAGS"
7286
  fi
7287
  ;;
7288
sparc*-*solaris*)
7289
  # Find out which ABI we are using.
7290
  echo 'int i;' > conftest.$ac_ext
7291
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7292
  (eval $ac_compile) 2>&5
7293
  ac_status=$?
7294
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295
  (exit $ac_status); }; then
7296
    case `/usr/bin/file conftest.o` in
7297
    *64-bit*)
7298
      case $lt_cv_prog_gnu_ld in
7299
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7300
      *)
7301
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7302
          LD="${LD-ld} -64"
7303
        fi
7304
        ;;
7305
      esac
7306
      ;;
7307
    esac
7308
  fi
7309
  rm -rf conftest*
7310
  ;;
7311
esac
7312
 
7313
need_locks="$enable_libtool_lock"
7314
 
7315
 
7316
  case $host_os in
7317
    rhapsody* | darwin*)
7318
    if test -n "$ac_tool_prefix"; then
7319
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7320
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7321
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7322
$as_echo_n "checking for $ac_word... " >&6; }
7323
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7324
  $as_echo_n "(cached) " >&6
7325
else
7326
  if test -n "$DSYMUTIL"; then
7327
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7328
else
7329
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7330
for as_dir in $PATH
7331
do
7332
  IFS=$as_save_IFS
7333
  test -z "$as_dir" && as_dir=.
7334
  for ac_exec_ext in '' $ac_executable_extensions; do
7335
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7336
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7337
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7338
    break 2
7339
  fi
7340
done
7341
done
7342
IFS=$as_save_IFS
7343
 
7344
fi
7345
fi
7346
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7347
if test -n "$DSYMUTIL"; then
7348
  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7349
$as_echo "$DSYMUTIL" >&6; }
7350
else
7351
  { $as_echo "$as_me:$LINENO: result: no" >&5
7352
$as_echo "no" >&6; }
7353
fi
7354
 
7355
 
7356
fi
7357
if test -z "$ac_cv_prog_DSYMUTIL"; then
7358
  ac_ct_DSYMUTIL=$DSYMUTIL
7359
  # Extract the first word of "dsymutil", so it can be a program name with args.
7360
set dummy dsymutil; ac_word=$2
7361
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7362
$as_echo_n "checking for $ac_word... " >&6; }
7363
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7364
  $as_echo_n "(cached) " >&6
7365
else
7366
  if test -n "$ac_ct_DSYMUTIL"; then
7367
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7368
else
7369
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370
for as_dir in $PATH
7371
do
7372
  IFS=$as_save_IFS
7373
  test -z "$as_dir" && as_dir=.
7374
  for ac_exec_ext in '' $ac_executable_extensions; do
7375
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7376
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7377
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7378
    break 2
7379
  fi
7380
done
7381
done
7382
IFS=$as_save_IFS
7383
 
7384
fi
7385
fi
7386
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7387
if test -n "$ac_ct_DSYMUTIL"; then
7388
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7389
$as_echo "$ac_ct_DSYMUTIL" >&6; }
7390
else
7391
  { $as_echo "$as_me:$LINENO: result: no" >&5
7392
$as_echo "no" >&6; }
7393
fi
7394
 
7395
  if test "x$ac_ct_DSYMUTIL" = x; then
7396
    DSYMUTIL=":"
7397
  else
7398
    case $cross_compiling:$ac_tool_warned in
7399
yes:)
7400
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7401
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7402
ac_tool_warned=yes ;;
7403
esac
7404
    DSYMUTIL=$ac_ct_DSYMUTIL
7405
  fi
7406
else
7407
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7408
fi
7409
 
7410
    if test -n "$ac_tool_prefix"; then
7411
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7412
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7413
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7414
$as_echo_n "checking for $ac_word... " >&6; }
7415
if test "${ac_cv_prog_NMEDIT+set}" = set; then
7416
  $as_echo_n "(cached) " >&6
7417
else
7418
  if test -n "$NMEDIT"; then
7419
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7420
else
7421
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422
for as_dir in $PATH
7423
do
7424
  IFS=$as_save_IFS
7425
  test -z "$as_dir" && as_dir=.
7426
  for ac_exec_ext in '' $ac_executable_extensions; do
7427
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7428
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7429
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7430
    break 2
7431
  fi
7432
done
7433
done
7434
IFS=$as_save_IFS
7435
 
7436
fi
7437
fi
7438
NMEDIT=$ac_cv_prog_NMEDIT
7439
if test -n "$NMEDIT"; then
7440
  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7441
$as_echo "$NMEDIT" >&6; }
7442
else
7443
  { $as_echo "$as_me:$LINENO: result: no" >&5
7444
$as_echo "no" >&6; }
7445
fi
7446
 
7447
 
7448
fi
7449
if test -z "$ac_cv_prog_NMEDIT"; then
7450
  ac_ct_NMEDIT=$NMEDIT
7451
  # Extract the first word of "nmedit", so it can be a program name with args.
7452
set dummy nmedit; ac_word=$2
7453
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7454
$as_echo_n "checking for $ac_word... " >&6; }
7455
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7456
  $as_echo_n "(cached) " >&6
7457
else
7458
  if test -n "$ac_ct_NMEDIT"; then
7459
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7460
else
7461
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462
for as_dir in $PATH
7463
do
7464
  IFS=$as_save_IFS
7465
  test -z "$as_dir" && as_dir=.
7466
  for ac_exec_ext in '' $ac_executable_extensions; do
7467
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7468
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7469
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7470
    break 2
7471
  fi
7472
done
7473
done
7474
IFS=$as_save_IFS
7475
 
7476
fi
7477
fi
7478
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7479
if test -n "$ac_ct_NMEDIT"; then
7480
  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7481
$as_echo "$ac_ct_NMEDIT" >&6; }
7482
else
7483
  { $as_echo "$as_me:$LINENO: result: no" >&5
7484
$as_echo "no" >&6; }
7485
fi
7486
 
7487
  if test "x$ac_ct_NMEDIT" = x; then
7488
    NMEDIT=":"
7489
  else
7490
    case $cross_compiling:$ac_tool_warned in
7491
yes:)
7492
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7493
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7494
ac_tool_warned=yes ;;
7495
esac
7496
    NMEDIT=$ac_ct_NMEDIT
7497
  fi
7498
else
7499
  NMEDIT="$ac_cv_prog_NMEDIT"
7500
fi
7501
 
7502
    if test -n "$ac_tool_prefix"; then
7503
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7504
set dummy ${ac_tool_prefix}lipo; ac_word=$2
7505
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7506
$as_echo_n "checking for $ac_word... " >&6; }
7507
if test "${ac_cv_prog_LIPO+set}" = set; then
7508
  $as_echo_n "(cached) " >&6
7509
else
7510
  if test -n "$LIPO"; then
7511
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7512
else
7513
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514
for as_dir in $PATH
7515
do
7516
  IFS=$as_save_IFS
7517
  test -z "$as_dir" && as_dir=.
7518
  for ac_exec_ext in '' $ac_executable_extensions; do
7519
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7520
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7521
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7522
    break 2
7523
  fi
7524
done
7525
done
7526
IFS=$as_save_IFS
7527
 
7528
fi
7529
fi
7530
LIPO=$ac_cv_prog_LIPO
7531
if test -n "$LIPO"; then
7532
  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7533
$as_echo "$LIPO" >&6; }
7534
else
7535
  { $as_echo "$as_me:$LINENO: result: no" >&5
7536
$as_echo "no" >&6; }
7537
fi
7538
 
7539
 
7540
fi
7541
if test -z "$ac_cv_prog_LIPO"; then
7542
  ac_ct_LIPO=$LIPO
7543
  # Extract the first word of "lipo", so it can be a program name with args.
7544
set dummy lipo; ac_word=$2
7545
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7546
$as_echo_n "checking for $ac_word... " >&6; }
7547
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7548
  $as_echo_n "(cached) " >&6
7549
else
7550
  if test -n "$ac_ct_LIPO"; then
7551
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7552
else
7553
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554
for as_dir in $PATH
7555
do
7556
  IFS=$as_save_IFS
7557
  test -z "$as_dir" && as_dir=.
7558
  for ac_exec_ext in '' $ac_executable_extensions; do
7559
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7560
    ac_cv_prog_ac_ct_LIPO="lipo"
7561
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7562
    break 2
7563
  fi
7564
done
7565
done
7566
IFS=$as_save_IFS
7567
 
7568
fi
7569
fi
7570
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7571
if test -n "$ac_ct_LIPO"; then
7572
  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7573
$as_echo "$ac_ct_LIPO" >&6; }
7574
else
7575
  { $as_echo "$as_me:$LINENO: result: no" >&5
7576
$as_echo "no" >&6; }
7577
fi
7578
 
7579
  if test "x$ac_ct_LIPO" = x; then
7580
    LIPO=":"
7581
  else
7582
    case $cross_compiling:$ac_tool_warned in
7583
yes:)
7584
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7585
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7586
ac_tool_warned=yes ;;
7587
esac
7588
    LIPO=$ac_ct_LIPO
7589
  fi
7590
else
7591
  LIPO="$ac_cv_prog_LIPO"
7592
fi
7593
 
7594
    if test -n "$ac_tool_prefix"; then
7595
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7596
set dummy ${ac_tool_prefix}otool; ac_word=$2
7597
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7598
$as_echo_n "checking for $ac_word... " >&6; }
7599
if test "${ac_cv_prog_OTOOL+set}" = set; then
7600
  $as_echo_n "(cached) " >&6
7601
else
7602
  if test -n "$OTOOL"; then
7603
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7604
else
7605
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606
for as_dir in $PATH
7607
do
7608
  IFS=$as_save_IFS
7609
  test -z "$as_dir" && as_dir=.
7610
  for ac_exec_ext in '' $ac_executable_extensions; do
7611
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7612
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7613
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7614
    break 2
7615
  fi
7616
done
7617
done
7618
IFS=$as_save_IFS
7619
 
7620
fi
7621
fi
7622
OTOOL=$ac_cv_prog_OTOOL
7623
if test -n "$OTOOL"; then
7624
  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7625
$as_echo "$OTOOL" >&6; }
7626
else
7627
  { $as_echo "$as_me:$LINENO: result: no" >&5
7628
$as_echo "no" >&6; }
7629
fi
7630
 
7631
 
7632
fi
7633
if test -z "$ac_cv_prog_OTOOL"; then
7634
  ac_ct_OTOOL=$OTOOL
7635
  # Extract the first word of "otool", so it can be a program name with args.
7636
set dummy otool; ac_word=$2
7637
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7638
$as_echo_n "checking for $ac_word... " >&6; }
7639
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7640
  $as_echo_n "(cached) " >&6
7641
else
7642
  if test -n "$ac_ct_OTOOL"; then
7643
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7644
else
7645
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646
for as_dir in $PATH
7647
do
7648
  IFS=$as_save_IFS
7649
  test -z "$as_dir" && as_dir=.
7650
  for ac_exec_ext in '' $ac_executable_extensions; do
7651
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7652
    ac_cv_prog_ac_ct_OTOOL="otool"
7653
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7654
    break 2
7655
  fi
7656
done
7657
done
7658
IFS=$as_save_IFS
7659
 
7660
fi
7661
fi
7662
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7663
if test -n "$ac_ct_OTOOL"; then
7664
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7665
$as_echo "$ac_ct_OTOOL" >&6; }
7666
else
7667
  { $as_echo "$as_me:$LINENO: result: no" >&5
7668
$as_echo "no" >&6; }
7669
fi
7670
 
7671
  if test "x$ac_ct_OTOOL" = x; then
7672
    OTOOL=":"
7673
  else
7674
    case $cross_compiling:$ac_tool_warned in
7675
yes:)
7676
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7677
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7678
ac_tool_warned=yes ;;
7679
esac
7680
    OTOOL=$ac_ct_OTOOL
7681
  fi
7682
else
7683
  OTOOL="$ac_cv_prog_OTOOL"
7684
fi
7685
 
7686
    if test -n "$ac_tool_prefix"; then
7687
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7688
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7689
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7690
$as_echo_n "checking for $ac_word... " >&6; }
7691
if test "${ac_cv_prog_OTOOL64+set}" = set; then
7692
  $as_echo_n "(cached) " >&6
7693
else
7694
  if test -n "$OTOOL64"; then
7695
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7696
else
7697
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7698
for as_dir in $PATH
7699
do
7700
  IFS=$as_save_IFS
7701
  test -z "$as_dir" && as_dir=.
7702
  for ac_exec_ext in '' $ac_executable_extensions; do
7703
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7704
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7705
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7706
    break 2
7707
  fi
7708
done
7709
done
7710
IFS=$as_save_IFS
7711
 
7712
fi
7713
fi
7714
OTOOL64=$ac_cv_prog_OTOOL64
7715
if test -n "$OTOOL64"; then
7716
  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7717
$as_echo "$OTOOL64" >&6; }
7718
else
7719
  { $as_echo "$as_me:$LINENO: result: no" >&5
7720
$as_echo "no" >&6; }
7721
fi
7722
 
7723
 
7724
fi
7725
if test -z "$ac_cv_prog_OTOOL64"; then
7726
  ac_ct_OTOOL64=$OTOOL64
7727
  # Extract the first word of "otool64", so it can be a program name with args.
7728
set dummy otool64; ac_word=$2
7729
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7730
$as_echo_n "checking for $ac_word... " >&6; }
7731
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7732
  $as_echo_n "(cached) " >&6
7733
else
7734
  if test -n "$ac_ct_OTOOL64"; then
7735
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7736
else
7737
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7738
for as_dir in $PATH
7739
do
7740
  IFS=$as_save_IFS
7741
  test -z "$as_dir" && as_dir=.
7742
  for ac_exec_ext in '' $ac_executable_extensions; do
7743
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7744
    ac_cv_prog_ac_ct_OTOOL64="otool64"
7745
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7746
    break 2
7747
  fi
7748
done
7749
done
7750
IFS=$as_save_IFS
7751
 
7752
fi
7753
fi
7754
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7755
if test -n "$ac_ct_OTOOL64"; then
7756
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7757
$as_echo "$ac_ct_OTOOL64" >&6; }
7758
else
7759
  { $as_echo "$as_me:$LINENO: result: no" >&5
7760
$as_echo "no" >&6; }
7761
fi
7762
 
7763
  if test "x$ac_ct_OTOOL64" = x; then
7764
    OTOOL64=":"
7765
  else
7766
    case $cross_compiling:$ac_tool_warned in
7767
yes:)
7768
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7769
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7770
ac_tool_warned=yes ;;
7771
esac
7772
    OTOOL64=$ac_ct_OTOOL64
7773
  fi
7774
else
7775
  OTOOL64="$ac_cv_prog_OTOOL64"
7776
fi
7777
 
7778
 
7779
 
7780
 
7781
 
7782
 
7783
 
7784
 
7785
 
7786
 
7787
 
7788
 
7789
 
7790
 
7791
 
7792
 
7793
 
7794
 
7795
 
7796
 
7797
 
7798
 
7799
 
7800
 
7801
 
7802
 
7803
 
7804
    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7805
$as_echo_n "checking for -single_module linker flag... " >&6; }
7806
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7807
  $as_echo_n "(cached) " >&6
7808
else
7809
  lt_cv_apple_cc_single_mod=no
7810
      if test -z "${LT_MULTI_MODULE}"; then
7811
        # By default we will add the -single_module flag. You can override
7812
        # by either setting the environment variable LT_MULTI_MODULE
7813
        # non-empty at configure time, or by adding -multi_module to the
7814
        # link flags.
7815
        rm -rf libconftest.dylib*
7816
        echo "int foo(void){return 1;}" > conftest.c
7817
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7818
-dynamiclib -Wl,-single_module conftest.c" >&5
7819
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7820
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7821
        _lt_result=$?
7822
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7823
          lt_cv_apple_cc_single_mod=yes
7824
        else
7825
          cat conftest.err >&5
7826
        fi
7827
        rm -rf libconftest.dylib*
7828
        rm -f conftest.*
7829
      fi
7830
fi
7831
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7832
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7833
    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7834
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7835
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7836
  $as_echo_n "(cached) " >&6
7837
else
7838
  lt_cv_ld_exported_symbols_list=no
7839
      save_LDFLAGS=$LDFLAGS
7840
      echo "_main" > conftest.sym
7841
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7842
      cat >conftest.$ac_ext <<_ACEOF
7843
/* confdefs.h.  */
7844
_ACEOF
7845
cat confdefs.h >>conftest.$ac_ext
7846
cat >>conftest.$ac_ext <<_ACEOF
7847
/* end confdefs.h.  */
7848
 
7849
int
7850
main ()
7851
{
7852
 
7853
  ;
7854
  return 0;
7855
}
7856
_ACEOF
7857
rm -f conftest.$ac_objext conftest$ac_exeext
7858
if { (ac_try="$ac_link"
7859
case "(($ac_try" in
7860
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7861
  *) ac_try_echo=$ac_try;;
7862
esac
7863
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7864
$as_echo "$ac_try_echo") >&5
7865
  (eval "$ac_link") 2>conftest.er1
7866
  ac_status=$?
7867
  grep -v '^ *+' conftest.er1 >conftest.err
7868
  rm -f conftest.er1
7869
  cat conftest.err >&5
7870
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871
  (exit $ac_status); } && {
7872
         test -z "$ac_c_werror_flag" ||
7873
         test ! -s conftest.err
7874
       } && test -s conftest$ac_exeext && {
7875
         test "$cross_compiling" = yes ||
7876
         $as_test_x conftest$ac_exeext
7877
       }; then
7878
  lt_cv_ld_exported_symbols_list=yes
7879
else
7880
  $as_echo "$as_me: failed program was:" >&5
7881
sed 's/^/| /' conftest.$ac_ext >&5
7882
 
7883
        lt_cv_ld_exported_symbols_list=no
7884
fi
7885
 
7886
rm -rf conftest.dSYM
7887
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7888
      conftest$ac_exeext conftest.$ac_ext
7889
        LDFLAGS="$save_LDFLAGS"
7890
 
7891
fi
7892
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7893
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7894
    case $host_os in
7895
    rhapsody* | darwin1.[012])
7896
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7897
    darwin1.*)
7898
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7899
    darwin*) # darwin 5.x on
7900
      # if running on 10.5 or later, the deployment target defaults
7901
      # to the OS version, if on x86, and 10.4, the deployment
7902
      # target defaults to 10.4. Don't you love it?
7903
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7904
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7905
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7906
        10.[012]*)
7907
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7908
        10.*)
7909
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7910
      esac
7911
    ;;
7912
  esac
7913
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7914
      _lt_dar_single_mod='$single_module'
7915
    fi
7916
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7917
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7918
    else
7919
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7920
    fi
7921
    if test "$DSYMUTIL" != ":"; then
7922
      _lt_dsymutil='~$DSYMUTIL $lib || :'
7923
    else
7924
      _lt_dsymutil=
7925
    fi
7926
    ;;
7927
  esac
7928
 
7929
ac_ext=c
7930
ac_cpp='$CPP $CPPFLAGS'
7931
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7932
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7933
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7934
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7935
$as_echo_n "checking how to run the C preprocessor... " >&6; }
7936
# On Suns, sometimes $CPP names a directory.
7937
if test -n "$CPP" && test -d "$CPP"; then
7938
  CPP=
7939
fi
7940
if test -z "$CPP"; then
7941
  if test "${ac_cv_prog_CPP+set}" = set; then
7942
  $as_echo_n "(cached) " >&6
7943
else
7944
      # Double quotes because CPP needs to be expanded
7945
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7946
    do
7947
      ac_preproc_ok=false
7948
for ac_c_preproc_warn_flag in '' yes
7949
do
7950
  # Use a header file that comes with gcc, so configuring glibc
7951
  # with a fresh cross-compiler works.
7952
  # Prefer  to  if __STDC__ is defined, since
7953
  #  exists even on freestanding compilers.
7954
  # On the NeXT, cc -E runs the code through the compiler's parser,
7955
  # not just through cpp. "Syntax error" is here to catch this case.
7956
  cat >conftest.$ac_ext <<_ACEOF
7957
/* confdefs.h.  */
7958
_ACEOF
7959
cat confdefs.h >>conftest.$ac_ext
7960
cat >>conftest.$ac_ext <<_ACEOF
7961
/* end confdefs.h.  */
7962
#ifdef __STDC__
7963
# include 
7964
#else
7965
# include 
7966
#endif
7967
                     Syntax error
7968
_ACEOF
7969
if { (ac_try="$ac_cpp conftest.$ac_ext"
7970
case "(($ac_try" in
7971
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7972
  *) ac_try_echo=$ac_try;;
7973
esac
7974
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7975
$as_echo "$ac_try_echo") >&5
7976
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7977
  ac_status=$?
7978
  grep -v '^ *+' conftest.er1 >conftest.err
7979
  rm -f conftest.er1
7980
  cat conftest.err >&5
7981
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982
  (exit $ac_status); } >/dev/null && {
7983
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7984
         test ! -s conftest.err
7985
       }; then
7986
  :
7987
else
7988
  $as_echo "$as_me: failed program was:" >&5
7989
sed 's/^/| /' conftest.$ac_ext >&5
7990
 
7991
  # Broken: fails on valid input.
7992
continue
7993
fi
7994
 
7995
rm -f conftest.err conftest.$ac_ext
7996
 
7997
  # OK, works on sane cases.  Now check whether nonexistent headers
7998
  # can be detected and how.
7999
  cat >conftest.$ac_ext <<_ACEOF
8000
/* confdefs.h.  */
8001
_ACEOF
8002
cat confdefs.h >>conftest.$ac_ext
8003
cat >>conftest.$ac_ext <<_ACEOF
8004
/* end confdefs.h.  */
8005
#include 
8006
_ACEOF
8007
if { (ac_try="$ac_cpp conftest.$ac_ext"
8008
case "(($ac_try" in
8009
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8010
  *) ac_try_echo=$ac_try;;
8011
esac
8012
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8013
$as_echo "$ac_try_echo") >&5
8014
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8015
  ac_status=$?
8016
  grep -v '^ *+' conftest.er1 >conftest.err
8017
  rm -f conftest.er1
8018
  cat conftest.err >&5
8019
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020
  (exit $ac_status); } >/dev/null && {
8021
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8022
         test ! -s conftest.err
8023
       }; then
8024
  # Broken: success on invalid input.
8025
continue
8026
else
8027
  $as_echo "$as_me: failed program was:" >&5
8028
sed 's/^/| /' conftest.$ac_ext >&5
8029
 
8030
  # Passes both tests.
8031
ac_preproc_ok=:
8032
break
8033
fi
8034
 
8035
rm -f conftest.err conftest.$ac_ext
8036
 
8037
done
8038
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8039
rm -f conftest.err conftest.$ac_ext
8040
if $ac_preproc_ok; then
8041
  break
8042
fi
8043
 
8044
    done
8045
    ac_cv_prog_CPP=$CPP
8046
 
8047
fi
8048
  CPP=$ac_cv_prog_CPP
8049
else
8050
  ac_cv_prog_CPP=$CPP
8051
fi
8052
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
8053
$as_echo "$CPP" >&6; }
8054
ac_preproc_ok=false
8055
for ac_c_preproc_warn_flag in '' yes
8056
do
8057
  # Use a header file that comes with gcc, so configuring glibc
8058
  # with a fresh cross-compiler works.
8059
  # Prefer  to  if __STDC__ is defined, since
8060
  #  exists even on freestanding compilers.
8061
  # On the NeXT, cc -E runs the code through the compiler's parser,
8062
  # not just through cpp. "Syntax error" is here to catch this case.
8063
  cat >conftest.$ac_ext <<_ACEOF
8064
/* confdefs.h.  */
8065
_ACEOF
8066
cat confdefs.h >>conftest.$ac_ext
8067
cat >>conftest.$ac_ext <<_ACEOF
8068
/* end confdefs.h.  */
8069
#ifdef __STDC__
8070
# include 
8071
#else
8072
# include 
8073
#endif
8074
                     Syntax error
8075
_ACEOF
8076
if { (ac_try="$ac_cpp conftest.$ac_ext"
8077
case "(($ac_try" in
8078
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8079
  *) ac_try_echo=$ac_try;;
8080
esac
8081
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8082
$as_echo "$ac_try_echo") >&5
8083
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8084
  ac_status=$?
8085
  grep -v '^ *+' conftest.er1 >conftest.err
8086
  rm -f conftest.er1
8087
  cat conftest.err >&5
8088
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089
  (exit $ac_status); } >/dev/null && {
8090
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8091
         test ! -s conftest.err
8092
       }; then
8093
  :
8094
else
8095
  $as_echo "$as_me: failed program was:" >&5
8096
sed 's/^/| /' conftest.$ac_ext >&5
8097
 
8098
  # Broken: fails on valid input.
8099
continue
8100
fi
8101
 
8102
rm -f conftest.err conftest.$ac_ext
8103
 
8104
  # OK, works on sane cases.  Now check whether nonexistent headers
8105
  # can be detected and how.
8106
  cat >conftest.$ac_ext <<_ACEOF
8107
/* confdefs.h.  */
8108
_ACEOF
8109
cat confdefs.h >>conftest.$ac_ext
8110
cat >>conftest.$ac_ext <<_ACEOF
8111
/* end confdefs.h.  */
8112
#include 
8113
_ACEOF
8114
if { (ac_try="$ac_cpp conftest.$ac_ext"
8115
case "(($ac_try" in
8116
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8117
  *) ac_try_echo=$ac_try;;
8118
esac
8119
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8120
$as_echo "$ac_try_echo") >&5
8121
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8122
  ac_status=$?
8123
  grep -v '^ *+' conftest.er1 >conftest.err
8124
  rm -f conftest.er1
8125
  cat conftest.err >&5
8126
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127
  (exit $ac_status); } >/dev/null && {
8128
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8129
         test ! -s conftest.err
8130
       }; then
8131
  # Broken: success on invalid input.
8132
continue
8133
else
8134
  $as_echo "$as_me: failed program was:" >&5
8135
sed 's/^/| /' conftest.$ac_ext >&5
8136
 
8137
  # Passes both tests.
8138
ac_preproc_ok=:
8139
break
8140
fi
8141
 
8142
rm -f conftest.err conftest.$ac_ext
8143
 
8144
done
8145
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8146
rm -f conftest.err conftest.$ac_ext
8147
if $ac_preproc_ok; then
8148
  :
8149
else
8150
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8151
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8152
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
8153
See \`config.log' for more details." >&5
8154
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
8155
See \`config.log' for more details." >&2;}
8156
   { (exit 1); exit 1; }; }; }
8157
fi
8158
 
8159
ac_ext=c
8160
ac_cpp='$CPP $CPPFLAGS'
8161
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8162
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8163
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8164
 
8165
 
8166
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8167
$as_echo_n "checking for ANSI C header files... " >&6; }
8168
if test "${ac_cv_header_stdc+set}" = set; then
8169
  $as_echo_n "(cached) " >&6
8170
else
8171
  cat >conftest.$ac_ext <<_ACEOF
8172
/* confdefs.h.  */
8173
_ACEOF
8174
cat confdefs.h >>conftest.$ac_ext
8175
cat >>conftest.$ac_ext <<_ACEOF
8176
/* end confdefs.h.  */
8177
#include 
8178
#include 
8179
#include 
8180
#include 
8181
 
8182
int
8183
main ()
8184
{
8185
 
8186
  ;
8187
  return 0;
8188
}
8189
_ACEOF
8190
rm -f conftest.$ac_objext
8191
if { (ac_try="$ac_compile"
8192
case "(($ac_try" in
8193
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8194
  *) ac_try_echo=$ac_try;;
8195
esac
8196
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8197
$as_echo "$ac_try_echo") >&5
8198
  (eval "$ac_compile") 2>conftest.er1
8199
  ac_status=$?
8200
  grep -v '^ *+' conftest.er1 >conftest.err
8201
  rm -f conftest.er1
8202
  cat conftest.err >&5
8203
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204
  (exit $ac_status); } && {
8205
         test -z "$ac_c_werror_flag" ||
8206
         test ! -s conftest.err
8207
       } && test -s conftest.$ac_objext; then
8208
  ac_cv_header_stdc=yes
8209
else
8210
  $as_echo "$as_me: failed program was:" >&5
8211
sed 's/^/| /' conftest.$ac_ext >&5
8212
 
8213
        ac_cv_header_stdc=no
8214
fi
8215
 
8216
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8217
 
8218
if test $ac_cv_header_stdc = yes; then
8219
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8220
  cat >conftest.$ac_ext <<_ACEOF
8221
/* confdefs.h.  */
8222
_ACEOF
8223
cat confdefs.h >>conftest.$ac_ext
8224
cat >>conftest.$ac_ext <<_ACEOF
8225
/* end confdefs.h.  */
8226
#include 
8227
 
8228
_ACEOF
8229
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8230
  $EGREP "memchr" >/dev/null 2>&1; then
8231
  :
8232
else
8233
  ac_cv_header_stdc=no
8234
fi
8235
rm -f conftest*
8236
 
8237
fi
8238
 
8239
if test $ac_cv_header_stdc = yes; then
8240
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8241
  cat >conftest.$ac_ext <<_ACEOF
8242
/* confdefs.h.  */
8243
_ACEOF
8244
cat confdefs.h >>conftest.$ac_ext
8245
cat >>conftest.$ac_ext <<_ACEOF
8246
/* end confdefs.h.  */
8247
#include 
8248
 
8249
_ACEOF
8250
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8251
  $EGREP "free" >/dev/null 2>&1; then
8252
  :
8253
else
8254
  ac_cv_header_stdc=no
8255
fi
8256
rm -f conftest*
8257
 
8258
fi
8259
 
8260
if test $ac_cv_header_stdc = yes; then
8261
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8262
  if test "$cross_compiling" = yes; then
8263
  :
8264
else
8265
  cat >conftest.$ac_ext <<_ACEOF
8266
/* confdefs.h.  */
8267
_ACEOF
8268
cat confdefs.h >>conftest.$ac_ext
8269
cat >>conftest.$ac_ext <<_ACEOF
8270
/* end confdefs.h.  */
8271
#include 
8272
#include 
8273
#if ((' ' & 0x0FF) == 0x020)
8274
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8275
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8276
#else
8277
# define ISLOWER(c) \
8278
                   (('a' <= (c) && (c) <= 'i') \
8279
                     || ('j' <= (c) && (c) <= 'r') \
8280
                     || ('s' <= (c) && (c) <= 'z'))
8281
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8282
#endif
8283
 
8284
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8285
int
8286
main ()
8287
{
8288
  int i;
8289
  for (i = 0; i < 256; i++)
8290
    if (XOR (islower (i), ISLOWER (i))
8291
        || toupper (i) != TOUPPER (i))
8292
      return 2;
8293
  return 0;
8294
}
8295
_ACEOF
8296
rm -f conftest$ac_exeext
8297
if { (ac_try="$ac_link"
8298
case "(($ac_try" in
8299
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8300
  *) ac_try_echo=$ac_try;;
8301
esac
8302
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8303
$as_echo "$ac_try_echo") >&5
8304
  (eval "$ac_link") 2>&5
8305
  ac_status=$?
8306
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8308
  { (case "(($ac_try" in
8309
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8310
  *) ac_try_echo=$ac_try;;
8311
esac
8312
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8313
$as_echo "$ac_try_echo") >&5
8314
  (eval "$ac_try") 2>&5
8315
  ac_status=$?
8316
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317
  (exit $ac_status); }; }; then
8318
  :
8319
else
8320
  $as_echo "$as_me: program exited with status $ac_status" >&5
8321
$as_echo "$as_me: failed program was:" >&5
8322
sed 's/^/| /' conftest.$ac_ext >&5
8323
 
8324
( exit $ac_status )
8325
ac_cv_header_stdc=no
8326
fi
8327
rm -rf conftest.dSYM
8328
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8329
fi
8330
 
8331
 
8332
fi
8333
fi
8334
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8335
$as_echo "$ac_cv_header_stdc" >&6; }
8336
if test $ac_cv_header_stdc = yes; then
8337
 
8338
cat >>confdefs.h <<\_ACEOF
8339
#define STDC_HEADERS 1
8340
_ACEOF
8341
 
8342
fi
8343
 
8344
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8345
 
8346
 
8347
 
8348
 
8349
 
8350
 
8351
 
8352
 
8353
 
8354
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8355
                  inttypes.h stdint.h unistd.h
8356
do
8357
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8358
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8359
$as_echo_n "checking for $ac_header... " >&6; }
8360
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8361
  $as_echo_n "(cached) " >&6
8362
else
8363
  cat >conftest.$ac_ext <<_ACEOF
8364
/* confdefs.h.  */
8365
_ACEOF
8366
cat confdefs.h >>conftest.$ac_ext
8367
cat >>conftest.$ac_ext <<_ACEOF
8368
/* end confdefs.h.  */
8369
$ac_includes_default
8370
 
8371
#include <$ac_header>
8372
_ACEOF
8373
rm -f conftest.$ac_objext
8374
if { (ac_try="$ac_compile"
8375
case "(($ac_try" in
8376
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8377
  *) ac_try_echo=$ac_try;;
8378
esac
8379
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8380
$as_echo "$ac_try_echo") >&5
8381
  (eval "$ac_compile") 2>conftest.er1
8382
  ac_status=$?
8383
  grep -v '^ *+' conftest.er1 >conftest.err
8384
  rm -f conftest.er1
8385
  cat conftest.err >&5
8386
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387
  (exit $ac_status); } && {
8388
         test -z "$ac_c_werror_flag" ||
8389
         test ! -s conftest.err
8390
       } && test -s conftest.$ac_objext; then
8391
  eval "$as_ac_Header=yes"
8392
else
8393
  $as_echo "$as_me: failed program was:" >&5
8394
sed 's/^/| /' conftest.$ac_ext >&5
8395
 
8396
        eval "$as_ac_Header=no"
8397
fi
8398
 
8399
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8400
fi
8401
ac_res=`eval 'as_val=${'$as_ac_Header'}
8402
                 $as_echo "$as_val"'`
8403
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8404
$as_echo "$ac_res" >&6; }
8405
as_val=`eval 'as_val=${'$as_ac_Header'}
8406
                 $as_echo "$as_val"'`
8407
   if test "x$as_val" = x""yes; then
8408
  cat >>confdefs.h <<_ACEOF
8409
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8410
_ACEOF
8411
 
8412
fi
8413
 
8414
done
8415
 
8416
 
8417
 
8418
for ac_header in dlfcn.h
8419
do
8420
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8421
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8422
$as_echo_n "checking for $ac_header... " >&6; }
8423
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8424
  $as_echo_n "(cached) " >&6
8425
else
8426
  cat >conftest.$ac_ext <<_ACEOF
8427
/* confdefs.h.  */
8428
_ACEOF
8429
cat confdefs.h >>conftest.$ac_ext
8430
cat >>conftest.$ac_ext <<_ACEOF
8431
/* end confdefs.h.  */
8432
$ac_includes_default
8433
 
8434
#include <$ac_header>
8435
_ACEOF
8436
rm -f conftest.$ac_objext
8437
if { (ac_try="$ac_compile"
8438
case "(($ac_try" in
8439
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8440
  *) ac_try_echo=$ac_try;;
8441
esac
8442
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8443
$as_echo "$ac_try_echo") >&5
8444
  (eval "$ac_compile") 2>conftest.er1
8445
  ac_status=$?
8446
  grep -v '^ *+' conftest.er1 >conftest.err
8447
  rm -f conftest.er1
8448
  cat conftest.err >&5
8449
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450
  (exit $ac_status); } && {
8451
         test -z "$ac_c_werror_flag" ||
8452
         test ! -s conftest.err
8453
       } && test -s conftest.$ac_objext; then
8454
  eval "$as_ac_Header=yes"
8455
else
8456
  $as_echo "$as_me: failed program was:" >&5
8457
sed 's/^/| /' conftest.$ac_ext >&5
8458
 
8459
        eval "$as_ac_Header=no"
8460
fi
8461
 
8462
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8463
fi
8464
ac_res=`eval 'as_val=${'$as_ac_Header'}
8465
                 $as_echo "$as_val"'`
8466
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8467
$as_echo "$ac_res" >&6; }
8468
as_val=`eval 'as_val=${'$as_ac_Header'}
8469
                 $as_echo "$as_val"'`
8470
   if test "x$as_val" = x""yes; then
8471
  cat >>confdefs.h <<_ACEOF
8472
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8473
_ACEOF
8474
 
8475
fi
8476
 
8477
done
8478
 
8479
 
8480
 
8481
# Set options
8482
 
8483
 
8484
 
8485
        enable_dlopen=no
8486
 
8487
 
8488
 
8489
            # Check whether --enable-shared was given.
8490
if test "${enable_shared+set}" = set; then
8491
  enableval=$enable_shared; p=${PACKAGE-default}
8492
    case $enableval in
8493
    yes) enable_shared=yes ;;
8494
    no) enable_shared=no ;;
8495
    *)
8496
      enable_shared=no
8497
      # Look at the argument we got.  We use all the common list separators.
8498
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8499
      for pkg in $enableval; do
8500
        IFS="$lt_save_ifs"
8501
        if test "X$pkg" = "X$p"; then
8502
          enable_shared=yes
8503
        fi
8504
      done
8505
      IFS="$lt_save_ifs"
8506
      ;;
8507
    esac
8508
else
8509
  enable_shared=yes
8510
fi
8511
 
8512
 
8513
 
8514
 
8515
 
8516
 
8517
 
8518
 
8519
 
8520
  # Check whether --enable-static was given.
8521
if test "${enable_static+set}" = set; then
8522
  enableval=$enable_static; p=${PACKAGE-default}
8523
    case $enableval in
8524
    yes) enable_static=yes ;;
8525
    no) enable_static=no ;;
8526
    *)
8527
     enable_static=no
8528
      # Look at the argument we got.  We use all the common list separators.
8529
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8530
      for pkg in $enableval; do
8531
        IFS="$lt_save_ifs"
8532
        if test "X$pkg" = "X$p"; then
8533
          enable_static=yes
8534
        fi
8535
      done
8536
      IFS="$lt_save_ifs"
8537
      ;;
8538
    esac
8539
else
8540
  enable_static=yes
8541
fi
8542
 
8543
 
8544
 
8545
 
8546
 
8547
 
8548
 
8549
 
8550
 
8551
 
8552
# Check whether --with-pic was given.
8553
if test "${with_pic+set}" = set; then
8554
  withval=$with_pic; pic_mode="$withval"
8555
else
8556
  pic_mode=default
8557
fi
8558
 
8559
 
8560
test -z "$pic_mode" && pic_mode=default
8561
 
8562
 
8563
 
8564
 
8565
 
8566
 
8567
 
8568
  # Check whether --enable-fast-install was given.
8569
if test "${enable_fast_install+set}" = set; then
8570
  enableval=$enable_fast_install; p=${PACKAGE-default}
8571
    case $enableval in
8572
    yes) enable_fast_install=yes ;;
8573
    no) enable_fast_install=no ;;
8574
    *)
8575
      enable_fast_install=no
8576
      # Look at the argument we got.  We use all the common list separators.
8577
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8578
      for pkg in $enableval; do
8579
        IFS="$lt_save_ifs"
8580
        if test "X$pkg" = "X$p"; then
8581
          enable_fast_install=yes
8582
        fi
8583
      done
8584
      IFS="$lt_save_ifs"
8585
      ;;
8586
    esac
8587
else
8588
  enable_fast_install=yes
8589
fi
8590
 
8591
 
8592
 
8593
 
8594
 
8595
 
8596
 
8597
 
8598
 
8599
 
8600
 
8601
# This can be used to rebuild libtool when needed
8602
LIBTOOL_DEPS="$ltmain"
8603
 
8604
# Always use our own libtool.
8605
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8606
 
8607
 
8608
 
8609
 
8610
 
8611
 
8612
 
8613
 
8614
 
8615
 
8616
 
8617
 
8618
 
8619
 
8620
 
8621
 
8622
 
8623
 
8624
 
8625
 
8626
 
8627
 
8628
 
8629
 
8630
 
8631
test -z "$LN_S" && LN_S="ln -s"
8632
 
8633
 
8634
 
8635
 
8636
 
8637
 
8638
 
8639
 
8640
 
8641
 
8642
 
8643
 
8644
 
8645
 
8646
if test -n "${ZSH_VERSION+set}" ; then
8647
   setopt NO_GLOB_SUBST
8648
fi
8649
 
8650
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
8651
$as_echo_n "checking for objdir... " >&6; }
8652
if test "${lt_cv_objdir+set}" = set; then
8653
  $as_echo_n "(cached) " >&6
8654
else
8655
  rm -f .libs 2>/dev/null
8656
mkdir .libs 2>/dev/null
8657
if test -d .libs; then
8658
  lt_cv_objdir=.libs
8659
else
8660
  # MS-DOS does not allow filenames that begin with a dot.
8661
  lt_cv_objdir=_libs
8662
fi
8663
rmdir .libs 2>/dev/null
8664
fi
8665
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8666
$as_echo "$lt_cv_objdir" >&6; }
8667
objdir=$lt_cv_objdir
8668
 
8669
 
8670
 
8671
 
8672
 
8673
cat >>confdefs.h <<_ACEOF
8674
#define LT_OBJDIR "$lt_cv_objdir/"
8675
_ACEOF
8676
 
8677
 
8678
 
8679
 
8680
 
8681
 
8682
 
8683
 
8684
 
8685
 
8686
 
8687
 
8688
 
8689
 
8690
 
8691
 
8692
 
8693
case $host_os in
8694
aix3*)
8695
  # AIX sometimes has problems with the GCC collect2 program.  For some
8696
  # reason, if we set the COLLECT_NAMES environment variable, the problems
8697
  # vanish in a puff of smoke.
8698
  if test "X${COLLECT_NAMES+set}" != Xset; then
8699
    COLLECT_NAMES=
8700
    export COLLECT_NAMES
8701
  fi
8702
  ;;
8703
esac
8704
 
8705
# Sed substitution that helps us do robust quoting.  It backslashifies
8706
# metacharacters that are still active within double-quoted strings.
8707
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8708
 
8709
# Same as above, but do not quote variable references.
8710
double_quote_subst='s/\(["`\\]\)/\\\1/g'
8711
 
8712
# Sed substitution to delay expansion of an escaped shell variable in a
8713
# double_quote_subst'ed string.
8714
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8715
 
8716
# Sed substitution to delay expansion of an escaped single quote.
8717
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8718
 
8719
# Sed substitution to avoid accidental globbing in evaled expressions
8720
no_glob_subst='s/\*/\\\*/g'
8721
 
8722
# Global variables:
8723
ofile=libtool
8724
can_build_shared=yes
8725
 
8726
# All known linkers require a `.a' archive for static linking (except MSVC,
8727
# which needs '.lib').
8728
libext=a
8729
 
8730
with_gnu_ld="$lt_cv_prog_gnu_ld"
8731
 
8732
old_CC="$CC"
8733
old_CFLAGS="$CFLAGS"
8734
 
8735
# Set sane defaults for various variables
8736
test -z "$CC" && CC=cc
8737
test -z "$LTCC" && LTCC=$CC
8738
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8739
test -z "$LD" && LD=ld
8740
test -z "$ac_objext" && ac_objext=o
8741
 
8742
for cc_temp in $compiler""; do
8743
  case $cc_temp in
8744
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8745
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8746
    \-*) ;;
8747
    *) break;;
8748
  esac
8749
done
8750
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8751
 
8752
 
8753
# Only perform the check for file, if the check method requires it
8754
test -z "$MAGIC_CMD" && MAGIC_CMD=file
8755
case $deplibs_check_method in
8756
file_magic*)
8757
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8758
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8759
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8760
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8761
  $as_echo_n "(cached) " >&6
8762
else
8763
  case $MAGIC_CMD in
8764
[\\/*] |  ?:[\\/]*)
8765
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8766
  ;;
8767
*)
8768
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8769
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8770
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8771
  for ac_dir in $ac_dummy; do
8772
    IFS="$lt_save_ifs"
8773
    test -z "$ac_dir" && ac_dir=.
8774
    if test -f $ac_dir/${ac_tool_prefix}file; then
8775
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8776
      if test -n "$file_magic_test_file"; then
8777
        case $deplibs_check_method in
8778
        "file_magic "*)
8779
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8780
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8781
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8782
            $EGREP "$file_magic_regex" > /dev/null; then
8783
            :
8784
          else
8785
            cat <<_LT_EOF 1>&2
8786
 
8787
*** Warning: the command libtool uses to detect shared libraries,
8788
*** $file_magic_cmd, produces output that libtool cannot recognize.
8789
*** The result is that libtool may fail to recognize shared libraries
8790
*** as such.  This will affect the creation of libtool libraries that
8791
*** depend on shared libraries, but programs linked with such libtool
8792
*** libraries will work regardless of this problem.  Nevertheless, you
8793
*** may want to report the problem to your system manager and/or to
8794
*** bug-libtool@gnu.org
8795
 
8796
_LT_EOF
8797
          fi ;;
8798
        esac
8799
      fi
8800
      break
8801
    fi
8802
  done
8803
  IFS="$lt_save_ifs"
8804
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8805
  ;;
8806
esac
8807
fi
8808
 
8809
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8810
if test -n "$MAGIC_CMD"; then
8811
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8812
$as_echo "$MAGIC_CMD" >&6; }
8813
else
8814
  { $as_echo "$as_me:$LINENO: result: no" >&5
8815
$as_echo "no" >&6; }
8816
fi
8817
 
8818
 
8819
 
8820
 
8821
 
8822
if test -z "$lt_cv_path_MAGIC_CMD"; then
8823
  if test -n "$ac_tool_prefix"; then
8824
    { $as_echo "$as_me:$LINENO: checking for file" >&5
8825
$as_echo_n "checking for file... " >&6; }
8826
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8827
  $as_echo_n "(cached) " >&6
8828
else
8829
  case $MAGIC_CMD in
8830
[\\/*] |  ?:[\\/]*)
8831
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8832
  ;;
8833
*)
8834
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8835
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8836
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8837
  for ac_dir in $ac_dummy; do
8838
    IFS="$lt_save_ifs"
8839
    test -z "$ac_dir" && ac_dir=.
8840
    if test -f $ac_dir/file; then
8841
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8842
      if test -n "$file_magic_test_file"; then
8843
        case $deplibs_check_method in
8844
        "file_magic "*)
8845
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8846
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8847
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8848
            $EGREP "$file_magic_regex" > /dev/null; then
8849
            :
8850
          else
8851
            cat <<_LT_EOF 1>&2
8852
 
8853
*** Warning: the command libtool uses to detect shared libraries,
8854
*** $file_magic_cmd, produces output that libtool cannot recognize.
8855
*** The result is that libtool may fail to recognize shared libraries
8856
*** as such.  This will affect the creation of libtool libraries that
8857
*** depend on shared libraries, but programs linked with such libtool
8858
*** libraries will work regardless of this problem.  Nevertheless, you
8859
*** may want to report the problem to your system manager and/or to
8860
*** bug-libtool@gnu.org
8861
 
8862
_LT_EOF
8863
          fi ;;
8864
        esac
8865
      fi
8866
      break
8867
    fi
8868
  done
8869
  IFS="$lt_save_ifs"
8870
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8871
  ;;
8872
esac
8873
fi
8874
 
8875
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8876
if test -n "$MAGIC_CMD"; then
8877
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8878
$as_echo "$MAGIC_CMD" >&6; }
8879
else
8880
  { $as_echo "$as_me:$LINENO: result: no" >&5
8881
$as_echo "no" >&6; }
8882
fi
8883
 
8884
 
8885
  else
8886
    MAGIC_CMD=:
8887
  fi
8888
fi
8889
 
8890
  fi
8891
  ;;
8892
esac
8893
 
8894
# Use C for the default configuration in the libtool script
8895
 
8896
lt_save_CC="$CC"
8897
ac_ext=c
8898
ac_cpp='$CPP $CPPFLAGS'
8899
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8900
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8901
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8902
 
8903
 
8904
# Source file extension for C test sources.
8905
ac_ext=c
8906
 
8907
# Object file extension for compiled C test sources.
8908
objext=o
8909
objext=$objext
8910
 
8911
# Code to be used in simple compile tests
8912
lt_simple_compile_test_code="int some_variable = 0;"
8913
 
8914
# Code to be used in simple link tests
8915
lt_simple_link_test_code='int main(){return(0);}'
8916
 
8917
 
8918
 
8919
 
8920
 
8921
 
8922
 
8923
# If no C compiler was specified, use CC.
8924
LTCC=${LTCC-"$CC"}
8925
 
8926
# If no C compiler flags were specified, use CFLAGS.
8927
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8928
 
8929
# Allow CC to be a program name with arguments.
8930
compiler=$CC
8931
 
8932
# Save the default compiler, since it gets overwritten when the other
8933
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8934
compiler_DEFAULT=$CC
8935
 
8936
# save warnings/boilerplate of simple test code
8937
ac_outfile=conftest.$ac_objext
8938
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8939
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8940
_lt_compiler_boilerplate=`cat conftest.err`
8941
$RM conftest*
8942
 
8943
ac_outfile=conftest.$ac_objext
8944
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8945
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8946
_lt_linker_boilerplate=`cat conftest.err`
8947
$RM -r conftest*
8948
 
8949
 
8950
## CAVEAT EMPTOR:
8951
## There is no encapsulation within the following macros, do not change
8952
## the running order or otherwise move them around unless you know exactly
8953
## what you are doing...
8954
if test -n "$compiler"; then
8955
 
8956
lt_prog_compiler_no_builtin_flag=
8957
 
8958
if test "$GCC" = yes; then
8959
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8960
 
8961
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8962
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8963
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8964
  $as_echo_n "(cached) " >&6
8965
else
8966
  lt_cv_prog_compiler_rtti_exceptions=no
8967
   ac_outfile=conftest.$ac_objext
8968
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8969
   lt_compiler_flag="-fno-rtti -fno-exceptions"
8970
   # Insert the option either (1) after the last *FLAGS variable, or
8971
   # (2) before a word containing "conftest.", or (3) at the end.
8972
   # Note that $ac_compile itself does not contain backslashes and begins
8973
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8974
   # The option is referenced via a variable to avoid confusing sed.
8975
   lt_compile=`echo "$ac_compile" | $SED \
8976
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8977
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8978
   -e 's:$: $lt_compiler_flag:'`
8979
   (eval echo "\"\$as_me:8979: $lt_compile\"" >&5)
8980
   (eval "$lt_compile" 2>conftest.err)
8981
   ac_status=$?
8982
   cat conftest.err >&5
8983
   echo "$as_me:8983: \$? = $ac_status" >&5
8984
   if (exit $ac_status) && test -s "$ac_outfile"; then
8985
     # The compiler can only warn and ignore the option if not recognized
8986
     # So say no if there are warnings other than the usual output.
8987
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8988
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8989
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8990
       lt_cv_prog_compiler_rtti_exceptions=yes
8991
     fi
8992
   fi
8993
   $RM conftest*
8994
 
8995
fi
8996
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8997
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8998
 
8999
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9000
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9001
else
9002
    :
9003
fi
9004
 
9005
fi
9006
 
9007
 
9008
 
9009
 
9010
 
9011
 
9012
  lt_prog_compiler_wl=
9013
lt_prog_compiler_pic=
9014
lt_prog_compiler_static=
9015
 
9016
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9017
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9018
 
9019
  if test "$GCC" = yes; then
9020
    lt_prog_compiler_wl='-Wl,'
9021
    lt_prog_compiler_static='-static'
9022
 
9023
    case $host_os in
9024
      aix*)
9025
      # All AIX code is PIC.
9026
      if test "$host_cpu" = ia64; then
9027
        # AIX 5 now supports IA64 processor
9028
        lt_prog_compiler_static='-Bstatic'
9029
      fi
9030
      ;;
9031
 
9032
    amigaos*)
9033
      case $host_cpu in
9034
      powerpc)
9035
            # see comment about AmigaOS4 .so support
9036
            lt_prog_compiler_pic='-fPIC'
9037
        ;;
9038
      m68k)
9039
            # FIXME: we need at least 68020 code to build shared libraries, but
9040
            # adding the `-m68020' flag to GCC prevents building anything better,
9041
            # like `-m68040'.
9042
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9043
        ;;
9044
      esac
9045
      ;;
9046
 
9047
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9048
      # PIC is the default for these OSes.
9049
      ;;
9050
 
9051
    mingw* | cygwin* | pw32* | os2* | cegcc*)
9052
      # This hack is so that the source file can tell whether it is being
9053
      # built for inclusion in a dll (and should export symbols for example).
9054
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9055
      # (--disable-auto-import) libraries
9056
      lt_prog_compiler_pic='-DDLL_EXPORT'
9057
      ;;
9058
 
9059
    darwin* | rhapsody*)
9060
      # PIC is the default on this platform
9061
      # Common symbols not allowed in MH_DYLIB files
9062
      lt_prog_compiler_pic='-fno-common'
9063
      ;;
9064
 
9065
    hpux*)
9066
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9067
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9068
      # sets the default TLS model and affects inlining.
9069
      case $host_cpu in
9070
      hppa*64*)
9071
        # +Z the default
9072
        ;;
9073
      *)
9074
        lt_prog_compiler_pic='-fPIC'
9075
        ;;
9076
      esac
9077
      ;;
9078
 
9079
    interix[3-9]*)
9080
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9081
      # Instead, we relocate shared libraries at runtime.
9082
      ;;
9083
 
9084
    msdosdjgpp*)
9085
      # Just because we use GCC doesn't mean we suddenly get shared libraries
9086
      # on systems that don't support them.
9087
      lt_prog_compiler_can_build_shared=no
9088
      enable_shared=no
9089
      ;;
9090
 
9091
    *nto* | *qnx*)
9092
      # QNX uses GNU C++, but need to define -shared option too, otherwise
9093
      # it will coredump.
9094
      lt_prog_compiler_pic='-fPIC -shared'
9095
      ;;
9096
 
9097
    sysv4*MP*)
9098
      if test -d /usr/nec; then
9099
        lt_prog_compiler_pic=-Kconform_pic
9100
      fi
9101
      ;;
9102
 
9103
    *)
9104
      lt_prog_compiler_pic='-fPIC'
9105
      ;;
9106
    esac
9107
  else
9108
    # PORTME Check for flag to pass linker flags through the system compiler.
9109
    case $host_os in
9110
    aix*)
9111
      lt_prog_compiler_wl='-Wl,'
9112
      if test "$host_cpu" = ia64; then
9113
        # AIX 5 now supports IA64 processor
9114
        lt_prog_compiler_static='-Bstatic'
9115
      else
9116
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9117
      fi
9118
      ;;
9119
 
9120
    mingw* | cygwin* | pw32* | os2* | cegcc*)
9121
      # This hack is so that the source file can tell whether it is being
9122
      # built for inclusion in a dll (and should export symbols for example).
9123
      lt_prog_compiler_pic='-DDLL_EXPORT'
9124
      ;;
9125
 
9126
    hpux9* | hpux10* | hpux11*)
9127
      lt_prog_compiler_wl='-Wl,'
9128
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9129
      # not for PA HP-UX.
9130
      case $host_cpu in
9131
      hppa*64*|ia64*)
9132
        # +Z the default
9133
        ;;
9134
      *)
9135
        lt_prog_compiler_pic='+Z'
9136
        ;;
9137
      esac
9138
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9139
      lt_prog_compiler_static='${wl}-a ${wl}archive'
9140
      ;;
9141
 
9142
    irix5* | irix6* | nonstopux*)
9143
      lt_prog_compiler_wl='-Wl,'
9144
      # PIC (with -KPIC) is the default.
9145
      lt_prog_compiler_static='-non_shared'
9146
      ;;
9147
 
9148
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
9149
      case $cc_basename in
9150
      # old Intel for x86_64 which still supported -KPIC.
9151
      ecc*)
9152
        lt_prog_compiler_wl='-Wl,'
9153
        lt_prog_compiler_pic='-KPIC'
9154
        lt_prog_compiler_static='-static'
9155
        ;;
9156
      # icc used to be incompatible with GCC.
9157
      # ICC 10 doesn't accept -KPIC any more.
9158
      icc* | ifort*)
9159
        lt_prog_compiler_wl='-Wl,'
9160
        lt_prog_compiler_pic='-fPIC'
9161
        lt_prog_compiler_static='-static'
9162
        ;;
9163
      # Lahey Fortran 8.1.
9164
      lf95*)
9165
        lt_prog_compiler_wl='-Wl,'
9166
        lt_prog_compiler_pic='--shared'
9167
        lt_prog_compiler_static='--static'
9168
        ;;
9169
      pgcc* | pgf77* | pgf90* | pgf95*)
9170
        # Portland Group compilers (*not* the Pentium gcc compiler,
9171
        # which looks to be a dead project)
9172
        lt_prog_compiler_wl='-Wl,'
9173
        lt_prog_compiler_pic='-fpic'
9174
        lt_prog_compiler_static='-Bstatic'
9175
        ;;
9176
      ccc*)
9177
        lt_prog_compiler_wl='-Wl,'
9178
        # All Alpha code is PIC.
9179
        lt_prog_compiler_static='-non_shared'
9180
        ;;
9181
      xl*)
9182
        # IBM XL C 8.0/Fortran 10.1 on PPC
9183
        lt_prog_compiler_wl='-Wl,'
9184
        lt_prog_compiler_pic='-qpic'
9185
        lt_prog_compiler_static='-qstaticlink'
9186
        ;;
9187
      *)
9188
        case `$CC -V 2>&1 | sed 5q` in
9189
        *Sun\ C*)
9190
          # Sun C 5.9
9191
          lt_prog_compiler_pic='-KPIC'
9192
          lt_prog_compiler_static='-Bstatic'
9193
          lt_prog_compiler_wl='-Wl,'
9194
          ;;
9195
        *Sun\ F*)
9196
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
9197
          lt_prog_compiler_pic='-KPIC'
9198
          lt_prog_compiler_static='-Bstatic'
9199
          lt_prog_compiler_wl=''
9200
          ;;
9201
        esac
9202
        ;;
9203
      esac
9204
      ;;
9205
 
9206
    newsos6)
9207
      lt_prog_compiler_pic='-KPIC'
9208
      lt_prog_compiler_static='-Bstatic'
9209
      ;;
9210
 
9211
    *nto* | *qnx*)
9212
      # QNX uses GNU C++, but need to define -shared option too, otherwise
9213
      # it will coredump.
9214
      lt_prog_compiler_pic='-fPIC -shared'
9215
      ;;
9216
 
9217
    osf3* | osf4* | osf5*)
9218
      lt_prog_compiler_wl='-Wl,'
9219
      # All OSF/1 code is PIC.
9220
      lt_prog_compiler_static='-non_shared'
9221
      ;;
9222
 
9223
    rdos*)
9224
      lt_prog_compiler_static='-non_shared'
9225
      ;;
9226
 
9227
    solaris*)
9228
      lt_prog_compiler_pic='-KPIC'
9229
      lt_prog_compiler_static='-Bstatic'
9230
      case $cc_basename in
9231
      f77* | f90* | f95*)
9232
        lt_prog_compiler_wl='-Qoption ld ';;
9233
      *)
9234
        lt_prog_compiler_wl='-Wl,';;
9235
      esac
9236
      ;;
9237
 
9238
    sunos4*)
9239
      lt_prog_compiler_wl='-Qoption ld '
9240
      lt_prog_compiler_pic='-PIC'
9241
      lt_prog_compiler_static='-Bstatic'
9242
      ;;
9243
 
9244
    sysv4 | sysv4.2uw2* | sysv4.3*)
9245
      lt_prog_compiler_wl='-Wl,'
9246
      lt_prog_compiler_pic='-KPIC'
9247
      lt_prog_compiler_static='-Bstatic'
9248
      ;;
9249
 
9250
    sysv4*MP*)
9251
      if test -d /usr/nec ;then
9252
        lt_prog_compiler_pic='-Kconform_pic'
9253
        lt_prog_compiler_static='-Bstatic'
9254
      fi
9255
      ;;
9256
 
9257
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9258
      lt_prog_compiler_wl='-Wl,'
9259
      lt_prog_compiler_pic='-KPIC'
9260
      lt_prog_compiler_static='-Bstatic'
9261
      ;;
9262
 
9263
    unicos*)
9264
      lt_prog_compiler_wl='-Wl,'
9265
      lt_prog_compiler_can_build_shared=no
9266
      ;;
9267
 
9268
    uts4*)
9269
      lt_prog_compiler_pic='-pic'
9270
      lt_prog_compiler_static='-Bstatic'
9271
      ;;
9272
 
9273
    *)
9274
      lt_prog_compiler_can_build_shared=no
9275
      ;;
9276
    esac
9277
  fi
9278
 
9279
case $host_os in
9280
  # For platforms which do not support PIC, -DPIC is meaningless:
9281
  *djgpp*)
9282
    lt_prog_compiler_pic=
9283
    ;;
9284
  *)
9285
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9286
    ;;
9287
esac
9288
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9289
$as_echo "$lt_prog_compiler_pic" >&6; }
9290
 
9291
 
9292
 
9293
 
9294
 
9295
 
9296
#
9297
# Check to make sure the PIC flag actually works.
9298
#
9299
if test -n "$lt_prog_compiler_pic"; then
9300
  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9301
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9302
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9303
  $as_echo_n "(cached) " >&6
9304
else
9305
  lt_cv_prog_compiler_pic_works=no
9306
   ac_outfile=conftest.$ac_objext
9307
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9308
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9309
   # Insert the option either (1) after the last *FLAGS variable, or
9310
   # (2) before a word containing "conftest.", or (3) at the end.
9311
   # Note that $ac_compile itself does not contain backslashes and begins
9312
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9313
   # The option is referenced via a variable to avoid confusing sed.
9314
   lt_compile=`echo "$ac_compile" | $SED \
9315
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9316
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9317
   -e 's:$: $lt_compiler_flag:'`
9318
   (eval echo "\"\$as_me:9318: $lt_compile\"" >&5)
9319
   (eval "$lt_compile" 2>conftest.err)
9320
   ac_status=$?
9321
   cat conftest.err >&5
9322
   echo "$as_me:9322: \$? = $ac_status" >&5
9323
   if (exit $ac_status) && test -s "$ac_outfile"; then
9324
     # The compiler can only warn and ignore the option if not recognized
9325
     # So say no if there are warnings other than the usual output.
9326
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9327
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9328
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9329
       lt_cv_prog_compiler_pic_works=yes
9330
     fi
9331
   fi
9332
   $RM conftest*
9333
 
9334
fi
9335
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9336
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9337
 
9338
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9339
    case $lt_prog_compiler_pic in
9340
     "" | " "*) ;;
9341
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9342
     esac
9343
else
9344
    lt_prog_compiler_pic=
9345
     lt_prog_compiler_can_build_shared=no
9346
fi
9347
 
9348
fi
9349
 
9350
 
9351
 
9352
 
9353
 
9354
 
9355
#
9356
# Check to make sure the static flag actually works.
9357
#
9358
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9359
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9360
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9361
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9362
  $as_echo_n "(cached) " >&6
9363
else
9364
  lt_cv_prog_compiler_static_works=no
9365
   save_LDFLAGS="$LDFLAGS"
9366
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9367
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9368
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9369
     # The linker can only warn and ignore the option if not recognized
9370
     # So say no if there are warnings
9371
     if test -s conftest.err; then
9372
       # Append any errors to the config.log.
9373
       cat conftest.err 1>&5
9374
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9375
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9376
       if diff conftest.exp conftest.er2 >/dev/null; then
9377
         lt_cv_prog_compiler_static_works=yes
9378
       fi
9379
     else
9380
       lt_cv_prog_compiler_static_works=yes
9381
     fi
9382
   fi
9383
   $RM -r conftest*
9384
   LDFLAGS="$save_LDFLAGS"
9385
 
9386
fi
9387
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9388
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9389
 
9390
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9391
    :
9392
else
9393
    lt_prog_compiler_static=
9394
fi
9395
 
9396
 
9397
 
9398
 
9399
 
9400
 
9401
 
9402
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9403
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9404
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9405
  $as_echo_n "(cached) " >&6
9406
else
9407
  lt_cv_prog_compiler_c_o=no
9408
   $RM -r conftest 2>/dev/null
9409
   mkdir conftest
9410
   cd conftest
9411
   mkdir out
9412
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9413
 
9414
   lt_compiler_flag="-o out/conftest2.$ac_objext"
9415
   # Insert the option either (1) after the last *FLAGS variable, or
9416
   # (2) before a word containing "conftest.", or (3) at the end.
9417
   # Note that $ac_compile itself does not contain backslashes and begins
9418
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9419
   lt_compile=`echo "$ac_compile" | $SED \
9420
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9421
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9422
   -e 's:$: $lt_compiler_flag:'`
9423
   (eval echo "\"\$as_me:9423: $lt_compile\"" >&5)
9424
   (eval "$lt_compile" 2>out/conftest.err)
9425
   ac_status=$?
9426
   cat out/conftest.err >&5
9427
   echo "$as_me:9427: \$? = $ac_status" >&5
9428
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9429
   then
9430
     # The compiler can only warn and ignore the option if not recognized
9431
     # So say no if there are warnings
9432
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9433
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9434
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9435
       lt_cv_prog_compiler_c_o=yes
9436
     fi
9437
   fi
9438
   chmod u+w . 2>&5
9439
   $RM conftest*
9440
   # SGI C++ compiler will create directory out/ii_files/ for
9441
   # template instantiation
9442
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9443
   $RM out/* && rmdir out
9444
   cd ..
9445
   $RM -r conftest
9446
   $RM conftest*
9447
 
9448
fi
9449
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9450
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9451
 
9452
 
9453
 
9454
 
9455
 
9456
 
9457
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9458
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9459
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9460
  $as_echo_n "(cached) " >&6
9461
else
9462
  lt_cv_prog_compiler_c_o=no
9463
   $RM -r conftest 2>/dev/null
9464
   mkdir conftest
9465
   cd conftest
9466
   mkdir out
9467
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9468
 
9469
   lt_compiler_flag="-o out/conftest2.$ac_objext"
9470
   # Insert the option either (1) after the last *FLAGS variable, or
9471
   # (2) before a word containing "conftest.", or (3) at the end.
9472
   # Note that $ac_compile itself does not contain backslashes and begins
9473
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9474
   lt_compile=`echo "$ac_compile" | $SED \
9475
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9476
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9477
   -e 's:$: $lt_compiler_flag:'`
9478
   (eval echo "\"\$as_me:9478: $lt_compile\"" >&5)
9479
   (eval "$lt_compile" 2>out/conftest.err)
9480
   ac_status=$?
9481
   cat out/conftest.err >&5
9482
   echo "$as_me:9482: \$? = $ac_status" >&5
9483
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9484
   then
9485
     # The compiler can only warn and ignore the option if not recognized
9486
     # So say no if there are warnings
9487
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9488
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9489
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9490
       lt_cv_prog_compiler_c_o=yes
9491
     fi
9492
   fi
9493
   chmod u+w . 2>&5
9494
   $RM conftest*
9495
   # SGI C++ compiler will create directory out/ii_files/ for
9496
   # template instantiation
9497
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9498
   $RM out/* && rmdir out
9499
   cd ..
9500
   $RM -r conftest
9501
   $RM conftest*
9502
 
9503
fi
9504
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9505
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9506
 
9507
 
9508
 
9509
 
9510
hard_links="nottested"
9511
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9512
  # do not overwrite the value of need_locks provided by the user
9513
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9514
$as_echo_n "checking if we can lock with hard links... " >&6; }
9515
  hard_links=yes
9516
  $RM conftest*
9517
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9518
  touch conftest.a
9519
  ln conftest.a conftest.b 2>&5 || hard_links=no
9520
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9521
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9522
$as_echo "$hard_links" >&6; }
9523
  if test "$hard_links" = no; then
9524
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9525
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9526
    need_locks=warn
9527
  fi
9528
else
9529
  need_locks=no
9530
fi
9531
 
9532
 
9533
 
9534
 
9535
 
9536
 
9537
  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9538
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9539
 
9540
  runpath_var=
9541
  allow_undefined_flag=
9542
  always_export_symbols=no
9543
  archive_cmds=
9544
  archive_expsym_cmds=
9545
  compiler_needs_object=no
9546
  enable_shared_with_static_runtimes=no
9547
  export_dynamic_flag_spec=
9548
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9549
  hardcode_automatic=no
9550
  hardcode_direct=no
9551
  hardcode_direct_absolute=no
9552
  hardcode_libdir_flag_spec=
9553
  hardcode_libdir_flag_spec_ld=
9554
  hardcode_libdir_separator=
9555
  hardcode_minus_L=no
9556
  hardcode_shlibpath_var=unsupported
9557
  inherit_rpath=no
9558
  link_all_deplibs=unknown
9559
  module_cmds=
9560
  module_expsym_cmds=
9561
  old_archive_from_new_cmds=
9562
  old_archive_from_expsyms_cmds=
9563
  thread_safe_flag_spec=
9564
  whole_archive_flag_spec=
9565
  # include_expsyms should be a list of space-separated symbols to be *always*
9566
  # included in the symbol list
9567
  include_expsyms=
9568
  # exclude_expsyms can be an extended regexp of symbols to exclude
9569
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9570
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9571
  # as well as any symbol that contains `d'.
9572
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9573
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9574
  # platforms (ab)use it in PIC code, but their linkers get confused if
9575
  # the symbol is explicitly referenced.  Since portable code cannot
9576
  # rely on this symbol name, it's probably fine to never include it in
9577
  # preloaded symbol tables.
9578
  # Exclude shared library initialization/finalization symbols.
9579
  extract_expsyms_cmds=
9580
 
9581
  case $host_os in
9582
  cygwin* | mingw* | pw32* | cegcc*)
9583
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9584
    # When not using gcc, we currently assume that we are using
9585
    # Microsoft Visual C++.
9586
    if test "$GCC" != yes; then
9587
      with_gnu_ld=no
9588
    fi
9589
    ;;
9590
  interix*)
9591
    # we just hope/assume this is gcc and not c89 (= MSVC++)
9592
    with_gnu_ld=yes
9593
    ;;
9594
  openbsd*)
9595
    with_gnu_ld=no
9596
    ;;
9597
  esac
9598
 
9599
  ld_shlibs=yes
9600
  if test "$with_gnu_ld" = yes; then
9601
    # If archive_cmds runs LD, not CC, wlarc should be empty
9602
    wlarc='${wl}'
9603
 
9604
    # Set some defaults for GNU ld with shared library support. These
9605
    # are reset later if shared libraries are not supported. Putting them
9606
    # here allows them to be overridden if necessary.
9607
    runpath_var=LD_RUN_PATH
9608
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9609
    export_dynamic_flag_spec='${wl}--export-dynamic'
9610
    # ancient GNU ld didn't support --whole-archive et. al.
9611
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9612
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9613
    else
9614
      whole_archive_flag_spec=
9615
    fi
9616
    supports_anon_versioning=no
9617
    case `$LD -v 2>&1` in
9618
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9619
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9620
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9621
      *\ 2.11.*) ;; # other 2.11 versions
9622
      *) supports_anon_versioning=yes ;;
9623
    esac
9624
 
9625
    # See if GNU ld supports shared libraries.
9626
    case $host_os in
9627
    aix[3-9]*)
9628
      # On AIX/PPC, the GNU linker is very broken
9629
      if test "$host_cpu" != ia64; then
9630
        ld_shlibs=no
9631
        cat <<_LT_EOF 1>&2
9632
 
9633
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9634
*** to be unable to reliably create shared libraries on AIX.
9635
*** Therefore, libtool is disabling shared libraries support.  If you
9636
*** really care for shared libraries, you may want to modify your PATH
9637
*** so that a non-GNU linker is found, and then restart.
9638
 
9639
_LT_EOF
9640
      fi
9641
      ;;
9642
 
9643
    amigaos*)
9644
      case $host_cpu in
9645
      powerpc)
9646
            # see comment about AmigaOS4 .so support
9647
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9648
            archive_expsym_cmds=''
9649
        ;;
9650
      m68k)
9651
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9652
            hardcode_libdir_flag_spec='-L$libdir'
9653
            hardcode_minus_L=yes
9654
        ;;
9655
      esac
9656
      ;;
9657
 
9658
    beos*)
9659
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9660
        allow_undefined_flag=unsupported
9661
        # Joseph Beckenbach  says some releases of gcc
9662
        # support --undefined.  This deserves some investigation.  FIXME
9663
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9664
      else
9665
        ld_shlibs=no
9666
      fi
9667
      ;;
9668
 
9669
    cygwin* | mingw* | pw32* | cegcc*)
9670
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9671
      # as there is no search path for DLLs.
9672
      hardcode_libdir_flag_spec='-L$libdir'
9673
      allow_undefined_flag=unsupported
9674
      always_export_symbols=no
9675
      enable_shared_with_static_runtimes=yes
9676
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9677
 
9678
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9679
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9680
        # If the export-symbols file already is a .def file (1st line
9681
        # is EXPORTS), use it as is; otherwise, prepend...
9682
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9683
          cp $export_symbols $output_objdir/$soname.def;
9684
        else
9685
          echo EXPORTS > $output_objdir/$soname.def;
9686
          cat $export_symbols >> $output_objdir/$soname.def;
9687
        fi~
9688
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9689
      else
9690
        ld_shlibs=no
9691
      fi
9692
      ;;
9693
 
9694
    interix[3-9]*)
9695
      hardcode_direct=no
9696
      hardcode_shlibpath_var=no
9697
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9698
      export_dynamic_flag_spec='${wl}-E'
9699
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9700
      # Instead, shared libraries are loaded at an image base (0x10000000 by
9701
      # default) and relocated if they conflict, which is a slow very memory
9702
      # consuming and fragmenting process.  To avoid this, we pick a random,
9703
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9704
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9705
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9706
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9707
      ;;
9708
 
9709
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9710
      tmp_diet=no
9711
      if test "$host_os" = linux-dietlibc; then
9712
        case $cc_basename in
9713
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9714
        esac
9715
      fi
9716
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9717
         && test "$tmp_diet" = no
9718
      then
9719
        tmp_addflag=
9720
        tmp_sharedflag='-shared'
9721
        case $cc_basename,$host_cpu in
9722
        pgcc*)                          # Portland Group C compiler
9723
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9724
          tmp_addflag=' $pic_flag'
9725
          ;;
9726
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9727
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9728
          tmp_addflag=' $pic_flag -Mnomain' ;;
9729
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9730
          tmp_addflag=' -i_dynamic' ;;
9731
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9732
          tmp_addflag=' -i_dynamic -nofor_main' ;;
9733
        ifc* | ifort*)                  # Intel Fortran compiler
9734
          tmp_addflag=' -nofor_main' ;;
9735
        lf95*)                          # Lahey Fortran 8.1
9736
          whole_archive_flag_spec=
9737
          tmp_sharedflag='--shared' ;;
9738
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9739
          tmp_sharedflag='-qmkshrobj'
9740
          tmp_addflag= ;;
9741
        esac
9742
        case `$CC -V 2>&1 | sed 5q` in
9743
        *Sun\ C*)                       # Sun C 5.9
9744
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9745
          compiler_needs_object=yes
9746
          tmp_sharedflag='-G' ;;
9747
        *Sun\ F*)                       # Sun Fortran 8.3
9748
          tmp_sharedflag='-G' ;;
9749
        esac
9750
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9751
 
9752
        if test "x$supports_anon_versioning" = xyes; then
9753
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9754
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9755
            echo "local: *; };" >> $output_objdir/$libname.ver~
9756
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9757
        fi
9758
 
9759
        case $cc_basename in
9760
        xlf*)
9761
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9762
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9763
          hardcode_libdir_flag_spec=
9764
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
9765
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9766
          if test "x$supports_anon_versioning" = xyes; then
9767
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9768
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9769
              echo "local: *; };" >> $output_objdir/$libname.ver~
9770
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9771
          fi
9772
          ;;
9773
        esac
9774
      else
9775
        ld_shlibs=no
9776
      fi
9777
      ;;
9778
 
9779
    netbsd*)
9780
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9781
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9782
        wlarc=
9783
      else
9784
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9785
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9786
      fi
9787
      ;;
9788
 
9789
    solaris*)
9790
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9791
        ld_shlibs=no
9792
        cat <<_LT_EOF 1>&2
9793
 
9794
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9795
*** create shared libraries on Solaris systems.  Therefore, libtool
9796
*** is disabling shared libraries support.  We urge you to upgrade GNU
9797
*** binutils to release 2.9.1 or newer.  Another option is to modify
9798
*** your PATH or compiler configuration so that the native linker is
9799
*** used, and then restart.
9800
 
9801
_LT_EOF
9802
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9803
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9804
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9805
      else
9806
        ld_shlibs=no
9807
      fi
9808
      ;;
9809
 
9810
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9811
      case `$LD -v 2>&1` in
9812
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9813
        ld_shlibs=no
9814
        cat <<_LT_EOF 1>&2
9815
 
9816
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9817
*** reliably create shared libraries on SCO systems.  Therefore, libtool
9818
*** is disabling shared libraries support.  We urge you to upgrade GNU
9819
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9820
*** your PATH or compiler configuration so that the native linker is
9821
*** used, and then restart.
9822
 
9823
_LT_EOF
9824
        ;;
9825
        *)
9826
          # For security reasons, it is highly recommended that you always
9827
          # use absolute paths for naming shared libraries, and exclude the
9828
          # DT_RUNPATH tag from executables and libraries.  But doing so
9829
          # requires that you compile everything twice, which is a pain.
9830
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9831
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9832
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9833
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9834
          else
9835
            ld_shlibs=no
9836
          fi
9837
        ;;
9838
      esac
9839
      ;;
9840
 
9841
    sunos4*)
9842
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9843
      wlarc=
9844
      hardcode_direct=yes
9845
      hardcode_shlibpath_var=no
9846
      ;;
9847
 
9848
    *)
9849
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9850
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9851
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9852
      else
9853
        ld_shlibs=no
9854
      fi
9855
      ;;
9856
    esac
9857
 
9858
    if test "$ld_shlibs" = no; then
9859
      runpath_var=
9860
      hardcode_libdir_flag_spec=
9861
      export_dynamic_flag_spec=
9862
      whole_archive_flag_spec=
9863
    fi
9864
  else
9865
    # PORTME fill in a description of your system's linker (not GNU ld)
9866
    case $host_os in
9867
    aix3*)
9868
      allow_undefined_flag=unsupported
9869
      always_export_symbols=yes
9870
      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9871
      # Note: this linker hardcodes the directories in LIBPATH if there
9872
      # are no directories specified by -L.
9873
      hardcode_minus_L=yes
9874
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9875
        # Neither direct hardcoding nor static linking is supported with a
9876
        # broken collect2.
9877
        hardcode_direct=unsupported
9878
      fi
9879
      ;;
9880
 
9881
    aix[4-9]*)
9882
      if test "$host_cpu" = ia64; then
9883
        # On IA64, the linker does run time linking by default, so we don't
9884
        # have to do anything special.
9885
        aix_use_runtimelinking=no
9886
        exp_sym_flag='-Bexport'
9887
        no_entry_flag=""
9888
      else
9889
        # If we're using GNU nm, then we don't want the "-C" option.
9890
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9891
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9892
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9893
        else
9894
          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9895
        fi
9896
        aix_use_runtimelinking=no
9897
 
9898
        # Test if we are trying to use run time linking or normal
9899
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9900
        # need to do runtime linking.
9901
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9902
          for ld_flag in $LDFLAGS; do
9903
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9904
            aix_use_runtimelinking=yes
9905
            break
9906
          fi
9907
          done
9908
          ;;
9909
        esac
9910
 
9911
        exp_sym_flag='-bexport'
9912
        no_entry_flag='-bnoentry'
9913
      fi
9914
 
9915
      # When large executables or shared objects are built, AIX ld can
9916
      # have problems creating the table of contents.  If linking a library
9917
      # or program results in "error TOC overflow" add -mminimal-toc to
9918
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9919
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9920
 
9921
      archive_cmds=''
9922
      hardcode_direct=yes
9923
      hardcode_direct_absolute=yes
9924
      hardcode_libdir_separator=':'
9925
      link_all_deplibs=yes
9926
      file_list_spec='${wl}-f,'
9927
 
9928
      if test "$GCC" = yes; then
9929
        case $host_os in aix4.[012]|aix4.[012].*)
9930
        # We only want to do this on AIX 4.2 and lower, the check
9931
        # below for broken collect2 doesn't work under 4.3+
9932
          collect2name=`${CC} -print-prog-name=collect2`
9933
          if test -f "$collect2name" &&
9934
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9935
          then
9936
          # We have reworked collect2
9937
          :
9938
          else
9939
          # We have old collect2
9940
          hardcode_direct=unsupported
9941
          # It fails to find uninstalled libraries when the uninstalled
9942
          # path is not listed in the libpath.  Setting hardcode_minus_L
9943
          # to unsupported forces relinking
9944
          hardcode_minus_L=yes
9945
          hardcode_libdir_flag_spec='-L$libdir'
9946
          hardcode_libdir_separator=
9947
          fi
9948
          ;;
9949
        esac
9950
        shared_flag='-shared'
9951
        if test "$aix_use_runtimelinking" = yes; then
9952
          shared_flag="$shared_flag "'${wl}-G'
9953
        fi
9954
      else
9955
        # not using gcc
9956
        if test "$host_cpu" = ia64; then
9957
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9958
        # chokes on -Wl,-G. The following line is correct:
9959
          shared_flag='-G'
9960
        else
9961
          if test "$aix_use_runtimelinking" = yes; then
9962
            shared_flag='${wl}-G'
9963
          else
9964
            shared_flag='${wl}-bM:SRE'
9965
          fi
9966
        fi
9967
      fi
9968
 
9969
      export_dynamic_flag_spec='${wl}-bexpall'
9970
      # It seems that -bexpall does not export symbols beginning with
9971
      # underscore (_), so it is better to generate a list of symbols to export.
9972
      always_export_symbols=yes
9973
      if test "$aix_use_runtimelinking" = yes; then
9974
        # Warning - without using the other runtime loading flags (-brtl),
9975
        # -berok will link without error, but may produce a broken library.
9976
        allow_undefined_flag='-berok'
9977
        # Determine the default libpath from the value encoded in an
9978
        # empty executable.
9979
        cat >conftest.$ac_ext <<_ACEOF
9980
/* confdefs.h.  */
9981
_ACEOF
9982
cat confdefs.h >>conftest.$ac_ext
9983
cat >>conftest.$ac_ext <<_ACEOF
9984
/* end confdefs.h.  */
9985
 
9986
int
9987
main ()
9988
{
9989
 
9990
  ;
9991
  return 0;
9992
}
9993
_ACEOF
9994
rm -f conftest.$ac_objext conftest$ac_exeext
9995
if { (ac_try="$ac_link"
9996
case "(($ac_try" in
9997
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9998
  *) ac_try_echo=$ac_try;;
9999
esac
10000
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10001
$as_echo "$ac_try_echo") >&5
10002
  (eval "$ac_link") 2>conftest.er1
10003
  ac_status=$?
10004
  grep -v '^ *+' conftest.er1 >conftest.err
10005
  rm -f conftest.er1
10006
  cat conftest.err >&5
10007
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008
  (exit $ac_status); } && {
10009
         test -z "$ac_c_werror_flag" ||
10010
         test ! -s conftest.err
10011
       } && test -s conftest$ac_exeext && {
10012
         test "$cross_compiling" = yes ||
10013
         $as_test_x conftest$ac_exeext
10014
       }; then
10015
 
10016
lt_aix_libpath_sed='
10017
    /Import File Strings/,/^$/ {
10018
        /^0/ {
10019
            s/^0  *\(.*\)$/\1/
10020
            p
10021
        }
10022
    }'
10023
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10024
# Check for a 64-bit object if we didn't find anything.
10025
if test -z "$aix_libpath"; then
10026
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10027
fi
10028
else
10029
  $as_echo "$as_me: failed program was:" >&5
10030
sed 's/^/| /' conftest.$ac_ext >&5
10031
 
10032
 
10033
fi
10034
 
10035
rm -rf conftest.dSYM
10036
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10037
      conftest$ac_exeext conftest.$ac_ext
10038
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10039
 
10040
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10041
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10042
      else
10043
        if test "$host_cpu" = ia64; then
10044
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10045
          allow_undefined_flag="-z nodefs"
10046
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10047
        else
10048
         # Determine the default libpath from the value encoded in an
10049
         # empty executable.
10050
         cat >conftest.$ac_ext <<_ACEOF
10051
/* confdefs.h.  */
10052
_ACEOF
10053
cat confdefs.h >>conftest.$ac_ext
10054
cat >>conftest.$ac_ext <<_ACEOF
10055
/* end confdefs.h.  */
10056
 
10057
int
10058
main ()
10059
{
10060
 
10061
  ;
10062
  return 0;
10063
}
10064
_ACEOF
10065
rm -f conftest.$ac_objext conftest$ac_exeext
10066
if { (ac_try="$ac_link"
10067
case "(($ac_try" in
10068
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10069
  *) ac_try_echo=$ac_try;;
10070
esac
10071
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10072
$as_echo "$ac_try_echo") >&5
10073
  (eval "$ac_link") 2>conftest.er1
10074
  ac_status=$?
10075
  grep -v '^ *+' conftest.er1 >conftest.err
10076
  rm -f conftest.er1
10077
  cat conftest.err >&5
10078
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079
  (exit $ac_status); } && {
10080
         test -z "$ac_c_werror_flag" ||
10081
         test ! -s conftest.err
10082
       } && test -s conftest$ac_exeext && {
10083
         test "$cross_compiling" = yes ||
10084
         $as_test_x conftest$ac_exeext
10085
       }; then
10086
 
10087
lt_aix_libpath_sed='
10088
    /Import File Strings/,/^$/ {
10089
        /^0/ {
10090
            s/^0  *\(.*\)$/\1/
10091
            p
10092
        }
10093
    }'
10094
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10095
# Check for a 64-bit object if we didn't find anything.
10096
if test -z "$aix_libpath"; then
10097
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10098
fi
10099
else
10100
  $as_echo "$as_me: failed program was:" >&5
10101
sed 's/^/| /' conftest.$ac_ext >&5
10102
 
10103
 
10104
fi
10105
 
10106
rm -rf conftest.dSYM
10107
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10108
      conftest$ac_exeext conftest.$ac_ext
10109
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10110
 
10111
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10112
          # Warning - without using the other run time loading flags,
10113
          # -berok will link without error, but may produce a broken library.
10114
          no_undefined_flag=' ${wl}-bernotok'
10115
          allow_undefined_flag=' ${wl}-berok'
10116
          # Exported symbols can be pulled into shared objects from archives
10117
          whole_archive_flag_spec='$convenience'
10118
          archive_cmds_need_lc=yes
10119
          # This is similar to how AIX traditionally builds its shared libraries.
10120
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10121
        fi
10122
      fi
10123
      ;;
10124
 
10125
    amigaos*)
10126
      case $host_cpu in
10127
      powerpc)
10128
            # see comment about AmigaOS4 .so support
10129
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10130
            archive_expsym_cmds=''
10131
        ;;
10132
      m68k)
10133
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10134
            hardcode_libdir_flag_spec='-L$libdir'
10135
            hardcode_minus_L=yes
10136
        ;;
10137
      esac
10138
      ;;
10139
 
10140
    bsdi[45]*)
10141
      export_dynamic_flag_spec=-rdynamic
10142
      ;;
10143
 
10144
    cygwin* | mingw* | pw32* | cegcc*)
10145
      # When not using gcc, we currently assume that we are using
10146
      # Microsoft Visual C++.
10147
      # hardcode_libdir_flag_spec is actually meaningless, as there is
10148
      # no search path for DLLs.
10149
      hardcode_libdir_flag_spec=' '
10150
      allow_undefined_flag=unsupported
10151
      # Tell ltmain to make .lib files, not .a files.
10152
      libext=lib
10153
      # Tell ltmain to make .dll files, not .so files.
10154
      shrext_cmds=".dll"
10155
      # FIXME: Setting linknames here is a bad hack.
10156
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10157
      # The linker will automatically build a .lib file if we build a DLL.
10158
      old_archive_from_new_cmds='true'
10159
      # FIXME: Should let the user specify the lib program.
10160
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10161
      fix_srcfile_path='`cygpath -w "$srcfile"`'
10162
      enable_shared_with_static_runtimes=yes
10163
      ;;
10164
 
10165
    darwin* | rhapsody*)
10166
 
10167
 
10168
  archive_cmds_need_lc=no
10169
  hardcode_direct=no
10170
  hardcode_automatic=yes
10171
  hardcode_shlibpath_var=unsupported
10172
  whole_archive_flag_spec=''
10173
  link_all_deplibs=yes
10174
  allow_undefined_flag="$_lt_dar_allow_undefined"
10175
  case $cc_basename in
10176
     ifort*) _lt_dar_can_shared=yes ;;
10177
     *) _lt_dar_can_shared=$GCC ;;
10178
  esac
10179
  if test "$_lt_dar_can_shared" = "yes"; then
10180
    output_verbose_link_cmd=echo
10181
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10182
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10183
    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10184
    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10185
 
10186
  else
10187
  ld_shlibs=no
10188
  fi
10189
 
10190
      ;;
10191
 
10192
    dgux*)
10193
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10194
      hardcode_libdir_flag_spec='-L$libdir'
10195
      hardcode_shlibpath_var=no
10196
      ;;
10197
 
10198
    freebsd1*)
10199
      ld_shlibs=no
10200
      ;;
10201
 
10202
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10203
    # support.  Future versions do this automatically, but an explicit c++rt0.o
10204
    # does not break anything, and helps significantly (at the cost of a little
10205
    # extra space).
10206
    freebsd2.2*)
10207
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10208
      hardcode_libdir_flag_spec='-R$libdir'
10209
      hardcode_direct=yes
10210
      hardcode_shlibpath_var=no
10211
      ;;
10212
 
10213
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10214
    freebsd2*)
10215
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10216
      hardcode_direct=yes
10217
      hardcode_minus_L=yes
10218
      hardcode_shlibpath_var=no
10219
      ;;
10220
 
10221
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10222
    freebsd* | dragonfly*)
10223
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10224
      hardcode_libdir_flag_spec='-R$libdir'
10225
      hardcode_direct=yes
10226
      hardcode_shlibpath_var=no
10227
      ;;
10228
 
10229
    hpux9*)
10230
      if test "$GCC" = yes; then
10231
        archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10232
      else
10233
        archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10234
      fi
10235
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10236
      hardcode_libdir_separator=:
10237
      hardcode_direct=yes
10238
 
10239
      # hardcode_minus_L: Not really in the search PATH,
10240
      # but as the default location of the library.
10241
      hardcode_minus_L=yes
10242
      export_dynamic_flag_spec='${wl}-E'
10243
      ;;
10244
 
10245
    hpux10*)
10246
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10247
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10248
      else
10249
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10250
      fi
10251
      if test "$with_gnu_ld" = no; then
10252
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10253
        hardcode_libdir_flag_spec_ld='+b $libdir'
10254
        hardcode_libdir_separator=:
10255
        hardcode_direct=yes
10256
        hardcode_direct_absolute=yes
10257
        export_dynamic_flag_spec='${wl}-E'
10258
        # hardcode_minus_L: Not really in the search PATH,
10259
        # but as the default location of the library.
10260
        hardcode_minus_L=yes
10261
      fi
10262
      ;;
10263
 
10264
    hpux11*)
10265
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10266
        case $host_cpu in
10267
        hppa*64*)
10268
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10269
          ;;
10270
        ia64*)
10271
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10272
          ;;
10273
        *)
10274
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10275
          ;;
10276
        esac
10277
      else
10278
        case $host_cpu in
10279
        hppa*64*)
10280
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10281
          ;;
10282
        ia64*)
10283
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10284
          ;;
10285
        *)
10286
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10287
          ;;
10288
        esac
10289
      fi
10290
      if test "$with_gnu_ld" = no; then
10291
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10292
        hardcode_libdir_separator=:
10293
 
10294
        case $host_cpu in
10295
        hppa*64*|ia64*)
10296
          hardcode_direct=no
10297
          hardcode_shlibpath_var=no
10298
          ;;
10299
        *)
10300
          hardcode_direct=yes
10301
          hardcode_direct_absolute=yes
10302
          export_dynamic_flag_spec='${wl}-E'
10303
 
10304
          # hardcode_minus_L: Not really in the search PATH,
10305
          # but as the default location of the library.
10306
          hardcode_minus_L=yes
10307
          ;;
10308
        esac
10309
      fi
10310
      ;;
10311
 
10312
    irix5* | irix6* | nonstopux*)
10313
      if test "$GCC" = yes; then
10314
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10315
        # Try to use the -exported_symbol ld option, if it does not
10316
        # work, assume that -exports_file does not work either and
10317
        # implicitly export all symbols.
10318
        save_LDFLAGS="$LDFLAGS"
10319
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10320
        cat >conftest.$ac_ext <<_ACEOF
10321
int foo(void) {}
10322
_ACEOF
10323
rm -f conftest.$ac_objext conftest$ac_exeext
10324
if { (ac_try="$ac_link"
10325
case "(($ac_try" in
10326
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10327
  *) ac_try_echo=$ac_try;;
10328
esac
10329
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10330
$as_echo "$ac_try_echo") >&5
10331
  (eval "$ac_link") 2>conftest.er1
10332
  ac_status=$?
10333
  grep -v '^ *+' conftest.er1 >conftest.err
10334
  rm -f conftest.er1
10335
  cat conftest.err >&5
10336
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337
  (exit $ac_status); } && {
10338
         test -z "$ac_c_werror_flag" ||
10339
         test ! -s conftest.err
10340
       } && test -s conftest$ac_exeext && {
10341
         test "$cross_compiling" = yes ||
10342
         $as_test_x conftest$ac_exeext
10343
       }; then
10344
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10345
 
10346
else
10347
  $as_echo "$as_me: failed program was:" >&5
10348
sed 's/^/| /' conftest.$ac_ext >&5
10349
 
10350
 
10351
fi
10352
 
10353
rm -rf conftest.dSYM
10354
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10355
      conftest$ac_exeext conftest.$ac_ext
10356
        LDFLAGS="$save_LDFLAGS"
10357
      else
10358
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10359
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10360
      fi
10361
      archive_cmds_need_lc='no'
10362
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10363
      hardcode_libdir_separator=:
10364
      inherit_rpath=yes
10365
      link_all_deplibs=yes
10366
      ;;
10367
 
10368
    netbsd*)
10369
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10370
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10371
      else
10372
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10373
      fi
10374
      hardcode_libdir_flag_spec='-R$libdir'
10375
      hardcode_direct=yes
10376
      hardcode_shlibpath_var=no
10377
      ;;
10378
 
10379
    newsos6)
10380
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10381
      hardcode_direct=yes
10382
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10383
      hardcode_libdir_separator=:
10384
      hardcode_shlibpath_var=no
10385
      ;;
10386
 
10387
    *nto* | *qnx*)
10388
      ;;
10389
 
10390
    openbsd*)
10391
      if test -f /usr/libexec/ld.so; then
10392
        hardcode_direct=yes
10393
        hardcode_shlibpath_var=no
10394
        hardcode_direct_absolute=yes
10395
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10396
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10397
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10398
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10399
          export_dynamic_flag_spec='${wl}-E'
10400
        else
10401
          case $host_os in
10402
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10403
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10404
             hardcode_libdir_flag_spec='-R$libdir'
10405
             ;;
10406
           *)
10407
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10408
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10409
             ;;
10410
          esac
10411
        fi
10412
      else
10413
        ld_shlibs=no
10414
      fi
10415
      ;;
10416
 
10417
    os2*)
10418
      hardcode_libdir_flag_spec='-L$libdir'
10419
      hardcode_minus_L=yes
10420
      allow_undefined_flag=unsupported
10421
      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10422
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10423
      ;;
10424
 
10425
    osf3*)
10426
      if test "$GCC" = yes; then
10427
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10428
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10429
      else
10430
        allow_undefined_flag=' -expect_unresolved \*'
10431
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10432
      fi
10433
      archive_cmds_need_lc='no'
10434
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10435
      hardcode_libdir_separator=:
10436
      ;;
10437
 
10438
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10439
      if test "$GCC" = yes; then
10440
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10441
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10442
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10443
      else
10444
        allow_undefined_flag=' -expect_unresolved \*'
10445
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10446
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10447
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10448
 
10449
        # Both c and cxx compiler support -rpath directly
10450
        hardcode_libdir_flag_spec='-rpath $libdir'
10451
      fi
10452
      archive_cmds_need_lc='no'
10453
      hardcode_libdir_separator=:
10454
      ;;
10455
 
10456
    solaris*)
10457
      no_undefined_flag=' -z defs'
10458
      if test "$GCC" = yes; then
10459
        wlarc='${wl}'
10460
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10461
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10462
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10463
      else
10464
        case `$CC -V 2>&1` in
10465
        *"Compilers 5.0"*)
10466
          wlarc=''
10467
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10468
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10469
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10470
          ;;
10471
        *)
10472
          wlarc='${wl}'
10473
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10474
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10475
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10476
          ;;
10477
        esac
10478
      fi
10479
      hardcode_libdir_flag_spec='-R$libdir'
10480
      hardcode_shlibpath_var=no
10481
      case $host_os in
10482
      solaris2.[0-5] | solaris2.[0-5].*) ;;
10483
      *)
10484
        # The compiler driver will combine and reorder linker options,
10485
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
10486
        # but is careful enough not to reorder.
10487
        # Supported since Solaris 2.6 (maybe 2.5.1?)
10488
        if test "$GCC" = yes; then
10489
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10490
        else
10491
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10492
        fi
10493
        ;;
10494
      esac
10495
      link_all_deplibs=yes
10496
      ;;
10497
 
10498
    sunos4*)
10499
      if test "x$host_vendor" = xsequent; then
10500
        # Use $CC to link under sequent, because it throws in some extra .o
10501
        # files that make .init and .fini sections work.
10502
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10503
      else
10504
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10505
      fi
10506
      hardcode_libdir_flag_spec='-L$libdir'
10507
      hardcode_direct=yes
10508
      hardcode_minus_L=yes
10509
      hardcode_shlibpath_var=no
10510
      ;;
10511
 
10512
    sysv4)
10513
      case $host_vendor in
10514
        sni)
10515
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10516
          hardcode_direct=yes # is this really true???
10517
        ;;
10518
        siemens)
10519
          ## LD is ld it makes a PLAMLIB
10520
          ## CC just makes a GrossModule.
10521
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10522
          reload_cmds='$CC -r -o $output$reload_objs'
10523
          hardcode_direct=no
10524
        ;;
10525
        motorola)
10526
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10527
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10528
        ;;
10529
      esac
10530
      runpath_var='LD_RUN_PATH'
10531
      hardcode_shlibpath_var=no
10532
      ;;
10533
 
10534
    sysv4.3*)
10535
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10536
      hardcode_shlibpath_var=no
10537
      export_dynamic_flag_spec='-Bexport'
10538
      ;;
10539
 
10540
    sysv4*MP*)
10541
      if test -d /usr/nec; then
10542
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10543
        hardcode_shlibpath_var=no
10544
        runpath_var=LD_RUN_PATH
10545
        hardcode_runpath_var=yes
10546
        ld_shlibs=yes
10547
      fi
10548
      ;;
10549
 
10550
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10551
      no_undefined_flag='${wl}-z,text'
10552
      archive_cmds_need_lc=no
10553
      hardcode_shlibpath_var=no
10554
      runpath_var='LD_RUN_PATH'
10555
 
10556
      if test "$GCC" = yes; then
10557
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10558
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10559
      else
10560
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10561
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10562
      fi
10563
      ;;
10564
 
10565
    sysv5* | sco3.2v5* | sco5v6*)
10566
      # Note: We can NOT use -z defs as we might desire, because we do not
10567
      # link with -lc, and that would cause any symbols used from libc to
10568
      # always be unresolved, which means just about no library would
10569
      # ever link correctly.  If we're not using GNU ld we use -z text
10570
      # though, which does catch some bad symbols but isn't as heavy-handed
10571
      # as -z defs.
10572
      no_undefined_flag='${wl}-z,text'
10573
      allow_undefined_flag='${wl}-z,nodefs'
10574
      archive_cmds_need_lc=no
10575
      hardcode_shlibpath_var=no
10576
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10577
      hardcode_libdir_separator=':'
10578
      link_all_deplibs=yes
10579
      export_dynamic_flag_spec='${wl}-Bexport'
10580
      runpath_var='LD_RUN_PATH'
10581
 
10582
      if test "$GCC" = yes; then
10583
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10584
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10585
      else
10586
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10587
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10588
      fi
10589
      ;;
10590
 
10591
    uts4*)
10592
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10593
      hardcode_libdir_flag_spec='-L$libdir'
10594
      hardcode_shlibpath_var=no
10595
      ;;
10596
 
10597
    *)
10598
      ld_shlibs=no
10599
      ;;
10600
    esac
10601
 
10602
    if test x$host_vendor = xsni; then
10603
      case $host in
10604
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10605
        export_dynamic_flag_spec='${wl}-Blargedynsym'
10606
        ;;
10607
      esac
10608
    fi
10609
  fi
10610
 
10611
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10612
$as_echo "$ld_shlibs" >&6; }
10613
test "$ld_shlibs" = no && can_build_shared=no
10614
 
10615
with_gnu_ld=$with_gnu_ld
10616
 
10617
 
10618
 
10619
 
10620
 
10621
 
10622
 
10623
 
10624
 
10625
 
10626
 
10627
 
10628
 
10629
 
10630
 
10631
#
10632
# Do we need to explicitly link libc?
10633
#
10634
case "x$archive_cmds_need_lc" in
10635
x|xyes)
10636
  # Assume -lc should be added
10637
  archive_cmds_need_lc=yes
10638
 
10639
  if test "$enable_shared" = yes && test "$GCC" = yes; then
10640
    case $archive_cmds in
10641
    *'~'*)
10642
      # FIXME: we may have to deal with multi-command sequences.
10643
      ;;
10644
    '$CC '*)
10645
      # Test whether the compiler implicitly links with -lc since on some
10646
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10647
      # to ld, don't add -lc before -lgcc.
10648
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10649
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10650
if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
10651
  $as_echo_n "(cached) " >&6
10652
else
10653
  $RM conftest*
10654
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10655
 
10656
        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10657
  (eval $ac_compile) 2>&5
10658
  ac_status=$?
10659
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660
  (exit $ac_status); } 2>conftest.err; then
10661
          soname=conftest
10662
          lib=conftest
10663
          libobjs=conftest.$ac_objext
10664
          deplibs=
10665
          wl=$lt_prog_compiler_wl
10666
          pic_flag=$lt_prog_compiler_pic
10667
          compiler_flags=-v
10668
          linker_flags=-v
10669
          verstring=
10670
          output_objdir=.
10671
          libname=conftest
10672
          lt_save_allow_undefined_flag=$allow_undefined_flag
10673
          allow_undefined_flag=
10674
          if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10675
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10676
  ac_status=$?
10677
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678
  (exit $ac_status); }
10679
          then
10680
            lt_cv_archive_cmds_need_lc=no
10681
          else
10682
            lt_cv_archive_cmds_need_lc=yes
10683
          fi
10684
          allow_undefined_flag=$lt_save_allow_undefined_flag
10685
        else
10686
          cat conftest.err 1>&5
10687
        fi
10688
        $RM conftest*
10689
 
10690
fi
10691
{ $as_echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
10692
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10693
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10694
      ;;
10695
    esac
10696
  fi
10697
  ;;
10698
esac
10699
 
10700
 
10701
 
10702
 
10703
 
10704
 
10705
 
10706
 
10707
 
10708
 
10709
 
10710
 
10711
 
10712
 
10713
 
10714
 
10715
 
10716
 
10717
 
10718
 
10719
 
10720
 
10721
 
10722
 
10723
 
10724
 
10725
 
10726
 
10727
 
10728
 
10729
 
10730
 
10731
 
10732
 
10733
 
10734
 
10735
 
10736
 
10737
 
10738
 
10739
 
10740
 
10741
 
10742
 
10743
 
10744
 
10745
 
10746
 
10747
 
10748
 
10749
 
10750
 
10751
 
10752
 
10753
 
10754
 
10755
 
10756
 
10757
 
10758
 
10759
 
10760
 
10761
 
10762
 
10763
 
10764
 
10765
 
10766
 
10767
 
10768
 
10769
 
10770
 
10771
 
10772
 
10773
 
10774
 
10775
 
10776
 
10777
 
10778
 
10779
 
10780
 
10781
 
10782
 
10783
 
10784
 
10785
 
10786
 
10787
 
10788
 
10789
 
10790
 
10791
 
10792
 
10793
 
10794
 
10795
 
10796
 
10797
 
10798
 
10799
 
10800
 
10801
 
10802
 
10803
 
10804
 
10805
 
10806
 
10807
 
10808
 
10809
 
10810
 
10811
 
10812
 
10813
 
10814
 
10815
 
10816
 
10817
 
10818
 
10819
 
10820
 
10821
 
10822
 
10823
 
10824
 
10825
 
10826
 
10827
 
10828
 
10829
 
10830
 
10831
 
10832
 
10833
 
10834
 
10835
 
10836
 
10837
 
10838
 
10839
 
10840
 
10841
 
10842
 
10843
 
10844
 
10845
 
10846
 
10847
 
10848
 
10849
 
10850
 
10851
 
10852
 
10853
 
10854
 
10855
 
10856
  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10857
$as_echo_n "checking dynamic linker characteristics... " >&6; }
10858
 
10859
if test "$GCC" = yes; then
10860
  case $host_os in
10861
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10862
    *) lt_awk_arg="/^libraries:/" ;;
10863
  esac
10864
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10865
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10866
    # if the path contains ";" then we assume it to be the separator
10867
    # otherwise default to the standard path separator (i.e. ":") - it is
10868
    # assumed that no part of a normal pathname contains ";" but that should
10869
    # okay in the real world where ";" in dirpaths is itself problematic.
10870
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10871
  else
10872
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10873
  fi
10874
  # Ok, now we have the path, separated by spaces, we can step through it
10875
  # and add multilib dir if necessary.
10876
  lt_tmp_lt_search_path_spec=
10877
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10878
  for lt_sys_path in $lt_search_path_spec; do
10879
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10880
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10881
    else
10882
      test -d "$lt_sys_path" && \
10883
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10884
    fi
10885
  done
10886
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10887
BEGIN {RS=" "; FS="/|\n";} {
10888
  lt_foo="";
10889
  lt_count=0;
10890
  for (lt_i = NF; lt_i > 0; lt_i--) {
10891
    if ($lt_i != "" && $lt_i != ".") {
10892
      if ($lt_i == "..") {
10893
        lt_count++;
10894
      } else {
10895
        if (lt_count == 0) {
10896
          lt_foo="/" $lt_i lt_foo;
10897
        } else {
10898
          lt_count--;
10899
        }
10900
      }
10901
    }
10902
  }
10903
  if (lt_foo != "") { lt_freq[lt_foo]++; }
10904
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10905
}'`
10906
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10907
else
10908
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10909
fi
10910
library_names_spec=
10911
libname_spec='lib$name'
10912
soname_spec=
10913
shrext_cmds=".so"
10914
postinstall_cmds=
10915
postuninstall_cmds=
10916
finish_cmds=
10917
finish_eval=
10918
shlibpath_var=
10919
shlibpath_overrides_runpath=unknown
10920
version_type=none
10921
dynamic_linker="$host_os ld.so"
10922
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10923
need_lib_prefix=unknown
10924
hardcode_into_libs=no
10925
 
10926
# when you set need_version to no, make sure it does not cause -set_version
10927
# flags to be left without arguments
10928
need_version=unknown
10929
 
10930
case $host_os in
10931
aix3*)
10932
  version_type=linux
10933
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10934
  shlibpath_var=LIBPATH
10935
 
10936
  # AIX 3 has no versioning support, so we append a major version to the name.
10937
  soname_spec='${libname}${release}${shared_ext}$major'
10938
  ;;
10939
 
10940
aix[4-9]*)
10941
  version_type=linux
10942
  need_lib_prefix=no
10943
  need_version=no
10944
  hardcode_into_libs=yes
10945
  if test "$host_cpu" = ia64; then
10946
    # AIX 5 supports IA64
10947
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10948
    shlibpath_var=LD_LIBRARY_PATH
10949
  else
10950
    # With GCC up to 2.95.x, collect2 would create an import file
10951
    # for dependence libraries.  The import file would start with
10952
    # the line `#! .'.  This would cause the generated library to
10953
    # depend on `.', always an invalid library.  This was fixed in
10954
    # development snapshots of GCC prior to 3.0.
10955
    case $host_os in
10956
      aix4 | aix4.[01] | aix4.[01].*)
10957
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10958
           echo ' yes '
10959
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10960
        :
10961
      else
10962
        can_build_shared=no
10963
      fi
10964
      ;;
10965
    esac
10966
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10967
    # soname into executable. Probably we can add versioning support to
10968
    # collect2, so additional links can be useful in future.
10969
    if test "$aix_use_runtimelinking" = yes; then
10970
      # If using run time linking (on AIX 4.2 or later) use lib.so
10971
      # instead of lib.a to let people know that these are not
10972
      # typical AIX shared libraries.
10973
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10974
    else
10975
      # We preserve .a as extension for shared libraries through AIX4.2
10976
      # and later when we are not doing run time linking.
10977
      library_names_spec='${libname}${release}.a $libname.a'
10978
      soname_spec='${libname}${release}${shared_ext}$major'
10979
    fi
10980
    shlibpath_var=LIBPATH
10981
  fi
10982
  ;;
10983
 
10984
amigaos*)
10985
  case $host_cpu in
10986
  powerpc)
10987
    # Since July 2007 AmigaOS4 officially supports .so libraries.
10988
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10989
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10990
    ;;
10991
  m68k)
10992
    library_names_spec='$libname.ixlibrary $libname.a'
10993
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10994
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10995
    ;;
10996
  esac
10997
  ;;
10998
 
10999
beos*)
11000
  library_names_spec='${libname}${shared_ext}'
11001
  dynamic_linker="$host_os ld.so"
11002
  shlibpath_var=LIBRARY_PATH
11003
  ;;
11004
 
11005
bsdi[45]*)
11006
  version_type=linux
11007
  need_version=no
11008
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11009
  soname_spec='${libname}${release}${shared_ext}$major'
11010
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11011
  shlibpath_var=LD_LIBRARY_PATH
11012
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11013
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11014
  # the default ld.so.conf also contains /usr/contrib/lib and
11015
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11016
  # libtool to hard-code these into programs
11017
  ;;
11018
 
11019
cygwin* | mingw* | pw32* | cegcc*)
11020
  version_type=windows
11021
  shrext_cmds=".dll"
11022
  need_version=no
11023
  need_lib_prefix=no
11024
 
11025
  case $GCC,$host_os in
11026
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11027
    library_names_spec='$libname.dll.a'
11028
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11029
    postinstall_cmds='base_file=`basename \${file}`~
11030
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11031
      dldir=$destdir/`dirname \$dlpath`~
11032
      test -d \$dldir || mkdir -p \$dldir~
11033
      $install_prog $dir/$dlname \$dldir/$dlname~
11034
      chmod a+x \$dldir/$dlname~
11035
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11036
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11037
      fi'
11038
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11039
      dlpath=$dir/\$dldll~
11040
       $RM \$dlpath'
11041
    shlibpath_overrides_runpath=yes
11042
 
11043
    case $host_os in
11044
    cygwin*)
11045
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11046
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11047
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11048
      ;;
11049
    mingw* | cegcc*)
11050
      # MinGW DLLs use traditional 'lib' prefix
11051
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11052
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11053
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11054
        # It is most probably a Windows format PATH printed by
11055
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11056
        # path with ; separators, and with drive letters. We can handle the
11057
        # drive letters (cygwin fileutils understands them), so leave them,
11058
        # especially as we might pass files found there to a mingw objdump,
11059
        # which wouldn't understand a cygwinified path. Ahh.
11060
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11061
      else
11062
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11063
      fi
11064
      ;;
11065
    pw32*)
11066
      # pw32 DLLs use 'pw' prefix rather than 'lib'
11067
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11068
      ;;
11069
    esac
11070
    ;;
11071
 
11072
  *)
11073
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11074
    ;;
11075
  esac
11076
  dynamic_linker='Win32 ld.exe'
11077
  # FIXME: first we should search . and the directory the executable is in
11078
  shlibpath_var=PATH
11079
  ;;
11080
 
11081
darwin* | rhapsody*)
11082
  dynamic_linker="$host_os dyld"
11083
  version_type=darwin
11084
  need_lib_prefix=no
11085
  need_version=no
11086
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11087
  soname_spec='${libname}${release}${major}$shared_ext'
11088
  shlibpath_overrides_runpath=yes
11089
  shlibpath_var=DYLD_LIBRARY_PATH
11090
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11091
 
11092
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11093
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11094
  ;;
11095
 
11096
dgux*)
11097
  version_type=linux
11098
  need_lib_prefix=no
11099
  need_version=no
11100
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11101
  soname_spec='${libname}${release}${shared_ext}$major'
11102
  shlibpath_var=LD_LIBRARY_PATH
11103
  ;;
11104
 
11105
freebsd1*)
11106
  dynamic_linker=no
11107
  ;;
11108
 
11109
freebsd* | dragonfly*)
11110
  # DragonFly does not have aout.  When/if they implement a new
11111
  # versioning mechanism, adjust this.
11112
  if test -x /usr/bin/objformat; then
11113
    objformat=`/usr/bin/objformat`
11114
  else
11115
    case $host_os in
11116
    freebsd[123]*) objformat=aout ;;
11117
    *) objformat=elf ;;
11118
    esac
11119
  fi
11120
  version_type=freebsd-$objformat
11121
  case $version_type in
11122
    freebsd-elf*)
11123
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11124
      need_version=no
11125
      need_lib_prefix=no
11126
      ;;
11127
    freebsd-*)
11128
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11129
      need_version=yes
11130
      ;;
11131
  esac
11132
  shlibpath_var=LD_LIBRARY_PATH
11133
  case $host_os in
11134
  freebsd2*)
11135
    shlibpath_overrides_runpath=yes
11136
    ;;
11137
  freebsd3.[01]* | freebsdelf3.[01]*)
11138
    shlibpath_overrides_runpath=yes
11139
    hardcode_into_libs=yes
11140
    ;;
11141
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11142
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11143
    shlibpath_overrides_runpath=no
11144
    hardcode_into_libs=yes
11145
    ;;
11146
  *) # from 4.6 on, and DragonFly
11147
    shlibpath_overrides_runpath=yes
11148
    hardcode_into_libs=yes
11149
    ;;
11150
  esac
11151
  ;;
11152
 
11153
gnu*)
11154
  version_type=linux
11155
  need_lib_prefix=no
11156
  need_version=no
11157
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11158
  soname_spec='${libname}${release}${shared_ext}$major'
11159
  shlibpath_var=LD_LIBRARY_PATH
11160
  hardcode_into_libs=yes
11161
  ;;
11162
 
11163
hpux9* | hpux10* | hpux11*)
11164
  # Give a soname corresponding to the major version so that dld.sl refuses to
11165
  # link against other versions.
11166
  version_type=sunos
11167
  need_lib_prefix=no
11168
  need_version=no
11169
  case $host_cpu in
11170
  ia64*)
11171
    shrext_cmds='.so'
11172
    hardcode_into_libs=yes
11173
    dynamic_linker="$host_os dld.so"
11174
    shlibpath_var=LD_LIBRARY_PATH
11175
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11176
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11177
    soname_spec='${libname}${release}${shared_ext}$major'
11178
    if test "X$HPUX_IA64_MODE" = X32; then
11179
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11180
    else
11181
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11182
    fi
11183
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11184
    ;;
11185
  hppa*64*)
11186
    shrext_cmds='.sl'
11187
    hardcode_into_libs=yes
11188
    dynamic_linker="$host_os dld.sl"
11189
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11190
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11191
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11192
    soname_spec='${libname}${release}${shared_ext}$major'
11193
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11194
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11195
    ;;
11196
  *)
11197
    shrext_cmds='.sl'
11198
    dynamic_linker="$host_os dld.sl"
11199
    shlibpath_var=SHLIB_PATH
11200
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11201
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11202
    soname_spec='${libname}${release}${shared_ext}$major'
11203
    ;;
11204
  esac
11205
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11206
  postinstall_cmds='chmod 555 $lib'
11207
  ;;
11208
 
11209
interix[3-9]*)
11210
  version_type=linux
11211
  need_lib_prefix=no
11212
  need_version=no
11213
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11214
  soname_spec='${libname}${release}${shared_ext}$major'
11215
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11216
  shlibpath_var=LD_LIBRARY_PATH
11217
  shlibpath_overrides_runpath=no
11218
  hardcode_into_libs=yes
11219
  ;;
11220
 
11221
irix5* | irix6* | nonstopux*)
11222
  case $host_os in
11223
    nonstopux*) version_type=nonstopux ;;
11224
    *)
11225
        if test "$lt_cv_prog_gnu_ld" = yes; then
11226
                version_type=linux
11227
        else
11228
                version_type=irix
11229
        fi ;;
11230
  esac
11231
  need_lib_prefix=no
11232
  need_version=no
11233
  soname_spec='${libname}${release}${shared_ext}$major'
11234
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11235
  case $host_os in
11236
  irix5* | nonstopux*)
11237
    libsuff= shlibsuff=
11238
    ;;
11239
  *)
11240
    case $LD in # libtool.m4 will add one of these switches to LD
11241
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11242
      libsuff= shlibsuff= libmagic=32-bit;;
11243
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11244
      libsuff=32 shlibsuff=N32 libmagic=N32;;
11245
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11246
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11247
    *) libsuff= shlibsuff= libmagic=never-match;;
11248
    esac
11249
    ;;
11250
  esac
11251
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11252
  shlibpath_overrides_runpath=no
11253
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11254
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11255
  hardcode_into_libs=yes
11256
  ;;
11257
 
11258
# No shared lib support for Linux oldld, aout, or coff.
11259
linux*oldld* | linux*aout* | linux*coff*)
11260
  dynamic_linker=no
11261
  ;;
11262
 
11263
# This must be Linux ELF.
11264
linux* | k*bsd*-gnu | kopensolaris*-gnu)
11265
  version_type=linux
11266
  need_lib_prefix=no
11267
  need_version=no
11268
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11269
  soname_spec='${libname}${release}${shared_ext}$major'
11270
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11271
  shlibpath_var=LD_LIBRARY_PATH
11272
  shlibpath_overrides_runpath=no
11273
 
11274
  # Some binutils ld are patched to set DT_RUNPATH
11275
  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
11276
  $as_echo_n "(cached) " >&6
11277
else
11278
  lt_cv_shlibpath_overrides_runpath=no
11279
    save_LDFLAGS=$LDFLAGS
11280
    save_libdir=$libdir
11281
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11282
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11283
    cat >conftest.$ac_ext <<_ACEOF
11284
/* confdefs.h.  */
11285
_ACEOF
11286
cat confdefs.h >>conftest.$ac_ext
11287
cat >>conftest.$ac_ext <<_ACEOF
11288
/* end confdefs.h.  */
11289
 
11290
int
11291
main ()
11292
{
11293
 
11294
  ;
11295
  return 0;
11296
}
11297
_ACEOF
11298
rm -f conftest.$ac_objext conftest$ac_exeext
11299
if { (ac_try="$ac_link"
11300
case "(($ac_try" in
11301
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302
  *) ac_try_echo=$ac_try;;
11303
esac
11304
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11305
$as_echo "$ac_try_echo") >&5
11306
  (eval "$ac_link") 2>conftest.er1
11307
  ac_status=$?
11308
  grep -v '^ *+' conftest.er1 >conftest.err
11309
  rm -f conftest.er1
11310
  cat conftest.err >&5
11311
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312
  (exit $ac_status); } && {
11313
         test -z "$ac_c_werror_flag" ||
11314
         test ! -s conftest.err
11315
       } && test -s conftest$ac_exeext && {
11316
         test "$cross_compiling" = yes ||
11317
         $as_test_x conftest$ac_exeext
11318
       }; then
11319
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11320
  lt_cv_shlibpath_overrides_runpath=yes
11321
fi
11322
 
11323
else
11324
  $as_echo "$as_me: failed program was:" >&5
11325
sed 's/^/| /' conftest.$ac_ext >&5
11326
 
11327
 
11328
fi
11329
 
11330
rm -rf conftest.dSYM
11331
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11332
      conftest$ac_exeext conftest.$ac_ext
11333
    LDFLAGS=$save_LDFLAGS
11334
    libdir=$save_libdir
11335
 
11336
fi
11337
 
11338
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11339
 
11340
  # This implies no fast_install, which is unacceptable.
11341
  # Some rework will be needed to allow for fast_install
11342
  # before this can be enabled.
11343
  hardcode_into_libs=yes
11344
 
11345
  # Append ld.so.conf contents to the search path
11346
  if test -f /etc/ld.so.conf; then
11347
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11348
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11349
  fi
11350
 
11351
  # We used to test for /lib/ld.so.1 and disable shared libraries on
11352
  # powerpc, because MkLinux only supported shared libraries with the
11353
  # GNU dynamic linker.  Since this was broken with cross compilers,
11354
  # most powerpc-linux boxes support dynamic linking these days and
11355
  # people can always --disable-shared, the test was removed, and we
11356
  # assume the GNU/Linux dynamic linker is in use.
11357
  dynamic_linker='GNU/Linux ld.so'
11358
  ;;
11359
 
11360
netbsd*)
11361
  version_type=sunos
11362
  need_lib_prefix=no
11363
  need_version=no
11364
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11365
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11366
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11367
    dynamic_linker='NetBSD (a.out) ld.so'
11368
  else
11369
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11370
    soname_spec='${libname}${release}${shared_ext}$major'
11371
    dynamic_linker='NetBSD ld.elf_so'
11372
  fi
11373
  shlibpath_var=LD_LIBRARY_PATH
11374
  shlibpath_overrides_runpath=yes
11375
  hardcode_into_libs=yes
11376
  ;;
11377
 
11378
newsos6)
11379
  version_type=linux
11380
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11381
  shlibpath_var=LD_LIBRARY_PATH
11382
  shlibpath_overrides_runpath=yes
11383
  ;;
11384
 
11385
*nto* | *qnx*)
11386
  version_type=qnx
11387
  need_lib_prefix=no
11388
  need_version=no
11389
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11390
  soname_spec='${libname}${release}${shared_ext}$major'
11391
  shlibpath_var=LD_LIBRARY_PATH
11392
  shlibpath_overrides_runpath=no
11393
  hardcode_into_libs=yes
11394
  dynamic_linker='ldqnx.so'
11395
  ;;
11396
 
11397
openbsd*)
11398
  version_type=sunos
11399
  sys_lib_dlsearch_path_spec="/usr/lib"
11400
  need_lib_prefix=no
11401
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11402
  case $host_os in
11403
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11404
    *)                          need_version=no  ;;
11405
  esac
11406
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11407
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11408
  shlibpath_var=LD_LIBRARY_PATH
11409
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11410
    case $host_os in
11411
      openbsd2.[89] | openbsd2.[89].*)
11412
        shlibpath_overrides_runpath=no
11413
        ;;
11414
      *)
11415
        shlibpath_overrides_runpath=yes
11416
        ;;
11417
      esac
11418
  else
11419
    shlibpath_overrides_runpath=yes
11420
  fi
11421
  ;;
11422
 
11423
os2*)
11424
  libname_spec='$name'
11425
  shrext_cmds=".dll"
11426
  need_lib_prefix=no
11427
  library_names_spec='$libname${shared_ext} $libname.a'
11428
  dynamic_linker='OS/2 ld.exe'
11429
  shlibpath_var=LIBPATH
11430
  ;;
11431
 
11432
osf3* | osf4* | osf5*)
11433
  version_type=osf
11434
  need_lib_prefix=no
11435
  need_version=no
11436
  soname_spec='${libname}${release}${shared_ext}$major'
11437
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11438
  shlibpath_var=LD_LIBRARY_PATH
11439
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11440
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11441
  ;;
11442
 
11443
rdos*)
11444
  dynamic_linker=no
11445
  ;;
11446
 
11447
solaris*)
11448
  version_type=linux
11449
  need_lib_prefix=no
11450
  need_version=no
11451
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11452
  soname_spec='${libname}${release}${shared_ext}$major'
11453
  shlibpath_var=LD_LIBRARY_PATH
11454
  shlibpath_overrides_runpath=yes
11455
  hardcode_into_libs=yes
11456
  # ldd complains unless libraries are executable
11457
  postinstall_cmds='chmod +x $lib'
11458
  ;;
11459
 
11460
sunos4*)
11461
  version_type=sunos
11462
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11463
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11464
  shlibpath_var=LD_LIBRARY_PATH
11465
  shlibpath_overrides_runpath=yes
11466
  if test "$with_gnu_ld" = yes; then
11467
    need_lib_prefix=no
11468
  fi
11469
  need_version=yes
11470
  ;;
11471
 
11472
sysv4 | sysv4.3*)
11473
  version_type=linux
11474
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11475
  soname_spec='${libname}${release}${shared_ext}$major'
11476
  shlibpath_var=LD_LIBRARY_PATH
11477
  case $host_vendor in
11478
    sni)
11479
      shlibpath_overrides_runpath=no
11480
      need_lib_prefix=no
11481
      runpath_var=LD_RUN_PATH
11482
      ;;
11483
    siemens)
11484
      need_lib_prefix=no
11485
      ;;
11486
    motorola)
11487
      need_lib_prefix=no
11488
      need_version=no
11489
      shlibpath_overrides_runpath=no
11490
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11491
      ;;
11492
  esac
11493
  ;;
11494
 
11495
sysv4*MP*)
11496
  if test -d /usr/nec ;then
11497
    version_type=linux
11498
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11499
    soname_spec='$libname${shared_ext}.$major'
11500
    shlibpath_var=LD_LIBRARY_PATH
11501
  fi
11502
  ;;
11503
 
11504
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11505
  version_type=freebsd-elf
11506
  need_lib_prefix=no
11507
  need_version=no
11508
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11509
  soname_spec='${libname}${release}${shared_ext}$major'
11510
  shlibpath_var=LD_LIBRARY_PATH
11511
  shlibpath_overrides_runpath=yes
11512
  hardcode_into_libs=yes
11513
  if test "$with_gnu_ld" = yes; then
11514
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11515
  else
11516
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11517
    case $host_os in
11518
      sco3.2v5*)
11519
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11520
        ;;
11521
    esac
11522
  fi
11523
  sys_lib_dlsearch_path_spec='/usr/lib'
11524
  ;;
11525
 
11526
tpf*)
11527
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11528
  version_type=linux
11529
  need_lib_prefix=no
11530
  need_version=no
11531
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11532
  shlibpath_var=LD_LIBRARY_PATH
11533
  shlibpath_overrides_runpath=no
11534
  hardcode_into_libs=yes
11535
  ;;
11536
 
11537
uts4*)
11538
  version_type=linux
11539
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11540
  soname_spec='${libname}${release}${shared_ext}$major'
11541
  shlibpath_var=LD_LIBRARY_PATH
11542
  ;;
11543
 
11544
*)
11545
  dynamic_linker=no
11546
  ;;
11547
esac
11548
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11549
$as_echo "$dynamic_linker" >&6; }
11550
test "$dynamic_linker" = no && can_build_shared=no
11551
 
11552
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11553
if test "$GCC" = yes; then
11554
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11555
fi
11556
 
11557
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11558
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11559
fi
11560
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11561
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11562
fi
11563
 
11564
 
11565
 
11566
 
11567
 
11568
 
11569
 
11570
 
11571
 
11572
 
11573
 
11574
 
11575
 
11576
 
11577
 
11578
 
11579
 
11580
 
11581
 
11582
 
11583
 
11584
 
11585
 
11586
 
11587
 
11588
 
11589
 
11590
 
11591
 
11592
 
11593
 
11594
 
11595
 
11596
 
11597
 
11598
 
11599
 
11600
 
11601
 
11602
 
11603
 
11604
 
11605
 
11606
 
11607
 
11608
 
11609
 
11610
 
11611
 
11612
 
11613
 
11614
 
11615
 
11616
 
11617
 
11618
 
11619
 
11620
 
11621
 
11622
 
11623
 
11624
 
11625
 
11626
 
11627
 
11628
 
11629
 
11630
 
11631
 
11632
 
11633
 
11634
 
11635
 
11636
 
11637
 
11638
 
11639
 
11640
 
11641
 
11642
 
11643
 
11644
 
11645
 
11646
 
11647
 
11648
 
11649
 
11650
  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11651
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11652
hardcode_action=
11653
if test -n "$hardcode_libdir_flag_spec" ||
11654
   test -n "$runpath_var" ||
11655
   test "X$hardcode_automatic" = "Xyes" ; then
11656
 
11657
  # We can hardcode non-existent directories.
11658
  if test "$hardcode_direct" != no &&
11659
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11660
     # have to relink, otherwise we might link with an installed library
11661
     # when we should be linking with a yet-to-be-installed one
11662
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11663
     test "$hardcode_minus_L" != no; then
11664
    # Linking always hardcodes the temporary library directory.
11665
    hardcode_action=relink
11666
  else
11667
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11668
    hardcode_action=immediate
11669
  fi
11670
else
11671
  # We cannot hardcode anything, or else we can only hardcode existing
11672
  # directories.
11673
  hardcode_action=unsupported
11674
fi
11675
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11676
$as_echo "$hardcode_action" >&6; }
11677
 
11678
if test "$hardcode_action" = relink ||
11679
   test "$inherit_rpath" = yes; then
11680
  # Fast installation is not supported
11681
  enable_fast_install=no
11682
elif test "$shlibpath_overrides_runpath" = yes ||
11683
     test "$enable_shared" = no; then
11684
  # Fast installation is not necessary
11685
  enable_fast_install=needless
11686
fi
11687
 
11688
 
11689
 
11690
 
11691
 
11692
 
11693
  if test "x$enable_dlopen" != xyes; then
11694
  enable_dlopen=unknown
11695
  enable_dlopen_self=unknown
11696
  enable_dlopen_self_static=unknown
11697
else
11698
  lt_cv_dlopen=no
11699
  lt_cv_dlopen_libs=
11700
 
11701
  case $host_os in
11702
  beos*)
11703
    lt_cv_dlopen="load_add_on"
11704
    lt_cv_dlopen_libs=
11705
    lt_cv_dlopen_self=yes
11706
    ;;
11707
 
11708
  mingw* | pw32* | cegcc*)
11709
    lt_cv_dlopen="LoadLibrary"
11710
    lt_cv_dlopen_libs=
11711
    ;;
11712
 
11713
  cygwin*)
11714
    lt_cv_dlopen="dlopen"
11715
    lt_cv_dlopen_libs=
11716
    ;;
11717
 
11718
  darwin*)
11719
  # if libdl is installed we need to link against it
11720
    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11721
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11722
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11723
  $as_echo_n "(cached) " >&6
11724
else
11725
  ac_check_lib_save_LIBS=$LIBS
11726
LIBS="-ldl  $LIBS"
11727
cat >conftest.$ac_ext <<_ACEOF
11728
/* confdefs.h.  */
11729
_ACEOF
11730
cat confdefs.h >>conftest.$ac_ext
11731
cat >>conftest.$ac_ext <<_ACEOF
11732
/* end confdefs.h.  */
11733
 
11734
/* Override any GCC internal prototype to avoid an error.
11735
   Use char because int might match the return type of a GCC
11736
   builtin and then its argument prototype would still apply.  */
11737
#ifdef __cplusplus
11738
extern "C"
11739
#endif
11740
char dlopen ();
11741
int
11742
main ()
11743
{
11744
return dlopen ();
11745
  ;
11746
  return 0;
11747
}
11748
_ACEOF
11749
rm -f conftest.$ac_objext conftest$ac_exeext
11750
if { (ac_try="$ac_link"
11751
case "(($ac_try" in
11752
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11753
  *) ac_try_echo=$ac_try;;
11754
esac
11755
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11756
$as_echo "$ac_try_echo") >&5
11757
  (eval "$ac_link") 2>conftest.er1
11758
  ac_status=$?
11759
  grep -v '^ *+' conftest.er1 >conftest.err
11760
  rm -f conftest.er1
11761
  cat conftest.err >&5
11762
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763
  (exit $ac_status); } && {
11764
         test -z "$ac_c_werror_flag" ||
11765
         test ! -s conftest.err
11766
       } && test -s conftest$ac_exeext && {
11767
         test "$cross_compiling" = yes ||
11768
         $as_test_x conftest$ac_exeext
11769
       }; then
11770
  ac_cv_lib_dl_dlopen=yes
11771
else
11772
  $as_echo "$as_me: failed program was:" >&5
11773
sed 's/^/| /' conftest.$ac_ext >&5
11774
 
11775
        ac_cv_lib_dl_dlopen=no
11776
fi
11777
 
11778
rm -rf conftest.dSYM
11779
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11780
      conftest$ac_exeext conftest.$ac_ext
11781
LIBS=$ac_check_lib_save_LIBS
11782
fi
11783
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11784
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11785
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11786
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11787
else
11788
 
11789
    lt_cv_dlopen="dyld"
11790
    lt_cv_dlopen_libs=
11791
    lt_cv_dlopen_self=yes
11792
 
11793
fi
11794
 
11795
    ;;
11796
 
11797
  *)
11798
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11799
$as_echo_n "checking for shl_load... " >&6; }
11800
if test "${ac_cv_func_shl_load+set}" = set; then
11801
  $as_echo_n "(cached) " >&6
11802
else
11803
  cat >conftest.$ac_ext <<_ACEOF
11804
/* confdefs.h.  */
11805
_ACEOF
11806
cat confdefs.h >>conftest.$ac_ext
11807
cat >>conftest.$ac_ext <<_ACEOF
11808
/* end confdefs.h.  */
11809
/* Define shl_load to an innocuous variant, in case  declares shl_load.
11810
   For example, HP-UX 11i  declares gettimeofday.  */
11811
#define shl_load innocuous_shl_load
11812
 
11813
/* System header to define __stub macros and hopefully few prototypes,
11814
    which can conflict with char shl_load (); below.
11815
    Prefer  to  if __STDC__ is defined, since
11816
     exists even on freestanding compilers.  */
11817
 
11818
#ifdef __STDC__
11819
# include 
11820
#else
11821
# include 
11822
#endif
11823
 
11824
#undef shl_load
11825
 
11826
/* Override any GCC internal prototype to avoid an error.
11827
   Use char because int might match the return type of a GCC
11828
   builtin and then its argument prototype would still apply.  */
11829
#ifdef __cplusplus
11830
extern "C"
11831
#endif
11832
char shl_load ();
11833
/* The GNU C library defines this for functions which it implements
11834
    to always fail with ENOSYS.  Some functions are actually named
11835
    something starting with __ and the normal name is an alias.  */
11836
#if defined __stub_shl_load || defined __stub___shl_load
11837
choke me
11838
#endif
11839
 
11840
int
11841
main ()
11842
{
11843
return shl_load ();
11844
  ;
11845
  return 0;
11846
}
11847
_ACEOF
11848
rm -f conftest.$ac_objext conftest$ac_exeext
11849
if { (ac_try="$ac_link"
11850
case "(($ac_try" in
11851
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852
  *) ac_try_echo=$ac_try;;
11853
esac
11854
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11855
$as_echo "$ac_try_echo") >&5
11856
  (eval "$ac_link") 2>conftest.er1
11857
  ac_status=$?
11858
  grep -v '^ *+' conftest.er1 >conftest.err
11859
  rm -f conftest.er1
11860
  cat conftest.err >&5
11861
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862
  (exit $ac_status); } && {
11863
         test -z "$ac_c_werror_flag" ||
11864
         test ! -s conftest.err
11865
       } && test -s conftest$ac_exeext && {
11866
         test "$cross_compiling" = yes ||
11867
         $as_test_x conftest$ac_exeext
11868
       }; then
11869
  ac_cv_func_shl_load=yes
11870
else
11871
  $as_echo "$as_me: failed program was:" >&5
11872
sed 's/^/| /' conftest.$ac_ext >&5
11873
 
11874
        ac_cv_func_shl_load=no
11875
fi
11876
 
11877
rm -rf conftest.dSYM
11878
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11879
      conftest$ac_exeext conftest.$ac_ext
11880
fi
11881
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11882
$as_echo "$ac_cv_func_shl_load" >&6; }
11883
if test "x$ac_cv_func_shl_load" = x""yes; then
11884
  lt_cv_dlopen="shl_load"
11885
else
11886
  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11887
$as_echo_n "checking for shl_load in -ldld... " >&6; }
11888
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11889
  $as_echo_n "(cached) " >&6
11890
else
11891
  ac_check_lib_save_LIBS=$LIBS
11892
LIBS="-ldld  $LIBS"
11893
cat >conftest.$ac_ext <<_ACEOF
11894
/* confdefs.h.  */
11895
_ACEOF
11896
cat confdefs.h >>conftest.$ac_ext
11897
cat >>conftest.$ac_ext <<_ACEOF
11898
/* end confdefs.h.  */
11899
 
11900
/* Override any GCC internal prototype to avoid an error.
11901
   Use char because int might match the return type of a GCC
11902
   builtin and then its argument prototype would still apply.  */
11903
#ifdef __cplusplus
11904
extern "C"
11905
#endif
11906
char shl_load ();
11907
int
11908
main ()
11909
{
11910
return shl_load ();
11911
  ;
11912
  return 0;
11913
}
11914
_ACEOF
11915
rm -f conftest.$ac_objext conftest$ac_exeext
11916
if { (ac_try="$ac_link"
11917
case "(($ac_try" in
11918
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11919
  *) ac_try_echo=$ac_try;;
11920
esac
11921
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11922
$as_echo "$ac_try_echo") >&5
11923
  (eval "$ac_link") 2>conftest.er1
11924
  ac_status=$?
11925
  grep -v '^ *+' conftest.er1 >conftest.err
11926
  rm -f conftest.er1
11927
  cat conftest.err >&5
11928
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929
  (exit $ac_status); } && {
11930
         test -z "$ac_c_werror_flag" ||
11931
         test ! -s conftest.err
11932
       } && test -s conftest$ac_exeext && {
11933
         test "$cross_compiling" = yes ||
11934
         $as_test_x conftest$ac_exeext
11935
       }; then
11936
  ac_cv_lib_dld_shl_load=yes
11937
else
11938
  $as_echo "$as_me: failed program was:" >&5
11939
sed 's/^/| /' conftest.$ac_ext >&5
11940
 
11941
        ac_cv_lib_dld_shl_load=no
11942
fi
11943
 
11944
rm -rf conftest.dSYM
11945
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11946
      conftest$ac_exeext conftest.$ac_ext
11947
LIBS=$ac_check_lib_save_LIBS
11948
fi
11949
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11950
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11951
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11952
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11953
else
11954
  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11955
$as_echo_n "checking for dlopen... " >&6; }
11956
if test "${ac_cv_func_dlopen+set}" = set; then
11957
  $as_echo_n "(cached) " >&6
11958
else
11959
  cat >conftest.$ac_ext <<_ACEOF
11960
/* confdefs.h.  */
11961
_ACEOF
11962
cat confdefs.h >>conftest.$ac_ext
11963
cat >>conftest.$ac_ext <<_ACEOF
11964
/* end confdefs.h.  */
11965
/* Define dlopen to an innocuous variant, in case  declares dlopen.
11966
   For example, HP-UX 11i  declares gettimeofday.  */
11967
#define dlopen innocuous_dlopen
11968
 
11969
/* System header to define __stub macros and hopefully few prototypes,
11970
    which can conflict with char dlopen (); below.
11971
    Prefer  to  if __STDC__ is defined, since
11972
     exists even on freestanding compilers.  */
11973
 
11974
#ifdef __STDC__
11975
# include 
11976
#else
11977
# include 
11978
#endif
11979
 
11980
#undef dlopen
11981
 
11982
/* Override any GCC internal prototype to avoid an error.
11983
   Use char because int might match the return type of a GCC
11984
   builtin and then its argument prototype would still apply.  */
11985
#ifdef __cplusplus
11986
extern "C"
11987
#endif
11988
char dlopen ();
11989
/* The GNU C library defines this for functions which it implements
11990
    to always fail with ENOSYS.  Some functions are actually named
11991
    something starting with __ and the normal name is an alias.  */
11992
#if defined __stub_dlopen || defined __stub___dlopen
11993
choke me
11994
#endif
11995
 
11996
int
11997
main ()
11998
{
11999
return dlopen ();
12000
  ;
12001
  return 0;
12002
}
12003
_ACEOF
12004
rm -f conftest.$ac_objext conftest$ac_exeext
12005
if { (ac_try="$ac_link"
12006
case "(($ac_try" in
12007
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12008
  *) ac_try_echo=$ac_try;;
12009
esac
12010
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12011
$as_echo "$ac_try_echo") >&5
12012
  (eval "$ac_link") 2>conftest.er1
12013
  ac_status=$?
12014
  grep -v '^ *+' conftest.er1 >conftest.err
12015
  rm -f conftest.er1
12016
  cat conftest.err >&5
12017
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018
  (exit $ac_status); } && {
12019
         test -z "$ac_c_werror_flag" ||
12020
         test ! -s conftest.err
12021
       } && test -s conftest$ac_exeext && {
12022
         test "$cross_compiling" = yes ||
12023
         $as_test_x conftest$ac_exeext
12024
       }; then
12025
  ac_cv_func_dlopen=yes
12026
else
12027
  $as_echo "$as_me: failed program was:" >&5
12028
sed 's/^/| /' conftest.$ac_ext >&5
12029
 
12030
        ac_cv_func_dlopen=no
12031
fi
12032
 
12033
rm -rf conftest.dSYM
12034
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12035
      conftest$ac_exeext conftest.$ac_ext
12036
fi
12037
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12038
$as_echo "$ac_cv_func_dlopen" >&6; }
12039
if test "x$ac_cv_func_dlopen" = x""yes; then
12040
  lt_cv_dlopen="dlopen"
12041
else
12042
  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12043
$as_echo_n "checking for dlopen in -ldl... " >&6; }
12044
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12045
  $as_echo_n "(cached) " >&6
12046
else
12047
  ac_check_lib_save_LIBS=$LIBS
12048
LIBS="-ldl  $LIBS"
12049
cat >conftest.$ac_ext <<_ACEOF
12050
/* confdefs.h.  */
12051
_ACEOF
12052
cat confdefs.h >>conftest.$ac_ext
12053
cat >>conftest.$ac_ext <<_ACEOF
12054
/* end confdefs.h.  */
12055
 
12056
/* Override any GCC internal prototype to avoid an error.
12057
   Use char because int might match the return type of a GCC
12058
   builtin and then its argument prototype would still apply.  */
12059
#ifdef __cplusplus
12060
extern "C"
12061
#endif
12062
char dlopen ();
12063
int
12064
main ()
12065
{
12066
return dlopen ();
12067
  ;
12068
  return 0;
12069
}
12070
_ACEOF
12071
rm -f conftest.$ac_objext conftest$ac_exeext
12072
if { (ac_try="$ac_link"
12073
case "(($ac_try" in
12074
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12075
  *) ac_try_echo=$ac_try;;
12076
esac
12077
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12078
$as_echo "$ac_try_echo") >&5
12079
  (eval "$ac_link") 2>conftest.er1
12080
  ac_status=$?
12081
  grep -v '^ *+' conftest.er1 >conftest.err
12082
  rm -f conftest.er1
12083
  cat conftest.err >&5
12084
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085
  (exit $ac_status); } && {
12086
         test -z "$ac_c_werror_flag" ||
12087
         test ! -s conftest.err
12088
       } && test -s conftest$ac_exeext && {
12089
         test "$cross_compiling" = yes ||
12090
         $as_test_x conftest$ac_exeext
12091
       }; then
12092
  ac_cv_lib_dl_dlopen=yes
12093
else
12094
  $as_echo "$as_me: failed program was:" >&5
12095
sed 's/^/| /' conftest.$ac_ext >&5
12096
 
12097
        ac_cv_lib_dl_dlopen=no
12098
fi
12099
 
12100
rm -rf conftest.dSYM
12101
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12102
      conftest$ac_exeext conftest.$ac_ext
12103
LIBS=$ac_check_lib_save_LIBS
12104
fi
12105
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12106
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12107
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12108
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12109
else
12110
  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12111
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12112
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12113
  $as_echo_n "(cached) " >&6
12114
else
12115
  ac_check_lib_save_LIBS=$LIBS
12116
LIBS="-lsvld  $LIBS"
12117
cat >conftest.$ac_ext <<_ACEOF
12118
/* confdefs.h.  */
12119
_ACEOF
12120
cat confdefs.h >>conftest.$ac_ext
12121
cat >>conftest.$ac_ext <<_ACEOF
12122
/* end confdefs.h.  */
12123
 
12124
/* Override any GCC internal prototype to avoid an error.
12125
   Use char because int might match the return type of a GCC
12126
   builtin and then its argument prototype would still apply.  */
12127
#ifdef __cplusplus
12128
extern "C"
12129
#endif
12130
char dlopen ();
12131
int
12132
main ()
12133
{
12134
return dlopen ();
12135
  ;
12136
  return 0;
12137
}
12138
_ACEOF
12139
rm -f conftest.$ac_objext conftest$ac_exeext
12140
if { (ac_try="$ac_link"
12141
case "(($ac_try" in
12142
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12143
  *) ac_try_echo=$ac_try;;
12144
esac
12145
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12146
$as_echo "$ac_try_echo") >&5
12147
  (eval "$ac_link") 2>conftest.er1
12148
  ac_status=$?
12149
  grep -v '^ *+' conftest.er1 >conftest.err
12150
  rm -f conftest.er1
12151
  cat conftest.err >&5
12152
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153
  (exit $ac_status); } && {
12154
         test -z "$ac_c_werror_flag" ||
12155
         test ! -s conftest.err
12156
       } && test -s conftest$ac_exeext && {
12157
         test "$cross_compiling" = yes ||
12158
         $as_test_x conftest$ac_exeext
12159
       }; then
12160
  ac_cv_lib_svld_dlopen=yes
12161
else
12162
  $as_echo "$as_me: failed program was:" >&5
12163
sed 's/^/| /' conftest.$ac_ext >&5
12164
 
12165
        ac_cv_lib_svld_dlopen=no
12166
fi
12167
 
12168
rm -rf conftest.dSYM
12169
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12170
      conftest$ac_exeext conftest.$ac_ext
12171
LIBS=$ac_check_lib_save_LIBS
12172
fi
12173
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12174
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12175
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12176
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12177
else
12178
  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12179
$as_echo_n "checking for dld_link in -ldld... " >&6; }
12180
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12181
  $as_echo_n "(cached) " >&6
12182
else
12183
  ac_check_lib_save_LIBS=$LIBS
12184
LIBS="-ldld  $LIBS"
12185
cat >conftest.$ac_ext <<_ACEOF
12186
/* confdefs.h.  */
12187
_ACEOF
12188
cat confdefs.h >>conftest.$ac_ext
12189
cat >>conftest.$ac_ext <<_ACEOF
12190
/* end confdefs.h.  */
12191
 
12192
/* Override any GCC internal prototype to avoid an error.
12193
   Use char because int might match the return type of a GCC
12194
   builtin and then its argument prototype would still apply.  */
12195
#ifdef __cplusplus
12196
extern "C"
12197
#endif
12198
char dld_link ();
12199
int
12200
main ()
12201
{
12202
return dld_link ();
12203
  ;
12204
  return 0;
12205
}
12206
_ACEOF
12207
rm -f conftest.$ac_objext conftest$ac_exeext
12208
if { (ac_try="$ac_link"
12209
case "(($ac_try" in
12210
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211
  *) ac_try_echo=$ac_try;;
12212
esac
12213
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12214
$as_echo "$ac_try_echo") >&5
12215
  (eval "$ac_link") 2>conftest.er1
12216
  ac_status=$?
12217
  grep -v '^ *+' conftest.er1 >conftest.err
12218
  rm -f conftest.er1
12219
  cat conftest.err >&5
12220
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221
  (exit $ac_status); } && {
12222
         test -z "$ac_c_werror_flag" ||
12223
         test ! -s conftest.err
12224
       } && test -s conftest$ac_exeext && {
12225
         test "$cross_compiling" = yes ||
12226
         $as_test_x conftest$ac_exeext
12227
       }; then
12228
  ac_cv_lib_dld_dld_link=yes
12229
else
12230
  $as_echo "$as_me: failed program was:" >&5
12231
sed 's/^/| /' conftest.$ac_ext >&5
12232
 
12233
        ac_cv_lib_dld_dld_link=no
12234
fi
12235
 
12236
rm -rf conftest.dSYM
12237
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12238
      conftest$ac_exeext conftest.$ac_ext
12239
LIBS=$ac_check_lib_save_LIBS
12240
fi
12241
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12242
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12243
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12244
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12245
fi
12246
 
12247
 
12248
fi
12249
 
12250
 
12251
fi
12252
 
12253
 
12254
fi
12255
 
12256
 
12257
fi
12258
 
12259
 
12260
fi
12261
 
12262
    ;;
12263
  esac
12264
 
12265
  if test "x$lt_cv_dlopen" != xno; then
12266
    enable_dlopen=yes
12267
  else
12268
    enable_dlopen=no
12269
  fi
12270
 
12271
  case $lt_cv_dlopen in
12272
  dlopen)
12273
    save_CPPFLAGS="$CPPFLAGS"
12274
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12275
 
12276
    save_LDFLAGS="$LDFLAGS"
12277
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12278
 
12279
    save_LIBS="$LIBS"
12280
    LIBS="$lt_cv_dlopen_libs $LIBS"
12281
 
12282
    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12283
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12284
if test "${lt_cv_dlopen_self+set}" = set; then
12285
  $as_echo_n "(cached) " >&6
12286
else
12287
          if test "$cross_compiling" = yes; then :
12288
  lt_cv_dlopen_self=cross
12289
else
12290
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12291
  lt_status=$lt_dlunknown
12292
  cat > conftest.$ac_ext <<_LT_EOF
12293
#line 12293 "configure"
12294
#include "confdefs.h"
12295
 
12296
#if HAVE_DLFCN_H
12297
#include 
12298
#endif
12299
 
12300
#include 
12301
 
12302
#ifdef RTLD_GLOBAL
12303
#  define LT_DLGLOBAL           RTLD_GLOBAL
12304
#else
12305
#  ifdef DL_GLOBAL
12306
#    define LT_DLGLOBAL         DL_GLOBAL
12307
#  else
12308
#    define LT_DLGLOBAL         0
12309
#  endif
12310
#endif
12311
 
12312
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12313
   find out it does not work in some platform. */
12314
#ifndef LT_DLLAZY_OR_NOW
12315
#  ifdef RTLD_LAZY
12316
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12317
#  else
12318
#    ifdef DL_LAZY
12319
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12320
#    else
12321
#      ifdef RTLD_NOW
12322
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12323
#      else
12324
#        ifdef DL_NOW
12325
#          define LT_DLLAZY_OR_NOW      DL_NOW
12326
#        else
12327
#          define LT_DLLAZY_OR_NOW      0
12328
#        endif
12329
#      endif
12330
#    endif
12331
#  endif
12332
#endif
12333
 
12334
void fnord() { int i=42;}
12335
int main ()
12336
{
12337
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12338
  int status = $lt_dlunknown;
12339
 
12340
  if (self)
12341
    {
12342
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12343
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12344
      /* dlclose (self); */
12345
    }
12346
  else
12347
    puts (dlerror ());
12348
 
12349
  return status;
12350
}
12351
_LT_EOF
12352
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12353
  (eval $ac_link) 2>&5
12354
  ac_status=$?
12355
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12357
    (./conftest; exit; ) >&5 2>/dev/null
12358
    lt_status=$?
12359
    case x$lt_status in
12360
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12361
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12362
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12363
    esac
12364
  else :
12365
    # compilation failed
12366
    lt_cv_dlopen_self=no
12367
  fi
12368
fi
12369
rm -fr conftest*
12370
 
12371
 
12372
fi
12373
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12374
$as_echo "$lt_cv_dlopen_self" >&6; }
12375
 
12376
    if test "x$lt_cv_dlopen_self" = xyes; then
12377
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12378
      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12379
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12380
if test "${lt_cv_dlopen_self_static+set}" = set; then
12381
  $as_echo_n "(cached) " >&6
12382
else
12383
          if test "$cross_compiling" = yes; then :
12384
  lt_cv_dlopen_self_static=cross
12385
else
12386
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12387
  lt_status=$lt_dlunknown
12388
  cat > conftest.$ac_ext <<_LT_EOF
12389
#line 12389 "configure"
12390
#include "confdefs.h"
12391
 
12392
#if HAVE_DLFCN_H
12393
#include 
12394
#endif
12395
 
12396
#include 
12397
 
12398
#ifdef RTLD_GLOBAL
12399
#  define LT_DLGLOBAL           RTLD_GLOBAL
12400
#else
12401
#  ifdef DL_GLOBAL
12402
#    define LT_DLGLOBAL         DL_GLOBAL
12403
#  else
12404
#    define LT_DLGLOBAL         0
12405
#  endif
12406
#endif
12407
 
12408
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12409
   find out it does not work in some platform. */
12410
#ifndef LT_DLLAZY_OR_NOW
12411
#  ifdef RTLD_LAZY
12412
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12413
#  else
12414
#    ifdef DL_LAZY
12415
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12416
#    else
12417
#      ifdef RTLD_NOW
12418
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12419
#      else
12420
#        ifdef DL_NOW
12421
#          define LT_DLLAZY_OR_NOW      DL_NOW
12422
#        else
12423
#          define LT_DLLAZY_OR_NOW      0
12424
#        endif
12425
#      endif
12426
#    endif
12427
#  endif
12428
#endif
12429
 
12430
void fnord() { int i=42;}
12431
int main ()
12432
{
12433
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12434
  int status = $lt_dlunknown;
12435
 
12436
  if (self)
12437
    {
12438
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12439
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12440
      /* dlclose (self); */
12441
    }
12442
  else
12443
    puts (dlerror ());
12444
 
12445
  return status;
12446
}
12447
_LT_EOF
12448
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12449
  (eval $ac_link) 2>&5
12450
  ac_status=$?
12451
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12453
    (./conftest; exit; ) >&5 2>/dev/null
12454
    lt_status=$?
12455
    case x$lt_status in
12456
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12457
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12458
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12459
    esac
12460
  else :
12461
    # compilation failed
12462
    lt_cv_dlopen_self_static=no
12463
  fi
12464
fi
12465
rm -fr conftest*
12466
 
12467
 
12468
fi
12469
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12470
$as_echo "$lt_cv_dlopen_self_static" >&6; }
12471
    fi
12472
 
12473
    CPPFLAGS="$save_CPPFLAGS"
12474
    LDFLAGS="$save_LDFLAGS"
12475
    LIBS="$save_LIBS"
12476
    ;;
12477
  esac
12478
 
12479
  case $lt_cv_dlopen_self in
12480
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12481
  *) enable_dlopen_self=unknown ;;
12482
  esac
12483
 
12484
  case $lt_cv_dlopen_self_static in
12485
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12486
  *) enable_dlopen_self_static=unknown ;;
12487
  esac
12488
fi
12489
 
12490
 
12491
 
12492
 
12493
 
12494
 
12495
 
12496
 
12497
 
12498
 
12499
 
12500
 
12501
 
12502
 
12503
 
12504
 
12505
 
12506
striplib=
12507
old_striplib=
12508
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12509
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12510
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12511
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12512
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12513
  { $as_echo "$as_me:$LINENO: result: yes" >&5
12514
$as_echo "yes" >&6; }
12515
else
12516
# FIXME - insert some real tests, host_os isn't really good enough
12517
  case $host_os in
12518
  darwin*)
12519
    if test -n "$STRIP" ; then
12520
      striplib="$STRIP -x"
12521
      old_striplib="$STRIP -S"
12522
      { $as_echo "$as_me:$LINENO: result: yes" >&5
12523
$as_echo "yes" >&6; }
12524
    else
12525
      { $as_echo "$as_me:$LINENO: result: no" >&5
12526
$as_echo "no" >&6; }
12527
    fi
12528
    ;;
12529
  *)
12530
    { $as_echo "$as_me:$LINENO: result: no" >&5
12531
$as_echo "no" >&6; }
12532
    ;;
12533
  esac
12534
fi
12535
 
12536
 
12537
 
12538
 
12539
 
12540
 
12541
 
12542
 
12543
 
12544
 
12545
 
12546
 
12547
  # Report which library types will actually be built
12548
  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12549
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12550
  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12551
$as_echo "$can_build_shared" >&6; }
12552
 
12553
  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12554
$as_echo_n "checking whether to build shared libraries... " >&6; }
12555
  test "$can_build_shared" = "no" && enable_shared=no
12556
 
12557
  # On AIX, shared libraries and static libraries use the same namespace, and
12558
  # are all built from PIC.
12559
  case $host_os in
12560
  aix3*)
12561
    test "$enable_shared" = yes && enable_static=no
12562
    if test -n "$RANLIB"; then
12563
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12564
      postinstall_cmds='$RANLIB $lib'
12565
    fi
12566
    ;;
12567
 
12568
  aix[4-9]*)
12569
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12570
      test "$enable_shared" = yes && enable_static=no
12571
    fi
12572
    ;;
12573
  esac
12574
  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12575
$as_echo "$enable_shared" >&6; }
12576
 
12577
  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12578
$as_echo_n "checking whether to build static libraries... " >&6; }
12579
  # Make sure either enable_shared or enable_static is yes.
12580
  test "$enable_shared" = yes || enable_static=yes
12581
  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12582
$as_echo "$enable_static" >&6; }
12583
 
12584
 
12585
 
12586
 
12587
fi
12588
ac_ext=c
12589
ac_cpp='$CPP $CPPFLAGS'
12590
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12591
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12592
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12593
 
12594
CC="$lt_save_CC"
12595
 
12596
 
12597
 
12598
 
12599
 
12600
 
12601
 
12602
 
12603
 
12604
 
12605
 
12606
 
12607
 
12608
        ac_config_commands="$ac_config_commands libtool"
12609
 
12610
 
12611
 
12612
 
12613
# Only expand once:
12614
 
12615
 
12616
fi
12617
 
12618
 
12619
 
12620
subdirs="$subdirs machine sys"
12621
 
12622
 
12623
CRT0=
12624
if test "x${have_crt0}" = "xyes"; then
12625
  CRT0=crt0.o
12626
fi
12627
 
12628
 
12629
 
12630
LIBC_POSIX_LIB=
12631
if test -n "${posix_dir}"; then
12632
  if test "${use_libtool}" = "yes"; then
12633
    LIBC_POSIX_LIB=${posix_dir}/lib${posix_dir}.${aext}
12634
  else
12635
    LIBC_POSIX_LIB=${posix_dir}/lib.${aext}
12636
  fi
12637
fi
12638
 
12639
 if test x${posix_dir} != x; then
12640
  HAVE_POSIX_DIR_TRUE=
12641
  HAVE_POSIX_DIR_FALSE='#'
12642
else
12643
  HAVE_POSIX_DIR_TRUE='#'
12644
  HAVE_POSIX_DIR_FALSE=
12645
fi
12646
 
12647
 
12648
LIBC_SIGNAL_LIB=
12649
LIBC_SIGNAL_DEF=
12650
if test -n "${signal_dir}"; then
12651
  if test "${use_libtool}" = "yes"; then
12652
    LIBC_SIGNAL_LIB=${signal_dir}/lib${signal_dir}.${aext}
12653
  else
12654
    LIBC_SIGNAL_LIB=${signal_dir}/lib.${aext}
12655
  fi
12656
  LIBC_SIGNAL_DEF=${signal_dir}/stmp-def
12657
fi
12658
 
12659
 
12660
 if test x${signal_dir} != x; then
12661
  HAVE_SIGNAL_DIR_TRUE=
12662
  HAVE_SIGNAL_DIR_FALSE='#'
12663
else
12664
  HAVE_SIGNAL_DIR_TRUE='#'
12665
  HAVE_SIGNAL_DIR_FALSE=
12666
fi
12667
 
12668
 
12669
LIBC_STDIO_LIB=
12670
LIBC_STDIO_DEF=
12671
if test -n "${stdio_dir}"; then
12672
  if test "${use_libtool}" = "yes"; then
12673
    LIBC_STDIO_LIB=${stdio_dir}/lib${stdio_dir}.${aext}
12674
  else
12675
    LIBC_STDIO_LIB=${stdio_dir}/lib.${aext}
12676
  fi
12677
  LIBC_STDIO_DEF=${stdio_dir}/stmp-def
12678
fi
12679
 
12680
 
12681
 if test x${stdio_dir} != x; then
12682
  HAVE_STDIO_DIR_TRUE=
12683
  HAVE_STDIO_DIR_FALSE='#'
12684
else
12685
  HAVE_STDIO_DIR_TRUE='#'
12686
  HAVE_STDIO_DIR_FALSE=
12687
fi
12688
 
12689
 
12690
LIBC_STDIO64_LIB=
12691
LIBC_STDIO64_DEF=
12692
if test -n "${stdio64_dir}"; then
12693
  if test "${use_libtool}" = "yes"; then
12694
    LIBC_STDIO64_LIB=${stdio64_dir}/lib${stdio64_dir}.${aext}
12695
  else
12696
    LIBC_STDIO64_LIB=${stdio64_dir}/lib.${aext}
12697
  fi
12698
  LIBC_STDIO64_DEF=${stdio64_dir}/stmp-def
12699
fi
12700
 
12701
 
12702
 if test x${stdio64_dir} != x; then
12703
  HAVE_STDIO64_DIR_TRUE=
12704
  HAVE_STDIO64_DIR_FALSE='#'
12705
else
12706
  HAVE_STDIO64_DIR_TRUE='#'
12707
  HAVE_STDIO64_DIR_FALSE=
12708
fi
12709
 
12710
 
12711
LIBC_SYSCALL_LIB=
12712
if test -n "${syscall_dir}"; then
12713
  if test "${use_libtool}" = "yes"; then
12714
    LIBC_SYSCALL_LIB=${syscall_dir}/lib${syscall_dir}.${aext}
12715
  else
12716
    LIBC_SYSCALL_LIB=${syscall_dir}/lib.${aext}
12717
  fi
12718
fi
12719
 
12720
 if test x${syscall_dir} != x; then
12721
  HAVE_SYSCALL_DIR_TRUE=
12722
  HAVE_SYSCALL_DIR_FALSE='#'
12723
else
12724
  HAVE_SYSCALL_DIR_TRUE='#'
12725
  HAVE_SYSCALL_DIR_FALSE=
12726
fi
12727
 
12728
 
12729
LIBC_UNIX_LIB=
12730
if test -n "${unix_dir}"; then
12731
  if test "${use_libtool}" = "yes"; then
12732
    LIBC_UNIX_LIB=${unix_dir}/lib${unix_dir}.${aext}
12733
  else
12734
    LIBC_UNIX_LIB=${unix_dir}/lib.${aext}
12735
  fi
12736
fi
12737
 
12738
 if test x${unix_dir} != x; then
12739
  HAVE_UNIX_DIR_TRUE=
12740
  HAVE_UNIX_DIR_FALSE='#'
12741
else
12742
  HAVE_UNIX_DIR_TRUE='#'
12743
  HAVE_UNIX_DIR_FALSE=
12744
fi
12745
 
12746
 
12747
LIBC_EXTRA_LIB=
12748
LIBC_EXTRA_DEF=
12749
extra_dir=
12750
 
12751
 
12752
 
12753
 
12754
 
12755
 
12756
LIBC_SYS_LIB=
12757
if test -n "${sys_dir}"; then
12758
  if test "${use_libtool}" = "yes"; then
12759
    LIBC_SYS_LIB=sys/${sys_dir}/lib${sys_dir}.${aext}
12760
  else
12761
    LIBC_SYS_LIB=sys/lib.${aext}
12762
  fi
12763
fi
12764
 
12765
 
12766
 
12767
{ $as_echo "$as_me:$LINENO: checking Checking long double support" >&5
12768
$as_echo_n "checking Checking long double support... " >&6; }
12769
if test "${acnewlib_cv_type_long_double+set}" = set; then
12770
  $as_echo_n "(cached) " >&6
12771
else
12772
  cat > conftest.c <
12773
int main() {
12774
long double x = 0.0L;
12775
return 0;
12776
}
12777
EOF
12778
if { ac_try='${CC} $CFLAGS $CPPFLAGS -c conftest.c 1>&5'
12779
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12780
  (eval $ac_try) 2>&5
12781
  ac_status=$?
12782
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783
  (exit $ac_status); }; }
12784
then
12785
  acnewlib_cv_type_long_double=yes
12786
else
12787
  acnewlib_cv_type_long_double=no
12788
fi
12789
rm -f conftest*
12790
fi
12791
{ $as_echo "$as_me:$LINENO: result: $acnewlib_cv_type_long_double" >&5
12792
$as_echo "$acnewlib_cv_type_long_double" >&6; }
12793
 if test x"$acnewlib_cv_type_long_double" = x"yes"; then
12794
  HAVE_LONG_DOUBLE_TRUE=
12795
  HAVE_LONG_DOUBLE_FALSE='#'
12796
else
12797
  HAVE_LONG_DOUBLE_TRUE='#'
12798
  HAVE_LONG_DOUBLE_FALSE=
12799
fi
12800
 
12801
 
12802
 if test x${newlib_iconv} != x; then
12803
  ENABLE_NEWLIB_ICONV_TRUE=
12804
  ENABLE_NEWLIB_ICONV_FALSE='#'
12805
else
12806
  ENABLE_NEWLIB_ICONV_TRUE='#'
12807
  ENABLE_NEWLIB_ICONV_FALSE=
12808
fi
12809
 
12810
 
12811
if test -n "${machine_dir}"; then
12812
  if test "${use_libtool}" = "yes"; then
12813
    LIBC_MACHINE_LIB=machine/${machine_dir}/lib${machine_dir}.${aext}
12814
  else
12815
    LIBC_MACHINE_LIB=machine/lib.${aext}
12816
  fi
12817
fi
12818
 
12819
 
12820
 
12821
ac_config_files="$ac_config_files Makefile argz/Makefile ctype/Makefile errno/Makefile locale/Makefile misc/Makefile reent/Makefile search/Makefile stdio/Makefile stdio64/Makefile stdlib/Makefile string/Makefile time/Makefile posix/Makefile signal/Makefile syscalls/Makefile unix/Makefile iconv/Makefile iconv/ces/Makefile iconv/ccs/Makefile iconv/ccs/binary/Makefile iconv/lib/Makefile"
12822
 
12823
cat >confcache <<\_ACEOF
12824
# This file is a shell script that caches the results of configure
12825
# tests run on this system so they can be shared between configure
12826
# scripts and configure runs, see configure's option --config-cache.
12827
# It is not useful on other systems.  If it contains results you don't
12828
# want to keep, you may remove or edit it.
12829
#
12830
# config.status only pays attention to the cache file if you give it
12831
# the --recheck option to rerun configure.
12832
#
12833
# `ac_cv_env_foo' variables (set or unset) will be overridden when
12834
# loading this file, other *unset* `ac_cv_foo' will be assigned the
12835
# following values.
12836
 
12837
_ACEOF
12838
 
12839
# The following way of writing the cache mishandles newlines in values,
12840
# but we know of no workaround that is simple, portable, and efficient.
12841
# So, we kill variables containing newlines.
12842
# Ultrix sh set writes to stderr and can't be redirected directly,
12843
# and sets the high bit in the cache file unless we assign to the vars.
12844
(
12845
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12846
    eval ac_val=\$$ac_var
12847
    case $ac_val in #(
12848
    *${as_nl}*)
12849
      case $ac_var in #(
12850
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12851
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12852
      esac
12853
      case $ac_var in #(
12854
      _ | IFS | as_nl) ;; #(
12855
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12856
      *) $as_unset $ac_var ;;
12857
      esac ;;
12858
    esac
12859
  done
12860
 
12861
  (set) 2>&1 |
12862
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12863
    *${as_nl}ac_space=\ *)
12864
      # `set' does not quote correctly, so add quotes (double-quote
12865
      # substitution turns \\\\ into \\, and sed turns \\ into \).
12866
      sed -n \
12867
        "s/'/'\\\\''/g;
12868
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12869
      ;; #(
12870
    *)
12871
      # `set' quotes correctly as required by POSIX, so do not add quotes.
12872
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12873
      ;;
12874
    esac |
12875
    sort
12876
) |
12877
  sed '
12878
     /^ac_cv_env_/b end
12879
     t clear
12880
     :clear
12881
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12882
     t end
12883
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12884
     :end' >>confcache
12885
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12886
  if test -w "$cache_file"; then
12887
    test "x$cache_file" != "x/dev/null" &&
12888
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12889
$as_echo "$as_me: updating cache $cache_file" >&6;}
12890
    cat confcache >$cache_file
12891
  else
12892
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12893
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12894
  fi
12895
fi
12896
rm -f confcache
12897
 
12898
test "x$prefix" = xNONE && prefix=$ac_default_prefix
12899
# Let make expand exec_prefix.
12900
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12901
 
12902
# Transform confdefs.h into DEFS.
12903
# Protect against shell expansion while executing Makefile rules.
12904
# Protect against Makefile macro expansion.
12905
#
12906
# If the first sed substitution is executed (which looks for macros that
12907
# take arguments), then branch to the quote section.  Otherwise,
12908
# look for a macro that doesn't take arguments.
12909
ac_script='
12910
:mline
12911
/\\$/{
12912
 N
12913
 s,\\\n,,
12914
 b mline
12915
}
12916
t clear
12917
:clear
12918
s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
12919
t quote
12920
s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
12921
t quote
12922
b any
12923
:quote
12924
s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12925
s/\[/\\&/g
12926
s/\]/\\&/g
12927
s/\$/$$/g
12928
H
12929
:any
12930
${
12931
        g
12932
        s/^\n//
12933
        s/\n/ /g
12934
        p
12935
}
12936
'
12937
DEFS=`sed -n "$ac_script" confdefs.h`
12938
 
12939
 
12940
ac_libobjs=
12941
ac_ltlibobjs=
12942
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12943
  # 1. Remove the extension, and $U if already installed.
12944
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12945
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12946
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12947
  #    will be set to the directory where LIBOBJS objects are built.
12948
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12949
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12950
done
12951
LIBOBJS=$ac_libobjs
12952
 
12953
LTLIBOBJS=$ac_ltlibobjs
12954
 
12955
 
12956
if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then
12957
  { { $as_echo "$as_me:$LINENO: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
12958
Usually this means the macro was only invoked conditionally." >&5
12959
$as_echo "$as_me: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
12960
Usually this means the macro was only invoked conditionally." >&2;}
12961
   { (exit 1); exit 1; }; }
12962
fi
12963
 if test -n "$EXEEXT"; then
12964
  am__EXEEXT_TRUE=
12965
  am__EXEEXT_FALSE='#'
12966
else
12967
  am__EXEEXT_TRUE='#'
12968
  am__EXEEXT_FALSE=
12969
fi
12970
 
12971
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12972
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12973
Usually this means the macro was only invoked conditionally." >&5
12974
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
12975
Usually this means the macro was only invoked conditionally." >&2;}
12976
   { (exit 1); exit 1; }; }
12977
fi
12978
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12979
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12980
Usually this means the macro was only invoked conditionally." >&5
12981
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12982
Usually this means the macro was only invoked conditionally." >&2;}
12983
   { (exit 1); exit 1; }; }
12984
fi
12985
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12986
  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12987
Usually this means the macro was only invoked conditionally." >&5
12988
$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12989
Usually this means the macro was only invoked conditionally." >&2;}
12990
   { (exit 1); exit 1; }; }
12991
fi
12992
if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then
12993
  { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_0\" was never defined.
12994
Usually this means the macro was only invoked conditionally." >&5
12995
$as_echo "$as_me: error: conditional \"ELIX_LEVEL_0\" was never defined.
12996
Usually this means the macro was only invoked conditionally." >&2;}
12997
   { (exit 1); exit 1; }; }
12998
fi
12999
if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then
13000
  { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_1\" was never defined.
13001
Usually this means the macro was only invoked conditionally." >&5
13002
$as_echo "$as_me: error: conditional \"ELIX_LEVEL_1\" was never defined.
13003
Usually this means the macro was only invoked conditionally." >&2;}
13004
   { (exit 1); exit 1; }; }
13005
fi
13006
if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then
13007
  { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_2\" was never defined.
13008
Usually this means the macro was only invoked conditionally." >&5
13009
$as_echo "$as_me: error: conditional \"ELIX_LEVEL_2\" was never defined.
13010
Usually this means the macro was only invoked conditionally." >&2;}
13011
   { (exit 1); exit 1; }; }
13012
fi
13013
if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then
13014
  { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_3\" was never defined.
13015
Usually this means the macro was only invoked conditionally." >&5
13016
$as_echo "$as_me: error: conditional \"ELIX_LEVEL_3\" was never defined.
13017
Usually this means the macro was only invoked conditionally." >&2;}
13018
   { (exit 1); exit 1; }; }
13019
fi
13020
if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then
13021
  { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_4\" was never defined.
13022
Usually this means the macro was only invoked conditionally." >&5
13023
$as_echo "$as_me: error: conditional \"ELIX_LEVEL_4\" was never defined.
13024
Usually this means the macro was only invoked conditionally." >&2;}
13025
   { (exit 1); exit 1; }; }
13026
fi
13027
if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then
13028
  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_LIBTOOL\" was never defined.
13029
Usually this means the macro was only invoked conditionally." >&5
13030
$as_echo "$as_me: error: conditional \"USE_LIBTOOL\" was never defined.
13031
Usually this means the macro was only invoked conditionally." >&2;}
13032
   { (exit 1); exit 1; }; }
13033
fi
13034
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13035
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13036
Usually this means the macro was only invoked conditionally." >&5
13037
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13038
Usually this means the macro was only invoked conditionally." >&2;}
13039
   { (exit 1); exit 1; }; }
13040
fi
13041
if test -z "${HAVE_POSIX_DIR_TRUE}" && test -z "${HAVE_POSIX_DIR_FALSE}"; then
13042
  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_POSIX_DIR\" was never defined.
13043
Usually this means the macro was only invoked conditionally." >&5
13044
$as_echo "$as_me: error: conditional \"HAVE_POSIX_DIR\" was never defined.
13045
Usually this means the macro was only invoked conditionally." >&2;}
13046
   { (exit 1); exit 1; }; }
13047
fi
13048
if test -z "${HAVE_SIGNAL_DIR_TRUE}" && test -z "${HAVE_SIGNAL_DIR_FALSE}"; then
13049
  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SIGNAL_DIR\" was never defined.
13050
Usually this means the macro was only invoked conditionally." >&5
13051
$as_echo "$as_me: error: conditional \"HAVE_SIGNAL_DIR\" was never defined.
13052
Usually this means the macro was only invoked conditionally." >&2;}
13053
   { (exit 1); exit 1; }; }
13054
fi
13055
if test -z "${HAVE_STDIO_DIR_TRUE}" && test -z "${HAVE_STDIO_DIR_FALSE}"; then
13056
  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_STDIO_DIR\" was never defined.
13057
Usually this means the macro was only invoked conditionally." >&5
13058
$as_echo "$as_me: error: conditional \"HAVE_STDIO_DIR\" was never defined.
13059
Usually this means the macro was only invoked conditionally." >&2;}
13060
   { (exit 1); exit 1; }; }
13061
fi
13062
if test -z "${HAVE_STDIO64_DIR_TRUE}" && test -z "${HAVE_STDIO64_DIR_FALSE}"; then
13063
  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_STDIO64_DIR\" was never defined.
13064
Usually this means the macro was only invoked conditionally." >&5
13065
$as_echo "$as_me: error: conditional \"HAVE_STDIO64_DIR\" was never defined.
13066
Usually this means the macro was only invoked conditionally." >&2;}
13067
   { (exit 1); exit 1; }; }
13068
fi
13069
if test -z "${HAVE_SYSCALL_DIR_TRUE}" && test -z "${HAVE_SYSCALL_DIR_FALSE}"; then
13070
  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SYSCALL_DIR\" was never defined.
13071
Usually this means the macro was only invoked conditionally." >&5
13072
$as_echo "$as_me: error: conditional \"HAVE_SYSCALL_DIR\" was never defined.
13073
Usually this means the macro was only invoked conditionally." >&2;}
13074
   { (exit 1); exit 1; }; }
13075
fi
13076
if test -z "${HAVE_UNIX_DIR_TRUE}" && test -z "${HAVE_UNIX_DIR_FALSE}"; then
13077
  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_UNIX_DIR\" was never defined.
13078
Usually this means the macro was only invoked conditionally." >&5
13079
$as_echo "$as_me: error: conditional \"HAVE_UNIX_DIR\" was never defined.
13080
Usually this means the macro was only invoked conditionally." >&2;}
13081
   { (exit 1); exit 1; }; }
13082
fi
13083
if test -z "${HAVE_LONG_DOUBLE_TRUE}" && test -z "${HAVE_LONG_DOUBLE_FALSE}"; then
13084
  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LONG_DOUBLE\" was never defined.
13085
Usually this means the macro was only invoked conditionally." >&5
13086
$as_echo "$as_me: error: conditional \"HAVE_LONG_DOUBLE\" was never defined.
13087
Usually this means the macro was only invoked conditionally." >&2;}
13088
   { (exit 1); exit 1; }; }
13089
fi
13090
if test -z "${ENABLE_NEWLIB_ICONV_TRUE}" && test -z "${ENABLE_NEWLIB_ICONV_FALSE}"; then
13091
  { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_NEWLIB_ICONV\" was never defined.
13092
Usually this means the macro was only invoked conditionally." >&5
13093
$as_echo "$as_me: error: conditional \"ENABLE_NEWLIB_ICONV\" was never defined.
13094
Usually this means the macro was only invoked conditionally." >&2;}
13095
   { (exit 1); exit 1; }; }
13096
fi
13097
 
13098
: ${CONFIG_STATUS=./config.status}
13099
ac_write_fail=0
13100
ac_clean_files_save=$ac_clean_files
13101
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13102
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13103
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13104
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13105
#! $SHELL
13106
# Generated by $as_me.
13107
# Run this file to recreate the current configuration.
13108
# Compiler output produced by configure, useful for debugging
13109
# configure, is in config.log if it exists.
13110
 
13111
debug=false
13112
ac_cs_recheck=false
13113
ac_cs_silent=false
13114
SHELL=\${CONFIG_SHELL-$SHELL}
13115
_ACEOF
13116
 
13117
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13118
## --------------------- ##
13119
## M4sh Initialization.  ##
13120
## --------------------- ##
13121
 
13122
# Be more Bourne compatible
13123
DUALCASE=1; export DUALCASE # for MKS sh
13124
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13125
  emulate sh
13126
  NULLCMD=:
13127
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13128
  # is contrary to our usage.  Disable this feature.
13129
  alias -g '${1+"$@"}'='"$@"'
13130
  setopt NO_GLOB_SUBST
13131
else
13132
  case `(set -o) 2>/dev/null` in
13133
  *posix*) set -o posix ;;
13134
esac
13135
 
13136
fi
13137
 
13138
 
13139
 
13140
 
13141
# PATH needs CR
13142
# Avoid depending upon Character Ranges.
13143
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13144
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13145
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13146
as_cr_digits='0123456789'
13147
as_cr_alnum=$as_cr_Letters$as_cr_digits
13148
 
13149
as_nl='
13150
'
13151
export as_nl
13152
# Printing a long string crashes Solaris 7 /usr/bin/printf.
13153
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13154
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13155
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13156
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13157
  as_echo='printf %s\n'
13158
  as_echo_n='printf %s'
13159
else
13160
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13161
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13162
    as_echo_n='/usr/ucb/echo -n'
13163
  else
13164
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13165
    as_echo_n_body='eval
13166
      arg=$1;
13167
      case $arg in
13168
      *"$as_nl"*)
13169
        expr "X$arg" : "X\\(.*\\)$as_nl";
13170
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13171
      esac;
13172
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13173
    '
13174
    export as_echo_n_body
13175
    as_echo_n='sh -c $as_echo_n_body as_echo'
13176
  fi
13177
  export as_echo_body
13178
  as_echo='sh -c $as_echo_body as_echo'
13179
fi
13180
 
13181
# The user is always right.
13182
if test "${PATH_SEPARATOR+set}" != set; then
13183
  PATH_SEPARATOR=:
13184
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13185
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13186
      PATH_SEPARATOR=';'
13187
  }
13188
fi
13189
 
13190
# Support unset when possible.
13191
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13192
  as_unset=unset
13193
else
13194
  as_unset=false
13195
fi
13196
 
13197
 
13198
# IFS
13199
# We need space, tab and new line, in precisely that order.  Quoting is
13200
# there to prevent editors from complaining about space-tab.
13201
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13202
# splitting by setting IFS to empty value.)
13203
IFS=" ""        $as_nl"
13204
 
13205
# Find who we are.  Look in the path if we contain no directory separator.
13206
case $0 in
13207
  *[\\/]* ) as_myself=$0 ;;
13208
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13209
for as_dir in $PATH
13210
do
13211
  IFS=$as_save_IFS
13212
  test -z "$as_dir" && as_dir=.
13213
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13214
done
13215
IFS=$as_save_IFS
13216
 
13217
     ;;
13218
esac
13219
# We did not find ourselves, most probably we were run as `sh COMMAND'
13220
# in which case we are not to be found in the path.
13221
if test "x$as_myself" = x; then
13222
  as_myself=$0
13223
fi
13224
if test ! -f "$as_myself"; then
13225
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13226
  { (exit 1); exit 1; }
13227
fi
13228
 
13229
# Work around bugs in pre-3.0 UWIN ksh.
13230
for as_var in ENV MAIL MAILPATH
13231
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13232
done
13233
PS1='$ '
13234
PS2='> '
13235
PS4='+ '
13236
 
13237
# NLS nuisances.
13238
LC_ALL=C
13239
export LC_ALL
13240
LANGUAGE=C
13241
export LANGUAGE
13242
 
13243
# Required to use basename.
13244
if expr a : '\(a\)' >/dev/null 2>&1 &&
13245
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13246
  as_expr=expr
13247
else
13248
  as_expr=false
13249
fi
13250
 
13251
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13252
  as_basename=basename
13253
else
13254
  as_basename=false
13255
fi
13256
 
13257
 
13258
# Name of the executable.
13259
as_me=`$as_basename -- "$0" ||
13260
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13261
         X"$0" : 'X\(//\)$' \| \
13262
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13263
$as_echo X/"$0" |
13264
    sed '/^.*\/\([^/][^/]*\)\/*$/{
13265
            s//\1/
13266
            q
13267
          }
13268
          /^X\/\(\/\/\)$/{
13269
            s//\1/
13270
            q
13271
          }
13272
          /^X\/\(\/\).*/{
13273
            s//\1/
13274
            q
13275
          }
13276
          s/.*/./; q'`
13277
 
13278
# CDPATH.
13279
$as_unset CDPATH
13280
 
13281
 
13282
 
13283
  as_lineno_1=$LINENO
13284
  as_lineno_2=$LINENO
13285
  test "x$as_lineno_1" != "x$as_lineno_2" &&
13286
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13287
 
13288
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13289
  # uniformly replaced by the line number.  The first 'sed' inserts a
13290
  # line-number line after each line using $LINENO; the second 'sed'
13291
  # does the real work.  The second script uses 'N' to pair each
13292
  # line-number line with the line containing $LINENO, and appends
13293
  # trailing '-' during substitution so that $LINENO is not a special
13294
  # case at line end.
13295
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13296
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
13297
  # E. McMahon (1931-1989) for sed's syntax.  :-)
13298
  sed -n '
13299
    p
13300
    /[$]LINENO/=
13301
  ' <$as_myself |
13302
    sed '
13303
      s/[$]LINENO.*/&-/
13304
      t lineno
13305
      b
13306
      :lineno
13307
      N
13308
      :loop
13309
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13310
      t loop
13311
      s/-\n.*//
13312
    ' >$as_me.lineno &&
13313
  chmod +x "$as_me.lineno" ||
13314
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13315
   { (exit 1); exit 1; }; }
13316
 
13317
  # Don't try to exec as it changes $[0], causing all sort of problems
13318
  # (the dirname of $[0] is not the place where we might find the
13319
  # original and so on.  Autoconf is especially sensitive to this).
13320
  . "./$as_me.lineno"
13321
  # Exit status is that of the last command.
13322
  exit
13323
}
13324
 
13325
 
13326
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13327
  as_dirname=dirname
13328
else
13329
  as_dirname=false
13330
fi
13331
 
13332
ECHO_C= ECHO_N= ECHO_T=
13333
case `echo -n x` in
13334
-n*)
13335
  case `echo 'x\c'` in
13336
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13337
  *)   ECHO_C='\c';;
13338
  esac;;
13339
*)
13340
  ECHO_N='-n';;
13341
esac
13342
if expr a : '\(a\)' >/dev/null 2>&1 &&
13343
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13344
  as_expr=expr
13345
else
13346
  as_expr=false
13347
fi
13348
 
13349
rm -f conf$$ conf$$.exe conf$$.file
13350
if test -d conf$$.dir; then
13351
  rm -f conf$$.dir/conf$$.file
13352
else
13353
  rm -f conf$$.dir
13354
  mkdir conf$$.dir 2>/dev/null
13355
fi
13356
if (echo >conf$$.file) 2>/dev/null; then
13357
  if ln -s conf$$.file conf$$ 2>/dev/null; then
13358
    as_ln_s='ln -s'
13359
    # ... but there are two gotchas:
13360
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13361
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13362
    # In both cases, we have to default to `cp -p'.
13363
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13364
      as_ln_s='cp -p'
13365
  elif ln conf$$.file conf$$ 2>/dev/null; then
13366
    as_ln_s=ln
13367
  else
13368
    as_ln_s='cp -p'
13369
  fi
13370
else
13371
  as_ln_s='cp -p'
13372
fi
13373
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13374
rmdir conf$$.dir 2>/dev/null
13375
 
13376
if mkdir -p . 2>/dev/null; then
13377
  as_mkdir_p=:
13378
else
13379
  test -d ./-p && rmdir ./-p
13380
  as_mkdir_p=false
13381
fi
13382
 
13383
if test -x / >/dev/null 2>&1; then
13384
  as_test_x='test -x'
13385
else
13386
  if ls -dL / >/dev/null 2>&1; then
13387
    as_ls_L_option=L
13388
  else
13389
    as_ls_L_option=
13390
  fi
13391
  as_test_x='
13392
    eval sh -c '\''
13393
      if test -d "$1"; then
13394
        test -d "$1/.";
13395
      else
13396
        case $1 in
13397
        -*)set "./$1";;
13398
        esac;
13399
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13400
        ???[sx]*):;;*)false;;esac;fi
13401
    '\'' sh
13402
  '
13403
fi
13404
as_executable_p=$as_test_x
13405
 
13406
# Sed expression to map a string onto a valid CPP name.
13407
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13408
 
13409
# Sed expression to map a string onto a valid variable name.
13410
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13411
 
13412
 
13413
exec 6>&1
13414
 
13415
# Save the log message, to keep $[0] and so on meaningful, and to
13416
# report actual input values of CONFIG_FILES etc. instead of their
13417
# values after options handling.
13418
ac_log="
13419
This file was extended by newlib $as_me 1.18.0, which was
13420
generated by GNU Autoconf 2.63.  Invocation command line was
13421
 
13422
  CONFIG_FILES    = $CONFIG_FILES
13423
  CONFIG_HEADERS  = $CONFIG_HEADERS
13424
  CONFIG_LINKS    = $CONFIG_LINKS
13425
  CONFIG_COMMANDS = $CONFIG_COMMANDS
13426
  $ $0 $@
13427
 
13428
on `(hostname || uname -n) 2>/dev/null | sed 1q`
13429
"
13430
 
13431
_ACEOF
13432
 
13433
case $ac_config_files in *"
13434
"*) set x $ac_config_files; shift; ac_config_files=$*;;
13435
esac
13436
 
13437
 
13438
 
13439
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13440
# Files that config.status was made for.
13441
config_files="$ac_config_files"
13442
config_commands="$ac_config_commands"
13443
 
13444
_ACEOF
13445
 
13446
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13447
ac_cs_usage="\
13448
\`$as_me' instantiates files from templates according to the
13449
current configuration.
13450
 
13451
Usage: $0 [OPTION]... [FILE]...
13452
 
13453
  -h, --help       print this help, then exit
13454
  -V, --version    print version number and configuration settings, then exit
13455
  -q, --quiet, --silent
13456
                   do not print progress messages
13457
  -d, --debug      don't remove temporary files
13458
      --recheck    update $as_me by reconfiguring in the same conditions
13459
      --file=FILE[:TEMPLATE]
13460
                   instantiate the configuration file FILE
13461
 
13462
Configuration files:
13463
$config_files
13464
 
13465
Configuration commands:
13466
$config_commands
13467
 
13468
Report bugs to ."
13469
 
13470
_ACEOF
13471
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13472
ac_cs_version="\\
13473
newlib config.status 1.18.0
13474
configured by $0, generated by GNU Autoconf 2.63,
13475
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13476
 
13477
Copyright (C) 2008 Free Software Foundation, Inc.
13478
This config.status script is free software; the Free Software Foundation
13479
gives unlimited permission to copy, distribute and modify it."
13480
 
13481
ac_pwd='$ac_pwd'
13482
srcdir='$srcdir'
13483
INSTALL='$INSTALL'
13484
MKDIR_P='$MKDIR_P'
13485
AWK='$AWK'
13486
test -n "\$AWK" || AWK=awk
13487
_ACEOF
13488
 
13489
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13490
# The default lists apply if the user does not specify any file.
13491
ac_need_defaults=:
13492
while test $# != 0
13493
do
13494
  case $1 in
13495
  --*=*)
13496
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13497
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13498
    ac_shift=:
13499
    ;;
13500
  *)
13501
    ac_option=$1
13502
    ac_optarg=$2
13503
    ac_shift=shift
13504
    ;;
13505
  esac
13506
 
13507
  case $ac_option in
13508
  # Handling of the options.
13509
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13510
    ac_cs_recheck=: ;;
13511
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13512
    $as_echo "$ac_cs_version"; exit ;;
13513
  --debug | --debu | --deb | --de | --d | -d )
13514
    debug=: ;;
13515
  --file | --fil | --fi | --f )
13516
    $ac_shift
13517
    case $ac_optarg in
13518
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13519
    esac
13520
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13521
    ac_need_defaults=false;;
13522
  --he | --h |  --help | --hel | -h )
13523
    $as_echo "$ac_cs_usage"; exit ;;
13524
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13525
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13526
    ac_cs_silent=: ;;
13527
 
13528
  # This is an error.
13529
  -*) { $as_echo "$as_me: error: unrecognized option: $1
13530
Try \`$0 --help' for more information." >&2
13531
   { (exit 1); exit 1; }; } ;;
13532
 
13533
  *) ac_config_targets="$ac_config_targets $1"
13534
     ac_need_defaults=false ;;
13535
 
13536
  esac
13537
  shift
13538
done
13539
 
13540
ac_configure_extra_args=
13541
 
13542
if $ac_cs_silent; then
13543
  exec 6>/dev/null
13544
  ac_configure_extra_args="$ac_configure_extra_args --silent"
13545
fi
13546
 
13547
_ACEOF
13548
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13549
if \$ac_cs_recheck; then
13550
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13551
  shift
13552
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13553
  CONFIG_SHELL='$SHELL'
13554
  export CONFIG_SHELL
13555
  exec "\$@"
13556
fi
13557
 
13558
_ACEOF
13559
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13560
exec 5>>config.log
13561
{
13562
  echo
13563
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13564
## Running $as_me. ##
13565
_ASBOX
13566
  $as_echo "$ac_log"
13567
} >&5
13568
 
13569
_ACEOF
13570
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13571
#
13572
# INIT-COMMANDS
13573
#
13574
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13575
 
13576
 
13577
# The HP-UX ksh and POSIX shell print the target directory to stdout
13578
# if CDPATH is set.
13579
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13580
 
13581
sed_quote_subst='$sed_quote_subst'
13582
double_quote_subst='$double_quote_subst'
13583
delay_variable_subst='$delay_variable_subst'
13584
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13585
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13586
AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
13587
DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13588
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13589
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13590
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13591
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13592
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13593
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13594
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13595
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13596
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13597
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13598
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13599
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13600
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13601
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13602
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13603
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13604
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13605
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13606
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13607
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13608
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13609
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13610
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13611
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13612
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13613
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13614
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13615
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13616
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13617
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13618
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13619
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13620
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13621
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13622
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13623
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13624
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13625
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13626
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13627
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13628
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13629
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13630
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
13631
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13632
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13633
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13634
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13635
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13636
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13637
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13638
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13639
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13640
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13641
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13642
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13643
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13644
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13645
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13646
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13647
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13648
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13649
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13650
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13651
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13652
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13653
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13654
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13655
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13656
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13657
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13658
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13659
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13660
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13661
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13662
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13663
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13664
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13665
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13666
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13667
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13668
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13669
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13670
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13671
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13672
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13673
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13674
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13675
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13676
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13677
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13678
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13679
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13680
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13681
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13682
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13683
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13684
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13685
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13686
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13687
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13688
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13689
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13690
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13691
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13692
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13693
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13694
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13695
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13696
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13697
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13698
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13699
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13700
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13701
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13702
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13703
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13704
 
13705
LTCC='$LTCC'
13706
LTCFLAGS='$LTCFLAGS'
13707
compiler='$compiler_DEFAULT'
13708
 
13709
# Quote evaled strings.
13710
for var in SED \
13711
GREP \
13712
EGREP \
13713
FGREP \
13714
LD \
13715
NM \
13716
LN_S \
13717
lt_SP2NL \
13718
lt_NL2SP \
13719
reload_flag \
13720
deplibs_check_method \
13721
file_magic_cmd \
13722
AR \
13723
AR_FLAGS \
13724
STRIP \
13725
RANLIB \
13726
CC \
13727
CFLAGS \
13728
compiler \
13729
lt_cv_sys_global_symbol_pipe \
13730
lt_cv_sys_global_symbol_to_cdecl \
13731
lt_cv_sys_global_symbol_to_c_name_address \
13732
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13733
SHELL \
13734
ECHO \
13735
lt_prog_compiler_no_builtin_flag \
13736
lt_prog_compiler_wl \
13737
lt_prog_compiler_pic \
13738
lt_prog_compiler_static \
13739
lt_cv_prog_compiler_c_o \
13740
need_locks \
13741
DSYMUTIL \
13742
NMEDIT \
13743
LIPO \
13744
OTOOL \
13745
OTOOL64 \
13746
shrext_cmds \
13747
export_dynamic_flag_spec \
13748
whole_archive_flag_spec \
13749
compiler_needs_object \
13750
with_gnu_ld \
13751
allow_undefined_flag \
13752
no_undefined_flag \
13753
hardcode_libdir_flag_spec \
13754
hardcode_libdir_flag_spec_ld \
13755
hardcode_libdir_separator \
13756
fix_srcfile_path \
13757
exclude_expsyms \
13758
include_expsyms \
13759
file_list_spec \
13760
variables_saved_for_relink \
13761
libname_spec \
13762
library_names_spec \
13763
soname_spec \
13764
finish_eval \
13765
old_striplib \
13766
striplib; do
13767
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13768
    *[\\\\\\\`\\"\\\$]*)
13769
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13770
      ;;
13771
    *)
13772
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13773
      ;;
13774
    esac
13775
done
13776
 
13777
# Double-quote double-evaled strings.
13778
for var in reload_cmds \
13779
old_postinstall_cmds \
13780
old_postuninstall_cmds \
13781
old_archive_cmds \
13782
extract_expsyms_cmds \
13783
old_archive_from_new_cmds \
13784
old_archive_from_expsyms_cmds \
13785
archive_cmds \
13786
archive_expsym_cmds \
13787
module_cmds \
13788
module_expsym_cmds \
13789
export_symbols_cmds \
13790
prelink_cmds \
13791
postinstall_cmds \
13792
postuninstall_cmds \
13793
finish_cmds \
13794
sys_lib_search_path_spec \
13795
sys_lib_dlsearch_path_spec; do
13796
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13797
    *[\\\\\\\`\\"\\\$]*)
13798
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13799
      ;;
13800
    *)
13801
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13802
      ;;
13803
    esac
13804
done
13805
 
13806
# Fix-up fallback echo if it was mangled by the above quoting rules.
13807
case \$lt_ECHO in
13808
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13809
  ;;
13810
esac
13811
 
13812
ac_aux_dir='$ac_aux_dir'
13813
xsi_shell='$xsi_shell'
13814
lt_shell_append='$lt_shell_append'
13815
 
13816
# See if we are running on zsh, and set the options which allow our
13817
# commands through without removal of \ escapes INIT.
13818
if test -n "\${ZSH_VERSION+set}" ; then
13819
   setopt NO_GLOB_SUBST
13820
fi
13821
 
13822
 
13823
    PACKAGE='$PACKAGE'
13824
    VERSION='$VERSION'
13825
    TIMESTAMP='$TIMESTAMP'
13826
    RM='$RM'
13827
    ofile='$ofile'
13828
 
13829
 
13830
 
13831
 
13832
_ACEOF
13833
 
13834
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13835
 
13836
# Handling of arguments.
13837
for ac_config_target in $ac_config_targets
13838
do
13839
  case $ac_config_target in
13840
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13841
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13842
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13843
    "argz/Makefile") CONFIG_FILES="$CONFIG_FILES argz/Makefile" ;;
13844
    "ctype/Makefile") CONFIG_FILES="$CONFIG_FILES ctype/Makefile" ;;
13845
    "errno/Makefile") CONFIG_FILES="$CONFIG_FILES errno/Makefile" ;;
13846
    "locale/Makefile") CONFIG_FILES="$CONFIG_FILES locale/Makefile" ;;
13847
    "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
13848
    "reent/Makefile") CONFIG_FILES="$CONFIG_FILES reent/Makefile" ;;
13849
    "search/Makefile") CONFIG_FILES="$CONFIG_FILES search/Makefile" ;;
13850
    "stdio/Makefile") CONFIG_FILES="$CONFIG_FILES stdio/Makefile" ;;
13851
    "stdio64/Makefile") CONFIG_FILES="$CONFIG_FILES stdio64/Makefile" ;;
13852
    "stdlib/Makefile") CONFIG_FILES="$CONFIG_FILES stdlib/Makefile" ;;
13853
    "string/Makefile") CONFIG_FILES="$CONFIG_FILES string/Makefile" ;;
13854
    "time/Makefile") CONFIG_FILES="$CONFIG_FILES time/Makefile" ;;
13855
    "posix/Makefile") CONFIG_FILES="$CONFIG_FILES posix/Makefile" ;;
13856
    "signal/Makefile") CONFIG_FILES="$CONFIG_FILES signal/Makefile" ;;
13857
    "syscalls/Makefile") CONFIG_FILES="$CONFIG_FILES syscalls/Makefile" ;;
13858
    "unix/Makefile") CONFIG_FILES="$CONFIG_FILES unix/Makefile" ;;
13859
    "iconv/Makefile") CONFIG_FILES="$CONFIG_FILES iconv/Makefile" ;;
13860
    "iconv/ces/Makefile") CONFIG_FILES="$CONFIG_FILES iconv/ces/Makefile" ;;
13861
    "iconv/ccs/Makefile") CONFIG_FILES="$CONFIG_FILES iconv/ccs/Makefile" ;;
13862
    "iconv/ccs/binary/Makefile") CONFIG_FILES="$CONFIG_FILES iconv/ccs/binary/Makefile" ;;
13863
    "iconv/lib/Makefile") CONFIG_FILES="$CONFIG_FILES iconv/lib/Makefile" ;;
13864
 
13865
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13866
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13867
   { (exit 1); exit 1; }; };;
13868
  esac
13869
done
13870
 
13871
 
13872
# If the user did not use the arguments to specify the items to instantiate,
13873
# then the envvar interface is used.  Set only those that are not.
13874
# We use the long form for the default assignment because of an extremely
13875
# bizarre bug on SunOS 4.1.3.
13876
if $ac_need_defaults; then
13877
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13878
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13879
fi
13880
 
13881
# Have a temporary directory for convenience.  Make it in the build tree
13882
# simply because there is no reason against having it here, and in addition,
13883
# creating and moving files from /tmp can sometimes cause problems.
13884
# Hook for its removal unless debugging.
13885
# Note that there is a small window in which the directory will not be cleaned:
13886
# after its creation but before its name has been assigned to `$tmp'.
13887
$debug ||
13888
{
13889
  tmp=
13890
  trap 'exit_status=$?
13891
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13892
' 0
13893
  trap '{ (exit 1); exit 1; }' 1 2 13 15
13894
}
13895
# Create a (secure) tmp directory for tmp files.
13896
 
13897
{
13898
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13899
  test -n "$tmp" && test -d "$tmp"
13900
}  ||
13901
{
13902
  tmp=./conf$$-$RANDOM
13903
  (umask 077 && mkdir "$tmp")
13904
} ||
13905
{
13906
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
13907
   { (exit 1); exit 1; }
13908
}
13909
 
13910
# Set up the scripts for CONFIG_FILES section.
13911
# No need to generate them if there are no CONFIG_FILES.
13912
# This happens for instance with `./config.status config.h'.
13913
if test -n "$CONFIG_FILES"; then
13914
 
13915
 
13916
ac_cr='
'
13917
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
13918
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13919
  ac_cs_awk_cr='\\r'
13920
else
13921
  ac_cs_awk_cr=$ac_cr
13922
fi
13923
13924
 
13925
_ACEOF
13926
13927
 
13928
 
13929
  echo "cat >conf$$subs.awk <<_ACEOF" &&
13930
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13931
  echo "_ACEOF"
13932
} >conf$$subs.sh ||
13933
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13934
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13935
   { (exit 1); exit 1; }; }
13936
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13937
ac_delim='%!_!# '
13938
for ac_last_try in false false false false false :; do
13939
  . ./conf$$subs.sh ||
13940
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13941
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13942
   { (exit 1); exit 1; }; }
13943
13944
 
13945
  if test $ac_delim_n = $ac_delim_num; then
13946
    break
13947
  elif $ac_last_try; then
13948
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13949
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13950
   { (exit 1); exit 1; }; }
13951
  else
13952
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13953
  fi
13954
done
13955
rm -f conf$$subs.sh
13956
13957
 
13958
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13959
_ACEOF
13960
sed -n '
13961
h
13962
s/^/S["/; s/!.*/"]=/
13963
p
13964
g
13965
s/^[^!]*!//
13966
:repl
13967
t repl
13968
s/'"$ac_delim"'$//
13969
t delim
13970
:nl
13971
h
13972
s/\(.\{148\}\).*/\1/
13973
t more1
13974
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13975
p
13976
n
13977
b repl
13978
:more1
13979
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13980
p
13981
g
13982
s/.\{148\}//
13983
t nl
13984
:delim
13985
h
13986
s/\(.\{148\}\).*/\1/
13987
t more2
13988
s/["\\]/\\&/g; s/^/"/; s/$/"/
13989
p
13990
b
13991
:more2
13992
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13993
p
13994
g
13995
s/.\{148\}//
13996
t delim
13997
' 
13998
/^[^""]/{
13999
  N
14000
  s/\n//
14001
}
14002
' >>$CONFIG_STATUS || ac_write_fail=1
14003
rm -f conf$$subs.awk
14004
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14005
_ACAWK
14006
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14007
  for (key in S) S_is_set[key] = 1
14008
  FS = ""
14009
14010
 
14011
{
14012
  line = $ 0
14013
  nfields = split(line, field, "@")
14014
  substed = 0
14015
  len = length(field[1])
14016
  for (i = 2; i < nfields; i++) {
14017
    key = field[i]
14018
    keylen = length(key)
14019
    if (S_is_set[key]) {
14020
      value = S[key]
14021
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14022
      len += length(value) + length(field[++i])
14023
      substed = 1
14024
    } else
14025
      len += 1 + keylen
14026
  }
14027
14028
 
14029
}
14030
14031
 
14032
_ACEOF
14033
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14034
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14035
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14036
else
14037
  cat
14038
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14039
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14040
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
14041
   { (exit 1); exit 1; }; }
14042
_ACEOF
14043
14044
 
14045
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14046
# trailing colons and then remove the whole line if VPATH becomes empty
14047
# (actually we leave an empty line to preserve line numbers).
14048
if test "x$srcdir" = x.; then
14049
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
14050
s/:*\$(srcdir):*/:/
14051
s/:*\${srcdir}:*/:/
14052
s/:*@srcdir@:*/:/
14053
s/^\([^=]*=[     ]*\):*/\1/
14054
s/:*$//
14055
s/^[^=]*=[       ]*$//
14056
}'
14057
fi
14058
14059
 
14060
fi # test -n "$CONFIG_FILES"
14061
14062
 
14063
 
14064
shift
14065
for ac_tag
14066
do
14067
  case $ac_tag in
14068
  :[FHLC]) ac_mode=$ac_tag; continue;;
14069
  esac
14070
  case $ac_mode$ac_tag in
14071
  :[FHL]*:*);;
14072
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14073
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14074
   { (exit 1); exit 1; }; };;
14075
  :[FH]-) ac_tag=-:-;;
14076
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14077
  esac
14078
  ac_save_IFS=$IFS
14079
  IFS=:
14080
  set x $ac_tag
14081
  IFS=$ac_save_IFS
14082
  shift
14083
  ac_file=$1
14084
  shift
14085
14086
 
14087
  :L) ac_source=$1;;
14088
  :[FH])
14089
    ac_file_inputs=
14090
    for ac_f
14091
    do
14092
      case $ac_f in
14093
      -) ac_f="$tmp/stdin";;
14094
      *) # Look for the file first in the build tree, then in the source tree
14095
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
14096
         # because $ac_f cannot contain `:'.
14097
         test -f "$ac_f" ||
14098
           case $ac_f in
14099
           [\\/$]*) false;;
14100
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14101
           esac ||
14102
           { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14103
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14104
   { (exit 1); exit 1; }; };;
14105
      esac
14106
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14107
      ac_file_inputs="$ac_file_inputs '$ac_f'"
14108
    done
14109
14110
 
14111
    # use $as_me), people would be surprised to read:
14112
    #    /* config.h.  Generated by config.status.  */
14113
    configure_input='Generated from '`
14114
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14115
        `' by configure.'
14116
    if test x"$ac_file" != x-; then
14117
      configure_input="$ac_file.  $configure_input"
14118
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14119
$as_echo "$as_me: creating $ac_file" >&6;}
14120
    fi
14121
    # Neutralize special characters interpreted by sed in replacement strings.
14122
    case $configure_input in #(
14123
    *\&* | *\|* | *\\* )
14124
       ac_sed_conf_input=`$as_echo "$configure_input" |
14125
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14126
    *) ac_sed_conf_input=$configure_input;;
14127
    esac
14128
14129
 
14130
    *:-:* | *:-) cat >"$tmp/stdin" \
14131
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14132
$as_echo "$as_me: error: could not create $ac_file" >&2;}
14133
   { (exit 1); exit 1; }; } ;;
14134
    esac
14135
    ;;
14136
  esac
14137
14138
 
14139
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14140
         X"$ac_file" : 'X\(//\)[^/]' \| \
14141
         X"$ac_file" : 'X\(//\)$' \| \
14142
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14143
$as_echo X"$ac_file" |
14144
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14145
            s//\1/
14146
            q
14147
          }
14148
          /^X\(\/\/\)[^/].*/{
14149
            s//\1/
14150
            q
14151
          }
14152
          /^X\(\/\/\)$/{
14153
            s//\1/
14154
            q
14155
          }
14156
          /^X\(\/\).*/{
14157
            s//\1/
14158
            q
14159
          }
14160
          s/.*/./; q'`
14161
  { as_dir="$ac_dir"
14162
  case $as_dir in #(
14163
  -*) as_dir=./$as_dir;;
14164
  esac
14165
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14166
    as_dirs=
14167
    while :; do
14168
      case $as_dir in #(
14169
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14170
      *) as_qdir=$as_dir;;
14171
      esac
14172
      as_dirs="'$as_qdir' $as_dirs"
14173
      as_dir=`$as_dirname -- "$as_dir" ||
14174
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14175
         X"$as_dir" : 'X\(//\)[^/]' \| \
14176
         X"$as_dir" : 'X\(//\)$' \| \
14177
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14178
$as_echo X"$as_dir" |
14179
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14180
            s//\1/
14181
            q
14182
          }
14183
          /^X\(\/\/\)[^/].*/{
14184
            s//\1/
14185
            q
14186
          }
14187
          /^X\(\/\/\)$/{
14188
            s//\1/
14189
            q
14190
          }
14191
          /^X\(\/\).*/{
14192
            s//\1/
14193
            q
14194
          }
14195
          s/.*/./; q'`
14196
      test -d "$as_dir" && break
14197
    done
14198
    test -z "$as_dirs" || eval "mkdir $as_dirs"
14199
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14200
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14201
   { (exit 1); exit 1; }; }; }
14202
  ac_builddir=.
14203
14204
 
14205
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14206
*)
14207
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14208
  # A ".." for each directory in $ac_dir_suffix.
14209
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14210
  case $ac_top_builddir_sub in
14211
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14212
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14213
  esac ;;
14214
esac
14215
ac_abs_top_builddir=$ac_pwd
14216
ac_abs_builddir=$ac_pwd$ac_dir_suffix
14217
# for backward compatibility:
14218
ac_top_builddir=$ac_top_build_prefix
14219
14220
 
14221
  .)  # We are building in place.
14222
    ac_srcdir=.
14223
    ac_top_srcdir=$ac_top_builddir_sub
14224
    ac_abs_top_srcdir=$ac_pwd ;;
14225
  [\\/]* | ?:[\\/]* )  # Absolute name.
14226
    ac_srcdir=$srcdir$ac_dir_suffix;
14227
    ac_top_srcdir=$srcdir
14228
    ac_abs_top_srcdir=$srcdir ;;
14229
  *) # Relative name.
14230
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14231
    ac_top_srcdir=$ac_top_build_prefix$srcdir
14232
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14233
esac
14234
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14235
14236
 
14237
 
14238
  :F)
14239
  #
14240
  # CONFIG_FILE
14241
  #
14242
14243
 
14244
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14245
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14246
  esac
14247
  ac_MKDIR_P=$MKDIR_P
14248
  case $MKDIR_P in
14249
  [\\/$]* | ?:[\\/]* ) ;;
14250
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14251
  esac
14252
_ACEOF
14253
14254
 
14255
# If the template does not know about datarootdir, expand it.
14256
# FIXME: This hack should be removed a few years after 2.60.
14257
ac_datarootdir_hack=; ac_datarootdir_seen=
14258
14259
 
14260
/datarootdir/ {
14261
  p
14262
  q
14263
}
14264
/@datadir@/p
14265
/@docdir@/p
14266
/@infodir@/p
14267
/@localedir@/p
14268
/@mandir@/p
14269
'
14270
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14271
*datarootdir*) ac_datarootdir_seen=yes;;
14272
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14273
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14274
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14275
_ACEOF
14276
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14277
  ac_datarootdir_hack='
14278
  s&@datadir@&$datadir&g
14279
  s&@docdir@&$docdir&g
14280
  s&@infodir@&$infodir&g
14281
  s&@localedir@&$localedir&g
14282
  s&@mandir@&$mandir&g
14283
    s&\\\${datarootdir}&$datarootdir&g' ;;
14284
esac
14285
_ACEOF
14286
14287
 
14288
# Shell code in configure.ac might set extrasub.
14289
# FIXME: do we really want to maintain this feature?
14290
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14291
ac_sed_extra="$ac_vpsub
14292
$extrasub
14293
_ACEOF
14294
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14295
:t
14296
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14297
s|@configure_input@|$ac_sed_conf_input|;t t
14298
s&@top_builddir@&$ac_top_builddir_sub&;t t
14299
s&@top_build_prefix@&$ac_top_build_prefix&;t t
14300
s&@srcdir@&$ac_srcdir&;t t
14301
s&@abs_srcdir@&$ac_abs_srcdir&;t t
14302
s&@top_srcdir@&$ac_top_srcdir&;t t
14303
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14304
s&@builddir@&$ac_builddir&;t t
14305
s&@abs_builddir@&$ac_abs_builddir&;t t
14306
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14307
s&@INSTALL@&$ac_INSTALL&;t t
14308
s&@MKDIR_P@&$ac_MKDIR_P&;t t
14309
$ac_datarootdir_hack
14310
"
14311
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14312
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14313
$as_echo "$as_me: error: could not create $ac_file" >&2;}
14314
   { (exit 1); exit 1; }; }
14315
14316
 
14317
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14318
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14319
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14320
which seems to be undefined.  Please make sure it is defined." >&5
14321
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14322
which seems to be undefined.  Please make sure it is defined." >&2;}
14323
14324
 
14325
  case $ac_file in
14326
  -) cat "$tmp/out" && rm -f "$tmp/out";;
14327
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14328
  esac \
14329
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14330
$as_echo "$as_me: error: could not create $ac_file" >&2;}
14331
   { (exit 1); exit 1; }; }
14332
 ;;
14333
14334
 
14335
 
14336
$as_echo "$as_me: executing $ac_file commands" >&6;}
14337
 ;;
14338
  esac
14339
14340
 
14341
 
14342
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14343
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
14344
  # are listed without --file.  Let's play safe and only enable the eval
14345
  # if we detect the quoting.
14346
  case $CONFIG_FILES in
14347
  *\'*) eval set x "$CONFIG_FILES" ;;
14348
  *)   set x $CONFIG_FILES ;;
14349
  esac
14350
  shift
14351
  for mf
14352
  do
14353
    # Strip MF so we end up with the name of the file.
14354
    mf=`echo "$mf" | sed -e 's/:.*$//'`
14355
    # Check whether this is an Automake generated Makefile or not.
14356
    # We used to match only the files named `Makefile.in', but
14357
    # some people rename them; so instead we look at the file content.
14358
    # Grep'ing the first line is not enough: some people post-process
14359
    # each Makefile.in and add a new line on top of each file to say so.
14360
    # Grep'ing the whole file is not good either: AIX grep has a line
14361
    # limit of 2048, but all sed's we know have understand at least 4000.
14362
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14363
      dirpart=`$as_dirname -- "$mf" ||
14364
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14365
         X"$mf" : 'X\(//\)[^/]' \| \
14366
         X"$mf" : 'X\(//\)$' \| \
14367
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14368
$as_echo X"$mf" |
14369
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14370
            s//\1/
14371
            q
14372
          }
14373
          /^X\(\/\/\)[^/].*/{
14374
            s//\1/
14375
            q
14376
          }
14377
          /^X\(\/\/\)$/{
14378
            s//\1/
14379
            q
14380
          }
14381
          /^X\(\/\).*/{
14382
            s//\1/
14383
            q
14384
          }
14385
          s/.*/./; q'`
14386
    else
14387
      continue
14388
    fi
14389
    # Extract the definition of DEPDIR, am__include, and am__quote
14390
    # from the Makefile without running `make'.
14391
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14392
    test -z "$DEPDIR" && continue
14393
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14394
    test -z "am__include" && continue
14395
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14396
    # When using ansi2knr, U may be empty or an underscore; expand it
14397
    U=`sed -n 's/^U = //p' < "$mf"`
14398
    # Find all dependency output files, they are included files with
14399
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14400
    # simplest approach to changing $(DEPDIR) to its actual value in the
14401
    # expansion.
14402
    for file in `sed -n "
14403
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14404
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14405
      # Make sure the directory exists.
14406
      test -f "$dirpart/$file" && continue
14407
      fdir=`$as_dirname -- "$file" ||
14408
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14409
         X"$file" : 'X\(//\)[^/]' \| \
14410
         X"$file" : 'X\(//\)$' \| \
14411
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14412
$as_echo X"$file" |
14413
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14414
            s//\1/
14415
            q
14416
          }
14417
          /^X\(\/\/\)[^/].*/{
14418
            s//\1/
14419
            q
14420
          }
14421
          /^X\(\/\/\)$/{
14422
            s//\1/
14423
            q
14424
          }
14425
          /^X\(\/\).*/{
14426
            s//\1/
14427
            q
14428
          }
14429
          s/.*/./; q'`
14430
      { as_dir=$dirpart/$fdir
14431
  case $as_dir in #(
14432
  -*) as_dir=./$as_dir;;
14433
  esac
14434
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14435
    as_dirs=
14436
    while :; do
14437
      case $as_dir in #(
14438
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14439
      *) as_qdir=$as_dir;;
14440
      esac
14441
      as_dirs="'$as_qdir' $as_dirs"
14442
      as_dir=`$as_dirname -- "$as_dir" ||
14443
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14444
         X"$as_dir" : 'X\(//\)[^/]' \| \
14445
         X"$as_dir" : 'X\(//\)$' \| \
14446
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14447
$as_echo X"$as_dir" |
14448
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14449
            s//\1/
14450
            q
14451
          }
14452
          /^X\(\/\/\)[^/].*/{
14453
            s//\1/
14454
            q
14455
          }
14456
          /^X\(\/\/\)$/{
14457
            s//\1/
14458
            q
14459
          }
14460
          /^X\(\/\).*/{
14461
            s//\1/
14462
            q
14463
          }
14464
          s/.*/./; q'`
14465
      test -d "$as_dir" && break
14466
    done
14467
    test -z "$as_dirs" || eval "mkdir $as_dirs"
14468
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14469
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14470
   { (exit 1); exit 1; }; }; }
14471
      # echo "creating $dirpart/$file"
14472
      echo '# dummy' > "$dirpart/$file"
14473
    done
14474
  done
14475
}
14476
 ;;
14477
    "libtool":C)
14478
14479
 
14480
    # commands through without removal of \ escapes.
14481
    if test -n "${ZSH_VERSION+set}" ; then
14482
      setopt NO_GLOB_SUBST
14483
    fi
14484
14485
 
14486
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14487
    $RM "$cfgfile"
14488
14489
 
14490
#! $SHELL
14491
14492
 
14493
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14494
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14495
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14496
#
14497
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14498
#                 2006, 2007, 2008 Free Software Foundation, Inc.
14499
#   Written by Gordon Matzigkeit, 1996
14500
#
14501
#   This file is part of GNU Libtool.
14502
#
14503
# GNU Libtool is free software; you can redistribute it and/or
14504
# modify it under the terms of the GNU General Public License as
14505
# published by the Free Software Foundation; either version 2 of
14506
# the License, or (at your option) any later version.
14507
#
14508
# As a special exception to the GNU General Public License,
14509
# if you distribute this file as part of a program or library that
14510
# is built using GNU Libtool, you may include this file under the
14511
# same distribution terms that you use for the rest of that program.
14512
#
14513
# GNU Libtool is distributed in the hope that it will be useful,
14514
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14515
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14516
# GNU General Public License for more details.
14517
#
14518
# You should have received a copy of the GNU General Public License
14519
# along with GNU Libtool; see the file COPYING.  If not, a copy
14520
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14521
# obtained by writing to the Free Software Foundation, Inc.,
14522
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14523
14524
 
14525
 
14526
available_tags=""
14527
14528
 
14529
14530
 
14531
SED=$lt_SED
14532
14533
 
14534
Xsed="\$SED -e 1s/^X//"
14535
14536
 
14537
AS=$AS
14538
14539
 
14540
DLLTOOL=$DLLTOOL
14541
14542
 
14543
OBJDUMP=$OBJDUMP
14544
14545
 
14546
macro_version=$macro_version
14547
macro_revision=$macro_revision
14548
14549
 
14550
build_libtool_libs=$enable_shared
14551
14552
 
14553
build_old_libs=$enable_static
14554
14555
 
14556
pic_mode=$pic_mode
14557
14558
 
14559
fast_install=$enable_fast_install
14560
14561
 
14562
host_alias=$host_alias
14563
host=$host
14564
host_os=$host_os
14565
14566
 
14567
build_alias=$build_alias
14568
build=$build
14569
build_os=$build_os
14570
14571
 
14572
GREP=$lt_GREP
14573
14574
 
14575
EGREP=$lt_EGREP
14576
14577
 
14578
FGREP=$lt_FGREP
14579
14580
 
14581
NM=$lt_NM
14582
14583
 
14584
LN_S=$lt_LN_S
14585
14586
 
14587
max_cmd_len=$max_cmd_len
14588
14589
 
14590
objext=$ac_objext
14591
14592
 
14593
exeext=$exeext
14594
14595
 
14596
lt_unset=$lt_unset
14597
14598
 
14599
SP2NL=$lt_lt_SP2NL
14600
14601
 
14602
NL2SP=$lt_lt_NL2SP
14603
14604
 
14605
reload_flag=$lt_reload_flag
14606
reload_cmds=$lt_reload_cmds
14607
14608
 
14609
deplibs_check_method=$lt_deplibs_check_method
14610
14611
 
14612
file_magic_cmd=$lt_file_magic_cmd
14613
14614
 
14615
AR=$lt_AR
14616
AR_FLAGS=$lt_AR_FLAGS
14617
14618
 
14619
STRIP=$lt_STRIP
14620
14621
 
14622
RANLIB=$lt_RANLIB
14623
old_postinstall_cmds=$lt_old_postinstall_cmds
14624
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14625
14626
 
14627
LTCC=$lt_CC
14628
14629
 
14630
LTCFLAGS=$lt_CFLAGS
14631
14632
 
14633
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14634
14635
 
14636
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14637
14638
 
14639
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14640
14641
 
14642
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14643
14644
 
14645
objdir=$objdir
14646
14647
 
14648
SHELL=$lt_SHELL
14649
14650
 
14651
ECHO=$lt_ECHO
14652
14653
 
14654
MAGIC_CMD=$MAGIC_CMD
14655
14656
 
14657
need_locks=$lt_need_locks
14658
14659
 
14660
DSYMUTIL=$lt_DSYMUTIL
14661
14662
 
14663
NMEDIT=$lt_NMEDIT
14664
14665
 
14666
LIPO=$lt_LIPO
14667
14668
 
14669
OTOOL=$lt_OTOOL
14670
14671
 
14672
OTOOL64=$lt_OTOOL64
14673
14674
 
14675
libext=$libext
14676
14677
 
14678
shrext_cmds=$lt_shrext_cmds
14679
14680
 
14681
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14682
14683
 
14684
# restored at link time.
14685
variables_saved_for_relink=$lt_variables_saved_for_relink
14686
14687
 
14688
need_lib_prefix=$need_lib_prefix
14689
14690
 
14691
need_version=$need_version
14692
14693
 
14694
version_type=$version_type
14695
14696
 
14697
runpath_var=$runpath_var
14698
14699
 
14700
shlibpath_var=$shlibpath_var
14701
14702
 
14703
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14704
14705
 
14706
libname_spec=$lt_libname_spec
14707
14708
 
14709
# The last name is the one that the linker finds with -lNAME
14710
library_names_spec=$lt_library_names_spec
14711
14712
 
14713
soname_spec=$lt_soname_spec
14714
14715
 
14716
postinstall_cmds=$lt_postinstall_cmds
14717
14718
 
14719
postuninstall_cmds=$lt_postuninstall_cmds
14720
14721
 
14722
finish_cmds=$lt_finish_cmds
14723
14724
 
14725
# not shown.
14726
finish_eval=$lt_finish_eval
14727
14728
 
14729
hardcode_into_libs=$hardcode_into_libs
14730
14731
 
14732
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14733
14734
 
14735
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14736
14737
 
14738
dlopen_support=$enable_dlopen
14739
14740
 
14741
dlopen_self=$enable_dlopen_self
14742
14743
 
14744
dlopen_self_static=$enable_dlopen_self_static
14745
14746
 
14747
old_striplib=$lt_old_striplib
14748
striplib=$lt_striplib
14749
14750
 
14751
 
14752
LD=$lt_LD
14753
14754
 
14755
old_archive_cmds=$lt_old_archive_cmds
14756
14757
 
14758
CC=$lt_compiler
14759
14760
 
14761
with_gcc=$GCC
14762
14763
 
14764
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14765
14766
 
14767
wl=$lt_lt_prog_compiler_wl
14768
14769
 
14770
pic_flag=$lt_lt_prog_compiler_pic
14771
14772
 
14773
link_static_flag=$lt_lt_prog_compiler_static
14774
14775
 
14776
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14777
14778
 
14779
build_libtool_need_lc=$archive_cmds_need_lc
14780
14781
 
14782
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14783
14784
 
14785
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14786
14787
 
14788
whole_archive_flag_spec=$lt_whole_archive_flag_spec
14789
14790
 
14791
compiler_needs_object=$lt_compiler_needs_object
14792
14793
 
14794
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14795
14796
 
14797
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14798
14799
 
14800
archive_cmds=$lt_archive_cmds
14801
archive_expsym_cmds=$lt_archive_expsym_cmds
14802
14803
 
14804
# a shared archive.
14805
module_cmds=$lt_module_cmds
14806
module_expsym_cmds=$lt_module_expsym_cmds
14807
14808
 
14809
with_gnu_ld=$lt_with_gnu_ld
14810
14811
 
14812
allow_undefined_flag=$lt_allow_undefined_flag
14813
14814
 
14815
no_undefined_flag=$lt_no_undefined_flag
14816
14817
 
14818
# This must work even if \$libdir does not exist
14819
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14820
14821
 
14822
# during linking.  This must work even if \$libdir does not exist.
14823
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14824
14825
 
14826
hardcode_libdir_separator=$lt_hardcode_libdir_separator
14827
14828
 
14829
# DIR into the resulting binary.
14830
hardcode_direct=$hardcode_direct
14831
14832
 
14833
# DIR into the resulting binary and the resulting library dependency is
14834
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14835
# library is relocated.
14836
hardcode_direct_absolute=$hardcode_direct_absolute
14837
14838
 
14839
# into the resulting binary.
14840
hardcode_minus_L=$hardcode_minus_L
14841
14842
 
14843
# into the resulting binary.
14844
hardcode_shlibpath_var=$hardcode_shlibpath_var
14845
14846
 
14847
# into the library and all subsequent libraries and executables linked
14848
# against it.
14849
hardcode_automatic=$hardcode_automatic
14850
14851
 
14852
# to runtime path list.
14853
inherit_rpath=$inherit_rpath
14854
14855
 
14856
link_all_deplibs=$link_all_deplibs
14857
14858
 
14859
fix_srcfile_path=$lt_fix_srcfile_path
14860
14861
 
14862
always_export_symbols=$always_export_symbols
14863
14864
 
14865
export_symbols_cmds=$lt_export_symbols_cmds
14866
14867
 
14868
exclude_expsyms=$lt_exclude_expsyms
14869
14870
 
14871
include_expsyms=$lt_include_expsyms
14872
14873
 
14874
prelink_cmds=$lt_prelink_cmds
14875
14876
 
14877
file_list_spec=$lt_file_list_spec
14878
14879
 
14880
hardcode_action=$hardcode_action
14881
14882
 
14883
14884
 
14885
14886
 
14887
  aix3*)
14888
    cat <<\_LT_EOF >> "$cfgfile"
14889
# AIX sometimes has problems with the GCC collect2 program.  For some
14890
# reason, if we set the COLLECT_NAMES environment variable, the problems
14891
# vanish in a puff of smoke.
14892
if test "X${COLLECT_NAMES+set}" != Xset; then
14893
  COLLECT_NAMES=
14894
  export COLLECT_NAMES
14895
fi
14896
_LT_EOF
14897
    ;;
14898
  esac
14899
14900
 
14901
 
14902
14903
 
14904
 
14905
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14906
  # text mode, it properly converts lines to CR/LF.  This bash problem
14907
  # is reportedly fixed, but why not run on old versions too?
14908
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14909
    || (rm -f "$cfgfile"; exit 1)
14910
14911
 
14912
  yes)
14913
    cat << \_LT_EOF >> "$cfgfile"
14914
14915
 
14916
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14917
# otherwise set result to NONDIR_REPLACEMENT.
14918
func_dirname ()
14919
{
14920
  case ${1} in
14921
    */*) func_dirname_result="${1%/*}${2}" ;;
14922
    *  ) func_dirname_result="${3}" ;;
14923
  esac
14924
}
14925
14926
 
14927
func_basename ()
14928
{
14929
  func_basename_result="${1##*/}"
14930
}
14931
14932
 
14933
# perform func_basename and func_dirname in a single function
14934
# call:
14935
#   dirname:  Compute the dirname of FILE.  If nonempty,
14936
#             add APPEND to the result, otherwise set result
14937
#             to NONDIR_REPLACEMENT.
14938
#             value returned in "$func_dirname_result"
14939
#   basename: Compute filename of FILE.
14940
#             value retuned in "$func_basename_result"
14941
# Implementation must be kept synchronized with func_dirname
14942
# and func_basename. For efficiency, we do not delegate to
14943
# those functions but instead duplicate the functionality here.
14944
func_dirname_and_basename ()
14945
{
14946
  case ${1} in
14947
    */*) func_dirname_result="${1%/*}${2}" ;;
14948
    *  ) func_dirname_result="${3}" ;;
14949
  esac
14950
  func_basename_result="${1##*/}"
14951
}
14952
14953
 
14954
# strip PREFIX and SUFFIX off of NAME.
14955
# PREFIX and SUFFIX must not contain globbing or regex special
14956
# characters, hashes, percent signs, but SUFFIX may contain a leading
14957
# dot (in which case that matches only a dot).
14958
func_stripname ()
14959
{
14960
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14961
  # positional parameters, so assign one to ordinary parameter first.
14962
  func_stripname_result=${3}
14963
  func_stripname_result=${func_stripname_result#"${1}"}
14964
  func_stripname_result=${func_stripname_result%"${2}"}
14965
}
14966
14967
 
14968
func_opt_split ()
14969
{
14970
  func_opt_split_opt=${1%%=*}
14971
  func_opt_split_arg=${1#*=}
14972
}
14973
14974
 
14975
func_lo2o ()
14976
{
14977
  case ${1} in
14978
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14979
    *)    func_lo2o_result=${1} ;;
14980
  esac
14981
}
14982
14983
 
14984
func_xform ()
14985
{
14986
  func_xform_result=${1%.*}.lo
14987
}
14988
14989
 
14990
func_arith ()
14991
{
14992
  func_arith_result=$(( $* ))
14993
}
14994
14995
 
14996
# STRING may not start with a hyphen.
14997
func_len ()
14998
{
14999
  func_len_result=${#1}
15000
}
15001
15002
 
15003
    ;;
15004
  *) # Bourne compatible functions.
15005
    cat << \_LT_EOF >> "$cfgfile"
15006
15007
 
15008
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15009
# otherwise set result to NONDIR_REPLACEMENT.
15010
func_dirname ()
15011
{
15012
  # Extract subdirectory from the argument.
15013
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15014
  if test "X$func_dirname_result" = "X${1}"; then
15015
    func_dirname_result="${3}"
15016
  else
15017
    func_dirname_result="$func_dirname_result${2}"
15018
  fi
15019
}
15020
15021
 
15022
func_basename ()
15023
{
15024
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15025
}
15026
15027
 
15028
 
15029
# strip PREFIX and SUFFIX off of NAME.
15030
# PREFIX and SUFFIX must not contain globbing or regex special
15031
# characters, hashes, percent signs, but SUFFIX may contain a leading
15032
# dot (in which case that matches only a dot).
15033
# func_strip_suffix prefix name
15034
func_stripname ()
15035
{
15036
  case ${2} in
15037
    .*) func_stripname_result=`$ECHO "X${3}" \
15038
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15039
    *)  func_stripname_result=`$ECHO "X${3}" \
15040
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15041
  esac
15042
}
15043
15044
 
15045
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15046
my_sed_long_arg='1s/^-[^=]*=//'
15047
15048
 
15049
func_opt_split ()
15050
{
15051
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15052
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15053
}
15054
15055
 
15056
func_lo2o ()
15057
{
15058
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15059
}
15060
15061
 
15062
func_xform ()
15063
{
15064
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15065
}
15066
15067
 
15068
func_arith ()
15069
{
15070
  func_arith_result=`expr "$@"`
15071
}
15072
15073
 
15074
# STRING may not start with a hyphen.
15075
func_len ()
15076
{
15077
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15078
}
15079
15080
 
15081
esac
15082
15083
 
15084
  yes)
15085
    cat << \_LT_EOF >> "$cfgfile"
15086
15087
 
15088
# Append VALUE to the end of shell variable VAR.
15089
func_append ()
15090
{
15091
  eval "$1+=\$2"
15092
}
15093
_LT_EOF
15094
    ;;
15095
  *)
15096
    cat << \_LT_EOF >> "$cfgfile"
15097
15098
 
15099
# Append VALUE to the end of shell variable VAR.
15100
func_append ()
15101
{
15102
  eval "$1=\$$1\$2"
15103
}
15104
15105
 
15106
    ;;
15107
  esac
15108
15109
 
15110
 
15111
    || (rm -f "$cfgfile"; exit 1)
15112
15113
 
15114
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15115
  chmod +x "$ofile"
15116
15117
 
15118
15119
 
15120
done # for ac_tag
15121
15122
 
15123
 
15124
_ACEOF
15125
chmod +x $CONFIG_STATUS
15126
ac_clean_files=$ac_clean_files_save
15127
15128
 
15129
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15130
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15131
   { (exit 1); exit 1; }; }
15132
15133
 
15134
 
15135
# config.status does its own redirection, appending to config.log.
15136
# Unfortunately, on DOS this fails, as config.log is still kept open
15137
# by configure, so config.status won't be able to write to it; its
15138
# output is simply discarded.  So we exec the FD to /dev/null,
15139
# effectively closing config.log, so it can be properly (re)opened and
15140
# appended to by config.status.  When coming back to configure, we
15141
# need to make the FD available again.
15142
if test "$no_create" != yes; then
15143
  ac_cs_success=:
15144
  ac_config_status_args=
15145
  test "$silent" = yes &&
15146
    ac_config_status_args="$ac_config_status_args --quiet"
15147
  exec 5>/dev/null
15148
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15149
  exec 5>>config.log
15150
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15151
  # would make configure fail if this is the last instruction.
15152
  $ac_cs_success || { (exit 1); exit 1; }
15153
fi
15154
15155
 
15156
# CONFIG_SUBDIRS section.
15157
#
15158
if test "$no_recursion" != yes; then
15159
15160
 
15161
  # so they do not pile up.
15162
  ac_sub_configure_args=
15163
  ac_prev=
15164
  eval "set x $ac_configure_args"
15165
  shift
15166
  for ac_arg
15167
  do
15168
    if test -n "$ac_prev"; then
15169
      ac_prev=
15170
      continue
15171
    fi
15172
    case $ac_arg in
15173
    -cache-file | --cache-file | --cache-fil | --cache-fi \
15174
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15175
      ac_prev=cache_file ;;
15176
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15177
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
15178
    | --c=*)
15179
      ;;
15180
    --config-cache | -C)
15181
      ;;
15182
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15183
      ac_prev=srcdir ;;
15184
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15185
      ;;
15186
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
15187
      ac_prev=prefix ;;
15188
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
15189
      ;;
15190
    --disable-option-checking)
15191
      ;;
15192
    *)
15193
      case $ac_arg in
15194
      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15195
      esac
15196
      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
15197
    esac
15198
  done
15199
15200
 
15201
  # in subdir configurations.
15202
  ac_arg="--prefix=$prefix"
15203
  case $ac_arg in
15204
  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15205
  esac
15206
  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
15207
15208
 
15209
  if test "$silent" = yes; then
15210
    ac_sub_configure_args="--silent $ac_sub_configure_args"
15211
  fi
15212
15213
 
15214
  # different subdirs can have different --enable and --with options.
15215
  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
15216
15217
 
15218
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
15219
15220
 
15221
    # parts of a large source tree are present.
15222
    test -d "$srcdir/$ac_dir" || continue
15223
15224
 
15225
    $as_echo "$as_me:$LINENO: $ac_msg" >&5
15226
    $as_echo "$ac_msg" >&6
15227
    { as_dir="$ac_dir"
15228
  case $as_dir in #(
15229
  -*) as_dir=./$as_dir;;
15230
  esac
15231
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15232
    as_dirs=
15233
    while :; do
15234
      case $as_dir in #(
15235
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15236
      *) as_qdir=$as_dir;;
15237
      esac
15238
      as_dirs="'$as_qdir' $as_dirs"
15239
      as_dir=`$as_dirname -- "$as_dir" ||
15240
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15241
         X"$as_dir" : 'X\(//\)[^/]' \| \
15242
         X"$as_dir" : 'X\(//\)$' \| \
15243
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15244
$as_echo X"$as_dir" |
15245
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15246
            s//\1/
15247
            q
15248
          }
15249
          /^X\(\/\/\)[^/].*/{
15250
            s//\1/
15251
            q
15252
          }
15253
          /^X\(\/\/\)$/{
15254
            s//\1/
15255
            q
15256
          }
15257
          /^X\(\/\).*/{
15258
            s//\1/
15259
            q
15260
          }
15261
          s/.*/./; q'`
15262
      test -d "$as_dir" && break
15263
    done
15264
    test -z "$as_dirs" || eval "mkdir $as_dirs"
15265
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15266
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15267
   { (exit 1); exit 1; }; }; }
15268
    ac_builddir=.
15269
15270
 
15271
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15272
*)
15273
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15274
  # A ".." for each directory in $ac_dir_suffix.
15275
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15276
  case $ac_top_builddir_sub in
15277
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15278
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15279
  esac ;;
15280
esac
15281
ac_abs_top_builddir=$ac_pwd
15282
ac_abs_builddir=$ac_pwd$ac_dir_suffix
15283
# for backward compatibility:
15284
ac_top_builddir=$ac_top_build_prefix
15285
15286
 
15287
  .)  # We are building in place.
15288
    ac_srcdir=.
15289
    ac_top_srcdir=$ac_top_builddir_sub
15290
    ac_abs_top_srcdir=$ac_pwd ;;
15291
  [\\/]* | ?:[\\/]* )  # Absolute name.
15292
    ac_srcdir=$srcdir$ac_dir_suffix;
15293
    ac_top_srcdir=$srcdir
15294
    ac_abs_top_srcdir=$srcdir ;;
15295
  *) # Relative name.
15296
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15297
    ac_top_srcdir=$ac_top_build_prefix$srcdir
15298
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15299
esac
15300
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15301
15302
 
15303
 
15304
15305
 
15306
    if test -f "$ac_srcdir/configure.gnu"; then
15307
      ac_sub_configure=$ac_srcdir/configure.gnu
15308
    elif test -f "$ac_srcdir/configure"; then
15309
      ac_sub_configure=$ac_srcdir/configure
15310
    elif test -f "$ac_srcdir/configure.in"; then
15311
      # This should be Cygnus configure.
15312
      ac_sub_configure=$ac_aux_dir/configure
15313
    else
15314
      { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
15315
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15316
      ac_sub_configure=
15317
    fi
15318
15319
 
15320
    if test -n "$ac_sub_configure"; then
15321
      # Make the cache file name correct relative to the subdirectory.
15322
      case $cache_file in
15323
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15324
      *) # Relative name.
15325
        ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15326
      esac
15327
15328
 
15329
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15330
      # The eval makes quoting arguments work.
15331
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15332
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15333
        { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
15334
$as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
15335
   { (exit 1); exit 1; }; }
15336
    fi
15337
15338
 
15339
  done
15340
fi
15341
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15342
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15343
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15344
fi
15345
15346
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.