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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [or1ksim/] [configure] - Blame information for rev 90

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

Line No. Rev Author Line
1 19 jeremybenn
#! /bin/sh
2 90 jeremybenn
# From configure.ac Id: configure.ac 955 2010-04-21 17:06:30Z jeremy  using automake version AC_ACVERSION.
3 19 jeremybenn
# Guess values for system-dependent variables and create Makefiles.
4 89 jeremybenn
# Generated by GNU Autoconf 2.63 for or1ksim 2010-04-21.
5 19 jeremybenn
#
6
# Report bugs to .
7
#
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 82 jeremybenn
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
10 19 jeremybenn
# This configure script is free software; the Free Software Foundation
11
# gives unlimited permission to copy, distribute and modify it.
12 82 jeremybenn
#
13
# Copyright (C) 1999-2008 OpenCores
14
# Copyright (C) 2008, 2010 Embecosm Limited
15
#
16
# Contributor Jeremy Bennett 
17
#
18
# This file is part of OpenRISC 1000 Architectural Simulator.
19
#
20
# This program is free software; you can redistribute it and/or modify it
21
# under the terms of the GNU General Public License as published by the Free
22
# Software Foundation; either version 3 of the License, or (at your option)
23
# any later version.
24
#
25
# This program is distributed in the hope that it will be useful, but WITHOUT
26
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
27
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
28
# more details.
29
#
30
# You should have received a copy of the GNU General Public License along
31
# with this program.  If not, see .
32 19 jeremybenn
## --------------------- ##
33
## M4sh Initialization.  ##
34
## --------------------- ##
35
 
36
# Be more Bourne compatible
37
DUALCASE=1; export DUALCASE # for MKS sh
38
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39
  emulate sh
40
  NULLCMD=:
41 82 jeremybenn
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42 19 jeremybenn
  # is contrary to our usage.  Disable this feature.
43
  alias -g '${1+"$@"}'='"$@"'
44
  setopt NO_GLOB_SUBST
45
else
46
  case `(set -o) 2>/dev/null` in
47
  *posix*) set -o posix ;;
48
esac
49
 
50
fi
51
 
52
 
53
 
54
 
55
# PATH needs CR
56
# Avoid depending upon Character Ranges.
57
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
58
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
59
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
60
as_cr_digits='0123456789'
61
as_cr_alnum=$as_cr_Letters$as_cr_digits
62
 
63 82 jeremybenn
as_nl='
64
'
65
export as_nl
66
# Printing a long string crashes Solaris 7 /usr/bin/printf.
67
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
68
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
69
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
70
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
71
  as_echo='printf %s\n'
72
  as_echo_n='printf %s'
73
else
74
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
75
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
76
    as_echo_n='/usr/ucb/echo -n'
77 19 jeremybenn
  else
78 82 jeremybenn
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
79
    as_echo_n_body='eval
80
      arg=$1;
81
      case $arg in
82
      *"$as_nl"*)
83
        expr "X$arg" : "X\\(.*\\)$as_nl";
84
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
85
      esac;
86
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
87
    '
88
    export as_echo_n_body
89
    as_echo_n='sh -c $as_echo_n_body as_echo'
90 19 jeremybenn
  fi
91 82 jeremybenn
  export as_echo_body
92
  as_echo='sh -c $as_echo_body as_echo'
93 19 jeremybenn
fi
94
 
95 82 jeremybenn
# The user is always right.
96
if test "${PATH_SEPARATOR+set}" != set; then
97
  PATH_SEPARATOR=:
98
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
99
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
100
      PATH_SEPARATOR=';'
101
  }
102
fi
103
 
104 19 jeremybenn
# Support unset when possible.
105
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
106
  as_unset=unset
107
else
108
  as_unset=false
109
fi
110
 
111
 
112
# IFS
113
# We need space, tab and new line, in precisely that order.  Quoting is
114
# there to prevent editors from complaining about space-tab.
115
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
116
# splitting by setting IFS to empty value.)
117
IFS=" ""        $as_nl"
118
 
119
# Find who we are.  Look in the path if we contain no directory separator.
120
case $0 in
121
  *[\\/]* ) as_myself=$0 ;;
122
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
123
for as_dir in $PATH
124
do
125
  IFS=$as_save_IFS
126
  test -z "$as_dir" && as_dir=.
127
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
128
done
129
IFS=$as_save_IFS
130
 
131
     ;;
132
esac
133
# We did not find ourselves, most probably we were run as `sh COMMAND'
134
# in which case we are not to be found in the path.
135
if test "x$as_myself" = x; then
136
  as_myself=$0
137
fi
138
if test ! -f "$as_myself"; then
139 82 jeremybenn
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
140 19 jeremybenn
  { (exit 1); exit 1; }
141
fi
142
 
143
# Work around bugs in pre-3.0 UWIN ksh.
144
for as_var in ENV MAIL MAILPATH
145
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
146
done
147
PS1='$ '
148
PS2='> '
149
PS4='+ '
150
 
151
# NLS nuisances.
152 82 jeremybenn
LC_ALL=C
153
export LC_ALL
154
LANGUAGE=C
155
export LANGUAGE
156 19 jeremybenn
 
157
# Required to use basename.
158
if expr a : '\(a\)' >/dev/null 2>&1 &&
159
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
160
  as_expr=expr
161
else
162
  as_expr=false
163
fi
164
 
165
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
166
  as_basename=basename
167
else
168
  as_basename=false
169
fi
170
 
171
 
172
# Name of the executable.
173
as_me=`$as_basename -- "$0" ||
174
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
175
         X"$0" : 'X\(//\)$' \| \
176
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
177 82 jeremybenn
$as_echo X/"$0" |
178 19 jeremybenn
    sed '/^.*\/\([^/][^/]*\)\/*$/{
179
            s//\1/
180
            q
181
          }
182
          /^X\/\(\/\/\)$/{
183
            s//\1/
184
            q
185
          }
186
          /^X\/\(\/\).*/{
187
            s//\1/
188
            q
189
          }
190
          s/.*/./; q'`
191
 
192
# CDPATH.
193
$as_unset CDPATH
194
 
195
 
196
if test "x$CONFIG_SHELL" = x; then
197
  if (eval ":") 2>/dev/null; then
198
  as_have_required=yes
199
else
200
  as_have_required=no
201
fi
202
 
203 82 jeremybenn
  if test $as_have_required = yes &&     (eval ":
204 19 jeremybenn
(as_func_return () {
205
  (exit \$1)
206
}
207
as_func_success () {
208
  as_func_return 0
209
}
210
as_func_failure () {
211
  as_func_return 1
212
}
213
as_func_ret_success () {
214
  return 0
215
}
216
as_func_ret_failure () {
217
  return 1
218
}
219
 
220
exitcode=0
221
if as_func_success; then
222
  :
223
else
224
  exitcode=1
225
  echo as_func_success failed.
226
fi
227
 
228
if as_func_failure; then
229
  exitcode=1
230
  echo as_func_failure succeeded.
231
fi
232
 
233
if as_func_ret_success; then
234
  :
235
else
236
  exitcode=1
237
  echo as_func_ret_success failed.
238
fi
239
 
240
if as_func_ret_failure; then
241
  exitcode=1
242
  echo as_func_ret_failure succeeded.
243
fi
244
 
245
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
246
  :
247
else
248
  exitcode=1
249
  echo positional parameters were not saved.
250
fi
251
 
252
test \$exitcode = 0) || { (exit 1); exit 1; }
253
 
254
(
255
  as_lineno_1=\$LINENO
256
  as_lineno_2=\$LINENO
257
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
258
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
259
") 2> /dev/null; then
260
  :
261
else
262
  as_candidate_shells=
263
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
264
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
265
do
266
  IFS=$as_save_IFS
267
  test -z "$as_dir" && as_dir=.
268
  case $as_dir in
269
         /*)
270
           for as_base in sh bash ksh sh5; do
271
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
272
           done;;
273
       esac
274
done
275
IFS=$as_save_IFS
276
 
277
 
278
      for as_shell in $as_candidate_shells $SHELL; do
279
         # Try only shells that exist, to save several forks.
280
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
281
                { ("$as_shell") 2> /dev/null <<\_ASEOF
282
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283
  emulate sh
284
  NULLCMD=:
285 82 jeremybenn
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 19 jeremybenn
  # is contrary to our usage.  Disable this feature.
287
  alias -g '${1+"$@"}'='"$@"'
288
  setopt NO_GLOB_SUBST
289
else
290
  case `(set -o) 2>/dev/null` in
291
  *posix*) set -o posix ;;
292
esac
293
 
294
fi
295
 
296
 
297
:
298
_ASEOF
299
}; then
300
  CONFIG_SHELL=$as_shell
301
               as_have_required=yes
302
               if { "$as_shell" 2> /dev/null <<\_ASEOF
303
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
304
  emulate sh
305
  NULLCMD=:
306 82 jeremybenn
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
307 19 jeremybenn
  # is contrary to our usage.  Disable this feature.
308
  alias -g '${1+"$@"}'='"$@"'
309
  setopt NO_GLOB_SUBST
310
else
311
  case `(set -o) 2>/dev/null` in
312
  *posix*) set -o posix ;;
313
esac
314
 
315
fi
316
 
317
 
318
:
319
(as_func_return () {
320
  (exit $1)
321
}
322
as_func_success () {
323
  as_func_return 0
324
}
325
as_func_failure () {
326
  as_func_return 1
327
}
328
as_func_ret_success () {
329
  return 0
330
}
331
as_func_ret_failure () {
332
  return 1
333
}
334
 
335
exitcode=0
336
if as_func_success; then
337
  :
338
else
339
  exitcode=1
340
  echo as_func_success failed.
341
fi
342
 
343
if as_func_failure; then
344
  exitcode=1
345
  echo as_func_failure succeeded.
346
fi
347
 
348
if as_func_ret_success; then
349
  :
350
else
351
  exitcode=1
352
  echo as_func_ret_success failed.
353
fi
354
 
355
if as_func_ret_failure; then
356
  exitcode=1
357
  echo as_func_ret_failure succeeded.
358
fi
359
 
360
if ( set x; as_func_ret_success y && test x = "$1" ); then
361
  :
362
else
363
  exitcode=1
364
  echo positional parameters were not saved.
365
fi
366
 
367
test $exitcode = 0) || { (exit 1); exit 1; }
368
 
369
(
370
  as_lineno_1=$LINENO
371
  as_lineno_2=$LINENO
372
  test "x$as_lineno_1" != "x$as_lineno_2" &&
373
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
374
 
375
_ASEOF
376
}; then
377
  break
378
fi
379
 
380
fi
381
 
382
      done
383
 
384
      if test "x$CONFIG_SHELL" != x; then
385
  for as_var in BASH_ENV ENV
386 82 jeremybenn
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
387
        done
388
        export CONFIG_SHELL
389
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
390 19 jeremybenn
fi
391
 
392
 
393
    if test $as_have_required = no; then
394
  echo This script requires a shell more modern than all the
395
      echo shells that I found on your system.  Please install a
396
      echo modern shell, or manually run the script under such a
397
      echo shell if you do have one.
398
      { (exit 1); exit 1; }
399
fi
400
 
401
 
402
fi
403
 
404
fi
405
 
406
 
407
 
408
(eval "as_func_return () {
409
  (exit \$1)
410
}
411
as_func_success () {
412
  as_func_return 0
413
}
414
as_func_failure () {
415
  as_func_return 1
416
}
417
as_func_ret_success () {
418
  return 0
419
}
420
as_func_ret_failure () {
421
  return 1
422
}
423
 
424
exitcode=0
425
if as_func_success; then
426
  :
427
else
428
  exitcode=1
429
  echo as_func_success failed.
430
fi
431
 
432
if as_func_failure; then
433
  exitcode=1
434
  echo as_func_failure succeeded.
435
fi
436
 
437
if as_func_ret_success; then
438
  :
439
else
440
  exitcode=1
441
  echo as_func_ret_success failed.
442
fi
443
 
444
if as_func_ret_failure; then
445
  exitcode=1
446
  echo as_func_ret_failure succeeded.
447
fi
448
 
449
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
450
  :
451
else
452
  exitcode=1
453
  echo positional parameters were not saved.
454
fi
455
 
456
test \$exitcode = 0") || {
457
  echo No shell found that supports shell functions.
458 82 jeremybenn
  echo Please tell bug-autoconf@gnu.org about your system,
459
  echo including any error possibly output before this message.
460
  echo This can help us improve future autoconf versions.
461
  echo Configuration will now proceed without shell functions.
462 19 jeremybenn
}
463
 
464
 
465
 
466
  as_lineno_1=$LINENO
467
  as_lineno_2=$LINENO
468
  test "x$as_lineno_1" != "x$as_lineno_2" &&
469
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
470
 
471
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
472
  # uniformly replaced by the line number.  The first 'sed' inserts a
473
  # line-number line after each line using $LINENO; the second 'sed'
474
  # does the real work.  The second script uses 'N' to pair each
475
  # line-number line with the line containing $LINENO, and appends
476
  # trailing '-' during substitution so that $LINENO is not a special
477
  # case at line end.
478
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
479
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
480
  # E. McMahon (1931-1989) for sed's syntax.  :-)
481
  sed -n '
482
    p
483
    /[$]LINENO/=
484
  ' <$as_myself |
485
    sed '
486
      s/[$]LINENO.*/&-/
487
      t lineno
488
      b
489
      :lineno
490
      N
491
      :loop
492
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493
      t loop
494
      s/-\n.*//
495
    ' >$as_me.lineno &&
496
  chmod +x "$as_me.lineno" ||
497 82 jeremybenn
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
498 19 jeremybenn
   { (exit 1); exit 1; }; }
499
 
500
  # Don't try to exec as it changes $[0], causing all sort of problems
501
  # (the dirname of $[0] is not the place where we might find the
502
  # original and so on.  Autoconf is especially sensitive to this).
503
  . "./$as_me.lineno"
504
  # Exit status is that of the last command.
505
  exit
506
}
507
 
508
 
509
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
510
  as_dirname=dirname
511
else
512
  as_dirname=false
513
fi
514
 
515
ECHO_C= ECHO_N= ECHO_T=
516
case `echo -n x` in
517
-n*)
518
  case `echo 'x\c'` in
519
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
520
  *)   ECHO_C='\c';;
521
  esac;;
522
*)
523
  ECHO_N='-n';;
524
esac
525
if expr a : '\(a\)' >/dev/null 2>&1 &&
526
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
527
  as_expr=expr
528
else
529
  as_expr=false
530
fi
531
 
532
rm -f conf$$ conf$$.exe conf$$.file
533
if test -d conf$$.dir; then
534
  rm -f conf$$.dir/conf$$.file
535
else
536
  rm -f conf$$.dir
537 82 jeremybenn
  mkdir conf$$.dir 2>/dev/null
538 19 jeremybenn
fi
539 82 jeremybenn
if (echo >conf$$.file) 2>/dev/null; then
540
  if ln -s conf$$.file conf$$ 2>/dev/null; then
541
    as_ln_s='ln -s'
542
    # ... but there are two gotchas:
543
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
544
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
545
    # In both cases, we have to default to `cp -p'.
546
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
547
      as_ln_s='cp -p'
548
  elif ln conf$$.file conf$$ 2>/dev/null; then
549
    as_ln_s=ln
550
  else
551 19 jeremybenn
    as_ln_s='cp -p'
552 82 jeremybenn
  fi
553 19 jeremybenn
else
554
  as_ln_s='cp -p'
555
fi
556
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
557
rmdir conf$$.dir 2>/dev/null
558
 
559
if mkdir -p . 2>/dev/null; then
560
  as_mkdir_p=:
561
else
562
  test -d ./-p && rmdir ./-p
563
  as_mkdir_p=false
564
fi
565
 
566
if test -x / >/dev/null 2>&1; then
567
  as_test_x='test -x'
568
else
569
  if ls -dL / >/dev/null 2>&1; then
570
    as_ls_L_option=L
571
  else
572
    as_ls_L_option=
573
  fi
574
  as_test_x='
575
    eval sh -c '\''
576
      if test -d "$1"; then
577 82 jeremybenn
        test -d "$1/.";
578 19 jeremybenn
      else
579
        case $1 in
580 82 jeremybenn
        -*)set "./$1";;
581 19 jeremybenn
        esac;
582
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
583
        ???[sx]*):;;*)false;;esac;fi
584
    '\'' sh
585
  '
586
fi
587
as_executable_p=$as_test_x
588
 
589
# Sed expression to map a string onto a valid CPP name.
590
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
591
 
592
# Sed expression to map a string onto a valid variable name.
593
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
594
 
595
 
596
 
597
 
598
# Check that we are running under the correct shell.
599
SHELL=${CONFIG_SHELL-/bin/sh}
600
 
601 82 jeremybenn
case X$lt_ECHO in
602 19 jeremybenn
X*--fallback-echo)
603
  # Remove one level of quotation (which was required for Make).
604 82 jeremybenn
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
605 19 jeremybenn
  ;;
606
esac
607
 
608 82 jeremybenn
ECHO=${lt_ECHO-echo}
609 19 jeremybenn
if test "X$1" = X--no-reexec; then
610
  # Discard the --no-reexec flag, and continue.
611
  shift
612
elif test "X$1" = X--fallback-echo; then
613
  # Avoid inline document here, it may be left over
614
  :
615 82 jeremybenn
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
616
  # Yippee, $ECHO works!
617 19 jeremybenn
  :
618
else
619
  # Restart under the correct shell.
620
  exec $SHELL "$0" --no-reexec ${1+"$@"}
621
fi
622
 
623
if test "X$1" = X--fallback-echo; then
624
  # used as fallback echo
625
  shift
626 82 jeremybenn
  cat <<_LT_EOF
627 19 jeremybenn
$*
628 82 jeremybenn
_LT_EOF
629 19 jeremybenn
  exit 0
630
fi
631
 
632
# The HP-UX ksh and POSIX shell print the target directory to stdout
633
# if CDPATH is set.
634
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
635
 
636 82 jeremybenn
if test -z "$lt_ECHO"; then
637
  if test "X${echo_test_string+set}" != Xset; then
638
    # find a string as large as possible, as long as the shell can cope with it
639
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
640
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
641
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
642
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
643
      then
644
        break
645
      fi
646
    done
647
  fi
648 19 jeremybenn
 
649 82 jeremybenn
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
650
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
651
     test "X$echo_testing_string" = "X$echo_test_string"; then
652
    :
653
  else
654
    # The Solaris, AIX, and Digital Unix default echo programs unquote
655
    # backslashes.  This makes it impossible to quote backslashes using
656
    #   echo "$something" | sed 's/\\/\\\\/g'
657
    #
658
    # So, first we look for a working echo in the user's PATH.
659 19 jeremybenn
 
660 82 jeremybenn
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
661
    for dir in $PATH /usr/ucb; do
662
      IFS="$lt_save_ifs"
663
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
664
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
665
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
666
         test "X$echo_testing_string" = "X$echo_test_string"; then
667
        ECHO="$dir/echo"
668
        break
669
      fi
670
    done
671 19 jeremybenn
    IFS="$lt_save_ifs"
672
 
673 82 jeremybenn
    if test "X$ECHO" = Xecho; then
674
      # We didn't find a better echo, so look for alternatives.
675
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
676
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
677
         test "X$echo_testing_string" = "X$echo_test_string"; then
678
        # This shell has a builtin print -r that does the trick.
679
        ECHO='print -r'
680
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
681
           test "X$CONFIG_SHELL" != X/bin/ksh; then
682
        # If we have ksh, try running configure again with it.
683
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
684
        export ORIGINAL_CONFIG_SHELL
685
        CONFIG_SHELL=/bin/ksh
686
        export CONFIG_SHELL
687
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
688
      else
689
        # Try using printf.
690
        ECHO='printf %s\n'
691
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
692
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
693 19 jeremybenn
           test "X$echo_testing_string" = "X$echo_test_string"; then
694 82 jeremybenn
          # Cool, printf works
695
          :
696
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
697
             test "X$echo_testing_string" = 'X\t' &&
698
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
699
             test "X$echo_testing_string" = "X$echo_test_string"; then
700
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
701
          export CONFIG_SHELL
702
          SHELL="$CONFIG_SHELL"
703
          export SHELL
704
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
705
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
706
             test "X$echo_testing_string" = 'X\t' &&
707
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
708
             test "X$echo_testing_string" = "X$echo_test_string"; then
709
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
710
        else
711
          # maybe with a smaller string...
712
          prev=:
713 19 jeremybenn
 
714 82 jeremybenn
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
715
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
716
            then
717
              break
718
            fi
719
            prev="$cmd"
720
          done
721
 
722
          if test "$prev" != 'sed 50q "$0"'; then
723
            echo_test_string=`eval $prev`
724
            export echo_test_string
725
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
726
          else
727
            # Oops.  We lost completely, so just stick with echo.
728
            ECHO=echo
729 19 jeremybenn
          fi
730 82 jeremybenn
        fi
731 19 jeremybenn
      fi
732
    fi
733
  fi
734
fi
735
 
736
# Copy echo and quote the copy suitably for passing to libtool from
737
# the Makefile, instead of quoting the original, which is used later.
738 82 jeremybenn
lt_ECHO=$ECHO
739
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
740
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
741 19 jeremybenn
fi
742
 
743
 
744
 
745
 
746
exec 7<&0 &1
747
 
748
# Name of the host.
749
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
750
# so uname gets run too.
751
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
752
 
753
#
754
# Initializations.
755
#
756
ac_default_prefix=/usr/local
757
ac_clean_files=
758
ac_config_libobj_dir=.
759
LIBOBJS=
760
cross_compiling=no
761
subdirs=
762
MFLAGS=
763
MAKEFLAGS=
764
SHELL=${CONFIG_SHELL-/bin/sh}
765
 
766
# Identity of this package.
767
PACKAGE_NAME='or1ksim'
768
PACKAGE_TARNAME='or1ksim'
769 89 jeremybenn
PACKAGE_VERSION='2010-04-21'
770
PACKAGE_STRING='or1ksim 2010-04-21'
771 19 jeremybenn
PACKAGE_BUGREPORT='openrisc@opencores.org'
772
 
773
ac_unique_file="cpu/or32/execute.c"
774 82 jeremybenn
enable_option_checking=no
775 19 jeremybenn
# Factoring default headers for most tests.
776
ac_includes_default="\
777
#include 
778
#ifdef HAVE_SYS_TYPES_H
779
# include 
780
#endif
781
#ifdef HAVE_SYS_STAT_H
782
# include 
783
#endif
784
#ifdef STDC_HEADERS
785
# include 
786
# include 
787
#else
788
# ifdef HAVE_STDLIB_H
789
#  include 
790
# endif
791
#endif
792
#ifdef HAVE_STRING_H
793
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
794
#  include 
795
# endif
796
# include 
797
#endif
798
#ifdef HAVE_STRINGS_H
799
# include 
800
#endif
801
#ifdef HAVE_INTTYPES_H
802
# include 
803
#endif
804
#ifdef HAVE_STDINT_H
805
# include 
806
#endif
807
#ifdef HAVE_UNISTD_H
808
# include 
809
#endif"
810
 
811 82 jeremybenn
ac_subst_vars='am__EXEEXT_FALSE
812
am__EXEEXT_TRUE
813
LTLIBOBJS
814
INCLUDES
815
TERMCAP_LIB
816
SUMVERSION
817
ARFLAGS
818
LOCAL_DEFS
819
LOCAL_LDFLAGS
820
LOCAL_CFLAGS
821
BUILD_DIR
822 90 jeremybenn
DEJAGNU
823 82 jeremybenn
DYNAMIC_EXECUTION_FALSE
824
DYNAMIC_EXECUTION_TRUE
825
GENERATE_NEEDED_FALSE
826
GENERATE_NEEDED_TRUE
827
DEBUGFLAGS
828
USE_ARGDATE_FALSE
829
USE_ARGDATE_TRUE
830
USE_ARGREX_FALSE
831
USE_ARGREX_TRUE
832
USE_SYS_GETOPTLONG_FALSE
833
USE_SYS_GETOPTLONG_TRUE
834
POW_LIB
835
LIBOBJS
836
MAKE_SHELL
837
_GNU_SOURCE
838
am__fastdepCCAS_FALSE
839
am__fastdepCCAS_TRUE
840
CCASDEPMODE
841
CCASFLAGS
842
CCAS
843
CPU_ARCH
844
am__fastdepCC_FALSE
845
am__fastdepCC_TRUE
846
CCDEPMODE
847
AMDEPBACKSLASH
848
AMDEP_FALSE
849
AMDEP_TRUE
850
am__quote
851
am__include
852
DEPDIR
853
am__untar
854
am__tar
855
AMTAR
856
am__leading_dot
857
SET_MAKE
858
AWK
859
mkdir_p
860
MKDIR_P
861
INSTALL_STRIP_PROGRAM
862
install_sh
863
MAKEINFO
864
AUTOHEADER
865
AUTOMAKE
866
AUTOCONF
867
ACLOCAL
868
VERSION
869
PACKAGE
870
CYGPATH_W
871
am__isrc
872
INSTALL_DATA
873
INSTALL_SCRIPT
874
INSTALL_PROGRAM
875
CPP
876
OTOOL64
877
OTOOL
878
LIPO
879
NMEDIT
880
DSYMUTIL
881
lt_ECHO
882 19 jeremybenn
RANLIB
883
STRIP
884 82 jeremybenn
AR
885
OBJDUMP
886
LN_S
887
NM
888
ac_ct_DUMPBIN
889
DUMPBIN
890
LD
891
FGREP
892
EGREP
893
GREP
894
SED
895
OBJEXT
896
EXEEXT
897
ac_ct_CC
898
CPPFLAGS
899
LDFLAGS
900
CFLAGS
901
CC
902 19 jeremybenn
LIBTOOL
903 82 jeremybenn
target_os
904
target_vendor
905
target_cpu
906
target
907
host_os
908
host_vendor
909
host_cpu
910
host
911
build_os
912
build_vendor
913
build_cpu
914
build
915
subdirs
916
target_alias
917
host_alias
918
build_alias
919
LIBS
920
ECHO_T
921
ECHO_N
922
ECHO_C
923
DEFS
924
mandir
925
localedir
926
libdir
927
psdir
928
pdfdir
929
dvidir
930
htmldir
931
infodir
932
docdir
933
oldincludedir
934
includedir
935
localstatedir
936
sharedstatedir
937
sysconfdir
938
datadir
939
datarootdir
940
libexecdir
941
sbindir
942
bindir
943
program_transform_name
944
prefix
945
exec_prefix
946
PACKAGE_BUGREPORT
947
PACKAGE_STRING
948
PACKAGE_VERSION
949
PACKAGE_TARNAME
950
PACKAGE_NAME
951
PATH_SEPARATOR
952
SHELL'
953 19 jeremybenn
ac_subst_files=''
954 82 jeremybenn
ac_user_opts='
955
enable_option_checking
956
enable_shared
957
enable_static
958
with_pic
959
enable_fast_install
960
with_gnu_ld
961
enable_libtool_lock
962
enable_dependency_tracking
963
enable_profiling
964
enable_execution
965
enable_ethphy
966
enable_range_stats
967
enable_ov_flag
968
enable_arith_flag
969
enable_debug
970
'
971 19 jeremybenn
      ac_precious_vars='build_alias
972
host_alias
973
target_alias
974
CC
975
CFLAGS
976
LDFLAGS
977
LIBS
978
CPPFLAGS
979
CPP
980 82 jeremybenn
CCAS
981
CCASFLAGS'
982 90 jeremybenn
ac_subdirs_all='testsuite/test-code-or1k'
983 19 jeremybenn
 
984
# Initialize some variables set by options.
985
ac_init_help=
986
ac_init_version=false
987 82 jeremybenn
ac_unrecognized_opts=
988
ac_unrecognized_sep=
989 19 jeremybenn
# The variables have the same names as the options, with
990
# dashes changed to underlines.
991
cache_file=/dev/null
992
exec_prefix=NONE
993
no_create=
994
no_recursion=
995
prefix=NONE
996
program_prefix=NONE
997
program_suffix=NONE
998
program_transform_name=s,x,x,
999
silent=
1000
site=
1001
srcdir=
1002
verbose=
1003
x_includes=NONE
1004
x_libraries=NONE
1005
 
1006
# Installation directory options.
1007
# These are left unexpanded so users can "make install exec_prefix=/foo"
1008
# and all the variables that are supposed to be based on exec_prefix
1009
# by default will actually change.
1010
# Use braces instead of parens because sh, perl, etc. also accept them.
1011
# (The list follows the same order as the GNU Coding Standards.)
1012
bindir='${exec_prefix}/bin'
1013
sbindir='${exec_prefix}/sbin'
1014
libexecdir='${exec_prefix}/libexec'
1015
datarootdir='${prefix}/share'
1016
datadir='${datarootdir}'
1017
sysconfdir='${prefix}/etc'
1018
sharedstatedir='${prefix}/com'
1019
localstatedir='${prefix}/var'
1020
includedir='${prefix}/include'
1021
oldincludedir='/usr/include'
1022
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1023
infodir='${datarootdir}/info'
1024
htmldir='${docdir}'
1025
dvidir='${docdir}'
1026
pdfdir='${docdir}'
1027
psdir='${docdir}'
1028
libdir='${exec_prefix}/lib'
1029
localedir='${datarootdir}/locale'
1030
mandir='${datarootdir}/man'
1031
 
1032
ac_prev=
1033
ac_dashdash=
1034
for ac_option
1035
do
1036
  # If the previous option needs an argument, assign it.
1037
  if test -n "$ac_prev"; then
1038
    eval $ac_prev=\$ac_option
1039
    ac_prev=
1040
    continue
1041
  fi
1042
 
1043
  case $ac_option in
1044
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1045
  *)    ac_optarg=yes ;;
1046
  esac
1047
 
1048
  # Accept the important Cygnus configure options, so we can diagnose typos.
1049
 
1050
  case $ac_dashdash$ac_option in
1051
  --)
1052
    ac_dashdash=yes ;;
1053
 
1054
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1055
    ac_prev=bindir ;;
1056
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1057
    bindir=$ac_optarg ;;
1058
 
1059
  -build | --build | --buil | --bui | --bu)
1060
    ac_prev=build_alias ;;
1061
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1062
    build_alias=$ac_optarg ;;
1063
 
1064
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1065
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1066
    ac_prev=cache_file ;;
1067
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1068
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1069
    cache_file=$ac_optarg ;;
1070
 
1071
  --config-cache | -C)
1072
    cache_file=config.cache ;;
1073
 
1074
  -datadir | --datadir | --datadi | --datad)
1075
    ac_prev=datadir ;;
1076
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1077
    datadir=$ac_optarg ;;
1078
 
1079
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1080
  | --dataroo | --dataro | --datar)
1081
    ac_prev=datarootdir ;;
1082
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1083
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1084
    datarootdir=$ac_optarg ;;
1085
 
1086
  -disable-* | --disable-*)
1087 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1088 19 jeremybenn
    # Reject names that are not valid shell variable names.
1089 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1090
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1091 19 jeremybenn
   { (exit 1); exit 1; }; }
1092 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1093
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094
    case $ac_user_opts in
1095
      *"
1096
"enable_$ac_useropt"
1097
"*) ;;
1098
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1099
         ac_unrecognized_sep=', ';;
1100
    esac
1101
    eval enable_$ac_useropt=no ;;
1102 19 jeremybenn
 
1103
  -docdir | --docdir | --docdi | --doc | --do)
1104
    ac_prev=docdir ;;
1105
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1106
    docdir=$ac_optarg ;;
1107
 
1108
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1109
    ac_prev=dvidir ;;
1110
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1111
    dvidir=$ac_optarg ;;
1112
 
1113
  -enable-* | --enable-*)
1114 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1115 19 jeremybenn
    # Reject names that are not valid shell variable names.
1116 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1118 19 jeremybenn
   { (exit 1); exit 1; }; }
1119 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1120
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121
    case $ac_user_opts in
1122
      *"
1123
"enable_$ac_useropt"
1124
"*) ;;
1125
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1126
         ac_unrecognized_sep=', ';;
1127
    esac
1128
    eval enable_$ac_useropt=\$ac_optarg ;;
1129 19 jeremybenn
 
1130
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1131
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1132
  | --exec | --exe | --ex)
1133
    ac_prev=exec_prefix ;;
1134
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1135
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1136
  | --exec=* | --exe=* | --ex=*)
1137
    exec_prefix=$ac_optarg ;;
1138
 
1139
  -gas | --gas | --ga | --g)
1140
    # Obsolete; use --with-gas.
1141
    with_gas=yes ;;
1142
 
1143
  -help | --help | --hel | --he | -h)
1144
    ac_init_help=long ;;
1145
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1146
    ac_init_help=recursive ;;
1147
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1148
    ac_init_help=short ;;
1149
 
1150
  -host | --host | --hos | --ho)
1151
    ac_prev=host_alias ;;
1152
  -host=* | --host=* | --hos=* | --ho=*)
1153
    host_alias=$ac_optarg ;;
1154
 
1155
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1156
    ac_prev=htmldir ;;
1157
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1158
  | --ht=*)
1159
    htmldir=$ac_optarg ;;
1160
 
1161
  -includedir | --includedir | --includedi | --included | --include \
1162
  | --includ | --inclu | --incl | --inc)
1163
    ac_prev=includedir ;;
1164
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1165
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1166
    includedir=$ac_optarg ;;
1167
 
1168
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1169
    ac_prev=infodir ;;
1170
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1171
    infodir=$ac_optarg ;;
1172
 
1173
  -libdir | --libdir | --libdi | --libd)
1174
    ac_prev=libdir ;;
1175
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1176
    libdir=$ac_optarg ;;
1177
 
1178
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1179
  | --libexe | --libex | --libe)
1180
    ac_prev=libexecdir ;;
1181
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1182
  | --libexe=* | --libex=* | --libe=*)
1183
    libexecdir=$ac_optarg ;;
1184
 
1185
  -localedir | --localedir | --localedi | --localed | --locale)
1186
    ac_prev=localedir ;;
1187
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1188
    localedir=$ac_optarg ;;
1189
 
1190
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1191
  | --localstate | --localstat | --localsta | --localst | --locals)
1192
    ac_prev=localstatedir ;;
1193
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1194
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1195
    localstatedir=$ac_optarg ;;
1196
 
1197
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1198
    ac_prev=mandir ;;
1199
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1200
    mandir=$ac_optarg ;;
1201
 
1202
  -nfp | --nfp | --nf)
1203
    # Obsolete; use --without-fp.
1204
    with_fp=no ;;
1205
 
1206
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1207
  | --no-cr | --no-c | -n)
1208
    no_create=yes ;;
1209
 
1210
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1211
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1212
    no_recursion=yes ;;
1213
 
1214
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1215
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1216
  | --oldin | --oldi | --old | --ol | --o)
1217
    ac_prev=oldincludedir ;;
1218
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1219
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1220
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1221
    oldincludedir=$ac_optarg ;;
1222
 
1223
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1224
    ac_prev=prefix ;;
1225
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1226
    prefix=$ac_optarg ;;
1227
 
1228
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1229
  | --program-pre | --program-pr | --program-p)
1230
    ac_prev=program_prefix ;;
1231
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1232
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1233
    program_prefix=$ac_optarg ;;
1234
 
1235
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1236
  | --program-suf | --program-su | --program-s)
1237
    ac_prev=program_suffix ;;
1238
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1239
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1240
    program_suffix=$ac_optarg ;;
1241
 
1242
  -program-transform-name | --program-transform-name \
1243
  | --program-transform-nam | --program-transform-na \
1244
  | --program-transform-n | --program-transform- \
1245
  | --program-transform | --program-transfor \
1246
  | --program-transfo | --program-transf \
1247
  | --program-trans | --program-tran \
1248
  | --progr-tra | --program-tr | --program-t)
1249
    ac_prev=program_transform_name ;;
1250
  -program-transform-name=* | --program-transform-name=* \
1251
  | --program-transform-nam=* | --program-transform-na=* \
1252
  | --program-transform-n=* | --program-transform-=* \
1253
  | --program-transform=* | --program-transfor=* \
1254
  | --program-transfo=* | --program-transf=* \
1255
  | --program-trans=* | --program-tran=* \
1256
  | --progr-tra=* | --program-tr=* | --program-t=*)
1257
    program_transform_name=$ac_optarg ;;
1258
 
1259
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1260
    ac_prev=pdfdir ;;
1261
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1262
    pdfdir=$ac_optarg ;;
1263
 
1264
  -psdir | --psdir | --psdi | --psd | --ps)
1265
    ac_prev=psdir ;;
1266
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1267
    psdir=$ac_optarg ;;
1268
 
1269
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1270
  | -silent | --silent | --silen | --sile | --sil)
1271
    silent=yes ;;
1272
 
1273
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1274
    ac_prev=sbindir ;;
1275
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1276
  | --sbi=* | --sb=*)
1277
    sbindir=$ac_optarg ;;
1278
 
1279
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1280
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1281
  | --sharedst | --shareds | --shared | --share | --shar \
1282
  | --sha | --sh)
1283
    ac_prev=sharedstatedir ;;
1284
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1285
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1286
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1287
  | --sha=* | --sh=*)
1288
    sharedstatedir=$ac_optarg ;;
1289
 
1290
  -site | --site | --sit)
1291
    ac_prev=site ;;
1292
  -site=* | --site=* | --sit=*)
1293
    site=$ac_optarg ;;
1294
 
1295
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1296
    ac_prev=srcdir ;;
1297
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1298
    srcdir=$ac_optarg ;;
1299
 
1300
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1301
  | --syscon | --sysco | --sysc | --sys | --sy)
1302
    ac_prev=sysconfdir ;;
1303
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1304
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1305
    sysconfdir=$ac_optarg ;;
1306
 
1307
  -target | --target | --targe | --targ | --tar | --ta | --t)
1308
    ac_prev=target_alias ;;
1309
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1310
    target_alias=$ac_optarg ;;
1311
 
1312
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1313
    verbose=yes ;;
1314
 
1315
  -version | --version | --versio | --versi | --vers | -V)
1316
    ac_init_version=: ;;
1317
 
1318
  -with-* | --with-*)
1319 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1320 19 jeremybenn
    # Reject names that are not valid shell variable names.
1321 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1322
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1323 19 jeremybenn
   { (exit 1); exit 1; }; }
1324 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1325
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1326
    case $ac_user_opts in
1327
      *"
1328
"with_$ac_useropt"
1329
"*) ;;
1330
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1331
         ac_unrecognized_sep=', ';;
1332
    esac
1333
    eval with_$ac_useropt=\$ac_optarg ;;
1334 19 jeremybenn
 
1335
  -without-* | --without-*)
1336 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1337 19 jeremybenn
    # Reject names that are not valid shell variable names.
1338 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1339
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1340 19 jeremybenn
   { (exit 1); exit 1; }; }
1341 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1342
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1343
    case $ac_user_opts in
1344
      *"
1345
"with_$ac_useropt"
1346
"*) ;;
1347
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1348
         ac_unrecognized_sep=', ';;
1349
    esac
1350
    eval with_$ac_useropt=no ;;
1351 19 jeremybenn
 
1352
  --x)
1353
    # Obsolete; use --with-x.
1354
    with_x=yes ;;
1355
 
1356
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1357
  | --x-incl | --x-inc | --x-in | --x-i)
1358
    ac_prev=x_includes ;;
1359
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1360
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1361
    x_includes=$ac_optarg ;;
1362
 
1363
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1364
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1365
    ac_prev=x_libraries ;;
1366
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1367
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1368
    x_libraries=$ac_optarg ;;
1369
 
1370 82 jeremybenn
  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1371 19 jeremybenn
Try \`$0 --help' for more information." >&2
1372
   { (exit 1); exit 1; }; }
1373
    ;;
1374
 
1375
  *=*)
1376
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1377
    # Reject names that are not valid shell variable names.
1378
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1379 82 jeremybenn
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1380 19 jeremybenn
   { (exit 1); exit 1; }; }
1381
    eval $ac_envvar=\$ac_optarg
1382
    export $ac_envvar ;;
1383
 
1384
  *)
1385
    # FIXME: should be removed in autoconf 3.0.
1386 82 jeremybenn
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1387 19 jeremybenn
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1388 82 jeremybenn
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1389 19 jeremybenn
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1390
    ;;
1391
 
1392
  esac
1393
done
1394
 
1395
if test -n "$ac_prev"; then
1396
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1397 82 jeremybenn
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1398 19 jeremybenn
   { (exit 1); exit 1; }; }
1399
fi
1400
 
1401 82 jeremybenn
if test -n "$ac_unrecognized_opts"; then
1402
  case $enable_option_checking in
1403
    no) ;;
1404
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1405
   { (exit 1); exit 1; }; } ;;
1406
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1407
  esac
1408
fi
1409
 
1410
# Check all directory arguments for consistency.
1411 19 jeremybenn
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1412
                datadir sysconfdir sharedstatedir localstatedir includedir \
1413
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1414
                libdir localedir mandir
1415
do
1416
  eval ac_val=\$$ac_var
1417 82 jeremybenn
  # Remove trailing slashes.
1418 19 jeremybenn
  case $ac_val in
1419 82 jeremybenn
    */ )
1420
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1421
      eval $ac_var=\$ac_val;;
1422
  esac
1423
  # Be sure to have absolute directory names.
1424
  case $ac_val in
1425 19 jeremybenn
    [\\/$]* | ?:[\\/]* )  continue;;
1426
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1427
  esac
1428 82 jeremybenn
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1429 19 jeremybenn
   { (exit 1); exit 1; }; }
1430
done
1431
 
1432
# There might be people who depend on the old broken behavior: `$host'
1433
# used to hold the argument of --host etc.
1434
# FIXME: To remove some day.
1435
build=$build_alias
1436
host=$host_alias
1437
target=$target_alias
1438
 
1439
# FIXME: To remove some day.
1440
if test "x$host_alias" != x; then
1441
  if test "x$build_alias" = x; then
1442
    cross_compiling=maybe
1443 82 jeremybenn
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1444 19 jeremybenn
    If a cross compiler is detected then cross compile mode will be used." >&2
1445
  elif test "x$build_alias" != "x$host_alias"; then
1446
    cross_compiling=yes
1447
  fi
1448
fi
1449
 
1450
ac_tool_prefix=
1451
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1452
 
1453
test "$silent" = yes && exec 6>/dev/null
1454
 
1455
 
1456
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1457
ac_ls_di=`ls -di .` &&
1458
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1459 82 jeremybenn
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1460 19 jeremybenn
   { (exit 1); exit 1; }; }
1461
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1462 82 jeremybenn
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1463 19 jeremybenn
   { (exit 1); exit 1; }; }
1464
 
1465
 
1466
# Find the source files, if location was not specified.
1467
if test -z "$srcdir"; then
1468
  ac_srcdir_defaulted=yes
1469
  # Try the directory containing this script, then the parent directory.
1470 82 jeremybenn
  ac_confdir=`$as_dirname -- "$as_myself" ||
1471
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1472
         X"$as_myself" : 'X\(//\)[^/]' \| \
1473
         X"$as_myself" : 'X\(//\)$' \| \
1474
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1475
$as_echo X"$as_myself" |
1476 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1477
            s//\1/
1478
            q
1479
          }
1480
          /^X\(\/\/\)[^/].*/{
1481
            s//\1/
1482
            q
1483
          }
1484
          /^X\(\/\/\)$/{
1485
            s//\1/
1486
            q
1487
          }
1488
          /^X\(\/\).*/{
1489
            s//\1/
1490
            q
1491
          }
1492
          s/.*/./; q'`
1493
  srcdir=$ac_confdir
1494
  if test ! -r "$srcdir/$ac_unique_file"; then
1495
    srcdir=..
1496
  fi
1497
else
1498
  ac_srcdir_defaulted=no
1499
fi
1500
if test ! -r "$srcdir/$ac_unique_file"; then
1501
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1502 82 jeremybenn
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1503 19 jeremybenn
   { (exit 1); exit 1; }; }
1504
fi
1505
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1506
ac_abs_confdir=`(
1507 82 jeremybenn
        cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1508 19 jeremybenn
   { (exit 1); exit 1; }; }
1509
        pwd)`
1510
# When building in place, set srcdir=.
1511
if test "$ac_abs_confdir" = "$ac_pwd"; then
1512
  srcdir=.
1513
fi
1514
# Remove unnecessary trailing slashes from srcdir.
1515
# Double slashes in file names in object file debugging info
1516
# mess up M-x gdb in Emacs.
1517
case $srcdir in
1518
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1519
esac
1520
for ac_var in $ac_precious_vars; do
1521
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1522
  eval ac_env_${ac_var}_value=\$${ac_var}
1523
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1524
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1525
done
1526
 
1527
#
1528
# Report the --help message.
1529
#
1530
if test "$ac_init_help" = "long"; then
1531
  # Omit some internal or obsolete options to make the list less imposing.
1532
  # This message is too long to be a string in the A/UX 3.1 sh.
1533
  cat <<_ACEOF
1534 89 jeremybenn
\`configure' configures or1ksim 2010-04-21 to adapt to many kinds of systems.
1535 19 jeremybenn
 
1536
Usage: $0 [OPTION]... [VAR=VALUE]...
1537
 
1538
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1539
VAR=VALUE.  See below for descriptions of some of the useful variables.
1540
 
1541
Defaults for the options are specified in brackets.
1542
 
1543
Configuration:
1544
  -h, --help              display this help and exit
1545
      --help=short        display options specific to this package
1546
      --help=recursive    display the short help of all the included packages
1547
  -V, --version           display version information and exit
1548
  -q, --quiet, --silent   do not print \`checking...' messages
1549
      --cache-file=FILE   cache test results in FILE [disabled]
1550
  -C, --config-cache      alias for \`--cache-file=config.cache'
1551
  -n, --no-create         do not create output files
1552
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1553
 
1554
Installation directories:
1555
  --prefix=PREFIX         install architecture-independent files in PREFIX
1556 82 jeremybenn
                          [$ac_default_prefix]
1557 19 jeremybenn
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1558 82 jeremybenn
                          [PREFIX]
1559 19 jeremybenn
 
1560
By default, \`make install' will install all the files in
1561
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1562
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1563
for instance \`--prefix=\$HOME'.
1564
 
1565
For better control, use the options below.
1566
 
1567
Fine tuning of the installation directories:
1568 82 jeremybenn
  --bindir=DIR            user executables [EPREFIX/bin]
1569
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1570
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1571
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1572
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1573
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1574
  --libdir=DIR            object code libraries [EPREFIX/lib]
1575
  --includedir=DIR        C header files [PREFIX/include]
1576
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1577
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1578
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1579
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1580
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1581
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1582
  --docdir=DIR            documentation root [DATAROOTDIR/doc/or1ksim]
1583
  --htmldir=DIR           html documentation [DOCDIR]
1584
  --dvidir=DIR            dvi documentation [DOCDIR]
1585
  --pdfdir=DIR            pdf documentation [DOCDIR]
1586
  --psdir=DIR             ps documentation [DOCDIR]
1587 19 jeremybenn
_ACEOF
1588
 
1589
  cat <<\_ACEOF
1590
 
1591
Program names:
1592
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1593
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1594
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1595
 
1596
System types:
1597
  --build=BUILD     configure for building on BUILD [guessed]
1598
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1599
  --target=TARGET   configure for building compilers for TARGET [HOST]
1600
_ACEOF
1601
fi
1602
 
1603
if test -n "$ac_init_help"; then
1604
  case $ac_init_help in
1605 89 jeremybenn
     short | recursive ) echo "Configuration of or1ksim 2010-04-21:";;
1606 19 jeremybenn
   esac
1607
  cat <<\_ACEOF
1608
 
1609
Optional Features:
1610 82 jeremybenn
  --disable-option-checking  ignore unrecognized --enable/--with options
1611 19 jeremybenn
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1612
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1613
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1614
  --enable-static[=PKGS]  build static libraries [default=yes]
1615
  --enable-fast-install[=PKGS]
1616
                          optimize for fast installation [default=yes]
1617
  --disable-libtool-lock  avoid locking (might break parallel builds)
1618
  --disable-dependency-tracking  speeds up one-time build
1619
  --enable-dependency-tracking   do not reject slow dependency extractors
1620
  --enable-profiling      generate profiling code
1621
  --enable-execution Execution style to use (simple/complex/dynamic)
1622
  --enable-ethphy    compiles sim with ethernet phy support
1623
  --enable-range-stats      Specifies, whether we should do register accesses over time analysis.
1624
  --enable-ov-flag      Whether instructions set overflow flag.
1625
  --enable-arith-flag      Whether arithmethic instructions setflag.
1626
  --enable-debug          enable library debugging symbols
1627
 
1628
Optional Packages:
1629
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1630
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1631
  --with-pic              try to use only PIC/non-PIC objects [default=use
1632
                          both]
1633 82 jeremybenn
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1634 19 jeremybenn
 
1635
Some influential environment variables:
1636
  CC          C compiler command
1637
  CFLAGS      C compiler flags
1638
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1639
              nonstandard directory 
1640
  LIBS        libraries to pass to the linker, e.g. -l
1641
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
1642
              you have headers in a nonstandard directory 
1643
  CPP         C preprocessor
1644 82 jeremybenn
  CCAS        assembler compiler command (defaults to CC)
1645
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1646 19 jeremybenn
 
1647
Use these variables to override the choices made by `configure' or to help
1648
it to find libraries and programs with nonstandard names/locations.
1649
 
1650
Report bugs to .
1651
_ACEOF
1652
ac_status=$?
1653
fi
1654
 
1655
if test "$ac_init_help" = "recursive"; then
1656
  # If there are subdirs, report their specific --help.
1657
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1658 82 jeremybenn
    test -d "$ac_dir" ||
1659
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1660
      continue
1661 19 jeremybenn
    ac_builddir=.
1662
 
1663
case "$ac_dir" in
1664
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1665
*)
1666 82 jeremybenn
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1667 19 jeremybenn
  # A ".." for each directory in $ac_dir_suffix.
1668 82 jeremybenn
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1669 19 jeremybenn
  case $ac_top_builddir_sub in
1670
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1671
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1672
  esac ;;
1673
esac
1674
ac_abs_top_builddir=$ac_pwd
1675
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1676
# for backward compatibility:
1677
ac_top_builddir=$ac_top_build_prefix
1678
 
1679
case $srcdir in
1680
  .)  # We are building in place.
1681
    ac_srcdir=.
1682
    ac_top_srcdir=$ac_top_builddir_sub
1683
    ac_abs_top_srcdir=$ac_pwd ;;
1684
  [\\/]* | ?:[\\/]* )  # Absolute name.
1685
    ac_srcdir=$srcdir$ac_dir_suffix;
1686
    ac_top_srcdir=$srcdir
1687
    ac_abs_top_srcdir=$srcdir ;;
1688
  *) # Relative name.
1689
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1690
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1691
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1692
esac
1693
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1694
 
1695
    cd "$ac_dir" || { ac_status=$?; continue; }
1696
    # Check for guested configure.
1697
    if test -f "$ac_srcdir/configure.gnu"; then
1698
      echo &&
1699
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1700
    elif test -f "$ac_srcdir/configure"; then
1701
      echo &&
1702
      $SHELL "$ac_srcdir/configure" --help=recursive
1703
    else
1704 82 jeremybenn
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1705 19 jeremybenn
    fi || ac_status=$?
1706
    cd "$ac_pwd" || { ac_status=$?; break; }
1707
  done
1708
fi
1709
 
1710
test -n "$ac_init_help" && exit $ac_status
1711
if $ac_init_version; then
1712
  cat <<\_ACEOF
1713 89 jeremybenn
or1ksim configure 2010-04-21
1714 82 jeremybenn
generated by GNU Autoconf 2.63
1715 19 jeremybenn
 
1716
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1717 82 jeremybenn
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1718 19 jeremybenn
This configure script is free software; the Free Software Foundation
1719
gives unlimited permission to copy, distribute and modify it.
1720 82 jeremybenn
 
1721
Copyright (C) 1999-2008 OpenCores
1722
Copyright (C) 2008, 2010 Embecosm Limited
1723
 
1724
Contributor Jeremy Bennett 
1725
 
1726
This file is part of OpenRISC 1000 Architectural Simulator.
1727
 
1728
This program is free software; you can redistribute it and/or modify it
1729
under the terms of the GNU General Public License as published by the Free
1730
Software Foundation; either version 3 of the License, or (at your option)
1731
any later version.
1732
 
1733
This program is distributed in the hope that it will be useful, but WITHOUT
1734
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1735
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
1736
more details.
1737
 
1738
You should have received a copy of the GNU General Public License along
1739
with this program.  If not, see .
1740 19 jeremybenn
_ACEOF
1741
  exit
1742
fi
1743
cat >config.log <<_ACEOF
1744
This file contains any messages produced by compilers while
1745
running configure, to aid debugging if configure makes a mistake.
1746
 
1747 89 jeremybenn
It was created by or1ksim $as_me 2010-04-21, which was
1748 82 jeremybenn
generated by GNU Autoconf 2.63.  Invocation command line was
1749 19 jeremybenn
 
1750
  $ $0 $@
1751
 
1752
_ACEOF
1753
exec 5>>config.log
1754
{
1755
cat <<_ASUNAME
1756
## --------- ##
1757
## Platform. ##
1758
## --------- ##
1759
 
1760
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1761
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1762
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1763
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1764
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1765
 
1766
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1767
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1768
 
1769
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1770
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1771
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1772
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1773
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1774
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1775
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1776
 
1777
_ASUNAME
1778
 
1779
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780
for as_dir in $PATH
1781
do
1782
  IFS=$as_save_IFS
1783
  test -z "$as_dir" && as_dir=.
1784 82 jeremybenn
  $as_echo "PATH: $as_dir"
1785 19 jeremybenn
done
1786
IFS=$as_save_IFS
1787
 
1788
} >&5
1789
 
1790
cat >&5 <<_ACEOF
1791
 
1792
 
1793
## ----------- ##
1794
## Core tests. ##
1795
## ----------- ##
1796
 
1797
_ACEOF
1798
 
1799
 
1800
# Keep a trace of the command line.
1801
# Strip out --no-create and --no-recursion so they do not pile up.
1802
# Strip out --silent because we don't want to record it for future runs.
1803
# Also quote any args containing shell meta-characters.
1804
# Make two passes to allow for proper duplicate-argument suppression.
1805
ac_configure_args=
1806
ac_configure_args0=
1807
ac_configure_args1=
1808
ac_must_keep_next=false
1809
for ac_pass in 1 2
1810
do
1811
  for ac_arg
1812
  do
1813
    case $ac_arg in
1814
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1815
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1816
    | -silent | --silent | --silen | --sile | --sil)
1817
      continue ;;
1818
    *\'*)
1819 82 jeremybenn
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1820 19 jeremybenn
    esac
1821
    case $ac_pass in
1822
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1823
    2)
1824
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1825
      if test $ac_must_keep_next = true; then
1826
        ac_must_keep_next=false # Got value, back to normal.
1827
      else
1828
        case $ac_arg in
1829
          *=* | --config-cache | -C | -disable-* | --disable-* \
1830
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1831
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1832
          | -with-* | --with-* | -without-* | --without-* | --x)
1833
            case "$ac_configure_args0 " in
1834
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1835
            esac
1836
            ;;
1837
          -* ) ac_must_keep_next=true ;;
1838
        esac
1839
      fi
1840
      ac_configure_args="$ac_configure_args '$ac_arg'"
1841
      ;;
1842
    esac
1843
  done
1844
done
1845
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1846
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1847
 
1848
# When interrupted or exit'd, cleanup temporary files, and complete
1849
# config.log.  We remove comments because anyway the quotes in there
1850
# would cause problems or look ugly.
1851
# WARNING: Use '\'' to represent an apostrophe within the trap.
1852
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1853
trap 'exit_status=$?
1854
  # Save into config.log some information that might help in debugging.
1855
  {
1856
    echo
1857
 
1858
    cat <<\_ASBOX
1859
## ---------------- ##
1860
## Cache variables. ##
1861
## ---------------- ##
1862
_ASBOX
1863
    echo
1864
    # The following way of writing the cache mishandles newlines in values,
1865
(
1866
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1867
    eval ac_val=\$$ac_var
1868
    case $ac_val in #(
1869
    *${as_nl}*)
1870
      case $ac_var in #(
1871 82 jeremybenn
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1872
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1873 19 jeremybenn
      esac
1874
      case $ac_var in #(
1875
      _ | IFS | as_nl) ;; #(
1876 82 jeremybenn
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1877 19 jeremybenn
      *) $as_unset $ac_var ;;
1878
      esac ;;
1879
    esac
1880
  done
1881
  (set) 2>&1 |
1882
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1883
    *${as_nl}ac_space=\ *)
1884
      sed -n \
1885
        "s/'\''/'\''\\\\'\'''\''/g;
1886
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1887
      ;; #(
1888
    *)
1889
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1890
      ;;
1891
    esac |
1892
    sort
1893
)
1894
    echo
1895
 
1896
    cat <<\_ASBOX
1897
## ----------------- ##
1898
## Output variables. ##
1899
## ----------------- ##
1900
_ASBOX
1901
    echo
1902
    for ac_var in $ac_subst_vars
1903
    do
1904
      eval ac_val=\$$ac_var
1905
      case $ac_val in
1906 82 jeremybenn
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1907 19 jeremybenn
      esac
1908 82 jeremybenn
      $as_echo "$ac_var='\''$ac_val'\''"
1909 19 jeremybenn
    done | sort
1910
    echo
1911
 
1912
    if test -n "$ac_subst_files"; then
1913
      cat <<\_ASBOX
1914
## ------------------- ##
1915
## File substitutions. ##
1916
## ------------------- ##
1917
_ASBOX
1918
      echo
1919
      for ac_var in $ac_subst_files
1920
      do
1921
        eval ac_val=\$$ac_var
1922
        case $ac_val in
1923 82 jeremybenn
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1924 19 jeremybenn
        esac
1925 82 jeremybenn
        $as_echo "$ac_var='\''$ac_val'\''"
1926 19 jeremybenn
      done | sort
1927
      echo
1928
    fi
1929
 
1930
    if test -s confdefs.h; then
1931
      cat <<\_ASBOX
1932
## ----------- ##
1933
## confdefs.h. ##
1934
## ----------- ##
1935
_ASBOX
1936
      echo
1937
      cat confdefs.h
1938
      echo
1939
    fi
1940
    test "$ac_signal" != 0 &&
1941 82 jeremybenn
      $as_echo "$as_me: caught signal $ac_signal"
1942
    $as_echo "$as_me: exit $exit_status"
1943 19 jeremybenn
  } >&5
1944
  rm -f core *.core core.conftest.* &&
1945
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1946
    exit $exit_status
1947
' 0
1948
for ac_signal in 1 2 13 15; do
1949
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1950
done
1951
ac_signal=0
1952
 
1953
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1954
rm -f -r conftest* confdefs.h
1955
 
1956
# Predefined preprocessor variables.
1957
 
1958
cat >>confdefs.h <<_ACEOF
1959
#define PACKAGE_NAME "$PACKAGE_NAME"
1960
_ACEOF
1961
 
1962
 
1963
cat >>confdefs.h <<_ACEOF
1964
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1965
_ACEOF
1966
 
1967
 
1968
cat >>confdefs.h <<_ACEOF
1969
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1970
_ACEOF
1971
 
1972
 
1973
cat >>confdefs.h <<_ACEOF
1974
#define PACKAGE_STRING "$PACKAGE_STRING"
1975
_ACEOF
1976
 
1977
 
1978
cat >>confdefs.h <<_ACEOF
1979
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1980
_ACEOF
1981
 
1982
 
1983
# Let the site file select an alternate cache file if it wants to.
1984 82 jeremybenn
# Prefer an explicitly selected file to automatically selected ones.
1985
ac_site_file1=NONE
1986
ac_site_file2=NONE
1987 19 jeremybenn
if test -n "$CONFIG_SITE"; then
1988 82 jeremybenn
  ac_site_file1=$CONFIG_SITE
1989 19 jeremybenn
elif test "x$prefix" != xNONE; then
1990 82 jeremybenn
  ac_site_file1=$prefix/share/config.site
1991
  ac_site_file2=$prefix/etc/config.site
1992 19 jeremybenn
else
1993 82 jeremybenn
  ac_site_file1=$ac_default_prefix/share/config.site
1994
  ac_site_file2=$ac_default_prefix/etc/config.site
1995 19 jeremybenn
fi
1996 82 jeremybenn
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1997 19 jeremybenn
do
1998 82 jeremybenn
  test "x$ac_site_file" = xNONE && continue
1999 19 jeremybenn
  if test -r "$ac_site_file"; then
2000 82 jeremybenn
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2001
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2002 19 jeremybenn
    sed 's/^/| /' "$ac_site_file" >&5
2003
    . "$ac_site_file"
2004
  fi
2005
done
2006
 
2007
if test -r "$cache_file"; then
2008
  # Some versions of bash will fail to source /dev/null (special
2009
  # files actually), so we avoid doing that.
2010
  if test -f "$cache_file"; then
2011 82 jeremybenn
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2012
$as_echo "$as_me: loading cache $cache_file" >&6;}
2013 19 jeremybenn
    case $cache_file in
2014
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2015
      *)                      . "./$cache_file";;
2016
    esac
2017
  fi
2018
else
2019 82 jeremybenn
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2020
$as_echo "$as_me: creating cache $cache_file" >&6;}
2021 19 jeremybenn
  >$cache_file
2022
fi
2023
 
2024
# Check that the precious variables saved in the cache have kept the same
2025
# value.
2026
ac_cache_corrupted=false
2027
for ac_var in $ac_precious_vars; do
2028
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2029
  eval ac_new_set=\$ac_env_${ac_var}_set
2030
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2031
  eval ac_new_val=\$ac_env_${ac_var}_value
2032
  case $ac_old_set,$ac_new_set in
2033
    set,)
2034 82 jeremybenn
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2035
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2036 19 jeremybenn
      ac_cache_corrupted=: ;;
2037
    ,set)
2038 82 jeremybenn
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2039
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2040 19 jeremybenn
      ac_cache_corrupted=: ;;
2041
    ,);;
2042
    *)
2043
      if test "x$ac_old_val" != "x$ac_new_val"; then
2044 82 jeremybenn
        # differences in whitespace do not lead to failure.
2045
        ac_old_val_w=`echo x $ac_old_val`
2046
        ac_new_val_w=`echo x $ac_new_val`
2047
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2048
          { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2049
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2050
          ac_cache_corrupted=:
2051
        else
2052
          { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2053
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2054
          eval $ac_var=\$ac_old_val
2055
        fi
2056
        { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2057
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2058
        { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2059
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2060 19 jeremybenn
      fi;;
2061
  esac
2062
  # Pass precious variables to config.status.
2063
  if test "$ac_new_set" = set; then
2064
    case $ac_new_val in
2065 82 jeremybenn
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2066 19 jeremybenn
    *) ac_arg=$ac_var=$ac_new_val ;;
2067
    esac
2068
    case " $ac_configure_args " in
2069
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2070
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2071
    esac
2072
  fi
2073
done
2074
if $ac_cache_corrupted; then
2075 82 jeremybenn
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2076
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2077
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2078
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2079
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2080
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2081 19 jeremybenn
   { (exit 1); exit 1; }; }
2082
fi
2083
 
2084
 
2085
 
2086
 
2087
 
2088
 
2089
 
2090
 
2091
 
2092
 
2093
 
2094
 
2095
 
2096
 
2097
 
2098
 
2099
 
2100
 
2101
 
2102
 
2103
 
2104
 
2105
 
2106
 
2107
 
2108
ac_ext=c
2109
ac_cpp='$CPP $CPPFLAGS'
2110
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2111
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2112
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2113
 
2114
 
2115
 
2116 82 jeremybenn
 
2117
# Check we have the execute source file present for sanity. Specify a separate
2118 90 jeremybenn
# config for the testsuite OR1K specific programs, since we'll need different
2119
# tool chain there (the OpenRISC one, rather than the native one).
2120 82 jeremybenn
 
2121 19 jeremybenn
ac_aux_dir=
2122
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2123
  if test -f "$ac_dir/install-sh"; then
2124
    ac_aux_dir=$ac_dir
2125
    ac_install_sh="$ac_aux_dir/install-sh -c"
2126
    break
2127
  elif test -f "$ac_dir/install.sh"; then
2128
    ac_aux_dir=$ac_dir
2129
    ac_install_sh="$ac_aux_dir/install.sh -c"
2130
    break
2131
  elif test -f "$ac_dir/shtool"; then
2132
    ac_aux_dir=$ac_dir
2133
    ac_install_sh="$ac_aux_dir/shtool install -c"
2134
    break
2135
  fi
2136
done
2137
if test -z "$ac_aux_dir"; then
2138 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2139
$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2140 19 jeremybenn
   { (exit 1); exit 1; }; }
2141
fi
2142
 
2143
# These three variables are undocumented and unsupported,
2144
# and are intended to be withdrawn in a future Autoconf release.
2145
# They can cause serious problems if a builder's source tree is in a directory
2146
# whose full name contains unusual characters.
2147
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2148
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2149
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2150
 
2151
 
2152 82 jeremybenn
 
2153
 
2154 90 jeremybenn
subdirs="$subdirs testsuite/test-code-or1k"
2155 82 jeremybenn
 
2156
 
2157 19 jeremybenn
# Make sure we can run config.sub.
2158
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2159 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2160
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2161 19 jeremybenn
   { (exit 1); exit 1; }; }
2162
 
2163 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2164
$as_echo_n "checking build system type... " >&6; }
2165 19 jeremybenn
if test "${ac_cv_build+set}" = set; then
2166 82 jeremybenn
  $as_echo_n "(cached) " >&6
2167 19 jeremybenn
else
2168
  ac_build_alias=$build_alias
2169
test "x$ac_build_alias" = x &&
2170
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2171
test "x$ac_build_alias" = x &&
2172 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2173
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2174 19 jeremybenn
   { (exit 1); exit 1; }; }
2175
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2176 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2177
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2178 19 jeremybenn
   { (exit 1); exit 1; }; }
2179
 
2180
fi
2181 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2182
$as_echo "$ac_cv_build" >&6; }
2183 19 jeremybenn
case $ac_cv_build in
2184
*-*-*) ;;
2185 82 jeremybenn
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2186
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2187 19 jeremybenn
   { (exit 1); exit 1; }; };;
2188
esac
2189
build=$ac_cv_build
2190
ac_save_IFS=$IFS; IFS='-'
2191
set x $ac_cv_build
2192
shift
2193
build_cpu=$1
2194
build_vendor=$2
2195
shift; shift
2196
# Remember, the first character of IFS is used to create $*,
2197
# except with old shells:
2198
build_os=$*
2199
IFS=$ac_save_IFS
2200
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2201
 
2202
 
2203 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2204
$as_echo_n "checking host system type... " >&6; }
2205 19 jeremybenn
if test "${ac_cv_host+set}" = set; then
2206 82 jeremybenn
  $as_echo_n "(cached) " >&6
2207 19 jeremybenn
else
2208
  if test "x$host_alias" = x; then
2209
  ac_cv_host=$ac_cv_build
2210
else
2211
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2212 82 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2213
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2214 19 jeremybenn
   { (exit 1); exit 1; }; }
2215
fi
2216
 
2217
fi
2218 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2219
$as_echo "$ac_cv_host" >&6; }
2220 19 jeremybenn
case $ac_cv_host in
2221
*-*-*) ;;
2222 82 jeremybenn
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2223
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2224 19 jeremybenn
   { (exit 1); exit 1; }; };;
2225
esac
2226
host=$ac_cv_host
2227
ac_save_IFS=$IFS; IFS='-'
2228
set x $ac_cv_host
2229
shift
2230
host_cpu=$1
2231
host_vendor=$2
2232
shift; shift
2233
# Remember, the first character of IFS is used to create $*,
2234
# except with old shells:
2235
host_os=$*
2236
IFS=$ac_save_IFS
2237
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2238
 
2239
 
2240 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2241
$as_echo_n "checking target system type... " >&6; }
2242 19 jeremybenn
if test "${ac_cv_target+set}" = set; then
2243 82 jeremybenn
  $as_echo_n "(cached) " >&6
2244 19 jeremybenn
else
2245
  if test "x$target_alias" = x; then
2246
  ac_cv_target=$ac_cv_host
2247
else
2248
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2249 82 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2250
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2251 19 jeremybenn
   { (exit 1); exit 1; }; }
2252
fi
2253
 
2254
fi
2255 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2256
$as_echo "$ac_cv_target" >&6; }
2257 19 jeremybenn
case $ac_cv_target in
2258
*-*-*) ;;
2259 82 jeremybenn
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2260
$as_echo "$as_me: error: invalid value of canonical target" >&2;}
2261 19 jeremybenn
   { (exit 1); exit 1; }; };;
2262
esac
2263
target=$ac_cv_target
2264
ac_save_IFS=$IFS; IFS='-'
2265
set x $ac_cv_target
2266
shift
2267
target_cpu=$1
2268
target_vendor=$2
2269
shift; shift
2270
# Remember, the first character of IFS is used to create $*,
2271
# except with old shells:
2272
target_os=$*
2273
IFS=$ac_save_IFS
2274
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2275
 
2276
 
2277
# The aliases save the names the user supplied, while $host etc.
2278
# will get canonicalized.
2279
test -n "$target_alias" &&
2280
  test "$program_prefix$program_suffix$program_transform_name" = \
2281
    NONENONEs,x,x, &&
2282
  program_prefix=${target_alias}-
2283 82 jeremybenn
case `pwd` in
2284
  *\ * | *\     *)
2285
    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2286
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2287
esac
2288 19 jeremybenn
 
2289
 
2290
 
2291 90 jeremybenn
macro_version='2.2.6b'
2292
macro_revision='1.3017'
2293 19 jeremybenn
 
2294
 
2295
 
2296 82 jeremybenn
 
2297
 
2298
 
2299
 
2300
 
2301
 
2302
 
2303
 
2304
 
2305
 
2306
ltmain="$ac_aux_dir/ltmain.sh"
2307
 
2308 19 jeremybenn
ac_ext=c
2309
ac_cpp='$CPP $CPPFLAGS'
2310
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2311
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2312
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2313
if test -n "$ac_tool_prefix"; then
2314
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2315
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2316 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2317
$as_echo_n "checking for $ac_word... " >&6; }
2318 19 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
2319 82 jeremybenn
  $as_echo_n "(cached) " >&6
2320 19 jeremybenn
else
2321
  if test -n "$CC"; then
2322
  ac_cv_prog_CC="$CC" # Let the user override the test.
2323
else
2324
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325
for as_dir in $PATH
2326
do
2327
  IFS=$as_save_IFS
2328
  test -z "$as_dir" && as_dir=.
2329
  for ac_exec_ext in '' $ac_executable_extensions; do
2330
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2331
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2332 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2333 19 jeremybenn
    break 2
2334
  fi
2335
done
2336
done
2337
IFS=$as_save_IFS
2338
 
2339
fi
2340
fi
2341
CC=$ac_cv_prog_CC
2342
if test -n "$CC"; then
2343 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2344
$as_echo "$CC" >&6; }
2345 19 jeremybenn
else
2346 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2347
$as_echo "no" >&6; }
2348 19 jeremybenn
fi
2349
 
2350
 
2351
fi
2352
if test -z "$ac_cv_prog_CC"; then
2353
  ac_ct_CC=$CC
2354
  # Extract the first word of "gcc", so it can be a program name with args.
2355
set dummy gcc; ac_word=$2
2356 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2357
$as_echo_n "checking for $ac_word... " >&6; }
2358 19 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2359 82 jeremybenn
  $as_echo_n "(cached) " >&6
2360 19 jeremybenn
else
2361
  if test -n "$ac_ct_CC"; then
2362
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2363
else
2364
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365
for as_dir in $PATH
2366
do
2367
  IFS=$as_save_IFS
2368
  test -z "$as_dir" && as_dir=.
2369
  for ac_exec_ext in '' $ac_executable_extensions; do
2370
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2371
    ac_cv_prog_ac_ct_CC="gcc"
2372 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2373 19 jeremybenn
    break 2
2374
  fi
2375
done
2376
done
2377
IFS=$as_save_IFS
2378
 
2379
fi
2380
fi
2381
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2382
if test -n "$ac_ct_CC"; then
2383 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2384
$as_echo "$ac_ct_CC" >&6; }
2385 19 jeremybenn
else
2386 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2387
$as_echo "no" >&6; }
2388 19 jeremybenn
fi
2389
 
2390
  if test "x$ac_ct_CC" = x; then
2391
    CC=""
2392
  else
2393
    case $cross_compiling:$ac_tool_warned in
2394
yes:)
2395 82 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2396
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2397 19 jeremybenn
ac_tool_warned=yes ;;
2398
esac
2399
    CC=$ac_ct_CC
2400
  fi
2401
else
2402
  CC="$ac_cv_prog_CC"
2403
fi
2404
 
2405
if test -z "$CC"; then
2406
          if test -n "$ac_tool_prefix"; then
2407
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2408
set dummy ${ac_tool_prefix}cc; ac_word=$2
2409 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2410
$as_echo_n "checking for $ac_word... " >&6; }
2411 19 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
2412 82 jeremybenn
  $as_echo_n "(cached) " >&6
2413 19 jeremybenn
else
2414
  if test -n "$CC"; then
2415
  ac_cv_prog_CC="$CC" # Let the user override the test.
2416
else
2417
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418
for as_dir in $PATH
2419
do
2420
  IFS=$as_save_IFS
2421
  test -z "$as_dir" && as_dir=.
2422
  for ac_exec_ext in '' $ac_executable_extensions; do
2423
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2424
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2425 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2426 19 jeremybenn
    break 2
2427
  fi
2428
done
2429
done
2430
IFS=$as_save_IFS
2431
 
2432
fi
2433
fi
2434
CC=$ac_cv_prog_CC
2435
if test -n "$CC"; then
2436 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2437
$as_echo "$CC" >&6; }
2438 19 jeremybenn
else
2439 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2440
$as_echo "no" >&6; }
2441 19 jeremybenn
fi
2442
 
2443
 
2444
  fi
2445
fi
2446
if test -z "$CC"; then
2447
  # Extract the first word of "cc", so it can be a program name with args.
2448
set dummy cc; ac_word=$2
2449 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2450
$as_echo_n "checking for $ac_word... " >&6; }
2451 19 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
2452 82 jeremybenn
  $as_echo_n "(cached) " >&6
2453 19 jeremybenn
else
2454
  if test -n "$CC"; then
2455
  ac_cv_prog_CC="$CC" # Let the user override the test.
2456
else
2457
  ac_prog_rejected=no
2458
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459
for as_dir in $PATH
2460
do
2461
  IFS=$as_save_IFS
2462
  test -z "$as_dir" && as_dir=.
2463
  for ac_exec_ext in '' $ac_executable_extensions; do
2464
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2465
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2466
       ac_prog_rejected=yes
2467
       continue
2468
     fi
2469
    ac_cv_prog_CC="cc"
2470 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2471 19 jeremybenn
    break 2
2472
  fi
2473
done
2474
done
2475
IFS=$as_save_IFS
2476
 
2477
if test $ac_prog_rejected = yes; then
2478
  # We found a bogon in the path, so make sure we never use it.
2479
  set dummy $ac_cv_prog_CC
2480
  shift
2481
  if test $# != 0; then
2482
    # We chose a different compiler from the bogus one.
2483
    # However, it has the same basename, so the bogon will be chosen
2484
    # first if we set CC to just the basename; use the full file name.
2485
    shift
2486
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2487
  fi
2488
fi
2489
fi
2490
fi
2491
CC=$ac_cv_prog_CC
2492
if test -n "$CC"; then
2493 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2494
$as_echo "$CC" >&6; }
2495 19 jeremybenn
else
2496 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2497
$as_echo "no" >&6; }
2498 19 jeremybenn
fi
2499
 
2500
 
2501
fi
2502
if test -z "$CC"; then
2503
  if test -n "$ac_tool_prefix"; then
2504
  for ac_prog in cl.exe
2505
  do
2506
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2507
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2508 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2509
$as_echo_n "checking for $ac_word... " >&6; }
2510 19 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
2511 82 jeremybenn
  $as_echo_n "(cached) " >&6
2512 19 jeremybenn
else
2513
  if test -n "$CC"; then
2514
  ac_cv_prog_CC="$CC" # Let the user override the test.
2515
else
2516
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517
for as_dir in $PATH
2518
do
2519
  IFS=$as_save_IFS
2520
  test -z "$as_dir" && as_dir=.
2521
  for ac_exec_ext in '' $ac_executable_extensions; do
2522
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2523
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2524 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2525 19 jeremybenn
    break 2
2526
  fi
2527
done
2528
done
2529
IFS=$as_save_IFS
2530
 
2531
fi
2532
fi
2533
CC=$ac_cv_prog_CC
2534
if test -n "$CC"; then
2535 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2536
$as_echo "$CC" >&6; }
2537 19 jeremybenn
else
2538 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2539
$as_echo "no" >&6; }
2540 19 jeremybenn
fi
2541
 
2542
 
2543
    test -n "$CC" && break
2544
  done
2545
fi
2546
if test -z "$CC"; then
2547
  ac_ct_CC=$CC
2548
  for ac_prog in cl.exe
2549
do
2550
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2551
set dummy $ac_prog; ac_word=$2
2552 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2553
$as_echo_n "checking for $ac_word... " >&6; }
2554 19 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2555 82 jeremybenn
  $as_echo_n "(cached) " >&6
2556 19 jeremybenn
else
2557
  if test -n "$ac_ct_CC"; then
2558
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2559
else
2560
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561
for as_dir in $PATH
2562
do
2563
  IFS=$as_save_IFS
2564
  test -z "$as_dir" && as_dir=.
2565
  for ac_exec_ext in '' $ac_executable_extensions; do
2566
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2567
    ac_cv_prog_ac_ct_CC="$ac_prog"
2568 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2569 19 jeremybenn
    break 2
2570
  fi
2571
done
2572
done
2573
IFS=$as_save_IFS
2574
 
2575
fi
2576
fi
2577
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2578
if test -n "$ac_ct_CC"; then
2579 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2580
$as_echo "$ac_ct_CC" >&6; }
2581 19 jeremybenn
else
2582 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2583
$as_echo "no" >&6; }
2584 19 jeremybenn
fi
2585
 
2586
 
2587
  test -n "$ac_ct_CC" && break
2588
done
2589
 
2590
  if test "x$ac_ct_CC" = x; then
2591
    CC=""
2592
  else
2593
    case $cross_compiling:$ac_tool_warned in
2594
yes:)
2595 82 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2596
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2597 19 jeremybenn
ac_tool_warned=yes ;;
2598
esac
2599
    CC=$ac_ct_CC
2600
  fi
2601
fi
2602
 
2603
fi
2604
 
2605
 
2606 82 jeremybenn
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2607
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2608
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2609 19 jeremybenn
See \`config.log' for more details." >&5
2610 82 jeremybenn
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2611 19 jeremybenn
See \`config.log' for more details." >&2;}
2612 82 jeremybenn
   { (exit 1); exit 1; }; }; }
2613 19 jeremybenn
 
2614
# Provide some information about the compiler.
2615 82 jeremybenn
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2616
set X $ac_compile
2617
ac_compiler=$2
2618 19 jeremybenn
{ (ac_try="$ac_compiler --version >&5"
2619
case "(($ac_try" in
2620
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2621
  *) ac_try_echo=$ac_try;;
2622
esac
2623 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2624
$as_echo "$ac_try_echo") >&5
2625 19 jeremybenn
  (eval "$ac_compiler --version >&5") 2>&5
2626
  ac_status=$?
2627 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 19 jeremybenn
  (exit $ac_status); }
2629
{ (ac_try="$ac_compiler -v >&5"
2630
case "(($ac_try" in
2631
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2632
  *) ac_try_echo=$ac_try;;
2633
esac
2634 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2635
$as_echo "$ac_try_echo") >&5
2636 19 jeremybenn
  (eval "$ac_compiler -v >&5") 2>&5
2637
  ac_status=$?
2638 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 19 jeremybenn
  (exit $ac_status); }
2640
{ (ac_try="$ac_compiler -V >&5"
2641
case "(($ac_try" in
2642
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2643
  *) ac_try_echo=$ac_try;;
2644
esac
2645 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2646
$as_echo "$ac_try_echo") >&5
2647 19 jeremybenn
  (eval "$ac_compiler -V >&5") 2>&5
2648
  ac_status=$?
2649 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 19 jeremybenn
  (exit $ac_status); }
2651
 
2652
cat >conftest.$ac_ext <<_ACEOF
2653
/* confdefs.h.  */
2654
_ACEOF
2655
cat confdefs.h >>conftest.$ac_ext
2656
cat >>conftest.$ac_ext <<_ACEOF
2657
/* end confdefs.h.  */
2658
 
2659
int
2660
main ()
2661
{
2662
 
2663
  ;
2664
  return 0;
2665
}
2666
_ACEOF
2667
ac_clean_files_save=$ac_clean_files
2668 82 jeremybenn
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2669 19 jeremybenn
# Try to create an executable without -o first, disregard a.out.
2670
# It will help us diagnose broken compilers, and finding out an intuition
2671
# of exeext.
2672 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2673
$as_echo_n "checking for C compiler default output file name... " >&6; }
2674
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2675
 
2676
# The possible output files:
2677
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2678
 
2679 19 jeremybenn
ac_rmfiles=
2680
for ac_file in $ac_files
2681
do
2682
  case $ac_file in
2683 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2684 19 jeremybenn
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2685
  esac
2686
done
2687
rm -f $ac_rmfiles
2688
 
2689
if { (ac_try="$ac_link_default"
2690
case "(($ac_try" in
2691
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692
  *) ac_try_echo=$ac_try;;
2693
esac
2694 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2695
$as_echo "$ac_try_echo") >&5
2696 19 jeremybenn
  (eval "$ac_link_default") 2>&5
2697
  ac_status=$?
2698 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 19 jeremybenn
  (exit $ac_status); }; then
2700
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2701
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2702
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2703
# so that the user can short-circuit this test for compilers unknown to
2704
# Autoconf.
2705
for ac_file in $ac_files ''
2706
do
2707
  test -f "$ac_file" || continue
2708
  case $ac_file in
2709 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2710 19 jeremybenn
        ;;
2711
    [ab].out )
2712
        # We found the default executable, but exeext='' is most
2713
        # certainly right.
2714
        break;;
2715
    *.* )
2716
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2717
        then :; else
2718
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2719
        fi
2720
        # We set ac_cv_exeext here because the later test for it is not
2721
        # safe: cross compilers may not add the suffix if given an `-o'
2722
        # argument, so we may need to know it at that point already.
2723
        # Even if this section looks crufty: it has the advantage of
2724
        # actually working.
2725
        break;;
2726
    * )
2727
        break;;
2728
  esac
2729
done
2730
test "$ac_cv_exeext" = no && ac_cv_exeext=
2731
 
2732
else
2733
  ac_file=''
2734
fi
2735
 
2736 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2737
$as_echo "$ac_file" >&6; }
2738 19 jeremybenn
if test -z "$ac_file"; then
2739 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
2740 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
2741
 
2742 82 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2743
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2744
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2745 19 jeremybenn
See \`config.log' for more details." >&5
2746 82 jeremybenn
$as_echo "$as_me: error: C compiler cannot create executables
2747 19 jeremybenn
See \`config.log' for more details." >&2;}
2748 82 jeremybenn
   { (exit 77); exit 77; }; }; }
2749 19 jeremybenn
fi
2750
 
2751
ac_exeext=$ac_cv_exeext
2752
 
2753
# Check that the compiler produces executables we can run.  If not, either
2754
# the compiler is broken, or we cross compile.
2755 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2756
$as_echo_n "checking whether the C compiler works... " >&6; }
2757 19 jeremybenn
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2758
# If not cross compiling, check that we can run a simple program.
2759
if test "$cross_compiling" != yes; then
2760
  if { ac_try='./$ac_file'
2761
  { (case "(($ac_try" in
2762
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2763
  *) ac_try_echo=$ac_try;;
2764
esac
2765 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2766
$as_echo "$ac_try_echo") >&5
2767 19 jeremybenn
  (eval "$ac_try") 2>&5
2768
  ac_status=$?
2769 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 19 jeremybenn
  (exit $ac_status); }; }; then
2771
    cross_compiling=no
2772
  else
2773
    if test "$cross_compiling" = maybe; then
2774
        cross_compiling=yes
2775
    else
2776 82 jeremybenn
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2777
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2778
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2779 19 jeremybenn
If you meant to cross compile, use \`--host'.
2780
See \`config.log' for more details." >&5
2781 82 jeremybenn
$as_echo "$as_me: error: cannot run C compiled programs.
2782 19 jeremybenn
If you meant to cross compile, use \`--host'.
2783
See \`config.log' for more details." >&2;}
2784 82 jeremybenn
   { (exit 1); exit 1; }; }; }
2785 19 jeremybenn
    fi
2786
  fi
2787
fi
2788 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2789
$as_echo "yes" >&6; }
2790 19 jeremybenn
 
2791 82 jeremybenn
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2792 19 jeremybenn
ac_clean_files=$ac_clean_files_save
2793
# Check that the compiler produces executables we can run.  If not, either
2794
# the compiler is broken, or we cross compile.
2795 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2796
$as_echo_n "checking whether we are cross compiling... " >&6; }
2797
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2798
$as_echo "$cross_compiling" >&6; }
2799 19 jeremybenn
 
2800 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2801
$as_echo_n "checking for suffix of executables... " >&6; }
2802 19 jeremybenn
if { (ac_try="$ac_link"
2803
case "(($ac_try" in
2804
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805
  *) ac_try_echo=$ac_try;;
2806
esac
2807 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2808
$as_echo "$ac_try_echo") >&5
2809 19 jeremybenn
  (eval "$ac_link") 2>&5
2810
  ac_status=$?
2811 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 19 jeremybenn
  (exit $ac_status); }; then
2813
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2814
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2815
# work properly (i.e., refer to `conftest.exe'), while it won't with
2816
# `rm'.
2817
for ac_file in conftest.exe conftest conftest.*; do
2818
  test -f "$ac_file" || continue
2819
  case $ac_file in
2820 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2821 19 jeremybenn
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2822
          break;;
2823
    * ) break;;
2824
  esac
2825
done
2826
else
2827 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2828
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2829
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2830 19 jeremybenn
See \`config.log' for more details." >&5
2831 82 jeremybenn
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2832 19 jeremybenn
See \`config.log' for more details." >&2;}
2833 82 jeremybenn
   { (exit 1); exit 1; }; }; }
2834 19 jeremybenn
fi
2835
 
2836
rm -f conftest$ac_cv_exeext
2837 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2838
$as_echo "$ac_cv_exeext" >&6; }
2839 19 jeremybenn
 
2840
rm -f conftest.$ac_ext
2841
EXEEXT=$ac_cv_exeext
2842
ac_exeext=$EXEEXT
2843 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2844
$as_echo_n "checking for suffix of object files... " >&6; }
2845 19 jeremybenn
if test "${ac_cv_objext+set}" = set; then
2846 82 jeremybenn
  $as_echo_n "(cached) " >&6
2847 19 jeremybenn
else
2848
  cat >conftest.$ac_ext <<_ACEOF
2849
/* confdefs.h.  */
2850
_ACEOF
2851
cat confdefs.h >>conftest.$ac_ext
2852
cat >>conftest.$ac_ext <<_ACEOF
2853
/* end confdefs.h.  */
2854
 
2855
int
2856
main ()
2857
{
2858
 
2859
  ;
2860
  return 0;
2861
}
2862
_ACEOF
2863
rm -f conftest.o conftest.obj
2864
if { (ac_try="$ac_compile"
2865
case "(($ac_try" in
2866
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2867
  *) ac_try_echo=$ac_try;;
2868
esac
2869 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2870
$as_echo "$ac_try_echo") >&5
2871 19 jeremybenn
  (eval "$ac_compile") 2>&5
2872
  ac_status=$?
2873 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 19 jeremybenn
  (exit $ac_status); }; then
2875
  for ac_file in conftest.o conftest.obj conftest.*; do
2876
  test -f "$ac_file" || continue;
2877
  case $ac_file in
2878 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2879 19 jeremybenn
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2880
       break;;
2881
  esac
2882
done
2883
else
2884 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
2885 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
2886
 
2887 82 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2888
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2889
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2890 19 jeremybenn
See \`config.log' for more details." >&5
2891 82 jeremybenn
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2892 19 jeremybenn
See \`config.log' for more details." >&2;}
2893 82 jeremybenn
   { (exit 1); exit 1; }; }; }
2894 19 jeremybenn
fi
2895
 
2896
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2897
fi
2898 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2899
$as_echo "$ac_cv_objext" >&6; }
2900 19 jeremybenn
OBJEXT=$ac_cv_objext
2901
ac_objext=$OBJEXT
2902 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2903
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2904 19 jeremybenn
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2905 82 jeremybenn
  $as_echo_n "(cached) " >&6
2906 19 jeremybenn
else
2907
  cat >conftest.$ac_ext <<_ACEOF
2908
/* confdefs.h.  */
2909
_ACEOF
2910
cat confdefs.h >>conftest.$ac_ext
2911
cat >>conftest.$ac_ext <<_ACEOF
2912
/* end confdefs.h.  */
2913
 
2914
int
2915
main ()
2916
{
2917
#ifndef __GNUC__
2918
       choke me
2919
#endif
2920
 
2921
  ;
2922
  return 0;
2923
}
2924
_ACEOF
2925
rm -f conftest.$ac_objext
2926
if { (ac_try="$ac_compile"
2927
case "(($ac_try" in
2928
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929
  *) ac_try_echo=$ac_try;;
2930
esac
2931 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2932
$as_echo "$ac_try_echo") >&5
2933 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
2934
  ac_status=$?
2935
  grep -v '^ *+' conftest.er1 >conftest.err
2936
  rm -f conftest.er1
2937
  cat conftest.err >&5
2938 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 19 jeremybenn
  (exit $ac_status); } && {
2940
         test -z "$ac_c_werror_flag" ||
2941
         test ! -s conftest.err
2942
       } && test -s conftest.$ac_objext; then
2943
  ac_compiler_gnu=yes
2944
else
2945 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
2946 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
2947
 
2948
        ac_compiler_gnu=no
2949
fi
2950
 
2951
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2952
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2953
 
2954
fi
2955 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2956
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2957
if test $ac_compiler_gnu = yes; then
2958
  GCC=yes
2959
else
2960
  GCC=
2961
fi
2962 19 jeremybenn
ac_test_CFLAGS=${CFLAGS+set}
2963
ac_save_CFLAGS=$CFLAGS
2964 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2965
$as_echo_n "checking whether $CC accepts -g... " >&6; }
2966 19 jeremybenn
if test "${ac_cv_prog_cc_g+set}" = set; then
2967 82 jeremybenn
  $as_echo_n "(cached) " >&6
2968 19 jeremybenn
else
2969
  ac_save_c_werror_flag=$ac_c_werror_flag
2970
   ac_c_werror_flag=yes
2971
   ac_cv_prog_cc_g=no
2972
   CFLAGS="-g"
2973
   cat >conftest.$ac_ext <<_ACEOF
2974
/* confdefs.h.  */
2975
_ACEOF
2976
cat confdefs.h >>conftest.$ac_ext
2977
cat >>conftest.$ac_ext <<_ACEOF
2978
/* end confdefs.h.  */
2979
 
2980
int
2981
main ()
2982
{
2983
 
2984
  ;
2985
  return 0;
2986
}
2987
_ACEOF
2988
rm -f conftest.$ac_objext
2989
if { (ac_try="$ac_compile"
2990
case "(($ac_try" in
2991
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992
  *) ac_try_echo=$ac_try;;
2993
esac
2994 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2995
$as_echo "$ac_try_echo") >&5
2996 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
2997
  ac_status=$?
2998
  grep -v '^ *+' conftest.er1 >conftest.err
2999
  rm -f conftest.er1
3000
  cat conftest.err >&5
3001 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 19 jeremybenn
  (exit $ac_status); } && {
3003
         test -z "$ac_c_werror_flag" ||
3004
         test ! -s conftest.err
3005
       } && test -s conftest.$ac_objext; then
3006
  ac_cv_prog_cc_g=yes
3007
else
3008 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
3009 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
3010
 
3011
        CFLAGS=""
3012
      cat >conftest.$ac_ext <<_ACEOF
3013
/* confdefs.h.  */
3014
_ACEOF
3015
cat confdefs.h >>conftest.$ac_ext
3016
cat >>conftest.$ac_ext <<_ACEOF
3017
/* end confdefs.h.  */
3018
 
3019
int
3020
main ()
3021
{
3022
 
3023
  ;
3024
  return 0;
3025
}
3026
_ACEOF
3027
rm -f conftest.$ac_objext
3028
if { (ac_try="$ac_compile"
3029
case "(($ac_try" in
3030
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031
  *) ac_try_echo=$ac_try;;
3032
esac
3033 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3034
$as_echo "$ac_try_echo") >&5
3035 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
3036
  ac_status=$?
3037
  grep -v '^ *+' conftest.er1 >conftest.err
3038
  rm -f conftest.er1
3039
  cat conftest.err >&5
3040 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 19 jeremybenn
  (exit $ac_status); } && {
3042
         test -z "$ac_c_werror_flag" ||
3043
         test ! -s conftest.err
3044
       } && test -s conftest.$ac_objext; then
3045
  :
3046
else
3047 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
3048 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
3049
 
3050
        ac_c_werror_flag=$ac_save_c_werror_flag
3051
         CFLAGS="-g"
3052
         cat >conftest.$ac_ext <<_ACEOF
3053
/* confdefs.h.  */
3054
_ACEOF
3055
cat confdefs.h >>conftest.$ac_ext
3056
cat >>conftest.$ac_ext <<_ACEOF
3057
/* end confdefs.h.  */
3058
 
3059
int
3060
main ()
3061
{
3062
 
3063
  ;
3064
  return 0;
3065
}
3066
_ACEOF
3067
rm -f conftest.$ac_objext
3068
if { (ac_try="$ac_compile"
3069
case "(($ac_try" in
3070
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071
  *) ac_try_echo=$ac_try;;
3072
esac
3073 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3074
$as_echo "$ac_try_echo") >&5
3075 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
3076
  ac_status=$?
3077
  grep -v '^ *+' conftest.er1 >conftest.err
3078
  rm -f conftest.er1
3079
  cat conftest.err >&5
3080 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 19 jeremybenn
  (exit $ac_status); } && {
3082
         test -z "$ac_c_werror_flag" ||
3083
         test ! -s conftest.err
3084
       } && test -s conftest.$ac_objext; then
3085
  ac_cv_prog_cc_g=yes
3086
else
3087 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
3088 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
3089
 
3090
 
3091
fi
3092
 
3093
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3094
fi
3095
 
3096
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3097
fi
3098
 
3099
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3100
   ac_c_werror_flag=$ac_save_c_werror_flag
3101
fi
3102 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3103
$as_echo "$ac_cv_prog_cc_g" >&6; }
3104 19 jeremybenn
if test "$ac_test_CFLAGS" = set; then
3105
  CFLAGS=$ac_save_CFLAGS
3106
elif test $ac_cv_prog_cc_g = yes; then
3107
  if test "$GCC" = yes; then
3108
    CFLAGS="-g -O2"
3109
  else
3110
    CFLAGS="-g"
3111
  fi
3112
else
3113
  if test "$GCC" = yes; then
3114
    CFLAGS="-O2"
3115
  else
3116
    CFLAGS=
3117
  fi
3118
fi
3119 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3120
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3121 19 jeremybenn
if test "${ac_cv_prog_cc_c89+set}" = set; then
3122 82 jeremybenn
  $as_echo_n "(cached) " >&6
3123 19 jeremybenn
else
3124
  ac_cv_prog_cc_c89=no
3125
ac_save_CC=$CC
3126
cat >conftest.$ac_ext <<_ACEOF
3127
/* confdefs.h.  */
3128
_ACEOF
3129
cat confdefs.h >>conftest.$ac_ext
3130
cat >>conftest.$ac_ext <<_ACEOF
3131
/* end confdefs.h.  */
3132
#include 
3133
#include 
3134
#include 
3135
#include 
3136
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3137
struct buf { int x; };
3138
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3139
static char *e (p, i)
3140
     char **p;
3141
     int i;
3142
{
3143
  return p[i];
3144
}
3145
static char *f (char * (*g) (char **, int), char **p, ...)
3146
{
3147
  char *s;
3148
  va_list v;
3149
  va_start (v,p);
3150
  s = g (p, va_arg (v,int));
3151
  va_end (v);
3152
  return s;
3153
}
3154
 
3155
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3156
   function prototypes and stuff, but not '\xHH' hex character constants.
3157
   These don't provoke an error unfortunately, instead are silently treated
3158
   as 'x'.  The following induces an error, until -std is added to get
3159
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3160
   array size at least.  It's necessary to write '\x00'==0 to get something
3161
   that's true only with -std.  */
3162
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3163
 
3164
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3165
   inside strings and character constants.  */
3166
#define FOO(x) 'x'
3167
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3168
 
3169
int test (int i, double x);
3170
struct s1 {int (*f) (int a);};
3171
struct s2 {int (*f) (double a);};
3172
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3173
int argc;
3174
char **argv;
3175
int
3176
main ()
3177
{
3178
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3179
  ;
3180
  return 0;
3181
}
3182
_ACEOF
3183
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3184
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3185
do
3186
  CC="$ac_save_CC $ac_arg"
3187
  rm -f conftest.$ac_objext
3188
if { (ac_try="$ac_compile"
3189
case "(($ac_try" in
3190
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191
  *) ac_try_echo=$ac_try;;
3192
esac
3193 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3194
$as_echo "$ac_try_echo") >&5
3195 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
3196
  ac_status=$?
3197
  grep -v '^ *+' conftest.er1 >conftest.err
3198
  rm -f conftest.er1
3199
  cat conftest.err >&5
3200 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 19 jeremybenn
  (exit $ac_status); } && {
3202
         test -z "$ac_c_werror_flag" ||
3203
         test ! -s conftest.err
3204
       } && test -s conftest.$ac_objext; then
3205
  ac_cv_prog_cc_c89=$ac_arg
3206
else
3207 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
3208 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
3209
 
3210
 
3211
fi
3212
 
3213
rm -f core conftest.err conftest.$ac_objext
3214
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3215
done
3216
rm -f conftest.$ac_ext
3217
CC=$ac_save_CC
3218
 
3219
fi
3220
# AC_CACHE_VAL
3221
case "x$ac_cv_prog_cc_c89" in
3222
  x)
3223 82 jeremybenn
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3224
$as_echo "none needed" >&6; } ;;
3225 19 jeremybenn
  xno)
3226 82 jeremybenn
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3227
$as_echo "unsupported" >&6; } ;;
3228 19 jeremybenn
  *)
3229
    CC="$CC $ac_cv_prog_cc_c89"
3230 82 jeremybenn
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3231
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3232 19 jeremybenn
esac
3233
 
3234
 
3235
ac_ext=c
3236
ac_cpp='$CPP $CPPFLAGS'
3237
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3238
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3239
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3240
 
3241 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3242
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3243
if test "${ac_cv_path_SED+set}" = set; then
3244
  $as_echo_n "(cached) " >&6
3245 19 jeremybenn
else
3246 82 jeremybenn
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3247
     for ac_i in 1 2 3 4 5 6 7; do
3248
       ac_script="$ac_script$as_nl$ac_script"
3249
     done
3250
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3251
     $as_unset ac_script || ac_script=
3252
     if test -z "$SED"; then
3253
  ac_path_SED_found=false
3254
  # Loop through the user's path and test for each of PROGNAME-LIST
3255
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256 19 jeremybenn
for as_dir in $PATH
3257
do
3258
  IFS=$as_save_IFS
3259
  test -z "$as_dir" && as_dir=.
3260 82 jeremybenn
  for ac_prog in sed gsed; do
3261 19 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3262 82 jeremybenn
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3263
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3264
# Check for GNU ac_path_SED and select it if it is found.
3265
  # Check for GNU $ac_path_SED
3266
case `"$ac_path_SED" --version 2>&1` in
3267
*GNU*)
3268
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3269
*)
3270
  ac_count=0
3271
  $as_echo_n 0123456789 >"conftest.in"
3272
  while :
3273
  do
3274
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3275
    mv "conftest.tmp" "conftest.in"
3276
    cp "conftest.in" "conftest.nl"
3277
    $as_echo '' >> "conftest.nl"
3278
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3279
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3280
    ac_count=`expr $ac_count + 1`
3281
    if test $ac_count -gt ${ac_path_SED_max-0}; then
3282
      # Best one so far, save it but keep looking for a better one
3283
      ac_cv_path_SED="$ac_path_SED"
3284
      ac_path_SED_max=$ac_count
3285
    fi
3286
    # 10*(2^10) chars as input seems more than enough
3287
    test $ac_count -gt 10 && break
3288
  done
3289
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3290
esac
3291
 
3292
      $ac_path_SED_found && break 3
3293 19 jeremybenn
    done
3294
  done
3295
done
3296
IFS=$as_save_IFS
3297 82 jeremybenn
  if test -z "$ac_cv_path_SED"; then
3298
    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3299
$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3300
   { (exit 1); exit 1; }; }
3301 19 jeremybenn
  fi
3302 82 jeremybenn
else
3303
  ac_cv_path_SED=$SED
3304
fi
3305 19 jeremybenn
 
3306
fi
3307 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3308
$as_echo "$ac_cv_path_SED" >&6; }
3309
 SED="$ac_cv_path_SED"
3310
  rm -f conftest.sed
3311 19 jeremybenn
 
3312 82 jeremybenn
test -z "$SED" && SED=sed
3313
Xsed="$SED -e 1s/^X//"
3314 19 jeremybenn
 
3315
 
3316 82 jeremybenn
 
3317
 
3318
 
3319
 
3320
 
3321
 
3322
 
3323
 
3324
 
3325
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3326
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3327 19 jeremybenn
if test "${ac_cv_path_GREP+set}" = set; then
3328 82 jeremybenn
  $as_echo_n "(cached) " >&6
3329 19 jeremybenn
else
3330 82 jeremybenn
  if test -z "$GREP"; then
3331 19 jeremybenn
  ac_path_GREP_found=false
3332 82 jeremybenn
  # Loop through the user's path and test for each of PROGNAME-LIST
3333
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334 19 jeremybenn
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3335
do
3336
  IFS=$as_save_IFS
3337
  test -z "$as_dir" && as_dir=.
3338
  for ac_prog in grep ggrep; do
3339 82 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3340
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3341
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3342
# Check for GNU ac_path_GREP and select it if it is found.
3343 19 jeremybenn
  # Check for GNU $ac_path_GREP
3344
case `"$ac_path_GREP" --version 2>&1` in
3345
*GNU*)
3346
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3347
*)
3348
  ac_count=0
3349 82 jeremybenn
  $as_echo_n 0123456789 >"conftest.in"
3350 19 jeremybenn
  while :
3351
  do
3352
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3353
    mv "conftest.tmp" "conftest.in"
3354
    cp "conftest.in" "conftest.nl"
3355 82 jeremybenn
    $as_echo 'GREP' >> "conftest.nl"
3356 19 jeremybenn
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3357
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3358
    ac_count=`expr $ac_count + 1`
3359
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3360
      # Best one so far, save it but keep looking for a better one
3361
      ac_cv_path_GREP="$ac_path_GREP"
3362
      ac_path_GREP_max=$ac_count
3363
    fi
3364
    # 10*(2^10) chars as input seems more than enough
3365
    test $ac_count -gt 10 && break
3366
  done
3367
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3368
esac
3369
 
3370 82 jeremybenn
      $ac_path_GREP_found && break 3
3371
    done
3372 19 jeremybenn
  done
3373
done
3374
IFS=$as_save_IFS
3375 82 jeremybenn
  if test -z "$ac_cv_path_GREP"; then
3376
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3377
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3378 19 jeremybenn
   { (exit 1); exit 1; }; }
3379 82 jeremybenn
  fi
3380 19 jeremybenn
else
3381
  ac_cv_path_GREP=$GREP
3382
fi
3383
 
3384
fi
3385 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3386
$as_echo "$ac_cv_path_GREP" >&6; }
3387 19 jeremybenn
 GREP="$ac_cv_path_GREP"
3388
 
3389
 
3390 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3391
$as_echo_n "checking for egrep... " >&6; }
3392 19 jeremybenn
if test "${ac_cv_path_EGREP+set}" = set; then
3393 82 jeremybenn
  $as_echo_n "(cached) " >&6
3394 19 jeremybenn
else
3395
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3396
   then ac_cv_path_EGREP="$GREP -E"
3397
   else
3398 82 jeremybenn
     if test -z "$EGREP"; then
3399 19 jeremybenn
  ac_path_EGREP_found=false
3400 82 jeremybenn
  # Loop through the user's path and test for each of PROGNAME-LIST
3401
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 19 jeremybenn
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3403
do
3404
  IFS=$as_save_IFS
3405
  test -z "$as_dir" && as_dir=.
3406
  for ac_prog in egrep; do
3407 82 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3408
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3409
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3410
# Check for GNU ac_path_EGREP and select it if it is found.
3411 19 jeremybenn
  # Check for GNU $ac_path_EGREP
3412
case `"$ac_path_EGREP" --version 2>&1` in
3413
*GNU*)
3414
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3415
*)
3416
  ac_count=0
3417 82 jeremybenn
  $as_echo_n 0123456789 >"conftest.in"
3418 19 jeremybenn
  while :
3419
  do
3420
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3421
    mv "conftest.tmp" "conftest.in"
3422
    cp "conftest.in" "conftest.nl"
3423 82 jeremybenn
    $as_echo 'EGREP' >> "conftest.nl"
3424 19 jeremybenn
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3425
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3426
    ac_count=`expr $ac_count + 1`
3427
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3428
      # Best one so far, save it but keep looking for a better one
3429
      ac_cv_path_EGREP="$ac_path_EGREP"
3430
      ac_path_EGREP_max=$ac_count
3431
    fi
3432
    # 10*(2^10) chars as input seems more than enough
3433
    test $ac_count -gt 10 && break
3434
  done
3435
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3436
esac
3437
 
3438 82 jeremybenn
      $ac_path_EGREP_found && break 3
3439
    done
3440 19 jeremybenn
  done
3441
done
3442
IFS=$as_save_IFS
3443 82 jeremybenn
  if test -z "$ac_cv_path_EGREP"; then
3444
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3445
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3446
   { (exit 1); exit 1; }; }
3447
  fi
3448
else
3449
  ac_cv_path_EGREP=$EGREP
3450 19 jeremybenn
fi
3451
 
3452 82 jeremybenn
   fi
3453 19 jeremybenn
fi
3454 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3455
$as_echo "$ac_cv_path_EGREP" >&6; }
3456
 EGREP="$ac_cv_path_EGREP"
3457 19 jeremybenn
 
3458 82 jeremybenn
 
3459
{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
3460
$as_echo_n "checking for fgrep... " >&6; }
3461
if test "${ac_cv_path_FGREP+set}" = set; then
3462
  $as_echo_n "(cached) " >&6
3463 19 jeremybenn
else
3464 82 jeremybenn
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3465
   then ac_cv_path_FGREP="$GREP -F"
3466
   else
3467
     if test -z "$FGREP"; then
3468
  ac_path_FGREP_found=false
3469
  # Loop through the user's path and test for each of PROGNAME-LIST
3470
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3472
do
3473
  IFS=$as_save_IFS
3474
  test -z "$as_dir" && as_dir=.
3475
  for ac_prog in fgrep; do
3476
    for ac_exec_ext in '' $ac_executable_extensions; do
3477
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3478
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3479
# Check for GNU ac_path_FGREP and select it if it is found.
3480
  # Check for GNU $ac_path_FGREP
3481
case `"$ac_path_FGREP" --version 2>&1` in
3482
*GNU*)
3483
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3484
*)
3485
  ac_count=0
3486
  $as_echo_n 0123456789 >"conftest.in"
3487
  while :
3488
  do
3489
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3490
    mv "conftest.tmp" "conftest.in"
3491
    cp "conftest.in" "conftest.nl"
3492
    $as_echo 'FGREP' >> "conftest.nl"
3493
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3494
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3495
    ac_count=`expr $ac_count + 1`
3496
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3497
      # Best one so far, save it but keep looking for a better one
3498
      ac_cv_path_FGREP="$ac_path_FGREP"
3499
      ac_path_FGREP_max=$ac_count
3500
    fi
3501
    # 10*(2^10) chars as input seems more than enough
3502
    test $ac_count -gt 10 && break
3503
  done
3504
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3505
esac
3506
 
3507
      $ac_path_FGREP_found && break 3
3508
    done
3509
  done
3510
done
3511
IFS=$as_save_IFS
3512
  if test -z "$ac_cv_path_FGREP"; then
3513
    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3514
$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3515
   { (exit 1); exit 1; }; }
3516
  fi
3517
else
3518
  ac_cv_path_FGREP=$FGREP
3519 19 jeremybenn
fi
3520
 
3521
   fi
3522
fi
3523 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
3524
$as_echo "$ac_cv_path_FGREP" >&6; }
3525
 FGREP="$ac_cv_path_FGREP"
3526 19 jeremybenn
 
3527
 
3528 82 jeremybenn
test -z "$GREP" && GREP=grep
3529 19 jeremybenn
 
3530 82 jeremybenn
 
3531
 
3532
 
3533
 
3534
 
3535
 
3536
 
3537
 
3538
 
3539
 
3540
 
3541
 
3542
 
3543
 
3544
 
3545
 
3546
 
3547
 
3548 19 jeremybenn
# Check whether --with-gnu-ld was given.
3549
if test "${with_gnu_ld+set}" = set; then
3550
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3551
else
3552
  with_gnu_ld=no
3553
fi
3554
 
3555
ac_prog=ld
3556
if test "$GCC" = yes; then
3557
  # Check if gcc -print-prog-name=ld gives a path.
3558 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3559
$as_echo_n "checking for ld used by $CC... " >&6; }
3560 19 jeremybenn
  case $host in
3561
  *-*-mingw*)
3562
    # gcc leaves a trailing carriage return which upsets mingw
3563
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3564
  *)
3565
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3566
  esac
3567
  case $ac_prog in
3568
    # Accept absolute paths.
3569
    [\\/]* | ?:[\\/]*)
3570
      re_direlt='/[^/][^/]*/\.\./'
3571
      # Canonicalize the pathname of ld
3572 82 jeremybenn
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3573
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3574
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3575 19 jeremybenn
      done
3576
      test -z "$LD" && LD="$ac_prog"
3577
      ;;
3578
  "")
3579
    # If it fails, then pretend we aren't using GCC.
3580
    ac_prog=ld
3581
    ;;
3582
  *)
3583
    # If it is relative, then search for the first ld in PATH.
3584
    with_gnu_ld=unknown
3585
    ;;
3586
  esac
3587
elif test "$with_gnu_ld" = yes; then
3588 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
3589
$as_echo_n "checking for GNU ld... " >&6; }
3590 19 jeremybenn
else
3591 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3592
$as_echo_n "checking for non-GNU ld... " >&6; }
3593 19 jeremybenn
fi
3594
if test "${lt_cv_path_LD+set}" = set; then
3595 82 jeremybenn
  $as_echo_n "(cached) " >&6
3596 19 jeremybenn
else
3597
  if test -z "$LD"; then
3598
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3599
  for ac_dir in $PATH; do
3600
    IFS="$lt_save_ifs"
3601
    test -z "$ac_dir" && ac_dir=.
3602
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3603
      lt_cv_path_LD="$ac_dir/$ac_prog"
3604
      # Check to see if the program is GNU ld.  I'd rather use --version,
3605
      # but apparently some variants of GNU ld only accept -v.
3606
      # Break only if it was the GNU/non-GNU ld that we prefer.
3607
      case `"$lt_cv_path_LD" -v 2>&1 
3608
      *GNU* | *'with BFD'*)
3609
        test "$with_gnu_ld" != no && break
3610
        ;;
3611
      *)
3612
        test "$with_gnu_ld" != yes && break
3613
        ;;
3614
      esac
3615
    fi
3616
  done
3617
  IFS="$lt_save_ifs"
3618
else
3619
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3620
fi
3621
fi
3622
 
3623
LD="$lt_cv_path_LD"
3624
if test -n "$LD"; then
3625 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
3626
$as_echo "$LD" >&6; }
3627 19 jeremybenn
else
3628 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
3629
$as_echo "no" >&6; }
3630 19 jeremybenn
fi
3631 82 jeremybenn
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3632
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3633 19 jeremybenn
   { (exit 1); exit 1; }; }
3634 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3635
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3636 19 jeremybenn
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3637 82 jeremybenn
  $as_echo_n "(cached) " >&6
3638 19 jeremybenn
else
3639
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3640
case `$LD -v 2>&1 
3641
*GNU* | *'with BFD'*)
3642
  lt_cv_prog_gnu_ld=yes
3643
  ;;
3644
*)
3645
  lt_cv_prog_gnu_ld=no
3646
  ;;
3647
esac
3648
fi
3649 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3650
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
3651 19 jeremybenn
with_gnu_ld=$lt_cv_prog_gnu_ld
3652
 
3653
 
3654
 
3655 82 jeremybenn
 
3656
 
3657
 
3658
 
3659
 
3660
 
3661
{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3662
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3663 19 jeremybenn
if test "${lt_cv_path_NM+set}" = set; then
3664 82 jeremybenn
  $as_echo_n "(cached) " >&6
3665 19 jeremybenn
else
3666
  if test -n "$NM"; then
3667
  # Let the user override the test.
3668
  lt_cv_path_NM="$NM"
3669
else
3670
  lt_nm_to_check="${ac_tool_prefix}nm"
3671
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3672
    lt_nm_to_check="$lt_nm_to_check nm"
3673
  fi
3674
  for lt_tmp_nm in $lt_nm_to_check; do
3675
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3676
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3677
      IFS="$lt_save_ifs"
3678
      test -z "$ac_dir" && ac_dir=.
3679
      tmp_nm="$ac_dir/$lt_tmp_nm"
3680
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3681
        # Check to see if the nm accepts a BSD-compat flag.
3682
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3683
        #   nm: unknown option "B" ignored
3684
        # Tru64's nm complains that /dev/null is an invalid object file
3685
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3686
        */dev/null* | *'Invalid file or object type'*)
3687
          lt_cv_path_NM="$tmp_nm -B"
3688
          break
3689
          ;;
3690
        *)
3691
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3692
          */dev/null*)
3693
            lt_cv_path_NM="$tmp_nm -p"
3694
            break
3695
            ;;
3696
          *)
3697
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3698
            continue # so that we can try to find one that supports BSD flags
3699
            ;;
3700
          esac
3701
          ;;
3702
        esac
3703
      fi
3704
    done
3705
    IFS="$lt_save_ifs"
3706
  done
3707 82 jeremybenn
  : ${lt_cv_path_NM=no}
3708 19 jeremybenn
fi
3709
fi
3710 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3711
$as_echo "$lt_cv_path_NM" >&6; }
3712
if test "$lt_cv_path_NM" != "no"; then
3713
  NM="$lt_cv_path_NM"
3714
else
3715
  # Didn't find any BSD compatible name lister, look for dumpbin.
3716
  if test -n "$ac_tool_prefix"; then
3717
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3718
  do
3719
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3720
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3721
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3722
$as_echo_n "checking for $ac_word... " >&6; }
3723
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3724
  $as_echo_n "(cached) " >&6
3725
else
3726
  if test -n "$DUMPBIN"; then
3727
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3728
else
3729
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730
for as_dir in $PATH
3731
do
3732
  IFS=$as_save_IFS
3733
  test -z "$as_dir" && as_dir=.
3734
  for ac_exec_ext in '' $ac_executable_extensions; do
3735
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3736
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3737
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3738
    break 2
3739
  fi
3740
done
3741
done
3742
IFS=$as_save_IFS
3743 19 jeremybenn
 
3744 82 jeremybenn
fi
3745
fi
3746
DUMPBIN=$ac_cv_prog_DUMPBIN
3747
if test -n "$DUMPBIN"; then
3748
  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3749
$as_echo "$DUMPBIN" >&6; }
3750
else
3751
  { $as_echo "$as_me:$LINENO: result: no" >&5
3752
$as_echo "no" >&6; }
3753
fi
3754
 
3755
 
3756
    test -n "$DUMPBIN" && break
3757
  done
3758
fi
3759
if test -z "$DUMPBIN"; then
3760
  ac_ct_DUMPBIN=$DUMPBIN
3761
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3762
do
3763
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3764
set dummy $ac_prog; ac_word=$2
3765
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3766
$as_echo_n "checking for $ac_word... " >&6; }
3767
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3768
  $as_echo_n "(cached) " >&6
3769
else
3770
  if test -n "$ac_ct_DUMPBIN"; then
3771
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3772
else
3773
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774
for as_dir in $PATH
3775
do
3776
  IFS=$as_save_IFS
3777
  test -z "$as_dir" && as_dir=.
3778
  for ac_exec_ext in '' $ac_executable_extensions; do
3779
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3780
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3781
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3782
    break 2
3783
  fi
3784
done
3785
done
3786
IFS=$as_save_IFS
3787
 
3788
fi
3789
fi
3790
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3791
if test -n "$ac_ct_DUMPBIN"; then
3792
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3793
$as_echo "$ac_ct_DUMPBIN" >&6; }
3794
else
3795
  { $as_echo "$as_me:$LINENO: result: no" >&5
3796
$as_echo "no" >&6; }
3797
fi
3798
 
3799
 
3800
  test -n "$ac_ct_DUMPBIN" && break
3801
done
3802
 
3803
  if test "x$ac_ct_DUMPBIN" = x; then
3804
    DUMPBIN=":"
3805
  else
3806
    case $cross_compiling:$ac_tool_warned in
3807
yes:)
3808
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3809
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3810
ac_tool_warned=yes ;;
3811
esac
3812
    DUMPBIN=$ac_ct_DUMPBIN
3813
  fi
3814
fi
3815
 
3816
 
3817
  if test "$DUMPBIN" != ":"; then
3818
    NM="$DUMPBIN"
3819
  fi
3820
fi
3821
test -z "$NM" && NM=nm
3822
 
3823
 
3824
 
3825
 
3826
 
3827
 
3828
{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3829
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
3830
if test "${lt_cv_nm_interface+set}" = set; then
3831
  $as_echo_n "(cached) " >&6
3832
else
3833
  lt_cv_nm_interface="BSD nm"
3834
  echo "int some_variable = 0;" > conftest.$ac_ext
3835 90 jeremybenn
  (eval echo "\"\$as_me:3835: $ac_compile\"" >&5)
3836 82 jeremybenn
  (eval "$ac_compile" 2>conftest.err)
3837
  cat conftest.err >&5
3838 90 jeremybenn
  (eval echo "\"\$as_me:3838: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3839 82 jeremybenn
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3840
  cat conftest.err >&5
3841 90 jeremybenn
  (eval echo "\"\$as_me:3841: output\"" >&5)
3842 82 jeremybenn
  cat conftest.out >&5
3843
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3844
    lt_cv_nm_interface="MS dumpbin"
3845
  fi
3846
  rm -f conftest*
3847
fi
3848
{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3849
$as_echo "$lt_cv_nm_interface" >&6; }
3850
 
3851
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3852
$as_echo_n "checking whether ln -s works... " >&6; }
3853 19 jeremybenn
LN_S=$as_ln_s
3854
if test "$LN_S" = "ln -s"; then
3855 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: yes" >&5
3856
$as_echo "yes" >&6; }
3857 19 jeremybenn
else
3858 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3859
$as_echo "no, using $LN_S" >&6; }
3860 19 jeremybenn
fi
3861
 
3862 82 jeremybenn
# find the maximum length of command line arguments
3863
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3864
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
3865
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3866
  $as_echo_n "(cached) " >&6
3867
else
3868
    i=0
3869
  teststring="ABCD"
3870
 
3871
  case $build_os in
3872
  msdosdjgpp*)
3873
    # On DJGPP, this test can blow up pretty badly due to problems in libc
3874
    # (any single argument exceeding 2000 bytes causes a buffer overrun
3875
    # during glob expansion).  Even if it were fixed, the result of this
3876
    # check would be larger than it should be.
3877
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3878
    ;;
3879
 
3880
  gnu*)
3881
    # Under GNU Hurd, this test is not required because there is
3882
    # no limit to the length of command line arguments.
3883
    # Libtool will interpret -1 as no limit whatsoever
3884
    lt_cv_sys_max_cmd_len=-1;
3885
    ;;
3886
 
3887
  cygwin* | mingw* | cegcc*)
3888
    # On Win9x/ME, this test blows up -- it succeeds, but takes
3889
    # about 5 minutes as the teststring grows exponentially.
3890
    # Worse, since 9x/ME are not pre-emptively multitasking,
3891
    # you end up with a "frozen" computer, even though with patience
3892
    # the test eventually succeeds (with a max line length of 256k).
3893
    # Instead, let's just punt: use the minimum linelength reported by
3894
    # all of the supported platforms: 8192 (on NT/2K/XP).
3895
    lt_cv_sys_max_cmd_len=8192;
3896
    ;;
3897
 
3898
  amigaos*)
3899
    # On AmigaOS with pdksh, this test takes hours, literally.
3900
    # So we just punt and use a minimum line length of 8192.
3901
    lt_cv_sys_max_cmd_len=8192;
3902
    ;;
3903
 
3904
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3905
    # This has been around since 386BSD, at least.  Likely further.
3906
    if test -x /sbin/sysctl; then
3907
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3908
    elif test -x /usr/sbin/sysctl; then
3909
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3910
    else
3911
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
3912
    fi
3913
    # And add a safety zone
3914
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3915
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3916
    ;;
3917
 
3918
  interix*)
3919
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
3920
    lt_cv_sys_max_cmd_len=196608
3921
    ;;
3922
 
3923
  osf*)
3924
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3925
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3926
    # nice to cause kernel panics so lets avoid the loop below.
3927
    # First set a reasonable default.
3928
    lt_cv_sys_max_cmd_len=16384
3929
    #
3930
    if test -x /sbin/sysconfig; then
3931
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3932
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
3933
      esac
3934
    fi
3935
    ;;
3936
  sco3.2v5*)
3937
    lt_cv_sys_max_cmd_len=102400
3938
    ;;
3939
  sysv5* | sco5v6* | sysv4.2uw2*)
3940
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3941
    if test -n "$kargmax"; then
3942
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
3943
    else
3944
      lt_cv_sys_max_cmd_len=32768
3945
    fi
3946
    ;;
3947
  *)
3948
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3949
    if test -n "$lt_cv_sys_max_cmd_len"; then
3950
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3951
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3952
    else
3953
      # Make teststring a little bigger before we do anything with it.
3954
      # a 1K string should be a reasonable start.
3955
      for i in 1 2 3 4 5 6 7 8 ; do
3956
        teststring=$teststring$teststring
3957
      done
3958
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3959
      # If test is not a shell built-in, we'll probably end up computing a
3960
      # maximum length that is only half of the actual maximum length, but
3961
      # we can't tell.
3962
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3963
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3964
              test $i != 17 # 1/2 MB should be enough
3965
      do
3966
        i=`expr $i + 1`
3967
        teststring=$teststring$teststring
3968
      done
3969
      # Only check the string length outside the loop.
3970
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3971
      teststring=
3972
      # Add a significant safety factor because C++ compilers can tack on
3973
      # massive amounts of additional arguments before passing them to the
3974
      # linker.  It appears as though 1/2 is a usable value.
3975
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3976
    fi
3977
    ;;
3978
  esac
3979
 
3980
fi
3981
 
3982
if test -n $lt_cv_sys_max_cmd_len ; then
3983
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3984
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
3985
else
3986
  { $as_echo "$as_me:$LINENO: result: none" >&5
3987
$as_echo "none" >&6; }
3988
fi
3989
max_cmd_len=$lt_cv_sys_max_cmd_len
3990
 
3991
 
3992
 
3993
 
3994
 
3995
 
3996
: ${CP="cp -f"}
3997
: ${MV="mv -f"}
3998
: ${RM="rm -f"}
3999
 
4000
{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4001
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4002
# Try some XSI features
4003
xsi_shell=no
4004
( _lt_dummy="a/b/c"
4005
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4006
      = c,a/b,, \
4007
    && eval 'test $(( 1 + 1 )) -eq 2 \
4008
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4009
  && xsi_shell=yes
4010
{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4011
$as_echo "$xsi_shell" >&6; }
4012
 
4013
 
4014
{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4015
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4016
lt_shell_append=no
4017
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4018
    >/dev/null 2>&1 \
4019
  && lt_shell_append=yes
4020
{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4021
$as_echo "$lt_shell_append" >&6; }
4022
 
4023
 
4024
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4025
  lt_unset=unset
4026
else
4027
  lt_unset=false
4028
fi
4029
 
4030
 
4031
 
4032
 
4033
 
4034
# test EBCDIC or ASCII
4035
case `echo X|tr X '\101'` in
4036
 A) # ASCII based system
4037
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4038
  lt_SP2NL='tr \040 \012'
4039
  lt_NL2SP='tr \015\012 \040\040'
4040
  ;;
4041
 *) # EBCDIC based system
4042
  lt_SP2NL='tr \100 \n'
4043
  lt_NL2SP='tr \r\n \100\100'
4044
  ;;
4045
esac
4046
 
4047
 
4048
 
4049
 
4050
 
4051
 
4052
 
4053
 
4054
 
4055
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4056
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4057
if test "${lt_cv_ld_reload_flag+set}" = set; then
4058
  $as_echo_n "(cached) " >&6
4059
else
4060
  lt_cv_ld_reload_flag='-r'
4061
fi
4062
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4063
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4064
reload_flag=$lt_cv_ld_reload_flag
4065
case $reload_flag in
4066
"" | " "*) ;;
4067
*) reload_flag=" $reload_flag" ;;
4068
esac
4069
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4070
case $host_os in
4071
  darwin*)
4072
    if test "$GCC" = yes; then
4073
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4074
    else
4075
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4076
    fi
4077
    ;;
4078
esac
4079
 
4080
 
4081
 
4082
 
4083
 
4084
 
4085
 
4086
 
4087
 
4088
if test -n "$ac_tool_prefix"; then
4089
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4090
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4091
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4092
$as_echo_n "checking for $ac_word... " >&6; }
4093
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4094
  $as_echo_n "(cached) " >&6
4095
else
4096
  if test -n "$OBJDUMP"; then
4097
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4098
else
4099
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100
for as_dir in $PATH
4101
do
4102
  IFS=$as_save_IFS
4103
  test -z "$as_dir" && as_dir=.
4104
  for ac_exec_ext in '' $ac_executable_extensions; do
4105
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4106
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4107
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4108
    break 2
4109
  fi
4110
done
4111
done
4112
IFS=$as_save_IFS
4113
 
4114
fi
4115
fi
4116
OBJDUMP=$ac_cv_prog_OBJDUMP
4117
if test -n "$OBJDUMP"; then
4118
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4119
$as_echo "$OBJDUMP" >&6; }
4120
else
4121
  { $as_echo "$as_me:$LINENO: result: no" >&5
4122
$as_echo "no" >&6; }
4123
fi
4124
 
4125
 
4126
fi
4127
if test -z "$ac_cv_prog_OBJDUMP"; then
4128
  ac_ct_OBJDUMP=$OBJDUMP
4129
  # Extract the first word of "objdump", so it can be a program name with args.
4130
set dummy objdump; ac_word=$2
4131
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4132
$as_echo_n "checking for $ac_word... " >&6; }
4133
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4134
  $as_echo_n "(cached) " >&6
4135
else
4136
  if test -n "$ac_ct_OBJDUMP"; then
4137
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4138
else
4139
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140
for as_dir in $PATH
4141
do
4142
  IFS=$as_save_IFS
4143
  test -z "$as_dir" && as_dir=.
4144
  for ac_exec_ext in '' $ac_executable_extensions; do
4145
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4146
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4147
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4148
    break 2
4149
  fi
4150
done
4151
done
4152
IFS=$as_save_IFS
4153
 
4154
fi
4155
fi
4156
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4157
if test -n "$ac_ct_OBJDUMP"; then
4158
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4159
$as_echo "$ac_ct_OBJDUMP" >&6; }
4160
else
4161
  { $as_echo "$as_me:$LINENO: result: no" >&5
4162
$as_echo "no" >&6; }
4163
fi
4164
 
4165
  if test "x$ac_ct_OBJDUMP" = x; then
4166
    OBJDUMP="false"
4167
  else
4168
    case $cross_compiling:$ac_tool_warned in
4169
yes:)
4170
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4171
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4172
ac_tool_warned=yes ;;
4173
esac
4174
    OBJDUMP=$ac_ct_OBJDUMP
4175
  fi
4176
else
4177
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4178
fi
4179
 
4180
test -z "$OBJDUMP" && OBJDUMP=objdump
4181
 
4182
 
4183
 
4184
 
4185
 
4186
 
4187
 
4188
 
4189
 
4190
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4191
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4192 19 jeremybenn
if test "${lt_cv_deplibs_check_method+set}" = set; then
4193 82 jeremybenn
  $as_echo_n "(cached) " >&6
4194 19 jeremybenn
else
4195
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4196
lt_cv_file_magic_test_file=
4197
lt_cv_deplibs_check_method='unknown'
4198
# Need to set the preceding variable on all platforms that support
4199
# interlibrary dependencies.
4200
# 'none' -- dependencies not supported.
4201
# `unknown' -- same as none, but documents that we really don't know.
4202
# 'pass_all' -- all dependencies passed with no checks.
4203
# 'test_compile' -- check by making test program.
4204
# 'file_magic [[regex]]' -- check by looking for files in library path
4205
# which responds to the $file_magic_cmd with a given extended regex.
4206
# If you have `file' or equivalent on your system and you're not sure
4207
# whether `pass_all' will *always* work, you probably want this one.
4208
 
4209
case $host_os in
4210 82 jeremybenn
aix[4-9]*)
4211 19 jeremybenn
  lt_cv_deplibs_check_method=pass_all
4212
  ;;
4213
 
4214
beos*)
4215
  lt_cv_deplibs_check_method=pass_all
4216
  ;;
4217
 
4218
bsdi[45]*)
4219
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4220
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4221
  lt_cv_file_magic_test_file=/shlib/libc.so
4222
  ;;
4223
 
4224
cygwin*)
4225
  # func_win32_libid is a shell function defined in ltmain.sh
4226
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4227
  lt_cv_file_magic_cmd='func_win32_libid'
4228
  ;;
4229
 
4230
mingw* | pw32*)
4231
  # Base MSYS/MinGW do not provide the 'file' command needed by
4232
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4233
  # unless we find 'file', for example because we are cross-compiling.
4234
  if ( file / ) >/dev/null 2>&1; then
4235
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4236
    lt_cv_file_magic_cmd='func_win32_libid'
4237
  else
4238
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4239
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4240
  fi
4241
  ;;
4242
 
4243 82 jeremybenn
cegcc)
4244
  # use the weaker test based on 'objdump'. See mingw*.
4245
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4246
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4247
  ;;
4248
 
4249 19 jeremybenn
darwin* | rhapsody*)
4250
  lt_cv_deplibs_check_method=pass_all
4251
  ;;
4252
 
4253
freebsd* | dragonfly*)
4254 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4255 19 jeremybenn
    case $host_cpu in
4256
    i*86 )
4257
      # Not sure whether the presence of OpenBSD here was a mistake.
4258
      # Let's accept both of them until this is cleared up.
4259
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4260
      lt_cv_file_magic_cmd=/usr/bin/file
4261
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4262
      ;;
4263
    esac
4264
  else
4265
    lt_cv_deplibs_check_method=pass_all
4266
  fi
4267
  ;;
4268
 
4269
gnu*)
4270
  lt_cv_deplibs_check_method=pass_all
4271
  ;;
4272
 
4273
hpux10.20* | hpux11*)
4274
  lt_cv_file_magic_cmd=/usr/bin/file
4275
  case $host_cpu in
4276
  ia64*)
4277
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4278
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4279
    ;;
4280
  hppa*64*)
4281
    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]'
4282
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4283
    ;;
4284
  *)
4285
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4286
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4287
    ;;
4288
  esac
4289
  ;;
4290
 
4291
interix[3-9]*)
4292
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4293
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4294
  ;;
4295
 
4296
irix5* | irix6* | nonstopux*)
4297
  case $LD in
4298
  *-32|*"-32 ") libmagic=32-bit;;
4299
  *-n32|*"-n32 ") libmagic=N32;;
4300
  *-64|*"-64 ") libmagic=64-bit;;
4301
  *) libmagic=never-match;;
4302
  esac
4303
  lt_cv_deplibs_check_method=pass_all
4304
  ;;
4305
 
4306
# This must be Linux ELF.
4307
linux* | k*bsd*-gnu)
4308
  lt_cv_deplibs_check_method=pass_all
4309
  ;;
4310
 
4311 90 jeremybenn
netbsd*)
4312 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4313 19 jeremybenn
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4314
  else
4315
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4316
  fi
4317
  ;;
4318
 
4319
newos6*)
4320
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4321
  lt_cv_file_magic_cmd=/usr/bin/file
4322
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4323
  ;;
4324
 
4325 82 jeremybenn
*nto* | *qnx*)
4326
  lt_cv_deplibs_check_method=pass_all
4327 19 jeremybenn
  ;;
4328
 
4329
openbsd*)
4330 82 jeremybenn
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4331 19 jeremybenn
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4332
  else
4333
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4334
  fi
4335
  ;;
4336
 
4337
osf3* | osf4* | osf5*)
4338
  lt_cv_deplibs_check_method=pass_all
4339
  ;;
4340
 
4341
rdos*)
4342
  lt_cv_deplibs_check_method=pass_all
4343
  ;;
4344
 
4345
solaris*)
4346
  lt_cv_deplibs_check_method=pass_all
4347
  ;;
4348
 
4349 82 jeremybenn
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4350
  lt_cv_deplibs_check_method=pass_all
4351
  ;;
4352
 
4353 19 jeremybenn
sysv4 | sysv4.3*)
4354
  case $host_vendor in
4355
  motorola)
4356
    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]'
4357
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4358
    ;;
4359
  ncr)
4360
    lt_cv_deplibs_check_method=pass_all
4361
    ;;
4362
  sequent)
4363
    lt_cv_file_magic_cmd='/bin/file'
4364
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4365
    ;;
4366
  sni)
4367
    lt_cv_file_magic_cmd='/bin/file'
4368
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4369
    lt_cv_file_magic_test_file=/lib/libc.so
4370
    ;;
4371
  siemens)
4372
    lt_cv_deplibs_check_method=pass_all
4373
    ;;
4374
  pc)
4375
    lt_cv_deplibs_check_method=pass_all
4376
    ;;
4377
  esac
4378
  ;;
4379
 
4380 82 jeremybenn
tpf*)
4381 19 jeremybenn
  lt_cv_deplibs_check_method=pass_all
4382
  ;;
4383
esac
4384
 
4385
fi
4386 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4387
$as_echo "$lt_cv_deplibs_check_method" >&6; }
4388 19 jeremybenn
file_magic_cmd=$lt_cv_file_magic_cmd
4389
deplibs_check_method=$lt_cv_deplibs_check_method
4390
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4391
 
4392
 
4393
 
4394
 
4395 82 jeremybenn
 
4396
 
4397
 
4398
 
4399
 
4400
 
4401
 
4402
 
4403
if test -n "$ac_tool_prefix"; then
4404
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4405
set dummy ${ac_tool_prefix}ar; ac_word=$2
4406
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4407
$as_echo_n "checking for $ac_word... " >&6; }
4408
if test "${ac_cv_prog_AR+set}" = set; then
4409
  $as_echo_n "(cached) " >&6
4410
else
4411
  if test -n "$AR"; then
4412
  ac_cv_prog_AR="$AR" # Let the user override the test.
4413
else
4414
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415
for as_dir in $PATH
4416
do
4417
  IFS=$as_save_IFS
4418
  test -z "$as_dir" && as_dir=.
4419
  for ac_exec_ext in '' $ac_executable_extensions; do
4420
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4421
    ac_cv_prog_AR="${ac_tool_prefix}ar"
4422
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4423
    break 2
4424
  fi
4425
done
4426
done
4427
IFS=$as_save_IFS
4428
 
4429
fi
4430
fi
4431
AR=$ac_cv_prog_AR
4432
if test -n "$AR"; then
4433
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
4434
$as_echo "$AR" >&6; }
4435
else
4436
  { $as_echo "$as_me:$LINENO: result: no" >&5
4437
$as_echo "no" >&6; }
4438
fi
4439
 
4440
 
4441
fi
4442
if test -z "$ac_cv_prog_AR"; then
4443
  ac_ct_AR=$AR
4444
  # Extract the first word of "ar", so it can be a program name with args.
4445
set dummy ar; ac_word=$2
4446
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4447
$as_echo_n "checking for $ac_word... " >&6; }
4448
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4449
  $as_echo_n "(cached) " >&6
4450
else
4451
  if test -n "$ac_ct_AR"; then
4452
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4453
else
4454
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4455
for as_dir in $PATH
4456
do
4457
  IFS=$as_save_IFS
4458
  test -z "$as_dir" && as_dir=.
4459
  for ac_exec_ext in '' $ac_executable_extensions; do
4460
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4461
    ac_cv_prog_ac_ct_AR="ar"
4462
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4463
    break 2
4464
  fi
4465
done
4466
done
4467
IFS=$as_save_IFS
4468
 
4469
fi
4470
fi
4471
ac_ct_AR=$ac_cv_prog_ac_ct_AR
4472
if test -n "$ac_ct_AR"; then
4473
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4474
$as_echo "$ac_ct_AR" >&6; }
4475
else
4476
  { $as_echo "$as_me:$LINENO: result: no" >&5
4477
$as_echo "no" >&6; }
4478
fi
4479
 
4480
  if test "x$ac_ct_AR" = x; then
4481
    AR="false"
4482
  else
4483
    case $cross_compiling:$ac_tool_warned in
4484
yes:)
4485
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4486
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4487
ac_tool_warned=yes ;;
4488
esac
4489
    AR=$ac_ct_AR
4490
  fi
4491
else
4492
  AR="$ac_cv_prog_AR"
4493
fi
4494
 
4495
test -z "$AR" && AR=ar
4496
test -z "$AR_FLAGS" && AR_FLAGS=cru
4497
 
4498
 
4499
 
4500
 
4501
 
4502
 
4503
 
4504
 
4505
 
4506
 
4507
 
4508
if test -n "$ac_tool_prefix"; then
4509
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4510
set dummy ${ac_tool_prefix}strip; ac_word=$2
4511
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4512
$as_echo_n "checking for $ac_word... " >&6; }
4513
if test "${ac_cv_prog_STRIP+set}" = set; then
4514
  $as_echo_n "(cached) " >&6
4515
else
4516
  if test -n "$STRIP"; then
4517
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4518
else
4519
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520
for as_dir in $PATH
4521
do
4522
  IFS=$as_save_IFS
4523
  test -z "$as_dir" && as_dir=.
4524
  for ac_exec_ext in '' $ac_executable_extensions; do
4525
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4526
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4527
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4528
    break 2
4529
  fi
4530
done
4531
done
4532
IFS=$as_save_IFS
4533
 
4534
fi
4535
fi
4536
STRIP=$ac_cv_prog_STRIP
4537
if test -n "$STRIP"; then
4538
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4539
$as_echo "$STRIP" >&6; }
4540
else
4541
  { $as_echo "$as_me:$LINENO: result: no" >&5
4542
$as_echo "no" >&6; }
4543
fi
4544
 
4545
 
4546
fi
4547
if test -z "$ac_cv_prog_STRIP"; then
4548
  ac_ct_STRIP=$STRIP
4549
  # Extract the first word of "strip", so it can be a program name with args.
4550
set dummy strip; ac_word=$2
4551
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4552
$as_echo_n "checking for $ac_word... " >&6; }
4553
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4554
  $as_echo_n "(cached) " >&6
4555
else
4556
  if test -n "$ac_ct_STRIP"; then
4557
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4558
else
4559
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560
for as_dir in $PATH
4561
do
4562
  IFS=$as_save_IFS
4563
  test -z "$as_dir" && as_dir=.
4564
  for ac_exec_ext in '' $ac_executable_extensions; do
4565
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4566
    ac_cv_prog_ac_ct_STRIP="strip"
4567
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4568
    break 2
4569
  fi
4570
done
4571
done
4572
IFS=$as_save_IFS
4573
 
4574
fi
4575
fi
4576
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4577
if test -n "$ac_ct_STRIP"; then
4578
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4579
$as_echo "$ac_ct_STRIP" >&6; }
4580
else
4581
  { $as_echo "$as_me:$LINENO: result: no" >&5
4582
$as_echo "no" >&6; }
4583
fi
4584
 
4585
  if test "x$ac_ct_STRIP" = x; then
4586
    STRIP=":"
4587
  else
4588
    case $cross_compiling:$ac_tool_warned in
4589
yes:)
4590
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4591
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4592
ac_tool_warned=yes ;;
4593
esac
4594
    STRIP=$ac_ct_STRIP
4595
  fi
4596
else
4597
  STRIP="$ac_cv_prog_STRIP"
4598
fi
4599
 
4600
test -z "$STRIP" && STRIP=:
4601
 
4602
 
4603
 
4604
 
4605
 
4606
 
4607
if test -n "$ac_tool_prefix"; then
4608
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4609
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4610
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4611
$as_echo_n "checking for $ac_word... " >&6; }
4612
if test "${ac_cv_prog_RANLIB+set}" = set; then
4613
  $as_echo_n "(cached) " >&6
4614
else
4615
  if test -n "$RANLIB"; then
4616
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4617
else
4618
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619
for as_dir in $PATH
4620
do
4621
  IFS=$as_save_IFS
4622
  test -z "$as_dir" && as_dir=.
4623
  for ac_exec_ext in '' $ac_executable_extensions; do
4624
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4625
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4626
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4627
    break 2
4628
  fi
4629
done
4630
done
4631
IFS=$as_save_IFS
4632
 
4633
fi
4634
fi
4635
RANLIB=$ac_cv_prog_RANLIB
4636
if test -n "$RANLIB"; then
4637
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4638
$as_echo "$RANLIB" >&6; }
4639
else
4640
  { $as_echo "$as_me:$LINENO: result: no" >&5
4641
$as_echo "no" >&6; }
4642
fi
4643
 
4644
 
4645
fi
4646
if test -z "$ac_cv_prog_RANLIB"; then
4647
  ac_ct_RANLIB=$RANLIB
4648
  # Extract the first word of "ranlib", so it can be a program name with args.
4649
set dummy ranlib; ac_word=$2
4650
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4651
$as_echo_n "checking for $ac_word... " >&6; }
4652
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4653
  $as_echo_n "(cached) " >&6
4654
else
4655
  if test -n "$ac_ct_RANLIB"; then
4656
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4657
else
4658
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659
for as_dir in $PATH
4660
do
4661
  IFS=$as_save_IFS
4662
  test -z "$as_dir" && as_dir=.
4663
  for ac_exec_ext in '' $ac_executable_extensions; do
4664
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4665
    ac_cv_prog_ac_ct_RANLIB="ranlib"
4666
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4667
    break 2
4668
  fi
4669
done
4670
done
4671
IFS=$as_save_IFS
4672
 
4673
fi
4674
fi
4675
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4676
if test -n "$ac_ct_RANLIB"; then
4677
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4678
$as_echo "$ac_ct_RANLIB" >&6; }
4679
else
4680
  { $as_echo "$as_me:$LINENO: result: no" >&5
4681
$as_echo "no" >&6; }
4682
fi
4683
 
4684
  if test "x$ac_ct_RANLIB" = x; then
4685
    RANLIB=":"
4686
  else
4687
    case $cross_compiling:$ac_tool_warned in
4688
yes:)
4689
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4690
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4691
ac_tool_warned=yes ;;
4692
esac
4693
    RANLIB=$ac_ct_RANLIB
4694
  fi
4695
else
4696
  RANLIB="$ac_cv_prog_RANLIB"
4697
fi
4698
 
4699
test -z "$RANLIB" && RANLIB=:
4700
 
4701
 
4702
 
4703
 
4704
 
4705
 
4706
# Determine commands to create old-style static archives.
4707
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4708
old_postinstall_cmds='chmod 644 $oldlib'
4709
old_postuninstall_cmds=
4710
 
4711
if test -n "$RANLIB"; then
4712
  case $host_os in
4713
  openbsd*)
4714
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4715
    ;;
4716
  *)
4717
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4718
    ;;
4719
  esac
4720
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4721
fi
4722
 
4723
 
4724
 
4725
 
4726
 
4727
 
4728
 
4729
 
4730
 
4731
 
4732
 
4733
 
4734
 
4735
 
4736
 
4737
 
4738
 
4739
 
4740
 
4741
 
4742
 
4743
 
4744
 
4745
 
4746
 
4747
 
4748
 
4749
 
4750
 
4751
 
4752
 
4753
 
4754
 
4755
 
4756 19 jeremybenn
# If no C compiler was specified, use CC.
4757
LTCC=${LTCC-"$CC"}
4758
 
4759
# If no C compiler flags were specified, use CFLAGS.
4760
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4761
 
4762
# Allow CC to be a program name with arguments.
4763
compiler=$CC
4764
 
4765
 
4766 82 jeremybenn
# Check for command to grab the raw symbol name followed by C symbol from nm.
4767
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4768
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4769
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4770
  $as_echo_n "(cached) " >&6
4771
else
4772
 
4773
# These are sane defaults that work on at least a few old systems.
4774
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4775
 
4776
# Character class describing NM global symbol codes.
4777
symcode='[BCDEGRST]'
4778
 
4779
# Regexp to match symbols that can be accessed directly from C.
4780
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4781
 
4782
# Define system-specific variables.
4783
case $host_os in
4784
aix*)
4785
  symcode='[BCDT]'
4786
  ;;
4787
cygwin* | mingw* | pw32* | cegcc*)
4788
  symcode='[ABCDGISTW]'
4789
  ;;
4790
hpux*)
4791
  if test "$host_cpu" = ia64; then
4792
    symcode='[ABCDEGRST]'
4793
  fi
4794
  ;;
4795
irix* | nonstopux*)
4796
  symcode='[BCDEGRST]'
4797
  ;;
4798
osf*)
4799
  symcode='[BCDEGQRST]'
4800
  ;;
4801
solaris*)
4802
  symcode='[BDRT]'
4803
  ;;
4804
sco3.2v5*)
4805
  symcode='[DT]'
4806
  ;;
4807
sysv4.2uw2*)
4808
  symcode='[DT]'
4809
  ;;
4810
sysv5* | sco5v6* | unixware* | OpenUNIX*)
4811
  symcode='[ABDT]'
4812
  ;;
4813
sysv4)
4814
  symcode='[DFNSTU]'
4815
  ;;
4816
esac
4817
 
4818
# If we're using GNU nm, then use its standard symbol codes.
4819
case `$NM -V 2>&1` in
4820
*GNU* | *'with BFD'*)
4821
  symcode='[ABCDGIRSTW]' ;;
4822
esac
4823
 
4824
# Transform an extracted symbol line into a proper C declaration.
4825
# Some systems (esp. on ia64) link data and code symbols differently,
4826
# so use this general approach.
4827
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4828
 
4829
# Transform an extracted symbol line into symbol name and symbol address
4830
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
4831
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'"
4832
 
4833
# Handle CRLF in mingw tool chain
4834
opt_cr=
4835
case $build_os in
4836
mingw*)
4837
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4838
  ;;
4839
esac
4840
 
4841
# Try without a prefix underscore, then with it.
4842
for ac_symprfx in "" "_"; do
4843
 
4844
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4845
  symxfrm="\\1 $ac_symprfx\\2 \\2"
4846
 
4847
  # Write the raw and C identifiers.
4848
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4849
    # Fake it for dumpbin and say T for any non-static function
4850
    # and D for any global variable.
4851
    # Also find C++ and __fastcall symbols from MSVC++,
4852
    # which start with @ or ?.
4853
    lt_cv_sys_global_symbol_pipe="$AWK '"\
4854
"     {last_section=section; section=\$ 3};"\
4855
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4856
"     \$ 0!~/External *\|/{next};"\
4857
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4858
"     {if(hide[section]) next};"\
4859
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4860
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4861
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
4862
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4863
"     ' prfx=^$ac_symprfx"
4864
  else
4865
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4866
  fi
4867
 
4868
  # Check to see that the pipe works correctly.
4869
  pipe_works=no
4870
 
4871
  rm -f conftest*
4872
  cat > conftest.$ac_ext <<_LT_EOF
4873
#ifdef __cplusplus
4874
extern "C" {
4875
#endif
4876
char nm_test_var;
4877
void nm_test_func(void);
4878
void nm_test_func(void){}
4879
#ifdef __cplusplus
4880
}
4881
#endif
4882
int main(){nm_test_var='a';nm_test_func();return(0);}
4883
_LT_EOF
4884
 
4885
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4886
  (eval $ac_compile) 2>&5
4887
  ac_status=$?
4888
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889
  (exit $ac_status); }; then
4890
    # Now try to grab the symbols.
4891
    nlist=conftest.nm
4892
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4893
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4894
  ac_status=$?
4895
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896
  (exit $ac_status); } && test -s "$nlist"; then
4897
      # Try sorting and uniquifying the output.
4898
      if sort "$nlist" | uniq > "$nlist"T; then
4899
        mv -f "$nlist"T "$nlist"
4900
      else
4901
        rm -f "$nlist"T
4902
      fi
4903
 
4904
      # Make sure that we snagged all the symbols we need.
4905
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4906
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4907
          cat <<_LT_EOF > conftest.$ac_ext
4908
#ifdef __cplusplus
4909
extern "C" {
4910
#endif
4911
 
4912
_LT_EOF
4913
          # Now generate the symbol file.
4914
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4915
 
4916
          cat <<_LT_EOF >> conftest.$ac_ext
4917
 
4918
/* The mapping between symbol names and symbols.  */
4919
const struct {
4920
  const char *name;
4921
  void       *address;
4922
}
4923
lt__PROGRAM__LTX_preloaded_symbols[] =
4924
{
4925
  { "@PROGRAM@", (void *) 0 },
4926
_LT_EOF
4927
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4928
          cat <<\_LT_EOF >> conftest.$ac_ext
4929
  {0, (void *) 0}
4930
};
4931
 
4932
/* This works around a problem in FreeBSD linker */
4933
#ifdef FREEBSD_WORKAROUND
4934
static const void *lt_preloaded_setup() {
4935
  return lt__PROGRAM__LTX_preloaded_symbols;
4936
}
4937
#endif
4938
 
4939
#ifdef __cplusplus
4940
}
4941
#endif
4942
_LT_EOF
4943
          # Now try linking the two files.
4944
          mv conftest.$ac_objext conftstm.$ac_objext
4945
          lt_save_LIBS="$LIBS"
4946
          lt_save_CFLAGS="$CFLAGS"
4947
          LIBS="conftstm.$ac_objext"
4948
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4949
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4950
  (eval $ac_link) 2>&5
4951
  ac_status=$?
4952
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
4954
            pipe_works=yes
4955
          fi
4956
          LIBS="$lt_save_LIBS"
4957
          CFLAGS="$lt_save_CFLAGS"
4958
        else
4959
          echo "cannot find nm_test_func in $nlist" >&5
4960
        fi
4961
      else
4962
        echo "cannot find nm_test_var in $nlist" >&5
4963
      fi
4964
    else
4965
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4966
    fi
4967
  else
4968
    echo "$progname: failed program was:" >&5
4969
    cat conftest.$ac_ext >&5
4970
  fi
4971
  rm -rf conftest* conftst*
4972
 
4973
  # Do not use the global_symbol_pipe unless it works.
4974
  if test "$pipe_works" = yes; then
4975
    break
4976
  else
4977
    lt_cv_sys_global_symbol_pipe=
4978
  fi
4979
done
4980
 
4981
fi
4982
 
4983
if test -z "$lt_cv_sys_global_symbol_pipe"; then
4984
  lt_cv_sys_global_symbol_to_cdecl=
4985
fi
4986
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4987
  { $as_echo "$as_me:$LINENO: result: failed" >&5
4988
$as_echo "failed" >&6; }
4989
else
4990
  { $as_echo "$as_me:$LINENO: result: ok" >&5
4991
$as_echo "ok" >&6; }
4992
fi
4993
 
4994
 
4995
 
4996
 
4997
 
4998
 
4999
 
5000
 
5001
 
5002
 
5003
 
5004
 
5005
 
5006
 
5007
 
5008
 
5009
 
5010
 
5011
 
5012
 
5013
 
5014
 
5015
 
5016 19 jeremybenn
# Check whether --enable-libtool-lock was given.
5017
if test "${enable_libtool_lock+set}" = set; then
5018
  enableval=$enable_libtool_lock;
5019
fi
5020
 
5021
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5022
 
5023
# Some flags need to be propagated to the compiler or linker for good
5024
# libtool support.
5025
case $host in
5026
ia64-*-hpux*)
5027
  # Find out which ABI we are using.
5028
  echo 'int i;' > conftest.$ac_ext
5029
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5030
  (eval $ac_compile) 2>&5
5031
  ac_status=$?
5032 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 19 jeremybenn
  (exit $ac_status); }; then
5034
    case `/usr/bin/file conftest.$ac_objext` in
5035 82 jeremybenn
      *ELF-32*)
5036
        HPUX_IA64_MODE="32"
5037
        ;;
5038
      *ELF-64*)
5039
        HPUX_IA64_MODE="64"
5040
        ;;
5041 19 jeremybenn
    esac
5042
  fi
5043
  rm -rf conftest*
5044
  ;;
5045
*-*-irix6*)
5046
  # Find out which ABI we are using.
5047 90 jeremybenn
  echo '#line 5047 "configure"' > conftest.$ac_ext
5048 19 jeremybenn
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5049
  (eval $ac_compile) 2>&5
5050
  ac_status=$?
5051 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 19 jeremybenn
  (exit $ac_status); }; then
5053 82 jeremybenn
    if test "$lt_cv_prog_gnu_ld" = yes; then
5054
      case `/usr/bin/file conftest.$ac_objext` in
5055
        *32-bit*)
5056
          LD="${LD-ld} -melf32bsmip"
5057
          ;;
5058
        *N32*)
5059
          LD="${LD-ld} -melf32bmipn32"
5060
          ;;
5061
        *64-bit*)
5062
          LD="${LD-ld} -melf64bmip"
5063
        ;;
5064
      esac
5065
    else
5066
      case `/usr/bin/file conftest.$ac_objext` in
5067
        *32-bit*)
5068
          LD="${LD-ld} -32"
5069
          ;;
5070
        *N32*)
5071
          LD="${LD-ld} -n32"
5072
          ;;
5073
        *64-bit*)
5074
          LD="${LD-ld} -64"
5075
          ;;
5076
      esac
5077
    fi
5078 19 jeremybenn
  fi
5079
  rm -rf conftest*
5080
  ;;
5081
 
5082
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5083 82 jeremybenn
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5084 19 jeremybenn
  # Find out which ABI we are using.
5085
  echo 'int i;' > conftest.$ac_ext
5086
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5087
  (eval $ac_compile) 2>&5
5088
  ac_status=$?
5089 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 19 jeremybenn
  (exit $ac_status); }; then
5091
    case `/usr/bin/file conftest.o` in
5092 82 jeremybenn
      *32-bit*)
5093
        case $host in
5094
          x86_64-*kfreebsd*-gnu)
5095
            LD="${LD-ld} -m elf_i386_fbsd"
5096
            ;;
5097
          x86_64-*linux*)
5098
            LD="${LD-ld} -m elf_i386"
5099
            ;;
5100
          ppc64-*linux*|powerpc64-*linux*)
5101
            LD="${LD-ld} -m elf32ppclinux"
5102
            ;;
5103
          s390x-*linux*)
5104
            LD="${LD-ld} -m elf_s390"
5105
            ;;
5106
          sparc64-*linux*)
5107
            LD="${LD-ld} -m elf32_sparc"
5108
            ;;
5109
        esac
5110
        ;;
5111
      *64-bit*)
5112
        case $host in
5113
          x86_64-*kfreebsd*-gnu)
5114
            LD="${LD-ld} -m elf_x86_64_fbsd"
5115
            ;;
5116
          x86_64-*linux*)
5117
            LD="${LD-ld} -m elf_x86_64"
5118
            ;;
5119
          ppc*-*linux*|powerpc*-*linux*)
5120
            LD="${LD-ld} -m elf64ppc"
5121
            ;;
5122
          s390*-*linux*|s390*-*tpf*)
5123
            LD="${LD-ld} -m elf64_s390"
5124
            ;;
5125
          sparc*-*linux*)
5126
            LD="${LD-ld} -m elf64_sparc"
5127
            ;;
5128
        esac
5129
        ;;
5130 19 jeremybenn
    esac
5131
  fi
5132
  rm -rf conftest*
5133
  ;;
5134
 
5135
*-*-sco3.2v5*)
5136
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5137
  SAVE_CFLAGS="$CFLAGS"
5138
  CFLAGS="$CFLAGS -belf"
5139 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5140
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5141 19 jeremybenn
if test "${lt_cv_cc_needs_belf+set}" = set; then
5142 82 jeremybenn
  $as_echo_n "(cached) " >&6
5143 19 jeremybenn
else
5144
  ac_ext=c
5145
ac_cpp='$CPP $CPPFLAGS'
5146
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5147
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5148
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5149
 
5150
     cat >conftest.$ac_ext <<_ACEOF
5151
/* confdefs.h.  */
5152
_ACEOF
5153
cat confdefs.h >>conftest.$ac_ext
5154
cat >>conftest.$ac_ext <<_ACEOF
5155
/* end confdefs.h.  */
5156
 
5157
int
5158
main ()
5159
{
5160
 
5161
  ;
5162
  return 0;
5163
}
5164
_ACEOF
5165
rm -f conftest.$ac_objext conftest$ac_exeext
5166
if { (ac_try="$ac_link"
5167
case "(($ac_try" in
5168
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5169
  *) ac_try_echo=$ac_try;;
5170
esac
5171 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5172
$as_echo "$ac_try_echo") >&5
5173 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
5174
  ac_status=$?
5175
  grep -v '^ *+' conftest.er1 >conftest.err
5176
  rm -f conftest.er1
5177
  cat conftest.err >&5
5178 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 19 jeremybenn
  (exit $ac_status); } && {
5180
         test -z "$ac_c_werror_flag" ||
5181
         test ! -s conftest.err
5182 82 jeremybenn
       } && test -s conftest$ac_exeext && {
5183
         test "$cross_compiling" = yes ||
5184
         $as_test_x conftest$ac_exeext
5185
       }; then
5186 19 jeremybenn
  lt_cv_cc_needs_belf=yes
5187
else
5188 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
5189 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
5190
 
5191
        lt_cv_cc_needs_belf=no
5192
fi
5193
 
5194 82 jeremybenn
rm -rf conftest.dSYM
5195 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5196
      conftest$ac_exeext conftest.$ac_ext
5197
     ac_ext=c
5198
ac_cpp='$CPP $CPPFLAGS'
5199
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5200
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5201
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5202
 
5203
fi
5204 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5205
$as_echo "$lt_cv_cc_needs_belf" >&6; }
5206 19 jeremybenn
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5207
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5208
    CFLAGS="$SAVE_CFLAGS"
5209
  fi
5210
  ;;
5211
sparc*-*solaris*)
5212
  # Find out which ABI we are using.
5213
  echo 'int i;' > conftest.$ac_ext
5214
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5215
  (eval $ac_compile) 2>&5
5216
  ac_status=$?
5217 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 19 jeremybenn
  (exit $ac_status); }; then
5219
    case `/usr/bin/file conftest.o` in
5220
    *64-bit*)
5221
      case $lt_cv_prog_gnu_ld in
5222
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5223 82 jeremybenn
      *)
5224
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5225
          LD="${LD-ld} -64"
5226
        fi
5227
        ;;
5228 19 jeremybenn
      esac
5229
      ;;
5230
    esac
5231
  fi
5232
  rm -rf conftest*
5233
  ;;
5234 82 jeremybenn
esac
5235 19 jeremybenn
 
5236 82 jeremybenn
need_locks="$enable_libtool_lock"
5237 19 jeremybenn
 
5238 82 jeremybenn
 
5239
  case $host_os in
5240
    rhapsody* | darwin*)
5241
    if test -n "$ac_tool_prefix"; then
5242
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5243
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5244
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5245
$as_echo_n "checking for $ac_word... " >&6; }
5246
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5247
  $as_echo_n "(cached) " >&6
5248
else
5249
  if test -n "$DSYMUTIL"; then
5250
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5251
else
5252
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253
for as_dir in $PATH
5254
do
5255
  IFS=$as_save_IFS
5256
  test -z "$as_dir" && as_dir=.
5257
  for ac_exec_ext in '' $ac_executable_extensions; do
5258
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5259
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5260
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5261
    break 2
5262
  fi
5263
done
5264
done
5265
IFS=$as_save_IFS
5266
 
5267
fi
5268
fi
5269
DSYMUTIL=$ac_cv_prog_DSYMUTIL
5270
if test -n "$DSYMUTIL"; then
5271
  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5272
$as_echo "$DSYMUTIL" >&6; }
5273
else
5274
  { $as_echo "$as_me:$LINENO: result: no" >&5
5275
$as_echo "no" >&6; }
5276
fi
5277
 
5278
 
5279
fi
5280
if test -z "$ac_cv_prog_DSYMUTIL"; then
5281
  ac_ct_DSYMUTIL=$DSYMUTIL
5282
  # Extract the first word of "dsymutil", so it can be a program name with args.
5283
set dummy dsymutil; ac_word=$2
5284
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5285
$as_echo_n "checking for $ac_word... " >&6; }
5286
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5287
  $as_echo_n "(cached) " >&6
5288
else
5289
  if test -n "$ac_ct_DSYMUTIL"; then
5290
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5291
else
5292
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5293
for as_dir in $PATH
5294
do
5295
  IFS=$as_save_IFS
5296
  test -z "$as_dir" && as_dir=.
5297
  for ac_exec_ext in '' $ac_executable_extensions; do
5298
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5299
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5300
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5301
    break 2
5302
  fi
5303
done
5304
done
5305
IFS=$as_save_IFS
5306
 
5307
fi
5308
fi
5309
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5310
if test -n "$ac_ct_DSYMUTIL"; then
5311
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5312
$as_echo "$ac_ct_DSYMUTIL" >&6; }
5313
else
5314
  { $as_echo "$as_me:$LINENO: result: no" >&5
5315
$as_echo "no" >&6; }
5316
fi
5317
 
5318
  if test "x$ac_ct_DSYMUTIL" = x; then
5319
    DSYMUTIL=":"
5320
  else
5321
    case $cross_compiling:$ac_tool_warned in
5322
yes:)
5323
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5324
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5325
ac_tool_warned=yes ;;
5326 19 jeremybenn
esac
5327 82 jeremybenn
    DSYMUTIL=$ac_ct_DSYMUTIL
5328
  fi
5329
else
5330
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5331
fi
5332 19 jeremybenn
 
5333 82 jeremybenn
    if test -n "$ac_tool_prefix"; then
5334
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5335
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5336
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5337
$as_echo_n "checking for $ac_word... " >&6; }
5338
if test "${ac_cv_prog_NMEDIT+set}" = set; then
5339
  $as_echo_n "(cached) " >&6
5340
else
5341
  if test -n "$NMEDIT"; then
5342
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5343
else
5344
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345
for as_dir in $PATH
5346
do
5347
  IFS=$as_save_IFS
5348
  test -z "$as_dir" && as_dir=.
5349
  for ac_exec_ext in '' $ac_executable_extensions; do
5350
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5351
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5352
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5353
    break 2
5354
  fi
5355
done
5356
done
5357
IFS=$as_save_IFS
5358 19 jeremybenn
 
5359 82 jeremybenn
fi
5360
fi
5361
NMEDIT=$ac_cv_prog_NMEDIT
5362
if test -n "$NMEDIT"; then
5363
  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5364
$as_echo "$NMEDIT" >&6; }
5365
else
5366
  { $as_echo "$as_me:$LINENO: result: no" >&5
5367
$as_echo "no" >&6; }
5368
fi
5369 19 jeremybenn
 
5370 82 jeremybenn
 
5371
fi
5372
if test -z "$ac_cv_prog_NMEDIT"; then
5373
  ac_ct_NMEDIT=$NMEDIT
5374
  # Extract the first word of "nmedit", so it can be a program name with args.
5375
set dummy nmedit; ac_word=$2
5376
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5377
$as_echo_n "checking for $ac_word... " >&6; }
5378
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5379
  $as_echo_n "(cached) " >&6
5380
else
5381
  if test -n "$ac_ct_NMEDIT"; then
5382
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5383
else
5384
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385
for as_dir in $PATH
5386
do
5387
  IFS=$as_save_IFS
5388
  test -z "$as_dir" && as_dir=.
5389
  for ac_exec_ext in '' $ac_executable_extensions; do
5390
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5391
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
5392
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5393
    break 2
5394
  fi
5395
done
5396
done
5397
IFS=$as_save_IFS
5398
 
5399
fi
5400
fi
5401
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5402
if test -n "$ac_ct_NMEDIT"; then
5403
  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5404
$as_echo "$ac_ct_NMEDIT" >&6; }
5405
else
5406
  { $as_echo "$as_me:$LINENO: result: no" >&5
5407
$as_echo "no" >&6; }
5408
fi
5409
 
5410
  if test "x$ac_ct_NMEDIT" = x; then
5411
    NMEDIT=":"
5412
  else
5413
    case $cross_compiling:$ac_tool_warned in
5414
yes:)
5415
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5416
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5417
ac_tool_warned=yes ;;
5418
esac
5419
    NMEDIT=$ac_ct_NMEDIT
5420
  fi
5421
else
5422
  NMEDIT="$ac_cv_prog_NMEDIT"
5423
fi
5424
 
5425
    if test -n "$ac_tool_prefix"; then
5426
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5427
set dummy ${ac_tool_prefix}lipo; ac_word=$2
5428
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5429
$as_echo_n "checking for $ac_word... " >&6; }
5430
if test "${ac_cv_prog_LIPO+set}" = set; then
5431
  $as_echo_n "(cached) " >&6
5432
else
5433
  if test -n "$LIPO"; then
5434
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5435
else
5436
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437
for as_dir in $PATH
5438
do
5439
  IFS=$as_save_IFS
5440
  test -z "$as_dir" && as_dir=.
5441
  for ac_exec_ext in '' $ac_executable_extensions; do
5442
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5443
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5444
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5445
    break 2
5446
  fi
5447
done
5448
done
5449
IFS=$as_save_IFS
5450
 
5451
fi
5452
fi
5453
LIPO=$ac_cv_prog_LIPO
5454
if test -n "$LIPO"; then
5455
  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
5456
$as_echo "$LIPO" >&6; }
5457
else
5458
  { $as_echo "$as_me:$LINENO: result: no" >&5
5459
$as_echo "no" >&6; }
5460
fi
5461
 
5462
 
5463
fi
5464
if test -z "$ac_cv_prog_LIPO"; then
5465
  ac_ct_LIPO=$LIPO
5466
  # Extract the first word of "lipo", so it can be a program name with args.
5467
set dummy lipo; ac_word=$2
5468
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5469
$as_echo_n "checking for $ac_word... " >&6; }
5470
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5471
  $as_echo_n "(cached) " >&6
5472
else
5473
  if test -n "$ac_ct_LIPO"; then
5474
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5475
else
5476
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477
for as_dir in $PATH
5478
do
5479
  IFS=$as_save_IFS
5480
  test -z "$as_dir" && as_dir=.
5481
  for ac_exec_ext in '' $ac_executable_extensions; do
5482
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5483
    ac_cv_prog_ac_ct_LIPO="lipo"
5484
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5485
    break 2
5486
  fi
5487
done
5488
done
5489
IFS=$as_save_IFS
5490
 
5491
fi
5492
fi
5493
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5494
if test -n "$ac_ct_LIPO"; then
5495
  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5496
$as_echo "$ac_ct_LIPO" >&6; }
5497
else
5498
  { $as_echo "$as_me:$LINENO: result: no" >&5
5499
$as_echo "no" >&6; }
5500
fi
5501
 
5502
  if test "x$ac_ct_LIPO" = x; then
5503
    LIPO=":"
5504
  else
5505
    case $cross_compiling:$ac_tool_warned in
5506
yes:)
5507
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5508
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5509
ac_tool_warned=yes ;;
5510
esac
5511
    LIPO=$ac_ct_LIPO
5512
  fi
5513
else
5514
  LIPO="$ac_cv_prog_LIPO"
5515
fi
5516
 
5517
    if test -n "$ac_tool_prefix"; then
5518
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5519
set dummy ${ac_tool_prefix}otool; ac_word=$2
5520
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5521
$as_echo_n "checking for $ac_word... " >&6; }
5522
if test "${ac_cv_prog_OTOOL+set}" = set; then
5523
  $as_echo_n "(cached) " >&6
5524
else
5525
  if test -n "$OTOOL"; then
5526
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5527
else
5528
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529
for as_dir in $PATH
5530
do
5531
  IFS=$as_save_IFS
5532
  test -z "$as_dir" && as_dir=.
5533
  for ac_exec_ext in '' $ac_executable_extensions; do
5534
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5535
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5536
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5537
    break 2
5538
  fi
5539
done
5540
done
5541
IFS=$as_save_IFS
5542
 
5543
fi
5544
fi
5545
OTOOL=$ac_cv_prog_OTOOL
5546
if test -n "$OTOOL"; then
5547
  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
5548
$as_echo "$OTOOL" >&6; }
5549
else
5550
  { $as_echo "$as_me:$LINENO: result: no" >&5
5551
$as_echo "no" >&6; }
5552
fi
5553
 
5554
 
5555
fi
5556
if test -z "$ac_cv_prog_OTOOL"; then
5557
  ac_ct_OTOOL=$OTOOL
5558
  # Extract the first word of "otool", so it can be a program name with args.
5559
set dummy otool; ac_word=$2
5560
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5561
$as_echo_n "checking for $ac_word... " >&6; }
5562
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5563
  $as_echo_n "(cached) " >&6
5564
else
5565
  if test -n "$ac_ct_OTOOL"; then
5566
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5567
else
5568
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569
for as_dir in $PATH
5570
do
5571
  IFS=$as_save_IFS
5572
  test -z "$as_dir" && as_dir=.
5573
  for ac_exec_ext in '' $ac_executable_extensions; do
5574
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5575
    ac_cv_prog_ac_ct_OTOOL="otool"
5576
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5577
    break 2
5578
  fi
5579
done
5580
done
5581
IFS=$as_save_IFS
5582
 
5583
fi
5584
fi
5585
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5586
if test -n "$ac_ct_OTOOL"; then
5587
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5588
$as_echo "$ac_ct_OTOOL" >&6; }
5589
else
5590
  { $as_echo "$as_me:$LINENO: result: no" >&5
5591
$as_echo "no" >&6; }
5592
fi
5593
 
5594
  if test "x$ac_ct_OTOOL" = x; then
5595
    OTOOL=":"
5596
  else
5597
    case $cross_compiling:$ac_tool_warned in
5598
yes:)
5599
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5600
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5601
ac_tool_warned=yes ;;
5602
esac
5603
    OTOOL=$ac_ct_OTOOL
5604
  fi
5605
else
5606
  OTOOL="$ac_cv_prog_OTOOL"
5607
fi
5608
 
5609
    if test -n "$ac_tool_prefix"; then
5610
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5611
set dummy ${ac_tool_prefix}otool64; ac_word=$2
5612
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5613
$as_echo_n "checking for $ac_word... " >&6; }
5614
if test "${ac_cv_prog_OTOOL64+set}" = set; then
5615
  $as_echo_n "(cached) " >&6
5616
else
5617
  if test -n "$OTOOL64"; then
5618
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5619
else
5620
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621
for as_dir in $PATH
5622
do
5623
  IFS=$as_save_IFS
5624
  test -z "$as_dir" && as_dir=.
5625
  for ac_exec_ext in '' $ac_executable_extensions; do
5626
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5627
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5628
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5629
    break 2
5630
  fi
5631
done
5632
done
5633
IFS=$as_save_IFS
5634
 
5635
fi
5636
fi
5637
OTOOL64=$ac_cv_prog_OTOOL64
5638
if test -n "$OTOOL64"; then
5639
  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
5640
$as_echo "$OTOOL64" >&6; }
5641
else
5642
  { $as_echo "$as_me:$LINENO: result: no" >&5
5643
$as_echo "no" >&6; }
5644
fi
5645
 
5646
 
5647
fi
5648
if test -z "$ac_cv_prog_OTOOL64"; then
5649
  ac_ct_OTOOL64=$OTOOL64
5650
  # Extract the first word of "otool64", so it can be a program name with args.
5651
set dummy otool64; ac_word=$2
5652
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5653
$as_echo_n "checking for $ac_word... " >&6; }
5654
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
5655
  $as_echo_n "(cached) " >&6
5656
else
5657
  if test -n "$ac_ct_OTOOL64"; then
5658
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5659
else
5660
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661
for as_dir in $PATH
5662
do
5663
  IFS=$as_save_IFS
5664
  test -z "$as_dir" && as_dir=.
5665
  for ac_exec_ext in '' $ac_executable_extensions; do
5666
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5667
    ac_cv_prog_ac_ct_OTOOL64="otool64"
5668
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5669
    break 2
5670
  fi
5671
done
5672
done
5673
IFS=$as_save_IFS
5674
 
5675
fi
5676
fi
5677
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5678
if test -n "$ac_ct_OTOOL64"; then
5679
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
5680
$as_echo "$ac_ct_OTOOL64" >&6; }
5681
else
5682
  { $as_echo "$as_me:$LINENO: result: no" >&5
5683
$as_echo "no" >&6; }
5684
fi
5685
 
5686
  if test "x$ac_ct_OTOOL64" = x; then
5687
    OTOOL64=":"
5688
  else
5689
    case $cross_compiling:$ac_tool_warned in
5690
yes:)
5691
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5692
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5693
ac_tool_warned=yes ;;
5694
esac
5695
    OTOOL64=$ac_ct_OTOOL64
5696
  fi
5697
else
5698
  OTOOL64="$ac_cv_prog_OTOOL64"
5699
fi
5700
 
5701
 
5702
 
5703
 
5704
 
5705
 
5706
 
5707
 
5708
 
5709
 
5710
 
5711
 
5712
 
5713
 
5714
 
5715
 
5716
 
5717
 
5718
 
5719
 
5720
 
5721
 
5722
 
5723
 
5724
 
5725
 
5726
 
5727
    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
5728
$as_echo_n "checking for -single_module linker flag... " >&6; }
5729
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
5730
  $as_echo_n "(cached) " >&6
5731
else
5732
  lt_cv_apple_cc_single_mod=no
5733
      if test -z "${LT_MULTI_MODULE}"; then
5734
        # By default we will add the -single_module flag. You can override
5735
        # by either setting the environment variable LT_MULTI_MODULE
5736
        # non-empty at configure time, or by adding -multi_module to the
5737
        # link flags.
5738
        rm -rf libconftest.dylib*
5739
        echo "int foo(void){return 1;}" > conftest.c
5740
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5741
-dynamiclib -Wl,-single_module conftest.c" >&5
5742
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5743
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5744
        _lt_result=$?
5745
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5746
          lt_cv_apple_cc_single_mod=yes
5747
        else
5748
          cat conftest.err >&5
5749
        fi
5750
        rm -rf libconftest.dylib*
5751
        rm -f conftest.*
5752
      fi
5753
fi
5754
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
5755
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5756
    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
5757
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5758
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
5759
  $as_echo_n "(cached) " >&6
5760
else
5761
  lt_cv_ld_exported_symbols_list=no
5762
      save_LDFLAGS=$LDFLAGS
5763
      echo "_main" > conftest.sym
5764
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5765
      cat >conftest.$ac_ext <<_ACEOF
5766
/* confdefs.h.  */
5767
_ACEOF
5768
cat confdefs.h >>conftest.$ac_ext
5769
cat >>conftest.$ac_ext <<_ACEOF
5770
/* end confdefs.h.  */
5771
 
5772
int
5773
main ()
5774
{
5775
 
5776
  ;
5777
  return 0;
5778
}
5779
_ACEOF
5780
rm -f conftest.$ac_objext conftest$ac_exeext
5781
if { (ac_try="$ac_link"
5782
case "(($ac_try" in
5783
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5784
  *) ac_try_echo=$ac_try;;
5785
esac
5786
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5787
$as_echo "$ac_try_echo") >&5
5788
  (eval "$ac_link") 2>conftest.er1
5789
  ac_status=$?
5790
  grep -v '^ *+' conftest.er1 >conftest.err
5791
  rm -f conftest.er1
5792
  cat conftest.err >&5
5793
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794
  (exit $ac_status); } && {
5795
         test -z "$ac_c_werror_flag" ||
5796
         test ! -s conftest.err
5797
       } && test -s conftest$ac_exeext && {
5798
         test "$cross_compiling" = yes ||
5799
         $as_test_x conftest$ac_exeext
5800
       }; then
5801
  lt_cv_ld_exported_symbols_list=yes
5802
else
5803
  $as_echo "$as_me: failed program was:" >&5
5804
sed 's/^/| /' conftest.$ac_ext >&5
5805
 
5806
        lt_cv_ld_exported_symbols_list=no
5807
fi
5808
 
5809
rm -rf conftest.dSYM
5810
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5811
      conftest$ac_exeext conftest.$ac_ext
5812
        LDFLAGS="$save_LDFLAGS"
5813
 
5814
fi
5815
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
5816
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5817
    case $host_os in
5818
    rhapsody* | darwin1.[012])
5819
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5820
    darwin1.*)
5821
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5822
    darwin*) # darwin 5.x on
5823
      # if running on 10.5 or later, the deployment target defaults
5824
      # to the OS version, if on x86, and 10.4, the deployment
5825
      # target defaults to 10.4. Don't you love it?
5826
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5827
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5828
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5829
        10.[012]*)
5830
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5831
        10.*)
5832
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5833
      esac
5834
    ;;
5835
  esac
5836
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5837
      _lt_dar_single_mod='$single_module'
5838
    fi
5839
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5840
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5841
    else
5842
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5843
    fi
5844
    if test "$DSYMUTIL" != ":"; then
5845
      _lt_dsymutil='~$DSYMUTIL $lib || :'
5846
    else
5847
      _lt_dsymutil=
5848
    fi
5849
    ;;
5850
  esac
5851
 
5852 19 jeremybenn
ac_ext=c
5853
ac_cpp='$CPP $CPPFLAGS'
5854
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5855
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5856
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5857 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5858
$as_echo_n "checking how to run the C preprocessor... " >&6; }
5859 19 jeremybenn
# On Suns, sometimes $CPP names a directory.
5860
if test -n "$CPP" && test -d "$CPP"; then
5861
  CPP=
5862
fi
5863
if test -z "$CPP"; then
5864
  if test "${ac_cv_prog_CPP+set}" = set; then
5865 82 jeremybenn
  $as_echo_n "(cached) " >&6
5866 19 jeremybenn
else
5867
      # Double quotes because CPP needs to be expanded
5868
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5869
    do
5870
      ac_preproc_ok=false
5871
for ac_c_preproc_warn_flag in '' yes
5872
do
5873
  # Use a header file that comes with gcc, so configuring glibc
5874
  # with a fresh cross-compiler works.
5875
  # Prefer  to  if __STDC__ is defined, since
5876
  #  exists even on freestanding compilers.
5877
  # On the NeXT, cc -E runs the code through the compiler's parser,
5878
  # not just through cpp. "Syntax error" is here to catch this case.
5879
  cat >conftest.$ac_ext <<_ACEOF
5880
/* confdefs.h.  */
5881
_ACEOF
5882
cat confdefs.h >>conftest.$ac_ext
5883
cat >>conftest.$ac_ext <<_ACEOF
5884
/* end confdefs.h.  */
5885
#ifdef __STDC__
5886
# include 
5887
#else
5888
# include 
5889
#endif
5890
                     Syntax error
5891
_ACEOF
5892
if { (ac_try="$ac_cpp conftest.$ac_ext"
5893
case "(($ac_try" in
5894
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895
  *) ac_try_echo=$ac_try;;
5896
esac
5897 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5898
$as_echo "$ac_try_echo") >&5
5899 19 jeremybenn
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5900
  ac_status=$?
5901
  grep -v '^ *+' conftest.er1 >conftest.err
5902
  rm -f conftest.er1
5903
  cat conftest.err >&5
5904 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 19 jeremybenn
  (exit $ac_status); } >/dev/null && {
5906
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5907
         test ! -s conftest.err
5908
       }; then
5909
  :
5910
else
5911 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
5912 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
5913
 
5914
  # Broken: fails on valid input.
5915
continue
5916
fi
5917
 
5918
rm -f conftest.err conftest.$ac_ext
5919
 
5920
  # OK, works on sane cases.  Now check whether nonexistent headers
5921
  # can be detected and how.
5922
  cat >conftest.$ac_ext <<_ACEOF
5923
/* confdefs.h.  */
5924
_ACEOF
5925
cat confdefs.h >>conftest.$ac_ext
5926
cat >>conftest.$ac_ext <<_ACEOF
5927
/* end confdefs.h.  */
5928
#include 
5929
_ACEOF
5930
if { (ac_try="$ac_cpp conftest.$ac_ext"
5931
case "(($ac_try" in
5932
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5933
  *) ac_try_echo=$ac_try;;
5934
esac
5935 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5936
$as_echo "$ac_try_echo") >&5
5937 19 jeremybenn
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5938
  ac_status=$?
5939
  grep -v '^ *+' conftest.er1 >conftest.err
5940
  rm -f conftest.er1
5941
  cat conftest.err >&5
5942 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 19 jeremybenn
  (exit $ac_status); } >/dev/null && {
5944
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5945
         test ! -s conftest.err
5946
       }; then
5947
  # Broken: success on invalid input.
5948
continue
5949
else
5950 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
5951 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
5952
 
5953
  # Passes both tests.
5954
ac_preproc_ok=:
5955
break
5956
fi
5957
 
5958
rm -f conftest.err conftest.$ac_ext
5959
 
5960
done
5961
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5962
rm -f conftest.err conftest.$ac_ext
5963
if $ac_preproc_ok; then
5964
  break
5965
fi
5966
 
5967
    done
5968
    ac_cv_prog_CPP=$CPP
5969
 
5970
fi
5971
  CPP=$ac_cv_prog_CPP
5972
else
5973
  ac_cv_prog_CPP=$CPP
5974
fi
5975 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
5976
$as_echo "$CPP" >&6; }
5977 19 jeremybenn
ac_preproc_ok=false
5978
for ac_c_preproc_warn_flag in '' yes
5979
do
5980
  # Use a header file that comes with gcc, so configuring glibc
5981
  # with a fresh cross-compiler works.
5982
  # Prefer  to  if __STDC__ is defined, since
5983
  #  exists even on freestanding compilers.
5984
  # On the NeXT, cc -E runs the code through the compiler's parser,
5985
  # not just through cpp. "Syntax error" is here to catch this case.
5986
  cat >conftest.$ac_ext <<_ACEOF
5987
/* confdefs.h.  */
5988
_ACEOF
5989
cat confdefs.h >>conftest.$ac_ext
5990
cat >>conftest.$ac_ext <<_ACEOF
5991
/* end confdefs.h.  */
5992
#ifdef __STDC__
5993
# include 
5994
#else
5995
# include 
5996
#endif
5997
                     Syntax error
5998
_ACEOF
5999
if { (ac_try="$ac_cpp conftest.$ac_ext"
6000
case "(($ac_try" in
6001
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002
  *) ac_try_echo=$ac_try;;
6003
esac
6004 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6005
$as_echo "$ac_try_echo") >&5
6006 19 jeremybenn
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6007
  ac_status=$?
6008
  grep -v '^ *+' conftest.er1 >conftest.err
6009
  rm -f conftest.er1
6010
  cat conftest.err >&5
6011 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 19 jeremybenn
  (exit $ac_status); } >/dev/null && {
6013
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6014
         test ! -s conftest.err
6015
       }; then
6016
  :
6017
else
6018 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
6019 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
6020
 
6021
  # Broken: fails on valid input.
6022
continue
6023
fi
6024
 
6025
rm -f conftest.err conftest.$ac_ext
6026
 
6027
  # OK, works on sane cases.  Now check whether nonexistent headers
6028
  # can be detected and how.
6029
  cat >conftest.$ac_ext <<_ACEOF
6030
/* confdefs.h.  */
6031
_ACEOF
6032
cat confdefs.h >>conftest.$ac_ext
6033
cat >>conftest.$ac_ext <<_ACEOF
6034
/* end confdefs.h.  */
6035
#include 
6036
_ACEOF
6037
if { (ac_try="$ac_cpp conftest.$ac_ext"
6038
case "(($ac_try" in
6039
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6040
  *) ac_try_echo=$ac_try;;
6041
esac
6042 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6043
$as_echo "$ac_try_echo") >&5
6044 19 jeremybenn
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6045
  ac_status=$?
6046
  grep -v '^ *+' conftest.er1 >conftest.err
6047
  rm -f conftest.er1
6048
  cat conftest.err >&5
6049 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 19 jeremybenn
  (exit $ac_status); } >/dev/null && {
6051
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6052
         test ! -s conftest.err
6053
       }; then
6054
  # Broken: success on invalid input.
6055
continue
6056
else
6057 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
6058 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
6059
 
6060
  # Passes both tests.
6061
ac_preproc_ok=:
6062
break
6063
fi
6064
 
6065
rm -f conftest.err conftest.$ac_ext
6066
 
6067
done
6068
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6069
rm -f conftest.err conftest.$ac_ext
6070
if $ac_preproc_ok; then
6071
  :
6072
else
6073 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6074
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6075
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6076 19 jeremybenn
See \`config.log' for more details." >&5
6077 82 jeremybenn
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6078 19 jeremybenn
See \`config.log' for more details." >&2;}
6079 82 jeremybenn
   { (exit 1); exit 1; }; }; }
6080 19 jeremybenn
fi
6081
 
6082
ac_ext=c
6083
ac_cpp='$CPP $CPPFLAGS'
6084
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6085
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6086
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6087
 
6088
 
6089 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6090
$as_echo_n "checking for ANSI C header files... " >&6; }
6091 19 jeremybenn
if test "${ac_cv_header_stdc+set}" = set; then
6092 82 jeremybenn
  $as_echo_n "(cached) " >&6
6093 19 jeremybenn
else
6094
  cat >conftest.$ac_ext <<_ACEOF
6095
/* confdefs.h.  */
6096
_ACEOF
6097
cat confdefs.h >>conftest.$ac_ext
6098
cat >>conftest.$ac_ext <<_ACEOF
6099
/* end confdefs.h.  */
6100
#include 
6101
#include 
6102
#include 
6103
#include 
6104
 
6105
int
6106
main ()
6107
{
6108
 
6109
  ;
6110
  return 0;
6111
}
6112
_ACEOF
6113
rm -f conftest.$ac_objext
6114
if { (ac_try="$ac_compile"
6115
case "(($ac_try" in
6116
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6117
  *) ac_try_echo=$ac_try;;
6118
esac
6119 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6120
$as_echo "$ac_try_echo") >&5
6121 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
6122
  ac_status=$?
6123
  grep -v '^ *+' conftest.er1 >conftest.err
6124
  rm -f conftest.er1
6125
  cat conftest.err >&5
6126 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 19 jeremybenn
  (exit $ac_status); } && {
6128
         test -z "$ac_c_werror_flag" ||
6129
         test ! -s conftest.err
6130
       } && test -s conftest.$ac_objext; then
6131
  ac_cv_header_stdc=yes
6132
else
6133 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
6134 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
6135
 
6136
        ac_cv_header_stdc=no
6137
fi
6138
 
6139
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6140
 
6141
if test $ac_cv_header_stdc = yes; then
6142
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6143
  cat >conftest.$ac_ext <<_ACEOF
6144
/* confdefs.h.  */
6145
_ACEOF
6146
cat confdefs.h >>conftest.$ac_ext
6147
cat >>conftest.$ac_ext <<_ACEOF
6148
/* end confdefs.h.  */
6149
#include 
6150
 
6151
_ACEOF
6152
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6153
  $EGREP "memchr" >/dev/null 2>&1; then
6154
  :
6155
else
6156
  ac_cv_header_stdc=no
6157
fi
6158
rm -f conftest*
6159
 
6160
fi
6161
 
6162
if test $ac_cv_header_stdc = yes; then
6163
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6164
  cat >conftest.$ac_ext <<_ACEOF
6165
/* confdefs.h.  */
6166
_ACEOF
6167
cat confdefs.h >>conftest.$ac_ext
6168
cat >>conftest.$ac_ext <<_ACEOF
6169
/* end confdefs.h.  */
6170
#include 
6171
 
6172
_ACEOF
6173
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6174
  $EGREP "free" >/dev/null 2>&1; then
6175
  :
6176
else
6177
  ac_cv_header_stdc=no
6178
fi
6179
rm -f conftest*
6180
 
6181
fi
6182
 
6183
if test $ac_cv_header_stdc = yes; then
6184
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6185
  if test "$cross_compiling" = yes; then
6186
  :
6187
else
6188
  cat >conftest.$ac_ext <<_ACEOF
6189
/* confdefs.h.  */
6190
_ACEOF
6191
cat confdefs.h >>conftest.$ac_ext
6192
cat >>conftest.$ac_ext <<_ACEOF
6193
/* end confdefs.h.  */
6194
#include 
6195
#include 
6196
#if ((' ' & 0x0FF) == 0x020)
6197
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6198
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6199
#else
6200
# define ISLOWER(c) \
6201
                   (('a' <= (c) && (c) <= 'i') \
6202
                     || ('j' <= (c) && (c) <= 'r') \
6203
                     || ('s' <= (c) && (c) <= 'z'))
6204
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6205
#endif
6206
 
6207
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6208
int
6209
main ()
6210
{
6211
  int i;
6212
  for (i = 0; i < 256; i++)
6213
    if (XOR (islower (i), ISLOWER (i))
6214
        || toupper (i) != TOUPPER (i))
6215
      return 2;
6216
  return 0;
6217
}
6218
_ACEOF
6219
rm -f conftest$ac_exeext
6220
if { (ac_try="$ac_link"
6221
case "(($ac_try" in
6222
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6223
  *) ac_try_echo=$ac_try;;
6224
esac
6225 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6226
$as_echo "$ac_try_echo") >&5
6227 19 jeremybenn
  (eval "$ac_link") 2>&5
6228
  ac_status=$?
6229 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 19 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6231
  { (case "(($ac_try" in
6232
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6233
  *) ac_try_echo=$ac_try;;
6234
esac
6235 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6236
$as_echo "$ac_try_echo") >&5
6237 19 jeremybenn
  (eval "$ac_try") 2>&5
6238
  ac_status=$?
6239 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 19 jeremybenn
  (exit $ac_status); }; }; then
6241
  :
6242
else
6243 82 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
6244
$as_echo "$as_me: failed program was:" >&5
6245 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
6246
 
6247
( exit $ac_status )
6248
ac_cv_header_stdc=no
6249
fi
6250 82 jeremybenn
rm -rf conftest.dSYM
6251 19 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6252
fi
6253
 
6254
 
6255
fi
6256
fi
6257 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6258
$as_echo "$ac_cv_header_stdc" >&6; }
6259 19 jeremybenn
if test $ac_cv_header_stdc = yes; then
6260
 
6261
cat >>confdefs.h <<\_ACEOF
6262
#define STDC_HEADERS 1
6263
_ACEOF
6264
 
6265
fi
6266
 
6267
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6268
 
6269
 
6270
 
6271
 
6272
 
6273
 
6274
 
6275
 
6276
 
6277
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6278
                  inttypes.h stdint.h unistd.h
6279
do
6280 82 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6281
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6282
$as_echo_n "checking for $ac_header... " >&6; }
6283 19 jeremybenn
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6284 82 jeremybenn
  $as_echo_n "(cached) " >&6
6285 19 jeremybenn
else
6286
  cat >conftest.$ac_ext <<_ACEOF
6287
/* confdefs.h.  */
6288
_ACEOF
6289
cat confdefs.h >>conftest.$ac_ext
6290
cat >>conftest.$ac_ext <<_ACEOF
6291
/* end confdefs.h.  */
6292
$ac_includes_default
6293
 
6294
#include <$ac_header>
6295
_ACEOF
6296
rm -f conftest.$ac_objext
6297
if { (ac_try="$ac_compile"
6298
case "(($ac_try" in
6299
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6300
  *) ac_try_echo=$ac_try;;
6301
esac
6302 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6303
$as_echo "$ac_try_echo") >&5
6304 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
6305
  ac_status=$?
6306
  grep -v '^ *+' conftest.er1 >conftest.err
6307
  rm -f conftest.er1
6308
  cat conftest.err >&5
6309 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 19 jeremybenn
  (exit $ac_status); } && {
6311
         test -z "$ac_c_werror_flag" ||
6312
         test ! -s conftest.err
6313
       } && test -s conftest.$ac_objext; then
6314
  eval "$as_ac_Header=yes"
6315
else
6316 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
6317 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
6318
 
6319
        eval "$as_ac_Header=no"
6320
fi
6321
 
6322
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6323
fi
6324 82 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
6325
                 $as_echo "$as_val"'`
6326
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6327
$as_echo "$ac_res" >&6; }
6328
as_val=`eval 'as_val=${'$as_ac_Header'}
6329
                 $as_echo "$as_val"'`
6330
   if test "x$as_val" = x""yes; then
6331 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
6332 82 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6333 19 jeremybenn
_ACEOF
6334
 
6335
fi
6336
 
6337
done
6338
 
6339
 
6340
 
6341
for ac_header in dlfcn.h
6342
do
6343 82 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6344
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6345
$as_echo_n "checking for $ac_header... " >&6; }
6346 19 jeremybenn
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6347 82 jeremybenn
  $as_echo_n "(cached) " >&6
6348 19 jeremybenn
else
6349 82 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
6350 19 jeremybenn
/* confdefs.h.  */
6351
_ACEOF
6352
cat confdefs.h >>conftest.$ac_ext
6353
cat >>conftest.$ac_ext <<_ACEOF
6354
/* end confdefs.h.  */
6355
$ac_includes_default
6356 82 jeremybenn
 
6357 19 jeremybenn
#include <$ac_header>
6358
_ACEOF
6359
rm -f conftest.$ac_objext
6360
if { (ac_try="$ac_compile"
6361
case "(($ac_try" in
6362
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6363
  *) ac_try_echo=$ac_try;;
6364
esac
6365 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6366
$as_echo "$ac_try_echo") >&5
6367 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
6368
  ac_status=$?
6369
  grep -v '^ *+' conftest.er1 >conftest.err
6370
  rm -f conftest.er1
6371
  cat conftest.err >&5
6372 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 19 jeremybenn
  (exit $ac_status); } && {
6374
         test -z "$ac_c_werror_flag" ||
6375
         test ! -s conftest.err
6376
       } && test -s conftest.$ac_objext; then
6377 82 jeremybenn
  eval "$as_ac_Header=yes"
6378 19 jeremybenn
else
6379 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
6380 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
6381
 
6382 82 jeremybenn
        eval "$as_ac_Header=no"
6383 19 jeremybenn
fi
6384
 
6385
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6386
fi
6387 82 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
6388
                 $as_echo "$as_val"'`
6389
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6390
$as_echo "$ac_res" >&6; }
6391
as_val=`eval 'as_val=${'$as_ac_Header'}
6392
                 $as_echo "$as_val"'`
6393
   if test "x$as_val" = x""yes; then
6394 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
6395 82 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6396 19 jeremybenn
_ACEOF
6397
 
6398
fi
6399
 
6400
done
6401
 
6402
 
6403
 
6404 82 jeremybenn
# Set options
6405 19 jeremybenn
 
6406
 
6407
 
6408 82 jeremybenn
        enable_dlopen=no
6409 19 jeremybenn
 
6410
 
6411 82 jeremybenn
  enable_win32_dll=no
6412 19 jeremybenn
 
6413
 
6414 82 jeremybenn
            # Check whether --enable-shared was given.
6415
if test "${enable_shared+set}" = set; then
6416
  enableval=$enable_shared; p=${PACKAGE-default}
6417
    case $enableval in
6418
    yes) enable_shared=yes ;;
6419
    no) enable_shared=no ;;
6420
    *)
6421
      enable_shared=no
6422
      # Look at the argument we got.  We use all the common list separators.
6423
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6424
      for pkg in $enableval; do
6425
        IFS="$lt_save_ifs"
6426
        if test "X$pkg" = "X$p"; then
6427
          enable_shared=yes
6428
        fi
6429
      done
6430
      IFS="$lt_save_ifs"
6431
      ;;
6432
    esac
6433 19 jeremybenn
else
6434 82 jeremybenn
  enable_shared=yes
6435 19 jeremybenn
fi
6436
 
6437
 
6438
 
6439
 
6440
 
6441
 
6442
 
6443
 
6444
 
6445 82 jeremybenn
  # Check whether --enable-static was given.
6446
if test "${enable_static+set}" = set; then
6447
  enableval=$enable_static; p=${PACKAGE-default}
6448
    case $enableval in
6449
    yes) enable_static=yes ;;
6450
    no) enable_static=no ;;
6451
    *)
6452
     enable_static=no
6453
      # Look at the argument we got.  We use all the common list separators.
6454
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6455
      for pkg in $enableval; do
6456
        IFS="$lt_save_ifs"
6457
        if test "X$pkg" = "X$p"; then
6458
          enable_static=yes
6459
        fi
6460
      done
6461
      IFS="$lt_save_ifs"
6462
      ;;
6463
    esac
6464 19 jeremybenn
else
6465 82 jeremybenn
  enable_static=yes
6466 19 jeremybenn
fi
6467
 
6468
 
6469
 
6470
 
6471
 
6472
 
6473
 
6474
 
6475
 
6476
 
6477 82 jeremybenn
# Check whether --with-pic was given.
6478
if test "${with_pic+set}" = set; then
6479
  withval=$with_pic; pic_mode="$withval"
6480 19 jeremybenn
else
6481 82 jeremybenn
  pic_mode=default
6482 19 jeremybenn
fi
6483
 
6484
 
6485 82 jeremybenn
test -z "$pic_mode" && pic_mode=default
6486 19 jeremybenn
 
6487
 
6488
 
6489
 
6490
 
6491
 
6492
 
6493 82 jeremybenn
  # Check whether --enable-fast-install was given.
6494
if test "${enable_fast_install+set}" = set; then
6495
  enableval=$enable_fast_install; p=${PACKAGE-default}
6496
    case $enableval in
6497
    yes) enable_fast_install=yes ;;
6498
    no) enable_fast_install=no ;;
6499
    *)
6500
      enable_fast_install=no
6501
      # Look at the argument we got.  We use all the common list separators.
6502
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6503
      for pkg in $enableval; do
6504
        IFS="$lt_save_ifs"
6505
        if test "X$pkg" = "X$p"; then
6506
          enable_fast_install=yes
6507
        fi
6508
      done
6509
      IFS="$lt_save_ifs"
6510
      ;;
6511
    esac
6512 19 jeremybenn
else
6513 82 jeremybenn
  enable_fast_install=yes
6514 19 jeremybenn
fi
6515
 
6516
 
6517
 
6518
 
6519
 
6520
 
6521
 
6522
 
6523
 
6524
 
6525
 
6526 82 jeremybenn
# This can be used to rebuild libtool when needed
6527
LIBTOOL_DEPS="$ltmain"
6528 19 jeremybenn
 
6529 82 jeremybenn
# Always use our own libtool.
6530
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6531 19 jeremybenn
 
6532
 
6533
 
6534
 
6535
 
6536
 
6537
 
6538
 
6539
 
6540
 
6541
 
6542
 
6543
 
6544
 
6545
 
6546
 
6547
 
6548
 
6549
 
6550
 
6551
 
6552
 
6553
 
6554
 
6555
 
6556 82 jeremybenn
test -z "$LN_S" && LN_S="ln -s"
6557 19 jeremybenn
 
6558
 
6559
 
6560
 
6561
 
6562
 
6563
 
6564
 
6565
 
6566
 
6567
 
6568
 
6569
 
6570
 
6571 82 jeremybenn
if test -n "${ZSH_VERSION+set}" ; then
6572
   setopt NO_GLOB_SUBST
6573 19 jeremybenn
fi
6574
 
6575 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6576
$as_echo_n "checking for objdir... " >&6; }
6577 19 jeremybenn
if test "${lt_cv_objdir+set}" = set; then
6578 82 jeremybenn
  $as_echo_n "(cached) " >&6
6579 19 jeremybenn
else
6580
  rm -f .libs 2>/dev/null
6581
mkdir .libs 2>/dev/null
6582
if test -d .libs; then
6583
  lt_cv_objdir=.libs
6584
else
6585
  # MS-DOS does not allow filenames that begin with a dot.
6586
  lt_cv_objdir=_libs
6587
fi
6588
rmdir .libs 2>/dev/null
6589
fi
6590 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6591
$as_echo "$lt_cv_objdir" >&6; }
6592 19 jeremybenn
objdir=$lt_cv_objdir
6593
 
6594
 
6595
 
6596
 
6597
 
6598 82 jeremybenn
cat >>confdefs.h <<_ACEOF
6599
#define LT_OBJDIR "$lt_cv_objdir/"
6600
_ACEOF
6601
 
6602
 
6603
 
6604
 
6605
 
6606
 
6607
 
6608
 
6609
 
6610
 
6611
 
6612
 
6613
 
6614
 
6615
 
6616
 
6617
 
6618 19 jeremybenn
case $host_os in
6619
aix3*)
6620
  # AIX sometimes has problems with the GCC collect2 program.  For some
6621
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6622
  # vanish in a puff of smoke.
6623
  if test "X${COLLECT_NAMES+set}" != Xset; then
6624
    COLLECT_NAMES=
6625
    export COLLECT_NAMES
6626
  fi
6627
  ;;
6628
esac
6629
 
6630
# Sed substitution that helps us do robust quoting.  It backslashifies
6631
# metacharacters that are still active within double-quoted strings.
6632 82 jeremybenn
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6633 19 jeremybenn
 
6634
# Same as above, but do not quote variable references.
6635 82 jeremybenn
double_quote_subst='s/\(["`\\]\)/\\\1/g'
6636 19 jeremybenn
 
6637
# Sed substitution to delay expansion of an escaped shell variable in a
6638
# double_quote_subst'ed string.
6639
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6640
 
6641 82 jeremybenn
# Sed substitution to delay expansion of an escaped single quote.
6642
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6643
 
6644 19 jeremybenn
# Sed substitution to avoid accidental globbing in evaled expressions
6645
no_glob_subst='s/\*/\\\*/g'
6646
 
6647
# Global variables:
6648 82 jeremybenn
ofile=libtool
6649 19 jeremybenn
can_build_shared=yes
6650
 
6651
# All known linkers require a `.a' archive for static linking (except MSVC,
6652
# which needs '.lib').
6653
libext=a
6654 82 jeremybenn
 
6655 19 jeremybenn
with_gnu_ld="$lt_cv_prog_gnu_ld"
6656
 
6657
old_CC="$CC"
6658
old_CFLAGS="$CFLAGS"
6659
 
6660
# Set sane defaults for various variables
6661
test -z "$CC" && CC=cc
6662
test -z "$LTCC" && LTCC=$CC
6663
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6664
test -z "$LD" && LD=ld
6665
test -z "$ac_objext" && ac_objext=o
6666
 
6667
for cc_temp in $compiler""; do
6668
  case $cc_temp in
6669
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6670
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6671
    \-*) ;;
6672
    *) break;;
6673
  esac
6674
done
6675 82 jeremybenn
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6676 19 jeremybenn
 
6677
 
6678
# Only perform the check for file, if the check method requires it
6679 82 jeremybenn
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6680 19 jeremybenn
case $deplibs_check_method in
6681
file_magic*)
6682
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6683 82 jeremybenn
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6684
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6685 19 jeremybenn
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6686 82 jeremybenn
  $as_echo_n "(cached) " >&6
6687 19 jeremybenn
else
6688
  case $MAGIC_CMD in
6689
[\\/*] |  ?:[\\/]*)
6690
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6691
  ;;
6692
*)
6693
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6694
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6695
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6696
  for ac_dir in $ac_dummy; do
6697
    IFS="$lt_save_ifs"
6698
    test -z "$ac_dir" && ac_dir=.
6699
    if test -f $ac_dir/${ac_tool_prefix}file; then
6700
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6701
      if test -n "$file_magic_test_file"; then
6702
        case $deplibs_check_method in
6703
        "file_magic "*)
6704
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6705
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6706
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6707
            $EGREP "$file_magic_regex" > /dev/null; then
6708
            :
6709
          else
6710 82 jeremybenn
            cat <<_LT_EOF 1>&2
6711 19 jeremybenn
 
6712
*** Warning: the command libtool uses to detect shared libraries,
6713
*** $file_magic_cmd, produces output that libtool cannot recognize.
6714
*** The result is that libtool may fail to recognize shared libraries
6715
*** as such.  This will affect the creation of libtool libraries that
6716
*** depend on shared libraries, but programs linked with such libtool
6717
*** libraries will work regardless of this problem.  Nevertheless, you
6718
*** may want to report the problem to your system manager and/or to
6719
*** bug-libtool@gnu.org
6720
 
6721 82 jeremybenn
_LT_EOF
6722 19 jeremybenn
          fi ;;
6723
        esac
6724
      fi
6725
      break
6726
    fi
6727
  done
6728
  IFS="$lt_save_ifs"
6729
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6730
  ;;
6731
esac
6732
fi
6733
 
6734
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6735
if test -n "$MAGIC_CMD"; then
6736 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6737
$as_echo "$MAGIC_CMD" >&6; }
6738 19 jeremybenn
else
6739 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6740
$as_echo "no" >&6; }
6741 19 jeremybenn
fi
6742
 
6743 82 jeremybenn
 
6744
 
6745
 
6746
 
6747 19 jeremybenn
if test -z "$lt_cv_path_MAGIC_CMD"; then
6748
  if test -n "$ac_tool_prefix"; then
6749 82 jeremybenn
    { $as_echo "$as_me:$LINENO: checking for file" >&5
6750
$as_echo_n "checking for file... " >&6; }
6751 19 jeremybenn
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6752 82 jeremybenn
  $as_echo_n "(cached) " >&6
6753 19 jeremybenn
else
6754
  case $MAGIC_CMD in
6755
[\\/*] |  ?:[\\/]*)
6756
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6757
  ;;
6758
*)
6759
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6760
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6761
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6762
  for ac_dir in $ac_dummy; do
6763
    IFS="$lt_save_ifs"
6764
    test -z "$ac_dir" && ac_dir=.
6765
    if test -f $ac_dir/file; then
6766
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6767
      if test -n "$file_magic_test_file"; then
6768
        case $deplibs_check_method in
6769
        "file_magic "*)
6770
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6771
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6772
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6773
            $EGREP "$file_magic_regex" > /dev/null; then
6774
            :
6775
          else
6776 82 jeremybenn
            cat <<_LT_EOF 1>&2
6777 19 jeremybenn
 
6778
*** Warning: the command libtool uses to detect shared libraries,
6779
*** $file_magic_cmd, produces output that libtool cannot recognize.
6780
*** The result is that libtool may fail to recognize shared libraries
6781
*** as such.  This will affect the creation of libtool libraries that
6782
*** depend on shared libraries, but programs linked with such libtool
6783
*** libraries will work regardless of this problem.  Nevertheless, you
6784
*** may want to report the problem to your system manager and/or to
6785
*** bug-libtool@gnu.org
6786
 
6787 82 jeremybenn
_LT_EOF
6788 19 jeremybenn
          fi ;;
6789
        esac
6790
      fi
6791
      break
6792
    fi
6793
  done
6794
  IFS="$lt_save_ifs"
6795
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6796
  ;;
6797
esac
6798
fi
6799
 
6800
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6801
if test -n "$MAGIC_CMD"; then
6802 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6803
$as_echo "$MAGIC_CMD" >&6; }
6804 19 jeremybenn
else
6805 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6806
$as_echo "no" >&6; }
6807 19 jeremybenn
fi
6808
 
6809 82 jeremybenn
 
6810 19 jeremybenn
  else
6811
    MAGIC_CMD=:
6812
  fi
6813
fi
6814
 
6815
  fi
6816
  ;;
6817
esac
6818
 
6819 82 jeremybenn
# Use C for the default configuration in the libtool script
6820 19 jeremybenn
 
6821
lt_save_CC="$CC"
6822
ac_ext=c
6823
ac_cpp='$CPP $CPPFLAGS'
6824
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6825
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6826
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6827
 
6828
 
6829
# Source file extension for C test sources.
6830
ac_ext=c
6831
 
6832
# Object file extension for compiled C test sources.
6833
objext=o
6834
objext=$objext
6835
 
6836
# Code to be used in simple compile tests
6837
lt_simple_compile_test_code="int some_variable = 0;"
6838
 
6839
# Code to be used in simple link tests
6840
lt_simple_link_test_code='int main(){return(0);}'
6841
 
6842
 
6843 82 jeremybenn
 
6844
 
6845
 
6846
 
6847
 
6848 19 jeremybenn
# If no C compiler was specified, use CC.
6849
LTCC=${LTCC-"$CC"}
6850
 
6851
# If no C compiler flags were specified, use CFLAGS.
6852
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6853
 
6854
# Allow CC to be a program name with arguments.
6855
compiler=$CC
6856
 
6857 82 jeremybenn
# Save the default compiler, since it gets overwritten when the other
6858
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6859
compiler_DEFAULT=$CC
6860 19 jeremybenn
 
6861
# save warnings/boilerplate of simple test code
6862
ac_outfile=conftest.$ac_objext
6863
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6864
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6865
_lt_compiler_boilerplate=`cat conftest.err`
6866 82 jeremybenn
$RM conftest*
6867 19 jeremybenn
 
6868
ac_outfile=conftest.$ac_objext
6869
echo "$lt_simple_link_test_code" >conftest.$ac_ext
6870
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6871
_lt_linker_boilerplate=`cat conftest.err`
6872 82 jeremybenn
$RM -r conftest*
6873 19 jeremybenn
 
6874
 
6875 82 jeremybenn
## CAVEAT EMPTOR:
6876
## There is no encapsulation within the following macros, do not change
6877
## the running order or otherwise move them around unless you know exactly
6878
## what you are doing...
6879
if test -n "$compiler"; then
6880 19 jeremybenn
 
6881
lt_prog_compiler_no_builtin_flag=
6882
 
6883
if test "$GCC" = yes; then
6884
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6885
 
6886 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6887
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6888 19 jeremybenn
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6889 82 jeremybenn
  $as_echo_n "(cached) " >&6
6890 19 jeremybenn
else
6891
  lt_cv_prog_compiler_rtti_exceptions=no
6892 82 jeremybenn
   ac_outfile=conftest.$ac_objext
6893 19 jeremybenn
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6894
   lt_compiler_flag="-fno-rtti -fno-exceptions"
6895
   # Insert the option either (1) after the last *FLAGS variable, or
6896
   # (2) before a word containing "conftest.", or (3) at the end.
6897
   # Note that $ac_compile itself does not contain backslashes and begins
6898
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6899
   # The option is referenced via a variable to avoid confusing sed.
6900
   lt_compile=`echo "$ac_compile" | $SED \
6901
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6902
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6903
   -e 's:$: $lt_compiler_flag:'`
6904 90 jeremybenn
   (eval echo "\"\$as_me:6904: $lt_compile\"" >&5)
6905 19 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
6906
   ac_status=$?
6907
   cat conftest.err >&5
6908 90 jeremybenn
   echo "$as_me:6908: \$? = $ac_status" >&5
6909 19 jeremybenn
   if (exit $ac_status) && test -s "$ac_outfile"; then
6910
     # The compiler can only warn and ignore the option if not recognized
6911
     # So say no if there are warnings other than the usual output.
6912 82 jeremybenn
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6913 19 jeremybenn
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6914
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6915
       lt_cv_prog_compiler_rtti_exceptions=yes
6916
     fi
6917
   fi
6918 82 jeremybenn
   $RM conftest*
6919 19 jeremybenn
 
6920
fi
6921 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6922
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6923 19 jeremybenn
 
6924
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6925
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6926
else
6927
    :
6928
fi
6929
 
6930
fi
6931
 
6932 82 jeremybenn
 
6933
 
6934
 
6935
 
6936
 
6937
  lt_prog_compiler_wl=
6938 19 jeremybenn
lt_prog_compiler_pic=
6939
lt_prog_compiler_static=
6940
 
6941 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6942
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6943 19 jeremybenn
 
6944
  if test "$GCC" = yes; then
6945
    lt_prog_compiler_wl='-Wl,'
6946
    lt_prog_compiler_static='-static'
6947
 
6948
    case $host_os in
6949
      aix*)
6950
      # All AIX code is PIC.
6951
      if test "$host_cpu" = ia64; then
6952
        # AIX 5 now supports IA64 processor
6953
        lt_prog_compiler_static='-Bstatic'
6954
      fi
6955
      ;;
6956
 
6957
    amigaos*)
6958 82 jeremybenn
      case $host_cpu in
6959
      powerpc)
6960
            # see comment about AmigaOS4 .so support
6961
            lt_prog_compiler_pic='-fPIC'
6962
        ;;
6963
      m68k)
6964
            # FIXME: we need at least 68020 code to build shared libraries, but
6965
            # adding the `-m68020' flag to GCC prevents building anything better,
6966
            # like `-m68040'.
6967
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6968
        ;;
6969
      esac
6970 19 jeremybenn
      ;;
6971
 
6972
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6973
      # PIC is the default for these OSes.
6974
      ;;
6975
 
6976 82 jeremybenn
    mingw* | cygwin* | pw32* | os2* | cegcc*)
6977 19 jeremybenn
      # This hack is so that the source file can tell whether it is being
6978
      # built for inclusion in a dll (and should export symbols for example).
6979
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
6980
      # (--disable-auto-import) libraries
6981
      lt_prog_compiler_pic='-DDLL_EXPORT'
6982
      ;;
6983
 
6984
    darwin* | rhapsody*)
6985
      # PIC is the default on this platform
6986
      # Common symbols not allowed in MH_DYLIB files
6987
      lt_prog_compiler_pic='-fno-common'
6988
      ;;
6989
 
6990 82 jeremybenn
    hpux*)
6991
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6992
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
6993
      # sets the default TLS model and affects inlining.
6994
      case $host_cpu in
6995
      hppa*64*)
6996
        # +Z the default
6997
        ;;
6998
      *)
6999
        lt_prog_compiler_pic='-fPIC'
7000
        ;;
7001
      esac
7002
      ;;
7003
 
7004 19 jeremybenn
    interix[3-9]*)
7005
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7006
      # Instead, we relocate shared libraries at runtime.
7007
      ;;
7008
 
7009
    msdosdjgpp*)
7010
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7011
      # on systems that don't support them.
7012
      lt_prog_compiler_can_build_shared=no
7013
      enable_shared=no
7014
      ;;
7015
 
7016 82 jeremybenn
    *nto* | *qnx*)
7017
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7018
      # it will coredump.
7019
      lt_prog_compiler_pic='-fPIC -shared'
7020
      ;;
7021
 
7022 19 jeremybenn
    sysv4*MP*)
7023
      if test -d /usr/nec; then
7024
        lt_prog_compiler_pic=-Kconform_pic
7025
      fi
7026
      ;;
7027
 
7028
    *)
7029
      lt_prog_compiler_pic='-fPIC'
7030
      ;;
7031
    esac
7032
  else
7033
    # PORTME Check for flag to pass linker flags through the system compiler.
7034
    case $host_os in
7035
    aix*)
7036
      lt_prog_compiler_wl='-Wl,'
7037
      if test "$host_cpu" = ia64; then
7038
        # AIX 5 now supports IA64 processor
7039
        lt_prog_compiler_static='-Bstatic'
7040
      else
7041
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7042
      fi
7043
      ;;
7044
 
7045 82 jeremybenn
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7046 19 jeremybenn
      # This hack is so that the source file can tell whether it is being
7047
      # built for inclusion in a dll (and should export symbols for example).
7048
      lt_prog_compiler_pic='-DDLL_EXPORT'
7049
      ;;
7050
 
7051
    hpux9* | hpux10* | hpux11*)
7052
      lt_prog_compiler_wl='-Wl,'
7053
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7054
      # not for PA HP-UX.
7055
      case $host_cpu in
7056
      hppa*64*|ia64*)
7057
        # +Z the default
7058
        ;;
7059
      *)
7060
        lt_prog_compiler_pic='+Z'
7061
        ;;
7062
      esac
7063
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7064
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7065
      ;;
7066
 
7067
    irix5* | irix6* | nonstopux*)
7068
      lt_prog_compiler_wl='-Wl,'
7069
      # PIC (with -KPIC) is the default.
7070
      lt_prog_compiler_static='-non_shared'
7071
      ;;
7072
 
7073
    linux* | k*bsd*-gnu)
7074
      case $cc_basename in
7075 82 jeremybenn
      # old Intel for x86_64 which still supported -KPIC.
7076
      ecc*)
7077 19 jeremybenn
        lt_prog_compiler_wl='-Wl,'
7078
        lt_prog_compiler_pic='-KPIC'
7079
        lt_prog_compiler_static='-static'
7080
        ;;
7081 82 jeremybenn
      # icc used to be incompatible with GCC.
7082
      # ICC 10 doesn't accept -KPIC any more.
7083
      icc* | ifort*)
7084
        lt_prog_compiler_wl='-Wl,'
7085
        lt_prog_compiler_pic='-fPIC'
7086
        lt_prog_compiler_static='-static'
7087
        ;;
7088
      # Lahey Fortran 8.1.
7089
      lf95*)
7090
        lt_prog_compiler_wl='-Wl,'
7091
        lt_prog_compiler_pic='--shared'
7092
        lt_prog_compiler_static='--static'
7093
        ;;
7094 19 jeremybenn
      pgcc* | pgf77* | pgf90* | pgf95*)
7095
        # Portland Group compilers (*not* the Pentium gcc compiler,
7096
        # which looks to be a dead project)
7097
        lt_prog_compiler_wl='-Wl,'
7098
        lt_prog_compiler_pic='-fpic'
7099
        lt_prog_compiler_static='-Bstatic'
7100
        ;;
7101
      ccc*)
7102
        lt_prog_compiler_wl='-Wl,'
7103
        # All Alpha code is PIC.
7104
        lt_prog_compiler_static='-non_shared'
7105
        ;;
7106 82 jeremybenn
      xl*)
7107
        # IBM XL C 8.0/Fortran 10.1 on PPC
7108
        lt_prog_compiler_wl='-Wl,'
7109
        lt_prog_compiler_pic='-qpic'
7110
        lt_prog_compiler_static='-qstaticlink'
7111
        ;;
7112 19 jeremybenn
      *)
7113 82 jeremybenn
        case `$CC -V 2>&1 | sed 5q` in
7114 19 jeremybenn
        *Sun\ C*)
7115
          # Sun C 5.9
7116
          lt_prog_compiler_pic='-KPIC'
7117
          lt_prog_compiler_static='-Bstatic'
7118
          lt_prog_compiler_wl='-Wl,'
7119
          ;;
7120
        *Sun\ F*)
7121
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7122
          lt_prog_compiler_pic='-KPIC'
7123
          lt_prog_compiler_static='-Bstatic'
7124
          lt_prog_compiler_wl=''
7125
          ;;
7126
        esac
7127
        ;;
7128
      esac
7129
      ;;
7130
 
7131 82 jeremybenn
    newsos6)
7132
      lt_prog_compiler_pic='-KPIC'
7133
      lt_prog_compiler_static='-Bstatic'
7134
      ;;
7135
 
7136
    *nto* | *qnx*)
7137
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7138
      # it will coredump.
7139
      lt_prog_compiler_pic='-fPIC -shared'
7140
      ;;
7141
 
7142 19 jeremybenn
    osf3* | osf4* | osf5*)
7143
      lt_prog_compiler_wl='-Wl,'
7144
      # All OSF/1 code is PIC.
7145
      lt_prog_compiler_static='-non_shared'
7146
      ;;
7147
 
7148
    rdos*)
7149
      lt_prog_compiler_static='-non_shared'
7150
      ;;
7151
 
7152
    solaris*)
7153
      lt_prog_compiler_pic='-KPIC'
7154
      lt_prog_compiler_static='-Bstatic'
7155
      case $cc_basename in
7156
      f77* | f90* | f95*)
7157
        lt_prog_compiler_wl='-Qoption ld ';;
7158
      *)
7159
        lt_prog_compiler_wl='-Wl,';;
7160
      esac
7161
      ;;
7162
 
7163
    sunos4*)
7164
      lt_prog_compiler_wl='-Qoption ld '
7165
      lt_prog_compiler_pic='-PIC'
7166
      lt_prog_compiler_static='-Bstatic'
7167
      ;;
7168
 
7169
    sysv4 | sysv4.2uw2* | sysv4.3*)
7170
      lt_prog_compiler_wl='-Wl,'
7171
      lt_prog_compiler_pic='-KPIC'
7172
      lt_prog_compiler_static='-Bstatic'
7173
      ;;
7174
 
7175
    sysv4*MP*)
7176
      if test -d /usr/nec ;then
7177
        lt_prog_compiler_pic='-Kconform_pic'
7178
        lt_prog_compiler_static='-Bstatic'
7179
      fi
7180
      ;;
7181
 
7182
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7183
      lt_prog_compiler_wl='-Wl,'
7184
      lt_prog_compiler_pic='-KPIC'
7185
      lt_prog_compiler_static='-Bstatic'
7186
      ;;
7187
 
7188
    unicos*)
7189
      lt_prog_compiler_wl='-Wl,'
7190
      lt_prog_compiler_can_build_shared=no
7191
      ;;
7192
 
7193
    uts4*)
7194
      lt_prog_compiler_pic='-pic'
7195
      lt_prog_compiler_static='-Bstatic'
7196
      ;;
7197
 
7198
    *)
7199
      lt_prog_compiler_can_build_shared=no
7200
      ;;
7201
    esac
7202
  fi
7203
 
7204 82 jeremybenn
case $host_os in
7205
  # For platforms which do not support PIC, -DPIC is meaningless:
7206
  *djgpp*)
7207
    lt_prog_compiler_pic=
7208
    ;;
7209
  *)
7210
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7211
    ;;
7212
esac
7213
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7214
$as_echo "$lt_prog_compiler_pic" >&6; }
7215 19 jeremybenn
 
7216 82 jeremybenn
 
7217
 
7218
 
7219
 
7220
 
7221 19 jeremybenn
#
7222
# Check to make sure the PIC flag actually works.
7223
#
7224
if test -n "$lt_prog_compiler_pic"; then
7225 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7226
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7227
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7228
  $as_echo_n "(cached) " >&6
7229 19 jeremybenn
else
7230 82 jeremybenn
  lt_cv_prog_compiler_pic_works=no
7231
   ac_outfile=conftest.$ac_objext
7232 19 jeremybenn
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7233
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7234
   # Insert the option either (1) after the last *FLAGS variable, or
7235
   # (2) before a word containing "conftest.", or (3) at the end.
7236
   # Note that $ac_compile itself does not contain backslashes and begins
7237
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7238
   # The option is referenced via a variable to avoid confusing sed.
7239
   lt_compile=`echo "$ac_compile" | $SED \
7240
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7241
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7242
   -e 's:$: $lt_compiler_flag:'`
7243 90 jeremybenn
   (eval echo "\"\$as_me:7243: $lt_compile\"" >&5)
7244 19 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
7245
   ac_status=$?
7246
   cat conftest.err >&5
7247 90 jeremybenn
   echo "$as_me:7247: \$? = $ac_status" >&5
7248 19 jeremybenn
   if (exit $ac_status) && test -s "$ac_outfile"; then
7249
     # The compiler can only warn and ignore the option if not recognized
7250
     # So say no if there are warnings other than the usual output.
7251 82 jeremybenn
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7252 19 jeremybenn
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7253
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7254 82 jeremybenn
       lt_cv_prog_compiler_pic_works=yes
7255 19 jeremybenn
     fi
7256
   fi
7257 82 jeremybenn
   $RM conftest*
7258 19 jeremybenn
 
7259
fi
7260 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7261
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7262 19 jeremybenn
 
7263 82 jeremybenn
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7264 19 jeremybenn
    case $lt_prog_compiler_pic in
7265
     "" | " "*) ;;
7266
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7267
     esac
7268
else
7269
    lt_prog_compiler_pic=
7270
     lt_prog_compiler_can_build_shared=no
7271
fi
7272
 
7273
fi
7274
 
7275 82 jeremybenn
 
7276
 
7277
 
7278
 
7279
 
7280 19 jeremybenn
#
7281
# Check to make sure the static flag actually works.
7282
#
7283
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7284 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7285
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7286
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7287
  $as_echo_n "(cached) " >&6
7288 19 jeremybenn
else
7289 82 jeremybenn
  lt_cv_prog_compiler_static_works=no
7290 19 jeremybenn
   save_LDFLAGS="$LDFLAGS"
7291
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7292
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7293
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7294
     # The linker can only warn and ignore the option if not recognized
7295
     # So say no if there are warnings
7296
     if test -s conftest.err; then
7297
       # Append any errors to the config.log.
7298
       cat conftest.err 1>&5
7299 82 jeremybenn
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7300 19 jeremybenn
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7301
       if diff conftest.exp conftest.er2 >/dev/null; then
7302 82 jeremybenn
         lt_cv_prog_compiler_static_works=yes
7303 19 jeremybenn
       fi
7304
     else
7305 82 jeremybenn
       lt_cv_prog_compiler_static_works=yes
7306 19 jeremybenn
     fi
7307
   fi
7308 82 jeremybenn
   $RM -r conftest*
7309 19 jeremybenn
   LDFLAGS="$save_LDFLAGS"
7310
 
7311
fi
7312 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7313
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7314 19 jeremybenn
 
7315 82 jeremybenn
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7316 19 jeremybenn
    :
7317
else
7318
    lt_prog_compiler_static=
7319
fi
7320
 
7321
 
7322 82 jeremybenn
 
7323
 
7324
 
7325
 
7326
 
7327
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7328
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7329 19 jeremybenn
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7330 82 jeremybenn
  $as_echo_n "(cached) " >&6
7331 19 jeremybenn
else
7332
  lt_cv_prog_compiler_c_o=no
7333 82 jeremybenn
   $RM -r conftest 2>/dev/null
7334 19 jeremybenn
   mkdir conftest
7335
   cd conftest
7336
   mkdir out
7337
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7338
 
7339
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7340
   # Insert the option either (1) after the last *FLAGS variable, or
7341
   # (2) before a word containing "conftest.", or (3) at the end.
7342
   # Note that $ac_compile itself does not contain backslashes and begins
7343
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7344
   lt_compile=`echo "$ac_compile" | $SED \
7345
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7346
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7347
   -e 's:$: $lt_compiler_flag:'`
7348 90 jeremybenn
   (eval echo "\"\$as_me:7348: $lt_compile\"" >&5)
7349 19 jeremybenn
   (eval "$lt_compile" 2>out/conftest.err)
7350
   ac_status=$?
7351
   cat out/conftest.err >&5
7352 90 jeremybenn
   echo "$as_me:7352: \$? = $ac_status" >&5
7353 19 jeremybenn
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7354
   then
7355
     # The compiler can only warn and ignore the option if not recognized
7356
     # So say no if there are warnings
7357 82 jeremybenn
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7358 19 jeremybenn
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7359
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7360
       lt_cv_prog_compiler_c_o=yes
7361
     fi
7362
   fi
7363
   chmod u+w . 2>&5
7364 82 jeremybenn
   $RM conftest*
7365 19 jeremybenn
   # SGI C++ compiler will create directory out/ii_files/ for
7366
   # template instantiation
7367 82 jeremybenn
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7368
   $RM out/* && rmdir out
7369 19 jeremybenn
   cd ..
7370 82 jeremybenn
   $RM -r conftest
7371
   $RM conftest*
7372 19 jeremybenn
 
7373
fi
7374 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7375
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7376 19 jeremybenn
 
7377
 
7378 82 jeremybenn
 
7379
 
7380
 
7381
 
7382
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7383
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7384
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7385
  $as_echo_n "(cached) " >&6
7386
else
7387
  lt_cv_prog_compiler_c_o=no
7388
   $RM -r conftest 2>/dev/null
7389
   mkdir conftest
7390
   cd conftest
7391
   mkdir out
7392
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7393
 
7394
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7395
   # Insert the option either (1) after the last *FLAGS variable, or
7396
   # (2) before a word containing "conftest.", or (3) at the end.
7397
   # Note that $ac_compile itself does not contain backslashes and begins
7398
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7399
   lt_compile=`echo "$ac_compile" | $SED \
7400
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7401
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7402
   -e 's:$: $lt_compiler_flag:'`
7403 90 jeremybenn
   (eval echo "\"\$as_me:7403: $lt_compile\"" >&5)
7404 82 jeremybenn
   (eval "$lt_compile" 2>out/conftest.err)
7405
   ac_status=$?
7406
   cat out/conftest.err >&5
7407 90 jeremybenn
   echo "$as_me:7407: \$? = $ac_status" >&5
7408 82 jeremybenn
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7409
   then
7410
     # The compiler can only warn and ignore the option if not recognized
7411
     # So say no if there are warnings
7412
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7413
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7414
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7415
       lt_cv_prog_compiler_c_o=yes
7416
     fi
7417
   fi
7418
   chmod u+w . 2>&5
7419
   $RM conftest*
7420
   # SGI C++ compiler will create directory out/ii_files/ for
7421
   # template instantiation
7422
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7423
   $RM out/* && rmdir out
7424
   cd ..
7425
   $RM -r conftest
7426
   $RM conftest*
7427
 
7428
fi
7429
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7430
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7431
 
7432
 
7433
 
7434
 
7435 19 jeremybenn
hard_links="nottested"
7436
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7437
  # do not overwrite the value of need_locks provided by the user
7438 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7439
$as_echo_n "checking if we can lock with hard links... " >&6; }
7440 19 jeremybenn
  hard_links=yes
7441 82 jeremybenn
  $RM conftest*
7442 19 jeremybenn
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7443
  touch conftest.a
7444
  ln conftest.a conftest.b 2>&5 || hard_links=no
7445
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7446 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7447
$as_echo "$hard_links" >&6; }
7448 19 jeremybenn
  if test "$hard_links" = no; then
7449 82 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7450
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7451 19 jeremybenn
    need_locks=warn
7452
  fi
7453
else
7454
  need_locks=no
7455
fi
7456
 
7457
 
7458 82 jeremybenn
 
7459
 
7460
 
7461
 
7462
  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7463
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7464
 
7465 19 jeremybenn
  runpath_var=
7466
  allow_undefined_flag=
7467 82 jeremybenn
  always_export_symbols=no
7468 19 jeremybenn
  archive_cmds=
7469
  archive_expsym_cmds=
7470 82 jeremybenn
  compiler_needs_object=no
7471
  enable_shared_with_static_runtimes=no
7472 19 jeremybenn
  export_dynamic_flag_spec=
7473 82 jeremybenn
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7474
  hardcode_automatic=no
7475
  hardcode_direct=no
7476
  hardcode_direct_absolute=no
7477 19 jeremybenn
  hardcode_libdir_flag_spec=
7478
  hardcode_libdir_flag_spec_ld=
7479
  hardcode_libdir_separator=
7480
  hardcode_minus_L=no
7481
  hardcode_shlibpath_var=unsupported
7482 82 jeremybenn
  inherit_rpath=no
7483 19 jeremybenn
  link_all_deplibs=unknown
7484
  module_cmds=
7485
  module_expsym_cmds=
7486 82 jeremybenn
  old_archive_from_new_cmds=
7487
  old_archive_from_expsyms_cmds=
7488
  thread_safe_flag_spec=
7489
  whole_archive_flag_spec=
7490 19 jeremybenn
  # include_expsyms should be a list of space-separated symbols to be *always*
7491
  # included in the symbol list
7492
  include_expsyms=
7493
  # exclude_expsyms can be an extended regexp of symbols to exclude
7494
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7495
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7496
  # as well as any symbol that contains `d'.
7497 82 jeremybenn
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7498 19 jeremybenn
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7499
  # platforms (ab)use it in PIC code, but their linkers get confused if
7500
  # the symbol is explicitly referenced.  Since portable code cannot
7501
  # rely on this symbol name, it's probably fine to never include it in
7502
  # preloaded symbol tables.
7503 82 jeremybenn
  # Exclude shared library initialization/finalization symbols.
7504 19 jeremybenn
  extract_expsyms_cmds=
7505
 
7506
  case $host_os in
7507 82 jeremybenn
  cygwin* | mingw* | pw32* | cegcc*)
7508 19 jeremybenn
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7509
    # When not using gcc, we currently assume that we are using
7510
    # Microsoft Visual C++.
7511
    if test "$GCC" != yes; then
7512
      with_gnu_ld=no
7513
    fi
7514
    ;;
7515
  interix*)
7516
    # we just hope/assume this is gcc and not c89 (= MSVC++)
7517
    with_gnu_ld=yes
7518
    ;;
7519
  openbsd*)
7520
    with_gnu_ld=no
7521
    ;;
7522
  esac
7523
 
7524
  ld_shlibs=yes
7525
  if test "$with_gnu_ld" = yes; then
7526
    # If archive_cmds runs LD, not CC, wlarc should be empty
7527
    wlarc='${wl}'
7528
 
7529
    # Set some defaults for GNU ld with shared library support. These
7530
    # are reset later if shared libraries are not supported. Putting them
7531
    # here allows them to be overridden if necessary.
7532
    runpath_var=LD_RUN_PATH
7533 82 jeremybenn
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7534 19 jeremybenn
    export_dynamic_flag_spec='${wl}--export-dynamic'
7535
    # ancient GNU ld didn't support --whole-archive et. al.
7536 82 jeremybenn
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7537
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7538
    else
7539
      whole_archive_flag_spec=
7540 19 jeremybenn
    fi
7541
    supports_anon_versioning=no
7542 82 jeremybenn
    case `$LD -v 2>&1` in
7543 19 jeremybenn
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7544
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7545
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7546
      *\ 2.11.*) ;; # other 2.11 versions
7547
      *) supports_anon_versioning=yes ;;
7548
    esac
7549
 
7550
    # See if GNU ld supports shared libraries.
7551
    case $host_os in
7552 82 jeremybenn
    aix[3-9]*)
7553 19 jeremybenn
      # On AIX/PPC, the GNU linker is very broken
7554
      if test "$host_cpu" != ia64; then
7555
        ld_shlibs=no
7556 82 jeremybenn
        cat <<_LT_EOF 1>&2
7557 19 jeremybenn
 
7558
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7559
*** to be unable to reliably create shared libraries on AIX.
7560
*** Therefore, libtool is disabling shared libraries support.  If you
7561
*** really care for shared libraries, you may want to modify your PATH
7562
*** so that a non-GNU linker is found, and then restart.
7563
 
7564 82 jeremybenn
_LT_EOF
7565 19 jeremybenn
      fi
7566
      ;;
7567
 
7568
    amigaos*)
7569 82 jeremybenn
      case $host_cpu in
7570
      powerpc)
7571
            # see comment about AmigaOS4 .so support
7572
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7573
            archive_expsym_cmds=''
7574
        ;;
7575
      m68k)
7576
            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)'
7577
            hardcode_libdir_flag_spec='-L$libdir'
7578
            hardcode_minus_L=yes
7579
        ;;
7580
      esac
7581 19 jeremybenn
      ;;
7582
 
7583
    beos*)
7584 82 jeremybenn
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7585 19 jeremybenn
        allow_undefined_flag=unsupported
7586
        # Joseph Beckenbach  says some releases of gcc
7587
        # support --undefined.  This deserves some investigation.  FIXME
7588
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7589
      else
7590
        ld_shlibs=no
7591
      fi
7592
      ;;
7593
 
7594 82 jeremybenn
    cygwin* | mingw* | pw32* | cegcc*)
7595
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7596 19 jeremybenn
      # as there is no search path for DLLs.
7597
      hardcode_libdir_flag_spec='-L$libdir'
7598
      allow_undefined_flag=unsupported
7599
      always_export_symbols=no
7600
      enable_shared_with_static_runtimes=yes
7601 82 jeremybenn
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7602 19 jeremybenn
 
7603 82 jeremybenn
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7604 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7605
        # If the export-symbols file already is a .def file (1st line
7606
        # is EXPORTS), use it as is; otherwise, prepend...
7607
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7608
          cp $export_symbols $output_objdir/$soname.def;
7609
        else
7610
          echo EXPORTS > $output_objdir/$soname.def;
7611
          cat $export_symbols >> $output_objdir/$soname.def;
7612
        fi~
7613
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7614
      else
7615
        ld_shlibs=no
7616
      fi
7617
      ;;
7618
 
7619
    interix[3-9]*)
7620
      hardcode_direct=no
7621
      hardcode_shlibpath_var=no
7622
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7623
      export_dynamic_flag_spec='${wl}-E'
7624
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7625
      # Instead, shared libraries are loaded at an image base (0x10000000 by
7626
      # default) and relocated if they conflict, which is a slow very memory
7627
      # consuming and fragmenting process.  To avoid this, we pick a random,
7628
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7629
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7630
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7631
      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'
7632
      ;;
7633
 
7634 82 jeremybenn
    gnu* | linux* | tpf* | k*bsd*-gnu)
7635
      tmp_diet=no
7636
      if test "$host_os" = linux-dietlibc; then
7637
        case $cc_basename in
7638
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7639
        esac
7640
      fi
7641
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7642
         && test "$tmp_diet" = no
7643
      then
7644 19 jeremybenn
        tmp_addflag=
7645 82 jeremybenn
        tmp_sharedflag='-shared'
7646 19 jeremybenn
        case $cc_basename,$host_cpu in
7647 82 jeremybenn
        pgcc*)                          # Portland Group C compiler
7648
          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'
7649 19 jeremybenn
          tmp_addflag=' $pic_flag'
7650
          ;;
7651
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7652 82 jeremybenn
          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'
7653 19 jeremybenn
          tmp_addflag=' $pic_flag -Mnomain' ;;
7654 82 jeremybenn
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7655 19 jeremybenn
          tmp_addflag=' -i_dynamic' ;;
7656
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7657
          tmp_addflag=' -i_dynamic -nofor_main' ;;
7658
        ifc* | ifort*)                  # Intel Fortran compiler
7659
          tmp_addflag=' -nofor_main' ;;
7660 82 jeremybenn
        lf95*)                          # Lahey Fortran 8.1
7661
          whole_archive_flag_spec=
7662
          tmp_sharedflag='--shared' ;;
7663
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
7664
          tmp_sharedflag='-qmkshrobj'
7665
          tmp_addflag= ;;
7666 19 jeremybenn
        esac
7667
        case `$CC -V 2>&1 | sed 5q` in
7668
        *Sun\ C*)                       # Sun C 5.9
7669 82 jeremybenn
          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'
7670
          compiler_needs_object=yes
7671 19 jeremybenn
          tmp_sharedflag='-G' ;;
7672
        *Sun\ F*)                       # Sun Fortran 8.3
7673
          tmp_sharedflag='-G' ;;
7674
        esac
7675
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7676
 
7677 82 jeremybenn
        if test "x$supports_anon_versioning" = xyes; then
7678
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7679
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7680
            echo "local: *; };" >> $output_objdir/$libname.ver~
7681
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7682
        fi
7683
 
7684
        case $cc_basename in
7685
        xlf*)
7686
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7687
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7688
          hardcode_libdir_flag_spec=
7689
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
7690
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7691
          if test "x$supports_anon_versioning" = xyes; then
7692
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7693
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7694
              echo "local: *; };" >> $output_objdir/$libname.ver~
7695
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7696
          fi
7697
          ;;
7698
        esac
7699 19 jeremybenn
      else
7700 82 jeremybenn
        ld_shlibs=no
7701 19 jeremybenn
      fi
7702
      ;;
7703
 
7704 90 jeremybenn
    netbsd*)
7705 82 jeremybenn
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7706 19 jeremybenn
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7707
        wlarc=
7708
      else
7709
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7710
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7711
      fi
7712
      ;;
7713
 
7714
    solaris*)
7715 82 jeremybenn
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7716 19 jeremybenn
        ld_shlibs=no
7717 82 jeremybenn
        cat <<_LT_EOF 1>&2
7718 19 jeremybenn
 
7719
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7720
*** create shared libraries on Solaris systems.  Therefore, libtool
7721
*** is disabling shared libraries support.  We urge you to upgrade GNU
7722
*** binutils to release 2.9.1 or newer.  Another option is to modify
7723
*** your PATH or compiler configuration so that the native linker is
7724
*** used, and then restart.
7725
 
7726 82 jeremybenn
_LT_EOF
7727
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7728 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7729
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7730
      else
7731
        ld_shlibs=no
7732
      fi
7733
      ;;
7734
 
7735
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7736
      case `$LD -v 2>&1` in
7737
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7738
        ld_shlibs=no
7739
        cat <<_LT_EOF 1>&2
7740
 
7741
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7742
*** reliably create shared libraries on SCO systems.  Therefore, libtool
7743
*** is disabling shared libraries support.  We urge you to upgrade GNU
7744
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7745
*** your PATH or compiler configuration so that the native linker is
7746
*** used, and then restart.
7747
 
7748
_LT_EOF
7749
        ;;
7750
        *)
7751 82 jeremybenn
          # For security reasons, it is highly recommended that you always
7752
          # use absolute paths for naming shared libraries, and exclude the
7753
          # DT_RUNPATH tag from executables and libraries.  But doing so
7754
          # requires that you compile everything twice, which is a pain.
7755
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7756
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7757
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7758
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7759 19 jeremybenn
          else
7760
            ld_shlibs=no
7761
          fi
7762
        ;;
7763
      esac
7764
      ;;
7765
 
7766
    sunos4*)
7767
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7768
      wlarc=
7769
      hardcode_direct=yes
7770
      hardcode_shlibpath_var=no
7771
      ;;
7772
 
7773
    *)
7774 82 jeremybenn
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7775 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7776
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7777
      else
7778
        ld_shlibs=no
7779
      fi
7780
      ;;
7781
    esac
7782
 
7783
    if test "$ld_shlibs" = no; then
7784
      runpath_var=
7785
      hardcode_libdir_flag_spec=
7786
      export_dynamic_flag_spec=
7787
      whole_archive_flag_spec=
7788
    fi
7789
  else
7790
    # PORTME fill in a description of your system's linker (not GNU ld)
7791
    case $host_os in
7792
    aix3*)
7793
      allow_undefined_flag=unsupported
7794
      always_export_symbols=yes
7795
      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'
7796
      # Note: this linker hardcodes the directories in LIBPATH if there
7797
      # are no directories specified by -L.
7798
      hardcode_minus_L=yes
7799
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7800
        # Neither direct hardcoding nor static linking is supported with a
7801
        # broken collect2.
7802
        hardcode_direct=unsupported
7803
      fi
7804
      ;;
7805
 
7806 82 jeremybenn
    aix[4-9]*)
7807 19 jeremybenn
      if test "$host_cpu" = ia64; then
7808
        # On IA64, the linker does run time linking by default, so we don't
7809
        # have to do anything special.
7810
        aix_use_runtimelinking=no
7811
        exp_sym_flag='-Bexport'
7812
        no_entry_flag=""
7813
      else
7814
        # If we're using GNU nm, then we don't want the "-C" option.
7815
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7816 82 jeremybenn
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7817
          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'
7818 19 jeremybenn
        else
7819 82 jeremybenn
          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'
7820 19 jeremybenn
        fi
7821
        aix_use_runtimelinking=no
7822
 
7823
        # Test if we are trying to use run time linking or normal
7824
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7825
        # need to do runtime linking.
7826 82 jeremybenn
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7827 19 jeremybenn
          for ld_flag in $LDFLAGS; do
7828 82 jeremybenn
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7829
            aix_use_runtimelinking=yes
7830
            break
7831
          fi
7832 19 jeremybenn
          done
7833
          ;;
7834
        esac
7835
 
7836
        exp_sym_flag='-bexport'
7837
        no_entry_flag='-bnoentry'
7838
      fi
7839
 
7840
      # When large executables or shared objects are built, AIX ld can
7841
      # have problems creating the table of contents.  If linking a library
7842
      # or program results in "error TOC overflow" add -mminimal-toc to
7843
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7844
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7845
 
7846
      archive_cmds=''
7847
      hardcode_direct=yes
7848 82 jeremybenn
      hardcode_direct_absolute=yes
7849 19 jeremybenn
      hardcode_libdir_separator=':'
7850
      link_all_deplibs=yes
7851 82 jeremybenn
      file_list_spec='${wl}-f,'
7852 19 jeremybenn
 
7853
      if test "$GCC" = yes; then
7854
        case $host_os in aix4.[012]|aix4.[012].*)
7855
        # We only want to do this on AIX 4.2 and lower, the check
7856
        # below for broken collect2 doesn't work under 4.3+
7857
          collect2name=`${CC} -print-prog-name=collect2`
7858 82 jeremybenn
          if test -f "$collect2name" &&
7859
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7860 19 jeremybenn
          then
7861 82 jeremybenn
          # We have reworked collect2
7862
          :
7863 19 jeremybenn
          else
7864 82 jeremybenn
          # We have old collect2
7865
          hardcode_direct=unsupported
7866
          # It fails to find uninstalled libraries when the uninstalled
7867
          # path is not listed in the libpath.  Setting hardcode_minus_L
7868
          # to unsupported forces relinking
7869
          hardcode_minus_L=yes
7870
          hardcode_libdir_flag_spec='-L$libdir'
7871
          hardcode_libdir_separator=
7872 19 jeremybenn
          fi
7873
          ;;
7874
        esac
7875
        shared_flag='-shared'
7876
        if test "$aix_use_runtimelinking" = yes; then
7877
          shared_flag="$shared_flag "'${wl}-G'
7878
        fi
7879
      else
7880
        # not using gcc
7881
        if test "$host_cpu" = ia64; then
7882 82 jeremybenn
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7883
        # chokes on -Wl,-G. The following line is correct:
7884 19 jeremybenn
          shared_flag='-G'
7885
        else
7886
          if test "$aix_use_runtimelinking" = yes; then
7887
            shared_flag='${wl}-G'
7888
          else
7889
            shared_flag='${wl}-bM:SRE'
7890
          fi
7891
        fi
7892
      fi
7893
 
7894 82 jeremybenn
      export_dynamic_flag_spec='${wl}-bexpall'
7895 19 jeremybenn
      # It seems that -bexpall does not export symbols beginning with
7896
      # underscore (_), so it is better to generate a list of symbols to export.
7897
      always_export_symbols=yes
7898
      if test "$aix_use_runtimelinking" = yes; then
7899
        # Warning - without using the other runtime loading flags (-brtl),
7900
        # -berok will link without error, but may produce a broken library.
7901
        allow_undefined_flag='-berok'
7902 82 jeremybenn
        # Determine the default libpath from the value encoded in an
7903
        # empty executable.
7904
        cat >conftest.$ac_ext <<_ACEOF
7905 19 jeremybenn
/* confdefs.h.  */
7906
_ACEOF
7907
cat confdefs.h >>conftest.$ac_ext
7908
cat >>conftest.$ac_ext <<_ACEOF
7909
/* end confdefs.h.  */
7910
 
7911
int
7912
main ()
7913
{
7914
 
7915
  ;
7916
  return 0;
7917
}
7918
_ACEOF
7919
rm -f conftest.$ac_objext conftest$ac_exeext
7920
if { (ac_try="$ac_link"
7921
case "(($ac_try" in
7922
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923
  *) ac_try_echo=$ac_try;;
7924
esac
7925 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7926
$as_echo "$ac_try_echo") >&5
7927 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
7928
  ac_status=$?
7929
  grep -v '^ *+' conftest.er1 >conftest.err
7930
  rm -f conftest.er1
7931
  cat conftest.err >&5
7932 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 19 jeremybenn
  (exit $ac_status); } && {
7934
         test -z "$ac_c_werror_flag" ||
7935
         test ! -s conftest.err
7936 82 jeremybenn
       } && test -s conftest$ac_exeext && {
7937
         test "$cross_compiling" = yes ||
7938
         $as_test_x conftest$ac_exeext
7939
       }; then
7940 19 jeremybenn
 
7941
lt_aix_libpath_sed='
7942
    /Import File Strings/,/^$/ {
7943
        /^0/ {
7944
            s/^0  *\(.*\)$/\1/
7945
            p
7946
        }
7947
    }'
7948
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7949
# Check for a 64-bit object if we didn't find anything.
7950
if test -z "$aix_libpath"; then
7951
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7952
fi
7953
else
7954 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
7955 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
7956
 
7957
 
7958
fi
7959
 
7960 82 jeremybenn
rm -rf conftest.dSYM
7961 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7962
      conftest$ac_exeext conftest.$ac_ext
7963
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7964
 
7965 82 jeremybenn
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7966
        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"
7967
      else
7968 19 jeremybenn
        if test "$host_cpu" = ia64; then
7969
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7970
          allow_undefined_flag="-z nodefs"
7971
          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"
7972
        else
7973 82 jeremybenn
         # Determine the default libpath from the value encoded in an
7974
         # empty executable.
7975 19 jeremybenn
         cat >conftest.$ac_ext <<_ACEOF
7976
/* confdefs.h.  */
7977
_ACEOF
7978
cat confdefs.h >>conftest.$ac_ext
7979
cat >>conftest.$ac_ext <<_ACEOF
7980
/* end confdefs.h.  */
7981
 
7982
int
7983
main ()
7984
{
7985
 
7986
  ;
7987
  return 0;
7988
}
7989
_ACEOF
7990
rm -f conftest.$ac_objext conftest$ac_exeext
7991
if { (ac_try="$ac_link"
7992
case "(($ac_try" in
7993
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7994
  *) ac_try_echo=$ac_try;;
7995
esac
7996 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7997
$as_echo "$ac_try_echo") >&5
7998 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
7999
  ac_status=$?
8000
  grep -v '^ *+' conftest.er1 >conftest.err
8001
  rm -f conftest.er1
8002
  cat conftest.err >&5
8003 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 19 jeremybenn
  (exit $ac_status); } && {
8005
         test -z "$ac_c_werror_flag" ||
8006
         test ! -s conftest.err
8007 82 jeremybenn
       } && test -s conftest$ac_exeext && {
8008
         test "$cross_compiling" = yes ||
8009
         $as_test_x conftest$ac_exeext
8010
       }; then
8011 19 jeremybenn
 
8012
lt_aix_libpath_sed='
8013
    /Import File Strings/,/^$/ {
8014
        /^0/ {
8015
            s/^0  *\(.*\)$/\1/
8016
            p
8017
        }
8018
    }'
8019
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8020
# Check for a 64-bit object if we didn't find anything.
8021
if test -z "$aix_libpath"; then
8022
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8023
fi
8024
else
8025 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
8026 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
8027
 
8028
 
8029
fi
8030
 
8031 82 jeremybenn
rm -rf conftest.dSYM
8032 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8033
      conftest$ac_exeext conftest.$ac_ext
8034
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8035
 
8036
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8037
          # Warning - without using the other run time loading flags,
8038
          # -berok will link without error, but may produce a broken library.
8039
          no_undefined_flag=' ${wl}-bernotok'
8040
          allow_undefined_flag=' ${wl}-berok'
8041
          # Exported symbols can be pulled into shared objects from archives
8042
          whole_archive_flag_spec='$convenience'
8043
          archive_cmds_need_lc=yes
8044
          # This is similar to how AIX traditionally builds its shared libraries.
8045
          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'
8046
        fi
8047
      fi
8048
      ;;
8049
 
8050
    amigaos*)
8051 82 jeremybenn
      case $host_cpu in
8052
      powerpc)
8053
            # see comment about AmigaOS4 .so support
8054
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8055
            archive_expsym_cmds=''
8056
        ;;
8057
      m68k)
8058
            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)'
8059
            hardcode_libdir_flag_spec='-L$libdir'
8060
            hardcode_minus_L=yes
8061
        ;;
8062
      esac
8063 19 jeremybenn
      ;;
8064
 
8065
    bsdi[45]*)
8066
      export_dynamic_flag_spec=-rdynamic
8067
      ;;
8068
 
8069 82 jeremybenn
    cygwin* | mingw* | pw32* | cegcc*)
8070 19 jeremybenn
      # When not using gcc, we currently assume that we are using
8071
      # Microsoft Visual C++.
8072
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8073
      # no search path for DLLs.
8074
      hardcode_libdir_flag_spec=' '
8075
      allow_undefined_flag=unsupported
8076
      # Tell ltmain to make .lib files, not .a files.
8077
      libext=lib
8078
      # Tell ltmain to make .dll files, not .so files.
8079
      shrext_cmds=".dll"
8080
      # FIXME: Setting linknames here is a bad hack.
8081 82 jeremybenn
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8082 19 jeremybenn
      # The linker will automatically build a .lib file if we build a DLL.
8083 82 jeremybenn
      old_archive_from_new_cmds='true'
8084 19 jeremybenn
      # FIXME: Should let the user specify the lib program.
8085
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8086
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8087
      enable_shared_with_static_runtimes=yes
8088
      ;;
8089
 
8090
    darwin* | rhapsody*)
8091 82 jeremybenn
 
8092
 
8093
  archive_cmds_need_lc=no
8094
  hardcode_direct=no
8095
  hardcode_automatic=yes
8096
  hardcode_shlibpath_var=unsupported
8097
  whole_archive_flag_spec=''
8098
  link_all_deplibs=yes
8099
  allow_undefined_flag="$_lt_dar_allow_undefined"
8100
  case $cc_basename in
8101
     ifort*) _lt_dar_can_shared=yes ;;
8102
     *) _lt_dar_can_shared=$GCC ;;
8103
  esac
8104
  if test "$_lt_dar_can_shared" = "yes"; then
8105
    output_verbose_link_cmd=echo
8106
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8107
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8108
    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}"
8109
    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}"
8110
 
8111
  else
8112
  ld_shlibs=no
8113
  fi
8114
 
8115 19 jeremybenn
      ;;
8116
 
8117
    dgux*)
8118
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8119
      hardcode_libdir_flag_spec='-L$libdir'
8120
      hardcode_shlibpath_var=no
8121
      ;;
8122
 
8123
    freebsd1*)
8124
      ld_shlibs=no
8125
      ;;
8126
 
8127
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8128
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8129
    # does not break anything, and helps significantly (at the cost of a little
8130
    # extra space).
8131
    freebsd2.2*)
8132
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8133
      hardcode_libdir_flag_spec='-R$libdir'
8134
      hardcode_direct=yes
8135
      hardcode_shlibpath_var=no
8136
      ;;
8137
 
8138
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8139
    freebsd2*)
8140
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8141
      hardcode_direct=yes
8142
      hardcode_minus_L=yes
8143
      hardcode_shlibpath_var=no
8144
      ;;
8145
 
8146
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8147
    freebsd* | dragonfly*)
8148
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8149
      hardcode_libdir_flag_spec='-R$libdir'
8150
      hardcode_direct=yes
8151
      hardcode_shlibpath_var=no
8152
      ;;
8153
 
8154
    hpux9*)
8155
      if test "$GCC" = yes; then
8156 82 jeremybenn
        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'
8157 19 jeremybenn
      else
8158 82 jeremybenn
        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'
8159 19 jeremybenn
      fi
8160
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8161
      hardcode_libdir_separator=:
8162
      hardcode_direct=yes
8163
 
8164
      # hardcode_minus_L: Not really in the search PATH,
8165
      # but as the default location of the library.
8166
      hardcode_minus_L=yes
8167
      export_dynamic_flag_spec='${wl}-E'
8168
      ;;
8169
 
8170
    hpux10*)
8171
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8172
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8173
      else
8174
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8175
      fi
8176
      if test "$with_gnu_ld" = no; then
8177
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8178 82 jeremybenn
        hardcode_libdir_flag_spec_ld='+b $libdir'
8179 19 jeremybenn
        hardcode_libdir_separator=:
8180
        hardcode_direct=yes
8181 82 jeremybenn
        hardcode_direct_absolute=yes
8182 19 jeremybenn
        export_dynamic_flag_spec='${wl}-E'
8183
        # hardcode_minus_L: Not really in the search PATH,
8184
        # but as the default location of the library.
8185
        hardcode_minus_L=yes
8186
      fi
8187
      ;;
8188
 
8189
    hpux11*)
8190
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8191
        case $host_cpu in
8192
        hppa*64*)
8193
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8194
          ;;
8195
        ia64*)
8196 82 jeremybenn
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8197 19 jeremybenn
          ;;
8198
        *)
8199
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8200
          ;;
8201
        esac
8202
      else
8203
        case $host_cpu in
8204
        hppa*64*)
8205
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8206
          ;;
8207
        ia64*)
8208
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8209
          ;;
8210
        *)
8211
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8212
          ;;
8213
        esac
8214
      fi
8215
      if test "$with_gnu_ld" = no; then
8216
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8217
        hardcode_libdir_separator=:
8218
 
8219
        case $host_cpu in
8220
        hppa*64*|ia64*)
8221
          hardcode_direct=no
8222
          hardcode_shlibpath_var=no
8223
          ;;
8224
        *)
8225
          hardcode_direct=yes
8226 82 jeremybenn
          hardcode_direct_absolute=yes
8227 19 jeremybenn
          export_dynamic_flag_spec='${wl}-E'
8228
 
8229
          # hardcode_minus_L: Not really in the search PATH,
8230
          # but as the default location of the library.
8231
          hardcode_minus_L=yes
8232
          ;;
8233
        esac
8234
      fi
8235
      ;;
8236
 
8237
    irix5* | irix6* | nonstopux*)
8238
      if test "$GCC" = yes; then
8239 82 jeremybenn
        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'
8240
        # Try to use the -exported_symbol ld option, if it does not
8241
        # work, assume that -exports_file does not work either and
8242
        # implicitly export all symbols.
8243
        save_LDFLAGS="$LDFLAGS"
8244
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8245
        cat >conftest.$ac_ext <<_ACEOF
8246
int foo(void) {}
8247
_ACEOF
8248
rm -f conftest.$ac_objext conftest$ac_exeext
8249
if { (ac_try="$ac_link"
8250
case "(($ac_try" in
8251
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8252
  *) ac_try_echo=$ac_try;;
8253
esac
8254
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8255
$as_echo "$ac_try_echo") >&5
8256
  (eval "$ac_link") 2>conftest.er1
8257
  ac_status=$?
8258
  grep -v '^ *+' conftest.er1 >conftest.err
8259
  rm -f conftest.er1
8260
  cat conftest.err >&5
8261
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262
  (exit $ac_status); } && {
8263
         test -z "$ac_c_werror_flag" ||
8264
         test ! -s conftest.err
8265
       } && test -s conftest$ac_exeext && {
8266
         test "$cross_compiling" = yes ||
8267
         $as_test_x conftest$ac_exeext
8268
       }; then
8269
  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'
8270
 
8271
else
8272
  $as_echo "$as_me: failed program was:" >&5
8273
sed 's/^/| /' conftest.$ac_ext >&5
8274
 
8275
 
8276
fi
8277
 
8278
rm -rf conftest.dSYM
8279
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8280
      conftest$ac_exeext conftest.$ac_ext
8281
        LDFLAGS="$save_LDFLAGS"
8282 19 jeremybenn
      else
8283 82 jeremybenn
        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'
8284
        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'
8285 19 jeremybenn
      fi
8286 82 jeremybenn
      archive_cmds_need_lc='no'
8287 19 jeremybenn
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8288
      hardcode_libdir_separator=:
8289 82 jeremybenn
      inherit_rpath=yes
8290 19 jeremybenn
      link_all_deplibs=yes
8291
      ;;
8292
 
8293 90 jeremybenn
    netbsd*)
8294 82 jeremybenn
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8295 19 jeremybenn
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8296
      else
8297
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8298
      fi
8299
      hardcode_libdir_flag_spec='-R$libdir'
8300
      hardcode_direct=yes
8301
      hardcode_shlibpath_var=no
8302
      ;;
8303
 
8304
    newsos6)
8305
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8306
      hardcode_direct=yes
8307
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8308
      hardcode_libdir_separator=:
8309
      hardcode_shlibpath_var=no
8310
      ;;
8311
 
8312 82 jeremybenn
    *nto* | *qnx*)
8313
      ;;
8314
 
8315 19 jeremybenn
    openbsd*)
8316
      if test -f /usr/libexec/ld.so; then
8317
        hardcode_direct=yes
8318
        hardcode_shlibpath_var=no
8319 82 jeremybenn
        hardcode_direct_absolute=yes
8320
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8321 19 jeremybenn
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8322
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8323
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8324
          export_dynamic_flag_spec='${wl}-E'
8325
        else
8326
          case $host_os in
8327
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8328
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8329
             hardcode_libdir_flag_spec='-R$libdir'
8330
             ;;
8331
           *)
8332
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8333
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8334
             ;;
8335
          esac
8336 82 jeremybenn
        fi
8337 19 jeremybenn
      else
8338
        ld_shlibs=no
8339
      fi
8340
      ;;
8341
 
8342
    os2*)
8343
      hardcode_libdir_flag_spec='-L$libdir'
8344
      hardcode_minus_L=yes
8345
      allow_undefined_flag=unsupported
8346 82 jeremybenn
      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'
8347
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8348 19 jeremybenn
      ;;
8349
 
8350
    osf3*)
8351
      if test "$GCC" = yes; then
8352
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8353 82 jeremybenn
        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'
8354 19 jeremybenn
      else
8355
        allow_undefined_flag=' -expect_unresolved \*'
8356 82 jeremybenn
        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'
8357 19 jeremybenn
      fi
8358 82 jeremybenn
      archive_cmds_need_lc='no'
8359 19 jeremybenn
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8360
      hardcode_libdir_separator=:
8361
      ;;
8362
 
8363
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8364
      if test "$GCC" = yes; then
8365
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8366 82 jeremybenn
        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'
8367 19 jeremybenn
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8368
      else
8369
        allow_undefined_flag=' -expect_unresolved \*'
8370 82 jeremybenn
        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'
8371
        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~
8372
        $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'
8373 19 jeremybenn
 
8374
        # Both c and cxx compiler support -rpath directly
8375
        hardcode_libdir_flag_spec='-rpath $libdir'
8376
      fi
8377 82 jeremybenn
      archive_cmds_need_lc='no'
8378 19 jeremybenn
      hardcode_libdir_separator=:
8379
      ;;
8380
 
8381
    solaris*)
8382 82 jeremybenn
      no_undefined_flag=' -z defs'
8383 19 jeremybenn
      if test "$GCC" = yes; then
8384
        wlarc='${wl}'
8385 82 jeremybenn
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8386
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8387
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8388 19 jeremybenn
      else
8389 82 jeremybenn
        case `$CC -V 2>&1` in
8390
        *"Compilers 5.0"*)
8391
          wlarc=''
8392
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8393
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8394
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8395
          ;;
8396
        *)
8397
          wlarc='${wl}'
8398
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8399
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8400
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8401
          ;;
8402
        esac
8403 19 jeremybenn
      fi
8404
      hardcode_libdir_flag_spec='-R$libdir'
8405
      hardcode_shlibpath_var=no
8406
      case $host_os in
8407
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8408
      *)
8409
        # The compiler driver will combine and reorder linker options,
8410
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8411
        # but is careful enough not to reorder.
8412 82 jeremybenn
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8413 19 jeremybenn
        if test "$GCC" = yes; then
8414
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8415
        else
8416
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8417
        fi
8418
        ;;
8419
      esac
8420
      link_all_deplibs=yes
8421
      ;;
8422
 
8423
    sunos4*)
8424
      if test "x$host_vendor" = xsequent; then
8425
        # Use $CC to link under sequent, because it throws in some extra .o
8426
        # files that make .init and .fini sections work.
8427
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8428
      else
8429
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8430
      fi
8431
      hardcode_libdir_flag_spec='-L$libdir'
8432
      hardcode_direct=yes
8433
      hardcode_minus_L=yes
8434
      hardcode_shlibpath_var=no
8435
      ;;
8436
 
8437
    sysv4)
8438
      case $host_vendor in
8439
        sni)
8440
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8441
          hardcode_direct=yes # is this really true???
8442
        ;;
8443
        siemens)
8444
          ## LD is ld it makes a PLAMLIB
8445
          ## CC just makes a GrossModule.
8446
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8447
          reload_cmds='$CC -r -o $output$reload_objs'
8448
          hardcode_direct=no
8449
        ;;
8450
        motorola)
8451
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8452
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8453
        ;;
8454
      esac
8455
      runpath_var='LD_RUN_PATH'
8456
      hardcode_shlibpath_var=no
8457
      ;;
8458
 
8459
    sysv4.3*)
8460
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8461
      hardcode_shlibpath_var=no
8462
      export_dynamic_flag_spec='-Bexport'
8463
      ;;
8464
 
8465
    sysv4*MP*)
8466
      if test -d /usr/nec; then
8467
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8468
        hardcode_shlibpath_var=no
8469
        runpath_var=LD_RUN_PATH
8470
        hardcode_runpath_var=yes
8471
        ld_shlibs=yes
8472
      fi
8473
      ;;
8474
 
8475
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8476
      no_undefined_flag='${wl}-z,text'
8477
      archive_cmds_need_lc=no
8478
      hardcode_shlibpath_var=no
8479
      runpath_var='LD_RUN_PATH'
8480
 
8481
      if test "$GCC" = yes; then
8482
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8483
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8484
      else
8485
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8486
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8487
      fi
8488
      ;;
8489
 
8490
    sysv5* | sco3.2v5* | sco5v6*)
8491
      # Note: We can NOT use -z defs as we might desire, because we do not
8492
      # link with -lc, and that would cause any symbols used from libc to
8493
      # always be unresolved, which means just about no library would
8494
      # ever link correctly.  If we're not using GNU ld we use -z text
8495
      # though, which does catch some bad symbols but isn't as heavy-handed
8496
      # as -z defs.
8497
      no_undefined_flag='${wl}-z,text'
8498
      allow_undefined_flag='${wl}-z,nodefs'
8499
      archive_cmds_need_lc=no
8500
      hardcode_shlibpath_var=no
8501 82 jeremybenn
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8502 19 jeremybenn
      hardcode_libdir_separator=':'
8503
      link_all_deplibs=yes
8504
      export_dynamic_flag_spec='${wl}-Bexport'
8505
      runpath_var='LD_RUN_PATH'
8506
 
8507
      if test "$GCC" = yes; then
8508 82 jeremybenn
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8509
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8510 19 jeremybenn
      else
8511 82 jeremybenn
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8512
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8513 19 jeremybenn
      fi
8514
      ;;
8515
 
8516
    uts4*)
8517
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8518
      hardcode_libdir_flag_spec='-L$libdir'
8519
      hardcode_shlibpath_var=no
8520
      ;;
8521
 
8522
    *)
8523
      ld_shlibs=no
8524
      ;;
8525
    esac
8526 82 jeremybenn
 
8527
    if test x$host_vendor = xsni; then
8528
      case $host in
8529
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8530
        export_dynamic_flag_spec='${wl}-Blargedynsym'
8531
        ;;
8532
      esac
8533
    fi
8534 19 jeremybenn
  fi
8535
 
8536 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8537
$as_echo "$ld_shlibs" >&6; }
8538 19 jeremybenn
test "$ld_shlibs" = no && can_build_shared=no
8539
 
8540 82 jeremybenn
with_gnu_ld=$with_gnu_ld
8541
 
8542
 
8543
 
8544
 
8545
 
8546
 
8547
 
8548
 
8549
 
8550
 
8551
 
8552
 
8553
 
8554
 
8555
 
8556 19 jeremybenn
#
8557
# Do we need to explicitly link libc?
8558
#
8559
case "x$archive_cmds_need_lc" in
8560
x|xyes)
8561
  # Assume -lc should be added
8562
  archive_cmds_need_lc=yes
8563
 
8564
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8565
    case $archive_cmds in
8566
    *'~'*)
8567
      # FIXME: we may have to deal with multi-command sequences.
8568
      ;;
8569
    '$CC '*)
8570
      # Test whether the compiler implicitly links with -lc since on some
8571
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8572
      # to ld, don't add -lc before -lgcc.
8573 82 jeremybenn
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8574
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8575
      $RM conftest*
8576 19 jeremybenn
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8577
 
8578
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8579
  (eval $ac_compile) 2>&5
8580
  ac_status=$?
8581 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 19 jeremybenn
  (exit $ac_status); } 2>conftest.err; then
8583
        soname=conftest
8584
        lib=conftest
8585
        libobjs=conftest.$ac_objext
8586
        deplibs=
8587
        wl=$lt_prog_compiler_wl
8588
        pic_flag=$lt_prog_compiler_pic
8589
        compiler_flags=-v
8590
        linker_flags=-v
8591
        verstring=
8592
        output_objdir=.
8593
        libname=conftest
8594
        lt_save_allow_undefined_flag=$allow_undefined_flag
8595
        allow_undefined_flag=
8596 82 jeremybenn
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8597
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8598 19 jeremybenn
  ac_status=$?
8599 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 19 jeremybenn
  (exit $ac_status); }
8601
        then
8602
          archive_cmds_need_lc=no
8603
        else
8604
          archive_cmds_need_lc=yes
8605
        fi
8606
        allow_undefined_flag=$lt_save_allow_undefined_flag
8607
      else
8608
        cat conftest.err 1>&5
8609
      fi
8610 82 jeremybenn
      $RM conftest*
8611
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8612
$as_echo "$archive_cmds_need_lc" >&6; }
8613 19 jeremybenn
      ;;
8614
    esac
8615
  fi
8616
  ;;
8617
esac
8618
 
8619
 
8620 82 jeremybenn
 
8621
 
8622
 
8623
 
8624
 
8625
 
8626
 
8627
 
8628
 
8629
 
8630
 
8631
 
8632
 
8633
 
8634
 
8635
 
8636
 
8637
 
8638
 
8639
 
8640
 
8641
 
8642
 
8643
 
8644
 
8645
 
8646
 
8647
 
8648
 
8649
 
8650
 
8651
 
8652
 
8653
 
8654
 
8655
 
8656
 
8657
 
8658
 
8659
 
8660
 
8661
 
8662
 
8663
 
8664
 
8665
 
8666
 
8667
 
8668
 
8669
 
8670
 
8671
 
8672
 
8673
 
8674
 
8675
 
8676
 
8677
 
8678
 
8679
 
8680
 
8681
 
8682
 
8683
 
8684
 
8685
 
8686
 
8687
 
8688
 
8689
 
8690
 
8691
 
8692
 
8693
 
8694
 
8695
 
8696
 
8697
 
8698
 
8699
 
8700
 
8701
 
8702
 
8703
 
8704
 
8705
 
8706
 
8707
 
8708
 
8709
 
8710
 
8711
 
8712
 
8713
 
8714
 
8715
 
8716
 
8717
 
8718
 
8719
 
8720
 
8721
 
8722
 
8723
 
8724
 
8725
 
8726
 
8727
 
8728
 
8729
 
8730
 
8731
 
8732
 
8733
 
8734
 
8735
 
8736
 
8737
 
8738
 
8739
 
8740
 
8741
 
8742
 
8743
 
8744
 
8745
 
8746
 
8747
 
8748
 
8749
 
8750
 
8751
 
8752
 
8753
 
8754
 
8755
 
8756
 
8757
 
8758
 
8759
 
8760
 
8761
 
8762
 
8763
 
8764
 
8765
 
8766
 
8767
 
8768
 
8769
 
8770
 
8771
 
8772
 
8773
 
8774
 
8775
  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8776
$as_echo_n "checking dynamic linker characteristics... " >&6; }
8777
 
8778 19 jeremybenn
if test "$GCC" = yes; then
8779
  case $host_os in
8780
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8781
    *) lt_awk_arg="/^libraries:/" ;;
8782
  esac
8783
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8784 82 jeremybenn
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8785 19 jeremybenn
    # if the path contains ";" then we assume it to be the separator
8786
    # otherwise default to the standard path separator (i.e. ":") - it is
8787
    # assumed that no part of a normal pathname contains ";" but that should
8788
    # okay in the real world where ";" in dirpaths is itself problematic.
8789 82 jeremybenn
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8790 19 jeremybenn
  else
8791 82 jeremybenn
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8792 19 jeremybenn
  fi
8793
  # Ok, now we have the path, separated by spaces, we can step through it
8794
  # and add multilib dir if necessary.
8795
  lt_tmp_lt_search_path_spec=
8796
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8797
  for lt_sys_path in $lt_search_path_spec; do
8798
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8799
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8800
    else
8801
      test -d "$lt_sys_path" && \
8802
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8803
    fi
8804
  done
8805 82 jeremybenn
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8806 19 jeremybenn
BEGIN {RS=" "; FS="/|\n";} {
8807
  lt_foo="";
8808
  lt_count=0;
8809
  for (lt_i = NF; lt_i > 0; lt_i--) {
8810
    if ($lt_i != "" && $lt_i != ".") {
8811
      if ($lt_i == "..") {
8812
        lt_count++;
8813
      } else {
8814
        if (lt_count == 0) {
8815
          lt_foo="/" $lt_i lt_foo;
8816
        } else {
8817
          lt_count--;
8818
        }
8819
      }
8820
    }
8821
  }
8822
  if (lt_foo != "") { lt_freq[lt_foo]++; }
8823
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8824
}'`
8825 82 jeremybenn
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8826 19 jeremybenn
else
8827
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8828
fi
8829 82 jeremybenn
library_names_spec=
8830
libname_spec='lib$name'
8831
soname_spec=
8832
shrext_cmds=".so"
8833
postinstall_cmds=
8834
postuninstall_cmds=
8835
finish_cmds=
8836
finish_eval=
8837
shlibpath_var=
8838
shlibpath_overrides_runpath=unknown
8839
version_type=none
8840
dynamic_linker="$host_os ld.so"
8841
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8842 19 jeremybenn
need_lib_prefix=unknown
8843
hardcode_into_libs=no
8844
 
8845
# when you set need_version to no, make sure it does not cause -set_version
8846
# flags to be left without arguments
8847
need_version=unknown
8848
 
8849
case $host_os in
8850
aix3*)
8851
  version_type=linux
8852
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8853
  shlibpath_var=LIBPATH
8854
 
8855
  # AIX 3 has no versioning support, so we append a major version to the name.
8856
  soname_spec='${libname}${release}${shared_ext}$major'
8857
  ;;
8858
 
8859 82 jeremybenn
aix[4-9]*)
8860 19 jeremybenn
  version_type=linux
8861
  need_lib_prefix=no
8862
  need_version=no
8863
  hardcode_into_libs=yes
8864
  if test "$host_cpu" = ia64; then
8865
    # AIX 5 supports IA64
8866
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8867
    shlibpath_var=LD_LIBRARY_PATH
8868
  else
8869
    # With GCC up to 2.95.x, collect2 would create an import file
8870
    # for dependence libraries.  The import file would start with
8871
    # the line `#! .'.  This would cause the generated library to
8872
    # depend on `.', always an invalid library.  This was fixed in
8873
    # development snapshots of GCC prior to 3.0.
8874
    case $host_os in
8875
      aix4 | aix4.[01] | aix4.[01].*)
8876
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8877
           echo ' yes '
8878 82 jeremybenn
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8879 19 jeremybenn
        :
8880
      else
8881
        can_build_shared=no
8882
      fi
8883
      ;;
8884
    esac
8885
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8886
    # soname into executable. Probably we can add versioning support to
8887
    # collect2, so additional links can be useful in future.
8888
    if test "$aix_use_runtimelinking" = yes; then
8889
      # If using run time linking (on AIX 4.2 or later) use lib.so
8890
      # instead of lib.a to let people know that these are not
8891
      # typical AIX shared libraries.
8892
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8893
    else
8894
      # We preserve .a as extension for shared libraries through AIX4.2
8895
      # and later when we are not doing run time linking.
8896
      library_names_spec='${libname}${release}.a $libname.a'
8897
      soname_spec='${libname}${release}${shared_ext}$major'
8898
    fi
8899
    shlibpath_var=LIBPATH
8900
  fi
8901
  ;;
8902
 
8903
amigaos*)
8904 82 jeremybenn
  case $host_cpu in
8905
  powerpc)
8906
    # Since July 2007 AmigaOS4 officially supports .so libraries.
8907
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8908
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8909
    ;;
8910
  m68k)
8911
    library_names_spec='$libname.ixlibrary $libname.a'
8912
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
8913
    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'
8914
    ;;
8915
  esac
8916 19 jeremybenn
  ;;
8917
 
8918
beos*)
8919
  library_names_spec='${libname}${shared_ext}'
8920
  dynamic_linker="$host_os ld.so"
8921
  shlibpath_var=LIBRARY_PATH
8922
  ;;
8923
 
8924
bsdi[45]*)
8925
  version_type=linux
8926
  need_version=no
8927
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8928
  soname_spec='${libname}${release}${shared_ext}$major'
8929
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8930
  shlibpath_var=LD_LIBRARY_PATH
8931
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8932
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8933
  # the default ld.so.conf also contains /usr/contrib/lib and
8934
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8935
  # libtool to hard-code these into programs
8936
  ;;
8937
 
8938 82 jeremybenn
cygwin* | mingw* | pw32* | cegcc*)
8939 19 jeremybenn
  version_type=windows
8940
  shrext_cmds=".dll"
8941
  need_version=no
8942
  need_lib_prefix=no
8943
 
8944
  case $GCC,$host_os in
8945 82 jeremybenn
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8946 19 jeremybenn
    library_names_spec='$libname.dll.a'
8947
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8948
    postinstall_cmds='base_file=`basename \${file}`~
8949 82 jeremybenn
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8950 19 jeremybenn
      dldir=$destdir/`dirname \$dlpath`~
8951
      test -d \$dldir || mkdir -p \$dldir~
8952
      $install_prog $dir/$dlname \$dldir/$dlname~
8953 82 jeremybenn
      chmod a+x \$dldir/$dlname~
8954
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8955
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8956
      fi'
8957 19 jeremybenn
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8958
      dlpath=$dir/\$dldll~
8959 82 jeremybenn
       $RM \$dlpath'
8960 19 jeremybenn
    shlibpath_overrides_runpath=yes
8961
 
8962
    case $host_os in
8963
    cygwin*)
8964
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8965
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8966
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8967
      ;;
8968 82 jeremybenn
    mingw* | cegcc*)
8969 19 jeremybenn
      # MinGW DLLs use traditional 'lib' prefix
8970
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8971 82 jeremybenn
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8972
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8973 19 jeremybenn
        # It is most probably a Windows format PATH printed by
8974
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8975
        # path with ; separators, and with drive letters. We can handle the
8976
        # drive letters (cygwin fileutils understands them), so leave them,
8977
        # especially as we might pass files found there to a mingw objdump,
8978
        # which wouldn't understand a cygwinified path. Ahh.
8979 82 jeremybenn
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8980 19 jeremybenn
      else
8981 82 jeremybenn
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8982 19 jeremybenn
      fi
8983
      ;;
8984
    pw32*)
8985
      # pw32 DLLs use 'pw' prefix rather than 'lib'
8986
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8987
      ;;
8988
    esac
8989
    ;;
8990
 
8991
  *)
8992
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8993
    ;;
8994
  esac
8995
  dynamic_linker='Win32 ld.exe'
8996
  # FIXME: first we should search . and the directory the executable is in
8997
  shlibpath_var=PATH
8998
  ;;
8999
 
9000
darwin* | rhapsody*)
9001
  dynamic_linker="$host_os dyld"
9002
  version_type=darwin
9003
  need_lib_prefix=no
9004
  need_version=no
9005 82 jeremybenn
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9006 19 jeremybenn
  soname_spec='${libname}${release}${major}$shared_ext'
9007
  shlibpath_overrides_runpath=yes
9008
  shlibpath_var=DYLD_LIBRARY_PATH
9009
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9010
 
9011
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9012
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9013
  ;;
9014
 
9015
dgux*)
9016
  version_type=linux
9017
  need_lib_prefix=no
9018
  need_version=no
9019
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9020
  soname_spec='${libname}${release}${shared_ext}$major'
9021
  shlibpath_var=LD_LIBRARY_PATH
9022
  ;;
9023
 
9024
freebsd1*)
9025
  dynamic_linker=no
9026
  ;;
9027
 
9028
freebsd* | dragonfly*)
9029
  # DragonFly does not have aout.  When/if they implement a new
9030
  # versioning mechanism, adjust this.
9031
  if test -x /usr/bin/objformat; then
9032
    objformat=`/usr/bin/objformat`
9033
  else
9034
    case $host_os in
9035
    freebsd[123]*) objformat=aout ;;
9036
    *) objformat=elf ;;
9037
    esac
9038
  fi
9039
  version_type=freebsd-$objformat
9040
  case $version_type in
9041
    freebsd-elf*)
9042
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9043
      need_version=no
9044
      need_lib_prefix=no
9045
      ;;
9046
    freebsd-*)
9047
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9048
      need_version=yes
9049
      ;;
9050
  esac
9051
  shlibpath_var=LD_LIBRARY_PATH
9052
  case $host_os in
9053
  freebsd2*)
9054
    shlibpath_overrides_runpath=yes
9055
    ;;
9056
  freebsd3.[01]* | freebsdelf3.[01]*)
9057
    shlibpath_overrides_runpath=yes
9058
    hardcode_into_libs=yes
9059
    ;;
9060
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9061
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9062
    shlibpath_overrides_runpath=no
9063
    hardcode_into_libs=yes
9064
    ;;
9065
  *) # from 4.6 on, and DragonFly
9066
    shlibpath_overrides_runpath=yes
9067
    hardcode_into_libs=yes
9068
    ;;
9069
  esac
9070
  ;;
9071
 
9072
gnu*)
9073
  version_type=linux
9074
  need_lib_prefix=no
9075
  need_version=no
9076
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9077
  soname_spec='${libname}${release}${shared_ext}$major'
9078
  shlibpath_var=LD_LIBRARY_PATH
9079
  hardcode_into_libs=yes
9080
  ;;
9081
 
9082
hpux9* | hpux10* | hpux11*)
9083
  # Give a soname corresponding to the major version so that dld.sl refuses to
9084
  # link against other versions.
9085
  version_type=sunos
9086
  need_lib_prefix=no
9087
  need_version=no
9088
  case $host_cpu in
9089
  ia64*)
9090
    shrext_cmds='.so'
9091
    hardcode_into_libs=yes
9092
    dynamic_linker="$host_os dld.so"
9093
    shlibpath_var=LD_LIBRARY_PATH
9094
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9095
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9096
    soname_spec='${libname}${release}${shared_ext}$major'
9097
    if test "X$HPUX_IA64_MODE" = X32; then
9098
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9099
    else
9100
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9101
    fi
9102
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9103
    ;;
9104 82 jeremybenn
  hppa*64*)
9105 19 jeremybenn
    shrext_cmds='.sl'
9106 82 jeremybenn
    hardcode_into_libs=yes
9107 19 jeremybenn
    dynamic_linker="$host_os dld.sl"
9108 82 jeremybenn
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9109
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9110
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9111
    soname_spec='${libname}${release}${shared_ext}$major'
9112
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9113
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9114
    ;;
9115
  *)
9116
    shrext_cmds='.sl'
9117
    dynamic_linker="$host_os dld.sl"
9118 19 jeremybenn
    shlibpath_var=SHLIB_PATH
9119
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9120
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9121
    soname_spec='${libname}${release}${shared_ext}$major'
9122
    ;;
9123
  esac
9124
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9125
  postinstall_cmds='chmod 555 $lib'
9126
  ;;
9127
 
9128
interix[3-9]*)
9129
  version_type=linux
9130
  need_lib_prefix=no
9131
  need_version=no
9132
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9133
  soname_spec='${libname}${release}${shared_ext}$major'
9134
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9135
  shlibpath_var=LD_LIBRARY_PATH
9136
  shlibpath_overrides_runpath=no
9137
  hardcode_into_libs=yes
9138
  ;;
9139
 
9140
irix5* | irix6* | nonstopux*)
9141
  case $host_os in
9142
    nonstopux*) version_type=nonstopux ;;
9143
    *)
9144
        if test "$lt_cv_prog_gnu_ld" = yes; then
9145
                version_type=linux
9146
        else
9147
                version_type=irix
9148
        fi ;;
9149
  esac
9150
  need_lib_prefix=no
9151
  need_version=no
9152
  soname_spec='${libname}${release}${shared_ext}$major'
9153
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9154
  case $host_os in
9155
  irix5* | nonstopux*)
9156
    libsuff= shlibsuff=
9157
    ;;
9158
  *)
9159
    case $LD in # libtool.m4 will add one of these switches to LD
9160
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9161
      libsuff= shlibsuff= libmagic=32-bit;;
9162
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9163
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9164
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9165
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9166
    *) libsuff= shlibsuff= libmagic=never-match;;
9167
    esac
9168
    ;;
9169
  esac
9170
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9171
  shlibpath_overrides_runpath=no
9172
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9173
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9174
  hardcode_into_libs=yes
9175
  ;;
9176
 
9177
# No shared lib support for Linux oldld, aout, or coff.
9178
linux*oldld* | linux*aout* | linux*coff*)
9179
  dynamic_linker=no
9180
  ;;
9181
 
9182
# This must be Linux ELF.
9183
linux* | k*bsd*-gnu)
9184
  version_type=linux
9185
  need_lib_prefix=no
9186
  need_version=no
9187
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9188
  soname_spec='${libname}${release}${shared_ext}$major'
9189
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9190
  shlibpath_var=LD_LIBRARY_PATH
9191
  shlibpath_overrides_runpath=no
9192 82 jeremybenn
  # Some binutils ld are patched to set DT_RUNPATH
9193
  save_LDFLAGS=$LDFLAGS
9194
  save_libdir=$libdir
9195
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9196
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9197
  cat >conftest.$ac_ext <<_ACEOF
9198
/* confdefs.h.  */
9199
_ACEOF
9200
cat confdefs.h >>conftest.$ac_ext
9201
cat >>conftest.$ac_ext <<_ACEOF
9202
/* end confdefs.h.  */
9203
 
9204
int
9205
main ()
9206
{
9207
 
9208
  ;
9209
  return 0;
9210
}
9211
_ACEOF
9212
rm -f conftest.$ac_objext conftest$ac_exeext
9213
if { (ac_try="$ac_link"
9214
case "(($ac_try" in
9215
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9216
  *) ac_try_echo=$ac_try;;
9217
esac
9218
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9219
$as_echo "$ac_try_echo") >&5
9220
  (eval "$ac_link") 2>conftest.er1
9221
  ac_status=$?
9222
  grep -v '^ *+' conftest.er1 >conftest.err
9223
  rm -f conftest.er1
9224
  cat conftest.err >&5
9225
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226
  (exit $ac_status); } && {
9227
         test -z "$ac_c_werror_flag" ||
9228
         test ! -s conftest.err
9229
       } && test -s conftest$ac_exeext && {
9230
         test "$cross_compiling" = yes ||
9231
         $as_test_x conftest$ac_exeext
9232
       }; then
9233
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9234
  shlibpath_overrides_runpath=yes
9235
fi
9236
 
9237
else
9238
  $as_echo "$as_me: failed program was:" >&5
9239
sed 's/^/| /' conftest.$ac_ext >&5
9240
 
9241
 
9242
fi
9243
 
9244
rm -rf conftest.dSYM
9245
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9246
      conftest$ac_exeext conftest.$ac_ext
9247
  LDFLAGS=$save_LDFLAGS
9248
  libdir=$save_libdir
9249
 
9250 19 jeremybenn
  # This implies no fast_install, which is unacceptable.
9251
  # Some rework will be needed to allow for fast_install
9252
  # before this can be enabled.
9253
  hardcode_into_libs=yes
9254
 
9255 90 jeremybenn
  # Add ABI-specific directories to the system library path.
9256
  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9257
 
9258 19 jeremybenn
  # Append ld.so.conf contents to the search path
9259
  if test -f /etc/ld.so.conf; then
9260 82 jeremybenn
    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' ' '`
9261 90 jeremybenn
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9262 19 jeremybenn
  fi
9263
 
9264
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9265
  # powerpc, because MkLinux only supported shared libraries with the
9266
  # GNU dynamic linker.  Since this was broken with cross compilers,
9267
  # most powerpc-linux boxes support dynamic linking these days and
9268
  # people can always --disable-shared, the test was removed, and we
9269
  # assume the GNU/Linux dynamic linker is in use.
9270
  dynamic_linker='GNU/Linux ld.so'
9271
  ;;
9272
 
9273
netbsd*)
9274
  version_type=sunos
9275
  need_lib_prefix=no
9276
  need_version=no
9277 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9278 19 jeremybenn
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9279
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9280
    dynamic_linker='NetBSD (a.out) ld.so'
9281
  else
9282
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9283
    soname_spec='${libname}${release}${shared_ext}$major'
9284
    dynamic_linker='NetBSD ld.elf_so'
9285
  fi
9286
  shlibpath_var=LD_LIBRARY_PATH
9287
  shlibpath_overrides_runpath=yes
9288
  hardcode_into_libs=yes
9289
  ;;
9290
 
9291
newsos6)
9292
  version_type=linux
9293
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9294
  shlibpath_var=LD_LIBRARY_PATH
9295
  shlibpath_overrides_runpath=yes
9296
  ;;
9297
 
9298 82 jeremybenn
*nto* | *qnx*)
9299
  version_type=qnx
9300 19 jeremybenn
  need_lib_prefix=no
9301
  need_version=no
9302
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9303
  soname_spec='${libname}${release}${shared_ext}$major'
9304
  shlibpath_var=LD_LIBRARY_PATH
9305 82 jeremybenn
  shlibpath_overrides_runpath=no
9306
  hardcode_into_libs=yes
9307
  dynamic_linker='ldqnx.so'
9308 19 jeremybenn
  ;;
9309
 
9310
openbsd*)
9311
  version_type=sunos
9312
  sys_lib_dlsearch_path_spec="/usr/lib"
9313
  need_lib_prefix=no
9314
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9315
  case $host_os in
9316 82 jeremybenn
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9317
    *)                          need_version=no  ;;
9318 19 jeremybenn
  esac
9319
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9320
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9321
  shlibpath_var=LD_LIBRARY_PATH
9322 82 jeremybenn
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9323 19 jeremybenn
    case $host_os in
9324
      openbsd2.[89] | openbsd2.[89].*)
9325
        shlibpath_overrides_runpath=no
9326
        ;;
9327
      *)
9328
        shlibpath_overrides_runpath=yes
9329
        ;;
9330
      esac
9331
  else
9332
    shlibpath_overrides_runpath=yes
9333
  fi
9334
  ;;
9335
 
9336
os2*)
9337
  libname_spec='$name'
9338
  shrext_cmds=".dll"
9339
  need_lib_prefix=no
9340
  library_names_spec='$libname${shared_ext} $libname.a'
9341
  dynamic_linker='OS/2 ld.exe'
9342
  shlibpath_var=LIBPATH
9343
  ;;
9344
 
9345
osf3* | osf4* | osf5*)
9346
  version_type=osf
9347
  need_lib_prefix=no
9348
  need_version=no
9349
  soname_spec='${libname}${release}${shared_ext}$major'
9350
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9351
  shlibpath_var=LD_LIBRARY_PATH
9352
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9353
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9354
  ;;
9355
 
9356
rdos*)
9357
  dynamic_linker=no
9358
  ;;
9359
 
9360
solaris*)
9361
  version_type=linux
9362
  need_lib_prefix=no
9363
  need_version=no
9364
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9365
  soname_spec='${libname}${release}${shared_ext}$major'
9366
  shlibpath_var=LD_LIBRARY_PATH
9367
  shlibpath_overrides_runpath=yes
9368
  hardcode_into_libs=yes
9369
  # ldd complains unless libraries are executable
9370
  postinstall_cmds='chmod +x $lib'
9371
  ;;
9372
 
9373
sunos4*)
9374
  version_type=sunos
9375
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9376
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9377
  shlibpath_var=LD_LIBRARY_PATH
9378
  shlibpath_overrides_runpath=yes
9379
  if test "$with_gnu_ld" = yes; then
9380
    need_lib_prefix=no
9381
  fi
9382
  need_version=yes
9383
  ;;
9384
 
9385
sysv4 | sysv4.3*)
9386
  version_type=linux
9387
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9388
  soname_spec='${libname}${release}${shared_ext}$major'
9389
  shlibpath_var=LD_LIBRARY_PATH
9390
  case $host_vendor in
9391
    sni)
9392
      shlibpath_overrides_runpath=no
9393
      need_lib_prefix=no
9394
      runpath_var=LD_RUN_PATH
9395
      ;;
9396
    siemens)
9397
      need_lib_prefix=no
9398
      ;;
9399
    motorola)
9400
      need_lib_prefix=no
9401
      need_version=no
9402
      shlibpath_overrides_runpath=no
9403
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9404
      ;;
9405
  esac
9406
  ;;
9407
 
9408
sysv4*MP*)
9409
  if test -d /usr/nec ;then
9410
    version_type=linux
9411
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9412
    soname_spec='$libname${shared_ext}.$major'
9413
    shlibpath_var=LD_LIBRARY_PATH
9414
  fi
9415
  ;;
9416
 
9417
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9418
  version_type=freebsd-elf
9419
  need_lib_prefix=no
9420
  need_version=no
9421
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9422
  soname_spec='${libname}${release}${shared_ext}$major'
9423
  shlibpath_var=LD_LIBRARY_PATH
9424 82 jeremybenn
  shlibpath_overrides_runpath=yes
9425 19 jeremybenn
  hardcode_into_libs=yes
9426
  if test "$with_gnu_ld" = yes; then
9427
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9428
  else
9429
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9430
    case $host_os in
9431
      sco3.2v5*)
9432
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9433
        ;;
9434
    esac
9435
  fi
9436
  sys_lib_dlsearch_path_spec='/usr/lib'
9437
  ;;
9438
 
9439 82 jeremybenn
tpf*)
9440
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9441
  version_type=linux
9442
  need_lib_prefix=no
9443
  need_version=no
9444
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9445
  shlibpath_var=LD_LIBRARY_PATH
9446
  shlibpath_overrides_runpath=no
9447
  hardcode_into_libs=yes
9448
  ;;
9449
 
9450 19 jeremybenn
uts4*)
9451
  version_type=linux
9452
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9453
  soname_spec='${libname}${release}${shared_ext}$major'
9454
  shlibpath_var=LD_LIBRARY_PATH
9455
  ;;
9456
 
9457
*)
9458
  dynamic_linker=no
9459
  ;;
9460
esac
9461 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9462
$as_echo "$dynamic_linker" >&6; }
9463 19 jeremybenn
test "$dynamic_linker" = no && can_build_shared=no
9464
 
9465
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9466
if test "$GCC" = yes; then
9467
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9468
fi
9469
 
9470 82 jeremybenn
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9471
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9472
fi
9473
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9474
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9475
fi
9476
 
9477
 
9478
 
9479
 
9480
 
9481
 
9482
 
9483
 
9484
 
9485
 
9486
 
9487
 
9488
 
9489
 
9490
 
9491
 
9492
 
9493
 
9494
 
9495
 
9496
 
9497
 
9498
 
9499
 
9500
 
9501
 
9502
 
9503
 
9504
 
9505
 
9506
 
9507
 
9508
 
9509
 
9510
 
9511
 
9512
 
9513
 
9514
 
9515
 
9516
 
9517
 
9518
 
9519
 
9520
 
9521
 
9522
 
9523
 
9524
 
9525
 
9526
 
9527
 
9528
 
9529
 
9530
 
9531
 
9532
 
9533
 
9534
 
9535
 
9536
 
9537
 
9538
 
9539
 
9540
 
9541
 
9542
 
9543
 
9544
 
9545
 
9546
 
9547
 
9548
 
9549
 
9550
 
9551
 
9552
 
9553
 
9554
 
9555
 
9556
 
9557
 
9558
 
9559
 
9560
 
9561
 
9562
 
9563
  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9564
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9565 19 jeremybenn
hardcode_action=
9566 82 jeremybenn
if test -n "$hardcode_libdir_flag_spec" ||
9567
   test -n "$runpath_var" ||
9568 19 jeremybenn
   test "X$hardcode_automatic" = "Xyes" ; then
9569
 
9570 82 jeremybenn
  # We can hardcode non-existent directories.
9571 19 jeremybenn
  if test "$hardcode_direct" != no &&
9572
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9573
     # have to relink, otherwise we might link with an installed library
9574
     # when we should be linking with a yet-to-be-installed one
9575 82 jeremybenn
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9576 19 jeremybenn
     test "$hardcode_minus_L" != no; then
9577
    # Linking always hardcodes the temporary library directory.
9578
    hardcode_action=relink
9579
  else
9580
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9581
    hardcode_action=immediate
9582
  fi
9583
else
9584
  # We cannot hardcode anything, or else we can only hardcode existing
9585
  # directories.
9586
  hardcode_action=unsupported
9587
fi
9588 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9589
$as_echo "$hardcode_action" >&6; }
9590 19 jeremybenn
 
9591 82 jeremybenn
if test "$hardcode_action" = relink ||
9592
   test "$inherit_rpath" = yes; then
9593 19 jeremybenn
  # Fast installation is not supported
9594
  enable_fast_install=no
9595
elif test "$shlibpath_overrides_runpath" = yes ||
9596
     test "$enable_shared" = no; then
9597
  # Fast installation is not necessary
9598
  enable_fast_install=needless
9599
fi
9600
 
9601
 
9602 82 jeremybenn
 
9603
 
9604
 
9605
 
9606
  if test "x$enable_dlopen" != xyes; then
9607 19 jeremybenn
  enable_dlopen=unknown
9608
  enable_dlopen_self=unknown
9609
  enable_dlopen_self_static=unknown
9610
else
9611
  lt_cv_dlopen=no
9612
  lt_cv_dlopen_libs=
9613
 
9614
  case $host_os in
9615
  beos*)
9616
    lt_cv_dlopen="load_add_on"
9617
    lt_cv_dlopen_libs=
9618
    lt_cv_dlopen_self=yes
9619
    ;;
9620
 
9621 82 jeremybenn
  mingw* | pw32* | cegcc*)
9622 19 jeremybenn
    lt_cv_dlopen="LoadLibrary"
9623
    lt_cv_dlopen_libs=
9624 82 jeremybenn
    ;;
9625 19 jeremybenn
 
9626
  cygwin*)
9627
    lt_cv_dlopen="dlopen"
9628
    lt_cv_dlopen_libs=
9629 82 jeremybenn
    ;;
9630 19 jeremybenn
 
9631
  darwin*)
9632
  # if libdl is installed we need to link against it
9633 82 jeremybenn
    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9634
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9635 19 jeremybenn
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9636 82 jeremybenn
  $as_echo_n "(cached) " >&6
9637 19 jeremybenn
else
9638
  ac_check_lib_save_LIBS=$LIBS
9639
LIBS="-ldl  $LIBS"
9640
cat >conftest.$ac_ext <<_ACEOF
9641
/* confdefs.h.  */
9642
_ACEOF
9643
cat confdefs.h >>conftest.$ac_ext
9644
cat >>conftest.$ac_ext <<_ACEOF
9645
/* end confdefs.h.  */
9646
 
9647
/* Override any GCC internal prototype to avoid an error.
9648
   Use char because int might match the return type of a GCC
9649
   builtin and then its argument prototype would still apply.  */
9650
#ifdef __cplusplus
9651
extern "C"
9652
#endif
9653
char dlopen ();
9654
int
9655
main ()
9656
{
9657
return dlopen ();
9658
  ;
9659
  return 0;
9660
}
9661
_ACEOF
9662
rm -f conftest.$ac_objext conftest$ac_exeext
9663
if { (ac_try="$ac_link"
9664
case "(($ac_try" in
9665
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9666
  *) ac_try_echo=$ac_try;;
9667
esac
9668 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9669
$as_echo "$ac_try_echo") >&5
9670 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
9671
  ac_status=$?
9672
  grep -v '^ *+' conftest.er1 >conftest.err
9673
  rm -f conftest.er1
9674
  cat conftest.err >&5
9675 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 19 jeremybenn
  (exit $ac_status); } && {
9677
         test -z "$ac_c_werror_flag" ||
9678
         test ! -s conftest.err
9679 82 jeremybenn
       } && test -s conftest$ac_exeext && {
9680
         test "$cross_compiling" = yes ||
9681
         $as_test_x conftest$ac_exeext
9682
       }; then
9683 19 jeremybenn
  ac_cv_lib_dl_dlopen=yes
9684
else
9685 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
9686 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
9687
 
9688
        ac_cv_lib_dl_dlopen=no
9689
fi
9690
 
9691 82 jeremybenn
rm -rf conftest.dSYM
9692 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9693
      conftest$ac_exeext conftest.$ac_ext
9694
LIBS=$ac_check_lib_save_LIBS
9695
fi
9696 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9697
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9698
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9699 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9700
else
9701
 
9702
    lt_cv_dlopen="dyld"
9703
    lt_cv_dlopen_libs=
9704
    lt_cv_dlopen_self=yes
9705
 
9706
fi
9707
 
9708 82 jeremybenn
    ;;
9709 19 jeremybenn
 
9710
  *)
9711 82 jeremybenn
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9712
$as_echo_n "checking for shl_load... " >&6; }
9713 19 jeremybenn
if test "${ac_cv_func_shl_load+set}" = set; then
9714 82 jeremybenn
  $as_echo_n "(cached) " >&6
9715 19 jeremybenn
else
9716
  cat >conftest.$ac_ext <<_ACEOF
9717
/* confdefs.h.  */
9718
_ACEOF
9719
cat confdefs.h >>conftest.$ac_ext
9720
cat >>conftest.$ac_ext <<_ACEOF
9721
/* end confdefs.h.  */
9722
/* Define shl_load to an innocuous variant, in case  declares shl_load.
9723
   For example, HP-UX 11i  declares gettimeofday.  */
9724
#define shl_load innocuous_shl_load
9725
 
9726
/* System header to define __stub macros and hopefully few prototypes,
9727
    which can conflict with char shl_load (); below.
9728
    Prefer  to  if __STDC__ is defined, since
9729
     exists even on freestanding compilers.  */
9730
 
9731
#ifdef __STDC__
9732
# include 
9733
#else
9734
# include 
9735
#endif
9736
 
9737
#undef shl_load
9738
 
9739
/* Override any GCC internal prototype to avoid an error.
9740
   Use char because int might match the return type of a GCC
9741
   builtin and then its argument prototype would still apply.  */
9742
#ifdef __cplusplus
9743
extern "C"
9744
#endif
9745
char shl_load ();
9746
/* The GNU C library defines this for functions which it implements
9747
    to always fail with ENOSYS.  Some functions are actually named
9748
    something starting with __ and the normal name is an alias.  */
9749
#if defined __stub_shl_load || defined __stub___shl_load
9750
choke me
9751
#endif
9752
 
9753
int
9754
main ()
9755
{
9756
return shl_load ();
9757
  ;
9758
  return 0;
9759
}
9760
_ACEOF
9761
rm -f conftest.$ac_objext conftest$ac_exeext
9762
if { (ac_try="$ac_link"
9763
case "(($ac_try" in
9764
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9765
  *) ac_try_echo=$ac_try;;
9766
esac
9767 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9768
$as_echo "$ac_try_echo") >&5
9769 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
9770
  ac_status=$?
9771
  grep -v '^ *+' conftest.er1 >conftest.err
9772
  rm -f conftest.er1
9773
  cat conftest.err >&5
9774 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 19 jeremybenn
  (exit $ac_status); } && {
9776
         test -z "$ac_c_werror_flag" ||
9777
         test ! -s conftest.err
9778 82 jeremybenn
       } && test -s conftest$ac_exeext && {
9779
         test "$cross_compiling" = yes ||
9780
         $as_test_x conftest$ac_exeext
9781
       }; then
9782 19 jeremybenn
  ac_cv_func_shl_load=yes
9783
else
9784 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
9785 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
9786
 
9787
        ac_cv_func_shl_load=no
9788
fi
9789
 
9790 82 jeremybenn
rm -rf conftest.dSYM
9791 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9792
      conftest$ac_exeext conftest.$ac_ext
9793
fi
9794 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9795
$as_echo "$ac_cv_func_shl_load" >&6; }
9796
if test "x$ac_cv_func_shl_load" = x""yes; then
9797 19 jeremybenn
  lt_cv_dlopen="shl_load"
9798
else
9799 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9800
$as_echo_n "checking for shl_load in -ldld... " >&6; }
9801 19 jeremybenn
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9802 82 jeremybenn
  $as_echo_n "(cached) " >&6
9803 19 jeremybenn
else
9804
  ac_check_lib_save_LIBS=$LIBS
9805
LIBS="-ldld  $LIBS"
9806
cat >conftest.$ac_ext <<_ACEOF
9807
/* confdefs.h.  */
9808
_ACEOF
9809
cat confdefs.h >>conftest.$ac_ext
9810
cat >>conftest.$ac_ext <<_ACEOF
9811
/* end confdefs.h.  */
9812
 
9813
/* Override any GCC internal prototype to avoid an error.
9814
   Use char because int might match the return type of a GCC
9815
   builtin and then its argument prototype would still apply.  */
9816
#ifdef __cplusplus
9817
extern "C"
9818
#endif
9819
char shl_load ();
9820
int
9821
main ()
9822
{
9823
return shl_load ();
9824
  ;
9825
  return 0;
9826
}
9827
_ACEOF
9828
rm -f conftest.$ac_objext conftest$ac_exeext
9829
if { (ac_try="$ac_link"
9830
case "(($ac_try" in
9831
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9832
  *) ac_try_echo=$ac_try;;
9833
esac
9834 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9835
$as_echo "$ac_try_echo") >&5
9836 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
9837
  ac_status=$?
9838
  grep -v '^ *+' conftest.er1 >conftest.err
9839
  rm -f conftest.er1
9840
  cat conftest.err >&5
9841 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 19 jeremybenn
  (exit $ac_status); } && {
9843
         test -z "$ac_c_werror_flag" ||
9844
         test ! -s conftest.err
9845 82 jeremybenn
       } && test -s conftest$ac_exeext && {
9846
         test "$cross_compiling" = yes ||
9847
         $as_test_x conftest$ac_exeext
9848
       }; then
9849 19 jeremybenn
  ac_cv_lib_dld_shl_load=yes
9850
else
9851 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
9852 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
9853
 
9854
        ac_cv_lib_dld_shl_load=no
9855
fi
9856
 
9857 82 jeremybenn
rm -rf conftest.dSYM
9858 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9859
      conftest$ac_exeext conftest.$ac_ext
9860
LIBS=$ac_check_lib_save_LIBS
9861
fi
9862 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9863
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9864
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
9865
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9866 19 jeremybenn
else
9867 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
9868
$as_echo_n "checking for dlopen... " >&6; }
9869 19 jeremybenn
if test "${ac_cv_func_dlopen+set}" = set; then
9870 82 jeremybenn
  $as_echo_n "(cached) " >&6
9871 19 jeremybenn
else
9872
  cat >conftest.$ac_ext <<_ACEOF
9873
/* confdefs.h.  */
9874
_ACEOF
9875
cat confdefs.h >>conftest.$ac_ext
9876
cat >>conftest.$ac_ext <<_ACEOF
9877
/* end confdefs.h.  */
9878
/* Define dlopen to an innocuous variant, in case  declares dlopen.
9879
   For example, HP-UX 11i  declares gettimeofday.  */
9880
#define dlopen innocuous_dlopen
9881
 
9882
/* System header to define __stub macros and hopefully few prototypes,
9883
    which can conflict with char dlopen (); below.
9884
    Prefer  to  if __STDC__ is defined, since
9885
     exists even on freestanding compilers.  */
9886
 
9887
#ifdef __STDC__
9888
# include 
9889
#else
9890
# include 
9891
#endif
9892
 
9893
#undef dlopen
9894
 
9895
/* Override any GCC internal prototype to avoid an error.
9896
   Use char because int might match the return type of a GCC
9897
   builtin and then its argument prototype would still apply.  */
9898
#ifdef __cplusplus
9899
extern "C"
9900
#endif
9901
char dlopen ();
9902
/* The GNU C library defines this for functions which it implements
9903
    to always fail with ENOSYS.  Some functions are actually named
9904
    something starting with __ and the normal name is an alias.  */
9905
#if defined __stub_dlopen || defined __stub___dlopen
9906
choke me
9907
#endif
9908
 
9909
int
9910
main ()
9911
{
9912
return dlopen ();
9913
  ;
9914
  return 0;
9915
}
9916
_ACEOF
9917
rm -f conftest.$ac_objext conftest$ac_exeext
9918
if { (ac_try="$ac_link"
9919
case "(($ac_try" in
9920
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9921
  *) ac_try_echo=$ac_try;;
9922
esac
9923 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9924
$as_echo "$ac_try_echo") >&5
9925 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
9926
  ac_status=$?
9927
  grep -v '^ *+' conftest.er1 >conftest.err
9928
  rm -f conftest.er1
9929
  cat conftest.err >&5
9930 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 19 jeremybenn
  (exit $ac_status); } && {
9932
         test -z "$ac_c_werror_flag" ||
9933
         test ! -s conftest.err
9934 82 jeremybenn
       } && test -s conftest$ac_exeext && {
9935
         test "$cross_compiling" = yes ||
9936
         $as_test_x conftest$ac_exeext
9937
       }; then
9938 19 jeremybenn
  ac_cv_func_dlopen=yes
9939
else
9940 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
9941 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
9942
 
9943
        ac_cv_func_dlopen=no
9944
fi
9945
 
9946 82 jeremybenn
rm -rf conftest.dSYM
9947 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9948
      conftest$ac_exeext conftest.$ac_ext
9949
fi
9950 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9951
$as_echo "$ac_cv_func_dlopen" >&6; }
9952
if test "x$ac_cv_func_dlopen" = x""yes; then
9953 19 jeremybenn
  lt_cv_dlopen="dlopen"
9954
else
9955 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9956
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9957 19 jeremybenn
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9958 82 jeremybenn
  $as_echo_n "(cached) " >&6
9959 19 jeremybenn
else
9960
  ac_check_lib_save_LIBS=$LIBS
9961
LIBS="-ldl  $LIBS"
9962
cat >conftest.$ac_ext <<_ACEOF
9963
/* confdefs.h.  */
9964
_ACEOF
9965
cat confdefs.h >>conftest.$ac_ext
9966
cat >>conftest.$ac_ext <<_ACEOF
9967
/* end confdefs.h.  */
9968
 
9969
/* Override any GCC internal prototype to avoid an error.
9970
   Use char because int might match the return type of a GCC
9971
   builtin and then its argument prototype would still apply.  */
9972
#ifdef __cplusplus
9973
extern "C"
9974
#endif
9975
char dlopen ();
9976
int
9977
main ()
9978
{
9979
return dlopen ();
9980
  ;
9981
  return 0;
9982
}
9983
_ACEOF
9984
rm -f conftest.$ac_objext conftest$ac_exeext
9985
if { (ac_try="$ac_link"
9986
case "(($ac_try" in
9987
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9988
  *) ac_try_echo=$ac_try;;
9989
esac
9990 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9991
$as_echo "$ac_try_echo") >&5
9992 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
9993
  ac_status=$?
9994
  grep -v '^ *+' conftest.er1 >conftest.err
9995
  rm -f conftest.er1
9996
  cat conftest.err >&5
9997 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 19 jeremybenn
  (exit $ac_status); } && {
9999
         test -z "$ac_c_werror_flag" ||
10000
         test ! -s conftest.err
10001 82 jeremybenn
       } && test -s conftest$ac_exeext && {
10002
         test "$cross_compiling" = yes ||
10003
         $as_test_x conftest$ac_exeext
10004
       }; then
10005 19 jeremybenn
  ac_cv_lib_dl_dlopen=yes
10006
else
10007 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10008 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10009
 
10010
        ac_cv_lib_dl_dlopen=no
10011
fi
10012
 
10013 82 jeremybenn
rm -rf conftest.dSYM
10014 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10015
      conftest$ac_exeext conftest.$ac_ext
10016
LIBS=$ac_check_lib_save_LIBS
10017
fi
10018 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10019
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10020
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10021 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10022
else
10023 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10024
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10025 19 jeremybenn
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10026 82 jeremybenn
  $as_echo_n "(cached) " >&6
10027 19 jeremybenn
else
10028
  ac_check_lib_save_LIBS=$LIBS
10029
LIBS="-lsvld  $LIBS"
10030
cat >conftest.$ac_ext <<_ACEOF
10031
/* confdefs.h.  */
10032
_ACEOF
10033
cat confdefs.h >>conftest.$ac_ext
10034
cat >>conftest.$ac_ext <<_ACEOF
10035
/* end confdefs.h.  */
10036
 
10037
/* Override any GCC internal prototype to avoid an error.
10038
   Use char because int might match the return type of a GCC
10039
   builtin and then its argument prototype would still apply.  */
10040
#ifdef __cplusplus
10041
extern "C"
10042
#endif
10043
char dlopen ();
10044
int
10045
main ()
10046
{
10047
return dlopen ();
10048
  ;
10049
  return 0;
10050
}
10051
_ACEOF
10052
rm -f conftest.$ac_objext conftest$ac_exeext
10053
if { (ac_try="$ac_link"
10054
case "(($ac_try" in
10055
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10056
  *) ac_try_echo=$ac_try;;
10057
esac
10058 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10059
$as_echo "$ac_try_echo") >&5
10060 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
10061
  ac_status=$?
10062
  grep -v '^ *+' conftest.er1 >conftest.err
10063
  rm -f conftest.er1
10064
  cat conftest.err >&5
10065 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 19 jeremybenn
  (exit $ac_status); } && {
10067
         test -z "$ac_c_werror_flag" ||
10068
         test ! -s conftest.err
10069 82 jeremybenn
       } && test -s conftest$ac_exeext && {
10070
         test "$cross_compiling" = yes ||
10071
         $as_test_x conftest$ac_exeext
10072
       }; then
10073 19 jeremybenn
  ac_cv_lib_svld_dlopen=yes
10074
else
10075 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10076 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10077
 
10078
        ac_cv_lib_svld_dlopen=no
10079
fi
10080
 
10081 82 jeremybenn
rm -rf conftest.dSYM
10082 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10083
      conftest$ac_exeext conftest.$ac_ext
10084
LIBS=$ac_check_lib_save_LIBS
10085
fi
10086 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10087
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10088
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10089 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10090
else
10091 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10092
$as_echo_n "checking for dld_link in -ldld... " >&6; }
10093 19 jeremybenn
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10094 82 jeremybenn
  $as_echo_n "(cached) " >&6
10095 19 jeremybenn
else
10096
  ac_check_lib_save_LIBS=$LIBS
10097
LIBS="-ldld  $LIBS"
10098
cat >conftest.$ac_ext <<_ACEOF
10099
/* confdefs.h.  */
10100
_ACEOF
10101
cat confdefs.h >>conftest.$ac_ext
10102
cat >>conftest.$ac_ext <<_ACEOF
10103
/* end confdefs.h.  */
10104
 
10105
/* Override any GCC internal prototype to avoid an error.
10106
   Use char because int might match the return type of a GCC
10107
   builtin and then its argument prototype would still apply.  */
10108
#ifdef __cplusplus
10109
extern "C"
10110
#endif
10111
char dld_link ();
10112
int
10113
main ()
10114
{
10115
return dld_link ();
10116
  ;
10117
  return 0;
10118
}
10119
_ACEOF
10120
rm -f conftest.$ac_objext conftest$ac_exeext
10121
if { (ac_try="$ac_link"
10122
case "(($ac_try" in
10123
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10124
  *) ac_try_echo=$ac_try;;
10125
esac
10126 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10127
$as_echo "$ac_try_echo") >&5
10128 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
10129
  ac_status=$?
10130
  grep -v '^ *+' conftest.er1 >conftest.err
10131
  rm -f conftest.er1
10132
  cat conftest.err >&5
10133 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 19 jeremybenn
  (exit $ac_status); } && {
10135
         test -z "$ac_c_werror_flag" ||
10136
         test ! -s conftest.err
10137 82 jeremybenn
       } && test -s conftest$ac_exeext && {
10138
         test "$cross_compiling" = yes ||
10139
         $as_test_x conftest$ac_exeext
10140
       }; then
10141 19 jeremybenn
  ac_cv_lib_dld_dld_link=yes
10142
else
10143 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10144 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10145
 
10146
        ac_cv_lib_dld_dld_link=no
10147
fi
10148
 
10149 82 jeremybenn
rm -rf conftest.dSYM
10150 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10151
      conftest$ac_exeext conftest.$ac_ext
10152
LIBS=$ac_check_lib_save_LIBS
10153
fi
10154 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10155
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10156
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10157
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10158 19 jeremybenn
fi
10159
 
10160
 
10161
fi
10162
 
10163
 
10164
fi
10165
 
10166
 
10167
fi
10168
 
10169
 
10170
fi
10171
 
10172
 
10173
fi
10174
 
10175
    ;;
10176
  esac
10177
 
10178
  if test "x$lt_cv_dlopen" != xno; then
10179
    enable_dlopen=yes
10180
  else
10181
    enable_dlopen=no
10182
  fi
10183
 
10184
  case $lt_cv_dlopen in
10185
  dlopen)
10186
    save_CPPFLAGS="$CPPFLAGS"
10187
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10188
 
10189
    save_LDFLAGS="$LDFLAGS"
10190
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10191
 
10192
    save_LIBS="$LIBS"
10193
    LIBS="$lt_cv_dlopen_libs $LIBS"
10194
 
10195 82 jeremybenn
    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10196
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10197 19 jeremybenn
if test "${lt_cv_dlopen_self+set}" = set; then
10198 82 jeremybenn
  $as_echo_n "(cached) " >&6
10199 19 jeremybenn
else
10200
          if test "$cross_compiling" = yes; then :
10201
  lt_cv_dlopen_self=cross
10202
else
10203
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10204
  lt_status=$lt_dlunknown
10205 82 jeremybenn
  cat > conftest.$ac_ext <<_LT_EOF
10206 90 jeremybenn
#line 10206 "configure"
10207 19 jeremybenn
#include "confdefs.h"
10208
 
10209
#if HAVE_DLFCN_H
10210
#include 
10211
#endif
10212
 
10213
#include 
10214
 
10215
#ifdef RTLD_GLOBAL
10216
#  define LT_DLGLOBAL           RTLD_GLOBAL
10217
#else
10218
#  ifdef DL_GLOBAL
10219
#    define LT_DLGLOBAL         DL_GLOBAL
10220
#  else
10221
#    define LT_DLGLOBAL         0
10222
#  endif
10223
#endif
10224
 
10225
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10226
   find out it does not work in some platform. */
10227
#ifndef LT_DLLAZY_OR_NOW
10228
#  ifdef RTLD_LAZY
10229
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10230
#  else
10231
#    ifdef DL_LAZY
10232
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10233
#    else
10234
#      ifdef RTLD_NOW
10235
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10236
#      else
10237
#        ifdef DL_NOW
10238
#          define LT_DLLAZY_OR_NOW      DL_NOW
10239
#        else
10240
#          define LT_DLLAZY_OR_NOW      0
10241
#        endif
10242
#      endif
10243
#    endif
10244
#  endif
10245
#endif
10246
 
10247
void fnord() { int i=42;}
10248
int main ()
10249
{
10250
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10251
  int status = $lt_dlunknown;
10252
 
10253
  if (self)
10254
    {
10255
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10256
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10257
      /* dlclose (self); */
10258
    }
10259
  else
10260
    puts (dlerror ());
10261
 
10262 82 jeremybenn
  return status;
10263 19 jeremybenn
}
10264 82 jeremybenn
_LT_EOF
10265 19 jeremybenn
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10266
  (eval $ac_link) 2>&5
10267
  ac_status=$?
10268 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 19 jeremybenn
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10270
    (./conftest; exit; ) >&5 2>/dev/null
10271
    lt_status=$?
10272
    case x$lt_status in
10273
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10274
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10275
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10276
    esac
10277
  else :
10278
    # compilation failed
10279
    lt_cv_dlopen_self=no
10280
  fi
10281
fi
10282
rm -fr conftest*
10283
 
10284
 
10285
fi
10286 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10287
$as_echo "$lt_cv_dlopen_self" >&6; }
10288 19 jeremybenn
 
10289
    if test "x$lt_cv_dlopen_self" = xyes; then
10290
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10291 82 jeremybenn
      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10292
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10293 19 jeremybenn
if test "${lt_cv_dlopen_self_static+set}" = set; then
10294 82 jeremybenn
  $as_echo_n "(cached) " >&6
10295 19 jeremybenn
else
10296
          if test "$cross_compiling" = yes; then :
10297
  lt_cv_dlopen_self_static=cross
10298
else
10299
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10300
  lt_status=$lt_dlunknown
10301 82 jeremybenn
  cat > conftest.$ac_ext <<_LT_EOF
10302 90 jeremybenn
#line 10302 "configure"
10303 19 jeremybenn
#include "confdefs.h"
10304
 
10305
#if HAVE_DLFCN_H
10306
#include 
10307
#endif
10308
 
10309
#include 
10310
 
10311
#ifdef RTLD_GLOBAL
10312
#  define LT_DLGLOBAL           RTLD_GLOBAL
10313
#else
10314
#  ifdef DL_GLOBAL
10315
#    define LT_DLGLOBAL         DL_GLOBAL
10316
#  else
10317
#    define LT_DLGLOBAL         0
10318
#  endif
10319
#endif
10320
 
10321
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10322
   find out it does not work in some platform. */
10323
#ifndef LT_DLLAZY_OR_NOW
10324
#  ifdef RTLD_LAZY
10325
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10326
#  else
10327
#    ifdef DL_LAZY
10328
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10329
#    else
10330
#      ifdef RTLD_NOW
10331
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10332
#      else
10333
#        ifdef DL_NOW
10334
#          define LT_DLLAZY_OR_NOW      DL_NOW
10335
#        else
10336
#          define LT_DLLAZY_OR_NOW      0
10337
#        endif
10338
#      endif
10339
#    endif
10340
#  endif
10341
#endif
10342
 
10343
void fnord() { int i=42;}
10344
int main ()
10345
{
10346
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10347
  int status = $lt_dlunknown;
10348
 
10349
  if (self)
10350
    {
10351
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10352
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10353
      /* dlclose (self); */
10354
    }
10355
  else
10356
    puts (dlerror ());
10357
 
10358 82 jeremybenn
  return status;
10359 19 jeremybenn
}
10360 82 jeremybenn
_LT_EOF
10361 19 jeremybenn
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10362
  (eval $ac_link) 2>&5
10363
  ac_status=$?
10364 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 19 jeremybenn
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10366
    (./conftest; exit; ) >&5 2>/dev/null
10367
    lt_status=$?
10368
    case x$lt_status in
10369
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10370
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10371
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10372
    esac
10373
  else :
10374
    # compilation failed
10375
    lt_cv_dlopen_self_static=no
10376
  fi
10377
fi
10378
rm -fr conftest*
10379
 
10380
 
10381
fi
10382 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10383
$as_echo "$lt_cv_dlopen_self_static" >&6; }
10384 19 jeremybenn
    fi
10385
 
10386
    CPPFLAGS="$save_CPPFLAGS"
10387
    LDFLAGS="$save_LDFLAGS"
10388
    LIBS="$save_LIBS"
10389
    ;;
10390
  esac
10391
 
10392
  case $lt_cv_dlopen_self in
10393
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10394
  *) enable_dlopen_self=unknown ;;
10395
  esac
10396
 
10397
  case $lt_cv_dlopen_self_static in
10398
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10399
  *) enable_dlopen_self_static=unknown ;;
10400
  esac
10401
fi
10402
 
10403
 
10404
 
10405
 
10406
 
10407
 
10408
 
10409
 
10410
 
10411
 
10412
 
10413
 
10414
 
10415
 
10416
 
10417
 
10418
 
10419 82 jeremybenn
striplib=
10420
old_striplib=
10421
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10422
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10423
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10424
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10425
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10426
  { $as_echo "$as_me:$LINENO: result: yes" >&5
10427
$as_echo "yes" >&6; }
10428
else
10429
# FIXME - insert some real tests, host_os isn't really good enough
10430 19 jeremybenn
  case $host_os in
10431 82 jeremybenn
  darwin*)
10432
    if test -n "$STRIP" ; then
10433
      striplib="$STRIP -x"
10434
      old_striplib="$STRIP -S"
10435
      { $as_echo "$as_me:$LINENO: result: yes" >&5
10436
$as_echo "yes" >&6; }
10437 19 jeremybenn
    else
10438 82 jeremybenn
      { $as_echo "$as_me:$LINENO: result: no" >&5
10439
$as_echo "no" >&6; }
10440 19 jeremybenn
    fi
10441
    ;;
10442
  *)
10443 82 jeremybenn
    { $as_echo "$as_me:$LINENO: result: no" >&5
10444
$as_echo "no" >&6; }
10445 19 jeremybenn
    ;;
10446
  esac
10447
fi
10448
 
10449
 
10450
 
10451
 
10452
 
10453
 
10454
 
10455
 
10456
 
10457
 
10458
 
10459
 
10460 82 jeremybenn
  # Report which library types will actually be built
10461
  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10462
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10463
  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10464
$as_echo "$can_build_shared" >&6; }
10465 19 jeremybenn
 
10466 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10467
$as_echo_n "checking whether to build shared libraries... " >&6; }
10468
  test "$can_build_shared" = "no" && enable_shared=no
10469 19 jeremybenn
 
10470 82 jeremybenn
  # On AIX, shared libraries and static libraries use the same namespace, and
10471
  # are all built from PIC.
10472 19 jeremybenn
  case $host_os in
10473 82 jeremybenn
  aix3*)
10474 19 jeremybenn
    test "$enable_shared" = yes && enable_static=no
10475 82 jeremybenn
    if test -n "$RANLIB"; then
10476
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10477
      postinstall_cmds='$RANLIB $lib'
10478 19 jeremybenn
    fi
10479
    ;;
10480
 
10481 82 jeremybenn
  aix[4-9]*)
10482
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10483
      test "$enable_shared" = yes && enable_static=no
10484 19 jeremybenn
    fi
10485
    ;;
10486
  esac
10487 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10488
$as_echo "$enable_shared" >&6; }
10489 19 jeremybenn
 
10490 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10491
$as_echo_n "checking whether to build static libraries... " >&6; }
10492
  # Make sure either enable_shared or enable_static is yes.
10493
  test "$enable_shared" = yes || enable_static=yes
10494
  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10495
$as_echo "$enable_static" >&6; }
10496 19 jeremybenn
 
10497
 
10498
 
10499
 
10500
fi
10501
ac_ext=c
10502
ac_cpp='$CPP $CPPFLAGS'
10503
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10504
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10505
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10506
 
10507
CC="$lt_save_CC"
10508
 
10509
 
10510
 
10511
 
10512
 
10513
 
10514
 
10515
 
10516
 
10517
 
10518
 
10519
 
10520
 
10521 82 jeremybenn
        ac_config_commands="$ac_config_commands libtool"
10522 19 jeremybenn
 
10523
 
10524
 
10525
 
10526 82 jeremybenn
# Only expand once:
10527 19 jeremybenn
 
10528
 
10529 82 jeremybenn
am__api_version='1.11'
10530 19 jeremybenn
 
10531
# Find a good install program.  We prefer a C program (faster),
10532
# so one script is as good as another.  But avoid the broken or
10533
# incompatible versions:
10534
# SysV /etc/install, /usr/sbin/install
10535
# SunOS /usr/etc/install
10536
# IRIX /sbin/install
10537
# AIX /bin/install
10538
# AmigaOS /C/install, which installs bootblocks on floppy discs
10539
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10540
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10541
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10542
# OS/2's system install, which has a completely different semantic
10543
# ./install, which can be erroneously created by make from ./install.sh.
10544 82 jeremybenn
# Reject install programs that cannot install multiple files.
10545
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10546
$as_echo_n "checking for a BSD-compatible install... " >&6; }
10547 19 jeremybenn
if test -z "$INSTALL"; then
10548
if test "${ac_cv_path_install+set}" = set; then
10549 82 jeremybenn
  $as_echo_n "(cached) " >&6
10550 19 jeremybenn
else
10551
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10552
for as_dir in $PATH
10553
do
10554
  IFS=$as_save_IFS
10555
  test -z "$as_dir" && as_dir=.
10556
  # Account for people who put trailing slashes in PATH elements.
10557
case $as_dir/ in
10558
  ./ | .// | /cC/* | \
10559
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10560
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10561
  /usr/ucb/* ) ;;
10562
  *)
10563
    # OSF1 and SCO ODT 3.0 have their own names for install.
10564
    # Don't use installbsd from OSF since it installs stuff as root
10565
    # by default.
10566
    for ac_prog in ginstall scoinst install; do
10567
      for ac_exec_ext in '' $ac_executable_extensions; do
10568
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10569
          if test $ac_prog = install &&
10570
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10571
            # AIX install.  It has an incompatible calling convention.
10572
            :
10573
          elif test $ac_prog = install &&
10574
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10575
            # program-specific install script used by HP pwplus--don't use.
10576
            :
10577
          else
10578 82 jeremybenn
            rm -rf conftest.one conftest.two conftest.dir
10579
            echo one > conftest.one
10580
            echo two > conftest.two
10581
            mkdir conftest.dir
10582
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10583
              test -s conftest.one && test -s conftest.two &&
10584
              test -s conftest.dir/conftest.one &&
10585
              test -s conftest.dir/conftest.two
10586
            then
10587
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10588
              break 3
10589
            fi
10590 19 jeremybenn
          fi
10591
        fi
10592
      done
10593
    done
10594
    ;;
10595
esac
10596 82 jeremybenn
 
10597 19 jeremybenn
done
10598
IFS=$as_save_IFS
10599
 
10600 82 jeremybenn
rm -rf conftest.one conftest.two conftest.dir
10601 19 jeremybenn
 
10602
fi
10603
  if test "${ac_cv_path_install+set}" = set; then
10604
    INSTALL=$ac_cv_path_install
10605
  else
10606
    # As a last resort, use the slow shell script.  Don't cache a
10607
    # value for INSTALL within a source directory, because that will
10608
    # break other packages using the cache if that directory is
10609
    # removed, or if the value is a relative name.
10610
    INSTALL=$ac_install_sh
10611
  fi
10612
fi
10613 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
10614
$as_echo "$INSTALL" >&6; }
10615 19 jeremybenn
 
10616
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10617
# It thinks the first close brace ends the variable substitution.
10618
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10619
 
10620
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10621
 
10622
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10623
 
10624 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
10625
$as_echo_n "checking whether build environment is sane... " >&6; }
10626 19 jeremybenn
# Just in case
10627
sleep 1
10628
echo timestamp > conftest.file
10629 82 jeremybenn
# Reject unsafe characters in $srcdir or the absolute working directory
10630
# name.  Accept space and tab only in the latter.
10631
am_lf='
10632
'
10633
case `pwd` in
10634
  *[\\\"\#\$\&\'\`$am_lf]*)
10635
    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
10636
$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
10637
   { (exit 1); exit 1; }; };;
10638
esac
10639
case $srcdir in
10640
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
10641
    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
10642
$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
10643
   { (exit 1); exit 1; }; };;
10644
esac
10645
 
10646 19 jeremybenn
# Do `set' in a subshell so we don't clobber the current shell's
10647
# arguments.  Must try -L first in case configure is actually a
10648
# symlink; some systems play weird games with the mod time of symlinks
10649
# (eg FreeBSD returns the mod time of the symlink's containing
10650
# directory).
10651
if (
10652 82 jeremybenn
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10653 19 jeremybenn
   if test "$*" = "X"; then
10654
      # -L didn't work.
10655 82 jeremybenn
      set X `ls -t "$srcdir/configure" conftest.file`
10656 19 jeremybenn
   fi
10657
   rm -f conftest.file
10658
   if test "$*" != "X $srcdir/configure conftest.file" \
10659
      && test "$*" != "X conftest.file $srcdir/configure"; then
10660
 
10661
      # If neither matched, then we have a broken ls.  This can happen
10662
      # if, for instance, CONFIG_SHELL is bash and it inherits a
10663
      # broken ls alias from the environment.  This has actually
10664
      # happened.  Such a system could not be considered "sane".
10665 82 jeremybenn
      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
10666 19 jeremybenn
alias in your environment" >&5
10667 82 jeremybenn
$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
10668 19 jeremybenn
alias in your environment" >&2;}
10669
   { (exit 1); exit 1; }; }
10670
   fi
10671
 
10672
   test "$2" = conftest.file
10673
   )
10674
then
10675
   # Ok.
10676
   :
10677
else
10678 82 jeremybenn
   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
10679 19 jeremybenn
Check your system clock" >&5
10680 82 jeremybenn
$as_echo "$as_me: error: newly created file is older than distributed files!
10681 19 jeremybenn
Check your system clock" >&2;}
10682
   { (exit 1); exit 1; }; }
10683
fi
10684 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: yes" >&5
10685
$as_echo "yes" >&6; }
10686 19 jeremybenn
test "$program_prefix" != NONE &&
10687
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
10688
# Use a double $ so make ignores it.
10689
test "$program_suffix" != NONE &&
10690
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
10691 82 jeremybenn
# Double any \ or $.
10692 19 jeremybenn
# By default was `s,x,x', remove it if useless.
10693 82 jeremybenn
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
10694
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
10695 19 jeremybenn
 
10696
# expand $ac_aux_dir to an absolute path
10697
am_aux_dir=`cd $ac_aux_dir && pwd`
10698
 
10699 82 jeremybenn
if test x"${MISSING+set}" != xset; then
10700
  case $am_aux_dir in
10701
  *\ * | *\     *)
10702
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10703
  *)
10704
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
10705
  esac
10706
fi
10707 19 jeremybenn
# Use eval to expand $SHELL
10708
if eval "$MISSING --run true"; then
10709
  am_missing_run="$MISSING --run "
10710
else
10711
  am_missing_run=
10712 82 jeremybenn
  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
10713
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
10714 19 jeremybenn
fi
10715
 
10716 82 jeremybenn
if test x"${install_sh}" != xset; then
10717
  case $am_aux_dir in
10718
  *\ * | *\     *)
10719
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10720
  *)
10721
    install_sh="\${SHELL} $am_aux_dir/install-sh"
10722
  esac
10723
fi
10724
 
10725
# Installed binaries are usually stripped using `strip' when the user
10726
# run `make install-strip'.  However `strip' might not be the right
10727
# tool to use in cross-compilation environments, therefore Automake
10728
# will honor the `STRIP' environment variable to overrule this program.
10729
if test "$cross_compiling" != no; then
10730
  if test -n "$ac_tool_prefix"; then
10731
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10732
set dummy ${ac_tool_prefix}strip; ac_word=$2
10733
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10734
$as_echo_n "checking for $ac_word... " >&6; }
10735
if test "${ac_cv_prog_STRIP+set}" = set; then
10736
  $as_echo_n "(cached) " >&6
10737
else
10738
  if test -n "$STRIP"; then
10739
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10740
else
10741
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10742
for as_dir in $PATH
10743
do
10744
  IFS=$as_save_IFS
10745
  test -z "$as_dir" && as_dir=.
10746
  for ac_exec_ext in '' $ac_executable_extensions; do
10747
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10748
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10749
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10750
    break 2
10751
  fi
10752
done
10753
done
10754
IFS=$as_save_IFS
10755
 
10756
fi
10757
fi
10758
STRIP=$ac_cv_prog_STRIP
10759
if test -n "$STRIP"; then
10760
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
10761
$as_echo "$STRIP" >&6; }
10762
else
10763
  { $as_echo "$as_me:$LINENO: result: no" >&5
10764
$as_echo "no" >&6; }
10765
fi
10766
 
10767
 
10768
fi
10769
if test -z "$ac_cv_prog_STRIP"; then
10770
  ac_ct_STRIP=$STRIP
10771
  # Extract the first word of "strip", so it can be a program name with args.
10772
set dummy strip; ac_word=$2
10773
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10774
$as_echo_n "checking for $ac_word... " >&6; }
10775
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
10776
  $as_echo_n "(cached) " >&6
10777
else
10778
  if test -n "$ac_ct_STRIP"; then
10779
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10780
else
10781
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10782
for as_dir in $PATH
10783
do
10784
  IFS=$as_save_IFS
10785
  test -z "$as_dir" && as_dir=.
10786
  for ac_exec_ext in '' $ac_executable_extensions; do
10787
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10788
    ac_cv_prog_ac_ct_STRIP="strip"
10789
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10790
    break 2
10791
  fi
10792
done
10793
done
10794
IFS=$as_save_IFS
10795
 
10796
fi
10797
fi
10798
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10799
if test -n "$ac_ct_STRIP"; then
10800
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
10801
$as_echo "$ac_ct_STRIP" >&6; }
10802
else
10803
  { $as_echo "$as_me:$LINENO: result: no" >&5
10804
$as_echo "no" >&6; }
10805
fi
10806
 
10807
  if test "x$ac_ct_STRIP" = x; then
10808
    STRIP=":"
10809
  else
10810
    case $cross_compiling:$ac_tool_warned in
10811
yes:)
10812
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10813
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10814
ac_tool_warned=yes ;;
10815
esac
10816
    STRIP=$ac_ct_STRIP
10817
  fi
10818
else
10819
  STRIP="$ac_cv_prog_STRIP"
10820
fi
10821
 
10822
fi
10823
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10824
 
10825
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
10826
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10827 19 jeremybenn
if test -z "$MKDIR_P"; then
10828
  if test "${ac_cv_path_mkdir+set}" = set; then
10829 82 jeremybenn
  $as_echo_n "(cached) " >&6
10830 19 jeremybenn
else
10831
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10832
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10833
do
10834
  IFS=$as_save_IFS
10835
  test -z "$as_dir" && as_dir=.
10836
  for ac_prog in mkdir gmkdir; do
10837
         for ac_exec_ext in '' $ac_executable_extensions; do
10838
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
10839
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10840
             'mkdir (GNU coreutils) '* | \
10841
             'mkdir (coreutils) '* | \
10842
             'mkdir (fileutils) '4.1*)
10843
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10844
               break 3;;
10845
           esac
10846
         done
10847
       done
10848
done
10849
IFS=$as_save_IFS
10850
 
10851
fi
10852
 
10853
  if test "${ac_cv_path_mkdir+set}" = set; then
10854
    MKDIR_P="$ac_cv_path_mkdir -p"
10855
  else
10856
    # As a last resort, use the slow shell script.  Don't cache a
10857
    # value for MKDIR_P within a source directory, because that will
10858
    # break other packages using the cache if that directory is
10859
    # removed, or if the value is a relative name.
10860
    test -d ./--version && rmdir ./--version
10861
    MKDIR_P="$ac_install_sh -d"
10862
  fi
10863
fi
10864 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
10865
$as_echo "$MKDIR_P" >&6; }
10866 19 jeremybenn
 
10867
mkdir_p="$MKDIR_P"
10868
case $mkdir_p in
10869
  [\\/$]* | ?:[\\/]*) ;;
10870
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
10871
esac
10872
 
10873
for ac_prog in gawk mawk nawk awk
10874
do
10875
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10876
set dummy $ac_prog; ac_word=$2
10877 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10878
$as_echo_n "checking for $ac_word... " >&6; }
10879 19 jeremybenn
if test "${ac_cv_prog_AWK+set}" = set; then
10880 82 jeremybenn
  $as_echo_n "(cached) " >&6
10881 19 jeremybenn
else
10882
  if test -n "$AWK"; then
10883
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
10884
else
10885
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10886
for as_dir in $PATH
10887
do
10888
  IFS=$as_save_IFS
10889
  test -z "$as_dir" && as_dir=.
10890
  for ac_exec_ext in '' $ac_executable_extensions; do
10891
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10892
    ac_cv_prog_AWK="$ac_prog"
10893 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10894 19 jeremybenn
    break 2
10895
  fi
10896
done
10897
done
10898
IFS=$as_save_IFS
10899
 
10900
fi
10901
fi
10902
AWK=$ac_cv_prog_AWK
10903
if test -n "$AWK"; then
10904 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
10905
$as_echo "$AWK" >&6; }
10906 19 jeremybenn
else
10907 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
10908
$as_echo "no" >&6; }
10909 19 jeremybenn
fi
10910
 
10911
 
10912
  test -n "$AWK" && break
10913
done
10914
 
10915 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10916
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10917
set x ${MAKE-make}
10918
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10919 19 jeremybenn
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10920 82 jeremybenn
  $as_echo_n "(cached) " >&6
10921 19 jeremybenn
else
10922
  cat >conftest.make <<\_ACEOF
10923
SHELL = /bin/sh
10924
all:
10925
        @echo '@@@%%%=$(MAKE)=@@@%%%'
10926
_ACEOF
10927
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10928
case `${MAKE-make} -f conftest.make 2>/dev/null` in
10929
  *@@@%%%=?*=@@@%%%*)
10930
    eval ac_cv_prog_make_${ac_make}_set=yes;;
10931
  *)
10932
    eval ac_cv_prog_make_${ac_make}_set=no;;
10933
esac
10934
rm -f conftest.make
10935
fi
10936
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10937 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: yes" >&5
10938
$as_echo "yes" >&6; }
10939 19 jeremybenn
  SET_MAKE=
10940
else
10941 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
10942
$as_echo "no" >&6; }
10943 19 jeremybenn
  SET_MAKE="MAKE=${MAKE-make}"
10944
fi
10945
 
10946
rm -rf .tst 2>/dev/null
10947
mkdir .tst 2>/dev/null
10948
if test -d .tst; then
10949
  am__leading_dot=.
10950
else
10951
  am__leading_dot=_
10952
fi
10953
rmdir .tst 2>/dev/null
10954
 
10955
DEPDIR="${am__leading_dot}deps"
10956
 
10957
ac_config_commands="$ac_config_commands depfiles"
10958
 
10959
 
10960
am_make=${MAKE-make}
10961
cat > confinc << 'END'
10962
am__doit:
10963 82 jeremybenn
        @echo this is the am__doit target
10964 19 jeremybenn
.PHONY: am__doit
10965
END
10966
# If we don't find an include directive, just comment out the code.
10967 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
10968
$as_echo_n "checking for style of include used by $am_make... " >&6; }
10969 19 jeremybenn
am__include="#"
10970
am__quote=
10971
_am_result=none
10972
# First try GNU make style include.
10973
echo "include confinc" > confmf
10974 82 jeremybenn
# Ignore all kinds of additional output from `make'.
10975
case `$am_make -s -f confmf 2> /dev/null` in #(
10976
*the\ am__doit\ target*)
10977
  am__include=include
10978
  am__quote=
10979
  _am_result=GNU
10980
  ;;
10981
esac
10982 19 jeremybenn
# Now try BSD make style include.
10983
if test "$am__include" = "#"; then
10984
   echo '.include "confinc"' > confmf
10985 82 jeremybenn
   case `$am_make -s -f confmf 2> /dev/null` in #(
10986
   *the\ am__doit\ target*)
10987
     am__include=.include
10988
     am__quote="\""
10989
     _am_result=BSD
10990
     ;;
10991
   esac
10992 19 jeremybenn
fi
10993
 
10994
 
10995 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
10996
$as_echo "$_am_result" >&6; }
10997 19 jeremybenn
rm -f confinc confmf
10998
 
10999
# Check whether --enable-dependency-tracking was given.
11000
if test "${enable_dependency_tracking+set}" = set; then
11001
  enableval=$enable_dependency_tracking;
11002
fi
11003
 
11004
if test "x$enable_dependency_tracking" != xno; then
11005
  am_depcomp="$ac_aux_dir/depcomp"
11006
  AMDEPBACKSLASH='\'
11007
fi
11008
 if test "x$enable_dependency_tracking" != xno; then
11009
  AMDEP_TRUE=
11010
  AMDEP_FALSE='#'
11011
else
11012
  AMDEP_TRUE='#'
11013
  AMDEP_FALSE=
11014
fi
11015
 
11016
 
11017
if test "`cd $srcdir && pwd`" != "`pwd`"; then
11018
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
11019
  # is not polluted with repeated "-I."
11020
  am__isrc=' -I$(srcdir)'
11021
  # test to see if srcdir already configured
11022
  if test -f $srcdir/config.status; then
11023 82 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
11024
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
11025 19 jeremybenn
   { (exit 1); exit 1; }; }
11026
  fi
11027
fi
11028
 
11029
# test whether we have cygpath
11030
if test -z "$CYGPATH_W"; then
11031
  if (cygpath --version) >/dev/null 2>/dev/null; then
11032
    CYGPATH_W='cygpath -w'
11033
  else
11034
    CYGPATH_W=echo
11035
  fi
11036
fi
11037
 
11038
 
11039
# Define the identity of the package.
11040
 PACKAGE='or1ksim'
11041 89 jeremybenn
 VERSION='2010-04-21'
11042 19 jeremybenn
 
11043
 
11044
cat >>confdefs.h <<_ACEOF
11045
#define PACKAGE "$PACKAGE"
11046
_ACEOF
11047
 
11048
 
11049
cat >>confdefs.h <<_ACEOF
11050
#define VERSION "$VERSION"
11051
_ACEOF
11052
 
11053
# Some tools Automake needs.
11054
 
11055
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
11056
 
11057
 
11058
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
11059
 
11060
 
11061
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
11062
 
11063
 
11064
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
11065
 
11066
 
11067
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
11068
 
11069
# We need awk for the "check" target.  The system "awk" is bad on
11070
# some platforms.
11071
# Always define AMTAR for backward compatibility.
11072
 
11073
AMTAR=${AMTAR-"${am_missing_run}tar"}
11074
 
11075
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
11076
 
11077
 
11078
 
11079
 
11080
depcc="$CC"   am_compiler_list=
11081
 
11082 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11083
$as_echo_n "checking dependency style of $depcc... " >&6; }
11084 19 jeremybenn
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
11085 82 jeremybenn
  $as_echo_n "(cached) " >&6
11086 19 jeremybenn
else
11087
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11088
  # We make a subdir and do the tests there.  Otherwise we can end up
11089
  # making bogus files that we don't know about and never remove.  For
11090
  # instance it was reported that on HP-UX the gcc test will end up
11091
  # making a dummy file named `D' -- because `-MD' means `put the output
11092
  # in D'.
11093
  mkdir conftest.dir
11094
  # Copy depcomp to subdir because otherwise we won't find it if we're
11095
  # using a relative directory.
11096
  cp "$am_depcomp" conftest.dir
11097
  cd conftest.dir
11098
  # We will build objects and dependencies in a subdirectory because
11099
  # it helps to detect inapplicable dependency modes.  For instance
11100
  # both Tru64's cc and ICC support -MD to output dependencies as a
11101
  # side effect of compilation, but ICC will put the dependencies in
11102
  # the current directory while Tru64 will put them in the object
11103
  # directory.
11104
  mkdir sub
11105
 
11106
  am_cv_CC_dependencies_compiler_type=none
11107
  if test "$am_compiler_list" = ""; then
11108
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11109
  fi
11110 82 jeremybenn
  am__universal=false
11111
  case " $depcc " in #(
11112
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
11113
     esac
11114
 
11115 19 jeremybenn
  for depmode in $am_compiler_list; do
11116
    # Setup a source with many dependencies, because some compilers
11117
    # like to wrap large dependency lists on column 80 (with \), and
11118
    # we should not choose a depcomp mode which is confused by this.
11119
    #
11120
    # We need to recreate these files for each test, as the compiler may
11121
    # overwrite some of them when testing with obscure command lines.
11122
    # This happens at least with the AIX C compiler.
11123
    : > sub/conftest.c
11124
    for i in 1 2 3 4 5 6; do
11125
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11126
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11127
      # Solaris 8's {/usr,}/bin/sh.
11128
      touch sub/conftst$i.h
11129
    done
11130
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11131
 
11132 82 jeremybenn
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11133
    # mode.  It turns out that the SunPro C++ compiler does not properly
11134
    # handle `-M -o', and we need to detect this.  Also, some Intel
11135
    # versions had trouble with output in subdirs
11136
    am__obj=sub/conftest.${OBJEXT-o}
11137
    am__minus_obj="-o $am__obj"
11138 19 jeremybenn
    case $depmode in
11139 82 jeremybenn
    gcc)
11140
      # This depmode causes a compiler race in universal mode.
11141
      test "$am__universal" = false || continue
11142
      ;;
11143 19 jeremybenn
    nosideeffect)
11144
      # after this tag, mechanisms are not by side-effect, so they'll
11145
      # only be used when explicitly requested
11146
      if test "x$enable_dependency_tracking" = xyes; then
11147
        continue
11148
      else
11149
        break
11150
      fi
11151
      ;;
11152 82 jeremybenn
    msvisualcpp | msvcmsys)
11153
      # This compiler won't grok `-c -o', but also, the minuso test has
11154
      # not run yet.  These depmodes are late enough in the game, and
11155
      # so weak that their functioning should not be impacted.
11156
      am__obj=conftest.${OBJEXT-o}
11157
      am__minus_obj=
11158
      ;;
11159 19 jeremybenn
    none) break ;;
11160
    esac
11161
    if depmode=$depmode \
11162 82 jeremybenn
       source=sub/conftest.c object=$am__obj \
11163 19 jeremybenn
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11164 82 jeremybenn
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11165 19 jeremybenn
         >/dev/null 2>conftest.err &&
11166
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11167
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11168 82 jeremybenn
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11169 19 jeremybenn
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11170
      # icc doesn't choke on unknown options, it will just issue warnings
11171
      # or remarks (even with -Werror).  So we grep stderr for any message
11172
      # that says an option was ignored or not supported.
11173
      # When given -MP, icc 7.0 and 7.1 complain thusly:
11174
      #   icc: Command line warning: ignoring option '-M'; no argument required
11175
      # The diagnosis changed in icc 8.0:
11176
      #   icc: Command line remark: option '-MP' not supported
11177
      if (grep 'ignoring option' conftest.err ||
11178
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11179
        am_cv_CC_dependencies_compiler_type=$depmode
11180
        break
11181
      fi
11182
    fi
11183
  done
11184
 
11185
  cd ..
11186
  rm -rf conftest.dir
11187
else
11188
  am_cv_CC_dependencies_compiler_type=none
11189
fi
11190
 
11191
fi
11192 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
11193
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11194 19 jeremybenn
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11195
 
11196
 if
11197
  test "x$enable_dependency_tracking" != xno \
11198
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11199
  am__fastdepCC_TRUE=
11200
  am__fastdepCC_FALSE='#'
11201
else
11202
  am__fastdepCC_TRUE='#'
11203
  am__fastdepCC_FALSE=
11204
fi
11205
 
11206
 
11207
 
11208 82 jeremybenn
ac_config_headers="$ac_config_headers config.h"
11209
 
11210
 
11211
 
11212
 
11213
# make sure we are using a recent autoconf version
11214
 
11215
 
11216
# yuck.
11217
case "$target_cpu" in
11218
or32*)  CPU_ARCH=or32;
11219
        ARCH_ISA=OR32;
11220
 
11221
cat >>confdefs.h <<\_ACEOF
11222
#define OR32_TYPES 1
11223
_ACEOF
11224
;;
11225
dlx*)   CPU_ARCH=dlx;
11226
        ARCH_ISA=DLX;;
11227
*)      { $as_echo "$as_me:$LINENO: WARNING: Unknown target architecture $target_cpu: OR32 assumed" >&5
11228
$as_echo "$as_me: WARNING: Unknown target architecture $target_cpu: OR32 assumed" >&2;};
11229
        CPU_ARCH=or32;
11230
        ARCH_ISA=OR32;
11231
 
11232
cat >>confdefs.h <<\_ACEOF
11233
#define OR32_TYPES 1
11234
_ACEOF
11235
;;
11236
esac
11237
 
11238
# determine endianism from target CPU name. If it has "little" in the name,
11239
# then its litte endian, otherwise its big endian (default for OR1K)
11240
case "$target_cpu" in
11241
*little*)
11242
cat >>confdefs.h <<\_ACEOF
11243
#define OR32_LITTLE_ENDIAN 1
11244
_ACEOF
11245
;;
11246
       *)
11247
cat >>confdefs.h <<\_ACEOF
11248
#define OR32_BIG_ENDIAN 1
11249
_ACEOF
11250
;;
11251
esac
11252
 
11253
 
11254
 
11255
# Set the CFLAGS we want
11256
CFLAGS="$CFLAGS -g -Wall -Werror -O2 -D$ARCH_ISA"
11257
 
11258
# By default we simply use the C compiler to build assembly code.
11259
 
11260
test "${CCAS+set}" = set || CCAS=$CC
11261
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11262
 
11263
 
11264
 
11265
depcc="$CCAS"   am_compiler_list=
11266
 
11267
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11268
$as_echo_n "checking dependency style of $depcc... " >&6; }
11269
if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
11270
  $as_echo_n "(cached) " >&6
11271 19 jeremybenn
else
11272
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11273
  # We make a subdir and do the tests there.  Otherwise we can end up
11274
  # making bogus files that we don't know about and never remove.  For
11275
  # instance it was reported that on HP-UX the gcc test will end up
11276
  # making a dummy file named `D' -- because `-MD' means `put the output
11277
  # in D'.
11278
  mkdir conftest.dir
11279
  # Copy depcomp to subdir because otherwise we won't find it if we're
11280
  # using a relative directory.
11281
  cp "$am_depcomp" conftest.dir
11282
  cd conftest.dir
11283
  # We will build objects and dependencies in a subdirectory because
11284
  # it helps to detect inapplicable dependency modes.  For instance
11285
  # both Tru64's cc and ICC support -MD to output dependencies as a
11286
  # side effect of compilation, but ICC will put the dependencies in
11287
  # the current directory while Tru64 will put them in the object
11288
  # directory.
11289
  mkdir sub
11290
 
11291 82 jeremybenn
  am_cv_CCAS_dependencies_compiler_type=none
11292 19 jeremybenn
  if test "$am_compiler_list" = ""; then
11293
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11294
  fi
11295 82 jeremybenn
  am__universal=false
11296
 
11297
 
11298 19 jeremybenn
  for depmode in $am_compiler_list; do
11299
    # Setup a source with many dependencies, because some compilers
11300
    # like to wrap large dependency lists on column 80 (with \), and
11301
    # we should not choose a depcomp mode which is confused by this.
11302
    #
11303
    # We need to recreate these files for each test, as the compiler may
11304
    # overwrite some of them when testing with obscure command lines.
11305
    # This happens at least with the AIX C compiler.
11306
    : > sub/conftest.c
11307
    for i in 1 2 3 4 5 6; do
11308
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11309
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11310
      # Solaris 8's {/usr,}/bin/sh.
11311
      touch sub/conftst$i.h
11312
    done
11313
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11314
 
11315 82 jeremybenn
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11316
    # mode.  It turns out that the SunPro C++ compiler does not properly
11317
    # handle `-M -o', and we need to detect this.  Also, some Intel
11318
    # versions had trouble with output in subdirs
11319
    am__obj=sub/conftest.${OBJEXT-o}
11320
    am__minus_obj="-o $am__obj"
11321 19 jeremybenn
    case $depmode in
11322 82 jeremybenn
    gcc)
11323
      # This depmode causes a compiler race in universal mode.
11324
      test "$am__universal" = false || continue
11325
      ;;
11326 19 jeremybenn
    nosideeffect)
11327
      # after this tag, mechanisms are not by side-effect, so they'll
11328
      # only be used when explicitly requested
11329
      if test "x$enable_dependency_tracking" = xyes; then
11330
        continue
11331
      else
11332
        break
11333
      fi
11334
      ;;
11335 82 jeremybenn
    msvisualcpp | msvcmsys)
11336
      # This compiler won't grok `-c -o', but also, the minuso test has
11337
      # not run yet.  These depmodes are late enough in the game, and
11338
      # so weak that their functioning should not be impacted.
11339
      am__obj=conftest.${OBJEXT-o}
11340
      am__minus_obj=
11341
      ;;
11342 19 jeremybenn
    none) break ;;
11343
    esac
11344
    if depmode=$depmode \
11345 82 jeremybenn
       source=sub/conftest.c object=$am__obj \
11346 19 jeremybenn
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11347 82 jeremybenn
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11348 19 jeremybenn
         >/dev/null 2>conftest.err &&
11349
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11350
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11351 82 jeremybenn
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11352 19 jeremybenn
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11353
      # icc doesn't choke on unknown options, it will just issue warnings
11354
      # or remarks (even with -Werror).  So we grep stderr for any message
11355
      # that says an option was ignored or not supported.
11356
      # When given -MP, icc 7.0 and 7.1 complain thusly:
11357
      #   icc: Command line warning: ignoring option '-M'; no argument required
11358
      # The diagnosis changed in icc 8.0:
11359
      #   icc: Command line remark: option '-MP' not supported
11360
      if (grep 'ignoring option' conftest.err ||
11361
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11362 82 jeremybenn
        am_cv_CCAS_dependencies_compiler_type=$depmode
11363 19 jeremybenn
        break
11364
      fi
11365
    fi
11366
  done
11367
 
11368
  cd ..
11369
  rm -rf conftest.dir
11370
else
11371 82 jeremybenn
  am_cv_CCAS_dependencies_compiler_type=none
11372 19 jeremybenn
fi
11373
 
11374
fi
11375 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11376
$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11377
CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11378 19 jeremybenn
 
11379
 if
11380
  test "x$enable_dependency_tracking" != xno \
11381 82 jeremybenn
  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11382
  am__fastdepCCAS_TRUE=
11383
  am__fastdepCCAS_FALSE='#'
11384 19 jeremybenn
else
11385 82 jeremybenn
  am__fastdepCCAS_TRUE='#'
11386
  am__fastdepCCAS_FALSE=
11387 19 jeremybenn
fi
11388
 
11389
 
11390
 
11391
ac_ext=c
11392
ac_cpp='$CPP $CPPFLAGS'
11393
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11394
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11395
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11396
if test -n "$ac_tool_prefix"; then
11397
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11398
set dummy ${ac_tool_prefix}gcc; ac_word=$2
11399 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11400
$as_echo_n "checking for $ac_word... " >&6; }
11401 19 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
11402 82 jeremybenn
  $as_echo_n "(cached) " >&6
11403 19 jeremybenn
else
11404
  if test -n "$CC"; then
11405
  ac_cv_prog_CC="$CC" # Let the user override the test.
11406
else
11407
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11408
for as_dir in $PATH
11409
do
11410
  IFS=$as_save_IFS
11411
  test -z "$as_dir" && as_dir=.
11412
  for ac_exec_ext in '' $ac_executable_extensions; do
11413
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11414
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11415 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11416 19 jeremybenn
    break 2
11417
  fi
11418
done
11419
done
11420
IFS=$as_save_IFS
11421
 
11422
fi
11423
fi
11424
CC=$ac_cv_prog_CC
11425
if test -n "$CC"; then
11426 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11427
$as_echo "$CC" >&6; }
11428 19 jeremybenn
else
11429 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11430
$as_echo "no" >&6; }
11431 19 jeremybenn
fi
11432
 
11433
 
11434
fi
11435
if test -z "$ac_cv_prog_CC"; then
11436
  ac_ct_CC=$CC
11437
  # Extract the first word of "gcc", so it can be a program name with args.
11438
set dummy gcc; ac_word=$2
11439 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11440
$as_echo_n "checking for $ac_word... " >&6; }
11441 19 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11442 82 jeremybenn
  $as_echo_n "(cached) " >&6
11443 19 jeremybenn
else
11444
  if test -n "$ac_ct_CC"; then
11445
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11446
else
11447
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11448
for as_dir in $PATH
11449
do
11450
  IFS=$as_save_IFS
11451
  test -z "$as_dir" && as_dir=.
11452
  for ac_exec_ext in '' $ac_executable_extensions; do
11453
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11454
    ac_cv_prog_ac_ct_CC="gcc"
11455 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11456 19 jeremybenn
    break 2
11457
  fi
11458
done
11459
done
11460
IFS=$as_save_IFS
11461
 
11462
fi
11463
fi
11464
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11465
if test -n "$ac_ct_CC"; then
11466 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11467
$as_echo "$ac_ct_CC" >&6; }
11468 19 jeremybenn
else
11469 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11470
$as_echo "no" >&6; }
11471 19 jeremybenn
fi
11472
 
11473
  if test "x$ac_ct_CC" = x; then
11474
    CC=""
11475
  else
11476
    case $cross_compiling:$ac_tool_warned in
11477
yes:)
11478 82 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11479
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11480 19 jeremybenn
ac_tool_warned=yes ;;
11481
esac
11482
    CC=$ac_ct_CC
11483
  fi
11484
else
11485
  CC="$ac_cv_prog_CC"
11486
fi
11487
 
11488
if test -z "$CC"; then
11489
          if test -n "$ac_tool_prefix"; then
11490
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11491
set dummy ${ac_tool_prefix}cc; ac_word=$2
11492 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11493
$as_echo_n "checking for $ac_word... " >&6; }
11494 19 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
11495 82 jeremybenn
  $as_echo_n "(cached) " >&6
11496 19 jeremybenn
else
11497
  if test -n "$CC"; then
11498
  ac_cv_prog_CC="$CC" # Let the user override the test.
11499
else
11500
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11501
for as_dir in $PATH
11502
do
11503
  IFS=$as_save_IFS
11504
  test -z "$as_dir" && as_dir=.
11505
  for ac_exec_ext in '' $ac_executable_extensions; do
11506
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11507
    ac_cv_prog_CC="${ac_tool_prefix}cc"
11508 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11509 19 jeremybenn
    break 2
11510
  fi
11511
done
11512
done
11513
IFS=$as_save_IFS
11514
 
11515
fi
11516
fi
11517
CC=$ac_cv_prog_CC
11518
if test -n "$CC"; then
11519 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11520
$as_echo "$CC" >&6; }
11521 19 jeremybenn
else
11522 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11523
$as_echo "no" >&6; }
11524 19 jeremybenn
fi
11525
 
11526
 
11527
  fi
11528
fi
11529
if test -z "$CC"; then
11530
  # Extract the first word of "cc", so it can be a program name with args.
11531
set dummy cc; ac_word=$2
11532 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11533
$as_echo_n "checking for $ac_word... " >&6; }
11534 19 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
11535 82 jeremybenn
  $as_echo_n "(cached) " >&6
11536 19 jeremybenn
else
11537
  if test -n "$CC"; then
11538
  ac_cv_prog_CC="$CC" # Let the user override the test.
11539
else
11540
  ac_prog_rejected=no
11541
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11542
for as_dir in $PATH
11543
do
11544
  IFS=$as_save_IFS
11545
  test -z "$as_dir" && as_dir=.
11546
  for ac_exec_ext in '' $ac_executable_extensions; do
11547
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11548
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11549
       ac_prog_rejected=yes
11550
       continue
11551
     fi
11552
    ac_cv_prog_CC="cc"
11553 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11554 19 jeremybenn
    break 2
11555
  fi
11556
done
11557
done
11558
IFS=$as_save_IFS
11559
 
11560
if test $ac_prog_rejected = yes; then
11561
  # We found a bogon in the path, so make sure we never use it.
11562
  set dummy $ac_cv_prog_CC
11563
  shift
11564
  if test $# != 0; then
11565
    # We chose a different compiler from the bogus one.
11566
    # However, it has the same basename, so the bogon will be chosen
11567
    # first if we set CC to just the basename; use the full file name.
11568
    shift
11569
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11570
  fi
11571
fi
11572
fi
11573
fi
11574
CC=$ac_cv_prog_CC
11575
if test -n "$CC"; then
11576 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11577
$as_echo "$CC" >&6; }
11578 19 jeremybenn
else
11579 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11580
$as_echo "no" >&6; }
11581 19 jeremybenn
fi
11582
 
11583
 
11584
fi
11585
if test -z "$CC"; then
11586
  if test -n "$ac_tool_prefix"; then
11587
  for ac_prog in cl.exe
11588
  do
11589
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11590
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11591 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11592
$as_echo_n "checking for $ac_word... " >&6; }
11593 19 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
11594 82 jeremybenn
  $as_echo_n "(cached) " >&6
11595 19 jeremybenn
else
11596
  if test -n "$CC"; then
11597
  ac_cv_prog_CC="$CC" # Let the user override the test.
11598
else
11599
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11600
for as_dir in $PATH
11601
do
11602
  IFS=$as_save_IFS
11603
  test -z "$as_dir" && as_dir=.
11604
  for ac_exec_ext in '' $ac_executable_extensions; do
11605
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11606
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11607 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11608 19 jeremybenn
    break 2
11609
  fi
11610
done
11611
done
11612
IFS=$as_save_IFS
11613
 
11614
fi
11615
fi
11616
CC=$ac_cv_prog_CC
11617
if test -n "$CC"; then
11618 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11619
$as_echo "$CC" >&6; }
11620 19 jeremybenn
else
11621 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11622
$as_echo "no" >&6; }
11623 19 jeremybenn
fi
11624
 
11625
 
11626
    test -n "$CC" && break
11627
  done
11628
fi
11629
if test -z "$CC"; then
11630
  ac_ct_CC=$CC
11631
  for ac_prog in cl.exe
11632
do
11633
  # Extract the first word of "$ac_prog", so it can be a program name with args.
11634
set dummy $ac_prog; ac_word=$2
11635 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11636
$as_echo_n "checking for $ac_word... " >&6; }
11637 19 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11638 82 jeremybenn
  $as_echo_n "(cached) " >&6
11639 19 jeremybenn
else
11640
  if test -n "$ac_ct_CC"; then
11641
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11642
else
11643
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11644
for as_dir in $PATH
11645
do
11646
  IFS=$as_save_IFS
11647
  test -z "$as_dir" && as_dir=.
11648
  for ac_exec_ext in '' $ac_executable_extensions; do
11649
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11650
    ac_cv_prog_ac_ct_CC="$ac_prog"
11651 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11652 19 jeremybenn
    break 2
11653
  fi
11654
done
11655
done
11656
IFS=$as_save_IFS
11657
 
11658
fi
11659
fi
11660
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11661
if test -n "$ac_ct_CC"; then
11662 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11663
$as_echo "$ac_ct_CC" >&6; }
11664 19 jeremybenn
else
11665 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11666
$as_echo "no" >&6; }
11667 19 jeremybenn
fi
11668
 
11669
 
11670
  test -n "$ac_ct_CC" && break
11671
done
11672
 
11673
  if test "x$ac_ct_CC" = x; then
11674
    CC=""
11675
  else
11676
    case $cross_compiling:$ac_tool_warned in
11677
yes:)
11678 82 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11679
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11680 19 jeremybenn
ac_tool_warned=yes ;;
11681
esac
11682
    CC=$ac_ct_CC
11683
  fi
11684
fi
11685
 
11686
fi
11687
 
11688
 
11689 82 jeremybenn
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11690
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11691
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11692 19 jeremybenn
See \`config.log' for more details." >&5
11693 82 jeremybenn
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
11694 19 jeremybenn
See \`config.log' for more details." >&2;}
11695 82 jeremybenn
   { (exit 1); exit 1; }; }; }
11696 19 jeremybenn
 
11697
# Provide some information about the compiler.
11698 82 jeremybenn
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
11699
set X $ac_compile
11700
ac_compiler=$2
11701 19 jeremybenn
{ (ac_try="$ac_compiler --version >&5"
11702
case "(($ac_try" in
11703
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11704
  *) ac_try_echo=$ac_try;;
11705
esac
11706 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11707
$as_echo "$ac_try_echo") >&5
11708 19 jeremybenn
  (eval "$ac_compiler --version >&5") 2>&5
11709
  ac_status=$?
11710 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 19 jeremybenn
  (exit $ac_status); }
11712
{ (ac_try="$ac_compiler -v >&5"
11713
case "(($ac_try" in
11714
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11715
  *) ac_try_echo=$ac_try;;
11716
esac
11717 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11718
$as_echo "$ac_try_echo") >&5
11719 19 jeremybenn
  (eval "$ac_compiler -v >&5") 2>&5
11720
  ac_status=$?
11721 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 19 jeremybenn
  (exit $ac_status); }
11723
{ (ac_try="$ac_compiler -V >&5"
11724
case "(($ac_try" in
11725
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11726
  *) ac_try_echo=$ac_try;;
11727
esac
11728 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11729
$as_echo "$ac_try_echo") >&5
11730 19 jeremybenn
  (eval "$ac_compiler -V >&5") 2>&5
11731
  ac_status=$?
11732 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 19 jeremybenn
  (exit $ac_status); }
11734
 
11735 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11736
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11737 19 jeremybenn
if test "${ac_cv_c_compiler_gnu+set}" = set; then
11738 82 jeremybenn
  $as_echo_n "(cached) " >&6
11739 19 jeremybenn
else
11740
  cat >conftest.$ac_ext <<_ACEOF
11741
/* confdefs.h.  */
11742
_ACEOF
11743
cat confdefs.h >>conftest.$ac_ext
11744
cat >>conftest.$ac_ext <<_ACEOF
11745
/* end confdefs.h.  */
11746
 
11747
int
11748
main ()
11749
{
11750
#ifndef __GNUC__
11751
       choke me
11752
#endif
11753
 
11754
  ;
11755
  return 0;
11756
}
11757
_ACEOF
11758
rm -f conftest.$ac_objext
11759
if { (ac_try="$ac_compile"
11760
case "(($ac_try" in
11761
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11762
  *) ac_try_echo=$ac_try;;
11763
esac
11764 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11765
$as_echo "$ac_try_echo") >&5
11766 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
11767
  ac_status=$?
11768
  grep -v '^ *+' conftest.er1 >conftest.err
11769
  rm -f conftest.er1
11770
  cat conftest.err >&5
11771 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 19 jeremybenn
  (exit $ac_status); } && {
11773
         test -z "$ac_c_werror_flag" ||
11774
         test ! -s conftest.err
11775
       } && test -s conftest.$ac_objext; then
11776
  ac_compiler_gnu=yes
11777
else
11778 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
11779 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
11780
 
11781
        ac_compiler_gnu=no
11782
fi
11783
 
11784
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11785
ac_cv_c_compiler_gnu=$ac_compiler_gnu
11786
 
11787
fi
11788 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11789
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11790
if test $ac_compiler_gnu = yes; then
11791
  GCC=yes
11792
else
11793
  GCC=
11794
fi
11795 19 jeremybenn
ac_test_CFLAGS=${CFLAGS+set}
11796
ac_save_CFLAGS=$CFLAGS
11797 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11798
$as_echo_n "checking whether $CC accepts -g... " >&6; }
11799 19 jeremybenn
if test "${ac_cv_prog_cc_g+set}" = set; then
11800 82 jeremybenn
  $as_echo_n "(cached) " >&6
11801 19 jeremybenn
else
11802
  ac_save_c_werror_flag=$ac_c_werror_flag
11803
   ac_c_werror_flag=yes
11804
   ac_cv_prog_cc_g=no
11805
   CFLAGS="-g"
11806
   cat >conftest.$ac_ext <<_ACEOF
11807
/* confdefs.h.  */
11808
_ACEOF
11809
cat confdefs.h >>conftest.$ac_ext
11810
cat >>conftest.$ac_ext <<_ACEOF
11811
/* end confdefs.h.  */
11812
 
11813
int
11814
main ()
11815
{
11816
 
11817
  ;
11818
  return 0;
11819
}
11820
_ACEOF
11821
rm -f conftest.$ac_objext
11822
if { (ac_try="$ac_compile"
11823
case "(($ac_try" in
11824
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11825
  *) ac_try_echo=$ac_try;;
11826
esac
11827 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11828
$as_echo "$ac_try_echo") >&5
11829 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
11830
  ac_status=$?
11831
  grep -v '^ *+' conftest.er1 >conftest.err
11832
  rm -f conftest.er1
11833
  cat conftest.err >&5
11834 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 19 jeremybenn
  (exit $ac_status); } && {
11836
         test -z "$ac_c_werror_flag" ||
11837
         test ! -s conftest.err
11838
       } && test -s conftest.$ac_objext; then
11839
  ac_cv_prog_cc_g=yes
11840
else
11841 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
11842 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
11843
 
11844
        CFLAGS=""
11845
      cat >conftest.$ac_ext <<_ACEOF
11846
/* confdefs.h.  */
11847
_ACEOF
11848
cat confdefs.h >>conftest.$ac_ext
11849
cat >>conftest.$ac_ext <<_ACEOF
11850
/* end confdefs.h.  */
11851
 
11852
int
11853
main ()
11854
{
11855
 
11856
  ;
11857
  return 0;
11858
}
11859
_ACEOF
11860
rm -f conftest.$ac_objext
11861
if { (ac_try="$ac_compile"
11862
case "(($ac_try" in
11863
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11864
  *) ac_try_echo=$ac_try;;
11865
esac
11866 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11867
$as_echo "$ac_try_echo") >&5
11868 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
11869
  ac_status=$?
11870
  grep -v '^ *+' conftest.er1 >conftest.err
11871
  rm -f conftest.er1
11872
  cat conftest.err >&5
11873 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 19 jeremybenn
  (exit $ac_status); } && {
11875
         test -z "$ac_c_werror_flag" ||
11876
         test ! -s conftest.err
11877
       } && test -s conftest.$ac_objext; then
11878
  :
11879
else
11880 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
11881 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
11882
 
11883
        ac_c_werror_flag=$ac_save_c_werror_flag
11884
         CFLAGS="-g"
11885
         cat >conftest.$ac_ext <<_ACEOF
11886
/* confdefs.h.  */
11887
_ACEOF
11888
cat confdefs.h >>conftest.$ac_ext
11889
cat >>conftest.$ac_ext <<_ACEOF
11890
/* end confdefs.h.  */
11891
 
11892
int
11893
main ()
11894
{
11895
 
11896
  ;
11897
  return 0;
11898
}
11899
_ACEOF
11900
rm -f conftest.$ac_objext
11901
if { (ac_try="$ac_compile"
11902
case "(($ac_try" in
11903
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11904
  *) ac_try_echo=$ac_try;;
11905
esac
11906 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11907
$as_echo "$ac_try_echo") >&5
11908 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
11909
  ac_status=$?
11910
  grep -v '^ *+' conftest.er1 >conftest.err
11911
  rm -f conftest.er1
11912
  cat conftest.err >&5
11913 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 19 jeremybenn
  (exit $ac_status); } && {
11915
         test -z "$ac_c_werror_flag" ||
11916
         test ! -s conftest.err
11917
       } && test -s conftest.$ac_objext; then
11918
  ac_cv_prog_cc_g=yes
11919
else
11920 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
11921 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
11922
 
11923
 
11924
fi
11925
 
11926
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11927
fi
11928
 
11929
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11930
fi
11931
 
11932
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11933
   ac_c_werror_flag=$ac_save_c_werror_flag
11934
fi
11935 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11936
$as_echo "$ac_cv_prog_cc_g" >&6; }
11937 19 jeremybenn
if test "$ac_test_CFLAGS" = set; then
11938
  CFLAGS=$ac_save_CFLAGS
11939
elif test $ac_cv_prog_cc_g = yes; then
11940
  if test "$GCC" = yes; then
11941
    CFLAGS="-g -O2"
11942
  else
11943
    CFLAGS="-g"
11944
  fi
11945
else
11946
  if test "$GCC" = yes; then
11947
    CFLAGS="-O2"
11948
  else
11949
    CFLAGS=
11950
  fi
11951
fi
11952 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
11953
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11954 19 jeremybenn
if test "${ac_cv_prog_cc_c89+set}" = set; then
11955 82 jeremybenn
  $as_echo_n "(cached) " >&6
11956 19 jeremybenn
else
11957
  ac_cv_prog_cc_c89=no
11958
ac_save_CC=$CC
11959
cat >conftest.$ac_ext <<_ACEOF
11960
/* confdefs.h.  */
11961
_ACEOF
11962
cat confdefs.h >>conftest.$ac_ext
11963
cat >>conftest.$ac_ext <<_ACEOF
11964
/* end confdefs.h.  */
11965
#include 
11966
#include 
11967
#include 
11968
#include 
11969
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11970
struct buf { int x; };
11971
FILE * (*rcsopen) (struct buf *, struct stat *, int);
11972
static char *e (p, i)
11973
     char **p;
11974
     int i;
11975
{
11976
  return p[i];
11977
}
11978
static char *f (char * (*g) (char **, int), char **p, ...)
11979
{
11980
  char *s;
11981
  va_list v;
11982
  va_start (v,p);
11983
  s = g (p, va_arg (v,int));
11984
  va_end (v);
11985
  return s;
11986
}
11987
 
11988
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11989
   function prototypes and stuff, but not '\xHH' hex character constants.
11990
   These don't provoke an error unfortunately, instead are silently treated
11991
   as 'x'.  The following induces an error, until -std is added to get
11992
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11993
   array size at least.  It's necessary to write '\x00'==0 to get something
11994
   that's true only with -std.  */
11995
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11996
 
11997
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11998
   inside strings and character constants.  */
11999
#define FOO(x) 'x'
12000
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12001
 
12002
int test (int i, double x);
12003
struct s1 {int (*f) (int a);};
12004
struct s2 {int (*f) (double a);};
12005
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12006
int argc;
12007
char **argv;
12008
int
12009
main ()
12010
{
12011
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12012
  ;
12013
  return 0;
12014
}
12015
_ACEOF
12016
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12017
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12018
do
12019
  CC="$ac_save_CC $ac_arg"
12020
  rm -f conftest.$ac_objext
12021
if { (ac_try="$ac_compile"
12022
case "(($ac_try" in
12023
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12024
  *) ac_try_echo=$ac_try;;
12025
esac
12026 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12027
$as_echo "$ac_try_echo") >&5
12028 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
12029
  ac_status=$?
12030
  grep -v '^ *+' conftest.er1 >conftest.err
12031
  rm -f conftest.er1
12032
  cat conftest.err >&5
12033 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 19 jeremybenn
  (exit $ac_status); } && {
12035
         test -z "$ac_c_werror_flag" ||
12036
         test ! -s conftest.err
12037
       } && test -s conftest.$ac_objext; then
12038
  ac_cv_prog_cc_c89=$ac_arg
12039
else
12040 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12041 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12042
 
12043
 
12044
fi
12045
 
12046
rm -f core conftest.err conftest.$ac_objext
12047
  test "x$ac_cv_prog_cc_c89" != "xno" && break
12048
done
12049
rm -f conftest.$ac_ext
12050
CC=$ac_save_CC
12051
 
12052
fi
12053
# AC_CACHE_VAL
12054
case "x$ac_cv_prog_cc_c89" in
12055
  x)
12056 82 jeremybenn
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
12057
$as_echo "none needed" >&6; } ;;
12058 19 jeremybenn
  xno)
12059 82 jeremybenn
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
12060
$as_echo "unsupported" >&6; } ;;
12061 19 jeremybenn
  *)
12062
    CC="$CC $ac_cv_prog_cc_c89"
12063 82 jeremybenn
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
12064
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12065 19 jeremybenn
esac
12066
 
12067
 
12068
ac_ext=c
12069
ac_cpp='$CPP $CPPFLAGS'
12070
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12071
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12072
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12073
 
12074
if test "x$CC" != xcc; then
12075 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
12076
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12077 19 jeremybenn
else
12078 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
12079
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12080 19 jeremybenn
fi
12081 82 jeremybenn
set dummy $CC; ac_cc=`$as_echo "$2" |
12082 19 jeremybenn
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12083
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
12084 82 jeremybenn
  $as_echo_n "(cached) " >&6
12085 19 jeremybenn
else
12086
  cat >conftest.$ac_ext <<_ACEOF
12087
/* confdefs.h.  */
12088
_ACEOF
12089
cat confdefs.h >>conftest.$ac_ext
12090
cat >>conftest.$ac_ext <<_ACEOF
12091
/* end confdefs.h.  */
12092
 
12093
int
12094
main ()
12095
{
12096
 
12097
  ;
12098
  return 0;
12099
}
12100
_ACEOF
12101
# Make sure it works both with $CC and with simple cc.
12102
# We do the test twice because some compilers refuse to overwrite an
12103
# existing .o file with -o, though they will create one.
12104
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12105
rm -f conftest2.*
12106
if { (case "(($ac_try" in
12107
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12108
  *) ac_try_echo=$ac_try;;
12109
esac
12110 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12111
$as_echo "$ac_try_echo") >&5
12112 19 jeremybenn
  (eval "$ac_try") 2>&5
12113
  ac_status=$?
12114 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 19 jeremybenn
  (exit $ac_status); } &&
12116
   test -f conftest2.$ac_objext && { (case "(($ac_try" in
12117
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118
  *) ac_try_echo=$ac_try;;
12119
esac
12120 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12121
$as_echo "$ac_try_echo") >&5
12122 19 jeremybenn
  (eval "$ac_try") 2>&5
12123
  ac_status=$?
12124 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 19 jeremybenn
  (exit $ac_status); };
12126
then
12127
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12128
  if test "x$CC" != xcc; then
12129
    # Test first that cc exists at all.
12130
    if { ac_try='cc -c conftest.$ac_ext >&5'
12131
  { (case "(($ac_try" in
12132
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12133
  *) ac_try_echo=$ac_try;;
12134
esac
12135 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12136
$as_echo "$ac_try_echo") >&5
12137 19 jeremybenn
  (eval "$ac_try") 2>&5
12138
  ac_status=$?
12139 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 19 jeremybenn
  (exit $ac_status); }; }; then
12141
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12142
      rm -f conftest2.*
12143
      if { (case "(($ac_try" in
12144
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12145
  *) ac_try_echo=$ac_try;;
12146
esac
12147 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12148
$as_echo "$ac_try_echo") >&5
12149 19 jeremybenn
  (eval "$ac_try") 2>&5
12150
  ac_status=$?
12151 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 19 jeremybenn
  (exit $ac_status); } &&
12153
         test -f conftest2.$ac_objext && { (case "(($ac_try" in
12154
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12155
  *) ac_try_echo=$ac_try;;
12156
esac
12157 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12158
$as_echo "$ac_try_echo") >&5
12159 19 jeremybenn
  (eval "$ac_try") 2>&5
12160
  ac_status=$?
12161 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 19 jeremybenn
  (exit $ac_status); };
12163
      then
12164
        # cc works too.
12165
        :
12166
      else
12167
        # cc exists but doesn't like -o.
12168
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
12169
      fi
12170
    fi
12171
  fi
12172
else
12173
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
12174
fi
12175
rm -f core conftest*
12176
 
12177
fi
12178
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12179 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: yes" >&5
12180
$as_echo "yes" >&6; }
12181 19 jeremybenn
else
12182 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
12183
$as_echo "no" >&6; }
12184 19 jeremybenn
 
12185
cat >>confdefs.h <<\_ACEOF
12186
#define NO_MINUS_C_MINUS_O 1
12187
_ACEOF
12188
 
12189
fi
12190
 
12191
# FIXME: we rely on the cache variable name because
12192
# there is no other way.
12193
set dummy $CC
12194 82 jeremybenn
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12195
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12196
if test "$am_t" != yes; then
12197 19 jeremybenn
   # Losing compiler, so override with the script.
12198
   # FIXME: It is wrong to rewrite CC.
12199
   # But if we don't then we get into trouble of one sort or another.
12200
   # A longer-term fix would be to have automake use am__CC in this case,
12201
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12202
   CC="$am_aux_dir/compile $CC"
12203
fi
12204
 
12205
 
12206
 
12207 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12208
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12209
set x ${MAKE-make}
12210
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12211 19 jeremybenn
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
12212 82 jeremybenn
  $as_echo_n "(cached) " >&6
12213 19 jeremybenn
else
12214
  cat >conftest.make <<\_ACEOF
12215
SHELL = /bin/sh
12216
all:
12217
        @echo '@@@%%%=$(MAKE)=@@@%%%'
12218
_ACEOF
12219
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12220
case `${MAKE-make} -f conftest.make 2>/dev/null` in
12221
  *@@@%%%=?*=@@@%%%*)
12222
    eval ac_cv_prog_make_${ac_make}_set=yes;;
12223
  *)
12224
    eval ac_cv_prog_make_${ac_make}_set=no;;
12225
esac
12226
rm -f conftest.make
12227
fi
12228
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12229 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: yes" >&5
12230
$as_echo "yes" >&6; }
12231 19 jeremybenn
  SET_MAKE=
12232
else
12233 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
12234
$as_echo "no" >&6; }
12235 19 jeremybenn
  SET_MAKE="MAKE=${MAKE-make}"
12236
fi
12237
 
12238
 
12239
# Find a good install program.  We prefer a C program (faster),
12240
# so one script is as good as another.  But avoid the broken or
12241
# incompatible versions:
12242
# SysV /etc/install, /usr/sbin/install
12243
# SunOS /usr/etc/install
12244
# IRIX /sbin/install
12245
# AIX /bin/install
12246
# AmigaOS /C/install, which installs bootblocks on floppy discs
12247
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12248
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12249
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12250
# OS/2's system install, which has a completely different semantic
12251
# ./install, which can be erroneously created by make from ./install.sh.
12252 82 jeremybenn
# Reject install programs that cannot install multiple files.
12253
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12254
$as_echo_n "checking for a BSD-compatible install... " >&6; }
12255 19 jeremybenn
if test -z "$INSTALL"; then
12256
if test "${ac_cv_path_install+set}" = set; then
12257 82 jeremybenn
  $as_echo_n "(cached) " >&6
12258 19 jeremybenn
else
12259
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12260
for as_dir in $PATH
12261
do
12262
  IFS=$as_save_IFS
12263
  test -z "$as_dir" && as_dir=.
12264
  # Account for people who put trailing slashes in PATH elements.
12265
case $as_dir/ in
12266
  ./ | .// | /cC/* | \
12267
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12268
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12269
  /usr/ucb/* ) ;;
12270
  *)
12271
    # OSF1 and SCO ODT 3.0 have their own names for install.
12272
    # Don't use installbsd from OSF since it installs stuff as root
12273
    # by default.
12274
    for ac_prog in ginstall scoinst install; do
12275
      for ac_exec_ext in '' $ac_executable_extensions; do
12276
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
12277
          if test $ac_prog = install &&
12278
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12279
            # AIX install.  It has an incompatible calling convention.
12280
            :
12281
          elif test $ac_prog = install &&
12282
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12283
            # program-specific install script used by HP pwplus--don't use.
12284
            :
12285
          else
12286 82 jeremybenn
            rm -rf conftest.one conftest.two conftest.dir
12287
            echo one > conftest.one
12288
            echo two > conftest.two
12289
            mkdir conftest.dir
12290
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12291
              test -s conftest.one && test -s conftest.two &&
12292
              test -s conftest.dir/conftest.one &&
12293
              test -s conftest.dir/conftest.two
12294
            then
12295
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12296
              break 3
12297
            fi
12298 19 jeremybenn
          fi
12299
        fi
12300
      done
12301
    done
12302
    ;;
12303
esac
12304 82 jeremybenn
 
12305 19 jeremybenn
done
12306
IFS=$as_save_IFS
12307
 
12308 82 jeremybenn
rm -rf conftest.one conftest.two conftest.dir
12309 19 jeremybenn
 
12310
fi
12311
  if test "${ac_cv_path_install+set}" = set; then
12312
    INSTALL=$ac_cv_path_install
12313
  else
12314
    # As a last resort, use the slow shell script.  Don't cache a
12315
    # value for INSTALL within a source directory, because that will
12316
    # break other packages using the cache if that directory is
12317
    # removed, or if the value is a relative name.
12318
    INSTALL=$ac_install_sh
12319
  fi
12320
fi
12321 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
12322
$as_echo "$INSTALL" >&6; }
12323 19 jeremybenn
 
12324
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12325
# It thinks the first close brace ends the variable substitution.
12326
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12327
 
12328
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12329
 
12330
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12331
 
12332
# Extract the first word of "ar", so it can be a program name with args.
12333
set dummy ar; ac_word=$2
12334 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12335
$as_echo_n "checking for $ac_word... " >&6; }
12336 19 jeremybenn
if test "${ac_cv_prog_AR+set}" = set; then
12337 82 jeremybenn
  $as_echo_n "(cached) " >&6
12338 19 jeremybenn
else
12339
  if test -n "$AR"; then
12340
  ac_cv_prog_AR="$AR" # Let the user override the test.
12341
else
12342
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12343
for as_dir in $PATH
12344
do
12345
  IFS=$as_save_IFS
12346
  test -z "$as_dir" && as_dir=.
12347
  for ac_exec_ext in '' $ac_executable_extensions; do
12348
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12349
    ac_cv_prog_AR="ar"
12350 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12351 19 jeremybenn
    break 2
12352
  fi
12353
done
12354
done
12355
IFS=$as_save_IFS
12356
 
12357
fi
12358
fi
12359
AR=$ac_cv_prog_AR
12360
if test -n "$AR"; then
12361 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
12362
$as_echo "$AR" >&6; }
12363 19 jeremybenn
else
12364 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
12365
$as_echo "no" >&6; }
12366 19 jeremybenn
fi
12367
 
12368
 
12369
 
12370
# This is GNU compliant source and uses GNU libraries
12371
 
12372
cat >>confdefs.h <<\_ACEOF
12373
#define _GNU_SOURCE 1
12374
_ACEOF
12375
 
12376
 
12377 82 jeremybenn
 
12378 19 jeremybenn
# Set default for ARFLAGS, since autoconf does not have a macro for it.
12379
# This allows people to set it when running configure or make
12380
test -n "$ARFLAGS" || ARFLAGS="cr"
12381
 
12382
MAKE_SHELL=/bin/sh
12383
 
12384
 
12385
 
12386 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12387
$as_echo_n "checking return type of signal handlers... " >&6; }
12388 19 jeremybenn
if test "${ac_cv_type_signal+set}" = set; then
12389 82 jeremybenn
  $as_echo_n "(cached) " >&6
12390 19 jeremybenn
else
12391
  cat >conftest.$ac_ext <<_ACEOF
12392
/* confdefs.h.  */
12393
_ACEOF
12394
cat confdefs.h >>conftest.$ac_ext
12395
cat >>conftest.$ac_ext <<_ACEOF
12396
/* end confdefs.h.  */
12397
#include 
12398
#include 
12399
 
12400
int
12401
main ()
12402
{
12403
return *(signal (0, 0)) (0) == 1;
12404
  ;
12405
  return 0;
12406
}
12407
_ACEOF
12408
rm -f conftest.$ac_objext
12409
if { (ac_try="$ac_compile"
12410
case "(($ac_try" in
12411
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12412
  *) ac_try_echo=$ac_try;;
12413
esac
12414 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12415
$as_echo "$ac_try_echo") >&5
12416 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
12417
  ac_status=$?
12418
  grep -v '^ *+' conftest.er1 >conftest.err
12419
  rm -f conftest.er1
12420
  cat conftest.err >&5
12421 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 19 jeremybenn
  (exit $ac_status); } && {
12423
         test -z "$ac_c_werror_flag" ||
12424
         test ! -s conftest.err
12425
       } && test -s conftest.$ac_objext; then
12426
  ac_cv_type_signal=int
12427
else
12428 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12429 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12430
 
12431
        ac_cv_type_signal=void
12432
fi
12433
 
12434
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12435
fi
12436 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12437
$as_echo "$ac_cv_type_signal" >&6; }
12438 19 jeremybenn
 
12439
cat >>confdefs.h <<_ACEOF
12440
#define RETSIGTYPE $ac_cv_type_signal
12441
_ACEOF
12442
 
12443
 
12444
 
12445
 
12446
 
12447
 
12448
 
12449
 
12450
 
12451
 
12452
 
12453
 
12454
 
12455
 
12456
 
12457
 
12458
 
12459 82 jeremybenn
 
12460
 
12461
 
12462
 
12463
 
12464
 
12465
 
12466
for ac_header in unistd.h stdlib.h varargs.h stdarg.h string.h strings.h      \
12467
                 sys/ptem.h sys/pte.h sys/stream.h sys/stropts.h sys/select.h \
12468
                 termcap.h termios.h termio.h sys/file.h locale.h getopt.h    \
12469
                 net/ethernet.h sys/ethernet.h malloc.h inttypes.h libintl.h
12470
do
12471
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12472 19 jeremybenn
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12473 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12474
$as_echo_n "checking for $ac_header... " >&6; }
12475
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12476
  $as_echo_n "(cached) " >&6
12477
fi
12478
ac_res=`eval 'as_val=${'$as_ac_Header'}
12479
                 $as_echo "$as_val"'`
12480
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12481
$as_echo "$ac_res" >&6; }
12482 19 jeremybenn
else
12483 82 jeremybenn
  # Is the header compilable?
12484
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12485
$as_echo_n "checking $ac_header usability... " >&6; }
12486
cat >conftest.$ac_ext <<_ACEOF
12487 19 jeremybenn
/* confdefs.h.  */
12488
_ACEOF
12489
cat confdefs.h >>conftest.$ac_ext
12490
cat >>conftest.$ac_ext <<_ACEOF
12491
/* end confdefs.h.  */
12492 82 jeremybenn
$ac_includes_default
12493
#include <$ac_header>
12494 19 jeremybenn
_ACEOF
12495
rm -f conftest.$ac_objext
12496
if { (ac_try="$ac_compile"
12497
case "(($ac_try" in
12498
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12499
  *) ac_try_echo=$ac_try;;
12500
esac
12501 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12502
$as_echo "$ac_try_echo") >&5
12503 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
12504
  ac_status=$?
12505
  grep -v '^ *+' conftest.er1 >conftest.err
12506
  rm -f conftest.er1
12507
  cat conftest.err >&5
12508 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 19 jeremybenn
  (exit $ac_status); } && {
12510
         test -z "$ac_c_werror_flag" ||
12511
         test ! -s conftest.err
12512
       } && test -s conftest.$ac_objext; then
12513 82 jeremybenn
  ac_header_compiler=yes
12514 19 jeremybenn
else
12515 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12516 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12517
 
12518 82 jeremybenn
        ac_header_compiler=no
12519 19 jeremybenn
fi
12520
 
12521
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12522 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12523
$as_echo "$ac_header_compiler" >&6; }
12524 19 jeremybenn
 
12525 82 jeremybenn
# Is the header present?
12526
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12527
$as_echo_n "checking $ac_header presence... " >&6; }
12528 19 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
12529
/* confdefs.h.  */
12530
_ACEOF
12531
cat confdefs.h >>conftest.$ac_ext
12532
cat >>conftest.$ac_ext <<_ACEOF
12533
/* end confdefs.h.  */
12534 82 jeremybenn
#include <$ac_header>
12535 19 jeremybenn
_ACEOF
12536 82 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
12537 19 jeremybenn
case "(($ac_try" in
12538
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12539
  *) ac_try_echo=$ac_try;;
12540
esac
12541 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12542
$as_echo "$ac_try_echo") >&5
12543
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12544 19 jeremybenn
  ac_status=$?
12545
  grep -v '^ *+' conftest.er1 >conftest.err
12546
  rm -f conftest.er1
12547
  cat conftest.err >&5
12548 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549
  (exit $ac_status); } >/dev/null && {
12550
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12551 19 jeremybenn
         test ! -s conftest.err
12552 82 jeremybenn
       }; then
12553
  ac_header_preproc=yes
12554 19 jeremybenn
else
12555 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12556 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12557
 
12558 82 jeremybenn
  ac_header_preproc=no
12559 19 jeremybenn
fi
12560
 
12561 82 jeremybenn
rm -f conftest.err conftest.$ac_ext
12562
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12563
$as_echo "$ac_header_preproc" >&6; }
12564
 
12565
# So?  What about this header?
12566
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12567
  yes:no: )
12568
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12569
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12570
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12571
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12572
    ac_header_preproc=yes
12573
    ;;
12574
  no:yes:* )
12575
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12576
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12577
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12578
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12579
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12580
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12581
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12582
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12583
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12584
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12585
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12586
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12587
    ( cat <<\_ASBOX
12588
## ------------------------------------- ##
12589
## Report this to openrisc@opencores.org ##
12590
## ------------------------------------- ##
12591
_ASBOX
12592
     ) | sed "s/^/$as_me: WARNING:     /" >&2
12593
    ;;
12594
esac
12595
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12596
$as_echo_n "checking for $ac_header... " >&6; }
12597
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12598
  $as_echo_n "(cached) " >&6
12599 19 jeremybenn
else
12600 82 jeremybenn
  eval "$as_ac_Header=\$ac_header_preproc"
12601 19 jeremybenn
fi
12602 82 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
12603
                 $as_echo "$as_val"'`
12604
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12605
$as_echo "$ac_res" >&6; }
12606 19 jeremybenn
 
12607
fi
12608 82 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
12609
                 $as_echo "$as_val"'`
12610
   if test "x$as_val" = x""yes; then
12611
  cat >>confdefs.h <<_ACEOF
12612
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12613 19 jeremybenn
_ACEOF
12614
 
12615
fi
12616
 
12617
done
12618
 
12619
 
12620
 
12621
 
12622
 
12623
 
12624
 
12625
 
12626
for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat
12627
do
12628 82 jeremybenn
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12629
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12630
$as_echo_n "checking for $ac_func... " >&6; }
12631 19 jeremybenn
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12632 82 jeremybenn
  $as_echo_n "(cached) " >&6
12633 19 jeremybenn
else
12634
  cat >conftest.$ac_ext <<_ACEOF
12635
/* confdefs.h.  */
12636
_ACEOF
12637
cat confdefs.h >>conftest.$ac_ext
12638
cat >>conftest.$ac_ext <<_ACEOF
12639
/* end confdefs.h.  */
12640
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
12641
   For example, HP-UX 11i  declares gettimeofday.  */
12642
#define $ac_func innocuous_$ac_func
12643
 
12644
/* System header to define __stub macros and hopefully few prototypes,
12645
    which can conflict with char $ac_func (); below.
12646
    Prefer  to  if __STDC__ is defined, since
12647
     exists even on freestanding compilers.  */
12648
 
12649
#ifdef __STDC__
12650
# include 
12651
#else
12652
# include 
12653
#endif
12654
 
12655
#undef $ac_func
12656
 
12657
/* Override any GCC internal prototype to avoid an error.
12658
   Use char because int might match the return type of a GCC
12659
   builtin and then its argument prototype would still apply.  */
12660
#ifdef __cplusplus
12661
extern "C"
12662
#endif
12663
char $ac_func ();
12664
/* The GNU C library defines this for functions which it implements
12665
    to always fail with ENOSYS.  Some functions are actually named
12666
    something starting with __ and the normal name is an alias.  */
12667
#if defined __stub_$ac_func || defined __stub___$ac_func
12668
choke me
12669
#endif
12670
 
12671
int
12672
main ()
12673
{
12674
return $ac_func ();
12675
  ;
12676
  return 0;
12677
}
12678
_ACEOF
12679
rm -f conftest.$ac_objext conftest$ac_exeext
12680
if { (ac_try="$ac_link"
12681
case "(($ac_try" in
12682
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12683
  *) ac_try_echo=$ac_try;;
12684
esac
12685 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12686
$as_echo "$ac_try_echo") >&5
12687 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
12688
  ac_status=$?
12689
  grep -v '^ *+' conftest.er1 >conftest.err
12690
  rm -f conftest.er1
12691
  cat conftest.err >&5
12692 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 19 jeremybenn
  (exit $ac_status); } && {
12694
         test -z "$ac_c_werror_flag" ||
12695
         test ! -s conftest.err
12696 82 jeremybenn
       } && test -s conftest$ac_exeext && {
12697
         test "$cross_compiling" = yes ||
12698
         $as_test_x conftest$ac_exeext
12699
       }; then
12700 19 jeremybenn
  eval "$as_ac_var=yes"
12701
else
12702 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12703 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12704
 
12705
        eval "$as_ac_var=no"
12706
fi
12707
 
12708 82 jeremybenn
rm -rf conftest.dSYM
12709 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12710
      conftest$ac_exeext conftest.$ac_ext
12711
fi
12712 82 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_var'}
12713
                 $as_echo "$as_val"'`
12714
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12715
$as_echo "$ac_res" >&6; }
12716
as_val=`eval 'as_val=${'$as_ac_var'}
12717
                 $as_echo "$as_val"'`
12718
   if test "x$as_val" = x""yes; then
12719 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12720 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12721 19 jeremybenn
_ACEOF
12722
 
12723
fi
12724
done
12725
 
12726
 
12727
 
12728
 
12729
 
12730 82 jeremybenn
for ac_func in grantpt unlockpt ptsname on_exit
12731 19 jeremybenn
do
12732 82 jeremybenn
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12733
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12734
$as_echo_n "checking for $ac_func... " >&6; }
12735 19 jeremybenn
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12736 82 jeremybenn
  $as_echo_n "(cached) " >&6
12737 19 jeremybenn
else
12738
  cat >conftest.$ac_ext <<_ACEOF
12739
/* confdefs.h.  */
12740
_ACEOF
12741
cat confdefs.h >>conftest.$ac_ext
12742
cat >>conftest.$ac_ext <<_ACEOF
12743
/* end confdefs.h.  */
12744
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
12745
   For example, HP-UX 11i  declares gettimeofday.  */
12746
#define $ac_func innocuous_$ac_func
12747
 
12748
/* System header to define __stub macros and hopefully few prototypes,
12749
    which can conflict with char $ac_func (); below.
12750
    Prefer  to  if __STDC__ is defined, since
12751
     exists even on freestanding compilers.  */
12752
 
12753
#ifdef __STDC__
12754
# include 
12755
#else
12756
# include 
12757
#endif
12758
 
12759
#undef $ac_func
12760
 
12761
/* Override any GCC internal prototype to avoid an error.
12762
   Use char because int might match the return type of a GCC
12763
   builtin and then its argument prototype would still apply.  */
12764
#ifdef __cplusplus
12765
extern "C"
12766
#endif
12767
char $ac_func ();
12768
/* The GNU C library defines this for functions which it implements
12769
    to always fail with ENOSYS.  Some functions are actually named
12770
    something starting with __ and the normal name is an alias.  */
12771
#if defined __stub_$ac_func || defined __stub___$ac_func
12772
choke me
12773
#endif
12774
 
12775
int
12776
main ()
12777
{
12778
return $ac_func ();
12779
  ;
12780
  return 0;
12781
}
12782
_ACEOF
12783
rm -f conftest.$ac_objext conftest$ac_exeext
12784
if { (ac_try="$ac_link"
12785
case "(($ac_try" in
12786
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12787
  *) ac_try_echo=$ac_try;;
12788
esac
12789 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12790
$as_echo "$ac_try_echo") >&5
12791 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
12792
  ac_status=$?
12793
  grep -v '^ *+' conftest.er1 >conftest.err
12794
  rm -f conftest.er1
12795
  cat conftest.err >&5
12796 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 19 jeremybenn
  (exit $ac_status); } && {
12798
         test -z "$ac_c_werror_flag" ||
12799
         test ! -s conftest.err
12800 82 jeremybenn
       } && test -s conftest$ac_exeext && {
12801
         test "$cross_compiling" = yes ||
12802
         $as_test_x conftest$ac_exeext
12803
       }; then
12804 19 jeremybenn
  eval "$as_ac_var=yes"
12805
else
12806 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12807 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12808
 
12809
        eval "$as_ac_var=no"
12810
fi
12811
 
12812 82 jeremybenn
rm -rf conftest.dSYM
12813 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12814
      conftest$ac_exeext conftest.$ac_ext
12815
fi
12816 82 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_var'}
12817
                 $as_echo "$as_val"'`
12818
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12819
$as_echo "$ac_res" >&6; }
12820
as_val=`eval 'as_val=${'$as_ac_var'}
12821
                 $as_echo "$as_val"'`
12822
   if test "x$as_val" = x""yes; then
12823 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12824 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12825 19 jeremybenn
_ACEOF
12826
 
12827
fi
12828
done
12829
 
12830
 
12831
for ac_func in basename
12832
do
12833 82 jeremybenn
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12834
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12835
$as_echo_n "checking for $ac_func... " >&6; }
12836 19 jeremybenn
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12837 82 jeremybenn
  $as_echo_n "(cached) " >&6
12838 19 jeremybenn
else
12839
  cat >conftest.$ac_ext <<_ACEOF
12840
/* confdefs.h.  */
12841
_ACEOF
12842
cat confdefs.h >>conftest.$ac_ext
12843
cat >>conftest.$ac_ext <<_ACEOF
12844
/* end confdefs.h.  */
12845
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
12846
   For example, HP-UX 11i  declares gettimeofday.  */
12847
#define $ac_func innocuous_$ac_func
12848
 
12849
/* System header to define __stub macros and hopefully few prototypes,
12850
    which can conflict with char $ac_func (); below.
12851
    Prefer  to  if __STDC__ is defined, since
12852
     exists even on freestanding compilers.  */
12853
 
12854
#ifdef __STDC__
12855
# include 
12856
#else
12857
# include 
12858
#endif
12859
 
12860
#undef $ac_func
12861
 
12862
/* Override any GCC internal prototype to avoid an error.
12863
   Use char because int might match the return type of a GCC
12864
   builtin and then its argument prototype would still apply.  */
12865
#ifdef __cplusplus
12866
extern "C"
12867
#endif
12868
char $ac_func ();
12869
/* The GNU C library defines this for functions which it implements
12870
    to always fail with ENOSYS.  Some functions are actually named
12871
    something starting with __ and the normal name is an alias.  */
12872
#if defined __stub_$ac_func || defined __stub___$ac_func
12873
choke me
12874
#endif
12875
 
12876
int
12877
main ()
12878
{
12879
return $ac_func ();
12880
  ;
12881
  return 0;
12882
}
12883
_ACEOF
12884
rm -f conftest.$ac_objext conftest$ac_exeext
12885
if { (ac_try="$ac_link"
12886
case "(($ac_try" in
12887
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12888
  *) ac_try_echo=$ac_try;;
12889
esac
12890 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12891
$as_echo "$ac_try_echo") >&5
12892 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
12893
  ac_status=$?
12894
  grep -v '^ *+' conftest.er1 >conftest.err
12895
  rm -f conftest.er1
12896
  cat conftest.err >&5
12897 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 19 jeremybenn
  (exit $ac_status); } && {
12899
         test -z "$ac_c_werror_flag" ||
12900
         test ! -s conftest.err
12901 82 jeremybenn
       } && test -s conftest$ac_exeext && {
12902
         test "$cross_compiling" = yes ||
12903
         $as_test_x conftest$ac_exeext
12904
       }; then
12905 19 jeremybenn
  eval "$as_ac_var=yes"
12906
else
12907 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12908 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12909
 
12910
        eval "$as_ac_var=no"
12911
fi
12912
 
12913 82 jeremybenn
rm -rf conftest.dSYM
12914 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12915
      conftest$ac_exeext conftest.$ac_ext
12916
fi
12917 82 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_var'}
12918
                 $as_echo "$as_val"'`
12919
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12920
$as_echo "$ac_res" >&6; }
12921
as_val=`eval 'as_val=${'$as_ac_var'}
12922
                 $as_echo "$as_val"'`
12923
   if test "x$as_val" = x""yes; then
12924 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12925 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12926 19 jeremybenn
_ACEOF
12927
 
12928
fi
12929
done
12930
 
12931 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for working strcoll" >&5
12932
$as_echo_n "checking for working strcoll... " >&6; }
12933 19 jeremybenn
if test "${ac_cv_func_strcoll_works+set}" = set; then
12934 82 jeremybenn
  $as_echo_n "(cached) " >&6
12935 19 jeremybenn
else
12936
  if test "$cross_compiling" = yes; then
12937
  ac_cv_func_strcoll_works=no
12938
else
12939
  cat >conftest.$ac_ext <<_ACEOF
12940
/* confdefs.h.  */
12941
_ACEOF
12942
cat confdefs.h >>conftest.$ac_ext
12943
cat >>conftest.$ac_ext <<_ACEOF
12944
/* end confdefs.h.  */
12945
$ac_includes_default
12946
int
12947
main ()
12948
{
12949
return (strcoll ("abc", "def") >= 0 ||
12950
         strcoll ("ABC", "DEF") >= 0 ||
12951
         strcoll ("123", "456") >= 0)
12952
  ;
12953
  return 0;
12954
}
12955
_ACEOF
12956
rm -f conftest$ac_exeext
12957
if { (ac_try="$ac_link"
12958
case "(($ac_try" in
12959
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12960
  *) ac_try_echo=$ac_try;;
12961
esac
12962 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12963
$as_echo "$ac_try_echo") >&5
12964 19 jeremybenn
  (eval "$ac_link") 2>&5
12965
  ac_status=$?
12966 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 19 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12968
  { (case "(($ac_try" in
12969
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12970
  *) ac_try_echo=$ac_try;;
12971
esac
12972 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12973
$as_echo "$ac_try_echo") >&5
12974 19 jeremybenn
  (eval "$ac_try") 2>&5
12975
  ac_status=$?
12976 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 19 jeremybenn
  (exit $ac_status); }; }; then
12978
  ac_cv_func_strcoll_works=yes
12979
else
12980 82 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
12981
$as_echo "$as_me: failed program was:" >&5
12982 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12983
 
12984
( exit $ac_status )
12985
ac_cv_func_strcoll_works=no
12986
fi
12987 82 jeremybenn
rm -rf conftest.dSYM
12988 19 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12989
fi
12990
 
12991
 
12992
fi
12993 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
12994
$as_echo "$ac_cv_func_strcoll_works" >&6; }
12995 19 jeremybenn
if test $ac_cv_func_strcoll_works = yes; then
12996
 
12997
cat >>confdefs.h <<\_ACEOF
12998
#define HAVE_STRCOLL 1
12999
_ACEOF
13000
 
13001
fi
13002
 
13003 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether I_PUSH is declared" >&5
13004
$as_echo_n "checking whether I_PUSH is declared... " >&6; }
13005
if test "${ac_cv_have_decl_I_PUSH+set}" = set; then
13006
  $as_echo_n "(cached) " >&6
13007 19 jeremybenn
else
13008
  cat >conftest.$ac_ext <<_ACEOF
13009
/* confdefs.h.  */
13010
_ACEOF
13011
cat confdefs.h >>conftest.$ac_ext
13012
cat >>conftest.$ac_ext <<_ACEOF
13013
/* end confdefs.h.  */
13014 82 jeremybenn
\
13015
               #include 
13016 19 jeremybenn
 
13017
int
13018
main ()
13019
{
13020 82 jeremybenn
#ifndef I_PUSH
13021
  (void) I_PUSH;
13022
#endif
13023 19 jeremybenn
 
13024
  ;
13025
  return 0;
13026
}
13027
_ACEOF
13028
rm -f conftest.$ac_objext
13029
if { (ac_try="$ac_compile"
13030
case "(($ac_try" in
13031
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13032
  *) ac_try_echo=$ac_try;;
13033
esac
13034 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13035
$as_echo "$ac_try_echo") >&5
13036 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
13037
  ac_status=$?
13038
  grep -v '^ *+' conftest.er1 >conftest.err
13039
  rm -f conftest.er1
13040
  cat conftest.err >&5
13041 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 19 jeremybenn
  (exit $ac_status); } && {
13043
         test -z "$ac_c_werror_flag" ||
13044
         test ! -s conftest.err
13045
       } && test -s conftest.$ac_objext; then
13046 82 jeremybenn
  ac_cv_have_decl_I_PUSH=yes
13047 19 jeremybenn
else
13048 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13049 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13050
 
13051 82 jeremybenn
        ac_cv_have_decl_I_PUSH=no
13052 19 jeremybenn
fi
13053
 
13054
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13055 82 jeremybenn
fi
13056
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_I_PUSH" >&5
13057
$as_echo "$ac_cv_have_decl_I_PUSH" >&6; }
13058
if test "x$ac_cv_have_decl_I_PUSH" = x""yes; then
13059 19 jeremybenn
 
13060 82 jeremybenn
cat >>confdefs.h <<_ACEOF
13061
#define HAVE_DECL_I_PUSH 1
13062 19 jeremybenn
_ACEOF
13063
 
13064 82 jeremybenn
 
13065 19 jeremybenn
else
13066 82 jeremybenn
  cat >>confdefs.h <<_ACEOF
13067
#define HAVE_DECL_I_PUSH 0
13068 19 jeremybenn
_ACEOF
13069
 
13070
 
13071
fi
13072 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether rl_event_hook is declared" >&5
13073
$as_echo_n "checking whether rl_event_hook is declared... " >&6; }
13074
if test "${ac_cv_have_decl_rl_event_hook+set}" = set; then
13075
  $as_echo_n "(cached) " >&6
13076 19 jeremybenn
else
13077
  cat >conftest.$ac_ext <<_ACEOF
13078
/* confdefs.h.  */
13079
_ACEOF
13080
cat confdefs.h >>conftest.$ac_ext
13081
cat >>conftest.$ac_ext <<_ACEOF
13082
/* end confdefs.h.  */
13083 82 jeremybenn
\
13084
               #include 
13085 19 jeremybenn
 
13086
int
13087
main ()
13088
{
13089 82 jeremybenn
#ifndef rl_event_hook
13090
  (void) rl_event_hook;
13091
#endif
13092
 
13093
  ;
13094 19 jeremybenn
  return 0;
13095
}
13096
_ACEOF
13097 82 jeremybenn
rm -f conftest.$ac_objext
13098
if { (ac_try="$ac_compile"
13099 19 jeremybenn
case "(($ac_try" in
13100
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13101
  *) ac_try_echo=$ac_try;;
13102
esac
13103 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13104
$as_echo "$ac_try_echo") >&5
13105
  (eval "$ac_compile") 2>conftest.er1
13106 19 jeremybenn
  ac_status=$?
13107 82 jeremybenn
  grep -v '^ *+' conftest.er1 >conftest.err
13108
  rm -f conftest.er1
13109
  cat conftest.err >&5
13110
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111
  (exit $ac_status); } && {
13112
         test -z "$ac_c_werror_flag" ||
13113
         test ! -s conftest.err
13114
       } && test -s conftest.$ac_objext; then
13115
  ac_cv_have_decl_rl_event_hook=yes
13116 19 jeremybenn
else
13117 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13118 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13119
 
13120 82 jeremybenn
        ac_cv_have_decl_rl_event_hook=no
13121 19 jeremybenn
fi
13122
 
13123 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13124 19 jeremybenn
fi
13125 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_rl_event_hook" >&5
13126
$as_echo "$ac_cv_have_decl_rl_event_hook" >&6; }
13127
if test "x$ac_cv_have_decl_rl_event_hook" = x""yes; then
13128 19 jeremybenn
 
13129 82 jeremybenn
cat >>confdefs.h <<_ACEOF
13130
#define HAVE_DECL_RL_EVENT_HOOK 1
13131 19 jeremybenn
_ACEOF
13132
 
13133
 
13134 82 jeremybenn
else
13135
  cat >>confdefs.h <<_ACEOF
13136
#define HAVE_DECL_RL_EVENT_HOOK 0
13137
_ACEOF
13138 19 jeremybenn
 
13139
 
13140 82 jeremybenn
fi
13141 19 jeremybenn
 
13142
 
13143
 
13144 82 jeremybenn
 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13145
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13146
if test "${ac_cv_c_bigendian+set}" = set; then
13147
  $as_echo_n "(cached) " >&6
13148 19 jeremybenn
else
13149 82 jeremybenn
  ac_cv_c_bigendian=unknown
13150
    # See if we're dealing with a universal compiler.
13151
    cat >conftest.$ac_ext <<_ACEOF
13152 19 jeremybenn
/* confdefs.h.  */
13153
_ACEOF
13154
cat confdefs.h >>conftest.$ac_ext
13155
cat >>conftest.$ac_ext <<_ACEOF
13156
/* end confdefs.h.  */
13157 82 jeremybenn
#ifndef __APPLE_CC__
13158
               not a universal capable compiler
13159
             #endif
13160
             typedef int dummy;
13161
 
13162 19 jeremybenn
_ACEOF
13163
rm -f conftest.$ac_objext
13164
if { (ac_try="$ac_compile"
13165
case "(($ac_try" in
13166
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13167
  *) ac_try_echo=$ac_try;;
13168
esac
13169 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13170
$as_echo "$ac_try_echo") >&5
13171 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
13172
  ac_status=$?
13173
  grep -v '^ *+' conftest.er1 >conftest.err
13174
  rm -f conftest.er1
13175
  cat conftest.err >&5
13176 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 19 jeremybenn
  (exit $ac_status); } && {
13178
         test -z "$ac_c_werror_flag" ||
13179
         test ! -s conftest.err
13180
       } && test -s conftest.$ac_objext; then
13181 82 jeremybenn
 
13182
        # Check for potential -arch flags.  It is not universal unless
13183
        # there are some -arch flags.  Note that *ppc* also matches
13184
        # ppc64.  This check is also rather less than ideal.
13185
        case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
13186
          *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
13187
        esac
13188 19 jeremybenn
else
13189 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13190 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13191
 
13192 82 jeremybenn
 
13193 19 jeremybenn
fi
13194
 
13195
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13196 82 jeremybenn
    if test $ac_cv_c_bigendian = unknown; then
13197
      # See if sys/param.h defines the BYTE_ORDER macro.
13198
      cat >conftest.$ac_ext <<_ACEOF
13199 19 jeremybenn
/* confdefs.h.  */
13200
_ACEOF
13201
cat confdefs.h >>conftest.$ac_ext
13202
cat >>conftest.$ac_ext <<_ACEOF
13203
/* end confdefs.h.  */
13204 82 jeremybenn
#include 
13205
             #include 
13206
 
13207
int
13208
main ()
13209
{
13210
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13211
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13212
                     && LITTLE_ENDIAN)
13213
              bogus endian macros
13214
             #endif
13215
 
13216
  ;
13217
  return 0;
13218
}
13219 19 jeremybenn
_ACEOF
13220 82 jeremybenn
rm -f conftest.$ac_objext
13221
if { (ac_try="$ac_compile"
13222 19 jeremybenn
case "(($ac_try" in
13223
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13224
  *) ac_try_echo=$ac_try;;
13225
esac
13226 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13227
$as_echo "$ac_try_echo") >&5
13228
  (eval "$ac_compile") 2>conftest.er1
13229 19 jeremybenn
  ac_status=$?
13230
  grep -v '^ *+' conftest.er1 >conftest.err
13231
  rm -f conftest.er1
13232
  cat conftest.err >&5
13233 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234
  (exit $ac_status); } && {
13235
         test -z "$ac_c_werror_flag" ||
13236 19 jeremybenn
         test ! -s conftest.err
13237 82 jeremybenn
       } && test -s conftest.$ac_objext; then
13238
  # It does; now see whether it defined to BIG_ENDIAN or not.
13239
         cat >conftest.$ac_ext <<_ACEOF
13240 19 jeremybenn
/* confdefs.h.  */
13241
_ACEOF
13242
cat confdefs.h >>conftest.$ac_ext
13243
cat >>conftest.$ac_ext <<_ACEOF
13244
/* end confdefs.h.  */
13245 82 jeremybenn
#include 
13246
                #include 
13247
 
13248 19 jeremybenn
int
13249
main ()
13250
{
13251 82 jeremybenn
#if BYTE_ORDER != BIG_ENDIAN
13252
                 not big endian
13253
                #endif
13254 19 jeremybenn
 
13255
  ;
13256
  return 0;
13257
}
13258
_ACEOF
13259
rm -f conftest.$ac_objext
13260
if { (ac_try="$ac_compile"
13261
case "(($ac_try" in
13262
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13263
  *) ac_try_echo=$ac_try;;
13264
esac
13265 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13266
$as_echo "$ac_try_echo") >&5
13267 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
13268
  ac_status=$?
13269
  grep -v '^ *+' conftest.er1 >conftest.err
13270
  rm -f conftest.er1
13271
  cat conftest.err >&5
13272 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 19 jeremybenn
  (exit $ac_status); } && {
13274
         test -z "$ac_c_werror_flag" ||
13275
         test ! -s conftest.err
13276
       } && test -s conftest.$ac_objext; then
13277 82 jeremybenn
  ac_cv_c_bigendian=yes
13278 19 jeremybenn
else
13279 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13280 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13281
 
13282 82 jeremybenn
        ac_cv_c_bigendian=no
13283 19 jeremybenn
fi
13284
 
13285
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13286
else
13287 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13288
sed 's/^/| /' conftest.$ac_ext >&5
13289 19 jeremybenn
 
13290
 
13291
fi
13292
 
13293 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13294
    fi
13295
    if test $ac_cv_c_bigendian = unknown; then
13296
      # See if  defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13297
      cat >conftest.$ac_ext <<_ACEOF
13298 19 jeremybenn
/* confdefs.h.  */
13299
_ACEOF
13300
cat confdefs.h >>conftest.$ac_ext
13301
cat >>conftest.$ac_ext <<_ACEOF
13302
/* end confdefs.h.  */
13303 82 jeremybenn
#include 
13304 19 jeremybenn
 
13305
int
13306
main ()
13307
{
13308 82 jeremybenn
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13309
              bogus endian macros
13310
             #endif
13311 19 jeremybenn
 
13312
  ;
13313
  return 0;
13314
}
13315
_ACEOF
13316
rm -f conftest.$ac_objext
13317
if { (ac_try="$ac_compile"
13318
case "(($ac_try" in
13319
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13320
  *) ac_try_echo=$ac_try;;
13321
esac
13322 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13323
$as_echo "$ac_try_echo") >&5
13324 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
13325
  ac_status=$?
13326
  grep -v '^ *+' conftest.er1 >conftest.err
13327
  rm -f conftest.er1
13328
  cat conftest.err >&5
13329 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 19 jeremybenn
  (exit $ac_status); } && {
13331
         test -z "$ac_c_werror_flag" ||
13332
         test ! -s conftest.err
13333
       } && test -s conftest.$ac_objext; then
13334 82 jeremybenn
  # It does; now see whether it defined to _BIG_ENDIAN or not.
13335
         cat >conftest.$ac_ext <<_ACEOF
13336 19 jeremybenn
/* confdefs.h.  */
13337
_ACEOF
13338
cat confdefs.h >>conftest.$ac_ext
13339
cat >>conftest.$ac_ext <<_ACEOF
13340
/* end confdefs.h.  */
13341 82 jeremybenn
#include 
13342 19 jeremybenn
 
13343
int
13344
main ()
13345
{
13346 82 jeremybenn
#ifndef _BIG_ENDIAN
13347
                 not big endian
13348
                #endif
13349 19 jeremybenn
 
13350
  ;
13351
  return 0;
13352
}
13353
_ACEOF
13354
rm -f conftest.$ac_objext
13355
if { (ac_try="$ac_compile"
13356
case "(($ac_try" in
13357
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13358
  *) ac_try_echo=$ac_try;;
13359
esac
13360 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13361
$as_echo "$ac_try_echo") >&5
13362 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
13363
  ac_status=$?
13364
  grep -v '^ *+' conftest.er1 >conftest.err
13365
  rm -f conftest.er1
13366
  cat conftest.err >&5
13367 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 19 jeremybenn
  (exit $ac_status); } && {
13369
         test -z "$ac_c_werror_flag" ||
13370
         test ! -s conftest.err
13371
       } && test -s conftest.$ac_objext; then
13372
  ac_cv_c_bigendian=yes
13373
else
13374 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13375 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13376
 
13377
        ac_cv_c_bigendian=no
13378
fi
13379
 
13380
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13381
else
13382 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13383 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13384
 
13385 82 jeremybenn
 
13386
fi
13387
 
13388
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13389
    fi
13390
    if test $ac_cv_c_bigendian = unknown; then
13391
      # Compile a test program.
13392
      if test "$cross_compiling" = yes; then
13393
  # Try to guess by grepping values from an object file.
13394
         cat >conftest.$ac_ext <<_ACEOF
13395 19 jeremybenn
/* confdefs.h.  */
13396
_ACEOF
13397
cat confdefs.h >>conftest.$ac_ext
13398
cat >>conftest.$ac_ext <<_ACEOF
13399
/* end confdefs.h.  */
13400 82 jeremybenn
short int ascii_mm[] =
13401
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13402
                short int ascii_ii[] =
13403
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13404
                int use_ascii (int i) {
13405
                  return ascii_mm[i] + ascii_ii[i];
13406
                }
13407
                short int ebcdic_ii[] =
13408
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13409
                short int ebcdic_mm[] =
13410
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13411
                int use_ebcdic (int i) {
13412
                  return ebcdic_mm[i] + ebcdic_ii[i];
13413
                }
13414
                extern int foo;
13415
 
13416 19 jeremybenn
int
13417
main ()
13418
{
13419 82 jeremybenn
return use_ascii (foo) == use_ebcdic (foo);
13420 19 jeremybenn
  ;
13421
  return 0;
13422
}
13423
_ACEOF
13424
rm -f conftest.$ac_objext
13425
if { (ac_try="$ac_compile"
13426
case "(($ac_try" in
13427
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13428
  *) ac_try_echo=$ac_try;;
13429
esac
13430 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13431
$as_echo "$ac_try_echo") >&5
13432 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
13433
  ac_status=$?
13434
  grep -v '^ *+' conftest.er1 >conftest.err
13435
  rm -f conftest.er1
13436
  cat conftest.err >&5
13437 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 19 jeremybenn
  (exit $ac_status); } && {
13439
         test -z "$ac_c_werror_flag" ||
13440
         test ! -s conftest.err
13441
       } && test -s conftest.$ac_objext; then
13442 82 jeremybenn
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13443
              ac_cv_c_bigendian=yes
13444
            fi
13445
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13446
              if test "$ac_cv_c_bigendian" = unknown; then
13447
                ac_cv_c_bigendian=no
13448
              else
13449
                # finding both strings is unlikely to happen, but who knows?
13450
                ac_cv_c_bigendian=unknown
13451
              fi
13452
            fi
13453 19 jeremybenn
else
13454 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13455 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13456
 
13457
 
13458
fi
13459
 
13460
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13461
else
13462
  cat >conftest.$ac_ext <<_ACEOF
13463
/* confdefs.h.  */
13464
_ACEOF
13465
cat confdefs.h >>conftest.$ac_ext
13466
cat >>conftest.$ac_ext <<_ACEOF
13467
/* end confdefs.h.  */
13468
$ac_includes_default
13469
int
13470
main ()
13471
{
13472
 
13473 82 jeremybenn
             /* Are we little or big endian?  From Harbison&Steele.  */
13474
             union
13475
             {
13476
               long int l;
13477
               char c[sizeof (long int)];
13478
             } u;
13479
             u.l = 1;
13480
             return u.c[sizeof (long int) - 1] == 1;
13481 19 jeremybenn
 
13482
  ;
13483
  return 0;
13484
}
13485
_ACEOF
13486
rm -f conftest$ac_exeext
13487
if { (ac_try="$ac_link"
13488
case "(($ac_try" in
13489
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13490
  *) ac_try_echo=$ac_try;;
13491
esac
13492 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13493
$as_echo "$ac_try_echo") >&5
13494 19 jeremybenn
  (eval "$ac_link") 2>&5
13495
  ac_status=$?
13496 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 19 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13498
  { (case "(($ac_try" in
13499
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13500
  *) ac_try_echo=$ac_try;;
13501
esac
13502 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13503
$as_echo "$ac_try_echo") >&5
13504 19 jeremybenn
  (eval "$ac_try") 2>&5
13505
  ac_status=$?
13506 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 19 jeremybenn
  (exit $ac_status); }; }; then
13508
  ac_cv_c_bigendian=no
13509
else
13510 82 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
13511
$as_echo "$as_me: failed program was:" >&5
13512 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13513
 
13514
( exit $ac_status )
13515
ac_cv_c_bigendian=yes
13516
fi
13517 82 jeremybenn
rm -rf conftest.dSYM
13518 19 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13519
fi
13520
 
13521
 
13522 82 jeremybenn
    fi
13523 19 jeremybenn
fi
13524 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13525
$as_echo "$ac_cv_c_bigendian" >&6; }
13526
 case $ac_cv_c_bigendian in #(
13527
   yes)
13528
     cat >>confdefs.h <<\_ACEOF
13529
#define WORDS_BIGENDIAN 1
13530
_ACEOF
13531
;; #(
13532
   no)
13533
      ;; #(
13534
   universal)
13535 19 jeremybenn
 
13536 82 jeremybenn
cat >>confdefs.h <<\_ACEOF
13537
#define AC_APPLE_UNIVERSAL_BUILD 1
13538
_ACEOF
13539
 
13540
     ;; #(
13541
   *)
13542
     { { $as_echo "$as_me:$LINENO: error: unknown endianness
13543
 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13544
$as_echo "$as_me: error: unknown endianness
13545
 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13546
   { (exit 1); exit 1; }; } ;;
13547
 esac
13548
 
13549
 
13550
# The test for strndup, strcasecmp and isblank fails on modern machines. I
13551
# think it's because GCC 4 does not like the way autoconf overrides the built
13552
# in type declaration. So we must check for them by steam.
13553
{ $as_echo "$as_me:$LINENO: checking for strndup" >&5
13554
$as_echo_n "checking for strndup... " >&6; }
13555
cat >conftest.$ac_ext <<_ACEOF
13556
/* confdefs.h.  */
13557
_ACEOF
13558
cat confdefs.h >>conftest.$ac_ext
13559
cat >>conftest.$ac_ext <<_ACEOF
13560
/* end confdefs.h.  */
13561
#ifdef HAVE_STRING_H
13562
                                  #include 
13563
                                  #else
13564
                                  char *strndup (const char *s,
13565
                                                 size_t      n);
13566
                                  #endif
13567
int
13568
main ()
13569
{
13570
\
13571
                                const char *s = "test";
13572
                                  char       *t;
13573
                                  t = strndup (s, 3);
13574
  ;
13575
  return 0;
13576
}
13577
_ACEOF
13578
rm -f conftest.$ac_objext conftest$ac_exeext
13579
if { (ac_try="$ac_link"
13580
case "(($ac_try" in
13581
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13582
  *) ac_try_echo=$ac_try;;
13583
esac
13584
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13585
$as_echo "$ac_try_echo") >&5
13586
  (eval "$ac_link") 2>conftest.er1
13587
  ac_status=$?
13588
  grep -v '^ *+' conftest.er1 >conftest.err
13589
  rm -f conftest.er1
13590
  cat conftest.err >&5
13591
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592
  (exit $ac_status); } && {
13593
         test -z "$ac_c_werror_flag" ||
13594
         test ! -s conftest.err
13595
       } && test -s conftest$ac_exeext && {
13596
         test "$cross_compiling" = yes ||
13597
         $as_test_x conftest$ac_exeext
13598
       }; then
13599
  \
13600
 
13601
cat >>confdefs.h <<\_ACEOF
13602
#define HAVE_STRNDUP 1
13603
_ACEOF
13604
 \
13605
                { $as_echo "$as_me:$LINENO: result: yes" >&5
13606
$as_echo "yes" >&6; }
13607
else
13608
  $as_echo "$as_me: failed program was:" >&5
13609
sed 's/^/| /' conftest.$ac_ext >&5
13610
 
13611
        { $as_echo "$as_me:$LINENO: result: no" >&5
13612
$as_echo "no" >&6; }
13613 19 jeremybenn
fi
13614
 
13615 82 jeremybenn
rm -rf conftest.dSYM
13616
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13617
      conftest$ac_exeext conftest.$ac_ext
13618
 
13619
{ $as_echo "$as_me:$LINENO: checking for strcasecmp" >&5
13620
$as_echo_n "checking for strcasecmp... " >&6; }
13621
cat >conftest.$ac_ext <<_ACEOF
13622
/* confdefs.h.  */
13623
_ACEOF
13624
cat confdefs.h >>conftest.$ac_ext
13625
cat >>conftest.$ac_ext <<_ACEOF
13626
/* end confdefs.h.  */
13627
#ifdef HAVE_STRINGS_H
13628
                                  #include 
13629
                                  #else
13630
                                  int strcasecmp (const char *s1,
13631
                                                  const char *s2);
13632
                                  #endif
13633
int
13634
main ()
13635
{
13636
\
13637
                                const char *s = "test";
13638
                                  const char *t = "TEST";
13639
                                  int         res;
13640
                                  res = strcasecmp (s, t);
13641
  ;
13642
  return 0;
13643
}
13644
_ACEOF
13645
rm -f conftest.$ac_objext conftest$ac_exeext
13646
if { (ac_try="$ac_link"
13647
case "(($ac_try" in
13648
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13649
  *) ac_try_echo=$ac_try;;
13650
esac
13651
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13652
$as_echo "$ac_try_echo") >&5
13653
  (eval "$ac_link") 2>conftest.er1
13654
  ac_status=$?
13655
  grep -v '^ *+' conftest.er1 >conftest.err
13656
  rm -f conftest.er1
13657
  cat conftest.err >&5
13658
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659
  (exit $ac_status); } && {
13660
         test -z "$ac_c_werror_flag" ||
13661
         test ! -s conftest.err
13662
       } && test -s conftest$ac_exeext && {
13663
         test "$cross_compiling" = yes ||
13664
         $as_test_x conftest$ac_exeext
13665
       }; then
13666
  \
13667
 
13668 19 jeremybenn
cat >>confdefs.h <<\_ACEOF
13669 82 jeremybenn
#define HAVE_STRCASECMP 1
13670 19 jeremybenn
_ACEOF
13671 82 jeremybenn
 \
13672
                { $as_echo "$as_me:$LINENO: result: yes" >&5
13673
$as_echo "yes" >&6; }
13674
else
13675
  $as_echo "$as_me: failed program was:" >&5
13676
sed 's/^/| /' conftest.$ac_ext >&5
13677
 
13678
        { $as_echo "$as_me:$LINENO: result: no" >&5
13679
$as_echo "no" >&6; }
13680
fi
13681
 
13682
rm -rf conftest.dSYM
13683
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13684
      conftest$ac_exeext conftest.$ac_ext
13685
 
13686
{ $as_echo "$as_me:$LINENO: checking for isblank" >&5
13687
$as_echo_n "checking for isblank... " >&6; }
13688
cat >conftest.$ac_ext <<_ACEOF
13689
/* confdefs.h.  */
13690
_ACEOF
13691
cat confdefs.h >>conftest.$ac_ext
13692
cat >>conftest.$ac_ext <<_ACEOF
13693
/* end confdefs.h.  */
13694
#ifdef HAVE_CTYPE_H
13695
                                  #include 
13696
                                  #else
13697
                                  int isblank (int  c);
13698
                                  #endif
13699
int
13700
main ()
13701
{
13702
\
13703
                                return isblank ('x');
13704
  ;
13705
  return 0;
13706
}
13707
_ACEOF
13708
rm -f conftest.$ac_objext conftest$ac_exeext
13709
if { (ac_try="$ac_link"
13710
case "(($ac_try" in
13711
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13712
  *) ac_try_echo=$ac_try;;
13713 19 jeremybenn
esac
13714 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13715
$as_echo "$ac_try_echo") >&5
13716
  (eval "$ac_link") 2>conftest.er1
13717
  ac_status=$?
13718
  grep -v '^ *+' conftest.er1 >conftest.err
13719
  rm -f conftest.er1
13720
  cat conftest.err >&5
13721
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722
  (exit $ac_status); } && {
13723
         test -z "$ac_c_werror_flag" ||
13724
         test ! -s conftest.err
13725
       } && test -s conftest$ac_exeext && {
13726
         test "$cross_compiling" = yes ||
13727
         $as_test_x conftest$ac_exeext
13728
       }; then
13729
  \
13730 19 jeremybenn
 
13731 82 jeremybenn
cat >>confdefs.h <<\_ACEOF
13732
#define HAVE_ISBLANK 1
13733
_ACEOF
13734
 \
13735
                { $as_echo "$as_me:$LINENO: result: yes" >&5
13736
$as_echo "yes" >&6; }
13737
else
13738
  $as_echo "$as_me: failed program was:" >&5
13739
sed 's/^/| /' conftest.$ac_ext >&5
13740 19 jeremybenn
 
13741 82 jeremybenn
        { $as_echo "$as_me:$LINENO: result: no" >&5
13742
$as_echo "no" >&6; }
13743
fi
13744
 
13745
rm -rf conftest.dSYM
13746
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13747
      conftest$ac_exeext conftest.$ac_ext
13748
 
13749 19 jeremybenn
# Checks for typedefs, structures, and compiler characteristics (for argtable2)
13750 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13751
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13752 19 jeremybenn
if test "${ac_cv_c_const+set}" = set; then
13753 82 jeremybenn
  $as_echo_n "(cached) " >&6
13754 19 jeremybenn
else
13755
  cat >conftest.$ac_ext <<_ACEOF
13756
/* confdefs.h.  */
13757
_ACEOF
13758
cat confdefs.h >>conftest.$ac_ext
13759
cat >>conftest.$ac_ext <<_ACEOF
13760
/* end confdefs.h.  */
13761
 
13762
int
13763
main ()
13764
{
13765
/* FIXME: Include the comments suggested by Paul. */
13766
#ifndef __cplusplus
13767
  /* Ultrix mips cc rejects this.  */
13768
  typedef int charset[2];
13769
  const charset cs;
13770
  /* SunOS 4.1.1 cc rejects this.  */
13771
  char const *const *pcpcc;
13772
  char **ppc;
13773
  /* NEC SVR4.0.2 mips cc rejects this.  */
13774
  struct point {int x, y;};
13775
  static struct point const zero = {0,0};
13776
  /* AIX XL C 1.02.0.0 rejects this.
13777
     It does not let you subtract one const X* pointer from another in
13778
     an arm of an if-expression whose if-part is not a constant
13779
     expression */
13780
  const char *g = "string";
13781
  pcpcc = &g + (g ? g-g : 0);
13782
  /* HPUX 7.0 cc rejects these. */
13783
  ++pcpcc;
13784
  ppc = (char**) pcpcc;
13785
  pcpcc = (char const *const *) ppc;
13786
  { /* SCO 3.2v4 cc rejects this.  */
13787
    char *t;
13788
    char const *s = 0 ? (char *) 0 : (char const *) 0;
13789
 
13790
    *t++ = 0;
13791
    if (s) return 0;
13792
  }
13793
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13794
    int x[] = {25, 17};
13795
    const int *foo = &x[0];
13796
    ++foo;
13797
  }
13798
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13799
    typedef const int *iptr;
13800
    iptr p = 0;
13801
    ++p;
13802
  }
13803
  { /* AIX XL C 1.02.0.0 rejects this saying
13804
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13805
    struct s { int j; const int *ap[3]; };
13806
    struct s *b; b->j = 5;
13807
  }
13808
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13809
    const int foo = 10;
13810
    if (!foo) return 0;
13811
  }
13812
  return !cs[0] && !zero.x;
13813
#endif
13814
 
13815
  ;
13816
  return 0;
13817
}
13818
_ACEOF
13819
rm -f conftest.$ac_objext
13820
if { (ac_try="$ac_compile"
13821
case "(($ac_try" in
13822
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13823
  *) ac_try_echo=$ac_try;;
13824
esac
13825 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13826
$as_echo "$ac_try_echo") >&5
13827 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
13828
  ac_status=$?
13829
  grep -v '^ *+' conftest.er1 >conftest.err
13830
  rm -f conftest.er1
13831
  cat conftest.err >&5
13832 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 19 jeremybenn
  (exit $ac_status); } && {
13834
         test -z "$ac_c_werror_flag" ||
13835
         test ! -s conftest.err
13836
       } && test -s conftest.$ac_objext; then
13837
  ac_cv_c_const=yes
13838
else
13839 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13840 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13841
 
13842
        ac_cv_c_const=no
13843
fi
13844
 
13845
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13846
fi
13847 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13848
$as_echo "$ac_cv_c_const" >&6; }
13849 19 jeremybenn
if test $ac_cv_c_const = no; then
13850
 
13851
cat >>confdefs.h <<\_ACEOF
13852 82 jeremybenn
#define const /**/
13853 19 jeremybenn
_ACEOF
13854
 
13855
fi
13856
 
13857 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
13858
$as_echo_n "checking for size_t... " >&6; }
13859 19 jeremybenn
if test "${ac_cv_type_size_t+set}" = set; then
13860 82 jeremybenn
  $as_echo_n "(cached) " >&6
13861 19 jeremybenn
else
13862 82 jeremybenn
  ac_cv_type_size_t=no
13863
cat >conftest.$ac_ext <<_ACEOF
13864
/* confdefs.h.  */
13865
_ACEOF
13866
cat confdefs.h >>conftest.$ac_ext
13867
cat >>conftest.$ac_ext <<_ACEOF
13868
/* end confdefs.h.  */
13869
$ac_includes_default
13870
int
13871
main ()
13872
{
13873
if (sizeof (size_t))
13874
       return 0;
13875
  ;
13876
  return 0;
13877
}
13878
_ACEOF
13879
rm -f conftest.$ac_objext
13880
if { (ac_try="$ac_compile"
13881
case "(($ac_try" in
13882
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13883
  *) ac_try_echo=$ac_try;;
13884
esac
13885
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13886
$as_echo "$ac_try_echo") >&5
13887
  (eval "$ac_compile") 2>conftest.er1
13888
  ac_status=$?
13889
  grep -v '^ *+' conftest.er1 >conftest.err
13890
  rm -f conftest.er1
13891
  cat conftest.err >&5
13892
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893
  (exit $ac_status); } && {
13894
         test -z "$ac_c_werror_flag" ||
13895
         test ! -s conftest.err
13896
       } && test -s conftest.$ac_objext; then
13897 19 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
13898
/* confdefs.h.  */
13899
_ACEOF
13900
cat confdefs.h >>conftest.$ac_ext
13901
cat >>conftest.$ac_ext <<_ACEOF
13902
/* end confdefs.h.  */
13903
$ac_includes_default
13904
int
13905
main ()
13906
{
13907 82 jeremybenn
if (sizeof ((size_t)))
13908
          return 0;
13909 19 jeremybenn
  ;
13910
  return 0;
13911
}
13912
_ACEOF
13913
rm -f conftest.$ac_objext
13914
if { (ac_try="$ac_compile"
13915
case "(($ac_try" in
13916
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13917
  *) ac_try_echo=$ac_try;;
13918
esac
13919 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13920
$as_echo "$ac_try_echo") >&5
13921 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
13922
  ac_status=$?
13923
  grep -v '^ *+' conftest.er1 >conftest.err
13924
  rm -f conftest.er1
13925
  cat conftest.err >&5
13926 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 19 jeremybenn
  (exit $ac_status); } && {
13928
         test -z "$ac_c_werror_flag" ||
13929
         test ! -s conftest.err
13930
       } && test -s conftest.$ac_objext; then
13931 82 jeremybenn
  :
13932 19 jeremybenn
else
13933 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13934 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13935
 
13936 82 jeremybenn
        ac_cv_type_size_t=yes
13937 19 jeremybenn
fi
13938
 
13939
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13940 82 jeremybenn
else
13941
  $as_echo "$as_me: failed program was:" >&5
13942
sed 's/^/| /' conftest.$ac_ext >&5
13943
 
13944
 
13945 19 jeremybenn
fi
13946 82 jeremybenn
 
13947
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13948
fi
13949
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13950
$as_echo "$ac_cv_type_size_t" >&6; }
13951
if test "x$ac_cv_type_size_t" = x""yes; then
13952 19 jeremybenn
  :
13953
else
13954
 
13955
cat >>confdefs.h <<_ACEOF
13956
#define size_t unsigned int
13957
_ACEOF
13958
 
13959
fi
13960
 
13961 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13962
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
13963 19 jeremybenn
if test "${ac_cv_struct_tm+set}" = set; then
13964 82 jeremybenn
  $as_echo_n "(cached) " >&6
13965 19 jeremybenn
else
13966
  cat >conftest.$ac_ext <<_ACEOF
13967
/* confdefs.h.  */
13968
_ACEOF
13969
cat confdefs.h >>conftest.$ac_ext
13970
cat >>conftest.$ac_ext <<_ACEOF
13971
/* end confdefs.h.  */
13972
#include 
13973
#include 
13974
 
13975
int
13976
main ()
13977
{
13978
struct tm tm;
13979
                                     int *p = &tm.tm_sec;
13980 82 jeremybenn
                                     return !p;
13981 19 jeremybenn
  ;
13982
  return 0;
13983
}
13984
_ACEOF
13985
rm -f conftest.$ac_objext
13986
if { (ac_try="$ac_compile"
13987
case "(($ac_try" in
13988
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13989
  *) ac_try_echo=$ac_try;;
13990
esac
13991 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13992
$as_echo "$ac_try_echo") >&5
13993 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
13994
  ac_status=$?
13995
  grep -v '^ *+' conftest.er1 >conftest.err
13996
  rm -f conftest.er1
13997
  cat conftest.err >&5
13998 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 19 jeremybenn
  (exit $ac_status); } && {
14000
         test -z "$ac_c_werror_flag" ||
14001
         test ! -s conftest.err
14002
       } && test -s conftest.$ac_objext; then
14003
  ac_cv_struct_tm=time.h
14004
else
14005 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14006 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14007
 
14008
        ac_cv_struct_tm=sys/time.h
14009
fi
14010
 
14011
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14012
fi
14013 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14014
$as_echo "$ac_cv_struct_tm" >&6; }
14015 19 jeremybenn
if test $ac_cv_struct_tm = sys/time.h; then
14016
 
14017
cat >>confdefs.h <<\_ACEOF
14018
#define TM_IN_SYS_TIME 1
14019
_ACEOF
14020
 
14021
fi
14022
 
14023
 
14024
# Checks for library functions (for argtable2).
14025
 
14026
for ac_header in stdlib.h
14027
do
14028 82 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14029 19 jeremybenn
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14030 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14031
$as_echo_n "checking for $ac_header... " >&6; }
14032 19 jeremybenn
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14033 82 jeremybenn
  $as_echo_n "(cached) " >&6
14034 19 jeremybenn
fi
14035 82 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
14036
                 $as_echo "$as_val"'`
14037
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14038
$as_echo "$ac_res" >&6; }
14039 19 jeremybenn
else
14040
  # Is the header compilable?
14041 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14042
$as_echo_n "checking $ac_header usability... " >&6; }
14043 19 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
14044
/* confdefs.h.  */
14045
_ACEOF
14046
cat confdefs.h >>conftest.$ac_ext
14047
cat >>conftest.$ac_ext <<_ACEOF
14048
/* end confdefs.h.  */
14049
$ac_includes_default
14050
#include <$ac_header>
14051
_ACEOF
14052
rm -f conftest.$ac_objext
14053
if { (ac_try="$ac_compile"
14054
case "(($ac_try" in
14055
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14056
  *) ac_try_echo=$ac_try;;
14057
esac
14058 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14059
$as_echo "$ac_try_echo") >&5
14060 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
14061
  ac_status=$?
14062
  grep -v '^ *+' conftest.er1 >conftest.err
14063
  rm -f conftest.er1
14064
  cat conftest.err >&5
14065 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 19 jeremybenn
  (exit $ac_status); } && {
14067
         test -z "$ac_c_werror_flag" ||
14068
         test ! -s conftest.err
14069
       } && test -s conftest.$ac_objext; then
14070
  ac_header_compiler=yes
14071
else
14072 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14073 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14074
 
14075
        ac_header_compiler=no
14076
fi
14077
 
14078
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14079 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14080
$as_echo "$ac_header_compiler" >&6; }
14081 19 jeremybenn
 
14082
# Is the header present?
14083 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14084
$as_echo_n "checking $ac_header presence... " >&6; }
14085 19 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
14086
/* confdefs.h.  */
14087
_ACEOF
14088
cat confdefs.h >>conftest.$ac_ext
14089
cat >>conftest.$ac_ext <<_ACEOF
14090
/* end confdefs.h.  */
14091
#include <$ac_header>
14092
_ACEOF
14093
if { (ac_try="$ac_cpp conftest.$ac_ext"
14094
case "(($ac_try" in
14095
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14096
  *) ac_try_echo=$ac_try;;
14097
esac
14098 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14099
$as_echo "$ac_try_echo") >&5
14100 19 jeremybenn
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14101
  ac_status=$?
14102
  grep -v '^ *+' conftest.er1 >conftest.err
14103
  rm -f conftest.er1
14104
  cat conftest.err >&5
14105 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 19 jeremybenn
  (exit $ac_status); } >/dev/null && {
14107
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14108
         test ! -s conftest.err
14109
       }; then
14110
  ac_header_preproc=yes
14111
else
14112 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14113 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14114
 
14115
  ac_header_preproc=no
14116
fi
14117
 
14118
rm -f conftest.err conftest.$ac_ext
14119 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14120
$as_echo "$ac_header_preproc" >&6; }
14121 19 jeremybenn
 
14122
# So?  What about this header?
14123
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14124
  yes:no: )
14125 82 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14126
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14127
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14128
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14129 19 jeremybenn
    ac_header_preproc=yes
14130
    ;;
14131
  no:yes:* )
14132 82 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14133
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14134
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14135
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14136
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14137
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14138
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14139
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14140
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14141
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14142
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14143
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14144 19 jeremybenn
    ( cat <<\_ASBOX
14145
## ------------------------------------- ##
14146
## Report this to openrisc@opencores.org ##
14147
## ------------------------------------- ##
14148
_ASBOX
14149
     ) | sed "s/^/$as_me: WARNING:     /" >&2
14150
    ;;
14151
esac
14152 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14153
$as_echo_n "checking for $ac_header... " >&6; }
14154 19 jeremybenn
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14155 82 jeremybenn
  $as_echo_n "(cached) " >&6
14156 19 jeremybenn
else
14157
  eval "$as_ac_Header=\$ac_header_preproc"
14158
fi
14159 82 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
14160
                 $as_echo "$as_val"'`
14161
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14162
$as_echo "$ac_res" >&6; }
14163 19 jeremybenn
 
14164
fi
14165 82 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
14166
                 $as_echo "$as_val"'`
14167
   if test "x$as_val" = x""yes; then
14168 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
14169 82 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14170 19 jeremybenn
_ACEOF
14171
 
14172
fi
14173
 
14174
done
14175
 
14176 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
14177
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
14178 19 jeremybenn
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
14179 82 jeremybenn
  $as_echo_n "(cached) " >&6
14180 19 jeremybenn
else
14181
  if test "$cross_compiling" = yes; then
14182
  ac_cv_func_malloc_0_nonnull=no
14183
else
14184
  cat >conftest.$ac_ext <<_ACEOF
14185
/* confdefs.h.  */
14186
_ACEOF
14187
cat confdefs.h >>conftest.$ac_ext
14188
cat >>conftest.$ac_ext <<_ACEOF
14189
/* end confdefs.h.  */
14190
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
14191
# include 
14192
#else
14193
char *malloc ();
14194
#endif
14195
 
14196
int
14197
main ()
14198
{
14199
return ! malloc (0);
14200
  ;
14201
  return 0;
14202
}
14203
_ACEOF
14204
rm -f conftest$ac_exeext
14205
if { (ac_try="$ac_link"
14206
case "(($ac_try" in
14207
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14208
  *) ac_try_echo=$ac_try;;
14209
esac
14210 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14211
$as_echo "$ac_try_echo") >&5
14212 19 jeremybenn
  (eval "$ac_link") 2>&5
14213
  ac_status=$?
14214 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 19 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14216
  { (case "(($ac_try" in
14217
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14218
  *) ac_try_echo=$ac_try;;
14219
esac
14220 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14221
$as_echo "$ac_try_echo") >&5
14222 19 jeremybenn
  (eval "$ac_try") 2>&5
14223
  ac_status=$?
14224 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 19 jeremybenn
  (exit $ac_status); }; }; then
14226
  ac_cv_func_malloc_0_nonnull=yes
14227
else
14228 82 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
14229
$as_echo "$as_me: failed program was:" >&5
14230 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14231
 
14232
( exit $ac_status )
14233
ac_cv_func_malloc_0_nonnull=no
14234
fi
14235 82 jeremybenn
rm -rf conftest.dSYM
14236 19 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14237
fi
14238
 
14239
 
14240
fi
14241 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
14242
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
14243 19 jeremybenn
if test $ac_cv_func_malloc_0_nonnull = yes; then
14244
 
14245
cat >>confdefs.h <<\_ACEOF
14246
#define HAVE_MALLOC 1
14247
_ACEOF
14248
 
14249
else
14250
  cat >>confdefs.h <<\_ACEOF
14251
#define HAVE_MALLOC 0
14252
_ACEOF
14253
 
14254
   case " $LIBOBJS " in
14255
  *" malloc.$ac_objext "* ) ;;
14256
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
14257
 ;;
14258
esac
14259
 
14260
 
14261
cat >>confdefs.h <<\_ACEOF
14262
#define malloc rpl_malloc
14263
_ACEOF
14264
 
14265
fi
14266
 
14267
 
14268
 
14269
 
14270
for ac_func in strftime
14271
do
14272 82 jeremybenn
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14273
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14274
$as_echo_n "checking for $ac_func... " >&6; }
14275 19 jeremybenn
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14276 82 jeremybenn
  $as_echo_n "(cached) " >&6
14277 19 jeremybenn
else
14278
  cat >conftest.$ac_ext <<_ACEOF
14279
/* confdefs.h.  */
14280
_ACEOF
14281
cat confdefs.h >>conftest.$ac_ext
14282
cat >>conftest.$ac_ext <<_ACEOF
14283
/* end confdefs.h.  */
14284
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
14285
   For example, HP-UX 11i  declares gettimeofday.  */
14286
#define $ac_func innocuous_$ac_func
14287
 
14288
/* System header to define __stub macros and hopefully few prototypes,
14289
    which can conflict with char $ac_func (); below.
14290
    Prefer  to  if __STDC__ is defined, since
14291
     exists even on freestanding compilers.  */
14292
 
14293
#ifdef __STDC__
14294
# include 
14295
#else
14296
# include 
14297
#endif
14298
 
14299
#undef $ac_func
14300
 
14301
/* Override any GCC internal prototype to avoid an error.
14302
   Use char because int might match the return type of a GCC
14303
   builtin and then its argument prototype would still apply.  */
14304
#ifdef __cplusplus
14305
extern "C"
14306
#endif
14307
char $ac_func ();
14308
/* The GNU C library defines this for functions which it implements
14309
    to always fail with ENOSYS.  Some functions are actually named
14310
    something starting with __ and the normal name is an alias.  */
14311
#if defined __stub_$ac_func || defined __stub___$ac_func
14312
choke me
14313
#endif
14314
 
14315
int
14316
main ()
14317
{
14318
return $ac_func ();
14319
  ;
14320
  return 0;
14321
}
14322
_ACEOF
14323
rm -f conftest.$ac_objext conftest$ac_exeext
14324
if { (ac_try="$ac_link"
14325
case "(($ac_try" in
14326
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14327
  *) ac_try_echo=$ac_try;;
14328
esac
14329 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14330
$as_echo "$ac_try_echo") >&5
14331 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
14332
  ac_status=$?
14333
  grep -v '^ *+' conftest.er1 >conftest.err
14334
  rm -f conftest.er1
14335
  cat conftest.err >&5
14336 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 19 jeremybenn
  (exit $ac_status); } && {
14338
         test -z "$ac_c_werror_flag" ||
14339
         test ! -s conftest.err
14340 82 jeremybenn
       } && test -s conftest$ac_exeext && {
14341
         test "$cross_compiling" = yes ||
14342
         $as_test_x conftest$ac_exeext
14343
       }; then
14344 19 jeremybenn
  eval "$as_ac_var=yes"
14345
else
14346 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14347 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14348
 
14349
        eval "$as_ac_var=no"
14350
fi
14351
 
14352 82 jeremybenn
rm -rf conftest.dSYM
14353 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14354
      conftest$ac_exeext conftest.$ac_ext
14355
fi
14356 82 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_var'}
14357
                 $as_echo "$as_val"'`
14358
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14359
$as_echo "$ac_res" >&6; }
14360
as_val=`eval 'as_val=${'$as_ac_var'}
14361
                 $as_echo "$as_val"'`
14362
   if test "x$as_val" = x""yes; then
14363 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
14364 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14365 19 jeremybenn
_ACEOF
14366
 
14367
else
14368
  # strftime is in -lintl on SCO UNIX.
14369 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14370
$as_echo_n "checking for strftime in -lintl... " >&6; }
14371 19 jeremybenn
if test "${ac_cv_lib_intl_strftime+set}" = set; then
14372 82 jeremybenn
  $as_echo_n "(cached) " >&6
14373 19 jeremybenn
else
14374
  ac_check_lib_save_LIBS=$LIBS
14375
LIBS="-lintl  $LIBS"
14376
cat >conftest.$ac_ext <<_ACEOF
14377
/* confdefs.h.  */
14378
_ACEOF
14379
cat confdefs.h >>conftest.$ac_ext
14380
cat >>conftest.$ac_ext <<_ACEOF
14381
/* end confdefs.h.  */
14382
 
14383
/* Override any GCC internal prototype to avoid an error.
14384
   Use char because int might match the return type of a GCC
14385
   builtin and then its argument prototype would still apply.  */
14386
#ifdef __cplusplus
14387
extern "C"
14388
#endif
14389
char strftime ();
14390
int
14391
main ()
14392
{
14393
return strftime ();
14394
  ;
14395
  return 0;
14396
}
14397
_ACEOF
14398
rm -f conftest.$ac_objext conftest$ac_exeext
14399
if { (ac_try="$ac_link"
14400
case "(($ac_try" in
14401
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14402
  *) ac_try_echo=$ac_try;;
14403
esac
14404 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14405
$as_echo "$ac_try_echo") >&5
14406 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
14407
  ac_status=$?
14408
  grep -v '^ *+' conftest.er1 >conftest.err
14409
  rm -f conftest.er1
14410
  cat conftest.err >&5
14411 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 19 jeremybenn
  (exit $ac_status); } && {
14413
         test -z "$ac_c_werror_flag" ||
14414
         test ! -s conftest.err
14415 82 jeremybenn
       } && test -s conftest$ac_exeext && {
14416
         test "$cross_compiling" = yes ||
14417
         $as_test_x conftest$ac_exeext
14418
       }; then
14419 19 jeremybenn
  ac_cv_lib_intl_strftime=yes
14420
else
14421 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14422 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14423
 
14424
        ac_cv_lib_intl_strftime=no
14425
fi
14426
 
14427 82 jeremybenn
rm -rf conftest.dSYM
14428 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14429
      conftest$ac_exeext conftest.$ac_ext
14430
LIBS=$ac_check_lib_save_LIBS
14431
fi
14432 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14433
$as_echo "$ac_cv_lib_intl_strftime" >&6; }
14434
if test "x$ac_cv_lib_intl_strftime" = x""yes; then
14435 19 jeremybenn
  cat >>confdefs.h <<\_ACEOF
14436
#define HAVE_STRFTIME 1
14437
_ACEOF
14438
 
14439
LIBS="-lintl $LIBS"
14440
fi
14441
 
14442
fi
14443
done
14444
 
14445 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
14446
$as_echo_n "checking for working strtod... " >&6; }
14447 19 jeremybenn
if test "${ac_cv_func_strtod+set}" = set; then
14448 82 jeremybenn
  $as_echo_n "(cached) " >&6
14449 19 jeremybenn
else
14450
  if test "$cross_compiling" = yes; then
14451
  ac_cv_func_strtod=no
14452
else
14453
  cat >conftest.$ac_ext <<_ACEOF
14454
/* confdefs.h.  */
14455
_ACEOF
14456
cat confdefs.h >>conftest.$ac_ext
14457
cat >>conftest.$ac_ext <<_ACEOF
14458
/* end confdefs.h.  */
14459
 
14460
$ac_includes_default
14461
#ifndef strtod
14462
double strtod ();
14463
#endif
14464
int
14465
main()
14466
{
14467
  {
14468
    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
14469
    char *string = " +69";
14470
    char *term;
14471
    double value;
14472
    value = strtod (string, &term);
14473
    if (value != 69 || term != (string + 4))
14474
      return 1;
14475
  }
14476
 
14477
  {
14478
    /* Under Solaris 2.4, strtod returns the wrong value for the
14479
       terminating character under some conditions.  */
14480
    char *string = "NaN";
14481
    char *term;
14482
    strtod (string, &term);
14483
    if (term != string && *(term - 1) == 0)
14484
      return 1;
14485
  }
14486
  return 0;
14487
}
14488
 
14489
_ACEOF
14490
rm -f conftest$ac_exeext
14491
if { (ac_try="$ac_link"
14492
case "(($ac_try" in
14493
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14494
  *) ac_try_echo=$ac_try;;
14495
esac
14496 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14497
$as_echo "$ac_try_echo") >&5
14498 19 jeremybenn
  (eval "$ac_link") 2>&5
14499
  ac_status=$?
14500 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501 19 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14502
  { (case "(($ac_try" in
14503
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14504
  *) ac_try_echo=$ac_try;;
14505
esac
14506 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14507
$as_echo "$ac_try_echo") >&5
14508 19 jeremybenn
  (eval "$ac_try") 2>&5
14509
  ac_status=$?
14510 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 19 jeremybenn
  (exit $ac_status); }; }; then
14512
  ac_cv_func_strtod=yes
14513
else
14514 82 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
14515
$as_echo "$as_me: failed program was:" >&5
14516 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14517
 
14518
( exit $ac_status )
14519
ac_cv_func_strtod=no
14520
fi
14521 82 jeremybenn
rm -rf conftest.dSYM
14522 19 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14523
fi
14524
 
14525
 
14526
fi
14527 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
14528
$as_echo "$ac_cv_func_strtod" >&6; }
14529 19 jeremybenn
if test $ac_cv_func_strtod = no; then
14530
  case " $LIBOBJS " in
14531
  *" strtod.$ac_objext "* ) ;;
14532
  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
14533
 ;;
14534
esac
14535
 
14536 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for pow" >&5
14537
$as_echo_n "checking for pow... " >&6; }
14538 19 jeremybenn
if test "${ac_cv_func_pow+set}" = set; then
14539 82 jeremybenn
  $as_echo_n "(cached) " >&6
14540 19 jeremybenn
else
14541
  cat >conftest.$ac_ext <<_ACEOF
14542
/* confdefs.h.  */
14543
_ACEOF
14544
cat confdefs.h >>conftest.$ac_ext
14545
cat >>conftest.$ac_ext <<_ACEOF
14546
/* end confdefs.h.  */
14547
/* Define pow to an innocuous variant, in case  declares pow.
14548
   For example, HP-UX 11i  declares gettimeofday.  */
14549
#define pow innocuous_pow
14550
 
14551
/* System header to define __stub macros and hopefully few prototypes,
14552
    which can conflict with char pow (); below.
14553
    Prefer  to  if __STDC__ is defined, since
14554
     exists even on freestanding compilers.  */
14555
 
14556
#ifdef __STDC__
14557
# include 
14558
#else
14559
# include 
14560
#endif
14561
 
14562
#undef pow
14563
 
14564
/* Override any GCC internal prototype to avoid an error.
14565
   Use char because int might match the return type of a GCC
14566
   builtin and then its argument prototype would still apply.  */
14567
#ifdef __cplusplus
14568
extern "C"
14569
#endif
14570
char pow ();
14571
/* The GNU C library defines this for functions which it implements
14572
    to always fail with ENOSYS.  Some functions are actually named
14573
    something starting with __ and the normal name is an alias.  */
14574
#if defined __stub_pow || defined __stub___pow
14575
choke me
14576
#endif
14577
 
14578
int
14579
main ()
14580
{
14581
return pow ();
14582
  ;
14583
  return 0;
14584
}
14585
_ACEOF
14586
rm -f conftest.$ac_objext conftest$ac_exeext
14587
if { (ac_try="$ac_link"
14588
case "(($ac_try" in
14589
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14590
  *) ac_try_echo=$ac_try;;
14591
esac
14592 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14593
$as_echo "$ac_try_echo") >&5
14594 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
14595
  ac_status=$?
14596
  grep -v '^ *+' conftest.er1 >conftest.err
14597
  rm -f conftest.er1
14598
  cat conftest.err >&5
14599 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600 19 jeremybenn
  (exit $ac_status); } && {
14601
         test -z "$ac_c_werror_flag" ||
14602
         test ! -s conftest.err
14603 82 jeremybenn
       } && test -s conftest$ac_exeext && {
14604
         test "$cross_compiling" = yes ||
14605
         $as_test_x conftest$ac_exeext
14606
       }; then
14607 19 jeremybenn
  ac_cv_func_pow=yes
14608
else
14609 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14610 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14611
 
14612
        ac_cv_func_pow=no
14613
fi
14614
 
14615 82 jeremybenn
rm -rf conftest.dSYM
14616 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14617
      conftest$ac_exeext conftest.$ac_ext
14618
fi
14619 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
14620
$as_echo "$ac_cv_func_pow" >&6; }
14621 19 jeremybenn
 
14622
if test $ac_cv_func_pow = no; then
14623 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
14624
$as_echo_n "checking for pow in -lm... " >&6; }
14625 19 jeremybenn
if test "${ac_cv_lib_m_pow+set}" = set; then
14626 82 jeremybenn
  $as_echo_n "(cached) " >&6
14627 19 jeremybenn
else
14628
  ac_check_lib_save_LIBS=$LIBS
14629
LIBS="-lm  $LIBS"
14630
cat >conftest.$ac_ext <<_ACEOF
14631
/* confdefs.h.  */
14632
_ACEOF
14633
cat confdefs.h >>conftest.$ac_ext
14634
cat >>conftest.$ac_ext <<_ACEOF
14635
/* end confdefs.h.  */
14636
 
14637
/* Override any GCC internal prototype to avoid an error.
14638
   Use char because int might match the return type of a GCC
14639
   builtin and then its argument prototype would still apply.  */
14640
#ifdef __cplusplus
14641
extern "C"
14642
#endif
14643
char pow ();
14644
int
14645
main ()
14646
{
14647
return pow ();
14648
  ;
14649
  return 0;
14650
}
14651
_ACEOF
14652
rm -f conftest.$ac_objext conftest$ac_exeext
14653
if { (ac_try="$ac_link"
14654
case "(($ac_try" in
14655
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14656
  *) ac_try_echo=$ac_try;;
14657
esac
14658 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14659
$as_echo "$ac_try_echo") >&5
14660 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
14661
  ac_status=$?
14662
  grep -v '^ *+' conftest.er1 >conftest.err
14663
  rm -f conftest.er1
14664
  cat conftest.err >&5
14665 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 19 jeremybenn
  (exit $ac_status); } && {
14667
         test -z "$ac_c_werror_flag" ||
14668
         test ! -s conftest.err
14669 82 jeremybenn
       } && test -s conftest$ac_exeext && {
14670
         test "$cross_compiling" = yes ||
14671
         $as_test_x conftest$ac_exeext
14672
       }; then
14673 19 jeremybenn
  ac_cv_lib_m_pow=yes
14674
else
14675 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14676 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14677
 
14678
        ac_cv_lib_m_pow=no
14679
fi
14680
 
14681 82 jeremybenn
rm -rf conftest.dSYM
14682 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14683
      conftest$ac_exeext conftest.$ac_ext
14684
LIBS=$ac_check_lib_save_LIBS
14685
fi
14686 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
14687
$as_echo "$ac_cv_lib_m_pow" >&6; }
14688
if test "x$ac_cv_lib_m_pow" = x""yes; then
14689 19 jeremybenn
  POW_LIB=-lm
14690
else
14691 82 jeremybenn
  { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
14692
$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
14693 19 jeremybenn
fi
14694
 
14695
fi
14696
 
14697
fi
14698
 
14699
 
14700
 
14701
 
14702
 
14703
 
14704
for ac_func in bzero strchr strcspn strrchr strtol
14705
do
14706 82 jeremybenn
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14707
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14708
$as_echo_n "checking for $ac_func... " >&6; }
14709 19 jeremybenn
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14710 82 jeremybenn
  $as_echo_n "(cached) " >&6
14711 19 jeremybenn
else
14712
  cat >conftest.$ac_ext <<_ACEOF
14713
/* confdefs.h.  */
14714
_ACEOF
14715
cat confdefs.h >>conftest.$ac_ext
14716
cat >>conftest.$ac_ext <<_ACEOF
14717
/* end confdefs.h.  */
14718
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
14719
   For example, HP-UX 11i  declares gettimeofday.  */
14720
#define $ac_func innocuous_$ac_func
14721
 
14722
/* System header to define __stub macros and hopefully few prototypes,
14723
    which can conflict with char $ac_func (); below.
14724
    Prefer  to  if __STDC__ is defined, since
14725
     exists even on freestanding compilers.  */
14726
 
14727
#ifdef __STDC__
14728
# include 
14729
#else
14730
# include 
14731
#endif
14732
 
14733
#undef $ac_func
14734
 
14735
/* Override any GCC internal prototype to avoid an error.
14736
   Use char because int might match the return type of a GCC
14737
   builtin and then its argument prototype would still apply.  */
14738
#ifdef __cplusplus
14739
extern "C"
14740
#endif
14741
char $ac_func ();
14742
/* The GNU C library defines this for functions which it implements
14743
    to always fail with ENOSYS.  Some functions are actually named
14744
    something starting with __ and the normal name is an alias.  */
14745
#if defined __stub_$ac_func || defined __stub___$ac_func
14746
choke me
14747
#endif
14748
 
14749
int
14750
main ()
14751
{
14752
return $ac_func ();
14753
  ;
14754
  return 0;
14755
}
14756
_ACEOF
14757
rm -f conftest.$ac_objext conftest$ac_exeext
14758
if { (ac_try="$ac_link"
14759
case "(($ac_try" in
14760
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14761
  *) ac_try_echo=$ac_try;;
14762
esac
14763 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14764
$as_echo "$ac_try_echo") >&5
14765 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
14766
  ac_status=$?
14767
  grep -v '^ *+' conftest.er1 >conftest.err
14768
  rm -f conftest.er1
14769
  cat conftest.err >&5
14770 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 19 jeremybenn
  (exit $ac_status); } && {
14772
         test -z "$ac_c_werror_flag" ||
14773
         test ! -s conftest.err
14774 82 jeremybenn
       } && test -s conftest$ac_exeext && {
14775
         test "$cross_compiling" = yes ||
14776
         $as_test_x conftest$ac_exeext
14777
       }; then
14778 19 jeremybenn
  eval "$as_ac_var=yes"
14779
else
14780 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14781 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14782
 
14783
        eval "$as_ac_var=no"
14784
fi
14785
 
14786 82 jeremybenn
rm -rf conftest.dSYM
14787 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14788
      conftest$ac_exeext conftest.$ac_ext
14789
fi
14790 82 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_var'}
14791
                 $as_echo "$as_val"'`
14792
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14793
$as_echo "$ac_res" >&6; }
14794
as_val=`eval 'as_val=${'$as_ac_var'}
14795
                 $as_echo "$as_val"'`
14796
   if test "x$as_val" = x""yes; then
14797 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
14798 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14799 19 jeremybenn
_ACEOF
14800
 
14801
fi
14802
done
14803
 
14804 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for getopt_long" >&5
14805
$as_echo_n "checking for getopt_long... " >&6; }
14806 19 jeremybenn
if test "${ac_cv_func_getopt_long+set}" = set; then
14807 82 jeremybenn
  $as_echo_n "(cached) " >&6
14808 19 jeremybenn
else
14809
  cat >conftest.$ac_ext <<_ACEOF
14810
/* confdefs.h.  */
14811
_ACEOF
14812
cat confdefs.h >>conftest.$ac_ext
14813
cat >>conftest.$ac_ext <<_ACEOF
14814
/* end confdefs.h.  */
14815
/* Define getopt_long to an innocuous variant, in case  declares getopt_long.
14816
   For example, HP-UX 11i  declares gettimeofday.  */
14817
#define getopt_long innocuous_getopt_long
14818
 
14819
/* System header to define __stub macros and hopefully few prototypes,
14820
    which can conflict with char getopt_long (); below.
14821
    Prefer  to  if __STDC__ is defined, since
14822
     exists even on freestanding compilers.  */
14823
 
14824
#ifdef __STDC__
14825
# include 
14826
#else
14827
# include 
14828
#endif
14829
 
14830
#undef getopt_long
14831
 
14832
/* Override any GCC internal prototype to avoid an error.
14833
   Use char because int might match the return type of a GCC
14834
   builtin and then its argument prototype would still apply.  */
14835
#ifdef __cplusplus
14836
extern "C"
14837
#endif
14838
char getopt_long ();
14839
/* The GNU C library defines this for functions which it implements
14840
    to always fail with ENOSYS.  Some functions are actually named
14841
    something starting with __ and the normal name is an alias.  */
14842
#if defined __stub_getopt_long || defined __stub___getopt_long
14843
choke me
14844
#endif
14845
 
14846
int
14847
main ()
14848
{
14849
return getopt_long ();
14850
  ;
14851
  return 0;
14852
}
14853
_ACEOF
14854
rm -f conftest.$ac_objext conftest$ac_exeext
14855
if { (ac_try="$ac_link"
14856
case "(($ac_try" in
14857
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14858
  *) ac_try_echo=$ac_try;;
14859
esac
14860 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14861
$as_echo "$ac_try_echo") >&5
14862 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
14863
  ac_status=$?
14864
  grep -v '^ *+' conftest.er1 >conftest.err
14865
  rm -f conftest.er1
14866
  cat conftest.err >&5
14867 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 19 jeremybenn
  (exit $ac_status); } && {
14869
         test -z "$ac_c_werror_flag" ||
14870
         test ! -s conftest.err
14871 82 jeremybenn
       } && test -s conftest$ac_exeext && {
14872
         test "$cross_compiling" = yes ||
14873
         $as_test_x conftest$ac_exeext
14874
       }; then
14875 19 jeremybenn
  ac_cv_func_getopt_long=yes
14876
else
14877 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14878 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14879
 
14880
        ac_cv_func_getopt_long=no
14881
fi
14882
 
14883 82 jeremybenn
rm -rf conftest.dSYM
14884 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14885
      conftest$ac_exeext conftest.$ac_ext
14886
fi
14887 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
14888
$as_echo "$ac_cv_func_getopt_long" >&6; }
14889
if test "x$ac_cv_func_getopt_long" = x""yes; then
14890 19 jeremybenn
  SYS_GETOPTLONG=1
14891
else
14892
  SYS_GETOPTLONG=0
14893
fi
14894
 
14895 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for regcomp" >&5
14896
$as_echo_n "checking for regcomp... " >&6; }
14897 19 jeremybenn
if test "${ac_cv_func_regcomp+set}" = set; then
14898 82 jeremybenn
  $as_echo_n "(cached) " >&6
14899 19 jeremybenn
else
14900
  cat >conftest.$ac_ext <<_ACEOF
14901
/* confdefs.h.  */
14902
_ACEOF
14903
cat confdefs.h >>conftest.$ac_ext
14904
cat >>conftest.$ac_ext <<_ACEOF
14905
/* end confdefs.h.  */
14906
/* Define regcomp to an innocuous variant, in case  declares regcomp.
14907
   For example, HP-UX 11i  declares gettimeofday.  */
14908
#define regcomp innocuous_regcomp
14909
 
14910
/* System header to define __stub macros and hopefully few prototypes,
14911
    which can conflict with char regcomp (); below.
14912
    Prefer  to  if __STDC__ is defined, since
14913
     exists even on freestanding compilers.  */
14914
 
14915
#ifdef __STDC__
14916
# include 
14917
#else
14918
# include 
14919
#endif
14920
 
14921
#undef regcomp
14922
 
14923
/* Override any GCC internal prototype to avoid an error.
14924
   Use char because int might match the return type of a GCC
14925
   builtin and then its argument prototype would still apply.  */
14926
#ifdef __cplusplus
14927
extern "C"
14928
#endif
14929
char regcomp ();
14930
/* The GNU C library defines this for functions which it implements
14931
    to always fail with ENOSYS.  Some functions are actually named
14932
    something starting with __ and the normal name is an alias.  */
14933
#if defined __stub_regcomp || defined __stub___regcomp
14934
choke me
14935
#endif
14936
 
14937
int
14938
main ()
14939
{
14940
return regcomp ();
14941
  ;
14942
  return 0;
14943
}
14944
_ACEOF
14945
rm -f conftest.$ac_objext conftest$ac_exeext
14946
if { (ac_try="$ac_link"
14947
case "(($ac_try" in
14948
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14949
  *) ac_try_echo=$ac_try;;
14950
esac
14951 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14952
$as_echo "$ac_try_echo") >&5
14953 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
14954
  ac_status=$?
14955
  grep -v '^ *+' conftest.er1 >conftest.err
14956
  rm -f conftest.er1
14957
  cat conftest.err >&5
14958 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 19 jeremybenn
  (exit $ac_status); } && {
14960
         test -z "$ac_c_werror_flag" ||
14961
         test ! -s conftest.err
14962 82 jeremybenn
       } && test -s conftest$ac_exeext && {
14963
         test "$cross_compiling" = yes ||
14964
         $as_test_x conftest$ac_exeext
14965
       }; then
14966 19 jeremybenn
  ac_cv_func_regcomp=yes
14967
else
14968 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14969 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14970
 
14971
        ac_cv_func_regcomp=no
14972
fi
14973
 
14974 82 jeremybenn
rm -rf conftest.dSYM
14975 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14976
      conftest$ac_exeext conftest.$ac_ext
14977
fi
14978 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
14979
$as_echo "$ac_cv_func_regcomp" >&6; }
14980
if test "x$ac_cv_func_regcomp" = x""yes; then
14981 19 jeremybenn
  SYS_REGEX=1
14982
else
14983
  SYS_REGEX=0
14984
fi
14985
 
14986 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for strptime" >&5
14987
$as_echo_n "checking for strptime... " >&6; }
14988 19 jeremybenn
if test "${ac_cv_func_strptime+set}" = set; then
14989 82 jeremybenn
  $as_echo_n "(cached) " >&6
14990 19 jeremybenn
else
14991
  cat >conftest.$ac_ext <<_ACEOF
14992
/* confdefs.h.  */
14993
_ACEOF
14994
cat confdefs.h >>conftest.$ac_ext
14995
cat >>conftest.$ac_ext <<_ACEOF
14996
/* end confdefs.h.  */
14997
/* Define strptime to an innocuous variant, in case  declares strptime.
14998
   For example, HP-UX 11i  declares gettimeofday.  */
14999
#define strptime innocuous_strptime
15000
 
15001
/* System header to define __stub macros and hopefully few prototypes,
15002
    which can conflict with char strptime (); below.
15003
    Prefer  to  if __STDC__ is defined, since
15004
     exists even on freestanding compilers.  */
15005
 
15006
#ifdef __STDC__
15007
# include 
15008
#else
15009
# include 
15010
#endif
15011
 
15012
#undef strptime
15013
 
15014
/* Override any GCC internal prototype to avoid an error.
15015
   Use char because int might match the return type of a GCC
15016
   builtin and then its argument prototype would still apply.  */
15017
#ifdef __cplusplus
15018
extern "C"
15019
#endif
15020
char strptime ();
15021
/* The GNU C library defines this for functions which it implements
15022
    to always fail with ENOSYS.  Some functions are actually named
15023
    something starting with __ and the normal name is an alias.  */
15024
#if defined __stub_strptime || defined __stub___strptime
15025
choke me
15026
#endif
15027
 
15028
int
15029
main ()
15030
{
15031
return strptime ();
15032
  ;
15033
  return 0;
15034
}
15035
_ACEOF
15036
rm -f conftest.$ac_objext conftest$ac_exeext
15037
if { (ac_try="$ac_link"
15038
case "(($ac_try" in
15039
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15040
  *) ac_try_echo=$ac_try;;
15041
esac
15042 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15043
$as_echo "$ac_try_echo") >&5
15044 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
15045
  ac_status=$?
15046
  grep -v '^ *+' conftest.er1 >conftest.err
15047
  rm -f conftest.er1
15048
  cat conftest.err >&5
15049 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 19 jeremybenn
  (exit $ac_status); } && {
15051
         test -z "$ac_c_werror_flag" ||
15052
         test ! -s conftest.err
15053 82 jeremybenn
       } && test -s conftest$ac_exeext && {
15054
         test "$cross_compiling" = yes ||
15055
         $as_test_x conftest$ac_exeext
15056
       }; then
15057 19 jeremybenn
  ac_cv_func_strptime=yes
15058
else
15059 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15060 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15061
 
15062
        ac_cv_func_strptime=no
15063
fi
15064
 
15065 82 jeremybenn
rm -rf conftest.dSYM
15066 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15067
      conftest$ac_exeext conftest.$ac_ext
15068
fi
15069 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
15070
$as_echo "$ac_cv_func_strptime" >&6; }
15071
if test "x$ac_cv_func_strptime" = x""yes; then
15072 19 jeremybenn
  SYS_STRPTIME=1
15073
else
15074
  SYS_STRPTIME=0
15075
fi
15076
 
15077
 
15078
# Define automake conditionals (for argtable2)
15079
 if test "$SYS_GETOPTLONG" = "1"; then
15080
  USE_SYS_GETOPTLONG_TRUE=
15081
  USE_SYS_GETOPTLONG_FALSE='#'
15082
else
15083
  USE_SYS_GETOPTLONG_TRUE='#'
15084
  USE_SYS_GETOPTLONG_FALSE=
15085
fi
15086
 
15087
 if test "$SYS_REGEX" = "1"; then
15088
  USE_ARGREX_TRUE=
15089
  USE_ARGREX_FALSE='#'
15090
else
15091
  USE_ARGREX_TRUE='#'
15092
  USE_ARGREX_FALSE=
15093
fi
15094
 
15095
 if test "$SYS_STRPTIME" = "1"; then
15096
  USE_ARGDATE_TRUE=
15097
  USE_ARGDATE_FALSE='#'
15098
else
15099
  USE_ARGDATE_TRUE='#'
15100
  USE_ARGDATE_FALSE=
15101
fi
15102
 
15103
 
15104
# check for "long long" (added by Erez)
15105
cat >conftest.$ac_ext <<_ACEOF
15106
/* confdefs.h.  */
15107
_ACEOF
15108
cat confdefs.h >>conftest.$ac_ext
15109
cat >>conftest.$ac_ext <<_ACEOF
15110
/* end confdefs.h.  */
15111
 
15112
int
15113
main ()
15114
{
15115
long long ll; unsigned long long ull;
15116
  ;
15117
  return 0;
15118
}
15119
_ACEOF
15120
rm -f conftest.$ac_objext
15121
if { (ac_try="$ac_compile"
15122
case "(($ac_try" in
15123
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15124
  *) ac_try_echo=$ac_try;;
15125
esac
15126 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15127
$as_echo "$ac_try_echo") >&5
15128 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
15129
  ac_status=$?
15130
  grep -v '^ *+' conftest.er1 >conftest.err
15131
  rm -f conftest.er1
15132
  cat conftest.err >&5
15133 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 19 jeremybenn
  (exit $ac_status); } && {
15135
         test -z "$ac_c_werror_flag" ||
15136
         test ! -s conftest.err
15137
       } && test -s conftest.$ac_objext; then
15138
 
15139
cat >>confdefs.h <<\_ACEOF
15140
#define CC_HAS_LONG_LONG 1
15141
_ACEOF
15142
 
15143
else
15144 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15145 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15146
 
15147
 
15148
fi
15149
 
15150
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15151
 
15152
# check for {u,}int{8,16,32}_t in inttypes.h.
15153 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
15154
$as_echo_n "checking for uint8_t... " >&6; }
15155 19 jeremybenn
if test "${ac_cv_type_uint8_t+set}" = set; then
15156 82 jeremybenn
  $as_echo_n "(cached) " >&6
15157 19 jeremybenn
else
15158 82 jeremybenn
  ac_cv_type_uint8_t=no
15159
cat >conftest.$ac_ext <<_ACEOF
15160
/* confdefs.h.  */
15161
_ACEOF
15162
cat confdefs.h >>conftest.$ac_ext
15163
cat >>conftest.$ac_ext <<_ACEOF
15164
/* end confdefs.h.  */
15165
#include 
15166
 
15167
int
15168
main ()
15169
{
15170
if (sizeof (uint8_t))
15171
       return 0;
15172
  ;
15173
  return 0;
15174
}
15175
_ACEOF
15176
rm -f conftest.$ac_objext
15177
if { (ac_try="$ac_compile"
15178
case "(($ac_try" in
15179
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15180
  *) ac_try_echo=$ac_try;;
15181
esac
15182
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15183
$as_echo "$ac_try_echo") >&5
15184
  (eval "$ac_compile") 2>conftest.er1
15185
  ac_status=$?
15186
  grep -v '^ *+' conftest.er1 >conftest.err
15187
  rm -f conftest.er1
15188
  cat conftest.err >&5
15189
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190
  (exit $ac_status); } && {
15191
         test -z "$ac_c_werror_flag" ||
15192
         test ! -s conftest.err
15193
       } && test -s conftest.$ac_objext; then
15194 19 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
15195
/* confdefs.h.  */
15196
_ACEOF
15197
cat confdefs.h >>conftest.$ac_ext
15198
cat >>conftest.$ac_ext <<_ACEOF
15199
/* end confdefs.h.  */
15200
#include 
15201
 
15202
int
15203
main ()
15204
{
15205 82 jeremybenn
if (sizeof ((uint8_t)))
15206
          return 0;
15207 19 jeremybenn
  ;
15208
  return 0;
15209
}
15210
_ACEOF
15211
rm -f conftest.$ac_objext
15212
if { (ac_try="$ac_compile"
15213
case "(($ac_try" in
15214
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15215
  *) ac_try_echo=$ac_try;;
15216
esac
15217 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15218
$as_echo "$ac_try_echo") >&5
15219 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
15220
  ac_status=$?
15221
  grep -v '^ *+' conftest.er1 >conftest.err
15222
  rm -f conftest.er1
15223
  cat conftest.err >&5
15224 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 19 jeremybenn
  (exit $ac_status); } && {
15226
         test -z "$ac_c_werror_flag" ||
15227
         test ! -s conftest.err
15228
       } && test -s conftest.$ac_objext; then
15229 82 jeremybenn
  :
15230 19 jeremybenn
else
15231 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15232 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15233
 
15234 82 jeremybenn
        ac_cv_type_uint8_t=yes
15235 19 jeremybenn
fi
15236
 
15237
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15238 82 jeremybenn
else
15239
  $as_echo "$as_me: failed program was:" >&5
15240
sed 's/^/| /' conftest.$ac_ext >&5
15241
 
15242
 
15243 19 jeremybenn
fi
15244
 
15245 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15246
fi
15247
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
15248
$as_echo "$ac_cv_type_uint8_t" >&6; }
15249
if test "x$ac_cv_type_uint8_t" = x""yes; then
15250
 
15251 19 jeremybenn
cat >>confdefs.h <<_ACEOF
15252
#define HAVE_UINT8_T 1
15253
_ACEOF
15254
 
15255
 
15256
fi
15257 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
15258
$as_echo_n "checking for uint16_t... " >&6; }
15259 19 jeremybenn
if test "${ac_cv_type_uint16_t+set}" = set; then
15260 82 jeremybenn
  $as_echo_n "(cached) " >&6
15261 19 jeremybenn
else
15262 82 jeremybenn
  ac_cv_type_uint16_t=no
15263
cat >conftest.$ac_ext <<_ACEOF
15264
/* confdefs.h.  */
15265
_ACEOF
15266
cat confdefs.h >>conftest.$ac_ext
15267
cat >>conftest.$ac_ext <<_ACEOF
15268
/* end confdefs.h.  */
15269
#include 
15270
 
15271
int
15272
main ()
15273
{
15274
if (sizeof (uint16_t))
15275
       return 0;
15276
  ;
15277
  return 0;
15278
}
15279
_ACEOF
15280
rm -f conftest.$ac_objext
15281
if { (ac_try="$ac_compile"
15282
case "(($ac_try" in
15283
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15284
  *) ac_try_echo=$ac_try;;
15285
esac
15286
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15287
$as_echo "$ac_try_echo") >&5
15288
  (eval "$ac_compile") 2>conftest.er1
15289
  ac_status=$?
15290
  grep -v '^ *+' conftest.er1 >conftest.err
15291
  rm -f conftest.er1
15292
  cat conftest.err >&5
15293
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294
  (exit $ac_status); } && {
15295
         test -z "$ac_c_werror_flag" ||
15296
         test ! -s conftest.err
15297
       } && test -s conftest.$ac_objext; then
15298 19 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
15299
/* confdefs.h.  */
15300
_ACEOF
15301
cat confdefs.h >>conftest.$ac_ext
15302
cat >>conftest.$ac_ext <<_ACEOF
15303
/* end confdefs.h.  */
15304
#include 
15305
 
15306
int
15307
main ()
15308
{
15309 82 jeremybenn
if (sizeof ((uint16_t)))
15310
          return 0;
15311 19 jeremybenn
  ;
15312
  return 0;
15313
}
15314
_ACEOF
15315
rm -f conftest.$ac_objext
15316
if { (ac_try="$ac_compile"
15317
case "(($ac_try" in
15318
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15319
  *) ac_try_echo=$ac_try;;
15320
esac
15321 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15322
$as_echo "$ac_try_echo") >&5
15323 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
15324
  ac_status=$?
15325
  grep -v '^ *+' conftest.er1 >conftest.err
15326
  rm -f conftest.er1
15327
  cat conftest.err >&5
15328 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 19 jeremybenn
  (exit $ac_status); } && {
15330
         test -z "$ac_c_werror_flag" ||
15331
         test ! -s conftest.err
15332
       } && test -s conftest.$ac_objext; then
15333 82 jeremybenn
  :
15334 19 jeremybenn
else
15335 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15336 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15337
 
15338 82 jeremybenn
        ac_cv_type_uint16_t=yes
15339 19 jeremybenn
fi
15340
 
15341
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15342 82 jeremybenn
else
15343
  $as_echo "$as_me: failed program was:" >&5
15344
sed 's/^/| /' conftest.$ac_ext >&5
15345
 
15346
 
15347 19 jeremybenn
fi
15348
 
15349 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15350
fi
15351
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
15352
$as_echo "$ac_cv_type_uint16_t" >&6; }
15353
if test "x$ac_cv_type_uint16_t" = x""yes; then
15354
 
15355 19 jeremybenn
cat >>confdefs.h <<_ACEOF
15356
#define HAVE_UINT16_T 1
15357
_ACEOF
15358
 
15359
 
15360
fi
15361 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
15362
$as_echo_n "checking for uint32_t... " >&6; }
15363 19 jeremybenn
if test "${ac_cv_type_uint32_t+set}" = set; then
15364 82 jeremybenn
  $as_echo_n "(cached) " >&6
15365 19 jeremybenn
else
15366 82 jeremybenn
  ac_cv_type_uint32_t=no
15367
cat >conftest.$ac_ext <<_ACEOF
15368
/* confdefs.h.  */
15369
_ACEOF
15370
cat confdefs.h >>conftest.$ac_ext
15371
cat >>conftest.$ac_ext <<_ACEOF
15372
/* end confdefs.h.  */
15373
#include 
15374
 
15375
int
15376
main ()
15377
{
15378
if (sizeof (uint32_t))
15379
       return 0;
15380
  ;
15381
  return 0;
15382
}
15383
_ACEOF
15384
rm -f conftest.$ac_objext
15385
if { (ac_try="$ac_compile"
15386
case "(($ac_try" in
15387
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15388
  *) ac_try_echo=$ac_try;;
15389
esac
15390
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15391
$as_echo "$ac_try_echo") >&5
15392
  (eval "$ac_compile") 2>conftest.er1
15393
  ac_status=$?
15394
  grep -v '^ *+' conftest.er1 >conftest.err
15395
  rm -f conftest.er1
15396
  cat conftest.err >&5
15397
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398
  (exit $ac_status); } && {
15399
         test -z "$ac_c_werror_flag" ||
15400
         test ! -s conftest.err
15401
       } && test -s conftest.$ac_objext; then
15402 19 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
15403
/* confdefs.h.  */
15404
_ACEOF
15405
cat confdefs.h >>conftest.$ac_ext
15406
cat >>conftest.$ac_ext <<_ACEOF
15407
/* end confdefs.h.  */
15408
#include 
15409
 
15410
int
15411
main ()
15412
{
15413 82 jeremybenn
if (sizeof ((uint32_t)))
15414
          return 0;
15415 19 jeremybenn
  ;
15416
  return 0;
15417
}
15418
_ACEOF
15419
rm -f conftest.$ac_objext
15420
if { (ac_try="$ac_compile"
15421
case "(($ac_try" in
15422
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15423
  *) ac_try_echo=$ac_try;;
15424
esac
15425 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15426
$as_echo "$ac_try_echo") >&5
15427 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
15428
  ac_status=$?
15429
  grep -v '^ *+' conftest.er1 >conftest.err
15430
  rm -f conftest.er1
15431
  cat conftest.err >&5
15432 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 19 jeremybenn
  (exit $ac_status); } && {
15434
         test -z "$ac_c_werror_flag" ||
15435
         test ! -s conftest.err
15436
       } && test -s conftest.$ac_objext; then
15437 82 jeremybenn
  :
15438 19 jeremybenn
else
15439 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15440 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15441
 
15442 82 jeremybenn
        ac_cv_type_uint32_t=yes
15443 19 jeremybenn
fi
15444
 
15445
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15446 82 jeremybenn
else
15447
  $as_echo "$as_me: failed program was:" >&5
15448
sed 's/^/| /' conftest.$ac_ext >&5
15449
 
15450
 
15451 19 jeremybenn
fi
15452
 
15453 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15454
fi
15455
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
15456
$as_echo "$ac_cv_type_uint32_t" >&6; }
15457
if test "x$ac_cv_type_uint32_t" = x""yes; then
15458
 
15459 19 jeremybenn
cat >>confdefs.h <<_ACEOF
15460
#define HAVE_UINT32_T 1
15461
_ACEOF
15462
 
15463
 
15464
fi
15465
 
15466 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for int8_t" >&5
15467
$as_echo_n "checking for int8_t... " >&6; }
15468 19 jeremybenn
if test "${ac_cv_type_int8_t+set}" = set; then
15469 82 jeremybenn
  $as_echo_n "(cached) " >&6
15470 19 jeremybenn
else
15471 82 jeremybenn
  ac_cv_type_int8_t=no
15472
cat >conftest.$ac_ext <<_ACEOF
15473
/* confdefs.h.  */
15474
_ACEOF
15475
cat confdefs.h >>conftest.$ac_ext
15476
cat >>conftest.$ac_ext <<_ACEOF
15477
/* end confdefs.h.  */
15478
#include 
15479
 
15480
int
15481
main ()
15482
{
15483
if (sizeof (int8_t))
15484
       return 0;
15485
  ;
15486
  return 0;
15487
}
15488
_ACEOF
15489
rm -f conftest.$ac_objext
15490
if { (ac_try="$ac_compile"
15491
case "(($ac_try" in
15492
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15493
  *) ac_try_echo=$ac_try;;
15494
esac
15495
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15496
$as_echo "$ac_try_echo") >&5
15497
  (eval "$ac_compile") 2>conftest.er1
15498
  ac_status=$?
15499
  grep -v '^ *+' conftest.er1 >conftest.err
15500
  rm -f conftest.er1
15501
  cat conftest.err >&5
15502
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503
  (exit $ac_status); } && {
15504
         test -z "$ac_c_werror_flag" ||
15505
         test ! -s conftest.err
15506
       } && test -s conftest.$ac_objext; then
15507 19 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
15508
/* confdefs.h.  */
15509
_ACEOF
15510
cat confdefs.h >>conftest.$ac_ext
15511
cat >>conftest.$ac_ext <<_ACEOF
15512
/* end confdefs.h.  */
15513
#include 
15514
 
15515
int
15516
main ()
15517
{
15518 82 jeremybenn
if (sizeof ((int8_t)))
15519
          return 0;
15520 19 jeremybenn
  ;
15521
  return 0;
15522
}
15523
_ACEOF
15524
rm -f conftest.$ac_objext
15525
if { (ac_try="$ac_compile"
15526
case "(($ac_try" in
15527
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15528
  *) ac_try_echo=$ac_try;;
15529
esac
15530 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15531
$as_echo "$ac_try_echo") >&5
15532 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
15533
  ac_status=$?
15534
  grep -v '^ *+' conftest.er1 >conftest.err
15535
  rm -f conftest.er1
15536
  cat conftest.err >&5
15537 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 19 jeremybenn
  (exit $ac_status); } && {
15539
         test -z "$ac_c_werror_flag" ||
15540
         test ! -s conftest.err
15541
       } && test -s conftest.$ac_objext; then
15542 82 jeremybenn
  :
15543 19 jeremybenn
else
15544 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15545 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15546
 
15547 82 jeremybenn
        ac_cv_type_int8_t=yes
15548 19 jeremybenn
fi
15549
 
15550
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15551 82 jeremybenn
else
15552
  $as_echo "$as_me: failed program was:" >&5
15553
sed 's/^/| /' conftest.$ac_ext >&5
15554
 
15555
 
15556 19 jeremybenn
fi
15557
 
15558 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15559
fi
15560
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
15561
$as_echo "$ac_cv_type_int8_t" >&6; }
15562
if test "x$ac_cv_type_int8_t" = x""yes; then
15563
 
15564 19 jeremybenn
cat >>confdefs.h <<_ACEOF
15565
#define HAVE_INT8_T 1
15566
_ACEOF
15567
 
15568
 
15569
fi
15570 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for int16_t" >&5
15571
$as_echo_n "checking for int16_t... " >&6; }
15572 19 jeremybenn
if test "${ac_cv_type_int16_t+set}" = set; then
15573 82 jeremybenn
  $as_echo_n "(cached) " >&6
15574 19 jeremybenn
else
15575 82 jeremybenn
  ac_cv_type_int16_t=no
15576
cat >conftest.$ac_ext <<_ACEOF
15577
/* confdefs.h.  */
15578
_ACEOF
15579
cat confdefs.h >>conftest.$ac_ext
15580
cat >>conftest.$ac_ext <<_ACEOF
15581
/* end confdefs.h.  */
15582
#include 
15583
 
15584
int
15585
main ()
15586
{
15587
if (sizeof (int16_t))
15588
       return 0;
15589
  ;
15590
  return 0;
15591
}
15592
_ACEOF
15593
rm -f conftest.$ac_objext
15594
if { (ac_try="$ac_compile"
15595
case "(($ac_try" in
15596
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15597
  *) ac_try_echo=$ac_try;;
15598
esac
15599
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15600
$as_echo "$ac_try_echo") >&5
15601
  (eval "$ac_compile") 2>conftest.er1
15602
  ac_status=$?
15603
  grep -v '^ *+' conftest.er1 >conftest.err
15604
  rm -f conftest.er1
15605
  cat conftest.err >&5
15606
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607
  (exit $ac_status); } && {
15608
         test -z "$ac_c_werror_flag" ||
15609
         test ! -s conftest.err
15610
       } && test -s conftest.$ac_objext; then
15611 19 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
15612
/* confdefs.h.  */
15613
_ACEOF
15614
cat confdefs.h >>conftest.$ac_ext
15615
cat >>conftest.$ac_ext <<_ACEOF
15616
/* end confdefs.h.  */
15617
#include 
15618
 
15619
int
15620
main ()
15621
{
15622 82 jeremybenn
if (sizeof ((int16_t)))
15623
          return 0;
15624 19 jeremybenn
  ;
15625
  return 0;
15626
}
15627
_ACEOF
15628
rm -f conftest.$ac_objext
15629
if { (ac_try="$ac_compile"
15630
case "(($ac_try" in
15631
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15632
  *) ac_try_echo=$ac_try;;
15633
esac
15634 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15635
$as_echo "$ac_try_echo") >&5
15636 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
15637
  ac_status=$?
15638
  grep -v '^ *+' conftest.er1 >conftest.err
15639
  rm -f conftest.er1
15640
  cat conftest.err >&5
15641 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 19 jeremybenn
  (exit $ac_status); } && {
15643
         test -z "$ac_c_werror_flag" ||
15644
         test ! -s conftest.err
15645
       } && test -s conftest.$ac_objext; then
15646 82 jeremybenn
  :
15647 19 jeremybenn
else
15648 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15649 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15650
 
15651 82 jeremybenn
        ac_cv_type_int16_t=yes
15652 19 jeremybenn
fi
15653
 
15654
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15655 82 jeremybenn
else
15656
  $as_echo "$as_me: failed program was:" >&5
15657
sed 's/^/| /' conftest.$ac_ext >&5
15658
 
15659
 
15660 19 jeremybenn
fi
15661
 
15662 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15663
fi
15664
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
15665
$as_echo "$ac_cv_type_int16_t" >&6; }
15666
if test "x$ac_cv_type_int16_t" = x""yes; then
15667
 
15668 19 jeremybenn
cat >>confdefs.h <<_ACEOF
15669
#define HAVE_INT16_T 1
15670
_ACEOF
15671
 
15672
 
15673
fi
15674 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for int32_t" >&5
15675
$as_echo_n "checking for int32_t... " >&6; }
15676 19 jeremybenn
if test "${ac_cv_type_int32_t+set}" = set; then
15677 82 jeremybenn
  $as_echo_n "(cached) " >&6
15678 19 jeremybenn
else
15679 82 jeremybenn
  ac_cv_type_int32_t=no
15680
cat >conftest.$ac_ext <<_ACEOF
15681 19 jeremybenn
/* confdefs.h.  */
15682
_ACEOF
15683
cat confdefs.h >>conftest.$ac_ext
15684
cat >>conftest.$ac_ext <<_ACEOF
15685
/* end confdefs.h.  */
15686
#include 
15687
 
15688
int
15689
main ()
15690
{
15691 82 jeremybenn
if (sizeof (int32_t))
15692
       return 0;
15693 19 jeremybenn
  ;
15694
  return 0;
15695
}
15696
_ACEOF
15697
rm -f conftest.$ac_objext
15698
if { (ac_try="$ac_compile"
15699
case "(($ac_try" in
15700
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15701
  *) ac_try_echo=$ac_try;;
15702
esac
15703 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15704
$as_echo "$ac_try_echo") >&5
15705 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
15706
  ac_status=$?
15707
  grep -v '^ *+' conftest.er1 >conftest.err
15708
  rm -f conftest.er1
15709
  cat conftest.err >&5
15710 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 19 jeremybenn
  (exit $ac_status); } && {
15712
         test -z "$ac_c_werror_flag" ||
15713
         test ! -s conftest.err
15714
       } && test -s conftest.$ac_objext; then
15715
  cat >conftest.$ac_ext <<_ACEOF
15716
/* confdefs.h.  */
15717
_ACEOF
15718
cat confdefs.h >>conftest.$ac_ext
15719
cat >>conftest.$ac_ext <<_ACEOF
15720
/* end confdefs.h.  */
15721 82 jeremybenn
#include 
15722
 
15723 19 jeremybenn
int
15724
main ()
15725
{
15726 82 jeremybenn
if (sizeof ((int32_t)))
15727
          return 0;
15728 19 jeremybenn
  ;
15729
  return 0;
15730
}
15731
_ACEOF
15732
rm -f conftest.$ac_objext
15733
if { (ac_try="$ac_compile"
15734
case "(($ac_try" in
15735
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15736
  *) ac_try_echo=$ac_try;;
15737
esac
15738 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15739
$as_echo "$ac_try_echo") >&5
15740 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
15741
  ac_status=$?
15742
  grep -v '^ *+' conftest.er1 >conftest.err
15743
  rm -f conftest.er1
15744
  cat conftest.err >&5
15745 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746 19 jeremybenn
  (exit $ac_status); } && {
15747
         test -z "$ac_c_werror_flag" ||
15748
         test ! -s conftest.err
15749
       } && test -s conftest.$ac_objext; then
15750 82 jeremybenn
  :
15751 19 jeremybenn
else
15752 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15753 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15754
 
15755 82 jeremybenn
        ac_cv_type_int32_t=yes
15756 19 jeremybenn
fi
15757
 
15758
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15759 82 jeremybenn
else
15760
  $as_echo "$as_me: failed program was:" >&5
15761
sed 's/^/| /' conftest.$ac_ext >&5
15762
 
15763
 
15764 19 jeremybenn
fi
15765
 
15766 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15767
fi
15768
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
15769
$as_echo "$ac_cv_type_int32_t" >&6; }
15770
if test "x$ac_cv_type_int32_t" = x""yes; then
15771
 
15772
cat >>confdefs.h <<_ACEOF
15773
#define HAVE_INT32_T 1
15774
_ACEOF
15775
 
15776
 
15777
fi
15778
 
15779
 
15780 19 jeremybenn
# The cast to long int works around a bug in the HP C Compiler
15781
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15782
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15783
# This bug is HP SR number 8606223364.
15784 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking size of char" >&5
15785
$as_echo_n "checking size of char... " >&6; }
15786 19 jeremybenn
if test "${ac_cv_sizeof_char+set}" = set; then
15787 82 jeremybenn
  $as_echo_n "(cached) " >&6
15788 19 jeremybenn
else
15789
  if test "$cross_compiling" = yes; then
15790
  # Depending upon the size, compute the lo and hi bounds.
15791
cat >conftest.$ac_ext <<_ACEOF
15792
/* confdefs.h.  */
15793
_ACEOF
15794
cat confdefs.h >>conftest.$ac_ext
15795
cat >>conftest.$ac_ext <<_ACEOF
15796
/* end confdefs.h.  */
15797
$ac_includes_default
15798
int
15799
main ()
15800
{
15801 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
15802 19 jeremybenn
test_array [0] = 0
15803
 
15804
  ;
15805
  return 0;
15806
}
15807
_ACEOF
15808
rm -f conftest.$ac_objext
15809
if { (ac_try="$ac_compile"
15810
case "(($ac_try" in
15811
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15812
  *) ac_try_echo=$ac_try;;
15813
esac
15814 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15815
$as_echo "$ac_try_echo") >&5
15816 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
15817
  ac_status=$?
15818
  grep -v '^ *+' conftest.er1 >conftest.err
15819
  rm -f conftest.er1
15820
  cat conftest.err >&5
15821 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 19 jeremybenn
  (exit $ac_status); } && {
15823
         test -z "$ac_c_werror_flag" ||
15824
         test ! -s conftest.err
15825
       } && test -s conftest.$ac_objext; then
15826
  ac_lo=0 ac_mid=0
15827
  while :; do
15828
    cat >conftest.$ac_ext <<_ACEOF
15829
/* confdefs.h.  */
15830
_ACEOF
15831
cat confdefs.h >>conftest.$ac_ext
15832
cat >>conftest.$ac_ext <<_ACEOF
15833
/* end confdefs.h.  */
15834
$ac_includes_default
15835
int
15836
main ()
15837
{
15838 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
15839 19 jeremybenn
test_array [0] = 0
15840
 
15841
  ;
15842
  return 0;
15843
}
15844
_ACEOF
15845
rm -f conftest.$ac_objext
15846
if { (ac_try="$ac_compile"
15847
case "(($ac_try" in
15848
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15849
  *) ac_try_echo=$ac_try;;
15850
esac
15851 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15852
$as_echo "$ac_try_echo") >&5
15853 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
15854
  ac_status=$?
15855
  grep -v '^ *+' conftest.er1 >conftest.err
15856
  rm -f conftest.er1
15857
  cat conftest.err >&5
15858 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 19 jeremybenn
  (exit $ac_status); } && {
15860
         test -z "$ac_c_werror_flag" ||
15861
         test ! -s conftest.err
15862
       } && test -s conftest.$ac_objext; then
15863
  ac_hi=$ac_mid; break
15864
else
15865 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15866 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15867
 
15868
        ac_lo=`expr $ac_mid + 1`
15869
                        if test $ac_lo -le $ac_mid; then
15870
                          ac_lo= ac_hi=
15871
                          break
15872
                        fi
15873
                        ac_mid=`expr 2 '*' $ac_mid + 1`
15874
fi
15875
 
15876
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15877
  done
15878
else
15879 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15880 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15881
 
15882
        cat >conftest.$ac_ext <<_ACEOF
15883
/* confdefs.h.  */
15884
_ACEOF
15885
cat confdefs.h >>conftest.$ac_ext
15886
cat >>conftest.$ac_ext <<_ACEOF
15887
/* end confdefs.h.  */
15888
$ac_includes_default
15889
int
15890
main ()
15891
{
15892 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
15893 19 jeremybenn
test_array [0] = 0
15894
 
15895
  ;
15896
  return 0;
15897
}
15898
_ACEOF
15899
rm -f conftest.$ac_objext
15900
if { (ac_try="$ac_compile"
15901
case "(($ac_try" in
15902
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15903
  *) ac_try_echo=$ac_try;;
15904
esac
15905 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15906
$as_echo "$ac_try_echo") >&5
15907 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
15908
  ac_status=$?
15909
  grep -v '^ *+' conftest.er1 >conftest.err
15910
  rm -f conftest.er1
15911
  cat conftest.err >&5
15912 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 19 jeremybenn
  (exit $ac_status); } && {
15914
         test -z "$ac_c_werror_flag" ||
15915
         test ! -s conftest.err
15916
       } && test -s conftest.$ac_objext; then
15917
  ac_hi=-1 ac_mid=-1
15918
  while :; do
15919
    cat >conftest.$ac_ext <<_ACEOF
15920
/* confdefs.h.  */
15921
_ACEOF
15922
cat confdefs.h >>conftest.$ac_ext
15923
cat >>conftest.$ac_ext <<_ACEOF
15924
/* end confdefs.h.  */
15925
$ac_includes_default
15926
int
15927
main ()
15928
{
15929 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
15930 19 jeremybenn
test_array [0] = 0
15931
 
15932
  ;
15933
  return 0;
15934
}
15935
_ACEOF
15936
rm -f conftest.$ac_objext
15937
if { (ac_try="$ac_compile"
15938
case "(($ac_try" in
15939
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15940
  *) ac_try_echo=$ac_try;;
15941
esac
15942 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15943
$as_echo "$ac_try_echo") >&5
15944 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
15945
  ac_status=$?
15946
  grep -v '^ *+' conftest.er1 >conftest.err
15947
  rm -f conftest.er1
15948
  cat conftest.err >&5
15949 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 19 jeremybenn
  (exit $ac_status); } && {
15951
         test -z "$ac_c_werror_flag" ||
15952
         test ! -s conftest.err
15953
       } && test -s conftest.$ac_objext; then
15954
  ac_lo=$ac_mid; break
15955
else
15956 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15957 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15958
 
15959
        ac_hi=`expr '(' $ac_mid ')' - 1`
15960
                        if test $ac_mid -le $ac_hi; then
15961
                          ac_lo= ac_hi=
15962
                          break
15963
                        fi
15964
                        ac_mid=`expr 2 '*' $ac_mid`
15965
fi
15966
 
15967
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15968
  done
15969
else
15970 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15971 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15972
 
15973
        ac_lo= ac_hi=
15974
fi
15975
 
15976
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15977
fi
15978
 
15979
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15980
# Binary search between lo and hi bounds.
15981
while test "x$ac_lo" != "x$ac_hi"; do
15982
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15983
  cat >conftest.$ac_ext <<_ACEOF
15984
/* confdefs.h.  */
15985
_ACEOF
15986
cat confdefs.h >>conftest.$ac_ext
15987
cat >>conftest.$ac_ext <<_ACEOF
15988
/* end confdefs.h.  */
15989
$ac_includes_default
15990
int
15991
main ()
15992
{
15993 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
15994 19 jeremybenn
test_array [0] = 0
15995
 
15996
  ;
15997
  return 0;
15998
}
15999
_ACEOF
16000
rm -f conftest.$ac_objext
16001
if { (ac_try="$ac_compile"
16002
case "(($ac_try" in
16003
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16004
  *) ac_try_echo=$ac_try;;
16005
esac
16006 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16007
$as_echo "$ac_try_echo") >&5
16008 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16009
  ac_status=$?
16010
  grep -v '^ *+' conftest.er1 >conftest.err
16011
  rm -f conftest.er1
16012
  cat conftest.err >&5
16013 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 19 jeremybenn
  (exit $ac_status); } && {
16015
         test -z "$ac_c_werror_flag" ||
16016
         test ! -s conftest.err
16017
       } && test -s conftest.$ac_objext; then
16018
  ac_hi=$ac_mid
16019
else
16020 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16021 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16022
 
16023
        ac_lo=`expr '(' $ac_mid ')' + 1`
16024
fi
16025
 
16026
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16027
done
16028
case $ac_lo in
16029
?*) ac_cv_sizeof_char=$ac_lo;;
16030
'') if test "$ac_cv_type_char" = yes; then
16031 82 jeremybenn
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16032
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16033
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
16034 19 jeremybenn
See \`config.log' for more details." >&5
16035 82 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (char)
16036 19 jeremybenn
See \`config.log' for more details." >&2;}
16037 82 jeremybenn
   { (exit 77); exit 77; }; }; }
16038 19 jeremybenn
   else
16039
     ac_cv_sizeof_char=0
16040
   fi ;;
16041
esac
16042
else
16043
  cat >conftest.$ac_ext <<_ACEOF
16044
/* confdefs.h.  */
16045
_ACEOF
16046
cat confdefs.h >>conftest.$ac_ext
16047
cat >>conftest.$ac_ext <<_ACEOF
16048
/* end confdefs.h.  */
16049
$ac_includes_default
16050 82 jeremybenn
static long int longval () { return (long int) (sizeof (char)); }
16051
static unsigned long int ulongval () { return (long int) (sizeof (char)); }
16052 19 jeremybenn
#include 
16053
#include 
16054
int
16055
main ()
16056
{
16057
 
16058
  FILE *f = fopen ("conftest.val", "w");
16059
  if (! f)
16060
    return 1;
16061 82 jeremybenn
  if (((long int) (sizeof (char))) < 0)
16062 19 jeremybenn
    {
16063
      long int i = longval ();
16064 82 jeremybenn
      if (i != ((long int) (sizeof (char))))
16065 19 jeremybenn
        return 1;
16066 82 jeremybenn
      fprintf (f, "%ld", i);
16067 19 jeremybenn
    }
16068
  else
16069
    {
16070
      unsigned long int i = ulongval ();
16071 82 jeremybenn
      if (i != ((long int) (sizeof (char))))
16072 19 jeremybenn
        return 1;
16073 82 jeremybenn
      fprintf (f, "%lu", i);
16074 19 jeremybenn
    }
16075 82 jeremybenn
  /* Do not output a trailing newline, as this causes \r\n confusion
16076
     on some platforms.  */
16077 19 jeremybenn
  return ferror (f) || fclose (f) != 0;
16078
 
16079
  ;
16080
  return 0;
16081
}
16082
_ACEOF
16083
rm -f conftest$ac_exeext
16084
if { (ac_try="$ac_link"
16085
case "(($ac_try" in
16086
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16087
  *) ac_try_echo=$ac_try;;
16088
esac
16089 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16090
$as_echo "$ac_try_echo") >&5
16091 19 jeremybenn
  (eval "$ac_link") 2>&5
16092
  ac_status=$?
16093 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094 19 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16095
  { (case "(($ac_try" in
16096
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16097
  *) ac_try_echo=$ac_try;;
16098
esac
16099 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16100
$as_echo "$ac_try_echo") >&5
16101 19 jeremybenn
  (eval "$ac_try") 2>&5
16102
  ac_status=$?
16103 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 19 jeremybenn
  (exit $ac_status); }; }; then
16105
  ac_cv_sizeof_char=`cat conftest.val`
16106
else
16107 82 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
16108
$as_echo "$as_me: failed program was:" >&5
16109 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16110
 
16111
( exit $ac_status )
16112
if test "$ac_cv_type_char" = yes; then
16113 82 jeremybenn
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16114
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16115
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
16116 19 jeremybenn
See \`config.log' for more details." >&5
16117 82 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (char)
16118 19 jeremybenn
See \`config.log' for more details." >&2;}
16119 82 jeremybenn
   { (exit 77); exit 77; }; }; }
16120 19 jeremybenn
   else
16121
     ac_cv_sizeof_char=0
16122
   fi
16123
fi
16124 82 jeremybenn
rm -rf conftest.dSYM
16125 19 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16126
fi
16127
rm -f conftest.val
16128
fi
16129 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16130
$as_echo "$ac_cv_sizeof_char" >&6; }
16131 19 jeremybenn
 
16132
 
16133
 
16134
cat >>confdefs.h <<_ACEOF
16135
#define SIZEOF_CHAR $ac_cv_sizeof_char
16136
_ACEOF
16137
 
16138
 
16139
# The cast to long int works around a bug in the HP C Compiler
16140
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16141
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16142
# This bug is HP SR number 8606223364.
16143 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking size of short" >&5
16144
$as_echo_n "checking size of short... " >&6; }
16145 19 jeremybenn
if test "${ac_cv_sizeof_short+set}" = set; then
16146 82 jeremybenn
  $as_echo_n "(cached) " >&6
16147 19 jeremybenn
else
16148
  if test "$cross_compiling" = yes; then
16149
  # Depending upon the size, compute the lo and hi bounds.
16150
cat >conftest.$ac_ext <<_ACEOF
16151
/* confdefs.h.  */
16152
_ACEOF
16153
cat confdefs.h >>conftest.$ac_ext
16154
cat >>conftest.$ac_ext <<_ACEOF
16155
/* end confdefs.h.  */
16156
$ac_includes_default
16157
int
16158
main ()
16159
{
16160 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
16161 19 jeremybenn
test_array [0] = 0
16162
 
16163
  ;
16164
  return 0;
16165
}
16166
_ACEOF
16167
rm -f conftest.$ac_objext
16168
if { (ac_try="$ac_compile"
16169
case "(($ac_try" in
16170
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16171
  *) ac_try_echo=$ac_try;;
16172
esac
16173 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16174
$as_echo "$ac_try_echo") >&5
16175 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16176
  ac_status=$?
16177
  grep -v '^ *+' conftest.er1 >conftest.err
16178
  rm -f conftest.er1
16179
  cat conftest.err >&5
16180 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181 19 jeremybenn
  (exit $ac_status); } && {
16182
         test -z "$ac_c_werror_flag" ||
16183
         test ! -s conftest.err
16184
       } && test -s conftest.$ac_objext; then
16185
  ac_lo=0 ac_mid=0
16186
  while :; do
16187
    cat >conftest.$ac_ext <<_ACEOF
16188
/* confdefs.h.  */
16189
_ACEOF
16190
cat confdefs.h >>conftest.$ac_ext
16191
cat >>conftest.$ac_ext <<_ACEOF
16192
/* end confdefs.h.  */
16193
$ac_includes_default
16194
int
16195
main ()
16196
{
16197 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
16198 19 jeremybenn
test_array [0] = 0
16199
 
16200
  ;
16201
  return 0;
16202
}
16203
_ACEOF
16204
rm -f conftest.$ac_objext
16205
if { (ac_try="$ac_compile"
16206
case "(($ac_try" in
16207
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16208
  *) ac_try_echo=$ac_try;;
16209
esac
16210 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16211
$as_echo "$ac_try_echo") >&5
16212 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16213
  ac_status=$?
16214
  grep -v '^ *+' conftest.er1 >conftest.err
16215
  rm -f conftest.er1
16216
  cat conftest.err >&5
16217 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 19 jeremybenn
  (exit $ac_status); } && {
16219
         test -z "$ac_c_werror_flag" ||
16220
         test ! -s conftest.err
16221
       } && test -s conftest.$ac_objext; then
16222
  ac_hi=$ac_mid; break
16223
else
16224 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16225 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16226
 
16227
        ac_lo=`expr $ac_mid + 1`
16228
                        if test $ac_lo -le $ac_mid; then
16229
                          ac_lo= ac_hi=
16230
                          break
16231
                        fi
16232
                        ac_mid=`expr 2 '*' $ac_mid + 1`
16233
fi
16234
 
16235
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16236
  done
16237
else
16238 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16239 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16240
 
16241
        cat >conftest.$ac_ext <<_ACEOF
16242
/* confdefs.h.  */
16243
_ACEOF
16244
cat confdefs.h >>conftest.$ac_ext
16245
cat >>conftest.$ac_ext <<_ACEOF
16246
/* end confdefs.h.  */
16247
$ac_includes_default
16248
int
16249
main ()
16250
{
16251 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
16252 19 jeremybenn
test_array [0] = 0
16253
 
16254
  ;
16255
  return 0;
16256
}
16257
_ACEOF
16258
rm -f conftest.$ac_objext
16259
if { (ac_try="$ac_compile"
16260
case "(($ac_try" in
16261
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16262
  *) ac_try_echo=$ac_try;;
16263
esac
16264 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16265
$as_echo "$ac_try_echo") >&5
16266 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16267
  ac_status=$?
16268
  grep -v '^ *+' conftest.er1 >conftest.err
16269
  rm -f conftest.er1
16270
  cat conftest.err >&5
16271 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 19 jeremybenn
  (exit $ac_status); } && {
16273
         test -z "$ac_c_werror_flag" ||
16274
         test ! -s conftest.err
16275
       } && test -s conftest.$ac_objext; then
16276
  ac_hi=-1 ac_mid=-1
16277
  while :; do
16278
    cat >conftest.$ac_ext <<_ACEOF
16279
/* confdefs.h.  */
16280
_ACEOF
16281
cat confdefs.h >>conftest.$ac_ext
16282
cat >>conftest.$ac_ext <<_ACEOF
16283
/* end confdefs.h.  */
16284
$ac_includes_default
16285
int
16286
main ()
16287
{
16288 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
16289 19 jeremybenn
test_array [0] = 0
16290
 
16291
  ;
16292
  return 0;
16293
}
16294
_ACEOF
16295
rm -f conftest.$ac_objext
16296
if { (ac_try="$ac_compile"
16297
case "(($ac_try" in
16298
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16299
  *) ac_try_echo=$ac_try;;
16300
esac
16301 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16302
$as_echo "$ac_try_echo") >&5
16303 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16304
  ac_status=$?
16305
  grep -v '^ *+' conftest.er1 >conftest.err
16306
  rm -f conftest.er1
16307
  cat conftest.err >&5
16308 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 19 jeremybenn
  (exit $ac_status); } && {
16310
         test -z "$ac_c_werror_flag" ||
16311
         test ! -s conftest.err
16312
       } && test -s conftest.$ac_objext; then
16313
  ac_lo=$ac_mid; break
16314
else
16315 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16316 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16317
 
16318
        ac_hi=`expr '(' $ac_mid ')' - 1`
16319
                        if test $ac_mid -le $ac_hi; then
16320
                          ac_lo= ac_hi=
16321
                          break
16322
                        fi
16323
                        ac_mid=`expr 2 '*' $ac_mid`
16324
fi
16325
 
16326
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16327
  done
16328
else
16329 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16330 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16331
 
16332
        ac_lo= ac_hi=
16333
fi
16334
 
16335
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16336
fi
16337
 
16338
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16339
# Binary search between lo and hi bounds.
16340
while test "x$ac_lo" != "x$ac_hi"; do
16341
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16342
  cat >conftest.$ac_ext <<_ACEOF
16343
/* confdefs.h.  */
16344
_ACEOF
16345
cat confdefs.h >>conftest.$ac_ext
16346
cat >>conftest.$ac_ext <<_ACEOF
16347
/* end confdefs.h.  */
16348
$ac_includes_default
16349
int
16350
main ()
16351
{
16352 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
16353 19 jeremybenn
test_array [0] = 0
16354
 
16355
  ;
16356
  return 0;
16357
}
16358
_ACEOF
16359
rm -f conftest.$ac_objext
16360
if { (ac_try="$ac_compile"
16361
case "(($ac_try" in
16362
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16363
  *) ac_try_echo=$ac_try;;
16364
esac
16365 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16366
$as_echo "$ac_try_echo") >&5
16367 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16368
  ac_status=$?
16369
  grep -v '^ *+' conftest.er1 >conftest.err
16370
  rm -f conftest.er1
16371
  cat conftest.err >&5
16372 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 19 jeremybenn
  (exit $ac_status); } && {
16374
         test -z "$ac_c_werror_flag" ||
16375
         test ! -s conftest.err
16376
       } && test -s conftest.$ac_objext; then
16377
  ac_hi=$ac_mid
16378
else
16379 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16380 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16381
 
16382
        ac_lo=`expr '(' $ac_mid ')' + 1`
16383
fi
16384
 
16385
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16386
done
16387
case $ac_lo in
16388
?*) ac_cv_sizeof_short=$ac_lo;;
16389
'') if test "$ac_cv_type_short" = yes; then
16390 82 jeremybenn
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16391
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16392
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
16393 19 jeremybenn
See \`config.log' for more details." >&5
16394 82 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (short)
16395 19 jeremybenn
See \`config.log' for more details." >&2;}
16396 82 jeremybenn
   { (exit 77); exit 77; }; }; }
16397 19 jeremybenn
   else
16398
     ac_cv_sizeof_short=0
16399
   fi ;;
16400
esac
16401
else
16402
  cat >conftest.$ac_ext <<_ACEOF
16403
/* confdefs.h.  */
16404
_ACEOF
16405
cat confdefs.h >>conftest.$ac_ext
16406
cat >>conftest.$ac_ext <<_ACEOF
16407
/* end confdefs.h.  */
16408
$ac_includes_default
16409 82 jeremybenn
static long int longval () { return (long int) (sizeof (short)); }
16410
static unsigned long int ulongval () { return (long int) (sizeof (short)); }
16411 19 jeremybenn
#include 
16412
#include 
16413
int
16414
main ()
16415
{
16416
 
16417
  FILE *f = fopen ("conftest.val", "w");
16418
  if (! f)
16419
    return 1;
16420 82 jeremybenn
  if (((long int) (sizeof (short))) < 0)
16421 19 jeremybenn
    {
16422
      long int i = longval ();
16423 82 jeremybenn
      if (i != ((long int) (sizeof (short))))
16424 19 jeremybenn
        return 1;
16425 82 jeremybenn
      fprintf (f, "%ld", i);
16426 19 jeremybenn
    }
16427
  else
16428
    {
16429
      unsigned long int i = ulongval ();
16430 82 jeremybenn
      if (i != ((long int) (sizeof (short))))
16431 19 jeremybenn
        return 1;
16432 82 jeremybenn
      fprintf (f, "%lu", i);
16433 19 jeremybenn
    }
16434 82 jeremybenn
  /* Do not output a trailing newline, as this causes \r\n confusion
16435
     on some platforms.  */
16436 19 jeremybenn
  return ferror (f) || fclose (f) != 0;
16437
 
16438
  ;
16439
  return 0;
16440
}
16441
_ACEOF
16442
rm -f conftest$ac_exeext
16443
if { (ac_try="$ac_link"
16444
case "(($ac_try" in
16445
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16446
  *) ac_try_echo=$ac_try;;
16447
esac
16448 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16449
$as_echo "$ac_try_echo") >&5
16450 19 jeremybenn
  (eval "$ac_link") 2>&5
16451
  ac_status=$?
16452 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 19 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16454
  { (case "(($ac_try" in
16455
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16456
  *) ac_try_echo=$ac_try;;
16457
esac
16458 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16459
$as_echo "$ac_try_echo") >&5
16460 19 jeremybenn
  (eval "$ac_try") 2>&5
16461
  ac_status=$?
16462 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463 19 jeremybenn
  (exit $ac_status); }; }; then
16464
  ac_cv_sizeof_short=`cat conftest.val`
16465
else
16466 82 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
16467
$as_echo "$as_me: failed program was:" >&5
16468 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16469
 
16470
( exit $ac_status )
16471
if test "$ac_cv_type_short" = yes; then
16472 82 jeremybenn
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16473
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16474
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
16475 19 jeremybenn
See \`config.log' for more details." >&5
16476 82 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (short)
16477 19 jeremybenn
See \`config.log' for more details." >&2;}
16478 82 jeremybenn
   { (exit 77); exit 77; }; }; }
16479 19 jeremybenn
   else
16480
     ac_cv_sizeof_short=0
16481
   fi
16482
fi
16483 82 jeremybenn
rm -rf conftest.dSYM
16484 19 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16485
fi
16486
rm -f conftest.val
16487
fi
16488 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16489
$as_echo "$ac_cv_sizeof_short" >&6; }
16490 19 jeremybenn
 
16491
 
16492
 
16493
cat >>confdefs.h <<_ACEOF
16494
#define SIZEOF_SHORT $ac_cv_sizeof_short
16495
_ACEOF
16496
 
16497
 
16498
# The cast to long int works around a bug in the HP C Compiler
16499
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16500
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16501
# This bug is HP SR number 8606223364.
16502 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking size of int" >&5
16503
$as_echo_n "checking size of int... " >&6; }
16504 19 jeremybenn
if test "${ac_cv_sizeof_int+set}" = set; then
16505 82 jeremybenn
  $as_echo_n "(cached) " >&6
16506 19 jeremybenn
else
16507
  if test "$cross_compiling" = yes; then
16508
  # Depending upon the size, compute the lo and hi bounds.
16509
cat >conftest.$ac_ext <<_ACEOF
16510
/* confdefs.h.  */
16511
_ACEOF
16512
cat confdefs.h >>conftest.$ac_ext
16513
cat >>conftest.$ac_ext <<_ACEOF
16514
/* end confdefs.h.  */
16515
$ac_includes_default
16516
int
16517
main ()
16518
{
16519 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
16520 19 jeremybenn
test_array [0] = 0
16521
 
16522
  ;
16523
  return 0;
16524
}
16525
_ACEOF
16526
rm -f conftest.$ac_objext
16527
if { (ac_try="$ac_compile"
16528
case "(($ac_try" in
16529
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16530
  *) ac_try_echo=$ac_try;;
16531
esac
16532 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16533
$as_echo "$ac_try_echo") >&5
16534 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16535
  ac_status=$?
16536
  grep -v '^ *+' conftest.er1 >conftest.err
16537
  rm -f conftest.er1
16538
  cat conftest.err >&5
16539 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 19 jeremybenn
  (exit $ac_status); } && {
16541
         test -z "$ac_c_werror_flag" ||
16542
         test ! -s conftest.err
16543
       } && test -s conftest.$ac_objext; then
16544
  ac_lo=0 ac_mid=0
16545
  while :; do
16546
    cat >conftest.$ac_ext <<_ACEOF
16547
/* confdefs.h.  */
16548
_ACEOF
16549
cat confdefs.h >>conftest.$ac_ext
16550
cat >>conftest.$ac_ext <<_ACEOF
16551
/* end confdefs.h.  */
16552
$ac_includes_default
16553
int
16554
main ()
16555
{
16556 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
16557 19 jeremybenn
test_array [0] = 0
16558
 
16559
  ;
16560
  return 0;
16561
}
16562
_ACEOF
16563
rm -f conftest.$ac_objext
16564
if { (ac_try="$ac_compile"
16565
case "(($ac_try" in
16566
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16567
  *) ac_try_echo=$ac_try;;
16568
esac
16569 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16570
$as_echo "$ac_try_echo") >&5
16571 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16572
  ac_status=$?
16573
  grep -v '^ *+' conftest.er1 >conftest.err
16574
  rm -f conftest.er1
16575
  cat conftest.err >&5
16576 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 19 jeremybenn
  (exit $ac_status); } && {
16578
         test -z "$ac_c_werror_flag" ||
16579
         test ! -s conftest.err
16580
       } && test -s conftest.$ac_objext; then
16581
  ac_hi=$ac_mid; break
16582
else
16583 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16584 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16585
 
16586
        ac_lo=`expr $ac_mid + 1`
16587
                        if test $ac_lo -le $ac_mid; then
16588
                          ac_lo= ac_hi=
16589
                          break
16590
                        fi
16591
                        ac_mid=`expr 2 '*' $ac_mid + 1`
16592
fi
16593
 
16594
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16595
  done
16596
else
16597 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16598 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16599
 
16600
        cat >conftest.$ac_ext <<_ACEOF
16601
/* confdefs.h.  */
16602
_ACEOF
16603
cat confdefs.h >>conftest.$ac_ext
16604
cat >>conftest.$ac_ext <<_ACEOF
16605
/* end confdefs.h.  */
16606
$ac_includes_default
16607
int
16608
main ()
16609
{
16610 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
16611 19 jeremybenn
test_array [0] = 0
16612
 
16613
  ;
16614
  return 0;
16615
}
16616
_ACEOF
16617
rm -f conftest.$ac_objext
16618
if { (ac_try="$ac_compile"
16619
case "(($ac_try" in
16620
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16621
  *) ac_try_echo=$ac_try;;
16622
esac
16623 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16624
$as_echo "$ac_try_echo") >&5
16625 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16626
  ac_status=$?
16627
  grep -v '^ *+' conftest.er1 >conftest.err
16628
  rm -f conftest.er1
16629
  cat conftest.err >&5
16630 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631 19 jeremybenn
  (exit $ac_status); } && {
16632
         test -z "$ac_c_werror_flag" ||
16633
         test ! -s conftest.err
16634
       } && test -s conftest.$ac_objext; then
16635
  ac_hi=-1 ac_mid=-1
16636
  while :; do
16637
    cat >conftest.$ac_ext <<_ACEOF
16638
/* confdefs.h.  */
16639
_ACEOF
16640
cat confdefs.h >>conftest.$ac_ext
16641
cat >>conftest.$ac_ext <<_ACEOF
16642
/* end confdefs.h.  */
16643
$ac_includes_default
16644
int
16645
main ()
16646
{
16647 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
16648 19 jeremybenn
test_array [0] = 0
16649
 
16650
  ;
16651
  return 0;
16652
}
16653
_ACEOF
16654
rm -f conftest.$ac_objext
16655
if { (ac_try="$ac_compile"
16656
case "(($ac_try" in
16657
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16658
  *) ac_try_echo=$ac_try;;
16659
esac
16660 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16661
$as_echo "$ac_try_echo") >&5
16662 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16663
  ac_status=$?
16664
  grep -v '^ *+' conftest.er1 >conftest.err
16665
  rm -f conftest.er1
16666
  cat conftest.err >&5
16667 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 19 jeremybenn
  (exit $ac_status); } && {
16669
         test -z "$ac_c_werror_flag" ||
16670
         test ! -s conftest.err
16671
       } && test -s conftest.$ac_objext; then
16672
  ac_lo=$ac_mid; break
16673
else
16674 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16675 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16676
 
16677
        ac_hi=`expr '(' $ac_mid ')' - 1`
16678
                        if test $ac_mid -le $ac_hi; then
16679
                          ac_lo= ac_hi=
16680
                          break
16681
                        fi
16682
                        ac_mid=`expr 2 '*' $ac_mid`
16683
fi
16684
 
16685
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16686
  done
16687
else
16688 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16689 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16690
 
16691
        ac_lo= ac_hi=
16692
fi
16693
 
16694
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16695
fi
16696
 
16697
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16698
# Binary search between lo and hi bounds.
16699
while test "x$ac_lo" != "x$ac_hi"; do
16700
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16701
  cat >conftest.$ac_ext <<_ACEOF
16702
/* confdefs.h.  */
16703
_ACEOF
16704
cat confdefs.h >>conftest.$ac_ext
16705
cat >>conftest.$ac_ext <<_ACEOF
16706
/* end confdefs.h.  */
16707
$ac_includes_default
16708
int
16709
main ()
16710
{
16711 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
16712 19 jeremybenn
test_array [0] = 0
16713
 
16714
  ;
16715
  return 0;
16716
}
16717
_ACEOF
16718
rm -f conftest.$ac_objext
16719
if { (ac_try="$ac_compile"
16720
case "(($ac_try" in
16721
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722
  *) ac_try_echo=$ac_try;;
16723
esac
16724 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16725
$as_echo "$ac_try_echo") >&5
16726 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16727
  ac_status=$?
16728
  grep -v '^ *+' conftest.er1 >conftest.err
16729
  rm -f conftest.er1
16730
  cat conftest.err >&5
16731 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 19 jeremybenn
  (exit $ac_status); } && {
16733
         test -z "$ac_c_werror_flag" ||
16734
         test ! -s conftest.err
16735
       } && test -s conftest.$ac_objext; then
16736
  ac_hi=$ac_mid
16737
else
16738 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16739 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16740
 
16741
        ac_lo=`expr '(' $ac_mid ')' + 1`
16742
fi
16743
 
16744
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16745
done
16746
case $ac_lo in
16747
?*) ac_cv_sizeof_int=$ac_lo;;
16748
'') if test "$ac_cv_type_int" = yes; then
16749 82 jeremybenn
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16750
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16751
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
16752 19 jeremybenn
See \`config.log' for more details." >&5
16753 82 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (int)
16754 19 jeremybenn
See \`config.log' for more details." >&2;}
16755 82 jeremybenn
   { (exit 77); exit 77; }; }; }
16756 19 jeremybenn
   else
16757
     ac_cv_sizeof_int=0
16758
   fi ;;
16759
esac
16760
else
16761
  cat >conftest.$ac_ext <<_ACEOF
16762
/* confdefs.h.  */
16763
_ACEOF
16764
cat confdefs.h >>conftest.$ac_ext
16765
cat >>conftest.$ac_ext <<_ACEOF
16766
/* end confdefs.h.  */
16767
$ac_includes_default
16768 82 jeremybenn
static long int longval () { return (long int) (sizeof (int)); }
16769
static unsigned long int ulongval () { return (long int) (sizeof (int)); }
16770 19 jeremybenn
#include 
16771
#include 
16772
int
16773
main ()
16774
{
16775
 
16776
  FILE *f = fopen ("conftest.val", "w");
16777
  if (! f)
16778
    return 1;
16779 82 jeremybenn
  if (((long int) (sizeof (int))) < 0)
16780 19 jeremybenn
    {
16781
      long int i = longval ();
16782 82 jeremybenn
      if (i != ((long int) (sizeof (int))))
16783 19 jeremybenn
        return 1;
16784 82 jeremybenn
      fprintf (f, "%ld", i);
16785 19 jeremybenn
    }
16786
  else
16787
    {
16788
      unsigned long int i = ulongval ();
16789 82 jeremybenn
      if (i != ((long int) (sizeof (int))))
16790 19 jeremybenn
        return 1;
16791 82 jeremybenn
      fprintf (f, "%lu", i);
16792 19 jeremybenn
    }
16793 82 jeremybenn
  /* Do not output a trailing newline, as this causes \r\n confusion
16794
     on some platforms.  */
16795 19 jeremybenn
  return ferror (f) || fclose (f) != 0;
16796
 
16797
  ;
16798
  return 0;
16799
}
16800
_ACEOF
16801
rm -f conftest$ac_exeext
16802
if { (ac_try="$ac_link"
16803
case "(($ac_try" in
16804
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16805
  *) ac_try_echo=$ac_try;;
16806
esac
16807 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16808
$as_echo "$ac_try_echo") >&5
16809 19 jeremybenn
  (eval "$ac_link") 2>&5
16810
  ac_status=$?
16811 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 19 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16813
  { (case "(($ac_try" in
16814
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16815
  *) ac_try_echo=$ac_try;;
16816
esac
16817 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16818
$as_echo "$ac_try_echo") >&5
16819 19 jeremybenn
  (eval "$ac_try") 2>&5
16820
  ac_status=$?
16821 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 19 jeremybenn
  (exit $ac_status); }; }; then
16823
  ac_cv_sizeof_int=`cat conftest.val`
16824
else
16825 82 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
16826
$as_echo "$as_me: failed program was:" >&5
16827 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16828
 
16829
( exit $ac_status )
16830
if test "$ac_cv_type_int" = yes; then
16831 82 jeremybenn
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16832
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16833
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
16834 19 jeremybenn
See \`config.log' for more details." >&5
16835 82 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (int)
16836 19 jeremybenn
See \`config.log' for more details." >&2;}
16837 82 jeremybenn
   { (exit 77); exit 77; }; }; }
16838 19 jeremybenn
   else
16839
     ac_cv_sizeof_int=0
16840
   fi
16841
fi
16842 82 jeremybenn
rm -rf conftest.dSYM
16843 19 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16844
fi
16845
rm -f conftest.val
16846
fi
16847 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16848
$as_echo "$ac_cv_sizeof_int" >&6; }
16849 19 jeremybenn
 
16850
 
16851
 
16852
cat >>confdefs.h <<_ACEOF
16853
#define SIZEOF_INT $ac_cv_sizeof_int
16854
_ACEOF
16855
 
16856
 
16857
# The cast to long int works around a bug in the HP C Compiler
16858
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16859
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16860
# This bug is HP SR number 8606223364.
16861 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking size of long" >&5
16862
$as_echo_n "checking size of long... " >&6; }
16863 19 jeremybenn
if test "${ac_cv_sizeof_long+set}" = set; then
16864 82 jeremybenn
  $as_echo_n "(cached) " >&6
16865 19 jeremybenn
else
16866
  if test "$cross_compiling" = yes; then
16867
  # Depending upon the size, compute the lo and hi bounds.
16868
cat >conftest.$ac_ext <<_ACEOF
16869
/* confdefs.h.  */
16870
_ACEOF
16871
cat confdefs.h >>conftest.$ac_ext
16872
cat >>conftest.$ac_ext <<_ACEOF
16873
/* end confdefs.h.  */
16874
$ac_includes_default
16875
int
16876
main ()
16877
{
16878 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
16879 19 jeremybenn
test_array [0] = 0
16880
 
16881
  ;
16882
  return 0;
16883
}
16884
_ACEOF
16885
rm -f conftest.$ac_objext
16886
if { (ac_try="$ac_compile"
16887
case "(($ac_try" in
16888
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16889
  *) ac_try_echo=$ac_try;;
16890
esac
16891 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16892
$as_echo "$ac_try_echo") >&5
16893 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16894
  ac_status=$?
16895
  grep -v '^ *+' conftest.er1 >conftest.err
16896
  rm -f conftest.er1
16897
  cat conftest.err >&5
16898 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 19 jeremybenn
  (exit $ac_status); } && {
16900
         test -z "$ac_c_werror_flag" ||
16901
         test ! -s conftest.err
16902
       } && test -s conftest.$ac_objext; then
16903
  ac_lo=0 ac_mid=0
16904
  while :; do
16905
    cat >conftest.$ac_ext <<_ACEOF
16906
/* confdefs.h.  */
16907
_ACEOF
16908
cat confdefs.h >>conftest.$ac_ext
16909
cat >>conftest.$ac_ext <<_ACEOF
16910
/* end confdefs.h.  */
16911
$ac_includes_default
16912
int
16913
main ()
16914
{
16915 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
16916 19 jeremybenn
test_array [0] = 0
16917
 
16918
  ;
16919
  return 0;
16920
}
16921
_ACEOF
16922
rm -f conftest.$ac_objext
16923
if { (ac_try="$ac_compile"
16924
case "(($ac_try" in
16925
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16926
  *) ac_try_echo=$ac_try;;
16927
esac
16928 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16929
$as_echo "$ac_try_echo") >&5
16930 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16931
  ac_status=$?
16932
  grep -v '^ *+' conftest.er1 >conftest.err
16933
  rm -f conftest.er1
16934
  cat conftest.err >&5
16935 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 19 jeremybenn
  (exit $ac_status); } && {
16937
         test -z "$ac_c_werror_flag" ||
16938
         test ! -s conftest.err
16939
       } && test -s conftest.$ac_objext; then
16940
  ac_hi=$ac_mid; break
16941
else
16942 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16943 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16944
 
16945
        ac_lo=`expr $ac_mid + 1`
16946
                        if test $ac_lo -le $ac_mid; then
16947
                          ac_lo= ac_hi=
16948
                          break
16949
                        fi
16950
                        ac_mid=`expr 2 '*' $ac_mid + 1`
16951
fi
16952
 
16953
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16954
  done
16955
else
16956 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16957 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16958
 
16959
        cat >conftest.$ac_ext <<_ACEOF
16960
/* confdefs.h.  */
16961
_ACEOF
16962
cat confdefs.h >>conftest.$ac_ext
16963
cat >>conftest.$ac_ext <<_ACEOF
16964
/* end confdefs.h.  */
16965
$ac_includes_default
16966
int
16967
main ()
16968
{
16969 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
16970 19 jeremybenn
test_array [0] = 0
16971
 
16972
  ;
16973
  return 0;
16974
}
16975
_ACEOF
16976
rm -f conftest.$ac_objext
16977
if { (ac_try="$ac_compile"
16978
case "(($ac_try" in
16979
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16980
  *) ac_try_echo=$ac_try;;
16981
esac
16982 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16983
$as_echo "$ac_try_echo") >&5
16984 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16985
  ac_status=$?
16986
  grep -v '^ *+' conftest.er1 >conftest.err
16987
  rm -f conftest.er1
16988
  cat conftest.err >&5
16989 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 19 jeremybenn
  (exit $ac_status); } && {
16991
         test -z "$ac_c_werror_flag" ||
16992
         test ! -s conftest.err
16993
       } && test -s conftest.$ac_objext; then
16994
  ac_hi=-1 ac_mid=-1
16995
  while :; do
16996
    cat >conftest.$ac_ext <<_ACEOF
16997
/* confdefs.h.  */
16998
_ACEOF
16999
cat confdefs.h >>conftest.$ac_ext
17000
cat >>conftest.$ac_ext <<_ACEOF
17001
/* end confdefs.h.  */
17002
$ac_includes_default
17003
int
17004
main ()
17005
{
17006 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
17007 19 jeremybenn
test_array [0] = 0
17008
 
17009
  ;
17010
  return 0;
17011
}
17012
_ACEOF
17013
rm -f conftest.$ac_objext
17014
if { (ac_try="$ac_compile"
17015
case "(($ac_try" in
17016
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17017
  *) ac_try_echo=$ac_try;;
17018
esac
17019 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17020
$as_echo "$ac_try_echo") >&5
17021 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
17022
  ac_status=$?
17023
  grep -v '^ *+' conftest.er1 >conftest.err
17024
  rm -f conftest.er1
17025
  cat conftest.err >&5
17026 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 19 jeremybenn
  (exit $ac_status); } && {
17028
         test -z "$ac_c_werror_flag" ||
17029
         test ! -s conftest.err
17030
       } && test -s conftest.$ac_objext; then
17031
  ac_lo=$ac_mid; break
17032
else
17033 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17034 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17035
 
17036
        ac_hi=`expr '(' $ac_mid ')' - 1`
17037
                        if test $ac_mid -le $ac_hi; then
17038
                          ac_lo= ac_hi=
17039
                          break
17040
                        fi
17041
                        ac_mid=`expr 2 '*' $ac_mid`
17042
fi
17043
 
17044
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17045
  done
17046
else
17047 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17048 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17049
 
17050
        ac_lo= ac_hi=
17051
fi
17052
 
17053
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17054
fi
17055
 
17056
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17057
# Binary search between lo and hi bounds.
17058
while test "x$ac_lo" != "x$ac_hi"; do
17059
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17060
  cat >conftest.$ac_ext <<_ACEOF
17061
/* confdefs.h.  */
17062
_ACEOF
17063
cat confdefs.h >>conftest.$ac_ext
17064
cat >>conftest.$ac_ext <<_ACEOF
17065
/* end confdefs.h.  */
17066
$ac_includes_default
17067
int
17068
main ()
17069
{
17070 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
17071 19 jeremybenn
test_array [0] = 0
17072
 
17073
  ;
17074
  return 0;
17075
}
17076
_ACEOF
17077
rm -f conftest.$ac_objext
17078
if { (ac_try="$ac_compile"
17079
case "(($ac_try" in
17080
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17081
  *) ac_try_echo=$ac_try;;
17082
esac
17083 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17084
$as_echo "$ac_try_echo") >&5
17085 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
17086
  ac_status=$?
17087
  grep -v '^ *+' conftest.er1 >conftest.err
17088
  rm -f conftest.er1
17089
  cat conftest.err >&5
17090 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 19 jeremybenn
  (exit $ac_status); } && {
17092
         test -z "$ac_c_werror_flag" ||
17093
         test ! -s conftest.err
17094
       } && test -s conftest.$ac_objext; then
17095
  ac_hi=$ac_mid
17096
else
17097 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17098 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17099
 
17100
        ac_lo=`expr '(' $ac_mid ')' + 1`
17101
fi
17102
 
17103
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17104
done
17105
case $ac_lo in
17106
?*) ac_cv_sizeof_long=$ac_lo;;
17107
'') if test "$ac_cv_type_long" = yes; then
17108 82 jeremybenn
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17109
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17110
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
17111 19 jeremybenn
See \`config.log' for more details." >&5
17112 82 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (long)
17113 19 jeremybenn
See \`config.log' for more details." >&2;}
17114 82 jeremybenn
   { (exit 77); exit 77; }; }; }
17115 19 jeremybenn
   else
17116
     ac_cv_sizeof_long=0
17117
   fi ;;
17118
esac
17119
else
17120
  cat >conftest.$ac_ext <<_ACEOF
17121
/* confdefs.h.  */
17122
_ACEOF
17123
cat confdefs.h >>conftest.$ac_ext
17124
cat >>conftest.$ac_ext <<_ACEOF
17125
/* end confdefs.h.  */
17126
$ac_includes_default
17127 82 jeremybenn
static long int longval () { return (long int) (sizeof (long)); }
17128
static unsigned long int ulongval () { return (long int) (sizeof (long)); }
17129 19 jeremybenn
#include 
17130
#include 
17131
int
17132
main ()
17133
{
17134
 
17135
  FILE *f = fopen ("conftest.val", "w");
17136
  if (! f)
17137
    return 1;
17138 82 jeremybenn
  if (((long int) (sizeof (long))) < 0)
17139 19 jeremybenn
    {
17140
      long int i = longval ();
17141 82 jeremybenn
      if (i != ((long int) (sizeof (long))))
17142 19 jeremybenn
        return 1;
17143 82 jeremybenn
      fprintf (f, "%ld", i);
17144 19 jeremybenn
    }
17145
  else
17146
    {
17147
      unsigned long int i = ulongval ();
17148 82 jeremybenn
      if (i != ((long int) (sizeof (long))))
17149 19 jeremybenn
        return 1;
17150 82 jeremybenn
      fprintf (f, "%lu", i);
17151 19 jeremybenn
    }
17152 82 jeremybenn
  /* Do not output a trailing newline, as this causes \r\n confusion
17153
     on some platforms.  */
17154 19 jeremybenn
  return ferror (f) || fclose (f) != 0;
17155
 
17156
  ;
17157
  return 0;
17158
}
17159
_ACEOF
17160
rm -f conftest$ac_exeext
17161
if { (ac_try="$ac_link"
17162
case "(($ac_try" in
17163
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17164
  *) ac_try_echo=$ac_try;;
17165
esac
17166 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17167
$as_echo "$ac_try_echo") >&5
17168 19 jeremybenn
  (eval "$ac_link") 2>&5
17169
  ac_status=$?
17170 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 19 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17172
  { (case "(($ac_try" in
17173
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17174
  *) ac_try_echo=$ac_try;;
17175
esac
17176 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17177
$as_echo "$ac_try_echo") >&5
17178 19 jeremybenn
  (eval "$ac_try") 2>&5
17179
  ac_status=$?
17180 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 19 jeremybenn
  (exit $ac_status); }; }; then
17182
  ac_cv_sizeof_long=`cat conftest.val`
17183
else
17184 82 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
17185
$as_echo "$as_me: failed program was:" >&5
17186 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17187
 
17188
( exit $ac_status )
17189
if test "$ac_cv_type_long" = yes; then
17190 82 jeremybenn
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17191
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17192
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
17193 19 jeremybenn
See \`config.log' for more details." >&5
17194 82 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (long)
17195 19 jeremybenn
See \`config.log' for more details." >&2;}
17196 82 jeremybenn
   { (exit 77); exit 77; }; }; }
17197 19 jeremybenn
   else
17198
     ac_cv_sizeof_long=0
17199
   fi
17200
fi
17201 82 jeremybenn
rm -rf conftest.dSYM
17202 19 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17203
fi
17204
rm -f conftest.val
17205
fi
17206 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17207
$as_echo "$ac_cv_sizeof_long" >&6; }
17208 19 jeremybenn
 
17209
 
17210
 
17211
cat >>confdefs.h <<_ACEOF
17212
#define SIZEOF_LONG $ac_cv_sizeof_long
17213
_ACEOF
17214
 
17215
 
17216
 
17217
#Check for compare function type for qsort (needed by some Linuxes)
17218 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for __compar_fn_t" >&5
17219
$as_echo_n "checking for __compar_fn_t... " >&6; }
17220 19 jeremybenn
if test "${ac_cv_type___compar_fn_t+set}" = set; then
17221 82 jeremybenn
  $as_echo_n "(cached) " >&6
17222 19 jeremybenn
else
17223 82 jeremybenn
  ac_cv_type___compar_fn_t=no
17224
cat >conftest.$ac_ext <<_ACEOF
17225
/* confdefs.h.  */
17226
_ACEOF
17227
cat confdefs.h >>conftest.$ac_ext
17228
cat >>conftest.$ac_ext <<_ACEOF
17229
/* end confdefs.h.  */
17230
$ac_includes_default
17231
int
17232
main ()
17233
{
17234
if (sizeof (__compar_fn_t))
17235
       return 0;
17236
  ;
17237
  return 0;
17238
}
17239
_ACEOF
17240
rm -f conftest.$ac_objext
17241
if { (ac_try="$ac_compile"
17242
case "(($ac_try" in
17243
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17244
  *) ac_try_echo=$ac_try;;
17245
esac
17246
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17247
$as_echo "$ac_try_echo") >&5
17248
  (eval "$ac_compile") 2>conftest.er1
17249
  ac_status=$?
17250
  grep -v '^ *+' conftest.er1 >conftest.err
17251
  rm -f conftest.er1
17252
  cat conftest.err >&5
17253
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254
  (exit $ac_status); } && {
17255
         test -z "$ac_c_werror_flag" ||
17256
         test ! -s conftest.err
17257
       } && test -s conftest.$ac_objext; then
17258 19 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
17259
/* confdefs.h.  */
17260
_ACEOF
17261
cat confdefs.h >>conftest.$ac_ext
17262
cat >>conftest.$ac_ext <<_ACEOF
17263
/* end confdefs.h.  */
17264
$ac_includes_default
17265
int
17266
main ()
17267
{
17268 82 jeremybenn
if (sizeof ((__compar_fn_t)))
17269
          return 0;
17270 19 jeremybenn
  ;
17271
  return 0;
17272
}
17273
_ACEOF
17274
rm -f conftest.$ac_objext
17275
if { (ac_try="$ac_compile"
17276
case "(($ac_try" in
17277
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17278
  *) ac_try_echo=$ac_try;;
17279
esac
17280 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17281
$as_echo "$ac_try_echo") >&5
17282 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
17283
  ac_status=$?
17284
  grep -v '^ *+' conftest.er1 >conftest.err
17285
  rm -f conftest.er1
17286
  cat conftest.err >&5
17287 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 19 jeremybenn
  (exit $ac_status); } && {
17289
         test -z "$ac_c_werror_flag" ||
17290
         test ! -s conftest.err
17291
       } && test -s conftest.$ac_objext; then
17292 82 jeremybenn
  :
17293 19 jeremybenn
else
17294 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17295 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17296
 
17297 82 jeremybenn
        ac_cv_type___compar_fn_t=yes
17298 19 jeremybenn
fi
17299
 
17300
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17301 82 jeremybenn
else
17302
  $as_echo "$as_me: failed program was:" >&5
17303
sed 's/^/| /' conftest.$ac_ext >&5
17304
 
17305
 
17306 19 jeremybenn
fi
17307
 
17308 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17309
fi
17310
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type___compar_fn_t" >&5
17311
$as_echo "$ac_cv_type___compar_fn_t" >&6; }
17312
if test "x$ac_cv_type___compar_fn_t" = x""yes; then
17313
 
17314 19 jeremybenn
cat >>confdefs.h <<_ACEOF
17315
#define HAVE___COMPAR_FN_T 1
17316
_ACEOF
17317
 
17318
 
17319
fi
17320
 
17321
 
17322
# check for GNU readline
17323
 
17324 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for add_history in -lreadline" >&5
17325
$as_echo_n "checking for add_history in -lreadline... " >&6; }
17326 19 jeremybenn
if test "${ac_cv_lib_readline_add_history+set}" = set; then
17327 82 jeremybenn
  $as_echo_n "(cached) " >&6
17328 19 jeremybenn
else
17329
  ac_check_lib_save_LIBS=$LIBS
17330
LIBS="-lreadline  $LIBS"
17331
cat >conftest.$ac_ext <<_ACEOF
17332
/* confdefs.h.  */
17333
_ACEOF
17334
cat confdefs.h >>conftest.$ac_ext
17335
cat >>conftest.$ac_ext <<_ACEOF
17336
/* end confdefs.h.  */
17337
 
17338
/* Override any GCC internal prototype to avoid an error.
17339
   Use char because int might match the return type of a GCC
17340
   builtin and then its argument prototype would still apply.  */
17341
#ifdef __cplusplus
17342
extern "C"
17343
#endif
17344
char add_history ();
17345
int
17346
main ()
17347
{
17348
return add_history ();
17349
  ;
17350
  return 0;
17351
}
17352
_ACEOF
17353
rm -f conftest.$ac_objext conftest$ac_exeext
17354
if { (ac_try="$ac_link"
17355
case "(($ac_try" in
17356
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17357
  *) ac_try_echo=$ac_try;;
17358
esac
17359 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17360
$as_echo "$ac_try_echo") >&5
17361 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
17362
  ac_status=$?
17363
  grep -v '^ *+' conftest.er1 >conftest.err
17364
  rm -f conftest.er1
17365
  cat conftest.err >&5
17366 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 19 jeremybenn
  (exit $ac_status); } && {
17368
         test -z "$ac_c_werror_flag" ||
17369
         test ! -s conftest.err
17370 82 jeremybenn
       } && test -s conftest$ac_exeext && {
17371
         test "$cross_compiling" = yes ||
17372
         $as_test_x conftest$ac_exeext
17373
       }; then
17374 19 jeremybenn
  ac_cv_lib_readline_add_history=yes
17375
else
17376 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17377 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17378
 
17379
        ac_cv_lib_readline_add_history=no
17380
fi
17381
 
17382 82 jeremybenn
rm -rf conftest.dSYM
17383 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17384
      conftest$ac_exeext conftest.$ac_ext
17385
LIBS=$ac_check_lib_save_LIBS
17386
fi
17387 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_add_history" >&5
17388
$as_echo "$ac_cv_lib_readline_add_history" >&6; }
17389
if test "x$ac_cv_lib_readline_add_history" = x""yes; then
17390 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
17391
#define HAVE_LIBREADLINE 1
17392
_ACEOF
17393
 
17394
  LIBS="-lreadline $LIBS"
17395
 
17396
fi
17397
 
17398
 
17399
# yuck
17400
case "$host_os" in
17401
aix*)   prefer_curses=yes ;;
17402
esac
17403
 
17404
case "$host_cpu" in
17405
*cray*) LOCAL_CFLAGS=-DCRAY ;;
17406
esac
17407
 
17408
case "$host_os" in
17409
isc*)   LOCAL_CFLAGS=-Disc386 ;;
17410
esac
17411
 
17412
case "$host_os" in
17413
solaris*) LIBS="-lsocket -lnsl" ;;
17414
esac
17415
 
17416
# define options
17417
 
17418 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether to enable profiling" >&5
17419
$as_echo_n "checking whether to enable profiling... " >&6; }
17420 19 jeremybenn
# Check whether --enable-profiling was given.
17421
if test "${enable_profiling+set}" = set; then
17422
  enableval=$enable_profiling;
17423
    case "$enableval" in
17424
        yes) profile="-pg" ;;
17425
    esac
17426
 
17427
fi
17428
 
17429 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: ${enable_profiling-no}" >&5
17430
$as_echo "${enable_profiling-no}" >&6; }
17431 19 jeremybenn
 
17432
execution="1"
17433
 
17434
INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
17435 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking which execution style to use" >&5
17436
$as_echo_n "checking which execution style to use... " >&6; }
17437 19 jeremybenn
# Check whether --enable-execution was given.
17438
if test "${enable_execution+set}" = set; then
17439
  enableval=$enable_execution;
17440
    case "$enableval" in
17441
    simple)
17442
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
17443
      execution="0"
17444 82 jeremybenn
      { $as_echo "$as_me:$LINENO: result: simple" >&5
17445
$as_echo "simple" >&6; }
17446 19 jeremybenn
      ;;
17447
    complex)
17448
      INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
17449
      execution="1"
17450 82 jeremybenn
      { $as_echo "$as_me:$LINENO: result: complex" >&5
17451
$as_echo "complex" >&6; }
17452 19 jeremybenn
      ;;
17453
    dynamic)
17454
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
17455
      execution="2"
17456 82 jeremybenn
      { $as_echo "$as_me:$LINENO: result: dynamic" >&5
17457
$as_echo "dynamic" >&6; }
17458 19 jeremybenn
      ;;
17459
    *)
17460 82 jeremybenn
      { { $as_echo "$as_me:$LINENO: error: \"excecution must one of simple/complex/dynamic\"" >&5
17461
$as_echo "$as_me: error: \"excecution must one of simple/complex/dynamic\"" >&2;}
17462 19 jeremybenn
   { (exit 1); exit 1; }; }
17463
      ;;
17464
    esac
17465
 
17466
else
17467
 
17468 82 jeremybenn
      { $as_echo "$as_me:$LINENO: result: complex" >&5
17469
$as_echo "complex" >&6; }
17470 19 jeremybenn
 
17471
fi
17472
 
17473
 
17474
eth_phy="0"
17475 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether to enable ethernet phy emulation" >&5
17476
$as_echo_n "checking whether to enable ethernet phy emulation... " >&6; }
17477 19 jeremybenn
# Check whether --enable-ethphy was given.
17478
if test "${enable_ethphy+set}" = set; then
17479
  enableval=$enable_ethphy;
17480
    case "$enableval" in
17481
  no)  eth_phy="0" ;;
17482
        yes) eth_phy="1" ;;
17483
    esac
17484
 
17485
fi
17486
 
17487 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: ${enable_eth_phy-no}" >&5
17488
$as_echo "${enable_eth_phy-no}" >&6; }
17489 19 jeremybenn
 
17490
 
17491
raw_range_stats="0"
17492 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether to use raw range stats" >&5
17493
$as_echo_n "checking whether to use raw range stats... " >&6; }
17494 19 jeremybenn
# Check whether --enable-range_stats was given.
17495
if test "${enable_range_stats+set}" = set; then
17496
  enableval=$enable_range_stats;
17497
    case "$enableval" in
17498
  no)  raw_range_stats="0" ;;
17499
        yes) raw_range_stats="1" simple_execution="1" ;;
17500
    esac
17501
 
17502
fi
17503
 
17504 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: ${enable_range_stats-no}" >&5
17505
$as_echo "${enable_range_stats-no}" >&6; }
17506 19 jeremybenn
 
17507
set_ov_flag="0"
17508 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether instructions set overflow flag" >&5
17509
$as_echo_n "checking whether instructions set overflow flag... " >&6; }
17510 19 jeremybenn
# Check whether --enable-ov_flag was given.
17511
if test "${enable_ov_flag+set}" = set; then
17512
  enableval=$enable_ov_flag;
17513
    case "$enableval" in
17514
    no)  set_ov_flag="0" ;;
17515
    yes) set_ov_flag="1" ;;
17516
    esac
17517
 
17518
fi
17519
 
17520 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: ${enable_ov_flag-no}" >&5
17521
$as_echo "${enable_ov_flag-no}" >&6; }
17522 19 jeremybenn
 
17523
set_arith_flag="0"
17524 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether arithmethic instructions set flag" >&5
17525
$as_echo_n "checking whether arithmethic instructions set flag... " >&6; }
17526 19 jeremybenn
# Check whether --enable-arith_flag was given.
17527
if test "${enable_arith_flag+set}" = set; then
17528
  enableval=$enable_arith_flag;
17529
    case "$enableval" in
17530
  no)  set_arith_flag="0" ;;
17531
        yes) set_arith_flag="1" ;;
17532
    esac
17533
 
17534
fi
17535
 
17536 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: ${enable_arith_flag-no}" >&5
17537
$as_echo "${enable_arith_flag-no}" >&6; }
17538 19 jeremybenn
 
17539
# check for --enable-debug argument (for argtable2)
17540
# Check whether --enable-debug was given.
17541
if test "${enable_debug+set}" = set; then
17542
  enableval=$enable_debug;
17543
       case $enableval in
17544
          yes) echo "enabling argtable2 debugging symbols" & DEBUGFLAGS="-g -UNDEBUG";;
17545
          no)  echo "disabling argtable2 debugging symbols" & DEBUGFLAGS="-DNDEBUG";;
17546
          *)   echo "illegal argument to --enable-debug" & exit 1;;
17547
       esac
17548
 
17549
else
17550
  DEBUGFLAGS="-DNDEBUG"
17551
 
17552
fi
17553
 
17554
 
17555
 
17556
 
17557
cat >>confdefs.h <<_ACEOF
17558
#define RAW_RANGE_STATS $raw_range_stats
17559
_ACEOF
17560
 
17561
 
17562
cat >>confdefs.h <<_ACEOF
17563
#define SET_OV_FLAG $set_ov_flag
17564
_ACEOF
17565
 
17566
 
17567
cat >>confdefs.h <<_ACEOF
17568
#define ARITH_SET_FLAG $set_arith_flag
17569
_ACEOF
17570
 
17571
 
17572
cat >>confdefs.h <<_ACEOF
17573
#define HAVE_ETH_PHY $eth_phy
17574
_ACEOF
17575
 
17576
 
17577
cat >>confdefs.h <<_ACEOF
17578
#define SIMPLE_EXECUTION $execution == 0
17579
_ACEOF
17580
 
17581
 
17582
cat >>confdefs.h <<_ACEOF
17583
#define COMPLEX_EXECUTION $execution == 1
17584
_ACEOF
17585
 
17586
 
17587
cat >>confdefs.h <<_ACEOF
17588
#define DYNAMIC_EXECUTION $execution == 2
17589
_ACEOF
17590
 
17591
 if test x$execution = x1; then
17592
  GENERATE_NEEDED_TRUE=
17593
  GENERATE_NEEDED_FALSE='#'
17594
else
17595
  GENERATE_NEEDED_TRUE='#'
17596
  GENERATE_NEEDED_FALSE=
17597
fi
17598
 
17599
 if test x$execution = x2; then
17600
  DYNAMIC_EXECUTION_TRUE=
17601
  DYNAMIC_EXECUTION_FALSE='#'
17602
else
17603
  DYNAMIC_EXECUTION_TRUE='#'
17604
  DYNAMIC_EXECUTION_FALSE=
17605
fi
17606
 
17607
 
17608
 
17609
test -n "$profile"  && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
17610
 
17611 90 jeremybenn
# Check for a DejaGNU global config file. If not set, then set it
17612
# ourselves. This stops runtest complaining
17613
if test x"$DEJAGNU" = x
17614
then
17615
  DEJAGNU="\$(top_srcdir)/testsuite/default-global-conf.exp"
17616
 
17617
fi
17618
 
17619 19 jeremybenn
BUILD_DIR=`pwd`
17620
 
17621
 
17622
 
17623
 
17624
 
17625
 
17626
 
17627
 
17628
 
17629
 
17630
 
17631
 
17632
 
17633
 
17634
 
17635
 
17636
 
17637
 
17638
cat >>confdefs.h <<\_ACEOF
17639
#define HAVE_EXECUTION 1
17640
_ACEOF
17641
 
17642
 
17643
# yuck
17644
INCLUDES="$INCLUDES -I\${top_srcdir} -I\${top_srcdir}/cpu/common \
17645
-I\${top_srcdir}/cpu/or1k -I\${top_srcdir}/cache -I\${top_srcdir}/mmu \
17646
-I\${top_srcdir}/bpb -I\${top_srcdir}/peripheral -I\${top_srcdir}/tick \
17647
-I\${top_srcdir}/peripheral/channels -I\${top_srcdir}/pm -I\${top_srcdir}/pic \
17648
-I\${top_srcdir}/debug -I\${top_srcdir}/vapi -I\${top_srcdir}/support \
17649
-I\${top_srcdir}/cuc -I\${top_srcdir}/port -I\${top_srcdir}/argtable2"
17650
 
17651
 
17652 90 jeremybenn
ac_config_files="$ac_config_files Makefile argtable2/Makefile bpb/Makefile cache/Makefile cpu/Makefile cpu/common/Makefile cpu/or1k/Makefile cuc/Makefile debug/Makefile doc/Makefile mmu/Makefile peripheral/Makefile peripheral/channels/Makefile pm/Makefile pic/Makefile port/Makefile support/Makefile testsuite/Makefile testsuite/config/Makefile testsuite/lib/Makefile testsuite/libsim.tests/Makefile testsuite/or1ksim.tests/Makefile testsuite/test-code/Makefile testsuite/test-code/lib-iftest/Makefile tick/Makefile vapi/Makefile"
17653 19 jeremybenn
 
17654
 
17655
# yuck. I don't know why I cannot just substitute $CPU_ARCH in the above
17656
case "$CPU_ARCH" in
17657
dlx)    ac_config_files="$ac_config_files cpu/dlx/Makefile"
17658
;;
17659
*)      ac_config_files="$ac_config_files cpu/or32/Makefile"
17660
;;
17661
esac
17662
 
17663 82 jeremybenn
# Generate the output
17664
 
17665
 
17666 19 jeremybenn
cat >confcache <<\_ACEOF
17667
# This file is a shell script that caches the results of configure
17668
# tests run on this system so they can be shared between configure
17669
# scripts and configure runs, see configure's option --config-cache.
17670
# It is not useful on other systems.  If it contains results you don't
17671
# want to keep, you may remove or edit it.
17672
#
17673
# config.status only pays attention to the cache file if you give it
17674
# the --recheck option to rerun configure.
17675
#
17676
# `ac_cv_env_foo' variables (set or unset) will be overridden when
17677
# loading this file, other *unset* `ac_cv_foo' will be assigned the
17678
# following values.
17679
 
17680
_ACEOF
17681
 
17682
# The following way of writing the cache mishandles newlines in values,
17683
# but we know of no workaround that is simple, portable, and efficient.
17684
# So, we kill variables containing newlines.
17685
# Ultrix sh set writes to stderr and can't be redirected directly,
17686
# and sets the high bit in the cache file unless we assign to the vars.
17687
(
17688
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17689
    eval ac_val=\$$ac_var
17690
    case $ac_val in #(
17691
    *${as_nl}*)
17692
      case $ac_var in #(
17693 82 jeremybenn
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
17694
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17695 19 jeremybenn
      esac
17696
      case $ac_var in #(
17697
      _ | IFS | as_nl) ;; #(
17698 82 jeremybenn
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17699 19 jeremybenn
      *) $as_unset $ac_var ;;
17700
      esac ;;
17701
    esac
17702
  done
17703
 
17704
  (set) 2>&1 |
17705
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17706
    *${as_nl}ac_space=\ *)
17707
      # `set' does not quote correctly, so add quotes (double-quote
17708
      # substitution turns \\\\ into \\, and sed turns \\ into \).
17709
      sed -n \
17710
        "s/'/'\\\\''/g;
17711
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17712
      ;; #(
17713
    *)
17714
      # `set' quotes correctly as required by POSIX, so do not add quotes.
17715
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17716
      ;;
17717
    esac |
17718
    sort
17719
) |
17720
  sed '
17721
     /^ac_cv_env_/b end
17722
     t clear
17723
     :clear
17724
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17725
     t end
17726
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17727
     :end' >>confcache
17728
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17729
  if test -w "$cache_file"; then
17730
    test "x$cache_file" != "x/dev/null" &&
17731 82 jeremybenn
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17732
$as_echo "$as_me: updating cache $cache_file" >&6;}
17733 19 jeremybenn
    cat confcache >$cache_file
17734
  else
17735 82 jeremybenn
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17736
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17737 19 jeremybenn
  fi
17738
fi
17739
rm -f confcache
17740
 
17741
test "x$prefix" = xNONE && prefix=$ac_default_prefix
17742
# Let make expand exec_prefix.
17743
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17744
 
17745
DEFS=-DHAVE_CONFIG_H
17746
 
17747
ac_libobjs=
17748
ac_ltlibobjs=
17749
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17750
  # 1. Remove the extension, and $U if already installed.
17751
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17752 82 jeremybenn
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17753 19 jeremybenn
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17754
  #    will be set to the directory where LIBOBJS objects are built.
17755
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17756
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17757
done
17758
LIBOBJS=$ac_libobjs
17759
 
17760
LTLIBOBJS=$ac_ltlibobjs
17761
 
17762
 
17763
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17764 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17765 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&5
17766 82 jeremybenn
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
17767 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&2;}
17768
   { (exit 1); exit 1; }; }
17769
fi
17770
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17771 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17772 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&5
17773 82 jeremybenn
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17774 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&2;}
17775
   { (exit 1); exit 1; }; }
17776
fi
17777 82 jeremybenn
 if test -n "$EXEEXT"; then
17778
  am__EXEEXT_TRUE=
17779
  am__EXEEXT_FALSE='#'
17780
else
17781
  am__EXEEXT_TRUE='#'
17782
  am__EXEEXT_FALSE=
17783
fi
17784
 
17785
if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
17786
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
17787 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&5
17788 82 jeremybenn
$as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
17789 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&2;}
17790
   { (exit 1); exit 1; }; }
17791
fi
17792 82 jeremybenn
 
17793 19 jeremybenn
if test -z "${USE_SYS_GETOPTLONG_TRUE}" && test -z "${USE_SYS_GETOPTLONG_FALSE}"; then
17794 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_SYS_GETOPTLONG\" was never defined.
17795 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&5
17796 82 jeremybenn
$as_echo "$as_me: error: conditional \"USE_SYS_GETOPTLONG\" was never defined.
17797 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&2;}
17798
   { (exit 1); exit 1; }; }
17799
fi
17800
if test -z "${USE_ARGREX_TRUE}" && test -z "${USE_ARGREX_FALSE}"; then
17801 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_ARGREX\" was never defined.
17802 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&5
17803 82 jeremybenn
$as_echo "$as_me: error: conditional \"USE_ARGREX\" was never defined.
17804 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&2;}
17805
   { (exit 1); exit 1; }; }
17806
fi
17807
if test -z "${USE_ARGDATE_TRUE}" && test -z "${USE_ARGDATE_FALSE}"; then
17808 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_ARGDATE\" was never defined.
17809 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&5
17810 82 jeremybenn
$as_echo "$as_me: error: conditional \"USE_ARGDATE\" was never defined.
17811 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&2;}
17812
   { (exit 1); exit 1; }; }
17813
fi
17814
if test -z "${GENERATE_NEEDED_TRUE}" && test -z "${GENERATE_NEEDED_FALSE}"; then
17815 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"GENERATE_NEEDED\" was never defined.
17816 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&5
17817 82 jeremybenn
$as_echo "$as_me: error: conditional \"GENERATE_NEEDED\" was never defined.
17818 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&2;}
17819
   { (exit 1); exit 1; }; }
17820
fi
17821
if test -z "${DYNAMIC_EXECUTION_TRUE}" && test -z "${DYNAMIC_EXECUTION_FALSE}"; then
17822 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"DYNAMIC_EXECUTION\" was never defined.
17823 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&5
17824 82 jeremybenn
$as_echo "$as_me: error: conditional \"DYNAMIC_EXECUTION\" was never defined.
17825 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&2;}
17826
   { (exit 1); exit 1; }; }
17827
fi
17828
 
17829
: ${CONFIG_STATUS=./config.status}
17830 82 jeremybenn
ac_write_fail=0
17831 19 jeremybenn
ac_clean_files_save=$ac_clean_files
17832
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17833 82 jeremybenn
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17834
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17835
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17836 19 jeremybenn
#! $SHELL
17837
# Generated by $as_me.
17838
# Run this file to recreate the current configuration.
17839
# Compiler output produced by configure, useful for debugging
17840
# configure, is in config.log if it exists.
17841
 
17842
debug=false
17843
ac_cs_recheck=false
17844
ac_cs_silent=false
17845
SHELL=\${CONFIG_SHELL-$SHELL}
17846
_ACEOF
17847
 
17848 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17849 19 jeremybenn
## --------------------- ##
17850
## M4sh Initialization.  ##
17851
## --------------------- ##
17852
 
17853
# Be more Bourne compatible
17854
DUALCASE=1; export DUALCASE # for MKS sh
17855
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17856
  emulate sh
17857
  NULLCMD=:
17858 82 jeremybenn
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17859 19 jeremybenn
  # is contrary to our usage.  Disable this feature.
17860
  alias -g '${1+"$@"}'='"$@"'
17861
  setopt NO_GLOB_SUBST
17862
else
17863
  case `(set -o) 2>/dev/null` in
17864
  *posix*) set -o posix ;;
17865
esac
17866
 
17867
fi
17868
 
17869
 
17870
 
17871
 
17872
# PATH needs CR
17873
# Avoid depending upon Character Ranges.
17874
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17875
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17876
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17877
as_cr_digits='0123456789'
17878
as_cr_alnum=$as_cr_Letters$as_cr_digits
17879
 
17880 82 jeremybenn
as_nl='
17881
'
17882
export as_nl
17883
# Printing a long string crashes Solaris 7 /usr/bin/printf.
17884
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17885
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17886
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17887
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17888
  as_echo='printf %s\n'
17889
  as_echo_n='printf %s'
17890
else
17891
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17892
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17893
    as_echo_n='/usr/ucb/echo -n'
17894 19 jeremybenn
  else
17895 82 jeremybenn
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17896
    as_echo_n_body='eval
17897
      arg=$1;
17898
      case $arg in
17899
      *"$as_nl"*)
17900
        expr "X$arg" : "X\\(.*\\)$as_nl";
17901
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17902
      esac;
17903
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17904
    '
17905
    export as_echo_n_body
17906
    as_echo_n='sh -c $as_echo_n_body as_echo'
17907 19 jeremybenn
  fi
17908 82 jeremybenn
  export as_echo_body
17909
  as_echo='sh -c $as_echo_body as_echo'
17910 19 jeremybenn
fi
17911
 
17912 82 jeremybenn
# The user is always right.
17913
if test "${PATH_SEPARATOR+set}" != set; then
17914
  PATH_SEPARATOR=:
17915
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17916
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17917
      PATH_SEPARATOR=';'
17918
  }
17919
fi
17920
 
17921 19 jeremybenn
# Support unset when possible.
17922
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17923
  as_unset=unset
17924
else
17925
  as_unset=false
17926
fi
17927
 
17928
 
17929
# IFS
17930
# We need space, tab and new line, in precisely that order.  Quoting is
17931
# there to prevent editors from complaining about space-tab.
17932
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17933
# splitting by setting IFS to empty value.)
17934
IFS=" ""        $as_nl"
17935
 
17936
# Find who we are.  Look in the path if we contain no directory separator.
17937
case $0 in
17938
  *[\\/]* ) as_myself=$0 ;;
17939
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17940
for as_dir in $PATH
17941
do
17942
  IFS=$as_save_IFS
17943
  test -z "$as_dir" && as_dir=.
17944
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17945
done
17946
IFS=$as_save_IFS
17947
 
17948
     ;;
17949
esac
17950
# We did not find ourselves, most probably we were run as `sh COMMAND'
17951
# in which case we are not to be found in the path.
17952
if test "x$as_myself" = x; then
17953
  as_myself=$0
17954
fi
17955
if test ! -f "$as_myself"; then
17956 82 jeremybenn
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17957 19 jeremybenn
  { (exit 1); exit 1; }
17958
fi
17959
 
17960
# Work around bugs in pre-3.0 UWIN ksh.
17961
for as_var in ENV MAIL MAILPATH
17962
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17963
done
17964
PS1='$ '
17965
PS2='> '
17966
PS4='+ '
17967
 
17968
# NLS nuisances.
17969 82 jeremybenn
LC_ALL=C
17970
export LC_ALL
17971
LANGUAGE=C
17972
export LANGUAGE
17973 19 jeremybenn
 
17974
# Required to use basename.
17975
if expr a : '\(a\)' >/dev/null 2>&1 &&
17976
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17977
  as_expr=expr
17978
else
17979
  as_expr=false
17980
fi
17981
 
17982
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17983
  as_basename=basename
17984
else
17985
  as_basename=false
17986
fi
17987
 
17988
 
17989
# Name of the executable.
17990
as_me=`$as_basename -- "$0" ||
17991
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17992
         X"$0" : 'X\(//\)$' \| \
17993
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17994 82 jeremybenn
$as_echo X/"$0" |
17995 19 jeremybenn
    sed '/^.*\/\([^/][^/]*\)\/*$/{
17996
            s//\1/
17997
            q
17998
          }
17999
          /^X\/\(\/\/\)$/{
18000
            s//\1/
18001
            q
18002
          }
18003
          /^X\/\(\/\).*/{
18004
            s//\1/
18005
            q
18006
          }
18007
          s/.*/./; q'`
18008
 
18009
# CDPATH.
18010
$as_unset CDPATH
18011
 
18012
 
18013
 
18014
  as_lineno_1=$LINENO
18015
  as_lineno_2=$LINENO
18016
  test "x$as_lineno_1" != "x$as_lineno_2" &&
18017
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18018
 
18019
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18020
  # uniformly replaced by the line number.  The first 'sed' inserts a
18021
  # line-number line after each line using $LINENO; the second 'sed'
18022
  # does the real work.  The second script uses 'N' to pair each
18023
  # line-number line with the line containing $LINENO, and appends
18024
  # trailing '-' during substitution so that $LINENO is not a special
18025
  # case at line end.
18026
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18027
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
18028
  # E. McMahon (1931-1989) for sed's syntax.  :-)
18029
  sed -n '
18030
    p
18031
    /[$]LINENO/=
18032
  ' <$as_myself |
18033
    sed '
18034
      s/[$]LINENO.*/&-/
18035
      t lineno
18036
      b
18037
      :lineno
18038
      N
18039
      :loop
18040
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18041
      t loop
18042
      s/-\n.*//
18043
    ' >$as_me.lineno &&
18044
  chmod +x "$as_me.lineno" ||
18045 82 jeremybenn
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18046 19 jeremybenn
   { (exit 1); exit 1; }; }
18047
 
18048
  # Don't try to exec as it changes $[0], causing all sort of problems
18049
  # (the dirname of $[0] is not the place where we might find the
18050
  # original and so on.  Autoconf is especially sensitive to this).
18051
  . "./$as_me.lineno"
18052
  # Exit status is that of the last command.
18053
  exit
18054
}
18055
 
18056
 
18057
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18058
  as_dirname=dirname
18059
else
18060
  as_dirname=false
18061
fi
18062
 
18063
ECHO_C= ECHO_N= ECHO_T=
18064
case `echo -n x` in
18065
-n*)
18066
  case `echo 'x\c'` in
18067
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18068
  *)   ECHO_C='\c';;
18069
  esac;;
18070
*)
18071
  ECHO_N='-n';;
18072
esac
18073
if expr a : '\(a\)' >/dev/null 2>&1 &&
18074
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18075
  as_expr=expr
18076
else
18077
  as_expr=false
18078
fi
18079
 
18080
rm -f conf$$ conf$$.exe conf$$.file
18081
if test -d conf$$.dir; then
18082
  rm -f conf$$.dir/conf$$.file
18083
else
18084
  rm -f conf$$.dir
18085 82 jeremybenn
  mkdir conf$$.dir 2>/dev/null
18086 19 jeremybenn
fi
18087 82 jeremybenn
if (echo >conf$$.file) 2>/dev/null; then
18088
  if ln -s conf$$.file conf$$ 2>/dev/null; then
18089
    as_ln_s='ln -s'
18090
    # ... but there are two gotchas:
18091
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18092
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18093
    # In both cases, we have to default to `cp -p'.
18094
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18095
      as_ln_s='cp -p'
18096
  elif ln conf$$.file conf$$ 2>/dev/null; then
18097
    as_ln_s=ln
18098
  else
18099 19 jeremybenn
    as_ln_s='cp -p'
18100 82 jeremybenn
  fi
18101 19 jeremybenn
else
18102
  as_ln_s='cp -p'
18103
fi
18104
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18105
rmdir conf$$.dir 2>/dev/null
18106
 
18107
if mkdir -p . 2>/dev/null; then
18108
  as_mkdir_p=:
18109
else
18110
  test -d ./-p && rmdir ./-p
18111
  as_mkdir_p=false
18112
fi
18113
 
18114
if test -x / >/dev/null 2>&1; then
18115
  as_test_x='test -x'
18116
else
18117
  if ls -dL / >/dev/null 2>&1; then
18118
    as_ls_L_option=L
18119
  else
18120
    as_ls_L_option=
18121
  fi
18122
  as_test_x='
18123
    eval sh -c '\''
18124
      if test -d "$1"; then
18125 82 jeremybenn
        test -d "$1/.";
18126 19 jeremybenn
      else
18127
        case $1 in
18128 82 jeremybenn
        -*)set "./$1";;
18129 19 jeremybenn
        esac;
18130
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18131
        ???[sx]*):;;*)false;;esac;fi
18132
    '\'' sh
18133
  '
18134
fi
18135
as_executable_p=$as_test_x
18136
 
18137
# Sed expression to map a string onto a valid CPP name.
18138
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18139
 
18140
# Sed expression to map a string onto a valid variable name.
18141
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18142
 
18143
 
18144
exec 6>&1
18145
 
18146
# Save the log message, to keep $[0] and so on meaningful, and to
18147
# report actual input values of CONFIG_FILES etc. instead of their
18148
# values after options handling.
18149
ac_log="
18150 89 jeremybenn
This file was extended by or1ksim $as_me 2010-04-21, which was
18151 82 jeremybenn
generated by GNU Autoconf 2.63.  Invocation command line was
18152 19 jeremybenn
 
18153
  CONFIG_FILES    = $CONFIG_FILES
18154
  CONFIG_HEADERS  = $CONFIG_HEADERS
18155
  CONFIG_LINKS    = $CONFIG_LINKS
18156
  CONFIG_COMMANDS = $CONFIG_COMMANDS
18157
  $ $0 $@
18158
 
18159
on `(hostname || uname -n) 2>/dev/null | sed 1q`
18160
"
18161
 
18162
_ACEOF
18163
 
18164 82 jeremybenn
case $ac_config_files in *"
18165
"*) set x $ac_config_files; shift; ac_config_files=$*;;
18166
esac
18167
 
18168
case $ac_config_headers in *"
18169
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18170
esac
18171
 
18172
 
18173
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18174 19 jeremybenn
# Files that config.status was made for.
18175
config_files="$ac_config_files"
18176
config_headers="$ac_config_headers"
18177
config_commands="$ac_config_commands"
18178
 
18179
_ACEOF
18180
 
18181 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18182 19 jeremybenn
ac_cs_usage="\
18183
\`$as_me' instantiates files from templates according to the
18184
current configuration.
18185
 
18186 82 jeremybenn
Usage: $0 [OPTION]... [FILE]...
18187 19 jeremybenn
 
18188
  -h, --help       print this help, then exit
18189
  -V, --version    print version number and configuration settings, then exit
18190 82 jeremybenn
  -q, --quiet, --silent
18191
                   do not print progress messages
18192 19 jeremybenn
  -d, --debug      don't remove temporary files
18193
      --recheck    update $as_me by reconfiguring in the same conditions
18194 82 jeremybenn
      --file=FILE[:TEMPLATE]
18195
                   instantiate the configuration file FILE
18196
      --header=FILE[:TEMPLATE]
18197
                   instantiate the configuration header FILE
18198 19 jeremybenn
 
18199
Configuration files:
18200
$config_files
18201
 
18202
Configuration headers:
18203
$config_headers
18204
 
18205
Configuration commands:
18206
$config_commands
18207
 
18208
Report bugs to ."
18209
 
18210
_ACEOF
18211 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18212 19 jeremybenn
ac_cs_version="\\
18213 89 jeremybenn
or1ksim config.status 2010-04-21
18214 82 jeremybenn
configured by $0, generated by GNU Autoconf 2.63,
18215
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18216 19 jeremybenn
 
18217 82 jeremybenn
Copyright (C) 2008 Free Software Foundation, Inc.
18218 19 jeremybenn
This config.status script is free software; the Free Software Foundation
18219
gives unlimited permission to copy, distribute and modify it."
18220
 
18221
ac_pwd='$ac_pwd'
18222
srcdir='$srcdir'
18223
INSTALL='$INSTALL'
18224
MKDIR_P='$MKDIR_P'
18225 82 jeremybenn
AWK='$AWK'
18226
test -n "\$AWK" || AWK=awk
18227 19 jeremybenn
_ACEOF
18228
 
18229 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18230
# The default lists apply if the user does not specify any file.
18231 19 jeremybenn
ac_need_defaults=:
18232
while test $# != 0
18233
do
18234
  case $1 in
18235
  --*=*)
18236
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18237
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18238
    ac_shift=:
18239
    ;;
18240
  *)
18241
    ac_option=$1
18242
    ac_optarg=$2
18243
    ac_shift=shift
18244
    ;;
18245
  esac
18246
 
18247
  case $ac_option in
18248
  # Handling of the options.
18249
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18250
    ac_cs_recheck=: ;;
18251
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18252 82 jeremybenn
    $as_echo "$ac_cs_version"; exit ;;
18253 19 jeremybenn
  --debug | --debu | --deb | --de | --d | -d )
18254
    debug=: ;;
18255
  --file | --fil | --fi | --f )
18256
    $ac_shift
18257 82 jeremybenn
    case $ac_optarg in
18258
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18259
    esac
18260
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
18261 19 jeremybenn
    ac_need_defaults=false;;
18262
  --header | --heade | --head | --hea )
18263
    $ac_shift
18264 82 jeremybenn
    case $ac_optarg in
18265
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18266
    esac
18267
    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
18268 19 jeremybenn
    ac_need_defaults=false;;
18269
  --he | --h)
18270
    # Conflict between --help and --header
18271 82 jeremybenn
    { $as_echo "$as_me: error: ambiguous option: $1
18272 19 jeremybenn
Try \`$0 --help' for more information." >&2
18273
   { (exit 1); exit 1; }; };;
18274
  --help | --hel | -h )
18275 82 jeremybenn
    $as_echo "$ac_cs_usage"; exit ;;
18276 19 jeremybenn
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18277
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18278
    ac_cs_silent=: ;;
18279
 
18280
  # This is an error.
18281 82 jeremybenn
  -*) { $as_echo "$as_me: error: unrecognized option: $1
18282 19 jeremybenn
Try \`$0 --help' for more information." >&2
18283
   { (exit 1); exit 1; }; } ;;
18284
 
18285
  *) ac_config_targets="$ac_config_targets $1"
18286
     ac_need_defaults=false ;;
18287
 
18288
  esac
18289
  shift
18290
done
18291
 
18292
ac_configure_extra_args=
18293
 
18294
if $ac_cs_silent; then
18295
  exec 6>/dev/null
18296
  ac_configure_extra_args="$ac_configure_extra_args --silent"
18297
fi
18298
 
18299
_ACEOF
18300 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18301 19 jeremybenn
if \$ac_cs_recheck; then
18302 82 jeremybenn
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18303
  shift
18304
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18305
  CONFIG_SHELL='$SHELL'
18306 19 jeremybenn
  export CONFIG_SHELL
18307 82 jeremybenn
  exec "\$@"
18308 19 jeremybenn
fi
18309
 
18310
_ACEOF
18311 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18312 19 jeremybenn
exec 5>>config.log
18313
{
18314
  echo
18315
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18316
## Running $as_me. ##
18317
_ASBOX
18318 82 jeremybenn
  $as_echo "$ac_log"
18319 19 jeremybenn
} >&5
18320
 
18321
_ACEOF
18322 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18323 19 jeremybenn
#
18324
# INIT-COMMANDS
18325
#
18326 82 jeremybenn
 
18327
 
18328
# The HP-UX ksh and POSIX shell print the target directory to stdout
18329
# if CDPATH is set.
18330
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18331
 
18332
sed_quote_subst='$sed_quote_subst'
18333
double_quote_subst='$double_quote_subst'
18334
delay_variable_subst='$delay_variable_subst'
18335
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
18336
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
18337
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
18338
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
18339
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
18340
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
18341
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
18342
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
18343
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
18344
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
18345
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
18346
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
18347
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
18348
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
18349
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
18350
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
18351
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
18352
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
18353
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
18354
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
18355
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
18356
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
18357
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
18358
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
18359
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
18360
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
18361
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
18362
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18363
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
18364
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
18365
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
18366
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
18367
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18368
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
18369
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
18370
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18371
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18372
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18373
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
18374
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18375
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
18376
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
18377
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
18378
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
18379
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"`'
18380
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"`'
18381
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
18382
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
18383
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
18384
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
18385
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
18386
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
18387
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
18388
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
18389
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
18390
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
18391
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
18392
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
18393
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
18394
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
18395
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
18396
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
18397
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18398
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18399
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
18400
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
18401
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18402
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18403
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
18404
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18405
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18406
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18407
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18408
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18409
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18410
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
18411
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18412
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18413
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18414
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
18415
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
18416
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
18417
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
18418
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
18419
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18420
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
18421
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
18422
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
18423
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
18424
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
18425
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18426
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18427
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18428
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18429
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
18430
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
18431
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18432
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
18433
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
18434
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18435
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18436
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
18437
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18438
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
18439
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18440
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18441
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18442
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18443
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
18444
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
18445
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18446
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18447
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
18448
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
18449
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
18450
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
18451
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
18452
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
18453
 
18454
LTCC='$LTCC'
18455
LTCFLAGS='$LTCFLAGS'
18456
compiler='$compiler_DEFAULT'
18457
 
18458
# Quote evaled strings.
18459
for var in SED \
18460
GREP \
18461
EGREP \
18462
FGREP \
18463
LD \
18464
NM \
18465
LN_S \
18466
lt_SP2NL \
18467
lt_NL2SP \
18468
reload_flag \
18469
OBJDUMP \
18470
deplibs_check_method \
18471
file_magic_cmd \
18472
AR \
18473
AR_FLAGS \
18474
STRIP \
18475
RANLIB \
18476
CC \
18477
CFLAGS \
18478
compiler \
18479
lt_cv_sys_global_symbol_pipe \
18480
lt_cv_sys_global_symbol_to_cdecl \
18481
lt_cv_sys_global_symbol_to_c_name_address \
18482
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18483
SHELL \
18484
ECHO \
18485
lt_prog_compiler_no_builtin_flag \
18486
lt_prog_compiler_wl \
18487
lt_prog_compiler_pic \
18488
lt_prog_compiler_static \
18489
lt_cv_prog_compiler_c_o \
18490
need_locks \
18491
DSYMUTIL \
18492
NMEDIT \
18493
LIPO \
18494
OTOOL \
18495
OTOOL64 \
18496
shrext_cmds \
18497
export_dynamic_flag_spec \
18498
whole_archive_flag_spec \
18499
compiler_needs_object \
18500
with_gnu_ld \
18501
allow_undefined_flag \
18502
no_undefined_flag \
18503
hardcode_libdir_flag_spec \
18504
hardcode_libdir_flag_spec_ld \
18505
hardcode_libdir_separator \
18506
fix_srcfile_path \
18507
exclude_expsyms \
18508
include_expsyms \
18509
file_list_spec \
18510
variables_saved_for_relink \
18511
libname_spec \
18512
library_names_spec \
18513
soname_spec \
18514
finish_eval \
18515
old_striplib \
18516
striplib; do
18517
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18518
    *[\\\\\\\`\\"\\\$]*)
18519
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18520
      ;;
18521
    *)
18522
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18523
      ;;
18524
    esac
18525
done
18526
 
18527
# Double-quote double-evaled strings.
18528
for var in reload_cmds \
18529
old_postinstall_cmds \
18530
old_postuninstall_cmds \
18531
old_archive_cmds \
18532
extract_expsyms_cmds \
18533
old_archive_from_new_cmds \
18534
old_archive_from_expsyms_cmds \
18535
archive_cmds \
18536
archive_expsym_cmds \
18537
module_cmds \
18538
module_expsym_cmds \
18539
export_symbols_cmds \
18540
prelink_cmds \
18541
postinstall_cmds \
18542
postuninstall_cmds \
18543
finish_cmds \
18544
sys_lib_search_path_spec \
18545
sys_lib_dlsearch_path_spec; do
18546
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18547
    *[\\\\\\\`\\"\\\$]*)
18548
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18549
      ;;
18550
    *)
18551
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18552
      ;;
18553
    esac
18554
done
18555
 
18556
# Fix-up fallback echo if it was mangled by the above quoting rules.
18557
case \$lt_ECHO in
18558
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
18559
  ;;
18560
esac
18561
 
18562
ac_aux_dir='$ac_aux_dir'
18563
xsi_shell='$xsi_shell'
18564
lt_shell_append='$lt_shell_append'
18565
 
18566
# See if we are running on zsh, and set the options which allow our
18567
# commands through without removal of \ escapes INIT.
18568
if test -n "\${ZSH_VERSION+set}" ; then
18569
   setopt NO_GLOB_SUBST
18570
fi
18571
 
18572
 
18573
    PACKAGE='$PACKAGE'
18574
    VERSION='$VERSION'
18575
    TIMESTAMP='$TIMESTAMP'
18576
    RM='$RM'
18577
    ofile='$ofile'
18578
 
18579
 
18580
 
18581 19 jeremybenn
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18582
 
18583
_ACEOF
18584
 
18585 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18586 19 jeremybenn
 
18587
# Handling of arguments.
18588
for ac_config_target in $ac_config_targets
18589
do
18590
  case $ac_config_target in
18591 82 jeremybenn
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18592 19 jeremybenn
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18593
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18594
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18595
    "argtable2/Makefile") CONFIG_FILES="$CONFIG_FILES argtable2/Makefile" ;;
18596
    "bpb/Makefile") CONFIG_FILES="$CONFIG_FILES bpb/Makefile" ;;
18597
    "cache/Makefile") CONFIG_FILES="$CONFIG_FILES cache/Makefile" ;;
18598
    "cpu/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/Makefile" ;;
18599
    "cpu/common/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/common/Makefile" ;;
18600
    "cpu/or1k/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or1k/Makefile" ;;
18601
    "cuc/Makefile") CONFIG_FILES="$CONFIG_FILES cuc/Makefile" ;;
18602
    "debug/Makefile") CONFIG_FILES="$CONFIG_FILES debug/Makefile" ;;
18603
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18604
    "mmu/Makefile") CONFIG_FILES="$CONFIG_FILES mmu/Makefile" ;;
18605
    "peripheral/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/Makefile" ;;
18606
    "peripheral/channels/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/channels/Makefile" ;;
18607
    "pm/Makefile") CONFIG_FILES="$CONFIG_FILES pm/Makefile" ;;
18608
    "pic/Makefile") CONFIG_FILES="$CONFIG_FILES pic/Makefile" ;;
18609 90 jeremybenn
    "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
18610
    "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
18611
    "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18612
    "testsuite/config/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/config/Makefile" ;;
18613
    "testsuite/lib/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/lib/Makefile" ;;
18614
    "testsuite/libsim.tests/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/libsim.tests/Makefile" ;;
18615
    "testsuite/or1ksim.tests/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/or1ksim.tests/Makefile" ;;
18616
    "testsuite/test-code/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/Makefile" ;;
18617
    "testsuite/test-code/lib-iftest/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-iftest/Makefile" ;;
18618
    "tick/Makefile") CONFIG_FILES="$CONFIG_FILES tick/Makefile" ;;
18619 19 jeremybenn
    "vapi/Makefile") CONFIG_FILES="$CONFIG_FILES vapi/Makefile" ;;
18620
    "cpu/dlx/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/dlx/Makefile" ;;
18621
    "cpu/or32/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or32/Makefile" ;;
18622
 
18623 82 jeremybenn
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18624
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18625 19 jeremybenn
   { (exit 1); exit 1; }; };;
18626
  esac
18627
done
18628
 
18629
 
18630
# If the user did not use the arguments to specify the items to instantiate,
18631
# then the envvar interface is used.  Set only those that are not.
18632
# We use the long form for the default assignment because of an extremely
18633
# bizarre bug on SunOS 4.1.3.
18634
if $ac_need_defaults; then
18635
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18636
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18637
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18638
fi
18639
 
18640
# Have a temporary directory for convenience.  Make it in the build tree
18641
# simply because there is no reason against having it here, and in addition,
18642
# creating and moving files from /tmp can sometimes cause problems.
18643
# Hook for its removal unless debugging.
18644
# Note that there is a small window in which the directory will not be cleaned:
18645
# after its creation but before its name has been assigned to `$tmp'.
18646
$debug ||
18647
{
18648
  tmp=
18649
  trap 'exit_status=$?
18650
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18651
' 0
18652
  trap '{ (exit 1); exit 1; }' 1 2 13 15
18653
}
18654
# Create a (secure) tmp directory for tmp files.
18655
 
18656
{
18657
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18658
  test -n "$tmp" && test -d "$tmp"
18659
}  ||
18660
{
18661
  tmp=./conf$$-$RANDOM
18662
  (umask 077 && mkdir "$tmp")
18663
} ||
18664
{
18665 82 jeremybenn
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
18666 19 jeremybenn
   { (exit 1); exit 1; }
18667
}
18668
 
18669 82 jeremybenn
# Set up the scripts for CONFIG_FILES section.
18670
# No need to generate them if there are no CONFIG_FILES.
18671
# This happens for instance with `./config.status config.h'.
18672 19 jeremybenn
if test -n "$CONFIG_FILES"; then
18673
 
18674 82 jeremybenn
 
18675
ac_cr='
'
18676
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
18677
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18678
  ac_cs_awk_cr='\\r'
18679
else
18680
  ac_cs_awk_cr=$ac_cr
18681
fi
18682
18683
 
18684
_ACEOF
18685 19 jeremybenn
18686
 
18687
 
18688 82 jeremybenn
  echo "cat >conf$$subs.awk <<_ACEOF" &&
18689
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18690
  echo "_ACEOF"
18691
} >conf$$subs.sh ||
18692
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18693
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18694
   { (exit 1); exit 1; }; }
18695
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18696
ac_delim='%!_!# '
18697 19 jeremybenn
for ac_last_try in false false false false false :; do
18698
  . ./conf$$subs.sh ||
18699 82 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18700
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18701
   { (exit 1); exit 1; }; }
18702
18703 19 jeremybenn
 
18704 82 jeremybenn
  if test $ac_delim_n = $ac_delim_num; then
18705
    break
18706 19 jeremybenn
  elif $ac_last_try; then
18707
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18708 82 jeremybenn
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18709
   { (exit 1); exit 1; }; }
18710 19 jeremybenn
  else
18711
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18712
  fi
18713
done
18714
rm -f conf$$subs.sh
18715 82 jeremybenn
18716 19 jeremybenn
 
18717 82 jeremybenn
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18718
_ACEOF
18719 19 jeremybenn
sed -n '
18720 82 jeremybenn
h
18721
s/^/S["/; s/!.*/"]=/
18722
p
18723
g
18724
s/^[^!]*!//
18725
:repl
18726
t repl
18727
s/'"$ac_delim"'$//
18728
t delim
18729
:nl
18730
h
18731
s/\(.\{148\}\).*/\1/
18732
t more1
18733
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18734
p
18735
n
18736
b repl
18737
:more1
18738
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18739
p
18740
g
18741
s/.\{148\}//
18742
t nl
18743
:delim
18744
h
18745
s/\(.\{148\}\).*/\1/
18746
t more2
18747
s/["\\]/\\&/g; s/^/"/; s/$/"/
18748
p
18749
b
18750
:more2
18751
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18752
p
18753
g
18754
s/.\{148\}//
18755
t delim
18756
' 
18757
/^[^""]/{
18758
  N
18759
  s/\n//
18760
}
18761
' >>$CONFIG_STATUS || ac_write_fail=1
18762
rm -f conf$$subs.awk
18763
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18764
_ACAWK
18765
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18766
  for (key in S) S_is_set[key] = 1
18767
  FS = ""
18768
18769 19 jeremybenn
 
18770 82 jeremybenn
{
18771
  line = $ 0
18772
  nfields = split(line, field, "@")
18773
  substed = 0
18774
  len = length(field[1])
18775
  for (i = 2; i < nfields; i++) {
18776
    key = field[i]
18777
    keylen = length(key)
18778
    if (S_is_set[key]) {
18779
      value = S[key]
18780
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18781
      len += length(value) + length(field[++i])
18782
      substed = 1
18783
    } else
18784
      len += 1 + keylen
18785
  }
18786
18787 19 jeremybenn
 
18788 82 jeremybenn
}
18789
18790
 
18791
_ACEOF
18792 19 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18793 82 jeremybenn
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18794
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18795
else
18796
  cat
18797
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18798
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
18799
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
18800
   { (exit 1); exit 1; }; }
18801 19 jeremybenn
_ACEOF
18802
18803
 
18804
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18805
# trailing colons and then remove the whole line if VPATH becomes empty
18806
# (actually we leave an empty line to preserve line numbers).
18807
if test "x$srcdir" = x.; then
18808
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
18809
s/:*\$(srcdir):*/:/
18810
s/:*\${srcdir}:*/:/
18811
s/:*@srcdir@:*/:/
18812
s/^\([^=]*=[     ]*\):*/\1/
18813
s/:*$//
18814
s/^[^=]*=[       ]*$//
18815
}'
18816
fi
18817
18818
 
18819 82 jeremybenn
fi # test -n "$CONFIG_FILES"
18820 19 jeremybenn
18821
 
18822 82 jeremybenn
# No need to generate them if there are no CONFIG_HEADERS.
18823
# This happens for instance with `./config.status Makefile'.
18824
if test -n "$CONFIG_HEADERS"; then
18825
cat >"$tmp/defines.awk" <<\_ACAWK ||
18826
BEGIN {
18827
_ACEOF
18828
18829 19 jeremybenn
 
18830 82 jeremybenn
# here-document in config.status, that substitutes the proper values into
18831
# config.h.in to produce config.h.
18832
18833
 
18834
# handling of long lines.
18835
ac_delim='%!_!# '
18836
for ac_last_try in false false :; do
18837
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18838
  if test -z "$ac_t"; then
18839
    break
18840
  elif $ac_last_try; then
18841
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
18842
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
18843
   { (exit 1); exit 1; }; }
18844
  else
18845
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18846
  fi
18847
done
18848
18849
 
18850
# likewise P contains macro parameters if any.  Preserve backslash
18851
# newline sequences.
18852
18853
 
18854
sed -n '
18855
s/.\{148\}/&'"$ac_delim"'/g
18856
t rset
18857
:rset
18858
s/^[     ]*#[    ]*define[       ][      ]*/ /
18859
t def
18860
d
18861
:def
18862
s/\\$//
18863
t bsnl
18864
s/["\\]/\\&/g
18865
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18866
D["\1"]=" \3"/p
18867
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18868
d
18869
:bsnl
18870
s/["\\]/\\&/g
18871
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18872
D["\1"]=" \3\\\\\\n"\\/p
18873
t cont
18874
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18875
t cont
18876
d
18877
:cont
18878
n
18879
s/.\{148\}/&'"$ac_delim"'/g
18880
t clear
18881
:clear
18882
s/\\$//
18883
t bsnlc
18884
s/["\\]/\\&/g; s/^/"/; s/$/"/p
18885
d
18886
:bsnlc
18887
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18888
b cont
18889
' 
18890
s/'"$ac_delim"'/"\\\
18891
"/g' >>$CONFIG_STATUS || ac_write_fail=1
18892
18893
 
18894
  for (key in D) D_is_set[key] = 1
18895
  FS = ""
18896
}
18897
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18898
  line = \$ 0
18899
  split(line, arg, " ")
18900
  if (arg[1] == "#") {
18901
    defundef = arg[2]
18902
    mac1 = arg[3]
18903
  } else {
18904
    defundef = substr(arg[1], 2)
18905
    mac1 = arg[2]
18906
  }
18907
  split(mac1, mac2, "(") #)
18908
  macro = mac2[1]
18909
  prefix = substr(line, 1, index(line, defundef) - 1)
18910
  if (D_is_set[macro]) {
18911
    # Preserve the white space surrounding the "#".
18912
    print prefix "define", macro P[macro] D[macro]
18913
    next
18914
  } else {
18915
    # Replace #undef with comments.  This is necessary, for example,
18916
    # in the case of _POSIX_SOURCE, which is predefined and required
18917
    # on some systems where configure will not decide to define it.
18918
    if (defundef == "undef") {
18919
      print "/*", prefix defundef, macro, "*/"
18920
      next
18921
    }
18922
  }
18923
}
18924
{ print }
18925
_ACAWK
18926
_ACEOF
18927
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18928
  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
18929
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
18930
   { (exit 1); exit 1; }; }
18931
fi # test -n "$CONFIG_HEADERS"
18932
18933
 
18934
 
18935
shift
18936
for ac_tag
18937
do
18938 19 jeremybenn
  case $ac_tag in
18939
  :[FHLC]) ac_mode=$ac_tag; continue;;
18940
  esac
18941
  case $ac_mode$ac_tag in
18942
  :[FHL]*:*);;
18943
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
18944 82 jeremybenn
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
18945
   { (exit 1); exit 1; }; };;
18946 19 jeremybenn
  :[FH]-) ac_tag=-:-;;
18947
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18948
  esac
18949
  ac_save_IFS=$IFS
18950
  IFS=:
18951
  set x $ac_tag
18952
  IFS=$ac_save_IFS
18953
  shift
18954
  ac_file=$1
18955
  shift
18956
18957
 
18958
  :L) ac_source=$1;;
18959
  :[FH])
18960
    ac_file_inputs=
18961
    for ac_f
18962
    do
18963
      case $ac_f in
18964
      -) ac_f="$tmp/stdin";;
18965
      *) # Look for the file first in the build tree, then in the source tree
18966
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
18967
         # because $ac_f cannot contain `:'.
18968
         test -f "$ac_f" ||
18969
           case $ac_f in
18970
           [\\/$]*) false;;
18971
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18972
           esac ||
18973
           { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18974 82 jeremybenn
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18975
   { (exit 1); exit 1; }; };;
18976 19 jeremybenn
      esac
18977
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18978 82 jeremybenn
      ac_file_inputs="$ac_file_inputs '$ac_f'"
18979
    done
18980 19 jeremybenn
18981
 
18982
    # use $as_me), people would be surprised to read:
18983
    #    /* config.h.  Generated by config.status.  */
18984
    configure_input='Generated from '`
18985 82 jeremybenn
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18986
        `' by configure.'
18987
    if test x"$ac_file" != x-; then
18988 19 jeremybenn
      configure_input="$ac_file.  $configure_input"
18989
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
18990 82 jeremybenn
$as_echo "$as_me: creating $ac_file" >&6;}
18991
    fi
18992 19 jeremybenn
    # Neutralize special characters interpreted by sed in replacement strings.
18993 82 jeremybenn
    case $configure_input in #(
18994
    *\&* | *\|* | *\\* )
18995
       ac_sed_conf_input=`$as_echo "$configure_input" |
18996
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18997
    *) ac_sed_conf_input=$configure_input;;
18998
    esac
18999
19000 19 jeremybenn
 
19001
    *:-:* | *:-) cat >"$tmp/stdin" \
19002 82 jeremybenn
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19003
$as_echo "$as_me: error: could not create $ac_file" >&2;}
19004
   { (exit 1); exit 1; }; } ;;
19005
    esac
19006 19 jeremybenn
    ;;
19007
  esac
19008
19009
 
19010
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19011
         X"$ac_file" : 'X\(//\)[^/]' \| \
19012
         X"$ac_file" : 'X\(//\)$' \| \
19013
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19014
$as_echo X"$ac_file" |
19015 82 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19016 19 jeremybenn
            s//\1/
19017
            q
19018
          }
19019
          /^X\(\/\/\)[^/].*/{
19020
            s//\1/
19021
            q
19022
          }
19023
          /^X\(\/\/\)$/{
19024
            s//\1/
19025
            q
19026
          }
19027
          /^X\(\/\).*/{
19028
            s//\1/
19029
            q
19030
          }
19031
          s/.*/./; q'`
19032
  { as_dir="$ac_dir"
19033
  case $as_dir in #(
19034
  -*) as_dir=./$as_dir;;
19035
  esac
19036
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19037
    as_dirs=
19038
    while :; do
19039
      case $as_dir in #(
19040
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19041 82 jeremybenn
      *) as_qdir=$as_dir;;
19042 19 jeremybenn
      esac
19043
      as_dirs="'$as_qdir' $as_dirs"
19044
      as_dir=`$as_dirname -- "$as_dir" ||
19045
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19046
         X"$as_dir" : 'X\(//\)[^/]' \| \
19047
         X"$as_dir" : 'X\(//\)$' \| \
19048
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19049
$as_echo X"$as_dir" |
19050 82 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19051 19 jeremybenn
            s//\1/
19052
            q
19053
          }
19054
          /^X\(\/\/\)[^/].*/{
19055
            s//\1/
19056
            q
19057
          }
19058
          /^X\(\/\/\)$/{
19059
            s//\1/
19060
            q
19061
          }
19062
          /^X\(\/\).*/{
19063
            s//\1/
19064
            q
19065
          }
19066
          s/.*/./; q'`
19067
      test -d "$as_dir" && break
19068
    done
19069
    test -z "$as_dirs" || eval "mkdir $as_dirs"
19070
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19071 82 jeremybenn
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19072
   { (exit 1); exit 1; }; }; }
19073 19 jeremybenn
  ac_builddir=.
19074
19075
 
19076
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19077
*)
19078
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19079 82 jeremybenn
  # A ".." for each directory in $ac_dir_suffix.
19080 19 jeremybenn
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19081 82 jeremybenn
  case $ac_top_builddir_sub in
19082 19 jeremybenn
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19083
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19084
  esac ;;
19085
esac
19086
ac_abs_top_builddir=$ac_pwd
19087
ac_abs_builddir=$ac_pwd$ac_dir_suffix
19088
# for backward compatibility:
19089
ac_top_builddir=$ac_top_build_prefix
19090
19091
 
19092
  .)  # We are building in place.
19093
    ac_srcdir=.
19094
    ac_top_srcdir=$ac_top_builddir_sub
19095
    ac_abs_top_srcdir=$ac_pwd ;;
19096
  [\\/]* | ?:[\\/]* )  # Absolute name.
19097
    ac_srcdir=$srcdir$ac_dir_suffix;
19098
    ac_top_srcdir=$srcdir
19099
    ac_abs_top_srcdir=$srcdir ;;
19100
  *) # Relative name.
19101
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19102
    ac_top_srcdir=$ac_top_build_prefix$srcdir
19103
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19104
esac
19105
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19106
19107
 
19108
 
19109
  :F)
19110
  #
19111
  # CONFIG_FILE
19112
  #
19113
19114
 
19115
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19116
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19117
  esac
19118
  ac_MKDIR_P=$MKDIR_P
19119
  case $MKDIR_P in
19120
  [\\/$]* | ?:[\\/]* ) ;;
19121
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19122
  esac
19123
_ACEOF
19124
19125
 
19126 82 jeremybenn
# If the template does not know about datarootdir, expand it.
19127 19 jeremybenn
# FIXME: This hack should be removed a few years after 2.60.
19128
ac_datarootdir_hack=; ac_datarootdir_seen=
19129
19130
 
19131 82 jeremybenn
/datarootdir/ {
19132
  p
19133 19 jeremybenn
  q
19134
}
19135
/@datadir@/p
19136
/@docdir@/p
19137
/@infodir@/p
19138
/@localedir@/p
19139
/@mandir@/p
19140
'
19141 82 jeremybenn
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19142
*datarootdir*) ac_datarootdir_seen=yes;;
19143 19 jeremybenn
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19144
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19145 82 jeremybenn
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19146
_ACEOF
19147 19 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19148 82 jeremybenn
  ac_datarootdir_hack='
19149 19 jeremybenn
  s&@datadir@&$datadir&g
19150
  s&@docdir@&$docdir&g
19151
  s&@infodir@&$infodir&g
19152
  s&@localedir@&$localedir&g
19153
  s&@mandir@&$mandir&g
19154
    s&\\\${datarootdir}&$datarootdir&g' ;;
19155
esac
19156
_ACEOF
19157
19158
 
19159
# Shell code in configure.ac might set extrasub.
19160
# FIXME: do we really want to maintain this feature?
19161
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19162 82 jeremybenn
ac_sed_extra="$ac_vpsub
19163
$extrasub
19164 19 jeremybenn
_ACEOF
19165
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19166 82 jeremybenn
:t
19167 19 jeremybenn
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19168
s|@configure_input@|$ac_sed_conf_input|;t t
19169 82 jeremybenn
s&@top_builddir@&$ac_top_builddir_sub&;t t
19170 19 jeremybenn
s&@top_build_prefix@&$ac_top_build_prefix&;t t
19171 82 jeremybenn
s&@srcdir@&$ac_srcdir&;t t
19172 19 jeremybenn
s&@abs_srcdir@&$ac_abs_srcdir&;t t
19173
s&@top_srcdir@&$ac_top_srcdir&;t t
19174
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19175
s&@builddir@&$ac_builddir&;t t
19176
s&@abs_builddir@&$ac_abs_builddir&;t t
19177
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19178
s&@INSTALL@&$ac_INSTALL&;t t
19179
s&@MKDIR_P@&$ac_MKDIR_P&;t t
19180
$ac_datarootdir_hack
19181
"
19182 82 jeremybenn
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19183
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19184
$as_echo "$as_me: error: could not create $ac_file" >&2;}
19185
   { (exit 1); exit 1; }; }
19186
19187 19 jeremybenn
 
19188
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19189
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19190
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19191 82 jeremybenn
which seems to be undefined.  Please make sure it is defined." >&5
19192 19 jeremybenn
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19193 82 jeremybenn
which seems to be undefined.  Please make sure it is defined." >&2;}
19194 19 jeremybenn
19195
 
19196
  case $ac_file in
19197
  -) cat "$tmp/out" && rm -f "$tmp/out";;
19198 82 jeremybenn
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19199
  esac \
19200
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19201
$as_echo "$as_me: error: could not create $ac_file" >&2;}
19202
   { (exit 1); exit 1; }; }
19203
 ;;
19204 19 jeremybenn
  :H)
19205
  #
19206
  # CONFIG_HEADER
19207
  #
19208
  if test x"$ac_file" != x-; then
19209
    {
19210 82 jeremybenn
      $as_echo "/* $configure_input  */" \
19211
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19212
    } >"$tmp/config.h" \
19213
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19214
$as_echo "$as_me: error: could not create $ac_file" >&2;}
19215
   { (exit 1); exit 1; }; }
19216
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19217
      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19218
$as_echo "$as_me: $ac_file is unchanged" >&6;}
19219
    else
19220 19 jeremybenn
      rm -f "$ac_file"
19221 82 jeremybenn
      mv "$tmp/config.h" "$ac_file" \
19222
        || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19223
$as_echo "$as_me: error: could not create $ac_file" >&2;}
19224
   { (exit 1); exit 1; }; }
19225
    fi
19226 19 jeremybenn
  else
19227
    $as_echo "/* $configure_input  */" \
19228 82 jeremybenn
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19229
      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
19230
$as_echo "$as_me: error: could not create -" >&2;}
19231
   { (exit 1); exit 1; }; }
19232
  fi
19233 19 jeremybenn
# Compute "$ac_file"'s index in $config_headers.
19234 82 jeremybenn
_am_arg="$ac_file"
19235
_am_stamp_count=1
19236 19 jeremybenn
for _am_header in $config_headers :; do
19237
  case $_am_header in
19238
    $_am_arg | $_am_arg:* )
19239
      break ;;
19240
    * )
19241
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19242
  esac
19243
done
19244
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19245
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19246
         X"$_am_arg" : 'X\(//\)[^/]' \| \
19247
         X"$_am_arg" : 'X\(//\)$' \| \
19248
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19249
$as_echo X"$_am_arg" |
19250 82 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19251 19 jeremybenn
            s//\1/
19252
            q
19253
          }
19254
          /^X\(\/\/\)[^/].*/{
19255
            s//\1/
19256
            q
19257
          }
19258
          /^X\(\/\/\)$/{
19259
            s//\1/
19260
            q
19261
          }
19262
          /^X\(\/\).*/{
19263
            s//\1/
19264
            q
19265
          }
19266
          s/.*/./; q'`/stamp-h$_am_stamp_count
19267
 ;;
19268
19269
 
19270 82 jeremybenn
$as_echo "$as_me: executing $ac_file commands" >&6;}
19271
 ;;
19272 19 jeremybenn
  esac
19273
19274
 
19275
 
19276
    "libtool":C)
19277 82 jeremybenn
19278
 
19279
    # commands through without removal of \ escapes.
19280
    if test -n "${ZSH_VERSION+set}" ; then
19281
      setopt NO_GLOB_SUBST
19282
    fi
19283
19284
 
19285
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19286
    $RM "$cfgfile"
19287
19288
 
19289
#! $SHELL
19290
19291
 
19292
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19293
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19294
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19295
#
19296
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19297
#                 2006, 2007, 2008 Free Software Foundation, Inc.
19298
#   Written by Gordon Matzigkeit, 1996
19299
#
19300
#   This file is part of GNU Libtool.
19301
#
19302
# GNU Libtool is free software; you can redistribute it and/or
19303
# modify it under the terms of the GNU General Public License as
19304
# published by the Free Software Foundation; either version 2 of
19305
# the License, or (at your option) any later version.
19306
#
19307
# As a special exception to the GNU General Public License,
19308
# if you distribute this file as part of a program or library that
19309
# is built using GNU Libtool, you may include this file under the
19310
# same distribution terms that you use for the rest of that program.
19311
#
19312
# GNU Libtool is distributed in the hope that it will be useful,
19313
# but WITHOUT ANY WARRANTY; without even the implied warranty of
19314
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19315
# GNU General Public License for more details.
19316
#
19317
# You should have received a copy of the GNU General Public License
19318
# along with GNU Libtool; see the file COPYING.  If not, a copy
19319
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19320
# obtained by writing to the Free Software Foundation, Inc.,
19321
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19322
19323
 
19324
 
19325
available_tags=""
19326
19327
 
19328
19329
 
19330
macro_version=$macro_version
19331
macro_revision=$macro_revision
19332
19333
 
19334
build_libtool_libs=$enable_shared
19335
19336
 
19337
build_old_libs=$enable_static
19338
19339
 
19340
pic_mode=$pic_mode
19341
19342
 
19343
fast_install=$enable_fast_install
19344
19345
 
19346
host_alias=$host_alias
19347
host=$host
19348
host_os=$host_os
19349
19350
 
19351
build_alias=$build_alias
19352
build=$build
19353
build_os=$build_os
19354
19355
 
19356
SED=$lt_SED
19357
19358
 
19359
Xsed="\$SED -e 1s/^X//"
19360
19361
 
19362
GREP=$lt_GREP
19363
19364
 
19365
EGREP=$lt_EGREP
19366
19367
 
19368
FGREP=$lt_FGREP
19369
19370
 
19371
NM=$lt_NM
19372
19373
 
19374
LN_S=$lt_LN_S
19375
19376
 
19377
max_cmd_len=$max_cmd_len
19378
19379
 
19380
objext=$ac_objext
19381
19382
 
19383
exeext=$exeext
19384
19385
 
19386
lt_unset=$lt_unset
19387
19388
 
19389
SP2NL=$lt_lt_SP2NL
19390
19391
 
19392
NL2SP=$lt_lt_NL2SP
19393
19394
 
19395
reload_flag=$lt_reload_flag
19396
reload_cmds=$lt_reload_cmds
19397
19398
 
19399
OBJDUMP=$lt_OBJDUMP
19400
19401
 
19402
deplibs_check_method=$lt_deplibs_check_method
19403
19404
 
19405
file_magic_cmd=$lt_file_magic_cmd
19406
19407
 
19408
AR=$lt_AR
19409
AR_FLAGS=$lt_AR_FLAGS
19410
19411
 
19412
STRIP=$lt_STRIP
19413
19414
 
19415
RANLIB=$lt_RANLIB
19416
old_postinstall_cmds=$lt_old_postinstall_cmds
19417
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19418
19419
 
19420
LTCC=$lt_CC
19421
19422
 
19423
LTCFLAGS=$lt_CFLAGS
19424
19425
 
19426
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19427
19428
 
19429
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19430
19431
 
19432
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19433
19434
 
19435
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19436
19437
 
19438
objdir=$objdir
19439
19440
 
19441
SHELL=$lt_SHELL
19442
19443
 
19444
ECHO=$lt_ECHO
19445
19446
 
19447
MAGIC_CMD=$MAGIC_CMD
19448
19449
 
19450
need_locks=$lt_need_locks
19451
19452
 
19453
DSYMUTIL=$lt_DSYMUTIL
19454
19455
 
19456
NMEDIT=$lt_NMEDIT
19457
19458
 
19459
LIPO=$lt_LIPO
19460
19461
 
19462
OTOOL=$lt_OTOOL
19463
19464
 
19465
OTOOL64=$lt_OTOOL64
19466
19467
 
19468
libext=$libext
19469
19470
 
19471
shrext_cmds=$lt_shrext_cmds
19472
19473
 
19474
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19475
19476
 
19477
# restored at link time.
19478
variables_saved_for_relink=$lt_variables_saved_for_relink
19479
19480
 
19481
need_lib_prefix=$need_lib_prefix
19482
19483
 
19484
need_version=$need_version
19485
19486
 
19487
version_type=$version_type
19488
19489
 
19490
runpath_var=$runpath_var
19491
19492
 
19493
shlibpath_var=$shlibpath_var
19494
19495
 
19496
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19497
19498
 
19499
libname_spec=$lt_libname_spec
19500
19501
 
19502
# The last name is the one that the linker finds with -lNAME
19503
library_names_spec=$lt_library_names_spec
19504
19505
 
19506
soname_spec=$lt_soname_spec
19507
19508
 
19509
postinstall_cmds=$lt_postinstall_cmds
19510
19511
 
19512
postuninstall_cmds=$lt_postuninstall_cmds
19513
19514
 
19515
finish_cmds=$lt_finish_cmds
19516
19517
 
19518
# not shown.
19519
finish_eval=$lt_finish_eval
19520
19521
 
19522
hardcode_into_libs=$hardcode_into_libs
19523
19524
 
19525
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19526
19527
 
19528
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19529
19530
 
19531
dlopen_support=$enable_dlopen
19532
19533
 
19534
dlopen_self=$enable_dlopen_self
19535
19536
 
19537
dlopen_self_static=$enable_dlopen_self_static
19538
19539
 
19540
old_striplib=$lt_old_striplib
19541
striplib=$lt_striplib
19542
19543
 
19544
 
19545
LD=$lt_LD
19546
19547
 
19548
old_archive_cmds=$lt_old_archive_cmds
19549
19550
 
19551
CC=$lt_compiler
19552
19553
 
19554
with_gcc=$GCC
19555
19556
 
19557
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19558
19559
 
19560
wl=$lt_lt_prog_compiler_wl
19561
19562
 
19563
pic_flag=$lt_lt_prog_compiler_pic
19564
19565
 
19566
link_static_flag=$lt_lt_prog_compiler_static
19567
19568
 
19569
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19570
19571
 
19572
build_libtool_need_lc=$archive_cmds_need_lc
19573
19574
 
19575
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19576
19577
 
19578
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19579
19580
 
19581
whole_archive_flag_spec=$lt_whole_archive_flag_spec
19582
19583
 
19584
compiler_needs_object=$lt_compiler_needs_object
19585
19586
 
19587
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19588
19589
 
19590
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19591
19592
 
19593
archive_cmds=$lt_archive_cmds
19594
archive_expsym_cmds=$lt_archive_expsym_cmds
19595
19596
 
19597
# a shared archive.
19598
module_cmds=$lt_module_cmds
19599
module_expsym_cmds=$lt_module_expsym_cmds
19600
19601
 
19602
with_gnu_ld=$lt_with_gnu_ld
19603
19604
 
19605
allow_undefined_flag=$lt_allow_undefined_flag
19606
19607
 
19608
no_undefined_flag=$lt_no_undefined_flag
19609
19610
 
19611
# This must work even if \$libdir does not exist
19612
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19613
19614
 
19615
# during linking.  This must work even if \$libdir does not exist.
19616
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19617
19618
 
19619
hardcode_libdir_separator=$lt_hardcode_libdir_separator
19620
19621
 
19622
# DIR into the resulting binary.
19623
hardcode_direct=$hardcode_direct
19624
19625
 
19626
# DIR into the resulting binary and the resulting library dependency is
19627
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19628
# library is relocated.
19629
hardcode_direct_absolute=$hardcode_direct_absolute
19630
19631
 
19632
# into the resulting binary.
19633
hardcode_minus_L=$hardcode_minus_L
19634
19635
 
19636
# into the resulting binary.
19637
hardcode_shlibpath_var=$hardcode_shlibpath_var
19638
19639
 
19640
# into the library and all subsequent libraries and executables linked
19641
# against it.
19642
hardcode_automatic=$hardcode_automatic
19643
19644
 
19645
# to runtime path list.
19646
inherit_rpath=$inherit_rpath
19647
19648
 
19649
link_all_deplibs=$link_all_deplibs
19650
19651
 
19652
fix_srcfile_path=$lt_fix_srcfile_path
19653
19654
 
19655
always_export_symbols=$always_export_symbols
19656
19657
 
19658
export_symbols_cmds=$lt_export_symbols_cmds
19659
19660
 
19661
exclude_expsyms=$lt_exclude_expsyms
19662
19663
 
19664
include_expsyms=$lt_include_expsyms
19665
19666
 
19667
prelink_cmds=$lt_prelink_cmds
19668
19669
 
19670
file_list_spec=$lt_file_list_spec
19671
19672
 
19673
hardcode_action=$hardcode_action
19674
19675
 
19676
19677
 
19678
19679
 
19680
  aix3*)
19681
    cat <<\_LT_EOF >> "$cfgfile"
19682
# AIX sometimes has problems with the GCC collect2 program.  For some
19683
# reason, if we set the COLLECT_NAMES environment variable, the problems
19684
# vanish in a puff of smoke.
19685
if test "X${COLLECT_NAMES+set}" != Xset; then
19686
  COLLECT_NAMES=
19687
  export COLLECT_NAMES
19688
fi
19689
_LT_EOF
19690
    ;;
19691
  esac
19692
19693
 
19694
 
19695
19696
 
19697
 
19698
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19699
  # text mode, it properly converts lines to CR/LF.  This bash problem
19700
  # is reportedly fixed, but why not run on old versions too?
19701
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19702
    || (rm -f "$cfgfile"; exit 1)
19703
19704
 
19705
  yes)
19706
    cat << \_LT_EOF >> "$cfgfile"
19707
19708
 
19709
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19710
# otherwise set result to NONDIR_REPLACEMENT.
19711
func_dirname ()
19712
{
19713
  case ${1} in
19714
    */*) func_dirname_result="${1%/*}${2}" ;;
19715
    *  ) func_dirname_result="${3}" ;;
19716
  esac
19717
}
19718
19719
 
19720
func_basename ()
19721
{
19722
  func_basename_result="${1##*/}"
19723
}
19724
19725
 
19726
# perform func_basename and func_dirname in a single function
19727
# call:
19728
#   dirname:  Compute the dirname of FILE.  If nonempty,
19729
#             add APPEND to the result, otherwise set result
19730
#             to NONDIR_REPLACEMENT.
19731
#             value returned in "$func_dirname_result"
19732
#   basename: Compute filename of FILE.
19733
#             value retuned in "$func_basename_result"
19734
# Implementation must be kept synchronized with func_dirname
19735
# and func_basename. For efficiency, we do not delegate to
19736
# those functions but instead duplicate the functionality here.
19737
func_dirname_and_basename ()
19738
{
19739
  case ${1} in
19740
    */*) func_dirname_result="${1%/*}${2}" ;;
19741
    *  ) func_dirname_result="${3}" ;;
19742
  esac
19743
  func_basename_result="${1##*/}"
19744
}
19745
19746
 
19747
# strip PREFIX and SUFFIX off of NAME.
19748
# PREFIX and SUFFIX must not contain globbing or regex special
19749
# characters, hashes, percent signs, but SUFFIX may contain a leading
19750
# dot (in which case that matches only a dot).
19751
func_stripname ()
19752
{
19753
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19754
  # positional parameters, so assign one to ordinary parameter first.
19755
  func_stripname_result=${3}
19756
  func_stripname_result=${func_stripname_result#"${1}"}
19757
  func_stripname_result=${func_stripname_result%"${2}"}
19758
}
19759
19760
 
19761
func_opt_split ()
19762
{
19763
  func_opt_split_opt=${1%%=*}
19764
  func_opt_split_arg=${1#*=}
19765
}
19766
19767
 
19768
func_lo2o ()
19769
{
19770
  case ${1} in
19771
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19772
    *)    func_lo2o_result=${1} ;;
19773
  esac
19774
}
19775
19776
 
19777
func_xform ()
19778
{
19779
  func_xform_result=${1%.*}.lo
19780
}
19781
19782
 
19783
func_arith ()
19784
{
19785
  func_arith_result=$(( $* ))
19786
}
19787
19788
 
19789
# STRING may not start with a hyphen.
19790
func_len ()
19791
{
19792
  func_len_result=${#1}
19793
}
19794
19795
 
19796
    ;;
19797
  *) # Bourne compatible functions.
19798
    cat << \_LT_EOF >> "$cfgfile"
19799
19800
 
19801
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19802
# otherwise set result to NONDIR_REPLACEMENT.
19803
func_dirname ()
19804
{
19805
  # Extract subdirectory from the argument.
19806
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19807
  if test "X$func_dirname_result" = "X${1}"; then
19808
    func_dirname_result="${3}"
19809
  else
19810
    func_dirname_result="$func_dirname_result${2}"
19811
  fi
19812
}
19813
19814
 
19815
func_basename ()
19816
{
19817
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19818
}
19819
19820
 
19821
 
19822
# strip PREFIX and SUFFIX off of NAME.
19823
# PREFIX and SUFFIX must not contain globbing or regex special
19824
# characters, hashes, percent signs, but SUFFIX may contain a leading
19825
# dot (in which case that matches only a dot).
19826
# func_strip_suffix prefix name
19827
func_stripname ()
19828
{
19829
  case ${2} in
19830
    .*) func_stripname_result=`$ECHO "X${3}" \
19831
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19832
    *)  func_stripname_result=`$ECHO "X${3}" \
19833
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
19834
  esac
19835
}
19836
19837
 
19838
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19839
my_sed_long_arg='1s/^-[^=]*=//'
19840
19841
 
19842
func_opt_split ()
19843
{
19844
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
19845
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19846
}
19847
19848
 
19849
func_lo2o ()
19850
{
19851
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19852
}
19853
19854
 
19855
func_xform ()
19856
{
19857
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19858
}
19859
19860
 
19861
func_arith ()
19862
{
19863
  func_arith_result=`expr "$@"`
19864
}
19865
19866
 
19867
# STRING may not start with a hyphen.
19868
func_len ()
19869
{
19870
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19871
}
19872
19873
 
19874
esac
19875
19876
 
19877
  yes)
19878
    cat << \_LT_EOF >> "$cfgfile"
19879
19880
 
19881
# Append VALUE to the end of shell variable VAR.
19882
func_append ()
19883
{
19884
  eval "$1+=\$2"
19885
}
19886
_LT_EOF
19887
    ;;
19888
  *)
19889
    cat << \_LT_EOF >> "$cfgfile"
19890
19891
 
19892
# Append VALUE to the end of shell variable VAR.
19893
func_append ()
19894
{
19895
  eval "$1=\$$1\$2"
19896
}
19897
19898
 
19899
    ;;
19900
  esac
19901
19902
 
19903
 
19904
    || (rm -f "$cfgfile"; exit 1)
19905
19906
 
19907
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19908
  chmod +x "$ofile"
19909
19910
 
19911
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19912
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
19913
  # are listed without --file.  Let's play safe and only enable the eval
19914
  # if we detect the quoting.
19915
  case $CONFIG_FILES in
19916
  *\'*) eval set x "$CONFIG_FILES" ;;
19917
  *)   set x $CONFIG_FILES ;;
19918
  esac
19919
  shift
19920
  for mf
19921
  do
19922
    # Strip MF so we end up with the name of the file.
19923
    mf=`echo "$mf" | sed -e 's/:.*$//'`
19924
    # Check whether this is an Automake generated Makefile or not.
19925
    # We used to match only the files named `Makefile.in', but
19926
    # some people rename them; so instead we look at the file content.
19927
    # Grep'ing the first line is not enough: some people post-process
19928
    # each Makefile.in and add a new line on top of each file to say so.
19929
    # Grep'ing the whole file is not good either: AIX grep has a line
19930
    # limit of 2048, but all sed's we know have understand at least 4000.
19931
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19932
      dirpart=`$as_dirname -- "$mf" ||
19933
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19934 19 jeremybenn
         X"$mf" : 'X\(//\)[^/]' \| \
19935
         X"$mf" : 'X\(//\)$' \| \
19936
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19937
$as_echo X"$mf" |
19938 82 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19939 19 jeremybenn
            s//\1/
19940
            q
19941
          }
19942
          /^X\(\/\/\)[^/].*/{
19943
            s//\1/
19944
            q
19945
          }
19946
          /^X\(\/\/\)$/{
19947
            s//\1/
19948
            q
19949
          }
19950
          /^X\(\/\).*/{
19951
            s//\1/
19952
            q
19953
          }
19954
          s/.*/./; q'`
19955
    else
19956 82 jeremybenn
      continue
19957
    fi
19958
    # Extract the definition of DEPDIR, am__include, and am__quote
19959
    # from the Makefile without running `make'.
19960
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19961
    test -z "$DEPDIR" && continue
19962
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19963
    test -z "am__include" && continue
19964
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19965
    # When using ansi2knr, U may be empty or an underscore; expand it
19966
    U=`sed -n 's/^U = //p' < "$mf"`
19967
    # Find all dependency output files, they are included files with
19968
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19969
    # simplest approach to changing $(DEPDIR) to its actual value in the
19970
    # expansion.
19971
    for file in `sed -n "
19972
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19973
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19974
      # Make sure the directory exists.
19975
      test -f "$dirpart/$file" && continue
19976
      fdir=`$as_dirname -- "$file" ||
19977
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19978 19 jeremybenn
         X"$file" : 'X\(//\)[^/]' \| \
19979
         X"$file" : 'X\(//\)$' \| \
19980
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19981
$as_echo X"$file" |
19982 82 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19983 19 jeremybenn
            s//\1/
19984
            q
19985
          }
19986
          /^X\(\/\/\)[^/].*/{
19987
            s//\1/
19988
            q
19989
          }
19990
          /^X\(\/\/\)$/{
19991
            s//\1/
19992
            q
19993
          }
19994
          /^X\(\/\).*/{
19995
            s//\1/
19996
            q
19997
          }
19998
          s/.*/./; q'`
19999
      { as_dir=$dirpart/$fdir
20000 82 jeremybenn
  case $as_dir in #(
20001 19 jeremybenn
  -*) as_dir=./$as_dir;;
20002
  esac
20003
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20004
    as_dirs=
20005
    while :; do
20006
      case $as_dir in #(
20007
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20008 82 jeremybenn
      *) as_qdir=$as_dir;;
20009 19 jeremybenn
      esac
20010
      as_dirs="'$as_qdir' $as_dirs"
20011
      as_dir=`$as_dirname -- "$as_dir" ||
20012
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20013
         X"$as_dir" : 'X\(//\)[^/]' \| \
20014
         X"$as_dir" : 'X\(//\)$' \| \
20015
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20016
$as_echo X"$as_dir" |
20017 82 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20018 19 jeremybenn
            s//\1/
20019
            q
20020
          }
20021
          /^X\(\/\/\)[^/].*/{
20022
            s//\1/
20023
            q
20024
          }
20025
          /^X\(\/\/\)$/{
20026
            s//\1/
20027
            q
20028
          }
20029
          /^X\(\/\).*/{
20030
            s//\1/
20031
            q
20032
          }
20033
          s/.*/./; q'`
20034
      test -d "$as_dir" && break
20035
    done
20036
    test -z "$as_dirs" || eval "mkdir $as_dirs"
20037
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20038 82 jeremybenn
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
20039
   { (exit 1); exit 1; }; }; }
20040 19 jeremybenn
      # echo "creating $dirpart/$file"
20041 82 jeremybenn
      echo '# dummy' > "$dirpart/$file"
20042
    done
20043
  done
20044 19 jeremybenn
}
20045 82 jeremybenn
 ;;
20046 19 jeremybenn
20047
 
20048
done # for ac_tag
20049
20050
 
20051
 
20052
_ACEOF
20053
chmod +x $CONFIG_STATUS
20054
ac_clean_files=$ac_clean_files_save
20055
20056
 
20057 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
20058
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
20059
   { (exit 1); exit 1; }; }
20060
20061 19 jeremybenn
 
20062 82 jeremybenn
 
20063 19 jeremybenn
# config.status does its own redirection, appending to config.log.
20064
# Unfortunately, on DOS this fails, as config.log is still kept open
20065
# by configure, so config.status won't be able to write to it; its
20066
# output is simply discarded.  So we exec the FD to /dev/null,
20067
# effectively closing config.log, so it can be properly (re)opened and
20068
# appended to by config.status.  When coming back to configure, we
20069
# need to make the FD available again.
20070
if test "$no_create" != yes; then
20071
  ac_cs_success=:
20072
  ac_config_status_args=
20073
  test "$silent" = yes &&
20074
    ac_config_status_args="$ac_config_status_args --quiet"
20075
  exec 5>/dev/null
20076
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20077
  exec 5>>config.log
20078
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20079
  # would make configure fail if this is the last instruction.
20080
  $ac_cs_success || { (exit 1); exit 1; }
20081
fi
20082
20083
 
20084 82 jeremybenn
# CONFIG_SUBDIRS section.
20085
#
20086
if test "$no_recursion" != yes; then
20087
20088
 
20089
  # so they do not pile up.
20090
  ac_sub_configure_args=
20091
  ac_prev=
20092
  eval "set x $ac_configure_args"
20093
  shift
20094
  for ac_arg
20095
  do
20096
    if test -n "$ac_prev"; then
20097
      ac_prev=
20098
      continue
20099
    fi
20100
    case $ac_arg in
20101
    -cache-file | --cache-file | --cache-fil | --cache-fi \
20102
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20103
      ac_prev=cache_file ;;
20104
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20105
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20106
    | --c=*)
20107
      ;;
20108
    --config-cache | -C)
20109
      ;;
20110
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20111
      ac_prev=srcdir ;;
20112
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20113
      ;;
20114
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20115
      ac_prev=prefix ;;
20116
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20117
      ;;
20118
    --disable-option-checking)
20119
      ;;
20120
    *)
20121
      case $ac_arg in
20122
      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20123
      esac
20124
      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
20125
    esac
20126
  done
20127
20128
 
20129
  # in subdir configurations.
20130
  ac_arg="--prefix=$prefix"
20131
  case $ac_arg in
20132
  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20133
  esac
20134
  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
20135
20136
 
20137
  if test "$silent" = yes; then
20138
    ac_sub_configure_args="--silent $ac_sub_configure_args"
20139
  fi
20140
20141
 
20142
  # different subdirs can have different --enable and --with options.
20143
  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
20144
20145
 
20146
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20147
20148
 
20149
    # parts of a large source tree are present.
20150
    test -d "$srcdir/$ac_dir" || continue
20151
20152
 
20153
    $as_echo "$as_me:$LINENO: $ac_msg" >&5
20154
    $as_echo "$ac_msg" >&6
20155
    { as_dir="$ac_dir"
20156
  case $as_dir in #(
20157
  -*) as_dir=./$as_dir;;
20158
  esac
20159
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20160
    as_dirs=
20161
    while :; do
20162
      case $as_dir in #(
20163
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20164
      *) as_qdir=$as_dir;;
20165
      esac
20166
      as_dirs="'$as_qdir' $as_dirs"
20167
      as_dir=`$as_dirname -- "$as_dir" ||
20168
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20169
         X"$as_dir" : 'X\(//\)[^/]' \| \
20170
         X"$as_dir" : 'X\(//\)$' \| \
20171
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20172
$as_echo X"$as_dir" |
20173
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20174
            s//\1/
20175
            q
20176
          }
20177
          /^X\(\/\/\)[^/].*/{
20178
            s//\1/
20179
            q
20180
          }
20181
          /^X\(\/\/\)$/{
20182
            s//\1/
20183
            q
20184
          }
20185
          /^X\(\/\).*/{
20186
            s//\1/
20187
            q
20188
          }
20189
          s/.*/./; q'`
20190
      test -d "$as_dir" && break
20191
    done
20192
    test -z "$as_dirs" || eval "mkdir $as_dirs"
20193
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20194
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
20195
   { (exit 1); exit 1; }; }; }
20196
    ac_builddir=.
20197
20198
 
20199
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20200
*)
20201
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20202
  # A ".." for each directory in $ac_dir_suffix.
20203
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20204
  case $ac_top_builddir_sub in
20205
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20206
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20207
  esac ;;
20208
esac
20209
ac_abs_top_builddir=$ac_pwd
20210
ac_abs_builddir=$ac_pwd$ac_dir_suffix
20211
# for backward compatibility:
20212
ac_top_builddir=$ac_top_build_prefix
20213
20214
 
20215
  .)  # We are building in place.
20216
    ac_srcdir=.
20217
    ac_top_srcdir=$ac_top_builddir_sub
20218
    ac_abs_top_srcdir=$ac_pwd ;;
20219
  [\\/]* | ?:[\\/]* )  # Absolute name.
20220
    ac_srcdir=$srcdir$ac_dir_suffix;
20221
    ac_top_srcdir=$srcdir
20222
    ac_abs_top_srcdir=$srcdir ;;
20223
  *) # Relative name.
20224
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20225
    ac_top_srcdir=$ac_top_build_prefix$srcdir
20226
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20227
esac
20228
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20229
20230
 
20231
 
20232
20233
 
20234
    if test -f "$ac_srcdir/configure.gnu"; then
20235
      ac_sub_configure=$ac_srcdir/configure.gnu
20236
    elif test -f "$ac_srcdir/configure"; then
20237
      ac_sub_configure=$ac_srcdir/configure
20238
    elif test -f "$ac_srcdir/configure.in"; then
20239
      # This should be Cygnus configure.
20240
      ac_sub_configure=$ac_aux_dir/configure
20241
    else
20242
      { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20243
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20244
      ac_sub_configure=
20245
    fi
20246
20247
 
20248
    if test -n "$ac_sub_configure"; then
20249
      # Make the cache file name correct relative to the subdirectory.
20250
      case $cache_file in
20251
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
20252
      *) # Relative name.
20253
        ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
20254
      esac
20255
20256
 
20257
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20258
      # The eval makes quoting arguments work.
20259
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20260
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20261
        { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
20262
$as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20263
   { (exit 1); exit 1; }; }
20264
    fi
20265
20266
 
20267
  done
20268
fi
20269
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20270
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20271
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20272
fi
20273
20274
 

powered by: WebSVN 2.1.0

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