OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [newlib/] [libc/] [sys/] [linux/] [linuxthreads/] [machine/] [configure] - Blame information for rev 301

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="i386"
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
HAVE_MACHINE_DIR_FALSE
793
HAVE_MACHINE_DIR_TRUE
794
subdirs
795
CPP
796
OTOOL64
797
OTOOL
798
LIPO
799
NMEDIT
800
DSYMUTIL
801
lt_ECHO
802
LN_S
803
NM
804
ac_ct_DUMPBIN
805
DUMPBIN
806
LD
807
FGREP
808
EGREP
809
GREP
810
EXEEXT
811
ac_ct_CC
812
CPPFLAGS
813
CFLAGS
814
LIBTOOL
815
OBJDUMP
816
DLLTOOL
817
SED
818
sys_dir
819
machine_dir
820
libm_machine_dir
821
lpfx
822
aext
823
oext
824
OBJEXT
825
USE_LIBTOOL_FALSE
826
USE_LIBTOOL_TRUE
827
ELIX_LEVEL_4_FALSE
828
ELIX_LEVEL_4_TRUE
829
ELIX_LEVEL_3_FALSE
830
ELIX_LEVEL_3_TRUE
831
ELIX_LEVEL_2_FALSE
832
ELIX_LEVEL_2_TRUE
833
ELIX_LEVEL_1_FALSE
834
ELIX_LEVEL_1_TRUE
835
ELIX_LEVEL_0_FALSE
836
ELIX_LEVEL_0_TRUE
837
LDFLAGS
838
NEWLIB_CFLAGS
839
CCASFLAGS
840
CCAS
841
MAINT
842
MAINTAINER_MODE_FALSE
843
MAINTAINER_MODE_TRUE
844
READELF
845
RANLIB
846
AR
847
AS
848
am__fastdepCC_FALSE
849
am__fastdepCC_TRUE
850
CCDEPMODE
851
AMDEPBACKSLASH
852
AMDEP_FALSE
853
AMDEP_TRUE
854
am__quote
855
am__include
856
DEPDIR
857
CC
858
am__untar
859
am__tar
860
AMTAR
861
am__leading_dot
862
SET_MAKE
863
AWK
864
mkdir_p
865
MKDIR_P
866
INSTALL_STRIP_PROGRAM
867
STRIP
868
install_sh
869
MAKEINFO
870
AUTOHEADER
871
AUTOMAKE
872
AUTOCONF
873
ACLOCAL
874
VERSION
875
PACKAGE
876
CYGPATH_W
877
am__isrc
878
INSTALL_DATA
879
INSTALL_SCRIPT
880
INSTALL_PROGRAM
881
host_os
882
host_vendor
883
host_cpu
884
host
885
build_os
886
build_vendor
887
build_cpu
888
build
889
newlib_basedir
890
MAY_SUPPLY_SYSCALLS_FALSE
891
MAY_SUPPLY_SYSCALLS_TRUE
892
target_alias
893
host_alias
894
build_alias
895
LIBS
896
ECHO_T
897
ECHO_N
898
ECHO_C
899
DEFS
900
mandir
901
localedir
902
libdir
903
psdir
904
pdfdir
905
dvidir
906
htmldir
907
infodir
908
docdir
909
oldincludedir
910
includedir
911
localstatedir
912
sharedstatedir
913
sysconfdir
914
datadir
915
datarootdir
916
libexecdir
917
sbindir
918
bindir
919
program_transform_name
920
prefix
921
exec_prefix
922
PACKAGE_BUGREPORT
923
PACKAGE_STRING
924
PACKAGE_VERSION
925
PACKAGE_TARNAME
926
PACKAGE_NAME
927
PATH_SEPARATOR
928
SHELL'
929
ac_subst_files=''
930
ac_user_opts='
931
enable_option_checking
932
enable_multilib
933
enable_target_optspace
934
enable_malloc_debugging
935
enable_newlib_multithread
936
enable_newlib_iconv
937
enable_newlib_elix_level
938
enable_newlib_io_float
939
enable_newlib_supplied_syscalls
940
enable_dependency_tracking
941
enable_maintainer_mode
942
enable_shared
943
enable_static
944
with_pic
945
enable_fast_install
946
with_gnu_ld
947
enable_libtool_lock
948
'
949
      ac_precious_vars='build_alias
950
host_alias
951
target_alias
952
CCAS
953
CCASFLAGS
954
CC
955
CFLAGS
956
LDFLAGS
957
LIBS
958
CPPFLAGS
959
CPP'
960
ac_subdirs_all='i386'
961
 
962
# Initialize some variables set by options.
963
ac_init_help=
964
ac_init_version=false
965
ac_unrecognized_opts=
966
ac_unrecognized_sep=
967
# The variables have the same names as the options, with
968
# dashes changed to underlines.
969
cache_file=/dev/null
970
exec_prefix=NONE
971
no_create=
972
no_recursion=
973
prefix=NONE
974
program_prefix=NONE
975
program_suffix=NONE
976
program_transform_name=s,x,x,
977
silent=
978
site=
979
srcdir=
980
verbose=
981
x_includes=NONE
982
x_libraries=NONE
983
 
984
# Installation directory options.
985
# These are left unexpanded so users can "make install exec_prefix=/foo"
986
# and all the variables that are supposed to be based on exec_prefix
987
# by default will actually change.
988
# Use braces instead of parens because sh, perl, etc. also accept them.
989
# (The list follows the same order as the GNU Coding Standards.)
990
bindir='${exec_prefix}/bin'
991
sbindir='${exec_prefix}/sbin'
992
libexecdir='${exec_prefix}/libexec'
993
datarootdir='${prefix}/share'
994
datadir='${datarootdir}'
995
sysconfdir='${prefix}/etc'
996
sharedstatedir='${prefix}/com'
997
localstatedir='${prefix}/var'
998
includedir='${prefix}/include'
999
oldincludedir='/usr/include'
1000
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1001
infodir='${datarootdir}/info'
1002
htmldir='${docdir}'
1003
dvidir='${docdir}'
1004
pdfdir='${docdir}'
1005
psdir='${docdir}'
1006
libdir='${exec_prefix}/lib'
1007
localedir='${datarootdir}/locale'
1008
mandir='${datarootdir}/man'
1009
 
1010
ac_prev=
1011
ac_dashdash=
1012
for ac_option
1013
do
1014
  # If the previous option needs an argument, assign it.
1015
  if test -n "$ac_prev"; then
1016
    eval $ac_prev=\$ac_option
1017
    ac_prev=
1018
    continue
1019
  fi
1020
 
1021
  case $ac_option in
1022
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1023
  *)    ac_optarg=yes ;;
1024
  esac
1025
 
1026
  # Accept the important Cygnus configure options, so we can diagnose typos.
1027
 
1028
  case $ac_dashdash$ac_option in
1029
  --)
1030
    ac_dashdash=yes ;;
1031
 
1032
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1033
    ac_prev=bindir ;;
1034
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1035
    bindir=$ac_optarg ;;
1036
 
1037
  -build | --build | --buil | --bui | --bu)
1038
    ac_prev=build_alias ;;
1039
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1040
    build_alias=$ac_optarg ;;
1041
 
1042
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1043
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1044
    ac_prev=cache_file ;;
1045
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1046
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1047
    cache_file=$ac_optarg ;;
1048
 
1049
  --config-cache | -C)
1050
    cache_file=config.cache ;;
1051
 
1052
  -datadir | --datadir | --datadi | --datad)
1053
    ac_prev=datadir ;;
1054
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1055
    datadir=$ac_optarg ;;
1056
 
1057
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1058
  | --dataroo | --dataro | --datar)
1059
    ac_prev=datarootdir ;;
1060
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1061
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1062
    datarootdir=$ac_optarg ;;
1063
 
1064
  -disable-* | --disable-*)
1065
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1066
    # Reject names that are not valid shell variable names.
1067
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1068
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1069
   { (exit 1); exit 1; }; }
1070
    ac_useropt_orig=$ac_useropt
1071
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072
    case $ac_user_opts in
1073
      *"
1074
"enable_$ac_useropt"
1075
"*) ;;
1076
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1077
         ac_unrecognized_sep=', ';;
1078
    esac
1079
    eval enable_$ac_useropt=no ;;
1080
 
1081
  -docdir | --docdir | --docdi | --doc | --do)
1082
    ac_prev=docdir ;;
1083
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1084
    docdir=$ac_optarg ;;
1085
 
1086
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1087
    ac_prev=dvidir ;;
1088
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1089
    dvidir=$ac_optarg ;;
1090
 
1091
  -enable-* | --enable-*)
1092
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1093
    # Reject names that are not valid shell variable names.
1094
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1096
   { (exit 1); exit 1; }; }
1097
    ac_useropt_orig=$ac_useropt
1098
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099
    case $ac_user_opts in
1100
      *"
1101
"enable_$ac_useropt"
1102
"*) ;;
1103
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1104
         ac_unrecognized_sep=', ';;
1105
    esac
1106
    eval enable_$ac_useropt=\$ac_optarg ;;
1107
 
1108
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1109
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1110
  | --exec | --exe | --ex)
1111
    ac_prev=exec_prefix ;;
1112
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1113
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1114
  | --exec=* | --exe=* | --ex=*)
1115
    exec_prefix=$ac_optarg ;;
1116
 
1117
  -gas | --gas | --ga | --g)
1118
    # Obsolete; use --with-gas.
1119
    with_gas=yes ;;
1120
 
1121
  -help | --help | --hel | --he | -h)
1122
    ac_init_help=long ;;
1123
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1124
    ac_init_help=recursive ;;
1125
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1126
    ac_init_help=short ;;
1127
 
1128
  -host | --host | --hos | --ho)
1129
    ac_prev=host_alias ;;
1130
  -host=* | --host=* | --hos=* | --ho=*)
1131
    host_alias=$ac_optarg ;;
1132
 
1133
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1134
    ac_prev=htmldir ;;
1135
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1136
  | --ht=*)
1137
    htmldir=$ac_optarg ;;
1138
 
1139
  -includedir | --includedir | --includedi | --included | --include \
1140
  | --includ | --inclu | --incl | --inc)
1141
    ac_prev=includedir ;;
1142
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1143
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1144
    includedir=$ac_optarg ;;
1145
 
1146
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1147
    ac_prev=infodir ;;
1148
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1149
    infodir=$ac_optarg ;;
1150
 
1151
  -libdir | --libdir | --libdi | --libd)
1152
    ac_prev=libdir ;;
1153
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1154
    libdir=$ac_optarg ;;
1155
 
1156
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1157
  | --libexe | --libex | --libe)
1158
    ac_prev=libexecdir ;;
1159
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1160
  | --libexe=* | --libex=* | --libe=*)
1161
    libexecdir=$ac_optarg ;;
1162
 
1163
  -localedir | --localedir | --localedi | --localed | --locale)
1164
    ac_prev=localedir ;;
1165
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1166
    localedir=$ac_optarg ;;
1167
 
1168
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1169
  | --localstate | --localstat | --localsta | --localst | --locals)
1170
    ac_prev=localstatedir ;;
1171
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1172
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1173
    localstatedir=$ac_optarg ;;
1174
 
1175
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1176
    ac_prev=mandir ;;
1177
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1178
    mandir=$ac_optarg ;;
1179
 
1180
  -nfp | --nfp | --nf)
1181
    # Obsolete; use --without-fp.
1182
    with_fp=no ;;
1183
 
1184
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1185
  | --no-cr | --no-c | -n)
1186
    no_create=yes ;;
1187
 
1188
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1189
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1190
    no_recursion=yes ;;
1191
 
1192
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1193
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1194
  | --oldin | --oldi | --old | --ol | --o)
1195
    ac_prev=oldincludedir ;;
1196
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1197
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1198
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1199
    oldincludedir=$ac_optarg ;;
1200
 
1201
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1202
    ac_prev=prefix ;;
1203
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1204
    prefix=$ac_optarg ;;
1205
 
1206
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1207
  | --program-pre | --program-pr | --program-p)
1208
    ac_prev=program_prefix ;;
1209
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1210
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1211
    program_prefix=$ac_optarg ;;
1212
 
1213
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1214
  | --program-suf | --program-su | --program-s)
1215
    ac_prev=program_suffix ;;
1216
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1217
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1218
    program_suffix=$ac_optarg ;;
1219
 
1220
  -program-transform-name | --program-transform-name \
1221
  | --program-transform-nam | --program-transform-na \
1222
  | --program-transform-n | --program-transform- \
1223
  | --program-transform | --program-transfor \
1224
  | --program-transfo | --program-transf \
1225
  | --program-trans | --program-tran \
1226
  | --progr-tra | --program-tr | --program-t)
1227
    ac_prev=program_transform_name ;;
1228
  -program-transform-name=* | --program-transform-name=* \
1229
  | --program-transform-nam=* | --program-transform-na=* \
1230
  | --program-transform-n=* | --program-transform-=* \
1231
  | --program-transform=* | --program-transfor=* \
1232
  | --program-transfo=* | --program-transf=* \
1233
  | --program-trans=* | --program-tran=* \
1234
  | --progr-tra=* | --program-tr=* | --program-t=*)
1235
    program_transform_name=$ac_optarg ;;
1236
 
1237
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1238
    ac_prev=pdfdir ;;
1239
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1240
    pdfdir=$ac_optarg ;;
1241
 
1242
  -psdir | --psdir | --psdi | --psd | --ps)
1243
    ac_prev=psdir ;;
1244
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1245
    psdir=$ac_optarg ;;
1246
 
1247
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1248
  | -silent | --silent | --silen | --sile | --sil)
1249
    silent=yes ;;
1250
 
1251
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1252
    ac_prev=sbindir ;;
1253
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1254
  | --sbi=* | --sb=*)
1255
    sbindir=$ac_optarg ;;
1256
 
1257
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1258
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1259
  | --sharedst | --shareds | --shared | --share | --shar \
1260
  | --sha | --sh)
1261
    ac_prev=sharedstatedir ;;
1262
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1263
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1264
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1265
  | --sha=* | --sh=*)
1266
    sharedstatedir=$ac_optarg ;;
1267
 
1268
  -site | --site | --sit)
1269
    ac_prev=site ;;
1270
  -site=* | --site=* | --sit=*)
1271
    site=$ac_optarg ;;
1272
 
1273
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1274
    ac_prev=srcdir ;;
1275
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1276
    srcdir=$ac_optarg ;;
1277
 
1278
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1279
  | --syscon | --sysco | --sysc | --sys | --sy)
1280
    ac_prev=sysconfdir ;;
1281
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1282
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1283
    sysconfdir=$ac_optarg ;;
1284
 
1285
  -target | --target | --targe | --targ | --tar | --ta | --t)
1286
    ac_prev=target_alias ;;
1287
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1288
    target_alias=$ac_optarg ;;
1289
 
1290
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1291
    verbose=yes ;;
1292
 
1293
  -version | --version | --versio | --versi | --vers | -V)
1294
    ac_init_version=: ;;
1295
 
1296
  -with-* | --with-*)
1297
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1298
    # Reject names that are not valid shell variable names.
1299
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1300
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1301
   { (exit 1); exit 1; }; }
1302
    ac_useropt_orig=$ac_useropt
1303
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304
    case $ac_user_opts in
1305
      *"
1306
"with_$ac_useropt"
1307
"*) ;;
1308
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1309
         ac_unrecognized_sep=', ';;
1310
    esac
1311
    eval with_$ac_useropt=\$ac_optarg ;;
1312
 
1313
  -without-* | --without-*)
1314
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1315
    # Reject names that are not valid shell variable names.
1316
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1317
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1318
   { (exit 1); exit 1; }; }
1319
    ac_useropt_orig=$ac_useropt
1320
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1321
    case $ac_user_opts in
1322
      *"
1323
"with_$ac_useropt"
1324
"*) ;;
1325
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1326
         ac_unrecognized_sep=', ';;
1327
    esac
1328
    eval with_$ac_useropt=no ;;
1329
 
1330
  --x)
1331
    # Obsolete; use --with-x.
1332
    with_x=yes ;;
1333
 
1334
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1335
  | --x-incl | --x-inc | --x-in | --x-i)
1336
    ac_prev=x_includes ;;
1337
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1338
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1339
    x_includes=$ac_optarg ;;
1340
 
1341
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1342
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1343
    ac_prev=x_libraries ;;
1344
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1345
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1346
    x_libraries=$ac_optarg ;;
1347
 
1348
  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1349
Try \`$0 --help' for more information." >&2
1350
   { (exit 1); exit 1; }; }
1351
    ;;
1352
 
1353
  *=*)
1354
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1355
    # Reject names that are not valid shell variable names.
1356
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1357
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1358
   { (exit 1); exit 1; }; }
1359
    eval $ac_envvar=\$ac_optarg
1360
    export $ac_envvar ;;
1361
 
1362
  *)
1363
    # FIXME: should be removed in autoconf 3.0.
1364
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1365
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1366
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1367
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1368
    ;;
1369
 
1370
  esac
1371
done
1372
 
1373
if test -n "$ac_prev"; then
1374
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1375
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1376
   { (exit 1); exit 1; }; }
1377
fi
1378
 
1379
if test -n "$ac_unrecognized_opts"; then
1380
  case $enable_option_checking in
1381
    no) ;;
1382
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1383
   { (exit 1); exit 1; }; } ;;
1384
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1385
  esac
1386
fi
1387
 
1388
# Check all directory arguments for consistency.
1389
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1390
                datadir sysconfdir sharedstatedir localstatedir includedir \
1391
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1392
                libdir localedir mandir
1393
do
1394
  eval ac_val=\$$ac_var
1395
  # Remove trailing slashes.
1396
  case $ac_val in
1397
    */ )
1398
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1399
      eval $ac_var=\$ac_val;;
1400
  esac
1401
  # Be sure to have absolute directory names.
1402
  case $ac_val in
1403
    [\\/$]* | ?:[\\/]* )  continue;;
1404
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1405
  esac
1406
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1407
   { (exit 1); exit 1; }; }
1408
done
1409
 
1410
# There might be people who depend on the old broken behavior: `$host'
1411
# used to hold the argument of --host etc.
1412
# FIXME: To remove some day.
1413
build=$build_alias
1414
host=$host_alias
1415
target=$target_alias
1416
 
1417
# FIXME: To remove some day.
1418
if test "x$host_alias" != x; then
1419
  if test "x$build_alias" = x; then
1420
    cross_compiling=maybe
1421
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1422
    If a cross compiler is detected then cross compile mode will be used." >&2
1423
  elif test "x$build_alias" != "x$host_alias"; then
1424
    cross_compiling=yes
1425
  fi
1426
fi
1427
 
1428
ac_tool_prefix=
1429
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1430
 
1431
test "$silent" = yes && exec 6>/dev/null
1432
 
1433
 
1434
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1435
ac_ls_di=`ls -di .` &&
1436
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1437
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1438
   { (exit 1); exit 1; }; }
1439
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1440
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1441
   { (exit 1); exit 1; }; }
1442
 
1443
 
1444
# Find the source files, if location was not specified.
1445
if test -z "$srcdir"; then
1446
  ac_srcdir_defaulted=yes
1447
  # Try the directory containing this script, then the parent directory.
1448
  ac_confdir=`$as_dirname -- "$as_myself" ||
1449
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1450
         X"$as_myself" : 'X\(//\)[^/]' \| \
1451
         X"$as_myself" : 'X\(//\)$' \| \
1452
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1453
$as_echo X"$as_myself" |
1454
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1455
            s//\1/
1456
            q
1457
          }
1458
          /^X\(\/\/\)[^/].*/{
1459
            s//\1/
1460
            q
1461
          }
1462
          /^X\(\/\/\)$/{
1463
            s//\1/
1464
            q
1465
          }
1466
          /^X\(\/\).*/{
1467
            s//\1/
1468
            q
1469
          }
1470
          s/.*/./; q'`
1471
  srcdir=$ac_confdir
1472
  if test ! -r "$srcdir/$ac_unique_file"; then
1473
    srcdir=..
1474
  fi
1475
else
1476
  ac_srcdir_defaulted=no
1477
fi
1478
if test ! -r "$srcdir/$ac_unique_file"; then
1479
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1480
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1481
   { (exit 1); exit 1; }; }
1482
fi
1483
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1484
ac_abs_confdir=`(
1485
        cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1486
   { (exit 1); exit 1; }; }
1487
        pwd)`
1488
# When building in place, set srcdir=.
1489
if test "$ac_abs_confdir" = "$ac_pwd"; then
1490
  srcdir=.
1491
fi
1492
# Remove unnecessary trailing slashes from srcdir.
1493
# Double slashes in file names in object file debugging info
1494
# mess up M-x gdb in Emacs.
1495
case $srcdir in
1496
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1497
esac
1498
for ac_var in $ac_precious_vars; do
1499
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1500
  eval ac_env_${ac_var}_value=\$${ac_var}
1501
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1502
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1503
done
1504
 
1505
#
1506
# Report the --help message.
1507
#
1508
if test "$ac_init_help" = "long"; then
1509
  # Omit some internal or obsolete options to make the list less imposing.
1510
  # This message is too long to be a string in the A/UX 3.1 sh.
1511
  cat <<_ACEOF
1512
\`configure' configures newlib 1.18.0 to adapt to many kinds of systems.
1513
 
1514
Usage: $0 [OPTION]... [VAR=VALUE]...
1515
 
1516
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1517
VAR=VALUE.  See below for descriptions of some of the useful variables.
1518
 
1519
Defaults for the options are specified in brackets.
1520
 
1521
Configuration:
1522
  -h, --help              display this help and exit
1523
      --help=short        display options specific to this package
1524
      --help=recursive    display the short help of all the included packages
1525
  -V, --version           display version information and exit
1526
  -q, --quiet, --silent   do not print \`checking...' messages
1527
      --cache-file=FILE   cache test results in FILE [disabled]
1528
  -C, --config-cache      alias for \`--cache-file=config.cache'
1529
  -n, --no-create         do not create output files
1530
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1531
 
1532
Installation directories:
1533
  --prefix=PREFIX         install architecture-independent files in PREFIX
1534
                          [$ac_default_prefix]
1535
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1536
                          [PREFIX]
1537
 
1538
By default, \`make install' will install all the files in
1539
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1540
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1541
for instance \`--prefix=\$HOME'.
1542
 
1543
For better control, use the options below.
1544
 
1545
Fine tuning of the installation directories:
1546
  --bindir=DIR            user executables [EPREFIX/bin]
1547
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1548
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1549
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1550
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1551
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1552
  --libdir=DIR            object code libraries [EPREFIX/lib]
1553
  --includedir=DIR        C header files [PREFIX/include]
1554
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1555
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1556
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1557
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1558
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1559
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1560
  --docdir=DIR            documentation root [DATAROOTDIR/doc/newlib]
1561
  --htmldir=DIR           html documentation [DOCDIR]
1562
  --dvidir=DIR            dvi documentation [DOCDIR]
1563
  --pdfdir=DIR            pdf documentation [DOCDIR]
1564
  --psdir=DIR             ps documentation [DOCDIR]
1565
_ACEOF
1566
 
1567
  cat <<\_ACEOF
1568
 
1569
Program names:
1570
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1571
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1572
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1573
 
1574
System types:
1575
  --build=BUILD     configure for building on BUILD [guessed]
1576
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1577
_ACEOF
1578
fi
1579
 
1580
if test -n "$ac_init_help"; then
1581
  case $ac_init_help in
1582
     short | recursive ) echo "Configuration of newlib 1.18.0:";;
1583
   esac
1584
  cat <<\_ACEOF
1585
 
1586
Optional Features:
1587
  --disable-option-checking  ignore unrecognized --enable/--with options
1588
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1589
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1590
  --enable-multilib         build many library versions (default)
1591
  --enable-target-optspace  optimize for space
1592
  --enable-malloc-debugging indicate malloc debugging requested
1593
  --enable-newlib-multithread        enable support for multiple threads
1594
  --enable-newlib-iconv     enable iconv library support
1595
  --enable-newlib-elix-level         supply desired elix library level (1-4)
1596
  --disable-newlib-io-float disable printf/scanf family float support
1597
  --disable-newlib-supplied-syscalls disable newlib from supplying syscalls
1598
  --disable-dependency-tracking  speeds up one-time build
1599
  --enable-dependency-tracking   do not reject slow dependency extractors
1600
  --enable-maintainer-mode  enable make rules and dependencies not useful
1601
                          (and sometimes confusing) to the casual installer
1602
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1603
  --enable-static[=PKGS]  build static libraries [default=yes]
1604
  --enable-fast-install[=PKGS]
1605
                          optimize for fast installation [default=yes]
1606
  --disable-libtool-lock  avoid locking (might break parallel builds)
1607
 
1608
Optional Packages:
1609
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1610
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1611
  --with-pic              try to use only PIC/non-PIC objects [default=use
1612
                          both]
1613
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1614
 
1615
Some influential environment variables:
1616
  CCAS        assembler compiler command (defaults to CC)
1617
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1618
  CC          C compiler command
1619
  CFLAGS      C compiler flags
1620
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1621
              nonstandard directory 
1622
  LIBS        libraries to pass to the linker, e.g. -l
1623
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
1624
              you have headers in a nonstandard directory 
1625
  CPP         C preprocessor
1626
 
1627
Use these variables to override the choices made by `configure' or to help
1628
it to find libraries and programs with nonstandard names/locations.
1629
 
1630
_ACEOF
1631
ac_status=$?
1632
fi
1633
 
1634
if test "$ac_init_help" = "recursive"; then
1635
  # If there are subdirs, report their specific --help.
1636
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1637
    test -d "$ac_dir" ||
1638
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1639
      continue
1640
    ac_builddir=.
1641
 
1642
case "$ac_dir" in
1643
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1644
*)
1645
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1646
  # A ".." for each directory in $ac_dir_suffix.
1647
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1648
  case $ac_top_builddir_sub in
1649
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1651
  esac ;;
1652
esac
1653
ac_abs_top_builddir=$ac_pwd
1654
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1655
# for backward compatibility:
1656
ac_top_builddir=$ac_top_build_prefix
1657
 
1658
case $srcdir in
1659
  .)  # We are building in place.
1660
    ac_srcdir=.
1661
    ac_top_srcdir=$ac_top_builddir_sub
1662
    ac_abs_top_srcdir=$ac_pwd ;;
1663
  [\\/]* | ?:[\\/]* )  # Absolute name.
1664
    ac_srcdir=$srcdir$ac_dir_suffix;
1665
    ac_top_srcdir=$srcdir
1666
    ac_abs_top_srcdir=$srcdir ;;
1667
  *) # Relative name.
1668
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1669
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1670
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1671
esac
1672
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1673
 
1674
    cd "$ac_dir" || { ac_status=$?; continue; }
1675
    # Check for guested configure.
1676
    if test -f "$ac_srcdir/configure.gnu"; then
1677
      echo &&
1678
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1679
    elif test -f "$ac_srcdir/configure"; then
1680
      echo &&
1681
      $SHELL "$ac_srcdir/configure" --help=recursive
1682
    else
1683
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1684
    fi || ac_status=$?
1685
    cd "$ac_pwd" || { ac_status=$?; break; }
1686
  done
1687
fi
1688
 
1689
test -n "$ac_init_help" && exit $ac_status
1690
if $ac_init_version; then
1691
  cat <<\_ACEOF
1692
newlib configure 1.18.0
1693
generated by GNU Autoconf 2.63
1694
 
1695
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1696
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1697
This configure script is free software; the Free Software Foundation
1698
gives unlimited permission to copy, distribute and modify it.
1699
_ACEOF
1700
  exit
1701
fi
1702
cat >config.log <<_ACEOF
1703
This file contains any messages produced by compilers while
1704
running configure, to aid debugging if configure makes a mistake.
1705
 
1706
It was created by newlib $as_me 1.18.0, which was
1707
generated by GNU Autoconf 2.63.  Invocation command line was
1708
 
1709
  $ $0 $@
1710
 
1711
_ACEOF
1712
exec 5>>config.log
1713
{
1714
cat <<_ASUNAME
1715
## --------- ##
1716
## Platform. ##
1717
## --------- ##
1718
 
1719
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1720
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1721
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1722
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1723
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1724
 
1725
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1726
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1727
 
1728
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1729
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1730
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1731
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1732
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1733
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1734
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1735
 
1736
_ASUNAME
1737
 
1738
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1739
for as_dir in $PATH
1740
do
1741
  IFS=$as_save_IFS
1742
  test -z "$as_dir" && as_dir=.
1743
  $as_echo "PATH: $as_dir"
1744
done
1745
IFS=$as_save_IFS
1746
 
1747
} >&5
1748
 
1749
cat >&5 <<_ACEOF
1750
 
1751
 
1752
## ----------- ##
1753
## Core tests. ##
1754
## ----------- ##
1755
 
1756
_ACEOF
1757
 
1758
 
1759
# Keep a trace of the command line.
1760
# Strip out --no-create and --no-recursion so they do not pile up.
1761
# Strip out --silent because we don't want to record it for future runs.
1762
# Also quote any args containing shell meta-characters.
1763
# Make two passes to allow for proper duplicate-argument suppression.
1764
ac_configure_args=
1765
ac_configure_args0=
1766
ac_configure_args1=
1767
ac_must_keep_next=false
1768
for ac_pass in 1 2
1769
do
1770
  for ac_arg
1771
  do
1772
    case $ac_arg in
1773
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1774
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1775
    | -silent | --silent | --silen | --sile | --sil)
1776
      continue ;;
1777
    *\'*)
1778
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1779
    esac
1780
    case $ac_pass in
1781
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1782
    2)
1783
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1784
      if test $ac_must_keep_next = true; then
1785
        ac_must_keep_next=false # Got value, back to normal.
1786
      else
1787
        case $ac_arg in
1788
          *=* | --config-cache | -C | -disable-* | --disable-* \
1789
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1790
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1791
          | -with-* | --with-* | -without-* | --without-* | --x)
1792
            case "$ac_configure_args0 " in
1793
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1794
            esac
1795
            ;;
1796
          -* ) ac_must_keep_next=true ;;
1797
        esac
1798
      fi
1799
      ac_configure_args="$ac_configure_args '$ac_arg'"
1800
      ;;
1801
    esac
1802
  done
1803
done
1804
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1805
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1806
 
1807
# When interrupted or exit'd, cleanup temporary files, and complete
1808
# config.log.  We remove comments because anyway the quotes in there
1809
# would cause problems or look ugly.
1810
# WARNING: Use '\'' to represent an apostrophe within the trap.
1811
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1812
trap 'exit_status=$?
1813
  # Save into config.log some information that might help in debugging.
1814
  {
1815
    echo
1816
 
1817
    cat <<\_ASBOX
1818
## ---------------- ##
1819
## Cache variables. ##
1820
## ---------------- ##
1821
_ASBOX
1822
    echo
1823
    # The following way of writing the cache mishandles newlines in values,
1824
(
1825
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1826
    eval ac_val=\$$ac_var
1827
    case $ac_val in #(
1828
    *${as_nl}*)
1829
      case $ac_var in #(
1830
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1831
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1832
      esac
1833
      case $ac_var in #(
1834
      _ | IFS | as_nl) ;; #(
1835
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1836
      *) $as_unset $ac_var ;;
1837
      esac ;;
1838
    esac
1839
  done
1840
  (set) 2>&1 |
1841
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1842
    *${as_nl}ac_space=\ *)
1843
      sed -n \
1844
        "s/'\''/'\''\\\\'\'''\''/g;
1845
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1846
      ;; #(
1847
    *)
1848
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1849
      ;;
1850
    esac |
1851
    sort
1852
)
1853
    echo
1854
 
1855
    cat <<\_ASBOX
1856
## ----------------- ##
1857
## Output variables. ##
1858
## ----------------- ##
1859
_ASBOX
1860
    echo
1861
    for ac_var in $ac_subst_vars
1862
    do
1863
      eval ac_val=\$$ac_var
1864
      case $ac_val in
1865
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1866
      esac
1867
      $as_echo "$ac_var='\''$ac_val'\''"
1868
    done | sort
1869
    echo
1870
 
1871
    if test -n "$ac_subst_files"; then
1872
      cat <<\_ASBOX
1873
## ------------------- ##
1874
## File substitutions. ##
1875
## ------------------- ##
1876
_ASBOX
1877
      echo
1878
      for ac_var in $ac_subst_files
1879
      do
1880
        eval ac_val=\$$ac_var
1881
        case $ac_val in
1882
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1883
        esac
1884
        $as_echo "$ac_var='\''$ac_val'\''"
1885
      done | sort
1886
      echo
1887
    fi
1888
 
1889
    if test -s confdefs.h; then
1890
      cat <<\_ASBOX
1891
## ----------- ##
1892
## confdefs.h. ##
1893
## ----------- ##
1894
_ASBOX
1895
      echo
1896
      cat confdefs.h
1897
      echo
1898
    fi
1899
    test "$ac_signal" != 0 &&
1900
      $as_echo "$as_me: caught signal $ac_signal"
1901
    $as_echo "$as_me: exit $exit_status"
1902
  } >&5
1903
  rm -f core *.core core.conftest.* &&
1904
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1905
    exit $exit_status
1906
' 0
1907
for ac_signal in 1 2 13 15; do
1908
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1909
done
1910
ac_signal=0
1911
 
1912
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1913
rm -f -r conftest* confdefs.h
1914
 
1915
# Predefined preprocessor variables.
1916
 
1917
cat >>confdefs.h <<_ACEOF
1918
#define PACKAGE_NAME "$PACKAGE_NAME"
1919
_ACEOF
1920
 
1921
 
1922
cat >>confdefs.h <<_ACEOF
1923
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1924
_ACEOF
1925
 
1926
 
1927
cat >>confdefs.h <<_ACEOF
1928
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1929
_ACEOF
1930
 
1931
 
1932
cat >>confdefs.h <<_ACEOF
1933
#define PACKAGE_STRING "$PACKAGE_STRING"
1934
_ACEOF
1935
 
1936
 
1937
cat >>confdefs.h <<_ACEOF
1938
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1939
_ACEOF
1940
 
1941
 
1942
# Let the site file select an alternate cache file if it wants to.
1943
# Prefer an explicitly selected file to automatically selected ones.
1944
ac_site_file1=NONE
1945
ac_site_file2=NONE
1946
if test -n "$CONFIG_SITE"; then
1947
  ac_site_file1=$CONFIG_SITE
1948
elif test "x$prefix" != xNONE; then
1949
  ac_site_file1=$prefix/share/config.site
1950
  ac_site_file2=$prefix/etc/config.site
1951
else
1952
  ac_site_file1=$ac_default_prefix/share/config.site
1953
  ac_site_file2=$ac_default_prefix/etc/config.site
1954
fi
1955
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1956
do
1957
  test "x$ac_site_file" = xNONE && continue
1958
  if test -r "$ac_site_file"; then
1959
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1960
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1961
    sed 's/^/| /' "$ac_site_file" >&5
1962
    . "$ac_site_file"
1963
  fi
1964
done
1965
 
1966
if test -r "$cache_file"; then
1967
  # Some versions of bash will fail to source /dev/null (special
1968
  # files actually), so we avoid doing that.
1969
  if test -f "$cache_file"; then
1970
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1971
$as_echo "$as_me: loading cache $cache_file" >&6;}
1972
    case $cache_file in
1973
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1974
      *)                      . "./$cache_file";;
1975
    esac
1976
  fi
1977
else
1978
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1979
$as_echo "$as_me: creating cache $cache_file" >&6;}
1980
  >$cache_file
1981
fi
1982
 
1983
# Check that the precious variables saved in the cache have kept the same
1984
# value.
1985
ac_cache_corrupted=false
1986
for ac_var in $ac_precious_vars; do
1987
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1988
  eval ac_new_set=\$ac_env_${ac_var}_set
1989
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1990
  eval ac_new_val=\$ac_env_${ac_var}_value
1991
  case $ac_old_set,$ac_new_set in
1992
    set,)
1993
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1994
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1995
      ac_cache_corrupted=: ;;
1996
    ,set)
1997
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1998
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1999
      ac_cache_corrupted=: ;;
2000
    ,);;
2001
    *)
2002
      if test "x$ac_old_val" != "x$ac_new_val"; then
2003
        # differences in whitespace do not lead to failure.
2004
        ac_old_val_w=`echo x $ac_old_val`
2005
        ac_new_val_w=`echo x $ac_new_val`
2006
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2007
          { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2008
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2009
          ac_cache_corrupted=:
2010
        else
2011
          { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2012
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2013
          eval $ac_var=\$ac_old_val
2014
        fi
2015
        { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2016
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2017
        { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2018
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2019
      fi;;
2020
  esac
2021
  # Pass precious variables to config.status.
2022
  if test "$ac_new_set" = set; then
2023
    case $ac_new_val in
2024
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2025
    *) ac_arg=$ac_var=$ac_new_val ;;
2026
    esac
2027
    case " $ac_configure_args " in
2028
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2029
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2030
    esac
2031
  fi
2032
done
2033
if $ac_cache_corrupted; then
2034
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2035
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2036
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2037
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2038
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2039
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2040
   { (exit 1); exit 1; }; }
2041
fi
2042
 
2043
 
2044
 
2045
 
2046
 
2047
 
2048
 
2049
 
2050
 
2051
 
2052
 
2053
 
2054
 
2055
 
2056
 
2057
 
2058
 
2059
 
2060
 
2061
 
2062
 
2063
 
2064
 
2065
 
2066
 
2067
ac_ext=c
2068
ac_cpp='$CPP $CPPFLAGS'
2069
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2070
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2071
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2072
 
2073
 
2074
 
2075
 
2076
ac_aux_dir=
2077
for ac_dir in ../../../../../.. "$srcdir"/../../../../../..; do
2078
  if test -f "$ac_dir/install-sh"; then
2079
    ac_aux_dir=$ac_dir
2080
    ac_install_sh="$ac_aux_dir/install-sh -c"
2081
    break
2082
  elif test -f "$ac_dir/install.sh"; then
2083
    ac_aux_dir=$ac_dir
2084
    ac_install_sh="$ac_aux_dir/install.sh -c"
2085
    break
2086
  elif test -f "$ac_dir/shtool"; then
2087
    ac_aux_dir=$ac_dir
2088
    ac_install_sh="$ac_aux_dir/shtool install -c"
2089
    break
2090
  fi
2091
done
2092
if test -z "$ac_aux_dir"; then
2093
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../../../.. \"$srcdir\"/../../../../../.." >&5
2094
$as_echo "$as_me: error: cannot find install-sh or install.sh in ../../../../../.. \"$srcdir\"/../../../../../.." >&2;}
2095
   { (exit 1); exit 1; }; }
2096
fi
2097
 
2098
# These three variables are undocumented and unsupported,
2099
# and are intended to be withdrawn in a future Autoconf release.
2100
# They can cause serious problems if a builder's source tree is in a directory
2101
# whose full name contains unusual characters.
2102
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2103
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2104
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2105
 
2106
 
2107
 
2108
 
2109
# Make sure we can run config.sub.
2110
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2111
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2112
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2113
   { (exit 1); exit 1; }; }
2114
 
2115
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2116
$as_echo_n "checking build system type... " >&6; }
2117
if test "${ac_cv_build+set}" = set; then
2118
  $as_echo_n "(cached) " >&6
2119
else
2120
  ac_build_alias=$build_alias
2121
test "x$ac_build_alias" = x &&
2122
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2123
test "x$ac_build_alias" = x &&
2124
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2125
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2126
   { (exit 1); exit 1; }; }
2127
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2128
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2129
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2130
   { (exit 1); exit 1; }; }
2131
 
2132
fi
2133
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2134
$as_echo "$ac_cv_build" >&6; }
2135
case $ac_cv_build in
2136
*-*-*) ;;
2137
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2138
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2139
   { (exit 1); exit 1; }; };;
2140
esac
2141
build=$ac_cv_build
2142
ac_save_IFS=$IFS; IFS='-'
2143
set x $ac_cv_build
2144
shift
2145
build_cpu=$1
2146
build_vendor=$2
2147
shift; shift
2148
# Remember, the first character of IFS is used to create $*,
2149
# except with old shells:
2150
build_os=$*
2151
IFS=$ac_save_IFS
2152
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2153
 
2154
 
2155
am__api_version='1.11'
2156
 
2157
# Find a good install program.  We prefer a C program (faster),
2158
# so one script is as good as another.  But avoid the broken or
2159
# incompatible versions:
2160
# SysV /etc/install, /usr/sbin/install
2161
# SunOS /usr/etc/install
2162
# IRIX /sbin/install
2163
# AIX /bin/install
2164
# AmigaOS /C/install, which installs bootblocks on floppy discs
2165
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2166
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2167
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2168
# OS/2's system install, which has a completely different semantic
2169
# ./install, which can be erroneously created by make from ./install.sh.
2170
# Reject install programs that cannot install multiple files.
2171
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2172
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2173
if test -z "$INSTALL"; then
2174
if test "${ac_cv_path_install+set}" = set; then
2175
  $as_echo_n "(cached) " >&6
2176
else
2177
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178
for as_dir in $PATH
2179
do
2180
  IFS=$as_save_IFS
2181
  test -z "$as_dir" && as_dir=.
2182
  # Account for people who put trailing slashes in PATH elements.
2183
case $as_dir/ in
2184
  ./ | .// | /cC/* | \
2185
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2186
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2187
  /usr/ucb/* ) ;;
2188
  *)
2189
    # OSF1 and SCO ODT 3.0 have their own names for install.
2190
    # Don't use installbsd from OSF since it installs stuff as root
2191
    # by default.
2192
    for ac_prog in ginstall scoinst install; do
2193
      for ac_exec_ext in '' $ac_executable_extensions; do
2194
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2195
          if test $ac_prog = install &&
2196
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2197
            # AIX install.  It has an incompatible calling convention.
2198
            :
2199
          elif test $ac_prog = install &&
2200
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2201
            # program-specific install script used by HP pwplus--don't use.
2202
            :
2203
          else
2204
            rm -rf conftest.one conftest.two conftest.dir
2205
            echo one > conftest.one
2206
            echo two > conftest.two
2207
            mkdir conftest.dir
2208
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2209
              test -s conftest.one && test -s conftest.two &&
2210
              test -s conftest.dir/conftest.one &&
2211
              test -s conftest.dir/conftest.two
2212
            then
2213
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2214
              break 3
2215
            fi
2216
          fi
2217
        fi
2218
      done
2219
    done
2220
    ;;
2221
esac
2222
 
2223
done
2224
IFS=$as_save_IFS
2225
 
2226
rm -rf conftest.one conftest.two conftest.dir
2227
 
2228
fi
2229
  if test "${ac_cv_path_install+set}" = set; then
2230
    INSTALL=$ac_cv_path_install
2231
  else
2232
    # As a last resort, use the slow shell script.  Don't cache a
2233
    # value for INSTALL within a source directory, because that will
2234
    # break other packages using the cache if that directory is
2235
    # removed, or if the value is a relative name.
2236
    INSTALL=$ac_install_sh
2237
  fi
2238
fi
2239
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2240
$as_echo "$INSTALL" >&6; }
2241
 
2242
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2243
# It thinks the first close brace ends the variable substitution.
2244
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2245
 
2246
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2247
 
2248
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2249
 
2250
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2251
$as_echo_n "checking whether build environment is sane... " >&6; }
2252
# Just in case
2253
sleep 1
2254
echo timestamp > conftest.file
2255
# Reject unsafe characters in $srcdir or the absolute working directory
2256
# name.  Accept space and tab only in the latter.
2257
am_lf='
2258
'
2259
case `pwd` in
2260
  *[\\\"\#\$\&\'\`$am_lf]*)
2261
    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2262
$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2263
   { (exit 1); exit 1; }; };;
2264
esac
2265
case $srcdir in
2266
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2267
    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2268
$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2269
   { (exit 1); exit 1; }; };;
2270
esac
2271
 
2272
# Do `set' in a subshell so we don't clobber the current shell's
2273
# arguments.  Must try -L first in case configure is actually a
2274
# symlink; some systems play weird games with the mod time of symlinks
2275
# (eg FreeBSD returns the mod time of the symlink's containing
2276
# directory).
2277
if (
2278
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2279
   if test "$*" = "X"; then
2280
      # -L didn't work.
2281
      set X `ls -t "$srcdir/configure" conftest.file`
2282
   fi
2283
   rm -f conftest.file
2284
   if test "$*" != "X $srcdir/configure conftest.file" \
2285
      && test "$*" != "X conftest.file $srcdir/configure"; then
2286
 
2287
      # If neither matched, then we have a broken ls.  This can happen
2288
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2289
      # broken ls alias from the environment.  This has actually
2290
      # happened.  Such a system could not be considered "sane".
2291
      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2292
alias in your environment" >&5
2293
$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2294
alias in your environment" >&2;}
2295
   { (exit 1); exit 1; }; }
2296
   fi
2297
 
2298
   test "$2" = conftest.file
2299
   )
2300
then
2301
   # Ok.
2302
   :
2303
else
2304
   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2305
Check your system clock" >&5
2306
$as_echo "$as_me: error: newly created file is older than distributed files!
2307
Check your system clock" >&2;}
2308
   { (exit 1); exit 1; }; }
2309
fi
2310
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2311
$as_echo "yes" >&6; }
2312
test "$program_prefix" != NONE &&
2313
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2314
# Use a double $ so make ignores it.
2315
test "$program_suffix" != NONE &&
2316
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2317
# Double any \ or $.
2318
# By default was `s,x,x', remove it if useless.
2319
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2320
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2321
 
2322
# expand $ac_aux_dir to an absolute path
2323
am_aux_dir=`cd $ac_aux_dir && pwd`
2324
 
2325
if test x"${MISSING+set}" != xset; then
2326
  case $am_aux_dir in
2327
  *\ * | *\     *)
2328
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2329
  *)
2330
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2331
  esac
2332
fi
2333
# Use eval to expand $SHELL
2334
if eval "$MISSING --run true"; then
2335
  am_missing_run="$MISSING --run "
2336
else
2337
  am_missing_run=
2338
  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2339
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2340
fi
2341
 
2342
if test x"${install_sh}" != xset; then
2343
  case $am_aux_dir in
2344
  *\ * | *\     *)
2345
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2346
  *)
2347
    install_sh="\${SHELL} $am_aux_dir/install-sh"
2348
  esac
2349
fi
2350
 
2351
# Installed binaries are usually stripped using `strip' when the user
2352
# run `make install-strip'.  However `strip' might not be the right
2353
# tool to use in cross-compilation environments, therefore Automake
2354
# will honor the `STRIP' environment variable to overrule this program.
2355
if test "$cross_compiling" != no; then
2356
  if test -n "$ac_tool_prefix"; then
2357
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2358
set dummy ${ac_tool_prefix}strip; ac_word=$2
2359
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2360
$as_echo_n "checking for $ac_word... " >&6; }
2361
if test "${ac_cv_prog_STRIP+set}" = set; then
2362
  $as_echo_n "(cached) " >&6
2363
else
2364
  if test -n "$STRIP"; then
2365
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2366
else
2367
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368
for as_dir in $PATH
2369
do
2370
  IFS=$as_save_IFS
2371
  test -z "$as_dir" && as_dir=.
2372
  for ac_exec_ext in '' $ac_executable_extensions; do
2373
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2374
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2375
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2376
    break 2
2377
  fi
2378
done
2379
done
2380
IFS=$as_save_IFS
2381
 
2382
fi
2383
fi
2384
STRIP=$ac_cv_prog_STRIP
2385
if test -n "$STRIP"; then
2386
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2387
$as_echo "$STRIP" >&6; }
2388
else
2389
  { $as_echo "$as_me:$LINENO: result: no" >&5
2390
$as_echo "no" >&6; }
2391
fi
2392
 
2393
 
2394
fi
2395
if test -z "$ac_cv_prog_STRIP"; then
2396
  ac_ct_STRIP=$STRIP
2397
  # Extract the first word of "strip", so it can be a program name with args.
2398
set dummy strip; ac_word=$2
2399
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2400
$as_echo_n "checking for $ac_word... " >&6; }
2401
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2402
  $as_echo_n "(cached) " >&6
2403
else
2404
  if test -n "$ac_ct_STRIP"; then
2405
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2406
else
2407
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408
for as_dir in $PATH
2409
do
2410
  IFS=$as_save_IFS
2411
  test -z "$as_dir" && as_dir=.
2412
  for ac_exec_ext in '' $ac_executable_extensions; do
2413
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2414
    ac_cv_prog_ac_ct_STRIP="strip"
2415
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2416
    break 2
2417
  fi
2418
done
2419
done
2420
IFS=$as_save_IFS
2421
 
2422
fi
2423
fi
2424
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2425
if test -n "$ac_ct_STRIP"; then
2426
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2427
$as_echo "$ac_ct_STRIP" >&6; }
2428
else
2429
  { $as_echo "$as_me:$LINENO: result: no" >&5
2430
$as_echo "no" >&6; }
2431
fi
2432
 
2433
  if test "x$ac_ct_STRIP" = x; then
2434
    STRIP=":"
2435
  else
2436
    case $cross_compiling:$ac_tool_warned in
2437
yes:)
2438
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2439
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2440
ac_tool_warned=yes ;;
2441
esac
2442
    STRIP=$ac_ct_STRIP
2443
  fi
2444
else
2445
  STRIP="$ac_cv_prog_STRIP"
2446
fi
2447
 
2448
fi
2449
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2450
 
2451
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2452
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2453
if test -z "$MKDIR_P"; then
2454
  if test "${ac_cv_path_mkdir+set}" = set; then
2455
  $as_echo_n "(cached) " >&6
2456
else
2457
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2459
do
2460
  IFS=$as_save_IFS
2461
  test -z "$as_dir" && as_dir=.
2462
  for ac_prog in mkdir gmkdir; do
2463
         for ac_exec_ext in '' $ac_executable_extensions; do
2464
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2465
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2466
             'mkdir (GNU coreutils) '* | \
2467
             'mkdir (coreutils) '* | \
2468
             'mkdir (fileutils) '4.1*)
2469
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2470
               break 3;;
2471
           esac
2472
         done
2473
       done
2474
done
2475
IFS=$as_save_IFS
2476
 
2477
fi
2478
 
2479
  if test "${ac_cv_path_mkdir+set}" = set; then
2480
    MKDIR_P="$ac_cv_path_mkdir -p"
2481
  else
2482
    # As a last resort, use the slow shell script.  Don't cache a
2483
    # value for MKDIR_P within a source directory, because that will
2484
    # break other packages using the cache if that directory is
2485
    # removed, or if the value is a relative name.
2486
    test -d ./--version && rmdir ./--version
2487
    MKDIR_P="$ac_install_sh -d"
2488
  fi
2489
fi
2490
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2491
$as_echo "$MKDIR_P" >&6; }
2492
 
2493
mkdir_p="$MKDIR_P"
2494
case $mkdir_p in
2495
  [\\/$]* | ?:[\\/]*) ;;
2496
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2497
esac
2498
 
2499
for ac_prog in gawk mawk nawk awk
2500
do
2501
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2502
set dummy $ac_prog; ac_word=$2
2503
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2504
$as_echo_n "checking for $ac_word... " >&6; }
2505
if test "${ac_cv_prog_AWK+set}" = set; then
2506
  $as_echo_n "(cached) " >&6
2507
else
2508
  if test -n "$AWK"; then
2509
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2510
else
2511
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512
for as_dir in $PATH
2513
do
2514
  IFS=$as_save_IFS
2515
  test -z "$as_dir" && as_dir=.
2516
  for ac_exec_ext in '' $ac_executable_extensions; do
2517
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2518
    ac_cv_prog_AWK="$ac_prog"
2519
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2520
    break 2
2521
  fi
2522
done
2523
done
2524
IFS=$as_save_IFS
2525
 
2526
fi
2527
fi
2528
AWK=$ac_cv_prog_AWK
2529
if test -n "$AWK"; then
2530
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2531
$as_echo "$AWK" >&6; }
2532
else
2533
  { $as_echo "$as_me:$LINENO: result: no" >&5
2534
$as_echo "no" >&6; }
2535
fi
2536
 
2537
 
2538
  test -n "$AWK" && break
2539
done
2540
 
2541
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2542
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2543
set x ${MAKE-make}
2544
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2545
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2546
  $as_echo_n "(cached) " >&6
2547
else
2548
  cat >conftest.make <<\_ACEOF
2549
SHELL = /bin/sh
2550
all:
2551
        @echo '@@@%%%=$(MAKE)=@@@%%%'
2552
_ACEOF
2553
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2554
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2555
  *@@@%%%=?*=@@@%%%*)
2556
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2557
  *)
2558
    eval ac_cv_prog_make_${ac_make}_set=no;;
2559
esac
2560
rm -f conftest.make
2561
fi
2562
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2563
  { $as_echo "$as_me:$LINENO: result: yes" >&5
2564
$as_echo "yes" >&6; }
2565
  SET_MAKE=
2566
else
2567
  { $as_echo "$as_me:$LINENO: result: no" >&5
2568
$as_echo "no" >&6; }
2569
  SET_MAKE="MAKE=${MAKE-make}"
2570
fi
2571
 
2572
rm -rf .tst 2>/dev/null
2573
mkdir .tst 2>/dev/null
2574
if test -d .tst; then
2575
  am__leading_dot=.
2576
else
2577
  am__leading_dot=_
2578
fi
2579
rmdir .tst 2>/dev/null
2580
 
2581
DEPDIR="${am__leading_dot}deps"
2582
 
2583
ac_config_commands="$ac_config_commands depfiles"
2584
 
2585
 
2586
am_make=${MAKE-make}
2587
cat > confinc << 'END'
2588
am__doit:
2589
        @echo this is the am__doit target
2590
.PHONY: am__doit
2591
END
2592
# If we don't find an include directive, just comment out the code.
2593
{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2594
$as_echo_n "checking for style of include used by $am_make... " >&6; }
2595
am__include="#"
2596
am__quote=
2597
_am_result=none
2598
# First try GNU make style include.
2599
echo "include confinc" > confmf
2600
# Ignore all kinds of additional output from `make'.
2601
case `$am_make -s -f confmf 2> /dev/null` in #(
2602
*the\ am__doit\ target*)
2603
  am__include=include
2604
  am__quote=
2605
  _am_result=GNU
2606
  ;;
2607
esac
2608
# Now try BSD make style include.
2609
if test "$am__include" = "#"; then
2610
   echo '.include "confinc"' > confmf
2611
   case `$am_make -s -f confmf 2> /dev/null` in #(
2612
   *the\ am__doit\ target*)
2613
     am__include=.include
2614
     am__quote="\""
2615
     _am_result=BSD
2616
     ;;
2617
   esac
2618
fi
2619
 
2620
 
2621
{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2622
$as_echo "$_am_result" >&6; }
2623
rm -f confinc confmf
2624
 
2625
# Check whether --enable-dependency-tracking was given.
2626
if test "${enable_dependency_tracking+set}" = set; then
2627
  enableval=$enable_dependency_tracking;
2628
fi
2629
 
2630
if test "x$enable_dependency_tracking" != xno; then
2631
  am_depcomp="$ac_aux_dir/depcomp"
2632
  AMDEPBACKSLASH='\'
2633
fi
2634
 if test "x$enable_dependency_tracking" != xno; then
2635
  AMDEP_TRUE=
2636
  AMDEP_FALSE='#'
2637
else
2638
  AMDEP_TRUE='#'
2639
  AMDEP_FALSE=
2640
fi
2641
 
2642
 
2643
 
2644
# Check whether --enable-multilib was given.
2645
if test "${enable_multilib+set}" = set; then
2646
  enableval=$enable_multilib; case "${enableval}" in
2647
  yes) multilib=yes ;;
2648
  no)  multilib=no ;;
2649
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
2650
$as_echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
2651
   { (exit 1); exit 1; }; } ;;
2652
 esac
2653
else
2654
  multilib=yes
2655
fi
2656
 
2657
# Check whether --enable-target-optspace was given.
2658
if test "${enable_target_optspace+set}" = set; then
2659
  enableval=$enable_target_optspace; case "${enableval}" in
2660
  yes) target_optspace=yes ;;
2661
  no)  target_optspace=no ;;
2662
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for target-optspace option" >&5
2663
$as_echo "$as_me: error: bad value ${enableval} for target-optspace option" >&2;}
2664
   { (exit 1); exit 1; }; } ;;
2665
 esac
2666
else
2667
  target_optspace=
2668
fi
2669
 
2670
# Check whether --enable-malloc-debugging was given.
2671
if test "${enable_malloc_debugging+set}" = set; then
2672
  enableval=$enable_malloc_debugging; case "${enableval}" in
2673
  yes) malloc_debugging=yes ;;
2674
  no)  malloc_debugging=no ;;
2675
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for malloc-debugging option" >&5
2676
$as_echo "$as_me: error: bad value ${enableval} for malloc-debugging option" >&2;}
2677
   { (exit 1); exit 1; }; } ;;
2678
 esac
2679
else
2680
  malloc_debugging=
2681
fi
2682
 
2683
# Check whether --enable-newlib-multithread was given.
2684
if test "${enable_newlib_multithread+set}" = set; then
2685
  enableval=$enable_newlib_multithread; case "${enableval}" in
2686
  yes) newlib_multithread=yes ;;
2687
  no)  newlib_multithread=no ;;
2688
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-multithread option" >&5
2689
$as_echo "$as_me: error: bad value ${enableval} for newlib-multithread option" >&2;}
2690
   { (exit 1); exit 1; }; } ;;
2691
 esac
2692
else
2693
  newlib_multithread=yes
2694
fi
2695
 
2696
# Check whether --enable-newlib-iconv was given.
2697
if test "${enable_newlib_iconv+set}" = set; then
2698
  enableval=$enable_newlib_iconv; if test "${newlib_iconv+set}" != set; then
2699
   case "${enableval}" in
2700
     yes) newlib_iconv=yes ;;
2701
     no)  newlib_iconv=no ;;
2702
     *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv option" >&5
2703
$as_echo "$as_me: error: bad value ${enableval} for newlib-iconv option" >&2;}
2704
   { (exit 1); exit 1; }; } ;;
2705
   esac
2706
 fi
2707
else
2708
  newlib_iconv=${newlib_iconv}
2709
fi
2710
 
2711
# Check whether --enable-newlib-elix-level was given.
2712
if test "${enable_newlib_elix_level+set}" = set; then
2713
  enableval=$enable_newlib_elix_level; case "${enableval}" in
2714
  0)   newlib_elix_level=0 ;;
2715
  1)   newlib_elix_level=1 ;;
2716
  2)   newlib_elix_level=2 ;;
2717
  3)   newlib_elix_level=3 ;;
2718
  4)   newlib_elix_level=4 ;;
2719
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-elix-level option" >&5
2720
$as_echo "$as_me: error: bad value ${enableval} for newlib-elix-level option" >&2;}
2721
   { (exit 1); exit 1; }; } ;;
2722
 esac
2723
else
2724
  newlib_elix_level=0
2725
fi
2726
 
2727
# Check whether --enable-newlib-io-float was given.
2728
if test "${enable_newlib_io_float+set}" = set; then
2729
  enableval=$enable_newlib_io_float; case "${enableval}" in
2730
  yes) newlib_io_float=yes ;;
2731
  no)  newlib_io_float=no ;;
2732
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-float option" >&5
2733
$as_echo "$as_me: error: bad value ${enableval} for newlib-io-float option" >&2;}
2734
   { (exit 1); exit 1; }; } ;;
2735
 esac
2736
else
2737
  newlib_io_float=yes
2738
fi
2739
 
2740
# Check whether --enable-newlib-supplied-syscalls was given.
2741
if test "${enable_newlib_supplied_syscalls+set}" = set; then
2742
  enableval=$enable_newlib_supplied_syscalls; case "${enableval}" in
2743
  yes) newlib_may_supply_syscalls=yes ;;
2744
  no)  newlib_may_supply_syscalls=no ;;
2745
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-supplied-syscalls option" >&5
2746
$as_echo "$as_me: error: bad value ${enableval} for newlib-supplied-syscalls option" >&2;}
2747
   { (exit 1); exit 1; }; } ;;
2748
 esac
2749
else
2750
  newlib_may_supply_syscalls=yes
2751
fi
2752
 
2753
 if test x${newlib_may_supply_syscalls} = xyes; then
2754
  MAY_SUPPLY_SYSCALLS_TRUE=
2755
  MAY_SUPPLY_SYSCALLS_FALSE='#'
2756
else
2757
  MAY_SUPPLY_SYSCALLS_TRUE='#'
2758
  MAY_SUPPLY_SYSCALLS_FALSE=
2759
fi
2760
 
2761
 
2762
 
2763
test -z "${with_target_subdir}" && with_target_subdir=.
2764
 
2765
if test "${srcdir}" = "."; then
2766
  if test "${with_target_subdir}" != "."; then
2767
    newlib_basedir="${srcdir}/${with_multisrctop}../../../../../.."
2768
  else
2769
    newlib_basedir="${srcdir}/${with_multisrctop}../../../../.."
2770
  fi
2771
else
2772
  newlib_basedir="${srcdir}/../../../../.."
2773
fi
2774
 
2775
 
2776
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2777
$as_echo_n "checking host system type... " >&6; }
2778
if test "${ac_cv_host+set}" = set; then
2779
  $as_echo_n "(cached) " >&6
2780
else
2781
  if test "x$host_alias" = x; then
2782
  ac_cv_host=$ac_cv_build
2783
else
2784
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2785
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2786
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2787
   { (exit 1); exit 1; }; }
2788
fi
2789
 
2790
fi
2791
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2792
$as_echo "$ac_cv_host" >&6; }
2793
case $ac_cv_host in
2794
*-*-*) ;;
2795
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2796
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2797
   { (exit 1); exit 1; }; };;
2798
esac
2799
host=$ac_cv_host
2800
ac_save_IFS=$IFS; IFS='-'
2801
set x $ac_cv_host
2802
shift
2803
host_cpu=$1
2804
host_vendor=$2
2805
shift; shift
2806
# Remember, the first character of IFS is used to create $*,
2807
# except with old shells:
2808
host_os=$*
2809
IFS=$ac_save_IFS
2810
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2811
 
2812
 
2813
 
2814
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2815
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2816
  # is not polluted with repeated "-I."
2817
  am__isrc=' -I$(srcdir)'
2818
  # test to see if srcdir already configured
2819
  if test -f $srcdir/config.status; then
2820
    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2821
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2822
   { (exit 1); exit 1; }; }
2823
  fi
2824
fi
2825
 
2826
# test whether we have cygpath
2827
if test -z "$CYGPATH_W"; then
2828
  if (cygpath --version) >/dev/null 2>/dev/null; then
2829
    CYGPATH_W='cygpath -w'
2830
  else
2831
    CYGPATH_W=echo
2832
  fi
2833
fi
2834
 
2835
 
2836
# Define the identity of the package.
2837
 PACKAGE='newlib'
2838
 VERSION='1.18.0'
2839
 
2840
 
2841
# Some tools Automake needs.
2842
 
2843
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2844
 
2845
 
2846
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2847
 
2848
 
2849
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2850
 
2851
 
2852
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2853
 
2854
 
2855
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2856
 
2857
# We need awk for the "check" target.  The system "awk" is bad on
2858
# some platforms.
2859
# Always define AMTAR for backward compatibility.
2860
 
2861
AMTAR=${AMTAR-"${am_missing_run}tar"}
2862
 
2863
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2864
 
2865
 
2866
 
2867
 
2868
 
2869
 
2870
# FIXME: We temporarily define our own version of AC_PROG_CC.  This is
2871
# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
2872
# are probably using a cross compiler, which will not be able to fully
2873
# link an executable.  This should really be fixed in autoconf
2874
# itself.
2875
 
2876
 
2877
 
2878
 
2879
 
2880
 
2881
 
2882
# Extract the first word of "gcc", so it can be a program name with args.
2883
set dummy gcc; ac_word=$2
2884
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2885
$as_echo_n "checking for $ac_word... " >&6; }
2886
if test "${ac_cv_prog_CC+set}" = set; then
2887
  $as_echo_n "(cached) " >&6
2888
else
2889
  if test -n "$CC"; then
2890
  ac_cv_prog_CC="$CC" # Let the user override the test.
2891
else
2892
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893
for as_dir in $PATH
2894
do
2895
  IFS=$as_save_IFS
2896
  test -z "$as_dir" && as_dir=.
2897
  for ac_exec_ext in '' $ac_executable_extensions; do
2898
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2899
    ac_cv_prog_CC="gcc"
2900
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2901
    break 2
2902
  fi
2903
done
2904
done
2905
IFS=$as_save_IFS
2906
 
2907
fi
2908
fi
2909
CC=$ac_cv_prog_CC
2910
if test -n "$CC"; then
2911
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2912
$as_echo "$CC" >&6; }
2913
else
2914
  { $as_echo "$as_me:$LINENO: result: no" >&5
2915
$as_echo "no" >&6; }
2916
fi
2917
 
2918
 
2919
 
2920
depcc="$CC"   am_compiler_list=
2921
 
2922
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2923
$as_echo_n "checking dependency style of $depcc... " >&6; }
2924
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2925
  $as_echo_n "(cached) " >&6
2926
else
2927
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2928
  # We make a subdir and do the tests there.  Otherwise we can end up
2929
  # making bogus files that we don't know about and never remove.  For
2930
  # instance it was reported that on HP-UX the gcc test will end up
2931
  # making a dummy file named `D' -- because `-MD' means `put the output
2932
  # in D'.
2933
  mkdir conftest.dir
2934
  # Copy depcomp to subdir because otherwise we won't find it if we're
2935
  # using a relative directory.
2936
  cp "$am_depcomp" conftest.dir
2937
  cd conftest.dir
2938
  # We will build objects and dependencies in a subdirectory because
2939
  # it helps to detect inapplicable dependency modes.  For instance
2940
  # both Tru64's cc and ICC support -MD to output dependencies as a
2941
  # side effect of compilation, but ICC will put the dependencies in
2942
  # the current directory while Tru64 will put them in the object
2943
  # directory.
2944
  mkdir sub
2945
 
2946
  am_cv_CC_dependencies_compiler_type=none
2947
  if test "$am_compiler_list" = ""; then
2948
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2949
  fi
2950
  am__universal=false
2951
  case " $depcc " in #(
2952
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
2953
     esac
2954
 
2955
  for depmode in $am_compiler_list; do
2956
    # Setup a source with many dependencies, because some compilers
2957
    # like to wrap large dependency lists on column 80 (with \), and
2958
    # we should not choose a depcomp mode which is confused by this.
2959
    #
2960
    # We need to recreate these files for each test, as the compiler may
2961
    # overwrite some of them when testing with obscure command lines.
2962
    # This happens at least with the AIX C compiler.
2963
    : > sub/conftest.c
2964
    for i in 1 2 3 4 5 6; do
2965
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2966
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2967
      # Solaris 8's {/usr,}/bin/sh.
2968
      touch sub/conftst$i.h
2969
    done
2970
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2971
 
2972
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2973
    # mode.  It turns out that the SunPro C++ compiler does not properly
2974
    # handle `-M -o', and we need to detect this.  Also, some Intel
2975
    # versions had trouble with output in subdirs
2976
    am__obj=sub/conftest.${OBJEXT-o}
2977
    am__minus_obj="-o $am__obj"
2978
    case $depmode in
2979
    gcc)
2980
      # This depmode causes a compiler race in universal mode.
2981
      test "$am__universal" = false || continue
2982
      ;;
2983
    nosideeffect)
2984
      # after this tag, mechanisms are not by side-effect, so they'll
2985
      # only be used when explicitly requested
2986
      if test "x$enable_dependency_tracking" = xyes; then
2987
        continue
2988
      else
2989
        break
2990
      fi
2991
      ;;
2992
    msvisualcpp | msvcmsys)
2993
      # This compiler won't grok `-c -o', but also, the minuso test has
2994
      # not run yet.  These depmodes are late enough in the game, and
2995
      # so weak that their functioning should not be impacted.
2996
      am__obj=conftest.${OBJEXT-o}
2997
      am__minus_obj=
2998
      ;;
2999
    none) break ;;
3000
    esac
3001
    if depmode=$depmode \
3002
       source=sub/conftest.c object=$am__obj \
3003
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3004
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3005
         >/dev/null 2>conftest.err &&
3006
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3007
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3008
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3009
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3010
      # icc doesn't choke on unknown options, it will just issue warnings
3011
      # or remarks (even with -Werror).  So we grep stderr for any message
3012
      # that says an option was ignored or not supported.
3013
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3014
      #   icc: Command line warning: ignoring option '-M'; no argument required
3015
      # The diagnosis changed in icc 8.0:
3016
      #   icc: Command line remark: option '-MP' not supported
3017
      if (grep 'ignoring option' conftest.err ||
3018
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3019
        am_cv_CC_dependencies_compiler_type=$depmode
3020
        break
3021
      fi
3022
    fi
3023
  done
3024
 
3025
  cd ..
3026
  rm -rf conftest.dir
3027
else
3028
  am_cv_CC_dependencies_compiler_type=none
3029
fi
3030
 
3031
fi
3032
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3033
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3034
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3035
 
3036
 if
3037
  test "x$enable_dependency_tracking" != xno \
3038
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3039
  am__fastdepCC_TRUE=
3040
  am__fastdepCC_FALSE='#'
3041
else
3042
  am__fastdepCC_TRUE='#'
3043
  am__fastdepCC_FALSE=
3044
fi
3045
 
3046
 
3047
if test -z "$CC"; then
3048
  # Extract the first word of "cc", so it can be a program name with args.
3049
set dummy cc; ac_word=$2
3050
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3051
$as_echo_n "checking for $ac_word... " >&6; }
3052
if test "${ac_cv_prog_CC+set}" = set; then
3053
  $as_echo_n "(cached) " >&6
3054
else
3055
  if test -n "$CC"; then
3056
  ac_cv_prog_CC="$CC" # Let the user override the test.
3057
else
3058
  ac_prog_rejected=no
3059
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060
for as_dir in $PATH
3061
do
3062
  IFS=$as_save_IFS
3063
  test -z "$as_dir" && as_dir=.
3064
  for ac_exec_ext in '' $ac_executable_extensions; do
3065
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3066
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3067
       ac_prog_rejected=yes
3068
       continue
3069
     fi
3070
    ac_cv_prog_CC="cc"
3071
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3072
    break 2
3073
  fi
3074
done
3075
done
3076
IFS=$as_save_IFS
3077
 
3078
if test $ac_prog_rejected = yes; then
3079
  # We found a bogon in the path, so make sure we never use it.
3080
  set dummy $ac_cv_prog_CC
3081
  shift
3082
  if test $# != 0; then
3083
    # We chose a different compiler from the bogus one.
3084
    # However, it has the same basename, so the bogon will be chosen
3085
    # first if we set CC to just the basename; use the full file name.
3086
    shift
3087
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3088
  fi
3089
fi
3090
fi
3091
fi
3092
CC=$ac_cv_prog_CC
3093
if test -n "$CC"; then
3094
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3095
$as_echo "$CC" >&6; }
3096
else
3097
  { $as_echo "$as_me:$LINENO: result: no" >&5
3098
$as_echo "no" >&6; }
3099
fi
3100
 
3101
 
3102
  test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
3103
$as_echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
3104
   { (exit 1); exit 1; }; }
3105
fi
3106
 
3107
{ $as_echo "$as_me:$LINENO: checking whether we are using GNU C" >&5
3108
$as_echo_n "checking whether we are using GNU C... " >&6; }
3109
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3110
  $as_echo_n "(cached) " >&6
3111
else
3112
  cat > conftest.c <
3113
#ifdef __GNUC__
3114
  yes;
3115
#endif
3116
EOF
3117
if { ac_try='${CC-cc} -E conftest.c'
3118
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3119
  (eval $ac_try) 2>&5
3120
  ac_status=$?
3121
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122
  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3123
  ac_cv_c_compiler_gnu=yes
3124
else
3125
  ac_cv_c_compiler_gnu=no
3126
fi
3127
fi
3128
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3129
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3130
 
3131
if test $ac_cv_c_compiler_gnu = yes; then
3132
  GCC=yes
3133
  ac_test_CFLAGS="${CFLAGS+set}"
3134
  ac_save_CFLAGS="$CFLAGS"
3135
  ac_test_CFLAGS=${CFLAGS+set}
3136
ac_save_CFLAGS=$CFLAGS
3137
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3138
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3139
if test "${ac_cv_prog_cc_g+set}" = set; then
3140
  $as_echo_n "(cached) " >&6
3141
else
3142
  ac_save_c_werror_flag=$ac_c_werror_flag
3143
   ac_c_werror_flag=yes
3144
   ac_cv_prog_cc_g=no
3145
   CFLAGS="-g"
3146
   cat >conftest.$ac_ext <<_ACEOF
3147
/* confdefs.h.  */
3148
_ACEOF
3149
cat confdefs.h >>conftest.$ac_ext
3150
cat >>conftest.$ac_ext <<_ACEOF
3151
/* end confdefs.h.  */
3152
 
3153
int
3154
main ()
3155
{
3156
 
3157
  ;
3158
  return 0;
3159
}
3160
_ACEOF
3161
rm -f conftest.$ac_objext
3162
if { (ac_try="$ac_compile"
3163
case "(($ac_try" in
3164
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165
  *) ac_try_echo=$ac_try;;
3166
esac
3167
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3168
$as_echo "$ac_try_echo") >&5
3169
  (eval "$ac_compile") 2>conftest.er1
3170
  ac_status=$?
3171
  grep -v '^ *+' conftest.er1 >conftest.err
3172
  rm -f conftest.er1
3173
  cat conftest.err >&5
3174
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175
  (exit $ac_status); } && {
3176
         test -z "$ac_c_werror_flag" ||
3177
         test ! -s conftest.err
3178
       } && test -s conftest.$ac_objext; then
3179
  ac_cv_prog_cc_g=yes
3180
else
3181
  $as_echo "$as_me: failed program was:" >&5
3182
sed 's/^/| /' conftest.$ac_ext >&5
3183
 
3184
        CFLAGS=""
3185
      cat >conftest.$ac_ext <<_ACEOF
3186
/* confdefs.h.  */
3187
_ACEOF
3188
cat confdefs.h >>conftest.$ac_ext
3189
cat >>conftest.$ac_ext <<_ACEOF
3190
/* end confdefs.h.  */
3191
 
3192
int
3193
main ()
3194
{
3195
 
3196
  ;
3197
  return 0;
3198
}
3199
_ACEOF
3200
rm -f conftest.$ac_objext
3201
if { (ac_try="$ac_compile"
3202
case "(($ac_try" in
3203
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204
  *) ac_try_echo=$ac_try;;
3205
esac
3206
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3207
$as_echo "$ac_try_echo") >&5
3208
  (eval "$ac_compile") 2>conftest.er1
3209
  ac_status=$?
3210
  grep -v '^ *+' conftest.er1 >conftest.err
3211
  rm -f conftest.er1
3212
  cat conftest.err >&5
3213
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214
  (exit $ac_status); } && {
3215
         test -z "$ac_c_werror_flag" ||
3216
         test ! -s conftest.err
3217
       } && test -s conftest.$ac_objext; then
3218
  :
3219
else
3220
  $as_echo "$as_me: failed program was:" >&5
3221
sed 's/^/| /' conftest.$ac_ext >&5
3222
 
3223
        ac_c_werror_flag=$ac_save_c_werror_flag
3224
         CFLAGS="-g"
3225
         cat >conftest.$ac_ext <<_ACEOF
3226
/* confdefs.h.  */
3227
_ACEOF
3228
cat confdefs.h >>conftest.$ac_ext
3229
cat >>conftest.$ac_ext <<_ACEOF
3230
/* end confdefs.h.  */
3231
 
3232
int
3233
main ()
3234
{
3235
 
3236
  ;
3237
  return 0;
3238
}
3239
_ACEOF
3240
rm -f conftest.$ac_objext
3241
if { (ac_try="$ac_compile"
3242
case "(($ac_try" in
3243
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244
  *) ac_try_echo=$ac_try;;
3245
esac
3246
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3247
$as_echo "$ac_try_echo") >&5
3248
  (eval "$ac_compile") 2>conftest.er1
3249
  ac_status=$?
3250
  grep -v '^ *+' conftest.er1 >conftest.err
3251
  rm -f conftest.er1
3252
  cat conftest.err >&5
3253
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254
  (exit $ac_status); } && {
3255
         test -z "$ac_c_werror_flag" ||
3256
         test ! -s conftest.err
3257
       } && test -s conftest.$ac_objext; then
3258
  ac_cv_prog_cc_g=yes
3259
else
3260
  $as_echo "$as_me: failed program was:" >&5
3261
sed 's/^/| /' conftest.$ac_ext >&5
3262
 
3263
 
3264
fi
3265
 
3266
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3267
fi
3268
 
3269
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3270
fi
3271
 
3272
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3273
   ac_c_werror_flag=$ac_save_c_werror_flag
3274
fi
3275
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3276
$as_echo "$ac_cv_prog_cc_g" >&6; }
3277
if test "$ac_test_CFLAGS" = set; then
3278
  CFLAGS=$ac_save_CFLAGS
3279
elif test $ac_cv_prog_cc_g = yes; then
3280
  if test "$GCC" = yes; then
3281
    CFLAGS="-g -O2"
3282
  else
3283
    CFLAGS="-g"
3284
  fi
3285
else
3286
  if test "$GCC" = yes; then
3287
    CFLAGS="-O2"
3288
  else
3289
    CFLAGS=
3290
  fi
3291
fi
3292
  if test "$ac_test_CFLAGS" = set; then
3293
    CFLAGS="$ac_save_CFLAGS"
3294
  elif test $ac_cv_prog_cc_g = yes; then
3295
    CFLAGS="-g -O2"
3296
  else
3297
    CFLAGS="-O2"
3298
  fi
3299
else
3300
  GCC=
3301
  test "${CFLAGS+set}" = set || CFLAGS="-g"
3302
fi
3303
 
3304
 
3305
if test -n "$ac_tool_prefix"; then
3306
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3307
set dummy ${ac_tool_prefix}as; ac_word=$2
3308
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3309
$as_echo_n "checking for $ac_word... " >&6; }
3310
if test "${ac_cv_prog_AS+set}" = set; then
3311
  $as_echo_n "(cached) " >&6
3312
else
3313
  if test -n "$AS"; then
3314
  ac_cv_prog_AS="$AS" # Let the user override the test.
3315
else
3316
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317
for as_dir in $PATH
3318
do
3319
  IFS=$as_save_IFS
3320
  test -z "$as_dir" && as_dir=.
3321
  for ac_exec_ext in '' $ac_executable_extensions; do
3322
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3323
    ac_cv_prog_AS="${ac_tool_prefix}as"
3324
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3325
    break 2
3326
  fi
3327
done
3328
done
3329
IFS=$as_save_IFS
3330
 
3331
fi
3332
fi
3333
AS=$ac_cv_prog_AS
3334
if test -n "$AS"; then
3335
  { $as_echo "$as_me:$LINENO: result: $AS" >&5
3336
$as_echo "$AS" >&6; }
3337
else
3338
  { $as_echo "$as_me:$LINENO: result: no" >&5
3339
$as_echo "no" >&6; }
3340
fi
3341
 
3342
 
3343
fi
3344
if test -z "$ac_cv_prog_AS"; then
3345
  ac_ct_AS=$AS
3346
  # Extract the first word of "as", so it can be a program name with args.
3347
set dummy as; ac_word=$2
3348
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3349
$as_echo_n "checking for $ac_word... " >&6; }
3350
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3351
  $as_echo_n "(cached) " >&6
3352
else
3353
  if test -n "$ac_ct_AS"; then
3354
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3355
else
3356
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357
for as_dir in $PATH
3358
do
3359
  IFS=$as_save_IFS
3360
  test -z "$as_dir" && as_dir=.
3361
  for ac_exec_ext in '' $ac_executable_extensions; do
3362
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3363
    ac_cv_prog_ac_ct_AS="as"
3364
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3365
    break 2
3366
  fi
3367
done
3368
done
3369
IFS=$as_save_IFS
3370
 
3371
fi
3372
fi
3373
ac_ct_AS=$ac_cv_prog_ac_ct_AS
3374
if test -n "$ac_ct_AS"; then
3375
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3376
$as_echo "$ac_ct_AS" >&6; }
3377
else
3378
  { $as_echo "$as_me:$LINENO: result: no" >&5
3379
$as_echo "no" >&6; }
3380
fi
3381
 
3382
  if test "x$ac_ct_AS" = x; then
3383
    AS=""
3384
  else
3385
    case $cross_compiling:$ac_tool_warned in
3386
yes:)
3387
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3388
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3389
ac_tool_warned=yes ;;
3390
esac
3391
    AS=$ac_ct_AS
3392
  fi
3393
else
3394
  AS="$ac_cv_prog_AS"
3395
fi
3396
 
3397
if test -n "$ac_tool_prefix"; then
3398
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3399
set dummy ${ac_tool_prefix}ar; ac_word=$2
3400
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3401
$as_echo_n "checking for $ac_word... " >&6; }
3402
if test "${ac_cv_prog_AR+set}" = set; then
3403
  $as_echo_n "(cached) " >&6
3404
else
3405
  if test -n "$AR"; then
3406
  ac_cv_prog_AR="$AR" # Let the user override the test.
3407
else
3408
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409
for as_dir in $PATH
3410
do
3411
  IFS=$as_save_IFS
3412
  test -z "$as_dir" && as_dir=.
3413
  for ac_exec_ext in '' $ac_executable_extensions; do
3414
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3415
    ac_cv_prog_AR="${ac_tool_prefix}ar"
3416
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3417
    break 2
3418
  fi
3419
done
3420
done
3421
IFS=$as_save_IFS
3422
 
3423
fi
3424
fi
3425
AR=$ac_cv_prog_AR
3426
if test -n "$AR"; then
3427
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
3428
$as_echo "$AR" >&6; }
3429
else
3430
  { $as_echo "$as_me:$LINENO: result: no" >&5
3431
$as_echo "no" >&6; }
3432
fi
3433
 
3434
 
3435
fi
3436
if test -z "$ac_cv_prog_AR"; then
3437
  ac_ct_AR=$AR
3438
  # Extract the first word of "ar", so it can be a program name with args.
3439
set dummy ar; ac_word=$2
3440
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3441
$as_echo_n "checking for $ac_word... " >&6; }
3442
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3443
  $as_echo_n "(cached) " >&6
3444
else
3445
  if test -n "$ac_ct_AR"; then
3446
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3447
else
3448
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449
for as_dir in $PATH
3450
do
3451
  IFS=$as_save_IFS
3452
  test -z "$as_dir" && as_dir=.
3453
  for ac_exec_ext in '' $ac_executable_extensions; do
3454
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3455
    ac_cv_prog_ac_ct_AR="ar"
3456
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3457
    break 2
3458
  fi
3459
done
3460
done
3461
IFS=$as_save_IFS
3462
 
3463
fi
3464
fi
3465
ac_ct_AR=$ac_cv_prog_ac_ct_AR
3466
if test -n "$ac_ct_AR"; then
3467
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3468
$as_echo "$ac_ct_AR" >&6; }
3469
else
3470
  { $as_echo "$as_me:$LINENO: result: no" >&5
3471
$as_echo "no" >&6; }
3472
fi
3473
 
3474
  if test "x$ac_ct_AR" = x; then
3475
    AR=""
3476
  else
3477
    case $cross_compiling:$ac_tool_warned in
3478
yes:)
3479
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3480
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3481
ac_tool_warned=yes ;;
3482
esac
3483
    AR=$ac_ct_AR
3484
  fi
3485
else
3486
  AR="$ac_cv_prog_AR"
3487
fi
3488
 
3489
if test -n "$ac_tool_prefix"; then
3490
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3491
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3492
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3493
$as_echo_n "checking for $ac_word... " >&6; }
3494
if test "${ac_cv_prog_RANLIB+set}" = set; then
3495
  $as_echo_n "(cached) " >&6
3496
else
3497
  if test -n "$RANLIB"; then
3498
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3499
else
3500
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501
for as_dir in $PATH
3502
do
3503
  IFS=$as_save_IFS
3504
  test -z "$as_dir" && as_dir=.
3505
  for ac_exec_ext in '' $ac_executable_extensions; do
3506
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3507
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3508
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3509
    break 2
3510
  fi
3511
done
3512
done
3513
IFS=$as_save_IFS
3514
 
3515
fi
3516
fi
3517
RANLIB=$ac_cv_prog_RANLIB
3518
if test -n "$RANLIB"; then
3519
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3520
$as_echo "$RANLIB" >&6; }
3521
else
3522
  { $as_echo "$as_me:$LINENO: result: no" >&5
3523
$as_echo "no" >&6; }
3524
fi
3525
 
3526
 
3527
fi
3528
if test -z "$ac_cv_prog_RANLIB"; then
3529
  ac_ct_RANLIB=$RANLIB
3530
  # Extract the first word of "ranlib", so it can be a program name with args.
3531
set dummy ranlib; ac_word=$2
3532
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3533
$as_echo_n "checking for $ac_word... " >&6; }
3534
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3535
  $as_echo_n "(cached) " >&6
3536
else
3537
  if test -n "$ac_ct_RANLIB"; then
3538
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3539
else
3540
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541
for as_dir in $PATH
3542
do
3543
  IFS=$as_save_IFS
3544
  test -z "$as_dir" && as_dir=.
3545
  for ac_exec_ext in '' $ac_executable_extensions; do
3546
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3547
    ac_cv_prog_ac_ct_RANLIB="ranlib"
3548
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3549
    break 2
3550
  fi
3551
done
3552
done
3553
IFS=$as_save_IFS
3554
 
3555
fi
3556
fi
3557
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3558
if test -n "$ac_ct_RANLIB"; then
3559
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3560
$as_echo "$ac_ct_RANLIB" >&6; }
3561
else
3562
  { $as_echo "$as_me:$LINENO: result: no" >&5
3563
$as_echo "no" >&6; }
3564
fi
3565
 
3566
  if test "x$ac_ct_RANLIB" = x; then
3567
    RANLIB=":"
3568
  else
3569
    case $cross_compiling:$ac_tool_warned in
3570
yes:)
3571
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3572
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3573
ac_tool_warned=yes ;;
3574
esac
3575
    RANLIB=$ac_ct_RANLIB
3576
  fi
3577
else
3578
  RANLIB="$ac_cv_prog_RANLIB"
3579
fi
3580
 
3581
if test -n "$ac_tool_prefix"; then
3582
  # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
3583
set dummy ${ac_tool_prefix}readelf; ac_word=$2
3584
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3585
$as_echo_n "checking for $ac_word... " >&6; }
3586
if test "${ac_cv_prog_READELF+set}" = set; then
3587
  $as_echo_n "(cached) " >&6
3588
else
3589
  if test -n "$READELF"; then
3590
  ac_cv_prog_READELF="$READELF" # Let the user override the test.
3591
else
3592
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593
for as_dir in $PATH
3594
do
3595
  IFS=$as_save_IFS
3596
  test -z "$as_dir" && as_dir=.
3597
  for ac_exec_ext in '' $ac_executable_extensions; do
3598
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3599
    ac_cv_prog_READELF="${ac_tool_prefix}readelf"
3600
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3601
    break 2
3602
  fi
3603
done
3604
done
3605
IFS=$as_save_IFS
3606
 
3607
fi
3608
fi
3609
READELF=$ac_cv_prog_READELF
3610
if test -n "$READELF"; then
3611
  { $as_echo "$as_me:$LINENO: result: $READELF" >&5
3612
$as_echo "$READELF" >&6; }
3613
else
3614
  { $as_echo "$as_me:$LINENO: result: no" >&5
3615
$as_echo "no" >&6; }
3616
fi
3617
 
3618
 
3619
fi
3620
if test -z "$ac_cv_prog_READELF"; then
3621
  ac_ct_READELF=$READELF
3622
  # Extract the first word of "readelf", so it can be a program name with args.
3623
set dummy readelf; ac_word=$2
3624
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3625
$as_echo_n "checking for $ac_word... " >&6; }
3626
if test "${ac_cv_prog_ac_ct_READELF+set}" = set; then
3627
  $as_echo_n "(cached) " >&6
3628
else
3629
  if test -n "$ac_ct_READELF"; then
3630
  ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
3631
else
3632
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633
for as_dir in $PATH
3634
do
3635
  IFS=$as_save_IFS
3636
  test -z "$as_dir" && as_dir=.
3637
  for ac_exec_ext in '' $ac_executable_extensions; do
3638
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3639
    ac_cv_prog_ac_ct_READELF="readelf"
3640
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3641
    break 2
3642
  fi
3643
done
3644
done
3645
IFS=$as_save_IFS
3646
 
3647
fi
3648
fi
3649
ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
3650
if test -n "$ac_ct_READELF"; then
3651
  { $as_echo "$as_me:$LINENO: result: $ac_ct_READELF" >&5
3652
$as_echo "$ac_ct_READELF" >&6; }
3653
else
3654
  { $as_echo "$as_me:$LINENO: result: no" >&5
3655
$as_echo "no" >&6; }
3656
fi
3657
 
3658
  if test "x$ac_ct_READELF" = x; then
3659
    READELF=":"
3660
  else
3661
    case $cross_compiling:$ac_tool_warned in
3662
yes:)
3663
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3664
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3665
ac_tool_warned=yes ;;
3666
esac
3667
    READELF=$ac_ct_READELF
3668
  fi
3669
else
3670
  READELF="$ac_cv_prog_READELF"
3671
fi
3672
 
3673
 
3674
# Find a good install program.  We prefer a C program (faster),
3675
# so one script is as good as another.  But avoid the broken or
3676
# incompatible versions:
3677
# SysV /etc/install, /usr/sbin/install
3678
# SunOS /usr/etc/install
3679
# IRIX /sbin/install
3680
# AIX /bin/install
3681
# AmigaOS /C/install, which installs bootblocks on floppy discs
3682
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3683
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3684
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3685
# OS/2's system install, which has a completely different semantic
3686
# ./install, which can be erroneously created by make from ./install.sh.
3687
# Reject install programs that cannot install multiple files.
3688
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3689
$as_echo_n "checking for a BSD-compatible install... " >&6; }
3690
if test -z "$INSTALL"; then
3691
if test "${ac_cv_path_install+set}" = set; then
3692
  $as_echo_n "(cached) " >&6
3693
else
3694
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695
for as_dir in $PATH
3696
do
3697
  IFS=$as_save_IFS
3698
  test -z "$as_dir" && as_dir=.
3699
  # Account for people who put trailing slashes in PATH elements.
3700
case $as_dir/ in
3701
  ./ | .// | /cC/* | \
3702
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3703
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3704
  /usr/ucb/* ) ;;
3705
  *)
3706
    # OSF1 and SCO ODT 3.0 have their own names for install.
3707
    # Don't use installbsd from OSF since it installs stuff as root
3708
    # by default.
3709
    for ac_prog in ginstall scoinst install; do
3710
      for ac_exec_ext in '' $ac_executable_extensions; do
3711
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3712
          if test $ac_prog = install &&
3713
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3714
            # AIX install.  It has an incompatible calling convention.
3715
            :
3716
          elif test $ac_prog = install &&
3717
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3718
            # program-specific install script used by HP pwplus--don't use.
3719
            :
3720
          else
3721
            rm -rf conftest.one conftest.two conftest.dir
3722
            echo one > conftest.one
3723
            echo two > conftest.two
3724
            mkdir conftest.dir
3725
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3726
              test -s conftest.one && test -s conftest.two &&
3727
              test -s conftest.dir/conftest.one &&
3728
              test -s conftest.dir/conftest.two
3729
            then
3730
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3731
              break 3
3732
            fi
3733
          fi
3734
        fi
3735
      done
3736
    done
3737
    ;;
3738
esac
3739
 
3740
done
3741
IFS=$as_save_IFS
3742
 
3743
rm -rf conftest.one conftest.two conftest.dir
3744
 
3745
fi
3746
  if test "${ac_cv_path_install+set}" = set; then
3747
    INSTALL=$ac_cv_path_install
3748
  else
3749
    # As a last resort, use the slow shell script.  Don't cache a
3750
    # value for INSTALL within a source directory, because that will
3751
    # break other packages using the cache if that directory is
3752
    # removed, or if the value is a relative name.
3753
    INSTALL=$ac_install_sh
3754
  fi
3755
fi
3756
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3757
$as_echo "$INSTALL" >&6; }
3758
 
3759
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3760
# It thinks the first close brace ends the variable substitution.
3761
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3762
 
3763
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3764
 
3765
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3766
 
3767
 
3768
# Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13.  */
3769
ac_given_INSTALL=$INSTALL
3770
 
3771
 
3772
{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3773
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3774
    # Check whether --enable-maintainer-mode was given.
3775
if test "${enable_maintainer_mode+set}" = set; then
3776
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3777
else
3778
  USE_MAINTAINER_MODE=no
3779
fi
3780
 
3781
  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3782
$as_echo "$USE_MAINTAINER_MODE" >&6; }
3783
   if test $USE_MAINTAINER_MODE = yes; then
3784
  MAINTAINER_MODE_TRUE=
3785
  MAINTAINER_MODE_FALSE='#'
3786
else
3787
  MAINTAINER_MODE_TRUE='#'
3788
  MAINTAINER_MODE_FALSE=
3789
fi
3790
 
3791
  MAINT=$MAINTAINER_MODE_TRUE
3792
 
3793
 
3794
# By default we simply use the C compiler to build assembly code.
3795
 
3796
test "${CCAS+set}" = set || CCAS=$CC
3797
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3798
 
3799
 
3800
 
3801
 
3802
# We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
3803
# at least currently, we never actually build a program, so we never
3804
# need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
3805
# fails, because we are probably configuring with a cross compiler
3806
# which can't create executables.  So we include AC_EXEEXT to keep
3807
# automake happy, but we don't execute it, since we don't care about
3808
# the result.
3809
if false; then
3810
 
3811
  dummy_var=1
3812
fi
3813
 
3814
. ${newlib_basedir}/configure.host
3815
 
3816
newlib_cflags="${newlib_cflags} -fno-builtin"
3817
 
3818
NEWLIB_CFLAGS=${newlib_cflags}
3819
 
3820
 
3821
LDFLAGS=${ldflags}
3822
 
3823
 
3824
 if test x${newlib_elix_level} = x0; then
3825
  ELIX_LEVEL_0_TRUE=
3826
  ELIX_LEVEL_0_FALSE='#'
3827
else
3828
  ELIX_LEVEL_0_TRUE='#'
3829
  ELIX_LEVEL_0_FALSE=
3830
fi
3831
 
3832
 if test x${newlib_elix_level} = x1; then
3833
  ELIX_LEVEL_1_TRUE=
3834
  ELIX_LEVEL_1_FALSE='#'
3835
else
3836
  ELIX_LEVEL_1_TRUE='#'
3837
  ELIX_LEVEL_1_FALSE=
3838
fi
3839
 
3840
 if test x${newlib_elix_level} = x2; then
3841
  ELIX_LEVEL_2_TRUE=
3842
  ELIX_LEVEL_2_FALSE='#'
3843
else
3844
  ELIX_LEVEL_2_TRUE='#'
3845
  ELIX_LEVEL_2_FALSE=
3846
fi
3847
 
3848
 if test x${newlib_elix_level} = x3; then
3849
  ELIX_LEVEL_3_TRUE=
3850
  ELIX_LEVEL_3_FALSE='#'
3851
else
3852
  ELIX_LEVEL_3_TRUE='#'
3853
  ELIX_LEVEL_3_FALSE=
3854
fi
3855
 
3856
 if test x${newlib_elix_level} = x4; then
3857
  ELIX_LEVEL_4_TRUE=
3858
  ELIX_LEVEL_4_FALSE='#'
3859
else
3860
  ELIX_LEVEL_4_TRUE='#'
3861
  ELIX_LEVEL_4_FALSE=
3862
fi
3863
 
3864
 
3865
 if test x${use_libtool} = xyes; then
3866
  USE_LIBTOOL_TRUE=
3867
  USE_LIBTOOL_FALSE='#'
3868
else
3869
  USE_LIBTOOL_TRUE='#'
3870
  USE_LIBTOOL_FALSE=
3871
fi
3872
 
3873
 
3874
# Hard-code OBJEXT.  Normally it is set by AC_OBJEXT, but we
3875
# use oext, which is set in configure.host based on the target platform.
3876
OBJEXT=${oext}
3877
 
3878
 
3879
 
3880
 
3881
 
3882
 
3883
 
3884
 
3885
 
3886
 
3887
 
3888
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3889
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3890
if test "${ac_cv_path_SED+set}" = set; then
3891
  $as_echo_n "(cached) " >&6
3892
else
3893
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3894
     for ac_i in 1 2 3 4 5 6 7; do
3895
       ac_script="$ac_script$as_nl$ac_script"
3896
     done
3897
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3898
     $as_unset ac_script || ac_script=
3899
     if test -z "$SED"; then
3900
  ac_path_SED_found=false
3901
  # Loop through the user's path and test for each of PROGNAME-LIST
3902
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903
for as_dir in $PATH
3904
do
3905
  IFS=$as_save_IFS
3906
  test -z "$as_dir" && as_dir=.
3907
  for ac_prog in sed gsed; do
3908
    for ac_exec_ext in '' $ac_executable_extensions; do
3909
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3910
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3911
# Check for GNU ac_path_SED and select it if it is found.
3912
  # Check for GNU $ac_path_SED
3913
case `"$ac_path_SED" --version 2>&1` in
3914
*GNU*)
3915
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3916
*)
3917
  ac_count=0
3918
  $as_echo_n 0123456789 >"conftest.in"
3919
  while :
3920
  do
3921
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3922
    mv "conftest.tmp" "conftest.in"
3923
    cp "conftest.in" "conftest.nl"
3924
    $as_echo '' >> "conftest.nl"
3925
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3926
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3927
    ac_count=`expr $ac_count + 1`
3928
    if test $ac_count -gt ${ac_path_SED_max-0}; then
3929
      # Best one so far, save it but keep looking for a better one
3930
      ac_cv_path_SED="$ac_path_SED"
3931
      ac_path_SED_max=$ac_count
3932
    fi
3933
    # 10*(2^10) chars as input seems more than enough
3934
    test $ac_count -gt 10 && break
3935
  done
3936
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3937
esac
3938
 
3939
      $ac_path_SED_found && break 3
3940
    done
3941
  done
3942
done
3943
IFS=$as_save_IFS
3944
  if test -z "$ac_cv_path_SED"; then
3945
    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3946
$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3947
   { (exit 1); exit 1; }; }
3948
  fi
3949
else
3950
  ac_cv_path_SED=$SED
3951
fi
3952
 
3953
fi
3954
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3955
$as_echo "$ac_cv_path_SED" >&6; }
3956
 SED="$ac_cv_path_SED"
3957
  rm -f conftest.sed
3958
 
3959
test -z "$SED" && SED=sed
3960
Xsed="$SED -e 1s/^X//"
3961
 
3962
 
3963
 
3964
 
3965
 
3966
 
3967
 
3968
 
3969
 
3970
 
3971
 
3972
if test "${use_libtool}" = "yes"; then
3973
enable_win32_dll=yes
3974
 
3975
case $host in
3976
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
3977
  if test -n "$ac_tool_prefix"; then
3978
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3979
set dummy ${ac_tool_prefix}as; ac_word=$2
3980
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3981
$as_echo_n "checking for $ac_word... " >&6; }
3982
if test "${ac_cv_prog_AS+set}" = set; then
3983
  $as_echo_n "(cached) " >&6
3984
else
3985
  if test -n "$AS"; then
3986
  ac_cv_prog_AS="$AS" # Let the user override the test.
3987
else
3988
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989
for as_dir in $PATH
3990
do
3991
  IFS=$as_save_IFS
3992
  test -z "$as_dir" && as_dir=.
3993
  for ac_exec_ext in '' $ac_executable_extensions; do
3994
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3995
    ac_cv_prog_AS="${ac_tool_prefix}as"
3996
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3997
    break 2
3998
  fi
3999
done
4000
done
4001
IFS=$as_save_IFS
4002
 
4003
fi
4004
fi
4005
AS=$ac_cv_prog_AS
4006
if test -n "$AS"; then
4007
  { $as_echo "$as_me:$LINENO: result: $AS" >&5
4008
$as_echo "$AS" >&6; }
4009
else
4010
  { $as_echo "$as_me:$LINENO: result: no" >&5
4011
$as_echo "no" >&6; }
4012
fi
4013
 
4014
 
4015
fi
4016
if test -z "$ac_cv_prog_AS"; then
4017
  ac_ct_AS=$AS
4018
  # Extract the first word of "as", so it can be a program name with args.
4019
set dummy as; ac_word=$2
4020
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4021
$as_echo_n "checking for $ac_word... " >&6; }
4022
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4023
  $as_echo_n "(cached) " >&6
4024
else
4025
  if test -n "$ac_ct_AS"; then
4026
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4027
else
4028
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029
for as_dir in $PATH
4030
do
4031
  IFS=$as_save_IFS
4032
  test -z "$as_dir" && as_dir=.
4033
  for ac_exec_ext in '' $ac_executable_extensions; do
4034
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4035
    ac_cv_prog_ac_ct_AS="as"
4036
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4037
    break 2
4038
  fi
4039
done
4040
done
4041
IFS=$as_save_IFS
4042
 
4043
fi
4044
fi
4045
ac_ct_AS=$ac_cv_prog_ac_ct_AS
4046
if test -n "$ac_ct_AS"; then
4047
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4048
$as_echo "$ac_ct_AS" >&6; }
4049
else
4050
  { $as_echo "$as_me:$LINENO: result: no" >&5
4051
$as_echo "no" >&6; }
4052
fi
4053
 
4054
  if test "x$ac_ct_AS" = x; then
4055
    AS="false"
4056
  else
4057
    case $cross_compiling:$ac_tool_warned in
4058
yes:)
4059
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4060
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4061
ac_tool_warned=yes ;;
4062
esac
4063
    AS=$ac_ct_AS
4064
  fi
4065
else
4066
  AS="$ac_cv_prog_AS"
4067
fi
4068
 
4069
  if test -n "$ac_tool_prefix"; then
4070
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4071
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4072
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4073
$as_echo_n "checking for $ac_word... " >&6; }
4074
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4075
  $as_echo_n "(cached) " >&6
4076
else
4077
  if test -n "$DLLTOOL"; then
4078
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4079
else
4080
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4081
for as_dir in $PATH
4082
do
4083
  IFS=$as_save_IFS
4084
  test -z "$as_dir" && as_dir=.
4085
  for ac_exec_ext in '' $ac_executable_extensions; do
4086
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4087
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4088
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4089
    break 2
4090
  fi
4091
done
4092
done
4093
IFS=$as_save_IFS
4094
 
4095
fi
4096
fi
4097
DLLTOOL=$ac_cv_prog_DLLTOOL
4098
if test -n "$DLLTOOL"; then
4099
  { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4100
$as_echo "$DLLTOOL" >&6; }
4101
else
4102
  { $as_echo "$as_me:$LINENO: result: no" >&5
4103
$as_echo "no" >&6; }
4104
fi
4105
 
4106
 
4107
fi
4108
if test -z "$ac_cv_prog_DLLTOOL"; then
4109
  ac_ct_DLLTOOL=$DLLTOOL
4110
  # Extract the first word of "dlltool", so it can be a program name with args.
4111
set dummy dlltool; ac_word=$2
4112
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4113
$as_echo_n "checking for $ac_word... " >&6; }
4114
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4115
  $as_echo_n "(cached) " >&6
4116
else
4117
  if test -n "$ac_ct_DLLTOOL"; then
4118
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4119
else
4120
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121
for as_dir in $PATH
4122
do
4123
  IFS=$as_save_IFS
4124
  test -z "$as_dir" && as_dir=.
4125
  for ac_exec_ext in '' $ac_executable_extensions; do
4126
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4127
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4128
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4129
    break 2
4130
  fi
4131
done
4132
done
4133
IFS=$as_save_IFS
4134
 
4135
fi
4136
fi
4137
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4138
if test -n "$ac_ct_DLLTOOL"; then
4139
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4140
$as_echo "$ac_ct_DLLTOOL" >&6; }
4141
else
4142
  { $as_echo "$as_me:$LINENO: result: no" >&5
4143
$as_echo "no" >&6; }
4144
fi
4145
 
4146
  if test "x$ac_ct_DLLTOOL" = x; then
4147
    DLLTOOL="false"
4148
  else
4149
    case $cross_compiling:$ac_tool_warned in
4150
yes:)
4151
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4152
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4153
ac_tool_warned=yes ;;
4154
esac
4155
    DLLTOOL=$ac_ct_DLLTOOL
4156
  fi
4157
else
4158
  DLLTOOL="$ac_cv_prog_DLLTOOL"
4159
fi
4160
 
4161
  if test -n "$ac_tool_prefix"; then
4162
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4163
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4164
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4165
$as_echo_n "checking for $ac_word... " >&6; }
4166
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4167
  $as_echo_n "(cached) " >&6
4168
else
4169
  if test -n "$OBJDUMP"; then
4170
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4171
else
4172
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173
for as_dir in $PATH
4174
do
4175
  IFS=$as_save_IFS
4176
  test -z "$as_dir" && as_dir=.
4177
  for ac_exec_ext in '' $ac_executable_extensions; do
4178
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4179
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4180
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4181
    break 2
4182
  fi
4183
done
4184
done
4185
IFS=$as_save_IFS
4186
 
4187
fi
4188
fi
4189
OBJDUMP=$ac_cv_prog_OBJDUMP
4190
if test -n "$OBJDUMP"; then
4191
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4192
$as_echo "$OBJDUMP" >&6; }
4193
else
4194
  { $as_echo "$as_me:$LINENO: result: no" >&5
4195
$as_echo "no" >&6; }
4196
fi
4197
 
4198
 
4199
fi
4200
if test -z "$ac_cv_prog_OBJDUMP"; then
4201
  ac_ct_OBJDUMP=$OBJDUMP
4202
  # Extract the first word of "objdump", so it can be a program name with args.
4203
set dummy objdump; ac_word=$2
4204
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4205
$as_echo_n "checking for $ac_word... " >&6; }
4206
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4207
  $as_echo_n "(cached) " >&6
4208
else
4209
  if test -n "$ac_ct_OBJDUMP"; then
4210
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4211
else
4212
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213
for as_dir in $PATH
4214
do
4215
  IFS=$as_save_IFS
4216
  test -z "$as_dir" && as_dir=.
4217
  for ac_exec_ext in '' $ac_executable_extensions; do
4218
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4219
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4220
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4221
    break 2
4222
  fi
4223
done
4224
done
4225
IFS=$as_save_IFS
4226
 
4227
fi
4228
fi
4229
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4230
if test -n "$ac_ct_OBJDUMP"; then
4231
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4232
$as_echo "$ac_ct_OBJDUMP" >&6; }
4233
else
4234
  { $as_echo "$as_me:$LINENO: result: no" >&5
4235
$as_echo "no" >&6; }
4236
fi
4237
 
4238
  if test "x$ac_ct_OBJDUMP" = x; then
4239
    OBJDUMP="false"
4240
  else
4241
    case $cross_compiling:$ac_tool_warned in
4242
yes:)
4243
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4244
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4245
ac_tool_warned=yes ;;
4246
esac
4247
    OBJDUMP=$ac_ct_OBJDUMP
4248
  fi
4249
else
4250
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4251
fi
4252
 
4253
  ;;
4254
esac
4255
 
4256
test -z "$AS" && AS=as
4257
 
4258
 
4259
 
4260
 
4261
 
4262
test -z "$DLLTOOL" && DLLTOOL=dlltool
4263
 
4264
 
4265
 
4266
 
4267
 
4268
test -z "$OBJDUMP" && OBJDUMP=objdump
4269
 
4270
 
4271
 
4272
 
4273
 
4274
 
4275
 
4276
case `pwd` in
4277
  *\ * | *\     *)
4278
    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4279
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4280
esac
4281
 
4282
 
4283
 
4284
macro_version='2.2.6'
4285
macro_revision='1.3012'
4286
 
4287
 
4288
 
4289
 
4290
 
4291
 
4292
 
4293
 
4294
 
4295
 
4296
 
4297
 
4298
 
4299
ltmain="$ac_aux_dir/ltmain.sh"
4300
 
4301
ac_ext=c
4302
ac_cpp='$CPP $CPPFLAGS'
4303
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4304
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4305
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4306
if test -n "$ac_tool_prefix"; then
4307
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4308
set dummy ${ac_tool_prefix}gcc; ac_word=$2
4309
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4310
$as_echo_n "checking for $ac_word... " >&6; }
4311
if test "${ac_cv_prog_CC+set}" = set; then
4312
  $as_echo_n "(cached) " >&6
4313
else
4314
  if test -n "$CC"; then
4315
  ac_cv_prog_CC="$CC" # Let the user override the test.
4316
else
4317
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318
for as_dir in $PATH
4319
do
4320
  IFS=$as_save_IFS
4321
  test -z "$as_dir" && as_dir=.
4322
  for ac_exec_ext in '' $ac_executable_extensions; do
4323
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4324
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4325
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4326
    break 2
4327
  fi
4328
done
4329
done
4330
IFS=$as_save_IFS
4331
 
4332
fi
4333
fi
4334
CC=$ac_cv_prog_CC
4335
if test -n "$CC"; then
4336
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4337
$as_echo "$CC" >&6; }
4338
else
4339
  { $as_echo "$as_me:$LINENO: result: no" >&5
4340
$as_echo "no" >&6; }
4341
fi
4342
 
4343
 
4344
fi
4345
if test -z "$ac_cv_prog_CC"; then
4346
  ac_ct_CC=$CC
4347
  # Extract the first word of "gcc", so it can be a program name with args.
4348
set dummy gcc; ac_word=$2
4349
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4350
$as_echo_n "checking for $ac_word... " >&6; }
4351
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4352
  $as_echo_n "(cached) " >&6
4353
else
4354
  if test -n "$ac_ct_CC"; then
4355
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4356
else
4357
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358
for as_dir in $PATH
4359
do
4360
  IFS=$as_save_IFS
4361
  test -z "$as_dir" && as_dir=.
4362
  for ac_exec_ext in '' $ac_executable_extensions; do
4363
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4364
    ac_cv_prog_ac_ct_CC="gcc"
4365
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4366
    break 2
4367
  fi
4368
done
4369
done
4370
IFS=$as_save_IFS
4371
 
4372
fi
4373
fi
4374
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4375
if test -n "$ac_ct_CC"; then
4376
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4377
$as_echo "$ac_ct_CC" >&6; }
4378
else
4379
  { $as_echo "$as_me:$LINENO: result: no" >&5
4380
$as_echo "no" >&6; }
4381
fi
4382
 
4383
  if test "x$ac_ct_CC" = x; then
4384
    CC=""
4385
  else
4386
    case $cross_compiling:$ac_tool_warned in
4387
yes:)
4388
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4389
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4390
ac_tool_warned=yes ;;
4391
esac
4392
    CC=$ac_ct_CC
4393
  fi
4394
else
4395
  CC="$ac_cv_prog_CC"
4396
fi
4397
 
4398
if test -z "$CC"; then
4399
          if test -n "$ac_tool_prefix"; then
4400
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4401
set dummy ${ac_tool_prefix}cc; ac_word=$2
4402
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4403
$as_echo_n "checking for $ac_word... " >&6; }
4404
if test "${ac_cv_prog_CC+set}" = set; then
4405
  $as_echo_n "(cached) " >&6
4406
else
4407
  if test -n "$CC"; then
4408
  ac_cv_prog_CC="$CC" # Let the user override the test.
4409
else
4410
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411
for as_dir in $PATH
4412
do
4413
  IFS=$as_save_IFS
4414
  test -z "$as_dir" && as_dir=.
4415
  for ac_exec_ext in '' $ac_executable_extensions; do
4416
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4417
    ac_cv_prog_CC="${ac_tool_prefix}cc"
4418
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4419
    break 2
4420
  fi
4421
done
4422
done
4423
IFS=$as_save_IFS
4424
 
4425
fi
4426
fi
4427
CC=$ac_cv_prog_CC
4428
if test -n "$CC"; then
4429
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4430
$as_echo "$CC" >&6; }
4431
else
4432
  { $as_echo "$as_me:$LINENO: result: no" >&5
4433
$as_echo "no" >&6; }
4434
fi
4435
 
4436
 
4437
  fi
4438
fi
4439
if test -z "$CC"; then
4440
  # Extract the first word of "cc", so it can be a program name with args.
4441
set dummy cc; ac_word=$2
4442
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4443
$as_echo_n "checking for $ac_word... " >&6; }
4444
if test "${ac_cv_prog_CC+set}" = set; then
4445
  $as_echo_n "(cached) " >&6
4446
else
4447
  if test -n "$CC"; then
4448
  ac_cv_prog_CC="$CC" # Let the user override the test.
4449
else
4450
  ac_prog_rejected=no
4451
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452
for as_dir in $PATH
4453
do
4454
  IFS=$as_save_IFS
4455
  test -z "$as_dir" && as_dir=.
4456
  for ac_exec_ext in '' $ac_executable_extensions; do
4457
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4458
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4459
       ac_prog_rejected=yes
4460
       continue
4461
     fi
4462
    ac_cv_prog_CC="cc"
4463
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4464
    break 2
4465
  fi
4466
done
4467
done
4468
IFS=$as_save_IFS
4469
 
4470
if test $ac_prog_rejected = yes; then
4471
  # We found a bogon in the path, so make sure we never use it.
4472
  set dummy $ac_cv_prog_CC
4473
  shift
4474
  if test $# != 0; then
4475
    # We chose a different compiler from the bogus one.
4476
    # However, it has the same basename, so the bogon will be chosen
4477
    # first if we set CC to just the basename; use the full file name.
4478
    shift
4479
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4480
  fi
4481
fi
4482
fi
4483
fi
4484
CC=$ac_cv_prog_CC
4485
if test -n "$CC"; then
4486
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4487
$as_echo "$CC" >&6; }
4488
else
4489
  { $as_echo "$as_me:$LINENO: result: no" >&5
4490
$as_echo "no" >&6; }
4491
fi
4492
 
4493
 
4494
fi
4495
if test -z "$CC"; then
4496
  if test -n "$ac_tool_prefix"; then
4497
  for ac_prog in cl.exe
4498
  do
4499
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4500
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4501
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4502
$as_echo_n "checking for $ac_word... " >&6; }
4503
if test "${ac_cv_prog_CC+set}" = set; then
4504
  $as_echo_n "(cached) " >&6
4505
else
4506
  if test -n "$CC"; then
4507
  ac_cv_prog_CC="$CC" # Let the user override the test.
4508
else
4509
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510
for as_dir in $PATH
4511
do
4512
  IFS=$as_save_IFS
4513
  test -z "$as_dir" && as_dir=.
4514
  for ac_exec_ext in '' $ac_executable_extensions; do
4515
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4516
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4517
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4518
    break 2
4519
  fi
4520
done
4521
done
4522
IFS=$as_save_IFS
4523
 
4524
fi
4525
fi
4526
CC=$ac_cv_prog_CC
4527
if test -n "$CC"; then
4528
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4529
$as_echo "$CC" >&6; }
4530
else
4531
  { $as_echo "$as_me:$LINENO: result: no" >&5
4532
$as_echo "no" >&6; }
4533
fi
4534
 
4535
 
4536
    test -n "$CC" && break
4537
  done
4538
fi
4539
if test -z "$CC"; then
4540
  ac_ct_CC=$CC
4541
  for ac_prog in cl.exe
4542
do
4543
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4544
set dummy $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_ac_ct_CC+set}" = set; then
4548
  $as_echo_n "(cached) " >&6
4549
else
4550
  if test -n "$ac_ct_CC"; then
4551
  ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="$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
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4571
if test -n "$ac_ct_CC"; then
4572
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4573
$as_echo "$ac_ct_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 "$ac_ct_CC" && break
4581
done
4582
 
4583
  if test "x$ac_ct_CC" = x; then
4584
    CC=""
4585
  else
4586
    case $cross_compiling:$ac_tool_warned in
4587
yes:)
4588
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4589
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4590
ac_tool_warned=yes ;;
4591
esac
4592
    CC=$ac_ct_CC
4593
  fi
4594
fi
4595
 
4596
fi
4597
 
4598
 
4599
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4600
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4601
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4602
See \`config.log' for more details." >&5
4603
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4604
See \`config.log' for more details." >&2;}
4605
   { (exit 1); exit 1; }; }; }
4606
 
4607
# Provide some information about the compiler.
4608
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4609
set X $ac_compile
4610
ac_compiler=$2
4611
{ (ac_try="$ac_compiler --version >&5"
4612
case "(($ac_try" in
4613
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614
  *) ac_try_echo=$ac_try;;
4615
esac
4616
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4617
$as_echo "$ac_try_echo") >&5
4618
  (eval "$ac_compiler --version >&5") 2>&5
4619
  ac_status=$?
4620
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621
  (exit $ac_status); }
4622
{ (ac_try="$ac_compiler -v >&5"
4623
case "(($ac_try" in
4624
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625
  *) ac_try_echo=$ac_try;;
4626
esac
4627
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4628
$as_echo "$ac_try_echo") >&5
4629
  (eval "$ac_compiler -v >&5") 2>&5
4630
  ac_status=$?
4631
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632
  (exit $ac_status); }
4633
{ (ac_try="$ac_compiler -V >&5"
4634
case "(($ac_try" in
4635
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4636
  *) ac_try_echo=$ac_try;;
4637
esac
4638
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4639
$as_echo "$ac_try_echo") >&5
4640
  (eval "$ac_compiler -V >&5") 2>&5
4641
  ac_status=$?
4642
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643
  (exit $ac_status); }
4644
 
4645
cat >conftest.$ac_ext <<_ACEOF
4646
/* confdefs.h.  */
4647
_ACEOF
4648
cat confdefs.h >>conftest.$ac_ext
4649
cat >>conftest.$ac_ext <<_ACEOF
4650
/* end confdefs.h.  */
4651
 
4652
int
4653
main ()
4654
{
4655
 
4656
  ;
4657
  return 0;
4658
}
4659
_ACEOF
4660
ac_clean_files_save=$ac_clean_files
4661
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4662
# Try to create an executable without -o first, disregard a.out.
4663
# It will help us diagnose broken compilers, and finding out an intuition
4664
# of exeext.
4665
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4666
$as_echo_n "checking for C compiler default output file name... " >&6; }
4667
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4668
 
4669
# The possible output files:
4670
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4671
 
4672
ac_rmfiles=
4673
for ac_file in $ac_files
4674
do
4675
  case $ac_file in
4676
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4677
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4678
  esac
4679
done
4680
rm -f $ac_rmfiles
4681
 
4682
if { (ac_try="$ac_link_default"
4683
case "(($ac_try" in
4684
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4685
  *) ac_try_echo=$ac_try;;
4686
esac
4687
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4688
$as_echo "$ac_try_echo") >&5
4689
  (eval "$ac_link_default") 2>&5
4690
  ac_status=$?
4691
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692
  (exit $ac_status); }; then
4693
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4694
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4695
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4696
# so that the user can short-circuit this test for compilers unknown to
4697
# Autoconf.
4698
for ac_file in $ac_files ''
4699
do
4700
  test -f "$ac_file" || continue
4701
  case $ac_file in
4702
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4703
        ;;
4704
    [ab].out )
4705
        # We found the default executable, but exeext='' is most
4706
        # certainly right.
4707
        break;;
4708
    *.* )
4709
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4710
        then :; else
4711
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4712
        fi
4713
        # We set ac_cv_exeext here because the later test for it is not
4714
        # safe: cross compilers may not add the suffix if given an `-o'
4715
        # argument, so we may need to know it at that point already.
4716
        # Even if this section looks crufty: it has the advantage of
4717
        # actually working.
4718
        break;;
4719
    * )
4720
        break;;
4721
  esac
4722
done
4723
test "$ac_cv_exeext" = no && ac_cv_exeext=
4724
 
4725
else
4726
  ac_file=''
4727
fi
4728
 
4729
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
4730
$as_echo "$ac_file" >&6; }
4731
if test -z "$ac_file"; then
4732
  $as_echo "$as_me: failed program was:" >&5
4733
sed 's/^/| /' conftest.$ac_ext >&5
4734
 
4735
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4736
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4737
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
4738
See \`config.log' for more details." >&5
4739
$as_echo "$as_me: error: C compiler cannot create executables
4740
See \`config.log' for more details." >&2;}
4741
   { (exit 77); exit 77; }; }; }
4742
fi
4743
 
4744
ac_exeext=$ac_cv_exeext
4745
 
4746
# Check that the compiler produces executables we can run.  If not, either
4747
# the compiler is broken, or we cross compile.
4748
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4749
$as_echo_n "checking whether the C compiler works... " >&6; }
4750
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4751
# If not cross compiling, check that we can run a simple program.
4752
if test "$cross_compiling" != yes; then
4753
  if { ac_try='./$ac_file'
4754
  { (case "(($ac_try" in
4755
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4756
  *) ac_try_echo=$ac_try;;
4757
esac
4758
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4759
$as_echo "$ac_try_echo") >&5
4760
  (eval "$ac_try") 2>&5
4761
  ac_status=$?
4762
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763
  (exit $ac_status); }; }; then
4764
    cross_compiling=no
4765
  else
4766
    if test "$cross_compiling" = maybe; then
4767
        cross_compiling=yes
4768
    else
4769
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4770
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4771
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
4772
If you meant to cross compile, use \`--host'.
4773
See \`config.log' for more details." >&5
4774
$as_echo "$as_me: error: cannot run C compiled programs.
4775
If you meant to cross compile, use \`--host'.
4776
See \`config.log' for more details." >&2;}
4777
   { (exit 1); exit 1; }; }; }
4778
    fi
4779
  fi
4780
fi
4781
{ $as_echo "$as_me:$LINENO: result: yes" >&5
4782
$as_echo "yes" >&6; }
4783
 
4784
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4785
ac_clean_files=$ac_clean_files_save
4786
# Check that the compiler produces executables we can run.  If not, either
4787
# the compiler is broken, or we cross compile.
4788
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4789
$as_echo_n "checking whether we are cross compiling... " >&6; }
4790
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
4791
$as_echo "$cross_compiling" >&6; }
4792
 
4793
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
4794
$as_echo_n "checking for suffix of executables... " >&6; }
4795
if { (ac_try="$ac_link"
4796
case "(($ac_try" in
4797
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4798
  *) ac_try_echo=$ac_try;;
4799
esac
4800
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4801
$as_echo "$ac_try_echo") >&5
4802
  (eval "$ac_link") 2>&5
4803
  ac_status=$?
4804
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805
  (exit $ac_status); }; then
4806
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4807
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4808
# work properly (i.e., refer to `conftest.exe'), while it won't with
4809
# `rm'.
4810
for ac_file in conftest.exe conftest conftest.*; do
4811
  test -f "$ac_file" || continue
4812
  case $ac_file in
4813
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4814
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4815
          break;;
4816
    * ) break;;
4817
  esac
4818
done
4819
else
4820
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4821
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4822
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4823
See \`config.log' for more details." >&5
4824
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4825
See \`config.log' for more details." >&2;}
4826
   { (exit 1); exit 1; }; }; }
4827
fi
4828
 
4829
rm -f conftest$ac_cv_exeext
4830
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4831
$as_echo "$ac_cv_exeext" >&6; }
4832
 
4833
rm -f conftest.$ac_ext
4834
EXEEXT=$ac_cv_exeext
4835
ac_exeext=$EXEEXT
4836
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
4837
$as_echo_n "checking for suffix of object files... " >&6; }
4838
if test "${ac_cv_objext+set}" = set; then
4839
  $as_echo_n "(cached) " >&6
4840
else
4841
  cat >conftest.$ac_ext <<_ACEOF
4842
/* confdefs.h.  */
4843
_ACEOF
4844
cat confdefs.h >>conftest.$ac_ext
4845
cat >>conftest.$ac_ext <<_ACEOF
4846
/* end confdefs.h.  */
4847
 
4848
int
4849
main ()
4850
{
4851
 
4852
  ;
4853
  return 0;
4854
}
4855
_ACEOF
4856
rm -f conftest.o conftest.obj
4857
if { (ac_try="$ac_compile"
4858
case "(($ac_try" in
4859
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4860
  *) ac_try_echo=$ac_try;;
4861
esac
4862
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4863
$as_echo "$ac_try_echo") >&5
4864
  (eval "$ac_compile") 2>&5
4865
  ac_status=$?
4866
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867
  (exit $ac_status); }; then
4868
  for ac_file in conftest.o conftest.obj conftest.*; do
4869
  test -f "$ac_file" || continue;
4870
  case $ac_file in
4871
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4872
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4873
       break;;
4874
  esac
4875
done
4876
else
4877
  $as_echo "$as_me: failed program was:" >&5
4878
sed 's/^/| /' conftest.$ac_ext >&5
4879
 
4880
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4881
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4882
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4883
See \`config.log' for more details." >&5
4884
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
4885
See \`config.log' for more details." >&2;}
4886
   { (exit 1); exit 1; }; }; }
4887
fi
4888
 
4889
rm -f conftest.$ac_cv_objext conftest.$ac_ext
4890
fi
4891
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4892
$as_echo "$ac_cv_objext" >&6; }
4893
OBJEXT=$ac_cv_objext
4894
ac_objext=$OBJEXT
4895
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4896
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4897
if test "${ac_cv_c_compiler_gnu+set}" = set; then
4898
  $as_echo_n "(cached) " >&6
4899
else
4900
  cat >conftest.$ac_ext <<_ACEOF
4901
/* confdefs.h.  */
4902
_ACEOF
4903
cat confdefs.h >>conftest.$ac_ext
4904
cat >>conftest.$ac_ext <<_ACEOF
4905
/* end confdefs.h.  */
4906
 
4907
int
4908
main ()
4909
{
4910
#ifndef __GNUC__
4911
       choke me
4912
#endif
4913
 
4914
  ;
4915
  return 0;
4916
}
4917
_ACEOF
4918
rm -f conftest.$ac_objext
4919
if { (ac_try="$ac_compile"
4920
case "(($ac_try" in
4921
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4922
  *) ac_try_echo=$ac_try;;
4923
esac
4924
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4925
$as_echo "$ac_try_echo") >&5
4926
  (eval "$ac_compile") 2>conftest.er1
4927
  ac_status=$?
4928
  grep -v '^ *+' conftest.er1 >conftest.err
4929
  rm -f conftest.er1
4930
  cat conftest.err >&5
4931
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932
  (exit $ac_status); } && {
4933
         test -z "$ac_c_werror_flag" ||
4934
         test ! -s conftest.err
4935
       } && test -s conftest.$ac_objext; then
4936
  ac_compiler_gnu=yes
4937
else
4938
  $as_echo "$as_me: failed program was:" >&5
4939
sed 's/^/| /' conftest.$ac_ext >&5
4940
 
4941
        ac_compiler_gnu=no
4942
fi
4943
 
4944
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4945
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4946
 
4947
fi
4948
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4949
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4950
if test $ac_compiler_gnu = yes; then
4951
  GCC=yes
4952
else
4953
  GCC=
4954
fi
4955
ac_test_CFLAGS=${CFLAGS+set}
4956
ac_save_CFLAGS=$CFLAGS
4957
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4958
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4959
if test "${ac_cv_prog_cc_g+set}" = set; then
4960
  $as_echo_n "(cached) " >&6
4961
else
4962
  ac_save_c_werror_flag=$ac_c_werror_flag
4963
   ac_c_werror_flag=yes
4964
   ac_cv_prog_cc_g=no
4965
   CFLAGS="-g"
4966
   cat >conftest.$ac_ext <<_ACEOF
4967
/* confdefs.h.  */
4968
_ACEOF
4969
cat confdefs.h >>conftest.$ac_ext
4970
cat >>conftest.$ac_ext <<_ACEOF
4971
/* end confdefs.h.  */
4972
 
4973
int
4974
main ()
4975
{
4976
 
4977
  ;
4978
  return 0;
4979
}
4980
_ACEOF
4981
rm -f conftest.$ac_objext
4982
if { (ac_try="$ac_compile"
4983
case "(($ac_try" in
4984
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4985
  *) ac_try_echo=$ac_try;;
4986
esac
4987
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4988
$as_echo "$ac_try_echo") >&5
4989
  (eval "$ac_compile") 2>conftest.er1
4990
  ac_status=$?
4991
  grep -v '^ *+' conftest.er1 >conftest.err
4992
  rm -f conftest.er1
4993
  cat conftest.err >&5
4994
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995
  (exit $ac_status); } && {
4996
         test -z "$ac_c_werror_flag" ||
4997
         test ! -s conftest.err
4998
       } && test -s conftest.$ac_objext; then
4999
  ac_cv_prog_cc_g=yes
5000
else
5001
  $as_echo "$as_me: failed program was:" >&5
5002
sed 's/^/| /' conftest.$ac_ext >&5
5003
 
5004
        CFLAGS=""
5005
      cat >conftest.$ac_ext <<_ACEOF
5006
/* confdefs.h.  */
5007
_ACEOF
5008
cat confdefs.h >>conftest.$ac_ext
5009
cat >>conftest.$ac_ext <<_ACEOF
5010
/* end confdefs.h.  */
5011
 
5012
int
5013
main ()
5014
{
5015
 
5016
  ;
5017
  return 0;
5018
}
5019
_ACEOF
5020
rm -f conftest.$ac_objext
5021
if { (ac_try="$ac_compile"
5022
case "(($ac_try" in
5023
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5024
  *) ac_try_echo=$ac_try;;
5025
esac
5026
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5027
$as_echo "$ac_try_echo") >&5
5028
  (eval "$ac_compile") 2>conftest.er1
5029
  ac_status=$?
5030
  grep -v '^ *+' conftest.er1 >conftest.err
5031
  rm -f conftest.er1
5032
  cat conftest.err >&5
5033
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034
  (exit $ac_status); } && {
5035
         test -z "$ac_c_werror_flag" ||
5036
         test ! -s conftest.err
5037
       } && test -s conftest.$ac_objext; then
5038
  :
5039
else
5040
  $as_echo "$as_me: failed program was:" >&5
5041
sed 's/^/| /' conftest.$ac_ext >&5
5042
 
5043
        ac_c_werror_flag=$ac_save_c_werror_flag
5044
         CFLAGS="-g"
5045
         cat >conftest.$ac_ext <<_ACEOF
5046
/* confdefs.h.  */
5047
_ACEOF
5048
cat confdefs.h >>conftest.$ac_ext
5049
cat >>conftest.$ac_ext <<_ACEOF
5050
/* end confdefs.h.  */
5051
 
5052
int
5053
main ()
5054
{
5055
 
5056
  ;
5057
  return 0;
5058
}
5059
_ACEOF
5060
rm -f conftest.$ac_objext
5061
if { (ac_try="$ac_compile"
5062
case "(($ac_try" in
5063
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5064
  *) ac_try_echo=$ac_try;;
5065
esac
5066
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5067
$as_echo "$ac_try_echo") >&5
5068
  (eval "$ac_compile") 2>conftest.er1
5069
  ac_status=$?
5070
  grep -v '^ *+' conftest.er1 >conftest.err
5071
  rm -f conftest.er1
5072
  cat conftest.err >&5
5073
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074
  (exit $ac_status); } && {
5075
         test -z "$ac_c_werror_flag" ||
5076
         test ! -s conftest.err
5077
       } && test -s conftest.$ac_objext; then
5078
  ac_cv_prog_cc_g=yes
5079
else
5080
  $as_echo "$as_me: failed program was:" >&5
5081
sed 's/^/| /' conftest.$ac_ext >&5
5082
 
5083
 
5084
fi
5085
 
5086
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5087
fi
5088
 
5089
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5090
fi
5091
 
5092
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5093
   ac_c_werror_flag=$ac_save_c_werror_flag
5094
fi
5095
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5096
$as_echo "$ac_cv_prog_cc_g" >&6; }
5097
if test "$ac_test_CFLAGS" = set; then
5098
  CFLAGS=$ac_save_CFLAGS
5099
elif test $ac_cv_prog_cc_g = yes; then
5100
  if test "$GCC" = yes; then
5101
    CFLAGS="-g -O2"
5102
  else
5103
    CFLAGS="-g"
5104
  fi
5105
else
5106
  if test "$GCC" = yes; then
5107
    CFLAGS="-O2"
5108
  else
5109
    CFLAGS=
5110
  fi
5111
fi
5112
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5113
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5114
if test "${ac_cv_prog_cc_c89+set}" = set; then
5115
  $as_echo_n "(cached) " >&6
5116
else
5117
  ac_cv_prog_cc_c89=no
5118
ac_save_CC=$CC
5119
cat >conftest.$ac_ext <<_ACEOF
5120
/* confdefs.h.  */
5121
_ACEOF
5122
cat confdefs.h >>conftest.$ac_ext
5123
cat >>conftest.$ac_ext <<_ACEOF
5124
/* end confdefs.h.  */
5125
#include 
5126
#include 
5127
#include 
5128
#include 
5129
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5130
struct buf { int x; };
5131
FILE * (*rcsopen) (struct buf *, struct stat *, int);
5132
static char *e (p, i)
5133
     char **p;
5134
     int i;
5135
{
5136
  return p[i];
5137
}
5138
static char *f (char * (*g) (char **, int), char **p, ...)
5139
{
5140
  char *s;
5141
  va_list v;
5142
  va_start (v,p);
5143
  s = g (p, va_arg (v,int));
5144
  va_end (v);
5145
  return s;
5146
}
5147
 
5148
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5149
   function prototypes and stuff, but not '\xHH' hex character constants.
5150
   These don't provoke an error unfortunately, instead are silently treated
5151
   as 'x'.  The following induces an error, until -std is added to get
5152
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5153
   array size at least.  It's necessary to write '\x00'==0 to get something
5154
   that's true only with -std.  */
5155
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5156
 
5157
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5158
   inside strings and character constants.  */
5159
#define FOO(x) 'x'
5160
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5161
 
5162
int test (int i, double x);
5163
struct s1 {int (*f) (int a);};
5164
struct s2 {int (*f) (double a);};
5165
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5166
int argc;
5167
char **argv;
5168
int
5169
main ()
5170
{
5171
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5172
  ;
5173
  return 0;
5174
}
5175
_ACEOF
5176
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5177
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5178
do
5179
  CC="$ac_save_CC $ac_arg"
5180
  rm -f conftest.$ac_objext
5181
if { (ac_try="$ac_compile"
5182
case "(($ac_try" in
5183
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5184
  *) ac_try_echo=$ac_try;;
5185
esac
5186
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5187
$as_echo "$ac_try_echo") >&5
5188
  (eval "$ac_compile") 2>conftest.er1
5189
  ac_status=$?
5190
  grep -v '^ *+' conftest.er1 >conftest.err
5191
  rm -f conftest.er1
5192
  cat conftest.err >&5
5193
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194
  (exit $ac_status); } && {
5195
         test -z "$ac_c_werror_flag" ||
5196
         test ! -s conftest.err
5197
       } && test -s conftest.$ac_objext; then
5198
  ac_cv_prog_cc_c89=$ac_arg
5199
else
5200
  $as_echo "$as_me: failed program was:" >&5
5201
sed 's/^/| /' conftest.$ac_ext >&5
5202
 
5203
 
5204
fi
5205
 
5206
rm -f core conftest.err conftest.$ac_objext
5207
  test "x$ac_cv_prog_cc_c89" != "xno" && break
5208
done
5209
rm -f conftest.$ac_ext
5210
CC=$ac_save_CC
5211
 
5212
fi
5213
# AC_CACHE_VAL
5214
case "x$ac_cv_prog_cc_c89" in
5215
  x)
5216
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
5217
$as_echo "none needed" >&6; } ;;
5218
  xno)
5219
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5220
$as_echo "unsupported" >&6; } ;;
5221
  *)
5222
    CC="$CC $ac_cv_prog_cc_c89"
5223
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5224
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5225
esac
5226
 
5227
 
5228
ac_ext=c
5229
ac_cpp='$CPP $CPPFLAGS'
5230
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5231
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5232
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5233
 
5234
depcc="$CC"   am_compiler_list=
5235
 
5236
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5237
$as_echo_n "checking dependency style of $depcc... " >&6; }
5238
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5239
  $as_echo_n "(cached) " >&6
5240
else
5241
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5242
  # We make a subdir and do the tests there.  Otherwise we can end up
5243
  # making bogus files that we don't know about and never remove.  For
5244
  # instance it was reported that on HP-UX the gcc test will end up
5245
  # making a dummy file named `D' -- because `-MD' means `put the output
5246
  # in D'.
5247
  mkdir conftest.dir
5248
  # Copy depcomp to subdir because otherwise we won't find it if we're
5249
  # using a relative directory.
5250
  cp "$am_depcomp" conftest.dir
5251
  cd conftest.dir
5252
  # We will build objects and dependencies in a subdirectory because
5253
  # it helps to detect inapplicable dependency modes.  For instance
5254
  # both Tru64's cc and ICC support -MD to output dependencies as a
5255
  # side effect of compilation, but ICC will put the dependencies in
5256
  # the current directory while Tru64 will put them in the object
5257
  # directory.
5258
  mkdir sub
5259
 
5260
  am_cv_CC_dependencies_compiler_type=none
5261
  if test "$am_compiler_list" = ""; then
5262
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5263
  fi
5264
  am__universal=false
5265
  case " $depcc " in #(
5266
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5267
     esac
5268
 
5269
  for depmode in $am_compiler_list; do
5270
    # Setup a source with many dependencies, because some compilers
5271
    # like to wrap large dependency lists on column 80 (with \), and
5272
    # we should not choose a depcomp mode which is confused by this.
5273
    #
5274
    # We need to recreate these files for each test, as the compiler may
5275
    # overwrite some of them when testing with obscure command lines.
5276
    # This happens at least with the AIX C compiler.
5277
    : > sub/conftest.c
5278
    for i in 1 2 3 4 5 6; do
5279
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5280
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5281
      # Solaris 8's {/usr,}/bin/sh.
5282
      touch sub/conftst$i.h
5283
    done
5284
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5285
 
5286
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5287
    # mode.  It turns out that the SunPro C++ compiler does not properly
5288
    # handle `-M -o', and we need to detect this.  Also, some Intel
5289
    # versions had trouble with output in subdirs
5290
    am__obj=sub/conftest.${OBJEXT-o}
5291
    am__minus_obj="-o $am__obj"
5292
    case $depmode in
5293
    gcc)
5294
      # This depmode causes a compiler race in universal mode.
5295
      test "$am__universal" = false || continue
5296
      ;;
5297
    nosideeffect)
5298
      # after this tag, mechanisms are not by side-effect, so they'll
5299
      # only be used when explicitly requested
5300
      if test "x$enable_dependency_tracking" = xyes; then
5301
        continue
5302
      else
5303
        break
5304
      fi
5305
      ;;
5306
    msvisualcpp | msvcmsys)
5307
      # This compiler won't grok `-c -o', but also, the minuso test has
5308
      # not run yet.  These depmodes are late enough in the game, and
5309
      # so weak that their functioning should not be impacted.
5310
      am__obj=conftest.${OBJEXT-o}
5311
      am__minus_obj=
5312
      ;;
5313
    none) break ;;
5314
    esac
5315
    if depmode=$depmode \
5316
       source=sub/conftest.c object=$am__obj \
5317
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5318
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5319
         >/dev/null 2>conftest.err &&
5320
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5321
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5322
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5323
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5324
      # icc doesn't choke on unknown options, it will just issue warnings
5325
      # or remarks (even with -Werror).  So we grep stderr for any message
5326
      # that says an option was ignored or not supported.
5327
      # When given -MP, icc 7.0 and 7.1 complain thusly:
5328
      #   icc: Command line warning: ignoring option '-M'; no argument required
5329
      # The diagnosis changed in icc 8.0:
5330
      #   icc: Command line remark: option '-MP' not supported
5331
      if (grep 'ignoring option' conftest.err ||
5332
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5333
        am_cv_CC_dependencies_compiler_type=$depmode
5334
        break
5335
      fi
5336
    fi
5337
  done
5338
 
5339
  cd ..
5340
  rm -rf conftest.dir
5341
else
5342
  am_cv_CC_dependencies_compiler_type=none
5343
fi
5344
 
5345
fi
5346
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5347
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5348
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5349
 
5350
 if
5351
  test "x$enable_dependency_tracking" != xno \
5352
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5353
  am__fastdepCC_TRUE=
5354
  am__fastdepCC_FALSE='#'
5355
else
5356
  am__fastdepCC_TRUE='#'
5357
  am__fastdepCC_FALSE=
5358
fi
5359
 
5360
 
5361
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5362
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5363
if test "${ac_cv_path_GREP+set}" = set; then
5364
  $as_echo_n "(cached) " >&6
5365
else
5366
  if test -z "$GREP"; then
5367
  ac_path_GREP_found=false
5368
  # Loop through the user's path and test for each of PROGNAME-LIST
5369
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5371
do
5372
  IFS=$as_save_IFS
5373
  test -z "$as_dir" && as_dir=.
5374
  for ac_prog in grep ggrep; do
5375
    for ac_exec_ext in '' $ac_executable_extensions; do
5376
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5377
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5378
# Check for GNU ac_path_GREP and select it if it is found.
5379
  # Check for GNU $ac_path_GREP
5380
case `"$ac_path_GREP" --version 2>&1` in
5381
*GNU*)
5382
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5383
*)
5384
  ac_count=0
5385
  $as_echo_n 0123456789 >"conftest.in"
5386
  while :
5387
  do
5388
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5389
    mv "conftest.tmp" "conftest.in"
5390
    cp "conftest.in" "conftest.nl"
5391
    $as_echo 'GREP' >> "conftest.nl"
5392
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5393
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5394
    ac_count=`expr $ac_count + 1`
5395
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5396
      # Best one so far, save it but keep looking for a better one
5397
      ac_cv_path_GREP="$ac_path_GREP"
5398
      ac_path_GREP_max=$ac_count
5399
    fi
5400
    # 10*(2^10) chars as input seems more than enough
5401
    test $ac_count -gt 10 && break
5402
  done
5403
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5404
esac
5405
 
5406
      $ac_path_GREP_found && break 3
5407
    done
5408
  done
5409
done
5410
IFS=$as_save_IFS
5411
  if test -z "$ac_cv_path_GREP"; then
5412
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5413
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5414
   { (exit 1); exit 1; }; }
5415
  fi
5416
else
5417
  ac_cv_path_GREP=$GREP
5418
fi
5419
 
5420
fi
5421
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5422
$as_echo "$ac_cv_path_GREP" >&6; }
5423
 GREP="$ac_cv_path_GREP"
5424
 
5425
 
5426
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
5427
$as_echo_n "checking for egrep... " >&6; }
5428
if test "${ac_cv_path_EGREP+set}" = set; then
5429
  $as_echo_n "(cached) " >&6
5430
else
5431
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5432
   then ac_cv_path_EGREP="$GREP -E"
5433
   else
5434
     if test -z "$EGREP"; then
5435
  ac_path_EGREP_found=false
5436
  # Loop through the user's path and test for each of PROGNAME-LIST
5437
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5438
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5439
do
5440
  IFS=$as_save_IFS
5441
  test -z "$as_dir" && as_dir=.
5442
  for ac_prog in egrep; do
5443
    for ac_exec_ext in '' $ac_executable_extensions; do
5444
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5445
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5446
# Check for GNU ac_path_EGREP and select it if it is found.
5447
  # Check for GNU $ac_path_EGREP
5448
case `"$ac_path_EGREP" --version 2>&1` in
5449
*GNU*)
5450
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5451
*)
5452
  ac_count=0
5453
  $as_echo_n 0123456789 >"conftest.in"
5454
  while :
5455
  do
5456
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5457
    mv "conftest.tmp" "conftest.in"
5458
    cp "conftest.in" "conftest.nl"
5459
    $as_echo 'EGREP' >> "conftest.nl"
5460
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5461
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5462
    ac_count=`expr $ac_count + 1`
5463
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5464
      # Best one so far, save it but keep looking for a better one
5465
      ac_cv_path_EGREP="$ac_path_EGREP"
5466
      ac_path_EGREP_max=$ac_count
5467
    fi
5468
    # 10*(2^10) chars as input seems more than enough
5469
    test $ac_count -gt 10 && break
5470
  done
5471
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5472
esac
5473
 
5474
      $ac_path_EGREP_found && break 3
5475
    done
5476
  done
5477
done
5478
IFS=$as_save_IFS
5479
  if test -z "$ac_cv_path_EGREP"; then
5480
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5481
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5482
   { (exit 1); exit 1; }; }
5483
  fi
5484
else
5485
  ac_cv_path_EGREP=$EGREP
5486
fi
5487
 
5488
   fi
5489
fi
5490
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5491
$as_echo "$ac_cv_path_EGREP" >&6; }
5492
 EGREP="$ac_cv_path_EGREP"
5493
 
5494
 
5495
{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5496
$as_echo_n "checking for fgrep... " >&6; }
5497
if test "${ac_cv_path_FGREP+set}" = set; then
5498
  $as_echo_n "(cached) " >&6
5499
else
5500
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5501
   then ac_cv_path_FGREP="$GREP -F"
5502
   else
5503
     if test -z "$FGREP"; then
5504
  ac_path_FGREP_found=false
5505
  # Loop through the user's path and test for each of PROGNAME-LIST
5506
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5508
do
5509
  IFS=$as_save_IFS
5510
  test -z "$as_dir" && as_dir=.
5511
  for ac_prog in fgrep; do
5512
    for ac_exec_ext in '' $ac_executable_extensions; do
5513
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5514
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5515
# Check for GNU ac_path_FGREP and select it if it is found.
5516
  # Check for GNU $ac_path_FGREP
5517
case `"$ac_path_FGREP" --version 2>&1` in
5518
*GNU*)
5519
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5520
*)
5521
  ac_count=0
5522
  $as_echo_n 0123456789 >"conftest.in"
5523
  while :
5524
  do
5525
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5526
    mv "conftest.tmp" "conftest.in"
5527
    cp "conftest.in" "conftest.nl"
5528
    $as_echo 'FGREP' >> "conftest.nl"
5529
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5530
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5531
    ac_count=`expr $ac_count + 1`
5532
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5533
      # Best one so far, save it but keep looking for a better one
5534
      ac_cv_path_FGREP="$ac_path_FGREP"
5535
      ac_path_FGREP_max=$ac_count
5536
    fi
5537
    # 10*(2^10) chars as input seems more than enough
5538
    test $ac_count -gt 10 && break
5539
  done
5540
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5541
esac
5542
 
5543
      $ac_path_FGREP_found && break 3
5544
    done
5545
  done
5546
done
5547
IFS=$as_save_IFS
5548
  if test -z "$ac_cv_path_FGREP"; then
5549
    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5550
$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5551
   { (exit 1); exit 1; }; }
5552
  fi
5553
else
5554
  ac_cv_path_FGREP=$FGREP
5555
fi
5556
 
5557
   fi
5558
fi
5559
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5560
$as_echo "$ac_cv_path_FGREP" >&6; }
5561
 FGREP="$ac_cv_path_FGREP"
5562
 
5563
 
5564
test -z "$GREP" && GREP=grep
5565
 
5566
 
5567
 
5568
 
5569
 
5570
 
5571
 
5572
 
5573
 
5574
 
5575
 
5576
 
5577
 
5578
 
5579
 
5580
 
5581
 
5582
 
5583
 
5584
# Check whether --with-gnu-ld was given.
5585
if test "${with_gnu_ld+set}" = set; then
5586
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5587
else
5588
  with_gnu_ld=no
5589
fi
5590
 
5591
ac_prog=ld
5592
if test "$GCC" = yes; then
5593
  # Check if gcc -print-prog-name=ld gives a path.
5594
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5595
$as_echo_n "checking for ld used by $CC... " >&6; }
5596
  case $host in
5597
  *-*-mingw*)
5598
    # gcc leaves a trailing carriage return which upsets mingw
5599
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5600
  *)
5601
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5602
  esac
5603
  case $ac_prog in
5604
    # Accept absolute paths.
5605
    [\\/]* | ?:[\\/]*)
5606
      re_direlt='/[^/][^/]*/\.\./'
5607
      # Canonicalize the pathname of ld
5608
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5609
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5610
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5611
      done
5612
      test -z "$LD" && LD="$ac_prog"
5613
      ;;
5614
  "")
5615
    # If it fails, then pretend we aren't using GCC.
5616
    ac_prog=ld
5617
    ;;
5618
  *)
5619
    # If it is relative, then search for the first ld in PATH.
5620
    with_gnu_ld=unknown
5621
    ;;
5622
  esac
5623
elif test "$with_gnu_ld" = yes; then
5624
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5625
$as_echo_n "checking for GNU ld... " >&6; }
5626
else
5627
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5628
$as_echo_n "checking for non-GNU ld... " >&6; }
5629
fi
5630
if test "${lt_cv_path_LD+set}" = set; then
5631
  $as_echo_n "(cached) " >&6
5632
else
5633
  if test -z "$LD"; then
5634
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5635
  for ac_dir in $PATH; do
5636
    IFS="$lt_save_ifs"
5637
    test -z "$ac_dir" && ac_dir=.
5638
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5639
      lt_cv_path_LD="$ac_dir/$ac_prog"
5640
      # Check to see if the program is GNU ld.  I'd rather use --version,
5641
      # but apparently some variants of GNU ld only accept -v.
5642
      # Break only if it was the GNU/non-GNU ld that we prefer.
5643
      case `"$lt_cv_path_LD" -v 2>&1 
5644
      *GNU* | *'with BFD'*)
5645
        test "$with_gnu_ld" != no && break
5646
        ;;
5647
      *)
5648
        test "$with_gnu_ld" != yes && break
5649
        ;;
5650
      esac
5651
    fi
5652
  done
5653
  IFS="$lt_save_ifs"
5654
else
5655
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5656
fi
5657
fi
5658
 
5659
LD="$lt_cv_path_LD"
5660
if test -n "$LD"; then
5661
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
5662
$as_echo "$LD" >&6; }
5663
else
5664
  { $as_echo "$as_me:$LINENO: result: no" >&5
5665
$as_echo "no" >&6; }
5666
fi
5667
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5668
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5669
   { (exit 1); exit 1; }; }
5670
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5671
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5672
if test "${lt_cv_prog_gnu_ld+set}" = set; then
5673
  $as_echo_n "(cached) " >&6
5674
else
5675
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5676
case `$LD -v 2>&1 
5677
*GNU* | *'with BFD'*)
5678
  lt_cv_prog_gnu_ld=yes
5679
  ;;
5680
*)
5681
  lt_cv_prog_gnu_ld=no
5682
  ;;
5683
esac
5684
fi
5685
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5686
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5687
with_gnu_ld=$lt_cv_prog_gnu_ld
5688
 
5689
 
5690
 
5691
 
5692
 
5693
 
5694
 
5695
 
5696
 
5697
{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5698
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5699
if test "${lt_cv_path_NM+set}" = set; then
5700
  $as_echo_n "(cached) " >&6
5701
else
5702
  if test -n "$NM"; then
5703
  # Let the user override the test.
5704
  lt_cv_path_NM="$NM"
5705
else
5706
  lt_nm_to_check="${ac_tool_prefix}nm"
5707
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5708
    lt_nm_to_check="$lt_nm_to_check nm"
5709
  fi
5710
  for lt_tmp_nm in $lt_nm_to_check; do
5711
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5712
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5713
      IFS="$lt_save_ifs"
5714
      test -z "$ac_dir" && ac_dir=.
5715
      tmp_nm="$ac_dir/$lt_tmp_nm"
5716
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5717
        # Check to see if the nm accepts a BSD-compat flag.
5718
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5719
        #   nm: unknown option "B" ignored
5720
        # Tru64's nm complains that /dev/null is an invalid object file
5721
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5722
        */dev/null* | *'Invalid file or object type'*)
5723
          lt_cv_path_NM="$tmp_nm -B"
5724
          break
5725
          ;;
5726
        *)
5727
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5728
          */dev/null*)
5729
            lt_cv_path_NM="$tmp_nm -p"
5730
            break
5731
            ;;
5732
          *)
5733
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5734
            continue # so that we can try to find one that supports BSD flags
5735
            ;;
5736
          esac
5737
          ;;
5738
        esac
5739
      fi
5740
    done
5741
    IFS="$lt_save_ifs"
5742
  done
5743
  : ${lt_cv_path_NM=no}
5744
fi
5745
fi
5746
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5747
$as_echo "$lt_cv_path_NM" >&6; }
5748
if test "$lt_cv_path_NM" != "no"; then
5749
  NM="$lt_cv_path_NM"
5750
else
5751
  # Didn't find any BSD compatible name lister, look for dumpbin.
5752
  if test -n "$ac_tool_prefix"; then
5753
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5754
  do
5755
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5756
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5757
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5758
$as_echo_n "checking for $ac_word... " >&6; }
5759
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5760
  $as_echo_n "(cached) " >&6
5761
else
5762
  if test -n "$DUMPBIN"; then
5763
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5764
else
5765
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766
for as_dir in $PATH
5767
do
5768
  IFS=$as_save_IFS
5769
  test -z "$as_dir" && as_dir=.
5770
  for ac_exec_ext in '' $ac_executable_extensions; do
5771
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5772
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5773
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5774
    break 2
5775
  fi
5776
done
5777
done
5778
IFS=$as_save_IFS
5779
 
5780
fi
5781
fi
5782
DUMPBIN=$ac_cv_prog_DUMPBIN
5783
if test -n "$DUMPBIN"; then
5784
  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5785
$as_echo "$DUMPBIN" >&6; }
5786
else
5787
  { $as_echo "$as_me:$LINENO: result: no" >&5
5788
$as_echo "no" >&6; }
5789
fi
5790
 
5791
 
5792
    test -n "$DUMPBIN" && break
5793
  done
5794
fi
5795
if test -z "$DUMPBIN"; then
5796
  ac_ct_DUMPBIN=$DUMPBIN
5797
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5798
do
5799
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5800
set dummy $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_ac_ct_DUMPBIN+set}" = set; then
5804
  $as_echo_n "(cached) " >&6
5805
else
5806
  if test -n "$ac_ct_DUMPBIN"; then
5807
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_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_ac_ct_DUMPBIN="$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
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5827
if test -n "$ac_ct_DUMPBIN"; then
5828
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5829
$as_echo "$ac_ct_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 "$ac_ct_DUMPBIN" && break
5837
done
5838
 
5839
  if test "x$ac_ct_DUMPBIN" = x; then
5840
    DUMPBIN=":"
5841
  else
5842
    case $cross_compiling:$ac_tool_warned in
5843
yes:)
5844
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5845
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5846
ac_tool_warned=yes ;;
5847
esac
5848
    DUMPBIN=$ac_ct_DUMPBIN
5849
  fi
5850
fi
5851
 
5852
 
5853
  if test "$DUMPBIN" != ":"; then
5854
    NM="$DUMPBIN"
5855
  fi
5856
fi
5857
test -z "$NM" && NM=nm
5858
 
5859
 
5860
 
5861
 
5862
 
5863
 
5864
{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5865
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5866
if test "${lt_cv_nm_interface+set}" = set; then
5867
  $as_echo_n "(cached) " >&6
5868
else
5869
  lt_cv_nm_interface="BSD nm"
5870
  echo "int some_variable = 0;" > conftest.$ac_ext
5871
  (eval echo "\"\$as_me:5871: $ac_compile\"" >&5)
5872
  (eval "$ac_compile" 2>conftest.err)
5873
  cat conftest.err >&5
5874
  (eval echo "\"\$as_me:5874: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5875
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5876
  cat conftest.err >&5
5877
  (eval echo "\"\$as_me:5877: output\"" >&5)
5878
  cat conftest.out >&5
5879
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5880
    lt_cv_nm_interface="MS dumpbin"
5881
  fi
5882
  rm -f conftest*
5883
fi
5884
{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5885
$as_echo "$lt_cv_nm_interface" >&6; }
5886
 
5887
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5888
$as_echo_n "checking whether ln -s works... " >&6; }
5889
LN_S=$as_ln_s
5890
if test "$LN_S" = "ln -s"; then
5891
  { $as_echo "$as_me:$LINENO: result: yes" >&5
5892
$as_echo "yes" >&6; }
5893
else
5894
  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5895
$as_echo "no, using $LN_S" >&6; }
5896
fi
5897
 
5898
# find the maximum length of command line arguments
5899
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5900
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5901
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5902
  $as_echo_n "(cached) " >&6
5903
else
5904
    i=0
5905
  teststring="ABCD"
5906
 
5907
  case $build_os in
5908
  msdosdjgpp*)
5909
    # On DJGPP, this test can blow up pretty badly due to problems in libc
5910
    # (any single argument exceeding 2000 bytes causes a buffer overrun
5911
    # during glob expansion).  Even if it were fixed, the result of this
5912
    # check would be larger than it should be.
5913
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5914
    ;;
5915
 
5916
  gnu*)
5917
    # Under GNU Hurd, this test is not required because there is
5918
    # no limit to the length of command line arguments.
5919
    # Libtool will interpret -1 as no limit whatsoever
5920
    lt_cv_sys_max_cmd_len=-1;
5921
    ;;
5922
 
5923
  cygwin* | mingw* | cegcc*)
5924
    # On Win9x/ME, this test blows up -- it succeeds, but takes
5925
    # about 5 minutes as the teststring grows exponentially.
5926
    # Worse, since 9x/ME are not pre-emptively multitasking,
5927
    # you end up with a "frozen" computer, even though with patience
5928
    # the test eventually succeeds (with a max line length of 256k).
5929
    # Instead, let's just punt: use the minimum linelength reported by
5930
    # all of the supported platforms: 8192 (on NT/2K/XP).
5931
    lt_cv_sys_max_cmd_len=8192;
5932
    ;;
5933
 
5934
  amigaos*)
5935
    # On AmigaOS with pdksh, this test takes hours, literally.
5936
    # So we just punt and use a minimum line length of 8192.
5937
    lt_cv_sys_max_cmd_len=8192;
5938
    ;;
5939
 
5940
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5941
    # This has been around since 386BSD, at least.  Likely further.
5942
    if test -x /sbin/sysctl; then
5943
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5944
    elif test -x /usr/sbin/sysctl; then
5945
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5946
    else
5947
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5948
    fi
5949
    # And add a safety zone
5950
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5951
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5952
    ;;
5953
 
5954
  interix*)
5955
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5956
    lt_cv_sys_max_cmd_len=196608
5957
    ;;
5958
 
5959
  osf*)
5960
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5961
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5962
    # nice to cause kernel panics so lets avoid the loop below.
5963
    # First set a reasonable default.
5964
    lt_cv_sys_max_cmd_len=16384
5965
    #
5966
    if test -x /sbin/sysconfig; then
5967
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5968
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5969
      esac
5970
    fi
5971
    ;;
5972
  sco3.2v5*)
5973
    lt_cv_sys_max_cmd_len=102400
5974
    ;;
5975
  sysv5* | sco5v6* | sysv4.2uw2*)
5976
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5977
    if test -n "$kargmax"; then
5978
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5979
    else
5980
      lt_cv_sys_max_cmd_len=32768
5981
    fi
5982
    ;;
5983
  *)
5984
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5985
    if test -n "$lt_cv_sys_max_cmd_len"; then
5986
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5987
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5988
    else
5989
      # Make teststring a little bigger before we do anything with it.
5990
      # a 1K string should be a reasonable start.
5991
      for i in 1 2 3 4 5 6 7 8 ; do
5992
        teststring=$teststring$teststring
5993
      done
5994
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5995
      # If test is not a shell built-in, we'll probably end up computing a
5996
      # maximum length that is only half of the actual maximum length, but
5997
      # we can't tell.
5998
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5999
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6000
              test $i != 17 # 1/2 MB should be enough
6001
      do
6002
        i=`expr $i + 1`
6003
        teststring=$teststring$teststring
6004
      done
6005
      # Only check the string length outside the loop.
6006
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6007
      teststring=
6008
      # Add a significant safety factor because C++ compilers can tack on
6009
      # massive amounts of additional arguments before passing them to the
6010
      # linker.  It appears as though 1/2 is a usable value.
6011
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6012
    fi
6013
    ;;
6014
  esac
6015
 
6016
fi
6017
 
6018
if test -n $lt_cv_sys_max_cmd_len ; then
6019
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6020
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6021
else
6022
  { $as_echo "$as_me:$LINENO: result: none" >&5
6023
$as_echo "none" >&6; }
6024
fi
6025
max_cmd_len=$lt_cv_sys_max_cmd_len
6026
 
6027
 
6028
 
6029
 
6030
 
6031
 
6032
: ${CP="cp -f"}
6033
: ${MV="mv -f"}
6034
: ${RM="rm -f"}
6035
 
6036
{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6037
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6038
# Try some XSI features
6039
xsi_shell=no
6040
( _lt_dummy="a/b/c"
6041
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6042
      = c,a/b,, \
6043
    && eval 'test $(( 1 + 1 )) -eq 2 \
6044
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6045
  && xsi_shell=yes
6046
{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6047
$as_echo "$xsi_shell" >&6; }
6048
 
6049
 
6050
{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6051
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6052
lt_shell_append=no
6053
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6054
    >/dev/null 2>&1 \
6055
  && lt_shell_append=yes
6056
{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6057
$as_echo "$lt_shell_append" >&6; }
6058
 
6059
 
6060
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6061
  lt_unset=unset
6062
else
6063
  lt_unset=false
6064
fi
6065
 
6066
 
6067
 
6068
 
6069
 
6070
# test EBCDIC or ASCII
6071
case `echo X|tr X '\101'` in
6072
 A) # ASCII based system
6073
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6074
  lt_SP2NL='tr \040 \012'
6075
  lt_NL2SP='tr \015\012 \040\040'
6076
  ;;
6077
 *) # EBCDIC based system
6078
  lt_SP2NL='tr \100 \n'
6079
  lt_NL2SP='tr \r\n \100\100'
6080
  ;;
6081
esac
6082
 
6083
 
6084
 
6085
 
6086
 
6087
 
6088
 
6089
 
6090
 
6091
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6092
$as_echo_n "checking for $LD option to reload object files... " >&6; }
6093
if test "${lt_cv_ld_reload_flag+set}" = set; then
6094
  $as_echo_n "(cached) " >&6
6095
else
6096
  lt_cv_ld_reload_flag='-r'
6097
fi
6098
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6099
$as_echo "$lt_cv_ld_reload_flag" >&6; }
6100
reload_flag=$lt_cv_ld_reload_flag
6101
case $reload_flag in
6102
"" | " "*) ;;
6103
*) reload_flag=" $reload_flag" ;;
6104
esac
6105
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6106
case $host_os in
6107
  darwin*)
6108
    if test "$GCC" = yes; then
6109
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6110
    else
6111
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6112
    fi
6113
    ;;
6114
esac
6115
 
6116
 
6117
 
6118
 
6119
 
6120
 
6121
 
6122
 
6123
 
6124
if test -n "$ac_tool_prefix"; then
6125
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6126
set dummy ${ac_tool_prefix}objdump; ac_word=$2
6127
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6128
$as_echo_n "checking for $ac_word... " >&6; }
6129
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6130
  $as_echo_n "(cached) " >&6
6131
else
6132
  if test -n "$OBJDUMP"; then
6133
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6134
else
6135
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136
for as_dir in $PATH
6137
do
6138
  IFS=$as_save_IFS
6139
  test -z "$as_dir" && as_dir=.
6140
  for ac_exec_ext in '' $ac_executable_extensions; do
6141
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6142
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6143
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6144
    break 2
6145
  fi
6146
done
6147
done
6148
IFS=$as_save_IFS
6149
 
6150
fi
6151
fi
6152
OBJDUMP=$ac_cv_prog_OBJDUMP
6153
if test -n "$OBJDUMP"; then
6154
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6155
$as_echo "$OBJDUMP" >&6; }
6156
else
6157
  { $as_echo "$as_me:$LINENO: result: no" >&5
6158
$as_echo "no" >&6; }
6159
fi
6160
 
6161
 
6162
fi
6163
if test -z "$ac_cv_prog_OBJDUMP"; then
6164
  ac_ct_OBJDUMP=$OBJDUMP
6165
  # Extract the first word of "objdump", so it can be a program name with args.
6166
set dummy objdump; ac_word=$2
6167
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6168
$as_echo_n "checking for $ac_word... " >&6; }
6169
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6170
  $as_echo_n "(cached) " >&6
6171
else
6172
  if test -n "$ac_ct_OBJDUMP"; then
6173
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6174
else
6175
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176
for as_dir in $PATH
6177
do
6178
  IFS=$as_save_IFS
6179
  test -z "$as_dir" && as_dir=.
6180
  for ac_exec_ext in '' $ac_executable_extensions; do
6181
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6182
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6183
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6184
    break 2
6185
  fi
6186
done
6187
done
6188
IFS=$as_save_IFS
6189
 
6190
fi
6191
fi
6192
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6193
if test -n "$ac_ct_OBJDUMP"; then
6194
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6195
$as_echo "$ac_ct_OBJDUMP" >&6; }
6196
else
6197
  { $as_echo "$as_me:$LINENO: result: no" >&5
6198
$as_echo "no" >&6; }
6199
fi
6200
 
6201
  if test "x$ac_ct_OBJDUMP" = x; then
6202
    OBJDUMP="false"
6203
  else
6204
    case $cross_compiling:$ac_tool_warned in
6205
yes:)
6206
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6207
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6208
ac_tool_warned=yes ;;
6209
esac
6210
    OBJDUMP=$ac_ct_OBJDUMP
6211
  fi
6212
else
6213
  OBJDUMP="$ac_cv_prog_OBJDUMP"
6214
fi
6215
 
6216
test -z "$OBJDUMP" && OBJDUMP=objdump
6217
 
6218
 
6219
 
6220
 
6221
 
6222
 
6223
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6224
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6225
if test "${lt_cv_deplibs_check_method+set}" = set; then
6226
  $as_echo_n "(cached) " >&6
6227
else
6228
  lt_cv_file_magic_cmd='$MAGIC_CMD'
6229
lt_cv_file_magic_test_file=
6230
lt_cv_deplibs_check_method='unknown'
6231
# Need to set the preceding variable on all platforms that support
6232
# interlibrary dependencies.
6233
# 'none' -- dependencies not supported.
6234
# `unknown' -- same as none, but documents that we really don't know.
6235
# 'pass_all' -- all dependencies passed with no checks.
6236
# 'test_compile' -- check by making test program.
6237
# 'file_magic [[regex]]' -- check by looking for files in library path
6238
# which responds to the $file_magic_cmd with a given extended regex.
6239
# If you have `file' or equivalent on your system and you're not sure
6240
# whether `pass_all' will *always* work, you probably want this one.
6241
 
6242
case $host_os in
6243
aix[4-9]*)
6244
  lt_cv_deplibs_check_method=pass_all
6245
  ;;
6246
 
6247
beos*)
6248
  lt_cv_deplibs_check_method=pass_all
6249
  ;;
6250
 
6251
bsdi[45]*)
6252
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6253
  lt_cv_file_magic_cmd='/usr/bin/file -L'
6254
  lt_cv_file_magic_test_file=/shlib/libc.so
6255
  ;;
6256
 
6257
cygwin*)
6258
  # func_win32_libid is a shell function defined in ltmain.sh
6259
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6260
  lt_cv_file_magic_cmd='func_win32_libid'
6261
  ;;
6262
 
6263
mingw* | pw32*)
6264
  # Base MSYS/MinGW do not provide the 'file' command needed by
6265
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6266
  # unless we find 'file', for example because we are cross-compiling.
6267
  if ( file / ) >/dev/null 2>&1; then
6268
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6269
    lt_cv_file_magic_cmd='func_win32_libid'
6270
  else
6271
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6272
    lt_cv_file_magic_cmd='$OBJDUMP -f'
6273
  fi
6274
  ;;
6275
 
6276
cegcc)
6277
  # use the weaker test based on 'objdump'. See mingw*.
6278
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6279
  lt_cv_file_magic_cmd='$OBJDUMP -f'
6280
  ;;
6281
 
6282
darwin* | rhapsody*)
6283
  lt_cv_deplibs_check_method=pass_all
6284
  ;;
6285
 
6286
freebsd* | dragonfly*)
6287
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6288
    case $host_cpu in
6289
    i*86 )
6290
      # Not sure whether the presence of OpenBSD here was a mistake.
6291
      # Let's accept both of them until this is cleared up.
6292
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6293
      lt_cv_file_magic_cmd=/usr/bin/file
6294
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6295
      ;;
6296
    esac
6297
  else
6298
    lt_cv_deplibs_check_method=pass_all
6299
  fi
6300
  ;;
6301
 
6302
gnu*)
6303
  lt_cv_deplibs_check_method=pass_all
6304
  ;;
6305
 
6306
hpux10.20* | hpux11*)
6307
  lt_cv_file_magic_cmd=/usr/bin/file
6308
  case $host_cpu in
6309
  ia64*)
6310
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6311
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6312
    ;;
6313
  hppa*64*)
6314
    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]'
6315
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6316
    ;;
6317
  *)
6318
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6319
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6320
    ;;
6321
  esac
6322
  ;;
6323
 
6324
interix[3-9]*)
6325
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6326
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6327
  ;;
6328
 
6329
irix5* | irix6* | nonstopux*)
6330
  case $LD in
6331
  *-32|*"-32 ") libmagic=32-bit;;
6332
  *-n32|*"-n32 ") libmagic=N32;;
6333
  *-64|*"-64 ") libmagic=64-bit;;
6334
  *) libmagic=never-match;;
6335
  esac
6336
  lt_cv_deplibs_check_method=pass_all
6337
  ;;
6338
 
6339
# This must be Linux ELF.
6340
linux* | k*bsd*-gnu | kopensolaris*-gnu)
6341
  lt_cv_deplibs_check_method=pass_all
6342
  ;;
6343
 
6344
netbsd*)
6345
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6346
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6347
  else
6348
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6349
  fi
6350
  ;;
6351
 
6352
newos6*)
6353
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6354
  lt_cv_file_magic_cmd=/usr/bin/file
6355
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6356
  ;;
6357
 
6358
*nto* | *qnx*)
6359
  lt_cv_deplibs_check_method=pass_all
6360
  ;;
6361
 
6362
openbsd*)
6363
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6364
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6365
  else
6366
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6367
  fi
6368
  ;;
6369
 
6370
osf3* | osf4* | osf5*)
6371
  lt_cv_deplibs_check_method=pass_all
6372
  ;;
6373
 
6374
rdos*)
6375
  lt_cv_deplibs_check_method=pass_all
6376
  ;;
6377
 
6378
solaris*)
6379
  lt_cv_deplibs_check_method=pass_all
6380
  ;;
6381
 
6382
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6383
  lt_cv_deplibs_check_method=pass_all
6384
  ;;
6385
 
6386
sysv4 | sysv4.3*)
6387
  case $host_vendor in
6388
  motorola)
6389
    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]'
6390
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6391
    ;;
6392
  ncr)
6393
    lt_cv_deplibs_check_method=pass_all
6394
    ;;
6395
  sequent)
6396
    lt_cv_file_magic_cmd='/bin/file'
6397
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6398
    ;;
6399
  sni)
6400
    lt_cv_file_magic_cmd='/bin/file'
6401
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6402
    lt_cv_file_magic_test_file=/lib/libc.so
6403
    ;;
6404
  siemens)
6405
    lt_cv_deplibs_check_method=pass_all
6406
    ;;
6407
  pc)
6408
    lt_cv_deplibs_check_method=pass_all
6409
    ;;
6410
  esac
6411
  ;;
6412
 
6413
tpf*)
6414
  lt_cv_deplibs_check_method=pass_all
6415
  ;;
6416
esac
6417
 
6418
fi
6419
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6420
$as_echo "$lt_cv_deplibs_check_method" >&6; }
6421
file_magic_cmd=$lt_cv_file_magic_cmd
6422
deplibs_check_method=$lt_cv_deplibs_check_method
6423
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6424
 
6425
 
6426
 
6427
 
6428
 
6429
 
6430
 
6431
 
6432
 
6433
 
6434
 
6435
 
6436
if test -n "$ac_tool_prefix"; then
6437
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6438
set dummy ${ac_tool_prefix}ar; ac_word=$2
6439
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6440
$as_echo_n "checking for $ac_word... " >&6; }
6441
if test "${ac_cv_prog_AR+set}" = set; then
6442
  $as_echo_n "(cached) " >&6
6443
else
6444
  if test -n "$AR"; then
6445
  ac_cv_prog_AR="$AR" # Let the user override the test.
6446
else
6447
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448
for as_dir in $PATH
6449
do
6450
  IFS=$as_save_IFS
6451
  test -z "$as_dir" && as_dir=.
6452
  for ac_exec_ext in '' $ac_executable_extensions; do
6453
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6454
    ac_cv_prog_AR="${ac_tool_prefix}ar"
6455
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6456
    break 2
6457
  fi
6458
done
6459
done
6460
IFS=$as_save_IFS
6461
 
6462
fi
6463
fi
6464
AR=$ac_cv_prog_AR
6465
if test -n "$AR"; then
6466
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
6467
$as_echo "$AR" >&6; }
6468
else
6469
  { $as_echo "$as_me:$LINENO: result: no" >&5
6470
$as_echo "no" >&6; }
6471
fi
6472
 
6473
 
6474
fi
6475
if test -z "$ac_cv_prog_AR"; then
6476
  ac_ct_AR=$AR
6477
  # Extract the first word of "ar", so it can be a program name with args.
6478
set dummy ar; ac_word=$2
6479
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6480
$as_echo_n "checking for $ac_word... " >&6; }
6481
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6482
  $as_echo_n "(cached) " >&6
6483
else
6484
  if test -n "$ac_ct_AR"; then
6485
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6486
else
6487
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488
for as_dir in $PATH
6489
do
6490
  IFS=$as_save_IFS
6491
  test -z "$as_dir" && as_dir=.
6492
  for ac_exec_ext in '' $ac_executable_extensions; do
6493
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6494
    ac_cv_prog_ac_ct_AR="ar"
6495
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6496
    break 2
6497
  fi
6498
done
6499
done
6500
IFS=$as_save_IFS
6501
 
6502
fi
6503
fi
6504
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6505
if test -n "$ac_ct_AR"; then
6506
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6507
$as_echo "$ac_ct_AR" >&6; }
6508
else
6509
  { $as_echo "$as_me:$LINENO: result: no" >&5
6510
$as_echo "no" >&6; }
6511
fi
6512
 
6513
  if test "x$ac_ct_AR" = x; then
6514
    AR="false"
6515
  else
6516
    case $cross_compiling:$ac_tool_warned in
6517
yes:)
6518
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6519
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6520
ac_tool_warned=yes ;;
6521
esac
6522
    AR=$ac_ct_AR
6523
  fi
6524
else
6525
  AR="$ac_cv_prog_AR"
6526
fi
6527
 
6528
test -z "$AR" && AR=ar
6529
test -z "$AR_FLAGS" && AR_FLAGS=cru
6530
 
6531
 
6532
 
6533
 
6534
 
6535
 
6536
 
6537
 
6538
 
6539
 
6540
 
6541
if test -n "$ac_tool_prefix"; then
6542
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6543
set dummy ${ac_tool_prefix}strip; ac_word=$2
6544
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6545
$as_echo_n "checking for $ac_word... " >&6; }
6546
if test "${ac_cv_prog_STRIP+set}" = set; then
6547
  $as_echo_n "(cached) " >&6
6548
else
6549
  if test -n "$STRIP"; then
6550
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6551
else
6552
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553
for as_dir in $PATH
6554
do
6555
  IFS=$as_save_IFS
6556
  test -z "$as_dir" && as_dir=.
6557
  for ac_exec_ext in '' $ac_executable_extensions; do
6558
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6559
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6560
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6561
    break 2
6562
  fi
6563
done
6564
done
6565
IFS=$as_save_IFS
6566
 
6567
fi
6568
fi
6569
STRIP=$ac_cv_prog_STRIP
6570
if test -n "$STRIP"; then
6571
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6572
$as_echo "$STRIP" >&6; }
6573
else
6574
  { $as_echo "$as_me:$LINENO: result: no" >&5
6575
$as_echo "no" >&6; }
6576
fi
6577
 
6578
 
6579
fi
6580
if test -z "$ac_cv_prog_STRIP"; then
6581
  ac_ct_STRIP=$STRIP
6582
  # Extract the first word of "strip", so it can be a program name with args.
6583
set dummy strip; ac_word=$2
6584
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6585
$as_echo_n "checking for $ac_word... " >&6; }
6586
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6587
  $as_echo_n "(cached) " >&6
6588
else
6589
  if test -n "$ac_ct_STRIP"; then
6590
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6591
else
6592
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593
for as_dir in $PATH
6594
do
6595
  IFS=$as_save_IFS
6596
  test -z "$as_dir" && as_dir=.
6597
  for ac_exec_ext in '' $ac_executable_extensions; do
6598
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6599
    ac_cv_prog_ac_ct_STRIP="strip"
6600
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6601
    break 2
6602
  fi
6603
done
6604
done
6605
IFS=$as_save_IFS
6606
 
6607
fi
6608
fi
6609
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6610
if test -n "$ac_ct_STRIP"; then
6611
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6612
$as_echo "$ac_ct_STRIP" >&6; }
6613
else
6614
  { $as_echo "$as_me:$LINENO: result: no" >&5
6615
$as_echo "no" >&6; }
6616
fi
6617
 
6618
  if test "x$ac_ct_STRIP" = x; then
6619
    STRIP=":"
6620
  else
6621
    case $cross_compiling:$ac_tool_warned in
6622
yes:)
6623
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6624
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6625
ac_tool_warned=yes ;;
6626
esac
6627
    STRIP=$ac_ct_STRIP
6628
  fi
6629
else
6630
  STRIP="$ac_cv_prog_STRIP"
6631
fi
6632
 
6633
test -z "$STRIP" && STRIP=:
6634
 
6635
 
6636
 
6637
 
6638
 
6639
 
6640
if test -n "$ac_tool_prefix"; then
6641
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6642
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6643
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6644
$as_echo_n "checking for $ac_word... " >&6; }
6645
if test "${ac_cv_prog_RANLIB+set}" = set; then
6646
  $as_echo_n "(cached) " >&6
6647
else
6648
  if test -n "$RANLIB"; then
6649
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6650
else
6651
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652
for as_dir in $PATH
6653
do
6654
  IFS=$as_save_IFS
6655
  test -z "$as_dir" && as_dir=.
6656
  for ac_exec_ext in '' $ac_executable_extensions; do
6657
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6658
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6659
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6660
    break 2
6661
  fi
6662
done
6663
done
6664
IFS=$as_save_IFS
6665
 
6666
fi
6667
fi
6668
RANLIB=$ac_cv_prog_RANLIB
6669
if test -n "$RANLIB"; then
6670
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6671
$as_echo "$RANLIB" >&6; }
6672
else
6673
  { $as_echo "$as_me:$LINENO: result: no" >&5
6674
$as_echo "no" >&6; }
6675
fi
6676
 
6677
 
6678
fi
6679
if test -z "$ac_cv_prog_RANLIB"; then
6680
  ac_ct_RANLIB=$RANLIB
6681
  # Extract the first word of "ranlib", so it can be a program name with args.
6682
set dummy ranlib; ac_word=$2
6683
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6684
$as_echo_n "checking for $ac_word... " >&6; }
6685
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6686
  $as_echo_n "(cached) " >&6
6687
else
6688
  if test -n "$ac_ct_RANLIB"; then
6689
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6690
else
6691
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692
for as_dir in $PATH
6693
do
6694
  IFS=$as_save_IFS
6695
  test -z "$as_dir" && as_dir=.
6696
  for ac_exec_ext in '' $ac_executable_extensions; do
6697
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6698
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6699
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6700
    break 2
6701
  fi
6702
done
6703
done
6704
IFS=$as_save_IFS
6705
 
6706
fi
6707
fi
6708
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6709
if test -n "$ac_ct_RANLIB"; then
6710
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6711
$as_echo "$ac_ct_RANLIB" >&6; }
6712
else
6713
  { $as_echo "$as_me:$LINENO: result: no" >&5
6714
$as_echo "no" >&6; }
6715
fi
6716
 
6717
  if test "x$ac_ct_RANLIB" = x; then
6718
    RANLIB=":"
6719
  else
6720
    case $cross_compiling:$ac_tool_warned in
6721
yes:)
6722
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6723
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6724
ac_tool_warned=yes ;;
6725
esac
6726
    RANLIB=$ac_ct_RANLIB
6727
  fi
6728
else
6729
  RANLIB="$ac_cv_prog_RANLIB"
6730
fi
6731
 
6732
test -z "$RANLIB" && RANLIB=:
6733
 
6734
 
6735
 
6736
 
6737
 
6738
 
6739
# Determine commands to create old-style static archives.
6740
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6741
old_postinstall_cmds='chmod 644 $oldlib'
6742
old_postuninstall_cmds=
6743
 
6744
if test -n "$RANLIB"; then
6745
  case $host_os in
6746
  openbsd*)
6747
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6748
    ;;
6749
  *)
6750
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6751
    ;;
6752
  esac
6753
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6754
fi
6755
 
6756
 
6757
 
6758
 
6759
 
6760
 
6761
 
6762
 
6763
 
6764
 
6765
 
6766
 
6767
 
6768
 
6769
 
6770
 
6771
 
6772
 
6773
 
6774
 
6775
 
6776
 
6777
 
6778
 
6779
 
6780
 
6781
 
6782
 
6783
 
6784
 
6785
 
6786
 
6787
 
6788
 
6789
# If no C compiler was specified, use CC.
6790
LTCC=${LTCC-"$CC"}
6791
 
6792
# If no C compiler flags were specified, use CFLAGS.
6793
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6794
 
6795
# Allow CC to be a program name with arguments.
6796
compiler=$CC
6797
 
6798
 
6799
# Check for command to grab the raw symbol name followed by C symbol from nm.
6800
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6801
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6802
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6803
  $as_echo_n "(cached) " >&6
6804
else
6805
 
6806
# These are sane defaults that work on at least a few old systems.
6807
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6808
 
6809
# Character class describing NM global symbol codes.
6810
symcode='[BCDEGRST]'
6811
 
6812
# Regexp to match symbols that can be accessed directly from C.
6813
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6814
 
6815
# Define system-specific variables.
6816
case $host_os in
6817
aix*)
6818
  symcode='[BCDT]'
6819
  ;;
6820
cygwin* | mingw* | pw32* | cegcc*)
6821
  symcode='[ABCDGISTW]'
6822
  ;;
6823
hpux*)
6824
  if test "$host_cpu" = ia64; then
6825
    symcode='[ABCDEGRST]'
6826
  fi
6827
  ;;
6828
irix* | nonstopux*)
6829
  symcode='[BCDEGRST]'
6830
  ;;
6831
osf*)
6832
  symcode='[BCDEGQRST]'
6833
  ;;
6834
solaris*)
6835
  symcode='[BDRT]'
6836
  ;;
6837
sco3.2v5*)
6838
  symcode='[DT]'
6839
  ;;
6840
sysv4.2uw2*)
6841
  symcode='[DT]'
6842
  ;;
6843
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6844
  symcode='[ABDT]'
6845
  ;;
6846
sysv4)
6847
  symcode='[DFNSTU]'
6848
  ;;
6849
esac
6850
 
6851
# If we're using GNU nm, then use its standard symbol codes.
6852
case `$NM -V 2>&1` in
6853
*GNU* | *'with BFD'*)
6854
  symcode='[ABCDGIRSTW]' ;;
6855
esac
6856
 
6857
# Transform an extracted symbol line into a proper C declaration.
6858
# Some systems (esp. on ia64) link data and code symbols differently,
6859
# so use this general approach.
6860
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6861
 
6862
# Transform an extracted symbol line into symbol name and symbol address
6863
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6864
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'"
6865
 
6866
# Handle CRLF in mingw tool chain
6867
opt_cr=
6868
case $build_os in
6869
mingw*)
6870
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6871
  ;;
6872
esac
6873
 
6874
# Try without a prefix underscore, then with it.
6875
for ac_symprfx in "" "_"; do
6876
 
6877
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6878
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6879
 
6880
  # Write the raw and C identifiers.
6881
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6882
    # Fake it for dumpbin and say T for any non-static function
6883
    # and D for any global variable.
6884
    # Also find C++ and __fastcall symbols from MSVC++,
6885
    # which start with @ or ?.
6886
    lt_cv_sys_global_symbol_pipe="$AWK '"\
6887
"     {last_section=section; section=\$ 3};"\
6888
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6889
"     \$ 0!~/External *\|/{next};"\
6890
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6891
"     {if(hide[section]) next};"\
6892
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6893
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6894
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6895
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6896
"     ' prfx=^$ac_symprfx"
6897
  else
6898
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6899
  fi
6900
 
6901
  # Check to see that the pipe works correctly.
6902
  pipe_works=no
6903
 
6904
  rm -f conftest*
6905
  cat > conftest.$ac_ext <<_LT_EOF
6906
#ifdef __cplusplus
6907
extern "C" {
6908
#endif
6909
char nm_test_var;
6910
void nm_test_func(void);
6911
void nm_test_func(void){}
6912
#ifdef __cplusplus
6913
}
6914
#endif
6915
int main(){nm_test_var='a';nm_test_func();return(0);}
6916
_LT_EOF
6917
 
6918
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6919
  (eval $ac_compile) 2>&5
6920
  ac_status=$?
6921
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922
  (exit $ac_status); }; then
6923
    # Now try to grab the symbols.
6924
    nlist=conftest.nm
6925
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6926
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6927
  ac_status=$?
6928
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929
  (exit $ac_status); } && test -s "$nlist"; then
6930
      # Try sorting and uniquifying the output.
6931
      if sort "$nlist" | uniq > "$nlist"T; then
6932
        mv -f "$nlist"T "$nlist"
6933
      else
6934
        rm -f "$nlist"T
6935
      fi
6936
 
6937
      # Make sure that we snagged all the symbols we need.
6938
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6939
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6940
          cat <<_LT_EOF > conftest.$ac_ext
6941
#ifdef __cplusplus
6942
extern "C" {
6943
#endif
6944
 
6945
_LT_EOF
6946
          # Now generate the symbol file.
6947
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6948
 
6949
          cat <<_LT_EOF >> conftest.$ac_ext
6950
 
6951
/* The mapping between symbol names and symbols.  */
6952
const struct {
6953
  const char *name;
6954
  void       *address;
6955
}
6956
lt__PROGRAM__LTX_preloaded_symbols[] =
6957
{
6958
  { "@PROGRAM@", (void *) 0 },
6959
_LT_EOF
6960
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6961
          cat <<\_LT_EOF >> conftest.$ac_ext
6962
  {0, (void *) 0}
6963
};
6964
 
6965
/* This works around a problem in FreeBSD linker */
6966
#ifdef FREEBSD_WORKAROUND
6967
static const void *lt_preloaded_setup() {
6968
  return lt__PROGRAM__LTX_preloaded_symbols;
6969
}
6970
#endif
6971
 
6972
#ifdef __cplusplus
6973
}
6974
#endif
6975
_LT_EOF
6976
          # Now try linking the two files.
6977
          mv conftest.$ac_objext conftstm.$ac_objext
6978
          lt_save_LIBS="$LIBS"
6979
          lt_save_CFLAGS="$CFLAGS"
6980
          LIBS="conftstm.$ac_objext"
6981
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6982
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6983
  (eval $ac_link) 2>&5
6984
  ac_status=$?
6985
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6987
            pipe_works=yes
6988
          fi
6989
          LIBS="$lt_save_LIBS"
6990
          CFLAGS="$lt_save_CFLAGS"
6991
        else
6992
          echo "cannot find nm_test_func in $nlist" >&5
6993
        fi
6994
      else
6995
        echo "cannot find nm_test_var in $nlist" >&5
6996
      fi
6997
    else
6998
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6999
    fi
7000
  else
7001
    echo "$progname: failed program was:" >&5
7002
    cat conftest.$ac_ext >&5
7003
  fi
7004
  rm -rf conftest* conftst*
7005
 
7006
  # Do not use the global_symbol_pipe unless it works.
7007
  if test "$pipe_works" = yes; then
7008
    break
7009
  else
7010
    lt_cv_sys_global_symbol_pipe=
7011
  fi
7012
done
7013
 
7014
fi
7015
 
7016
if test -z "$lt_cv_sys_global_symbol_pipe"; then
7017
  lt_cv_sys_global_symbol_to_cdecl=
7018
fi
7019
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7020
  { $as_echo "$as_me:$LINENO: result: failed" >&5
7021
$as_echo "failed" >&6; }
7022
else
7023
  { $as_echo "$as_me:$LINENO: result: ok" >&5
7024
$as_echo "ok" >&6; }
7025
fi
7026
 
7027
 
7028
 
7029
 
7030
 
7031
 
7032
 
7033
 
7034
 
7035
 
7036
 
7037
 
7038
 
7039
 
7040
 
7041
 
7042
 
7043
 
7044
 
7045
 
7046
 
7047
 
7048
 
7049
# Check whether --enable-libtool-lock was given.
7050
if test "${enable_libtool_lock+set}" = set; then
7051
  enableval=$enable_libtool_lock;
7052
fi
7053
 
7054
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7055
 
7056
# Some flags need to be propagated to the compiler or linker for good
7057
# libtool support.
7058
case $host in
7059
ia64-*-hpux*)
7060
  # Find out which ABI we are using.
7061
  echo 'int i;' > conftest.$ac_ext
7062
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7063
  (eval $ac_compile) 2>&5
7064
  ac_status=$?
7065
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066
  (exit $ac_status); }; then
7067
    case `/usr/bin/file conftest.$ac_objext` in
7068
      *ELF-32*)
7069
        HPUX_IA64_MODE="32"
7070
        ;;
7071
      *ELF-64*)
7072
        HPUX_IA64_MODE="64"
7073
        ;;
7074
    esac
7075
  fi
7076
  rm -rf conftest*
7077
  ;;
7078
*-*-irix6*)
7079
  # Find out which ABI we are using.
7080
  echo '#line 7080 "configure"' > conftest.$ac_ext
7081
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7082
  (eval $ac_compile) 2>&5
7083
  ac_status=$?
7084
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085
  (exit $ac_status); }; then
7086
    if test "$lt_cv_prog_gnu_ld" = yes; then
7087
      case `/usr/bin/file conftest.$ac_objext` in
7088
        *32-bit*)
7089
          LD="${LD-ld} -melf32bsmip"
7090
          ;;
7091
        *N32*)
7092
          LD="${LD-ld} -melf32bmipn32"
7093
          ;;
7094
        *64-bit*)
7095
          LD="${LD-ld} -melf64bmip"
7096
        ;;
7097
      esac
7098
    else
7099
      case `/usr/bin/file conftest.$ac_objext` in
7100
        *32-bit*)
7101
          LD="${LD-ld} -32"
7102
          ;;
7103
        *N32*)
7104
          LD="${LD-ld} -n32"
7105
          ;;
7106
        *64-bit*)
7107
          LD="${LD-ld} -64"
7108
          ;;
7109
      esac
7110
    fi
7111
  fi
7112
  rm -rf conftest*
7113
  ;;
7114
 
7115
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7116
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7117
  # Find out which ABI we are using.
7118
  echo 'int i;' > conftest.$ac_ext
7119
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7120
  (eval $ac_compile) 2>&5
7121
  ac_status=$?
7122
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123
  (exit $ac_status); }; then
7124
    case `/usr/bin/file conftest.o` in
7125
      *32-bit*)
7126
        case $host in
7127
          x86_64-*kfreebsd*-gnu)
7128
            LD="${LD-ld} -m elf_i386_fbsd"
7129
            ;;
7130
          x86_64-*linux*)
7131
            LD="${LD-ld} -m elf_i386"
7132
            ;;
7133
          ppc64-*linux*|powerpc64-*linux*)
7134
            LD="${LD-ld} -m elf32ppclinux"
7135
            ;;
7136
          s390x-*linux*)
7137
            LD="${LD-ld} -m elf_s390"
7138
            ;;
7139
          sparc64-*linux*)
7140
            LD="${LD-ld} -m elf32_sparc"
7141
            ;;
7142
        esac
7143
        ;;
7144
      *64-bit*)
7145
        case $host in
7146
          x86_64-*kfreebsd*-gnu)
7147
            LD="${LD-ld} -m elf_x86_64_fbsd"
7148
            ;;
7149
          x86_64-*linux*)
7150
            LD="${LD-ld} -m elf_x86_64"
7151
            ;;
7152
          ppc*-*linux*|powerpc*-*linux*)
7153
            LD="${LD-ld} -m elf64ppc"
7154
            ;;
7155
          s390*-*linux*|s390*-*tpf*)
7156
            LD="${LD-ld} -m elf64_s390"
7157
            ;;
7158
          sparc*-*linux*)
7159
            LD="${LD-ld} -m elf64_sparc"
7160
            ;;
7161
        esac
7162
        ;;
7163
    esac
7164
  fi
7165
  rm -rf conftest*
7166
  ;;
7167
 
7168
*-*-sco3.2v5*)
7169
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7170
  SAVE_CFLAGS="$CFLAGS"
7171
  CFLAGS="$CFLAGS -belf"
7172
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7173
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7174
if test "${lt_cv_cc_needs_belf+set}" = set; then
7175
  $as_echo_n "(cached) " >&6
7176
else
7177
  ac_ext=c
7178
ac_cpp='$CPP $CPPFLAGS'
7179
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7180
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7181
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7182
 
7183
     cat >conftest.$ac_ext <<_ACEOF
7184
/* confdefs.h.  */
7185
_ACEOF
7186
cat confdefs.h >>conftest.$ac_ext
7187
cat >>conftest.$ac_ext <<_ACEOF
7188
/* end confdefs.h.  */
7189
 
7190
int
7191
main ()
7192
{
7193
 
7194
  ;
7195
  return 0;
7196
}
7197
_ACEOF
7198
rm -f conftest.$ac_objext conftest$ac_exeext
7199
if { (ac_try="$ac_link"
7200
case "(($ac_try" in
7201
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7202
  *) ac_try_echo=$ac_try;;
7203
esac
7204
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7205
$as_echo "$ac_try_echo") >&5
7206
  (eval "$ac_link") 2>conftest.er1
7207
  ac_status=$?
7208
  grep -v '^ *+' conftest.er1 >conftest.err
7209
  rm -f conftest.er1
7210
  cat conftest.err >&5
7211
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212
  (exit $ac_status); } && {
7213
         test -z "$ac_c_werror_flag" ||
7214
         test ! -s conftest.err
7215
       } && test -s conftest$ac_exeext && {
7216
         test "$cross_compiling" = yes ||
7217
         $as_test_x conftest$ac_exeext
7218
       }; then
7219
  lt_cv_cc_needs_belf=yes
7220
else
7221
  $as_echo "$as_me: failed program was:" >&5
7222
sed 's/^/| /' conftest.$ac_ext >&5
7223
 
7224
        lt_cv_cc_needs_belf=no
7225
fi
7226
 
7227
rm -rf conftest.dSYM
7228
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7229
      conftest$ac_exeext conftest.$ac_ext
7230
     ac_ext=c
7231
ac_cpp='$CPP $CPPFLAGS'
7232
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7233
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7234
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7235
 
7236
fi
7237
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7238
$as_echo "$lt_cv_cc_needs_belf" >&6; }
7239
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7240
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7241
    CFLAGS="$SAVE_CFLAGS"
7242
  fi
7243
  ;;
7244
sparc*-*solaris*)
7245
  # Find out which ABI we are using.
7246
  echo 'int i;' > conftest.$ac_ext
7247
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7248
  (eval $ac_compile) 2>&5
7249
  ac_status=$?
7250
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251
  (exit $ac_status); }; then
7252
    case `/usr/bin/file conftest.o` in
7253
    *64-bit*)
7254
      case $lt_cv_prog_gnu_ld in
7255
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7256
      *)
7257
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7258
          LD="${LD-ld} -64"
7259
        fi
7260
        ;;
7261
      esac
7262
      ;;
7263
    esac
7264
  fi
7265
  rm -rf conftest*
7266
  ;;
7267
esac
7268
 
7269
need_locks="$enable_libtool_lock"
7270
 
7271
 
7272
  case $host_os in
7273
    rhapsody* | darwin*)
7274
    if test -n "$ac_tool_prefix"; then
7275
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7276
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7277
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7278
$as_echo_n "checking for $ac_word... " >&6; }
7279
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7280
  $as_echo_n "(cached) " >&6
7281
else
7282
  if test -n "$DSYMUTIL"; then
7283
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7284
else
7285
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286
for as_dir in $PATH
7287
do
7288
  IFS=$as_save_IFS
7289
  test -z "$as_dir" && as_dir=.
7290
  for ac_exec_ext in '' $ac_executable_extensions; do
7291
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7292
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7293
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7294
    break 2
7295
  fi
7296
done
7297
done
7298
IFS=$as_save_IFS
7299
 
7300
fi
7301
fi
7302
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7303
if test -n "$DSYMUTIL"; then
7304
  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7305
$as_echo "$DSYMUTIL" >&6; }
7306
else
7307
  { $as_echo "$as_me:$LINENO: result: no" >&5
7308
$as_echo "no" >&6; }
7309
fi
7310
 
7311
 
7312
fi
7313
if test -z "$ac_cv_prog_DSYMUTIL"; then
7314
  ac_ct_DSYMUTIL=$DSYMUTIL
7315
  # Extract the first word of "dsymutil", so it can be a program name with args.
7316
set dummy dsymutil; ac_word=$2
7317
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7318
$as_echo_n "checking for $ac_word... " >&6; }
7319
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7320
  $as_echo_n "(cached) " >&6
7321
else
7322
  if test -n "$ac_ct_DSYMUTIL"; then
7323
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7324
else
7325
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326
for as_dir in $PATH
7327
do
7328
  IFS=$as_save_IFS
7329
  test -z "$as_dir" && as_dir=.
7330
  for ac_exec_ext in '' $ac_executable_extensions; do
7331
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7332
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7333
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7334
    break 2
7335
  fi
7336
done
7337
done
7338
IFS=$as_save_IFS
7339
 
7340
fi
7341
fi
7342
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7343
if test -n "$ac_ct_DSYMUTIL"; then
7344
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7345
$as_echo "$ac_ct_DSYMUTIL" >&6; }
7346
else
7347
  { $as_echo "$as_me:$LINENO: result: no" >&5
7348
$as_echo "no" >&6; }
7349
fi
7350
 
7351
  if test "x$ac_ct_DSYMUTIL" = x; then
7352
    DSYMUTIL=":"
7353
  else
7354
    case $cross_compiling:$ac_tool_warned in
7355
yes:)
7356
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7357
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7358
ac_tool_warned=yes ;;
7359
esac
7360
    DSYMUTIL=$ac_ct_DSYMUTIL
7361
  fi
7362
else
7363
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7364
fi
7365
 
7366
    if test -n "$ac_tool_prefix"; then
7367
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7368
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7369
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7370
$as_echo_n "checking for $ac_word... " >&6; }
7371
if test "${ac_cv_prog_NMEDIT+set}" = set; then
7372
  $as_echo_n "(cached) " >&6
7373
else
7374
  if test -n "$NMEDIT"; then
7375
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7376
else
7377
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378
for as_dir in $PATH
7379
do
7380
  IFS=$as_save_IFS
7381
  test -z "$as_dir" && as_dir=.
7382
  for ac_exec_ext in '' $ac_executable_extensions; do
7383
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7384
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7385
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7386
    break 2
7387
  fi
7388
done
7389
done
7390
IFS=$as_save_IFS
7391
 
7392
fi
7393
fi
7394
NMEDIT=$ac_cv_prog_NMEDIT
7395
if test -n "$NMEDIT"; then
7396
  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7397
$as_echo "$NMEDIT" >&6; }
7398
else
7399
  { $as_echo "$as_me:$LINENO: result: no" >&5
7400
$as_echo "no" >&6; }
7401
fi
7402
 
7403
 
7404
fi
7405
if test -z "$ac_cv_prog_NMEDIT"; then
7406
  ac_ct_NMEDIT=$NMEDIT
7407
  # Extract the first word of "nmedit", so it can be a program name with args.
7408
set dummy nmedit; ac_word=$2
7409
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7410
$as_echo_n "checking for $ac_word... " >&6; }
7411
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7412
  $as_echo_n "(cached) " >&6
7413
else
7414
  if test -n "$ac_ct_NMEDIT"; then
7415
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7416
else
7417
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418
for as_dir in $PATH
7419
do
7420
  IFS=$as_save_IFS
7421
  test -z "$as_dir" && as_dir=.
7422
  for ac_exec_ext in '' $ac_executable_extensions; do
7423
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7424
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7425
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7426
    break 2
7427
  fi
7428
done
7429
done
7430
IFS=$as_save_IFS
7431
 
7432
fi
7433
fi
7434
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7435
if test -n "$ac_ct_NMEDIT"; then
7436
  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7437
$as_echo "$ac_ct_NMEDIT" >&6; }
7438
else
7439
  { $as_echo "$as_me:$LINENO: result: no" >&5
7440
$as_echo "no" >&6; }
7441
fi
7442
 
7443
  if test "x$ac_ct_NMEDIT" = x; then
7444
    NMEDIT=":"
7445
  else
7446
    case $cross_compiling:$ac_tool_warned in
7447
yes:)
7448
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7449
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7450
ac_tool_warned=yes ;;
7451
esac
7452
    NMEDIT=$ac_ct_NMEDIT
7453
  fi
7454
else
7455
  NMEDIT="$ac_cv_prog_NMEDIT"
7456
fi
7457
 
7458
    if test -n "$ac_tool_prefix"; then
7459
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7460
set dummy ${ac_tool_prefix}lipo; ac_word=$2
7461
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7462
$as_echo_n "checking for $ac_word... " >&6; }
7463
if test "${ac_cv_prog_LIPO+set}" = set; then
7464
  $as_echo_n "(cached) " >&6
7465
else
7466
  if test -n "$LIPO"; then
7467
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7468
else
7469
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470
for as_dir in $PATH
7471
do
7472
  IFS=$as_save_IFS
7473
  test -z "$as_dir" && as_dir=.
7474
  for ac_exec_ext in '' $ac_executable_extensions; do
7475
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7476
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7477
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7478
    break 2
7479
  fi
7480
done
7481
done
7482
IFS=$as_save_IFS
7483
 
7484
fi
7485
fi
7486
LIPO=$ac_cv_prog_LIPO
7487
if test -n "$LIPO"; then
7488
  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7489
$as_echo "$LIPO" >&6; }
7490
else
7491
  { $as_echo "$as_me:$LINENO: result: no" >&5
7492
$as_echo "no" >&6; }
7493
fi
7494
 
7495
 
7496
fi
7497
if test -z "$ac_cv_prog_LIPO"; then
7498
  ac_ct_LIPO=$LIPO
7499
  # Extract the first word of "lipo", so it can be a program name with args.
7500
set dummy lipo; ac_word=$2
7501
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7502
$as_echo_n "checking for $ac_word... " >&6; }
7503
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7504
  $as_echo_n "(cached) " >&6
7505
else
7506
  if test -n "$ac_ct_LIPO"; then
7507
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7508
else
7509
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510
for as_dir in $PATH
7511
do
7512
  IFS=$as_save_IFS
7513
  test -z "$as_dir" && as_dir=.
7514
  for ac_exec_ext in '' $ac_executable_extensions; do
7515
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7516
    ac_cv_prog_ac_ct_LIPO="lipo"
7517
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7518
    break 2
7519
  fi
7520
done
7521
done
7522
IFS=$as_save_IFS
7523
 
7524
fi
7525
fi
7526
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7527
if test -n "$ac_ct_LIPO"; then
7528
  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7529
$as_echo "$ac_ct_LIPO" >&6; }
7530
else
7531
  { $as_echo "$as_me:$LINENO: result: no" >&5
7532
$as_echo "no" >&6; }
7533
fi
7534
 
7535
  if test "x$ac_ct_LIPO" = x; then
7536
    LIPO=":"
7537
  else
7538
    case $cross_compiling:$ac_tool_warned in
7539
yes:)
7540
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7541
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7542
ac_tool_warned=yes ;;
7543
esac
7544
    LIPO=$ac_ct_LIPO
7545
  fi
7546
else
7547
  LIPO="$ac_cv_prog_LIPO"
7548
fi
7549
 
7550
    if test -n "$ac_tool_prefix"; then
7551
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7552
set dummy ${ac_tool_prefix}otool; ac_word=$2
7553
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7554
$as_echo_n "checking for $ac_word... " >&6; }
7555
if test "${ac_cv_prog_OTOOL+set}" = set; then
7556
  $as_echo_n "(cached) " >&6
7557
else
7558
  if test -n "$OTOOL"; then
7559
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7560
else
7561
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562
for as_dir in $PATH
7563
do
7564
  IFS=$as_save_IFS
7565
  test -z "$as_dir" && as_dir=.
7566
  for ac_exec_ext in '' $ac_executable_extensions; do
7567
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7568
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7569
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7570
    break 2
7571
  fi
7572
done
7573
done
7574
IFS=$as_save_IFS
7575
 
7576
fi
7577
fi
7578
OTOOL=$ac_cv_prog_OTOOL
7579
if test -n "$OTOOL"; then
7580
  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7581
$as_echo "$OTOOL" >&6; }
7582
else
7583
  { $as_echo "$as_me:$LINENO: result: no" >&5
7584
$as_echo "no" >&6; }
7585
fi
7586
 
7587
 
7588
fi
7589
if test -z "$ac_cv_prog_OTOOL"; then
7590
  ac_ct_OTOOL=$OTOOL
7591
  # Extract the first word of "otool", so it can be a program name with args.
7592
set dummy otool; ac_word=$2
7593
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7594
$as_echo_n "checking for $ac_word... " >&6; }
7595
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7596
  $as_echo_n "(cached) " >&6
7597
else
7598
  if test -n "$ac_ct_OTOOL"; then
7599
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7600
else
7601
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602
for as_dir in $PATH
7603
do
7604
  IFS=$as_save_IFS
7605
  test -z "$as_dir" && as_dir=.
7606
  for ac_exec_ext in '' $ac_executable_extensions; do
7607
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7608
    ac_cv_prog_ac_ct_OTOOL="otool"
7609
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7610
    break 2
7611
  fi
7612
done
7613
done
7614
IFS=$as_save_IFS
7615
 
7616
fi
7617
fi
7618
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7619
if test -n "$ac_ct_OTOOL"; then
7620
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7621
$as_echo "$ac_ct_OTOOL" >&6; }
7622
else
7623
  { $as_echo "$as_me:$LINENO: result: no" >&5
7624
$as_echo "no" >&6; }
7625
fi
7626
 
7627
  if test "x$ac_ct_OTOOL" = x; then
7628
    OTOOL=":"
7629
  else
7630
    case $cross_compiling:$ac_tool_warned in
7631
yes:)
7632
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7633
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7634
ac_tool_warned=yes ;;
7635
esac
7636
    OTOOL=$ac_ct_OTOOL
7637
  fi
7638
else
7639
  OTOOL="$ac_cv_prog_OTOOL"
7640
fi
7641
 
7642
    if test -n "$ac_tool_prefix"; then
7643
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7644
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7645
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7646
$as_echo_n "checking for $ac_word... " >&6; }
7647
if test "${ac_cv_prog_OTOOL64+set}" = set; then
7648
  $as_echo_n "(cached) " >&6
7649
else
7650
  if test -n "$OTOOL64"; then
7651
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7652
else
7653
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654
for as_dir in $PATH
7655
do
7656
  IFS=$as_save_IFS
7657
  test -z "$as_dir" && as_dir=.
7658
  for ac_exec_ext in '' $ac_executable_extensions; do
7659
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7660
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7661
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7662
    break 2
7663
  fi
7664
done
7665
done
7666
IFS=$as_save_IFS
7667
 
7668
fi
7669
fi
7670
OTOOL64=$ac_cv_prog_OTOOL64
7671
if test -n "$OTOOL64"; then
7672
  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7673
$as_echo "$OTOOL64" >&6; }
7674
else
7675
  { $as_echo "$as_me:$LINENO: result: no" >&5
7676
$as_echo "no" >&6; }
7677
fi
7678
 
7679
 
7680
fi
7681
if test -z "$ac_cv_prog_OTOOL64"; then
7682
  ac_ct_OTOOL64=$OTOOL64
7683
  # Extract the first word of "otool64", so it can be a program name with args.
7684
set dummy otool64; ac_word=$2
7685
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7686
$as_echo_n "checking for $ac_word... " >&6; }
7687
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7688
  $as_echo_n "(cached) " >&6
7689
else
7690
  if test -n "$ac_ct_OTOOL64"; then
7691
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7692
else
7693
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7694
for as_dir in $PATH
7695
do
7696
  IFS=$as_save_IFS
7697
  test -z "$as_dir" && as_dir=.
7698
  for ac_exec_ext in '' $ac_executable_extensions; do
7699
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7700
    ac_cv_prog_ac_ct_OTOOL64="otool64"
7701
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7702
    break 2
7703
  fi
7704
done
7705
done
7706
IFS=$as_save_IFS
7707
 
7708
fi
7709
fi
7710
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7711
if test -n "$ac_ct_OTOOL64"; then
7712
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7713
$as_echo "$ac_ct_OTOOL64" >&6; }
7714
else
7715
  { $as_echo "$as_me:$LINENO: result: no" >&5
7716
$as_echo "no" >&6; }
7717
fi
7718
 
7719
  if test "x$ac_ct_OTOOL64" = x; then
7720
    OTOOL64=":"
7721
  else
7722
    case $cross_compiling:$ac_tool_warned in
7723
yes:)
7724
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7725
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7726
ac_tool_warned=yes ;;
7727
esac
7728
    OTOOL64=$ac_ct_OTOOL64
7729
  fi
7730
else
7731
  OTOOL64="$ac_cv_prog_OTOOL64"
7732
fi
7733
 
7734
 
7735
 
7736
 
7737
 
7738
 
7739
 
7740
 
7741
 
7742
 
7743
 
7744
 
7745
 
7746
 
7747
 
7748
 
7749
 
7750
 
7751
 
7752
 
7753
 
7754
 
7755
 
7756
 
7757
 
7758
 
7759
 
7760
    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7761
$as_echo_n "checking for -single_module linker flag... " >&6; }
7762
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7763
  $as_echo_n "(cached) " >&6
7764
else
7765
  lt_cv_apple_cc_single_mod=no
7766
      if test -z "${LT_MULTI_MODULE}"; then
7767
        # By default we will add the -single_module flag. You can override
7768
        # by either setting the environment variable LT_MULTI_MODULE
7769
        # non-empty at configure time, or by adding -multi_module to the
7770
        # link flags.
7771
        rm -rf libconftest.dylib*
7772
        echo "int foo(void){return 1;}" > conftest.c
7773
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7774
-dynamiclib -Wl,-single_module conftest.c" >&5
7775
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7776
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7777
        _lt_result=$?
7778
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7779
          lt_cv_apple_cc_single_mod=yes
7780
        else
7781
          cat conftest.err >&5
7782
        fi
7783
        rm -rf libconftest.dylib*
7784
        rm -f conftest.*
7785
      fi
7786
fi
7787
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7788
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7789
    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7790
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7791
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7792
  $as_echo_n "(cached) " >&6
7793
else
7794
  lt_cv_ld_exported_symbols_list=no
7795
      save_LDFLAGS=$LDFLAGS
7796
      echo "_main" > conftest.sym
7797
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7798
      cat >conftest.$ac_ext <<_ACEOF
7799
/* confdefs.h.  */
7800
_ACEOF
7801
cat confdefs.h >>conftest.$ac_ext
7802
cat >>conftest.$ac_ext <<_ACEOF
7803
/* end confdefs.h.  */
7804
 
7805
int
7806
main ()
7807
{
7808
 
7809
  ;
7810
  return 0;
7811
}
7812
_ACEOF
7813
rm -f conftest.$ac_objext conftest$ac_exeext
7814
if { (ac_try="$ac_link"
7815
case "(($ac_try" in
7816
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7817
  *) ac_try_echo=$ac_try;;
7818
esac
7819
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7820
$as_echo "$ac_try_echo") >&5
7821
  (eval "$ac_link") 2>conftest.er1
7822
  ac_status=$?
7823
  grep -v '^ *+' conftest.er1 >conftest.err
7824
  rm -f conftest.er1
7825
  cat conftest.err >&5
7826
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827
  (exit $ac_status); } && {
7828
         test -z "$ac_c_werror_flag" ||
7829
         test ! -s conftest.err
7830
       } && test -s conftest$ac_exeext && {
7831
         test "$cross_compiling" = yes ||
7832
         $as_test_x conftest$ac_exeext
7833
       }; then
7834
  lt_cv_ld_exported_symbols_list=yes
7835
else
7836
  $as_echo "$as_me: failed program was:" >&5
7837
sed 's/^/| /' conftest.$ac_ext >&5
7838
 
7839
        lt_cv_ld_exported_symbols_list=no
7840
fi
7841
 
7842
rm -rf conftest.dSYM
7843
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7844
      conftest$ac_exeext conftest.$ac_ext
7845
        LDFLAGS="$save_LDFLAGS"
7846
 
7847
fi
7848
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7849
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7850
    case $host_os in
7851
    rhapsody* | darwin1.[012])
7852
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7853
    darwin1.*)
7854
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7855
    darwin*) # darwin 5.x on
7856
      # if running on 10.5 or later, the deployment target defaults
7857
      # to the OS version, if on x86, and 10.4, the deployment
7858
      # target defaults to 10.4. Don't you love it?
7859
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7860
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7861
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7862
        10.[012]*)
7863
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7864
        10.*)
7865
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7866
      esac
7867
    ;;
7868
  esac
7869
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7870
      _lt_dar_single_mod='$single_module'
7871
    fi
7872
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7873
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7874
    else
7875
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7876
    fi
7877
    if test "$DSYMUTIL" != ":"; then
7878
      _lt_dsymutil='~$DSYMUTIL $lib || :'
7879
    else
7880
      _lt_dsymutil=
7881
    fi
7882
    ;;
7883
  esac
7884
 
7885
ac_ext=c
7886
ac_cpp='$CPP $CPPFLAGS'
7887
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7888
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7889
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7890
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7891
$as_echo_n "checking how to run the C preprocessor... " >&6; }
7892
# On Suns, sometimes $CPP names a directory.
7893
if test -n "$CPP" && test -d "$CPP"; then
7894
  CPP=
7895
fi
7896
if test -z "$CPP"; then
7897
  if test "${ac_cv_prog_CPP+set}" = set; then
7898
  $as_echo_n "(cached) " >&6
7899
else
7900
      # Double quotes because CPP needs to be expanded
7901
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7902
    do
7903
      ac_preproc_ok=false
7904
for ac_c_preproc_warn_flag in '' yes
7905
do
7906
  # Use a header file that comes with gcc, so configuring glibc
7907
  # with a fresh cross-compiler works.
7908
  # Prefer  to  if __STDC__ is defined, since
7909
  #  exists even on freestanding compilers.
7910
  # On the NeXT, cc -E runs the code through the compiler's parser,
7911
  # not just through cpp. "Syntax error" is here to catch this case.
7912
  cat >conftest.$ac_ext <<_ACEOF
7913
/* confdefs.h.  */
7914
_ACEOF
7915
cat confdefs.h >>conftest.$ac_ext
7916
cat >>conftest.$ac_ext <<_ACEOF
7917
/* end confdefs.h.  */
7918
#ifdef __STDC__
7919
# include 
7920
#else
7921
# include 
7922
#endif
7923
                     Syntax error
7924
_ACEOF
7925
if { (ac_try="$ac_cpp conftest.$ac_ext"
7926
case "(($ac_try" in
7927
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7928
  *) ac_try_echo=$ac_try;;
7929
esac
7930
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7931
$as_echo "$ac_try_echo") >&5
7932
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7933
  ac_status=$?
7934
  grep -v '^ *+' conftest.er1 >conftest.err
7935
  rm -f conftest.er1
7936
  cat conftest.err >&5
7937
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938
  (exit $ac_status); } >/dev/null && {
7939
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7940
         test ! -s conftest.err
7941
       }; then
7942
  :
7943
else
7944
  $as_echo "$as_me: failed program was:" >&5
7945
sed 's/^/| /' conftest.$ac_ext >&5
7946
 
7947
  # Broken: fails on valid input.
7948
continue
7949
fi
7950
 
7951
rm -f conftest.err conftest.$ac_ext
7952
 
7953
  # OK, works on sane cases.  Now check whether nonexistent headers
7954
  # can be detected and how.
7955
  cat >conftest.$ac_ext <<_ACEOF
7956
/* confdefs.h.  */
7957
_ACEOF
7958
cat confdefs.h >>conftest.$ac_ext
7959
cat >>conftest.$ac_ext <<_ACEOF
7960
/* end confdefs.h.  */
7961
#include 
7962
_ACEOF
7963
if { (ac_try="$ac_cpp conftest.$ac_ext"
7964
case "(($ac_try" in
7965
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7966
  *) ac_try_echo=$ac_try;;
7967
esac
7968
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7969
$as_echo "$ac_try_echo") >&5
7970
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7971
  ac_status=$?
7972
  grep -v '^ *+' conftest.er1 >conftest.err
7973
  rm -f conftest.er1
7974
  cat conftest.err >&5
7975
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976
  (exit $ac_status); } >/dev/null && {
7977
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7978
         test ! -s conftest.err
7979
       }; then
7980
  # Broken: success on invalid input.
7981
continue
7982
else
7983
  $as_echo "$as_me: failed program was:" >&5
7984
sed 's/^/| /' conftest.$ac_ext >&5
7985
 
7986
  # Passes both tests.
7987
ac_preproc_ok=:
7988
break
7989
fi
7990
 
7991
rm -f conftest.err conftest.$ac_ext
7992
 
7993
done
7994
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7995
rm -f conftest.err conftest.$ac_ext
7996
if $ac_preproc_ok; then
7997
  break
7998
fi
7999
 
8000
    done
8001
    ac_cv_prog_CPP=$CPP
8002
 
8003
fi
8004
  CPP=$ac_cv_prog_CPP
8005
else
8006
  ac_cv_prog_CPP=$CPP
8007
fi
8008
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
8009
$as_echo "$CPP" >&6; }
8010
ac_preproc_ok=false
8011
for ac_c_preproc_warn_flag in '' yes
8012
do
8013
  # Use a header file that comes with gcc, so configuring glibc
8014
  # with a fresh cross-compiler works.
8015
  # Prefer  to  if __STDC__ is defined, since
8016
  #  exists even on freestanding compilers.
8017
  # On the NeXT, cc -E runs the code through the compiler's parser,
8018
  # not just through cpp. "Syntax error" is here to catch this case.
8019
  cat >conftest.$ac_ext <<_ACEOF
8020
/* confdefs.h.  */
8021
_ACEOF
8022
cat confdefs.h >>conftest.$ac_ext
8023
cat >>conftest.$ac_ext <<_ACEOF
8024
/* end confdefs.h.  */
8025
#ifdef __STDC__
8026
# include 
8027
#else
8028
# include 
8029
#endif
8030
                     Syntax error
8031
_ACEOF
8032
if { (ac_try="$ac_cpp conftest.$ac_ext"
8033
case "(($ac_try" in
8034
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035
  *) ac_try_echo=$ac_try;;
8036
esac
8037
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8038
$as_echo "$ac_try_echo") >&5
8039
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8040
  ac_status=$?
8041
  grep -v '^ *+' conftest.er1 >conftest.err
8042
  rm -f conftest.er1
8043
  cat conftest.err >&5
8044
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045
  (exit $ac_status); } >/dev/null && {
8046
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8047
         test ! -s conftest.err
8048
       }; then
8049
  :
8050
else
8051
  $as_echo "$as_me: failed program was:" >&5
8052
sed 's/^/| /' conftest.$ac_ext >&5
8053
 
8054
  # Broken: fails on valid input.
8055
continue
8056
fi
8057
 
8058
rm -f conftest.err conftest.$ac_ext
8059
 
8060
  # OK, works on sane cases.  Now check whether nonexistent headers
8061
  # can be detected and how.
8062
  cat >conftest.$ac_ext <<_ACEOF
8063
/* confdefs.h.  */
8064
_ACEOF
8065
cat confdefs.h >>conftest.$ac_ext
8066
cat >>conftest.$ac_ext <<_ACEOF
8067
/* end confdefs.h.  */
8068
#include 
8069
_ACEOF
8070
if { (ac_try="$ac_cpp conftest.$ac_ext"
8071
case "(($ac_try" in
8072
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8073
  *) ac_try_echo=$ac_try;;
8074
esac
8075
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8076
$as_echo "$ac_try_echo") >&5
8077
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8078
  ac_status=$?
8079
  grep -v '^ *+' conftest.er1 >conftest.err
8080
  rm -f conftest.er1
8081
  cat conftest.err >&5
8082
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083
  (exit $ac_status); } >/dev/null && {
8084
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8085
         test ! -s conftest.err
8086
       }; then
8087
  # Broken: success on invalid input.
8088
continue
8089
else
8090
  $as_echo "$as_me: failed program was:" >&5
8091
sed 's/^/| /' conftest.$ac_ext >&5
8092
 
8093
  # Passes both tests.
8094
ac_preproc_ok=:
8095
break
8096
fi
8097
 
8098
rm -f conftest.err conftest.$ac_ext
8099
 
8100
done
8101
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8102
rm -f conftest.err conftest.$ac_ext
8103
if $ac_preproc_ok; then
8104
  :
8105
else
8106
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8107
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8108
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
8109
See \`config.log' for more details." >&5
8110
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
8111
See \`config.log' for more details." >&2;}
8112
   { (exit 1); exit 1; }; }; }
8113
fi
8114
 
8115
ac_ext=c
8116
ac_cpp='$CPP $CPPFLAGS'
8117
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8118
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8119
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8120
 
8121
 
8122
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8123
$as_echo_n "checking for ANSI C header files... " >&6; }
8124
if test "${ac_cv_header_stdc+set}" = set; then
8125
  $as_echo_n "(cached) " >&6
8126
else
8127
  cat >conftest.$ac_ext <<_ACEOF
8128
/* confdefs.h.  */
8129
_ACEOF
8130
cat confdefs.h >>conftest.$ac_ext
8131
cat >>conftest.$ac_ext <<_ACEOF
8132
/* end confdefs.h.  */
8133
#include 
8134
#include 
8135
#include 
8136
#include 
8137
 
8138
int
8139
main ()
8140
{
8141
 
8142
  ;
8143
  return 0;
8144
}
8145
_ACEOF
8146
rm -f conftest.$ac_objext
8147
if { (ac_try="$ac_compile"
8148
case "(($ac_try" in
8149
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8150
  *) ac_try_echo=$ac_try;;
8151
esac
8152
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8153
$as_echo "$ac_try_echo") >&5
8154
  (eval "$ac_compile") 2>conftest.er1
8155
  ac_status=$?
8156
  grep -v '^ *+' conftest.er1 >conftest.err
8157
  rm -f conftest.er1
8158
  cat conftest.err >&5
8159
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160
  (exit $ac_status); } && {
8161
         test -z "$ac_c_werror_flag" ||
8162
         test ! -s conftest.err
8163
       } && test -s conftest.$ac_objext; then
8164
  ac_cv_header_stdc=yes
8165
else
8166
  $as_echo "$as_me: failed program was:" >&5
8167
sed 's/^/| /' conftest.$ac_ext >&5
8168
 
8169
        ac_cv_header_stdc=no
8170
fi
8171
 
8172
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8173
 
8174
if test $ac_cv_header_stdc = yes; then
8175
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8176
  cat >conftest.$ac_ext <<_ACEOF
8177
/* confdefs.h.  */
8178
_ACEOF
8179
cat confdefs.h >>conftest.$ac_ext
8180
cat >>conftest.$ac_ext <<_ACEOF
8181
/* end confdefs.h.  */
8182
#include 
8183
 
8184
_ACEOF
8185
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8186
  $EGREP "memchr" >/dev/null 2>&1; then
8187
  :
8188
else
8189
  ac_cv_header_stdc=no
8190
fi
8191
rm -f conftest*
8192
 
8193
fi
8194
 
8195
if test $ac_cv_header_stdc = yes; then
8196
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8197
  cat >conftest.$ac_ext <<_ACEOF
8198
/* confdefs.h.  */
8199
_ACEOF
8200
cat confdefs.h >>conftest.$ac_ext
8201
cat >>conftest.$ac_ext <<_ACEOF
8202
/* end confdefs.h.  */
8203
#include 
8204
 
8205
_ACEOF
8206
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8207
  $EGREP "free" >/dev/null 2>&1; then
8208
  :
8209
else
8210
  ac_cv_header_stdc=no
8211
fi
8212
rm -f conftest*
8213
 
8214
fi
8215
 
8216
if test $ac_cv_header_stdc = yes; then
8217
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8218
  if test "$cross_compiling" = yes; then
8219
  :
8220
else
8221
  cat >conftest.$ac_ext <<_ACEOF
8222
/* confdefs.h.  */
8223
_ACEOF
8224
cat confdefs.h >>conftest.$ac_ext
8225
cat >>conftest.$ac_ext <<_ACEOF
8226
/* end confdefs.h.  */
8227
#include 
8228
#include 
8229
#if ((' ' & 0x0FF) == 0x020)
8230
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8231
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8232
#else
8233
# define ISLOWER(c) \
8234
                   (('a' <= (c) && (c) <= 'i') \
8235
                     || ('j' <= (c) && (c) <= 'r') \
8236
                     || ('s' <= (c) && (c) <= 'z'))
8237
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8238
#endif
8239
 
8240
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8241
int
8242
main ()
8243
{
8244
  int i;
8245
  for (i = 0; i < 256; i++)
8246
    if (XOR (islower (i), ISLOWER (i))
8247
        || toupper (i) != TOUPPER (i))
8248
      return 2;
8249
  return 0;
8250
}
8251
_ACEOF
8252
rm -f conftest$ac_exeext
8253
if { (ac_try="$ac_link"
8254
case "(($ac_try" in
8255
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8256
  *) ac_try_echo=$ac_try;;
8257
esac
8258
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8259
$as_echo "$ac_try_echo") >&5
8260
  (eval "$ac_link") 2>&5
8261
  ac_status=$?
8262
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8264
  { (case "(($ac_try" in
8265
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266
  *) ac_try_echo=$ac_try;;
8267
esac
8268
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8269
$as_echo "$ac_try_echo") >&5
8270
  (eval "$ac_try") 2>&5
8271
  ac_status=$?
8272
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273
  (exit $ac_status); }; }; then
8274
  :
8275
else
8276
  $as_echo "$as_me: program exited with status $ac_status" >&5
8277
$as_echo "$as_me: failed program was:" >&5
8278
sed 's/^/| /' conftest.$ac_ext >&5
8279
 
8280
( exit $ac_status )
8281
ac_cv_header_stdc=no
8282
fi
8283
rm -rf conftest.dSYM
8284
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8285
fi
8286
 
8287
 
8288
fi
8289
fi
8290
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8291
$as_echo "$ac_cv_header_stdc" >&6; }
8292
if test $ac_cv_header_stdc = yes; then
8293
 
8294
cat >>confdefs.h <<\_ACEOF
8295
#define STDC_HEADERS 1
8296
_ACEOF
8297
 
8298
fi
8299
 
8300
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8301
 
8302
 
8303
 
8304
 
8305
 
8306
 
8307
 
8308
 
8309
 
8310
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8311
                  inttypes.h stdint.h unistd.h
8312
do
8313
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8314
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8315
$as_echo_n "checking for $ac_header... " >&6; }
8316
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8317
  $as_echo_n "(cached) " >&6
8318
else
8319
  cat >conftest.$ac_ext <<_ACEOF
8320
/* confdefs.h.  */
8321
_ACEOF
8322
cat confdefs.h >>conftest.$ac_ext
8323
cat >>conftest.$ac_ext <<_ACEOF
8324
/* end confdefs.h.  */
8325
$ac_includes_default
8326
 
8327
#include <$ac_header>
8328
_ACEOF
8329
rm -f conftest.$ac_objext
8330
if { (ac_try="$ac_compile"
8331
case "(($ac_try" in
8332
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8333
  *) ac_try_echo=$ac_try;;
8334
esac
8335
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8336
$as_echo "$ac_try_echo") >&5
8337
  (eval "$ac_compile") 2>conftest.er1
8338
  ac_status=$?
8339
  grep -v '^ *+' conftest.er1 >conftest.err
8340
  rm -f conftest.er1
8341
  cat conftest.err >&5
8342
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343
  (exit $ac_status); } && {
8344
         test -z "$ac_c_werror_flag" ||
8345
         test ! -s conftest.err
8346
       } && test -s conftest.$ac_objext; then
8347
  eval "$as_ac_Header=yes"
8348
else
8349
  $as_echo "$as_me: failed program was:" >&5
8350
sed 's/^/| /' conftest.$ac_ext >&5
8351
 
8352
        eval "$as_ac_Header=no"
8353
fi
8354
 
8355
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8356
fi
8357
ac_res=`eval 'as_val=${'$as_ac_Header'}
8358
                 $as_echo "$as_val"'`
8359
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8360
$as_echo "$ac_res" >&6; }
8361
as_val=`eval 'as_val=${'$as_ac_Header'}
8362
                 $as_echo "$as_val"'`
8363
   if test "x$as_val" = x""yes; then
8364
  cat >>confdefs.h <<_ACEOF
8365
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8366
_ACEOF
8367
 
8368
fi
8369
 
8370
done
8371
 
8372
 
8373
 
8374
for ac_header in dlfcn.h
8375
do
8376
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8377
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8378
$as_echo_n "checking for $ac_header... " >&6; }
8379
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8380
  $as_echo_n "(cached) " >&6
8381
else
8382
  cat >conftest.$ac_ext <<_ACEOF
8383
/* confdefs.h.  */
8384
_ACEOF
8385
cat confdefs.h >>conftest.$ac_ext
8386
cat >>conftest.$ac_ext <<_ACEOF
8387
/* end confdefs.h.  */
8388
$ac_includes_default
8389
 
8390
#include <$ac_header>
8391
_ACEOF
8392
rm -f conftest.$ac_objext
8393
if { (ac_try="$ac_compile"
8394
case "(($ac_try" in
8395
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8396
  *) ac_try_echo=$ac_try;;
8397
esac
8398
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8399
$as_echo "$ac_try_echo") >&5
8400
  (eval "$ac_compile") 2>conftest.er1
8401
  ac_status=$?
8402
  grep -v '^ *+' conftest.er1 >conftest.err
8403
  rm -f conftest.er1
8404
  cat conftest.err >&5
8405
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406
  (exit $ac_status); } && {
8407
         test -z "$ac_c_werror_flag" ||
8408
         test ! -s conftest.err
8409
       } && test -s conftest.$ac_objext; then
8410
  eval "$as_ac_Header=yes"
8411
else
8412
  $as_echo "$as_me: failed program was:" >&5
8413
sed 's/^/| /' conftest.$ac_ext >&5
8414
 
8415
        eval "$as_ac_Header=no"
8416
fi
8417
 
8418
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8419
fi
8420
ac_res=`eval 'as_val=${'$as_ac_Header'}
8421
                 $as_echo "$as_val"'`
8422
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8423
$as_echo "$ac_res" >&6; }
8424
as_val=`eval 'as_val=${'$as_ac_Header'}
8425
                 $as_echo "$as_val"'`
8426
   if test "x$as_val" = x""yes; then
8427
  cat >>confdefs.h <<_ACEOF
8428
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8429
_ACEOF
8430
 
8431
fi
8432
 
8433
done
8434
 
8435
 
8436
 
8437
# Set options
8438
 
8439
 
8440
 
8441
        enable_dlopen=no
8442
 
8443
 
8444
 
8445
            # Check whether --enable-shared was given.
8446
if test "${enable_shared+set}" = set; then
8447
  enableval=$enable_shared; p=${PACKAGE-default}
8448
    case $enableval in
8449
    yes) enable_shared=yes ;;
8450
    no) enable_shared=no ;;
8451
    *)
8452
      enable_shared=no
8453
      # Look at the argument we got.  We use all the common list separators.
8454
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8455
      for pkg in $enableval; do
8456
        IFS="$lt_save_ifs"
8457
        if test "X$pkg" = "X$p"; then
8458
          enable_shared=yes
8459
        fi
8460
      done
8461
      IFS="$lt_save_ifs"
8462
      ;;
8463
    esac
8464
else
8465
  enable_shared=yes
8466
fi
8467
 
8468
 
8469
 
8470
 
8471
 
8472
 
8473
 
8474
 
8475
 
8476
  # Check whether --enable-static was given.
8477
if test "${enable_static+set}" = set; then
8478
  enableval=$enable_static; p=${PACKAGE-default}
8479
    case $enableval in
8480
    yes) enable_static=yes ;;
8481
    no) enable_static=no ;;
8482
    *)
8483
     enable_static=no
8484
      # Look at the argument we got.  We use all the common list separators.
8485
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8486
      for pkg in $enableval; do
8487
        IFS="$lt_save_ifs"
8488
        if test "X$pkg" = "X$p"; then
8489
          enable_static=yes
8490
        fi
8491
      done
8492
      IFS="$lt_save_ifs"
8493
      ;;
8494
    esac
8495
else
8496
  enable_static=yes
8497
fi
8498
 
8499
 
8500
 
8501
 
8502
 
8503
 
8504
 
8505
 
8506
 
8507
 
8508
# Check whether --with-pic was given.
8509
if test "${with_pic+set}" = set; then
8510
  withval=$with_pic; pic_mode="$withval"
8511
else
8512
  pic_mode=default
8513
fi
8514
 
8515
 
8516
test -z "$pic_mode" && pic_mode=default
8517
 
8518
 
8519
 
8520
 
8521
 
8522
 
8523
 
8524
  # Check whether --enable-fast-install was given.
8525
if test "${enable_fast_install+set}" = set; then
8526
  enableval=$enable_fast_install; p=${PACKAGE-default}
8527
    case $enableval in
8528
    yes) enable_fast_install=yes ;;
8529
    no) enable_fast_install=no ;;
8530
    *)
8531
      enable_fast_install=no
8532
      # Look at the argument we got.  We use all the common list separators.
8533
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8534
      for pkg in $enableval; do
8535
        IFS="$lt_save_ifs"
8536
        if test "X$pkg" = "X$p"; then
8537
          enable_fast_install=yes
8538
        fi
8539
      done
8540
      IFS="$lt_save_ifs"
8541
      ;;
8542
    esac
8543
else
8544
  enable_fast_install=yes
8545
fi
8546
 
8547
 
8548
 
8549
 
8550
 
8551
 
8552
 
8553
 
8554
 
8555
 
8556
 
8557
# This can be used to rebuild libtool when needed
8558
LIBTOOL_DEPS="$ltmain"
8559
 
8560
# Always use our own libtool.
8561
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8562
 
8563
 
8564
 
8565
 
8566
 
8567
 
8568
 
8569
 
8570
 
8571
 
8572
 
8573
 
8574
 
8575
 
8576
 
8577
 
8578
 
8579
 
8580
 
8581
 
8582
 
8583
 
8584
 
8585
 
8586
 
8587
test -z "$LN_S" && LN_S="ln -s"
8588
 
8589
 
8590
 
8591
 
8592
 
8593
 
8594
 
8595
 
8596
 
8597
 
8598
 
8599
 
8600
 
8601
 
8602
if test -n "${ZSH_VERSION+set}" ; then
8603
   setopt NO_GLOB_SUBST
8604
fi
8605
 
8606
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
8607
$as_echo_n "checking for objdir... " >&6; }
8608
if test "${lt_cv_objdir+set}" = set; then
8609
  $as_echo_n "(cached) " >&6
8610
else
8611
  rm -f .libs 2>/dev/null
8612
mkdir .libs 2>/dev/null
8613
if test -d .libs; then
8614
  lt_cv_objdir=.libs
8615
else
8616
  # MS-DOS does not allow filenames that begin with a dot.
8617
  lt_cv_objdir=_libs
8618
fi
8619
rmdir .libs 2>/dev/null
8620
fi
8621
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8622
$as_echo "$lt_cv_objdir" >&6; }
8623
objdir=$lt_cv_objdir
8624
 
8625
 
8626
 
8627
 
8628
 
8629
cat >>confdefs.h <<_ACEOF
8630
#define LT_OBJDIR "$lt_cv_objdir/"
8631
_ACEOF
8632
 
8633
 
8634
 
8635
 
8636
 
8637
 
8638
 
8639
 
8640
 
8641
 
8642
 
8643
 
8644
 
8645
 
8646
 
8647
 
8648
 
8649
case $host_os in
8650
aix3*)
8651
  # AIX sometimes has problems with the GCC collect2 program.  For some
8652
  # reason, if we set the COLLECT_NAMES environment variable, the problems
8653
  # vanish in a puff of smoke.
8654
  if test "X${COLLECT_NAMES+set}" != Xset; then
8655
    COLLECT_NAMES=
8656
    export COLLECT_NAMES
8657
  fi
8658
  ;;
8659
esac
8660
 
8661
# Sed substitution that helps us do robust quoting.  It backslashifies
8662
# metacharacters that are still active within double-quoted strings.
8663
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8664
 
8665
# Same as above, but do not quote variable references.
8666
double_quote_subst='s/\(["`\\]\)/\\\1/g'
8667
 
8668
# Sed substitution to delay expansion of an escaped shell variable in a
8669
# double_quote_subst'ed string.
8670
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8671
 
8672
# Sed substitution to delay expansion of an escaped single quote.
8673
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8674
 
8675
# Sed substitution to avoid accidental globbing in evaled expressions
8676
no_glob_subst='s/\*/\\\*/g'
8677
 
8678
# Global variables:
8679
ofile=libtool
8680
can_build_shared=yes
8681
 
8682
# All known linkers require a `.a' archive for static linking (except MSVC,
8683
# which needs '.lib').
8684
libext=a
8685
 
8686
with_gnu_ld="$lt_cv_prog_gnu_ld"
8687
 
8688
old_CC="$CC"
8689
old_CFLAGS="$CFLAGS"
8690
 
8691
# Set sane defaults for various variables
8692
test -z "$CC" && CC=cc
8693
test -z "$LTCC" && LTCC=$CC
8694
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8695
test -z "$LD" && LD=ld
8696
test -z "$ac_objext" && ac_objext=o
8697
 
8698
for cc_temp in $compiler""; do
8699
  case $cc_temp in
8700
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8701
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8702
    \-*) ;;
8703
    *) break;;
8704
  esac
8705
done
8706
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8707
 
8708
 
8709
# Only perform the check for file, if the check method requires it
8710
test -z "$MAGIC_CMD" && MAGIC_CMD=file
8711
case $deplibs_check_method in
8712
file_magic*)
8713
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8714
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8715
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8716
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8717
  $as_echo_n "(cached) " >&6
8718
else
8719
  case $MAGIC_CMD in
8720
[\\/*] |  ?:[\\/]*)
8721
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8722
  ;;
8723
*)
8724
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8725
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8726
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8727
  for ac_dir in $ac_dummy; do
8728
    IFS="$lt_save_ifs"
8729
    test -z "$ac_dir" && ac_dir=.
8730
    if test -f $ac_dir/${ac_tool_prefix}file; then
8731
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8732
      if test -n "$file_magic_test_file"; then
8733
        case $deplibs_check_method in
8734
        "file_magic "*)
8735
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8736
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8737
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8738
            $EGREP "$file_magic_regex" > /dev/null; then
8739
            :
8740
          else
8741
            cat <<_LT_EOF 1>&2
8742
 
8743
*** Warning: the command libtool uses to detect shared libraries,
8744
*** $file_magic_cmd, produces output that libtool cannot recognize.
8745
*** The result is that libtool may fail to recognize shared libraries
8746
*** as such.  This will affect the creation of libtool libraries that
8747
*** depend on shared libraries, but programs linked with such libtool
8748
*** libraries will work regardless of this problem.  Nevertheless, you
8749
*** may want to report the problem to your system manager and/or to
8750
*** bug-libtool@gnu.org
8751
 
8752
_LT_EOF
8753
          fi ;;
8754
        esac
8755
      fi
8756
      break
8757
    fi
8758
  done
8759
  IFS="$lt_save_ifs"
8760
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8761
  ;;
8762
esac
8763
fi
8764
 
8765
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8766
if test -n "$MAGIC_CMD"; then
8767
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8768
$as_echo "$MAGIC_CMD" >&6; }
8769
else
8770
  { $as_echo "$as_me:$LINENO: result: no" >&5
8771
$as_echo "no" >&6; }
8772
fi
8773
 
8774
 
8775
 
8776
 
8777
 
8778
if test -z "$lt_cv_path_MAGIC_CMD"; then
8779
  if test -n "$ac_tool_prefix"; then
8780
    { $as_echo "$as_me:$LINENO: checking for file" >&5
8781
$as_echo_n "checking for file... " >&6; }
8782
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8783
  $as_echo_n "(cached) " >&6
8784
else
8785
  case $MAGIC_CMD in
8786
[\\/*] |  ?:[\\/]*)
8787
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8788
  ;;
8789
*)
8790
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8791
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8792
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8793
  for ac_dir in $ac_dummy; do
8794
    IFS="$lt_save_ifs"
8795
    test -z "$ac_dir" && ac_dir=.
8796
    if test -f $ac_dir/file; then
8797
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8798
      if test -n "$file_magic_test_file"; then
8799
        case $deplibs_check_method in
8800
        "file_magic "*)
8801
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8802
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8803
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8804
            $EGREP "$file_magic_regex" > /dev/null; then
8805
            :
8806
          else
8807
            cat <<_LT_EOF 1>&2
8808
 
8809
*** Warning: the command libtool uses to detect shared libraries,
8810
*** $file_magic_cmd, produces output that libtool cannot recognize.
8811
*** The result is that libtool may fail to recognize shared libraries
8812
*** as such.  This will affect the creation of libtool libraries that
8813
*** depend on shared libraries, but programs linked with such libtool
8814
*** libraries will work regardless of this problem.  Nevertheless, you
8815
*** may want to report the problem to your system manager and/or to
8816
*** bug-libtool@gnu.org
8817
 
8818
_LT_EOF
8819
          fi ;;
8820
        esac
8821
      fi
8822
      break
8823
    fi
8824
  done
8825
  IFS="$lt_save_ifs"
8826
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8827
  ;;
8828
esac
8829
fi
8830
 
8831
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8832
if test -n "$MAGIC_CMD"; then
8833
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8834
$as_echo "$MAGIC_CMD" >&6; }
8835
else
8836
  { $as_echo "$as_me:$LINENO: result: no" >&5
8837
$as_echo "no" >&6; }
8838
fi
8839
 
8840
 
8841
  else
8842
    MAGIC_CMD=:
8843
  fi
8844
fi
8845
 
8846
  fi
8847
  ;;
8848
esac
8849
 
8850
# Use C for the default configuration in the libtool script
8851
 
8852
lt_save_CC="$CC"
8853
ac_ext=c
8854
ac_cpp='$CPP $CPPFLAGS'
8855
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8856
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8857
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8858
 
8859
 
8860
# Source file extension for C test sources.
8861
ac_ext=c
8862
 
8863
# Object file extension for compiled C test sources.
8864
objext=o
8865
objext=$objext
8866
 
8867
# Code to be used in simple compile tests
8868
lt_simple_compile_test_code="int some_variable = 0;"
8869
 
8870
# Code to be used in simple link tests
8871
lt_simple_link_test_code='int main(){return(0);}'
8872
 
8873
 
8874
 
8875
 
8876
 
8877
 
8878
 
8879
# If no C compiler was specified, use CC.
8880
LTCC=${LTCC-"$CC"}
8881
 
8882
# If no C compiler flags were specified, use CFLAGS.
8883
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8884
 
8885
# Allow CC to be a program name with arguments.
8886
compiler=$CC
8887
 
8888
# Save the default compiler, since it gets overwritten when the other
8889
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8890
compiler_DEFAULT=$CC
8891
 
8892
# save warnings/boilerplate of simple test code
8893
ac_outfile=conftest.$ac_objext
8894
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8895
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8896
_lt_compiler_boilerplate=`cat conftest.err`
8897
$RM conftest*
8898
 
8899
ac_outfile=conftest.$ac_objext
8900
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8901
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8902
_lt_linker_boilerplate=`cat conftest.err`
8903
$RM -r conftest*
8904
 
8905
 
8906
## CAVEAT EMPTOR:
8907
## There is no encapsulation within the following macros, do not change
8908
## the running order or otherwise move them around unless you know exactly
8909
## what you are doing...
8910
if test -n "$compiler"; then
8911
 
8912
lt_prog_compiler_no_builtin_flag=
8913
 
8914
if test "$GCC" = yes; then
8915
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8916
 
8917
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8918
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8919
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8920
  $as_echo_n "(cached) " >&6
8921
else
8922
  lt_cv_prog_compiler_rtti_exceptions=no
8923
   ac_outfile=conftest.$ac_objext
8924
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8925
   lt_compiler_flag="-fno-rtti -fno-exceptions"
8926
   # Insert the option either (1) after the last *FLAGS variable, or
8927
   # (2) before a word containing "conftest.", or (3) at the end.
8928
   # Note that $ac_compile itself does not contain backslashes and begins
8929
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8930
   # The option is referenced via a variable to avoid confusing sed.
8931
   lt_compile=`echo "$ac_compile" | $SED \
8932
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8933
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8934
   -e 's:$: $lt_compiler_flag:'`
8935
   (eval echo "\"\$as_me:8935: $lt_compile\"" >&5)
8936
   (eval "$lt_compile" 2>conftest.err)
8937
   ac_status=$?
8938
   cat conftest.err >&5
8939
   echo "$as_me:8939: \$? = $ac_status" >&5
8940
   if (exit $ac_status) && test -s "$ac_outfile"; then
8941
     # The compiler can only warn and ignore the option if not recognized
8942
     # So say no if there are warnings other than the usual output.
8943
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8944
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8945
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8946
       lt_cv_prog_compiler_rtti_exceptions=yes
8947
     fi
8948
   fi
8949
   $RM conftest*
8950
 
8951
fi
8952
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8953
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8954
 
8955
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8956
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8957
else
8958
    :
8959
fi
8960
 
8961
fi
8962
 
8963
 
8964
 
8965
 
8966
 
8967
 
8968
  lt_prog_compiler_wl=
8969
lt_prog_compiler_pic=
8970
lt_prog_compiler_static=
8971
 
8972
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8973
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8974
 
8975
  if test "$GCC" = yes; then
8976
    lt_prog_compiler_wl='-Wl,'
8977
    lt_prog_compiler_static='-static'
8978
 
8979
    case $host_os in
8980
      aix*)
8981
      # All AIX code is PIC.
8982
      if test "$host_cpu" = ia64; then
8983
        # AIX 5 now supports IA64 processor
8984
        lt_prog_compiler_static='-Bstatic'
8985
      fi
8986
      ;;
8987
 
8988
    amigaos*)
8989
      case $host_cpu in
8990
      powerpc)
8991
            # see comment about AmigaOS4 .so support
8992
            lt_prog_compiler_pic='-fPIC'
8993
        ;;
8994
      m68k)
8995
            # FIXME: we need at least 68020 code to build shared libraries, but
8996
            # adding the `-m68020' flag to GCC prevents building anything better,
8997
            # like `-m68040'.
8998
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8999
        ;;
9000
      esac
9001
      ;;
9002
 
9003
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9004
      # PIC is the default for these OSes.
9005
      ;;
9006
 
9007
    mingw* | cygwin* | pw32* | os2* | cegcc*)
9008
      # This hack is so that the source file can tell whether it is being
9009
      # built for inclusion in a dll (and should export symbols for example).
9010
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9011
      # (--disable-auto-import) libraries
9012
      lt_prog_compiler_pic='-DDLL_EXPORT'
9013
      ;;
9014
 
9015
    darwin* | rhapsody*)
9016
      # PIC is the default on this platform
9017
      # Common symbols not allowed in MH_DYLIB files
9018
      lt_prog_compiler_pic='-fno-common'
9019
      ;;
9020
 
9021
    hpux*)
9022
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9023
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9024
      # sets the default TLS model and affects inlining.
9025
      case $host_cpu in
9026
      hppa*64*)
9027
        # +Z the default
9028
        ;;
9029
      *)
9030
        lt_prog_compiler_pic='-fPIC'
9031
        ;;
9032
      esac
9033
      ;;
9034
 
9035
    interix[3-9]*)
9036
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9037
      # Instead, we relocate shared libraries at runtime.
9038
      ;;
9039
 
9040
    msdosdjgpp*)
9041
      # Just because we use GCC doesn't mean we suddenly get shared libraries
9042
      # on systems that don't support them.
9043
      lt_prog_compiler_can_build_shared=no
9044
      enable_shared=no
9045
      ;;
9046
 
9047
    *nto* | *qnx*)
9048
      # QNX uses GNU C++, but need to define -shared option too, otherwise
9049
      # it will coredump.
9050
      lt_prog_compiler_pic='-fPIC -shared'
9051
      ;;
9052
 
9053
    sysv4*MP*)
9054
      if test -d /usr/nec; then
9055
        lt_prog_compiler_pic=-Kconform_pic
9056
      fi
9057
      ;;
9058
 
9059
    *)
9060
      lt_prog_compiler_pic='-fPIC'
9061
      ;;
9062
    esac
9063
  else
9064
    # PORTME Check for flag to pass linker flags through the system compiler.
9065
    case $host_os in
9066
    aix*)
9067
      lt_prog_compiler_wl='-Wl,'
9068
      if test "$host_cpu" = ia64; then
9069
        # AIX 5 now supports IA64 processor
9070
        lt_prog_compiler_static='-Bstatic'
9071
      else
9072
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9073
      fi
9074
      ;;
9075
 
9076
    mingw* | cygwin* | pw32* | os2* | cegcc*)
9077
      # This hack is so that the source file can tell whether it is being
9078
      # built for inclusion in a dll (and should export symbols for example).
9079
      lt_prog_compiler_pic='-DDLL_EXPORT'
9080
      ;;
9081
 
9082
    hpux9* | hpux10* | hpux11*)
9083
      lt_prog_compiler_wl='-Wl,'
9084
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9085
      # not for PA HP-UX.
9086
      case $host_cpu in
9087
      hppa*64*|ia64*)
9088
        # +Z the default
9089
        ;;
9090
      *)
9091
        lt_prog_compiler_pic='+Z'
9092
        ;;
9093
      esac
9094
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9095
      lt_prog_compiler_static='${wl}-a ${wl}archive'
9096
      ;;
9097
 
9098
    irix5* | irix6* | nonstopux*)
9099
      lt_prog_compiler_wl='-Wl,'
9100
      # PIC (with -KPIC) is the default.
9101
      lt_prog_compiler_static='-non_shared'
9102
      ;;
9103
 
9104
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
9105
      case $cc_basename in
9106
      # old Intel for x86_64 which still supported -KPIC.
9107
      ecc*)
9108
        lt_prog_compiler_wl='-Wl,'
9109
        lt_prog_compiler_pic='-KPIC'
9110
        lt_prog_compiler_static='-static'
9111
        ;;
9112
      # icc used to be incompatible with GCC.
9113
      # ICC 10 doesn't accept -KPIC any more.
9114
      icc* | ifort*)
9115
        lt_prog_compiler_wl='-Wl,'
9116
        lt_prog_compiler_pic='-fPIC'
9117
        lt_prog_compiler_static='-static'
9118
        ;;
9119
      # Lahey Fortran 8.1.
9120
      lf95*)
9121
        lt_prog_compiler_wl='-Wl,'
9122
        lt_prog_compiler_pic='--shared'
9123
        lt_prog_compiler_static='--static'
9124
        ;;
9125
      pgcc* | pgf77* | pgf90* | pgf95*)
9126
        # Portland Group compilers (*not* the Pentium gcc compiler,
9127
        # which looks to be a dead project)
9128
        lt_prog_compiler_wl='-Wl,'
9129
        lt_prog_compiler_pic='-fpic'
9130
        lt_prog_compiler_static='-Bstatic'
9131
        ;;
9132
      ccc*)
9133
        lt_prog_compiler_wl='-Wl,'
9134
        # All Alpha code is PIC.
9135
        lt_prog_compiler_static='-non_shared'
9136
        ;;
9137
      xl*)
9138
        # IBM XL C 8.0/Fortran 10.1 on PPC
9139
        lt_prog_compiler_wl='-Wl,'
9140
        lt_prog_compiler_pic='-qpic'
9141
        lt_prog_compiler_static='-qstaticlink'
9142
        ;;
9143
      *)
9144
        case `$CC -V 2>&1 | sed 5q` in
9145
        *Sun\ C*)
9146
          # Sun C 5.9
9147
          lt_prog_compiler_pic='-KPIC'
9148
          lt_prog_compiler_static='-Bstatic'
9149
          lt_prog_compiler_wl='-Wl,'
9150
          ;;
9151
        *Sun\ F*)
9152
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
9153
          lt_prog_compiler_pic='-KPIC'
9154
          lt_prog_compiler_static='-Bstatic'
9155
          lt_prog_compiler_wl=''
9156
          ;;
9157
        esac
9158
        ;;
9159
      esac
9160
      ;;
9161
 
9162
    newsos6)
9163
      lt_prog_compiler_pic='-KPIC'
9164
      lt_prog_compiler_static='-Bstatic'
9165
      ;;
9166
 
9167
    *nto* | *qnx*)
9168
      # QNX uses GNU C++, but need to define -shared option too, otherwise
9169
      # it will coredump.
9170
      lt_prog_compiler_pic='-fPIC -shared'
9171
      ;;
9172
 
9173
    osf3* | osf4* | osf5*)
9174
      lt_prog_compiler_wl='-Wl,'
9175
      # All OSF/1 code is PIC.
9176
      lt_prog_compiler_static='-non_shared'
9177
      ;;
9178
 
9179
    rdos*)
9180
      lt_prog_compiler_static='-non_shared'
9181
      ;;
9182
 
9183
    solaris*)
9184
      lt_prog_compiler_pic='-KPIC'
9185
      lt_prog_compiler_static='-Bstatic'
9186
      case $cc_basename in
9187
      f77* | f90* | f95*)
9188
        lt_prog_compiler_wl='-Qoption ld ';;
9189
      *)
9190
        lt_prog_compiler_wl='-Wl,';;
9191
      esac
9192
      ;;
9193
 
9194
    sunos4*)
9195
      lt_prog_compiler_wl='-Qoption ld '
9196
      lt_prog_compiler_pic='-PIC'
9197
      lt_prog_compiler_static='-Bstatic'
9198
      ;;
9199
 
9200
    sysv4 | sysv4.2uw2* | sysv4.3*)
9201
      lt_prog_compiler_wl='-Wl,'
9202
      lt_prog_compiler_pic='-KPIC'
9203
      lt_prog_compiler_static='-Bstatic'
9204
      ;;
9205
 
9206
    sysv4*MP*)
9207
      if test -d /usr/nec ;then
9208
        lt_prog_compiler_pic='-Kconform_pic'
9209
        lt_prog_compiler_static='-Bstatic'
9210
      fi
9211
      ;;
9212
 
9213
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9214
      lt_prog_compiler_wl='-Wl,'
9215
      lt_prog_compiler_pic='-KPIC'
9216
      lt_prog_compiler_static='-Bstatic'
9217
      ;;
9218
 
9219
    unicos*)
9220
      lt_prog_compiler_wl='-Wl,'
9221
      lt_prog_compiler_can_build_shared=no
9222
      ;;
9223
 
9224
    uts4*)
9225
      lt_prog_compiler_pic='-pic'
9226
      lt_prog_compiler_static='-Bstatic'
9227
      ;;
9228
 
9229
    *)
9230
      lt_prog_compiler_can_build_shared=no
9231
      ;;
9232
    esac
9233
  fi
9234
 
9235
case $host_os in
9236
  # For platforms which do not support PIC, -DPIC is meaningless:
9237
  *djgpp*)
9238
    lt_prog_compiler_pic=
9239
    ;;
9240
  *)
9241
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9242
    ;;
9243
esac
9244
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9245
$as_echo "$lt_prog_compiler_pic" >&6; }
9246
 
9247
 
9248
 
9249
 
9250
 
9251
 
9252
#
9253
# Check to make sure the PIC flag actually works.
9254
#
9255
if test -n "$lt_prog_compiler_pic"; then
9256
  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9257
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9258
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9259
  $as_echo_n "(cached) " >&6
9260
else
9261
  lt_cv_prog_compiler_pic_works=no
9262
   ac_outfile=conftest.$ac_objext
9263
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9264
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9265
   # Insert the option either (1) after the last *FLAGS variable, or
9266
   # (2) before a word containing "conftest.", or (3) at the end.
9267
   # Note that $ac_compile itself does not contain backslashes and begins
9268
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9269
   # The option is referenced via a variable to avoid confusing sed.
9270
   lt_compile=`echo "$ac_compile" | $SED \
9271
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9272
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9273
   -e 's:$: $lt_compiler_flag:'`
9274
   (eval echo "\"\$as_me:9274: $lt_compile\"" >&5)
9275
   (eval "$lt_compile" 2>conftest.err)
9276
   ac_status=$?
9277
   cat conftest.err >&5
9278
   echo "$as_me:9278: \$? = $ac_status" >&5
9279
   if (exit $ac_status) && test -s "$ac_outfile"; then
9280
     # The compiler can only warn and ignore the option if not recognized
9281
     # So say no if there are warnings other than the usual output.
9282
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9283
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9284
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9285
       lt_cv_prog_compiler_pic_works=yes
9286
     fi
9287
   fi
9288
   $RM conftest*
9289
 
9290
fi
9291
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9292
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9293
 
9294
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9295
    case $lt_prog_compiler_pic in
9296
     "" | " "*) ;;
9297
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9298
     esac
9299
else
9300
    lt_prog_compiler_pic=
9301
     lt_prog_compiler_can_build_shared=no
9302
fi
9303
 
9304
fi
9305
 
9306
 
9307
 
9308
 
9309
 
9310
 
9311
#
9312
# Check to make sure the static flag actually works.
9313
#
9314
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9315
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9316
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9317
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9318
  $as_echo_n "(cached) " >&6
9319
else
9320
  lt_cv_prog_compiler_static_works=no
9321
   save_LDFLAGS="$LDFLAGS"
9322
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9323
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9324
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9325
     # The linker can only warn and ignore the option if not recognized
9326
     # So say no if there are warnings
9327
     if test -s conftest.err; then
9328
       # Append any errors to the config.log.
9329
       cat conftest.err 1>&5
9330
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9331
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9332
       if diff conftest.exp conftest.er2 >/dev/null; then
9333
         lt_cv_prog_compiler_static_works=yes
9334
       fi
9335
     else
9336
       lt_cv_prog_compiler_static_works=yes
9337
     fi
9338
   fi
9339
   $RM -r conftest*
9340
   LDFLAGS="$save_LDFLAGS"
9341
 
9342
fi
9343
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9344
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9345
 
9346
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9347
    :
9348
else
9349
    lt_prog_compiler_static=
9350
fi
9351
 
9352
 
9353
 
9354
 
9355
 
9356
 
9357
 
9358
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9359
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9360
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9361
  $as_echo_n "(cached) " >&6
9362
else
9363
  lt_cv_prog_compiler_c_o=no
9364
   $RM -r conftest 2>/dev/null
9365
   mkdir conftest
9366
   cd conftest
9367
   mkdir out
9368
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9369
 
9370
   lt_compiler_flag="-o out/conftest2.$ac_objext"
9371
   # Insert the option either (1) after the last *FLAGS variable, or
9372
   # (2) before a word containing "conftest.", or (3) at the end.
9373
   # Note that $ac_compile itself does not contain backslashes and begins
9374
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9375
   lt_compile=`echo "$ac_compile" | $SED \
9376
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9377
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9378
   -e 's:$: $lt_compiler_flag:'`
9379
   (eval echo "\"\$as_me:9379: $lt_compile\"" >&5)
9380
   (eval "$lt_compile" 2>out/conftest.err)
9381
   ac_status=$?
9382
   cat out/conftest.err >&5
9383
   echo "$as_me:9383: \$? = $ac_status" >&5
9384
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9385
   then
9386
     # The compiler can only warn and ignore the option if not recognized
9387
     # So say no if there are warnings
9388
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9389
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9390
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9391
       lt_cv_prog_compiler_c_o=yes
9392
     fi
9393
   fi
9394
   chmod u+w . 2>&5
9395
   $RM conftest*
9396
   # SGI C++ compiler will create directory out/ii_files/ for
9397
   # template instantiation
9398
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9399
   $RM out/* && rmdir out
9400
   cd ..
9401
   $RM -r conftest
9402
   $RM conftest*
9403
 
9404
fi
9405
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9406
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9407
 
9408
 
9409
 
9410
 
9411
 
9412
 
9413
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9414
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9415
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9416
  $as_echo_n "(cached) " >&6
9417
else
9418
  lt_cv_prog_compiler_c_o=no
9419
   $RM -r conftest 2>/dev/null
9420
   mkdir conftest
9421
   cd conftest
9422
   mkdir out
9423
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9424
 
9425
   lt_compiler_flag="-o out/conftest2.$ac_objext"
9426
   # Insert the option either (1) after the last *FLAGS variable, or
9427
   # (2) before a word containing "conftest.", or (3) at the end.
9428
   # Note that $ac_compile itself does not contain backslashes and begins
9429
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9430
   lt_compile=`echo "$ac_compile" | $SED \
9431
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9432
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9433
   -e 's:$: $lt_compiler_flag:'`
9434
   (eval echo "\"\$as_me:9434: $lt_compile\"" >&5)
9435
   (eval "$lt_compile" 2>out/conftest.err)
9436
   ac_status=$?
9437
   cat out/conftest.err >&5
9438
   echo "$as_me:9438: \$? = $ac_status" >&5
9439
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9440
   then
9441
     # The compiler can only warn and ignore the option if not recognized
9442
     # So say no if there are warnings
9443
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9444
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9445
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9446
       lt_cv_prog_compiler_c_o=yes
9447
     fi
9448
   fi
9449
   chmod u+w . 2>&5
9450
   $RM conftest*
9451
   # SGI C++ compiler will create directory out/ii_files/ for
9452
   # template instantiation
9453
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9454
   $RM out/* && rmdir out
9455
   cd ..
9456
   $RM -r conftest
9457
   $RM conftest*
9458
 
9459
fi
9460
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9461
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9462
 
9463
 
9464
 
9465
 
9466
hard_links="nottested"
9467
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9468
  # do not overwrite the value of need_locks provided by the user
9469
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9470
$as_echo_n "checking if we can lock with hard links... " >&6; }
9471
  hard_links=yes
9472
  $RM conftest*
9473
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9474
  touch conftest.a
9475
  ln conftest.a conftest.b 2>&5 || hard_links=no
9476
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9477
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9478
$as_echo "$hard_links" >&6; }
9479
  if test "$hard_links" = no; then
9480
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9481
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9482
    need_locks=warn
9483
  fi
9484
else
9485
  need_locks=no
9486
fi
9487
 
9488
 
9489
 
9490
 
9491
 
9492
 
9493
  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9494
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9495
 
9496
  runpath_var=
9497
  allow_undefined_flag=
9498
  always_export_symbols=no
9499
  archive_cmds=
9500
  archive_expsym_cmds=
9501
  compiler_needs_object=no
9502
  enable_shared_with_static_runtimes=no
9503
  export_dynamic_flag_spec=
9504
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9505
  hardcode_automatic=no
9506
  hardcode_direct=no
9507
  hardcode_direct_absolute=no
9508
  hardcode_libdir_flag_spec=
9509
  hardcode_libdir_flag_spec_ld=
9510
  hardcode_libdir_separator=
9511
  hardcode_minus_L=no
9512
  hardcode_shlibpath_var=unsupported
9513
  inherit_rpath=no
9514
  link_all_deplibs=unknown
9515
  module_cmds=
9516
  module_expsym_cmds=
9517
  old_archive_from_new_cmds=
9518
  old_archive_from_expsyms_cmds=
9519
  thread_safe_flag_spec=
9520
  whole_archive_flag_spec=
9521
  # include_expsyms should be a list of space-separated symbols to be *always*
9522
  # included in the symbol list
9523
  include_expsyms=
9524
  # exclude_expsyms can be an extended regexp of symbols to exclude
9525
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9526
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9527
  # as well as any symbol that contains `d'.
9528
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9529
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9530
  # platforms (ab)use it in PIC code, but their linkers get confused if
9531
  # the symbol is explicitly referenced.  Since portable code cannot
9532
  # rely on this symbol name, it's probably fine to never include it in
9533
  # preloaded symbol tables.
9534
  # Exclude shared library initialization/finalization symbols.
9535
  extract_expsyms_cmds=
9536
 
9537
  case $host_os in
9538
  cygwin* | mingw* | pw32* | cegcc*)
9539
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9540
    # When not using gcc, we currently assume that we are using
9541
    # Microsoft Visual C++.
9542
    if test "$GCC" != yes; then
9543
      with_gnu_ld=no
9544
    fi
9545
    ;;
9546
  interix*)
9547
    # we just hope/assume this is gcc and not c89 (= MSVC++)
9548
    with_gnu_ld=yes
9549
    ;;
9550
  openbsd*)
9551
    with_gnu_ld=no
9552
    ;;
9553
  esac
9554
 
9555
  ld_shlibs=yes
9556
  if test "$with_gnu_ld" = yes; then
9557
    # If archive_cmds runs LD, not CC, wlarc should be empty
9558
    wlarc='${wl}'
9559
 
9560
    # Set some defaults for GNU ld with shared library support. These
9561
    # are reset later if shared libraries are not supported. Putting them
9562
    # here allows them to be overridden if necessary.
9563
    runpath_var=LD_RUN_PATH
9564
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9565
    export_dynamic_flag_spec='${wl}--export-dynamic'
9566
    # ancient GNU ld didn't support --whole-archive et. al.
9567
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9568
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9569
    else
9570
      whole_archive_flag_spec=
9571
    fi
9572
    supports_anon_versioning=no
9573
    case `$LD -v 2>&1` in
9574
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9575
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9576
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9577
      *\ 2.11.*) ;; # other 2.11 versions
9578
      *) supports_anon_versioning=yes ;;
9579
    esac
9580
 
9581
    # See if GNU ld supports shared libraries.
9582
    case $host_os in
9583
    aix[3-9]*)
9584
      # On AIX/PPC, the GNU linker is very broken
9585
      if test "$host_cpu" != ia64; then
9586
        ld_shlibs=no
9587
        cat <<_LT_EOF 1>&2
9588
 
9589
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9590
*** to be unable to reliably create shared libraries on AIX.
9591
*** Therefore, libtool is disabling shared libraries support.  If you
9592
*** really care for shared libraries, you may want to modify your PATH
9593
*** so that a non-GNU linker is found, and then restart.
9594
 
9595
_LT_EOF
9596
      fi
9597
      ;;
9598
 
9599
    amigaos*)
9600
      case $host_cpu in
9601
      powerpc)
9602
            # see comment about AmigaOS4 .so support
9603
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9604
            archive_expsym_cmds=''
9605
        ;;
9606
      m68k)
9607
            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)'
9608
            hardcode_libdir_flag_spec='-L$libdir'
9609
            hardcode_minus_L=yes
9610
        ;;
9611
      esac
9612
      ;;
9613
 
9614
    beos*)
9615
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9616
        allow_undefined_flag=unsupported
9617
        # Joseph Beckenbach  says some releases of gcc
9618
        # support --undefined.  This deserves some investigation.  FIXME
9619
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9620
      else
9621
        ld_shlibs=no
9622
      fi
9623
      ;;
9624
 
9625
    cygwin* | mingw* | pw32* | cegcc*)
9626
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9627
      # as there is no search path for DLLs.
9628
      hardcode_libdir_flag_spec='-L$libdir'
9629
      allow_undefined_flag=unsupported
9630
      always_export_symbols=no
9631
      enable_shared_with_static_runtimes=yes
9632
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9633
 
9634
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9635
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9636
        # If the export-symbols file already is a .def file (1st line
9637
        # is EXPORTS), use it as is; otherwise, prepend...
9638
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9639
          cp $export_symbols $output_objdir/$soname.def;
9640
        else
9641
          echo EXPORTS > $output_objdir/$soname.def;
9642
          cat $export_symbols >> $output_objdir/$soname.def;
9643
        fi~
9644
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9645
      else
9646
        ld_shlibs=no
9647
      fi
9648
      ;;
9649
 
9650
    interix[3-9]*)
9651
      hardcode_direct=no
9652
      hardcode_shlibpath_var=no
9653
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9654
      export_dynamic_flag_spec='${wl}-E'
9655
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9656
      # Instead, shared libraries are loaded at an image base (0x10000000 by
9657
      # default) and relocated if they conflict, which is a slow very memory
9658
      # consuming and fragmenting process.  To avoid this, we pick a random,
9659
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9660
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9661
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9662
      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'
9663
      ;;
9664
 
9665
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9666
      tmp_diet=no
9667
      if test "$host_os" = linux-dietlibc; then
9668
        case $cc_basename in
9669
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9670
        esac
9671
      fi
9672
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9673
         && test "$tmp_diet" = no
9674
      then
9675
        tmp_addflag=
9676
        tmp_sharedflag='-shared'
9677
        case $cc_basename,$host_cpu in
9678
        pgcc*)                          # Portland Group C compiler
9679
          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'
9680
          tmp_addflag=' $pic_flag'
9681
          ;;
9682
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9683
          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'
9684
          tmp_addflag=' $pic_flag -Mnomain' ;;
9685
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9686
          tmp_addflag=' -i_dynamic' ;;
9687
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9688
          tmp_addflag=' -i_dynamic -nofor_main' ;;
9689
        ifc* | ifort*)                  # Intel Fortran compiler
9690
          tmp_addflag=' -nofor_main' ;;
9691
        lf95*)                          # Lahey Fortran 8.1
9692
          whole_archive_flag_spec=
9693
          tmp_sharedflag='--shared' ;;
9694
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9695
          tmp_sharedflag='-qmkshrobj'
9696
          tmp_addflag= ;;
9697
        esac
9698
        case `$CC -V 2>&1 | sed 5q` in
9699
        *Sun\ C*)                       # Sun C 5.9
9700
          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'
9701
          compiler_needs_object=yes
9702
          tmp_sharedflag='-G' ;;
9703
        *Sun\ F*)                       # Sun Fortran 8.3
9704
          tmp_sharedflag='-G' ;;
9705
        esac
9706
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9707
 
9708
        if test "x$supports_anon_versioning" = xyes; then
9709
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9710
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9711
            echo "local: *; };" >> $output_objdir/$libname.ver~
9712
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9713
        fi
9714
 
9715
        case $cc_basename in
9716
        xlf*)
9717
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9718
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9719
          hardcode_libdir_flag_spec=
9720
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
9721
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9722
          if test "x$supports_anon_versioning" = xyes; then
9723
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9724
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9725
              echo "local: *; };" >> $output_objdir/$libname.ver~
9726
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9727
          fi
9728
          ;;
9729
        esac
9730
      else
9731
        ld_shlibs=no
9732
      fi
9733
      ;;
9734
 
9735
    netbsd*)
9736
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9737
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9738
        wlarc=
9739
      else
9740
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9741
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9742
      fi
9743
      ;;
9744
 
9745
    solaris*)
9746
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9747
        ld_shlibs=no
9748
        cat <<_LT_EOF 1>&2
9749
 
9750
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9751
*** create shared libraries on Solaris systems.  Therefore, libtool
9752
*** is disabling shared libraries support.  We urge you to upgrade GNU
9753
*** binutils to release 2.9.1 or newer.  Another option is to modify
9754
*** your PATH or compiler configuration so that the native linker is
9755
*** used, and then restart.
9756
 
9757
_LT_EOF
9758
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9759
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9760
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9761
      else
9762
        ld_shlibs=no
9763
      fi
9764
      ;;
9765
 
9766
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9767
      case `$LD -v 2>&1` in
9768
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9769
        ld_shlibs=no
9770
        cat <<_LT_EOF 1>&2
9771
 
9772
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9773
*** reliably create shared libraries on SCO systems.  Therefore, libtool
9774
*** is disabling shared libraries support.  We urge you to upgrade GNU
9775
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9776
*** your PATH or compiler configuration so that the native linker is
9777
*** used, and then restart.
9778
 
9779
_LT_EOF
9780
        ;;
9781
        *)
9782
          # For security reasons, it is highly recommended that you always
9783
          # use absolute paths for naming shared libraries, and exclude the
9784
          # DT_RUNPATH tag from executables and libraries.  But doing so
9785
          # requires that you compile everything twice, which is a pain.
9786
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9787
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9788
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9789
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9790
          else
9791
            ld_shlibs=no
9792
          fi
9793
        ;;
9794
      esac
9795
      ;;
9796
 
9797
    sunos4*)
9798
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9799
      wlarc=
9800
      hardcode_direct=yes
9801
      hardcode_shlibpath_var=no
9802
      ;;
9803
 
9804
    *)
9805
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9806
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9807
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9808
      else
9809
        ld_shlibs=no
9810
      fi
9811
      ;;
9812
    esac
9813
 
9814
    if test "$ld_shlibs" = no; then
9815
      runpath_var=
9816
      hardcode_libdir_flag_spec=
9817
      export_dynamic_flag_spec=
9818
      whole_archive_flag_spec=
9819
    fi
9820
  else
9821
    # PORTME fill in a description of your system's linker (not GNU ld)
9822
    case $host_os in
9823
    aix3*)
9824
      allow_undefined_flag=unsupported
9825
      always_export_symbols=yes
9826
      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'
9827
      # Note: this linker hardcodes the directories in LIBPATH if there
9828
      # are no directories specified by -L.
9829
      hardcode_minus_L=yes
9830
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9831
        # Neither direct hardcoding nor static linking is supported with a
9832
        # broken collect2.
9833
        hardcode_direct=unsupported
9834
      fi
9835
      ;;
9836
 
9837
    aix[4-9]*)
9838
      if test "$host_cpu" = ia64; then
9839
        # On IA64, the linker does run time linking by default, so we don't
9840
        # have to do anything special.
9841
        aix_use_runtimelinking=no
9842
        exp_sym_flag='-Bexport'
9843
        no_entry_flag=""
9844
      else
9845
        # If we're using GNU nm, then we don't want the "-C" option.
9846
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9847
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9848
          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'
9849
        else
9850
          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'
9851
        fi
9852
        aix_use_runtimelinking=no
9853
 
9854
        # Test if we are trying to use run time linking or normal
9855
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9856
        # need to do runtime linking.
9857
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9858
          for ld_flag in $LDFLAGS; do
9859
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9860
            aix_use_runtimelinking=yes
9861
            break
9862
          fi
9863
          done
9864
          ;;
9865
        esac
9866
 
9867
        exp_sym_flag='-bexport'
9868
        no_entry_flag='-bnoentry'
9869
      fi
9870
 
9871
      # When large executables or shared objects are built, AIX ld can
9872
      # have problems creating the table of contents.  If linking a library
9873
      # or program results in "error TOC overflow" add -mminimal-toc to
9874
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9875
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9876
 
9877
      archive_cmds=''
9878
      hardcode_direct=yes
9879
      hardcode_direct_absolute=yes
9880
      hardcode_libdir_separator=':'
9881
      link_all_deplibs=yes
9882
      file_list_spec='${wl}-f,'
9883
 
9884
      if test "$GCC" = yes; then
9885
        case $host_os in aix4.[012]|aix4.[012].*)
9886
        # We only want to do this on AIX 4.2 and lower, the check
9887
        # below for broken collect2 doesn't work under 4.3+
9888
          collect2name=`${CC} -print-prog-name=collect2`
9889
          if test -f "$collect2name" &&
9890
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9891
          then
9892
          # We have reworked collect2
9893
          :
9894
          else
9895
          # We have old collect2
9896
          hardcode_direct=unsupported
9897
          # It fails to find uninstalled libraries when the uninstalled
9898
          # path is not listed in the libpath.  Setting hardcode_minus_L
9899
          # to unsupported forces relinking
9900
          hardcode_minus_L=yes
9901
          hardcode_libdir_flag_spec='-L$libdir'
9902
          hardcode_libdir_separator=
9903
          fi
9904
          ;;
9905
        esac
9906
        shared_flag='-shared'
9907
        if test "$aix_use_runtimelinking" = yes; then
9908
          shared_flag="$shared_flag "'${wl}-G'
9909
        fi
9910
      else
9911
        # not using gcc
9912
        if test "$host_cpu" = ia64; then
9913
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9914
        # chokes on -Wl,-G. The following line is correct:
9915
          shared_flag='-G'
9916
        else
9917
          if test "$aix_use_runtimelinking" = yes; then
9918
            shared_flag='${wl}-G'
9919
          else
9920
            shared_flag='${wl}-bM:SRE'
9921
          fi
9922
        fi
9923
      fi
9924
 
9925
      export_dynamic_flag_spec='${wl}-bexpall'
9926
      # It seems that -bexpall does not export symbols beginning with
9927
      # underscore (_), so it is better to generate a list of symbols to export.
9928
      always_export_symbols=yes
9929
      if test "$aix_use_runtimelinking" = yes; then
9930
        # Warning - without using the other runtime loading flags (-brtl),
9931
        # -berok will link without error, but may produce a broken library.
9932
        allow_undefined_flag='-berok'
9933
        # Determine the default libpath from the value encoded in an
9934
        # empty executable.
9935
        cat >conftest.$ac_ext <<_ACEOF
9936
/* confdefs.h.  */
9937
_ACEOF
9938
cat confdefs.h >>conftest.$ac_ext
9939
cat >>conftest.$ac_ext <<_ACEOF
9940
/* end confdefs.h.  */
9941
 
9942
int
9943
main ()
9944
{
9945
 
9946
  ;
9947
  return 0;
9948
}
9949
_ACEOF
9950
rm -f conftest.$ac_objext conftest$ac_exeext
9951
if { (ac_try="$ac_link"
9952
case "(($ac_try" in
9953
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9954
  *) ac_try_echo=$ac_try;;
9955
esac
9956
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9957
$as_echo "$ac_try_echo") >&5
9958
  (eval "$ac_link") 2>conftest.er1
9959
  ac_status=$?
9960
  grep -v '^ *+' conftest.er1 >conftest.err
9961
  rm -f conftest.er1
9962
  cat conftest.err >&5
9963
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964
  (exit $ac_status); } && {
9965
         test -z "$ac_c_werror_flag" ||
9966
         test ! -s conftest.err
9967
       } && test -s conftest$ac_exeext && {
9968
         test "$cross_compiling" = yes ||
9969
         $as_test_x conftest$ac_exeext
9970
       }; then
9971
 
9972
lt_aix_libpath_sed='
9973
    /Import File Strings/,/^$/ {
9974
        /^0/ {
9975
            s/^0  *\(.*\)$/\1/
9976
            p
9977
        }
9978
    }'
9979
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9980
# Check for a 64-bit object if we didn't find anything.
9981
if test -z "$aix_libpath"; then
9982
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9983
fi
9984
else
9985
  $as_echo "$as_me: failed program was:" >&5
9986
sed 's/^/| /' conftest.$ac_ext >&5
9987
 
9988
 
9989
fi
9990
 
9991
rm -rf conftest.dSYM
9992
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9993
      conftest$ac_exeext conftest.$ac_ext
9994
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9995
 
9996
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9997
        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"
9998
      else
9999
        if test "$host_cpu" = ia64; then
10000
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10001
          allow_undefined_flag="-z nodefs"
10002
          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"
10003
        else
10004
         # Determine the default libpath from the value encoded in an
10005
         # empty executable.
10006
         cat >conftest.$ac_ext <<_ACEOF
10007
/* confdefs.h.  */
10008
_ACEOF
10009
cat confdefs.h >>conftest.$ac_ext
10010
cat >>conftest.$ac_ext <<_ACEOF
10011
/* end confdefs.h.  */
10012
 
10013
int
10014
main ()
10015
{
10016
 
10017
  ;
10018
  return 0;
10019
}
10020
_ACEOF
10021
rm -f conftest.$ac_objext conftest$ac_exeext
10022
if { (ac_try="$ac_link"
10023
case "(($ac_try" in
10024
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10025
  *) ac_try_echo=$ac_try;;
10026
esac
10027
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10028
$as_echo "$ac_try_echo") >&5
10029
  (eval "$ac_link") 2>conftest.er1
10030
  ac_status=$?
10031
  grep -v '^ *+' conftest.er1 >conftest.err
10032
  rm -f conftest.er1
10033
  cat conftest.err >&5
10034
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035
  (exit $ac_status); } && {
10036
         test -z "$ac_c_werror_flag" ||
10037
         test ! -s conftest.err
10038
       } && test -s conftest$ac_exeext && {
10039
         test "$cross_compiling" = yes ||
10040
         $as_test_x conftest$ac_exeext
10041
       }; then
10042
 
10043
lt_aix_libpath_sed='
10044
    /Import File Strings/,/^$/ {
10045
        /^0/ {
10046
            s/^0  *\(.*\)$/\1/
10047
            p
10048
        }
10049
    }'
10050
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10051
# Check for a 64-bit object if we didn't find anything.
10052
if test -z "$aix_libpath"; then
10053
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10054
fi
10055
else
10056
  $as_echo "$as_me: failed program was:" >&5
10057
sed 's/^/| /' conftest.$ac_ext >&5
10058
 
10059
 
10060
fi
10061
 
10062
rm -rf conftest.dSYM
10063
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10064
      conftest$ac_exeext conftest.$ac_ext
10065
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10066
 
10067
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10068
          # Warning - without using the other run time loading flags,
10069
          # -berok will link without error, but may produce a broken library.
10070
          no_undefined_flag=' ${wl}-bernotok'
10071
          allow_undefined_flag=' ${wl}-berok'
10072
          # Exported symbols can be pulled into shared objects from archives
10073
          whole_archive_flag_spec='$convenience'
10074
          archive_cmds_need_lc=yes
10075
          # This is similar to how AIX traditionally builds its shared libraries.
10076
          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'
10077
        fi
10078
      fi
10079
      ;;
10080
 
10081
    amigaos*)
10082
      case $host_cpu in
10083
      powerpc)
10084
            # see comment about AmigaOS4 .so support
10085
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10086
            archive_expsym_cmds=''
10087
        ;;
10088
      m68k)
10089
            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)'
10090
            hardcode_libdir_flag_spec='-L$libdir'
10091
            hardcode_minus_L=yes
10092
        ;;
10093
      esac
10094
      ;;
10095
 
10096
    bsdi[45]*)
10097
      export_dynamic_flag_spec=-rdynamic
10098
      ;;
10099
 
10100
    cygwin* | mingw* | pw32* | cegcc*)
10101
      # When not using gcc, we currently assume that we are using
10102
      # Microsoft Visual C++.
10103
      # hardcode_libdir_flag_spec is actually meaningless, as there is
10104
      # no search path for DLLs.
10105
      hardcode_libdir_flag_spec=' '
10106
      allow_undefined_flag=unsupported
10107
      # Tell ltmain to make .lib files, not .a files.
10108
      libext=lib
10109
      # Tell ltmain to make .dll files, not .so files.
10110
      shrext_cmds=".dll"
10111
      # FIXME: Setting linknames here is a bad hack.
10112
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10113
      # The linker will automatically build a .lib file if we build a DLL.
10114
      old_archive_from_new_cmds='true'
10115
      # FIXME: Should let the user specify the lib program.
10116
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10117
      fix_srcfile_path='`cygpath -w "$srcfile"`'
10118
      enable_shared_with_static_runtimes=yes
10119
      ;;
10120
 
10121
    darwin* | rhapsody*)
10122
 
10123
 
10124
  archive_cmds_need_lc=no
10125
  hardcode_direct=no
10126
  hardcode_automatic=yes
10127
  hardcode_shlibpath_var=unsupported
10128
  whole_archive_flag_spec=''
10129
  link_all_deplibs=yes
10130
  allow_undefined_flag="$_lt_dar_allow_undefined"
10131
  case $cc_basename in
10132
     ifort*) _lt_dar_can_shared=yes ;;
10133
     *) _lt_dar_can_shared=$GCC ;;
10134
  esac
10135
  if test "$_lt_dar_can_shared" = "yes"; then
10136
    output_verbose_link_cmd=echo
10137
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10138
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10139
    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}"
10140
    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}"
10141
 
10142
  else
10143
  ld_shlibs=no
10144
  fi
10145
 
10146
      ;;
10147
 
10148
    dgux*)
10149
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10150
      hardcode_libdir_flag_spec='-L$libdir'
10151
      hardcode_shlibpath_var=no
10152
      ;;
10153
 
10154
    freebsd1*)
10155
      ld_shlibs=no
10156
      ;;
10157
 
10158
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10159
    # support.  Future versions do this automatically, but an explicit c++rt0.o
10160
    # does not break anything, and helps significantly (at the cost of a little
10161
    # extra space).
10162
    freebsd2.2*)
10163
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10164
      hardcode_libdir_flag_spec='-R$libdir'
10165
      hardcode_direct=yes
10166
      hardcode_shlibpath_var=no
10167
      ;;
10168
 
10169
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10170
    freebsd2*)
10171
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10172
      hardcode_direct=yes
10173
      hardcode_minus_L=yes
10174
      hardcode_shlibpath_var=no
10175
      ;;
10176
 
10177
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10178
    freebsd* | dragonfly*)
10179
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10180
      hardcode_libdir_flag_spec='-R$libdir'
10181
      hardcode_direct=yes
10182
      hardcode_shlibpath_var=no
10183
      ;;
10184
 
10185
    hpux9*)
10186
      if test "$GCC" = yes; then
10187
        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'
10188
      else
10189
        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'
10190
      fi
10191
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10192
      hardcode_libdir_separator=:
10193
      hardcode_direct=yes
10194
 
10195
      # hardcode_minus_L: Not really in the search PATH,
10196
      # but as the default location of the library.
10197
      hardcode_minus_L=yes
10198
      export_dynamic_flag_spec='${wl}-E'
10199
      ;;
10200
 
10201
    hpux10*)
10202
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10203
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10204
      else
10205
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10206
      fi
10207
      if test "$with_gnu_ld" = no; then
10208
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10209
        hardcode_libdir_flag_spec_ld='+b $libdir'
10210
        hardcode_libdir_separator=:
10211
        hardcode_direct=yes
10212
        hardcode_direct_absolute=yes
10213
        export_dynamic_flag_spec='${wl}-E'
10214
        # hardcode_minus_L: Not really in the search PATH,
10215
        # but as the default location of the library.
10216
        hardcode_minus_L=yes
10217
      fi
10218
      ;;
10219
 
10220
    hpux11*)
10221
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10222
        case $host_cpu in
10223
        hppa*64*)
10224
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10225
          ;;
10226
        ia64*)
10227
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10228
          ;;
10229
        *)
10230
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10231
          ;;
10232
        esac
10233
      else
10234
        case $host_cpu in
10235
        hppa*64*)
10236
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10237
          ;;
10238
        ia64*)
10239
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10240
          ;;
10241
        *)
10242
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10243
          ;;
10244
        esac
10245
      fi
10246
      if test "$with_gnu_ld" = no; then
10247
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10248
        hardcode_libdir_separator=:
10249
 
10250
        case $host_cpu in
10251
        hppa*64*|ia64*)
10252
          hardcode_direct=no
10253
          hardcode_shlibpath_var=no
10254
          ;;
10255
        *)
10256
          hardcode_direct=yes
10257
          hardcode_direct_absolute=yes
10258
          export_dynamic_flag_spec='${wl}-E'
10259
 
10260
          # hardcode_minus_L: Not really in the search PATH,
10261
          # but as the default location of the library.
10262
          hardcode_minus_L=yes
10263
          ;;
10264
        esac
10265
      fi
10266
      ;;
10267
 
10268
    irix5* | irix6* | nonstopux*)
10269
      if test "$GCC" = yes; then
10270
        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'
10271
        # Try to use the -exported_symbol ld option, if it does not
10272
        # work, assume that -exports_file does not work either and
10273
        # implicitly export all symbols.
10274
        save_LDFLAGS="$LDFLAGS"
10275
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10276
        cat >conftest.$ac_ext <<_ACEOF
10277
int foo(void) {}
10278
_ACEOF
10279
rm -f conftest.$ac_objext conftest$ac_exeext
10280
if { (ac_try="$ac_link"
10281
case "(($ac_try" in
10282
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10283
  *) ac_try_echo=$ac_try;;
10284
esac
10285
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10286
$as_echo "$ac_try_echo") >&5
10287
  (eval "$ac_link") 2>conftest.er1
10288
  ac_status=$?
10289
  grep -v '^ *+' conftest.er1 >conftest.err
10290
  rm -f conftest.er1
10291
  cat conftest.err >&5
10292
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293
  (exit $ac_status); } && {
10294
         test -z "$ac_c_werror_flag" ||
10295
         test ! -s conftest.err
10296
       } && test -s conftest$ac_exeext && {
10297
         test "$cross_compiling" = yes ||
10298
         $as_test_x conftest$ac_exeext
10299
       }; then
10300
  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'
10301
 
10302
else
10303
  $as_echo "$as_me: failed program was:" >&5
10304
sed 's/^/| /' conftest.$ac_ext >&5
10305
 
10306
 
10307
fi
10308
 
10309
rm -rf conftest.dSYM
10310
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10311
      conftest$ac_exeext conftest.$ac_ext
10312
        LDFLAGS="$save_LDFLAGS"
10313
      else
10314
        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'
10315
        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'
10316
      fi
10317
      archive_cmds_need_lc='no'
10318
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10319
      hardcode_libdir_separator=:
10320
      inherit_rpath=yes
10321
      link_all_deplibs=yes
10322
      ;;
10323
 
10324
    netbsd*)
10325
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10326
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10327
      else
10328
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10329
      fi
10330
      hardcode_libdir_flag_spec='-R$libdir'
10331
      hardcode_direct=yes
10332
      hardcode_shlibpath_var=no
10333
      ;;
10334
 
10335
    newsos6)
10336
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10337
      hardcode_direct=yes
10338
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10339
      hardcode_libdir_separator=:
10340
      hardcode_shlibpath_var=no
10341
      ;;
10342
 
10343
    *nto* | *qnx*)
10344
      ;;
10345
 
10346
    openbsd*)
10347
      if test -f /usr/libexec/ld.so; then
10348
        hardcode_direct=yes
10349
        hardcode_shlibpath_var=no
10350
        hardcode_direct_absolute=yes
10351
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10352
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10353
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10354
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10355
          export_dynamic_flag_spec='${wl}-E'
10356
        else
10357
          case $host_os in
10358
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10359
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10360
             hardcode_libdir_flag_spec='-R$libdir'
10361
             ;;
10362
           *)
10363
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10364
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10365
             ;;
10366
          esac
10367
        fi
10368
      else
10369
        ld_shlibs=no
10370
      fi
10371
      ;;
10372
 
10373
    os2*)
10374
      hardcode_libdir_flag_spec='-L$libdir'
10375
      hardcode_minus_L=yes
10376
      allow_undefined_flag=unsupported
10377
      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'
10378
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10379
      ;;
10380
 
10381
    osf3*)
10382
      if test "$GCC" = yes; then
10383
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10384
        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'
10385
      else
10386
        allow_undefined_flag=' -expect_unresolved \*'
10387
        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'
10388
      fi
10389
      archive_cmds_need_lc='no'
10390
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10391
      hardcode_libdir_separator=:
10392
      ;;
10393
 
10394
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10395
      if test "$GCC" = yes; then
10396
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10397
        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'
10398
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10399
      else
10400
        allow_undefined_flag=' -expect_unresolved \*'
10401
        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'
10402
        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~
10403
        $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'
10404
 
10405
        # Both c and cxx compiler support -rpath directly
10406
        hardcode_libdir_flag_spec='-rpath $libdir'
10407
      fi
10408
      archive_cmds_need_lc='no'
10409
      hardcode_libdir_separator=:
10410
      ;;
10411
 
10412
    solaris*)
10413
      no_undefined_flag=' -z defs'
10414
      if test "$GCC" = yes; then
10415
        wlarc='${wl}'
10416
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10417
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10418
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10419
      else
10420
        case `$CC -V 2>&1` in
10421
        *"Compilers 5.0"*)
10422
          wlarc=''
10423
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10424
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10425
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10426
          ;;
10427
        *)
10428
          wlarc='${wl}'
10429
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10430
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10431
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10432
          ;;
10433
        esac
10434
      fi
10435
      hardcode_libdir_flag_spec='-R$libdir'
10436
      hardcode_shlibpath_var=no
10437
      case $host_os in
10438
      solaris2.[0-5] | solaris2.[0-5].*) ;;
10439
      *)
10440
        # The compiler driver will combine and reorder linker options,
10441
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
10442
        # but is careful enough not to reorder.
10443
        # Supported since Solaris 2.6 (maybe 2.5.1?)
10444
        if test "$GCC" = yes; then
10445
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10446
        else
10447
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10448
        fi
10449
        ;;
10450
      esac
10451
      link_all_deplibs=yes
10452
      ;;
10453
 
10454
    sunos4*)
10455
      if test "x$host_vendor" = xsequent; then
10456
        # Use $CC to link under sequent, because it throws in some extra .o
10457
        # files that make .init and .fini sections work.
10458
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10459
      else
10460
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10461
      fi
10462
      hardcode_libdir_flag_spec='-L$libdir'
10463
      hardcode_direct=yes
10464
      hardcode_minus_L=yes
10465
      hardcode_shlibpath_var=no
10466
      ;;
10467
 
10468
    sysv4)
10469
      case $host_vendor in
10470
        sni)
10471
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10472
          hardcode_direct=yes # is this really true???
10473
        ;;
10474
        siemens)
10475
          ## LD is ld it makes a PLAMLIB
10476
          ## CC just makes a GrossModule.
10477
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10478
          reload_cmds='$CC -r -o $output$reload_objs'
10479
          hardcode_direct=no
10480
        ;;
10481
        motorola)
10482
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10483
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10484
        ;;
10485
      esac
10486
      runpath_var='LD_RUN_PATH'
10487
      hardcode_shlibpath_var=no
10488
      ;;
10489
 
10490
    sysv4.3*)
10491
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10492
      hardcode_shlibpath_var=no
10493
      export_dynamic_flag_spec='-Bexport'
10494
      ;;
10495
 
10496
    sysv4*MP*)
10497
      if test -d /usr/nec; then
10498
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10499
        hardcode_shlibpath_var=no
10500
        runpath_var=LD_RUN_PATH
10501
        hardcode_runpath_var=yes
10502
        ld_shlibs=yes
10503
      fi
10504
      ;;
10505
 
10506
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10507
      no_undefined_flag='${wl}-z,text'
10508
      archive_cmds_need_lc=no
10509
      hardcode_shlibpath_var=no
10510
      runpath_var='LD_RUN_PATH'
10511
 
10512
      if test "$GCC" = yes; then
10513
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10514
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10515
      else
10516
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10517
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10518
      fi
10519
      ;;
10520
 
10521
    sysv5* | sco3.2v5* | sco5v6*)
10522
      # Note: We can NOT use -z defs as we might desire, because we do not
10523
      # link with -lc, and that would cause any symbols used from libc to
10524
      # always be unresolved, which means just about no library would
10525
      # ever link correctly.  If we're not using GNU ld we use -z text
10526
      # though, which does catch some bad symbols but isn't as heavy-handed
10527
      # as -z defs.
10528
      no_undefined_flag='${wl}-z,text'
10529
      allow_undefined_flag='${wl}-z,nodefs'
10530
      archive_cmds_need_lc=no
10531
      hardcode_shlibpath_var=no
10532
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10533
      hardcode_libdir_separator=':'
10534
      link_all_deplibs=yes
10535
      export_dynamic_flag_spec='${wl}-Bexport'
10536
      runpath_var='LD_RUN_PATH'
10537
 
10538
      if test "$GCC" = yes; then
10539
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10540
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10541
      else
10542
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10543
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10544
      fi
10545
      ;;
10546
 
10547
    uts4*)
10548
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10549
      hardcode_libdir_flag_spec='-L$libdir'
10550
      hardcode_shlibpath_var=no
10551
      ;;
10552
 
10553
    *)
10554
      ld_shlibs=no
10555
      ;;
10556
    esac
10557
 
10558
    if test x$host_vendor = xsni; then
10559
      case $host in
10560
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10561
        export_dynamic_flag_spec='${wl}-Blargedynsym'
10562
        ;;
10563
      esac
10564
    fi
10565
  fi
10566
 
10567
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10568
$as_echo "$ld_shlibs" >&6; }
10569
test "$ld_shlibs" = no && can_build_shared=no
10570
 
10571
with_gnu_ld=$with_gnu_ld
10572
 
10573
 
10574
 
10575
 
10576
 
10577
 
10578
 
10579
 
10580
 
10581
 
10582
 
10583
 
10584
 
10585
 
10586
 
10587
#
10588
# Do we need to explicitly link libc?
10589
#
10590
case "x$archive_cmds_need_lc" in
10591
x|xyes)
10592
  # Assume -lc should be added
10593
  archive_cmds_need_lc=yes
10594
 
10595
  if test "$enable_shared" = yes && test "$GCC" = yes; then
10596
    case $archive_cmds in
10597
    *'~'*)
10598
      # FIXME: we may have to deal with multi-command sequences.
10599
      ;;
10600
    '$CC '*)
10601
      # Test whether the compiler implicitly links with -lc since on some
10602
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10603
      # to ld, don't add -lc before -lgcc.
10604
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10605
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10606
if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
10607
  $as_echo_n "(cached) " >&6
10608
else
10609
  $RM conftest*
10610
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10611
 
10612
        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10613
  (eval $ac_compile) 2>&5
10614
  ac_status=$?
10615
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616
  (exit $ac_status); } 2>conftest.err; then
10617
          soname=conftest
10618
          lib=conftest
10619
          libobjs=conftest.$ac_objext
10620
          deplibs=
10621
          wl=$lt_prog_compiler_wl
10622
          pic_flag=$lt_prog_compiler_pic
10623
          compiler_flags=-v
10624
          linker_flags=-v
10625
          verstring=
10626
          output_objdir=.
10627
          libname=conftest
10628
          lt_save_allow_undefined_flag=$allow_undefined_flag
10629
          allow_undefined_flag=
10630
          if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10631
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10632
  ac_status=$?
10633
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634
  (exit $ac_status); }
10635
          then
10636
            lt_cv_archive_cmds_need_lc=no
10637
          else
10638
            lt_cv_archive_cmds_need_lc=yes
10639
          fi
10640
          allow_undefined_flag=$lt_save_allow_undefined_flag
10641
        else
10642
          cat conftest.err 1>&5
10643
        fi
10644
        $RM conftest*
10645
 
10646
fi
10647
{ $as_echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
10648
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10649
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10650
      ;;
10651
    esac
10652
  fi
10653
  ;;
10654
esac
10655
 
10656
 
10657
 
10658
 
10659
 
10660
 
10661
 
10662
 
10663
 
10664
 
10665
 
10666
 
10667
 
10668
 
10669
 
10670
 
10671
 
10672
 
10673
 
10674
 
10675
 
10676
 
10677
 
10678
 
10679
 
10680
 
10681
 
10682
 
10683
 
10684
 
10685
 
10686
 
10687
 
10688
 
10689
 
10690
 
10691
 
10692
 
10693
 
10694
 
10695
 
10696
 
10697
 
10698
 
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
  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10813
$as_echo_n "checking dynamic linker characteristics... " >&6; }
10814
 
10815
if test "$GCC" = yes; then
10816
  case $host_os in
10817
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10818
    *) lt_awk_arg="/^libraries:/" ;;
10819
  esac
10820
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10821
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10822
    # if the path contains ";" then we assume it to be the separator
10823
    # otherwise default to the standard path separator (i.e. ":") - it is
10824
    # assumed that no part of a normal pathname contains ";" but that should
10825
    # okay in the real world where ";" in dirpaths is itself problematic.
10826
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10827
  else
10828
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10829
  fi
10830
  # Ok, now we have the path, separated by spaces, we can step through it
10831
  # and add multilib dir if necessary.
10832
  lt_tmp_lt_search_path_spec=
10833
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10834
  for lt_sys_path in $lt_search_path_spec; do
10835
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10836
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10837
    else
10838
      test -d "$lt_sys_path" && \
10839
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10840
    fi
10841
  done
10842
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10843
BEGIN {RS=" "; FS="/|\n";} {
10844
  lt_foo="";
10845
  lt_count=0;
10846
  for (lt_i = NF; lt_i > 0; lt_i--) {
10847
    if ($lt_i != "" && $lt_i != ".") {
10848
      if ($lt_i == "..") {
10849
        lt_count++;
10850
      } else {
10851
        if (lt_count == 0) {
10852
          lt_foo="/" $lt_i lt_foo;
10853
        } else {
10854
          lt_count--;
10855
        }
10856
      }
10857
    }
10858
  }
10859
  if (lt_foo != "") { lt_freq[lt_foo]++; }
10860
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10861
}'`
10862
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10863
else
10864
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10865
fi
10866
library_names_spec=
10867
libname_spec='lib$name'
10868
soname_spec=
10869
shrext_cmds=".so"
10870
postinstall_cmds=
10871
postuninstall_cmds=
10872
finish_cmds=
10873
finish_eval=
10874
shlibpath_var=
10875
shlibpath_overrides_runpath=unknown
10876
version_type=none
10877
dynamic_linker="$host_os ld.so"
10878
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10879
need_lib_prefix=unknown
10880
hardcode_into_libs=no
10881
 
10882
# when you set need_version to no, make sure it does not cause -set_version
10883
# flags to be left without arguments
10884
need_version=unknown
10885
 
10886
case $host_os in
10887
aix3*)
10888
  version_type=linux
10889
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10890
  shlibpath_var=LIBPATH
10891
 
10892
  # AIX 3 has no versioning support, so we append a major version to the name.
10893
  soname_spec='${libname}${release}${shared_ext}$major'
10894
  ;;
10895
 
10896
aix[4-9]*)
10897
  version_type=linux
10898
  need_lib_prefix=no
10899
  need_version=no
10900
  hardcode_into_libs=yes
10901
  if test "$host_cpu" = ia64; then
10902
    # AIX 5 supports IA64
10903
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10904
    shlibpath_var=LD_LIBRARY_PATH
10905
  else
10906
    # With GCC up to 2.95.x, collect2 would create an import file
10907
    # for dependence libraries.  The import file would start with
10908
    # the line `#! .'.  This would cause the generated library to
10909
    # depend on `.', always an invalid library.  This was fixed in
10910
    # development snapshots of GCC prior to 3.0.
10911
    case $host_os in
10912
      aix4 | aix4.[01] | aix4.[01].*)
10913
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10914
           echo ' yes '
10915
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10916
        :
10917
      else
10918
        can_build_shared=no
10919
      fi
10920
      ;;
10921
    esac
10922
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10923
    # soname into executable. Probably we can add versioning support to
10924
    # collect2, so additional links can be useful in future.
10925
    if test "$aix_use_runtimelinking" = yes; then
10926
      # If using run time linking (on AIX 4.2 or later) use lib.so
10927
      # instead of lib.a to let people know that these are not
10928
      # typical AIX shared libraries.
10929
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10930
    else
10931
      # We preserve .a as extension for shared libraries through AIX4.2
10932
      # and later when we are not doing run time linking.
10933
      library_names_spec='${libname}${release}.a $libname.a'
10934
      soname_spec='${libname}${release}${shared_ext}$major'
10935
    fi
10936
    shlibpath_var=LIBPATH
10937
  fi
10938
  ;;
10939
 
10940
amigaos*)
10941
  case $host_cpu in
10942
  powerpc)
10943
    # Since July 2007 AmigaOS4 officially supports .so libraries.
10944
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10945
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10946
    ;;
10947
  m68k)
10948
    library_names_spec='$libname.ixlibrary $libname.a'
10949
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10950
    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'
10951
    ;;
10952
  esac
10953
  ;;
10954
 
10955
beos*)
10956
  library_names_spec='${libname}${shared_ext}'
10957
  dynamic_linker="$host_os ld.so"
10958
  shlibpath_var=LIBRARY_PATH
10959
  ;;
10960
 
10961
bsdi[45]*)
10962
  version_type=linux
10963
  need_version=no
10964
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10965
  soname_spec='${libname}${release}${shared_ext}$major'
10966
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10967
  shlibpath_var=LD_LIBRARY_PATH
10968
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10969
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10970
  # the default ld.so.conf also contains /usr/contrib/lib and
10971
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10972
  # libtool to hard-code these into programs
10973
  ;;
10974
 
10975
cygwin* | mingw* | pw32* | cegcc*)
10976
  version_type=windows
10977
  shrext_cmds=".dll"
10978
  need_version=no
10979
  need_lib_prefix=no
10980
 
10981
  case $GCC,$host_os in
10982
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10983
    library_names_spec='$libname.dll.a'
10984
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10985
    postinstall_cmds='base_file=`basename \${file}`~
10986
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10987
      dldir=$destdir/`dirname \$dlpath`~
10988
      test -d \$dldir || mkdir -p \$dldir~
10989
      $install_prog $dir/$dlname \$dldir/$dlname~
10990
      chmod a+x \$dldir/$dlname~
10991
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10992
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10993
      fi'
10994
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10995
      dlpath=$dir/\$dldll~
10996
       $RM \$dlpath'
10997
    shlibpath_overrides_runpath=yes
10998
 
10999
    case $host_os in
11000
    cygwin*)
11001
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11002
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11003
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11004
      ;;
11005
    mingw* | cegcc*)
11006
      # MinGW DLLs use traditional 'lib' prefix
11007
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11008
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11009
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11010
        # It is most probably a Windows format PATH printed by
11011
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11012
        # path with ; separators, and with drive letters. We can handle the
11013
        # drive letters (cygwin fileutils understands them), so leave them,
11014
        # especially as we might pass files found there to a mingw objdump,
11015
        # which wouldn't understand a cygwinified path. Ahh.
11016
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11017
      else
11018
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11019
      fi
11020
      ;;
11021
    pw32*)
11022
      # pw32 DLLs use 'pw' prefix rather than 'lib'
11023
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11024
      ;;
11025
    esac
11026
    ;;
11027
 
11028
  *)
11029
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11030
    ;;
11031
  esac
11032
  dynamic_linker='Win32 ld.exe'
11033
  # FIXME: first we should search . and the directory the executable is in
11034
  shlibpath_var=PATH
11035
  ;;
11036
 
11037
darwin* | rhapsody*)
11038
  dynamic_linker="$host_os dyld"
11039
  version_type=darwin
11040
  need_lib_prefix=no
11041
  need_version=no
11042
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11043
  soname_spec='${libname}${release}${major}$shared_ext'
11044
  shlibpath_overrides_runpath=yes
11045
  shlibpath_var=DYLD_LIBRARY_PATH
11046
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11047
 
11048
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11049
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11050
  ;;
11051
 
11052
dgux*)
11053
  version_type=linux
11054
  need_lib_prefix=no
11055
  need_version=no
11056
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11057
  soname_spec='${libname}${release}${shared_ext}$major'
11058
  shlibpath_var=LD_LIBRARY_PATH
11059
  ;;
11060
 
11061
freebsd1*)
11062
  dynamic_linker=no
11063
  ;;
11064
 
11065
freebsd* | dragonfly*)
11066
  # DragonFly does not have aout.  When/if they implement a new
11067
  # versioning mechanism, adjust this.
11068
  if test -x /usr/bin/objformat; then
11069
    objformat=`/usr/bin/objformat`
11070
  else
11071
    case $host_os in
11072
    freebsd[123]*) objformat=aout ;;
11073
    *) objformat=elf ;;
11074
    esac
11075
  fi
11076
  version_type=freebsd-$objformat
11077
  case $version_type in
11078
    freebsd-elf*)
11079
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11080
      need_version=no
11081
      need_lib_prefix=no
11082
      ;;
11083
    freebsd-*)
11084
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11085
      need_version=yes
11086
      ;;
11087
  esac
11088
  shlibpath_var=LD_LIBRARY_PATH
11089
  case $host_os in
11090
  freebsd2*)
11091
    shlibpath_overrides_runpath=yes
11092
    ;;
11093
  freebsd3.[01]* | freebsdelf3.[01]*)
11094
    shlibpath_overrides_runpath=yes
11095
    hardcode_into_libs=yes
11096
    ;;
11097
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11098
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11099
    shlibpath_overrides_runpath=no
11100
    hardcode_into_libs=yes
11101
    ;;
11102
  *) # from 4.6 on, and DragonFly
11103
    shlibpath_overrides_runpath=yes
11104
    hardcode_into_libs=yes
11105
    ;;
11106
  esac
11107
  ;;
11108
 
11109
gnu*)
11110
  version_type=linux
11111
  need_lib_prefix=no
11112
  need_version=no
11113
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11114
  soname_spec='${libname}${release}${shared_ext}$major'
11115
  shlibpath_var=LD_LIBRARY_PATH
11116
  hardcode_into_libs=yes
11117
  ;;
11118
 
11119
hpux9* | hpux10* | hpux11*)
11120
  # Give a soname corresponding to the major version so that dld.sl refuses to
11121
  # link against other versions.
11122
  version_type=sunos
11123
  need_lib_prefix=no
11124
  need_version=no
11125
  case $host_cpu in
11126
  ia64*)
11127
    shrext_cmds='.so'
11128
    hardcode_into_libs=yes
11129
    dynamic_linker="$host_os dld.so"
11130
    shlibpath_var=LD_LIBRARY_PATH
11131
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11132
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11133
    soname_spec='${libname}${release}${shared_ext}$major'
11134
    if test "X$HPUX_IA64_MODE" = X32; then
11135
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11136
    else
11137
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11138
    fi
11139
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11140
    ;;
11141
  hppa*64*)
11142
    shrext_cmds='.sl'
11143
    hardcode_into_libs=yes
11144
    dynamic_linker="$host_os dld.sl"
11145
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11146
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11147
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11148
    soname_spec='${libname}${release}${shared_ext}$major'
11149
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11150
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11151
    ;;
11152
  *)
11153
    shrext_cmds='.sl'
11154
    dynamic_linker="$host_os dld.sl"
11155
    shlibpath_var=SHLIB_PATH
11156
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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
    ;;
11160
  esac
11161
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11162
  postinstall_cmds='chmod 555 $lib'
11163
  ;;
11164
 
11165
interix[3-9]*)
11166
  version_type=linux
11167
  need_lib_prefix=no
11168
  need_version=no
11169
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11170
  soname_spec='${libname}${release}${shared_ext}$major'
11171
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11172
  shlibpath_var=LD_LIBRARY_PATH
11173
  shlibpath_overrides_runpath=no
11174
  hardcode_into_libs=yes
11175
  ;;
11176
 
11177
irix5* | irix6* | nonstopux*)
11178
  case $host_os in
11179
    nonstopux*) version_type=nonstopux ;;
11180
    *)
11181
        if test "$lt_cv_prog_gnu_ld" = yes; then
11182
                version_type=linux
11183
        else
11184
                version_type=irix
11185
        fi ;;
11186
  esac
11187
  need_lib_prefix=no
11188
  need_version=no
11189
  soname_spec='${libname}${release}${shared_ext}$major'
11190
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11191
  case $host_os in
11192
  irix5* | nonstopux*)
11193
    libsuff= shlibsuff=
11194
    ;;
11195
  *)
11196
    case $LD in # libtool.m4 will add one of these switches to LD
11197
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11198
      libsuff= shlibsuff= libmagic=32-bit;;
11199
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11200
      libsuff=32 shlibsuff=N32 libmagic=N32;;
11201
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11202
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11203
    *) libsuff= shlibsuff= libmagic=never-match;;
11204
    esac
11205
    ;;
11206
  esac
11207
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11208
  shlibpath_overrides_runpath=no
11209
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11210
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11211
  hardcode_into_libs=yes
11212
  ;;
11213
 
11214
# No shared lib support for Linux oldld, aout, or coff.
11215
linux*oldld* | linux*aout* | linux*coff*)
11216
  dynamic_linker=no
11217
  ;;
11218
 
11219
# This must be Linux ELF.
11220
linux* | k*bsd*-gnu | kopensolaris*-gnu)
11221
  version_type=linux
11222
  need_lib_prefix=no
11223
  need_version=no
11224
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11225
  soname_spec='${libname}${release}${shared_ext}$major'
11226
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11227
  shlibpath_var=LD_LIBRARY_PATH
11228
  shlibpath_overrides_runpath=no
11229
 
11230
  # Some binutils ld are patched to set DT_RUNPATH
11231
  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
11232
  $as_echo_n "(cached) " >&6
11233
else
11234
  lt_cv_shlibpath_overrides_runpath=no
11235
    save_LDFLAGS=$LDFLAGS
11236
    save_libdir=$libdir
11237
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11238
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11239
    cat >conftest.$ac_ext <<_ACEOF
11240
/* confdefs.h.  */
11241
_ACEOF
11242
cat confdefs.h >>conftest.$ac_ext
11243
cat >>conftest.$ac_ext <<_ACEOF
11244
/* end confdefs.h.  */
11245
 
11246
int
11247
main ()
11248
{
11249
 
11250
  ;
11251
  return 0;
11252
}
11253
_ACEOF
11254
rm -f conftest.$ac_objext conftest$ac_exeext
11255
if { (ac_try="$ac_link"
11256
case "(($ac_try" in
11257
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11258
  *) ac_try_echo=$ac_try;;
11259
esac
11260
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11261
$as_echo "$ac_try_echo") >&5
11262
  (eval "$ac_link") 2>conftest.er1
11263
  ac_status=$?
11264
  grep -v '^ *+' conftest.er1 >conftest.err
11265
  rm -f conftest.er1
11266
  cat conftest.err >&5
11267
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268
  (exit $ac_status); } && {
11269
         test -z "$ac_c_werror_flag" ||
11270
         test ! -s conftest.err
11271
       } && test -s conftest$ac_exeext && {
11272
         test "$cross_compiling" = yes ||
11273
         $as_test_x conftest$ac_exeext
11274
       }; then
11275
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11276
  lt_cv_shlibpath_overrides_runpath=yes
11277
fi
11278
 
11279
else
11280
  $as_echo "$as_me: failed program was:" >&5
11281
sed 's/^/| /' conftest.$ac_ext >&5
11282
 
11283
 
11284
fi
11285
 
11286
rm -rf conftest.dSYM
11287
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11288
      conftest$ac_exeext conftest.$ac_ext
11289
    LDFLAGS=$save_LDFLAGS
11290
    libdir=$save_libdir
11291
 
11292
fi
11293
 
11294
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11295
 
11296
  # This implies no fast_install, which is unacceptable.
11297
  # Some rework will be needed to allow for fast_install
11298
  # before this can be enabled.
11299
  hardcode_into_libs=yes
11300
 
11301
  # Append ld.so.conf contents to the search path
11302
  if test -f /etc/ld.so.conf; then
11303
    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' ' '`
11304
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11305
  fi
11306
 
11307
  # We used to test for /lib/ld.so.1 and disable shared libraries on
11308
  # powerpc, because MkLinux only supported shared libraries with the
11309
  # GNU dynamic linker.  Since this was broken with cross compilers,
11310
  # most powerpc-linux boxes support dynamic linking these days and
11311
  # people can always --disable-shared, the test was removed, and we
11312
  # assume the GNU/Linux dynamic linker is in use.
11313
  dynamic_linker='GNU/Linux ld.so'
11314
  ;;
11315
 
11316
netbsd*)
11317
  version_type=sunos
11318
  need_lib_prefix=no
11319
  need_version=no
11320
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11321
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11322
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11323
    dynamic_linker='NetBSD (a.out) ld.so'
11324
  else
11325
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11326
    soname_spec='${libname}${release}${shared_ext}$major'
11327
    dynamic_linker='NetBSD ld.elf_so'
11328
  fi
11329
  shlibpath_var=LD_LIBRARY_PATH
11330
  shlibpath_overrides_runpath=yes
11331
  hardcode_into_libs=yes
11332
  ;;
11333
 
11334
newsos6)
11335
  version_type=linux
11336
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11337
  shlibpath_var=LD_LIBRARY_PATH
11338
  shlibpath_overrides_runpath=yes
11339
  ;;
11340
 
11341
*nto* | *qnx*)
11342
  version_type=qnx
11343
  need_lib_prefix=no
11344
  need_version=no
11345
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11346
  soname_spec='${libname}${release}${shared_ext}$major'
11347
  shlibpath_var=LD_LIBRARY_PATH
11348
  shlibpath_overrides_runpath=no
11349
  hardcode_into_libs=yes
11350
  dynamic_linker='ldqnx.so'
11351
  ;;
11352
 
11353
openbsd*)
11354
  version_type=sunos
11355
  sys_lib_dlsearch_path_spec="/usr/lib"
11356
  need_lib_prefix=no
11357
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11358
  case $host_os in
11359
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11360
    *)                          need_version=no  ;;
11361
  esac
11362
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11363
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11364
  shlibpath_var=LD_LIBRARY_PATH
11365
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11366
    case $host_os in
11367
      openbsd2.[89] | openbsd2.[89].*)
11368
        shlibpath_overrides_runpath=no
11369
        ;;
11370
      *)
11371
        shlibpath_overrides_runpath=yes
11372
        ;;
11373
      esac
11374
  else
11375
    shlibpath_overrides_runpath=yes
11376
  fi
11377
  ;;
11378
 
11379
os2*)
11380
  libname_spec='$name'
11381
  shrext_cmds=".dll"
11382
  need_lib_prefix=no
11383
  library_names_spec='$libname${shared_ext} $libname.a'
11384
  dynamic_linker='OS/2 ld.exe'
11385
  shlibpath_var=LIBPATH
11386
  ;;
11387
 
11388
osf3* | osf4* | osf5*)
11389
  version_type=osf
11390
  need_lib_prefix=no
11391
  need_version=no
11392
  soname_spec='${libname}${release}${shared_ext}$major'
11393
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11394
  shlibpath_var=LD_LIBRARY_PATH
11395
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11396
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11397
  ;;
11398
 
11399
rdos*)
11400
  dynamic_linker=no
11401
  ;;
11402
 
11403
solaris*)
11404
  version_type=linux
11405
  need_lib_prefix=no
11406
  need_version=no
11407
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11408
  soname_spec='${libname}${release}${shared_ext}$major'
11409
  shlibpath_var=LD_LIBRARY_PATH
11410
  shlibpath_overrides_runpath=yes
11411
  hardcode_into_libs=yes
11412
  # ldd complains unless libraries are executable
11413
  postinstall_cmds='chmod +x $lib'
11414
  ;;
11415
 
11416
sunos4*)
11417
  version_type=sunos
11418
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11419
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11420
  shlibpath_var=LD_LIBRARY_PATH
11421
  shlibpath_overrides_runpath=yes
11422
  if test "$with_gnu_ld" = yes; then
11423
    need_lib_prefix=no
11424
  fi
11425
  need_version=yes
11426
  ;;
11427
 
11428
sysv4 | sysv4.3*)
11429
  version_type=linux
11430
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11431
  soname_spec='${libname}${release}${shared_ext}$major'
11432
  shlibpath_var=LD_LIBRARY_PATH
11433
  case $host_vendor in
11434
    sni)
11435
      shlibpath_overrides_runpath=no
11436
      need_lib_prefix=no
11437
      runpath_var=LD_RUN_PATH
11438
      ;;
11439
    siemens)
11440
      need_lib_prefix=no
11441
      ;;
11442
    motorola)
11443
      need_lib_prefix=no
11444
      need_version=no
11445
      shlibpath_overrides_runpath=no
11446
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11447
      ;;
11448
  esac
11449
  ;;
11450
 
11451
sysv4*MP*)
11452
  if test -d /usr/nec ;then
11453
    version_type=linux
11454
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11455
    soname_spec='$libname${shared_ext}.$major'
11456
    shlibpath_var=LD_LIBRARY_PATH
11457
  fi
11458
  ;;
11459
 
11460
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11461
  version_type=freebsd-elf
11462
  need_lib_prefix=no
11463
  need_version=no
11464
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11465
  soname_spec='${libname}${release}${shared_ext}$major'
11466
  shlibpath_var=LD_LIBRARY_PATH
11467
  shlibpath_overrides_runpath=yes
11468
  hardcode_into_libs=yes
11469
  if test "$with_gnu_ld" = yes; then
11470
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11471
  else
11472
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11473
    case $host_os in
11474
      sco3.2v5*)
11475
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11476
        ;;
11477
    esac
11478
  fi
11479
  sys_lib_dlsearch_path_spec='/usr/lib'
11480
  ;;
11481
 
11482
tpf*)
11483
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11484
  version_type=linux
11485
  need_lib_prefix=no
11486
  need_version=no
11487
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11488
  shlibpath_var=LD_LIBRARY_PATH
11489
  shlibpath_overrides_runpath=no
11490
  hardcode_into_libs=yes
11491
  ;;
11492
 
11493
uts4*)
11494
  version_type=linux
11495
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11496
  soname_spec='${libname}${release}${shared_ext}$major'
11497
  shlibpath_var=LD_LIBRARY_PATH
11498
  ;;
11499
 
11500
*)
11501
  dynamic_linker=no
11502
  ;;
11503
esac
11504
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11505
$as_echo "$dynamic_linker" >&6; }
11506
test "$dynamic_linker" = no && can_build_shared=no
11507
 
11508
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11509
if test "$GCC" = yes; then
11510
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11511
fi
11512
 
11513
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11514
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11515
fi
11516
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11517
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11518
fi
11519
 
11520
 
11521
 
11522
 
11523
 
11524
 
11525
 
11526
 
11527
 
11528
 
11529
 
11530
 
11531
 
11532
 
11533
 
11534
 
11535
 
11536
 
11537
 
11538
 
11539
 
11540
 
11541
 
11542
 
11543
 
11544
 
11545
 
11546
 
11547
 
11548
 
11549
 
11550
 
11551
 
11552
 
11553
 
11554
 
11555
 
11556
 
11557
 
11558
 
11559
 
11560
 
11561
 
11562
 
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
  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11607
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11608
hardcode_action=
11609
if test -n "$hardcode_libdir_flag_spec" ||
11610
   test -n "$runpath_var" ||
11611
   test "X$hardcode_automatic" = "Xyes" ; then
11612
 
11613
  # We can hardcode non-existent directories.
11614
  if test "$hardcode_direct" != no &&
11615
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11616
     # have to relink, otherwise we might link with an installed library
11617
     # when we should be linking with a yet-to-be-installed one
11618
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11619
     test "$hardcode_minus_L" != no; then
11620
    # Linking always hardcodes the temporary library directory.
11621
    hardcode_action=relink
11622
  else
11623
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11624
    hardcode_action=immediate
11625
  fi
11626
else
11627
  # We cannot hardcode anything, or else we can only hardcode existing
11628
  # directories.
11629
  hardcode_action=unsupported
11630
fi
11631
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11632
$as_echo "$hardcode_action" >&6; }
11633
 
11634
if test "$hardcode_action" = relink ||
11635
   test "$inherit_rpath" = yes; then
11636
  # Fast installation is not supported
11637
  enable_fast_install=no
11638
elif test "$shlibpath_overrides_runpath" = yes ||
11639
     test "$enable_shared" = no; then
11640
  # Fast installation is not necessary
11641
  enable_fast_install=needless
11642
fi
11643
 
11644
 
11645
 
11646
 
11647
 
11648
 
11649
  if test "x$enable_dlopen" != xyes; then
11650
  enable_dlopen=unknown
11651
  enable_dlopen_self=unknown
11652
  enable_dlopen_self_static=unknown
11653
else
11654
  lt_cv_dlopen=no
11655
  lt_cv_dlopen_libs=
11656
 
11657
  case $host_os in
11658
  beos*)
11659
    lt_cv_dlopen="load_add_on"
11660
    lt_cv_dlopen_libs=
11661
    lt_cv_dlopen_self=yes
11662
    ;;
11663
 
11664
  mingw* | pw32* | cegcc*)
11665
    lt_cv_dlopen="LoadLibrary"
11666
    lt_cv_dlopen_libs=
11667
    ;;
11668
 
11669
  cygwin*)
11670
    lt_cv_dlopen="dlopen"
11671
    lt_cv_dlopen_libs=
11672
    ;;
11673
 
11674
  darwin*)
11675
  # if libdl is installed we need to link against it
11676
    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11677
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11678
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11679
  $as_echo_n "(cached) " >&6
11680
else
11681
  ac_check_lib_save_LIBS=$LIBS
11682
LIBS="-ldl  $LIBS"
11683
cat >conftest.$ac_ext <<_ACEOF
11684
/* confdefs.h.  */
11685
_ACEOF
11686
cat confdefs.h >>conftest.$ac_ext
11687
cat >>conftest.$ac_ext <<_ACEOF
11688
/* end confdefs.h.  */
11689
 
11690
/* Override any GCC internal prototype to avoid an error.
11691
   Use char because int might match the return type of a GCC
11692
   builtin and then its argument prototype would still apply.  */
11693
#ifdef __cplusplus
11694
extern "C"
11695
#endif
11696
char dlopen ();
11697
int
11698
main ()
11699
{
11700
return dlopen ();
11701
  ;
11702
  return 0;
11703
}
11704
_ACEOF
11705
rm -f conftest.$ac_objext conftest$ac_exeext
11706
if { (ac_try="$ac_link"
11707
case "(($ac_try" in
11708
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11709
  *) ac_try_echo=$ac_try;;
11710
esac
11711
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11712
$as_echo "$ac_try_echo") >&5
11713
  (eval "$ac_link") 2>conftest.er1
11714
  ac_status=$?
11715
  grep -v '^ *+' conftest.er1 >conftest.err
11716
  rm -f conftest.er1
11717
  cat conftest.err >&5
11718
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719
  (exit $ac_status); } && {
11720
         test -z "$ac_c_werror_flag" ||
11721
         test ! -s conftest.err
11722
       } && test -s conftest$ac_exeext && {
11723
         test "$cross_compiling" = yes ||
11724
         $as_test_x conftest$ac_exeext
11725
       }; then
11726
  ac_cv_lib_dl_dlopen=yes
11727
else
11728
  $as_echo "$as_me: failed program was:" >&5
11729
sed 's/^/| /' conftest.$ac_ext >&5
11730
 
11731
        ac_cv_lib_dl_dlopen=no
11732
fi
11733
 
11734
rm -rf conftest.dSYM
11735
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11736
      conftest$ac_exeext conftest.$ac_ext
11737
LIBS=$ac_check_lib_save_LIBS
11738
fi
11739
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11740
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11741
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11742
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11743
else
11744
 
11745
    lt_cv_dlopen="dyld"
11746
    lt_cv_dlopen_libs=
11747
    lt_cv_dlopen_self=yes
11748
 
11749
fi
11750
 
11751
    ;;
11752
 
11753
  *)
11754
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11755
$as_echo_n "checking for shl_load... " >&6; }
11756
if test "${ac_cv_func_shl_load+set}" = set; then
11757
  $as_echo_n "(cached) " >&6
11758
else
11759
  cat >conftest.$ac_ext <<_ACEOF
11760
/* confdefs.h.  */
11761
_ACEOF
11762
cat confdefs.h >>conftest.$ac_ext
11763
cat >>conftest.$ac_ext <<_ACEOF
11764
/* end confdefs.h.  */
11765
/* Define shl_load to an innocuous variant, in case  declares shl_load.
11766
   For example, HP-UX 11i  declares gettimeofday.  */
11767
#define shl_load innocuous_shl_load
11768
 
11769
/* System header to define __stub macros and hopefully few prototypes,
11770
    which can conflict with char shl_load (); below.
11771
    Prefer  to  if __STDC__ is defined, since
11772
     exists even on freestanding compilers.  */
11773
 
11774
#ifdef __STDC__
11775
# include 
11776
#else
11777
# include 
11778
#endif
11779
 
11780
#undef shl_load
11781
 
11782
/* Override any GCC internal prototype to avoid an error.
11783
   Use char because int might match the return type of a GCC
11784
   builtin and then its argument prototype would still apply.  */
11785
#ifdef __cplusplus
11786
extern "C"
11787
#endif
11788
char shl_load ();
11789
/* The GNU C library defines this for functions which it implements
11790
    to always fail with ENOSYS.  Some functions are actually named
11791
    something starting with __ and the normal name is an alias.  */
11792
#if defined __stub_shl_load || defined __stub___shl_load
11793
choke me
11794
#endif
11795
 
11796
int
11797
main ()
11798
{
11799
return shl_load ();
11800
  ;
11801
  return 0;
11802
}
11803
_ACEOF
11804
rm -f conftest.$ac_objext conftest$ac_exeext
11805
if { (ac_try="$ac_link"
11806
case "(($ac_try" in
11807
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11808
  *) ac_try_echo=$ac_try;;
11809
esac
11810
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11811
$as_echo "$ac_try_echo") >&5
11812
  (eval "$ac_link") 2>conftest.er1
11813
  ac_status=$?
11814
  grep -v '^ *+' conftest.er1 >conftest.err
11815
  rm -f conftest.er1
11816
  cat conftest.err >&5
11817
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818
  (exit $ac_status); } && {
11819
         test -z "$ac_c_werror_flag" ||
11820
         test ! -s conftest.err
11821
       } && test -s conftest$ac_exeext && {
11822
         test "$cross_compiling" = yes ||
11823
         $as_test_x conftest$ac_exeext
11824
       }; then
11825
  ac_cv_func_shl_load=yes
11826
else
11827
  $as_echo "$as_me: failed program was:" >&5
11828
sed 's/^/| /' conftest.$ac_ext >&5
11829
 
11830
        ac_cv_func_shl_load=no
11831
fi
11832
 
11833
rm -rf conftest.dSYM
11834
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11835
      conftest$ac_exeext conftest.$ac_ext
11836
fi
11837
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11838
$as_echo "$ac_cv_func_shl_load" >&6; }
11839
if test "x$ac_cv_func_shl_load" = x""yes; then
11840
  lt_cv_dlopen="shl_load"
11841
else
11842
  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11843
$as_echo_n "checking for shl_load in -ldld... " >&6; }
11844
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11845
  $as_echo_n "(cached) " >&6
11846
else
11847
  ac_check_lib_save_LIBS=$LIBS
11848
LIBS="-ldld  $LIBS"
11849
cat >conftest.$ac_ext <<_ACEOF
11850
/* confdefs.h.  */
11851
_ACEOF
11852
cat confdefs.h >>conftest.$ac_ext
11853
cat >>conftest.$ac_ext <<_ACEOF
11854
/* end confdefs.h.  */
11855
 
11856
/* Override any GCC internal prototype to avoid an error.
11857
   Use char because int might match the return type of a GCC
11858
   builtin and then its argument prototype would still apply.  */
11859
#ifdef __cplusplus
11860
extern "C"
11861
#endif
11862
char shl_load ();
11863
int
11864
main ()
11865
{
11866
return shl_load ();
11867
  ;
11868
  return 0;
11869
}
11870
_ACEOF
11871
rm -f conftest.$ac_objext conftest$ac_exeext
11872
if { (ac_try="$ac_link"
11873
case "(($ac_try" in
11874
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11875
  *) ac_try_echo=$ac_try;;
11876
esac
11877
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11878
$as_echo "$ac_try_echo") >&5
11879
  (eval "$ac_link") 2>conftest.er1
11880
  ac_status=$?
11881
  grep -v '^ *+' conftest.er1 >conftest.err
11882
  rm -f conftest.er1
11883
  cat conftest.err >&5
11884
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885
  (exit $ac_status); } && {
11886
         test -z "$ac_c_werror_flag" ||
11887
         test ! -s conftest.err
11888
       } && test -s conftest$ac_exeext && {
11889
         test "$cross_compiling" = yes ||
11890
         $as_test_x conftest$ac_exeext
11891
       }; then
11892
  ac_cv_lib_dld_shl_load=yes
11893
else
11894
  $as_echo "$as_me: failed program was:" >&5
11895
sed 's/^/| /' conftest.$ac_ext >&5
11896
 
11897
        ac_cv_lib_dld_shl_load=no
11898
fi
11899
 
11900
rm -rf conftest.dSYM
11901
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11902
      conftest$ac_exeext conftest.$ac_ext
11903
LIBS=$ac_check_lib_save_LIBS
11904
fi
11905
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11906
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11907
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11908
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11909
else
11910
  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11911
$as_echo_n "checking for dlopen... " >&6; }
11912
if test "${ac_cv_func_dlopen+set}" = set; then
11913
  $as_echo_n "(cached) " >&6
11914
else
11915
  cat >conftest.$ac_ext <<_ACEOF
11916
/* confdefs.h.  */
11917
_ACEOF
11918
cat confdefs.h >>conftest.$ac_ext
11919
cat >>conftest.$ac_ext <<_ACEOF
11920
/* end confdefs.h.  */
11921
/* Define dlopen to an innocuous variant, in case  declares dlopen.
11922
   For example, HP-UX 11i  declares gettimeofday.  */
11923
#define dlopen innocuous_dlopen
11924
 
11925
/* System header to define __stub macros and hopefully few prototypes,
11926
    which can conflict with char dlopen (); below.
11927
    Prefer  to  if __STDC__ is defined, since
11928
     exists even on freestanding compilers.  */
11929
 
11930
#ifdef __STDC__
11931
# include 
11932
#else
11933
# include 
11934
#endif
11935
 
11936
#undef dlopen
11937
 
11938
/* Override any GCC internal prototype to avoid an error.
11939
   Use char because int might match the return type of a GCC
11940
   builtin and then its argument prototype would still apply.  */
11941
#ifdef __cplusplus
11942
extern "C"
11943
#endif
11944
char dlopen ();
11945
/* The GNU C library defines this for functions which it implements
11946
    to always fail with ENOSYS.  Some functions are actually named
11947
    something starting with __ and the normal name is an alias.  */
11948
#if defined __stub_dlopen || defined __stub___dlopen
11949
choke me
11950
#endif
11951
 
11952
int
11953
main ()
11954
{
11955
return dlopen ();
11956
  ;
11957
  return 0;
11958
}
11959
_ACEOF
11960
rm -f conftest.$ac_objext conftest$ac_exeext
11961
if { (ac_try="$ac_link"
11962
case "(($ac_try" in
11963
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11964
  *) ac_try_echo=$ac_try;;
11965
esac
11966
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11967
$as_echo "$ac_try_echo") >&5
11968
  (eval "$ac_link") 2>conftest.er1
11969
  ac_status=$?
11970
  grep -v '^ *+' conftest.er1 >conftest.err
11971
  rm -f conftest.er1
11972
  cat conftest.err >&5
11973
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974
  (exit $ac_status); } && {
11975
         test -z "$ac_c_werror_flag" ||
11976
         test ! -s conftest.err
11977
       } && test -s conftest$ac_exeext && {
11978
         test "$cross_compiling" = yes ||
11979
         $as_test_x conftest$ac_exeext
11980
       }; then
11981
  ac_cv_func_dlopen=yes
11982
else
11983
  $as_echo "$as_me: failed program was:" >&5
11984
sed 's/^/| /' conftest.$ac_ext >&5
11985
 
11986
        ac_cv_func_dlopen=no
11987
fi
11988
 
11989
rm -rf conftest.dSYM
11990
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11991
      conftest$ac_exeext conftest.$ac_ext
11992
fi
11993
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11994
$as_echo "$ac_cv_func_dlopen" >&6; }
11995
if test "x$ac_cv_func_dlopen" = x""yes; then
11996
  lt_cv_dlopen="dlopen"
11997
else
11998
  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11999
$as_echo_n "checking for dlopen in -ldl... " >&6; }
12000
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12001
  $as_echo_n "(cached) " >&6
12002
else
12003
  ac_check_lib_save_LIBS=$LIBS
12004
LIBS="-ldl  $LIBS"
12005
cat >conftest.$ac_ext <<_ACEOF
12006
/* confdefs.h.  */
12007
_ACEOF
12008
cat confdefs.h >>conftest.$ac_ext
12009
cat >>conftest.$ac_ext <<_ACEOF
12010
/* end confdefs.h.  */
12011
 
12012
/* Override any GCC internal prototype to avoid an error.
12013
   Use char because int might match the return type of a GCC
12014
   builtin and then its argument prototype would still apply.  */
12015
#ifdef __cplusplus
12016
extern "C"
12017
#endif
12018
char dlopen ();
12019
int
12020
main ()
12021
{
12022
return dlopen ();
12023
  ;
12024
  return 0;
12025
}
12026
_ACEOF
12027
rm -f conftest.$ac_objext conftest$ac_exeext
12028
if { (ac_try="$ac_link"
12029
case "(($ac_try" in
12030
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12031
  *) ac_try_echo=$ac_try;;
12032
esac
12033
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12034
$as_echo "$ac_try_echo") >&5
12035
  (eval "$ac_link") 2>conftest.er1
12036
  ac_status=$?
12037
  grep -v '^ *+' conftest.er1 >conftest.err
12038
  rm -f conftest.er1
12039
  cat conftest.err >&5
12040
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041
  (exit $ac_status); } && {
12042
         test -z "$ac_c_werror_flag" ||
12043
         test ! -s conftest.err
12044
       } && test -s conftest$ac_exeext && {
12045
         test "$cross_compiling" = yes ||
12046
         $as_test_x conftest$ac_exeext
12047
       }; then
12048
  ac_cv_lib_dl_dlopen=yes
12049
else
12050
  $as_echo "$as_me: failed program was:" >&5
12051
sed 's/^/| /' conftest.$ac_ext >&5
12052
 
12053
        ac_cv_lib_dl_dlopen=no
12054
fi
12055
 
12056
rm -rf conftest.dSYM
12057
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12058
      conftest$ac_exeext conftest.$ac_ext
12059
LIBS=$ac_check_lib_save_LIBS
12060
fi
12061
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12062
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12063
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12064
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12065
else
12066
  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12067
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12068
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12069
  $as_echo_n "(cached) " >&6
12070
else
12071
  ac_check_lib_save_LIBS=$LIBS
12072
LIBS="-lsvld  $LIBS"
12073
cat >conftest.$ac_ext <<_ACEOF
12074
/* confdefs.h.  */
12075
_ACEOF
12076
cat confdefs.h >>conftest.$ac_ext
12077
cat >>conftest.$ac_ext <<_ACEOF
12078
/* end confdefs.h.  */
12079
 
12080
/* Override any GCC internal prototype to avoid an error.
12081
   Use char because int might match the return type of a GCC
12082
   builtin and then its argument prototype would still apply.  */
12083
#ifdef __cplusplus
12084
extern "C"
12085
#endif
12086
char dlopen ();
12087
int
12088
main ()
12089
{
12090
return dlopen ();
12091
  ;
12092
  return 0;
12093
}
12094
_ACEOF
12095
rm -f conftest.$ac_objext conftest$ac_exeext
12096
if { (ac_try="$ac_link"
12097
case "(($ac_try" in
12098
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12099
  *) ac_try_echo=$ac_try;;
12100
esac
12101
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12102
$as_echo "$ac_try_echo") >&5
12103
  (eval "$ac_link") 2>conftest.er1
12104
  ac_status=$?
12105
  grep -v '^ *+' conftest.er1 >conftest.err
12106
  rm -f conftest.er1
12107
  cat conftest.err >&5
12108
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109
  (exit $ac_status); } && {
12110
         test -z "$ac_c_werror_flag" ||
12111
         test ! -s conftest.err
12112
       } && test -s conftest$ac_exeext && {
12113
         test "$cross_compiling" = yes ||
12114
         $as_test_x conftest$ac_exeext
12115
       }; then
12116
  ac_cv_lib_svld_dlopen=yes
12117
else
12118
  $as_echo "$as_me: failed program was:" >&5
12119
sed 's/^/| /' conftest.$ac_ext >&5
12120
 
12121
        ac_cv_lib_svld_dlopen=no
12122
fi
12123
 
12124
rm -rf conftest.dSYM
12125
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12126
      conftest$ac_exeext conftest.$ac_ext
12127
LIBS=$ac_check_lib_save_LIBS
12128
fi
12129
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12130
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12131
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12132
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12133
else
12134
  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12135
$as_echo_n "checking for dld_link in -ldld... " >&6; }
12136
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12137
  $as_echo_n "(cached) " >&6
12138
else
12139
  ac_check_lib_save_LIBS=$LIBS
12140
LIBS="-ldld  $LIBS"
12141
cat >conftest.$ac_ext <<_ACEOF
12142
/* confdefs.h.  */
12143
_ACEOF
12144
cat confdefs.h >>conftest.$ac_ext
12145
cat >>conftest.$ac_ext <<_ACEOF
12146
/* end confdefs.h.  */
12147
 
12148
/* Override any GCC internal prototype to avoid an error.
12149
   Use char because int might match the return type of a GCC
12150
   builtin and then its argument prototype would still apply.  */
12151
#ifdef __cplusplus
12152
extern "C"
12153
#endif
12154
char dld_link ();
12155
int
12156
main ()
12157
{
12158
return dld_link ();
12159
  ;
12160
  return 0;
12161
}
12162
_ACEOF
12163
rm -f conftest.$ac_objext conftest$ac_exeext
12164
if { (ac_try="$ac_link"
12165
case "(($ac_try" in
12166
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167
  *) ac_try_echo=$ac_try;;
12168
esac
12169
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12170
$as_echo "$ac_try_echo") >&5
12171
  (eval "$ac_link") 2>conftest.er1
12172
  ac_status=$?
12173
  grep -v '^ *+' conftest.er1 >conftest.err
12174
  rm -f conftest.er1
12175
  cat conftest.err >&5
12176
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177
  (exit $ac_status); } && {
12178
         test -z "$ac_c_werror_flag" ||
12179
         test ! -s conftest.err
12180
       } && test -s conftest$ac_exeext && {
12181
         test "$cross_compiling" = yes ||
12182
         $as_test_x conftest$ac_exeext
12183
       }; then
12184
  ac_cv_lib_dld_dld_link=yes
12185
else
12186
  $as_echo "$as_me: failed program was:" >&5
12187
sed 's/^/| /' conftest.$ac_ext >&5
12188
 
12189
        ac_cv_lib_dld_dld_link=no
12190
fi
12191
 
12192
rm -rf conftest.dSYM
12193
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12194
      conftest$ac_exeext conftest.$ac_ext
12195
LIBS=$ac_check_lib_save_LIBS
12196
fi
12197
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12198
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12199
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12200
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12201
fi
12202
 
12203
 
12204
fi
12205
 
12206
 
12207
fi
12208
 
12209
 
12210
fi
12211
 
12212
 
12213
fi
12214
 
12215
 
12216
fi
12217
 
12218
    ;;
12219
  esac
12220
 
12221
  if test "x$lt_cv_dlopen" != xno; then
12222
    enable_dlopen=yes
12223
  else
12224
    enable_dlopen=no
12225
  fi
12226
 
12227
  case $lt_cv_dlopen in
12228
  dlopen)
12229
    save_CPPFLAGS="$CPPFLAGS"
12230
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12231
 
12232
    save_LDFLAGS="$LDFLAGS"
12233
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12234
 
12235
    save_LIBS="$LIBS"
12236
    LIBS="$lt_cv_dlopen_libs $LIBS"
12237
 
12238
    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12239
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12240
if test "${lt_cv_dlopen_self+set}" = set; then
12241
  $as_echo_n "(cached) " >&6
12242
else
12243
          if test "$cross_compiling" = yes; then :
12244
  lt_cv_dlopen_self=cross
12245
else
12246
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12247
  lt_status=$lt_dlunknown
12248
  cat > conftest.$ac_ext <<_LT_EOF
12249
#line 12249 "configure"
12250
#include "confdefs.h"
12251
 
12252
#if HAVE_DLFCN_H
12253
#include 
12254
#endif
12255
 
12256
#include 
12257
 
12258
#ifdef RTLD_GLOBAL
12259
#  define LT_DLGLOBAL           RTLD_GLOBAL
12260
#else
12261
#  ifdef DL_GLOBAL
12262
#    define LT_DLGLOBAL         DL_GLOBAL
12263
#  else
12264
#    define LT_DLGLOBAL         0
12265
#  endif
12266
#endif
12267
 
12268
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12269
   find out it does not work in some platform. */
12270
#ifndef LT_DLLAZY_OR_NOW
12271
#  ifdef RTLD_LAZY
12272
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12273
#  else
12274
#    ifdef DL_LAZY
12275
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12276
#    else
12277
#      ifdef RTLD_NOW
12278
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12279
#      else
12280
#        ifdef DL_NOW
12281
#          define LT_DLLAZY_OR_NOW      DL_NOW
12282
#        else
12283
#          define LT_DLLAZY_OR_NOW      0
12284
#        endif
12285
#      endif
12286
#    endif
12287
#  endif
12288
#endif
12289
 
12290
void fnord() { int i=42;}
12291
int main ()
12292
{
12293
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12294
  int status = $lt_dlunknown;
12295
 
12296
  if (self)
12297
    {
12298
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12299
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12300
      /* dlclose (self); */
12301
    }
12302
  else
12303
    puts (dlerror ());
12304
 
12305
  return status;
12306
}
12307
_LT_EOF
12308
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12309
  (eval $ac_link) 2>&5
12310
  ac_status=$?
12311
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12313
    (./conftest; exit; ) >&5 2>/dev/null
12314
    lt_status=$?
12315
    case x$lt_status in
12316
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12317
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12318
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12319
    esac
12320
  else :
12321
    # compilation failed
12322
    lt_cv_dlopen_self=no
12323
  fi
12324
fi
12325
rm -fr conftest*
12326
 
12327
 
12328
fi
12329
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12330
$as_echo "$lt_cv_dlopen_self" >&6; }
12331
 
12332
    if test "x$lt_cv_dlopen_self" = xyes; then
12333
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12334
      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12335
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12336
if test "${lt_cv_dlopen_self_static+set}" = set; then
12337
  $as_echo_n "(cached) " >&6
12338
else
12339
          if test "$cross_compiling" = yes; then :
12340
  lt_cv_dlopen_self_static=cross
12341
else
12342
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12343
  lt_status=$lt_dlunknown
12344
  cat > conftest.$ac_ext <<_LT_EOF
12345
#line 12345 "configure"
12346
#include "confdefs.h"
12347
 
12348
#if HAVE_DLFCN_H
12349
#include 
12350
#endif
12351
 
12352
#include 
12353
 
12354
#ifdef RTLD_GLOBAL
12355
#  define LT_DLGLOBAL           RTLD_GLOBAL
12356
#else
12357
#  ifdef DL_GLOBAL
12358
#    define LT_DLGLOBAL         DL_GLOBAL
12359
#  else
12360
#    define LT_DLGLOBAL         0
12361
#  endif
12362
#endif
12363
 
12364
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12365
   find out it does not work in some platform. */
12366
#ifndef LT_DLLAZY_OR_NOW
12367
#  ifdef RTLD_LAZY
12368
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12369
#  else
12370
#    ifdef DL_LAZY
12371
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12372
#    else
12373
#      ifdef RTLD_NOW
12374
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12375
#      else
12376
#        ifdef DL_NOW
12377
#          define LT_DLLAZY_OR_NOW      DL_NOW
12378
#        else
12379
#          define LT_DLLAZY_OR_NOW      0
12380
#        endif
12381
#      endif
12382
#    endif
12383
#  endif
12384
#endif
12385
 
12386
void fnord() { int i=42;}
12387
int main ()
12388
{
12389
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12390
  int status = $lt_dlunknown;
12391
 
12392
  if (self)
12393
    {
12394
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12395
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12396
      /* dlclose (self); */
12397
    }
12398
  else
12399
    puts (dlerror ());
12400
 
12401
  return status;
12402
}
12403
_LT_EOF
12404
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12405
  (eval $ac_link) 2>&5
12406
  ac_status=$?
12407
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12409
    (./conftest; exit; ) >&5 2>/dev/null
12410
    lt_status=$?
12411
    case x$lt_status in
12412
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12413
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12414
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12415
    esac
12416
  else :
12417
    # compilation failed
12418
    lt_cv_dlopen_self_static=no
12419
  fi
12420
fi
12421
rm -fr conftest*
12422
 
12423
 
12424
fi
12425
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12426
$as_echo "$lt_cv_dlopen_self_static" >&6; }
12427
    fi
12428
 
12429
    CPPFLAGS="$save_CPPFLAGS"
12430
    LDFLAGS="$save_LDFLAGS"
12431
    LIBS="$save_LIBS"
12432
    ;;
12433
  esac
12434
 
12435
  case $lt_cv_dlopen_self in
12436
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12437
  *) enable_dlopen_self=unknown ;;
12438
  esac
12439
 
12440
  case $lt_cv_dlopen_self_static in
12441
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12442
  *) enable_dlopen_self_static=unknown ;;
12443
  esac
12444
fi
12445
 
12446
 
12447
 
12448
 
12449
 
12450
 
12451
 
12452
 
12453
 
12454
 
12455
 
12456
 
12457
 
12458
 
12459
 
12460
 
12461
 
12462
striplib=
12463
old_striplib=
12464
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12465
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12466
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12467
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12468
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12469
  { $as_echo "$as_me:$LINENO: result: yes" >&5
12470
$as_echo "yes" >&6; }
12471
else
12472
# FIXME - insert some real tests, host_os isn't really good enough
12473
  case $host_os in
12474
  darwin*)
12475
    if test -n "$STRIP" ; then
12476
      striplib="$STRIP -x"
12477
      old_striplib="$STRIP -S"
12478
      { $as_echo "$as_me:$LINENO: result: yes" >&5
12479
$as_echo "yes" >&6; }
12480
    else
12481
      { $as_echo "$as_me:$LINENO: result: no" >&5
12482
$as_echo "no" >&6; }
12483
    fi
12484
    ;;
12485
  *)
12486
    { $as_echo "$as_me:$LINENO: result: no" >&5
12487
$as_echo "no" >&6; }
12488
    ;;
12489
  esac
12490
fi
12491
 
12492
 
12493
 
12494
 
12495
 
12496
 
12497
 
12498
 
12499
 
12500
 
12501
 
12502
 
12503
  # Report which library types will actually be built
12504
  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12505
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12506
  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12507
$as_echo "$can_build_shared" >&6; }
12508
 
12509
  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12510
$as_echo_n "checking whether to build shared libraries... " >&6; }
12511
  test "$can_build_shared" = "no" && enable_shared=no
12512
 
12513
  # On AIX, shared libraries and static libraries use the same namespace, and
12514
  # are all built from PIC.
12515
  case $host_os in
12516
  aix3*)
12517
    test "$enable_shared" = yes && enable_static=no
12518
    if test -n "$RANLIB"; then
12519
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12520
      postinstall_cmds='$RANLIB $lib'
12521
    fi
12522
    ;;
12523
 
12524
  aix[4-9]*)
12525
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12526
      test "$enable_shared" = yes && enable_static=no
12527
    fi
12528
    ;;
12529
  esac
12530
  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12531
$as_echo "$enable_shared" >&6; }
12532
 
12533
  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12534
$as_echo_n "checking whether to build static libraries... " >&6; }
12535
  # Make sure either enable_shared or enable_static is yes.
12536
  test "$enable_shared" = yes || enable_static=yes
12537
  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12538
$as_echo "$enable_static" >&6; }
12539
 
12540
 
12541
 
12542
 
12543
fi
12544
ac_ext=c
12545
ac_cpp='$CPP $CPPFLAGS'
12546
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12547
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12548
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12549
 
12550
CC="$lt_save_CC"
12551
 
12552
 
12553
 
12554
 
12555
 
12556
 
12557
 
12558
 
12559
 
12560
 
12561
 
12562
 
12563
 
12564
        ac_config_commands="$ac_config_commands libtool"
12565
 
12566
 
12567
 
12568
 
12569
# Only expand once:
12570
 
12571
 
12572
fi
12573
 
12574
if test -n "${machine_dir}"; then
12575
  case ${machine_dir} in
12576
        i386)
12577
 
12578
subdirs="$subdirs i386"
12579
 ;;
12580
  esac;
12581
fi
12582
 
12583
 if test x${machine_dir} != x; then
12584
  HAVE_MACHINE_DIR_TRUE=
12585
  HAVE_MACHINE_DIR_FALSE='#'
12586
else
12587
  HAVE_MACHINE_DIR_TRUE='#'
12588
  HAVE_MACHINE_DIR_FALSE=
12589
fi
12590
 
12591
 
12592
ac_config_files="$ac_config_files Makefile"
12593
 
12594
cat >confcache <<\_ACEOF
12595
# This file is a shell script that caches the results of configure
12596
# tests run on this system so they can be shared between configure
12597
# scripts and configure runs, see configure's option --config-cache.
12598
# It is not useful on other systems.  If it contains results you don't
12599
# want to keep, you may remove or edit it.
12600
#
12601
# config.status only pays attention to the cache file if you give it
12602
# the --recheck option to rerun configure.
12603
#
12604
# `ac_cv_env_foo' variables (set or unset) will be overridden when
12605
# loading this file, other *unset* `ac_cv_foo' will be assigned the
12606
# following values.
12607
 
12608
_ACEOF
12609
 
12610
# The following way of writing the cache mishandles newlines in values,
12611
# but we know of no workaround that is simple, portable, and efficient.
12612
# So, we kill variables containing newlines.
12613
# Ultrix sh set writes to stderr and can't be redirected directly,
12614
# and sets the high bit in the cache file unless we assign to the vars.
12615
(
12616
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12617
    eval ac_val=\$$ac_var
12618
    case $ac_val in #(
12619
    *${as_nl}*)
12620
      case $ac_var in #(
12621
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12622
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12623
      esac
12624
      case $ac_var in #(
12625
      _ | IFS | as_nl) ;; #(
12626
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12627
      *) $as_unset $ac_var ;;
12628
      esac ;;
12629
    esac
12630
  done
12631
 
12632
  (set) 2>&1 |
12633
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12634
    *${as_nl}ac_space=\ *)
12635
      # `set' does not quote correctly, so add quotes (double-quote
12636
      # substitution turns \\\\ into \\, and sed turns \\ into \).
12637
      sed -n \
12638
        "s/'/'\\\\''/g;
12639
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12640
      ;; #(
12641
    *)
12642
      # `set' quotes correctly as required by POSIX, so do not add quotes.
12643
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12644
      ;;
12645
    esac |
12646
    sort
12647
) |
12648
  sed '
12649
     /^ac_cv_env_/b end
12650
     t clear
12651
     :clear
12652
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12653
     t end
12654
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12655
     :end' >>confcache
12656
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12657
  if test -w "$cache_file"; then
12658
    test "x$cache_file" != "x/dev/null" &&
12659
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12660
$as_echo "$as_me: updating cache $cache_file" >&6;}
12661
    cat confcache >$cache_file
12662
  else
12663
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12664
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12665
  fi
12666
fi
12667
rm -f confcache
12668
 
12669
test "x$prefix" = xNONE && prefix=$ac_default_prefix
12670
# Let make expand exec_prefix.
12671
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12672
 
12673
# Transform confdefs.h into DEFS.
12674
# Protect against shell expansion while executing Makefile rules.
12675
# Protect against Makefile macro expansion.
12676
#
12677
# If the first sed substitution is executed (which looks for macros that
12678
# take arguments), then branch to the quote section.  Otherwise,
12679
# look for a macro that doesn't take arguments.
12680
ac_script='
12681
:mline
12682
/\\$/{
12683
 N
12684
 s,\\\n,,
12685
 b mline
12686
}
12687
t clear
12688
:clear
12689
s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
12690
t quote
12691
s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
12692
t quote
12693
b any
12694
:quote
12695
s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12696
s/\[/\\&/g
12697
s/\]/\\&/g
12698
s/\$/$$/g
12699
H
12700
:any
12701
${
12702
        g
12703
        s/^\n//
12704
        s/\n/ /g
12705
        p
12706
}
12707
'
12708
DEFS=`sed -n "$ac_script" confdefs.h`
12709
 
12710
 
12711
ac_libobjs=
12712
ac_ltlibobjs=
12713
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12714
  # 1. Remove the extension, and $U if already installed.
12715
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12716
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12717
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12718
  #    will be set to the directory where LIBOBJS objects are built.
12719
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12720
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12721
done
12722
LIBOBJS=$ac_libobjs
12723
 
12724
LTLIBOBJS=$ac_ltlibobjs
12725
 
12726
 
12727
if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then
12728
  { { $as_echo "$as_me:$LINENO: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
12729
Usually this means the macro was only invoked conditionally." >&5
12730
$as_echo "$as_me: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
12731
Usually this means the macro was only invoked conditionally." >&2;}
12732
   { (exit 1); exit 1; }; }
12733
fi
12734
 if test -n "$EXEEXT"; then
12735
  am__EXEEXT_TRUE=
12736
  am__EXEEXT_FALSE='#'
12737
else
12738
  am__EXEEXT_TRUE='#'
12739
  am__EXEEXT_FALSE=
12740
fi
12741
 
12742
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12743
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12744
Usually this means the macro was only invoked conditionally." >&5
12745
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
12746
Usually this means the macro was only invoked conditionally." >&2;}
12747
   { (exit 1); exit 1; }; }
12748
fi
12749
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12750
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12751
Usually this means the macro was only invoked conditionally." >&5
12752
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12753
Usually this means the macro was only invoked conditionally." >&2;}
12754
   { (exit 1); exit 1; }; }
12755
fi
12756
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12757
  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12758
Usually this means the macro was only invoked conditionally." >&5
12759
$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12760
Usually this means the macro was only invoked conditionally." >&2;}
12761
   { (exit 1); exit 1; }; }
12762
fi
12763
if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then
12764
  { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_0\" was never defined.
12765
Usually this means the macro was only invoked conditionally." >&5
12766
$as_echo "$as_me: error: conditional \"ELIX_LEVEL_0\" was never defined.
12767
Usually this means the macro was only invoked conditionally." >&2;}
12768
   { (exit 1); exit 1; }; }
12769
fi
12770
if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then
12771
  { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_1\" was never defined.
12772
Usually this means the macro was only invoked conditionally." >&5
12773
$as_echo "$as_me: error: conditional \"ELIX_LEVEL_1\" was never defined.
12774
Usually this means the macro was only invoked conditionally." >&2;}
12775
   { (exit 1); exit 1; }; }
12776
fi
12777
if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then
12778
  { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_2\" was never defined.
12779
Usually this means the macro was only invoked conditionally." >&5
12780
$as_echo "$as_me: error: conditional \"ELIX_LEVEL_2\" was never defined.
12781
Usually this means the macro was only invoked conditionally." >&2;}
12782
   { (exit 1); exit 1; }; }
12783
fi
12784
if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then
12785
  { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_3\" was never defined.
12786
Usually this means the macro was only invoked conditionally." >&5
12787
$as_echo "$as_me: error: conditional \"ELIX_LEVEL_3\" was never defined.
12788
Usually this means the macro was only invoked conditionally." >&2;}
12789
   { (exit 1); exit 1; }; }
12790
fi
12791
if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then
12792
  { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_4\" was never defined.
12793
Usually this means the macro was only invoked conditionally." >&5
12794
$as_echo "$as_me: error: conditional \"ELIX_LEVEL_4\" was never defined.
12795
Usually this means the macro was only invoked conditionally." >&2;}
12796
   { (exit 1); exit 1; }; }
12797
fi
12798
if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then
12799
  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_LIBTOOL\" was never defined.
12800
Usually this means the macro was only invoked conditionally." >&5
12801
$as_echo "$as_me: error: conditional \"USE_LIBTOOL\" was never defined.
12802
Usually this means the macro was only invoked conditionally." >&2;}
12803
   { (exit 1); exit 1; }; }
12804
fi
12805
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12806
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12807
Usually this means the macro was only invoked conditionally." >&5
12808
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12809
Usually this means the macro was only invoked conditionally." >&2;}
12810
   { (exit 1); exit 1; }; }
12811
fi
12812
if test -z "${HAVE_MACHINE_DIR_TRUE}" && test -z "${HAVE_MACHINE_DIR_FALSE}"; then
12813
  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_MACHINE_DIR\" was never defined.
12814
Usually this means the macro was only invoked conditionally." >&5
12815
$as_echo "$as_me: error: conditional \"HAVE_MACHINE_DIR\" was never defined.
12816
Usually this means the macro was only invoked conditionally." >&2;}
12817
   { (exit 1); exit 1; }; }
12818
fi
12819
 
12820
: ${CONFIG_STATUS=./config.status}
12821
ac_write_fail=0
12822
ac_clean_files_save=$ac_clean_files
12823
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12824
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12825
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12826
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12827
#! $SHELL
12828
# Generated by $as_me.
12829
# Run this file to recreate the current configuration.
12830
# Compiler output produced by configure, useful for debugging
12831
# configure, is in config.log if it exists.
12832
 
12833
debug=false
12834
ac_cs_recheck=false
12835
ac_cs_silent=false
12836
SHELL=\${CONFIG_SHELL-$SHELL}
12837
_ACEOF
12838
 
12839
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12840
## --------------------- ##
12841
## M4sh Initialization.  ##
12842
## --------------------- ##
12843
 
12844
# Be more Bourne compatible
12845
DUALCASE=1; export DUALCASE # for MKS sh
12846
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12847
  emulate sh
12848
  NULLCMD=:
12849
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12850
  # is contrary to our usage.  Disable this feature.
12851
  alias -g '${1+"$@"}'='"$@"'
12852
  setopt NO_GLOB_SUBST
12853
else
12854
  case `(set -o) 2>/dev/null` in
12855
  *posix*) set -o posix ;;
12856
esac
12857
 
12858
fi
12859
 
12860
 
12861
 
12862
 
12863
# PATH needs CR
12864
# Avoid depending upon Character Ranges.
12865
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12866
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12867
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12868
as_cr_digits='0123456789'
12869
as_cr_alnum=$as_cr_Letters$as_cr_digits
12870
 
12871
as_nl='
12872
'
12873
export as_nl
12874
# Printing a long string crashes Solaris 7 /usr/bin/printf.
12875
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12876
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12877
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12878
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12879
  as_echo='printf %s\n'
12880
  as_echo_n='printf %s'
12881
else
12882
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12883
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12884
    as_echo_n='/usr/ucb/echo -n'
12885
  else
12886
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12887
    as_echo_n_body='eval
12888
      arg=$1;
12889
      case $arg in
12890
      *"$as_nl"*)
12891
        expr "X$arg" : "X\\(.*\\)$as_nl";
12892
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12893
      esac;
12894
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12895
    '
12896
    export as_echo_n_body
12897
    as_echo_n='sh -c $as_echo_n_body as_echo'
12898
  fi
12899
  export as_echo_body
12900
  as_echo='sh -c $as_echo_body as_echo'
12901
fi
12902
 
12903
# The user is always right.
12904
if test "${PATH_SEPARATOR+set}" != set; then
12905
  PATH_SEPARATOR=:
12906
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12907
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12908
      PATH_SEPARATOR=';'
12909
  }
12910
fi
12911
 
12912
# Support unset when possible.
12913
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12914
  as_unset=unset
12915
else
12916
  as_unset=false
12917
fi
12918
 
12919
 
12920
# IFS
12921
# We need space, tab and new line, in precisely that order.  Quoting is
12922
# there to prevent editors from complaining about space-tab.
12923
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12924
# splitting by setting IFS to empty value.)
12925
IFS=" ""        $as_nl"
12926
 
12927
# Find who we are.  Look in the path if we contain no directory separator.
12928
case $0 in
12929
  *[\\/]* ) as_myself=$0 ;;
12930
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12931
for as_dir in $PATH
12932
do
12933
  IFS=$as_save_IFS
12934
  test -z "$as_dir" && as_dir=.
12935
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12936
done
12937
IFS=$as_save_IFS
12938
 
12939
     ;;
12940
esac
12941
# We did not find ourselves, most probably we were run as `sh COMMAND'
12942
# in which case we are not to be found in the path.
12943
if test "x$as_myself" = x; then
12944
  as_myself=$0
12945
fi
12946
if test ! -f "$as_myself"; then
12947
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12948
  { (exit 1); exit 1; }
12949
fi
12950
 
12951
# Work around bugs in pre-3.0 UWIN ksh.
12952
for as_var in ENV MAIL MAILPATH
12953
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12954
done
12955
PS1='$ '
12956
PS2='> '
12957
PS4='+ '
12958
 
12959
# NLS nuisances.
12960
LC_ALL=C
12961
export LC_ALL
12962
LANGUAGE=C
12963
export LANGUAGE
12964
 
12965
# Required to use basename.
12966
if expr a : '\(a\)' >/dev/null 2>&1 &&
12967
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12968
  as_expr=expr
12969
else
12970
  as_expr=false
12971
fi
12972
 
12973
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12974
  as_basename=basename
12975
else
12976
  as_basename=false
12977
fi
12978
 
12979
 
12980
# Name of the executable.
12981
as_me=`$as_basename -- "$0" ||
12982
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12983
         X"$0" : 'X\(//\)$' \| \
12984
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12985
$as_echo X/"$0" |
12986
    sed '/^.*\/\([^/][^/]*\)\/*$/{
12987
            s//\1/
12988
            q
12989
          }
12990
          /^X\/\(\/\/\)$/{
12991
            s//\1/
12992
            q
12993
          }
12994
          /^X\/\(\/\).*/{
12995
            s//\1/
12996
            q
12997
          }
12998
          s/.*/./; q'`
12999
 
13000
# CDPATH.
13001
$as_unset CDPATH
13002
 
13003
 
13004
 
13005
  as_lineno_1=$LINENO
13006
  as_lineno_2=$LINENO
13007
  test "x$as_lineno_1" != "x$as_lineno_2" &&
13008
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13009
 
13010
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13011
  # uniformly replaced by the line number.  The first 'sed' inserts a
13012
  # line-number line after each line using $LINENO; the second 'sed'
13013
  # does the real work.  The second script uses 'N' to pair each
13014
  # line-number line with the line containing $LINENO, and appends
13015
  # trailing '-' during substitution so that $LINENO is not a special
13016
  # case at line end.
13017
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13018
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
13019
  # E. McMahon (1931-1989) for sed's syntax.  :-)
13020
  sed -n '
13021
    p
13022
    /[$]LINENO/=
13023
  ' <$as_myself |
13024
    sed '
13025
      s/[$]LINENO.*/&-/
13026
      t lineno
13027
      b
13028
      :lineno
13029
      N
13030
      :loop
13031
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13032
      t loop
13033
      s/-\n.*//
13034
    ' >$as_me.lineno &&
13035
  chmod +x "$as_me.lineno" ||
13036
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13037
   { (exit 1); exit 1; }; }
13038
 
13039
  # Don't try to exec as it changes $[0], causing all sort of problems
13040
  # (the dirname of $[0] is not the place where we might find the
13041
  # original and so on.  Autoconf is especially sensitive to this).
13042
  . "./$as_me.lineno"
13043
  # Exit status is that of the last command.
13044
  exit
13045
}
13046
 
13047
 
13048
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13049
  as_dirname=dirname
13050
else
13051
  as_dirname=false
13052
fi
13053
 
13054
ECHO_C= ECHO_N= ECHO_T=
13055
case `echo -n x` in
13056
-n*)
13057
  case `echo 'x\c'` in
13058
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13059
  *)   ECHO_C='\c';;
13060
  esac;;
13061
*)
13062
  ECHO_N='-n';;
13063
esac
13064
if expr a : '\(a\)' >/dev/null 2>&1 &&
13065
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13066
  as_expr=expr
13067
else
13068
  as_expr=false
13069
fi
13070
 
13071
rm -f conf$$ conf$$.exe conf$$.file
13072
if test -d conf$$.dir; then
13073
  rm -f conf$$.dir/conf$$.file
13074
else
13075
  rm -f conf$$.dir
13076
  mkdir conf$$.dir 2>/dev/null
13077
fi
13078
if (echo >conf$$.file) 2>/dev/null; then
13079
  if ln -s conf$$.file conf$$ 2>/dev/null; then
13080
    as_ln_s='ln -s'
13081
    # ... but there are two gotchas:
13082
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13083
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13084
    # In both cases, we have to default to `cp -p'.
13085
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13086
      as_ln_s='cp -p'
13087
  elif ln conf$$.file conf$$ 2>/dev/null; then
13088
    as_ln_s=ln
13089
  else
13090
    as_ln_s='cp -p'
13091
  fi
13092
else
13093
  as_ln_s='cp -p'
13094
fi
13095
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13096
rmdir conf$$.dir 2>/dev/null
13097
 
13098
if mkdir -p . 2>/dev/null; then
13099
  as_mkdir_p=:
13100
else
13101
  test -d ./-p && rmdir ./-p
13102
  as_mkdir_p=false
13103
fi
13104
 
13105
if test -x / >/dev/null 2>&1; then
13106
  as_test_x='test -x'
13107
else
13108
  if ls -dL / >/dev/null 2>&1; then
13109
    as_ls_L_option=L
13110
  else
13111
    as_ls_L_option=
13112
  fi
13113
  as_test_x='
13114
    eval sh -c '\''
13115
      if test -d "$1"; then
13116
        test -d "$1/.";
13117
      else
13118
        case $1 in
13119
        -*)set "./$1";;
13120
        esac;
13121
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13122
        ???[sx]*):;;*)false;;esac;fi
13123
    '\'' sh
13124
  '
13125
fi
13126
as_executable_p=$as_test_x
13127
 
13128
# Sed expression to map a string onto a valid CPP name.
13129
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13130
 
13131
# Sed expression to map a string onto a valid variable name.
13132
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13133
 
13134
 
13135
exec 6>&1
13136
 
13137
# Save the log message, to keep $[0] and so on meaningful, and to
13138
# report actual input values of CONFIG_FILES etc. instead of their
13139
# values after options handling.
13140
ac_log="
13141
This file was extended by newlib $as_me 1.18.0, which was
13142
generated by GNU Autoconf 2.63.  Invocation command line was
13143
 
13144
  CONFIG_FILES    = $CONFIG_FILES
13145
  CONFIG_HEADERS  = $CONFIG_HEADERS
13146
  CONFIG_LINKS    = $CONFIG_LINKS
13147
  CONFIG_COMMANDS = $CONFIG_COMMANDS
13148
  $ $0 $@
13149
 
13150
on `(hostname || uname -n) 2>/dev/null | sed 1q`
13151
"
13152
 
13153
_ACEOF
13154
 
13155
case $ac_config_files in *"
13156
"*) set x $ac_config_files; shift; ac_config_files=$*;;
13157
esac
13158
 
13159
 
13160
 
13161
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13162
# Files that config.status was made for.
13163
config_files="$ac_config_files"
13164
config_commands="$ac_config_commands"
13165
 
13166
_ACEOF
13167
 
13168
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13169
ac_cs_usage="\
13170
\`$as_me' instantiates files from templates according to the
13171
current configuration.
13172
 
13173
Usage: $0 [OPTION]... [FILE]...
13174
 
13175
  -h, --help       print this help, then exit
13176
  -V, --version    print version number and configuration settings, then exit
13177
  -q, --quiet, --silent
13178
                   do not print progress messages
13179
  -d, --debug      don't remove temporary files
13180
      --recheck    update $as_me by reconfiguring in the same conditions
13181
      --file=FILE[:TEMPLATE]
13182
                   instantiate the configuration file FILE
13183
 
13184
Configuration files:
13185
$config_files
13186
 
13187
Configuration commands:
13188
$config_commands
13189
 
13190
Report bugs to ."
13191
 
13192
_ACEOF
13193
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13194
ac_cs_version="\\
13195
newlib config.status 1.18.0
13196
configured by $0, generated by GNU Autoconf 2.63,
13197
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13198
 
13199
Copyright (C) 2008 Free Software Foundation, Inc.
13200
This config.status script is free software; the Free Software Foundation
13201
gives unlimited permission to copy, distribute and modify it."
13202
 
13203
ac_pwd='$ac_pwd'
13204
srcdir='$srcdir'
13205
INSTALL='$INSTALL'
13206
MKDIR_P='$MKDIR_P'
13207
AWK='$AWK'
13208
test -n "\$AWK" || AWK=awk
13209
_ACEOF
13210
 
13211
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13212
# The default lists apply if the user does not specify any file.
13213
ac_need_defaults=:
13214
while test $# != 0
13215
do
13216
  case $1 in
13217
  --*=*)
13218
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13219
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13220
    ac_shift=:
13221
    ;;
13222
  *)
13223
    ac_option=$1
13224
    ac_optarg=$2
13225
    ac_shift=shift
13226
    ;;
13227
  esac
13228
 
13229
  case $ac_option in
13230
  # Handling of the options.
13231
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13232
    ac_cs_recheck=: ;;
13233
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13234
    $as_echo "$ac_cs_version"; exit ;;
13235
  --debug | --debu | --deb | --de | --d | -d )
13236
    debug=: ;;
13237
  --file | --fil | --fi | --f )
13238
    $ac_shift
13239
    case $ac_optarg in
13240
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13241
    esac
13242
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13243
    ac_need_defaults=false;;
13244
  --he | --h |  --help | --hel | -h )
13245
    $as_echo "$ac_cs_usage"; exit ;;
13246
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13247
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13248
    ac_cs_silent=: ;;
13249
 
13250
  # This is an error.
13251
  -*) { $as_echo "$as_me: error: unrecognized option: $1
13252
Try \`$0 --help' for more information." >&2
13253
   { (exit 1); exit 1; }; } ;;
13254
 
13255
  *) ac_config_targets="$ac_config_targets $1"
13256
     ac_need_defaults=false ;;
13257
 
13258
  esac
13259
  shift
13260
done
13261
 
13262
ac_configure_extra_args=
13263
 
13264
if $ac_cs_silent; then
13265
  exec 6>/dev/null
13266
  ac_configure_extra_args="$ac_configure_extra_args --silent"
13267
fi
13268
 
13269
_ACEOF
13270
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13271
if \$ac_cs_recheck; then
13272
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13273
  shift
13274
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13275
  CONFIG_SHELL='$SHELL'
13276
  export CONFIG_SHELL
13277
  exec "\$@"
13278
fi
13279
 
13280
_ACEOF
13281
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13282
exec 5>>config.log
13283
{
13284
  echo
13285
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13286
## Running $as_me. ##
13287
_ASBOX
13288
  $as_echo "$ac_log"
13289
} >&5
13290
 
13291
_ACEOF
13292
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13293
#
13294
# INIT-COMMANDS
13295
#
13296
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13297
 
13298
 
13299
# The HP-UX ksh and POSIX shell print the target directory to stdout
13300
# if CDPATH is set.
13301
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13302
 
13303
sed_quote_subst='$sed_quote_subst'
13304
double_quote_subst='$double_quote_subst'
13305
delay_variable_subst='$delay_variable_subst'
13306
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13307
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13308
AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
13309
DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13310
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13311
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13312
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13313
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13314
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13315
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13316
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13317
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13318
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13319
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13320
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13321
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13322
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13323
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13324
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13325
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13326
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13327
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13328
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13329
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13330
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13331
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13332
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13333
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13334
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13335
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13336
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13337
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13338
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13339
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13340
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13341
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13342
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13343
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13344
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13345
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13346
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13347
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13348
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13349
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13350
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13351
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13352
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"`'
13353
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"`'
13354
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13355
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13356
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13357
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13358
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13359
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13360
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13361
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13362
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13363
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13364
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13365
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13366
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13367
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13368
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13369
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13370
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13371
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13372
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13373
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13374
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13375
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13376
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13377
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13378
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13379
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13380
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13381
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13382
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13383
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13384
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13385
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13386
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13387
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13388
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13389
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13390
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13391
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13392
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13393
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13394
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13395
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13396
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13397
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13398
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13399
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13400
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13401
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13402
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13403
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13404
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13405
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13406
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13407
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13408
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13409
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13410
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13411
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13412
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13413
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13414
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13415
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13416
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13417
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13418
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13419
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13420
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13421
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13422
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13423
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13424
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13425
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13426
 
13427
LTCC='$LTCC'
13428
LTCFLAGS='$LTCFLAGS'
13429
compiler='$compiler_DEFAULT'
13430
 
13431
# Quote evaled strings.
13432
for var in SED \
13433
GREP \
13434
EGREP \
13435
FGREP \
13436
LD \
13437
NM \
13438
LN_S \
13439
lt_SP2NL \
13440
lt_NL2SP \
13441
reload_flag \
13442
deplibs_check_method \
13443
file_magic_cmd \
13444
AR \
13445
AR_FLAGS \
13446
STRIP \
13447
RANLIB \
13448
CC \
13449
CFLAGS \
13450
compiler \
13451
lt_cv_sys_global_symbol_pipe \
13452
lt_cv_sys_global_symbol_to_cdecl \
13453
lt_cv_sys_global_symbol_to_c_name_address \
13454
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13455
SHELL \
13456
ECHO \
13457
lt_prog_compiler_no_builtin_flag \
13458
lt_prog_compiler_wl \
13459
lt_prog_compiler_pic \
13460
lt_prog_compiler_static \
13461
lt_cv_prog_compiler_c_o \
13462
need_locks \
13463
DSYMUTIL \
13464
NMEDIT \
13465
LIPO \
13466
OTOOL \
13467
OTOOL64 \
13468
shrext_cmds \
13469
export_dynamic_flag_spec \
13470
whole_archive_flag_spec \
13471
compiler_needs_object \
13472
with_gnu_ld \
13473
allow_undefined_flag \
13474
no_undefined_flag \
13475
hardcode_libdir_flag_spec \
13476
hardcode_libdir_flag_spec_ld \
13477
hardcode_libdir_separator \
13478
fix_srcfile_path \
13479
exclude_expsyms \
13480
include_expsyms \
13481
file_list_spec \
13482
variables_saved_for_relink \
13483
libname_spec \
13484
library_names_spec \
13485
soname_spec \
13486
finish_eval \
13487
old_striplib \
13488
striplib; do
13489
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13490
    *[\\\\\\\`\\"\\\$]*)
13491
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13492
      ;;
13493
    *)
13494
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13495
      ;;
13496
    esac
13497
done
13498
 
13499
# Double-quote double-evaled strings.
13500
for var in reload_cmds \
13501
old_postinstall_cmds \
13502
old_postuninstall_cmds \
13503
old_archive_cmds \
13504
extract_expsyms_cmds \
13505
old_archive_from_new_cmds \
13506
old_archive_from_expsyms_cmds \
13507
archive_cmds \
13508
archive_expsym_cmds \
13509
module_cmds \
13510
module_expsym_cmds \
13511
export_symbols_cmds \
13512
prelink_cmds \
13513
postinstall_cmds \
13514
postuninstall_cmds \
13515
finish_cmds \
13516
sys_lib_search_path_spec \
13517
sys_lib_dlsearch_path_spec; do
13518
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13519
    *[\\\\\\\`\\"\\\$]*)
13520
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13521
      ;;
13522
    *)
13523
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13524
      ;;
13525
    esac
13526
done
13527
 
13528
# Fix-up fallback echo if it was mangled by the above quoting rules.
13529
case \$lt_ECHO in
13530
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13531
  ;;
13532
esac
13533
 
13534
ac_aux_dir='$ac_aux_dir'
13535
xsi_shell='$xsi_shell'
13536
lt_shell_append='$lt_shell_append'
13537
 
13538
# See if we are running on zsh, and set the options which allow our
13539
# commands through without removal of \ escapes INIT.
13540
if test -n "\${ZSH_VERSION+set}" ; then
13541
   setopt NO_GLOB_SUBST
13542
fi
13543
 
13544
 
13545
    PACKAGE='$PACKAGE'
13546
    VERSION='$VERSION'
13547
    TIMESTAMP='$TIMESTAMP'
13548
    RM='$RM'
13549
    ofile='$ofile'
13550
 
13551
 
13552
 
13553
 
13554
_ACEOF
13555
 
13556
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13557
 
13558
# Handling of arguments.
13559
for ac_config_target in $ac_config_targets
13560
do
13561
  case $ac_config_target in
13562
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13563
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13564
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13565
 
13566
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13567
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13568
   { (exit 1); exit 1; }; };;
13569
  esac
13570
done
13571
 
13572
 
13573
# If the user did not use the arguments to specify the items to instantiate,
13574
# then the envvar interface is used.  Set only those that are not.
13575
# We use the long form for the default assignment because of an extremely
13576
# bizarre bug on SunOS 4.1.3.
13577
if $ac_need_defaults; then
13578
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13579
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13580
fi
13581
 
13582
# Have a temporary directory for convenience.  Make it in the build tree
13583
# simply because there is no reason against having it here, and in addition,
13584
# creating and moving files from /tmp can sometimes cause problems.
13585
# Hook for its removal unless debugging.
13586
# Note that there is a small window in which the directory will not be cleaned:
13587
# after its creation but before its name has been assigned to `$tmp'.
13588
$debug ||
13589
{
13590
  tmp=
13591
  trap 'exit_status=$?
13592
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13593
' 0
13594
  trap '{ (exit 1); exit 1; }' 1 2 13 15
13595
}
13596
# Create a (secure) tmp directory for tmp files.
13597
 
13598
{
13599
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13600
  test -n "$tmp" && test -d "$tmp"
13601
}  ||
13602
{
13603
  tmp=./conf$$-$RANDOM
13604
  (umask 077 && mkdir "$tmp")
13605
} ||
13606
{
13607
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
13608
   { (exit 1); exit 1; }
13609
}
13610
 
13611
# Set up the scripts for CONFIG_FILES section.
13612
# No need to generate them if there are no CONFIG_FILES.
13613
# This happens for instance with `./config.status config.h'.
13614
if test -n "$CONFIG_FILES"; then
13615
 
13616
 
13617
ac_cr='
'
13618
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
13619
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13620
  ac_cs_awk_cr='\\r'
13621
else
13622
  ac_cs_awk_cr=$ac_cr
13623
fi
13624
13625
 
13626
_ACEOF
13627
13628
 
13629
 
13630
  echo "cat >conf$$subs.awk <<_ACEOF" &&
13631
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13632
  echo "_ACEOF"
13633
} >conf$$subs.sh ||
13634
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13635
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13636
   { (exit 1); exit 1; }; }
13637
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13638
ac_delim='%!_!# '
13639
for ac_last_try in false false false false false :; do
13640
  . ./conf$$subs.sh ||
13641
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13642
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13643
   { (exit 1); exit 1; }; }
13644
13645
 
13646
  if test $ac_delim_n = $ac_delim_num; then
13647
    break
13648
  elif $ac_last_try; then
13649
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13650
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13651
   { (exit 1); exit 1; }; }
13652
  else
13653
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13654
  fi
13655
done
13656
rm -f conf$$subs.sh
13657
13658
 
13659
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13660
_ACEOF
13661
sed -n '
13662
h
13663
s/^/S["/; s/!.*/"]=/
13664
p
13665
g
13666
s/^[^!]*!//
13667
:repl
13668
t repl
13669
s/'"$ac_delim"'$//
13670
t delim
13671
:nl
13672
h
13673
s/\(.\{148\}\).*/\1/
13674
t more1
13675
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13676
p
13677
n
13678
b repl
13679
:more1
13680
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13681
p
13682
g
13683
s/.\{148\}//
13684
t nl
13685
:delim
13686
h
13687
s/\(.\{148\}\).*/\1/
13688
t more2
13689
s/["\\]/\\&/g; s/^/"/; s/$/"/
13690
p
13691
b
13692
:more2
13693
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13694
p
13695
g
13696
s/.\{148\}//
13697
t delim
13698
' 
13699
/^[^""]/{
13700
  N
13701
  s/\n//
13702
}
13703
' >>$CONFIG_STATUS || ac_write_fail=1
13704
rm -f conf$$subs.awk
13705
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13706
_ACAWK
13707
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13708
  for (key in S) S_is_set[key] = 1
13709
  FS = ""
13710
13711
 
13712
{
13713
  line = $ 0
13714
  nfields = split(line, field, "@")
13715
  substed = 0
13716
  len = length(field[1])
13717
  for (i = 2; i < nfields; i++) {
13718
    key = field[i]
13719
    keylen = length(key)
13720
    if (S_is_set[key]) {
13721
      value = S[key]
13722
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13723
      len += length(value) + length(field[++i])
13724
      substed = 1
13725
    } else
13726
      len += 1 + keylen
13727
  }
13728
13729
 
13730
}
13731
13732
 
13733
_ACEOF
13734
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13735
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13736
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13737
else
13738
  cat
13739
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13740
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13741
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
13742
   { (exit 1); exit 1; }; }
13743
_ACEOF
13744
13745
 
13746
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13747
# trailing colons and then remove the whole line if VPATH becomes empty
13748
# (actually we leave an empty line to preserve line numbers).
13749
if test "x$srcdir" = x.; then
13750
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
13751
s/:*\$(srcdir):*/:/
13752
s/:*\${srcdir}:*/:/
13753
s/:*@srcdir@:*/:/
13754
s/^\([^=]*=[     ]*\):*/\1/
13755
s/:*$//
13756
s/^[^=]*=[       ]*$//
13757
}'
13758
fi
13759
13760
 
13761
fi # test -n "$CONFIG_FILES"
13762
13763
 
13764
 
13765
shift
13766
for ac_tag
13767
do
13768
  case $ac_tag in
13769
  :[FHLC]) ac_mode=$ac_tag; continue;;
13770
  esac
13771
  case $ac_mode$ac_tag in
13772
  :[FHL]*:*);;
13773
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13774
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
13775
   { (exit 1); exit 1; }; };;
13776
  :[FH]-) ac_tag=-:-;;
13777
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13778
  esac
13779
  ac_save_IFS=$IFS
13780
  IFS=:
13781
  set x $ac_tag
13782
  IFS=$ac_save_IFS
13783
  shift
13784
  ac_file=$1
13785
  shift
13786
13787
 
13788
  :L) ac_source=$1;;
13789
  :[FH])
13790
    ac_file_inputs=
13791
    for ac_f
13792
    do
13793
      case $ac_f in
13794
      -) ac_f="$tmp/stdin";;
13795
      *) # Look for the file first in the build tree, then in the source tree
13796
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
13797
         # because $ac_f cannot contain `:'.
13798
         test -f "$ac_f" ||
13799
           case $ac_f in
13800
           [\\/$]*) false;;
13801
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13802
           esac ||
13803
           { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13804
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13805
   { (exit 1); exit 1; }; };;
13806
      esac
13807
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13808
      ac_file_inputs="$ac_file_inputs '$ac_f'"
13809
    done
13810
13811
 
13812
    # use $as_me), people would be surprised to read:
13813
    #    /* config.h.  Generated by config.status.  */
13814
    configure_input='Generated from '`
13815
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13816
        `' by configure.'
13817
    if test x"$ac_file" != x-; then
13818
      configure_input="$ac_file.  $configure_input"
13819
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13820
$as_echo "$as_me: creating $ac_file" >&6;}
13821
    fi
13822
    # Neutralize special characters interpreted by sed in replacement strings.
13823
    case $configure_input in #(
13824
    *\&* | *\|* | *\\* )
13825
       ac_sed_conf_input=`$as_echo "$configure_input" |
13826
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13827
    *) ac_sed_conf_input=$configure_input;;
13828
    esac
13829
13830
 
13831
    *:-:* | *:-) cat >"$tmp/stdin" \
13832
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13833
$as_echo "$as_me: error: could not create $ac_file" >&2;}
13834
   { (exit 1); exit 1; }; } ;;
13835
    esac
13836
    ;;
13837
  esac
13838
13839
 
13840
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13841
         X"$ac_file" : 'X\(//\)[^/]' \| \
13842
         X"$ac_file" : 'X\(//\)$' \| \
13843
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13844
$as_echo X"$ac_file" |
13845
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13846
            s//\1/
13847
            q
13848
          }
13849
          /^X\(\/\/\)[^/].*/{
13850
            s//\1/
13851
            q
13852
          }
13853
          /^X\(\/\/\)$/{
13854
            s//\1/
13855
            q
13856
          }
13857
          /^X\(\/\).*/{
13858
            s//\1/
13859
            q
13860
          }
13861
          s/.*/./; q'`
13862
  { as_dir="$ac_dir"
13863
  case $as_dir in #(
13864
  -*) as_dir=./$as_dir;;
13865
  esac
13866
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13867
    as_dirs=
13868
    while :; do
13869
      case $as_dir in #(
13870
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13871
      *) as_qdir=$as_dir;;
13872
      esac
13873
      as_dirs="'$as_qdir' $as_dirs"
13874
      as_dir=`$as_dirname -- "$as_dir" ||
13875
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13876
         X"$as_dir" : 'X\(//\)[^/]' \| \
13877
         X"$as_dir" : 'X\(//\)$' \| \
13878
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13879
$as_echo X"$as_dir" |
13880
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13881
            s//\1/
13882
            q
13883
          }
13884
          /^X\(\/\/\)[^/].*/{
13885
            s//\1/
13886
            q
13887
          }
13888
          /^X\(\/\/\)$/{
13889
            s//\1/
13890
            q
13891
          }
13892
          /^X\(\/\).*/{
13893
            s//\1/
13894
            q
13895
          }
13896
          s/.*/./; q'`
13897
      test -d "$as_dir" && break
13898
    done
13899
    test -z "$as_dirs" || eval "mkdir $as_dirs"
13900
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13901
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13902
   { (exit 1); exit 1; }; }; }
13903
  ac_builddir=.
13904
13905
 
13906
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13907
*)
13908
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13909
  # A ".." for each directory in $ac_dir_suffix.
13910
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13911
  case $ac_top_builddir_sub in
13912
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13913
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13914
  esac ;;
13915
esac
13916
ac_abs_top_builddir=$ac_pwd
13917
ac_abs_builddir=$ac_pwd$ac_dir_suffix
13918
# for backward compatibility:
13919
ac_top_builddir=$ac_top_build_prefix
13920
13921
 
13922
  .)  # We are building in place.
13923
    ac_srcdir=.
13924
    ac_top_srcdir=$ac_top_builddir_sub
13925
    ac_abs_top_srcdir=$ac_pwd ;;
13926
  [\\/]* | ?:[\\/]* )  # Absolute name.
13927
    ac_srcdir=$srcdir$ac_dir_suffix;
13928
    ac_top_srcdir=$srcdir
13929
    ac_abs_top_srcdir=$srcdir ;;
13930
  *) # Relative name.
13931
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13932
    ac_top_srcdir=$ac_top_build_prefix$srcdir
13933
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13934
esac
13935
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13936
13937
 
13938
 
13939
  :F)
13940
  #
13941
  # CONFIG_FILE
13942
  #
13943
13944
 
13945
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13946
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13947
  esac
13948
  ac_MKDIR_P=$MKDIR_P
13949
  case $MKDIR_P in
13950
  [\\/$]* | ?:[\\/]* ) ;;
13951
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13952
  esac
13953
_ACEOF
13954
13955
 
13956
# If the template does not know about datarootdir, expand it.
13957
# FIXME: This hack should be removed a few years after 2.60.
13958
ac_datarootdir_hack=; ac_datarootdir_seen=
13959
13960
 
13961
/datarootdir/ {
13962
  p
13963
  q
13964
}
13965
/@datadir@/p
13966
/@docdir@/p
13967
/@infodir@/p
13968
/@localedir@/p
13969
/@mandir@/p
13970
'
13971
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13972
*datarootdir*) ac_datarootdir_seen=yes;;
13973
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13974
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13975
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13976
_ACEOF
13977
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13978
  ac_datarootdir_hack='
13979
  s&@datadir@&$datadir&g
13980
  s&@docdir@&$docdir&g
13981
  s&@infodir@&$infodir&g
13982
  s&@localedir@&$localedir&g
13983
  s&@mandir@&$mandir&g
13984
    s&\\\${datarootdir}&$datarootdir&g' ;;
13985
esac
13986
_ACEOF
13987
13988
 
13989
# Shell code in configure.ac might set extrasub.
13990
# FIXME: do we really want to maintain this feature?
13991
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13992
ac_sed_extra="$ac_vpsub
13993
$extrasub
13994
_ACEOF
13995
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13996
:t
13997
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13998
s|@configure_input@|$ac_sed_conf_input|;t t
13999
s&@top_builddir@&$ac_top_builddir_sub&;t t
14000
s&@top_build_prefix@&$ac_top_build_prefix&;t t
14001
s&@srcdir@&$ac_srcdir&;t t
14002
s&@abs_srcdir@&$ac_abs_srcdir&;t t
14003
s&@top_srcdir@&$ac_top_srcdir&;t t
14004
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14005
s&@builddir@&$ac_builddir&;t t
14006
s&@abs_builddir@&$ac_abs_builddir&;t t
14007
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14008
s&@INSTALL@&$ac_INSTALL&;t t
14009
s&@MKDIR_P@&$ac_MKDIR_P&;t t
14010
$ac_datarootdir_hack
14011
"
14012
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14013
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14014
$as_echo "$as_me: error: could not create $ac_file" >&2;}
14015
   { (exit 1); exit 1; }; }
14016
14017
 
14018
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14019
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14020
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14021
which seems to be undefined.  Please make sure it is defined." >&5
14022
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14023
which seems to be undefined.  Please make sure it is defined." >&2;}
14024
14025
 
14026
  case $ac_file in
14027
  -) cat "$tmp/out" && rm -f "$tmp/out";;
14028
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14029
  esac \
14030
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14031
$as_echo "$as_me: error: could not create $ac_file" >&2;}
14032
   { (exit 1); exit 1; }; }
14033
 ;;
14034
14035
 
14036
 
14037
$as_echo "$as_me: executing $ac_file commands" >&6;}
14038
 ;;
14039
  esac
14040
14041
 
14042
 
14043
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14044
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
14045
  # are listed without --file.  Let's play safe and only enable the eval
14046
  # if we detect the quoting.
14047
  case $CONFIG_FILES in
14048
  *\'*) eval set x "$CONFIG_FILES" ;;
14049
  *)   set x $CONFIG_FILES ;;
14050
  esac
14051
  shift
14052
  for mf
14053
  do
14054
    # Strip MF so we end up with the name of the file.
14055
    mf=`echo "$mf" | sed -e 's/:.*$//'`
14056
    # Check whether this is an Automake generated Makefile or not.
14057
    # We used to match only the files named `Makefile.in', but
14058
    # some people rename them; so instead we look at the file content.
14059
    # Grep'ing the first line is not enough: some people post-process
14060
    # each Makefile.in and add a new line on top of each file to say so.
14061
    # Grep'ing the whole file is not good either: AIX grep has a line
14062
    # limit of 2048, but all sed's we know have understand at least 4000.
14063
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14064
      dirpart=`$as_dirname -- "$mf" ||
14065
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14066
         X"$mf" : 'X\(//\)[^/]' \| \
14067
         X"$mf" : 'X\(//\)$' \| \
14068
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14069
$as_echo X"$mf" |
14070
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14071
            s//\1/
14072
            q
14073
          }
14074
          /^X\(\/\/\)[^/].*/{
14075
            s//\1/
14076
            q
14077
          }
14078
          /^X\(\/\/\)$/{
14079
            s//\1/
14080
            q
14081
          }
14082
          /^X\(\/\).*/{
14083
            s//\1/
14084
            q
14085
          }
14086
          s/.*/./; q'`
14087
    else
14088
      continue
14089
    fi
14090
    # Extract the definition of DEPDIR, am__include, and am__quote
14091
    # from the Makefile without running `make'.
14092
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14093
    test -z "$DEPDIR" && continue
14094
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14095
    test -z "am__include" && continue
14096
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14097
    # When using ansi2knr, U may be empty or an underscore; expand it
14098
    U=`sed -n 's/^U = //p' < "$mf"`
14099
    # Find all dependency output files, they are included files with
14100
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14101
    # simplest approach to changing $(DEPDIR) to its actual value in the
14102
    # expansion.
14103
    for file in `sed -n "
14104
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14105
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14106
      # Make sure the directory exists.
14107
      test -f "$dirpart/$file" && continue
14108
      fdir=`$as_dirname -- "$file" ||
14109
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14110
         X"$file" : 'X\(//\)[^/]' \| \
14111
         X"$file" : 'X\(//\)$' \| \
14112
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14113
$as_echo X"$file" |
14114
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14115
            s//\1/
14116
            q
14117
          }
14118
          /^X\(\/\/\)[^/].*/{
14119
            s//\1/
14120
            q
14121
          }
14122
          /^X\(\/\/\)$/{
14123
            s//\1/
14124
            q
14125
          }
14126
          /^X\(\/\).*/{
14127
            s//\1/
14128
            q
14129
          }
14130
          s/.*/./; q'`
14131
      { as_dir=$dirpart/$fdir
14132
  case $as_dir in #(
14133
  -*) as_dir=./$as_dir;;
14134
  esac
14135
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14136
    as_dirs=
14137
    while :; do
14138
      case $as_dir in #(
14139
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14140
      *) as_qdir=$as_dir;;
14141
      esac
14142
      as_dirs="'$as_qdir' $as_dirs"
14143
      as_dir=`$as_dirname -- "$as_dir" ||
14144
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14145
         X"$as_dir" : 'X\(//\)[^/]' \| \
14146
         X"$as_dir" : 'X\(//\)$' \| \
14147
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14148
$as_echo X"$as_dir" |
14149
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14150
            s//\1/
14151
            q
14152
          }
14153
          /^X\(\/\/\)[^/].*/{
14154
            s//\1/
14155
            q
14156
          }
14157
          /^X\(\/\/\)$/{
14158
            s//\1/
14159
            q
14160
          }
14161
          /^X\(\/\).*/{
14162
            s//\1/
14163
            q
14164
          }
14165
          s/.*/./; q'`
14166
      test -d "$as_dir" && break
14167
    done
14168
    test -z "$as_dirs" || eval "mkdir $as_dirs"
14169
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14170
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14171
   { (exit 1); exit 1; }; }; }
14172
      # echo "creating $dirpart/$file"
14173
      echo '# dummy' > "$dirpart/$file"
14174
    done
14175
  done
14176
}
14177
 ;;
14178
    "libtool":C)
14179
14180
 
14181
    # commands through without removal of \ escapes.
14182
    if test -n "${ZSH_VERSION+set}" ; then
14183
      setopt NO_GLOB_SUBST
14184
    fi
14185
14186
 
14187
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14188
    $RM "$cfgfile"
14189
14190
 
14191
#! $SHELL
14192
14193
 
14194
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14195
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14196
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14197
#
14198
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14199
#                 2006, 2007, 2008 Free Software Foundation, Inc.
14200
#   Written by Gordon Matzigkeit, 1996
14201
#
14202
#   This file is part of GNU Libtool.
14203
#
14204
# GNU Libtool is free software; you can redistribute it and/or
14205
# modify it under the terms of the GNU General Public License as
14206
# published by the Free Software Foundation; either version 2 of
14207
# the License, or (at your option) any later version.
14208
#
14209
# As a special exception to the GNU General Public License,
14210
# if you distribute this file as part of a program or library that
14211
# is built using GNU Libtool, you may include this file under the
14212
# same distribution terms that you use for the rest of that program.
14213
#
14214
# GNU Libtool is distributed in the hope that it will be useful,
14215
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14216
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14217
# GNU General Public License for more details.
14218
#
14219
# You should have received a copy of the GNU General Public License
14220
# along with GNU Libtool; see the file COPYING.  If not, a copy
14221
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14222
# obtained by writing to the Free Software Foundation, Inc.,
14223
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14224
14225
 
14226
 
14227
available_tags=""
14228
14229
 
14230
14231
 
14232
SED=$lt_SED
14233
14234
 
14235
Xsed="\$SED -e 1s/^X//"
14236
14237
 
14238
AS=$AS
14239
14240
 
14241
DLLTOOL=$DLLTOOL
14242
14243
 
14244
OBJDUMP=$OBJDUMP
14245
14246
 
14247
macro_version=$macro_version
14248
macro_revision=$macro_revision
14249
14250
 
14251
build_libtool_libs=$enable_shared
14252
14253
 
14254
build_old_libs=$enable_static
14255
14256
 
14257
pic_mode=$pic_mode
14258
14259
 
14260
fast_install=$enable_fast_install
14261
14262
 
14263
host_alias=$host_alias
14264
host=$host
14265
host_os=$host_os
14266
14267
 
14268
build_alias=$build_alias
14269
build=$build
14270
build_os=$build_os
14271
14272
 
14273
GREP=$lt_GREP
14274
14275
 
14276
EGREP=$lt_EGREP
14277
14278
 
14279
FGREP=$lt_FGREP
14280
14281
 
14282
NM=$lt_NM
14283
14284
 
14285
LN_S=$lt_LN_S
14286
14287
 
14288
max_cmd_len=$max_cmd_len
14289
14290
 
14291
objext=$ac_objext
14292
14293
 
14294
exeext=$exeext
14295
14296
 
14297
lt_unset=$lt_unset
14298
14299
 
14300
SP2NL=$lt_lt_SP2NL
14301
14302
 
14303
NL2SP=$lt_lt_NL2SP
14304
14305
 
14306
reload_flag=$lt_reload_flag
14307
reload_cmds=$lt_reload_cmds
14308
14309
 
14310
deplibs_check_method=$lt_deplibs_check_method
14311
14312
 
14313
file_magic_cmd=$lt_file_magic_cmd
14314
14315
 
14316
AR=$lt_AR
14317
AR_FLAGS=$lt_AR_FLAGS
14318
14319
 
14320
STRIP=$lt_STRIP
14321
14322
 
14323
RANLIB=$lt_RANLIB
14324
old_postinstall_cmds=$lt_old_postinstall_cmds
14325
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14326
14327
 
14328
LTCC=$lt_CC
14329
14330
 
14331
LTCFLAGS=$lt_CFLAGS
14332
14333
 
14334
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14335
14336
 
14337
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14338
14339
 
14340
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14341
14342
 
14343
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14344
14345
 
14346
objdir=$objdir
14347
14348
 
14349
SHELL=$lt_SHELL
14350
14351
 
14352
ECHO=$lt_ECHO
14353
14354
 
14355
MAGIC_CMD=$MAGIC_CMD
14356
14357
 
14358
need_locks=$lt_need_locks
14359
14360
 
14361
DSYMUTIL=$lt_DSYMUTIL
14362
14363
 
14364
NMEDIT=$lt_NMEDIT
14365
14366
 
14367
LIPO=$lt_LIPO
14368
14369
 
14370
OTOOL=$lt_OTOOL
14371
14372
 
14373
OTOOL64=$lt_OTOOL64
14374
14375
 
14376
libext=$libext
14377
14378
 
14379
shrext_cmds=$lt_shrext_cmds
14380
14381
 
14382
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14383
14384
 
14385
# restored at link time.
14386
variables_saved_for_relink=$lt_variables_saved_for_relink
14387
14388
 
14389
need_lib_prefix=$need_lib_prefix
14390
14391
 
14392
need_version=$need_version
14393
14394
 
14395
version_type=$version_type
14396
14397
 
14398
runpath_var=$runpath_var
14399
14400
 
14401
shlibpath_var=$shlibpath_var
14402
14403
 
14404
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14405
14406
 
14407
libname_spec=$lt_libname_spec
14408
14409
 
14410
# The last name is the one that the linker finds with -lNAME
14411
library_names_spec=$lt_library_names_spec
14412
14413
 
14414
soname_spec=$lt_soname_spec
14415
14416
 
14417
postinstall_cmds=$lt_postinstall_cmds
14418
14419
 
14420
postuninstall_cmds=$lt_postuninstall_cmds
14421
14422
 
14423
finish_cmds=$lt_finish_cmds
14424
14425
 
14426
# not shown.
14427
finish_eval=$lt_finish_eval
14428
14429
 
14430
hardcode_into_libs=$hardcode_into_libs
14431
14432
 
14433
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14434
14435
 
14436
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14437
14438
 
14439
dlopen_support=$enable_dlopen
14440
14441
 
14442
dlopen_self=$enable_dlopen_self
14443
14444
 
14445
dlopen_self_static=$enable_dlopen_self_static
14446
14447
 
14448
old_striplib=$lt_old_striplib
14449
striplib=$lt_striplib
14450
14451
 
14452
 
14453
LD=$lt_LD
14454
14455
 
14456
old_archive_cmds=$lt_old_archive_cmds
14457
14458
 
14459
CC=$lt_compiler
14460
14461
 
14462
with_gcc=$GCC
14463
14464
 
14465
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14466
14467
 
14468
wl=$lt_lt_prog_compiler_wl
14469
14470
 
14471
pic_flag=$lt_lt_prog_compiler_pic
14472
14473
 
14474
link_static_flag=$lt_lt_prog_compiler_static
14475
14476
 
14477
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14478
14479
 
14480
build_libtool_need_lc=$archive_cmds_need_lc
14481
14482
 
14483
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14484
14485
 
14486
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14487
14488
 
14489
whole_archive_flag_spec=$lt_whole_archive_flag_spec
14490
14491
 
14492
compiler_needs_object=$lt_compiler_needs_object
14493
14494
 
14495
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14496
14497
 
14498
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14499
14500
 
14501
archive_cmds=$lt_archive_cmds
14502
archive_expsym_cmds=$lt_archive_expsym_cmds
14503
14504
 
14505
# a shared archive.
14506
module_cmds=$lt_module_cmds
14507
module_expsym_cmds=$lt_module_expsym_cmds
14508
14509
 
14510
with_gnu_ld=$lt_with_gnu_ld
14511
14512
 
14513
allow_undefined_flag=$lt_allow_undefined_flag
14514
14515
 
14516
no_undefined_flag=$lt_no_undefined_flag
14517
14518
 
14519
# This must work even if \$libdir does not exist
14520
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14521
14522
 
14523
# during linking.  This must work even if \$libdir does not exist.
14524
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14525
14526
 
14527
hardcode_libdir_separator=$lt_hardcode_libdir_separator
14528
14529
 
14530
# DIR into the resulting binary.
14531
hardcode_direct=$hardcode_direct
14532
14533
 
14534
# DIR into the resulting binary and the resulting library dependency is
14535
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14536
# library is relocated.
14537
hardcode_direct_absolute=$hardcode_direct_absolute
14538
14539
 
14540
# into the resulting binary.
14541
hardcode_minus_L=$hardcode_minus_L
14542
14543
 
14544
# into the resulting binary.
14545
hardcode_shlibpath_var=$hardcode_shlibpath_var
14546
14547
 
14548
# into the library and all subsequent libraries and executables linked
14549
# against it.
14550
hardcode_automatic=$hardcode_automatic
14551
14552
 
14553
# to runtime path list.
14554
inherit_rpath=$inherit_rpath
14555
14556
 
14557
link_all_deplibs=$link_all_deplibs
14558
14559
 
14560
fix_srcfile_path=$lt_fix_srcfile_path
14561
14562
 
14563
always_export_symbols=$always_export_symbols
14564
14565
 
14566
export_symbols_cmds=$lt_export_symbols_cmds
14567
14568
 
14569
exclude_expsyms=$lt_exclude_expsyms
14570
14571
 
14572
include_expsyms=$lt_include_expsyms
14573
14574
 
14575
prelink_cmds=$lt_prelink_cmds
14576
14577
 
14578
file_list_spec=$lt_file_list_spec
14579
14580
 
14581
hardcode_action=$hardcode_action
14582
14583
 
14584
14585
 
14586
14587
 
14588
  aix3*)
14589
    cat <<\_LT_EOF >> "$cfgfile"
14590
# AIX sometimes has problems with the GCC collect2 program.  For some
14591
# reason, if we set the COLLECT_NAMES environment variable, the problems
14592
# vanish in a puff of smoke.
14593
if test "X${COLLECT_NAMES+set}" != Xset; then
14594
  COLLECT_NAMES=
14595
  export COLLECT_NAMES
14596
fi
14597
_LT_EOF
14598
    ;;
14599
  esac
14600
14601
 
14602
 
14603
14604
 
14605
 
14606
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14607
  # text mode, it properly converts lines to CR/LF.  This bash problem
14608
  # is reportedly fixed, but why not run on old versions too?
14609
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14610
    || (rm -f "$cfgfile"; exit 1)
14611
14612
 
14613
  yes)
14614
    cat << \_LT_EOF >> "$cfgfile"
14615
14616
 
14617
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14618
# otherwise set result to NONDIR_REPLACEMENT.
14619
func_dirname ()
14620
{
14621
  case ${1} in
14622
    */*) func_dirname_result="${1%/*}${2}" ;;
14623
    *  ) func_dirname_result="${3}" ;;
14624
  esac
14625
}
14626
14627
 
14628
func_basename ()
14629
{
14630
  func_basename_result="${1##*/}"
14631
}
14632
14633
 
14634
# perform func_basename and func_dirname in a single function
14635
# call:
14636
#   dirname:  Compute the dirname of FILE.  If nonempty,
14637
#             add APPEND to the result, otherwise set result
14638
#             to NONDIR_REPLACEMENT.
14639
#             value returned in "$func_dirname_result"
14640
#   basename: Compute filename of FILE.
14641
#             value retuned in "$func_basename_result"
14642
# Implementation must be kept synchronized with func_dirname
14643
# and func_basename. For efficiency, we do not delegate to
14644
# those functions but instead duplicate the functionality here.
14645
func_dirname_and_basename ()
14646
{
14647
  case ${1} in
14648
    */*) func_dirname_result="${1%/*}${2}" ;;
14649
    *  ) func_dirname_result="${3}" ;;
14650
  esac
14651
  func_basename_result="${1##*/}"
14652
}
14653
14654
 
14655
# strip PREFIX and SUFFIX off of NAME.
14656
# PREFIX and SUFFIX must not contain globbing or regex special
14657
# characters, hashes, percent signs, but SUFFIX may contain a leading
14658
# dot (in which case that matches only a dot).
14659
func_stripname ()
14660
{
14661
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14662
  # positional parameters, so assign one to ordinary parameter first.
14663
  func_stripname_result=${3}
14664
  func_stripname_result=${func_stripname_result#"${1}"}
14665
  func_stripname_result=${func_stripname_result%"${2}"}
14666
}
14667
14668
 
14669
func_opt_split ()
14670
{
14671
  func_opt_split_opt=${1%%=*}
14672
  func_opt_split_arg=${1#*=}
14673
}
14674
14675
 
14676
func_lo2o ()
14677
{
14678
  case ${1} in
14679
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14680
    *)    func_lo2o_result=${1} ;;
14681
  esac
14682
}
14683
14684
 
14685
func_xform ()
14686
{
14687
  func_xform_result=${1%.*}.lo
14688
}
14689
14690
 
14691
func_arith ()
14692
{
14693
  func_arith_result=$(( $* ))
14694
}
14695
14696
 
14697
# STRING may not start with a hyphen.
14698
func_len ()
14699
{
14700
  func_len_result=${#1}
14701
}
14702
14703
 
14704
    ;;
14705
  *) # Bourne compatible functions.
14706
    cat << \_LT_EOF >> "$cfgfile"
14707
14708
 
14709
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14710
# otherwise set result to NONDIR_REPLACEMENT.
14711
func_dirname ()
14712
{
14713
  # Extract subdirectory from the argument.
14714
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14715
  if test "X$func_dirname_result" = "X${1}"; then
14716
    func_dirname_result="${3}"
14717
  else
14718
    func_dirname_result="$func_dirname_result${2}"
14719
  fi
14720
}
14721
14722
 
14723
func_basename ()
14724
{
14725
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14726
}
14727
14728
 
14729
 
14730
# strip PREFIX and SUFFIX off of NAME.
14731
# PREFIX and SUFFIX must not contain globbing or regex special
14732
# characters, hashes, percent signs, but SUFFIX may contain a leading
14733
# dot (in which case that matches only a dot).
14734
# func_strip_suffix prefix name
14735
func_stripname ()
14736
{
14737
  case ${2} in
14738
    .*) func_stripname_result=`$ECHO "X${3}" \
14739
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14740
    *)  func_stripname_result=`$ECHO "X${3}" \
14741
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14742
  esac
14743
}
14744
14745
 
14746
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14747
my_sed_long_arg='1s/^-[^=]*=//'
14748
14749
 
14750
func_opt_split ()
14751
{
14752
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14753
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14754
}
14755
14756
 
14757
func_lo2o ()
14758
{
14759
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14760
}
14761
14762
 
14763
func_xform ()
14764
{
14765
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14766
}
14767
14768
 
14769
func_arith ()
14770
{
14771
  func_arith_result=`expr "$@"`
14772
}
14773
14774
 
14775
# STRING may not start with a hyphen.
14776
func_len ()
14777
{
14778
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14779
}
14780
14781
 
14782
esac
14783
14784
 
14785
  yes)
14786
    cat << \_LT_EOF >> "$cfgfile"
14787
14788
 
14789
# Append VALUE to the end of shell variable VAR.
14790
func_append ()
14791
{
14792
  eval "$1+=\$2"
14793
}
14794
_LT_EOF
14795
    ;;
14796
  *)
14797
    cat << \_LT_EOF >> "$cfgfile"
14798
14799
 
14800
# Append VALUE to the end of shell variable VAR.
14801
func_append ()
14802
{
14803
  eval "$1=\$$1\$2"
14804
}
14805
14806
 
14807
    ;;
14808
  esac
14809
14810
 
14811
 
14812
    || (rm -f "$cfgfile"; exit 1)
14813
14814
 
14815
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14816
  chmod +x "$ofile"
14817
14818
 
14819
14820
 
14821
done # for ac_tag
14822
14823
 
14824
 
14825
_ACEOF
14826
chmod +x $CONFIG_STATUS
14827
ac_clean_files=$ac_clean_files_save
14828
14829
 
14830
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14831
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14832
   { (exit 1); exit 1; }; }
14833
14834
 
14835
 
14836
# config.status does its own redirection, appending to config.log.
14837
# Unfortunately, on DOS this fails, as config.log is still kept open
14838
# by configure, so config.status won't be able to write to it; its
14839
# output is simply discarded.  So we exec the FD to /dev/null,
14840
# effectively closing config.log, so it can be properly (re)opened and
14841
# appended to by config.status.  When coming back to configure, we
14842
# need to make the FD available again.
14843
if test "$no_create" != yes; then
14844
  ac_cs_success=:
14845
  ac_config_status_args=
14846
  test "$silent" = yes &&
14847
    ac_config_status_args="$ac_config_status_args --quiet"
14848
  exec 5>/dev/null
14849
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14850
  exec 5>>config.log
14851
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14852
  # would make configure fail if this is the last instruction.
14853
  $ac_cs_success || { (exit 1); exit 1; }
14854
fi
14855
14856
 
14857
# CONFIG_SUBDIRS section.
14858
#
14859
if test "$no_recursion" != yes; then
14860
14861
 
14862
  # so they do not pile up.
14863
  ac_sub_configure_args=
14864
  ac_prev=
14865
  eval "set x $ac_configure_args"
14866
  shift
14867
  for ac_arg
14868
  do
14869
    if test -n "$ac_prev"; then
14870
      ac_prev=
14871
      continue
14872
    fi
14873
    case $ac_arg in
14874
    -cache-file | --cache-file | --cache-fil | --cache-fi \
14875
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14876
      ac_prev=cache_file ;;
14877
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14878
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
14879
    | --c=*)
14880
      ;;
14881
    --config-cache | -C)
14882
      ;;
14883
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14884
      ac_prev=srcdir ;;
14885
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14886
      ;;
14887
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
14888
      ac_prev=prefix ;;
14889
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
14890
      ;;
14891
    --disable-option-checking)
14892
      ;;
14893
    *)
14894
      case $ac_arg in
14895
      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14896
      esac
14897
      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
14898
    esac
14899
  done
14900
14901
 
14902
  # in subdir configurations.
14903
  ac_arg="--prefix=$prefix"
14904
  case $ac_arg in
14905
  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14906
  esac
14907
  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
14908
14909
 
14910
  if test "$silent" = yes; then
14911
    ac_sub_configure_args="--silent $ac_sub_configure_args"
14912
  fi
14913
14914
 
14915
  # different subdirs can have different --enable and --with options.
14916
  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
14917
14918
 
14919
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
14920
14921
 
14922
    # parts of a large source tree are present.
14923
    test -d "$srcdir/$ac_dir" || continue
14924
14925
 
14926
    $as_echo "$as_me:$LINENO: $ac_msg" >&5
14927
    $as_echo "$ac_msg" >&6
14928
    { as_dir="$ac_dir"
14929
  case $as_dir in #(
14930
  -*) as_dir=./$as_dir;;
14931
  esac
14932
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14933
    as_dirs=
14934
    while :; do
14935
      case $as_dir in #(
14936
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14937
      *) as_qdir=$as_dir;;
14938
      esac
14939
      as_dirs="'$as_qdir' $as_dirs"
14940
      as_dir=`$as_dirname -- "$as_dir" ||
14941
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14942
         X"$as_dir" : 'X\(//\)[^/]' \| \
14943
         X"$as_dir" : 'X\(//\)$' \| \
14944
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14945
$as_echo X"$as_dir" |
14946
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14947
            s//\1/
14948
            q
14949
          }
14950
          /^X\(\/\/\)[^/].*/{
14951
            s//\1/
14952
            q
14953
          }
14954
          /^X\(\/\/\)$/{
14955
            s//\1/
14956
            q
14957
          }
14958
          /^X\(\/\).*/{
14959
            s//\1/
14960
            q
14961
          }
14962
          s/.*/./; q'`
14963
      test -d "$as_dir" && break
14964
    done
14965
    test -z "$as_dirs" || eval "mkdir $as_dirs"
14966
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14967
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14968
   { (exit 1); exit 1; }; }; }
14969
    ac_builddir=.
14970
14971
 
14972
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14973
*)
14974
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14975
  # A ".." for each directory in $ac_dir_suffix.
14976
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14977
  case $ac_top_builddir_sub in
14978
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14979
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14980
  esac ;;
14981
esac
14982
ac_abs_top_builddir=$ac_pwd
14983
ac_abs_builddir=$ac_pwd$ac_dir_suffix
14984
# for backward compatibility:
14985
ac_top_builddir=$ac_top_build_prefix
14986
14987
 
14988
  .)  # We are building in place.
14989
    ac_srcdir=.
14990
    ac_top_srcdir=$ac_top_builddir_sub
14991
    ac_abs_top_srcdir=$ac_pwd ;;
14992
  [\\/]* | ?:[\\/]* )  # Absolute name.
14993
    ac_srcdir=$srcdir$ac_dir_suffix;
14994
    ac_top_srcdir=$srcdir
14995
    ac_abs_top_srcdir=$srcdir ;;
14996
  *) # Relative name.
14997
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14998
    ac_top_srcdir=$ac_top_build_prefix$srcdir
14999
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15000
esac
15001
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15002
15003
 
15004
 
15005
15006
 
15007
    if test -f "$ac_srcdir/configure.gnu"; then
15008
      ac_sub_configure=$ac_srcdir/configure.gnu
15009
    elif test -f "$ac_srcdir/configure"; then
15010
      ac_sub_configure=$ac_srcdir/configure
15011
    elif test -f "$ac_srcdir/configure.in"; then
15012
      # This should be Cygnus configure.
15013
      ac_sub_configure=$ac_aux_dir/configure
15014
    else
15015
      { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
15016
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15017
      ac_sub_configure=
15018
    fi
15019
15020
 
15021
    if test -n "$ac_sub_configure"; then
15022
      # Make the cache file name correct relative to the subdirectory.
15023
      case $cache_file in
15024
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15025
      *) # Relative name.
15026
        ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15027
      esac
15028
15029
 
15030
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15031
      # The eval makes quoting arguments work.
15032
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15033
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15034
        { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
15035
$as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
15036
   { (exit 1); exit 1; }; }
15037
    fi
15038
15039
 
15040
  done
15041
fi
15042
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15043
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15044
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15045
fi
15046
15047
 

powered by: WebSVN 2.1.0

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