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

Subversion Repositories openrisc_me

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

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

Line No. Rev Author Line
1 19 jeremybenn
#! /bin/sh
2 428 julius
# From configure.ac Id: configure.ac 420 2010-11-11 14:43:33Z jeremybennett  using automake version AC_ACVERSION.
3 19 jeremybenn
# Guess values for system-dependent variables and create Makefiles.
4 432 jeremybenn
# Generated by GNU Autoconf 2.65 for or1ksim 2010-11-25.
5 19 jeremybenn
#
6
# Report bugs to .
7
#
8 432 jeremybenn
#
9 19 jeremybenn
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 432 jeremybenn
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11
# Inc.
12 346 jeremybenn
#
13 432 jeremybenn
#
14 19 jeremybenn
# This configure script is free software; the Free Software Foundation
15
# gives unlimited permission to copy, distribute and modify it.
16 82 jeremybenn
#
17
# Copyright (C) 1999-2008 OpenCores
18
# Copyright (C) 2008, 2010 Embecosm Limited
19
#
20
# Contributor Jeremy Bennett 
21
#
22
# This file is part of OpenRISC 1000 Architectural Simulator.
23
#
24
# This program is free software; you can redistribute it and/or modify it
25
# under the terms of the GNU General Public License as published by the Free
26
# Software Foundation; either version 3 of the License, or (at your option)
27
# any later version.
28
#
29
# This program is distributed in the hope that it will be useful, but WITHOUT
30
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
31
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
32
# more details.
33
#
34
# You should have received a copy of the GNU General Public License along
35
# with this program.  If not, see .
36 346 jeremybenn
## -------------------- ##
37
## M4sh Initialization. ##
38
## -------------------- ##
39 19 jeremybenn
 
40
# Be more Bourne compatible
41
DUALCASE=1; export DUALCASE # for MKS sh
42 346 jeremybenn
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
43 19 jeremybenn
  emulate sh
44
  NULLCMD=:
45 82 jeremybenn
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
46 19 jeremybenn
  # is contrary to our usage.  Disable this feature.
47
  alias -g '${1+"$@"}'='"$@"'
48
  setopt NO_GLOB_SUBST
49
else
50 346 jeremybenn
  case `(set -o) 2>/dev/null` in #(
51
  *posix*) :
52
    set -o posix ;; #(
53
  *) :
54
     ;;
55 19 jeremybenn
esac
56
fi
57
 
58
 
59 82 jeremybenn
as_nl='
60
'
61
export as_nl
62
# Printing a long string crashes Solaris 7 /usr/bin/printf.
63
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
64
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
65
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
66 346 jeremybenn
# Prefer a ksh shell builtin over an external printf program on Solaris,
67
# but without wasting forks for bash or zsh.
68
if test -z "$BASH_VERSION$ZSH_VERSION" \
69
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
70
  as_echo='print -r --'
71
  as_echo_n='print -rn --'
72
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
73 82 jeremybenn
  as_echo='printf %s\n'
74
  as_echo_n='printf %s'
75
else
76
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
77
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
78
    as_echo_n='/usr/ucb/echo -n'
79 19 jeremybenn
  else
80 82 jeremybenn
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
81
    as_echo_n_body='eval
82
      arg=$1;
83 346 jeremybenn
      case $arg in #(
84 82 jeremybenn
      *"$as_nl"*)
85
        expr "X$arg" : "X\\(.*\\)$as_nl";
86
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
87
      esac;
88
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
89
    '
90
    export as_echo_n_body
91
    as_echo_n='sh -c $as_echo_n_body as_echo'
92 19 jeremybenn
  fi
93 82 jeremybenn
  export as_echo_body
94
  as_echo='sh -c $as_echo_body as_echo'
95 19 jeremybenn
fi
96
 
97 82 jeremybenn
# The user is always right.
98
if test "${PATH_SEPARATOR+set}" != set; then
99
  PATH_SEPARATOR=:
100
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
101
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
102
      PATH_SEPARATOR=';'
103
  }
104
fi
105
 
106 19 jeremybenn
 
107
# IFS
108
# We need space, tab and new line, in precisely that order.  Quoting is
109
# there to prevent editors from complaining about space-tab.
110
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
111
# splitting by setting IFS to empty value.)
112
IFS=" ""        $as_nl"
113
 
114
# Find who we are.  Look in the path if we contain no directory separator.
115 346 jeremybenn
case $0 in #((
116 19 jeremybenn
  *[\\/]* ) as_myself=$0 ;;
117
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118
for as_dir in $PATH
119
do
120
  IFS=$as_save_IFS
121
  test -z "$as_dir" && as_dir=.
122 346 jeremybenn
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123
  done
124 19 jeremybenn
IFS=$as_save_IFS
125
 
126
     ;;
127
esac
128
# We did not find ourselves, most probably we were run as `sh COMMAND'
129
# in which case we are not to be found in the path.
130
if test "x$as_myself" = x; then
131
  as_myself=$0
132
fi
133
if test ! -f "$as_myself"; then
134 82 jeremybenn
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
135 346 jeremybenn
  exit 1
136 19 jeremybenn
fi
137
 
138 346 jeremybenn
# Unset variables that we do not need and which cause bugs (e.g. in
139
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
140
# suppresses any "Segmentation fault" message there.  '((' could
141
# trigger a bug in pdksh 5.2.14.
142
for as_var in BASH_ENV ENV MAIL MAILPATH
143
do eval test x\${$as_var+set} = xset \
144
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
145 19 jeremybenn
done
146
PS1='$ '
147
PS2='> '
148
PS4='+ '
149
 
150
# NLS nuisances.
151 82 jeremybenn
LC_ALL=C
152
export LC_ALL
153
LANGUAGE=C
154
export LANGUAGE
155 19 jeremybenn
 
156
# CDPATH.
157 346 jeremybenn
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
158 19 jeremybenn
 
159
if test "x$CONFIG_SHELL" = x; then
160 346 jeremybenn
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
161
  emulate sh
162
  NULLCMD=:
163
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
164
  # is contrary to our usage.  Disable this feature.
165
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
166
  setopt NO_GLOB_SUBST
167 19 jeremybenn
else
168 346 jeremybenn
  case \`(set -o) 2>/dev/null\` in #(
169
  *posix*) :
170
    set -o posix ;; #(
171
  *) :
172
     ;;
173
esac
174 19 jeremybenn
fi
175 346 jeremybenn
"
176
  as_required="as_fn_return () { (exit \$1); }
177
as_fn_success () { as_fn_return 0; }
178
as_fn_failure () { as_fn_return 1; }
179
as_fn_ret_success () { return 0; }
180
as_fn_ret_failure () { return 1; }
181 19 jeremybenn
 
182
exitcode=0
183 346 jeremybenn
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
184
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
185
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
186
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
187
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
188 19 jeremybenn
 
189
else
190 346 jeremybenn
  exitcode=1; echo positional parameters were not saved.
191 19 jeremybenn
fi
192 346 jeremybenn
test x\$exitcode = x0 || exit 1"
193
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
194
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
195
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
196
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
197
test \$(( 1 + 1 )) = 2 || exit 1"
198
  if (eval "$as_required") 2>/dev/null; then :
199
  as_have_required=yes
200 19 jeremybenn
else
201 346 jeremybenn
  as_have_required=no
202 19 jeremybenn
fi
203 346 jeremybenn
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
204 19 jeremybenn
 
205
else
206 346 jeremybenn
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
207
as_found=false
208 19 jeremybenn
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
209
do
210
  IFS=$as_save_IFS
211
  test -z "$as_dir" && as_dir=.
212 346 jeremybenn
  as_found=:
213
  case $as_dir in #(
214 19 jeremybenn
         /*)
215
           for as_base in sh bash ksh sh5; do
216 346 jeremybenn
             # Try only shells that exist, to save several forks.
217
             as_shell=$as_dir/$as_base
218
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
219
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
220
  CONFIG_SHELL=$as_shell as_have_required=yes
221
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
222
  break 2
223
fi
224
fi
225 19 jeremybenn
           done;;
226
       esac
227 346 jeremybenn
  as_found=false
228 19 jeremybenn
done
229 346 jeremybenn
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
230
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
231
  CONFIG_SHELL=$SHELL as_have_required=yes
232
fi; }
233 19 jeremybenn
IFS=$as_save_IFS
234
 
235
 
236 346 jeremybenn
      if test "x$CONFIG_SHELL" != x; then :
237
  # We cannot yet assume a decent shell, so we have to provide a
238
        # neutralization value for shells without unset; and this also
239
        # works around shells that cannot unset nonexistent variables.
240
        BASH_ENV=/dev/null
241
        ENV=/dev/null
242
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
243
        export CONFIG_SHELL
244
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
245 19 jeremybenn
fi
246
 
247 346 jeremybenn
    if test x$as_have_required = xno; then :
248
  $as_echo "$0: This script requires a shell more modern than all"
249
  $as_echo "$0: the shells that I found on your system."
250
  if test x${ZSH_VERSION+set} = xset ; then
251
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
252
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
253
  else
254
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
255
$0: openrisc@opencores.org about your system, including any
256
$0: error possibly output before this message. Then install
257
$0: a modern shell, or manually run the script under such a
258
$0: shell if you do have one."
259
  fi
260
  exit 1
261 19 jeremybenn
fi
262
fi
263
fi
264 346 jeremybenn
SHELL=${CONFIG_SHELL-/bin/sh}
265
export SHELL
266
# Unset more variables known to interfere with behavior of common tools.
267
CLICOLOR_FORCE= GREP_OPTIONS=
268
unset CLICOLOR_FORCE GREP_OPTIONS
269 19 jeremybenn
 
270 346 jeremybenn
## --------------------- ##
271
## M4sh Shell Functions. ##
272
## --------------------- ##
273
# as_fn_unset VAR
274
# ---------------
275
# Portably unset VAR.
276
as_fn_unset ()
277
{
278
  { eval $1=; unset $1;}
279
}
280
as_unset=as_fn_unset
281 19 jeremybenn
 
282 346 jeremybenn
# as_fn_set_status STATUS
283
# -----------------------
284
# Set $? to STATUS, without forking.
285
as_fn_set_status ()
286
{
287
  return $1
288
} # as_fn_set_status
289 19 jeremybenn
 
290 346 jeremybenn
# as_fn_exit STATUS
291
# -----------------
292
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
293
as_fn_exit ()
294
{
295
  set +e
296
  as_fn_set_status $1
297
  exit $1
298
} # as_fn_exit
299 19 jeremybenn
 
300 346 jeremybenn
# as_fn_mkdir_p
301
# -------------
302
# Create "$as_dir" as a directory, including parents if necessary.
303
as_fn_mkdir_p ()
304
{
305 19 jeremybenn
 
306 346 jeremybenn
  case $as_dir in #(
307
  -*) as_dir=./$as_dir;;
308
  esac
309
  test -d "$as_dir" || eval $as_mkdir_p || {
310
    as_dirs=
311
    while :; do
312
      case $as_dir in #(
313
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
314
      *) as_qdir=$as_dir;;
315
      esac
316
      as_dirs="'$as_qdir' $as_dirs"
317
      as_dir=`$as_dirname -- "$as_dir" ||
318
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
319
         X"$as_dir" : 'X\(//\)[^/]' \| \
320
         X"$as_dir" : 'X\(//\)$' \| \
321
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
322
$as_echo X"$as_dir" |
323
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
324
            s//\1/
325
            q
326
          }
327
          /^X\(\/\/\)[^/].*/{
328
            s//\1/
329
            q
330
          }
331
          /^X\(\/\/\)$/{
332
            s//\1/
333
            q
334
          }
335
          /^X\(\/\).*/{
336
            s//\1/
337
            q
338
          }
339
          s/.*/./; q'`
340
      test -d "$as_dir" && break
341
    done
342
    test -z "$as_dirs" || eval "mkdir $as_dirs"
343
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
344 19 jeremybenn
 
345
 
346 346 jeremybenn
} # as_fn_mkdir_p
347
# as_fn_append VAR VALUE
348
# ----------------------
349
# Append the text in VALUE to the end of the definition contained in VAR. Take
350
# advantage of any shell optimizations that allow amortized linear growth over
351
# repeated appends, instead of the typical quadratic growth present in naive
352
# implementations.
353
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
354
  eval 'as_fn_append ()
355
  {
356
    eval $1+=\$2
357
  }'
358
else
359
  as_fn_append ()
360
  {
361
    eval $1=\$$1\$2
362
  }
363
fi # as_fn_append
364 19 jeremybenn
 
365 346 jeremybenn
# as_fn_arith ARG...
366
# ------------------
367
# Perform arithmetic evaluation on the ARGs, and store the result in the
368
# global $as_val. Take advantage of shells that can avoid forks. The arguments
369
# must be portable across $(()) and expr.
370
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
371
  eval 'as_fn_arith ()
372
  {
373
    as_val=$(( $* ))
374
  }'
375
else
376
  as_fn_arith ()
377
  {
378
    as_val=`expr "$@" || test $? -eq 1`
379
  }
380
fi # as_fn_arith
381 19 jeremybenn
 
382
 
383 346 jeremybenn
# as_fn_error ERROR [LINENO LOG_FD]
384
# ---------------------------------
385
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
386
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
387
# script with status $?, using 1 if that was 0.
388
as_fn_error ()
389
{
390
  as_status=$?; test $as_status -eq 0 && as_status=1
391
  if test "$3"; then
392
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
393
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
394
  fi
395
  $as_echo "$as_me: error: $1" >&2
396
  as_fn_exit $as_status
397
} # as_fn_error
398 19 jeremybenn
 
399 346 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
400
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
401
  as_expr=expr
402 19 jeremybenn
else
403 346 jeremybenn
  as_expr=false
404 19 jeremybenn
fi
405
 
406 346 jeremybenn
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
407
  as_basename=basename
408 19 jeremybenn
else
409 346 jeremybenn
  as_basename=false
410 19 jeremybenn
fi
411
 
412 346 jeremybenn
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
413
  as_dirname=dirname
414 19 jeremybenn
else
415 346 jeremybenn
  as_dirname=false
416 19 jeremybenn
fi
417
 
418 346 jeremybenn
as_me=`$as_basename -- "$0" ||
419
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
420
         X"$0" : 'X\(//\)$' \| \
421
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
422
$as_echo X/"$0" |
423
    sed '/^.*\/\([^/][^/]*\)\/*$/{
424
            s//\1/
425
            q
426
          }
427
          /^X\/\(\/\/\)$/{
428
            s//\1/
429
            q
430
          }
431
          /^X\/\(\/\).*/{
432
            s//\1/
433
            q
434
          }
435
          s/.*/./; q'`
436 19 jeremybenn
 
437 346 jeremybenn
# Avoid depending upon Character Ranges.
438
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
439
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
440
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
441
as_cr_digits='0123456789'
442
as_cr_alnum=$as_cr_Letters$as_cr_digits
443 19 jeremybenn
 
444
 
445 346 jeremybenn
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
446
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
447
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
448
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
449
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
450 19 jeremybenn
  sed -n '
451
    p
452
    /[$]LINENO/=
453
  ' <$as_myself |
454
    sed '
455
      s/[$]LINENO.*/&-/
456
      t lineno
457
      b
458
      :lineno
459
      N
460
      :loop
461
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
462
      t loop
463
      s/-\n.*//
464
    ' >$as_me.lineno &&
465
  chmod +x "$as_me.lineno" ||
466 346 jeremybenn
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
467 19 jeremybenn
 
468
  # Don't try to exec as it changes $[0], causing all sort of problems
469
  # (the dirname of $[0] is not the place where we might find the
470
  # original and so on.  Autoconf is especially sensitive to this).
471
  . "./$as_me.lineno"
472
  # Exit status is that of the last command.
473
  exit
474
}
475
 
476
ECHO_C= ECHO_N= ECHO_T=
477 346 jeremybenn
case `echo -n x` in #(((((
478 19 jeremybenn
-n*)
479 346 jeremybenn
  case `echo 'xy\c'` in
480 19 jeremybenn
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
481 346 jeremybenn
  xy)  ECHO_C='\c';;
482
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
483
       ECHO_T=' ';;
484 19 jeremybenn
  esac;;
485
*)
486
  ECHO_N='-n';;
487
esac
488
 
489
rm -f conf$$ conf$$.exe conf$$.file
490
if test -d conf$$.dir; then
491
  rm -f conf$$.dir/conf$$.file
492
else
493
  rm -f conf$$.dir
494 82 jeremybenn
  mkdir conf$$.dir 2>/dev/null
495 19 jeremybenn
fi
496 82 jeremybenn
if (echo >conf$$.file) 2>/dev/null; then
497
  if ln -s conf$$.file conf$$ 2>/dev/null; then
498
    as_ln_s='ln -s'
499
    # ... but there are two gotchas:
500
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
501
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
502
    # In both cases, we have to default to `cp -p'.
503
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504
      as_ln_s='cp -p'
505
  elif ln conf$$.file conf$$ 2>/dev/null; then
506
    as_ln_s=ln
507
  else
508 19 jeremybenn
    as_ln_s='cp -p'
509 82 jeremybenn
  fi
510 19 jeremybenn
else
511
  as_ln_s='cp -p'
512
fi
513
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514
rmdir conf$$.dir 2>/dev/null
515
 
516
if mkdir -p . 2>/dev/null; then
517 346 jeremybenn
  as_mkdir_p='mkdir -p "$as_dir"'
518 19 jeremybenn
else
519
  test -d ./-p && rmdir ./-p
520
  as_mkdir_p=false
521
fi
522
 
523
if test -x / >/dev/null 2>&1; then
524
  as_test_x='test -x'
525
else
526
  if ls -dL / >/dev/null 2>&1; then
527
    as_ls_L_option=L
528
  else
529
    as_ls_L_option=
530
  fi
531
  as_test_x='
532
    eval sh -c '\''
533
      if test -d "$1"; then
534 82 jeremybenn
        test -d "$1/.";
535 19 jeremybenn
      else
536 346 jeremybenn
        case $1 in #(
537 82 jeremybenn
        -*)set "./$1";;
538 19 jeremybenn
        esac;
539 346 jeremybenn
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
540 19 jeremybenn
        ???[sx]*):;;*)false;;esac;fi
541
    '\'' sh
542
  '
543
fi
544
as_executable_p=$as_test_x
545
 
546
# Sed expression to map a string onto a valid CPP name.
547
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
 
549
# Sed expression to map a string onto a valid variable name.
550
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
 
552
 
553
 
554
# Check that we are running under the correct shell.
555
SHELL=${CONFIG_SHELL-/bin/sh}
556
 
557 82 jeremybenn
case X$lt_ECHO in
558 19 jeremybenn
X*--fallback-echo)
559
  # Remove one level of quotation (which was required for Make).
560 82 jeremybenn
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
561 19 jeremybenn
  ;;
562
esac
563
 
564 82 jeremybenn
ECHO=${lt_ECHO-echo}
565 19 jeremybenn
if test "X$1" = X--no-reexec; then
566
  # Discard the --no-reexec flag, and continue.
567
  shift
568
elif test "X$1" = X--fallback-echo; then
569
  # Avoid inline document here, it may be left over
570
  :
571 82 jeremybenn
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
572
  # Yippee, $ECHO works!
573 19 jeremybenn
  :
574
else
575
  # Restart under the correct shell.
576
  exec $SHELL "$0" --no-reexec ${1+"$@"}
577
fi
578
 
579
if test "X$1" = X--fallback-echo; then
580
  # used as fallback echo
581
  shift
582 82 jeremybenn
  cat <<_LT_EOF
583 19 jeremybenn
$*
584 82 jeremybenn
_LT_EOF
585 19 jeremybenn
  exit 0
586
fi
587
 
588
# The HP-UX ksh and POSIX shell print the target directory to stdout
589
# if CDPATH is set.
590
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591
 
592 82 jeremybenn
if test -z "$lt_ECHO"; then
593
  if test "X${echo_test_string+set}" != Xset; then
594
    # find a string as large as possible, as long as the shell can cope with it
595
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
596
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
597
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
598
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
599
      then
600
        break
601
      fi
602
    done
603
  fi
604 19 jeremybenn
 
605 82 jeremybenn
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
606
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
607
     test "X$echo_testing_string" = "X$echo_test_string"; then
608
    :
609
  else
610
    # The Solaris, AIX, and Digital Unix default echo programs unquote
611
    # backslashes.  This makes it impossible to quote backslashes using
612
    #   echo "$something" | sed 's/\\/\\\\/g'
613
    #
614
    # So, first we look for a working echo in the user's PATH.
615 19 jeremybenn
 
616 82 jeremybenn
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617
    for dir in $PATH /usr/ucb; do
618
      IFS="$lt_save_ifs"
619
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622
         test "X$echo_testing_string" = "X$echo_test_string"; then
623
        ECHO="$dir/echo"
624
        break
625
      fi
626
    done
627 19 jeremybenn
    IFS="$lt_save_ifs"
628
 
629 82 jeremybenn
    if test "X$ECHO" = Xecho; then
630
      # We didn't find a better echo, so look for alternatives.
631
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
632
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
633
         test "X$echo_testing_string" = "X$echo_test_string"; then
634
        # This shell has a builtin print -r that does the trick.
635
        ECHO='print -r'
636
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
637
           test "X$CONFIG_SHELL" != X/bin/ksh; then
638
        # If we have ksh, try running configure again with it.
639
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640
        export ORIGINAL_CONFIG_SHELL
641
        CONFIG_SHELL=/bin/ksh
642
        export CONFIG_SHELL
643
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644
      else
645
        # Try using printf.
646
        ECHO='printf %s\n'
647
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
648
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
649 19 jeremybenn
           test "X$echo_testing_string" = "X$echo_test_string"; then
650 82 jeremybenn
          # Cool, printf works
651
          :
652
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653
             test "X$echo_testing_string" = 'X\t' &&
654
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655
             test "X$echo_testing_string" = "X$echo_test_string"; then
656
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657
          export CONFIG_SHELL
658
          SHELL="$CONFIG_SHELL"
659
          export SHELL
660
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
661
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662
             test "X$echo_testing_string" = 'X\t' &&
663
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664
             test "X$echo_testing_string" = "X$echo_test_string"; then
665
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
666
        else
667
          # maybe with a smaller string...
668
          prev=:
669 19 jeremybenn
 
670 82 jeremybenn
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
672
            then
673
              break
674
            fi
675
            prev="$cmd"
676
          done
677
 
678
          if test "$prev" != 'sed 50q "$0"'; then
679
            echo_test_string=`eval $prev`
680
            export echo_test_string
681
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682
          else
683
            # Oops.  We lost completely, so just stick with echo.
684
            ECHO=echo
685 19 jeremybenn
          fi
686 82 jeremybenn
        fi
687 19 jeremybenn
      fi
688
    fi
689
  fi
690
fi
691
 
692
# Copy echo and quote the copy suitably for passing to libtool from
693
# the Makefile, instead of quoting the original, which is used later.
694 82 jeremybenn
lt_ECHO=$ECHO
695
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697 19 jeremybenn
fi
698
 
699
 
700
 
701
 
702 432 jeremybenn
test -n "$DJDIR" || exec 7<&0 
703
exec 6>&1
704 19 jeremybenn
 
705
# Name of the host.
706
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
707
# so uname gets run too.
708
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
709
 
710
#
711
# Initializations.
712
#
713
ac_default_prefix=/usr/local
714
ac_clean_files=
715
ac_config_libobj_dir=.
716
LIBOBJS=
717
cross_compiling=no
718
subdirs=
719
MFLAGS=
720
MAKEFLAGS=
721
 
722
# Identity of this package.
723
PACKAGE_NAME='or1ksim'
724
PACKAGE_TARNAME='or1ksim'
725 432 jeremybenn
PACKAGE_VERSION='2010-11-25'
726
PACKAGE_STRING='or1ksim 2010-11-25'
727 19 jeremybenn
PACKAGE_BUGREPORT='openrisc@opencores.org'
728 346 jeremybenn
PACKAGE_URL=''
729 19 jeremybenn
 
730
# Factoring default headers for most tests.
731
ac_includes_default="\
732
#include 
733
#ifdef HAVE_SYS_TYPES_H
734
# include 
735
#endif
736
#ifdef HAVE_SYS_STAT_H
737
# include 
738
#endif
739
#ifdef STDC_HEADERS
740
# include 
741
# include 
742
#else
743
# ifdef HAVE_STDLIB_H
744
#  include 
745
# endif
746
#endif
747
#ifdef HAVE_STRING_H
748
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
749
#  include 
750
# endif
751
# include 
752
#endif
753
#ifdef HAVE_STRINGS_H
754
# include 
755
#endif
756
#ifdef HAVE_INTTYPES_H
757
# include 
758
#endif
759
#ifdef HAVE_STDINT_H
760
# include 
761
#endif
762
#ifdef HAVE_UNISTD_H
763
# include 
764
#endif"
765
 
766 91 jeremybenn
ac_unique_file="cpu/or32/execute.c"
767
enable_option_checking=no
768 82 jeremybenn
ac_subst_vars='am__EXEEXT_FALSE
769
am__EXEEXT_TRUE
770
LTLIBOBJS
771
INCLUDES
772
TERMCAP_LIB
773
SUMVERSION
774
ARFLAGS
775
LOCAL_DEFS
776
LOCAL_LDFLAGS
777
LOCAL_CFLAGS
778
BUILD_DIR
779 96 jeremybenn
RUNTESTDEFAULTFLAGS
780 90 jeremybenn
DEJAGNU
781 82 jeremybenn
DYNAMIC_EXECUTION_FALSE
782
DYNAMIC_EXECUTION_TRUE
783
GENERATE_NEEDED_FALSE
784
GENERATE_NEEDED_TRUE
785
DEBUGFLAGS
786
USE_ARGDATE_FALSE
787
USE_ARGDATE_TRUE
788
USE_ARGREX_FALSE
789
USE_ARGREX_TRUE
790
USE_SYS_GETOPTLONG_FALSE
791
USE_SYS_GETOPTLONG_TRUE
792
POW_LIB
793
LIBOBJS
794
am__fastdepCCAS_FALSE
795
am__fastdepCCAS_TRUE
796
CCASDEPMODE
797
CCASFLAGS
798
CCAS
799
CPU_ARCH
800
am__fastdepCC_FALSE
801
am__fastdepCC_TRUE
802
CCDEPMODE
803
AMDEPBACKSLASH
804
AMDEP_FALSE
805
AMDEP_TRUE
806
am__quote
807
am__include
808
DEPDIR
809
am__untar
810
am__tar
811
AMTAR
812
am__leading_dot
813
SET_MAKE
814
AWK
815
mkdir_p
816
MKDIR_P
817
INSTALL_STRIP_PROGRAM
818
install_sh
819
MAKEINFO
820
AUTOHEADER
821
AUTOMAKE
822
AUTOCONF
823
ACLOCAL
824
VERSION
825
PACKAGE
826
CYGPATH_W
827
am__isrc
828
INSTALL_DATA
829
INSTALL_SCRIPT
830
INSTALL_PROGRAM
831
OTOOL64
832
OTOOL
833
LIPO
834
NMEDIT
835
DSYMUTIL
836
lt_ECHO
837 19 jeremybenn
RANLIB
838
STRIP
839 82 jeremybenn
AR
840
OBJDUMP
841
LN_S
842
NM
843
ac_ct_DUMPBIN
844
DUMPBIN
845
LD
846
FGREP
847
SED
848 19 jeremybenn
LIBTOOL
849 82 jeremybenn
target_os
850
target_vendor
851
target_cpu
852
target
853
host_os
854
host_vendor
855
host_cpu
856
host
857
build_os
858
build_vendor
859
build_cpu
860
build
861
subdirs
862 91 jeremybenn
EGREP
863
GREP
864
CPP
865
OBJEXT
866
EXEEXT
867
ac_ct_CC
868
CPPFLAGS
869
LDFLAGS
870
CFLAGS
871
CC
872 82 jeremybenn
target_alias
873
host_alias
874
build_alias
875
LIBS
876
ECHO_T
877
ECHO_N
878
ECHO_C
879
DEFS
880
mandir
881
localedir
882
libdir
883
psdir
884
pdfdir
885
dvidir
886
htmldir
887
infodir
888
docdir
889
oldincludedir
890
includedir
891
localstatedir
892
sharedstatedir
893
sysconfdir
894
datadir
895
datarootdir
896
libexecdir
897
sbindir
898
bindir
899
program_transform_name
900
prefix
901
exec_prefix
902 346 jeremybenn
PACKAGE_URL
903 82 jeremybenn
PACKAGE_BUGREPORT
904
PACKAGE_STRING
905
PACKAGE_VERSION
906
PACKAGE_TARNAME
907
PACKAGE_NAME
908
PATH_SEPARATOR
909
SHELL'
910 19 jeremybenn
ac_subst_files=''
911 82 jeremybenn
ac_user_opts='
912
enable_option_checking
913
enable_shared
914
enable_static
915
with_pic
916
enable_fast_install
917
with_gnu_ld
918
enable_libtool_lock
919
enable_dependency_tracking
920
enable_profiling
921
enable_execution
922
enable_ethphy
923 127 jeremybenn
enable_unsigned_xori
924 82 jeremybenn
enable_range_stats
925
enable_debug
926
'
927 19 jeremybenn
      ac_precious_vars='build_alias
928
host_alias
929
target_alias
930
CC
931
CFLAGS
932
LDFLAGS
933
LIBS
934
CPPFLAGS
935
CPP
936 82 jeremybenn
CCAS
937
CCASFLAGS'
938 90 jeremybenn
ac_subdirs_all='testsuite/test-code-or1k'
939 19 jeremybenn
 
940
# Initialize some variables set by options.
941
ac_init_help=
942
ac_init_version=false
943 82 jeremybenn
ac_unrecognized_opts=
944
ac_unrecognized_sep=
945 19 jeremybenn
# The variables have the same names as the options, with
946
# dashes changed to underlines.
947
cache_file=/dev/null
948
exec_prefix=NONE
949
no_create=
950
no_recursion=
951
prefix=NONE
952
program_prefix=NONE
953
program_suffix=NONE
954
program_transform_name=s,x,x,
955
silent=
956
site=
957
srcdir=
958
verbose=
959
x_includes=NONE
960
x_libraries=NONE
961
 
962
# Installation directory options.
963
# These are left unexpanded so users can "make install exec_prefix=/foo"
964
# and all the variables that are supposed to be based on exec_prefix
965
# by default will actually change.
966
# Use braces instead of parens because sh, perl, etc. also accept them.
967
# (The list follows the same order as the GNU Coding Standards.)
968
bindir='${exec_prefix}/bin'
969
sbindir='${exec_prefix}/sbin'
970
libexecdir='${exec_prefix}/libexec'
971
datarootdir='${prefix}/share'
972
datadir='${datarootdir}'
973
sysconfdir='${prefix}/etc'
974
sharedstatedir='${prefix}/com'
975
localstatedir='${prefix}/var'
976
includedir='${prefix}/include'
977
oldincludedir='/usr/include'
978
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
979
infodir='${datarootdir}/info'
980
htmldir='${docdir}'
981
dvidir='${docdir}'
982
pdfdir='${docdir}'
983
psdir='${docdir}'
984
libdir='${exec_prefix}/lib'
985
localedir='${datarootdir}/locale'
986
mandir='${datarootdir}/man'
987
 
988
ac_prev=
989
ac_dashdash=
990
for ac_option
991
do
992
  # If the previous option needs an argument, assign it.
993
  if test -n "$ac_prev"; then
994
    eval $ac_prev=\$ac_option
995
    ac_prev=
996
    continue
997
  fi
998
 
999
  case $ac_option in
1000
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1001
  *)    ac_optarg=yes ;;
1002
  esac
1003
 
1004
  # Accept the important Cygnus configure options, so we can diagnose typos.
1005
 
1006
  case $ac_dashdash$ac_option in
1007
  --)
1008
    ac_dashdash=yes ;;
1009
 
1010
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1011
    ac_prev=bindir ;;
1012
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1013
    bindir=$ac_optarg ;;
1014
 
1015
  -build | --build | --buil | --bui | --bu)
1016
    ac_prev=build_alias ;;
1017
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1018
    build_alias=$ac_optarg ;;
1019
 
1020
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1021
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1022
    ac_prev=cache_file ;;
1023
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1024
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1025
    cache_file=$ac_optarg ;;
1026
 
1027
  --config-cache | -C)
1028
    cache_file=config.cache ;;
1029
 
1030
  -datadir | --datadir | --datadi | --datad)
1031
    ac_prev=datadir ;;
1032
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1033
    datadir=$ac_optarg ;;
1034
 
1035
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1036
  | --dataroo | --dataro | --datar)
1037
    ac_prev=datarootdir ;;
1038
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1039
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1040
    datarootdir=$ac_optarg ;;
1041
 
1042
  -disable-* | --disable-*)
1043 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1044 19 jeremybenn
    # Reject names that are not valid shell variable names.
1045 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1046 346 jeremybenn
      as_fn_error "invalid feature name: $ac_useropt"
1047 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1048
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1049
    case $ac_user_opts in
1050
      *"
1051
"enable_$ac_useropt"
1052
"*) ;;
1053
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1054
         ac_unrecognized_sep=', ';;
1055
    esac
1056
    eval enable_$ac_useropt=no ;;
1057 19 jeremybenn
 
1058
  -docdir | --docdir | --docdi | --doc | --do)
1059
    ac_prev=docdir ;;
1060
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1061
    docdir=$ac_optarg ;;
1062
 
1063
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1064
    ac_prev=dvidir ;;
1065
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1066
    dvidir=$ac_optarg ;;
1067
 
1068
  -enable-* | --enable-*)
1069 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1070 19 jeremybenn
    # Reject names that are not valid shell variable names.
1071 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1072 346 jeremybenn
      as_fn_error "invalid feature name: $ac_useropt"
1073 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1074
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075
    case $ac_user_opts in
1076
      *"
1077
"enable_$ac_useropt"
1078
"*) ;;
1079
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1080
         ac_unrecognized_sep=', ';;
1081
    esac
1082
    eval enable_$ac_useropt=\$ac_optarg ;;
1083 19 jeremybenn
 
1084
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1085
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1086
  | --exec | --exe | --ex)
1087
    ac_prev=exec_prefix ;;
1088
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1089
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1090
  | --exec=* | --exe=* | --ex=*)
1091
    exec_prefix=$ac_optarg ;;
1092
 
1093
  -gas | --gas | --ga | --g)
1094
    # Obsolete; use --with-gas.
1095
    with_gas=yes ;;
1096
 
1097
  -help | --help | --hel | --he | -h)
1098
    ac_init_help=long ;;
1099
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1100
    ac_init_help=recursive ;;
1101
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1102
    ac_init_help=short ;;
1103
 
1104
  -host | --host | --hos | --ho)
1105
    ac_prev=host_alias ;;
1106
  -host=* | --host=* | --hos=* | --ho=*)
1107
    host_alias=$ac_optarg ;;
1108
 
1109
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1110
    ac_prev=htmldir ;;
1111
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1112
  | --ht=*)
1113
    htmldir=$ac_optarg ;;
1114
 
1115
  -includedir | --includedir | --includedi | --included | --include \
1116
  | --includ | --inclu | --incl | --inc)
1117
    ac_prev=includedir ;;
1118
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1119
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1120
    includedir=$ac_optarg ;;
1121
 
1122
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1123
    ac_prev=infodir ;;
1124
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1125
    infodir=$ac_optarg ;;
1126
 
1127
  -libdir | --libdir | --libdi | --libd)
1128
    ac_prev=libdir ;;
1129
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1130
    libdir=$ac_optarg ;;
1131
 
1132
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1133
  | --libexe | --libex | --libe)
1134
    ac_prev=libexecdir ;;
1135
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1136
  | --libexe=* | --libex=* | --libe=*)
1137
    libexecdir=$ac_optarg ;;
1138
 
1139
  -localedir | --localedir | --localedi | --localed | --locale)
1140
    ac_prev=localedir ;;
1141
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1142
    localedir=$ac_optarg ;;
1143
 
1144
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1145
  | --localstate | --localstat | --localsta | --localst | --locals)
1146
    ac_prev=localstatedir ;;
1147
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1148
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1149
    localstatedir=$ac_optarg ;;
1150
 
1151
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1152
    ac_prev=mandir ;;
1153
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1154
    mandir=$ac_optarg ;;
1155
 
1156
  -nfp | --nfp | --nf)
1157
    # Obsolete; use --without-fp.
1158
    with_fp=no ;;
1159
 
1160
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1161
  | --no-cr | --no-c | -n)
1162
    no_create=yes ;;
1163
 
1164
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1165
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1166
    no_recursion=yes ;;
1167
 
1168
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1169
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1170
  | --oldin | --oldi | --old | --ol | --o)
1171
    ac_prev=oldincludedir ;;
1172
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1173
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1174
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1175
    oldincludedir=$ac_optarg ;;
1176
 
1177
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1178
    ac_prev=prefix ;;
1179
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1180
    prefix=$ac_optarg ;;
1181
 
1182
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1183
  | --program-pre | --program-pr | --program-p)
1184
    ac_prev=program_prefix ;;
1185
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1186
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1187
    program_prefix=$ac_optarg ;;
1188
 
1189
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1190
  | --program-suf | --program-su | --program-s)
1191
    ac_prev=program_suffix ;;
1192
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1193
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1194
    program_suffix=$ac_optarg ;;
1195
 
1196
  -program-transform-name | --program-transform-name \
1197
  | --program-transform-nam | --program-transform-na \
1198
  | --program-transform-n | --program-transform- \
1199
  | --program-transform | --program-transfor \
1200
  | --program-transfo | --program-transf \
1201
  | --program-trans | --program-tran \
1202
  | --progr-tra | --program-tr | --program-t)
1203
    ac_prev=program_transform_name ;;
1204
  -program-transform-name=* | --program-transform-name=* \
1205
  | --program-transform-nam=* | --program-transform-na=* \
1206
  | --program-transform-n=* | --program-transform-=* \
1207
  | --program-transform=* | --program-transfor=* \
1208
  | --program-transfo=* | --program-transf=* \
1209
  | --program-trans=* | --program-tran=* \
1210
  | --progr-tra=* | --program-tr=* | --program-t=*)
1211
    program_transform_name=$ac_optarg ;;
1212
 
1213
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1214
    ac_prev=pdfdir ;;
1215
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1216
    pdfdir=$ac_optarg ;;
1217
 
1218
  -psdir | --psdir | --psdi | --psd | --ps)
1219
    ac_prev=psdir ;;
1220
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1221
    psdir=$ac_optarg ;;
1222
 
1223
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1224
  | -silent | --silent | --silen | --sile | --sil)
1225
    silent=yes ;;
1226
 
1227
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1228
    ac_prev=sbindir ;;
1229
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1230
  | --sbi=* | --sb=*)
1231
    sbindir=$ac_optarg ;;
1232
 
1233
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1234
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1235
  | --sharedst | --shareds | --shared | --share | --shar \
1236
  | --sha | --sh)
1237
    ac_prev=sharedstatedir ;;
1238
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1239
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1240
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1241
  | --sha=* | --sh=*)
1242
    sharedstatedir=$ac_optarg ;;
1243
 
1244
  -site | --site | --sit)
1245
    ac_prev=site ;;
1246
  -site=* | --site=* | --sit=*)
1247
    site=$ac_optarg ;;
1248
 
1249
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1250
    ac_prev=srcdir ;;
1251
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1252
    srcdir=$ac_optarg ;;
1253
 
1254
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1255
  | --syscon | --sysco | --sysc | --sys | --sy)
1256
    ac_prev=sysconfdir ;;
1257
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1258
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1259
    sysconfdir=$ac_optarg ;;
1260
 
1261
  -target | --target | --targe | --targ | --tar | --ta | --t)
1262
    ac_prev=target_alias ;;
1263
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1264
    target_alias=$ac_optarg ;;
1265
 
1266
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1267
    verbose=yes ;;
1268
 
1269
  -version | --version | --versio | --versi | --vers | -V)
1270
    ac_init_version=: ;;
1271
 
1272
  -with-* | --with-*)
1273 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1274 19 jeremybenn
    # Reject names that are not valid shell variable names.
1275 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1276 346 jeremybenn
      as_fn_error "invalid package name: $ac_useropt"
1277 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1278
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1279
    case $ac_user_opts in
1280
      *"
1281
"with_$ac_useropt"
1282
"*) ;;
1283
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1284
         ac_unrecognized_sep=', ';;
1285
    esac
1286
    eval with_$ac_useropt=\$ac_optarg ;;
1287 19 jeremybenn
 
1288
  -without-* | --without-*)
1289 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1290 19 jeremybenn
    # Reject names that are not valid shell variable names.
1291 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1292 346 jeremybenn
      as_fn_error "invalid package name: $ac_useropt"
1293 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1294
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1295
    case $ac_user_opts in
1296
      *"
1297
"with_$ac_useropt"
1298
"*) ;;
1299
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1300
         ac_unrecognized_sep=', ';;
1301
    esac
1302
    eval with_$ac_useropt=no ;;
1303 19 jeremybenn
 
1304
  --x)
1305
    # Obsolete; use --with-x.
1306
    with_x=yes ;;
1307
 
1308
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1309
  | --x-incl | --x-inc | --x-in | --x-i)
1310
    ac_prev=x_includes ;;
1311
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1312
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1313
    x_includes=$ac_optarg ;;
1314
 
1315
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1316
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1317
    ac_prev=x_libraries ;;
1318
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1319
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1320
    x_libraries=$ac_optarg ;;
1321
 
1322 346 jeremybenn
  -*) as_fn_error "unrecognized option: \`$ac_option'
1323
Try \`$0 --help' for more information."
1324 19 jeremybenn
    ;;
1325
 
1326
  *=*)
1327
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1328
    # Reject names that are not valid shell variable names.
1329 346 jeremybenn
    case $ac_envvar in #(
1330
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1331
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1332
    esac
1333 19 jeremybenn
    eval $ac_envvar=\$ac_optarg
1334
    export $ac_envvar ;;
1335
 
1336
  *)
1337
    # FIXME: should be removed in autoconf 3.0.
1338 82 jeremybenn
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1339 19 jeremybenn
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1340 82 jeremybenn
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1341 19 jeremybenn
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1342
    ;;
1343
 
1344
  esac
1345
done
1346
 
1347
if test -n "$ac_prev"; then
1348
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1349 346 jeremybenn
  as_fn_error "missing argument to $ac_option"
1350 19 jeremybenn
fi
1351
 
1352 82 jeremybenn
if test -n "$ac_unrecognized_opts"; then
1353
  case $enable_option_checking in
1354
    no) ;;
1355 346 jeremybenn
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1356 82 jeremybenn
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1357
  esac
1358
fi
1359
 
1360
# Check all directory arguments for consistency.
1361 19 jeremybenn
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1362
                datadir sysconfdir sharedstatedir localstatedir includedir \
1363
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1364
                libdir localedir mandir
1365
do
1366
  eval ac_val=\$$ac_var
1367 82 jeremybenn
  # Remove trailing slashes.
1368 19 jeremybenn
  case $ac_val in
1369 82 jeremybenn
    */ )
1370
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1371
      eval $ac_var=\$ac_val;;
1372
  esac
1373
  # Be sure to have absolute directory names.
1374
  case $ac_val in
1375 19 jeremybenn
    [\\/$]* | ?:[\\/]* )  continue;;
1376
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1377
  esac
1378 346 jeremybenn
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1379 19 jeremybenn
done
1380
 
1381
# There might be people who depend on the old broken behavior: `$host'
1382
# used to hold the argument of --host etc.
1383
# FIXME: To remove some day.
1384
build=$build_alias
1385
host=$host_alias
1386
target=$target_alias
1387
 
1388
# FIXME: To remove some day.
1389
if test "x$host_alias" != x; then
1390
  if test "x$build_alias" = x; then
1391
    cross_compiling=maybe
1392 82 jeremybenn
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1393 19 jeremybenn
    If a cross compiler is detected then cross compile mode will be used." >&2
1394
  elif test "x$build_alias" != "x$host_alias"; then
1395
    cross_compiling=yes
1396
  fi
1397
fi
1398
 
1399
ac_tool_prefix=
1400
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1401
 
1402
test "$silent" = yes && exec 6>/dev/null
1403
 
1404
 
1405
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1406
ac_ls_di=`ls -di .` &&
1407
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1408 346 jeremybenn
  as_fn_error "working directory cannot be determined"
1409 19 jeremybenn
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1410 346 jeremybenn
  as_fn_error "pwd does not report name of working directory"
1411 19 jeremybenn
 
1412
 
1413
# Find the source files, if location was not specified.
1414
if test -z "$srcdir"; then
1415
  ac_srcdir_defaulted=yes
1416
  # Try the directory containing this script, then the parent directory.
1417 82 jeremybenn
  ac_confdir=`$as_dirname -- "$as_myself" ||
1418
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1419
         X"$as_myself" : 'X\(//\)[^/]' \| \
1420
         X"$as_myself" : 'X\(//\)$' \| \
1421
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1422
$as_echo X"$as_myself" |
1423 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1424
            s//\1/
1425
            q
1426
          }
1427
          /^X\(\/\/\)[^/].*/{
1428
            s//\1/
1429
            q
1430
          }
1431
          /^X\(\/\/\)$/{
1432
            s//\1/
1433
            q
1434
          }
1435
          /^X\(\/\).*/{
1436
            s//\1/
1437
            q
1438
          }
1439
          s/.*/./; q'`
1440
  srcdir=$ac_confdir
1441
  if test ! -r "$srcdir/$ac_unique_file"; then
1442
    srcdir=..
1443
  fi
1444
else
1445
  ac_srcdir_defaulted=no
1446
fi
1447
if test ! -r "$srcdir/$ac_unique_file"; then
1448
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1449 346 jeremybenn
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1450 19 jeremybenn
fi
1451
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1452
ac_abs_confdir=`(
1453 346 jeremybenn
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1454 19 jeremybenn
        pwd)`
1455
# When building in place, set srcdir=.
1456
if test "$ac_abs_confdir" = "$ac_pwd"; then
1457
  srcdir=.
1458
fi
1459
# Remove unnecessary trailing slashes from srcdir.
1460
# Double slashes in file names in object file debugging info
1461
# mess up M-x gdb in Emacs.
1462
case $srcdir in
1463
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1464
esac
1465
for ac_var in $ac_precious_vars; do
1466
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1467
  eval ac_env_${ac_var}_value=\$${ac_var}
1468
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1469
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1470
done
1471
 
1472
#
1473
# Report the --help message.
1474
#
1475
if test "$ac_init_help" = "long"; then
1476
  # Omit some internal or obsolete options to make the list less imposing.
1477
  # This message is too long to be a string in the A/UX 3.1 sh.
1478
  cat <<_ACEOF
1479 432 jeremybenn
\`configure' configures or1ksim 2010-11-25 to adapt to many kinds of systems.
1480 19 jeremybenn
 
1481
Usage: $0 [OPTION]... [VAR=VALUE]...
1482
 
1483
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1484
VAR=VALUE.  See below for descriptions of some of the useful variables.
1485
 
1486
Defaults for the options are specified in brackets.
1487
 
1488
Configuration:
1489
  -h, --help              display this help and exit
1490
      --help=short        display options specific to this package
1491
      --help=recursive    display the short help of all the included packages
1492
  -V, --version           display version information and exit
1493
  -q, --quiet, --silent   do not print \`checking...' messages
1494
      --cache-file=FILE   cache test results in FILE [disabled]
1495
  -C, --config-cache      alias for \`--cache-file=config.cache'
1496
  -n, --no-create         do not create output files
1497
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1498
 
1499
Installation directories:
1500
  --prefix=PREFIX         install architecture-independent files in PREFIX
1501 82 jeremybenn
                          [$ac_default_prefix]
1502 19 jeremybenn
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1503 82 jeremybenn
                          [PREFIX]
1504 19 jeremybenn
 
1505
By default, \`make install' will install all the files in
1506
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1507
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1508
for instance \`--prefix=\$HOME'.
1509
 
1510
For better control, use the options below.
1511
 
1512
Fine tuning of the installation directories:
1513 82 jeremybenn
  --bindir=DIR            user executables [EPREFIX/bin]
1514
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1515
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1516
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1517
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1518
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1519
  --libdir=DIR            object code libraries [EPREFIX/lib]
1520
  --includedir=DIR        C header files [PREFIX/include]
1521
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1522
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1523
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1524
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1525
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1526
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1527
  --docdir=DIR            documentation root [DATAROOTDIR/doc/or1ksim]
1528
  --htmldir=DIR           html documentation [DOCDIR]
1529
  --dvidir=DIR            dvi documentation [DOCDIR]
1530
  --pdfdir=DIR            pdf documentation [DOCDIR]
1531
  --psdir=DIR             ps documentation [DOCDIR]
1532 19 jeremybenn
_ACEOF
1533
 
1534
  cat <<\_ACEOF
1535
 
1536
Program names:
1537
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1538
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1539
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1540
 
1541
System types:
1542
  --build=BUILD     configure for building on BUILD [guessed]
1543
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1544
  --target=TARGET   configure for building compilers for TARGET [HOST]
1545
_ACEOF
1546
fi
1547
 
1548
if test -n "$ac_init_help"; then
1549
  case $ac_init_help in
1550 432 jeremybenn
     short | recursive ) echo "Configuration of or1ksim 2010-11-25:";;
1551 19 jeremybenn
   esac
1552
  cat <<\_ACEOF
1553
 
1554
Optional Features:
1555 82 jeremybenn
  --disable-option-checking  ignore unrecognized --enable/--with options
1556 19 jeremybenn
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1557
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1558
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1559
  --enable-static[=PKGS]  build static libraries [default=yes]
1560
  --enable-fast-install[=PKGS]
1561
                          optimize for fast installation [default=yes]
1562
  --disable-libtool-lock  avoid locking (might break parallel builds)
1563
  --disable-dependency-tracking  speeds up one-time build
1564
  --enable-dependency-tracking   do not reject slow dependency extractors
1565
  --enable-profiling      generate profiling code
1566
  --enable-execution Execution style to use (simple/complex/dynamic)
1567
  --enable-ethphy    compiles sim with ethernet phy support
1568 127 jeremybenn
  --enable-unsigned-xori    l.xori immediate operand treated as unsigned
1569 19 jeremybenn
  --enable-range-stats      Specifies, whether we should do register accesses over time analysis.
1570
  --enable-debug          enable library debugging symbols
1571
 
1572
Optional Packages:
1573
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1574
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1575
  --with-pic              try to use only PIC/non-PIC objects [default=use
1576
                          both]
1577 82 jeremybenn
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1578 19 jeremybenn
 
1579
Some influential environment variables:
1580
  CC          C compiler command
1581
  CFLAGS      C compiler flags
1582
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1583
              nonstandard directory 
1584
  LIBS        libraries to pass to the linker, e.g. -l
1585 432 jeremybenn
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I if
1586 19 jeremybenn
              you have headers in a nonstandard directory 
1587
  CPP         C preprocessor
1588 82 jeremybenn
  CCAS        assembler compiler command (defaults to CC)
1589
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1590 19 jeremybenn
 
1591
Use these variables to override the choices made by `configure' or to help
1592
it to find libraries and programs with nonstandard names/locations.
1593
 
1594
Report bugs to .
1595
_ACEOF
1596
ac_status=$?
1597
fi
1598
 
1599
if test "$ac_init_help" = "recursive"; then
1600
  # If there are subdirs, report their specific --help.
1601
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1602 82 jeremybenn
    test -d "$ac_dir" ||
1603
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1604
      continue
1605 19 jeremybenn
    ac_builddir=.
1606
 
1607
case "$ac_dir" in
1608
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1609
*)
1610 82 jeremybenn
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1611 19 jeremybenn
  # A ".." for each directory in $ac_dir_suffix.
1612 82 jeremybenn
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1613 19 jeremybenn
  case $ac_top_builddir_sub in
1614
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1616
  esac ;;
1617
esac
1618
ac_abs_top_builddir=$ac_pwd
1619
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1620
# for backward compatibility:
1621
ac_top_builddir=$ac_top_build_prefix
1622
 
1623
case $srcdir in
1624
  .)  # We are building in place.
1625
    ac_srcdir=.
1626
    ac_top_srcdir=$ac_top_builddir_sub
1627
    ac_abs_top_srcdir=$ac_pwd ;;
1628
  [\\/]* | ?:[\\/]* )  # Absolute name.
1629
    ac_srcdir=$srcdir$ac_dir_suffix;
1630
    ac_top_srcdir=$srcdir
1631
    ac_abs_top_srcdir=$srcdir ;;
1632
  *) # Relative name.
1633
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1634
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1635
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1636
esac
1637
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1638
 
1639
    cd "$ac_dir" || { ac_status=$?; continue; }
1640
    # Check for guested configure.
1641
    if test -f "$ac_srcdir/configure.gnu"; then
1642
      echo &&
1643
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1644
    elif test -f "$ac_srcdir/configure"; then
1645
      echo &&
1646
      $SHELL "$ac_srcdir/configure" --help=recursive
1647
    else
1648 82 jeremybenn
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1649 19 jeremybenn
    fi || ac_status=$?
1650
    cd "$ac_pwd" || { ac_status=$?; break; }
1651
  done
1652
fi
1653
 
1654
test -n "$ac_init_help" && exit $ac_status
1655
if $ac_init_version; then
1656
  cat <<\_ACEOF
1657 432 jeremybenn
or1ksim configure 2010-11-25
1658
generated by GNU Autoconf 2.65
1659 19 jeremybenn
 
1660 346 jeremybenn
Copyright (C) 2009 Free Software Foundation, Inc.
1661 19 jeremybenn
This configure script is free software; the Free Software Foundation
1662
gives unlimited permission to copy, distribute and modify it.
1663 82 jeremybenn
 
1664
Copyright (C) 1999-2008 OpenCores
1665
Copyright (C) 2008, 2010 Embecosm Limited
1666
 
1667
Contributor Jeremy Bennett 
1668
 
1669
This file is part of OpenRISC 1000 Architectural Simulator.
1670
 
1671
This program is free software; you can redistribute it and/or modify it
1672
under the terms of the GNU General Public License as published by the Free
1673
Software Foundation; either version 3 of the License, or (at your option)
1674
any later version.
1675
 
1676
This program is distributed in the hope that it will be useful, but WITHOUT
1677
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1678
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
1679
more details.
1680
 
1681
You should have received a copy of the GNU General Public License along
1682
with this program.  If not, see .
1683 19 jeremybenn
_ACEOF
1684
  exit
1685
fi
1686 346 jeremybenn
 
1687
## ------------------------ ##
1688
## Autoconf initialization. ##
1689
## ------------------------ ##
1690
 
1691
# ac_fn_c_try_compile LINENO
1692
# --------------------------
1693
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1694
ac_fn_c_try_compile ()
1695
{
1696
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697
  rm -f conftest.$ac_objext
1698
  if { { ac_try="$ac_compile"
1699
case "(($ac_try" in
1700
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701
  *) ac_try_echo=$ac_try;;
1702
esac
1703
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704
$as_echo "$ac_try_echo"; } >&5
1705
  (eval "$ac_compile") 2>conftest.err
1706
  ac_status=$?
1707
  if test -s conftest.err; then
1708
    grep -v '^ *+' conftest.err >conftest.er1
1709
    cat conftest.er1 >&5
1710
    mv -f conftest.er1 conftest.err
1711
  fi
1712
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713
  test $ac_status = 0; } && {
1714
         test -z "$ac_c_werror_flag" ||
1715
         test ! -s conftest.err
1716
       } && test -s conftest.$ac_objext; then :
1717
  ac_retval=0
1718
else
1719
  $as_echo "$as_me: failed program was:" >&5
1720
sed 's/^/| /' conftest.$ac_ext >&5
1721
 
1722
        ac_retval=1
1723
fi
1724
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1725 432 jeremybenn
  as_fn_set_status $ac_retval
1726 346 jeremybenn
 
1727
} # ac_fn_c_try_compile
1728
 
1729
# ac_fn_c_try_cpp LINENO
1730
# ----------------------
1731
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1732
ac_fn_c_try_cpp ()
1733
{
1734
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1736
case "(($ac_try" in
1737
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738
  *) ac_try_echo=$ac_try;;
1739
esac
1740
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741
$as_echo "$ac_try_echo"; } >&5
1742
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1743
  ac_status=$?
1744
  if test -s conftest.err; then
1745
    grep -v '^ *+' conftest.err >conftest.er1
1746
    cat conftest.er1 >&5
1747
    mv -f conftest.er1 conftest.err
1748
  fi
1749
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750
  test $ac_status = 0; } >/dev/null && {
1751
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1752
         test ! -s conftest.err
1753
       }; then :
1754
  ac_retval=0
1755
else
1756
  $as_echo "$as_me: failed program was:" >&5
1757
sed 's/^/| /' conftest.$ac_ext >&5
1758
 
1759
    ac_retval=1
1760
fi
1761
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1762 432 jeremybenn
  as_fn_set_status $ac_retval
1763 346 jeremybenn
 
1764
} # ac_fn_c_try_cpp
1765
 
1766
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1767
# -------------------------------------------------------
1768
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1769
# the include files in INCLUDES and setting the cache variable VAR
1770
# accordingly.
1771
ac_fn_c_check_header_mongrel ()
1772
{
1773
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1775
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776
$as_echo_n "checking for $2... " >&6; }
1777
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1778
  $as_echo_n "(cached) " >&6
1779
fi
1780
eval ac_res=\$$3
1781
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782
$as_echo "$ac_res" >&6; }
1783
else
1784
  # Is the header compilable?
1785
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1786
$as_echo_n "checking $2 usability... " >&6; }
1787
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788
/* end confdefs.h.  */
1789
$4
1790
#include <$2>
1791
_ACEOF
1792
if ac_fn_c_try_compile "$LINENO"; then :
1793
  ac_header_compiler=yes
1794
else
1795
  ac_header_compiler=no
1796
fi
1797
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1798
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1799
$as_echo "$ac_header_compiler" >&6; }
1800
 
1801
# Is the header present?
1802
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1803
$as_echo_n "checking $2 presence... " >&6; }
1804
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805
/* end confdefs.h.  */
1806
#include <$2>
1807
_ACEOF
1808
if ac_fn_c_try_cpp "$LINENO"; then :
1809
  ac_header_preproc=yes
1810
else
1811
  ac_header_preproc=no
1812
fi
1813
rm -f conftest.err conftest.$ac_ext
1814
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1815
$as_echo "$ac_header_preproc" >&6; }
1816
 
1817
# So?  What about this header?
1818
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1819
  yes:no: )
1820
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1821
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1822
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1823
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1824
    ;;
1825
  no:yes:* )
1826
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1827
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1828
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1829
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1830
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1831
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1832
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1833
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1834
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1835
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1836
( cat <<\_ASBOX
1837
## ------------------------------------- ##
1838
## Report this to openrisc@opencores.org ##
1839
## ------------------------------------- ##
1840
_ASBOX
1841
     ) | sed "s/^/$as_me: WARNING:     /" >&2
1842
    ;;
1843
esac
1844
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1845
$as_echo_n "checking for $2... " >&6; }
1846
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1847
  $as_echo_n "(cached) " >&6
1848
else
1849
  eval "$3=\$ac_header_compiler"
1850
fi
1851
eval ac_res=\$$3
1852
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1853
$as_echo "$ac_res" >&6; }
1854
fi
1855
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1856
 
1857
} # ac_fn_c_check_header_mongrel
1858
 
1859
# ac_fn_c_try_run LINENO
1860
# ----------------------
1861
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1862
# that executables *can* be run.
1863
ac_fn_c_try_run ()
1864
{
1865
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866
  if { { ac_try="$ac_link"
1867
case "(($ac_try" in
1868
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869
  *) ac_try_echo=$ac_try;;
1870
esac
1871
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872
$as_echo "$ac_try_echo"; } >&5
1873
  (eval "$ac_link") 2>&5
1874
  ac_status=$?
1875
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1877
  { { case "(($ac_try" in
1878
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1879
  *) ac_try_echo=$ac_try;;
1880
esac
1881
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1882
$as_echo "$ac_try_echo"; } >&5
1883
  (eval "$ac_try") 2>&5
1884
  ac_status=$?
1885
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886
  test $ac_status = 0; }; }; then :
1887
  ac_retval=0
1888
else
1889
  $as_echo "$as_me: program exited with status $ac_status" >&5
1890
       $as_echo "$as_me: failed program was:" >&5
1891
sed 's/^/| /' conftest.$ac_ext >&5
1892
 
1893
       ac_retval=$ac_status
1894
fi
1895
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1896
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1897 432 jeremybenn
  as_fn_set_status $ac_retval
1898 346 jeremybenn
 
1899
} # ac_fn_c_try_run
1900
 
1901
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1902
# -------------------------------------------------------
1903
# Tests whether HEADER exists and can be compiled using the include files in
1904
# INCLUDES, setting the cache variable VAR accordingly.
1905
ac_fn_c_check_header_compile ()
1906
{
1907
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1909
$as_echo_n "checking for $2... " >&6; }
1910
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1911
  $as_echo_n "(cached) " >&6
1912
else
1913
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914
/* end confdefs.h.  */
1915
$4
1916
#include <$2>
1917
_ACEOF
1918
if ac_fn_c_try_compile "$LINENO"; then :
1919
  eval "$3=yes"
1920
else
1921
  eval "$3=no"
1922
fi
1923
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924
fi
1925
eval ac_res=\$$3
1926
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927
$as_echo "$ac_res" >&6; }
1928
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1929
 
1930
} # ac_fn_c_check_header_compile
1931
 
1932
# ac_fn_c_try_link LINENO
1933
# -----------------------
1934
# Try to link conftest.$ac_ext, and return whether this succeeded.
1935
ac_fn_c_try_link ()
1936
{
1937
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938
  rm -f conftest.$ac_objext conftest$ac_exeext
1939
  if { { ac_try="$ac_link"
1940
case "(($ac_try" in
1941
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1942
  *) ac_try_echo=$ac_try;;
1943
esac
1944
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1945
$as_echo "$ac_try_echo"; } >&5
1946
  (eval "$ac_link") 2>conftest.err
1947
  ac_status=$?
1948
  if test -s conftest.err; then
1949
    grep -v '^ *+' conftest.err >conftest.er1
1950
    cat conftest.er1 >&5
1951
    mv -f conftest.er1 conftest.err
1952
  fi
1953
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1954
  test $ac_status = 0; } && {
1955
         test -z "$ac_c_werror_flag" ||
1956
         test ! -s conftest.err
1957
       } && test -s conftest$ac_exeext && {
1958
         test "$cross_compiling" = yes ||
1959
         $as_test_x conftest$ac_exeext
1960
       }; then :
1961
  ac_retval=0
1962
else
1963
  $as_echo "$as_me: failed program was:" >&5
1964
sed 's/^/| /' conftest.$ac_ext >&5
1965
 
1966
        ac_retval=1
1967
fi
1968
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1969
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1970
  # interfere with the next link command; also delete a directory that is
1971
  # left behind by Apple's compiler.  We do this before executing the actions.
1972
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1973
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1974 432 jeremybenn
  as_fn_set_status $ac_retval
1975 346 jeremybenn
 
1976
} # ac_fn_c_try_link
1977
 
1978
# ac_fn_c_check_func LINENO FUNC VAR
1979
# ----------------------------------
1980
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1981
ac_fn_c_check_func ()
1982
{
1983
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985
$as_echo_n "checking for $2... " >&6; }
1986
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1987
  $as_echo_n "(cached) " >&6
1988
else
1989
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990
/* end confdefs.h.  */
1991
/* Define $2 to an innocuous variant, in case  declares $2.
1992
   For example, HP-UX 11i  declares gettimeofday.  */
1993
#define $2 innocuous_$2
1994
 
1995
/* System header to define __stub macros and hopefully few prototypes,
1996
    which can conflict with char $2 (); below.
1997
    Prefer  to  if __STDC__ is defined, since
1998
     exists even on freestanding compilers.  */
1999
 
2000
#ifdef __STDC__
2001
# include 
2002
#else
2003
# include 
2004
#endif
2005
 
2006
#undef $2
2007
 
2008
/* Override any GCC internal prototype to avoid an error.
2009
   Use char because int might match the return type of a GCC
2010
   builtin and then its argument prototype would still apply.  */
2011
#ifdef __cplusplus
2012
extern "C"
2013
#endif
2014
char $2 ();
2015
/* The GNU C library defines this for functions which it implements
2016
    to always fail with ENOSYS.  Some functions are actually named
2017
    something starting with __ and the normal name is an alias.  */
2018
#if defined __stub_$2 || defined __stub___$2
2019
choke me
2020
#endif
2021
 
2022
int
2023
main ()
2024
{
2025
return $2 ();
2026
  ;
2027
  return 0;
2028
}
2029
_ACEOF
2030
if ac_fn_c_try_link "$LINENO"; then :
2031
  eval "$3=yes"
2032
else
2033
  eval "$3=no"
2034
fi
2035
rm -f core conftest.err conftest.$ac_objext \
2036
    conftest$ac_exeext conftest.$ac_ext
2037
fi
2038
eval ac_res=\$$3
2039
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040
$as_echo "$ac_res" >&6; }
2041
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2042
 
2043
} # ac_fn_c_check_func
2044
 
2045
# ac_fn_c_check_decl LINENO SYMBOL VAR
2046
# ------------------------------------
2047
# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2048
ac_fn_c_check_decl ()
2049
{
2050
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2052
$as_echo_n "checking whether $2 is declared... " >&6; }
2053
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2054
  $as_echo_n "(cached) " >&6
2055
else
2056
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057
/* end confdefs.h.  */
2058
$4
2059
int
2060
main ()
2061
{
2062
#ifndef $2
2063
  (void) $2;
2064
#endif
2065
 
2066
  ;
2067
  return 0;
2068
}
2069
_ACEOF
2070
if ac_fn_c_try_compile "$LINENO"; then :
2071
  eval "$3=yes"
2072
else
2073
  eval "$3=no"
2074
fi
2075
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076
fi
2077
eval ac_res=\$$3
2078
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079
$as_echo "$ac_res" >&6; }
2080
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2081
 
2082
} # ac_fn_c_check_decl
2083
 
2084
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2085
# -------------------------------------------
2086
# Tests whether TYPE exists after having included INCLUDES, setting cache
2087
# variable VAR accordingly.
2088
ac_fn_c_check_type ()
2089
{
2090
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2091
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2092
$as_echo_n "checking for $2... " >&6; }
2093
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2094
  $as_echo_n "(cached) " >&6
2095
else
2096
  eval "$3=no"
2097
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098
/* end confdefs.h.  */
2099
$4
2100
int
2101
main ()
2102
{
2103
if (sizeof ($2))
2104
         return 0;
2105
  ;
2106
  return 0;
2107
}
2108
_ACEOF
2109
if ac_fn_c_try_compile "$LINENO"; then :
2110
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111
/* end confdefs.h.  */
2112
$4
2113
int
2114
main ()
2115
{
2116
if (sizeof (($2)))
2117
            return 0;
2118
  ;
2119
  return 0;
2120
}
2121
_ACEOF
2122
if ac_fn_c_try_compile "$LINENO"; then :
2123
 
2124
else
2125
  eval "$3=yes"
2126
fi
2127
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2128
fi
2129
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130
fi
2131
eval ac_res=\$$3
2132
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2133
$as_echo "$ac_res" >&6; }
2134
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2135
 
2136
} # ac_fn_c_check_type
2137
 
2138
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2139
# --------------------------------------------
2140
# Tries to find the compile-time value of EXPR in a program that includes
2141
# INCLUDES, setting VAR accordingly. Returns whether the value could be
2142
# computed
2143
ac_fn_c_compute_int ()
2144
{
2145
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146
  if test "$cross_compiling" = yes; then
2147
    # Depending upon the size, compute the lo and hi bounds.
2148
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149
/* end confdefs.h.  */
2150
$4
2151
int
2152
main ()
2153
{
2154
static int test_array [1 - 2 * !(($2) >= 0)];
2155
test_array [0] = 0
2156
 
2157
  ;
2158
  return 0;
2159
}
2160
_ACEOF
2161
if ac_fn_c_try_compile "$LINENO"; then :
2162
  ac_lo=0 ac_mid=0
2163
  while :; do
2164
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165
/* end confdefs.h.  */
2166
$4
2167
int
2168
main ()
2169
{
2170
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2171
test_array [0] = 0
2172
 
2173
  ;
2174
  return 0;
2175
}
2176
_ACEOF
2177
if ac_fn_c_try_compile "$LINENO"; then :
2178
  ac_hi=$ac_mid; break
2179
else
2180
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2181
                        if test $ac_lo -le $ac_mid; then
2182
                          ac_lo= ac_hi=
2183
                          break
2184
                        fi
2185
                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2186
fi
2187
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2188
  done
2189
else
2190
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191
/* end confdefs.h.  */
2192
$4
2193
int
2194
main ()
2195
{
2196
static int test_array [1 - 2 * !(($2) < 0)];
2197
test_array [0] = 0
2198
 
2199
  ;
2200
  return 0;
2201
}
2202
_ACEOF
2203
if ac_fn_c_try_compile "$LINENO"; then :
2204
  ac_hi=-1 ac_mid=-1
2205
  while :; do
2206
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207
/* end confdefs.h.  */
2208
$4
2209
int
2210
main ()
2211
{
2212
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2213
test_array [0] = 0
2214
 
2215
  ;
2216
  return 0;
2217
}
2218
_ACEOF
2219
if ac_fn_c_try_compile "$LINENO"; then :
2220
  ac_lo=$ac_mid; break
2221
else
2222
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2223
                        if test $ac_mid -le $ac_hi; then
2224
                          ac_lo= ac_hi=
2225
                          break
2226
                        fi
2227
                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2228
fi
2229
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2230
  done
2231
else
2232
  ac_lo= ac_hi=
2233
fi
2234
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2235
fi
2236
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2237
# Binary search between lo and hi bounds.
2238
while test "x$ac_lo" != "x$ac_hi"; do
2239
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2240
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241
/* end confdefs.h.  */
2242
$4
2243
int
2244
main ()
2245
{
2246
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2247
test_array [0] = 0
2248
 
2249
  ;
2250
  return 0;
2251
}
2252
_ACEOF
2253
if ac_fn_c_try_compile "$LINENO"; then :
2254
  ac_hi=$ac_mid
2255
else
2256
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2257
fi
2258
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259
done
2260
case $ac_lo in #((
2261
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2262
'') ac_retval=1 ;;
2263
esac
2264
  else
2265
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266
/* end confdefs.h.  */
2267
$4
2268
static long int longval () { return $2; }
2269
static unsigned long int ulongval () { return $2; }
2270
#include 
2271
#include 
2272
int
2273
main ()
2274
{
2275
 
2276
  FILE *f = fopen ("conftest.val", "w");
2277
  if (! f)
2278
    return 1;
2279
  if (($2) < 0)
2280
    {
2281
      long int i = longval ();
2282
      if (i != ($2))
2283
        return 1;
2284
      fprintf (f, "%ld", i);
2285
    }
2286
  else
2287
    {
2288
      unsigned long int i = ulongval ();
2289
      if (i != ($2))
2290
        return 1;
2291
      fprintf (f, "%lu", i);
2292
    }
2293
  /* Do not output a trailing newline, as this causes \r\n confusion
2294
     on some platforms.  */
2295
  return ferror (f) || fclose (f) != 0;
2296
 
2297
  ;
2298
  return 0;
2299
}
2300
_ACEOF
2301
if ac_fn_c_try_run "$LINENO"; then :
2302
  echo >>conftest.val; read $3 
2303
else
2304
  ac_retval=1
2305
fi
2306
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2307
  conftest.$ac_objext conftest.beam conftest.$ac_ext
2308
rm -f conftest.val
2309
 
2310
  fi
2311
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2312 432 jeremybenn
  as_fn_set_status $ac_retval
2313 346 jeremybenn
 
2314
} # ac_fn_c_compute_int
2315 19 jeremybenn
cat >config.log <<_ACEOF
2316
This file contains any messages produced by compilers while
2317
running configure, to aid debugging if configure makes a mistake.
2318
 
2319 432 jeremybenn
It was created by or1ksim $as_me 2010-11-25, which was
2320
generated by GNU Autoconf 2.65.  Invocation command line was
2321 19 jeremybenn
 
2322
  $ $0 $@
2323
 
2324
_ACEOF
2325
exec 5>>config.log
2326
{
2327
cat <<_ASUNAME
2328
## --------- ##
2329
## Platform. ##
2330
## --------- ##
2331
 
2332
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2333
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2334
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2335
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2336
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2337
 
2338
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2339
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2340
 
2341
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2342
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2343
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2344
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2345
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2346
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2347
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2348
 
2349
_ASUNAME
2350
 
2351
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352
for as_dir in $PATH
2353
do
2354
  IFS=$as_save_IFS
2355
  test -z "$as_dir" && as_dir=.
2356 346 jeremybenn
    $as_echo "PATH: $as_dir"
2357
  done
2358 19 jeremybenn
IFS=$as_save_IFS
2359
 
2360
} >&5
2361
 
2362
cat >&5 <<_ACEOF
2363
 
2364
 
2365
## ----------- ##
2366
## Core tests. ##
2367
## ----------- ##
2368
 
2369
_ACEOF
2370
 
2371
 
2372
# Keep a trace of the command line.
2373
# Strip out --no-create and --no-recursion so they do not pile up.
2374
# Strip out --silent because we don't want to record it for future runs.
2375
# Also quote any args containing shell meta-characters.
2376
# Make two passes to allow for proper duplicate-argument suppression.
2377
ac_configure_args=
2378
ac_configure_args0=
2379
ac_configure_args1=
2380
ac_must_keep_next=false
2381
for ac_pass in 1 2
2382
do
2383
  for ac_arg
2384
  do
2385
    case $ac_arg in
2386
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2387
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2388
    | -silent | --silent | --silen | --sile | --sil)
2389
      continue ;;
2390
    *\'*)
2391 82 jeremybenn
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2392 19 jeremybenn
    esac
2393
    case $ac_pass in
2394 346 jeremybenn
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2395 19 jeremybenn
    2)
2396 346 jeremybenn
      as_fn_append ac_configure_args1 " '$ac_arg'"
2397 19 jeremybenn
      if test $ac_must_keep_next = true; then
2398
        ac_must_keep_next=false # Got value, back to normal.
2399
      else
2400
        case $ac_arg in
2401
          *=* | --config-cache | -C | -disable-* | --disable-* \
2402
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2403
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2404
          | -with-* | --with-* | -without-* | --without-* | --x)
2405
            case "$ac_configure_args0 " in
2406
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2407
            esac
2408
            ;;
2409
          -* ) ac_must_keep_next=true ;;
2410
        esac
2411
      fi
2412 346 jeremybenn
      as_fn_append ac_configure_args " '$ac_arg'"
2413 19 jeremybenn
      ;;
2414
    esac
2415
  done
2416
done
2417 346 jeremybenn
{ ac_configure_args0=; unset ac_configure_args0;}
2418
{ ac_configure_args1=; unset ac_configure_args1;}
2419 19 jeremybenn
 
2420
# When interrupted or exit'd, cleanup temporary files, and complete
2421
# config.log.  We remove comments because anyway the quotes in there
2422
# would cause problems or look ugly.
2423
# WARNING: Use '\'' to represent an apostrophe within the trap.
2424
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2425
trap 'exit_status=$?
2426
  # Save into config.log some information that might help in debugging.
2427
  {
2428
    echo
2429
 
2430
    cat <<\_ASBOX
2431
## ---------------- ##
2432
## Cache variables. ##
2433
## ---------------- ##
2434
_ASBOX
2435
    echo
2436
    # The following way of writing the cache mishandles newlines in values,
2437
(
2438
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2439
    eval ac_val=\$$ac_var
2440
    case $ac_val in #(
2441
    *${as_nl}*)
2442
      case $ac_var in #(
2443 346 jeremybenn
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2444 82 jeremybenn
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2445 19 jeremybenn
      esac
2446
      case $ac_var in #(
2447
      _ | IFS | as_nl) ;; #(
2448 82 jeremybenn
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2449 346 jeremybenn
      *) { eval $ac_var=; unset $ac_var;} ;;
2450 19 jeremybenn
      esac ;;
2451
    esac
2452
  done
2453
  (set) 2>&1 |
2454
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2455
    *${as_nl}ac_space=\ *)
2456
      sed -n \
2457
        "s/'\''/'\''\\\\'\'''\''/g;
2458
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2459
      ;; #(
2460
    *)
2461
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2462
      ;;
2463
    esac |
2464
    sort
2465
)
2466
    echo
2467
 
2468
    cat <<\_ASBOX
2469
## ----------------- ##
2470
## Output variables. ##
2471
## ----------------- ##
2472
_ASBOX
2473
    echo
2474
    for ac_var in $ac_subst_vars
2475
    do
2476
      eval ac_val=\$$ac_var
2477
      case $ac_val in
2478 82 jeremybenn
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2479 19 jeremybenn
      esac
2480 82 jeremybenn
      $as_echo "$ac_var='\''$ac_val'\''"
2481 19 jeremybenn
    done | sort
2482
    echo
2483
 
2484
    if test -n "$ac_subst_files"; then
2485
      cat <<\_ASBOX
2486
## ------------------- ##
2487
## File substitutions. ##
2488
## ------------------- ##
2489
_ASBOX
2490
      echo
2491
      for ac_var in $ac_subst_files
2492
      do
2493
        eval ac_val=\$$ac_var
2494
        case $ac_val in
2495 82 jeremybenn
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2496 19 jeremybenn
        esac
2497 82 jeremybenn
        $as_echo "$ac_var='\''$ac_val'\''"
2498 19 jeremybenn
      done | sort
2499
      echo
2500
    fi
2501
 
2502
    if test -s confdefs.h; then
2503
      cat <<\_ASBOX
2504
## ----------- ##
2505
## confdefs.h. ##
2506
## ----------- ##
2507
_ASBOX
2508
      echo
2509
      cat confdefs.h
2510
      echo
2511
    fi
2512
    test "$ac_signal" != 0 &&
2513 82 jeremybenn
      $as_echo "$as_me: caught signal $ac_signal"
2514
    $as_echo "$as_me: exit $exit_status"
2515 19 jeremybenn
  } >&5
2516
  rm -f core *.core core.conftest.* &&
2517
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2518
    exit $exit_status
2519
' 0
2520
for ac_signal in 1 2 13 15; do
2521 346 jeremybenn
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2522 19 jeremybenn
done
2523
ac_signal=0
2524
 
2525
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2526
rm -f -r conftest* confdefs.h
2527
 
2528 346 jeremybenn
$as_echo "/* confdefs.h */" > confdefs.h
2529
 
2530 19 jeremybenn
# Predefined preprocessor variables.
2531
 
2532
cat >>confdefs.h <<_ACEOF
2533
#define PACKAGE_NAME "$PACKAGE_NAME"
2534
_ACEOF
2535
 
2536
cat >>confdefs.h <<_ACEOF
2537
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2538
_ACEOF
2539
 
2540
cat >>confdefs.h <<_ACEOF
2541
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2542
_ACEOF
2543
 
2544
cat >>confdefs.h <<_ACEOF
2545
#define PACKAGE_STRING "$PACKAGE_STRING"
2546
_ACEOF
2547
 
2548
cat >>confdefs.h <<_ACEOF
2549
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2550
_ACEOF
2551
 
2552 346 jeremybenn
cat >>confdefs.h <<_ACEOF
2553
#define PACKAGE_URL "$PACKAGE_URL"
2554
_ACEOF
2555 19 jeremybenn
 
2556 346 jeremybenn
 
2557 19 jeremybenn
# Let the site file select an alternate cache file if it wants to.
2558 82 jeremybenn
# Prefer an explicitly selected file to automatically selected ones.
2559
ac_site_file1=NONE
2560
ac_site_file2=NONE
2561 19 jeremybenn
if test -n "$CONFIG_SITE"; then
2562 82 jeremybenn
  ac_site_file1=$CONFIG_SITE
2563 19 jeremybenn
elif test "x$prefix" != xNONE; then
2564 82 jeremybenn
  ac_site_file1=$prefix/share/config.site
2565
  ac_site_file2=$prefix/etc/config.site
2566 19 jeremybenn
else
2567 82 jeremybenn
  ac_site_file1=$ac_default_prefix/share/config.site
2568
  ac_site_file2=$ac_default_prefix/etc/config.site
2569 19 jeremybenn
fi
2570 82 jeremybenn
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2571 19 jeremybenn
do
2572 82 jeremybenn
  test "x$ac_site_file" = xNONE && continue
2573 432 jeremybenn
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2574 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2575 82 jeremybenn
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2576 19 jeremybenn
    sed 's/^/| /' "$ac_site_file" >&5
2577
    . "$ac_site_file"
2578
  fi
2579
done
2580
 
2581
if test -r "$cache_file"; then
2582 432 jeremybenn
  # Some versions of bash will fail to source /dev/null (special files
2583
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2584
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2585 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2586 82 jeremybenn
$as_echo "$as_me: loading cache $cache_file" >&6;}
2587 19 jeremybenn
    case $cache_file in
2588
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2589
      *)                      . "./$cache_file";;
2590
    esac
2591
  fi
2592
else
2593 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2594 82 jeremybenn
$as_echo "$as_me: creating cache $cache_file" >&6;}
2595 19 jeremybenn
  >$cache_file
2596
fi
2597
 
2598
# Check that the precious variables saved in the cache have kept the same
2599
# value.
2600
ac_cache_corrupted=false
2601
for ac_var in $ac_precious_vars; do
2602
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2603
  eval ac_new_set=\$ac_env_${ac_var}_set
2604
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2605
  eval ac_new_val=\$ac_env_${ac_var}_value
2606
  case $ac_old_set,$ac_new_set in
2607
    set,)
2608 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2609 82 jeremybenn
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2610 19 jeremybenn
      ac_cache_corrupted=: ;;
2611
    ,set)
2612 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2613 82 jeremybenn
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2614 19 jeremybenn
      ac_cache_corrupted=: ;;
2615
    ,);;
2616
    *)
2617
      if test "x$ac_old_val" != "x$ac_new_val"; then
2618 82 jeremybenn
        # differences in whitespace do not lead to failure.
2619
        ac_old_val_w=`echo x $ac_old_val`
2620
        ac_new_val_w=`echo x $ac_new_val`
2621
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2622 346 jeremybenn
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2623 82 jeremybenn
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2624
          ac_cache_corrupted=:
2625
        else
2626 346 jeremybenn
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2627 82 jeremybenn
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2628
          eval $ac_var=\$ac_old_val
2629
        fi
2630 346 jeremybenn
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2631 82 jeremybenn
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2632 346 jeremybenn
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2633 82 jeremybenn
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2634 19 jeremybenn
      fi;;
2635
  esac
2636
  # Pass precious variables to config.status.
2637
  if test "$ac_new_set" = set; then
2638
    case $ac_new_val in
2639 82 jeremybenn
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2640 19 jeremybenn
    *) ac_arg=$ac_var=$ac_new_val ;;
2641
    esac
2642
    case " $ac_configure_args " in
2643
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2644 346 jeremybenn
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2645 19 jeremybenn
    esac
2646
  fi
2647
done
2648
if $ac_cache_corrupted; then
2649 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2650 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2651 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2652 82 jeremybenn
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2653 346 jeremybenn
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2654 19 jeremybenn
fi
2655 346 jeremybenn
## -------------------- ##
2656
## Main body of script. ##
2657
## -------------------- ##
2658 19 jeremybenn
 
2659
ac_ext=c
2660
ac_cpp='$CPP $CPPFLAGS'
2661
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2662
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2663
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2664
 
2665
 
2666
 
2667 82 jeremybenn
 
2668 91 jeremybenn
# Generically use extensions such as _GNU_SOURCE if available.
2669 19 jeremybenn
ac_ext=c
2670
ac_cpp='$CPP $CPPFLAGS'
2671
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2672
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2673
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2674
if test -n "$ac_tool_prefix"; then
2675
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2676
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2677 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2678 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2679 346 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
2680 82 jeremybenn
  $as_echo_n "(cached) " >&6
2681 19 jeremybenn
else
2682
  if test -n "$CC"; then
2683
  ac_cv_prog_CC="$CC" # Let the user override the test.
2684
else
2685
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686
for as_dir in $PATH
2687
do
2688
  IFS=$as_save_IFS
2689
  test -z "$as_dir" && as_dir=.
2690 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2691 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2692
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2693 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2694 19 jeremybenn
    break 2
2695
  fi
2696
done
2697 346 jeremybenn
  done
2698 19 jeremybenn
IFS=$as_save_IFS
2699
 
2700
fi
2701
fi
2702
CC=$ac_cv_prog_CC
2703
if test -n "$CC"; then
2704 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2705 82 jeremybenn
$as_echo "$CC" >&6; }
2706 19 jeremybenn
else
2707 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2708 82 jeremybenn
$as_echo "no" >&6; }
2709 19 jeremybenn
fi
2710
 
2711
 
2712
fi
2713
if test -z "$ac_cv_prog_CC"; then
2714
  ac_ct_CC=$CC
2715
  # Extract the first word of "gcc", so it can be a program name with args.
2716
set dummy gcc; ac_word=$2
2717 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2718 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2719 346 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2720 82 jeremybenn
  $as_echo_n "(cached) " >&6
2721 19 jeremybenn
else
2722
  if test -n "$ac_ct_CC"; then
2723
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2724
else
2725
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726
for as_dir in $PATH
2727
do
2728
  IFS=$as_save_IFS
2729
  test -z "$as_dir" && as_dir=.
2730 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2731 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2732
    ac_cv_prog_ac_ct_CC="gcc"
2733 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2734 19 jeremybenn
    break 2
2735
  fi
2736
done
2737 346 jeremybenn
  done
2738 19 jeremybenn
IFS=$as_save_IFS
2739
 
2740
fi
2741
fi
2742
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2743
if test -n "$ac_ct_CC"; then
2744 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2745 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
2746 19 jeremybenn
else
2747 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2748 82 jeremybenn
$as_echo "no" >&6; }
2749 19 jeremybenn
fi
2750
 
2751
  if test "x$ac_ct_CC" = x; then
2752
    CC=""
2753
  else
2754
    case $cross_compiling:$ac_tool_warned in
2755
yes:)
2756 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2757 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2758 19 jeremybenn
ac_tool_warned=yes ;;
2759
esac
2760
    CC=$ac_ct_CC
2761
  fi
2762
else
2763
  CC="$ac_cv_prog_CC"
2764
fi
2765
 
2766
if test -z "$CC"; then
2767
          if test -n "$ac_tool_prefix"; then
2768
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2769
set dummy ${ac_tool_prefix}cc; ac_word=$2
2770 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2772 346 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
2773 82 jeremybenn
  $as_echo_n "(cached) " >&6
2774 19 jeremybenn
else
2775
  if test -n "$CC"; then
2776
  ac_cv_prog_CC="$CC" # Let the user override the test.
2777
else
2778
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779
for as_dir in $PATH
2780
do
2781
  IFS=$as_save_IFS
2782
  test -z "$as_dir" && as_dir=.
2783 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2784 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2785
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2786 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2787 19 jeremybenn
    break 2
2788
  fi
2789
done
2790 346 jeremybenn
  done
2791 19 jeremybenn
IFS=$as_save_IFS
2792
 
2793
fi
2794
fi
2795
CC=$ac_cv_prog_CC
2796
if test -n "$CC"; then
2797 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2798 82 jeremybenn
$as_echo "$CC" >&6; }
2799 19 jeremybenn
else
2800 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801 82 jeremybenn
$as_echo "no" >&6; }
2802 19 jeremybenn
fi
2803
 
2804
 
2805
  fi
2806
fi
2807
if test -z "$CC"; then
2808
  # Extract the first word of "cc", so it can be a program name with args.
2809
set dummy cc; ac_word=$2
2810 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2811 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2812 346 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
2813 82 jeremybenn
  $as_echo_n "(cached) " >&6
2814 19 jeremybenn
else
2815
  if test -n "$CC"; then
2816
  ac_cv_prog_CC="$CC" # Let the user override the test.
2817
else
2818
  ac_prog_rejected=no
2819
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820
for as_dir in $PATH
2821
do
2822
  IFS=$as_save_IFS
2823
  test -z "$as_dir" && as_dir=.
2824 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2825 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2826
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2827
       ac_prog_rejected=yes
2828
       continue
2829
     fi
2830
    ac_cv_prog_CC="cc"
2831 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2832 19 jeremybenn
    break 2
2833
  fi
2834
done
2835 346 jeremybenn
  done
2836 19 jeremybenn
IFS=$as_save_IFS
2837
 
2838
if test $ac_prog_rejected = yes; then
2839
  # We found a bogon in the path, so make sure we never use it.
2840
  set dummy $ac_cv_prog_CC
2841
  shift
2842
  if test $# != 0; then
2843
    # We chose a different compiler from the bogus one.
2844
    # However, it has the same basename, so the bogon will be chosen
2845
    # first if we set CC to just the basename; use the full file name.
2846
    shift
2847
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2848
  fi
2849
fi
2850
fi
2851
fi
2852
CC=$ac_cv_prog_CC
2853
if test -n "$CC"; then
2854 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2855 82 jeremybenn
$as_echo "$CC" >&6; }
2856 19 jeremybenn
else
2857 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2858 82 jeremybenn
$as_echo "no" >&6; }
2859 19 jeremybenn
fi
2860
 
2861
 
2862
fi
2863
if test -z "$CC"; then
2864
  if test -n "$ac_tool_prefix"; then
2865
  for ac_prog in cl.exe
2866
  do
2867
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2868
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2869 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2870 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2871 346 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
2872 82 jeremybenn
  $as_echo_n "(cached) " >&6
2873 19 jeremybenn
else
2874
  if test -n "$CC"; then
2875
  ac_cv_prog_CC="$CC" # Let the user override the test.
2876
else
2877
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878
for as_dir in $PATH
2879
do
2880
  IFS=$as_save_IFS
2881
  test -z "$as_dir" && as_dir=.
2882 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2883 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2884
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2885 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2886 19 jeremybenn
    break 2
2887
  fi
2888
done
2889 346 jeremybenn
  done
2890 19 jeremybenn
IFS=$as_save_IFS
2891
 
2892
fi
2893
fi
2894
CC=$ac_cv_prog_CC
2895
if test -n "$CC"; then
2896 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2897 82 jeremybenn
$as_echo "$CC" >&6; }
2898 19 jeremybenn
else
2899 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900 82 jeremybenn
$as_echo "no" >&6; }
2901 19 jeremybenn
fi
2902
 
2903
 
2904
    test -n "$CC" && break
2905
  done
2906
fi
2907
if test -z "$CC"; then
2908
  ac_ct_CC=$CC
2909
  for ac_prog in cl.exe
2910
do
2911
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2912
set dummy $ac_prog; ac_word=$2
2913 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2914 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2915 346 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2916 82 jeremybenn
  $as_echo_n "(cached) " >&6
2917 19 jeremybenn
else
2918
  if test -n "$ac_ct_CC"; then
2919
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2920
else
2921
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922
for as_dir in $PATH
2923
do
2924
  IFS=$as_save_IFS
2925
  test -z "$as_dir" && as_dir=.
2926 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2927 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2928
    ac_cv_prog_ac_ct_CC="$ac_prog"
2929 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2930 19 jeremybenn
    break 2
2931
  fi
2932
done
2933 346 jeremybenn
  done
2934 19 jeremybenn
IFS=$as_save_IFS
2935
 
2936
fi
2937
fi
2938
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2939
if test -n "$ac_ct_CC"; then
2940 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2941 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
2942 19 jeremybenn
else
2943 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2944 82 jeremybenn
$as_echo "no" >&6; }
2945 19 jeremybenn
fi
2946
 
2947
 
2948
  test -n "$ac_ct_CC" && break
2949
done
2950
 
2951
  if test "x$ac_ct_CC" = x; then
2952
    CC=""
2953
  else
2954
    case $cross_compiling:$ac_tool_warned in
2955
yes:)
2956 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2957 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2958 19 jeremybenn
ac_tool_warned=yes ;;
2959
esac
2960
    CC=$ac_ct_CC
2961
  fi
2962
fi
2963
 
2964
fi
2965
 
2966
 
2967 346 jeremybenn
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2968 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2969 346 jeremybenn
as_fn_error "no acceptable C compiler found in \$PATH
2970
See \`config.log' for more details." "$LINENO" 5; }
2971 19 jeremybenn
 
2972
# Provide some information about the compiler.
2973 346 jeremybenn
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2974 82 jeremybenn
set X $ac_compile
2975
ac_compiler=$2
2976 346 jeremybenn
for ac_option in --version -v -V -qversion; do
2977
  { { ac_try="$ac_compiler $ac_option >&5"
2978 19 jeremybenn
case "(($ac_try" in
2979
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980
  *) ac_try_echo=$ac_try;;
2981
esac
2982 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2983
$as_echo "$ac_try_echo"; } >&5
2984
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2985 19 jeremybenn
  ac_status=$?
2986 346 jeremybenn
  if test -s conftest.err; then
2987
    sed '10a\
2988
... rest of stderr output deleted ...
2989
         10q' conftest.err >conftest.er1
2990
    cat conftest.er1 >&5
2991
  fi
2992 432 jeremybenn
  rm -f conftest.er1 conftest.err
2993 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2994
  test $ac_status = 0; }
2995
done
2996 19 jeremybenn
 
2997 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2998 19 jeremybenn
/* end confdefs.h.  */
2999 432 jeremybenn
 
3000 19 jeremybenn
int
3001
main ()
3002
{
3003
 
3004
  ;
3005
  return 0;
3006
}
3007
_ACEOF
3008
ac_clean_files_save=$ac_clean_files
3009 432 jeremybenn
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3010 19 jeremybenn
# Try to create an executable without -o first, disregard a.out.
3011
# It will help us diagnose broken compilers, and finding out an intuition
3012
# of exeext.
3013 432 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3014
$as_echo_n "checking whether the C compiler works... " >&6; }
3015 82 jeremybenn
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3016
 
3017
# The possible output files:
3018
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3019
 
3020 19 jeremybenn
ac_rmfiles=
3021
for ac_file in $ac_files
3022
do
3023
  case $ac_file in
3024 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3025 19 jeremybenn
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3026
  esac
3027
done
3028
rm -f $ac_rmfiles
3029
 
3030 346 jeremybenn
if { { ac_try="$ac_link_default"
3031 19 jeremybenn
case "(($ac_try" in
3032
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033
  *) ac_try_echo=$ac_try;;
3034
esac
3035 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3036
$as_echo "$ac_try_echo"; } >&5
3037 19 jeremybenn
  (eval "$ac_link_default") 2>&5
3038
  ac_status=$?
3039 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3040
  test $ac_status = 0; }; then :
3041 19 jeremybenn
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3042
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3043
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3044
# so that the user can short-circuit this test for compilers unknown to
3045
# Autoconf.
3046
for ac_file in $ac_files ''
3047
do
3048
  test -f "$ac_file" || continue
3049
  case $ac_file in
3050 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3051 19 jeremybenn
        ;;
3052
    [ab].out )
3053
        # We found the default executable, but exeext='' is most
3054
        # certainly right.
3055
        break;;
3056
    *.* )
3057 346 jeremybenn
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3058 19 jeremybenn
        then :; else
3059
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3060
        fi
3061
        # We set ac_cv_exeext here because the later test for it is not
3062
        # safe: cross compilers may not add the suffix if given an `-o'
3063
        # argument, so we may need to know it at that point already.
3064
        # Even if this section looks crufty: it has the advantage of
3065
        # actually working.
3066
        break;;
3067
    * )
3068
        break;;
3069
  esac
3070
done
3071
test "$ac_cv_exeext" = no && ac_cv_exeext=
3072
 
3073
else
3074
  ac_file=''
3075
fi
3076 346 jeremybenn
if test -z "$ac_file"; then :
3077 432 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078
$as_echo "no" >&6; }
3079
$as_echo "$as_me: failed program was:" >&5
3080 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
3081
 
3082 346 jeremybenn
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3083 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3084 346 jeremybenn
{ as_fn_set_status 77
3085
as_fn_error "C compiler cannot create executables
3086
See \`config.log' for more details." "$LINENO" 5; }; }
3087 432 jeremybenn
else
3088
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3089
$as_echo "yes" >&6; }
3090 19 jeremybenn
fi
3091 432 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3092
$as_echo_n "checking for C compiler default output file name... " >&6; }
3093
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3094
$as_echo "$ac_file" >&6; }
3095 19 jeremybenn
ac_exeext=$ac_cv_exeext
3096
 
3097 432 jeremybenn
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3098 19 jeremybenn
ac_clean_files=$ac_clean_files_save
3099 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3100 82 jeremybenn
$as_echo_n "checking for suffix of executables... " >&6; }
3101 346 jeremybenn
if { { ac_try="$ac_link"
3102 19 jeremybenn
case "(($ac_try" in
3103
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104
  *) ac_try_echo=$ac_try;;
3105
esac
3106 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3107
$as_echo "$ac_try_echo"; } >&5
3108 19 jeremybenn
  (eval "$ac_link") 2>&5
3109
  ac_status=$?
3110 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3111
  test $ac_status = 0; }; then :
3112 19 jeremybenn
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3113
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3114
# work properly (i.e., refer to `conftest.exe'), while it won't with
3115
# `rm'.
3116
for ac_file in conftest.exe conftest conftest.*; do
3117
  test -f "$ac_file" || continue
3118
  case $ac_file in
3119 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3120 19 jeremybenn
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3121
          break;;
3122
    * ) break;;
3123
  esac
3124
done
3125
else
3126 346 jeremybenn
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3127 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3128 346 jeremybenn
as_fn_error "cannot compute suffix of executables: cannot compile and link
3129
See \`config.log' for more details." "$LINENO" 5; }
3130 19 jeremybenn
fi
3131 432 jeremybenn
rm -f conftest conftest$ac_cv_exeext
3132 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3133 82 jeremybenn
$as_echo "$ac_cv_exeext" >&6; }
3134 19 jeremybenn
 
3135
rm -f conftest.$ac_ext
3136
EXEEXT=$ac_cv_exeext
3137
ac_exeext=$EXEEXT
3138 432 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3139
/* end confdefs.h.  */
3140
#include 
3141
int
3142
main ()
3143
{
3144
FILE *f = fopen ("conftest.out", "w");
3145
 return ferror (f) || fclose (f) != 0;
3146
 
3147
  ;
3148
  return 0;
3149
}
3150
_ACEOF
3151
ac_clean_files="$ac_clean_files conftest.out"
3152
# Check that the compiler produces executables we can run.  If not, either
3153
# the compiler is broken, or we cross compile.
3154
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3155
$as_echo_n "checking whether we are cross compiling... " >&6; }
3156
if test "$cross_compiling" != yes; then
3157
  { { ac_try="$ac_link"
3158
case "(($ac_try" in
3159
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160
  *) ac_try_echo=$ac_try;;
3161
esac
3162
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3163
$as_echo "$ac_try_echo"; } >&5
3164
  (eval "$ac_link") 2>&5
3165
  ac_status=$?
3166
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3167
  test $ac_status = 0; }
3168
  if { ac_try='./conftest$ac_cv_exeext'
3169
  { { case "(($ac_try" in
3170
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171
  *) ac_try_echo=$ac_try;;
3172
esac
3173
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3174
$as_echo "$ac_try_echo"; } >&5
3175
  (eval "$ac_try") 2>&5
3176
  ac_status=$?
3177
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3178
  test $ac_status = 0; }; }; then
3179
    cross_compiling=no
3180
  else
3181
    if test "$cross_compiling" = maybe; then
3182
        cross_compiling=yes
3183
    else
3184
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3185
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3186
as_fn_error "cannot run C compiled programs.
3187
If you meant to cross compile, use \`--host'.
3188
See \`config.log' for more details." "$LINENO" 5; }
3189
    fi
3190
  fi
3191
fi
3192
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3193
$as_echo "$cross_compiling" >&6; }
3194
 
3195
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3196
ac_clean_files=$ac_clean_files_save
3197 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3198 82 jeremybenn
$as_echo_n "checking for suffix of object files... " >&6; }
3199 346 jeremybenn
if test "${ac_cv_objext+set}" = set; then :
3200 82 jeremybenn
  $as_echo_n "(cached) " >&6
3201 19 jeremybenn
else
3202 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3203 19 jeremybenn
/* end confdefs.h.  */
3204
 
3205
int
3206
main ()
3207
{
3208
 
3209
  ;
3210
  return 0;
3211
}
3212
_ACEOF
3213
rm -f conftest.o conftest.obj
3214 346 jeremybenn
if { { ac_try="$ac_compile"
3215 19 jeremybenn
case "(($ac_try" in
3216
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217
  *) ac_try_echo=$ac_try;;
3218
esac
3219 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3220
$as_echo "$ac_try_echo"; } >&5
3221 19 jeremybenn
  (eval "$ac_compile") 2>&5
3222
  ac_status=$?
3223 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3224
  test $ac_status = 0; }; then :
3225 19 jeremybenn
  for ac_file in conftest.o conftest.obj conftest.*; do
3226
  test -f "$ac_file" || continue;
3227
  case $ac_file in
3228 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3229 19 jeremybenn
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3230
       break;;
3231
  esac
3232
done
3233
else
3234 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
3235 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
3236
 
3237 346 jeremybenn
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3238 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3239 346 jeremybenn
as_fn_error "cannot compute suffix of object files: cannot compile
3240
See \`config.log' for more details." "$LINENO" 5; }
3241 19 jeremybenn
fi
3242
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3243
fi
3244 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3245 82 jeremybenn
$as_echo "$ac_cv_objext" >&6; }
3246 19 jeremybenn
OBJEXT=$ac_cv_objext
3247
ac_objext=$OBJEXT
3248 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3249 82 jeremybenn
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3250 346 jeremybenn
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3251 82 jeremybenn
  $as_echo_n "(cached) " >&6
3252 19 jeremybenn
else
3253 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254 19 jeremybenn
/* end confdefs.h.  */
3255
 
3256
int
3257
main ()
3258
{
3259
#ifndef __GNUC__
3260
       choke me
3261
#endif
3262
 
3263
  ;
3264
  return 0;
3265
}
3266
_ACEOF
3267 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3268 19 jeremybenn
  ac_compiler_gnu=yes
3269
else
3270 346 jeremybenn
  ac_compiler_gnu=no
3271 19 jeremybenn
fi
3272
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3273
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3274
 
3275
fi
3276 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3277 82 jeremybenn
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3278
if test $ac_compiler_gnu = yes; then
3279
  GCC=yes
3280
else
3281
  GCC=
3282
fi
3283 19 jeremybenn
ac_test_CFLAGS=${CFLAGS+set}
3284
ac_save_CFLAGS=$CFLAGS
3285 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3286 82 jeremybenn
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3287 346 jeremybenn
if test "${ac_cv_prog_cc_g+set}" = set; then :
3288 82 jeremybenn
  $as_echo_n "(cached) " >&6
3289 19 jeremybenn
else
3290
  ac_save_c_werror_flag=$ac_c_werror_flag
3291
   ac_c_werror_flag=yes
3292
   ac_cv_prog_cc_g=no
3293
   CFLAGS="-g"
3294 346 jeremybenn
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3295 19 jeremybenn
/* end confdefs.h.  */
3296
 
3297
int
3298
main ()
3299
{
3300
 
3301
  ;
3302
  return 0;
3303
}
3304
_ACEOF
3305 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3306 19 jeremybenn
  ac_cv_prog_cc_g=yes
3307
else
3308 346 jeremybenn
  CFLAGS=""
3309
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3310 19 jeremybenn
/* end confdefs.h.  */
3311
 
3312
int
3313
main ()
3314
{
3315
 
3316
  ;
3317
  return 0;
3318
}
3319
_ACEOF
3320 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3321
 
3322 236 jeremybenn
else
3323 346 jeremybenn
  ac_c_werror_flag=$ac_save_c_werror_flag
3324 19 jeremybenn
         CFLAGS="-g"
3325 346 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326 19 jeremybenn
/* end confdefs.h.  */
3327
 
3328
int
3329
main ()
3330
{
3331
 
3332
  ;
3333
  return 0;
3334
}
3335
_ACEOF
3336 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3337 19 jeremybenn
  ac_cv_prog_cc_g=yes
3338
fi
3339
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3340
fi
3341
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3342
fi
3343
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3344
   ac_c_werror_flag=$ac_save_c_werror_flag
3345
fi
3346 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3347 82 jeremybenn
$as_echo "$ac_cv_prog_cc_g" >&6; }
3348 19 jeremybenn
if test "$ac_test_CFLAGS" = set; then
3349
  CFLAGS=$ac_save_CFLAGS
3350
elif test $ac_cv_prog_cc_g = yes; then
3351
  if test "$GCC" = yes; then
3352
    CFLAGS="-g -O2"
3353
  else
3354
    CFLAGS="-g"
3355
  fi
3356
else
3357
  if test "$GCC" = yes; then
3358
    CFLAGS="-O2"
3359
  else
3360
    CFLAGS=
3361
  fi
3362
fi
3363 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3364 82 jeremybenn
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3365 346 jeremybenn
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3366 82 jeremybenn
  $as_echo_n "(cached) " >&6
3367 19 jeremybenn
else
3368
  ac_cv_prog_cc_c89=no
3369
ac_save_CC=$CC
3370 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371 19 jeremybenn
/* end confdefs.h.  */
3372
#include 
3373
#include 
3374
#include 
3375
#include 
3376
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3377
struct buf { int x; };
3378
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3379
static char *e (p, i)
3380
     char **p;
3381
     int i;
3382
{
3383
  return p[i];
3384
}
3385
static char *f (char * (*g) (char **, int), char **p, ...)
3386
{
3387
  char *s;
3388
  va_list v;
3389
  va_start (v,p);
3390
  s = g (p, va_arg (v,int));
3391
  va_end (v);
3392
  return s;
3393
}
3394
 
3395
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3396
   function prototypes and stuff, but not '\xHH' hex character constants.
3397
   These don't provoke an error unfortunately, instead are silently treated
3398
   as 'x'.  The following induces an error, until -std is added to get
3399
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3400
   array size at least.  It's necessary to write '\x00'==0 to get something
3401
   that's true only with -std.  */
3402
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3403
 
3404
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3405
   inside strings and character constants.  */
3406
#define FOO(x) 'x'
3407
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3408
 
3409
int test (int i, double x);
3410
struct s1 {int (*f) (int a);};
3411
struct s2 {int (*f) (double a);};
3412
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3413
int argc;
3414
char **argv;
3415
int
3416
main ()
3417
{
3418
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3419
  ;
3420
  return 0;
3421
}
3422
_ACEOF
3423
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3424
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3425
do
3426
  CC="$ac_save_CC $ac_arg"
3427 346 jeremybenn
  if ac_fn_c_try_compile "$LINENO"; then :
3428 19 jeremybenn
  ac_cv_prog_cc_c89=$ac_arg
3429
fi
3430
rm -f core conftest.err conftest.$ac_objext
3431
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3432
done
3433
rm -f conftest.$ac_ext
3434
CC=$ac_save_CC
3435
 
3436
fi
3437
# AC_CACHE_VAL
3438
case "x$ac_cv_prog_cc_c89" in
3439
  x)
3440 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3441 82 jeremybenn
$as_echo "none needed" >&6; } ;;
3442 19 jeremybenn
  xno)
3443 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3444 82 jeremybenn
$as_echo "unsupported" >&6; } ;;
3445 19 jeremybenn
  *)
3446
    CC="$CC $ac_cv_prog_cc_c89"
3447 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3448 82 jeremybenn
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3449 19 jeremybenn
esac
3450 346 jeremybenn
if test "x$ac_cv_prog_cc_c89" != xno; then :
3451 19 jeremybenn
 
3452 346 jeremybenn
fi
3453 19 jeremybenn
 
3454
ac_ext=c
3455
ac_cpp='$CPP $CPPFLAGS'
3456
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3459
 
3460 91 jeremybenn
 
3461
ac_ext=c
3462
ac_cpp='$CPP $CPPFLAGS'
3463
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3464
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3465
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3466 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3467 91 jeremybenn
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3468
# On Suns, sometimes $CPP names a directory.
3469
if test -n "$CPP" && test -d "$CPP"; then
3470
  CPP=
3471
fi
3472
if test -z "$CPP"; then
3473 346 jeremybenn
  if test "${ac_cv_prog_CPP+set}" = set; then :
3474 82 jeremybenn
  $as_echo_n "(cached) " >&6
3475 19 jeremybenn
else
3476 91 jeremybenn
      # Double quotes because CPP needs to be expanded
3477
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3478
    do
3479
      ac_preproc_ok=false
3480
for ac_c_preproc_warn_flag in '' yes
3481 19 jeremybenn
do
3482 91 jeremybenn
  # Use a header file that comes with gcc, so configuring glibc
3483
  # with a fresh cross-compiler works.
3484
  # Prefer  to  if __STDC__ is defined, since
3485
  #  exists even on freestanding compilers.
3486
  # On the NeXT, cc -E runs the code through the compiler's parser,
3487
  # not just through cpp. "Syntax error" is here to catch this case.
3488 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 91 jeremybenn
/* end confdefs.h.  */
3490
#ifdef __STDC__
3491
# include 
3492
#else
3493
# include 
3494
#endif
3495
                     Syntax error
3496
_ACEOF
3497 346 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
3498
 
3499 236 jeremybenn
else
3500 91 jeremybenn
  # Broken: fails on valid input.
3501
continue
3502
fi
3503
rm -f conftest.err conftest.$ac_ext
3504
 
3505
  # OK, works on sane cases.  Now check whether nonexistent headers
3506
  # can be detected and how.
3507 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508 91 jeremybenn
/* end confdefs.h.  */
3509
#include 
3510
_ACEOF
3511 346 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
3512 91 jeremybenn
  # Broken: success on invalid input.
3513
continue
3514 82 jeremybenn
else
3515 91 jeremybenn
  # Passes both tests.
3516
ac_preproc_ok=:
3517
break
3518 82 jeremybenn
fi
3519 91 jeremybenn
rm -f conftest.err conftest.$ac_ext
3520
 
3521
done
3522
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3523
rm -f conftest.err conftest.$ac_ext
3524 346 jeremybenn
if $ac_preproc_ok; then :
3525 91 jeremybenn
  break
3526 19 jeremybenn
fi
3527
 
3528 91 jeremybenn
    done
3529
    ac_cv_prog_CPP=$CPP
3530 19 jeremybenn
 
3531 91 jeremybenn
fi
3532
  CPP=$ac_cv_prog_CPP
3533
else
3534
  ac_cv_prog_CPP=$CPP
3535
fi
3536 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3537 91 jeremybenn
$as_echo "$CPP" >&6; }
3538
ac_preproc_ok=false
3539
for ac_c_preproc_warn_flag in '' yes
3540
do
3541
  # Use a header file that comes with gcc, so configuring glibc
3542
  # with a fresh cross-compiler works.
3543
  # Prefer  to  if __STDC__ is defined, since
3544
  #  exists even on freestanding compilers.
3545
  # On the NeXT, cc -E runs the code through the compiler's parser,
3546
  # not just through cpp. "Syntax error" is here to catch this case.
3547 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3548 91 jeremybenn
/* end confdefs.h.  */
3549
#ifdef __STDC__
3550
# include 
3551
#else
3552
# include 
3553
#endif
3554
                     Syntax error
3555
_ACEOF
3556 346 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
3557
 
3558 236 jeremybenn
else
3559 91 jeremybenn
  # Broken: fails on valid input.
3560
continue
3561
fi
3562
rm -f conftest.err conftest.$ac_ext
3563 82 jeremybenn
 
3564 91 jeremybenn
  # OK, works on sane cases.  Now check whether nonexistent headers
3565
  # can be detected and how.
3566 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3567 91 jeremybenn
/* end confdefs.h.  */
3568
#include 
3569
_ACEOF
3570 346 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
3571 91 jeremybenn
  # Broken: success on invalid input.
3572
continue
3573
else
3574
  # Passes both tests.
3575
ac_preproc_ok=:
3576
break
3577
fi
3578
rm -f conftest.err conftest.$ac_ext
3579 82 jeremybenn
 
3580 91 jeremybenn
done
3581
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3582
rm -f conftest.err conftest.$ac_ext
3583 346 jeremybenn
if $ac_preproc_ok; then :
3584
 
3585 91 jeremybenn
else
3586 346 jeremybenn
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3587 91 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3588 346 jeremybenn
as_fn_error "C preprocessor \"$CPP\" fails sanity check
3589
See \`config.log' for more details." "$LINENO" 5; }
3590 91 jeremybenn
fi
3591 82 jeremybenn
 
3592 91 jeremybenn
ac_ext=c
3593
ac_cpp='$CPP $CPPFLAGS'
3594
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3595
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3596
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3597 82 jeremybenn
 
3598
 
3599 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3600 82 jeremybenn
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3601 346 jeremybenn
if test "${ac_cv_path_GREP+set}" = set; then :
3602 82 jeremybenn
  $as_echo_n "(cached) " >&6
3603 19 jeremybenn
else
3604 82 jeremybenn
  if test -z "$GREP"; then
3605 19 jeremybenn
  ac_path_GREP_found=false
3606 82 jeremybenn
  # Loop through the user's path and test for each of PROGNAME-LIST
3607
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3608 19 jeremybenn
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3609
do
3610
  IFS=$as_save_IFS
3611
  test -z "$as_dir" && as_dir=.
3612 346 jeremybenn
    for ac_prog in grep ggrep; do
3613 82 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3614
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3615
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3616
# Check for GNU ac_path_GREP and select it if it is found.
3617 19 jeremybenn
  # Check for GNU $ac_path_GREP
3618
case `"$ac_path_GREP" --version 2>&1` in
3619
*GNU*)
3620
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3621
*)
3622
  ac_count=0
3623 82 jeremybenn
  $as_echo_n 0123456789 >"conftest.in"
3624 19 jeremybenn
  while :
3625
  do
3626
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3627
    mv "conftest.tmp" "conftest.in"
3628
    cp "conftest.in" "conftest.nl"
3629 82 jeremybenn
    $as_echo 'GREP' >> "conftest.nl"
3630 19 jeremybenn
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3631
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3632 346 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3633 19 jeremybenn
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3634
      # Best one so far, save it but keep looking for a better one
3635
      ac_cv_path_GREP="$ac_path_GREP"
3636
      ac_path_GREP_max=$ac_count
3637
    fi
3638
    # 10*(2^10) chars as input seems more than enough
3639
    test $ac_count -gt 10 && break
3640
  done
3641
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3642
esac
3643
 
3644 82 jeremybenn
      $ac_path_GREP_found && break 3
3645
    done
3646 19 jeremybenn
  done
3647 346 jeremybenn
  done
3648 19 jeremybenn
IFS=$as_save_IFS
3649 82 jeremybenn
  if test -z "$ac_cv_path_GREP"; then
3650 346 jeremybenn
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3651 82 jeremybenn
  fi
3652 19 jeremybenn
else
3653
  ac_cv_path_GREP=$GREP
3654
fi
3655
 
3656
fi
3657 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3658 82 jeremybenn
$as_echo "$ac_cv_path_GREP" >&6; }
3659 19 jeremybenn
 GREP="$ac_cv_path_GREP"
3660
 
3661
 
3662 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3663 82 jeremybenn
$as_echo_n "checking for egrep... " >&6; }
3664 346 jeremybenn
if test "${ac_cv_path_EGREP+set}" = set; then :
3665 82 jeremybenn
  $as_echo_n "(cached) " >&6
3666 19 jeremybenn
else
3667
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3668
   then ac_cv_path_EGREP="$GREP -E"
3669
   else
3670 82 jeremybenn
     if test -z "$EGREP"; then
3671 19 jeremybenn
  ac_path_EGREP_found=false
3672 82 jeremybenn
  # Loop through the user's path and test for each of PROGNAME-LIST
3673
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674 19 jeremybenn
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3675
do
3676
  IFS=$as_save_IFS
3677
  test -z "$as_dir" && as_dir=.
3678 346 jeremybenn
    for ac_prog in egrep; do
3679 82 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3680
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3681
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3682
# Check for GNU ac_path_EGREP and select it if it is found.
3683 19 jeremybenn
  # Check for GNU $ac_path_EGREP
3684
case `"$ac_path_EGREP" --version 2>&1` in
3685
*GNU*)
3686
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3687
*)
3688
  ac_count=0
3689 82 jeremybenn
  $as_echo_n 0123456789 >"conftest.in"
3690 19 jeremybenn
  while :
3691
  do
3692
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3693
    mv "conftest.tmp" "conftest.in"
3694
    cp "conftest.in" "conftest.nl"
3695 82 jeremybenn
    $as_echo 'EGREP' >> "conftest.nl"
3696 19 jeremybenn
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3697
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3698 346 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3699 19 jeremybenn
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3700
      # Best one so far, save it but keep looking for a better one
3701
      ac_cv_path_EGREP="$ac_path_EGREP"
3702
      ac_path_EGREP_max=$ac_count
3703
    fi
3704
    # 10*(2^10) chars as input seems more than enough
3705
    test $ac_count -gt 10 && break
3706
  done
3707
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3708
esac
3709
 
3710 82 jeremybenn
      $ac_path_EGREP_found && break 3
3711
    done
3712 19 jeremybenn
  done
3713 346 jeremybenn
  done
3714 19 jeremybenn
IFS=$as_save_IFS
3715 82 jeremybenn
  if test -z "$ac_cv_path_EGREP"; then
3716 346 jeremybenn
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3717 82 jeremybenn
  fi
3718
else
3719
  ac_cv_path_EGREP=$EGREP
3720 19 jeremybenn
fi
3721
 
3722 82 jeremybenn
   fi
3723 19 jeremybenn
fi
3724 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3725 82 jeremybenn
$as_echo "$ac_cv_path_EGREP" >&6; }
3726
 EGREP="$ac_cv_path_EGREP"
3727 19 jeremybenn
 
3728 82 jeremybenn
 
3729 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3730 91 jeremybenn
$as_echo_n "checking for ANSI C header files... " >&6; }
3731 346 jeremybenn
if test "${ac_cv_header_stdc+set}" = set; then :
3732 91 jeremybenn
  $as_echo_n "(cached) " >&6
3733
else
3734 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735 91 jeremybenn
/* end confdefs.h.  */
3736
#include 
3737
#include 
3738
#include 
3739
#include 
3740
 
3741
int
3742
main ()
3743
{
3744
 
3745
  ;
3746
  return 0;
3747
}
3748
_ACEOF
3749 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3750 91 jeremybenn
  ac_cv_header_stdc=yes
3751
else
3752 346 jeremybenn
  ac_cv_header_stdc=no
3753 91 jeremybenn
fi
3754
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3755
 
3756
if test $ac_cv_header_stdc = yes; then
3757
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3758 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 91 jeremybenn
/* end confdefs.h.  */
3760
#include 
3761
 
3762
_ACEOF
3763
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3764 346 jeremybenn
  $EGREP "memchr" >/dev/null 2>&1; then :
3765
 
3766 91 jeremybenn
else
3767
  ac_cv_header_stdc=no
3768
fi
3769
rm -f conftest*
3770
 
3771
fi
3772
 
3773
if test $ac_cv_header_stdc = yes; then
3774
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3775 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776 91 jeremybenn
/* end confdefs.h.  */
3777
#include 
3778
 
3779
_ACEOF
3780
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3781 346 jeremybenn
  $EGREP "free" >/dev/null 2>&1; then :
3782
 
3783 91 jeremybenn
else
3784
  ac_cv_header_stdc=no
3785
fi
3786
rm -f conftest*
3787
 
3788
fi
3789
 
3790
if test $ac_cv_header_stdc = yes; then
3791
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3792 346 jeremybenn
  if test "$cross_compiling" = yes; then :
3793 91 jeremybenn
  :
3794
else
3795 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 91 jeremybenn
/* end confdefs.h.  */
3797
#include 
3798
#include 
3799
#if ((' ' & 0x0FF) == 0x020)
3800
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3801
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3802
#else
3803
# define ISLOWER(c) \
3804
                   (('a' <= (c) && (c) <= 'i') \
3805
                     || ('j' <= (c) && (c) <= 'r') \
3806
                     || ('s' <= (c) && (c) <= 'z'))
3807
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3808
#endif
3809
 
3810
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3811
int
3812
main ()
3813
{
3814
  int i;
3815
  for (i = 0; i < 256; i++)
3816
    if (XOR (islower (i), ISLOWER (i))
3817
        || toupper (i) != TOUPPER (i))
3818
      return 2;
3819
  return 0;
3820
}
3821
_ACEOF
3822 346 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
3823
 
3824 236 jeremybenn
else
3825 346 jeremybenn
  ac_cv_header_stdc=no
3826 91 jeremybenn
fi
3827 346 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3828
  conftest.$ac_objext conftest.beam conftest.$ac_ext
3829 91 jeremybenn
fi
3830
 
3831
fi
3832
fi
3833 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3834 91 jeremybenn
$as_echo "$ac_cv_header_stdc" >&6; }
3835
if test $ac_cv_header_stdc = yes; then
3836
 
3837 346 jeremybenn
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3838 91 jeremybenn
 
3839
fi
3840
 
3841
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3842
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3843
                  inttypes.h stdint.h unistd.h
3844 346 jeremybenn
do :
3845
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3846
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3847
"
3848
eval as_val=\$$as_ac_Header
3849
   if test "x$as_val" = x""yes; then :
3850 91 jeremybenn
  cat >>confdefs.h <<_ACEOF
3851
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3852
_ACEOF
3853
 
3854
fi
3855
 
3856
done
3857
 
3858
 
3859
 
3860 346 jeremybenn
  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3861
if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3862 91 jeremybenn
  MINIX=yes
3863
else
3864
  MINIX=
3865
fi
3866
 
3867
 
3868
  if test "$MINIX" = yes; then
3869
 
3870 346 jeremybenn
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3871 91 jeremybenn
 
3872
 
3873 346 jeremybenn
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3874 91 jeremybenn
 
3875
 
3876 346 jeremybenn
$as_echo "#define _MINIX 1" >>confdefs.h
3877 91 jeremybenn
 
3878
  fi
3879
 
3880
 
3881 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3882 91 jeremybenn
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3883 346 jeremybenn
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3884 91 jeremybenn
  $as_echo_n "(cached) " >&6
3885
else
3886 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 91 jeremybenn
/* end confdefs.h.  */
3888
 
3889
#         define __EXTENSIONS__ 1
3890
          $ac_includes_default
3891
int
3892
main ()
3893
{
3894
 
3895
  ;
3896
  return 0;
3897
}
3898
_ACEOF
3899 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3900 91 jeremybenn
  ac_cv_safe_to_define___extensions__=yes
3901
else
3902 346 jeremybenn
  ac_cv_safe_to_define___extensions__=no
3903 91 jeremybenn
fi
3904
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3905
fi
3906 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3907 91 jeremybenn
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3908
  test $ac_cv_safe_to_define___extensions__ = yes &&
3909 346 jeremybenn
    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3910 91 jeremybenn
 
3911 346 jeremybenn
  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3912 91 jeremybenn
 
3913 346 jeremybenn
  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3914 91 jeremybenn
 
3915 346 jeremybenn
  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3916 91 jeremybenn
 
3917 346 jeremybenn
  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3918 91 jeremybenn
 
3919
 
3920
 
3921
# Check we have the execute source file present for sanity. Specify a separate
3922
# config for the testsuite OR1K specific programs, since we'll need different
3923
# tool chain there (the OpenRISC one, rather than the native one).
3924
 
3925
ac_aux_dir=
3926
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3927 346 jeremybenn
  for ac_t in install-sh install.sh shtool; do
3928
    if test -f "$ac_dir/$ac_t"; then
3929
      ac_aux_dir=$ac_dir
3930
      ac_install_sh="$ac_aux_dir/$ac_t -c"
3931
      break 2
3932
    fi
3933
  done
3934 91 jeremybenn
done
3935
if test -z "$ac_aux_dir"; then
3936 346 jeremybenn
  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3937 91 jeremybenn
fi
3938
 
3939
# These three variables are undocumented and unsupported,
3940
# and are intended to be withdrawn in a future Autoconf release.
3941
# They can cause serious problems if a builder's source tree is in a directory
3942
# whose full name contains unusual characters.
3943
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3944
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3945
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3946
 
3947
 
3948
 
3949
 
3950
subdirs="$subdirs testsuite/test-code-or1k"
3951
 
3952
 
3953
# Make sure we can run config.sub.
3954
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3955 346 jeremybenn
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3956 91 jeremybenn
 
3957 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3958 91 jeremybenn
$as_echo_n "checking build system type... " >&6; }
3959 346 jeremybenn
if test "${ac_cv_build+set}" = set; then :
3960 91 jeremybenn
  $as_echo_n "(cached) " >&6
3961
else
3962
  ac_build_alias=$build_alias
3963
test "x$ac_build_alias" = x &&
3964
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3965
test "x$ac_build_alias" = x &&
3966 346 jeremybenn
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3967 91 jeremybenn
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3968 346 jeremybenn
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3969 91 jeremybenn
 
3970
fi
3971 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3972 91 jeremybenn
$as_echo "$ac_cv_build" >&6; }
3973
case $ac_cv_build in
3974
*-*-*) ;;
3975 346 jeremybenn
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3976 91 jeremybenn
esac
3977
build=$ac_cv_build
3978
ac_save_IFS=$IFS; IFS='-'
3979
set x $ac_cv_build
3980
shift
3981
build_cpu=$1
3982
build_vendor=$2
3983
shift; shift
3984
# Remember, the first character of IFS is used to create $*,
3985
# except with old shells:
3986
build_os=$*
3987
IFS=$ac_save_IFS
3988
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3989
 
3990
 
3991 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3992 91 jeremybenn
$as_echo_n "checking host system type... " >&6; }
3993 346 jeremybenn
if test "${ac_cv_host+set}" = set; then :
3994 91 jeremybenn
  $as_echo_n "(cached) " >&6
3995
else
3996
  if test "x$host_alias" = x; then
3997
  ac_cv_host=$ac_cv_build
3998
else
3999
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4000 346 jeremybenn
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4001 91 jeremybenn
fi
4002
 
4003
fi
4004 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4005 91 jeremybenn
$as_echo "$ac_cv_host" >&6; }
4006
case $ac_cv_host in
4007
*-*-*) ;;
4008 346 jeremybenn
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4009 91 jeremybenn
esac
4010
host=$ac_cv_host
4011
ac_save_IFS=$IFS; IFS='-'
4012
set x $ac_cv_host
4013
shift
4014
host_cpu=$1
4015
host_vendor=$2
4016
shift; shift
4017
# Remember, the first character of IFS is used to create $*,
4018
# except with old shells:
4019
host_os=$*
4020
IFS=$ac_save_IFS
4021
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4022
 
4023
 
4024 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4025 91 jeremybenn
$as_echo_n "checking target system type... " >&6; }
4026 346 jeremybenn
if test "${ac_cv_target+set}" = set; then :
4027 91 jeremybenn
  $as_echo_n "(cached) " >&6
4028
else
4029
  if test "x$target_alias" = x; then
4030
  ac_cv_target=$ac_cv_host
4031
else
4032
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4033 346 jeremybenn
    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4034 91 jeremybenn
fi
4035
 
4036
fi
4037 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4038 91 jeremybenn
$as_echo "$ac_cv_target" >&6; }
4039
case $ac_cv_target in
4040
*-*-*) ;;
4041 346 jeremybenn
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4042 91 jeremybenn
esac
4043
target=$ac_cv_target
4044
ac_save_IFS=$IFS; IFS='-'
4045
set x $ac_cv_target
4046
shift
4047
target_cpu=$1
4048
target_vendor=$2
4049
shift; shift
4050
# Remember, the first character of IFS is used to create $*,
4051
# except with old shells:
4052
target_os=$*
4053
IFS=$ac_save_IFS
4054
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4055
 
4056
 
4057
# The aliases save the names the user supplied, while $host etc.
4058
# will get canonicalized.
4059
test -n "$target_alias" &&
4060
  test "$program_prefix$program_suffix$program_transform_name" = \
4061
    NONENONEs,x,x, &&
4062
  program_prefix=${target_alias}-
4063
case `pwd` in
4064
  *\ * | *\     *)
4065 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4066 91 jeremybenn
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4067
esac
4068
 
4069
 
4070
 
4071 96 jeremybenn
macro_version='2.2.6b'
4072
macro_revision='1.3017'
4073 91 jeremybenn
 
4074
 
4075
 
4076
 
4077
 
4078
 
4079
 
4080
 
4081
 
4082
 
4083
 
4084
 
4085
 
4086
ltmain="$ac_aux_dir/ltmain.sh"
4087
 
4088 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4089 91 jeremybenn
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4090 346 jeremybenn
if test "${ac_cv_path_SED+set}" = set; then :
4091 91 jeremybenn
  $as_echo_n "(cached) " >&6
4092
else
4093
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4094
     for ac_i in 1 2 3 4 5 6 7; do
4095
       ac_script="$ac_script$as_nl$ac_script"
4096
     done
4097
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4098 346 jeremybenn
     { ac_script=; unset ac_script;}
4099 91 jeremybenn
     if test -z "$SED"; then
4100
  ac_path_SED_found=false
4101
  # Loop through the user's path and test for each of PROGNAME-LIST
4102
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103
for as_dir in $PATH
4104
do
4105
  IFS=$as_save_IFS
4106
  test -z "$as_dir" && as_dir=.
4107 346 jeremybenn
    for ac_prog in sed gsed; do
4108 91 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4109
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4110
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4111
# Check for GNU ac_path_SED and select it if it is found.
4112
  # Check for GNU $ac_path_SED
4113
case `"$ac_path_SED" --version 2>&1` in
4114
*GNU*)
4115
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4116
*)
4117
  ac_count=0
4118
  $as_echo_n 0123456789 >"conftest.in"
4119
  while :
4120
  do
4121
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4122
    mv "conftest.tmp" "conftest.in"
4123
    cp "conftest.in" "conftest.nl"
4124
    $as_echo '' >> "conftest.nl"
4125
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4126
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4127 346 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4128 91 jeremybenn
    if test $ac_count -gt ${ac_path_SED_max-0}; then
4129
      # Best one so far, save it but keep looking for a better one
4130
      ac_cv_path_SED="$ac_path_SED"
4131
      ac_path_SED_max=$ac_count
4132
    fi
4133
    # 10*(2^10) chars as input seems more than enough
4134
    test $ac_count -gt 10 && break
4135
  done
4136
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4137
esac
4138
 
4139
      $ac_path_SED_found && break 3
4140
    done
4141
  done
4142 346 jeremybenn
  done
4143 91 jeremybenn
IFS=$as_save_IFS
4144
  if test -z "$ac_cv_path_SED"; then
4145 346 jeremybenn
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4146 91 jeremybenn
  fi
4147
else
4148
  ac_cv_path_SED=$SED
4149
fi
4150
 
4151
fi
4152 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4153 91 jeremybenn
$as_echo "$ac_cv_path_SED" >&6; }
4154
 SED="$ac_cv_path_SED"
4155
  rm -f conftest.sed
4156
 
4157
test -z "$SED" && SED=sed
4158
Xsed="$SED -e 1s/^X//"
4159
 
4160
 
4161
 
4162
 
4163
 
4164
 
4165
 
4166
 
4167
 
4168
 
4169
 
4170 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4171 82 jeremybenn
$as_echo_n "checking for fgrep... " >&6; }
4172 346 jeremybenn
if test "${ac_cv_path_FGREP+set}" = set; then :
4173 82 jeremybenn
  $as_echo_n "(cached) " >&6
4174 19 jeremybenn
else
4175 82 jeremybenn
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4176
   then ac_cv_path_FGREP="$GREP -F"
4177
   else
4178
     if test -z "$FGREP"; then
4179
  ac_path_FGREP_found=false
4180
  # Loop through the user's path and test for each of PROGNAME-LIST
4181
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4183
do
4184
  IFS=$as_save_IFS
4185
  test -z "$as_dir" && as_dir=.
4186 346 jeremybenn
    for ac_prog in fgrep; do
4187 82 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4188
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4189
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4190
# Check for GNU ac_path_FGREP and select it if it is found.
4191
  # Check for GNU $ac_path_FGREP
4192
case `"$ac_path_FGREP" --version 2>&1` in
4193
*GNU*)
4194
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4195
*)
4196
  ac_count=0
4197
  $as_echo_n 0123456789 >"conftest.in"
4198
  while :
4199
  do
4200
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4201
    mv "conftest.tmp" "conftest.in"
4202
    cp "conftest.in" "conftest.nl"
4203
    $as_echo 'FGREP' >> "conftest.nl"
4204
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4205
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4206 346 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4207 82 jeremybenn
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4208
      # Best one so far, save it but keep looking for a better one
4209
      ac_cv_path_FGREP="$ac_path_FGREP"
4210
      ac_path_FGREP_max=$ac_count
4211
    fi
4212
    # 10*(2^10) chars as input seems more than enough
4213
    test $ac_count -gt 10 && break
4214
  done
4215
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4216
esac
4217
 
4218
      $ac_path_FGREP_found && break 3
4219
    done
4220
  done
4221 346 jeremybenn
  done
4222 82 jeremybenn
IFS=$as_save_IFS
4223
  if test -z "$ac_cv_path_FGREP"; then
4224 346 jeremybenn
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4225 82 jeremybenn
  fi
4226
else
4227
  ac_cv_path_FGREP=$FGREP
4228 19 jeremybenn
fi
4229
 
4230
   fi
4231
fi
4232 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4233 82 jeremybenn
$as_echo "$ac_cv_path_FGREP" >&6; }
4234
 FGREP="$ac_cv_path_FGREP"
4235 19 jeremybenn
 
4236
 
4237 82 jeremybenn
test -z "$GREP" && GREP=grep
4238 19 jeremybenn
 
4239 82 jeremybenn
 
4240
 
4241
 
4242
 
4243
 
4244
 
4245
 
4246
 
4247
 
4248
 
4249
 
4250
 
4251
 
4252
 
4253
 
4254
 
4255
 
4256
 
4257 19 jeremybenn
# Check whether --with-gnu-ld was given.
4258 346 jeremybenn
if test "${with_gnu_ld+set}" = set; then :
4259 19 jeremybenn
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4260
else
4261
  with_gnu_ld=no
4262
fi
4263
 
4264
ac_prog=ld
4265
if test "$GCC" = yes; then
4266
  # Check if gcc -print-prog-name=ld gives a path.
4267 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4268 82 jeremybenn
$as_echo_n "checking for ld used by $CC... " >&6; }
4269 19 jeremybenn
  case $host in
4270
  *-*-mingw*)
4271
    # gcc leaves a trailing carriage return which upsets mingw
4272
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4273
  *)
4274
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4275
  esac
4276
  case $ac_prog in
4277
    # Accept absolute paths.
4278
    [\\/]* | ?:[\\/]*)
4279
      re_direlt='/[^/][^/]*/\.\./'
4280
      # Canonicalize the pathname of ld
4281 82 jeremybenn
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4282
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4283
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4284 19 jeremybenn
      done
4285
      test -z "$LD" && LD="$ac_prog"
4286
      ;;
4287
  "")
4288
    # If it fails, then pretend we aren't using GCC.
4289
    ac_prog=ld
4290
    ;;
4291
  *)
4292
    # If it is relative, then search for the first ld in PATH.
4293
    with_gnu_ld=unknown
4294
    ;;
4295
  esac
4296
elif test "$with_gnu_ld" = yes; then
4297 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4298 82 jeremybenn
$as_echo_n "checking for GNU ld... " >&6; }
4299 19 jeremybenn
else
4300 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4301 82 jeremybenn
$as_echo_n "checking for non-GNU ld... " >&6; }
4302 19 jeremybenn
fi
4303 346 jeremybenn
if test "${lt_cv_path_LD+set}" = set; then :
4304 82 jeremybenn
  $as_echo_n "(cached) " >&6
4305 19 jeremybenn
else
4306
  if test -z "$LD"; then
4307
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4308
  for ac_dir in $PATH; do
4309
    IFS="$lt_save_ifs"
4310
    test -z "$ac_dir" && ac_dir=.
4311
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4312
      lt_cv_path_LD="$ac_dir/$ac_prog"
4313
      # Check to see if the program is GNU ld.  I'd rather use --version,
4314
      # but apparently some variants of GNU ld only accept -v.
4315
      # Break only if it was the GNU/non-GNU ld that we prefer.
4316
      case `"$lt_cv_path_LD" -v 2>&1 
4317
      *GNU* | *'with BFD'*)
4318
        test "$with_gnu_ld" != no && break
4319
        ;;
4320
      *)
4321
        test "$with_gnu_ld" != yes && break
4322
        ;;
4323
      esac
4324
    fi
4325
  done
4326
  IFS="$lt_save_ifs"
4327
else
4328
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4329
fi
4330
fi
4331
 
4332
LD="$lt_cv_path_LD"
4333
if test -n "$LD"; then
4334 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4335 82 jeremybenn
$as_echo "$LD" >&6; }
4336 19 jeremybenn
else
4337 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4338 82 jeremybenn
$as_echo "no" >&6; }
4339 19 jeremybenn
fi
4340 346 jeremybenn
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4341
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4342 82 jeremybenn
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4343 346 jeremybenn
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4344 82 jeremybenn
  $as_echo_n "(cached) " >&6
4345 19 jeremybenn
else
4346
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4347
case `$LD -v 2>&1 
4348
*GNU* | *'with BFD'*)
4349
  lt_cv_prog_gnu_ld=yes
4350
  ;;
4351
*)
4352
  lt_cv_prog_gnu_ld=no
4353
  ;;
4354
esac
4355
fi
4356 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4357 82 jeremybenn
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4358 19 jeremybenn
with_gnu_ld=$lt_cv_prog_gnu_ld
4359
 
4360
 
4361
 
4362 82 jeremybenn
 
4363
 
4364
 
4365
 
4366
 
4367
 
4368 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4369 82 jeremybenn
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4370 346 jeremybenn
if test "${lt_cv_path_NM+set}" = set; then :
4371 82 jeremybenn
  $as_echo_n "(cached) " >&6
4372 19 jeremybenn
else
4373
  if test -n "$NM"; then
4374
  # Let the user override the test.
4375
  lt_cv_path_NM="$NM"
4376
else
4377
  lt_nm_to_check="${ac_tool_prefix}nm"
4378
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4379
    lt_nm_to_check="$lt_nm_to_check nm"
4380
  fi
4381
  for lt_tmp_nm in $lt_nm_to_check; do
4382
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4383
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4384
      IFS="$lt_save_ifs"
4385
      test -z "$ac_dir" && ac_dir=.
4386
      tmp_nm="$ac_dir/$lt_tmp_nm"
4387
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4388
        # Check to see if the nm accepts a BSD-compat flag.
4389
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4390
        #   nm: unknown option "B" ignored
4391
        # Tru64's nm complains that /dev/null is an invalid object file
4392
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4393
        */dev/null* | *'Invalid file or object type'*)
4394
          lt_cv_path_NM="$tmp_nm -B"
4395
          break
4396
          ;;
4397
        *)
4398
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4399
          */dev/null*)
4400
            lt_cv_path_NM="$tmp_nm -p"
4401
            break
4402
            ;;
4403
          *)
4404
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4405
            continue # so that we can try to find one that supports BSD flags
4406
            ;;
4407
          esac
4408
          ;;
4409
        esac
4410
      fi
4411
    done
4412
    IFS="$lt_save_ifs"
4413
  done
4414 82 jeremybenn
  : ${lt_cv_path_NM=no}
4415 19 jeremybenn
fi
4416
fi
4417 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4418 82 jeremybenn
$as_echo "$lt_cv_path_NM" >&6; }
4419
if test "$lt_cv_path_NM" != "no"; then
4420
  NM="$lt_cv_path_NM"
4421
else
4422
  # Didn't find any BSD compatible name lister, look for dumpbin.
4423
  if test -n "$ac_tool_prefix"; then
4424
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4425
  do
4426
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4427
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4428 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4429 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4430 346 jeremybenn
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4431 82 jeremybenn
  $as_echo_n "(cached) " >&6
4432
else
4433
  if test -n "$DUMPBIN"; then
4434
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4435
else
4436
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437
for as_dir in $PATH
4438
do
4439
  IFS=$as_save_IFS
4440
  test -z "$as_dir" && as_dir=.
4441 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4442 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4443
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4444 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 82 jeremybenn
    break 2
4446
  fi
4447
done
4448 346 jeremybenn
  done
4449 82 jeremybenn
IFS=$as_save_IFS
4450 19 jeremybenn
 
4451 82 jeremybenn
fi
4452
fi
4453
DUMPBIN=$ac_cv_prog_DUMPBIN
4454
if test -n "$DUMPBIN"; then
4455 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4456 82 jeremybenn
$as_echo "$DUMPBIN" >&6; }
4457
else
4458 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4459 82 jeremybenn
$as_echo "no" >&6; }
4460
fi
4461
 
4462
 
4463
    test -n "$DUMPBIN" && break
4464
  done
4465
fi
4466
if test -z "$DUMPBIN"; then
4467
  ac_ct_DUMPBIN=$DUMPBIN
4468
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4469
do
4470
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4471
set dummy $ac_prog; ac_word=$2
4472 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4473 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4474 346 jeremybenn
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4475 82 jeremybenn
  $as_echo_n "(cached) " >&6
4476
else
4477
  if test -n "$ac_ct_DUMPBIN"; then
4478
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4479
else
4480
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481
for as_dir in $PATH
4482
do
4483
  IFS=$as_save_IFS
4484
  test -z "$as_dir" && as_dir=.
4485 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4486 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4487
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4488 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4489 82 jeremybenn
    break 2
4490
  fi
4491
done
4492 346 jeremybenn
  done
4493 82 jeremybenn
IFS=$as_save_IFS
4494
 
4495
fi
4496
fi
4497
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4498
if test -n "$ac_ct_DUMPBIN"; then
4499 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4500 82 jeremybenn
$as_echo "$ac_ct_DUMPBIN" >&6; }
4501
else
4502 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4503 82 jeremybenn
$as_echo "no" >&6; }
4504
fi
4505
 
4506
 
4507
  test -n "$ac_ct_DUMPBIN" && break
4508
done
4509
 
4510
  if test "x$ac_ct_DUMPBIN" = x; then
4511
    DUMPBIN=":"
4512
  else
4513
    case $cross_compiling:$ac_tool_warned in
4514
yes:)
4515 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4516 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4517
ac_tool_warned=yes ;;
4518
esac
4519
    DUMPBIN=$ac_ct_DUMPBIN
4520
  fi
4521
fi
4522
 
4523
 
4524
  if test "$DUMPBIN" != ":"; then
4525
    NM="$DUMPBIN"
4526
  fi
4527
fi
4528
test -z "$NM" && NM=nm
4529
 
4530
 
4531
 
4532
 
4533
 
4534
 
4535 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4536 82 jeremybenn
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4537 346 jeremybenn
if test "${lt_cv_nm_interface+set}" = set; then :
4538 82 jeremybenn
  $as_echo_n "(cached) " >&6
4539
else
4540
  lt_cv_nm_interface="BSD nm"
4541
  echo "int some_variable = 0;" > conftest.$ac_ext
4542 432 jeremybenn
  (eval echo "\"\$as_me:4542: $ac_compile\"" >&5)
4543 82 jeremybenn
  (eval "$ac_compile" 2>conftest.err)
4544
  cat conftest.err >&5
4545 432 jeremybenn
  (eval echo "\"\$as_me:4545: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4546 82 jeremybenn
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4547
  cat conftest.err >&5
4548 432 jeremybenn
  (eval echo "\"\$as_me:4548: output\"" >&5)
4549 82 jeremybenn
  cat conftest.out >&5
4550
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4551
    lt_cv_nm_interface="MS dumpbin"
4552
  fi
4553
  rm -f conftest*
4554
fi
4555 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4556 82 jeremybenn
$as_echo "$lt_cv_nm_interface" >&6; }
4557
 
4558 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4559 82 jeremybenn
$as_echo_n "checking whether ln -s works... " >&6; }
4560 19 jeremybenn
LN_S=$as_ln_s
4561
if test "$LN_S" = "ln -s"; then
4562 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4563 82 jeremybenn
$as_echo "yes" >&6; }
4564 19 jeremybenn
else
4565 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4566 82 jeremybenn
$as_echo "no, using $LN_S" >&6; }
4567 19 jeremybenn
fi
4568
 
4569 82 jeremybenn
# find the maximum length of command line arguments
4570 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4571 82 jeremybenn
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4572 346 jeremybenn
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4573 82 jeremybenn
  $as_echo_n "(cached) " >&6
4574
else
4575
    i=0
4576
  teststring="ABCD"
4577
 
4578
  case $build_os in
4579
  msdosdjgpp*)
4580
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4581
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4582
    # during glob expansion).  Even if it were fixed, the result of this
4583
    # check would be larger than it should be.
4584
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4585
    ;;
4586
 
4587
  gnu*)
4588
    # Under GNU Hurd, this test is not required because there is
4589
    # no limit to the length of command line arguments.
4590
    # Libtool will interpret -1 as no limit whatsoever
4591
    lt_cv_sys_max_cmd_len=-1;
4592
    ;;
4593
 
4594
  cygwin* | mingw* | cegcc*)
4595
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4596
    # about 5 minutes as the teststring grows exponentially.
4597
    # Worse, since 9x/ME are not pre-emptively multitasking,
4598
    # you end up with a "frozen" computer, even though with patience
4599
    # the test eventually succeeds (with a max line length of 256k).
4600
    # Instead, let's just punt: use the minimum linelength reported by
4601
    # all of the supported platforms: 8192 (on NT/2K/XP).
4602
    lt_cv_sys_max_cmd_len=8192;
4603
    ;;
4604
 
4605
  amigaos*)
4606
    # On AmigaOS with pdksh, this test takes hours, literally.
4607
    # So we just punt and use a minimum line length of 8192.
4608
    lt_cv_sys_max_cmd_len=8192;
4609
    ;;
4610
 
4611
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4612
    # This has been around since 386BSD, at least.  Likely further.
4613
    if test -x /sbin/sysctl; then
4614
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4615
    elif test -x /usr/sbin/sysctl; then
4616
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4617
    else
4618
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4619
    fi
4620
    # And add a safety zone
4621
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4622
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4623
    ;;
4624
 
4625
  interix*)
4626
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4627
    lt_cv_sys_max_cmd_len=196608
4628
    ;;
4629
 
4630
  osf*)
4631
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4632
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4633
    # nice to cause kernel panics so lets avoid the loop below.
4634
    # First set a reasonable default.
4635
    lt_cv_sys_max_cmd_len=16384
4636
    #
4637
    if test -x /sbin/sysconfig; then
4638
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4639
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4640
      esac
4641
    fi
4642
    ;;
4643
  sco3.2v5*)
4644
    lt_cv_sys_max_cmd_len=102400
4645
    ;;
4646
  sysv5* | sco5v6* | sysv4.2uw2*)
4647
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4648
    if test -n "$kargmax"; then
4649
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4650
    else
4651
      lt_cv_sys_max_cmd_len=32768
4652
    fi
4653
    ;;
4654
  *)
4655
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4656
    if test -n "$lt_cv_sys_max_cmd_len"; then
4657
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4658
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4659
    else
4660
      # Make teststring a little bigger before we do anything with it.
4661
      # a 1K string should be a reasonable start.
4662
      for i in 1 2 3 4 5 6 7 8 ; do
4663
        teststring=$teststring$teststring
4664
      done
4665
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4666
      # If test is not a shell built-in, we'll probably end up computing a
4667
      # maximum length that is only half of the actual maximum length, but
4668
      # we can't tell.
4669
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4670
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4671
              test $i != 17 # 1/2 MB should be enough
4672
      do
4673
        i=`expr $i + 1`
4674
        teststring=$teststring$teststring
4675
      done
4676
      # Only check the string length outside the loop.
4677
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4678
      teststring=
4679
      # Add a significant safety factor because C++ compilers can tack on
4680
      # massive amounts of additional arguments before passing them to the
4681
      # linker.  It appears as though 1/2 is a usable value.
4682
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4683
    fi
4684
    ;;
4685
  esac
4686
 
4687
fi
4688
 
4689
if test -n $lt_cv_sys_max_cmd_len ; then
4690 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4691 82 jeremybenn
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4692
else
4693 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4694 82 jeremybenn
$as_echo "none" >&6; }
4695
fi
4696
max_cmd_len=$lt_cv_sys_max_cmd_len
4697
 
4698
 
4699
 
4700
 
4701
 
4702
 
4703
: ${CP="cp -f"}
4704
: ${MV="mv -f"}
4705
: ${RM="rm -f"}
4706
 
4707 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4708 82 jeremybenn
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4709
# Try some XSI features
4710
xsi_shell=no
4711
( _lt_dummy="a/b/c"
4712
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4713
      = c,a/b,, \
4714
    && eval 'test $(( 1 + 1 )) -eq 2 \
4715
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4716
  && xsi_shell=yes
4717 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4718 82 jeremybenn
$as_echo "$xsi_shell" >&6; }
4719
 
4720
 
4721 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4722 82 jeremybenn
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4723
lt_shell_append=no
4724
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4725
    >/dev/null 2>&1 \
4726
  && lt_shell_append=yes
4727 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4728 82 jeremybenn
$as_echo "$lt_shell_append" >&6; }
4729
 
4730
 
4731
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4732
  lt_unset=unset
4733
else
4734
  lt_unset=false
4735
fi
4736
 
4737
 
4738
 
4739
 
4740
 
4741
# test EBCDIC or ASCII
4742
case `echo X|tr X '\101'` in
4743
 A) # ASCII based system
4744
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4745
  lt_SP2NL='tr \040 \012'
4746
  lt_NL2SP='tr \015\012 \040\040'
4747
  ;;
4748
 *) # EBCDIC based system
4749
  lt_SP2NL='tr \100 \n'
4750
  lt_NL2SP='tr \r\n \100\100'
4751
  ;;
4752
esac
4753
 
4754
 
4755
 
4756
 
4757
 
4758
 
4759
 
4760
 
4761
 
4762 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4763 82 jeremybenn
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4764 346 jeremybenn
if test "${lt_cv_ld_reload_flag+set}" = set; then :
4765 82 jeremybenn
  $as_echo_n "(cached) " >&6
4766
else
4767
  lt_cv_ld_reload_flag='-r'
4768
fi
4769 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4770 82 jeremybenn
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4771
reload_flag=$lt_cv_ld_reload_flag
4772
case $reload_flag in
4773
"" | " "*) ;;
4774
*) reload_flag=" $reload_flag" ;;
4775
esac
4776
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4777
case $host_os in
4778
  darwin*)
4779
    if test "$GCC" = yes; then
4780
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4781
    else
4782
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4783
    fi
4784
    ;;
4785
esac
4786
 
4787
 
4788
 
4789
 
4790
 
4791
 
4792
 
4793
 
4794
 
4795
if test -n "$ac_tool_prefix"; then
4796
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4797
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4798 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4799 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4800 346 jeremybenn
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4801 82 jeremybenn
  $as_echo_n "(cached) " >&6
4802
else
4803
  if test -n "$OBJDUMP"; then
4804
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4805
else
4806
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807
for as_dir in $PATH
4808
do
4809
  IFS=$as_save_IFS
4810
  test -z "$as_dir" && as_dir=.
4811 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4812 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4813
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4814 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4815 82 jeremybenn
    break 2
4816
  fi
4817
done
4818 346 jeremybenn
  done
4819 82 jeremybenn
IFS=$as_save_IFS
4820
 
4821
fi
4822
fi
4823
OBJDUMP=$ac_cv_prog_OBJDUMP
4824
if test -n "$OBJDUMP"; then
4825 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4826 82 jeremybenn
$as_echo "$OBJDUMP" >&6; }
4827
else
4828 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4829 82 jeremybenn
$as_echo "no" >&6; }
4830
fi
4831
 
4832
 
4833
fi
4834
if test -z "$ac_cv_prog_OBJDUMP"; then
4835
  ac_ct_OBJDUMP=$OBJDUMP
4836
  # Extract the first word of "objdump", so it can be a program name with args.
4837
set dummy objdump; ac_word=$2
4838 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4839 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4840 346 jeremybenn
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4841 82 jeremybenn
  $as_echo_n "(cached) " >&6
4842
else
4843
  if test -n "$ac_ct_OBJDUMP"; then
4844
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4845
else
4846
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847
for as_dir in $PATH
4848
do
4849
  IFS=$as_save_IFS
4850
  test -z "$as_dir" && as_dir=.
4851 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4852 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4853
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4854 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4855 82 jeremybenn
    break 2
4856
  fi
4857
done
4858 346 jeremybenn
  done
4859 82 jeremybenn
IFS=$as_save_IFS
4860
 
4861
fi
4862
fi
4863
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4864
if test -n "$ac_ct_OBJDUMP"; then
4865 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4866 82 jeremybenn
$as_echo "$ac_ct_OBJDUMP" >&6; }
4867
else
4868 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4869 82 jeremybenn
$as_echo "no" >&6; }
4870
fi
4871
 
4872
  if test "x$ac_ct_OBJDUMP" = x; then
4873
    OBJDUMP="false"
4874
  else
4875
    case $cross_compiling:$ac_tool_warned in
4876
yes:)
4877 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4878 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4879
ac_tool_warned=yes ;;
4880
esac
4881
    OBJDUMP=$ac_ct_OBJDUMP
4882
  fi
4883
else
4884
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4885
fi
4886
 
4887
test -z "$OBJDUMP" && OBJDUMP=objdump
4888
 
4889
 
4890
 
4891
 
4892
 
4893
 
4894
 
4895
 
4896
 
4897 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4898 82 jeremybenn
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4899 346 jeremybenn
if test "${lt_cv_deplibs_check_method+set}" = set; then :
4900 82 jeremybenn
  $as_echo_n "(cached) " >&6
4901 19 jeremybenn
else
4902
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4903
lt_cv_file_magic_test_file=
4904
lt_cv_deplibs_check_method='unknown'
4905
# Need to set the preceding variable on all platforms that support
4906
# interlibrary dependencies.
4907
# 'none' -- dependencies not supported.
4908
# `unknown' -- same as none, but documents that we really don't know.
4909
# 'pass_all' -- all dependencies passed with no checks.
4910
# 'test_compile' -- check by making test program.
4911
# 'file_magic [[regex]]' -- check by looking for files in library path
4912
# which responds to the $file_magic_cmd with a given extended regex.
4913
# If you have `file' or equivalent on your system and you're not sure
4914
# whether `pass_all' will *always* work, you probably want this one.
4915
 
4916
case $host_os in
4917 82 jeremybenn
aix[4-9]*)
4918 19 jeremybenn
  lt_cv_deplibs_check_method=pass_all
4919
  ;;
4920
 
4921
beos*)
4922
  lt_cv_deplibs_check_method=pass_all
4923
  ;;
4924
 
4925
bsdi[45]*)
4926
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4927
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4928
  lt_cv_file_magic_test_file=/shlib/libc.so
4929
  ;;
4930
 
4931
cygwin*)
4932
  # func_win32_libid is a shell function defined in ltmain.sh
4933
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4934
  lt_cv_file_magic_cmd='func_win32_libid'
4935
  ;;
4936
 
4937
mingw* | pw32*)
4938
  # Base MSYS/MinGW do not provide the 'file' command needed by
4939
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4940
  # unless we find 'file', for example because we are cross-compiling.
4941
  if ( file / ) >/dev/null 2>&1; then
4942
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4943
    lt_cv_file_magic_cmd='func_win32_libid'
4944
  else
4945
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4946
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4947
  fi
4948
  ;;
4949
 
4950 82 jeremybenn
cegcc)
4951
  # use the weaker test based on 'objdump'. See mingw*.
4952
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4953
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4954
  ;;
4955
 
4956 19 jeremybenn
darwin* | rhapsody*)
4957
  lt_cv_deplibs_check_method=pass_all
4958
  ;;
4959
 
4960
freebsd* | dragonfly*)
4961 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4962 19 jeremybenn
    case $host_cpu in
4963
    i*86 )
4964
      # Not sure whether the presence of OpenBSD here was a mistake.
4965
      # Let's accept both of them until this is cleared up.
4966
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4967
      lt_cv_file_magic_cmd=/usr/bin/file
4968
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4969
      ;;
4970
    esac
4971
  else
4972
    lt_cv_deplibs_check_method=pass_all
4973
  fi
4974
  ;;
4975
 
4976
gnu*)
4977
  lt_cv_deplibs_check_method=pass_all
4978
  ;;
4979
 
4980
hpux10.20* | hpux11*)
4981
  lt_cv_file_magic_cmd=/usr/bin/file
4982
  case $host_cpu in
4983
  ia64*)
4984
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4985
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4986
    ;;
4987
  hppa*64*)
4988
    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]'
4989
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4990
    ;;
4991
  *)
4992
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4993
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4994
    ;;
4995
  esac
4996
  ;;
4997
 
4998
interix[3-9]*)
4999
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5000
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5001
  ;;
5002
 
5003
irix5* | irix6* | nonstopux*)
5004
  case $LD in
5005
  *-32|*"-32 ") libmagic=32-bit;;
5006
  *-n32|*"-n32 ") libmagic=N32;;
5007
  *-64|*"-64 ") libmagic=64-bit;;
5008
  *) libmagic=never-match;;
5009
  esac
5010
  lt_cv_deplibs_check_method=pass_all
5011
  ;;
5012
 
5013
# This must be Linux ELF.
5014
linux* | k*bsd*-gnu)
5015
  lt_cv_deplibs_check_method=pass_all
5016
  ;;
5017
 
5018 93 jeremybenn
netbsd* | netbsdelf*-gnu)
5019 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5020 19 jeremybenn
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5021
  else
5022
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5023
  fi
5024
  ;;
5025
 
5026
newos6*)
5027
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5028
  lt_cv_file_magic_cmd=/usr/bin/file
5029
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5030
  ;;
5031
 
5032 82 jeremybenn
*nto* | *qnx*)
5033
  lt_cv_deplibs_check_method=pass_all
5034 19 jeremybenn
  ;;
5035
 
5036
openbsd*)
5037 82 jeremybenn
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5038 19 jeremybenn
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5039
  else
5040
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5041
  fi
5042
  ;;
5043
 
5044
osf3* | osf4* | osf5*)
5045
  lt_cv_deplibs_check_method=pass_all
5046
  ;;
5047
 
5048
rdos*)
5049
  lt_cv_deplibs_check_method=pass_all
5050
  ;;
5051
 
5052
solaris*)
5053
  lt_cv_deplibs_check_method=pass_all
5054
  ;;
5055
 
5056 82 jeremybenn
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5057
  lt_cv_deplibs_check_method=pass_all
5058
  ;;
5059
 
5060 19 jeremybenn
sysv4 | sysv4.3*)
5061
  case $host_vendor in
5062
  motorola)
5063
    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]'
5064
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5065
    ;;
5066
  ncr)
5067
    lt_cv_deplibs_check_method=pass_all
5068
    ;;
5069
  sequent)
5070
    lt_cv_file_magic_cmd='/bin/file'
5071
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5072
    ;;
5073
  sni)
5074
    lt_cv_file_magic_cmd='/bin/file'
5075
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5076
    lt_cv_file_magic_test_file=/lib/libc.so
5077
    ;;
5078
  siemens)
5079
    lt_cv_deplibs_check_method=pass_all
5080
    ;;
5081
  pc)
5082
    lt_cv_deplibs_check_method=pass_all
5083
    ;;
5084
  esac
5085
  ;;
5086
 
5087 82 jeremybenn
tpf*)
5088 19 jeremybenn
  lt_cv_deplibs_check_method=pass_all
5089
  ;;
5090
esac
5091
 
5092
fi
5093 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5094 82 jeremybenn
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5095 19 jeremybenn
file_magic_cmd=$lt_cv_file_magic_cmd
5096
deplibs_check_method=$lt_cv_deplibs_check_method
5097
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5098
 
5099
 
5100
 
5101
 
5102 82 jeremybenn
 
5103
 
5104
 
5105
 
5106
 
5107
 
5108
 
5109
 
5110
if test -n "$ac_tool_prefix"; then
5111
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5112
set dummy ${ac_tool_prefix}ar; ac_word=$2
5113 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5115 346 jeremybenn
if test "${ac_cv_prog_AR+set}" = set; then :
5116 82 jeremybenn
  $as_echo_n "(cached) " >&6
5117
else
5118
  if test -n "$AR"; then
5119
  ac_cv_prog_AR="$AR" # Let the user override the test.
5120
else
5121
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122
for as_dir in $PATH
5123
do
5124
  IFS=$as_save_IFS
5125
  test -z "$as_dir" && as_dir=.
5126 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5127 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5128
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5129 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 82 jeremybenn
    break 2
5131
  fi
5132
done
5133 346 jeremybenn
  done
5134 82 jeremybenn
IFS=$as_save_IFS
5135
 
5136
fi
5137
fi
5138
AR=$ac_cv_prog_AR
5139
if test -n "$AR"; then
5140 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5141 82 jeremybenn
$as_echo "$AR" >&6; }
5142
else
5143 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144 82 jeremybenn
$as_echo "no" >&6; }
5145
fi
5146
 
5147
 
5148
fi
5149
if test -z "$ac_cv_prog_AR"; then
5150
  ac_ct_AR=$AR
5151
  # Extract the first word of "ar", so it can be a program name with args.
5152
set dummy ar; ac_word=$2
5153 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5155 346 jeremybenn
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5156 82 jeremybenn
  $as_echo_n "(cached) " >&6
5157
else
5158
  if test -n "$ac_ct_AR"; then
5159
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5160
else
5161
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162
for as_dir in $PATH
5163
do
5164
  IFS=$as_save_IFS
5165
  test -z "$as_dir" && as_dir=.
5166 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5167 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5168
    ac_cv_prog_ac_ct_AR="ar"
5169 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 82 jeremybenn
    break 2
5171
  fi
5172
done
5173 346 jeremybenn
  done
5174 82 jeremybenn
IFS=$as_save_IFS
5175
 
5176
fi
5177
fi
5178
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5179
if test -n "$ac_ct_AR"; then
5180 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5181 82 jeremybenn
$as_echo "$ac_ct_AR" >&6; }
5182
else
5183 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5184 82 jeremybenn
$as_echo "no" >&6; }
5185
fi
5186
 
5187
  if test "x$ac_ct_AR" = x; then
5188
    AR="false"
5189
  else
5190
    case $cross_compiling:$ac_tool_warned in
5191
yes:)
5192 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5193 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5194
ac_tool_warned=yes ;;
5195
esac
5196
    AR=$ac_ct_AR
5197
  fi
5198
else
5199
  AR="$ac_cv_prog_AR"
5200
fi
5201
 
5202
test -z "$AR" && AR=ar
5203
test -z "$AR_FLAGS" && AR_FLAGS=cru
5204
 
5205
 
5206
 
5207
 
5208
 
5209
 
5210
 
5211
 
5212
 
5213
 
5214
 
5215
if test -n "$ac_tool_prefix"; then
5216
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5217
set dummy ${ac_tool_prefix}strip; ac_word=$2
5218 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5219 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5220 346 jeremybenn
if test "${ac_cv_prog_STRIP+set}" = set; then :
5221 82 jeremybenn
  $as_echo_n "(cached) " >&6
5222
else
5223
  if test -n "$STRIP"; then
5224
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5225
else
5226
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227
for as_dir in $PATH
5228
do
5229
  IFS=$as_save_IFS
5230
  test -z "$as_dir" && as_dir=.
5231 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5232 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5233
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5234 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5235 82 jeremybenn
    break 2
5236
  fi
5237
done
5238 346 jeremybenn
  done
5239 82 jeremybenn
IFS=$as_save_IFS
5240
 
5241
fi
5242
fi
5243
STRIP=$ac_cv_prog_STRIP
5244
if test -n "$STRIP"; then
5245 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5246 82 jeremybenn
$as_echo "$STRIP" >&6; }
5247
else
5248 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249 82 jeremybenn
$as_echo "no" >&6; }
5250
fi
5251
 
5252
 
5253
fi
5254
if test -z "$ac_cv_prog_STRIP"; then
5255
  ac_ct_STRIP=$STRIP
5256
  # Extract the first word of "strip", so it can be a program name with args.
5257
set dummy strip; ac_word=$2
5258 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5260 346 jeremybenn
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5261 82 jeremybenn
  $as_echo_n "(cached) " >&6
5262
else
5263
  if test -n "$ac_ct_STRIP"; then
5264
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5265
else
5266
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267
for as_dir in $PATH
5268
do
5269
  IFS=$as_save_IFS
5270
  test -z "$as_dir" && as_dir=.
5271 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5272 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5273
    ac_cv_prog_ac_ct_STRIP="strip"
5274 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5275 82 jeremybenn
    break 2
5276
  fi
5277
done
5278 346 jeremybenn
  done
5279 82 jeremybenn
IFS=$as_save_IFS
5280
 
5281
fi
5282
fi
5283
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5284
if test -n "$ac_ct_STRIP"; then
5285 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5286 82 jeremybenn
$as_echo "$ac_ct_STRIP" >&6; }
5287
else
5288 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289 82 jeremybenn
$as_echo "no" >&6; }
5290
fi
5291
 
5292
  if test "x$ac_ct_STRIP" = x; then
5293
    STRIP=":"
5294
  else
5295
    case $cross_compiling:$ac_tool_warned in
5296
yes:)
5297 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5298 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5299
ac_tool_warned=yes ;;
5300
esac
5301
    STRIP=$ac_ct_STRIP
5302
  fi
5303
else
5304
  STRIP="$ac_cv_prog_STRIP"
5305
fi
5306
 
5307
test -z "$STRIP" && STRIP=:
5308
 
5309
 
5310
 
5311
 
5312
 
5313
 
5314
if test -n "$ac_tool_prefix"; then
5315
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5316
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5317 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5318 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5319 346 jeremybenn
if test "${ac_cv_prog_RANLIB+set}" = set; then :
5320 82 jeremybenn
  $as_echo_n "(cached) " >&6
5321
else
5322
  if test -n "$RANLIB"; then
5323
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5324
else
5325
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326
for as_dir in $PATH
5327
do
5328
  IFS=$as_save_IFS
5329
  test -z "$as_dir" && as_dir=.
5330 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5331 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5332
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5333 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5334 82 jeremybenn
    break 2
5335
  fi
5336
done
5337 346 jeremybenn
  done
5338 82 jeremybenn
IFS=$as_save_IFS
5339
 
5340
fi
5341
fi
5342
RANLIB=$ac_cv_prog_RANLIB
5343
if test -n "$RANLIB"; then
5344 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5345 82 jeremybenn
$as_echo "$RANLIB" >&6; }
5346
else
5347 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5348 82 jeremybenn
$as_echo "no" >&6; }
5349
fi
5350
 
5351
 
5352
fi
5353
if test -z "$ac_cv_prog_RANLIB"; then
5354
  ac_ct_RANLIB=$RANLIB
5355
  # Extract the first word of "ranlib", so it can be a program name with args.
5356
set dummy ranlib; ac_word=$2
5357 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5358 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5359 346 jeremybenn
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5360 82 jeremybenn
  $as_echo_n "(cached) " >&6
5361
else
5362
  if test -n "$ac_ct_RANLIB"; then
5363
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5364
else
5365
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366
for as_dir in $PATH
5367
do
5368
  IFS=$as_save_IFS
5369
  test -z "$as_dir" && as_dir=.
5370 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5371 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5372
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5373 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5374 82 jeremybenn
    break 2
5375
  fi
5376
done
5377 346 jeremybenn
  done
5378 82 jeremybenn
IFS=$as_save_IFS
5379
 
5380
fi
5381
fi
5382
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5383
if test -n "$ac_ct_RANLIB"; then
5384 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5385 82 jeremybenn
$as_echo "$ac_ct_RANLIB" >&6; }
5386
else
5387 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388 82 jeremybenn
$as_echo "no" >&6; }
5389
fi
5390
 
5391
  if test "x$ac_ct_RANLIB" = x; then
5392
    RANLIB=":"
5393
  else
5394
    case $cross_compiling:$ac_tool_warned in
5395
yes:)
5396 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5397 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5398
ac_tool_warned=yes ;;
5399
esac
5400
    RANLIB=$ac_ct_RANLIB
5401
  fi
5402
else
5403
  RANLIB="$ac_cv_prog_RANLIB"
5404
fi
5405
 
5406
test -z "$RANLIB" && RANLIB=:
5407
 
5408
 
5409
 
5410
 
5411
 
5412
 
5413
# Determine commands to create old-style static archives.
5414
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5415
old_postinstall_cmds='chmod 644 $oldlib'
5416
old_postuninstall_cmds=
5417
 
5418
if test -n "$RANLIB"; then
5419
  case $host_os in
5420
  openbsd*)
5421
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5422
    ;;
5423
  *)
5424
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5425
    ;;
5426
  esac
5427
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5428
fi
5429
 
5430
 
5431
 
5432
 
5433
 
5434
 
5435
 
5436
 
5437
 
5438
 
5439
 
5440
 
5441
 
5442
 
5443
 
5444
 
5445
 
5446
 
5447
 
5448
 
5449
 
5450
 
5451
 
5452
 
5453
 
5454
 
5455
 
5456
 
5457
 
5458
 
5459
 
5460
 
5461
 
5462
 
5463 19 jeremybenn
# If no C compiler was specified, use CC.
5464
LTCC=${LTCC-"$CC"}
5465
 
5466
# If no C compiler flags were specified, use CFLAGS.
5467
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5468
 
5469
# Allow CC to be a program name with arguments.
5470
compiler=$CC
5471
 
5472
 
5473 82 jeremybenn
# Check for command to grab the raw symbol name followed by C symbol from nm.
5474 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5475 82 jeremybenn
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5476 346 jeremybenn
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5477 82 jeremybenn
  $as_echo_n "(cached) " >&6
5478
else
5479
 
5480
# These are sane defaults that work on at least a few old systems.
5481
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5482
 
5483
# Character class describing NM global symbol codes.
5484
symcode='[BCDEGRST]'
5485
 
5486
# Regexp to match symbols that can be accessed directly from C.
5487
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5488
 
5489
# Define system-specific variables.
5490
case $host_os in
5491
aix*)
5492
  symcode='[BCDT]'
5493
  ;;
5494
cygwin* | mingw* | pw32* | cegcc*)
5495
  symcode='[ABCDGISTW]'
5496
  ;;
5497
hpux*)
5498
  if test "$host_cpu" = ia64; then
5499
    symcode='[ABCDEGRST]'
5500
  fi
5501
  ;;
5502
irix* | nonstopux*)
5503
  symcode='[BCDEGRST]'
5504
  ;;
5505
osf*)
5506
  symcode='[BCDEGQRST]'
5507
  ;;
5508
solaris*)
5509
  symcode='[BDRT]'
5510
  ;;
5511
sco3.2v5*)
5512
  symcode='[DT]'
5513
  ;;
5514
sysv4.2uw2*)
5515
  symcode='[DT]'
5516
  ;;
5517
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5518
  symcode='[ABDT]'
5519
  ;;
5520
sysv4)
5521
  symcode='[DFNSTU]'
5522
  ;;
5523
esac
5524
 
5525
# If we're using GNU nm, then use its standard symbol codes.
5526
case `$NM -V 2>&1` in
5527
*GNU* | *'with BFD'*)
5528
  symcode='[ABCDGIRSTW]' ;;
5529
esac
5530
 
5531
# Transform an extracted symbol line into a proper C declaration.
5532
# Some systems (esp. on ia64) link data and code symbols differently,
5533
# so use this general approach.
5534
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5535
 
5536
# Transform an extracted symbol line into symbol name and symbol address
5537
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5538
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'"
5539
 
5540
# Handle CRLF in mingw tool chain
5541
opt_cr=
5542
case $build_os in
5543
mingw*)
5544
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5545
  ;;
5546
esac
5547
 
5548
# Try without a prefix underscore, then with it.
5549
for ac_symprfx in "" "_"; do
5550
 
5551
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5552
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5553
 
5554
  # Write the raw and C identifiers.
5555
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5556
    # Fake it for dumpbin and say T for any non-static function
5557
    # and D for any global variable.
5558
    # Also find C++ and __fastcall symbols from MSVC++,
5559
    # which start with @ or ?.
5560
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5561
"     {last_section=section; section=\$ 3};"\
5562
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5563
"     \$ 0!~/External *\|/{next};"\
5564
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5565
"     {if(hide[section]) next};"\
5566
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5567
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5568
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5569
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5570
"     ' prfx=^$ac_symprfx"
5571
  else
5572
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5573
  fi
5574
 
5575
  # Check to see that the pipe works correctly.
5576
  pipe_works=no
5577
 
5578
  rm -f conftest*
5579
  cat > conftest.$ac_ext <<_LT_EOF
5580
#ifdef __cplusplus
5581
extern "C" {
5582
#endif
5583
char nm_test_var;
5584
void nm_test_func(void);
5585
void nm_test_func(void){}
5586
#ifdef __cplusplus
5587
}
5588
#endif
5589
int main(){nm_test_var='a';nm_test_func();return(0);}
5590
_LT_EOF
5591
 
5592 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5593 82 jeremybenn
  (eval $ac_compile) 2>&5
5594
  ac_status=$?
5595 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5596
  test $ac_status = 0; }; then
5597 82 jeremybenn
    # Now try to grab the symbols.
5598
    nlist=conftest.nm
5599 346 jeremybenn
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5600 82 jeremybenn
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5601
  ac_status=$?
5602 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5603
  test $ac_status = 0; } && test -s "$nlist"; then
5604 82 jeremybenn
      # Try sorting and uniquifying the output.
5605
      if sort "$nlist" | uniq > "$nlist"T; then
5606
        mv -f "$nlist"T "$nlist"
5607
      else
5608
        rm -f "$nlist"T
5609
      fi
5610
 
5611
      # Make sure that we snagged all the symbols we need.
5612
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5613
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5614
          cat <<_LT_EOF > conftest.$ac_ext
5615
#ifdef __cplusplus
5616
extern "C" {
5617
#endif
5618
 
5619
_LT_EOF
5620
          # Now generate the symbol file.
5621
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5622
 
5623
          cat <<_LT_EOF >> conftest.$ac_ext
5624
 
5625
/* The mapping between symbol names and symbols.  */
5626
const struct {
5627
  const char *name;
5628
  void       *address;
5629
}
5630
lt__PROGRAM__LTX_preloaded_symbols[] =
5631
{
5632
  { "@PROGRAM@", (void *) 0 },
5633
_LT_EOF
5634
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5635
          cat <<\_LT_EOF >> conftest.$ac_ext
5636
  {0, (void *) 0}
5637
};
5638
 
5639
/* This works around a problem in FreeBSD linker */
5640
#ifdef FREEBSD_WORKAROUND
5641
static const void *lt_preloaded_setup() {
5642
  return lt__PROGRAM__LTX_preloaded_symbols;
5643
}
5644
#endif
5645
 
5646
#ifdef __cplusplus
5647
}
5648
#endif
5649
_LT_EOF
5650
          # Now try linking the two files.
5651
          mv conftest.$ac_objext conftstm.$ac_objext
5652
          lt_save_LIBS="$LIBS"
5653
          lt_save_CFLAGS="$CFLAGS"
5654
          LIBS="conftstm.$ac_objext"
5655
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5656 346 jeremybenn
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5657 82 jeremybenn
  (eval $ac_link) 2>&5
5658
  ac_status=$?
5659 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5660
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5661 82 jeremybenn
            pipe_works=yes
5662
          fi
5663
          LIBS="$lt_save_LIBS"
5664
          CFLAGS="$lt_save_CFLAGS"
5665
        else
5666
          echo "cannot find nm_test_func in $nlist" >&5
5667
        fi
5668
      else
5669
        echo "cannot find nm_test_var in $nlist" >&5
5670
      fi
5671
    else
5672
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5673
    fi
5674
  else
5675
    echo "$progname: failed program was:" >&5
5676
    cat conftest.$ac_ext >&5
5677
  fi
5678
  rm -rf conftest* conftst*
5679
 
5680
  # Do not use the global_symbol_pipe unless it works.
5681
  if test "$pipe_works" = yes; then
5682
    break
5683
  else
5684
    lt_cv_sys_global_symbol_pipe=
5685
  fi
5686
done
5687
 
5688
fi
5689
 
5690
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5691
  lt_cv_sys_global_symbol_to_cdecl=
5692
fi
5693
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5694 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5695 82 jeremybenn
$as_echo "failed" >&6; }
5696
else
5697 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5698 82 jeremybenn
$as_echo "ok" >&6; }
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 19 jeremybenn
# Check whether --enable-libtool-lock was given.
5723 346 jeremybenn
if test "${enable_libtool_lock+set}" = set; then :
5724 19 jeremybenn
  enableval=$enable_libtool_lock;
5725
fi
5726
 
5727
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5728
 
5729
# Some flags need to be propagated to the compiler or linker for good
5730
# libtool support.
5731
case $host in
5732
ia64-*-hpux*)
5733
  # Find out which ABI we are using.
5734
  echo 'int i;' > conftest.$ac_ext
5735 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5736 19 jeremybenn
  (eval $ac_compile) 2>&5
5737
  ac_status=$?
5738 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5739
  test $ac_status = 0; }; then
5740 19 jeremybenn
    case `/usr/bin/file conftest.$ac_objext` in
5741 82 jeremybenn
      *ELF-32*)
5742
        HPUX_IA64_MODE="32"
5743
        ;;
5744
      *ELF-64*)
5745
        HPUX_IA64_MODE="64"
5746
        ;;
5747 19 jeremybenn
    esac
5748
  fi
5749
  rm -rf conftest*
5750
  ;;
5751
*-*-irix6*)
5752
  # Find out which ABI we are using.
5753 432 jeremybenn
  echo '#line 5753 "configure"' > conftest.$ac_ext
5754 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5755 19 jeremybenn
  (eval $ac_compile) 2>&5
5756
  ac_status=$?
5757 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5758
  test $ac_status = 0; }; then
5759 82 jeremybenn
    if test "$lt_cv_prog_gnu_ld" = yes; then
5760
      case `/usr/bin/file conftest.$ac_objext` in
5761
        *32-bit*)
5762
          LD="${LD-ld} -melf32bsmip"
5763
          ;;
5764
        *N32*)
5765
          LD="${LD-ld} -melf32bmipn32"
5766
          ;;
5767
        *64-bit*)
5768
          LD="${LD-ld} -melf64bmip"
5769
        ;;
5770
      esac
5771
    else
5772
      case `/usr/bin/file conftest.$ac_objext` in
5773
        *32-bit*)
5774
          LD="${LD-ld} -32"
5775
          ;;
5776
        *N32*)
5777
          LD="${LD-ld} -n32"
5778
          ;;
5779
        *64-bit*)
5780
          LD="${LD-ld} -64"
5781
          ;;
5782
      esac
5783
    fi
5784 19 jeremybenn
  fi
5785
  rm -rf conftest*
5786
  ;;
5787
 
5788
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5789 82 jeremybenn
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5790 19 jeremybenn
  # Find out which ABI we are using.
5791
  echo 'int i;' > conftest.$ac_ext
5792 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5793 19 jeremybenn
  (eval $ac_compile) 2>&5
5794
  ac_status=$?
5795 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5796
  test $ac_status = 0; }; then
5797 19 jeremybenn
    case `/usr/bin/file conftest.o` in
5798 82 jeremybenn
      *32-bit*)
5799
        case $host in
5800
          x86_64-*kfreebsd*-gnu)
5801
            LD="${LD-ld} -m elf_i386_fbsd"
5802
            ;;
5803
          x86_64-*linux*)
5804
            LD="${LD-ld} -m elf_i386"
5805
            ;;
5806
          ppc64-*linux*|powerpc64-*linux*)
5807
            LD="${LD-ld} -m elf32ppclinux"
5808
            ;;
5809
          s390x-*linux*)
5810
            LD="${LD-ld} -m elf_s390"
5811
            ;;
5812
          sparc64-*linux*)
5813
            LD="${LD-ld} -m elf32_sparc"
5814
            ;;
5815
        esac
5816
        ;;
5817
      *64-bit*)
5818
        case $host in
5819
          x86_64-*kfreebsd*-gnu)
5820
            LD="${LD-ld} -m elf_x86_64_fbsd"
5821
            ;;
5822
          x86_64-*linux*)
5823
            LD="${LD-ld} -m elf_x86_64"
5824
            ;;
5825
          ppc*-*linux*|powerpc*-*linux*)
5826
            LD="${LD-ld} -m elf64ppc"
5827
            ;;
5828
          s390*-*linux*|s390*-*tpf*)
5829
            LD="${LD-ld} -m elf64_s390"
5830
            ;;
5831
          sparc*-*linux*)
5832
            LD="${LD-ld} -m elf64_sparc"
5833
            ;;
5834
        esac
5835
        ;;
5836 19 jeremybenn
    esac
5837
  fi
5838
  rm -rf conftest*
5839
  ;;
5840
 
5841
*-*-sco3.2v5*)
5842
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5843
  SAVE_CFLAGS="$CFLAGS"
5844
  CFLAGS="$CFLAGS -belf"
5845 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5846 82 jeremybenn
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5847 346 jeremybenn
if test "${lt_cv_cc_needs_belf+set}" = set; then :
5848 82 jeremybenn
  $as_echo_n "(cached) " >&6
5849 19 jeremybenn
else
5850
  ac_ext=c
5851
ac_cpp='$CPP $CPPFLAGS'
5852
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5853
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5854
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5855
 
5856 346 jeremybenn
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5857 19 jeremybenn
/* end confdefs.h.  */
5858
 
5859
int
5860
main ()
5861
{
5862
 
5863
  ;
5864
  return 0;
5865
}
5866
_ACEOF
5867 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
5868 19 jeremybenn
  lt_cv_cc_needs_belf=yes
5869
else
5870 346 jeremybenn
  lt_cv_cc_needs_belf=no
5871 19 jeremybenn
fi
5872 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
5873
    conftest$ac_exeext conftest.$ac_ext
5874 19 jeremybenn
     ac_ext=c
5875
ac_cpp='$CPP $CPPFLAGS'
5876
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5877
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5878
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5879
 
5880
fi
5881 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5882 82 jeremybenn
$as_echo "$lt_cv_cc_needs_belf" >&6; }
5883 19 jeremybenn
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5884
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5885
    CFLAGS="$SAVE_CFLAGS"
5886
  fi
5887
  ;;
5888
sparc*-*solaris*)
5889
  # Find out which ABI we are using.
5890
  echo 'int i;' > conftest.$ac_ext
5891 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5892 19 jeremybenn
  (eval $ac_compile) 2>&5
5893
  ac_status=$?
5894 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5895
  test $ac_status = 0; }; then
5896 19 jeremybenn
    case `/usr/bin/file conftest.o` in
5897
    *64-bit*)
5898
      case $lt_cv_prog_gnu_ld in
5899
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5900 82 jeremybenn
      *)
5901
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5902
          LD="${LD-ld} -64"
5903
        fi
5904
        ;;
5905 19 jeremybenn
      esac
5906
      ;;
5907
    esac
5908
  fi
5909
  rm -rf conftest*
5910
  ;;
5911 82 jeremybenn
esac
5912 19 jeremybenn
 
5913 82 jeremybenn
need_locks="$enable_libtool_lock"
5914 19 jeremybenn
 
5915 82 jeremybenn
 
5916
  case $host_os in
5917
    rhapsody* | darwin*)
5918
    if test -n "$ac_tool_prefix"; then
5919
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5920
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5921 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5922 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5923 346 jeremybenn
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5924 82 jeremybenn
  $as_echo_n "(cached) " >&6
5925
else
5926
  if test -n "$DSYMUTIL"; then
5927
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5928
else
5929
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930
for as_dir in $PATH
5931
do
5932
  IFS=$as_save_IFS
5933
  test -z "$as_dir" && as_dir=.
5934 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5935 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5936
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5937 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5938 82 jeremybenn
    break 2
5939
  fi
5940
done
5941 346 jeremybenn
  done
5942 82 jeremybenn
IFS=$as_save_IFS
5943
 
5944
fi
5945
fi
5946
DSYMUTIL=$ac_cv_prog_DSYMUTIL
5947
if test -n "$DSYMUTIL"; then
5948 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5949 82 jeremybenn
$as_echo "$DSYMUTIL" >&6; }
5950
else
5951 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5952 82 jeremybenn
$as_echo "no" >&6; }
5953
fi
5954
 
5955
 
5956
fi
5957
if test -z "$ac_cv_prog_DSYMUTIL"; then
5958
  ac_ct_DSYMUTIL=$DSYMUTIL
5959
  # Extract the first word of "dsymutil", so it can be a program name with args.
5960
set dummy dsymutil; ac_word=$2
5961 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5962 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5963 346 jeremybenn
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5964 82 jeremybenn
  $as_echo_n "(cached) " >&6
5965
else
5966
  if test -n "$ac_ct_DSYMUTIL"; then
5967
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5968
else
5969
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970
for as_dir in $PATH
5971
do
5972
  IFS=$as_save_IFS
5973
  test -z "$as_dir" && as_dir=.
5974 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5975 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5976
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5977 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5978 82 jeremybenn
    break 2
5979
  fi
5980
done
5981 346 jeremybenn
  done
5982 82 jeremybenn
IFS=$as_save_IFS
5983
 
5984
fi
5985
fi
5986
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5987
if test -n "$ac_ct_DSYMUTIL"; then
5988 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5989 82 jeremybenn
$as_echo "$ac_ct_DSYMUTIL" >&6; }
5990
else
5991 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5992 82 jeremybenn
$as_echo "no" >&6; }
5993
fi
5994
 
5995
  if test "x$ac_ct_DSYMUTIL" = x; then
5996
    DSYMUTIL=":"
5997
  else
5998
    case $cross_compiling:$ac_tool_warned in
5999
yes:)
6000 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6001 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6002
ac_tool_warned=yes ;;
6003 19 jeremybenn
esac
6004 82 jeremybenn
    DSYMUTIL=$ac_ct_DSYMUTIL
6005
  fi
6006
else
6007
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6008
fi
6009 19 jeremybenn
 
6010 82 jeremybenn
    if test -n "$ac_tool_prefix"; then
6011
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6012
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6013 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6014 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6015 346 jeremybenn
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6016 82 jeremybenn
  $as_echo_n "(cached) " >&6
6017
else
6018
  if test -n "$NMEDIT"; then
6019
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6020
else
6021
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022
for as_dir in $PATH
6023
do
6024
  IFS=$as_save_IFS
6025
  test -z "$as_dir" && as_dir=.
6026 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6027 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6028
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6029 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6030 82 jeremybenn
    break 2
6031
  fi
6032
done
6033 346 jeremybenn
  done
6034 82 jeremybenn
IFS=$as_save_IFS
6035 19 jeremybenn
 
6036 82 jeremybenn
fi
6037
fi
6038
NMEDIT=$ac_cv_prog_NMEDIT
6039
if test -n "$NMEDIT"; then
6040 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6041 82 jeremybenn
$as_echo "$NMEDIT" >&6; }
6042
else
6043 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6044 82 jeremybenn
$as_echo "no" >&6; }
6045
fi
6046 19 jeremybenn
 
6047 82 jeremybenn
 
6048
fi
6049
if test -z "$ac_cv_prog_NMEDIT"; then
6050
  ac_ct_NMEDIT=$NMEDIT
6051
  # Extract the first word of "nmedit", so it can be a program name with args.
6052
set dummy nmedit; ac_word=$2
6053 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6054 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6055 346 jeremybenn
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6056 82 jeremybenn
  $as_echo_n "(cached) " >&6
6057
else
6058
  if test -n "$ac_ct_NMEDIT"; then
6059
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6060
else
6061
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062
for as_dir in $PATH
6063
do
6064
  IFS=$as_save_IFS
6065
  test -z "$as_dir" && as_dir=.
6066 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6067 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6068
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6069 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6070 82 jeremybenn
    break 2
6071
  fi
6072
done
6073 346 jeremybenn
  done
6074 82 jeremybenn
IFS=$as_save_IFS
6075
 
6076
fi
6077
fi
6078
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6079
if test -n "$ac_ct_NMEDIT"; then
6080 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6081 82 jeremybenn
$as_echo "$ac_ct_NMEDIT" >&6; }
6082
else
6083 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6084 82 jeremybenn
$as_echo "no" >&6; }
6085
fi
6086
 
6087
  if test "x$ac_ct_NMEDIT" = x; then
6088
    NMEDIT=":"
6089
  else
6090
    case $cross_compiling:$ac_tool_warned in
6091
yes:)
6092 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6093 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6094
ac_tool_warned=yes ;;
6095
esac
6096
    NMEDIT=$ac_ct_NMEDIT
6097
  fi
6098
else
6099
  NMEDIT="$ac_cv_prog_NMEDIT"
6100
fi
6101
 
6102
    if test -n "$ac_tool_prefix"; then
6103
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6104
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6105 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6106 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6107 346 jeremybenn
if test "${ac_cv_prog_LIPO+set}" = set; then :
6108 82 jeremybenn
  $as_echo_n "(cached) " >&6
6109
else
6110
  if test -n "$LIPO"; then
6111
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6112
else
6113
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114
for as_dir in $PATH
6115
do
6116
  IFS=$as_save_IFS
6117
  test -z "$as_dir" && as_dir=.
6118 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6119 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6120
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6121 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6122 82 jeremybenn
    break 2
6123
  fi
6124
done
6125 346 jeremybenn
  done
6126 82 jeremybenn
IFS=$as_save_IFS
6127
 
6128
fi
6129
fi
6130
LIPO=$ac_cv_prog_LIPO
6131
if test -n "$LIPO"; then
6132 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6133 82 jeremybenn
$as_echo "$LIPO" >&6; }
6134
else
6135 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6136 82 jeremybenn
$as_echo "no" >&6; }
6137
fi
6138
 
6139
 
6140
fi
6141
if test -z "$ac_cv_prog_LIPO"; then
6142
  ac_ct_LIPO=$LIPO
6143
  # Extract the first word of "lipo", so it can be a program name with args.
6144
set dummy lipo; ac_word=$2
6145 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6146 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6147 346 jeremybenn
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6148 82 jeremybenn
  $as_echo_n "(cached) " >&6
6149
else
6150
  if test -n "$ac_ct_LIPO"; then
6151
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6152
else
6153
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154
for as_dir in $PATH
6155
do
6156
  IFS=$as_save_IFS
6157
  test -z "$as_dir" && as_dir=.
6158 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6159 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6160
    ac_cv_prog_ac_ct_LIPO="lipo"
6161 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6162 82 jeremybenn
    break 2
6163
  fi
6164
done
6165 346 jeremybenn
  done
6166 82 jeremybenn
IFS=$as_save_IFS
6167
 
6168
fi
6169
fi
6170
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6171
if test -n "$ac_ct_LIPO"; then
6172 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6173 82 jeremybenn
$as_echo "$ac_ct_LIPO" >&6; }
6174
else
6175 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6176 82 jeremybenn
$as_echo "no" >&6; }
6177
fi
6178
 
6179
  if test "x$ac_ct_LIPO" = x; then
6180
    LIPO=":"
6181
  else
6182
    case $cross_compiling:$ac_tool_warned in
6183
yes:)
6184 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6185 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6186
ac_tool_warned=yes ;;
6187
esac
6188
    LIPO=$ac_ct_LIPO
6189
  fi
6190
else
6191
  LIPO="$ac_cv_prog_LIPO"
6192
fi
6193
 
6194
    if test -n "$ac_tool_prefix"; then
6195
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6196
set dummy ${ac_tool_prefix}otool; ac_word=$2
6197 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6198 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6199 346 jeremybenn
if test "${ac_cv_prog_OTOOL+set}" = set; then :
6200 82 jeremybenn
  $as_echo_n "(cached) " >&6
6201
else
6202
  if test -n "$OTOOL"; then
6203
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6204
else
6205
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206
for as_dir in $PATH
6207
do
6208
  IFS=$as_save_IFS
6209
  test -z "$as_dir" && as_dir=.
6210 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6211 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6212
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6213 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6214 82 jeremybenn
    break 2
6215
  fi
6216
done
6217 346 jeremybenn
  done
6218 82 jeremybenn
IFS=$as_save_IFS
6219
 
6220
fi
6221
fi
6222
OTOOL=$ac_cv_prog_OTOOL
6223
if test -n "$OTOOL"; then
6224 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6225 82 jeremybenn
$as_echo "$OTOOL" >&6; }
6226
else
6227 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6228 82 jeremybenn
$as_echo "no" >&6; }
6229
fi
6230
 
6231
 
6232
fi
6233
if test -z "$ac_cv_prog_OTOOL"; then
6234
  ac_ct_OTOOL=$OTOOL
6235
  # Extract the first word of "otool", so it can be a program name with args.
6236
set dummy otool; ac_word=$2
6237 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6238 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6239 346 jeremybenn
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6240 82 jeremybenn
  $as_echo_n "(cached) " >&6
6241
else
6242
  if test -n "$ac_ct_OTOOL"; then
6243
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6244
else
6245
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246
for as_dir in $PATH
6247
do
6248
  IFS=$as_save_IFS
6249
  test -z "$as_dir" && as_dir=.
6250 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6251 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6252
    ac_cv_prog_ac_ct_OTOOL="otool"
6253 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6254 82 jeremybenn
    break 2
6255
  fi
6256
done
6257 346 jeremybenn
  done
6258 82 jeremybenn
IFS=$as_save_IFS
6259
 
6260
fi
6261
fi
6262
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6263
if test -n "$ac_ct_OTOOL"; then
6264 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6265 82 jeremybenn
$as_echo "$ac_ct_OTOOL" >&6; }
6266
else
6267 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6268 82 jeremybenn
$as_echo "no" >&6; }
6269
fi
6270
 
6271
  if test "x$ac_ct_OTOOL" = x; then
6272
    OTOOL=":"
6273
  else
6274
    case $cross_compiling:$ac_tool_warned in
6275
yes:)
6276 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6277 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6278
ac_tool_warned=yes ;;
6279
esac
6280
    OTOOL=$ac_ct_OTOOL
6281
  fi
6282
else
6283
  OTOOL="$ac_cv_prog_OTOOL"
6284
fi
6285
 
6286
    if test -n "$ac_tool_prefix"; then
6287
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6288
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6289 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6291 346 jeremybenn
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6292 82 jeremybenn
  $as_echo_n "(cached) " >&6
6293
else
6294
  if test -n "$OTOOL64"; then
6295
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6296
else
6297
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298
for as_dir in $PATH
6299
do
6300
  IFS=$as_save_IFS
6301
  test -z "$as_dir" && as_dir=.
6302 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6303 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6304
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6305 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6306 82 jeremybenn
    break 2
6307
  fi
6308
done
6309 346 jeremybenn
  done
6310 82 jeremybenn
IFS=$as_save_IFS
6311
 
6312
fi
6313
fi
6314
OTOOL64=$ac_cv_prog_OTOOL64
6315
if test -n "$OTOOL64"; then
6316 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6317 82 jeremybenn
$as_echo "$OTOOL64" >&6; }
6318
else
6319 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320 82 jeremybenn
$as_echo "no" >&6; }
6321
fi
6322
 
6323
 
6324
fi
6325
if test -z "$ac_cv_prog_OTOOL64"; then
6326
  ac_ct_OTOOL64=$OTOOL64
6327
  # Extract the first word of "otool64", so it can be a program name with args.
6328
set dummy otool64; ac_word=$2
6329 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6330 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6331 346 jeremybenn
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6332 82 jeremybenn
  $as_echo_n "(cached) " >&6
6333
else
6334
  if test -n "$ac_ct_OTOOL64"; then
6335
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6336
else
6337
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338
for as_dir in $PATH
6339
do
6340
  IFS=$as_save_IFS
6341
  test -z "$as_dir" && as_dir=.
6342 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6343 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6344
    ac_cv_prog_ac_ct_OTOOL64="otool64"
6345 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6346 82 jeremybenn
    break 2
6347
  fi
6348
done
6349 346 jeremybenn
  done
6350 82 jeremybenn
IFS=$as_save_IFS
6351
 
6352
fi
6353
fi
6354
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6355
if test -n "$ac_ct_OTOOL64"; then
6356 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6357 82 jeremybenn
$as_echo "$ac_ct_OTOOL64" >&6; }
6358
else
6359 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360 82 jeremybenn
$as_echo "no" >&6; }
6361
fi
6362
 
6363
  if test "x$ac_ct_OTOOL64" = x; then
6364
    OTOOL64=":"
6365
  else
6366
    case $cross_compiling:$ac_tool_warned in
6367
yes:)
6368 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6369 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6370
ac_tool_warned=yes ;;
6371
esac
6372
    OTOOL64=$ac_ct_OTOOL64
6373
  fi
6374
else
6375
  OTOOL64="$ac_cv_prog_OTOOL64"
6376
fi
6377
 
6378
 
6379
 
6380
 
6381
 
6382
 
6383
 
6384
 
6385
 
6386
 
6387
 
6388
 
6389
 
6390
 
6391
 
6392
 
6393
 
6394
 
6395
 
6396
 
6397
 
6398
 
6399
 
6400
 
6401
 
6402
 
6403
 
6404 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6405 82 jeremybenn
$as_echo_n "checking for -single_module linker flag... " >&6; }
6406 346 jeremybenn
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6407 82 jeremybenn
  $as_echo_n "(cached) " >&6
6408
else
6409
  lt_cv_apple_cc_single_mod=no
6410
      if test -z "${LT_MULTI_MODULE}"; then
6411
        # By default we will add the -single_module flag. You can override
6412
        # by either setting the environment variable LT_MULTI_MODULE
6413
        # non-empty at configure time, or by adding -multi_module to the
6414
        # link flags.
6415
        rm -rf libconftest.dylib*
6416
        echo "int foo(void){return 1;}" > conftest.c
6417
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6418
-dynamiclib -Wl,-single_module conftest.c" >&5
6419
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6420
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6421
        _lt_result=$?
6422
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6423
          lt_cv_apple_cc_single_mod=yes
6424
        else
6425
          cat conftest.err >&5
6426
        fi
6427
        rm -rf libconftest.dylib*
6428
        rm -f conftest.*
6429
      fi
6430
fi
6431 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6432 82 jeremybenn
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6433 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6434 82 jeremybenn
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6435 346 jeremybenn
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6436 82 jeremybenn
  $as_echo_n "(cached) " >&6
6437
else
6438
  lt_cv_ld_exported_symbols_list=no
6439
      save_LDFLAGS=$LDFLAGS
6440
      echo "_main" > conftest.sym
6441
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6442 346 jeremybenn
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6443 82 jeremybenn
/* end confdefs.h.  */
6444
 
6445
int
6446
main ()
6447
{
6448
 
6449
  ;
6450
  return 0;
6451
}
6452
_ACEOF
6453 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
6454 82 jeremybenn
  lt_cv_ld_exported_symbols_list=yes
6455
else
6456 346 jeremybenn
  lt_cv_ld_exported_symbols_list=no
6457 82 jeremybenn
fi
6458 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
6459
    conftest$ac_exeext conftest.$ac_ext
6460 82 jeremybenn
        LDFLAGS="$save_LDFLAGS"
6461
 
6462
fi
6463 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6464 82 jeremybenn
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6465
    case $host_os in
6466
    rhapsody* | darwin1.[012])
6467
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6468
    darwin1.*)
6469
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6470
    darwin*) # darwin 5.x on
6471
      # if running on 10.5 or later, the deployment target defaults
6472
      # to the OS version, if on x86, and 10.4, the deployment
6473
      # target defaults to 10.4. Don't you love it?
6474
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6475
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6476
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6477
        10.[012]*)
6478
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6479
        10.*)
6480
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6481
      esac
6482
    ;;
6483
  esac
6484
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6485
      _lt_dar_single_mod='$single_module'
6486
    fi
6487
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6488
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6489
    else
6490
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6491
    fi
6492
    if test "$DSYMUTIL" != ":"; then
6493
      _lt_dsymutil='~$DSYMUTIL $lib || :'
6494
    else
6495
      _lt_dsymutil=
6496
    fi
6497
    ;;
6498
  esac
6499
 
6500 19 jeremybenn
for ac_header in dlfcn.h
6501 346 jeremybenn
do :
6502
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6503
"
6504
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6505 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
6506 346 jeremybenn
#define HAVE_DLFCN_H 1
6507 19 jeremybenn
_ACEOF
6508
 
6509
fi
6510
 
6511
done
6512
 
6513
 
6514
 
6515 82 jeremybenn
# Set options
6516 19 jeremybenn
 
6517
 
6518
 
6519 82 jeremybenn
        enable_dlopen=no
6520 19 jeremybenn
 
6521
 
6522 82 jeremybenn
  enable_win32_dll=no
6523 19 jeremybenn
 
6524
 
6525 82 jeremybenn
            # Check whether --enable-shared was given.
6526 346 jeremybenn
if test "${enable_shared+set}" = set; then :
6527 82 jeremybenn
  enableval=$enable_shared; p=${PACKAGE-default}
6528
    case $enableval in
6529
    yes) enable_shared=yes ;;
6530
    no) enable_shared=no ;;
6531
    *)
6532
      enable_shared=no
6533
      # Look at the argument we got.  We use all the common list separators.
6534
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6535
      for pkg in $enableval; do
6536
        IFS="$lt_save_ifs"
6537
        if test "X$pkg" = "X$p"; then
6538
          enable_shared=yes
6539
        fi
6540
      done
6541
      IFS="$lt_save_ifs"
6542
      ;;
6543
    esac
6544 19 jeremybenn
else
6545 82 jeremybenn
  enable_shared=yes
6546 19 jeremybenn
fi
6547
 
6548
 
6549
 
6550
 
6551
 
6552
 
6553
 
6554
 
6555
 
6556 82 jeremybenn
  # Check whether --enable-static was given.
6557 346 jeremybenn
if test "${enable_static+set}" = set; then :
6558 82 jeremybenn
  enableval=$enable_static; p=${PACKAGE-default}
6559
    case $enableval in
6560
    yes) enable_static=yes ;;
6561
    no) enable_static=no ;;
6562
    *)
6563
     enable_static=no
6564
      # Look at the argument we got.  We use all the common list separators.
6565
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6566
      for pkg in $enableval; do
6567
        IFS="$lt_save_ifs"
6568
        if test "X$pkg" = "X$p"; then
6569
          enable_static=yes
6570
        fi
6571
      done
6572
      IFS="$lt_save_ifs"
6573
      ;;
6574
    esac
6575 19 jeremybenn
else
6576 82 jeremybenn
  enable_static=yes
6577 19 jeremybenn
fi
6578
 
6579
 
6580
 
6581
 
6582
 
6583
 
6584
 
6585
 
6586
 
6587
 
6588 82 jeremybenn
# Check whether --with-pic was given.
6589 346 jeremybenn
if test "${with_pic+set}" = set; then :
6590 82 jeremybenn
  withval=$with_pic; pic_mode="$withval"
6591 19 jeremybenn
else
6592 82 jeremybenn
  pic_mode=default
6593 19 jeremybenn
fi
6594
 
6595
 
6596 82 jeremybenn
test -z "$pic_mode" && pic_mode=default
6597 19 jeremybenn
 
6598
 
6599
 
6600
 
6601
 
6602
 
6603
 
6604 82 jeremybenn
  # Check whether --enable-fast-install was given.
6605 346 jeremybenn
if test "${enable_fast_install+set}" = set; then :
6606 82 jeremybenn
  enableval=$enable_fast_install; p=${PACKAGE-default}
6607
    case $enableval in
6608
    yes) enable_fast_install=yes ;;
6609
    no) enable_fast_install=no ;;
6610
    *)
6611
      enable_fast_install=no
6612
      # Look at the argument we got.  We use all the common list separators.
6613
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6614
      for pkg in $enableval; do
6615
        IFS="$lt_save_ifs"
6616
        if test "X$pkg" = "X$p"; then
6617
          enable_fast_install=yes
6618
        fi
6619
      done
6620
      IFS="$lt_save_ifs"
6621
      ;;
6622
    esac
6623 19 jeremybenn
else
6624 82 jeremybenn
  enable_fast_install=yes
6625 19 jeremybenn
fi
6626
 
6627
 
6628
 
6629
 
6630
 
6631
 
6632
 
6633
 
6634
 
6635
 
6636
 
6637 82 jeremybenn
# This can be used to rebuild libtool when needed
6638
LIBTOOL_DEPS="$ltmain"
6639 19 jeremybenn
 
6640 82 jeremybenn
# Always use our own libtool.
6641
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6642 19 jeremybenn
 
6643
 
6644
 
6645
 
6646
 
6647
 
6648
 
6649
 
6650
 
6651
 
6652
 
6653
 
6654
 
6655
 
6656
 
6657
 
6658
 
6659
 
6660
 
6661
 
6662
 
6663
 
6664
 
6665
 
6666
 
6667 82 jeremybenn
test -z "$LN_S" && LN_S="ln -s"
6668 19 jeremybenn
 
6669
 
6670
 
6671
 
6672
 
6673
 
6674
 
6675
 
6676
 
6677
 
6678
 
6679
 
6680
 
6681
 
6682 82 jeremybenn
if test -n "${ZSH_VERSION+set}" ; then
6683
   setopt NO_GLOB_SUBST
6684 19 jeremybenn
fi
6685
 
6686 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6687 82 jeremybenn
$as_echo_n "checking for objdir... " >&6; }
6688 346 jeremybenn
if test "${lt_cv_objdir+set}" = set; then :
6689 82 jeremybenn
  $as_echo_n "(cached) " >&6
6690 19 jeremybenn
else
6691
  rm -f .libs 2>/dev/null
6692
mkdir .libs 2>/dev/null
6693
if test -d .libs; then
6694
  lt_cv_objdir=.libs
6695
else
6696
  # MS-DOS does not allow filenames that begin with a dot.
6697
  lt_cv_objdir=_libs
6698
fi
6699
rmdir .libs 2>/dev/null
6700
fi
6701 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6702 82 jeremybenn
$as_echo "$lt_cv_objdir" >&6; }
6703 19 jeremybenn
objdir=$lt_cv_objdir
6704
 
6705
 
6706
 
6707
 
6708
 
6709 82 jeremybenn
cat >>confdefs.h <<_ACEOF
6710
#define LT_OBJDIR "$lt_cv_objdir/"
6711
_ACEOF
6712
 
6713
 
6714
 
6715
 
6716
 
6717
 
6718
 
6719
 
6720
 
6721
 
6722
 
6723
 
6724
 
6725
 
6726
 
6727
 
6728
 
6729 19 jeremybenn
case $host_os in
6730
aix3*)
6731
  # AIX sometimes has problems with the GCC collect2 program.  For some
6732
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6733
  # vanish in a puff of smoke.
6734
  if test "X${COLLECT_NAMES+set}" != Xset; then
6735
    COLLECT_NAMES=
6736
    export COLLECT_NAMES
6737
  fi
6738
  ;;
6739
esac
6740
 
6741
# Sed substitution that helps us do robust quoting.  It backslashifies
6742
# metacharacters that are still active within double-quoted strings.
6743 82 jeremybenn
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6744 19 jeremybenn
 
6745
# Same as above, but do not quote variable references.
6746 82 jeremybenn
double_quote_subst='s/\(["`\\]\)/\\\1/g'
6747 19 jeremybenn
 
6748
# Sed substitution to delay expansion of an escaped shell variable in a
6749
# double_quote_subst'ed string.
6750
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6751
 
6752 82 jeremybenn
# Sed substitution to delay expansion of an escaped single quote.
6753
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6754
 
6755 19 jeremybenn
# Sed substitution to avoid accidental globbing in evaled expressions
6756
no_glob_subst='s/\*/\\\*/g'
6757
 
6758
# Global variables:
6759 82 jeremybenn
ofile=libtool
6760 19 jeremybenn
can_build_shared=yes
6761
 
6762
# All known linkers require a `.a' archive for static linking (except MSVC,
6763
# which needs '.lib').
6764
libext=a
6765 82 jeremybenn
 
6766 19 jeremybenn
with_gnu_ld="$lt_cv_prog_gnu_ld"
6767
 
6768
old_CC="$CC"
6769
old_CFLAGS="$CFLAGS"
6770
 
6771
# Set sane defaults for various variables
6772
test -z "$CC" && CC=cc
6773
test -z "$LTCC" && LTCC=$CC
6774
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6775
test -z "$LD" && LD=ld
6776
test -z "$ac_objext" && ac_objext=o
6777
 
6778
for cc_temp in $compiler""; do
6779
  case $cc_temp in
6780
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6781
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6782
    \-*) ;;
6783
    *) break;;
6784
  esac
6785
done
6786 82 jeremybenn
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6787 19 jeremybenn
 
6788
 
6789
# Only perform the check for file, if the check method requires it
6790 82 jeremybenn
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6791 19 jeremybenn
case $deplibs_check_method in
6792
file_magic*)
6793
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6794 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6795 82 jeremybenn
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6796 346 jeremybenn
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6797 82 jeremybenn
  $as_echo_n "(cached) " >&6
6798 19 jeremybenn
else
6799
  case $MAGIC_CMD in
6800
[\\/*] |  ?:[\\/]*)
6801
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6802
  ;;
6803
*)
6804
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6805
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6806
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6807
  for ac_dir in $ac_dummy; do
6808
    IFS="$lt_save_ifs"
6809
    test -z "$ac_dir" && ac_dir=.
6810
    if test -f $ac_dir/${ac_tool_prefix}file; then
6811
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6812
      if test -n "$file_magic_test_file"; then
6813
        case $deplibs_check_method in
6814
        "file_magic "*)
6815
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6816
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6817
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6818
            $EGREP "$file_magic_regex" > /dev/null; then
6819
            :
6820
          else
6821 82 jeremybenn
            cat <<_LT_EOF 1>&2
6822 19 jeremybenn
 
6823
*** Warning: the command libtool uses to detect shared libraries,
6824
*** $file_magic_cmd, produces output that libtool cannot recognize.
6825
*** The result is that libtool may fail to recognize shared libraries
6826
*** as such.  This will affect the creation of libtool libraries that
6827
*** depend on shared libraries, but programs linked with such libtool
6828
*** libraries will work regardless of this problem.  Nevertheless, you
6829
*** may want to report the problem to your system manager and/or to
6830
*** bug-libtool@gnu.org
6831
 
6832 82 jeremybenn
_LT_EOF
6833 19 jeremybenn
          fi ;;
6834
        esac
6835
      fi
6836
      break
6837
    fi
6838
  done
6839
  IFS="$lt_save_ifs"
6840
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6841
  ;;
6842
esac
6843
fi
6844
 
6845
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6846
if test -n "$MAGIC_CMD"; then
6847 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6848 82 jeremybenn
$as_echo "$MAGIC_CMD" >&6; }
6849 19 jeremybenn
else
6850 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6851 82 jeremybenn
$as_echo "no" >&6; }
6852 19 jeremybenn
fi
6853
 
6854 82 jeremybenn
 
6855
 
6856
 
6857
 
6858 19 jeremybenn
if test -z "$lt_cv_path_MAGIC_CMD"; then
6859
  if test -n "$ac_tool_prefix"; then
6860 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6861 82 jeremybenn
$as_echo_n "checking for file... " >&6; }
6862 346 jeremybenn
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6863 82 jeremybenn
  $as_echo_n "(cached) " >&6
6864 19 jeremybenn
else
6865
  case $MAGIC_CMD in
6866
[\\/*] |  ?:[\\/]*)
6867
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6868
  ;;
6869
*)
6870
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6871
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6872
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6873
  for ac_dir in $ac_dummy; do
6874
    IFS="$lt_save_ifs"
6875
    test -z "$ac_dir" && ac_dir=.
6876
    if test -f $ac_dir/file; then
6877
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6878
      if test -n "$file_magic_test_file"; then
6879
        case $deplibs_check_method in
6880
        "file_magic "*)
6881
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6882
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6883
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6884
            $EGREP "$file_magic_regex" > /dev/null; then
6885
            :
6886
          else
6887 82 jeremybenn
            cat <<_LT_EOF 1>&2
6888 19 jeremybenn
 
6889
*** Warning: the command libtool uses to detect shared libraries,
6890
*** $file_magic_cmd, produces output that libtool cannot recognize.
6891
*** The result is that libtool may fail to recognize shared libraries
6892
*** as such.  This will affect the creation of libtool libraries that
6893
*** depend on shared libraries, but programs linked with such libtool
6894
*** libraries will work regardless of this problem.  Nevertheless, you
6895
*** may want to report the problem to your system manager and/or to
6896
*** bug-libtool@gnu.org
6897
 
6898 82 jeremybenn
_LT_EOF
6899 19 jeremybenn
          fi ;;
6900
        esac
6901
      fi
6902
      break
6903
    fi
6904
  done
6905
  IFS="$lt_save_ifs"
6906
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6907
  ;;
6908
esac
6909
fi
6910
 
6911
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6912
if test -n "$MAGIC_CMD"; then
6913 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6914 82 jeremybenn
$as_echo "$MAGIC_CMD" >&6; }
6915 19 jeremybenn
else
6916 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6917 82 jeremybenn
$as_echo "no" >&6; }
6918 19 jeremybenn
fi
6919
 
6920 82 jeremybenn
 
6921 19 jeremybenn
  else
6922
    MAGIC_CMD=:
6923
  fi
6924
fi
6925
 
6926
  fi
6927
  ;;
6928
esac
6929
 
6930 82 jeremybenn
# Use C for the default configuration in the libtool script
6931 19 jeremybenn
 
6932
lt_save_CC="$CC"
6933
ac_ext=c
6934
ac_cpp='$CPP $CPPFLAGS'
6935
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6936
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6937
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6938
 
6939
 
6940
# Source file extension for C test sources.
6941
ac_ext=c
6942
 
6943
# Object file extension for compiled C test sources.
6944
objext=o
6945
objext=$objext
6946
 
6947
# Code to be used in simple compile tests
6948
lt_simple_compile_test_code="int some_variable = 0;"
6949
 
6950
# Code to be used in simple link tests
6951
lt_simple_link_test_code='int main(){return(0);}'
6952
 
6953
 
6954 82 jeremybenn
 
6955
 
6956
 
6957
 
6958
 
6959 19 jeremybenn
# If no C compiler was specified, use CC.
6960
LTCC=${LTCC-"$CC"}
6961
 
6962
# If no C compiler flags were specified, use CFLAGS.
6963
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6964
 
6965
# Allow CC to be a program name with arguments.
6966
compiler=$CC
6967
 
6968 82 jeremybenn
# Save the default compiler, since it gets overwritten when the other
6969
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6970
compiler_DEFAULT=$CC
6971 19 jeremybenn
 
6972
# save warnings/boilerplate of simple test code
6973
ac_outfile=conftest.$ac_objext
6974
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6975
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6976
_lt_compiler_boilerplate=`cat conftest.err`
6977 82 jeremybenn
$RM conftest*
6978 19 jeremybenn
 
6979
ac_outfile=conftest.$ac_objext
6980
echo "$lt_simple_link_test_code" >conftest.$ac_ext
6981
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6982
_lt_linker_boilerplate=`cat conftest.err`
6983 82 jeremybenn
$RM -r conftest*
6984 19 jeremybenn
 
6985
 
6986 82 jeremybenn
## CAVEAT EMPTOR:
6987
## There is no encapsulation within the following macros, do not change
6988
## the running order or otherwise move them around unless you know exactly
6989
## what you are doing...
6990
if test -n "$compiler"; then
6991 19 jeremybenn
 
6992
lt_prog_compiler_no_builtin_flag=
6993
 
6994
if test "$GCC" = yes; then
6995
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6996
 
6997 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6998 82 jeremybenn
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6999 346 jeremybenn
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7000 82 jeremybenn
  $as_echo_n "(cached) " >&6
7001 19 jeremybenn
else
7002
  lt_cv_prog_compiler_rtti_exceptions=no
7003 82 jeremybenn
   ac_outfile=conftest.$ac_objext
7004 19 jeremybenn
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7005
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7006
   # Insert the option either (1) after the last *FLAGS variable, or
7007
   # (2) before a word containing "conftest.", or (3) at the end.
7008
   # Note that $ac_compile itself does not contain backslashes and begins
7009
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7010
   # The option is referenced via a variable to avoid confusing sed.
7011
   lt_compile=`echo "$ac_compile" | $SED \
7012
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7013
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7014
   -e 's:$: $lt_compiler_flag:'`
7015 432 jeremybenn
   (eval echo "\"\$as_me:7015: $lt_compile\"" >&5)
7016 19 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
7017
   ac_status=$?
7018
   cat conftest.err >&5
7019 432 jeremybenn
   echo "$as_me:7019: \$? = $ac_status" >&5
7020 19 jeremybenn
   if (exit $ac_status) && test -s "$ac_outfile"; then
7021
     # The compiler can only warn and ignore the option if not recognized
7022
     # So say no if there are warnings other than the usual output.
7023 82 jeremybenn
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7024 19 jeremybenn
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7025
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7026
       lt_cv_prog_compiler_rtti_exceptions=yes
7027
     fi
7028
   fi
7029 82 jeremybenn
   $RM conftest*
7030 19 jeremybenn
 
7031
fi
7032 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7033 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7034 19 jeremybenn
 
7035
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7036
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7037
else
7038
    :
7039
fi
7040
 
7041
fi
7042
 
7043 82 jeremybenn
 
7044
 
7045
 
7046
 
7047
 
7048
  lt_prog_compiler_wl=
7049 19 jeremybenn
lt_prog_compiler_pic=
7050
lt_prog_compiler_static=
7051
 
7052 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7053 82 jeremybenn
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7054 19 jeremybenn
 
7055
  if test "$GCC" = yes; then
7056
    lt_prog_compiler_wl='-Wl,'
7057
    lt_prog_compiler_static='-static'
7058
 
7059
    case $host_os in
7060
      aix*)
7061
      # All AIX code is PIC.
7062
      if test "$host_cpu" = ia64; then
7063
        # AIX 5 now supports IA64 processor
7064
        lt_prog_compiler_static='-Bstatic'
7065
      fi
7066
      ;;
7067
 
7068
    amigaos*)
7069 82 jeremybenn
      case $host_cpu in
7070
      powerpc)
7071
            # see comment about AmigaOS4 .so support
7072
            lt_prog_compiler_pic='-fPIC'
7073
        ;;
7074
      m68k)
7075
            # FIXME: we need at least 68020 code to build shared libraries, but
7076
            # adding the `-m68020' flag to GCC prevents building anything better,
7077
            # like `-m68040'.
7078
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7079
        ;;
7080
      esac
7081 19 jeremybenn
      ;;
7082
 
7083
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7084
      # PIC is the default for these OSes.
7085
      ;;
7086
 
7087 82 jeremybenn
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7088 19 jeremybenn
      # This hack is so that the source file can tell whether it is being
7089
      # built for inclusion in a dll (and should export symbols for example).
7090
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7091
      # (--disable-auto-import) libraries
7092
      lt_prog_compiler_pic='-DDLL_EXPORT'
7093
      ;;
7094
 
7095
    darwin* | rhapsody*)
7096
      # PIC is the default on this platform
7097
      # Common symbols not allowed in MH_DYLIB files
7098
      lt_prog_compiler_pic='-fno-common'
7099
      ;;
7100
 
7101 82 jeremybenn
    hpux*)
7102
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7103
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7104
      # sets the default TLS model and affects inlining.
7105
      case $host_cpu in
7106
      hppa*64*)
7107
        # +Z the default
7108
        ;;
7109
      *)
7110
        lt_prog_compiler_pic='-fPIC'
7111
        ;;
7112
      esac
7113
      ;;
7114
 
7115 19 jeremybenn
    interix[3-9]*)
7116
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7117
      # Instead, we relocate shared libraries at runtime.
7118
      ;;
7119
 
7120
    msdosdjgpp*)
7121
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7122
      # on systems that don't support them.
7123
      lt_prog_compiler_can_build_shared=no
7124
      enable_shared=no
7125
      ;;
7126
 
7127 82 jeremybenn
    *nto* | *qnx*)
7128
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7129
      # it will coredump.
7130
      lt_prog_compiler_pic='-fPIC -shared'
7131
      ;;
7132
 
7133 19 jeremybenn
    sysv4*MP*)
7134
      if test -d /usr/nec; then
7135
        lt_prog_compiler_pic=-Kconform_pic
7136
      fi
7137
      ;;
7138
 
7139
    *)
7140
      lt_prog_compiler_pic='-fPIC'
7141
      ;;
7142
    esac
7143
  else
7144
    # PORTME Check for flag to pass linker flags through the system compiler.
7145
    case $host_os in
7146
    aix*)
7147
      lt_prog_compiler_wl='-Wl,'
7148
      if test "$host_cpu" = ia64; then
7149
        # AIX 5 now supports IA64 processor
7150
        lt_prog_compiler_static='-Bstatic'
7151
      else
7152
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7153
      fi
7154
      ;;
7155
 
7156 82 jeremybenn
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7157 19 jeremybenn
      # This hack is so that the source file can tell whether it is being
7158
      # built for inclusion in a dll (and should export symbols for example).
7159
      lt_prog_compiler_pic='-DDLL_EXPORT'
7160
      ;;
7161
 
7162
    hpux9* | hpux10* | hpux11*)
7163
      lt_prog_compiler_wl='-Wl,'
7164
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7165
      # not for PA HP-UX.
7166
      case $host_cpu in
7167
      hppa*64*|ia64*)
7168
        # +Z the default
7169
        ;;
7170
      *)
7171
        lt_prog_compiler_pic='+Z'
7172
        ;;
7173
      esac
7174
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7175
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7176
      ;;
7177
 
7178
    irix5* | irix6* | nonstopux*)
7179
      lt_prog_compiler_wl='-Wl,'
7180
      # PIC (with -KPIC) is the default.
7181
      lt_prog_compiler_static='-non_shared'
7182
      ;;
7183
 
7184
    linux* | k*bsd*-gnu)
7185
      case $cc_basename in
7186 82 jeremybenn
      # old Intel for x86_64 which still supported -KPIC.
7187
      ecc*)
7188 19 jeremybenn
        lt_prog_compiler_wl='-Wl,'
7189
        lt_prog_compiler_pic='-KPIC'
7190
        lt_prog_compiler_static='-static'
7191
        ;;
7192 82 jeremybenn
      # icc used to be incompatible with GCC.
7193
      # ICC 10 doesn't accept -KPIC any more.
7194
      icc* | ifort*)
7195
        lt_prog_compiler_wl='-Wl,'
7196
        lt_prog_compiler_pic='-fPIC'
7197
        lt_prog_compiler_static='-static'
7198
        ;;
7199
      # Lahey Fortran 8.1.
7200
      lf95*)
7201
        lt_prog_compiler_wl='-Wl,'
7202
        lt_prog_compiler_pic='--shared'
7203
        lt_prog_compiler_static='--static'
7204
        ;;
7205 19 jeremybenn
      pgcc* | pgf77* | pgf90* | pgf95*)
7206
        # Portland Group compilers (*not* the Pentium gcc compiler,
7207
        # which looks to be a dead project)
7208
        lt_prog_compiler_wl='-Wl,'
7209
        lt_prog_compiler_pic='-fpic'
7210
        lt_prog_compiler_static='-Bstatic'
7211
        ;;
7212
      ccc*)
7213
        lt_prog_compiler_wl='-Wl,'
7214
        # All Alpha code is PIC.
7215
        lt_prog_compiler_static='-non_shared'
7216
        ;;
7217 82 jeremybenn
      xl*)
7218
        # IBM XL C 8.0/Fortran 10.1 on PPC
7219
        lt_prog_compiler_wl='-Wl,'
7220
        lt_prog_compiler_pic='-qpic'
7221
        lt_prog_compiler_static='-qstaticlink'
7222
        ;;
7223 19 jeremybenn
      *)
7224 82 jeremybenn
        case `$CC -V 2>&1 | sed 5q` in
7225 19 jeremybenn
        *Sun\ C*)
7226
          # Sun C 5.9
7227
          lt_prog_compiler_pic='-KPIC'
7228
          lt_prog_compiler_static='-Bstatic'
7229
          lt_prog_compiler_wl='-Wl,'
7230
          ;;
7231
        *Sun\ F*)
7232
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7233
          lt_prog_compiler_pic='-KPIC'
7234
          lt_prog_compiler_static='-Bstatic'
7235
          lt_prog_compiler_wl=''
7236
          ;;
7237
        esac
7238
        ;;
7239
      esac
7240
      ;;
7241
 
7242 82 jeremybenn
    newsos6)
7243
      lt_prog_compiler_pic='-KPIC'
7244
      lt_prog_compiler_static='-Bstatic'
7245
      ;;
7246
 
7247
    *nto* | *qnx*)
7248
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7249
      # it will coredump.
7250
      lt_prog_compiler_pic='-fPIC -shared'
7251
      ;;
7252
 
7253 19 jeremybenn
    osf3* | osf4* | osf5*)
7254
      lt_prog_compiler_wl='-Wl,'
7255
      # All OSF/1 code is PIC.
7256
      lt_prog_compiler_static='-non_shared'
7257
      ;;
7258
 
7259
    rdos*)
7260
      lt_prog_compiler_static='-non_shared'
7261
      ;;
7262
 
7263
    solaris*)
7264
      lt_prog_compiler_pic='-KPIC'
7265
      lt_prog_compiler_static='-Bstatic'
7266
      case $cc_basename in
7267
      f77* | f90* | f95*)
7268
        lt_prog_compiler_wl='-Qoption ld ';;
7269
      *)
7270
        lt_prog_compiler_wl='-Wl,';;
7271
      esac
7272
      ;;
7273
 
7274
    sunos4*)
7275
      lt_prog_compiler_wl='-Qoption ld '
7276
      lt_prog_compiler_pic='-PIC'
7277
      lt_prog_compiler_static='-Bstatic'
7278
      ;;
7279
 
7280
    sysv4 | sysv4.2uw2* | sysv4.3*)
7281
      lt_prog_compiler_wl='-Wl,'
7282
      lt_prog_compiler_pic='-KPIC'
7283
      lt_prog_compiler_static='-Bstatic'
7284
      ;;
7285
 
7286
    sysv4*MP*)
7287
      if test -d /usr/nec ;then
7288
        lt_prog_compiler_pic='-Kconform_pic'
7289
        lt_prog_compiler_static='-Bstatic'
7290
      fi
7291
      ;;
7292
 
7293
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7294
      lt_prog_compiler_wl='-Wl,'
7295
      lt_prog_compiler_pic='-KPIC'
7296
      lt_prog_compiler_static='-Bstatic'
7297
      ;;
7298
 
7299
    unicos*)
7300
      lt_prog_compiler_wl='-Wl,'
7301
      lt_prog_compiler_can_build_shared=no
7302
      ;;
7303
 
7304
    uts4*)
7305
      lt_prog_compiler_pic='-pic'
7306
      lt_prog_compiler_static='-Bstatic'
7307
      ;;
7308
 
7309
    *)
7310
      lt_prog_compiler_can_build_shared=no
7311
      ;;
7312
    esac
7313
  fi
7314
 
7315 82 jeremybenn
case $host_os in
7316
  # For platforms which do not support PIC, -DPIC is meaningless:
7317
  *djgpp*)
7318
    lt_prog_compiler_pic=
7319
    ;;
7320
  *)
7321
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7322
    ;;
7323
esac
7324 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7325 82 jeremybenn
$as_echo "$lt_prog_compiler_pic" >&6; }
7326 19 jeremybenn
 
7327 82 jeremybenn
 
7328
 
7329
 
7330
 
7331
 
7332 19 jeremybenn
#
7333
# Check to make sure the PIC flag actually works.
7334
#
7335
if test -n "$lt_prog_compiler_pic"; then
7336 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7337 82 jeremybenn
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7338 346 jeremybenn
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7339 82 jeremybenn
  $as_echo_n "(cached) " >&6
7340 19 jeremybenn
else
7341 82 jeremybenn
  lt_cv_prog_compiler_pic_works=no
7342
   ac_outfile=conftest.$ac_objext
7343 19 jeremybenn
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7344
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7345
   # Insert the option either (1) after the last *FLAGS variable, or
7346
   # (2) before a word containing "conftest.", or (3) at the end.
7347
   # Note that $ac_compile itself does not contain backslashes and begins
7348
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7349
   # The option is referenced via a variable to avoid confusing sed.
7350
   lt_compile=`echo "$ac_compile" | $SED \
7351
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7352
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7353
   -e 's:$: $lt_compiler_flag:'`
7354 432 jeremybenn
   (eval echo "\"\$as_me:7354: $lt_compile\"" >&5)
7355 19 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
7356
   ac_status=$?
7357
   cat conftest.err >&5
7358 432 jeremybenn
   echo "$as_me:7358: \$? = $ac_status" >&5
7359 19 jeremybenn
   if (exit $ac_status) && test -s "$ac_outfile"; then
7360
     # The compiler can only warn and ignore the option if not recognized
7361
     # So say no if there are warnings other than the usual output.
7362 82 jeremybenn
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7363 19 jeremybenn
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7364
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7365 82 jeremybenn
       lt_cv_prog_compiler_pic_works=yes
7366 19 jeremybenn
     fi
7367
   fi
7368 82 jeremybenn
   $RM conftest*
7369 19 jeremybenn
 
7370
fi
7371 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7372 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7373 19 jeremybenn
 
7374 82 jeremybenn
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7375 19 jeremybenn
    case $lt_prog_compiler_pic in
7376
     "" | " "*) ;;
7377
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7378
     esac
7379
else
7380
    lt_prog_compiler_pic=
7381
     lt_prog_compiler_can_build_shared=no
7382
fi
7383
 
7384
fi
7385
 
7386 82 jeremybenn
 
7387
 
7388
 
7389
 
7390
 
7391 19 jeremybenn
#
7392
# Check to make sure the static flag actually works.
7393
#
7394
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7395 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7396 82 jeremybenn
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7397 346 jeremybenn
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7398 82 jeremybenn
  $as_echo_n "(cached) " >&6
7399 19 jeremybenn
else
7400 82 jeremybenn
  lt_cv_prog_compiler_static_works=no
7401 19 jeremybenn
   save_LDFLAGS="$LDFLAGS"
7402
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7403
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7404
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7405
     # The linker can only warn and ignore the option if not recognized
7406
     # So say no if there are warnings
7407
     if test -s conftest.err; then
7408
       # Append any errors to the config.log.
7409
       cat conftest.err 1>&5
7410 82 jeremybenn
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7411 19 jeremybenn
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7412
       if diff conftest.exp conftest.er2 >/dev/null; then
7413 82 jeremybenn
         lt_cv_prog_compiler_static_works=yes
7414 19 jeremybenn
       fi
7415
     else
7416 82 jeremybenn
       lt_cv_prog_compiler_static_works=yes
7417 19 jeremybenn
     fi
7418
   fi
7419 82 jeremybenn
   $RM -r conftest*
7420 19 jeremybenn
   LDFLAGS="$save_LDFLAGS"
7421
 
7422
fi
7423 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7424 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7425 19 jeremybenn
 
7426 82 jeremybenn
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7427 19 jeremybenn
    :
7428
else
7429
    lt_prog_compiler_static=
7430
fi
7431
 
7432
 
7433 82 jeremybenn
 
7434
 
7435
 
7436
 
7437
 
7438 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7439 82 jeremybenn
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7440 346 jeremybenn
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7441 82 jeremybenn
  $as_echo_n "(cached) " >&6
7442 19 jeremybenn
else
7443
  lt_cv_prog_compiler_c_o=no
7444 82 jeremybenn
   $RM -r conftest 2>/dev/null
7445 19 jeremybenn
   mkdir conftest
7446
   cd conftest
7447
   mkdir out
7448
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7449
 
7450
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7451
   # Insert the option either (1) after the last *FLAGS variable, or
7452
   # (2) before a word containing "conftest.", or (3) at the end.
7453
   # Note that $ac_compile itself does not contain backslashes and begins
7454
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7455
   lt_compile=`echo "$ac_compile" | $SED \
7456
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7457
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7458
   -e 's:$: $lt_compiler_flag:'`
7459 432 jeremybenn
   (eval echo "\"\$as_me:7459: $lt_compile\"" >&5)
7460 19 jeremybenn
   (eval "$lt_compile" 2>out/conftest.err)
7461
   ac_status=$?
7462
   cat out/conftest.err >&5
7463 432 jeremybenn
   echo "$as_me:7463: \$? = $ac_status" >&5
7464 19 jeremybenn
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7465
   then
7466
     # The compiler can only warn and ignore the option if not recognized
7467
     # So say no if there are warnings
7468 82 jeremybenn
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7469 19 jeremybenn
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7470
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7471
       lt_cv_prog_compiler_c_o=yes
7472
     fi
7473
   fi
7474
   chmod u+w . 2>&5
7475 82 jeremybenn
   $RM conftest*
7476 19 jeremybenn
   # SGI C++ compiler will create directory out/ii_files/ for
7477
   # template instantiation
7478 82 jeremybenn
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7479
   $RM out/* && rmdir out
7480 19 jeremybenn
   cd ..
7481 82 jeremybenn
   $RM -r conftest
7482
   $RM conftest*
7483 19 jeremybenn
 
7484
fi
7485 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7486 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7487 19 jeremybenn
 
7488
 
7489 82 jeremybenn
 
7490
 
7491
 
7492
 
7493 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7494 82 jeremybenn
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7495 346 jeremybenn
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7496 82 jeremybenn
  $as_echo_n "(cached) " >&6
7497
else
7498
  lt_cv_prog_compiler_c_o=no
7499
   $RM -r conftest 2>/dev/null
7500
   mkdir conftest
7501
   cd conftest
7502
   mkdir out
7503
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7504
 
7505
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7506
   # Insert the option either (1) after the last *FLAGS variable, or
7507
   # (2) before a word containing "conftest.", or (3) at the end.
7508
   # Note that $ac_compile itself does not contain backslashes and begins
7509
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7510
   lt_compile=`echo "$ac_compile" | $SED \
7511
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7512
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7513
   -e 's:$: $lt_compiler_flag:'`
7514 432 jeremybenn
   (eval echo "\"\$as_me:7514: $lt_compile\"" >&5)
7515 82 jeremybenn
   (eval "$lt_compile" 2>out/conftest.err)
7516
   ac_status=$?
7517
   cat out/conftest.err >&5
7518 432 jeremybenn
   echo "$as_me:7518: \$? = $ac_status" >&5
7519 82 jeremybenn
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7520
   then
7521
     # The compiler can only warn and ignore the option if not recognized
7522
     # So say no if there are warnings
7523
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7524
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7525
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7526
       lt_cv_prog_compiler_c_o=yes
7527
     fi
7528
   fi
7529
   chmod u+w . 2>&5
7530
   $RM conftest*
7531
   # SGI C++ compiler will create directory out/ii_files/ for
7532
   # template instantiation
7533
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7534
   $RM out/* && rmdir out
7535
   cd ..
7536
   $RM -r conftest
7537
   $RM conftest*
7538
 
7539
fi
7540 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7541 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7542
 
7543
 
7544
 
7545
 
7546 19 jeremybenn
hard_links="nottested"
7547
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7548
  # do not overwrite the value of need_locks provided by the user
7549 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7550 82 jeremybenn
$as_echo_n "checking if we can lock with hard links... " >&6; }
7551 19 jeremybenn
  hard_links=yes
7552 82 jeremybenn
  $RM conftest*
7553 19 jeremybenn
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7554
  touch conftest.a
7555
  ln conftest.a conftest.b 2>&5 || hard_links=no
7556
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7557 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7558 82 jeremybenn
$as_echo "$hard_links" >&6; }
7559 19 jeremybenn
  if test "$hard_links" = no; then
7560 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7561 82 jeremybenn
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7562 19 jeremybenn
    need_locks=warn
7563
  fi
7564
else
7565
  need_locks=no
7566
fi
7567
 
7568
 
7569 82 jeremybenn
 
7570
 
7571
 
7572
 
7573 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7574 82 jeremybenn
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7575
 
7576 19 jeremybenn
  runpath_var=
7577
  allow_undefined_flag=
7578 82 jeremybenn
  always_export_symbols=no
7579 19 jeremybenn
  archive_cmds=
7580
  archive_expsym_cmds=
7581 82 jeremybenn
  compiler_needs_object=no
7582
  enable_shared_with_static_runtimes=no
7583 19 jeremybenn
  export_dynamic_flag_spec=
7584 82 jeremybenn
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7585
  hardcode_automatic=no
7586
  hardcode_direct=no
7587
  hardcode_direct_absolute=no
7588 19 jeremybenn
  hardcode_libdir_flag_spec=
7589
  hardcode_libdir_flag_spec_ld=
7590
  hardcode_libdir_separator=
7591
  hardcode_minus_L=no
7592
  hardcode_shlibpath_var=unsupported
7593 82 jeremybenn
  inherit_rpath=no
7594 19 jeremybenn
  link_all_deplibs=unknown
7595
  module_cmds=
7596
  module_expsym_cmds=
7597 82 jeremybenn
  old_archive_from_new_cmds=
7598
  old_archive_from_expsyms_cmds=
7599
  thread_safe_flag_spec=
7600
  whole_archive_flag_spec=
7601 19 jeremybenn
  # include_expsyms should be a list of space-separated symbols to be *always*
7602
  # included in the symbol list
7603
  include_expsyms=
7604
  # exclude_expsyms can be an extended regexp of symbols to exclude
7605
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7606
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7607
  # as well as any symbol that contains `d'.
7608 82 jeremybenn
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7609 19 jeremybenn
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7610
  # platforms (ab)use it in PIC code, but their linkers get confused if
7611
  # the symbol is explicitly referenced.  Since portable code cannot
7612
  # rely on this symbol name, it's probably fine to never include it in
7613
  # preloaded symbol tables.
7614 82 jeremybenn
  # Exclude shared library initialization/finalization symbols.
7615 19 jeremybenn
  extract_expsyms_cmds=
7616
 
7617
  case $host_os in
7618 82 jeremybenn
  cygwin* | mingw* | pw32* | cegcc*)
7619 19 jeremybenn
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7620
    # When not using gcc, we currently assume that we are using
7621
    # Microsoft Visual C++.
7622
    if test "$GCC" != yes; then
7623
      with_gnu_ld=no
7624
    fi
7625
    ;;
7626
  interix*)
7627
    # we just hope/assume this is gcc and not c89 (= MSVC++)
7628
    with_gnu_ld=yes
7629
    ;;
7630
  openbsd*)
7631
    with_gnu_ld=no
7632
    ;;
7633 93 jeremybenn
  linux* | k*bsd*-gnu)
7634
    link_all_deplibs=no
7635
    ;;
7636 19 jeremybenn
  esac
7637
 
7638
  ld_shlibs=yes
7639
  if test "$with_gnu_ld" = yes; then
7640
    # If archive_cmds runs LD, not CC, wlarc should be empty
7641
    wlarc='${wl}'
7642
 
7643
    # Set some defaults for GNU ld with shared library support. These
7644
    # are reset later if shared libraries are not supported. Putting them
7645
    # here allows them to be overridden if necessary.
7646
    runpath_var=LD_RUN_PATH
7647 82 jeremybenn
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7648 19 jeremybenn
    export_dynamic_flag_spec='${wl}--export-dynamic'
7649
    # ancient GNU ld didn't support --whole-archive et. al.
7650 82 jeremybenn
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7651
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7652
    else
7653
      whole_archive_flag_spec=
7654 19 jeremybenn
    fi
7655
    supports_anon_versioning=no
7656 82 jeremybenn
    case `$LD -v 2>&1` in
7657 19 jeremybenn
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7658
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7659
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7660
      *\ 2.11.*) ;; # other 2.11 versions
7661
      *) supports_anon_versioning=yes ;;
7662
    esac
7663
 
7664
    # See if GNU ld supports shared libraries.
7665
    case $host_os in
7666 82 jeremybenn
    aix[3-9]*)
7667 19 jeremybenn
      # On AIX/PPC, the GNU linker is very broken
7668
      if test "$host_cpu" != ia64; then
7669
        ld_shlibs=no
7670 82 jeremybenn
        cat <<_LT_EOF 1>&2
7671 19 jeremybenn
 
7672
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7673
*** to be unable to reliably create shared libraries on AIX.
7674
*** Therefore, libtool is disabling shared libraries support.  If you
7675
*** really care for shared libraries, you may want to modify your PATH
7676
*** so that a non-GNU linker is found, and then restart.
7677
 
7678 82 jeremybenn
_LT_EOF
7679 19 jeremybenn
      fi
7680
      ;;
7681
 
7682
    amigaos*)
7683 82 jeremybenn
      case $host_cpu in
7684
      powerpc)
7685
            # see comment about AmigaOS4 .so support
7686
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7687
            archive_expsym_cmds=''
7688
        ;;
7689
      m68k)
7690
            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)'
7691
            hardcode_libdir_flag_spec='-L$libdir'
7692
            hardcode_minus_L=yes
7693
        ;;
7694
      esac
7695 19 jeremybenn
      ;;
7696
 
7697
    beos*)
7698 82 jeremybenn
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7699 19 jeremybenn
        allow_undefined_flag=unsupported
7700
        # Joseph Beckenbach  says some releases of gcc
7701
        # support --undefined.  This deserves some investigation.  FIXME
7702
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7703
      else
7704
        ld_shlibs=no
7705
      fi
7706
      ;;
7707
 
7708 82 jeremybenn
    cygwin* | mingw* | pw32* | cegcc*)
7709
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7710 19 jeremybenn
      # as there is no search path for DLLs.
7711
      hardcode_libdir_flag_spec='-L$libdir'
7712
      allow_undefined_flag=unsupported
7713
      always_export_symbols=no
7714
      enable_shared_with_static_runtimes=yes
7715 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'
7716 19 jeremybenn
 
7717 82 jeremybenn
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7718 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7719
        # If the export-symbols file already is a .def file (1st line
7720
        # is EXPORTS), use it as is; otherwise, prepend...
7721
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7722
          cp $export_symbols $output_objdir/$soname.def;
7723
        else
7724
          echo EXPORTS > $output_objdir/$soname.def;
7725
          cat $export_symbols >> $output_objdir/$soname.def;
7726
        fi~
7727
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7728
      else
7729
        ld_shlibs=no
7730
      fi
7731
      ;;
7732
 
7733
    interix[3-9]*)
7734
      hardcode_direct=no
7735
      hardcode_shlibpath_var=no
7736
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7737
      export_dynamic_flag_spec='${wl}-E'
7738
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7739
      # Instead, shared libraries are loaded at an image base (0x10000000 by
7740
      # default) and relocated if they conflict, which is a slow very memory
7741
      # consuming and fragmenting process.  To avoid this, we pick a random,
7742
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7743
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7744
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7745
      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'
7746
      ;;
7747
 
7748 82 jeremybenn
    gnu* | linux* | tpf* | k*bsd*-gnu)
7749
      tmp_diet=no
7750
      if test "$host_os" = linux-dietlibc; then
7751
        case $cc_basename in
7752
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7753
        esac
7754
      fi
7755
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7756
         && test "$tmp_diet" = no
7757
      then
7758 19 jeremybenn
        tmp_addflag=
7759 82 jeremybenn
        tmp_sharedflag='-shared'
7760 19 jeremybenn
        case $cc_basename,$host_cpu in
7761 82 jeremybenn
        pgcc*)                          # Portland Group C compiler
7762
          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'
7763 19 jeremybenn
          tmp_addflag=' $pic_flag'
7764
          ;;
7765
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7766 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'
7767 19 jeremybenn
          tmp_addflag=' $pic_flag -Mnomain' ;;
7768 82 jeremybenn
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7769 19 jeremybenn
          tmp_addflag=' -i_dynamic' ;;
7770
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7771
          tmp_addflag=' -i_dynamic -nofor_main' ;;
7772
        ifc* | ifort*)                  # Intel Fortran compiler
7773
          tmp_addflag=' -nofor_main' ;;
7774 82 jeremybenn
        lf95*)                          # Lahey Fortran 8.1
7775
          whole_archive_flag_spec=
7776
          tmp_sharedflag='--shared' ;;
7777
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
7778
          tmp_sharedflag='-qmkshrobj'
7779
          tmp_addflag= ;;
7780 19 jeremybenn
        esac
7781
        case `$CC -V 2>&1 | sed 5q` in
7782
        *Sun\ C*)                       # Sun C 5.9
7783 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'
7784
          compiler_needs_object=yes
7785 19 jeremybenn
          tmp_sharedflag='-G' ;;
7786
        *Sun\ F*)                       # Sun Fortran 8.3
7787
          tmp_sharedflag='-G' ;;
7788
        esac
7789
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7790
 
7791 82 jeremybenn
        if test "x$supports_anon_versioning" = xyes; then
7792
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7793
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7794
            echo "local: *; };" >> $output_objdir/$libname.ver~
7795
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7796
        fi
7797
 
7798
        case $cc_basename in
7799
        xlf*)
7800
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7801
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7802
          hardcode_libdir_flag_spec=
7803
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
7804
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7805
          if test "x$supports_anon_versioning" = xyes; then
7806
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7807
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7808
              echo "local: *; };" >> $output_objdir/$libname.ver~
7809
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7810
          fi
7811
          ;;
7812
        esac
7813 19 jeremybenn
      else
7814 82 jeremybenn
        ld_shlibs=no
7815 19 jeremybenn
      fi
7816
      ;;
7817
 
7818 93 jeremybenn
    netbsd* | netbsdelf*-gnu)
7819 82 jeremybenn
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7820 19 jeremybenn
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7821
        wlarc=
7822
      else
7823
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7824
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7825
      fi
7826
      ;;
7827
 
7828
    solaris*)
7829 82 jeremybenn
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7830 19 jeremybenn
        ld_shlibs=no
7831 82 jeremybenn
        cat <<_LT_EOF 1>&2
7832 19 jeremybenn
 
7833
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7834
*** create shared libraries on Solaris systems.  Therefore, libtool
7835
*** is disabling shared libraries support.  We urge you to upgrade GNU
7836
*** binutils to release 2.9.1 or newer.  Another option is to modify
7837
*** your PATH or compiler configuration so that the native linker is
7838
*** used, and then restart.
7839
 
7840 82 jeremybenn
_LT_EOF
7841
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7842 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7843
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7844
      else
7845
        ld_shlibs=no
7846
      fi
7847
      ;;
7848
 
7849
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7850
      case `$LD -v 2>&1` in
7851
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7852
        ld_shlibs=no
7853
        cat <<_LT_EOF 1>&2
7854
 
7855
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7856
*** reliably create shared libraries on SCO systems.  Therefore, libtool
7857
*** is disabling shared libraries support.  We urge you to upgrade GNU
7858
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7859
*** your PATH or compiler configuration so that the native linker is
7860
*** used, and then restart.
7861
 
7862
_LT_EOF
7863
        ;;
7864
        *)
7865 82 jeremybenn
          # For security reasons, it is highly recommended that you always
7866
          # use absolute paths for naming shared libraries, and exclude the
7867
          # DT_RUNPATH tag from executables and libraries.  But doing so
7868
          # requires that you compile everything twice, which is a pain.
7869
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7870
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7871
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7872
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7873 19 jeremybenn
          else
7874
            ld_shlibs=no
7875
          fi
7876
        ;;
7877
      esac
7878
      ;;
7879
 
7880
    sunos4*)
7881
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7882
      wlarc=
7883
      hardcode_direct=yes
7884
      hardcode_shlibpath_var=no
7885
      ;;
7886
 
7887
    *)
7888 82 jeremybenn
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7889 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7890
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7891
      else
7892
        ld_shlibs=no
7893
      fi
7894
      ;;
7895
    esac
7896
 
7897
    if test "$ld_shlibs" = no; then
7898
      runpath_var=
7899
      hardcode_libdir_flag_spec=
7900
      export_dynamic_flag_spec=
7901
      whole_archive_flag_spec=
7902
    fi
7903
  else
7904
    # PORTME fill in a description of your system's linker (not GNU ld)
7905
    case $host_os in
7906
    aix3*)
7907
      allow_undefined_flag=unsupported
7908
      always_export_symbols=yes
7909
      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'
7910
      # Note: this linker hardcodes the directories in LIBPATH if there
7911
      # are no directories specified by -L.
7912
      hardcode_minus_L=yes
7913
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7914
        # Neither direct hardcoding nor static linking is supported with a
7915
        # broken collect2.
7916
        hardcode_direct=unsupported
7917
      fi
7918
      ;;
7919
 
7920 82 jeremybenn
    aix[4-9]*)
7921 19 jeremybenn
      if test "$host_cpu" = ia64; then
7922
        # On IA64, the linker does run time linking by default, so we don't
7923
        # have to do anything special.
7924
        aix_use_runtimelinking=no
7925
        exp_sym_flag='-Bexport'
7926
        no_entry_flag=""
7927
      else
7928
        # If we're using GNU nm, then we don't want the "-C" option.
7929
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7930 82 jeremybenn
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7931
          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'
7932 19 jeremybenn
        else
7933 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'
7934 19 jeremybenn
        fi
7935
        aix_use_runtimelinking=no
7936
 
7937
        # Test if we are trying to use run time linking or normal
7938
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7939
        # need to do runtime linking.
7940 82 jeremybenn
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7941 19 jeremybenn
          for ld_flag in $LDFLAGS; do
7942 82 jeremybenn
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7943
            aix_use_runtimelinking=yes
7944
            break
7945
          fi
7946 19 jeremybenn
          done
7947
          ;;
7948
        esac
7949
 
7950
        exp_sym_flag='-bexport'
7951
        no_entry_flag='-bnoentry'
7952
      fi
7953
 
7954
      # When large executables or shared objects are built, AIX ld can
7955
      # have problems creating the table of contents.  If linking a library
7956
      # or program results in "error TOC overflow" add -mminimal-toc to
7957
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7958
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7959
 
7960
      archive_cmds=''
7961
      hardcode_direct=yes
7962 82 jeremybenn
      hardcode_direct_absolute=yes
7963 19 jeremybenn
      hardcode_libdir_separator=':'
7964
      link_all_deplibs=yes
7965 82 jeremybenn
      file_list_spec='${wl}-f,'
7966 19 jeremybenn
 
7967
      if test "$GCC" = yes; then
7968
        case $host_os in aix4.[012]|aix4.[012].*)
7969
        # We only want to do this on AIX 4.2 and lower, the check
7970
        # below for broken collect2 doesn't work under 4.3+
7971
          collect2name=`${CC} -print-prog-name=collect2`
7972 82 jeremybenn
          if test -f "$collect2name" &&
7973
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7974 19 jeremybenn
          then
7975 82 jeremybenn
          # We have reworked collect2
7976
          :
7977 19 jeremybenn
          else
7978 82 jeremybenn
          # We have old collect2
7979
          hardcode_direct=unsupported
7980
          # It fails to find uninstalled libraries when the uninstalled
7981
          # path is not listed in the libpath.  Setting hardcode_minus_L
7982
          # to unsupported forces relinking
7983
          hardcode_minus_L=yes
7984
          hardcode_libdir_flag_spec='-L$libdir'
7985
          hardcode_libdir_separator=
7986 19 jeremybenn
          fi
7987
          ;;
7988
        esac
7989
        shared_flag='-shared'
7990
        if test "$aix_use_runtimelinking" = yes; then
7991
          shared_flag="$shared_flag "'${wl}-G'
7992
        fi
7993 93 jeremybenn
        link_all_deplibs=no
7994 19 jeremybenn
      else
7995
        # not using gcc
7996
        if test "$host_cpu" = ia64; then
7997 82 jeremybenn
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7998
        # chokes on -Wl,-G. The following line is correct:
7999 19 jeremybenn
          shared_flag='-G'
8000
        else
8001
          if test "$aix_use_runtimelinking" = yes; then
8002
            shared_flag='${wl}-G'
8003
          else
8004
            shared_flag='${wl}-bM:SRE'
8005
          fi
8006
        fi
8007
      fi
8008
 
8009 82 jeremybenn
      export_dynamic_flag_spec='${wl}-bexpall'
8010 19 jeremybenn
      # It seems that -bexpall does not export symbols beginning with
8011
      # underscore (_), so it is better to generate a list of symbols to export.
8012
      always_export_symbols=yes
8013
      if test "$aix_use_runtimelinking" = yes; then
8014
        # Warning - without using the other runtime loading flags (-brtl),
8015
        # -berok will link without error, but may produce a broken library.
8016
        allow_undefined_flag='-berok'
8017 82 jeremybenn
        # Determine the default libpath from the value encoded in an
8018
        # empty executable.
8019 346 jeremybenn
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8020 19 jeremybenn
/* end confdefs.h.  */
8021
 
8022
int
8023
main ()
8024
{
8025
 
8026
  ;
8027
  return 0;
8028
}
8029
_ACEOF
8030 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
8031 19 jeremybenn
 
8032
lt_aix_libpath_sed='
8033
    /Import File Strings/,/^$/ {
8034
        /^0/ {
8035
            s/^0  *\(.*\)$/\1/
8036
            p
8037
        }
8038
    }'
8039
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8040
# Check for a 64-bit object if we didn't find anything.
8041
if test -z "$aix_libpath"; then
8042
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8043
fi
8044
fi
8045 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
8046
    conftest$ac_exeext conftest.$ac_ext
8047 19 jeremybenn
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8048
 
8049 82 jeremybenn
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8050
        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"
8051
      else
8052 19 jeremybenn
        if test "$host_cpu" = ia64; then
8053
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8054
          allow_undefined_flag="-z nodefs"
8055
          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"
8056
        else
8057 82 jeremybenn
         # Determine the default libpath from the value encoded in an
8058
         # empty executable.
8059 346 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8060 19 jeremybenn
/* end confdefs.h.  */
8061
 
8062
int
8063
main ()
8064
{
8065
 
8066
  ;
8067
  return 0;
8068
}
8069
_ACEOF
8070 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
8071 19 jeremybenn
 
8072
lt_aix_libpath_sed='
8073
    /Import File Strings/,/^$/ {
8074
        /^0/ {
8075
            s/^0  *\(.*\)$/\1/
8076
            p
8077
        }
8078
    }'
8079
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8080
# Check for a 64-bit object if we didn't find anything.
8081
if test -z "$aix_libpath"; then
8082
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8083
fi
8084
fi
8085 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
8086
    conftest$ac_exeext conftest.$ac_ext
8087 19 jeremybenn
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8088
 
8089
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8090
          # Warning - without using the other run time loading flags,
8091
          # -berok will link without error, but may produce a broken library.
8092
          no_undefined_flag=' ${wl}-bernotok'
8093
          allow_undefined_flag=' ${wl}-berok'
8094
          # Exported symbols can be pulled into shared objects from archives
8095
          whole_archive_flag_spec='$convenience'
8096
          archive_cmds_need_lc=yes
8097
          # This is similar to how AIX traditionally builds its shared libraries.
8098
          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'
8099
        fi
8100
      fi
8101
      ;;
8102
 
8103
    amigaos*)
8104 82 jeremybenn
      case $host_cpu in
8105
      powerpc)
8106
            # see comment about AmigaOS4 .so support
8107
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8108
            archive_expsym_cmds=''
8109
        ;;
8110
      m68k)
8111
            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)'
8112
            hardcode_libdir_flag_spec='-L$libdir'
8113
            hardcode_minus_L=yes
8114
        ;;
8115
      esac
8116 19 jeremybenn
      ;;
8117
 
8118
    bsdi[45]*)
8119
      export_dynamic_flag_spec=-rdynamic
8120
      ;;
8121
 
8122 82 jeremybenn
    cygwin* | mingw* | pw32* | cegcc*)
8123 19 jeremybenn
      # When not using gcc, we currently assume that we are using
8124
      # Microsoft Visual C++.
8125
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8126
      # no search path for DLLs.
8127
      hardcode_libdir_flag_spec=' '
8128
      allow_undefined_flag=unsupported
8129
      # Tell ltmain to make .lib files, not .a files.
8130
      libext=lib
8131
      # Tell ltmain to make .dll files, not .so files.
8132
      shrext_cmds=".dll"
8133
      # FIXME: Setting linknames here is a bad hack.
8134 82 jeremybenn
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8135 19 jeremybenn
      # The linker will automatically build a .lib file if we build a DLL.
8136 82 jeremybenn
      old_archive_from_new_cmds='true'
8137 19 jeremybenn
      # FIXME: Should let the user specify the lib program.
8138
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8139
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8140
      enable_shared_with_static_runtimes=yes
8141
      ;;
8142
 
8143
    darwin* | rhapsody*)
8144 82 jeremybenn
 
8145
 
8146
  archive_cmds_need_lc=no
8147
  hardcode_direct=no
8148
  hardcode_automatic=yes
8149
  hardcode_shlibpath_var=unsupported
8150
  whole_archive_flag_spec=''
8151
  link_all_deplibs=yes
8152
  allow_undefined_flag="$_lt_dar_allow_undefined"
8153
  case $cc_basename in
8154
     ifort*) _lt_dar_can_shared=yes ;;
8155
     *) _lt_dar_can_shared=$GCC ;;
8156
  esac
8157
  if test "$_lt_dar_can_shared" = "yes"; then
8158
    output_verbose_link_cmd=echo
8159
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8160
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8161
    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}"
8162
    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}"
8163
 
8164
  else
8165
  ld_shlibs=no
8166
  fi
8167
 
8168 19 jeremybenn
      ;;
8169
 
8170
    dgux*)
8171
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8172
      hardcode_libdir_flag_spec='-L$libdir'
8173
      hardcode_shlibpath_var=no
8174
      ;;
8175
 
8176
    freebsd1*)
8177
      ld_shlibs=no
8178
      ;;
8179
 
8180
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8181
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8182
    # does not break anything, and helps significantly (at the cost of a little
8183
    # extra space).
8184
    freebsd2.2*)
8185
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8186
      hardcode_libdir_flag_spec='-R$libdir'
8187
      hardcode_direct=yes
8188
      hardcode_shlibpath_var=no
8189
      ;;
8190
 
8191
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8192
    freebsd2*)
8193
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8194
      hardcode_direct=yes
8195
      hardcode_minus_L=yes
8196
      hardcode_shlibpath_var=no
8197
      ;;
8198
 
8199
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8200
    freebsd* | dragonfly*)
8201
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8202
      hardcode_libdir_flag_spec='-R$libdir'
8203
      hardcode_direct=yes
8204
      hardcode_shlibpath_var=no
8205
      ;;
8206
 
8207
    hpux9*)
8208
      if test "$GCC" = yes; then
8209 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'
8210 19 jeremybenn
      else
8211 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'
8212 19 jeremybenn
      fi
8213
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8214
      hardcode_libdir_separator=:
8215
      hardcode_direct=yes
8216
 
8217
      # hardcode_minus_L: Not really in the search PATH,
8218
      # but as the default location of the library.
8219
      hardcode_minus_L=yes
8220
      export_dynamic_flag_spec='${wl}-E'
8221
      ;;
8222
 
8223
    hpux10*)
8224
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8225
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8226
      else
8227
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8228
      fi
8229
      if test "$with_gnu_ld" = no; then
8230
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8231 82 jeremybenn
        hardcode_libdir_flag_spec_ld='+b $libdir'
8232 19 jeremybenn
        hardcode_libdir_separator=:
8233
        hardcode_direct=yes
8234 82 jeremybenn
        hardcode_direct_absolute=yes
8235 19 jeremybenn
        export_dynamic_flag_spec='${wl}-E'
8236
        # hardcode_minus_L: Not really in the search PATH,
8237
        # but as the default location of the library.
8238
        hardcode_minus_L=yes
8239
      fi
8240
      ;;
8241
 
8242
    hpux11*)
8243
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8244
        case $host_cpu in
8245
        hppa*64*)
8246
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8247
          ;;
8248
        ia64*)
8249 82 jeremybenn
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8250 19 jeremybenn
          ;;
8251
        *)
8252
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8253
          ;;
8254
        esac
8255
      else
8256
        case $host_cpu in
8257
        hppa*64*)
8258
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8259
          ;;
8260
        ia64*)
8261
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8262
          ;;
8263
        *)
8264
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8265
          ;;
8266
        esac
8267
      fi
8268
      if test "$with_gnu_ld" = no; then
8269
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8270
        hardcode_libdir_separator=:
8271
 
8272
        case $host_cpu in
8273
        hppa*64*|ia64*)
8274
          hardcode_direct=no
8275
          hardcode_shlibpath_var=no
8276
          ;;
8277
        *)
8278
          hardcode_direct=yes
8279 82 jeremybenn
          hardcode_direct_absolute=yes
8280 19 jeremybenn
          export_dynamic_flag_spec='${wl}-E'
8281
 
8282
          # hardcode_minus_L: Not really in the search PATH,
8283
          # but as the default location of the library.
8284
          hardcode_minus_L=yes
8285
          ;;
8286
        esac
8287
      fi
8288
      ;;
8289
 
8290
    irix5* | irix6* | nonstopux*)
8291
      if test "$GCC" = yes; then
8292 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'
8293
        # Try to use the -exported_symbol ld option, if it does not
8294
        # work, assume that -exports_file does not work either and
8295
        # implicitly export all symbols.
8296
        save_LDFLAGS="$LDFLAGS"
8297
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8298 346 jeremybenn
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8299
/* end confdefs.h.  */
8300 82 jeremybenn
int foo(void) {}
8301
_ACEOF
8302 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
8303 82 jeremybenn
  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'
8304
 
8305
fi
8306 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
8307
    conftest$ac_exeext conftest.$ac_ext
8308 82 jeremybenn
        LDFLAGS="$save_LDFLAGS"
8309 19 jeremybenn
      else
8310 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'
8311
        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'
8312 19 jeremybenn
      fi
8313 82 jeremybenn
      archive_cmds_need_lc='no'
8314 19 jeremybenn
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8315
      hardcode_libdir_separator=:
8316 82 jeremybenn
      inherit_rpath=yes
8317 19 jeremybenn
      link_all_deplibs=yes
8318
      ;;
8319
 
8320 93 jeremybenn
    netbsd* | netbsdelf*-gnu)
8321 82 jeremybenn
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8322 19 jeremybenn
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8323
      else
8324
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8325
      fi
8326
      hardcode_libdir_flag_spec='-R$libdir'
8327
      hardcode_direct=yes
8328
      hardcode_shlibpath_var=no
8329
      ;;
8330
 
8331
    newsos6)
8332
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8333
      hardcode_direct=yes
8334
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8335
      hardcode_libdir_separator=:
8336
      hardcode_shlibpath_var=no
8337
      ;;
8338
 
8339 82 jeremybenn
    *nto* | *qnx*)
8340
      ;;
8341
 
8342 19 jeremybenn
    openbsd*)
8343
      if test -f /usr/libexec/ld.so; then
8344
        hardcode_direct=yes
8345
        hardcode_shlibpath_var=no
8346 82 jeremybenn
        hardcode_direct_absolute=yes
8347
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8348 19 jeremybenn
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8349
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8350
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8351
          export_dynamic_flag_spec='${wl}-E'
8352
        else
8353
          case $host_os in
8354
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8355
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8356
             hardcode_libdir_flag_spec='-R$libdir'
8357
             ;;
8358
           *)
8359
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8360
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8361
             ;;
8362
          esac
8363 82 jeremybenn
        fi
8364 19 jeremybenn
      else
8365
        ld_shlibs=no
8366
      fi
8367
      ;;
8368
 
8369
    os2*)
8370
      hardcode_libdir_flag_spec='-L$libdir'
8371
      hardcode_minus_L=yes
8372
      allow_undefined_flag=unsupported
8373 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'
8374
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8375 19 jeremybenn
      ;;
8376
 
8377
    osf3*)
8378
      if test "$GCC" = yes; then
8379
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8380 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'
8381 19 jeremybenn
      else
8382
        allow_undefined_flag=' -expect_unresolved \*'
8383 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'
8384 19 jeremybenn
      fi
8385 82 jeremybenn
      archive_cmds_need_lc='no'
8386 19 jeremybenn
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8387
      hardcode_libdir_separator=:
8388
      ;;
8389
 
8390
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8391
      if test "$GCC" = yes; then
8392
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8393 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'
8394 19 jeremybenn
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8395
      else
8396
        allow_undefined_flag=' -expect_unresolved \*'
8397 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'
8398
        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~
8399
        $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'
8400 19 jeremybenn
 
8401
        # Both c and cxx compiler support -rpath directly
8402
        hardcode_libdir_flag_spec='-rpath $libdir'
8403
      fi
8404 82 jeremybenn
      archive_cmds_need_lc='no'
8405 19 jeremybenn
      hardcode_libdir_separator=:
8406
      ;;
8407
 
8408
    solaris*)
8409 82 jeremybenn
      no_undefined_flag=' -z defs'
8410 19 jeremybenn
      if test "$GCC" = yes; then
8411
        wlarc='${wl}'
8412 82 jeremybenn
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8413
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8414
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8415 19 jeremybenn
      else
8416 82 jeremybenn
        case `$CC -V 2>&1` in
8417
        *"Compilers 5.0"*)
8418
          wlarc=''
8419
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8420
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8421
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8422
          ;;
8423
        *)
8424
          wlarc='${wl}'
8425
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8426
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8427
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8428
          ;;
8429
        esac
8430 19 jeremybenn
      fi
8431
      hardcode_libdir_flag_spec='-R$libdir'
8432
      hardcode_shlibpath_var=no
8433
      case $host_os in
8434
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8435
      *)
8436
        # The compiler driver will combine and reorder linker options,
8437
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8438
        # but is careful enough not to reorder.
8439 82 jeremybenn
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8440 19 jeremybenn
        if test "$GCC" = yes; then
8441
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8442
        else
8443
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8444
        fi
8445
        ;;
8446
      esac
8447
      link_all_deplibs=yes
8448
      ;;
8449
 
8450
    sunos4*)
8451
      if test "x$host_vendor" = xsequent; then
8452
        # Use $CC to link under sequent, because it throws in some extra .o
8453
        # files that make .init and .fini sections work.
8454
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8455
      else
8456
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8457
      fi
8458
      hardcode_libdir_flag_spec='-L$libdir'
8459
      hardcode_direct=yes
8460
      hardcode_minus_L=yes
8461
      hardcode_shlibpath_var=no
8462
      ;;
8463
 
8464
    sysv4)
8465
      case $host_vendor in
8466
        sni)
8467
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8468
          hardcode_direct=yes # is this really true???
8469
        ;;
8470
        siemens)
8471
          ## LD is ld it makes a PLAMLIB
8472
          ## CC just makes a GrossModule.
8473
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8474
          reload_cmds='$CC -r -o $output$reload_objs'
8475
          hardcode_direct=no
8476
        ;;
8477
        motorola)
8478
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8479
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8480
        ;;
8481
      esac
8482
      runpath_var='LD_RUN_PATH'
8483
      hardcode_shlibpath_var=no
8484
      ;;
8485
 
8486
    sysv4.3*)
8487
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8488
      hardcode_shlibpath_var=no
8489
      export_dynamic_flag_spec='-Bexport'
8490
      ;;
8491
 
8492
    sysv4*MP*)
8493
      if test -d /usr/nec; then
8494
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8495
        hardcode_shlibpath_var=no
8496
        runpath_var=LD_RUN_PATH
8497
        hardcode_runpath_var=yes
8498
        ld_shlibs=yes
8499
      fi
8500
      ;;
8501
 
8502
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8503
      no_undefined_flag='${wl}-z,text'
8504
      archive_cmds_need_lc=no
8505
      hardcode_shlibpath_var=no
8506
      runpath_var='LD_RUN_PATH'
8507
 
8508
      if test "$GCC" = yes; then
8509
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8510
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8511
      else
8512
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8513
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8514
      fi
8515
      ;;
8516
 
8517
    sysv5* | sco3.2v5* | sco5v6*)
8518
      # Note: We can NOT use -z defs as we might desire, because we do not
8519
      # link with -lc, and that would cause any symbols used from libc to
8520
      # always be unresolved, which means just about no library would
8521
      # ever link correctly.  If we're not using GNU ld we use -z text
8522
      # though, which does catch some bad symbols but isn't as heavy-handed
8523
      # as -z defs.
8524
      no_undefined_flag='${wl}-z,text'
8525
      allow_undefined_flag='${wl}-z,nodefs'
8526
      archive_cmds_need_lc=no
8527
      hardcode_shlibpath_var=no
8528 82 jeremybenn
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8529 19 jeremybenn
      hardcode_libdir_separator=':'
8530
      link_all_deplibs=yes
8531
      export_dynamic_flag_spec='${wl}-Bexport'
8532
      runpath_var='LD_RUN_PATH'
8533
 
8534
      if test "$GCC" = yes; then
8535 82 jeremybenn
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8536
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8537 19 jeremybenn
      else
8538 82 jeremybenn
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8539
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8540 19 jeremybenn
      fi
8541
      ;;
8542
 
8543
    uts4*)
8544
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8545
      hardcode_libdir_flag_spec='-L$libdir'
8546
      hardcode_shlibpath_var=no
8547
      ;;
8548
 
8549
    *)
8550
      ld_shlibs=no
8551
      ;;
8552
    esac
8553 82 jeremybenn
 
8554
    if test x$host_vendor = xsni; then
8555
      case $host in
8556
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8557
        export_dynamic_flag_spec='${wl}-Blargedynsym'
8558
        ;;
8559
      esac
8560
    fi
8561 19 jeremybenn
  fi
8562
 
8563 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8564 82 jeremybenn
$as_echo "$ld_shlibs" >&6; }
8565 19 jeremybenn
test "$ld_shlibs" = no && can_build_shared=no
8566
 
8567 82 jeremybenn
with_gnu_ld=$with_gnu_ld
8568
 
8569
 
8570
 
8571
 
8572
 
8573
 
8574
 
8575
 
8576
 
8577
 
8578
 
8579
 
8580
 
8581
 
8582
 
8583 19 jeremybenn
#
8584
# Do we need to explicitly link libc?
8585
#
8586
case "x$archive_cmds_need_lc" in
8587
x|xyes)
8588
  # Assume -lc should be added
8589
  archive_cmds_need_lc=yes
8590
 
8591
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8592
    case $archive_cmds in
8593
    *'~'*)
8594
      # FIXME: we may have to deal with multi-command sequences.
8595
      ;;
8596
    '$CC '*)
8597
      # Test whether the compiler implicitly links with -lc since on some
8598
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8599
      # to ld, don't add -lc before -lgcc.
8600 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8601 82 jeremybenn
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8602
      $RM conftest*
8603 19 jeremybenn
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8604
 
8605 346 jeremybenn
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8606 19 jeremybenn
  (eval $ac_compile) 2>&5
8607
  ac_status=$?
8608 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8609
  test $ac_status = 0; } 2>conftest.err; then
8610 19 jeremybenn
        soname=conftest
8611
        lib=conftest
8612
        libobjs=conftest.$ac_objext
8613
        deplibs=
8614
        wl=$lt_prog_compiler_wl
8615
        pic_flag=$lt_prog_compiler_pic
8616
        compiler_flags=-v
8617
        linker_flags=-v
8618
        verstring=
8619
        output_objdir=.
8620
        libname=conftest
8621
        lt_save_allow_undefined_flag=$allow_undefined_flag
8622
        allow_undefined_flag=
8623 346 jeremybenn
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8624 82 jeremybenn
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8625 19 jeremybenn
  ac_status=$?
8626 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8627
  test $ac_status = 0; }
8628 19 jeremybenn
        then
8629
          archive_cmds_need_lc=no
8630
        else
8631
          archive_cmds_need_lc=yes
8632
        fi
8633
        allow_undefined_flag=$lt_save_allow_undefined_flag
8634
      else
8635
        cat conftest.err 1>&5
8636
      fi
8637 82 jeremybenn
      $RM conftest*
8638 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8639 82 jeremybenn
$as_echo "$archive_cmds_need_lc" >&6; }
8640 19 jeremybenn
      ;;
8641
    esac
8642
  fi
8643
  ;;
8644
esac
8645
 
8646
 
8647 82 jeremybenn
 
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
 
8776
 
8777
 
8778
 
8779
 
8780
 
8781
 
8782
 
8783
 
8784
 
8785
 
8786
 
8787
 
8788
 
8789
 
8790
 
8791
 
8792
 
8793
 
8794
 
8795
 
8796
 
8797
 
8798
 
8799
 
8800
 
8801
 
8802 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8803 82 jeremybenn
$as_echo_n "checking dynamic linker characteristics... " >&6; }
8804
 
8805 19 jeremybenn
if test "$GCC" = yes; then
8806
  case $host_os in
8807
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8808
    *) lt_awk_arg="/^libraries:/" ;;
8809
  esac
8810
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8811 82 jeremybenn
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8812 19 jeremybenn
    # if the path contains ";" then we assume it to be the separator
8813
    # otherwise default to the standard path separator (i.e. ":") - it is
8814
    # assumed that no part of a normal pathname contains ";" but that should
8815
    # okay in the real world where ";" in dirpaths is itself problematic.
8816 82 jeremybenn
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8817 19 jeremybenn
  else
8818 82 jeremybenn
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8819 19 jeremybenn
  fi
8820
  # Ok, now we have the path, separated by spaces, we can step through it
8821
  # and add multilib dir if necessary.
8822
  lt_tmp_lt_search_path_spec=
8823
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8824
  for lt_sys_path in $lt_search_path_spec; do
8825
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8826
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8827
    else
8828
      test -d "$lt_sys_path" && \
8829
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8830
    fi
8831
  done
8832 82 jeremybenn
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8833 19 jeremybenn
BEGIN {RS=" "; FS="/|\n";} {
8834
  lt_foo="";
8835
  lt_count=0;
8836
  for (lt_i = NF; lt_i > 0; lt_i--) {
8837
    if ($lt_i != "" && $lt_i != ".") {
8838
      if ($lt_i == "..") {
8839
        lt_count++;
8840
      } else {
8841
        if (lt_count == 0) {
8842
          lt_foo="/" $lt_i lt_foo;
8843
        } else {
8844
          lt_count--;
8845
        }
8846
      }
8847
    }
8848
  }
8849
  if (lt_foo != "") { lt_freq[lt_foo]++; }
8850
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8851
}'`
8852 82 jeremybenn
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8853 19 jeremybenn
else
8854
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8855
fi
8856 82 jeremybenn
library_names_spec=
8857
libname_spec='lib$name'
8858
soname_spec=
8859
shrext_cmds=".so"
8860
postinstall_cmds=
8861
postuninstall_cmds=
8862
finish_cmds=
8863
finish_eval=
8864
shlibpath_var=
8865
shlibpath_overrides_runpath=unknown
8866
version_type=none
8867
dynamic_linker="$host_os ld.so"
8868
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8869 19 jeremybenn
need_lib_prefix=unknown
8870
hardcode_into_libs=no
8871
 
8872
# when you set need_version to no, make sure it does not cause -set_version
8873
# flags to be left without arguments
8874
need_version=unknown
8875
 
8876
case $host_os in
8877
aix3*)
8878
  version_type=linux
8879
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8880
  shlibpath_var=LIBPATH
8881
 
8882
  # AIX 3 has no versioning support, so we append a major version to the name.
8883
  soname_spec='${libname}${release}${shared_ext}$major'
8884
  ;;
8885
 
8886 82 jeremybenn
aix[4-9]*)
8887 19 jeremybenn
  version_type=linux
8888
  need_lib_prefix=no
8889
  need_version=no
8890
  hardcode_into_libs=yes
8891
  if test "$host_cpu" = ia64; then
8892
    # AIX 5 supports IA64
8893
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8894
    shlibpath_var=LD_LIBRARY_PATH
8895
  else
8896
    # With GCC up to 2.95.x, collect2 would create an import file
8897
    # for dependence libraries.  The import file would start with
8898
    # the line `#! .'.  This would cause the generated library to
8899
    # depend on `.', always an invalid library.  This was fixed in
8900
    # development snapshots of GCC prior to 3.0.
8901
    case $host_os in
8902
      aix4 | aix4.[01] | aix4.[01].*)
8903
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8904
           echo ' yes '
8905 82 jeremybenn
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8906 19 jeremybenn
        :
8907
      else
8908
        can_build_shared=no
8909
      fi
8910
      ;;
8911
    esac
8912
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8913
    # soname into executable. Probably we can add versioning support to
8914
    # collect2, so additional links can be useful in future.
8915
    if test "$aix_use_runtimelinking" = yes; then
8916
      # If using run time linking (on AIX 4.2 or later) use lib.so
8917
      # instead of lib.a to let people know that these are not
8918
      # typical AIX shared libraries.
8919
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8920
    else
8921
      # We preserve .a as extension for shared libraries through AIX4.2
8922
      # and later when we are not doing run time linking.
8923
      library_names_spec='${libname}${release}.a $libname.a'
8924
      soname_spec='${libname}${release}${shared_ext}$major'
8925
    fi
8926
    shlibpath_var=LIBPATH
8927
  fi
8928
  ;;
8929
 
8930
amigaos*)
8931 82 jeremybenn
  case $host_cpu in
8932
  powerpc)
8933
    # Since July 2007 AmigaOS4 officially supports .so libraries.
8934
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8935
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8936
    ;;
8937
  m68k)
8938
    library_names_spec='$libname.ixlibrary $libname.a'
8939
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
8940
    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'
8941
    ;;
8942
  esac
8943 19 jeremybenn
  ;;
8944
 
8945
beos*)
8946
  library_names_spec='${libname}${shared_ext}'
8947
  dynamic_linker="$host_os ld.so"
8948
  shlibpath_var=LIBRARY_PATH
8949
  ;;
8950
 
8951
bsdi[45]*)
8952
  version_type=linux
8953
  need_version=no
8954
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8955
  soname_spec='${libname}${release}${shared_ext}$major'
8956
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8957
  shlibpath_var=LD_LIBRARY_PATH
8958
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8959
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8960
  # the default ld.so.conf also contains /usr/contrib/lib and
8961
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8962
  # libtool to hard-code these into programs
8963
  ;;
8964
 
8965 82 jeremybenn
cygwin* | mingw* | pw32* | cegcc*)
8966 19 jeremybenn
  version_type=windows
8967
  shrext_cmds=".dll"
8968
  need_version=no
8969
  need_lib_prefix=no
8970
 
8971
  case $GCC,$host_os in
8972 82 jeremybenn
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8973 19 jeremybenn
    library_names_spec='$libname.dll.a'
8974
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8975
    postinstall_cmds='base_file=`basename \${file}`~
8976 82 jeremybenn
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8977 19 jeremybenn
      dldir=$destdir/`dirname \$dlpath`~
8978
      test -d \$dldir || mkdir -p \$dldir~
8979
      $install_prog $dir/$dlname \$dldir/$dlname~
8980 82 jeremybenn
      chmod a+x \$dldir/$dlname~
8981
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8982
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8983
      fi'
8984 19 jeremybenn
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8985
      dlpath=$dir/\$dldll~
8986 82 jeremybenn
       $RM \$dlpath'
8987 19 jeremybenn
    shlibpath_overrides_runpath=yes
8988
 
8989
    case $host_os in
8990
    cygwin*)
8991
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8992
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8993
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8994
      ;;
8995 82 jeremybenn
    mingw* | cegcc*)
8996 19 jeremybenn
      # MinGW DLLs use traditional 'lib' prefix
8997
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8998 82 jeremybenn
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8999
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9000 19 jeremybenn
        # It is most probably a Windows format PATH printed by
9001
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9002
        # path with ; separators, and with drive letters. We can handle the
9003
        # drive letters (cygwin fileutils understands them), so leave them,
9004
        # especially as we might pass files found there to a mingw objdump,
9005
        # which wouldn't understand a cygwinified path. Ahh.
9006 82 jeremybenn
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9007 19 jeremybenn
      else
9008 82 jeremybenn
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9009 19 jeremybenn
      fi
9010
      ;;
9011
    pw32*)
9012
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9013
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9014
      ;;
9015
    esac
9016
    ;;
9017
 
9018
  *)
9019
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9020
    ;;
9021
  esac
9022
  dynamic_linker='Win32 ld.exe'
9023
  # FIXME: first we should search . and the directory the executable is in
9024
  shlibpath_var=PATH
9025
  ;;
9026
 
9027
darwin* | rhapsody*)
9028
  dynamic_linker="$host_os dyld"
9029
  version_type=darwin
9030
  need_lib_prefix=no
9031
  need_version=no
9032 82 jeremybenn
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9033 19 jeremybenn
  soname_spec='${libname}${release}${major}$shared_ext'
9034
  shlibpath_overrides_runpath=yes
9035
  shlibpath_var=DYLD_LIBRARY_PATH
9036
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9037
 
9038
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9039
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9040
  ;;
9041
 
9042
dgux*)
9043
  version_type=linux
9044
  need_lib_prefix=no
9045
  need_version=no
9046
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9047
  soname_spec='${libname}${release}${shared_ext}$major'
9048
  shlibpath_var=LD_LIBRARY_PATH
9049
  ;;
9050
 
9051
freebsd1*)
9052
  dynamic_linker=no
9053
  ;;
9054
 
9055
freebsd* | dragonfly*)
9056
  # DragonFly does not have aout.  When/if they implement a new
9057
  # versioning mechanism, adjust this.
9058
  if test -x /usr/bin/objformat; then
9059
    objformat=`/usr/bin/objformat`
9060
  else
9061
    case $host_os in
9062
    freebsd[123]*) objformat=aout ;;
9063
    *) objformat=elf ;;
9064
    esac
9065
  fi
9066
  version_type=freebsd-$objformat
9067
  case $version_type in
9068
    freebsd-elf*)
9069
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9070
      need_version=no
9071
      need_lib_prefix=no
9072
      ;;
9073
    freebsd-*)
9074
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9075
      need_version=yes
9076
      ;;
9077
  esac
9078
  shlibpath_var=LD_LIBRARY_PATH
9079
  case $host_os in
9080
  freebsd2*)
9081
    shlibpath_overrides_runpath=yes
9082
    ;;
9083
  freebsd3.[01]* | freebsdelf3.[01]*)
9084
    shlibpath_overrides_runpath=yes
9085
    hardcode_into_libs=yes
9086
    ;;
9087
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9088
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9089
    shlibpath_overrides_runpath=no
9090
    hardcode_into_libs=yes
9091
    ;;
9092
  *) # from 4.6 on, and DragonFly
9093
    shlibpath_overrides_runpath=yes
9094
    hardcode_into_libs=yes
9095
    ;;
9096
  esac
9097
  ;;
9098
 
9099
gnu*)
9100
  version_type=linux
9101
  need_lib_prefix=no
9102
  need_version=no
9103
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9104
  soname_spec='${libname}${release}${shared_ext}$major'
9105
  shlibpath_var=LD_LIBRARY_PATH
9106
  hardcode_into_libs=yes
9107
  ;;
9108
 
9109
hpux9* | hpux10* | hpux11*)
9110
  # Give a soname corresponding to the major version so that dld.sl refuses to
9111
  # link against other versions.
9112
  version_type=sunos
9113
  need_lib_prefix=no
9114
  need_version=no
9115
  case $host_cpu in
9116
  ia64*)
9117
    shrext_cmds='.so'
9118
    hardcode_into_libs=yes
9119
    dynamic_linker="$host_os dld.so"
9120
    shlibpath_var=LD_LIBRARY_PATH
9121
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9122
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9123
    soname_spec='${libname}${release}${shared_ext}$major'
9124
    if test "X$HPUX_IA64_MODE" = X32; then
9125
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9126
    else
9127
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9128
    fi
9129
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9130
    ;;
9131 82 jeremybenn
  hppa*64*)
9132 19 jeremybenn
    shrext_cmds='.sl'
9133 82 jeremybenn
    hardcode_into_libs=yes
9134 19 jeremybenn
    dynamic_linker="$host_os dld.sl"
9135 82 jeremybenn
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9136
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9137
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9138
    soname_spec='${libname}${release}${shared_ext}$major'
9139
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9140
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9141
    ;;
9142
  *)
9143
    shrext_cmds='.sl'
9144
    dynamic_linker="$host_os dld.sl"
9145 19 jeremybenn
    shlibpath_var=SHLIB_PATH
9146
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9147
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9148
    soname_spec='${libname}${release}${shared_ext}$major'
9149
    ;;
9150
  esac
9151
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9152
  postinstall_cmds='chmod 555 $lib'
9153
  ;;
9154
 
9155
interix[3-9]*)
9156
  version_type=linux
9157
  need_lib_prefix=no
9158
  need_version=no
9159
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9160
  soname_spec='${libname}${release}${shared_ext}$major'
9161
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9162
  shlibpath_var=LD_LIBRARY_PATH
9163
  shlibpath_overrides_runpath=no
9164
  hardcode_into_libs=yes
9165
  ;;
9166
 
9167
irix5* | irix6* | nonstopux*)
9168
  case $host_os in
9169
    nonstopux*) version_type=nonstopux ;;
9170
    *)
9171
        if test "$lt_cv_prog_gnu_ld" = yes; then
9172
                version_type=linux
9173
        else
9174
                version_type=irix
9175
        fi ;;
9176
  esac
9177
  need_lib_prefix=no
9178
  need_version=no
9179
  soname_spec='${libname}${release}${shared_ext}$major'
9180
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9181
  case $host_os in
9182
  irix5* | nonstopux*)
9183
    libsuff= shlibsuff=
9184
    ;;
9185
  *)
9186
    case $LD in # libtool.m4 will add one of these switches to LD
9187
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9188
      libsuff= shlibsuff= libmagic=32-bit;;
9189
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9190
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9191
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9192
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9193
    *) libsuff= shlibsuff= libmagic=never-match;;
9194
    esac
9195
    ;;
9196
  esac
9197
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9198
  shlibpath_overrides_runpath=no
9199
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9200
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9201
  hardcode_into_libs=yes
9202
  ;;
9203
 
9204
# No shared lib support for Linux oldld, aout, or coff.
9205
linux*oldld* | linux*aout* | linux*coff*)
9206
  dynamic_linker=no
9207
  ;;
9208
 
9209
# This must be Linux ELF.
9210
linux* | k*bsd*-gnu)
9211
  version_type=linux
9212
  need_lib_prefix=no
9213
  need_version=no
9214
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9215
  soname_spec='${libname}${release}${shared_ext}$major'
9216
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9217
  shlibpath_var=LD_LIBRARY_PATH
9218
  shlibpath_overrides_runpath=no
9219 82 jeremybenn
  # Some binutils ld are patched to set DT_RUNPATH
9220
  save_LDFLAGS=$LDFLAGS
9221
  save_libdir=$libdir
9222
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9223
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9224 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9225 82 jeremybenn
/* end confdefs.h.  */
9226
 
9227
int
9228
main ()
9229
{
9230
 
9231
  ;
9232
  return 0;
9233
}
9234
_ACEOF
9235 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9236
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9237 82 jeremybenn
  shlibpath_overrides_runpath=yes
9238
fi
9239
fi
9240 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9241
    conftest$ac_exeext conftest.$ac_ext
9242 82 jeremybenn
  LDFLAGS=$save_LDFLAGS
9243
  libdir=$save_libdir
9244
 
9245 19 jeremybenn
  # This implies no fast_install, which is unacceptable.
9246
  # Some rework will be needed to allow for fast_install
9247
  # before this can be enabled.
9248
  hardcode_into_libs=yes
9249
 
9250
  # Append ld.so.conf contents to the search path
9251
  if test -f /etc/ld.so.conf; then
9252 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' ' '`
9253 93 jeremybenn
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9254 19 jeremybenn
  fi
9255
 
9256
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9257
  # powerpc, because MkLinux only supported shared libraries with the
9258
  # GNU dynamic linker.  Since this was broken with cross compilers,
9259
  # most powerpc-linux boxes support dynamic linking these days and
9260
  # people can always --disable-shared, the test was removed, and we
9261
  # assume the GNU/Linux dynamic linker is in use.
9262
  dynamic_linker='GNU/Linux ld.so'
9263
  ;;
9264
 
9265 93 jeremybenn
netbsdelf*-gnu)
9266
  version_type=linux
9267
  need_lib_prefix=no
9268
  need_version=no
9269
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9270
  soname_spec='${libname}${release}${shared_ext}$major'
9271
  shlibpath_var=LD_LIBRARY_PATH
9272
  shlibpath_overrides_runpath=no
9273
  hardcode_into_libs=yes
9274
  dynamic_linker='NetBSD ld.elf_so'
9275
  ;;
9276
 
9277 19 jeremybenn
netbsd*)
9278
  version_type=sunos
9279
  need_lib_prefix=no
9280
  need_version=no
9281 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9282 19 jeremybenn
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9283
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9284
    dynamic_linker='NetBSD (a.out) ld.so'
9285
  else
9286
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9287
    soname_spec='${libname}${release}${shared_ext}$major'
9288
    dynamic_linker='NetBSD ld.elf_so'
9289
  fi
9290
  shlibpath_var=LD_LIBRARY_PATH
9291
  shlibpath_overrides_runpath=yes
9292
  hardcode_into_libs=yes
9293
  ;;
9294
 
9295
newsos6)
9296
  version_type=linux
9297
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9298
  shlibpath_var=LD_LIBRARY_PATH
9299
  shlibpath_overrides_runpath=yes
9300
  ;;
9301
 
9302 82 jeremybenn
*nto* | *qnx*)
9303
  version_type=qnx
9304 19 jeremybenn
  need_lib_prefix=no
9305
  need_version=no
9306
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9307
  soname_spec='${libname}${release}${shared_ext}$major'
9308
  shlibpath_var=LD_LIBRARY_PATH
9309 82 jeremybenn
  shlibpath_overrides_runpath=no
9310
  hardcode_into_libs=yes
9311
  dynamic_linker='ldqnx.so'
9312 19 jeremybenn
  ;;
9313
 
9314
openbsd*)
9315
  version_type=sunos
9316
  sys_lib_dlsearch_path_spec="/usr/lib"
9317
  need_lib_prefix=no
9318
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9319
  case $host_os in
9320 82 jeremybenn
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9321
    *)                          need_version=no  ;;
9322 19 jeremybenn
  esac
9323
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9324
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9325
  shlibpath_var=LD_LIBRARY_PATH
9326 82 jeremybenn
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9327 19 jeremybenn
    case $host_os in
9328
      openbsd2.[89] | openbsd2.[89].*)
9329
        shlibpath_overrides_runpath=no
9330
        ;;
9331
      *)
9332
        shlibpath_overrides_runpath=yes
9333
        ;;
9334
      esac
9335
  else
9336
    shlibpath_overrides_runpath=yes
9337
  fi
9338
  ;;
9339
 
9340
os2*)
9341
  libname_spec='$name'
9342
  shrext_cmds=".dll"
9343
  need_lib_prefix=no
9344
  library_names_spec='$libname${shared_ext} $libname.a'
9345
  dynamic_linker='OS/2 ld.exe'
9346
  shlibpath_var=LIBPATH
9347
  ;;
9348
 
9349
osf3* | osf4* | osf5*)
9350
  version_type=osf
9351
  need_lib_prefix=no
9352
  need_version=no
9353
  soname_spec='${libname}${release}${shared_ext}$major'
9354
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9355
  shlibpath_var=LD_LIBRARY_PATH
9356
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9357
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9358
  ;;
9359
 
9360
rdos*)
9361
  dynamic_linker=no
9362
  ;;
9363
 
9364
solaris*)
9365
  version_type=linux
9366
  need_lib_prefix=no
9367
  need_version=no
9368
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9369
  soname_spec='${libname}${release}${shared_ext}$major'
9370
  shlibpath_var=LD_LIBRARY_PATH
9371
  shlibpath_overrides_runpath=yes
9372
  hardcode_into_libs=yes
9373
  # ldd complains unless libraries are executable
9374
  postinstall_cmds='chmod +x $lib'
9375
  ;;
9376
 
9377
sunos4*)
9378
  version_type=sunos
9379
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9380
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9381
  shlibpath_var=LD_LIBRARY_PATH
9382
  shlibpath_overrides_runpath=yes
9383
  if test "$with_gnu_ld" = yes; then
9384
    need_lib_prefix=no
9385
  fi
9386
  need_version=yes
9387
  ;;
9388
 
9389
sysv4 | sysv4.3*)
9390
  version_type=linux
9391
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9392
  soname_spec='${libname}${release}${shared_ext}$major'
9393
  shlibpath_var=LD_LIBRARY_PATH
9394
  case $host_vendor in
9395
    sni)
9396
      shlibpath_overrides_runpath=no
9397
      need_lib_prefix=no
9398
      runpath_var=LD_RUN_PATH
9399
      ;;
9400
    siemens)
9401
      need_lib_prefix=no
9402
      ;;
9403
    motorola)
9404
      need_lib_prefix=no
9405
      need_version=no
9406
      shlibpath_overrides_runpath=no
9407
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9408
      ;;
9409
  esac
9410
  ;;
9411
 
9412
sysv4*MP*)
9413
  if test -d /usr/nec ;then
9414
    version_type=linux
9415
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9416
    soname_spec='$libname${shared_ext}.$major'
9417
    shlibpath_var=LD_LIBRARY_PATH
9418
  fi
9419
  ;;
9420
 
9421
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9422
  version_type=freebsd-elf
9423
  need_lib_prefix=no
9424
  need_version=no
9425
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9426
  soname_spec='${libname}${release}${shared_ext}$major'
9427
  shlibpath_var=LD_LIBRARY_PATH
9428 82 jeremybenn
  shlibpath_overrides_runpath=yes
9429 19 jeremybenn
  hardcode_into_libs=yes
9430
  if test "$with_gnu_ld" = yes; then
9431
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9432
  else
9433
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9434
    case $host_os in
9435
      sco3.2v5*)
9436
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9437
        ;;
9438
    esac
9439
  fi
9440
  sys_lib_dlsearch_path_spec='/usr/lib'
9441
  ;;
9442
 
9443 82 jeremybenn
tpf*)
9444
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9445
  version_type=linux
9446
  need_lib_prefix=no
9447
  need_version=no
9448
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9449
  shlibpath_var=LD_LIBRARY_PATH
9450
  shlibpath_overrides_runpath=no
9451
  hardcode_into_libs=yes
9452
  ;;
9453
 
9454 19 jeremybenn
uts4*)
9455
  version_type=linux
9456
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9457
  soname_spec='${libname}${release}${shared_ext}$major'
9458
  shlibpath_var=LD_LIBRARY_PATH
9459
  ;;
9460
 
9461
*)
9462
  dynamic_linker=no
9463
  ;;
9464
esac
9465 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9466 82 jeremybenn
$as_echo "$dynamic_linker" >&6; }
9467 19 jeremybenn
test "$dynamic_linker" = no && can_build_shared=no
9468
 
9469
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9470
if test "$GCC" = yes; then
9471
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9472
fi
9473
 
9474 82 jeremybenn
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9475
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9476
fi
9477
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9478
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9479
fi
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
 
9564
 
9565
 
9566
 
9567 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9568 82 jeremybenn
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9569 19 jeremybenn
hardcode_action=
9570 82 jeremybenn
if test -n "$hardcode_libdir_flag_spec" ||
9571
   test -n "$runpath_var" ||
9572 19 jeremybenn
   test "X$hardcode_automatic" = "Xyes" ; then
9573
 
9574 82 jeremybenn
  # We can hardcode non-existent directories.
9575 19 jeremybenn
  if test "$hardcode_direct" != no &&
9576
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9577
     # have to relink, otherwise we might link with an installed library
9578
     # when we should be linking with a yet-to-be-installed one
9579 82 jeremybenn
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9580 19 jeremybenn
     test "$hardcode_minus_L" != no; then
9581
    # Linking always hardcodes the temporary library directory.
9582
    hardcode_action=relink
9583
  else
9584
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9585
    hardcode_action=immediate
9586
  fi
9587
else
9588
  # We cannot hardcode anything, or else we can only hardcode existing
9589
  # directories.
9590
  hardcode_action=unsupported
9591
fi
9592 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9593 82 jeremybenn
$as_echo "$hardcode_action" >&6; }
9594 19 jeremybenn
 
9595 82 jeremybenn
if test "$hardcode_action" = relink ||
9596
   test "$inherit_rpath" = yes; then
9597 19 jeremybenn
  # Fast installation is not supported
9598
  enable_fast_install=no
9599
elif test "$shlibpath_overrides_runpath" = yes ||
9600
     test "$enable_shared" = no; then
9601
  # Fast installation is not necessary
9602
  enable_fast_install=needless
9603
fi
9604
 
9605
 
9606 82 jeremybenn
 
9607
 
9608
 
9609
 
9610
  if test "x$enable_dlopen" != xyes; then
9611 19 jeremybenn
  enable_dlopen=unknown
9612
  enable_dlopen_self=unknown
9613
  enable_dlopen_self_static=unknown
9614
else
9615
  lt_cv_dlopen=no
9616
  lt_cv_dlopen_libs=
9617
 
9618
  case $host_os in
9619
  beos*)
9620
    lt_cv_dlopen="load_add_on"
9621
    lt_cv_dlopen_libs=
9622
    lt_cv_dlopen_self=yes
9623
    ;;
9624
 
9625 82 jeremybenn
  mingw* | pw32* | cegcc*)
9626 19 jeremybenn
    lt_cv_dlopen="LoadLibrary"
9627
    lt_cv_dlopen_libs=
9628 82 jeremybenn
    ;;
9629 19 jeremybenn
 
9630
  cygwin*)
9631
    lt_cv_dlopen="dlopen"
9632
    lt_cv_dlopen_libs=
9633 82 jeremybenn
    ;;
9634 19 jeremybenn
 
9635
  darwin*)
9636
  # if libdl is installed we need to link against it
9637 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9638 82 jeremybenn
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9639 346 jeremybenn
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9640 82 jeremybenn
  $as_echo_n "(cached) " >&6
9641 19 jeremybenn
else
9642
  ac_check_lib_save_LIBS=$LIBS
9643
LIBS="-ldl  $LIBS"
9644 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9645 19 jeremybenn
/* 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 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9663 19 jeremybenn
  ac_cv_lib_dl_dlopen=yes
9664
else
9665 346 jeremybenn
  ac_cv_lib_dl_dlopen=no
9666 19 jeremybenn
fi
9667 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9668
    conftest$ac_exeext conftest.$ac_ext
9669 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9670
fi
9671 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9672 82 jeremybenn
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9673 346 jeremybenn
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9674 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9675
else
9676
 
9677
    lt_cv_dlopen="dyld"
9678
    lt_cv_dlopen_libs=
9679
    lt_cv_dlopen_self=yes
9680
 
9681
fi
9682
 
9683 82 jeremybenn
    ;;
9684 19 jeremybenn
 
9685
  *)
9686 346 jeremybenn
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9687
if test "x$ac_cv_func_shl_load" = x""yes; then :
9688 19 jeremybenn
  lt_cv_dlopen="shl_load"
9689
else
9690 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9691 82 jeremybenn
$as_echo_n "checking for shl_load in -ldld... " >&6; }
9692 346 jeremybenn
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9693 82 jeremybenn
  $as_echo_n "(cached) " >&6
9694 19 jeremybenn
else
9695
  ac_check_lib_save_LIBS=$LIBS
9696
LIBS="-ldld  $LIBS"
9697 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9698 19 jeremybenn
/* end confdefs.h.  */
9699
 
9700
/* Override any GCC internal prototype to avoid an error.
9701
   Use char because int might match the return type of a GCC
9702
   builtin and then its argument prototype would still apply.  */
9703
#ifdef __cplusplus
9704
extern "C"
9705
#endif
9706
char shl_load ();
9707
int
9708
main ()
9709
{
9710
return shl_load ();
9711
  ;
9712
  return 0;
9713
}
9714
_ACEOF
9715 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9716 19 jeremybenn
  ac_cv_lib_dld_shl_load=yes
9717
else
9718 346 jeremybenn
  ac_cv_lib_dld_shl_load=no
9719 19 jeremybenn
fi
9720 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9721
    conftest$ac_exeext conftest.$ac_ext
9722 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9723
fi
9724 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9725 82 jeremybenn
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9726 346 jeremybenn
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9727 82 jeremybenn
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9728 19 jeremybenn
else
9729 346 jeremybenn
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9730
if test "x$ac_cv_func_dlopen" = x""yes; then :
9731 19 jeremybenn
  lt_cv_dlopen="dlopen"
9732
else
9733 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9734 82 jeremybenn
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9735 346 jeremybenn
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9736 82 jeremybenn
  $as_echo_n "(cached) " >&6
9737 19 jeremybenn
else
9738
  ac_check_lib_save_LIBS=$LIBS
9739
LIBS="-ldl  $LIBS"
9740 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9741 19 jeremybenn
/* end confdefs.h.  */
9742
 
9743
/* Override any GCC internal prototype to avoid an error.
9744
   Use char because int might match the return type of a GCC
9745
   builtin and then its argument prototype would still apply.  */
9746
#ifdef __cplusplus
9747
extern "C"
9748
#endif
9749
char dlopen ();
9750
int
9751
main ()
9752
{
9753
return dlopen ();
9754
  ;
9755
  return 0;
9756
}
9757
_ACEOF
9758 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9759 19 jeremybenn
  ac_cv_lib_dl_dlopen=yes
9760
else
9761 346 jeremybenn
  ac_cv_lib_dl_dlopen=no
9762 19 jeremybenn
fi
9763 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9764
    conftest$ac_exeext conftest.$ac_ext
9765 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9766
fi
9767 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9768 82 jeremybenn
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9769 346 jeremybenn
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9770 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9771
else
9772 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9773 82 jeremybenn
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9774 346 jeremybenn
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9775 82 jeremybenn
  $as_echo_n "(cached) " >&6
9776 19 jeremybenn
else
9777
  ac_check_lib_save_LIBS=$LIBS
9778
LIBS="-lsvld  $LIBS"
9779 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9780 19 jeremybenn
/* end confdefs.h.  */
9781
 
9782
/* Override any GCC internal prototype to avoid an error.
9783
   Use char because int might match the return type of a GCC
9784
   builtin and then its argument prototype would still apply.  */
9785
#ifdef __cplusplus
9786
extern "C"
9787
#endif
9788
char dlopen ();
9789
int
9790
main ()
9791
{
9792
return dlopen ();
9793
  ;
9794
  return 0;
9795
}
9796
_ACEOF
9797 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9798 19 jeremybenn
  ac_cv_lib_svld_dlopen=yes
9799
else
9800 346 jeremybenn
  ac_cv_lib_svld_dlopen=no
9801 19 jeremybenn
fi
9802 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9803
    conftest$ac_exeext conftest.$ac_ext
9804 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9805
fi
9806 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9807 82 jeremybenn
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9808 346 jeremybenn
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9809 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9810
else
9811 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9812 82 jeremybenn
$as_echo_n "checking for dld_link in -ldld... " >&6; }
9813 346 jeremybenn
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9814 82 jeremybenn
  $as_echo_n "(cached) " >&6
9815 19 jeremybenn
else
9816
  ac_check_lib_save_LIBS=$LIBS
9817
LIBS="-ldld  $LIBS"
9818 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9819 19 jeremybenn
/* end confdefs.h.  */
9820
 
9821
/* Override any GCC internal prototype to avoid an error.
9822
   Use char because int might match the return type of a GCC
9823
   builtin and then its argument prototype would still apply.  */
9824
#ifdef __cplusplus
9825
extern "C"
9826
#endif
9827
char dld_link ();
9828
int
9829
main ()
9830
{
9831
return dld_link ();
9832
  ;
9833
  return 0;
9834
}
9835
_ACEOF
9836 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9837 19 jeremybenn
  ac_cv_lib_dld_dld_link=yes
9838
else
9839 346 jeremybenn
  ac_cv_lib_dld_dld_link=no
9840 19 jeremybenn
fi
9841 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9842
    conftest$ac_exeext conftest.$ac_ext
9843 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9844
fi
9845 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9846 82 jeremybenn
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9847 346 jeremybenn
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9848 82 jeremybenn
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9849 19 jeremybenn
fi
9850
 
9851
 
9852
fi
9853
 
9854
 
9855
fi
9856
 
9857
 
9858
fi
9859
 
9860
 
9861
fi
9862
 
9863
 
9864
fi
9865
 
9866
    ;;
9867
  esac
9868
 
9869
  if test "x$lt_cv_dlopen" != xno; then
9870
    enable_dlopen=yes
9871
  else
9872
    enable_dlopen=no
9873
  fi
9874
 
9875
  case $lt_cv_dlopen in
9876
  dlopen)
9877
    save_CPPFLAGS="$CPPFLAGS"
9878
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9879
 
9880
    save_LDFLAGS="$LDFLAGS"
9881
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9882
 
9883
    save_LIBS="$LIBS"
9884
    LIBS="$lt_cv_dlopen_libs $LIBS"
9885
 
9886 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9887 82 jeremybenn
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
9888 346 jeremybenn
if test "${lt_cv_dlopen_self+set}" = set; then :
9889 82 jeremybenn
  $as_echo_n "(cached) " >&6
9890 19 jeremybenn
else
9891
          if test "$cross_compiling" = yes; then :
9892
  lt_cv_dlopen_self=cross
9893
else
9894
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9895
  lt_status=$lt_dlunknown
9896 82 jeremybenn
  cat > conftest.$ac_ext <<_LT_EOF
9897 432 jeremybenn
#line 9897 "configure"
9898 19 jeremybenn
#include "confdefs.h"
9899
 
9900
#if HAVE_DLFCN_H
9901
#include 
9902
#endif
9903
 
9904
#include 
9905
 
9906
#ifdef RTLD_GLOBAL
9907
#  define LT_DLGLOBAL           RTLD_GLOBAL
9908
#else
9909
#  ifdef DL_GLOBAL
9910
#    define LT_DLGLOBAL         DL_GLOBAL
9911
#  else
9912
#    define LT_DLGLOBAL         0
9913
#  endif
9914
#endif
9915
 
9916
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9917
   find out it does not work in some platform. */
9918
#ifndef LT_DLLAZY_OR_NOW
9919
#  ifdef RTLD_LAZY
9920
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9921
#  else
9922
#    ifdef DL_LAZY
9923
#      define LT_DLLAZY_OR_NOW          DL_LAZY
9924
#    else
9925
#      ifdef RTLD_NOW
9926
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9927
#      else
9928
#        ifdef DL_NOW
9929
#          define LT_DLLAZY_OR_NOW      DL_NOW
9930
#        else
9931
#          define LT_DLLAZY_OR_NOW      0
9932
#        endif
9933
#      endif
9934
#    endif
9935
#  endif
9936
#endif
9937
 
9938
void fnord() { int i=42;}
9939
int main ()
9940
{
9941
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9942
  int status = $lt_dlunknown;
9943
 
9944
  if (self)
9945
    {
9946
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9947
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9948
      /* dlclose (self); */
9949
    }
9950
  else
9951
    puts (dlerror ());
9952
 
9953 82 jeremybenn
  return status;
9954 19 jeremybenn
}
9955 82 jeremybenn
_LT_EOF
9956 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9957 19 jeremybenn
  (eval $ac_link) 2>&5
9958
  ac_status=$?
9959 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9960
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9961 19 jeremybenn
    (./conftest; exit; ) >&5 2>/dev/null
9962
    lt_status=$?
9963
    case x$lt_status in
9964
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9965
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9966
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9967
    esac
9968
  else :
9969
    # compilation failed
9970
    lt_cv_dlopen_self=no
9971
  fi
9972
fi
9973
rm -fr conftest*
9974
 
9975
 
9976
fi
9977 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9978 82 jeremybenn
$as_echo "$lt_cv_dlopen_self" >&6; }
9979 19 jeremybenn
 
9980
    if test "x$lt_cv_dlopen_self" = xyes; then
9981
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9982 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9983 82 jeremybenn
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9984 346 jeremybenn
if test "${lt_cv_dlopen_self_static+set}" = set; then :
9985 82 jeremybenn
  $as_echo_n "(cached) " >&6
9986 19 jeremybenn
else
9987
          if test "$cross_compiling" = yes; then :
9988
  lt_cv_dlopen_self_static=cross
9989
else
9990
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9991
  lt_status=$lt_dlunknown
9992 82 jeremybenn
  cat > conftest.$ac_ext <<_LT_EOF
9993 432 jeremybenn
#line 9993 "configure"
9994 19 jeremybenn
#include "confdefs.h"
9995
 
9996
#if HAVE_DLFCN_H
9997
#include 
9998
#endif
9999
 
10000
#include 
10001
 
10002
#ifdef RTLD_GLOBAL
10003
#  define LT_DLGLOBAL           RTLD_GLOBAL
10004
#else
10005
#  ifdef DL_GLOBAL
10006
#    define LT_DLGLOBAL         DL_GLOBAL
10007
#  else
10008
#    define LT_DLGLOBAL         0
10009
#  endif
10010
#endif
10011
 
10012
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10013
   find out it does not work in some platform. */
10014
#ifndef LT_DLLAZY_OR_NOW
10015
#  ifdef RTLD_LAZY
10016
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10017
#  else
10018
#    ifdef DL_LAZY
10019
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10020
#    else
10021
#      ifdef RTLD_NOW
10022
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10023
#      else
10024
#        ifdef DL_NOW
10025
#          define LT_DLLAZY_OR_NOW      DL_NOW
10026
#        else
10027
#          define LT_DLLAZY_OR_NOW      0
10028
#        endif
10029
#      endif
10030
#    endif
10031
#  endif
10032
#endif
10033
 
10034
void fnord() { int i=42;}
10035
int main ()
10036
{
10037
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10038
  int status = $lt_dlunknown;
10039
 
10040
  if (self)
10041
    {
10042
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10043
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10044
      /* dlclose (self); */
10045
    }
10046
  else
10047
    puts (dlerror ());
10048
 
10049 82 jeremybenn
  return status;
10050 19 jeremybenn
}
10051 82 jeremybenn
_LT_EOF
10052 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10053 19 jeremybenn
  (eval $ac_link) 2>&5
10054
  ac_status=$?
10055 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10056
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10057 19 jeremybenn
    (./conftest; exit; ) >&5 2>/dev/null
10058
    lt_status=$?
10059
    case x$lt_status in
10060
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10061
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10062
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10063
    esac
10064
  else :
10065
    # compilation failed
10066
    lt_cv_dlopen_self_static=no
10067
  fi
10068
fi
10069
rm -fr conftest*
10070
 
10071
 
10072
fi
10073 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10074 82 jeremybenn
$as_echo "$lt_cv_dlopen_self_static" >&6; }
10075 19 jeremybenn
    fi
10076
 
10077
    CPPFLAGS="$save_CPPFLAGS"
10078
    LDFLAGS="$save_LDFLAGS"
10079
    LIBS="$save_LIBS"
10080
    ;;
10081
  esac
10082
 
10083
  case $lt_cv_dlopen_self in
10084
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10085
  *) enable_dlopen_self=unknown ;;
10086
  esac
10087
 
10088
  case $lt_cv_dlopen_self_static in
10089
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10090
  *) enable_dlopen_self_static=unknown ;;
10091
  esac
10092
fi
10093
 
10094
 
10095
 
10096
 
10097
 
10098
 
10099
 
10100
 
10101
 
10102
 
10103
 
10104
 
10105
 
10106
 
10107
 
10108
 
10109
 
10110 82 jeremybenn
striplib=
10111
old_striplib=
10112 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10113 82 jeremybenn
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10114
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10115
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10116
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10117 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10118 82 jeremybenn
$as_echo "yes" >&6; }
10119
else
10120
# FIXME - insert some real tests, host_os isn't really good enough
10121 19 jeremybenn
  case $host_os in
10122 82 jeremybenn
  darwin*)
10123
    if test -n "$STRIP" ; then
10124
      striplib="$STRIP -x"
10125
      old_striplib="$STRIP -S"
10126 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10127 82 jeremybenn
$as_echo "yes" >&6; }
10128 19 jeremybenn
    else
10129 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10130 82 jeremybenn
$as_echo "no" >&6; }
10131 19 jeremybenn
    fi
10132
    ;;
10133
  *)
10134 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10135 82 jeremybenn
$as_echo "no" >&6; }
10136 19 jeremybenn
    ;;
10137
  esac
10138
fi
10139
 
10140
 
10141
 
10142
 
10143
 
10144
 
10145
 
10146
 
10147
 
10148
 
10149
 
10150
 
10151 82 jeremybenn
  # Report which library types will actually be built
10152 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10153 82 jeremybenn
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10154 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10155 82 jeremybenn
$as_echo "$can_build_shared" >&6; }
10156 19 jeremybenn
 
10157 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10158 82 jeremybenn
$as_echo_n "checking whether to build shared libraries... " >&6; }
10159
  test "$can_build_shared" = "no" && enable_shared=no
10160 19 jeremybenn
 
10161 82 jeremybenn
  # On AIX, shared libraries and static libraries use the same namespace, and
10162
  # are all built from PIC.
10163 19 jeremybenn
  case $host_os in
10164 82 jeremybenn
  aix3*)
10165 19 jeremybenn
    test "$enable_shared" = yes && enable_static=no
10166 82 jeremybenn
    if test -n "$RANLIB"; then
10167
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10168
      postinstall_cmds='$RANLIB $lib'
10169 19 jeremybenn
    fi
10170
    ;;
10171
 
10172 82 jeremybenn
  aix[4-9]*)
10173
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10174
      test "$enable_shared" = yes && enable_static=no
10175 19 jeremybenn
    fi
10176
    ;;
10177
  esac
10178 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10179 82 jeremybenn
$as_echo "$enable_shared" >&6; }
10180 19 jeremybenn
 
10181 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10182 82 jeremybenn
$as_echo_n "checking whether to build static libraries... " >&6; }
10183
  # Make sure either enable_shared or enable_static is yes.
10184
  test "$enable_shared" = yes || enable_static=yes
10185 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10186 82 jeremybenn
$as_echo "$enable_static" >&6; }
10187 19 jeremybenn
 
10188
 
10189
 
10190
 
10191
fi
10192
ac_ext=c
10193
ac_cpp='$CPP $CPPFLAGS'
10194
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10195
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10196
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10197
 
10198
CC="$lt_save_CC"
10199
 
10200
 
10201
 
10202
 
10203
 
10204
 
10205
 
10206
 
10207
 
10208
 
10209
 
10210
 
10211
 
10212 82 jeremybenn
        ac_config_commands="$ac_config_commands libtool"
10213 19 jeremybenn
 
10214
 
10215
 
10216
 
10217 82 jeremybenn
# Only expand once:
10218 19 jeremybenn
 
10219
 
10220 82 jeremybenn
am__api_version='1.11'
10221 19 jeremybenn
 
10222
# Find a good install program.  We prefer a C program (faster),
10223
# so one script is as good as another.  But avoid the broken or
10224
# incompatible versions:
10225
# SysV /etc/install, /usr/sbin/install
10226
# SunOS /usr/etc/install
10227
# IRIX /sbin/install
10228
# AIX /bin/install
10229
# AmigaOS /C/install, which installs bootblocks on floppy discs
10230
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10231
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10232
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10233
# OS/2's system install, which has a completely different semantic
10234
# ./install, which can be erroneously created by make from ./install.sh.
10235 82 jeremybenn
# Reject install programs that cannot install multiple files.
10236 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
10237 82 jeremybenn
$as_echo_n "checking for a BSD-compatible install... " >&6; }
10238 19 jeremybenn
if test -z "$INSTALL"; then
10239 346 jeremybenn
if test "${ac_cv_path_install+set}" = set; then :
10240 82 jeremybenn
  $as_echo_n "(cached) " >&6
10241 19 jeremybenn
else
10242
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10243
for as_dir in $PATH
10244
do
10245
  IFS=$as_save_IFS
10246
  test -z "$as_dir" && as_dir=.
10247 346 jeremybenn
    # Account for people who put trailing slashes in PATH elements.
10248
case $as_dir/ in #((
10249
  ./ | .// | /[cC]/* | \
10250 19 jeremybenn
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10251 346 jeremybenn
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
10252 19 jeremybenn
  /usr/ucb/* ) ;;
10253
  *)
10254
    # OSF1 and SCO ODT 3.0 have their own names for install.
10255
    # Don't use installbsd from OSF since it installs stuff as root
10256
    # by default.
10257
    for ac_prog in ginstall scoinst install; do
10258
      for ac_exec_ext in '' $ac_executable_extensions; do
10259
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10260
          if test $ac_prog = install &&
10261
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10262
            # AIX install.  It has an incompatible calling convention.
10263
            :
10264
          elif test $ac_prog = install &&
10265
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10266
            # program-specific install script used by HP pwplus--don't use.
10267
            :
10268
          else
10269 82 jeremybenn
            rm -rf conftest.one conftest.two conftest.dir
10270
            echo one > conftest.one
10271
            echo two > conftest.two
10272
            mkdir conftest.dir
10273
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10274
              test -s conftest.one && test -s conftest.two &&
10275
              test -s conftest.dir/conftest.one &&
10276
              test -s conftest.dir/conftest.two
10277
            then
10278
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10279
              break 3
10280
            fi
10281 19 jeremybenn
          fi
10282
        fi
10283
      done
10284
    done
10285
    ;;
10286
esac
10287 82 jeremybenn
 
10288 346 jeremybenn
  done
10289 19 jeremybenn
IFS=$as_save_IFS
10290
 
10291 82 jeremybenn
rm -rf conftest.one conftest.two conftest.dir
10292 19 jeremybenn
 
10293
fi
10294
  if test "${ac_cv_path_install+set}" = set; then
10295
    INSTALL=$ac_cv_path_install
10296
  else
10297
    # As a last resort, use the slow shell script.  Don't cache a
10298
    # value for INSTALL within a source directory, because that will
10299
    # break other packages using the cache if that directory is
10300
    # removed, or if the value is a relative name.
10301
    INSTALL=$ac_install_sh
10302
  fi
10303
fi
10304 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
10305 82 jeremybenn
$as_echo "$INSTALL" >&6; }
10306 19 jeremybenn
 
10307
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10308
# It thinks the first close brace ends the variable substitution.
10309
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10310
 
10311
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10312
 
10313
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10314
 
10315 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
10316 82 jeremybenn
$as_echo_n "checking whether build environment is sane... " >&6; }
10317 19 jeremybenn
# Just in case
10318
sleep 1
10319
echo timestamp > conftest.file
10320 82 jeremybenn
# Reject unsafe characters in $srcdir or the absolute working directory
10321
# name.  Accept space and tab only in the latter.
10322
am_lf='
10323
'
10324
case `pwd` in
10325
  *[\\\"\#\$\&\'\`$am_lf]*)
10326 346 jeremybenn
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
10327 82 jeremybenn
esac
10328
case $srcdir in
10329
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
10330 346 jeremybenn
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
10331 82 jeremybenn
esac
10332
 
10333 19 jeremybenn
# Do `set' in a subshell so we don't clobber the current shell's
10334
# arguments.  Must try -L first in case configure is actually a
10335
# symlink; some systems play weird games with the mod time of symlinks
10336
# (eg FreeBSD returns the mod time of the symlink's containing
10337
# directory).
10338
if (
10339 82 jeremybenn
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10340 19 jeremybenn
   if test "$*" = "X"; then
10341
      # -L didn't work.
10342 82 jeremybenn
      set X `ls -t "$srcdir/configure" conftest.file`
10343 19 jeremybenn
   fi
10344
   rm -f conftest.file
10345
   if test "$*" != "X $srcdir/configure conftest.file" \
10346
      && test "$*" != "X conftest.file $srcdir/configure"; then
10347
 
10348
      # If neither matched, then we have a broken ls.  This can happen
10349
      # if, for instance, CONFIG_SHELL is bash and it inherits a
10350
      # broken ls alias from the environment.  This has actually
10351
      # happened.  Such a system could not be considered "sane".
10352 346 jeremybenn
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
10353
alias in your environment" "$LINENO" 5
10354 19 jeremybenn
   fi
10355
 
10356
   test "$2" = conftest.file
10357
   )
10358
then
10359
   # Ok.
10360
   :
10361
else
10362 346 jeremybenn
   as_fn_error "newly created file is older than distributed files!
10363
Check your system clock" "$LINENO" 5
10364 19 jeremybenn
fi
10365 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10366 82 jeremybenn
$as_echo "yes" >&6; }
10367 19 jeremybenn
test "$program_prefix" != NONE &&
10368
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
10369
# Use a double $ so make ignores it.
10370
test "$program_suffix" != NONE &&
10371
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
10372 82 jeremybenn
# Double any \ or $.
10373 19 jeremybenn
# By default was `s,x,x', remove it if useless.
10374 82 jeremybenn
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
10375
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
10376 19 jeremybenn
 
10377
# expand $ac_aux_dir to an absolute path
10378
am_aux_dir=`cd $ac_aux_dir && pwd`
10379
 
10380 82 jeremybenn
if test x"${MISSING+set}" != xset; then
10381
  case $am_aux_dir in
10382
  *\ * | *\     *)
10383
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10384
  *)
10385
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
10386
  esac
10387
fi
10388 19 jeremybenn
# Use eval to expand $SHELL
10389
if eval "$MISSING --run true"; then
10390
  am_missing_run="$MISSING --run "
10391
else
10392
  am_missing_run=
10393 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
10394 82 jeremybenn
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
10395 19 jeremybenn
fi
10396
 
10397 82 jeremybenn
if test x"${install_sh}" != xset; then
10398
  case $am_aux_dir in
10399
  *\ * | *\     *)
10400
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10401
  *)
10402
    install_sh="\${SHELL} $am_aux_dir/install-sh"
10403
  esac
10404
fi
10405
 
10406
# Installed binaries are usually stripped using `strip' when the user
10407
# run `make install-strip'.  However `strip' might not be the right
10408
# tool to use in cross-compilation environments, therefore Automake
10409
# will honor the `STRIP' environment variable to overrule this program.
10410
if test "$cross_compiling" != no; then
10411
  if test -n "$ac_tool_prefix"; then
10412
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10413
set dummy ${ac_tool_prefix}strip; ac_word=$2
10414 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10415 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10416 346 jeremybenn
if test "${ac_cv_prog_STRIP+set}" = set; then :
10417 82 jeremybenn
  $as_echo_n "(cached) " >&6
10418
else
10419
  if test -n "$STRIP"; then
10420
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10421
else
10422
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10423
for as_dir in $PATH
10424
do
10425
  IFS=$as_save_IFS
10426
  test -z "$as_dir" && as_dir=.
10427 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10428 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10429
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10430 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10431 82 jeremybenn
    break 2
10432
  fi
10433
done
10434 346 jeremybenn
  done
10435 82 jeremybenn
IFS=$as_save_IFS
10436
 
10437
fi
10438
fi
10439
STRIP=$ac_cv_prog_STRIP
10440
if test -n "$STRIP"; then
10441 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10442 82 jeremybenn
$as_echo "$STRIP" >&6; }
10443
else
10444 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10445 82 jeremybenn
$as_echo "no" >&6; }
10446
fi
10447
 
10448
 
10449
fi
10450
if test -z "$ac_cv_prog_STRIP"; then
10451
  ac_ct_STRIP=$STRIP
10452
  # Extract the first word of "strip", so it can be a program name with args.
10453
set dummy strip; ac_word=$2
10454 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10455 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10456 346 jeremybenn
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
10457 82 jeremybenn
  $as_echo_n "(cached) " >&6
10458
else
10459
  if test -n "$ac_ct_STRIP"; then
10460
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10461
else
10462
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10463
for as_dir in $PATH
10464
do
10465
  IFS=$as_save_IFS
10466
  test -z "$as_dir" && as_dir=.
10467 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10468 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10469
    ac_cv_prog_ac_ct_STRIP="strip"
10470 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10471 82 jeremybenn
    break 2
10472
  fi
10473
done
10474 346 jeremybenn
  done
10475 82 jeremybenn
IFS=$as_save_IFS
10476
 
10477
fi
10478
fi
10479
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10480
if test -n "$ac_ct_STRIP"; then
10481 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10482 82 jeremybenn
$as_echo "$ac_ct_STRIP" >&6; }
10483
else
10484 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10485 82 jeremybenn
$as_echo "no" >&6; }
10486
fi
10487
 
10488
  if test "x$ac_ct_STRIP" = x; then
10489
    STRIP=":"
10490
  else
10491
    case $cross_compiling:$ac_tool_warned in
10492
yes:)
10493 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10494 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10495
ac_tool_warned=yes ;;
10496
esac
10497
    STRIP=$ac_ct_STRIP
10498
  fi
10499
else
10500
  STRIP="$ac_cv_prog_STRIP"
10501
fi
10502
 
10503
fi
10504
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10505
 
10506 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
10507 82 jeremybenn
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10508 19 jeremybenn
if test -z "$MKDIR_P"; then
10509 346 jeremybenn
  if test "${ac_cv_path_mkdir+set}" = set; then :
10510 82 jeremybenn
  $as_echo_n "(cached) " >&6
10511 19 jeremybenn
else
10512
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10513
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10514
do
10515
  IFS=$as_save_IFS
10516
  test -z "$as_dir" && as_dir=.
10517 346 jeremybenn
    for ac_prog in mkdir gmkdir; do
10518 19 jeremybenn
         for ac_exec_ext in '' $ac_executable_extensions; do
10519
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
10520
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10521
             'mkdir (GNU coreutils) '* | \
10522
             'mkdir (coreutils) '* | \
10523
             'mkdir (fileutils) '4.1*)
10524
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10525
               break 3;;
10526
           esac
10527
         done
10528
       done
10529 346 jeremybenn
  done
10530 19 jeremybenn
IFS=$as_save_IFS
10531
 
10532
fi
10533
 
10534 432 jeremybenn
  test -d ./--version && rmdir ./--version
10535 19 jeremybenn
  if test "${ac_cv_path_mkdir+set}" = set; then
10536
    MKDIR_P="$ac_cv_path_mkdir -p"
10537
  else
10538
    # As a last resort, use the slow shell script.  Don't cache a
10539
    # value for MKDIR_P within a source directory, because that will
10540
    # break other packages using the cache if that directory is
10541
    # removed, or if the value is a relative name.
10542
    MKDIR_P="$ac_install_sh -d"
10543
  fi
10544
fi
10545 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10546 82 jeremybenn
$as_echo "$MKDIR_P" >&6; }
10547 19 jeremybenn
 
10548
mkdir_p="$MKDIR_P"
10549
case $mkdir_p in
10550
  [\\/$]* | ?:[\\/]*) ;;
10551
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
10552
esac
10553
 
10554
for ac_prog in gawk mawk nawk awk
10555
do
10556
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10557
set dummy $ac_prog; ac_word=$2
10558 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10559 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10560 346 jeremybenn
if test "${ac_cv_prog_AWK+set}" = set; then :
10561 82 jeremybenn
  $as_echo_n "(cached) " >&6
10562 19 jeremybenn
else
10563
  if test -n "$AWK"; then
10564
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
10565
else
10566
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10567
for as_dir in $PATH
10568
do
10569
  IFS=$as_save_IFS
10570
  test -z "$as_dir" && as_dir=.
10571 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10572 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10573
    ac_cv_prog_AWK="$ac_prog"
10574 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10575 19 jeremybenn
    break 2
10576
  fi
10577
done
10578 346 jeremybenn
  done
10579 19 jeremybenn
IFS=$as_save_IFS
10580
 
10581
fi
10582
fi
10583
AWK=$ac_cv_prog_AWK
10584
if test -n "$AWK"; then
10585 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
10586 82 jeremybenn
$as_echo "$AWK" >&6; }
10587 19 jeremybenn
else
10588 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10589 82 jeremybenn
$as_echo "no" >&6; }
10590 19 jeremybenn
fi
10591
 
10592
 
10593
  test -n "$AWK" && break
10594
done
10595
 
10596 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10597 82 jeremybenn
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10598
set x ${MAKE-make}
10599
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10600 346 jeremybenn
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
10601 82 jeremybenn
  $as_echo_n "(cached) " >&6
10602 19 jeremybenn
else
10603
  cat >conftest.make <<\_ACEOF
10604
SHELL = /bin/sh
10605
all:
10606
        @echo '@@@%%%=$(MAKE)=@@@%%%'
10607
_ACEOF
10608
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10609
case `${MAKE-make} -f conftest.make 2>/dev/null` in
10610
  *@@@%%%=?*=@@@%%%*)
10611
    eval ac_cv_prog_make_${ac_make}_set=yes;;
10612
  *)
10613
    eval ac_cv_prog_make_${ac_make}_set=no;;
10614
esac
10615
rm -f conftest.make
10616
fi
10617
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10618 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10619 82 jeremybenn
$as_echo "yes" >&6; }
10620 19 jeremybenn
  SET_MAKE=
10621
else
10622 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10623 82 jeremybenn
$as_echo "no" >&6; }
10624 19 jeremybenn
  SET_MAKE="MAKE=${MAKE-make}"
10625
fi
10626
 
10627
rm -rf .tst 2>/dev/null
10628
mkdir .tst 2>/dev/null
10629
if test -d .tst; then
10630
  am__leading_dot=.
10631
else
10632
  am__leading_dot=_
10633
fi
10634
rmdir .tst 2>/dev/null
10635
 
10636
DEPDIR="${am__leading_dot}deps"
10637
 
10638
ac_config_commands="$ac_config_commands depfiles"
10639
 
10640
 
10641
am_make=${MAKE-make}
10642
cat > confinc << 'END'
10643
am__doit:
10644 82 jeremybenn
        @echo this is the am__doit target
10645 19 jeremybenn
.PHONY: am__doit
10646
END
10647
# If we don't find an include directive, just comment out the code.
10648 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
10649 82 jeremybenn
$as_echo_n "checking for style of include used by $am_make... " >&6; }
10650 19 jeremybenn
am__include="#"
10651
am__quote=
10652
_am_result=none
10653
# First try GNU make style include.
10654
echo "include confinc" > confmf
10655 82 jeremybenn
# Ignore all kinds of additional output from `make'.
10656
case `$am_make -s -f confmf 2> /dev/null` in #(
10657
*the\ am__doit\ target*)
10658
  am__include=include
10659
  am__quote=
10660
  _am_result=GNU
10661
  ;;
10662
esac
10663 19 jeremybenn
# Now try BSD make style include.
10664
if test "$am__include" = "#"; then
10665
   echo '.include "confinc"' > confmf
10666 82 jeremybenn
   case `$am_make -s -f confmf 2> /dev/null` in #(
10667
   *the\ am__doit\ target*)
10668
     am__include=.include
10669
     am__quote="\""
10670
     _am_result=BSD
10671
     ;;
10672
   esac
10673 19 jeremybenn
fi
10674
 
10675
 
10676 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
10677 82 jeremybenn
$as_echo "$_am_result" >&6; }
10678 19 jeremybenn
rm -f confinc confmf
10679
 
10680
# Check whether --enable-dependency-tracking was given.
10681 346 jeremybenn
if test "${enable_dependency_tracking+set}" = set; then :
10682 19 jeremybenn
  enableval=$enable_dependency_tracking;
10683
fi
10684
 
10685
if test "x$enable_dependency_tracking" != xno; then
10686
  am_depcomp="$ac_aux_dir/depcomp"
10687
  AMDEPBACKSLASH='\'
10688
fi
10689
 if test "x$enable_dependency_tracking" != xno; then
10690
  AMDEP_TRUE=
10691
  AMDEP_FALSE='#'
10692
else
10693
  AMDEP_TRUE='#'
10694
  AMDEP_FALSE=
10695
fi
10696
 
10697
 
10698
if test "`cd $srcdir && pwd`" != "`pwd`"; then
10699
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
10700
  # is not polluted with repeated "-I."
10701
  am__isrc=' -I$(srcdir)'
10702
  # test to see if srcdir already configured
10703
  if test -f $srcdir/config.status; then
10704 346 jeremybenn
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
10705 19 jeremybenn
  fi
10706
fi
10707
 
10708
# test whether we have cygpath
10709
if test -z "$CYGPATH_W"; then
10710
  if (cygpath --version) >/dev/null 2>/dev/null; then
10711
    CYGPATH_W='cygpath -w'
10712
  else
10713
    CYGPATH_W=echo
10714
  fi
10715
fi
10716
 
10717
 
10718
# Define the identity of the package.
10719
 PACKAGE='or1ksim'
10720 432 jeremybenn
 VERSION='2010-11-25'
10721 19 jeremybenn
 
10722
 
10723
cat >>confdefs.h <<_ACEOF
10724
#define PACKAGE "$PACKAGE"
10725
_ACEOF
10726
 
10727
 
10728
cat >>confdefs.h <<_ACEOF
10729
#define VERSION "$VERSION"
10730
_ACEOF
10731
 
10732
# Some tools Automake needs.
10733
 
10734
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
10735
 
10736
 
10737
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
10738
 
10739
 
10740
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
10741
 
10742
 
10743
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
10744
 
10745
 
10746
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
10747
 
10748
# We need awk for the "check" target.  The system "awk" is bad on
10749
# some platforms.
10750
# Always define AMTAR for backward compatibility.
10751
 
10752
AMTAR=${AMTAR-"${am_missing_run}tar"}
10753
 
10754
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
10755
 
10756
 
10757
 
10758
 
10759
depcc="$CC"   am_compiler_list=
10760
 
10761 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10762 82 jeremybenn
$as_echo_n "checking dependency style of $depcc... " >&6; }
10763 346 jeremybenn
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
10764 82 jeremybenn
  $as_echo_n "(cached) " >&6
10765 19 jeremybenn
else
10766
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10767
  # We make a subdir and do the tests there.  Otherwise we can end up
10768
  # making bogus files that we don't know about and never remove.  For
10769
  # instance it was reported that on HP-UX the gcc test will end up
10770
  # making a dummy file named `D' -- because `-MD' means `put the output
10771
  # in D'.
10772
  mkdir conftest.dir
10773
  # Copy depcomp to subdir because otherwise we won't find it if we're
10774
  # using a relative directory.
10775
  cp "$am_depcomp" conftest.dir
10776
  cd conftest.dir
10777
  # We will build objects and dependencies in a subdirectory because
10778
  # it helps to detect inapplicable dependency modes.  For instance
10779
  # both Tru64's cc and ICC support -MD to output dependencies as a
10780
  # side effect of compilation, but ICC will put the dependencies in
10781
  # the current directory while Tru64 will put them in the object
10782
  # directory.
10783
  mkdir sub
10784
 
10785
  am_cv_CC_dependencies_compiler_type=none
10786
  if test "$am_compiler_list" = ""; then
10787
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10788
  fi
10789 82 jeremybenn
  am__universal=false
10790
  case " $depcc " in #(
10791
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
10792
     esac
10793
 
10794 19 jeremybenn
  for depmode in $am_compiler_list; do
10795
    # Setup a source with many dependencies, because some compilers
10796
    # like to wrap large dependency lists on column 80 (with \), and
10797
    # we should not choose a depcomp mode which is confused by this.
10798
    #
10799
    # We need to recreate these files for each test, as the compiler may
10800
    # overwrite some of them when testing with obscure command lines.
10801
    # This happens at least with the AIX C compiler.
10802
    : > sub/conftest.c
10803
    for i in 1 2 3 4 5 6; do
10804
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
10805
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10806
      # Solaris 8's {/usr,}/bin/sh.
10807
      touch sub/conftst$i.h
10808
    done
10809
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10810
 
10811 82 jeremybenn
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
10812
    # mode.  It turns out that the SunPro C++ compiler does not properly
10813
    # handle `-M -o', and we need to detect this.  Also, some Intel
10814
    # versions had trouble with output in subdirs
10815
    am__obj=sub/conftest.${OBJEXT-o}
10816
    am__minus_obj="-o $am__obj"
10817 19 jeremybenn
    case $depmode in
10818 82 jeremybenn
    gcc)
10819
      # This depmode causes a compiler race in universal mode.
10820
      test "$am__universal" = false || continue
10821
      ;;
10822 19 jeremybenn
    nosideeffect)
10823
      # after this tag, mechanisms are not by side-effect, so they'll
10824
      # only be used when explicitly requested
10825
      if test "x$enable_dependency_tracking" = xyes; then
10826
        continue
10827
      else
10828
        break
10829
      fi
10830
      ;;
10831 82 jeremybenn
    msvisualcpp | msvcmsys)
10832
      # This compiler won't grok `-c -o', but also, the minuso test has
10833
      # not run yet.  These depmodes are late enough in the game, and
10834
      # so weak that their functioning should not be impacted.
10835
      am__obj=conftest.${OBJEXT-o}
10836
      am__minus_obj=
10837
      ;;
10838 19 jeremybenn
    none) break ;;
10839
    esac
10840
    if depmode=$depmode \
10841 82 jeremybenn
       source=sub/conftest.c object=$am__obj \
10842 19 jeremybenn
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10843 82 jeremybenn
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10844 19 jeremybenn
         >/dev/null 2>conftest.err &&
10845
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10846
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10847 82 jeremybenn
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10848 19 jeremybenn
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10849
      # icc doesn't choke on unknown options, it will just issue warnings
10850
      # or remarks (even with -Werror).  So we grep stderr for any message
10851
      # that says an option was ignored or not supported.
10852
      # When given -MP, icc 7.0 and 7.1 complain thusly:
10853
      #   icc: Command line warning: ignoring option '-M'; no argument required
10854
      # The diagnosis changed in icc 8.0:
10855
      #   icc: Command line remark: option '-MP' not supported
10856
      if (grep 'ignoring option' conftest.err ||
10857
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10858
        am_cv_CC_dependencies_compiler_type=$depmode
10859
        break
10860
      fi
10861
    fi
10862
  done
10863
 
10864
  cd ..
10865
  rm -rf conftest.dir
10866
else
10867
  am_cv_CC_dependencies_compiler_type=none
10868
fi
10869
 
10870
fi
10871 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
10872 82 jeremybenn
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
10873 19 jeremybenn
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
10874
 
10875
 if
10876
  test "x$enable_dependency_tracking" != xno \
10877
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
10878
  am__fastdepCC_TRUE=
10879
  am__fastdepCC_FALSE='#'
10880
else
10881
  am__fastdepCC_TRUE='#'
10882
  am__fastdepCC_FALSE=
10883
fi
10884
 
10885
 
10886
 
10887 91 jeremybenn
 
10888 82 jeremybenn
ac_config_headers="$ac_config_headers config.h"
10889
 
10890
 
10891
 
10892
 
10893
# make sure we are using a recent autoconf version
10894
 
10895
 
10896
# yuck.
10897
case "$target_cpu" in
10898
or32*)  CPU_ARCH=or32;
10899
        ARCH_ISA=OR32;
10900
 
10901 346 jeremybenn
$as_echo "#define OR32_TYPES 1" >>confdefs.h
10902 82 jeremybenn
;;
10903 385 jeremybenn
 
10904 82 jeremybenn
dlx*)   CPU_ARCH=dlx;
10905
        ARCH_ISA=DLX;;
10906 385 jeremybenn
 
10907
*)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown target architecture $target_cpu: OR32 ELF assumed" >&5
10908
$as_echo "$as_me: WARNING: Unknown target architecture $target_cpu: OR32 ELF assumed" >&2;};
10909 82 jeremybenn
        CPU_ARCH=or32;
10910
        ARCH_ISA=OR32;
10911
 
10912 346 jeremybenn
$as_echo "#define OR32_TYPES 1" >>confdefs.h
10913 82 jeremybenn
;;
10914
esac
10915
 
10916
# determine endianism from target CPU name. If it has "little" in the name,
10917
# then its litte endian, otherwise its big endian (default for OR1K)
10918
case "$target_cpu" in
10919
*little*)
10920 346 jeremybenn
$as_echo "#define OR32_LITTLE_ENDIAN 1" >>confdefs.h
10921 82 jeremybenn
;;
10922
       *)
10923 346 jeremybenn
$as_echo "#define OR32_BIG_ENDIAN 1" >>confdefs.h
10924 82 jeremybenn
;;
10925
esac
10926
 
10927
 
10928
 
10929 236 jeremybenn
# Set the CFLAGS we want. We put the user flags last, so that if the user
10930
# changes the optimization level, that will take precedence.
10931
CFLAGS="-g -Wall -Werror -O2 -D$ARCH_ISA $CFLAGS"
10932 82 jeremybenn
 
10933
# By default we simply use the C compiler to build assembly code.
10934
 
10935
test "${CCAS+set}" = set || CCAS=$CC
10936
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
10937
 
10938
 
10939
 
10940
depcc="$CCAS"   am_compiler_list=
10941
 
10942 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10943 82 jeremybenn
$as_echo_n "checking dependency style of $depcc... " >&6; }
10944 346 jeremybenn
if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
10945 82 jeremybenn
  $as_echo_n "(cached) " >&6
10946 19 jeremybenn
else
10947
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10948
  # We make a subdir and do the tests there.  Otherwise we can end up
10949
  # making bogus files that we don't know about and never remove.  For
10950
  # instance it was reported that on HP-UX the gcc test will end up
10951
  # making a dummy file named `D' -- because `-MD' means `put the output
10952
  # in D'.
10953
  mkdir conftest.dir
10954
  # Copy depcomp to subdir because otherwise we won't find it if we're
10955
  # using a relative directory.
10956
  cp "$am_depcomp" conftest.dir
10957
  cd conftest.dir
10958
  # We will build objects and dependencies in a subdirectory because
10959
  # it helps to detect inapplicable dependency modes.  For instance
10960
  # both Tru64's cc and ICC support -MD to output dependencies as a
10961
  # side effect of compilation, but ICC will put the dependencies in
10962
  # the current directory while Tru64 will put them in the object
10963
  # directory.
10964
  mkdir sub
10965
 
10966 82 jeremybenn
  am_cv_CCAS_dependencies_compiler_type=none
10967 19 jeremybenn
  if test "$am_compiler_list" = ""; then
10968
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10969
  fi
10970 82 jeremybenn
  am__universal=false
10971
 
10972
 
10973 19 jeremybenn
  for depmode in $am_compiler_list; do
10974
    # Setup a source with many dependencies, because some compilers
10975
    # like to wrap large dependency lists on column 80 (with \), and
10976
    # we should not choose a depcomp mode which is confused by this.
10977
    #
10978
    # We need to recreate these files for each test, as the compiler may
10979
    # overwrite some of them when testing with obscure command lines.
10980
    # This happens at least with the AIX C compiler.
10981
    : > sub/conftest.c
10982
    for i in 1 2 3 4 5 6; do
10983
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
10984
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10985
      # Solaris 8's {/usr,}/bin/sh.
10986
      touch sub/conftst$i.h
10987
    done
10988
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10989
 
10990 82 jeremybenn
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
10991
    # mode.  It turns out that the SunPro C++ compiler does not properly
10992
    # handle `-M -o', and we need to detect this.  Also, some Intel
10993
    # versions had trouble with output in subdirs
10994
    am__obj=sub/conftest.${OBJEXT-o}
10995
    am__minus_obj="-o $am__obj"
10996 19 jeremybenn
    case $depmode in
10997 82 jeremybenn
    gcc)
10998
      # This depmode causes a compiler race in universal mode.
10999
      test "$am__universal" = false || continue
11000
      ;;
11001 19 jeremybenn
    nosideeffect)
11002
      # after this tag, mechanisms are not by side-effect, so they'll
11003
      # only be used when explicitly requested
11004
      if test "x$enable_dependency_tracking" = xyes; then
11005
        continue
11006
      else
11007
        break
11008
      fi
11009
      ;;
11010 82 jeremybenn
    msvisualcpp | msvcmsys)
11011
      # This compiler won't grok `-c -o', but also, the minuso test has
11012
      # not run yet.  These depmodes are late enough in the game, and
11013
      # so weak that their functioning should not be impacted.
11014
      am__obj=conftest.${OBJEXT-o}
11015
      am__minus_obj=
11016
      ;;
11017 19 jeremybenn
    none) break ;;
11018
    esac
11019
    if depmode=$depmode \
11020 82 jeremybenn
       source=sub/conftest.c object=$am__obj \
11021 19 jeremybenn
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11022 82 jeremybenn
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11023 19 jeremybenn
         >/dev/null 2>conftest.err &&
11024
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11025
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11026 82 jeremybenn
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11027 19 jeremybenn
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11028
      # icc doesn't choke on unknown options, it will just issue warnings
11029
      # or remarks (even with -Werror).  So we grep stderr for any message
11030
      # that says an option was ignored or not supported.
11031
      # When given -MP, icc 7.0 and 7.1 complain thusly:
11032
      #   icc: Command line warning: ignoring option '-M'; no argument required
11033
      # The diagnosis changed in icc 8.0:
11034
      #   icc: Command line remark: option '-MP' not supported
11035
      if (grep 'ignoring option' conftest.err ||
11036
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11037 82 jeremybenn
        am_cv_CCAS_dependencies_compiler_type=$depmode
11038 19 jeremybenn
        break
11039
      fi
11040
    fi
11041
  done
11042
 
11043
  cd ..
11044
  rm -rf conftest.dir
11045
else
11046 82 jeremybenn
  am_cv_CCAS_dependencies_compiler_type=none
11047 19 jeremybenn
fi
11048
 
11049
fi
11050 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11051 82 jeremybenn
$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11052
CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11053 19 jeremybenn
 
11054
 if
11055
  test "x$enable_dependency_tracking" != xno \
11056 82 jeremybenn
  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11057
  am__fastdepCCAS_TRUE=
11058
  am__fastdepCCAS_FALSE='#'
11059 19 jeremybenn
else
11060 82 jeremybenn
  am__fastdepCCAS_TRUE='#'
11061
  am__fastdepCCAS_FALSE=
11062 19 jeremybenn
fi
11063
 
11064
 
11065
 
11066
ac_ext=c
11067
ac_cpp='$CPP $CPPFLAGS'
11068
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11069
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11070
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11071
if test -n "$ac_tool_prefix"; then
11072
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11073
set dummy ${ac_tool_prefix}gcc; ac_word=$2
11074 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11075 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11076 346 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
11077 82 jeremybenn
  $as_echo_n "(cached) " >&6
11078 19 jeremybenn
else
11079
  if test -n "$CC"; then
11080
  ac_cv_prog_CC="$CC" # Let the user override the test.
11081
else
11082
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11083
for as_dir in $PATH
11084
do
11085
  IFS=$as_save_IFS
11086
  test -z "$as_dir" && as_dir=.
11087 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11088 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11089
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11090 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11091 19 jeremybenn
    break 2
11092
  fi
11093
done
11094 346 jeremybenn
  done
11095 19 jeremybenn
IFS=$as_save_IFS
11096
 
11097
fi
11098
fi
11099
CC=$ac_cv_prog_CC
11100
if test -n "$CC"; then
11101 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11102 82 jeremybenn
$as_echo "$CC" >&6; }
11103 19 jeremybenn
else
11104 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11105 82 jeremybenn
$as_echo "no" >&6; }
11106 19 jeremybenn
fi
11107
 
11108
 
11109
fi
11110
if test -z "$ac_cv_prog_CC"; then
11111
  ac_ct_CC=$CC
11112
  # Extract the first word of "gcc", so it can be a program name with args.
11113
set dummy gcc; ac_word=$2
11114 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11115 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11116 346 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11117 82 jeremybenn
  $as_echo_n "(cached) " >&6
11118 19 jeremybenn
else
11119
  if test -n "$ac_ct_CC"; then
11120
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11121
else
11122
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11123
for as_dir in $PATH
11124
do
11125
  IFS=$as_save_IFS
11126
  test -z "$as_dir" && as_dir=.
11127 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11128 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11129
    ac_cv_prog_ac_ct_CC="gcc"
11130 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11131 19 jeremybenn
    break 2
11132
  fi
11133
done
11134 346 jeremybenn
  done
11135 19 jeremybenn
IFS=$as_save_IFS
11136
 
11137
fi
11138
fi
11139
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11140
if test -n "$ac_ct_CC"; then
11141 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11142 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
11143 19 jeremybenn
else
11144 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11145 82 jeremybenn
$as_echo "no" >&6; }
11146 19 jeremybenn
fi
11147
 
11148
  if test "x$ac_ct_CC" = x; then
11149
    CC=""
11150
  else
11151
    case $cross_compiling:$ac_tool_warned in
11152
yes:)
11153 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11154 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11155 19 jeremybenn
ac_tool_warned=yes ;;
11156
esac
11157
    CC=$ac_ct_CC
11158
  fi
11159
else
11160
  CC="$ac_cv_prog_CC"
11161
fi
11162
 
11163
if test -z "$CC"; then
11164
          if test -n "$ac_tool_prefix"; then
11165
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11166
set dummy ${ac_tool_prefix}cc; ac_word=$2
11167 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11168 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11169 346 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
11170 82 jeremybenn
  $as_echo_n "(cached) " >&6
11171 19 jeremybenn
else
11172
  if test -n "$CC"; then
11173
  ac_cv_prog_CC="$CC" # Let the user override the test.
11174
else
11175
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11176
for as_dir in $PATH
11177
do
11178
  IFS=$as_save_IFS
11179
  test -z "$as_dir" && as_dir=.
11180 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11181 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11182
    ac_cv_prog_CC="${ac_tool_prefix}cc"
11183 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11184 19 jeremybenn
    break 2
11185
  fi
11186
done
11187 346 jeremybenn
  done
11188 19 jeremybenn
IFS=$as_save_IFS
11189
 
11190
fi
11191
fi
11192
CC=$ac_cv_prog_CC
11193
if test -n "$CC"; then
11194 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11195 82 jeremybenn
$as_echo "$CC" >&6; }
11196 19 jeremybenn
else
11197 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11198 82 jeremybenn
$as_echo "no" >&6; }
11199 19 jeremybenn
fi
11200
 
11201
 
11202
  fi
11203
fi
11204
if test -z "$CC"; then
11205
  # Extract the first word of "cc", so it can be a program name with args.
11206
set dummy cc; ac_word=$2
11207 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11208 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11209 346 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
11210 82 jeremybenn
  $as_echo_n "(cached) " >&6
11211 19 jeremybenn
else
11212
  if test -n "$CC"; then
11213
  ac_cv_prog_CC="$CC" # Let the user override the test.
11214
else
11215
  ac_prog_rejected=no
11216
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11217
for as_dir in $PATH
11218
do
11219
  IFS=$as_save_IFS
11220
  test -z "$as_dir" && as_dir=.
11221 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11222 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11223
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11224
       ac_prog_rejected=yes
11225
       continue
11226
     fi
11227
    ac_cv_prog_CC="cc"
11228 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11229 19 jeremybenn
    break 2
11230
  fi
11231
done
11232 346 jeremybenn
  done
11233 19 jeremybenn
IFS=$as_save_IFS
11234
 
11235
if test $ac_prog_rejected = yes; then
11236
  # We found a bogon in the path, so make sure we never use it.
11237
  set dummy $ac_cv_prog_CC
11238
  shift
11239
  if test $# != 0; then
11240
    # We chose a different compiler from the bogus one.
11241
    # However, it has the same basename, so the bogon will be chosen
11242
    # first if we set CC to just the basename; use the full file name.
11243
    shift
11244
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11245
  fi
11246
fi
11247
fi
11248
fi
11249
CC=$ac_cv_prog_CC
11250
if test -n "$CC"; then
11251 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11252 82 jeremybenn
$as_echo "$CC" >&6; }
11253 19 jeremybenn
else
11254 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11255 82 jeremybenn
$as_echo "no" >&6; }
11256 19 jeremybenn
fi
11257
 
11258
 
11259
fi
11260
if test -z "$CC"; then
11261
  if test -n "$ac_tool_prefix"; then
11262
  for ac_prog in cl.exe
11263
  do
11264
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11265
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11266 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11267 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11268 346 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
11269 82 jeremybenn
  $as_echo_n "(cached) " >&6
11270 19 jeremybenn
else
11271
  if test -n "$CC"; then
11272
  ac_cv_prog_CC="$CC" # Let the user override the test.
11273
else
11274
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11275
for as_dir in $PATH
11276
do
11277
  IFS=$as_save_IFS
11278
  test -z "$as_dir" && as_dir=.
11279 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11280 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11281
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11282 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11283 19 jeremybenn
    break 2
11284
  fi
11285
done
11286 346 jeremybenn
  done
11287 19 jeremybenn
IFS=$as_save_IFS
11288
 
11289
fi
11290
fi
11291
CC=$ac_cv_prog_CC
11292
if test -n "$CC"; then
11293 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11294 82 jeremybenn
$as_echo "$CC" >&6; }
11295 19 jeremybenn
else
11296 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11297 82 jeremybenn
$as_echo "no" >&6; }
11298 19 jeremybenn
fi
11299
 
11300
 
11301
    test -n "$CC" && break
11302
  done
11303
fi
11304
if test -z "$CC"; then
11305
  ac_ct_CC=$CC
11306
  for ac_prog in cl.exe
11307
do
11308
  # Extract the first word of "$ac_prog", so it can be a program name with args.
11309
set dummy $ac_prog; ac_word=$2
11310 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11311 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11312 346 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11313 82 jeremybenn
  $as_echo_n "(cached) " >&6
11314 19 jeremybenn
else
11315
  if test -n "$ac_ct_CC"; then
11316
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11317
else
11318
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11319
for as_dir in $PATH
11320
do
11321
  IFS=$as_save_IFS
11322
  test -z "$as_dir" && as_dir=.
11323 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11324 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11325
    ac_cv_prog_ac_ct_CC="$ac_prog"
11326 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11327 19 jeremybenn
    break 2
11328
  fi
11329
done
11330 346 jeremybenn
  done
11331 19 jeremybenn
IFS=$as_save_IFS
11332
 
11333
fi
11334
fi
11335
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11336
if test -n "$ac_ct_CC"; then
11337 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11338 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
11339 19 jeremybenn
else
11340 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11341 82 jeremybenn
$as_echo "no" >&6; }
11342 19 jeremybenn
fi
11343
 
11344
 
11345
  test -n "$ac_ct_CC" && break
11346
done
11347
 
11348
  if test "x$ac_ct_CC" = x; then
11349
    CC=""
11350
  else
11351
    case $cross_compiling:$ac_tool_warned in
11352
yes:)
11353 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11354 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11355 19 jeremybenn
ac_tool_warned=yes ;;
11356
esac
11357
    CC=$ac_ct_CC
11358
  fi
11359
fi
11360
 
11361
fi
11362
 
11363
 
11364 346 jeremybenn
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11365 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11366 346 jeremybenn
as_fn_error "no acceptable C compiler found in \$PATH
11367
See \`config.log' for more details." "$LINENO" 5; }
11368 19 jeremybenn
 
11369
# Provide some information about the compiler.
11370 346 jeremybenn
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11371 82 jeremybenn
set X $ac_compile
11372
ac_compiler=$2
11373 346 jeremybenn
for ac_option in --version -v -V -qversion; do
11374
  { { ac_try="$ac_compiler $ac_option >&5"
11375 19 jeremybenn
case "(($ac_try" in
11376
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11377
  *) ac_try_echo=$ac_try;;
11378
esac
11379 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11380
$as_echo "$ac_try_echo"; } >&5
11381
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11382 19 jeremybenn
  ac_status=$?
11383 346 jeremybenn
  if test -s conftest.err; then
11384
    sed '10a\
11385
... rest of stderr output deleted ...
11386
         10q' conftest.err >conftest.er1
11387
    cat conftest.er1 >&5
11388
  fi
11389 432 jeremybenn
  rm -f conftest.er1 conftest.err
11390 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11391
  test $ac_status = 0; }
11392
done
11393 19 jeremybenn
 
11394 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11395 82 jeremybenn
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11396 346 jeremybenn
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11397 82 jeremybenn
  $as_echo_n "(cached) " >&6
11398 19 jeremybenn
else
11399 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11400 19 jeremybenn
/* end confdefs.h.  */
11401
 
11402
int
11403
main ()
11404
{
11405
#ifndef __GNUC__
11406
       choke me
11407
#endif
11408
 
11409
  ;
11410
  return 0;
11411
}
11412
_ACEOF
11413 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
11414 19 jeremybenn
  ac_compiler_gnu=yes
11415
else
11416 346 jeremybenn
  ac_compiler_gnu=no
11417 19 jeremybenn
fi
11418
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11419
ac_cv_c_compiler_gnu=$ac_compiler_gnu
11420
 
11421
fi
11422 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11423 82 jeremybenn
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11424
if test $ac_compiler_gnu = yes; then
11425
  GCC=yes
11426
else
11427
  GCC=
11428
fi
11429 19 jeremybenn
ac_test_CFLAGS=${CFLAGS+set}
11430
ac_save_CFLAGS=$CFLAGS
11431 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11432 82 jeremybenn
$as_echo_n "checking whether $CC accepts -g... " >&6; }
11433 346 jeremybenn
if test "${ac_cv_prog_cc_g+set}" = set; then :
11434 82 jeremybenn
  $as_echo_n "(cached) " >&6
11435 19 jeremybenn
else
11436
  ac_save_c_werror_flag=$ac_c_werror_flag
11437
   ac_c_werror_flag=yes
11438
   ac_cv_prog_cc_g=no
11439
   CFLAGS="-g"
11440 346 jeremybenn
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11441 19 jeremybenn
/* end confdefs.h.  */
11442
 
11443
int
11444
main ()
11445
{
11446
 
11447
  ;
11448
  return 0;
11449
}
11450
_ACEOF
11451 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
11452 19 jeremybenn
  ac_cv_prog_cc_g=yes
11453
else
11454 346 jeremybenn
  CFLAGS=""
11455
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11456 19 jeremybenn
/* end confdefs.h.  */
11457
 
11458
int
11459
main ()
11460
{
11461
 
11462
  ;
11463
  return 0;
11464
}
11465
_ACEOF
11466 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
11467
 
11468 236 jeremybenn
else
11469 346 jeremybenn
  ac_c_werror_flag=$ac_save_c_werror_flag
11470 19 jeremybenn
         CFLAGS="-g"
11471 346 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11472 19 jeremybenn
/* end confdefs.h.  */
11473
 
11474
int
11475
main ()
11476
{
11477
 
11478
  ;
11479
  return 0;
11480
}
11481
_ACEOF
11482 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
11483 19 jeremybenn
  ac_cv_prog_cc_g=yes
11484
fi
11485
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11486
fi
11487
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11488
fi
11489
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11490
   ac_c_werror_flag=$ac_save_c_werror_flag
11491
fi
11492 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11493 82 jeremybenn
$as_echo "$ac_cv_prog_cc_g" >&6; }
11494 19 jeremybenn
if test "$ac_test_CFLAGS" = set; then
11495
  CFLAGS=$ac_save_CFLAGS
11496
elif test $ac_cv_prog_cc_g = yes; then
11497
  if test "$GCC" = yes; then
11498
    CFLAGS="-g -O2"
11499
  else
11500
    CFLAGS="-g"
11501
  fi
11502
else
11503
  if test "$GCC" = yes; then
11504
    CFLAGS="-O2"
11505
  else
11506
    CFLAGS=
11507
  fi
11508
fi
11509 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11510 82 jeremybenn
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11511 346 jeremybenn
if test "${ac_cv_prog_cc_c89+set}" = set; then :
11512 82 jeremybenn
  $as_echo_n "(cached) " >&6
11513 19 jeremybenn
else
11514
  ac_cv_prog_cc_c89=no
11515
ac_save_CC=$CC
11516 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11517 19 jeremybenn
/* end confdefs.h.  */
11518
#include 
11519
#include 
11520
#include 
11521
#include 
11522
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11523
struct buf { int x; };
11524
FILE * (*rcsopen) (struct buf *, struct stat *, int);
11525
static char *e (p, i)
11526
     char **p;
11527
     int i;
11528
{
11529
  return p[i];
11530
}
11531
static char *f (char * (*g) (char **, int), char **p, ...)
11532
{
11533
  char *s;
11534
  va_list v;
11535
  va_start (v,p);
11536
  s = g (p, va_arg (v,int));
11537
  va_end (v);
11538
  return s;
11539
}
11540
 
11541
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11542
   function prototypes and stuff, but not '\xHH' hex character constants.
11543
   These don't provoke an error unfortunately, instead are silently treated
11544
   as 'x'.  The following induces an error, until -std is added to get
11545
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11546
   array size at least.  It's necessary to write '\x00'==0 to get something
11547
   that's true only with -std.  */
11548
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11549
 
11550
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11551
   inside strings and character constants.  */
11552
#define FOO(x) 'x'
11553
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11554
 
11555
int test (int i, double x);
11556
struct s1 {int (*f) (int a);};
11557
struct s2 {int (*f) (double a);};
11558
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11559
int argc;
11560
char **argv;
11561
int
11562
main ()
11563
{
11564
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11565
  ;
11566
  return 0;
11567
}
11568
_ACEOF
11569
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11570
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11571
do
11572
  CC="$ac_save_CC $ac_arg"
11573 346 jeremybenn
  if ac_fn_c_try_compile "$LINENO"; then :
11574 19 jeremybenn
  ac_cv_prog_cc_c89=$ac_arg
11575
fi
11576
rm -f core conftest.err conftest.$ac_objext
11577
  test "x$ac_cv_prog_cc_c89" != "xno" && break
11578
done
11579
rm -f conftest.$ac_ext
11580
CC=$ac_save_CC
11581
 
11582
fi
11583
# AC_CACHE_VAL
11584
case "x$ac_cv_prog_cc_c89" in
11585
  x)
11586 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11587 82 jeremybenn
$as_echo "none needed" >&6; } ;;
11588 19 jeremybenn
  xno)
11589 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11590 82 jeremybenn
$as_echo "unsupported" >&6; } ;;
11591 19 jeremybenn
  *)
11592
    CC="$CC $ac_cv_prog_cc_c89"
11593 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11594 82 jeremybenn
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11595 19 jeremybenn
esac
11596 346 jeremybenn
if test "x$ac_cv_prog_cc_c89" != xno; then :
11597 19 jeremybenn
 
11598 346 jeremybenn
fi
11599 19 jeremybenn
 
11600
ac_ext=c
11601
ac_cpp='$CPP $CPPFLAGS'
11602
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11603
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11604
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11605
 
11606
if test "x$CC" != xcc; then
11607 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11608 82 jeremybenn
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11609 19 jeremybenn
else
11610 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11611 82 jeremybenn
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11612 19 jeremybenn
fi
11613 82 jeremybenn
set dummy $CC; ac_cc=`$as_echo "$2" |
11614 19 jeremybenn
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11615 346 jeremybenn
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
11616 82 jeremybenn
  $as_echo_n "(cached) " >&6
11617 19 jeremybenn
else
11618 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11619 19 jeremybenn
/* end confdefs.h.  */
11620
 
11621
int
11622
main ()
11623
{
11624
 
11625
  ;
11626
  return 0;
11627
}
11628
_ACEOF
11629
# Make sure it works both with $CC and with simple cc.
11630
# We do the test twice because some compilers refuse to overwrite an
11631
# existing .o file with -o, though they will create one.
11632
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11633
rm -f conftest2.*
11634 346 jeremybenn
if { { case "(($ac_try" in
11635 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11636
  *) ac_try_echo=$ac_try;;
11637
esac
11638 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11639
$as_echo "$ac_try_echo"; } >&5
11640 19 jeremybenn
  (eval "$ac_try") 2>&5
11641
  ac_status=$?
11642 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11643
  test $ac_status = 0; } &&
11644
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
11645 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11646
  *) ac_try_echo=$ac_try;;
11647
esac
11648 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11649
$as_echo "$ac_try_echo"; } >&5
11650 19 jeremybenn
  (eval "$ac_try") 2>&5
11651
  ac_status=$?
11652 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11653
  test $ac_status = 0; };
11654 19 jeremybenn
then
11655
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11656
  if test "x$CC" != xcc; then
11657
    # Test first that cc exists at all.
11658
    if { ac_try='cc -c conftest.$ac_ext >&5'
11659 346 jeremybenn
  { { case "(($ac_try" in
11660 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11661
  *) ac_try_echo=$ac_try;;
11662
esac
11663 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11664
$as_echo "$ac_try_echo"; } >&5
11665 19 jeremybenn
  (eval "$ac_try") 2>&5
11666
  ac_status=$?
11667 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11668
  test $ac_status = 0; }; }; then
11669 19 jeremybenn
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11670
      rm -f conftest2.*
11671 346 jeremybenn
      if { { case "(($ac_try" in
11672 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11673
  *) ac_try_echo=$ac_try;;
11674
esac
11675 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11676
$as_echo "$ac_try_echo"; } >&5
11677 19 jeremybenn
  (eval "$ac_try") 2>&5
11678
  ac_status=$?
11679 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11680
  test $ac_status = 0; } &&
11681
         test -f conftest2.$ac_objext && { { case "(($ac_try" in
11682 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11683
  *) ac_try_echo=$ac_try;;
11684
esac
11685 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11686
$as_echo "$ac_try_echo"; } >&5
11687 19 jeremybenn
  (eval "$ac_try") 2>&5
11688
  ac_status=$?
11689 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11690
  test $ac_status = 0; };
11691 19 jeremybenn
      then
11692
        # cc works too.
11693
        :
11694
      else
11695
        # cc exists but doesn't like -o.
11696
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
11697
      fi
11698
    fi
11699
  fi
11700
else
11701
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
11702
fi
11703
rm -f core conftest*
11704
 
11705
fi
11706
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11707 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11708 82 jeremybenn
$as_echo "yes" >&6; }
11709 19 jeremybenn
else
11710 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11711 82 jeremybenn
$as_echo "no" >&6; }
11712 19 jeremybenn
 
11713 346 jeremybenn
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11714 19 jeremybenn
 
11715
fi
11716
 
11717
# FIXME: we rely on the cache variable name because
11718
# there is no other way.
11719
set dummy $CC
11720 82 jeremybenn
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11721
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11722
if test "$am_t" != yes; then
11723 19 jeremybenn
   # Losing compiler, so override with the script.
11724
   # FIXME: It is wrong to rewrite CC.
11725
   # But if we don't then we get into trouble of one sort or another.
11726
   # A longer-term fix would be to have automake use am__CC in this case,
11727
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11728
   CC="$am_aux_dir/compile $CC"
11729
fi
11730
 
11731
 
11732
 
11733 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11734 82 jeremybenn
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11735
set x ${MAKE-make}
11736
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11737 346 jeremybenn
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
11738 82 jeremybenn
  $as_echo_n "(cached) " >&6
11739 19 jeremybenn
else
11740
  cat >conftest.make <<\_ACEOF
11741
SHELL = /bin/sh
11742
all:
11743
        @echo '@@@%%%=$(MAKE)=@@@%%%'
11744
_ACEOF
11745
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11746
case `${MAKE-make} -f conftest.make 2>/dev/null` in
11747
  *@@@%%%=?*=@@@%%%*)
11748
    eval ac_cv_prog_make_${ac_make}_set=yes;;
11749
  *)
11750
    eval ac_cv_prog_make_${ac_make}_set=no;;
11751
esac
11752
rm -f conftest.make
11753
fi
11754
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11755 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11756 82 jeremybenn
$as_echo "yes" >&6; }
11757 19 jeremybenn
  SET_MAKE=
11758
else
11759 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11760 82 jeremybenn
$as_echo "no" >&6; }
11761 19 jeremybenn
  SET_MAKE="MAKE=${MAKE-make}"
11762
fi
11763
 
11764
 
11765 82 jeremybenn
 
11766 19 jeremybenn
# Extract the first word of "ar", so it can be a program name with args.
11767
set dummy ar; ac_word=$2
11768 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11769 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11770 346 jeremybenn
if test "${ac_cv_prog_AR+set}" = set; then :
11771 82 jeremybenn
  $as_echo_n "(cached) " >&6
11772 19 jeremybenn
else
11773
  if test -n "$AR"; then
11774
  ac_cv_prog_AR="$AR" # Let the user override the test.
11775
else
11776
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11777
for as_dir in $PATH
11778
do
11779
  IFS=$as_save_IFS
11780
  test -z "$as_dir" && as_dir=.
11781 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11782 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11783
    ac_cv_prog_AR="ar"
11784 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11785 19 jeremybenn
    break 2
11786
  fi
11787
done
11788 346 jeremybenn
  done
11789 19 jeremybenn
IFS=$as_save_IFS
11790
 
11791
fi
11792
fi
11793
AR=$ac_cv_prog_AR
11794
if test -n "$AR"; then
11795 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11796 82 jeremybenn
$as_echo "$AR" >&6; }
11797 19 jeremybenn
else
11798 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799 82 jeremybenn
$as_echo "no" >&6; }
11800 19 jeremybenn
fi
11801
 
11802
 
11803
 
11804
# Set default for ARFLAGS, since autoconf does not have a macro for it.
11805
# This allows people to set it when running configure or make
11806
test -n "$ARFLAGS" || ARFLAGS="cr"
11807
 
11808 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11809 82 jeremybenn
$as_echo_n "checking return type of signal handlers... " >&6; }
11810 346 jeremybenn
if test "${ac_cv_type_signal+set}" = set; then :
11811 82 jeremybenn
  $as_echo_n "(cached) " >&6
11812 19 jeremybenn
else
11813 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11814 19 jeremybenn
/* end confdefs.h.  */
11815
#include 
11816
#include 
11817
 
11818
int
11819
main ()
11820
{
11821
return *(signal (0, 0)) (0) == 1;
11822
  ;
11823
  return 0;
11824
}
11825
_ACEOF
11826 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
11827 19 jeremybenn
  ac_cv_type_signal=int
11828
else
11829 346 jeremybenn
  ac_cv_type_signal=void
11830 19 jeremybenn
fi
11831
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11832
fi
11833 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11834 82 jeremybenn
$as_echo "$ac_cv_type_signal" >&6; }
11835 19 jeremybenn
 
11836
cat >>confdefs.h <<_ACEOF
11837
#define RETSIGTYPE $ac_cv_type_signal
11838
_ACEOF
11839
 
11840
 
11841 236 jeremybenn
for ac_header in unistd.h stdlib.h stdarg.h string.h strings.h      \
11842 82 jeremybenn
                 sys/ptem.h sys/pte.h sys/stream.h sys/stropts.h sys/select.h \
11843
                 termcap.h termios.h termio.h sys/file.h locale.h getopt.h    \
11844 118 jeremybenn
                 net/ethernet.h sys/ethernet.h malloc.h inttypes.h libintl.h  \
11845
                 limits.h
11846 346 jeremybenn
do :
11847
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11848
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11849
eval as_val=\$$as_ac_Header
11850
   if test "x$as_val" = x""yes; then :
11851 82 jeremybenn
  cat >>confdefs.h <<_ACEOF
11852
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11853 19 jeremybenn
_ACEOF
11854
 
11855
fi
11856
 
11857
done
11858
 
11859
for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat
11860 346 jeremybenn
do :
11861
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11862
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11863
eval as_val=\$$as_ac_var
11864
   if test "x$as_val" = x""yes; then :
11865 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
11866 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11867 19 jeremybenn
_ACEOF
11868
 
11869
fi
11870
done
11871
 
11872 82 jeremybenn
for ac_func in grantpt unlockpt ptsname on_exit
11873 346 jeremybenn
do :
11874
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11875
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11876
eval as_val=\$$as_ac_var
11877
   if test "x$as_val" = x""yes; then :
11878 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
11879 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11880 19 jeremybenn
_ACEOF
11881
 
11882
fi
11883
done
11884
 
11885
for ac_func in basename
11886 346 jeremybenn
do :
11887
  ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
11888
if test "x$ac_cv_func_basename" = x""yes; then :
11889 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
11890 346 jeremybenn
#define HAVE_BASENAME 1
11891 19 jeremybenn
_ACEOF
11892
 
11893
fi
11894
done
11895
 
11896 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
11897 82 jeremybenn
$as_echo_n "checking for working strcoll... " >&6; }
11898 346 jeremybenn
if test "${ac_cv_func_strcoll_works+set}" = set; then :
11899 82 jeremybenn
  $as_echo_n "(cached) " >&6
11900 19 jeremybenn
else
11901 346 jeremybenn
  if test "$cross_compiling" = yes; then :
11902 19 jeremybenn
  ac_cv_func_strcoll_works=no
11903
else
11904 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11905 19 jeremybenn
/* end confdefs.h.  */
11906
$ac_includes_default
11907
int
11908
main ()
11909
{
11910
return (strcoll ("abc", "def") >= 0 ||
11911
         strcoll ("ABC", "DEF") >= 0 ||
11912
         strcoll ("123", "456") >= 0)
11913
  ;
11914
  return 0;
11915
}
11916
_ACEOF
11917 346 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
11918 19 jeremybenn
  ac_cv_func_strcoll_works=yes
11919
else
11920 346 jeremybenn
  ac_cv_func_strcoll_works=no
11921 19 jeremybenn
fi
11922 346 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11923
  conftest.$ac_objext conftest.beam conftest.$ac_ext
11924 19 jeremybenn
fi
11925
 
11926
fi
11927 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
11928 82 jeremybenn
$as_echo "$ac_cv_func_strcoll_works" >&6; }
11929 19 jeremybenn
if test $ac_cv_func_strcoll_works = yes; then
11930
 
11931 346 jeremybenn
$as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
11932 19 jeremybenn
 
11933
fi
11934
 
11935 346 jeremybenn
ac_fn_c_check_decl "$LINENO" "I_PUSH" "ac_cv_have_decl_I_PUSH" "\
11936 82 jeremybenn
               #include 
11937 346 jeremybenn
"
11938
if test "x$ac_cv_have_decl_I_PUSH" = x""yes; then :
11939
  ac_have_decl=1
11940 19 jeremybenn
else
11941 346 jeremybenn
  ac_have_decl=0
11942 19 jeremybenn
fi
11943
 
11944 82 jeremybenn
cat >>confdefs.h <<_ACEOF
11945 346 jeremybenn
#define HAVE_DECL_I_PUSH $ac_have_decl
11946 19 jeremybenn
_ACEOF
11947 346 jeremybenn
ac_fn_c_check_decl "$LINENO" "rl_event_hook" "ac_cv_have_decl_rl_event_hook" "\
11948 82 jeremybenn
               #include 
11949 346 jeremybenn
"
11950
if test "x$ac_cv_have_decl_rl_event_hook" = x""yes; then :
11951
  ac_have_decl=1
11952 19 jeremybenn
else
11953 346 jeremybenn
  ac_have_decl=0
11954 19 jeremybenn
fi
11955
 
11956 82 jeremybenn
cat >>confdefs.h <<_ACEOF
11957 346 jeremybenn
#define HAVE_DECL_RL_EVENT_HOOK $ac_have_decl
11958 19 jeremybenn
_ACEOF
11959
 
11960 346 jeremybenn
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11961 82 jeremybenn
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11962 346 jeremybenn
if test "${ac_cv_c_bigendian+set}" = set; then :
11963 82 jeremybenn
  $as_echo_n "(cached) " >&6
11964 19 jeremybenn
else
11965 82 jeremybenn
  ac_cv_c_bigendian=unknown
11966
    # See if we're dealing with a universal compiler.
11967 346 jeremybenn
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11968 19 jeremybenn
/* end confdefs.h.  */
11969 82 jeremybenn
#ifndef __APPLE_CC__
11970
               not a universal capable compiler
11971
             #endif
11972
             typedef int dummy;
11973
 
11974 19 jeremybenn
_ACEOF
11975 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
11976 82 jeremybenn
 
11977
        # Check for potential -arch flags.  It is not universal unless
11978 346 jeremybenn
        # there are at least two -arch flags with different values.
11979
        ac_arch=
11980
        ac_prev=
11981
        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11982
         if test -n "$ac_prev"; then
11983
           case $ac_word in
11984
             i?86 | x86_64 | ppc | ppc64)
11985
               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11986
                 ac_arch=$ac_word
11987
               else
11988
                 ac_cv_c_bigendian=universal
11989
                 break
11990
               fi
11991
               ;;
11992
           esac
11993
           ac_prev=
11994
         elif test "x$ac_word" = "x-arch"; then
11995
           ac_prev=arch
11996
         fi
11997
       done
11998 19 jeremybenn
fi
11999
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12000 82 jeremybenn
    if test $ac_cv_c_bigendian = unknown; then
12001
      # See if sys/param.h defines the BYTE_ORDER macro.
12002 346 jeremybenn
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12003 19 jeremybenn
/* end confdefs.h.  */
12004 82 jeremybenn
#include 
12005
             #include 
12006
 
12007
int
12008
main ()
12009
{
12010
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12011
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12012
                     && LITTLE_ENDIAN)
12013
              bogus endian macros
12014
             #endif
12015
 
12016
  ;
12017
  return 0;
12018
}
12019 19 jeremybenn
_ACEOF
12020 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12021 82 jeremybenn
  # It does; now see whether it defined to BIG_ENDIAN or not.
12022 346 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12023 19 jeremybenn
/* end confdefs.h.  */
12024 82 jeremybenn
#include 
12025
                #include 
12026
 
12027 19 jeremybenn
int
12028
main ()
12029
{
12030 82 jeremybenn
#if BYTE_ORDER != BIG_ENDIAN
12031
                 not big endian
12032
                #endif
12033 19 jeremybenn
 
12034
  ;
12035
  return 0;
12036
}
12037
_ACEOF
12038 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12039 82 jeremybenn
  ac_cv_c_bigendian=yes
12040 19 jeremybenn
else
12041 346 jeremybenn
  ac_cv_c_bigendian=no
12042 19 jeremybenn
fi
12043
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12044
fi
12045 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12046
    fi
12047
    if test $ac_cv_c_bigendian = unknown; then
12048
      # See if  defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12049 346 jeremybenn
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12050 19 jeremybenn
/* end confdefs.h.  */
12051 82 jeremybenn
#include 
12052 19 jeremybenn
 
12053
int
12054
main ()
12055
{
12056 82 jeremybenn
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12057
              bogus endian macros
12058
             #endif
12059 19 jeremybenn
 
12060
  ;
12061
  return 0;
12062
}
12063
_ACEOF
12064 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12065 82 jeremybenn
  # It does; now see whether it defined to _BIG_ENDIAN or not.
12066 346 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12067 19 jeremybenn
/* end confdefs.h.  */
12068 82 jeremybenn
#include 
12069 19 jeremybenn
 
12070
int
12071
main ()
12072
{
12073 82 jeremybenn
#ifndef _BIG_ENDIAN
12074
                 not big endian
12075
                #endif
12076 19 jeremybenn
 
12077
  ;
12078
  return 0;
12079
}
12080
_ACEOF
12081 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12082 19 jeremybenn
  ac_cv_c_bigendian=yes
12083
else
12084 346 jeremybenn
  ac_cv_c_bigendian=no
12085 19 jeremybenn
fi
12086
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12087 82 jeremybenn
fi
12088
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12089
    fi
12090
    if test $ac_cv_c_bigendian = unknown; then
12091
      # Compile a test program.
12092 346 jeremybenn
      if test "$cross_compiling" = yes; then :
12093 82 jeremybenn
  # Try to guess by grepping values from an object file.
12094 346 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12095 19 jeremybenn
/* end confdefs.h.  */
12096 82 jeremybenn
short int ascii_mm[] =
12097
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12098
                short int ascii_ii[] =
12099
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12100
                int use_ascii (int i) {
12101
                  return ascii_mm[i] + ascii_ii[i];
12102
                }
12103
                short int ebcdic_ii[] =
12104
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12105
                short int ebcdic_mm[] =
12106
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12107
                int use_ebcdic (int i) {
12108
                  return ebcdic_mm[i] + ebcdic_ii[i];
12109
                }
12110
                extern int foo;
12111
 
12112 19 jeremybenn
int
12113
main ()
12114
{
12115 82 jeremybenn
return use_ascii (foo) == use_ebcdic (foo);
12116 19 jeremybenn
  ;
12117
  return 0;
12118
}
12119
_ACEOF
12120 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12121 82 jeremybenn
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12122
              ac_cv_c_bigendian=yes
12123
            fi
12124
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12125
              if test "$ac_cv_c_bigendian" = unknown; then
12126
                ac_cv_c_bigendian=no
12127
              else
12128
                # finding both strings is unlikely to happen, but who knows?
12129
                ac_cv_c_bigendian=unknown
12130
              fi
12131
            fi
12132 19 jeremybenn
fi
12133
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12134
else
12135 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12136 19 jeremybenn
/* end confdefs.h.  */
12137
$ac_includes_default
12138
int
12139
main ()
12140
{
12141
 
12142 82 jeremybenn
             /* Are we little or big endian?  From Harbison&Steele.  */
12143
             union
12144
             {
12145
               long int l;
12146
               char c[sizeof (long int)];
12147
             } u;
12148
             u.l = 1;
12149
             return u.c[sizeof (long int) - 1] == 1;
12150 19 jeremybenn
 
12151
  ;
12152
  return 0;
12153
}
12154
_ACEOF
12155 346 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
12156 19 jeremybenn
  ac_cv_c_bigendian=no
12157
else
12158 346 jeremybenn
  ac_cv_c_bigendian=yes
12159 19 jeremybenn
fi
12160 346 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12161
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12162 19 jeremybenn
fi
12163
 
12164 82 jeremybenn
    fi
12165 19 jeremybenn
fi
12166 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12167 82 jeremybenn
$as_echo "$ac_cv_c_bigendian" >&6; }
12168
 case $ac_cv_c_bigendian in #(
12169
   yes)
12170 346 jeremybenn
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12171 82 jeremybenn
;; #(
12172
   no)
12173
      ;; #(
12174
   universal)
12175 19 jeremybenn
 
12176 346 jeremybenn
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12177 82 jeremybenn
 
12178
     ;; #(
12179
   *)
12180 346 jeremybenn
     as_fn_error "unknown endianness
12181
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12182 82 jeremybenn
 esac
12183
 
12184
 
12185
# The test for strndup, strcasecmp and isblank fails on modern machines. I
12186
# think it's because GCC 4 does not like the way autoconf overrides the built
12187
# in type declaration. So we must check for them by steam.
12188 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strndup" >&5
12189 82 jeremybenn
$as_echo_n "checking for strndup... " >&6; }
12190 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12191 82 jeremybenn
/* end confdefs.h.  */
12192
#ifdef HAVE_STRING_H
12193
                                  #include 
12194
                                  #else
12195
                                  char *strndup (const char *s,
12196
                                                 size_t      n);
12197
                                  #endif
12198
int
12199
main ()
12200
{
12201
\
12202
                                const char *s = "test";
12203
                                  char       *t;
12204
                                  t = strndup (s, 3);
12205
  ;
12206
  return 0;
12207
}
12208
_ACEOF
12209 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
12210 82 jeremybenn
  \
12211
 
12212 346 jeremybenn
$as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
12213 82 jeremybenn
 \
12214 346 jeremybenn
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12215 82 jeremybenn
$as_echo "yes" >&6; }
12216
else
12217 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12218 82 jeremybenn
$as_echo "no" >&6; }
12219 19 jeremybenn
fi
12220 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
12221
    conftest$ac_exeext conftest.$ac_ext
12222 19 jeremybenn
 
12223 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp" >&5
12224 82 jeremybenn
$as_echo_n "checking for strcasecmp... " >&6; }
12225 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12226 82 jeremybenn
/* end confdefs.h.  */
12227
#ifdef HAVE_STRINGS_H
12228
                                  #include 
12229
                                  #else
12230
                                  int strcasecmp (const char *s1,
12231
                                                  const char *s2);
12232
                                  #endif
12233
int
12234
main ()
12235
{
12236
\
12237
                                const char *s = "test";
12238
                                  const char *t = "TEST";
12239
                                  int         res;
12240
                                  res = strcasecmp (s, t);
12241
  ;
12242
  return 0;
12243
}
12244
_ACEOF
12245 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
12246 82 jeremybenn
  \
12247
 
12248 346 jeremybenn
$as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
12249 82 jeremybenn
 \
12250 346 jeremybenn
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12251 82 jeremybenn
$as_echo "yes" >&6; }
12252
else
12253 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12254 82 jeremybenn
$as_echo "no" >&6; }
12255
fi
12256 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
12257
    conftest$ac_exeext conftest.$ac_ext
12258 82 jeremybenn
 
12259 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isblank" >&5
12260 82 jeremybenn
$as_echo_n "checking for isblank... " >&6; }
12261 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12262 82 jeremybenn
/* end confdefs.h.  */
12263
#ifdef HAVE_CTYPE_H
12264
                                  #include 
12265
                                  #else
12266
                                  int isblank (int  c);
12267
                                  #endif
12268
int
12269
main ()
12270
{
12271
\
12272
                                return isblank ('x');
12273
  ;
12274
  return 0;
12275
}
12276
_ACEOF
12277 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
12278 82 jeremybenn
  \
12279 19 jeremybenn
 
12280 346 jeremybenn
$as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
12281 82 jeremybenn
 \
12282 346 jeremybenn
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12283 82 jeremybenn
$as_echo "yes" >&6; }
12284
else
12285 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12286 82 jeremybenn
$as_echo "no" >&6; }
12287
fi
12288 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
12289
    conftest$ac_exeext conftest.$ac_ext
12290 82 jeremybenn
 
12291 19 jeremybenn
# Checks for typedefs, structures, and compiler characteristics (for argtable2)
12292 346 jeremybenn
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12293
if test "x$ac_cv_type_size_t" = x""yes; then :
12294 19 jeremybenn
 
12295
else
12296
 
12297
cat >>confdefs.h <<_ACEOF
12298
#define size_t unsigned int
12299
_ACEOF
12300
 
12301
fi
12302
 
12303 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12304 82 jeremybenn
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12305 346 jeremybenn
if test "${ac_cv_struct_tm+set}" = set; then :
12306 82 jeremybenn
  $as_echo_n "(cached) " >&6
12307 19 jeremybenn
else
12308 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12309 19 jeremybenn
/* end confdefs.h.  */
12310
#include 
12311
#include 
12312
 
12313
int
12314
main ()
12315
{
12316
struct tm tm;
12317
                                     int *p = &tm.tm_sec;
12318 82 jeremybenn
                                     return !p;
12319 19 jeremybenn
  ;
12320
  return 0;
12321
}
12322
_ACEOF
12323 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12324 19 jeremybenn
  ac_cv_struct_tm=time.h
12325
else
12326 346 jeremybenn
  ac_cv_struct_tm=sys/time.h
12327 19 jeremybenn
fi
12328
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12329
fi
12330 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12331 82 jeremybenn
$as_echo "$ac_cv_struct_tm" >&6; }
12332 19 jeremybenn
if test $ac_cv_struct_tm = sys/time.h; then
12333
 
12334 346 jeremybenn
$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12335 19 jeremybenn
 
12336
fi
12337
 
12338
 
12339
# Checks for library functions (for argtable2).
12340
for ac_header in stdlib.h
12341 346 jeremybenn
do :
12342
  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12343
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
12344 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12345 346 jeremybenn
#define HAVE_STDLIB_H 1
12346 19 jeremybenn
_ACEOF
12347
 
12348
fi
12349
 
12350
done
12351
 
12352 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12353 82 jeremybenn
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12354 346 jeremybenn
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
12355 82 jeremybenn
  $as_echo_n "(cached) " >&6
12356 19 jeremybenn
else
12357 346 jeremybenn
  if test "$cross_compiling" = yes; then :
12358 19 jeremybenn
  ac_cv_func_malloc_0_nonnull=no
12359
else
12360 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12361 19 jeremybenn
/* end confdefs.h.  */
12362
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
12363
# include 
12364
#else
12365
char *malloc ();
12366
#endif
12367
 
12368
int
12369
main ()
12370
{
12371
return ! malloc (0);
12372
  ;
12373
  return 0;
12374
}
12375
_ACEOF
12376 346 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
12377 19 jeremybenn
  ac_cv_func_malloc_0_nonnull=yes
12378
else
12379 346 jeremybenn
  ac_cv_func_malloc_0_nonnull=no
12380 19 jeremybenn
fi
12381 346 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12382
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12383 19 jeremybenn
fi
12384
 
12385
fi
12386 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12387 82 jeremybenn
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12388 346 jeremybenn
if test $ac_cv_func_malloc_0_nonnull = yes; then :
12389 19 jeremybenn
 
12390 346 jeremybenn
$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
12391 19 jeremybenn
 
12392
else
12393 346 jeremybenn
  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
12394 19 jeremybenn
 
12395
   case " $LIBOBJS " in
12396
  *" malloc.$ac_objext "* ) ;;
12397
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
12398
 ;;
12399
esac
12400
 
12401
 
12402 346 jeremybenn
$as_echo "#define malloc rpl_malloc" >>confdefs.h
12403 19 jeremybenn
 
12404
fi
12405
 
12406
 
12407
for ac_func in strftime
12408 346 jeremybenn
do :
12409
  ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12410
if test "x$ac_cv_func_strftime" = x""yes; then :
12411 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12412 346 jeremybenn
#define HAVE_STRFTIME 1
12413 19 jeremybenn
_ACEOF
12414
 
12415
else
12416
  # strftime is in -lintl on SCO UNIX.
12417 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12418 82 jeremybenn
$as_echo_n "checking for strftime in -lintl... " >&6; }
12419 346 jeremybenn
if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12420 82 jeremybenn
  $as_echo_n "(cached) " >&6
12421 19 jeremybenn
else
12422
  ac_check_lib_save_LIBS=$LIBS
12423
LIBS="-lintl  $LIBS"
12424 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12425 19 jeremybenn
/* end confdefs.h.  */
12426
 
12427
/* Override any GCC internal prototype to avoid an error.
12428
   Use char because int might match the return type of a GCC
12429
   builtin and then its argument prototype would still apply.  */
12430
#ifdef __cplusplus
12431
extern "C"
12432
#endif
12433
char strftime ();
12434
int
12435
main ()
12436
{
12437
return strftime ();
12438
  ;
12439
  return 0;
12440
}
12441
_ACEOF
12442 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
12443 19 jeremybenn
  ac_cv_lib_intl_strftime=yes
12444
else
12445 346 jeremybenn
  ac_cv_lib_intl_strftime=no
12446 19 jeremybenn
fi
12447 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
12448
    conftest$ac_exeext conftest.$ac_ext
12449 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
12450
fi
12451 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12452 82 jeremybenn
$as_echo "$ac_cv_lib_intl_strftime" >&6; }
12453 346 jeremybenn
if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
12454
  $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12455 19 jeremybenn
 
12456
LIBS="-lintl $LIBS"
12457
fi
12458
 
12459
fi
12460
done
12461
 
12462 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
12463 82 jeremybenn
$as_echo_n "checking for working strtod... " >&6; }
12464 346 jeremybenn
if test "${ac_cv_func_strtod+set}" = set; then :
12465 82 jeremybenn
  $as_echo_n "(cached) " >&6
12466 19 jeremybenn
else
12467 346 jeremybenn
  if test "$cross_compiling" = yes; then :
12468 19 jeremybenn
  ac_cv_func_strtod=no
12469
else
12470 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12471 19 jeremybenn
/* end confdefs.h.  */
12472
 
12473
$ac_includes_default
12474
#ifndef strtod
12475
double strtod ();
12476
#endif
12477
int
12478
main()
12479
{
12480
  {
12481
    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
12482
    char *string = " +69";
12483
    char *term;
12484
    double value;
12485
    value = strtod (string, &term);
12486
    if (value != 69 || term != (string + 4))
12487
      return 1;
12488
  }
12489
 
12490
  {
12491
    /* Under Solaris 2.4, strtod returns the wrong value for the
12492
       terminating character under some conditions.  */
12493
    char *string = "NaN";
12494
    char *term;
12495
    strtod (string, &term);
12496
    if (term != string && *(term - 1) == 0)
12497
      return 1;
12498
  }
12499
  return 0;
12500
}
12501
 
12502
_ACEOF
12503 346 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
12504 19 jeremybenn
  ac_cv_func_strtod=yes
12505
else
12506 346 jeremybenn
  ac_cv_func_strtod=no
12507 19 jeremybenn
fi
12508 346 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12509
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12510 19 jeremybenn
fi
12511
 
12512
fi
12513 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
12514 82 jeremybenn
$as_echo "$ac_cv_func_strtod" >&6; }
12515 19 jeremybenn
if test $ac_cv_func_strtod = no; then
12516
  case " $LIBOBJS " in
12517
  *" strtod.$ac_objext "* ) ;;
12518
  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
12519
 ;;
12520
esac
12521
 
12522 346 jeremybenn
ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
12523
if test "x$ac_cv_func_pow" = x""yes; then :
12524 19 jeremybenn
 
12525
fi
12526
 
12527
if test $ac_cv_func_pow = no; then
12528 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12529 82 jeremybenn
$as_echo_n "checking for pow in -lm... " >&6; }
12530 346 jeremybenn
if test "${ac_cv_lib_m_pow+set}" = set; then :
12531 82 jeremybenn
  $as_echo_n "(cached) " >&6
12532 19 jeremybenn
else
12533
  ac_check_lib_save_LIBS=$LIBS
12534
LIBS="-lm  $LIBS"
12535 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12536 19 jeremybenn
/* end confdefs.h.  */
12537
 
12538
/* Override any GCC internal prototype to avoid an error.
12539
   Use char because int might match the return type of a GCC
12540
   builtin and then its argument prototype would still apply.  */
12541
#ifdef __cplusplus
12542
extern "C"
12543
#endif
12544
char pow ();
12545
int
12546
main ()
12547
{
12548
return pow ();
12549
  ;
12550
  return 0;
12551
}
12552
_ACEOF
12553 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
12554 19 jeremybenn
  ac_cv_lib_m_pow=yes
12555
else
12556 346 jeremybenn
  ac_cv_lib_m_pow=no
12557 19 jeremybenn
fi
12558 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
12559
    conftest$ac_exeext conftest.$ac_ext
12560 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
12561
fi
12562 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12563 82 jeremybenn
$as_echo "$ac_cv_lib_m_pow" >&6; }
12564 346 jeremybenn
if test "x$ac_cv_lib_m_pow" = x""yes; then :
12565 19 jeremybenn
  POW_LIB=-lm
12566
else
12567 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
12568 82 jeremybenn
$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12569 19 jeremybenn
fi
12570
 
12571
fi
12572
 
12573
fi
12574
 
12575
for ac_func in bzero strchr strcspn strrchr strtol
12576 346 jeremybenn
do :
12577
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12578
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12579
eval as_val=\$$as_ac_var
12580
   if test "x$as_val" = x""yes; then :
12581 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12582 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12583 19 jeremybenn
_ACEOF
12584
 
12585
fi
12586
done
12587
 
12588 346 jeremybenn
ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
12589
if test "x$ac_cv_func_getopt_long" = x""yes; then :
12590 19 jeremybenn
  SYS_GETOPTLONG=1
12591
else
12592
  SYS_GETOPTLONG=0
12593
fi
12594
 
12595 346 jeremybenn
ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp"
12596
if test "x$ac_cv_func_regcomp" = x""yes; then :
12597 19 jeremybenn
  SYS_REGEX=1
12598
else
12599
  SYS_REGEX=0
12600
fi
12601
 
12602 346 jeremybenn
ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
12603
if test "x$ac_cv_func_strptime" = x""yes; then :
12604 19 jeremybenn
  SYS_STRPTIME=1
12605
else
12606
  SYS_STRPTIME=0
12607
fi
12608
 
12609
 
12610
# Define automake conditionals (for argtable2)
12611
 if test "$SYS_GETOPTLONG" = "1"; then
12612
  USE_SYS_GETOPTLONG_TRUE=
12613
  USE_SYS_GETOPTLONG_FALSE='#'
12614
else
12615
  USE_SYS_GETOPTLONG_TRUE='#'
12616
  USE_SYS_GETOPTLONG_FALSE=
12617
fi
12618
 
12619
 if test "$SYS_REGEX" = "1"; then
12620
  USE_ARGREX_TRUE=
12621
  USE_ARGREX_FALSE='#'
12622
else
12623
  USE_ARGREX_TRUE='#'
12624
  USE_ARGREX_FALSE=
12625
fi
12626
 
12627
 if test "$SYS_STRPTIME" = "1"; then
12628
  USE_ARGDATE_TRUE=
12629
  USE_ARGDATE_FALSE='#'
12630
else
12631
  USE_ARGDATE_TRUE='#'
12632
  USE_ARGDATE_FALSE=
12633
fi
12634
 
12635
 
12636
# check for "long long" (added by Erez)
12637 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12638 19 jeremybenn
/* end confdefs.h.  */
12639
 
12640
int
12641
main ()
12642
{
12643
long long ll; unsigned long long ull;
12644
  ;
12645
  return 0;
12646
}
12647
_ACEOF
12648 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12649 19 jeremybenn
 
12650 346 jeremybenn
$as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
12651 19 jeremybenn
 
12652
fi
12653
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12654
 
12655
# check for {u,}int{8,16,32}_t in inttypes.h.
12656 346 jeremybenn
ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#include 
12657
"
12658
if test "x$ac_cv_type_uint8_t" = x""yes; then :
12659 82 jeremybenn
 
12660 19 jeremybenn
cat >>confdefs.h <<_ACEOF
12661
#define HAVE_UINT8_T 1
12662
_ACEOF
12663
 
12664
 
12665
fi
12666 346 jeremybenn
ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#include 
12667
"
12668
if test "x$ac_cv_type_uint16_t" = x""yes; then :
12669 82 jeremybenn
 
12670 19 jeremybenn
cat >>confdefs.h <<_ACEOF
12671
#define HAVE_UINT16_T 1
12672
_ACEOF
12673
 
12674
 
12675
fi
12676 346 jeremybenn
ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include 
12677
"
12678
if test "x$ac_cv_type_uint32_t" = x""yes; then :
12679 82 jeremybenn
 
12680 19 jeremybenn
cat >>confdefs.h <<_ACEOF
12681
#define HAVE_UINT32_T 1
12682
_ACEOF
12683
 
12684
 
12685
fi
12686
 
12687 346 jeremybenn
ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "#include 
12688
"
12689
if test "x$ac_cv_type_int8_t" = x""yes; then :
12690 82 jeremybenn
 
12691 19 jeremybenn
cat >>confdefs.h <<_ACEOF
12692
#define HAVE_INT8_T 1
12693
_ACEOF
12694
 
12695
 
12696
fi
12697 346 jeremybenn
ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "#include 
12698
"
12699
if test "x$ac_cv_type_int16_t" = x""yes; then :
12700 82 jeremybenn
 
12701 19 jeremybenn
cat >>confdefs.h <<_ACEOF
12702
#define HAVE_INT16_T 1
12703
_ACEOF
12704
 
12705
 
12706
fi
12707 346 jeremybenn
ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "#include 
12708
"
12709
if test "x$ac_cv_type_int32_t" = x""yes; then :
12710 19 jeremybenn
 
12711 82 jeremybenn
cat >>confdefs.h <<_ACEOF
12712
#define HAVE_INT32_T 1
12713
_ACEOF
12714
 
12715
 
12716
fi
12717
 
12718
 
12719 19 jeremybenn
# The cast to long int works around a bug in the HP C Compiler
12720
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12721
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12722
# This bug is HP SR number 8606223364.
12723 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
12724 82 jeremybenn
$as_echo_n "checking size of char... " >&6; }
12725 346 jeremybenn
if test "${ac_cv_sizeof_char+set}" = set; then :
12726 82 jeremybenn
  $as_echo_n "(cached) " >&6
12727 19 jeremybenn
else
12728 346 jeremybenn
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
12729 19 jeremybenn
 
12730
else
12731 346 jeremybenn
  if test "$ac_cv_type_char" = yes; then
12732
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12733 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12734 346 jeremybenn
{ as_fn_set_status 77
12735
as_fn_error "cannot compute sizeof (char)
12736
See \`config.log' for more details." "$LINENO" 5; }; }
12737 19 jeremybenn
   else
12738
     ac_cv_sizeof_char=0
12739
   fi
12740
fi
12741 346 jeremybenn
 
12742 19 jeremybenn
fi
12743 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
12744 82 jeremybenn
$as_echo "$ac_cv_sizeof_char" >&6; }
12745 19 jeremybenn
 
12746
 
12747
 
12748
cat >>confdefs.h <<_ACEOF
12749
#define SIZEOF_CHAR $ac_cv_sizeof_char
12750
_ACEOF
12751
 
12752
 
12753
# The cast to long int works around a bug in the HP C Compiler
12754
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12755
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12756
# This bug is HP SR number 8606223364.
12757 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12758 82 jeremybenn
$as_echo_n "checking size of short... " >&6; }
12759 346 jeremybenn
if test "${ac_cv_sizeof_short+set}" = set; then :
12760 82 jeremybenn
  $as_echo_n "(cached) " >&6
12761 19 jeremybenn
else
12762 346 jeremybenn
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
12763 19 jeremybenn
 
12764
else
12765 346 jeremybenn
  if test "$ac_cv_type_short" = yes; then
12766
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12767 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12768 346 jeremybenn
{ as_fn_set_status 77
12769
as_fn_error "cannot compute sizeof (short)
12770
See \`config.log' for more details." "$LINENO" 5; }; }
12771 19 jeremybenn
   else
12772
     ac_cv_sizeof_short=0
12773
   fi
12774
fi
12775 346 jeremybenn
 
12776 19 jeremybenn
fi
12777 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12778 82 jeremybenn
$as_echo "$ac_cv_sizeof_short" >&6; }
12779 19 jeremybenn
 
12780
 
12781
 
12782
cat >>confdefs.h <<_ACEOF
12783
#define SIZEOF_SHORT $ac_cv_sizeof_short
12784
_ACEOF
12785
 
12786
 
12787
# The cast to long int works around a bug in the HP C Compiler
12788
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12789
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12790
# This bug is HP SR number 8606223364.
12791 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12792 82 jeremybenn
$as_echo_n "checking size of int... " >&6; }
12793 346 jeremybenn
if test "${ac_cv_sizeof_int+set}" = set; then :
12794 82 jeremybenn
  $as_echo_n "(cached) " >&6
12795 19 jeremybenn
else
12796 346 jeremybenn
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
12797 19 jeremybenn
 
12798
else
12799 346 jeremybenn
  if test "$ac_cv_type_int" = yes; then
12800
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12801 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12802 346 jeremybenn
{ as_fn_set_status 77
12803
as_fn_error "cannot compute sizeof (int)
12804
See \`config.log' for more details." "$LINENO" 5; }; }
12805 19 jeremybenn
   else
12806
     ac_cv_sizeof_int=0
12807
   fi
12808
fi
12809 346 jeremybenn
 
12810 19 jeremybenn
fi
12811 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12812 82 jeremybenn
$as_echo "$ac_cv_sizeof_int" >&6; }
12813 19 jeremybenn
 
12814
 
12815
 
12816
cat >>confdefs.h <<_ACEOF
12817
#define SIZEOF_INT $ac_cv_sizeof_int
12818
_ACEOF
12819
 
12820
 
12821
# The cast to long int works around a bug in the HP C Compiler
12822
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12823
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12824
# This bug is HP SR number 8606223364.
12825 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12826 82 jeremybenn
$as_echo_n "checking size of long... " >&6; }
12827 346 jeremybenn
if test "${ac_cv_sizeof_long+set}" = set; then :
12828 82 jeremybenn
  $as_echo_n "(cached) " >&6
12829 19 jeremybenn
else
12830 346 jeremybenn
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12831 19 jeremybenn
 
12832
else
12833 346 jeremybenn
  if test "$ac_cv_type_long" = yes; then
12834
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12835 233 julius
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12836 346 jeremybenn
{ as_fn_set_status 77
12837
as_fn_error "cannot compute sizeof (long)
12838
See \`config.log' for more details." "$LINENO" 5; }; }
12839 233 julius
   else
12840
     ac_cv_sizeof_long=0
12841
   fi
12842 230 jeremybenn
fi
12843 346 jeremybenn
 
12844 230 jeremybenn
fi
12845 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12846 233 julius
$as_echo "$ac_cv_sizeof_long" >&6; }
12847 230 jeremybenn
 
12848
 
12849
 
12850 233 julius
cat >>confdefs.h <<_ACEOF
12851
#define SIZEOF_LONG $ac_cv_sizeof_long
12852 230 jeremybenn
_ACEOF
12853
 
12854
 
12855 233 julius
# The cast to long int works around a bug in the HP C Compiler
12856
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12857
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12858
# This bug is HP SR number 8606223364.
12859 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12860 233 julius
$as_echo_n "checking size of long long... " >&6; }
12861 346 jeremybenn
if test "${ac_cv_sizeof_long_long+set}" = set; then :
12862 233 julius
  $as_echo_n "(cached) " >&6
12863 230 jeremybenn
else
12864 346 jeremybenn
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
12865 230 jeremybenn
 
12866
else
12867 346 jeremybenn
  if test "$ac_cv_type_long_long" = yes; then
12868
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12869 230 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12870 346 jeremybenn
{ as_fn_set_status 77
12871
as_fn_error "cannot compute sizeof (long long)
12872
See \`config.log' for more details." "$LINENO" 5; }; }
12873 230 jeremybenn
   else
12874 233 julius
     ac_cv_sizeof_long_long=0
12875 19 jeremybenn
   fi
12876
fi
12877 346 jeremybenn
 
12878 19 jeremybenn
fi
12879 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12880 233 julius
$as_echo "$ac_cv_sizeof_long_long" >&6; }
12881 19 jeremybenn
 
12882
 
12883
 
12884
cat >>confdefs.h <<_ACEOF
12885 233 julius
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12886 19 jeremybenn
_ACEOF
12887
 
12888
 
12889
 
12890
#Check for compare function type for qsort (needed by some Linuxes)
12891 346 jeremybenn
ac_fn_c_check_type "$LINENO" "__compar_fn_t" "ac_cv_type___compar_fn_t" "$ac_includes_default"
12892
if test "x$ac_cv_type___compar_fn_t" = x""yes; then :
12893 19 jeremybenn
 
12894
cat >>confdefs.h <<_ACEOF
12895
#define HAVE___COMPAR_FN_T 1
12896
_ACEOF
12897
 
12898
 
12899
fi
12900
 
12901
 
12902
# check for GNU readline
12903 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for add_history in -lreadline" >&5
12904 82 jeremybenn
$as_echo_n "checking for add_history in -lreadline... " >&6; }
12905 346 jeremybenn
if test "${ac_cv_lib_readline_add_history+set}" = set; then :
12906 82 jeremybenn
  $as_echo_n "(cached) " >&6
12907 19 jeremybenn
else
12908
  ac_check_lib_save_LIBS=$LIBS
12909
LIBS="-lreadline  $LIBS"
12910 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12911 19 jeremybenn
/* end confdefs.h.  */
12912
 
12913
/* Override any GCC internal prototype to avoid an error.
12914
   Use char because int might match the return type of a GCC
12915
   builtin and then its argument prototype would still apply.  */
12916
#ifdef __cplusplus
12917
extern "C"
12918
#endif
12919
char add_history ();
12920
int
12921
main ()
12922
{
12923
return add_history ();
12924
  ;
12925
  return 0;
12926
}
12927
_ACEOF
12928 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
12929 19 jeremybenn
  ac_cv_lib_readline_add_history=yes
12930
else
12931 346 jeremybenn
  ac_cv_lib_readline_add_history=no
12932 19 jeremybenn
fi
12933 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
12934
    conftest$ac_exeext conftest.$ac_ext
12935 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
12936
fi
12937 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_add_history" >&5
12938 82 jeremybenn
$as_echo "$ac_cv_lib_readline_add_history" >&6; }
12939 346 jeremybenn
if test "x$ac_cv_lib_readline_add_history" = x""yes; then :
12940 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12941
#define HAVE_LIBREADLINE 1
12942
_ACEOF
12943
 
12944
  LIBS="-lreadline $LIBS"
12945
 
12946
fi
12947
 
12948
 
12949
# yuck
12950
case "$host_os" in
12951
aix*)   prefer_curses=yes ;;
12952
esac
12953
 
12954
case "$host_cpu" in
12955
*cray*) LOCAL_CFLAGS=-DCRAY ;;
12956
esac
12957
 
12958
case "$host_os" in
12959
isc*)   LOCAL_CFLAGS=-Disc386 ;;
12960
esac
12961
 
12962
case "$host_os" in
12963
solaris*) LIBS="-lsocket -lnsl" ;;
12964
esac
12965
 
12966
# define options
12967 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable profiling" >&5
12968 82 jeremybenn
$as_echo_n "checking whether to enable profiling... " >&6; }
12969 19 jeremybenn
# Check whether --enable-profiling was given.
12970 346 jeremybenn
if test "${enable_profiling+set}" = set; then :
12971 19 jeremybenn
  enableval=$enable_profiling;
12972
    case "$enableval" in
12973
        yes) profile="-pg" ;;
12974
    esac
12975
 
12976
fi
12977
 
12978 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_profiling-no}" >&5
12979 82 jeremybenn
$as_echo "${enable_profiling-no}" >&6; }
12980 19 jeremybenn
 
12981
execution="1"
12982
 
12983
INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
12984 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which execution style to use" >&5
12985 82 jeremybenn
$as_echo_n "checking which execution style to use... " >&6; }
12986 19 jeremybenn
# Check whether --enable-execution was given.
12987 346 jeremybenn
if test "${enable_execution+set}" = set; then :
12988 19 jeremybenn
  enableval=$enable_execution;
12989
    case "$enableval" in
12990
    simple)
12991
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
12992
      execution="0"
12993 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple" >&5
12994 82 jeremybenn
$as_echo "simple" >&6; }
12995 19 jeremybenn
      ;;
12996
    complex)
12997
      INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
12998
      execution="1"
12999 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: complex" >&5
13000 82 jeremybenn
$as_echo "complex" >&6; }
13001 19 jeremybenn
      ;;
13002
    dynamic)
13003
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
13004
      execution="2"
13005 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5
13006 82 jeremybenn
$as_echo "dynamic" >&6; }
13007 19 jeremybenn
      ;;
13008
    *)
13009 346 jeremybenn
      as_fn_error "\"execution must one of simple/complex/dynamic\"" "$LINENO" 5
13010 19 jeremybenn
      ;;
13011
    esac
13012
 
13013
else
13014
 
13015 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: complex" >&5
13016 82 jeremybenn
$as_echo "complex" >&6; }
13017 19 jeremybenn
 
13018
fi
13019
 
13020
 
13021
eth_phy="0"
13022 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ethernet phy emulation" >&5
13023 82 jeremybenn
$as_echo_n "checking whether to enable ethernet phy emulation... " >&6; }
13024 19 jeremybenn
# Check whether --enable-ethphy was given.
13025 346 jeremybenn
if test "${enable_ethphy+set}" = set; then :
13026 19 jeremybenn
  enableval=$enable_ethphy;
13027
    case "$enableval" in
13028
  no)  eth_phy="0" ;;
13029
        yes) eth_phy="1" ;;
13030
    esac
13031
 
13032
fi
13033
 
13034 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_eth_phy-no}" >&5
13035 82 jeremybenn
$as_echo "${enable_eth_phy-no}" >&6; }
13036 19 jeremybenn
 
13037 127 jeremybenn
unsigned_xori="0"
13038 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether l.xori takes an unsigned immediate operand" >&5
13039 127 jeremybenn
$as_echo_n "checking whether l.xori takes an unsigned immediate operand... " >&6; }
13040
# Check whether --enable-unsigned-xori was given.
13041 346 jeremybenn
if test "${enable_unsigned_xori+set}" = set; then :
13042 127 jeremybenn
  enableval=$enable_unsigned_xori;
13043
    case "$enableval" in
13044
  no)  unsigned_xori="0" ;;
13045
        yes) unsigned_xori="1" ;;
13046
    esac
13047 19 jeremybenn
 
13048 127 jeremybenn
fi
13049
 
13050 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_unsigned_xori-no}" >&5
13051 127 jeremybenn
$as_echo "${enable_unsigned_xori-no}" >&6; }
13052
 
13053 19 jeremybenn
raw_range_stats="0"
13054 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use raw range stats" >&5
13055 82 jeremybenn
$as_echo_n "checking whether to use raw range stats... " >&6; }
13056 19 jeremybenn
# Check whether --enable-range_stats was given.
13057 346 jeremybenn
if test "${enable_range_stats+set}" = set; then :
13058 19 jeremybenn
  enableval=$enable_range_stats;
13059
    case "$enableval" in
13060
  no)  raw_range_stats="0" ;;
13061
        yes) raw_range_stats="1" simple_execution="1" ;;
13062
    esac
13063
 
13064
fi
13065
 
13066 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_range_stats-no}" >&5
13067 82 jeremybenn
$as_echo "${enable_range_stats-no}" >&6; }
13068 19 jeremybenn
 
13069
# check for --enable-debug argument (for argtable2)
13070
# Check whether --enable-debug was given.
13071 346 jeremybenn
if test "${enable_debug+set}" = set; then :
13072 19 jeremybenn
  enableval=$enable_debug;
13073
       case $enableval in
13074
          yes) echo "enabling argtable2 debugging symbols" & DEBUGFLAGS="-g -UNDEBUG";;
13075
          no)  echo "disabling argtable2 debugging symbols" & DEBUGFLAGS="-DNDEBUG";;
13076
          *)   echo "illegal argument to --enable-debug" & exit 1;;
13077
       esac
13078
 
13079
else
13080
  DEBUGFLAGS="-DNDEBUG"
13081
 
13082
fi
13083
 
13084
 
13085
 
13086
 
13087
cat >>confdefs.h <<_ACEOF
13088
#define RAW_RANGE_STATS $raw_range_stats
13089
_ACEOF
13090
 
13091
 
13092
cat >>confdefs.h <<_ACEOF
13093
#define HAVE_ETH_PHY $eth_phy
13094
_ACEOF
13095
 
13096
 
13097
cat >>confdefs.h <<_ACEOF
13098 127 jeremybenn
#define HAVE_UNSIGNED_XORI $unsigned_xori
13099
_ACEOF
13100
 
13101
 
13102
cat >>confdefs.h <<_ACEOF
13103 19 jeremybenn
#define SIMPLE_EXECUTION $execution == 0
13104
_ACEOF
13105
 
13106
 
13107
cat >>confdefs.h <<_ACEOF
13108
#define COMPLEX_EXECUTION $execution == 1
13109
_ACEOF
13110
 
13111
 
13112
cat >>confdefs.h <<_ACEOF
13113
#define DYNAMIC_EXECUTION $execution == 2
13114
_ACEOF
13115
 
13116
 if test x$execution = x1; then
13117
  GENERATE_NEEDED_TRUE=
13118
  GENERATE_NEEDED_FALSE='#'
13119
else
13120
  GENERATE_NEEDED_TRUE='#'
13121
  GENERATE_NEEDED_FALSE=
13122
fi
13123
 
13124
 if test x$execution = x2; then
13125
  DYNAMIC_EXECUTION_TRUE=
13126
  DYNAMIC_EXECUTION_FALSE='#'
13127
else
13128
  DYNAMIC_EXECUTION_TRUE='#'
13129
  DYNAMIC_EXECUTION_FALSE=
13130
fi
13131
 
13132
 
13133
 
13134
test -n "$profile"  && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
13135
 
13136 90 jeremybenn
# Check for a DejaGNU global config file. If not set, then set it
13137
# ourselves. This stops runtest complaining
13138 387 jeremybenn
DEJAGNU="\$(top_srcdir)/testsuite/global-conf.exp"
13139 90 jeremybenn
 
13140 96 jeremybenn
 
13141
 
13142
# The following line will override the default definition of the srcdir, and
13143
# ensure that short names are used for the test names.
13144
RUNTESTDEFAULTFLAGS="--tool \$\$tool"
13145
 
13146
 
13147 19 jeremybenn
BUILD_DIR=`pwd`
13148
 
13149
 
13150
 
13151
 
13152
 
13153
 
13154
 
13155
 
13156
 
13157
 
13158
 
13159
 
13160
 
13161
 
13162
 
13163
 
13164
 
13165
 
13166 346 jeremybenn
$as_echo "#define HAVE_EXECUTION 1" >>confdefs.h
13167 19 jeremybenn
 
13168
 
13169
# yuck
13170
INCLUDES="$INCLUDES -I\${top_srcdir} -I\${top_srcdir}/cpu/common \
13171
-I\${top_srcdir}/cpu/or1k -I\${top_srcdir}/cache -I\${top_srcdir}/mmu \
13172
-I\${top_srcdir}/bpb -I\${top_srcdir}/peripheral -I\${top_srcdir}/tick \
13173
-I\${top_srcdir}/peripheral/channels -I\${top_srcdir}/pm -I\${top_srcdir}/pic \
13174
-I\${top_srcdir}/debug -I\${top_srcdir}/vapi -I\${top_srcdir}/support \
13175 233 julius
-I\${top_srcdir}/cuc -I\${top_srcdir}/port -I\${top_srcdir}/argtable2 \
13176
-I\${top_srcdir}/softfloat"
13177 19 jeremybenn
 
13178
 
13179 233 julius
ac_config_files="$ac_config_files Makefile argtable2/Makefile bpb/Makefile cache/Makefile cpu/Makefile cpu/common/Makefile cpu/or1k/Makefile cuc/Makefile softfloat/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 testsuite/test-code/lib-inttest/Makefile testsuite/test-code/lib-jtag/Makefile testsuite/test-code/lib-upcalls/Makefile tick/Makefile vapi/Makefile"
13180 19 jeremybenn
 
13181
 
13182
# yuck. I don't know why I cannot just substitute $CPU_ARCH in the above
13183
case "$CPU_ARCH" in
13184
dlx)    ac_config_files="$ac_config_files cpu/dlx/Makefile"
13185
;;
13186
*)      ac_config_files="$ac_config_files cpu/or32/Makefile"
13187
;;
13188
esac
13189
 
13190 82 jeremybenn
# Generate the output
13191
 
13192
 
13193 19 jeremybenn
cat >confcache <<\_ACEOF
13194
# This file is a shell script that caches the results of configure
13195
# tests run on this system so they can be shared between configure
13196
# scripts and configure runs, see configure's option --config-cache.
13197
# It is not useful on other systems.  If it contains results you don't
13198
# want to keep, you may remove or edit it.
13199
#
13200
# config.status only pays attention to the cache file if you give it
13201
# the --recheck option to rerun configure.
13202
#
13203
# `ac_cv_env_foo' variables (set or unset) will be overridden when
13204
# loading this file, other *unset* `ac_cv_foo' will be assigned the
13205
# following values.
13206
 
13207
_ACEOF
13208
 
13209
# The following way of writing the cache mishandles newlines in values,
13210
# but we know of no workaround that is simple, portable, and efficient.
13211
# So, we kill variables containing newlines.
13212
# Ultrix sh set writes to stderr and can't be redirected directly,
13213
# and sets the high bit in the cache file unless we assign to the vars.
13214
(
13215
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13216
    eval ac_val=\$$ac_var
13217
    case $ac_val in #(
13218
    *${as_nl}*)
13219
      case $ac_var in #(
13220 346 jeremybenn
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13221 82 jeremybenn
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13222 19 jeremybenn
      esac
13223
      case $ac_var in #(
13224
      _ | IFS | as_nl) ;; #(
13225 82 jeremybenn
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13226 346 jeremybenn
      *) { eval $ac_var=; unset $ac_var;} ;;
13227 19 jeremybenn
      esac ;;
13228
    esac
13229
  done
13230
 
13231
  (set) 2>&1 |
13232
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13233
    *${as_nl}ac_space=\ *)
13234 346 jeremybenn
      # `set' does not quote correctly, so add quotes: double-quote
13235
      # substitution turns \\\\ into \\, and sed turns \\ into \.
13236 19 jeremybenn
      sed -n \
13237
        "s/'/'\\\\''/g;
13238
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13239
      ;; #(
13240
    *)
13241
      # `set' quotes correctly as required by POSIX, so do not add quotes.
13242
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13243
      ;;
13244
    esac |
13245
    sort
13246
) |
13247
  sed '
13248
     /^ac_cv_env_/b end
13249
     t clear
13250
     :clear
13251
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13252
     t end
13253
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13254
     :end' >>confcache
13255
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13256
  if test -w "$cache_file"; then
13257
    test "x$cache_file" != "x/dev/null" &&
13258 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13259 82 jeremybenn
$as_echo "$as_me: updating cache $cache_file" >&6;}
13260 19 jeremybenn
    cat confcache >$cache_file
13261
  else
13262 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13263 82 jeremybenn
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13264 19 jeremybenn
  fi
13265
fi
13266
rm -f confcache
13267
 
13268
test "x$prefix" = xNONE && prefix=$ac_default_prefix
13269
# Let make expand exec_prefix.
13270
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13271
 
13272
DEFS=-DHAVE_CONFIG_H
13273
 
13274
ac_libobjs=
13275
ac_ltlibobjs=
13276
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13277
  # 1. Remove the extension, and $U if already installed.
13278
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13279 82 jeremybenn
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13280 19 jeremybenn
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13281
  #    will be set to the directory where LIBOBJS objects are built.
13282 346 jeremybenn
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13283
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13284 19 jeremybenn
done
13285
LIBOBJS=$ac_libobjs
13286
 
13287
LTLIBOBJS=$ac_ltlibobjs
13288
 
13289
 
13290
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13291 346 jeremybenn
  as_fn_error "conditional \"AMDEP\" was never defined.
13292
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13293 19 jeremybenn
fi
13294
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13295 346 jeremybenn
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
13296
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13297 19 jeremybenn
fi
13298 82 jeremybenn
 if test -n "$EXEEXT"; then
13299
  am__EXEEXT_TRUE=
13300
  am__EXEEXT_FALSE='#'
13301
else
13302
  am__EXEEXT_TRUE='#'
13303
  am__EXEEXT_FALSE=
13304
fi
13305
 
13306
if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
13307 346 jeremybenn
  as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
13308
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13309 19 jeremybenn
fi
13310 82 jeremybenn
 
13311 19 jeremybenn
if test -z "${USE_SYS_GETOPTLONG_TRUE}" && test -z "${USE_SYS_GETOPTLONG_FALSE}"; then
13312 346 jeremybenn
  as_fn_error "conditional \"USE_SYS_GETOPTLONG\" was never defined.
13313
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13314 19 jeremybenn
fi
13315
if test -z "${USE_ARGREX_TRUE}" && test -z "${USE_ARGREX_FALSE}"; then
13316 346 jeremybenn
  as_fn_error "conditional \"USE_ARGREX\" was never defined.
13317
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13318 19 jeremybenn
fi
13319
if test -z "${USE_ARGDATE_TRUE}" && test -z "${USE_ARGDATE_FALSE}"; then
13320 346 jeremybenn
  as_fn_error "conditional \"USE_ARGDATE\" was never defined.
13321
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13322 19 jeremybenn
fi
13323
if test -z "${GENERATE_NEEDED_TRUE}" && test -z "${GENERATE_NEEDED_FALSE}"; then
13324 346 jeremybenn
  as_fn_error "conditional \"GENERATE_NEEDED\" was never defined.
13325
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13326 19 jeremybenn
fi
13327
if test -z "${DYNAMIC_EXECUTION_TRUE}" && test -z "${DYNAMIC_EXECUTION_FALSE}"; then
13328 346 jeremybenn
  as_fn_error "conditional \"DYNAMIC_EXECUTION\" was never defined.
13329
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13330 19 jeremybenn
fi
13331
 
13332
: ${CONFIG_STATUS=./config.status}
13333 82 jeremybenn
ac_write_fail=0
13334 19 jeremybenn
ac_clean_files_save=$ac_clean_files
13335
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13336 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13337 82 jeremybenn
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13338 346 jeremybenn
as_write_fail=0
13339
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13340 19 jeremybenn
#! $SHELL
13341
# Generated by $as_me.
13342
# Run this file to recreate the current configuration.
13343
# Compiler output produced by configure, useful for debugging
13344
# configure, is in config.log if it exists.
13345
 
13346
debug=false
13347
ac_cs_recheck=false
13348
ac_cs_silent=false
13349 346 jeremybenn
 
13350 19 jeremybenn
SHELL=\${CONFIG_SHELL-$SHELL}
13351 346 jeremybenn
export SHELL
13352
_ASEOF
13353
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13354
## -------------------- ##
13355
## M4sh Initialization. ##
13356
## -------------------- ##
13357 19 jeremybenn
 
13358
# Be more Bourne compatible
13359
DUALCASE=1; export DUALCASE # for MKS sh
13360 346 jeremybenn
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13361 19 jeremybenn
  emulate sh
13362
  NULLCMD=:
13363 82 jeremybenn
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13364 19 jeremybenn
  # is contrary to our usage.  Disable this feature.
13365
  alias -g '${1+"$@"}'='"$@"'
13366
  setopt NO_GLOB_SUBST
13367
else
13368 346 jeremybenn
  case `(set -o) 2>/dev/null` in #(
13369
  *posix*) :
13370
    set -o posix ;; #(
13371
  *) :
13372
     ;;
13373 19 jeremybenn
esac
13374
fi
13375
 
13376
 
13377 82 jeremybenn
as_nl='
13378
'
13379
export as_nl
13380
# Printing a long string crashes Solaris 7 /usr/bin/printf.
13381
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13382
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13383
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13384 346 jeremybenn
# Prefer a ksh shell builtin over an external printf program on Solaris,
13385
# but without wasting forks for bash or zsh.
13386
if test -z "$BASH_VERSION$ZSH_VERSION" \
13387
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13388
  as_echo='print -r --'
13389
  as_echo_n='print -rn --'
13390
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13391 82 jeremybenn
  as_echo='printf %s\n'
13392
  as_echo_n='printf %s'
13393
else
13394
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13395
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13396
    as_echo_n='/usr/ucb/echo -n'
13397 19 jeremybenn
  else
13398 82 jeremybenn
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13399
    as_echo_n_body='eval
13400
      arg=$1;
13401 346 jeremybenn
      case $arg in #(
13402 82 jeremybenn
      *"$as_nl"*)
13403
        expr "X$arg" : "X\\(.*\\)$as_nl";
13404
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13405
      esac;
13406
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13407
    '
13408
    export as_echo_n_body
13409
    as_echo_n='sh -c $as_echo_n_body as_echo'
13410 19 jeremybenn
  fi
13411 82 jeremybenn
  export as_echo_body
13412
  as_echo='sh -c $as_echo_body as_echo'
13413 19 jeremybenn
fi
13414
 
13415 82 jeremybenn
# The user is always right.
13416
if test "${PATH_SEPARATOR+set}" != set; then
13417
  PATH_SEPARATOR=:
13418
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13419
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13420
      PATH_SEPARATOR=';'
13421
  }
13422
fi
13423
 
13424 19 jeremybenn
 
13425
# IFS
13426
# We need space, tab and new line, in precisely that order.  Quoting is
13427
# there to prevent editors from complaining about space-tab.
13428
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13429
# splitting by setting IFS to empty value.)
13430
IFS=" ""        $as_nl"
13431
 
13432
# Find who we are.  Look in the path if we contain no directory separator.
13433 346 jeremybenn
case $0 in #((
13434 19 jeremybenn
  *[\\/]* ) as_myself=$0 ;;
13435
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13436
for as_dir in $PATH
13437
do
13438
  IFS=$as_save_IFS
13439
  test -z "$as_dir" && as_dir=.
13440 346 jeremybenn
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13441
  done
13442 19 jeremybenn
IFS=$as_save_IFS
13443
 
13444
     ;;
13445
esac
13446
# We did not find ourselves, most probably we were run as `sh COMMAND'
13447
# in which case we are not to be found in the path.
13448
if test "x$as_myself" = x; then
13449
  as_myself=$0
13450
fi
13451
if test ! -f "$as_myself"; then
13452 82 jeremybenn
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13453 346 jeremybenn
  exit 1
13454 19 jeremybenn
fi
13455
 
13456 346 jeremybenn
# Unset variables that we do not need and which cause bugs (e.g. in
13457
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13458
# suppresses any "Segmentation fault" message there.  '((' could
13459
# trigger a bug in pdksh 5.2.14.
13460
for as_var in BASH_ENV ENV MAIL MAILPATH
13461
do eval test x\${$as_var+set} = xset \
13462
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13463 19 jeremybenn
done
13464
PS1='$ '
13465
PS2='> '
13466
PS4='+ '
13467
 
13468
# NLS nuisances.
13469 82 jeremybenn
LC_ALL=C
13470
export LC_ALL
13471
LANGUAGE=C
13472
export LANGUAGE
13473 19 jeremybenn
 
13474 346 jeremybenn
# CDPATH.
13475
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13476
 
13477
 
13478
# as_fn_error ERROR [LINENO LOG_FD]
13479
# ---------------------------------
13480
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13481
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13482
# script with status $?, using 1 if that was 0.
13483
as_fn_error ()
13484
{
13485
  as_status=$?; test $as_status -eq 0 && as_status=1
13486
  if test "$3"; then
13487
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13488
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13489
  fi
13490
  $as_echo "$as_me: error: $1" >&2
13491
  as_fn_exit $as_status
13492
} # as_fn_error
13493
 
13494
 
13495
# as_fn_set_status STATUS
13496
# -----------------------
13497
# Set $? to STATUS, without forking.
13498
as_fn_set_status ()
13499
{
13500
  return $1
13501
} # as_fn_set_status
13502
 
13503
# as_fn_exit STATUS
13504
# -----------------
13505
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13506
as_fn_exit ()
13507
{
13508
  set +e
13509
  as_fn_set_status $1
13510
  exit $1
13511
} # as_fn_exit
13512
 
13513
# as_fn_unset VAR
13514
# ---------------
13515
# Portably unset VAR.
13516
as_fn_unset ()
13517
{
13518
  { eval $1=; unset $1;}
13519
}
13520
as_unset=as_fn_unset
13521
# as_fn_append VAR VALUE
13522
# ----------------------
13523
# Append the text in VALUE to the end of the definition contained in VAR. Take
13524
# advantage of any shell optimizations that allow amortized linear growth over
13525
# repeated appends, instead of the typical quadratic growth present in naive
13526
# implementations.
13527
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13528
  eval 'as_fn_append ()
13529
  {
13530
    eval $1+=\$2
13531
  }'
13532
else
13533
  as_fn_append ()
13534
  {
13535
    eval $1=\$$1\$2
13536
  }
13537
fi # as_fn_append
13538
 
13539
# as_fn_arith ARG...
13540
# ------------------
13541
# Perform arithmetic evaluation on the ARGs, and store the result in the
13542
# global $as_val. Take advantage of shells that can avoid forks. The arguments
13543
# must be portable across $(()) and expr.
13544
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13545
  eval 'as_fn_arith ()
13546
  {
13547
    as_val=$(( $* ))
13548
  }'
13549
else
13550
  as_fn_arith ()
13551
  {
13552
    as_val=`expr "$@" || test $? -eq 1`
13553
  }
13554
fi # as_fn_arith
13555
 
13556
 
13557 19 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
13558
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13559
  as_expr=expr
13560
else
13561
  as_expr=false
13562
fi
13563
 
13564
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13565
  as_basename=basename
13566
else
13567
  as_basename=false
13568
fi
13569
 
13570 346 jeremybenn
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13571
  as_dirname=dirname
13572
else
13573
  as_dirname=false
13574
fi
13575 19 jeremybenn
 
13576
as_me=`$as_basename -- "$0" ||
13577
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13578
         X"$0" : 'X\(//\)$' \| \
13579
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13580 82 jeremybenn
$as_echo X/"$0" |
13581 19 jeremybenn
    sed '/^.*\/\([^/][^/]*\)\/*$/{
13582
            s//\1/
13583
            q
13584
          }
13585
          /^X\/\(\/\/\)$/{
13586
            s//\1/
13587
            q
13588
          }
13589
          /^X\/\(\/\).*/{
13590
            s//\1/
13591
            q
13592
          }
13593
          s/.*/./; q'`
13594
 
13595 346 jeremybenn
# Avoid depending upon Character Ranges.
13596
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13597
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13598
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13599
as_cr_digits='0123456789'
13600
as_cr_alnum=$as_cr_Letters$as_cr_digits
13601 19 jeremybenn
 
13602
ECHO_C= ECHO_N= ECHO_T=
13603 346 jeremybenn
case `echo -n x` in #(((((
13604 19 jeremybenn
-n*)
13605 346 jeremybenn
  case `echo 'xy\c'` in
13606 19 jeremybenn
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13607 346 jeremybenn
  xy)  ECHO_C='\c';;
13608
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13609
       ECHO_T=' ';;
13610 19 jeremybenn
  esac;;
13611
*)
13612
  ECHO_N='-n';;
13613
esac
13614
 
13615
rm -f conf$$ conf$$.exe conf$$.file
13616
if test -d conf$$.dir; then
13617
  rm -f conf$$.dir/conf$$.file
13618
else
13619
  rm -f conf$$.dir
13620 82 jeremybenn
  mkdir conf$$.dir 2>/dev/null
13621 19 jeremybenn
fi
13622 82 jeremybenn
if (echo >conf$$.file) 2>/dev/null; then
13623
  if ln -s conf$$.file conf$$ 2>/dev/null; then
13624
    as_ln_s='ln -s'
13625
    # ... but there are two gotchas:
13626
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13627
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13628
    # In both cases, we have to default to `cp -p'.
13629
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13630
      as_ln_s='cp -p'
13631
  elif ln conf$$.file conf$$ 2>/dev/null; then
13632
    as_ln_s=ln
13633
  else
13634 19 jeremybenn
    as_ln_s='cp -p'
13635 82 jeremybenn
  fi
13636 19 jeremybenn
else
13637
  as_ln_s='cp -p'
13638
fi
13639
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13640
rmdir conf$$.dir 2>/dev/null
13641
 
13642 346 jeremybenn
 
13643
# as_fn_mkdir_p
13644
# -------------
13645
# Create "$as_dir" as a directory, including parents if necessary.
13646
as_fn_mkdir_p ()
13647
{
13648
 
13649
  case $as_dir in #(
13650
  -*) as_dir=./$as_dir;;
13651
  esac
13652
  test -d "$as_dir" || eval $as_mkdir_p || {
13653
    as_dirs=
13654
    while :; do
13655
      case $as_dir in #(
13656
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13657
      *) as_qdir=$as_dir;;
13658
      esac
13659
      as_dirs="'$as_qdir' $as_dirs"
13660
      as_dir=`$as_dirname -- "$as_dir" ||
13661
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13662
         X"$as_dir" : 'X\(//\)[^/]' \| \
13663
         X"$as_dir" : 'X\(//\)$' \| \
13664
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13665
$as_echo X"$as_dir" |
13666
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13667
            s//\1/
13668
            q
13669
          }
13670
          /^X\(\/\/\)[^/].*/{
13671
            s//\1/
13672
            q
13673
          }
13674
          /^X\(\/\/\)$/{
13675
            s//\1/
13676
            q
13677
          }
13678
          /^X\(\/\).*/{
13679
            s//\1/
13680
            q
13681
          }
13682
          s/.*/./; q'`
13683
      test -d "$as_dir" && break
13684
    done
13685
    test -z "$as_dirs" || eval "mkdir $as_dirs"
13686
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13687
 
13688
 
13689
} # as_fn_mkdir_p
13690 19 jeremybenn
if mkdir -p . 2>/dev/null; then
13691 346 jeremybenn
  as_mkdir_p='mkdir -p "$as_dir"'
13692 19 jeremybenn
else
13693
  test -d ./-p && rmdir ./-p
13694
  as_mkdir_p=false
13695
fi
13696
 
13697
if test -x / >/dev/null 2>&1; then
13698
  as_test_x='test -x'
13699
else
13700
  if ls -dL / >/dev/null 2>&1; then
13701
    as_ls_L_option=L
13702
  else
13703
    as_ls_L_option=
13704
  fi
13705
  as_test_x='
13706
    eval sh -c '\''
13707
      if test -d "$1"; then
13708 82 jeremybenn
        test -d "$1/.";
13709 19 jeremybenn
      else
13710 346 jeremybenn
        case $1 in #(
13711 82 jeremybenn
        -*)set "./$1";;
13712 19 jeremybenn
        esac;
13713 346 jeremybenn
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13714 19 jeremybenn
        ???[sx]*):;;*)false;;esac;fi
13715
    '\'' sh
13716
  '
13717
fi
13718
as_executable_p=$as_test_x
13719
 
13720
# Sed expression to map a string onto a valid CPP name.
13721
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13722
 
13723
# Sed expression to map a string onto a valid variable name.
13724
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13725
 
13726
 
13727
exec 6>&1
13728 346 jeremybenn
## ----------------------------------- ##
13729
## Main body of $CONFIG_STATUS script. ##
13730
## ----------------------------------- ##
13731
_ASEOF
13732
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13733 19 jeremybenn
 
13734 346 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13735
# Save the log message, to keep $0 and so on meaningful, and to
13736 19 jeremybenn
# report actual input values of CONFIG_FILES etc. instead of their
13737
# values after options handling.
13738
ac_log="
13739 432 jeremybenn
This file was extended by or1ksim $as_me 2010-11-25, which was
13740
generated by GNU Autoconf 2.65.  Invocation command line was
13741 19 jeremybenn
 
13742
  CONFIG_FILES    = $CONFIG_FILES
13743
  CONFIG_HEADERS  = $CONFIG_HEADERS
13744
  CONFIG_LINKS    = $CONFIG_LINKS
13745
  CONFIG_COMMANDS = $CONFIG_COMMANDS
13746
  $ $0 $@
13747
 
13748
on `(hostname || uname -n) 2>/dev/null | sed 1q`
13749
"
13750
 
13751
_ACEOF
13752
 
13753 82 jeremybenn
case $ac_config_files in *"
13754
"*) set x $ac_config_files; shift; ac_config_files=$*;;
13755
esac
13756
 
13757
case $ac_config_headers in *"
13758
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13759
esac
13760
 
13761
 
13762
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13763 19 jeremybenn
# Files that config.status was made for.
13764
config_files="$ac_config_files"
13765
config_headers="$ac_config_headers"
13766
config_commands="$ac_config_commands"
13767
 
13768
_ACEOF
13769
 
13770 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13771 19 jeremybenn
ac_cs_usage="\
13772 346 jeremybenn
\`$as_me' instantiates files and other configuration actions
13773
from templates according to the current configuration.  Unless the files
13774
and actions are specified as TAGs, all are instantiated by default.
13775 19 jeremybenn
 
13776 346 jeremybenn
Usage: $0 [OPTION]... [TAG]...
13777 19 jeremybenn
 
13778
  -h, --help       print this help, then exit
13779
  -V, --version    print version number and configuration settings, then exit
13780 432 jeremybenn
      --config     print configuration, then exit
13781 82 jeremybenn
  -q, --quiet, --silent
13782
                   do not print progress messages
13783 19 jeremybenn
  -d, --debug      don't remove temporary files
13784
      --recheck    update $as_me by reconfiguring in the same conditions
13785 82 jeremybenn
      --file=FILE[:TEMPLATE]
13786
                   instantiate the configuration file FILE
13787
      --header=FILE[:TEMPLATE]
13788
                   instantiate the configuration header FILE
13789 19 jeremybenn
 
13790
Configuration files:
13791
$config_files
13792
 
13793
Configuration headers:
13794
$config_headers
13795
 
13796
Configuration commands:
13797
$config_commands
13798
 
13799 346 jeremybenn
Report bugs to ."
13800 19 jeremybenn
 
13801
_ACEOF
13802 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13803 432 jeremybenn
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13804 19 jeremybenn
ac_cs_version="\\
13805 432 jeremybenn
or1ksim config.status 2010-11-25
13806
configured by $0, generated by GNU Autoconf 2.65,
13807
  with options \\"\$ac_cs_config\\"
13808 19 jeremybenn
 
13809 346 jeremybenn
Copyright (C) 2009 Free Software Foundation, Inc.
13810 19 jeremybenn
This config.status script is free software; the Free Software Foundation
13811
gives unlimited permission to copy, distribute and modify it."
13812
 
13813
ac_pwd='$ac_pwd'
13814
srcdir='$srcdir'
13815
INSTALL='$INSTALL'
13816
MKDIR_P='$MKDIR_P'
13817 82 jeremybenn
AWK='$AWK'
13818
test -n "\$AWK" || AWK=awk
13819 19 jeremybenn
_ACEOF
13820
 
13821 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13822
# The default lists apply if the user does not specify any file.
13823 19 jeremybenn
ac_need_defaults=:
13824
while test $# != 0
13825
do
13826
  case $1 in
13827
  --*=*)
13828
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13829
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13830
    ac_shift=:
13831
    ;;
13832
  *)
13833
    ac_option=$1
13834
    ac_optarg=$2
13835
    ac_shift=shift
13836
    ;;
13837
  esac
13838
 
13839
  case $ac_option in
13840
  # Handling of the options.
13841
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13842
    ac_cs_recheck=: ;;
13843
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13844 82 jeremybenn
    $as_echo "$ac_cs_version"; exit ;;
13845 432 jeremybenn
  --config | --confi | --conf | --con | --co | --c )
13846
    $as_echo "$ac_cs_config"; exit ;;
13847 19 jeremybenn
  --debug | --debu | --deb | --de | --d | -d )
13848
    debug=: ;;
13849
  --file | --fil | --fi | --f )
13850
    $ac_shift
13851 82 jeremybenn
    case $ac_optarg in
13852
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13853
    esac
13854 346 jeremybenn
    as_fn_append CONFIG_FILES " '$ac_optarg'"
13855 19 jeremybenn
    ac_need_defaults=false;;
13856
  --header | --heade | --head | --hea )
13857
    $ac_shift
13858 82 jeremybenn
    case $ac_optarg in
13859
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13860
    esac
13861 346 jeremybenn
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13862 19 jeremybenn
    ac_need_defaults=false;;
13863
  --he | --h)
13864
    # Conflict between --help and --header
13865 346 jeremybenn
    as_fn_error "ambiguous option: \`$1'
13866
Try \`$0 --help' for more information.";;
13867 19 jeremybenn
  --help | --hel | -h )
13868 82 jeremybenn
    $as_echo "$ac_cs_usage"; exit ;;
13869 19 jeremybenn
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13870
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13871
    ac_cs_silent=: ;;
13872
 
13873
  # This is an error.
13874 346 jeremybenn
  -*) as_fn_error "unrecognized option: \`$1'
13875
Try \`$0 --help' for more information." ;;
13876 19 jeremybenn
 
13877 346 jeremybenn
  *) as_fn_append ac_config_targets " $1"
13878 19 jeremybenn
     ac_need_defaults=false ;;
13879
 
13880
  esac
13881
  shift
13882
done
13883
 
13884
ac_configure_extra_args=
13885
 
13886
if $ac_cs_silent; then
13887
  exec 6>/dev/null
13888
  ac_configure_extra_args="$ac_configure_extra_args --silent"
13889
fi
13890
 
13891
_ACEOF
13892 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13893 19 jeremybenn
if \$ac_cs_recheck; then
13894 82 jeremybenn
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13895
  shift
13896
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13897
  CONFIG_SHELL='$SHELL'
13898 19 jeremybenn
  export CONFIG_SHELL
13899 82 jeremybenn
  exec "\$@"
13900 19 jeremybenn
fi
13901
 
13902
_ACEOF
13903 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13904 19 jeremybenn
exec 5>>config.log
13905
{
13906
  echo
13907
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13908
## Running $as_me. ##
13909
_ASBOX
13910 82 jeremybenn
  $as_echo "$ac_log"
13911 19 jeremybenn
} >&5
13912
 
13913
_ACEOF
13914 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13915 19 jeremybenn
#
13916
# INIT-COMMANDS
13917
#
13918 82 jeremybenn
 
13919
 
13920
# The HP-UX ksh and POSIX shell print the target directory to stdout
13921
# if CDPATH is set.
13922
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13923
 
13924
sed_quote_subst='$sed_quote_subst'
13925
double_quote_subst='$double_quote_subst'
13926
delay_variable_subst='$delay_variable_subst'
13927
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13928
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13929
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13930
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13931
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13932
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13933
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13934
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13935
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13936
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13937
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13938
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13939
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13940
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13941
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13942
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13943
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13944
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13945
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13946
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13947
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13948
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13949
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13950
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13951
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13952
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13953
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13954
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13955
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13956
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13957
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13958
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13959
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13960
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13961
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13962
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13963
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13964
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13965
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13966
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13967
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13968
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13969
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13970
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13971
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"`'
13972
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"`'
13973
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13974
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13975
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13976
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13977
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13978
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13979
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13980
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13981
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13982
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13983
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13984
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13985
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13986
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13987
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13988
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13989
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13990
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13991
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13992
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13993
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13994
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13995
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13996
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13997
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13998
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13999
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14000
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14001
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14002
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14003
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14004
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14005
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14006
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14007
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14008
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14009
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14010
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14011
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14012
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14013
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14014
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14015
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14016
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14017
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14018
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14019
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14020
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14021
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14022
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14023
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14024
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14025
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14026
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14027
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14028
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14029
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14030
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14031
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14032
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14033
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14034
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14035
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14036
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14037
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14038
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14039
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14040
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14041
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14042
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14043
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14044
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14045
 
14046
LTCC='$LTCC'
14047
LTCFLAGS='$LTCFLAGS'
14048
compiler='$compiler_DEFAULT'
14049
 
14050
# Quote evaled strings.
14051
for var in SED \
14052
GREP \
14053
EGREP \
14054
FGREP \
14055
LD \
14056
NM \
14057
LN_S \
14058
lt_SP2NL \
14059
lt_NL2SP \
14060
reload_flag \
14061
OBJDUMP \
14062
deplibs_check_method \
14063
file_magic_cmd \
14064
AR \
14065
AR_FLAGS \
14066
STRIP \
14067
RANLIB \
14068
CC \
14069
CFLAGS \
14070
compiler \
14071
lt_cv_sys_global_symbol_pipe \
14072
lt_cv_sys_global_symbol_to_cdecl \
14073
lt_cv_sys_global_symbol_to_c_name_address \
14074
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14075
SHELL \
14076
ECHO \
14077
lt_prog_compiler_no_builtin_flag \
14078
lt_prog_compiler_wl \
14079
lt_prog_compiler_pic \
14080
lt_prog_compiler_static \
14081
lt_cv_prog_compiler_c_o \
14082
need_locks \
14083
DSYMUTIL \
14084
NMEDIT \
14085
LIPO \
14086
OTOOL \
14087
OTOOL64 \
14088
shrext_cmds \
14089
export_dynamic_flag_spec \
14090
whole_archive_flag_spec \
14091
compiler_needs_object \
14092
with_gnu_ld \
14093
allow_undefined_flag \
14094
no_undefined_flag \
14095
hardcode_libdir_flag_spec \
14096
hardcode_libdir_flag_spec_ld \
14097
hardcode_libdir_separator \
14098
fix_srcfile_path \
14099
exclude_expsyms \
14100
include_expsyms \
14101
file_list_spec \
14102
variables_saved_for_relink \
14103
libname_spec \
14104
library_names_spec \
14105
soname_spec \
14106
finish_eval \
14107
old_striplib \
14108
striplib; do
14109
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14110
    *[\\\\\\\`\\"\\\$]*)
14111
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14112
      ;;
14113
    *)
14114
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14115
      ;;
14116
    esac
14117
done
14118
 
14119
# Double-quote double-evaled strings.
14120
for var in reload_cmds \
14121
old_postinstall_cmds \
14122
old_postuninstall_cmds \
14123
old_archive_cmds \
14124
extract_expsyms_cmds \
14125
old_archive_from_new_cmds \
14126
old_archive_from_expsyms_cmds \
14127
archive_cmds \
14128
archive_expsym_cmds \
14129
module_cmds \
14130
module_expsym_cmds \
14131
export_symbols_cmds \
14132
prelink_cmds \
14133
postinstall_cmds \
14134
postuninstall_cmds \
14135
finish_cmds \
14136
sys_lib_search_path_spec \
14137
sys_lib_dlsearch_path_spec; do
14138
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14139
    *[\\\\\\\`\\"\\\$]*)
14140
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14141
      ;;
14142
    *)
14143
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14144
      ;;
14145
    esac
14146
done
14147
 
14148
# Fix-up fallback echo if it was mangled by the above quoting rules.
14149
case \$lt_ECHO in
14150
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14151
  ;;
14152
esac
14153
 
14154
ac_aux_dir='$ac_aux_dir'
14155
xsi_shell='$xsi_shell'
14156
lt_shell_append='$lt_shell_append'
14157
 
14158
# See if we are running on zsh, and set the options which allow our
14159
# commands through without removal of \ escapes INIT.
14160
if test -n "\${ZSH_VERSION+set}" ; then
14161
   setopt NO_GLOB_SUBST
14162
fi
14163
 
14164
 
14165
    PACKAGE='$PACKAGE'
14166
    VERSION='$VERSION'
14167
    TIMESTAMP='$TIMESTAMP'
14168
    RM='$RM'
14169
    ofile='$ofile'
14170
 
14171
 
14172
 
14173 19 jeremybenn
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14174
 
14175
_ACEOF
14176
 
14177 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14178 19 jeremybenn
 
14179
# Handling of arguments.
14180
for ac_config_target in $ac_config_targets
14181
do
14182
  case $ac_config_target in
14183 82 jeremybenn
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14184 19 jeremybenn
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14185
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14186
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14187
    "argtable2/Makefile") CONFIG_FILES="$CONFIG_FILES argtable2/Makefile" ;;
14188
    "bpb/Makefile") CONFIG_FILES="$CONFIG_FILES bpb/Makefile" ;;
14189
    "cache/Makefile") CONFIG_FILES="$CONFIG_FILES cache/Makefile" ;;
14190
    "cpu/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/Makefile" ;;
14191
    "cpu/common/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/common/Makefile" ;;
14192
    "cpu/or1k/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or1k/Makefile" ;;
14193
    "cuc/Makefile") CONFIG_FILES="$CONFIG_FILES cuc/Makefile" ;;
14194 233 julius
    "softfloat/Makefile") CONFIG_FILES="$CONFIG_FILES softfloat/Makefile" ;;
14195 19 jeremybenn
    "debug/Makefile") CONFIG_FILES="$CONFIG_FILES debug/Makefile" ;;
14196
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14197
    "mmu/Makefile") CONFIG_FILES="$CONFIG_FILES mmu/Makefile" ;;
14198
    "peripheral/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/Makefile" ;;
14199
    "peripheral/channels/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/channels/Makefile" ;;
14200
    "pm/Makefile") CONFIG_FILES="$CONFIG_FILES pm/Makefile" ;;
14201
    "pic/Makefile") CONFIG_FILES="$CONFIG_FILES pic/Makefile" ;;
14202 90 jeremybenn
    "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
14203
    "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
14204
    "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
14205
    "testsuite/config/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/config/Makefile" ;;
14206
    "testsuite/lib/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/lib/Makefile" ;;
14207
    "testsuite/libsim.tests/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/libsim.tests/Makefile" ;;
14208
    "testsuite/or1ksim.tests/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/or1ksim.tests/Makefile" ;;
14209
    "testsuite/test-code/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/Makefile" ;;
14210
    "testsuite/test-code/lib-iftest/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-iftest/Makefile" ;;
14211 93 jeremybenn
    "testsuite/test-code/lib-inttest/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-inttest/Makefile" ;;
14212 97 jeremybenn
    "testsuite/test-code/lib-jtag/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-jtag/Makefile" ;;
14213 93 jeremybenn
    "testsuite/test-code/lib-upcalls/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-upcalls/Makefile" ;;
14214 90 jeremybenn
    "tick/Makefile") CONFIG_FILES="$CONFIG_FILES tick/Makefile" ;;
14215 19 jeremybenn
    "vapi/Makefile") CONFIG_FILES="$CONFIG_FILES vapi/Makefile" ;;
14216
    "cpu/dlx/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/dlx/Makefile" ;;
14217
    "cpu/or32/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or32/Makefile" ;;
14218
 
14219 346 jeremybenn
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14220 19 jeremybenn
  esac
14221
done
14222
 
14223
 
14224
# If the user did not use the arguments to specify the items to instantiate,
14225
# then the envvar interface is used.  Set only those that are not.
14226
# We use the long form for the default assignment because of an extremely
14227
# bizarre bug on SunOS 4.1.3.
14228
if $ac_need_defaults; then
14229
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14230
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14231
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14232
fi
14233
 
14234
# Have a temporary directory for convenience.  Make it in the build tree
14235
# simply because there is no reason against having it here, and in addition,
14236
# creating and moving files from /tmp can sometimes cause problems.
14237
# Hook for its removal unless debugging.
14238
# Note that there is a small window in which the directory will not be cleaned:
14239
# after its creation but before its name has been assigned to `$tmp'.
14240
$debug ||
14241
{
14242
  tmp=
14243
  trap 'exit_status=$?
14244
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14245
' 0
14246 346 jeremybenn
  trap 'as_fn_exit 1' 1 2 13 15
14247 19 jeremybenn
}
14248
# Create a (secure) tmp directory for tmp files.
14249
 
14250
{
14251
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14252
  test -n "$tmp" && test -d "$tmp"
14253
}  ||
14254
{
14255
  tmp=./conf$$-$RANDOM
14256
  (umask 077 && mkdir "$tmp")
14257 346 jeremybenn
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14258 19 jeremybenn
 
14259 82 jeremybenn
# Set up the scripts for CONFIG_FILES section.
14260
# No need to generate them if there are no CONFIG_FILES.
14261
# This happens for instance with `./config.status config.h'.
14262 19 jeremybenn
if test -n "$CONFIG_FILES"; then
14263
 
14264 82 jeremybenn
 
14265 346 jeremybenn
ac_cr=`echo X | tr X '\015'`
14266
# On cygwin, bash can eat \r inside `` if the user requested igncr.
14267
# But we know of no other shell where ac_cr would be empty at this
14268
# point, so we can use a bashism as a fallback.
14269
if test "x$ac_cr" = x; then
14270
  eval ac_cr=\$\'\\r\'
14271
fi
14272 82 jeremybenn
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
14273
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14274 346 jeremybenn
  ac_cs_awk_cr='\r'
14275 82 jeremybenn
else
14276
  ac_cs_awk_cr=$ac_cr
14277
fi
14278
 
14279
echo 'BEGIN {' >"$tmp/subs1.awk" &&
14280 19 jeremybenn
_ACEOF
14281
 
14282
 
14283 82 jeremybenn
{
14284
  echo "cat >conf$$subs.awk <<_ACEOF" &&
14285
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14286
  echo "_ACEOF"
14287
} >conf$$subs.sh ||
14288 346 jeremybenn
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14289 82 jeremybenn
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14290 19 jeremybenn
ac_delim='%!_!# '
14291
for ac_last_try in false false false false false :; do
14292 82 jeremybenn
  . ./conf$$subs.sh ||
14293 346 jeremybenn
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14294 19 jeremybenn
 
14295 82 jeremybenn
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14296
  if test $ac_delim_n = $ac_delim_num; then
14297 19 jeremybenn
    break
14298
  elif $ac_last_try; then
14299 346 jeremybenn
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14300 19 jeremybenn
  else
14301
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14302
  fi
14303
done
14304 82 jeremybenn
rm -f conf$$subs.sh
14305 19 jeremybenn
 
14306 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14307
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14308 19 jeremybenn
_ACEOF
14309 82 jeremybenn
sed -n '
14310
h
14311
s/^/S["/; s/!.*/"]=/
14312
p
14313
g
14314
s/^[^!]*!//
14315
:repl
14316
t repl
14317
s/'"$ac_delim"'$//
14318
t delim
14319
:nl
14320
h
14321 432 jeremybenn
s/\(.\{148\}\)..*/\1/
14322 82 jeremybenn
t more1
14323
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14324
p
14325
n
14326
b repl
14327
:more1
14328
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14329
p
14330
g
14331
s/.\{148\}//
14332
t nl
14333
:delim
14334
h
14335 432 jeremybenn
s/\(.\{148\}\)..*/\1/
14336 82 jeremybenn
t more2
14337
s/["\\]/\\&/g; s/^/"/; s/$/"/
14338
p
14339
b
14340
:more2
14341
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14342
p
14343
g
14344
s/.\{148\}//
14345
t delim
14346
' 
14347
/^[^""]/{
14348
  N
14349
  s/\n//
14350
}
14351
' >>$CONFIG_STATUS || ac_write_fail=1
14352
rm -f conf$$subs.awk
14353
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14354
_ACAWK
14355
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14356
  for (key in S) S_is_set[key] = 1
14357
  FS = ""
14358 19 jeremybenn
 
14359 82 jeremybenn
}
14360
{
14361
  line = $ 0
14362
  nfields = split(line, field, "@")
14363
  substed = 0
14364
  len = length(field[1])
14365
  for (i = 2; i < nfields; i++) {
14366
    key = field[i]
14367
    keylen = length(key)
14368
    if (S_is_set[key]) {
14369
      value = S[key]
14370
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14371
      len += length(value) + length(field[++i])
14372
      substed = 1
14373
    } else
14374
      len += 1 + keylen
14375
  }
14376 19 jeremybenn
 
14377 82 jeremybenn
  print line
14378
}
14379
 
14380
_ACAWK
14381 19 jeremybenn
_ACEOF
14382 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14383
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14384
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14385
else
14386
  cat
14387
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14388 346 jeremybenn
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
14389 19 jeremybenn
_ACEOF
14390
 
14391
# VPATH may cause trouble with some makes, so we remove $(srcdir),
14392
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14393
# trailing colons and then remove the whole line if VPATH becomes empty
14394
# (actually we leave an empty line to preserve line numbers).
14395
if test "x$srcdir" = x.; then
14396
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
14397
s/:*\$(srcdir):*/:/
14398
s/:*\${srcdir}:*/:/
14399
s/:*@srcdir@:*/:/
14400
s/^\([^=]*=[     ]*\):*/\1/
14401
s/:*$//
14402
s/^[^=]*=[       ]*$//
14403
}'
14404
fi
14405
 
14406 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14407 19 jeremybenn
fi # test -n "$CONFIG_FILES"
14408
 
14409 82 jeremybenn
# Set up the scripts for CONFIG_HEADERS section.
14410
# No need to generate them if there are no CONFIG_HEADERS.
14411
# This happens for instance with `./config.status Makefile'.
14412
if test -n "$CONFIG_HEADERS"; then
14413
cat >"$tmp/defines.awk" <<\_ACAWK ||
14414
BEGIN {
14415
_ACEOF
14416 19 jeremybenn
 
14417 82 jeremybenn
# Transform confdefs.h into an awk script `defines.awk', embedded as
14418
# here-document in config.status, that substitutes the proper values into
14419
# config.h.in to produce config.h.
14420
 
14421
# Create a delimiter string that does not exist in confdefs.h, to ease
14422
# handling of long lines.
14423
ac_delim='%!_!# '
14424
for ac_last_try in false false :; do
14425
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14426
  if test -z "$ac_t"; then
14427
    break
14428
  elif $ac_last_try; then
14429 346 jeremybenn
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14430 82 jeremybenn
  else
14431
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14432
  fi
14433
done
14434
 
14435
# For the awk script, D is an array of macro values keyed by name,
14436
# likewise P contains macro parameters if any.  Preserve backslash
14437
# newline sequences.
14438
 
14439
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14440
sed -n '
14441
s/.\{148\}/&'"$ac_delim"'/g
14442
t rset
14443
:rset
14444
s/^[     ]*#[    ]*define[       ][      ]*/ /
14445
t def
14446
d
14447
:def
14448
s/\\$//
14449
t bsnl
14450
s/["\\]/\\&/g
14451
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14452
D["\1"]=" \3"/p
14453
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14454
d
14455
:bsnl
14456
s/["\\]/\\&/g
14457
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14458
D["\1"]=" \3\\\\\\n"\\/p
14459
t cont
14460
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14461
t cont
14462
d
14463
:cont
14464
n
14465
s/.\{148\}/&'"$ac_delim"'/g
14466
t clear
14467
:clear
14468
s/\\$//
14469
t bsnlc
14470
s/["\\]/\\&/g; s/^/"/; s/$/"/p
14471
d
14472
:bsnlc
14473
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14474
b cont
14475
' 
14476
s/'"$ac_delim"'/"\\\
14477
"/g' >>$CONFIG_STATUS || ac_write_fail=1
14478
 
14479
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14480
  for (key in D) D_is_set[key] = 1
14481
  FS = ""
14482
}
14483
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14484
  line = \$ 0
14485
  split(line, arg, " ")
14486
  if (arg[1] == "#") {
14487
    defundef = arg[2]
14488
    mac1 = arg[3]
14489
  } else {
14490
    defundef = substr(arg[1], 2)
14491
    mac1 = arg[2]
14492
  }
14493
  split(mac1, mac2, "(") #)
14494
  macro = mac2[1]
14495
  prefix = substr(line, 1, index(line, defundef) - 1)
14496
  if (D_is_set[macro]) {
14497
    # Preserve the white space surrounding the "#".
14498
    print prefix "define", macro P[macro] D[macro]
14499
    next
14500
  } else {
14501
    # Replace #undef with comments.  This is necessary, for example,
14502
    # in the case of _POSIX_SOURCE, which is predefined and required
14503
    # on some systems where configure will not decide to define it.
14504
    if (defundef == "undef") {
14505
      print "/*", prefix defundef, macro, "*/"
14506
      next
14507
    }
14508
  }
14509
}
14510
{ print }
14511
_ACAWK
14512
_ACEOF
14513
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14514 346 jeremybenn
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
14515 82 jeremybenn
fi # test -n "$CONFIG_HEADERS"
14516
 
14517
 
14518
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14519
shift
14520
for ac_tag
14521 19 jeremybenn
do
14522
  case $ac_tag in
14523
  :[FHLC]) ac_mode=$ac_tag; continue;;
14524
  esac
14525
  case $ac_mode$ac_tag in
14526
  :[FHL]*:*);;
14527 346 jeremybenn
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14528 19 jeremybenn
  :[FH]-) ac_tag=-:-;;
14529
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14530
  esac
14531
  ac_save_IFS=$IFS
14532
  IFS=:
14533
  set x $ac_tag
14534
  IFS=$ac_save_IFS
14535
  shift
14536
  ac_file=$1
14537
  shift
14538
 
14539
  case $ac_mode in
14540
  :L) ac_source=$1;;
14541
  :[FH])
14542
    ac_file_inputs=
14543
    for ac_f
14544
    do
14545
      case $ac_f in
14546
      -) ac_f="$tmp/stdin";;
14547
      *) # Look for the file first in the build tree, then in the source tree
14548
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
14549
         # because $ac_f cannot contain `:'.
14550
         test -f "$ac_f" ||
14551
           case $ac_f in
14552
           [\\/$]*) false;;
14553
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14554
           esac ||
14555 346 jeremybenn
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14556 19 jeremybenn
      esac
14557 82 jeremybenn
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14558 346 jeremybenn
      as_fn_append ac_file_inputs " '$ac_f'"
14559 19 jeremybenn
    done
14560
 
14561
    # Let's still pretend it is `configure' which instantiates (i.e., don't
14562
    # use $as_me), people would be surprised to read:
14563
    #    /* config.h.  Generated by config.status.  */
14564 82 jeremybenn
    configure_input='Generated from '`
14565
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14566
        `' by configure.'
14567 19 jeremybenn
    if test x"$ac_file" != x-; then
14568
      configure_input="$ac_file.  $configure_input"
14569 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14570 82 jeremybenn
$as_echo "$as_me: creating $ac_file" >&6;}
14571 19 jeremybenn
    fi
14572 82 jeremybenn
    # Neutralize special characters interpreted by sed in replacement strings.
14573
    case $configure_input in #(
14574
    *\&* | *\|* | *\\* )
14575
       ac_sed_conf_input=`$as_echo "$configure_input" |
14576
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14577
    *) ac_sed_conf_input=$configure_input;;
14578
    esac
14579 19 jeremybenn
 
14580
    case $ac_tag in
14581 82 jeremybenn
    *:-:* | *:-) cat >"$tmp/stdin" \
14582 346 jeremybenn
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14583 19 jeremybenn
    esac
14584
    ;;
14585
  esac
14586
 
14587
  ac_dir=`$as_dirname -- "$ac_file" ||
14588
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14589
         X"$ac_file" : 'X\(//\)[^/]' \| \
14590
         X"$ac_file" : 'X\(//\)$' \| \
14591
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14592 82 jeremybenn
$as_echo X"$ac_file" |
14593 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14594
            s//\1/
14595
            q
14596
          }
14597
          /^X\(\/\/\)[^/].*/{
14598
            s//\1/
14599
            q
14600
          }
14601
          /^X\(\/\/\)$/{
14602
            s//\1/
14603
            q
14604
          }
14605
          /^X\(\/\).*/{
14606
            s//\1/
14607
            q
14608
          }
14609
          s/.*/./; q'`
14610 346 jeremybenn
  as_dir="$ac_dir"; as_fn_mkdir_p
14611 19 jeremybenn
  ac_builddir=.
14612
 
14613
case "$ac_dir" in
14614
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14615
*)
14616 82 jeremybenn
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14617 19 jeremybenn
  # A ".." for each directory in $ac_dir_suffix.
14618 82 jeremybenn
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14619 19 jeremybenn
  case $ac_top_builddir_sub in
14620
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14621
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14622
  esac ;;
14623
esac
14624
ac_abs_top_builddir=$ac_pwd
14625
ac_abs_builddir=$ac_pwd$ac_dir_suffix
14626
# for backward compatibility:
14627
ac_top_builddir=$ac_top_build_prefix
14628
 
14629
case $srcdir in
14630
  .)  # We are building in place.
14631
    ac_srcdir=.
14632
    ac_top_srcdir=$ac_top_builddir_sub
14633
    ac_abs_top_srcdir=$ac_pwd ;;
14634
  [\\/]* | ?:[\\/]* )  # Absolute name.
14635
    ac_srcdir=$srcdir$ac_dir_suffix;
14636
    ac_top_srcdir=$srcdir
14637
    ac_abs_top_srcdir=$srcdir ;;
14638
  *) # Relative name.
14639
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14640
    ac_top_srcdir=$ac_top_build_prefix$srcdir
14641
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14642
esac
14643
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14644
 
14645
 
14646
  case $ac_mode in
14647
  :F)
14648
  #
14649
  # CONFIG_FILE
14650
  #
14651
 
14652
  case $INSTALL in
14653
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14654
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14655
  esac
14656
  ac_MKDIR_P=$MKDIR_P
14657
  case $MKDIR_P in
14658
  [\\/$]* | ?:[\\/]* ) ;;
14659
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14660
  esac
14661
_ACEOF
14662
 
14663 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14664 19 jeremybenn
# If the template does not know about datarootdir, expand it.
14665
# FIXME: This hack should be removed a few years after 2.60.
14666
ac_datarootdir_hack=; ac_datarootdir_seen=
14667 82 jeremybenn
ac_sed_dataroot='
14668
/datarootdir/ {
14669 19 jeremybenn
  p
14670
  q
14671
}
14672
/@datadir@/p
14673
/@docdir@/p
14674
/@infodir@/p
14675
/@localedir@/p
14676 346 jeremybenn
/@mandir@/p'
14677 82 jeremybenn
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14678 19 jeremybenn
*datarootdir*) ac_datarootdir_seen=yes;;
14679
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14680 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14681 82 jeremybenn
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14682 19 jeremybenn
_ACEOF
14683 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14684 19 jeremybenn
  ac_datarootdir_hack='
14685
  s&@datadir@&$datadir&g
14686
  s&@docdir@&$docdir&g
14687
  s&@infodir@&$infodir&g
14688
  s&@localedir@&$localedir&g
14689
  s&@mandir@&$mandir&g
14690 346 jeremybenn
  s&\\\${datarootdir}&$datarootdir&g' ;;
14691 19 jeremybenn
esac
14692
_ACEOF
14693
 
14694
# Neutralize VPATH when `$srcdir' = `.'.
14695
# Shell code in configure.ac might set extrasub.
14696
# FIXME: do we really want to maintain this feature?
14697 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14698
ac_sed_extra="$ac_vpsub
14699 19 jeremybenn
$extrasub
14700
_ACEOF
14701 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14702 19 jeremybenn
:t
14703
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14704 82 jeremybenn
s|@configure_input@|$ac_sed_conf_input|;t t
14705 19 jeremybenn
s&@top_builddir@&$ac_top_builddir_sub&;t t
14706 82 jeremybenn
s&@top_build_prefix@&$ac_top_build_prefix&;t t
14707 19 jeremybenn
s&@srcdir@&$ac_srcdir&;t t
14708
s&@abs_srcdir@&$ac_abs_srcdir&;t t
14709
s&@top_srcdir@&$ac_top_srcdir&;t t
14710
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14711
s&@builddir@&$ac_builddir&;t t
14712
s&@abs_builddir@&$ac_abs_builddir&;t t
14713
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14714
s&@INSTALL@&$ac_INSTALL&;t t
14715
s&@MKDIR_P@&$ac_MKDIR_P&;t t
14716
$ac_datarootdir_hack
14717 82 jeremybenn
"
14718
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14719 346 jeremybenn
  || as_fn_error "could not create $ac_file" "$LINENO" 5
14720 19 jeremybenn
 
14721
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14722
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14723
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14724 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14725 19 jeremybenn
which seems to be undefined.  Please make sure it is defined." >&5
14726 82 jeremybenn
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14727 19 jeremybenn
which seems to be undefined.  Please make sure it is defined." >&2;}
14728
 
14729
  rm -f "$tmp/stdin"
14730
  case $ac_file in
14731 82 jeremybenn
  -) cat "$tmp/out" && rm -f "$tmp/out";;
14732
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14733
  esac \
14734 346 jeremybenn
  || as_fn_error "could not create $ac_file" "$LINENO" 5
14735 19 jeremybenn
 ;;
14736
  :H)
14737
  #
14738
  # CONFIG_HEADER
14739
  #
14740
  if test x"$ac_file" != x-; then
14741 82 jeremybenn
    {
14742
      $as_echo "/* $configure_input  */" \
14743
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14744
    } >"$tmp/config.h" \
14745 346 jeremybenn
      || as_fn_error "could not create $ac_file" "$LINENO" 5
14746 82 jeremybenn
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14747 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14748 82 jeremybenn
$as_echo "$as_me: $ac_file is unchanged" >&6;}
14749 19 jeremybenn
    else
14750 82 jeremybenn
      rm -f "$ac_file"
14751
      mv "$tmp/config.h" "$ac_file" \
14752 346 jeremybenn
        || as_fn_error "could not create $ac_file" "$LINENO" 5
14753 19 jeremybenn
    fi
14754
  else
14755 82 jeremybenn
    $as_echo "/* $configure_input  */" \
14756
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14757 346 jeremybenn
      || as_fn_error "could not create -" "$LINENO" 5
14758 19 jeremybenn
  fi
14759 82 jeremybenn
# Compute "$ac_file"'s index in $config_headers.
14760
_am_arg="$ac_file"
14761 19 jeremybenn
_am_stamp_count=1
14762
for _am_header in $config_headers :; do
14763
  case $_am_header in
14764
    $_am_arg | $_am_arg:* )
14765
      break ;;
14766
    * )
14767
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14768
  esac
14769
done
14770
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14771
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14772
         X"$_am_arg" : 'X\(//\)[^/]' \| \
14773
         X"$_am_arg" : 'X\(//\)$' \| \
14774
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14775 82 jeremybenn
$as_echo X"$_am_arg" |
14776 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14777
            s//\1/
14778
            q
14779
          }
14780
          /^X\(\/\/\)[^/].*/{
14781
            s//\1/
14782
            q
14783
          }
14784
          /^X\(\/\/\)$/{
14785
            s//\1/
14786
            q
14787
          }
14788
          /^X\(\/\).*/{
14789
            s//\1/
14790
            q
14791
          }
14792
          s/.*/./; q'`/stamp-h$_am_stamp_count
14793
 ;;
14794
 
14795 346 jeremybenn
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14796 82 jeremybenn
$as_echo "$as_me: executing $ac_file commands" >&6;}
14797 19 jeremybenn
 ;;
14798
  esac
14799
 
14800
 
14801
  case $ac_file$ac_mode in
14802 82 jeremybenn
    "libtool":C)
14803
 
14804
    # See if we are running on zsh, and set the options which allow our
14805
    # commands through without removal of \ escapes.
14806
    if test -n "${ZSH_VERSION+set}" ; then
14807
      setopt NO_GLOB_SUBST
14808
    fi
14809
 
14810
    cfgfile="${ofile}T"
14811
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14812
    $RM "$cfgfile"
14813
 
14814
    cat <<_LT_EOF >> "$cfgfile"
14815
#! $SHELL
14816
 
14817
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14818
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14819
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14820
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14821
#
14822
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14823
#                 2006, 2007, 2008 Free Software Foundation, Inc.
14824
#   Written by Gordon Matzigkeit, 1996
14825
#
14826
#   This file is part of GNU Libtool.
14827
#
14828
# GNU Libtool is free software; you can redistribute it and/or
14829
# modify it under the terms of the GNU General Public License as
14830
# published by the Free Software Foundation; either version 2 of
14831
# the License, or (at your option) any later version.
14832
#
14833
# As a special exception to the GNU General Public License,
14834
# if you distribute this file as part of a program or library that
14835
# is built using GNU Libtool, you may include this file under the
14836
# same distribution terms that you use for the rest of that program.
14837
#
14838
# GNU Libtool is distributed in the hope that it will be useful,
14839
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14840
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14841
# GNU General Public License for more details.
14842
#
14843
# You should have received a copy of the GNU General Public License
14844
# along with GNU Libtool; see the file COPYING.  If not, a copy
14845
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14846
# obtained by writing to the Free Software Foundation, Inc.,
14847
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14848
 
14849
 
14850
# The names of the tagged configurations supported by this script.
14851
available_tags=""
14852
 
14853
# ### BEGIN LIBTOOL CONFIG
14854
 
14855
# Which release of libtool.m4 was used?
14856
macro_version=$macro_version
14857
macro_revision=$macro_revision
14858
 
14859
# Whether or not to build shared libraries.
14860
build_libtool_libs=$enable_shared
14861
 
14862
# Whether or not to build static libraries.
14863
build_old_libs=$enable_static
14864
 
14865
# What type of objects to build.
14866
pic_mode=$pic_mode
14867
 
14868
# Whether or not to optimize for fast installation.
14869
fast_install=$enable_fast_install
14870
 
14871
# The host system.
14872
host_alias=$host_alias
14873
host=$host
14874
host_os=$host_os
14875
 
14876
# The build system.
14877
build_alias=$build_alias
14878
build=$build
14879
build_os=$build_os
14880
 
14881
# A sed program that does not truncate output.
14882
SED=$lt_SED
14883
 
14884
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14885
Xsed="\$SED -e 1s/^X//"
14886
 
14887
# A grep program that handles long lines.
14888
GREP=$lt_GREP
14889
 
14890
# An ERE matcher.
14891
EGREP=$lt_EGREP
14892
 
14893
# A literal string matcher.
14894
FGREP=$lt_FGREP
14895
 
14896
# A BSD- or MS-compatible name lister.
14897
NM=$lt_NM
14898
 
14899
# Whether we need soft or hard links.
14900
LN_S=$lt_LN_S
14901
 
14902
# What is the maximum length of a command?
14903
max_cmd_len=$max_cmd_len
14904
 
14905
# Object file suffix (normally "o").
14906
objext=$ac_objext
14907
 
14908
# Executable file suffix (normally "").
14909
exeext=$exeext
14910
 
14911
# whether the shell understands "unset".
14912
lt_unset=$lt_unset
14913
 
14914
# turn spaces into newlines.
14915
SP2NL=$lt_lt_SP2NL
14916
 
14917
# turn newlines into spaces.
14918
NL2SP=$lt_lt_NL2SP
14919
 
14920
# How to create reloadable object files.
14921
reload_flag=$lt_reload_flag
14922
reload_cmds=$lt_reload_cmds
14923
 
14924
# An object symbol dumper.
14925
OBJDUMP=$lt_OBJDUMP
14926
 
14927
# Method to check whether dependent libraries are shared objects.
14928
deplibs_check_method=$lt_deplibs_check_method
14929
 
14930
# Command to use when deplibs_check_method == "file_magic".
14931
file_magic_cmd=$lt_file_magic_cmd
14932
 
14933
# The archiver.
14934
AR=$lt_AR
14935
AR_FLAGS=$lt_AR_FLAGS
14936
 
14937
# A symbol stripping program.
14938
STRIP=$lt_STRIP
14939
 
14940
# Commands used to install an old-style archive.
14941
RANLIB=$lt_RANLIB
14942
old_postinstall_cmds=$lt_old_postinstall_cmds
14943
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14944
 
14945
# A C compiler.
14946
LTCC=$lt_CC
14947
 
14948
# LTCC compiler flags.
14949
LTCFLAGS=$lt_CFLAGS
14950
 
14951
# Take the output of nm and produce a listing of raw symbols and C names.
14952
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14953
 
14954
# Transform the output of nm in a proper C declaration.
14955
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14956
 
14957
# Transform the output of nm in a C name address pair.
14958
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14959
 
14960
# Transform the output of nm in a C name address pair when lib prefix is needed.
14961
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14962
 
14963
# The name of the directory that contains temporary libtool files.
14964
objdir=$objdir
14965
 
14966
# Shell to use when invoking shell scripts.
14967
SHELL=$lt_SHELL
14968
 
14969
# An echo program that does not interpret backslashes.
14970
ECHO=$lt_ECHO
14971
 
14972
# Used to examine libraries when file_magic_cmd begins with "file".
14973
MAGIC_CMD=$MAGIC_CMD
14974
 
14975
# Must we lock files when doing compilation?
14976
need_locks=$lt_need_locks
14977
 
14978
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14979
DSYMUTIL=$lt_DSYMUTIL
14980
 
14981
# Tool to change global to local symbols on Mac OS X.
14982
NMEDIT=$lt_NMEDIT
14983
 
14984
# Tool to manipulate fat objects and archives on Mac OS X.
14985
LIPO=$lt_LIPO
14986
 
14987
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14988
OTOOL=$lt_OTOOL
14989
 
14990
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14991
OTOOL64=$lt_OTOOL64
14992
 
14993
# Old archive suffix (normally "a").
14994
libext=$libext
14995
 
14996
# Shared library suffix (normally ".so").
14997
shrext_cmds=$lt_shrext_cmds
14998
 
14999
# The commands to extract the exported symbol list from a shared archive.
15000
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15001
 
15002
# Variables whose values should be saved in libtool wrapper scripts and
15003
# restored at link time.
15004
variables_saved_for_relink=$lt_variables_saved_for_relink
15005
 
15006
# Do we need the "lib" prefix for modules?
15007
need_lib_prefix=$need_lib_prefix
15008
 
15009
# Do we need a version for libraries?
15010
need_version=$need_version
15011
 
15012
# Library versioning type.
15013
version_type=$version_type
15014
 
15015
# Shared library runtime path variable.
15016
runpath_var=$runpath_var
15017
 
15018
# Shared library path variable.
15019
shlibpath_var=$shlibpath_var
15020
 
15021
# Is shlibpath searched before the hard-coded library search path?
15022
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15023
 
15024
# Format of library name prefix.
15025
libname_spec=$lt_libname_spec
15026
 
15027
# List of archive names.  First name is the real one, the rest are links.
15028
# The last name is the one that the linker finds with -lNAME
15029
library_names_spec=$lt_library_names_spec
15030
 
15031
# The coded name of the library, if different from the real name.
15032
soname_spec=$lt_soname_spec
15033
 
15034
# Command to use after installation of a shared archive.
15035
postinstall_cmds=$lt_postinstall_cmds
15036
 
15037
# Command to use after uninstallation of a shared archive.
15038
postuninstall_cmds=$lt_postuninstall_cmds
15039
 
15040
# Commands used to finish a libtool library installation in a directory.
15041
finish_cmds=$lt_finish_cmds
15042
 
15043
# As "finish_cmds", except a single script fragment to be evaled but
15044
# not shown.
15045
finish_eval=$lt_finish_eval
15046
 
15047
# Whether we should hardcode library paths into libraries.
15048
hardcode_into_libs=$hardcode_into_libs
15049
 
15050
# Compile-time system search path for libraries.
15051
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15052
 
15053
# Run-time system search path for libraries.
15054
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15055
 
15056
# Whether dlopen is supported.
15057
dlopen_support=$enable_dlopen
15058
 
15059
# Whether dlopen of programs is supported.
15060
dlopen_self=$enable_dlopen_self
15061
 
15062
# Whether dlopen of statically linked programs is supported.
15063
dlopen_self_static=$enable_dlopen_self_static
15064
 
15065
# Commands to strip libraries.
15066
old_striplib=$lt_old_striplib
15067
striplib=$lt_striplib
15068
 
15069
 
15070
# The linker used to build libraries.
15071
LD=$lt_LD
15072
 
15073
# Commands used to build an old-style archive.
15074
old_archive_cmds=$lt_old_archive_cmds
15075
 
15076
# A language specific compiler.
15077
CC=$lt_compiler
15078
 
15079
# Is the compiler the GNU compiler?
15080
with_gcc=$GCC
15081
 
15082
# Compiler flag to turn off builtin functions.
15083
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15084
 
15085
# How to pass a linker flag through the compiler.
15086
wl=$lt_lt_prog_compiler_wl
15087
 
15088
# Additional compiler flags for building library objects.
15089
pic_flag=$lt_lt_prog_compiler_pic
15090
 
15091
# Compiler flag to prevent dynamic linking.
15092
link_static_flag=$lt_lt_prog_compiler_static
15093
 
15094
# Does compiler simultaneously support -c and -o options?
15095
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15096
 
15097
# Whether or not to add -lc for building shared libraries.
15098
build_libtool_need_lc=$archive_cmds_need_lc
15099
 
15100
# Whether or not to disallow shared libs when runtime libs are static.
15101
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15102
 
15103
# Compiler flag to allow reflexive dlopens.
15104
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15105
 
15106
# Compiler flag to generate shared objects directly from archives.
15107
whole_archive_flag_spec=$lt_whole_archive_flag_spec
15108
 
15109
# Whether the compiler copes with passing no objects directly.
15110
compiler_needs_object=$lt_compiler_needs_object
15111
 
15112
# Create an old-style archive from a shared archive.
15113
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15114
 
15115
# Create a temporary old-style archive to link instead of a shared archive.
15116
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15117
 
15118
# Commands used to build a shared archive.
15119
archive_cmds=$lt_archive_cmds
15120
archive_expsym_cmds=$lt_archive_expsym_cmds
15121
 
15122
# Commands used to build a loadable module if different from building
15123
# a shared archive.
15124
module_cmds=$lt_module_cmds
15125
module_expsym_cmds=$lt_module_expsym_cmds
15126
 
15127
# Whether we are building with GNU ld or not.
15128
with_gnu_ld=$lt_with_gnu_ld
15129
 
15130
# Flag that allows shared libraries with undefined symbols to be built.
15131
allow_undefined_flag=$lt_allow_undefined_flag
15132
 
15133
# Flag that enforces no undefined symbols.
15134
no_undefined_flag=$lt_no_undefined_flag
15135
 
15136
# Flag to hardcode \$libdir into a binary during linking.
15137
# This must work even if \$libdir does not exist
15138
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15139
 
15140
# If ld is used when linking, flag to hardcode \$libdir into a binary
15141
# during linking.  This must work even if \$libdir does not exist.
15142
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15143
 
15144
# Whether we need a single "-rpath" flag with a separated argument.
15145
hardcode_libdir_separator=$lt_hardcode_libdir_separator
15146
 
15147
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15148
# DIR into the resulting binary.
15149
hardcode_direct=$hardcode_direct
15150
 
15151
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15152
# DIR into the resulting binary and the resulting library dependency is
15153
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15154
# library is relocated.
15155
hardcode_direct_absolute=$hardcode_direct_absolute
15156
 
15157
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15158
# into the resulting binary.
15159
hardcode_minus_L=$hardcode_minus_L
15160
 
15161
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15162
# into the resulting binary.
15163
hardcode_shlibpath_var=$hardcode_shlibpath_var
15164
 
15165
# Set to "yes" if building a shared library automatically hardcodes DIR
15166
# into the library and all subsequent libraries and executables linked
15167
# against it.
15168
hardcode_automatic=$hardcode_automatic
15169
 
15170
# Set to yes if linker adds runtime paths of dependent libraries
15171
# to runtime path list.
15172
inherit_rpath=$inherit_rpath
15173
 
15174
# Whether libtool must link a program against all its dependency libraries.
15175
link_all_deplibs=$link_all_deplibs
15176
 
15177
# Fix the shell variable \$srcfile for the compiler.
15178
fix_srcfile_path=$lt_fix_srcfile_path
15179
 
15180
# Set to "yes" if exported symbols are required.
15181
always_export_symbols=$always_export_symbols
15182
 
15183
# The commands to list exported symbols.
15184
export_symbols_cmds=$lt_export_symbols_cmds
15185
 
15186
# Symbols that should not be listed in the preloaded symbols.
15187
exclude_expsyms=$lt_exclude_expsyms
15188
 
15189
# Symbols that must always be exported.
15190
include_expsyms=$lt_include_expsyms
15191
 
15192
# Commands necessary for linking programs (against libraries) with templates.
15193
prelink_cmds=$lt_prelink_cmds
15194
 
15195
# Specify filename containing input files.
15196
file_list_spec=$lt_file_list_spec
15197
 
15198
# How to hardcode a shared library path into an executable.
15199
hardcode_action=$hardcode_action
15200
 
15201
# ### END LIBTOOL CONFIG
15202
 
15203
_LT_EOF
15204
 
15205
  case $host_os in
15206
  aix3*)
15207
    cat <<\_LT_EOF >> "$cfgfile"
15208
# AIX sometimes has problems with the GCC collect2 program.  For some
15209
# reason, if we set the COLLECT_NAMES environment variable, the problems
15210
# vanish in a puff of smoke.
15211
if test "X${COLLECT_NAMES+set}" != Xset; then
15212
  COLLECT_NAMES=
15213
  export COLLECT_NAMES
15214
fi
15215
_LT_EOF
15216
    ;;
15217
  esac
15218
 
15219
 
15220
ltmain="$ac_aux_dir/ltmain.sh"
15221
 
15222
 
15223
  # We use sed instead of cat because bash on DJGPP gets confused if
15224
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15225
  # text mode, it properly converts lines to CR/LF.  This bash problem
15226
  # is reportedly fixed, but why not run on old versions too?
15227
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15228
    || (rm -f "$cfgfile"; exit 1)
15229
 
15230
  case $xsi_shell in
15231
  yes)
15232
    cat << \_LT_EOF >> "$cfgfile"
15233
 
15234
# func_dirname file append nondir_replacement
15235
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15236
# otherwise set result to NONDIR_REPLACEMENT.
15237
func_dirname ()
15238
{
15239
  case ${1} in
15240
    */*) func_dirname_result="${1%/*}${2}" ;;
15241
    *  ) func_dirname_result="${3}" ;;
15242
  esac
15243
}
15244
 
15245
# func_basename file
15246
func_basename ()
15247
{
15248
  func_basename_result="${1##*/}"
15249
}
15250
 
15251
# func_dirname_and_basename file append nondir_replacement
15252
# perform func_basename and func_dirname in a single function
15253
# call:
15254
#   dirname:  Compute the dirname of FILE.  If nonempty,
15255
#             add APPEND to the result, otherwise set result
15256
#             to NONDIR_REPLACEMENT.
15257
#             value returned in "$func_dirname_result"
15258
#   basename: Compute filename of FILE.
15259
#             value retuned in "$func_basename_result"
15260
# Implementation must be kept synchronized with func_dirname
15261
# and func_basename. For efficiency, we do not delegate to
15262
# those functions but instead duplicate the functionality here.
15263
func_dirname_and_basename ()
15264
{
15265
  case ${1} in
15266
    */*) func_dirname_result="${1%/*}${2}" ;;
15267
    *  ) func_dirname_result="${3}" ;;
15268
  esac
15269
  func_basename_result="${1##*/}"
15270
}
15271
 
15272
# func_stripname prefix suffix name
15273
# strip PREFIX and SUFFIX off of NAME.
15274
# PREFIX and SUFFIX must not contain globbing or regex special
15275
# characters, hashes, percent signs, but SUFFIX may contain a leading
15276
# dot (in which case that matches only a dot).
15277
func_stripname ()
15278
{
15279
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15280
  # positional parameters, so assign one to ordinary parameter first.
15281
  func_stripname_result=${3}
15282
  func_stripname_result=${func_stripname_result#"${1}"}
15283
  func_stripname_result=${func_stripname_result%"${2}"}
15284
}
15285
 
15286
# func_opt_split
15287
func_opt_split ()
15288
{
15289
  func_opt_split_opt=${1%%=*}
15290
  func_opt_split_arg=${1#*=}
15291
}
15292
 
15293
# func_lo2o object
15294
func_lo2o ()
15295
{
15296
  case ${1} in
15297
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15298
    *)    func_lo2o_result=${1} ;;
15299
  esac
15300
}
15301
 
15302
# func_xform libobj-or-source
15303
func_xform ()
15304
{
15305
  func_xform_result=${1%.*}.lo
15306
}
15307
 
15308
# func_arith arithmetic-term...
15309
func_arith ()
15310
{
15311
  func_arith_result=$(( $* ))
15312
}
15313
 
15314
# func_len string
15315
# STRING may not start with a hyphen.
15316
func_len ()
15317
{
15318
  func_len_result=${#1}
15319
}
15320
 
15321
_LT_EOF
15322
    ;;
15323
  *) # Bourne compatible functions.
15324
    cat << \_LT_EOF >> "$cfgfile"
15325
 
15326
# func_dirname file append nondir_replacement
15327
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15328
# otherwise set result to NONDIR_REPLACEMENT.
15329
func_dirname ()
15330
{
15331
  # Extract subdirectory from the argument.
15332
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15333
  if test "X$func_dirname_result" = "X${1}"; then
15334
    func_dirname_result="${3}"
15335
  else
15336
    func_dirname_result="$func_dirname_result${2}"
15337
  fi
15338
}
15339
 
15340
# func_basename file
15341
func_basename ()
15342
{
15343
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15344
}
15345
 
15346
 
15347
# func_stripname prefix suffix name
15348
# strip PREFIX and SUFFIX off of NAME.
15349
# PREFIX and SUFFIX must not contain globbing or regex special
15350
# characters, hashes, percent signs, but SUFFIX may contain a leading
15351
# dot (in which case that matches only a dot).
15352
# func_strip_suffix prefix name
15353
func_stripname ()
15354
{
15355
  case ${2} in
15356
    .*) func_stripname_result=`$ECHO "X${3}" \
15357
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15358
    *)  func_stripname_result=`$ECHO "X${3}" \
15359
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15360
  esac
15361
}
15362
 
15363
# sed scripts:
15364
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15365
my_sed_long_arg='1s/^-[^=]*=//'
15366
 
15367
# func_opt_split
15368
func_opt_split ()
15369
{
15370
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15371
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15372
}
15373
 
15374
# func_lo2o object
15375
func_lo2o ()
15376
{
15377
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15378
}
15379
 
15380
# func_xform libobj-or-source
15381
func_xform ()
15382
{
15383
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15384
}
15385
 
15386
# func_arith arithmetic-term...
15387
func_arith ()
15388
{
15389
  func_arith_result=`expr "$@"`
15390
}
15391
 
15392
# func_len string
15393
# STRING may not start with a hyphen.
15394
func_len ()
15395
{
15396
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15397
}
15398
 
15399
_LT_EOF
15400
esac
15401
 
15402
case $lt_shell_append in
15403
  yes)
15404
    cat << \_LT_EOF >> "$cfgfile"
15405
 
15406
# func_append var value
15407
# Append VALUE to the end of shell variable VAR.
15408
func_append ()
15409
{
15410
  eval "$1+=\$2"
15411
}
15412
_LT_EOF
15413
    ;;
15414
  *)
15415
    cat << \_LT_EOF >> "$cfgfile"
15416
 
15417
# func_append var value
15418
# Append VALUE to the end of shell variable VAR.
15419
func_append ()
15420
{
15421
  eval "$1=\$$1\$2"
15422
}
15423
 
15424
_LT_EOF
15425
    ;;
15426
  esac
15427
 
15428
 
15429
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15430
    || (rm -f "$cfgfile"; exit 1)
15431
 
15432
  mv -f "$cfgfile" "$ofile" ||
15433
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15434
  chmod +x "$ofile"
15435
 
15436
 ;;
15437
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15438
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
15439
  # are listed without --file.  Let's play safe and only enable the eval
15440
  # if we detect the quoting.
15441
  case $CONFIG_FILES in
15442
  *\'*) eval set x "$CONFIG_FILES" ;;
15443
  *)   set x $CONFIG_FILES ;;
15444
  esac
15445
  shift
15446
  for mf
15447
  do
15448
    # Strip MF so we end up with the name of the file.
15449
    mf=`echo "$mf" | sed -e 's/:.*$//'`
15450
    # Check whether this is an Automake generated Makefile or not.
15451
    # We used to match only the files named `Makefile.in', but
15452
    # some people rename them; so instead we look at the file content.
15453
    # Grep'ing the first line is not enough: some people post-process
15454
    # each Makefile.in and add a new line on top of each file to say so.
15455
    # Grep'ing the whole file is not good either: AIX grep has a line
15456
    # limit of 2048, but all sed's we know have understand at least 4000.
15457
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15458
      dirpart=`$as_dirname -- "$mf" ||
15459 19 jeremybenn
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15460
         X"$mf" : 'X\(//\)[^/]' \| \
15461
         X"$mf" : 'X\(//\)$' \| \
15462
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15463 82 jeremybenn
$as_echo X"$mf" |
15464 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15465
            s//\1/
15466
            q
15467
          }
15468
          /^X\(\/\/\)[^/].*/{
15469
            s//\1/
15470
            q
15471
          }
15472
          /^X\(\/\/\)$/{
15473
            s//\1/
15474
            q
15475
          }
15476
          /^X\(\/\).*/{
15477
            s//\1/
15478
            q
15479
          }
15480
          s/.*/./; q'`
15481 82 jeremybenn
    else
15482
      continue
15483
    fi
15484
    # Extract the definition of DEPDIR, am__include, and am__quote
15485
    # from the Makefile without running `make'.
15486
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15487
    test -z "$DEPDIR" && continue
15488
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
15489
    test -z "am__include" && continue
15490
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15491
    # When using ansi2knr, U may be empty or an underscore; expand it
15492
    U=`sed -n 's/^U = //p' < "$mf"`
15493
    # Find all dependency output files, they are included files with
15494
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
15495
    # simplest approach to changing $(DEPDIR) to its actual value in the
15496
    # expansion.
15497
    for file in `sed -n "
15498
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15499
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15500
      # Make sure the directory exists.
15501
      test -f "$dirpart/$file" && continue
15502
      fdir=`$as_dirname -- "$file" ||
15503 19 jeremybenn
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15504
         X"$file" : 'X\(//\)[^/]' \| \
15505
         X"$file" : 'X\(//\)$' \| \
15506
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15507 82 jeremybenn
$as_echo X"$file" |
15508 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15509
            s//\1/
15510
            q
15511
          }
15512
          /^X\(\/\/\)[^/].*/{
15513
            s//\1/
15514
            q
15515
          }
15516
          /^X\(\/\/\)$/{
15517
            s//\1/
15518
            q
15519
          }
15520
          /^X\(\/\).*/{
15521
            s//\1/
15522
            q
15523
          }
15524
          s/.*/./; q'`
15525 346 jeremybenn
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
15526 82 jeremybenn
      # echo "creating $dirpart/$file"
15527
      echo '# dummy' > "$dirpart/$file"
15528
    done
15529 19 jeremybenn
  done
15530 82 jeremybenn
}
15531 19 jeremybenn
 ;;
15532
 
15533
  esac
15534
done # for ac_tag
15535
 
15536
 
15537 346 jeremybenn
as_fn_exit 0
15538 19 jeremybenn
_ACEOF
15539
ac_clean_files=$ac_clean_files_save
15540
 
15541 82 jeremybenn
test $ac_write_fail = 0 ||
15542 346 jeremybenn
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15543 19 jeremybenn
 
15544 82 jeremybenn
 
15545 19 jeremybenn
# configure is writing to config.log, and then calls config.status.
15546
# config.status does its own redirection, appending to config.log.
15547
# Unfortunately, on DOS this fails, as config.log is still kept open
15548
# by configure, so config.status won't be able to write to it; its
15549
# output is simply discarded.  So we exec the FD to /dev/null,
15550
# effectively closing config.log, so it can be properly (re)opened and
15551
# appended to by config.status.  When coming back to configure, we
15552
# need to make the FD available again.
15553
if test "$no_create" != yes; then
15554
  ac_cs_success=:
15555
  ac_config_status_args=
15556
  test "$silent" = yes &&
15557
    ac_config_status_args="$ac_config_status_args --quiet"
15558
  exec 5>/dev/null
15559
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15560
  exec 5>>config.log
15561
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15562
  # would make configure fail if this is the last instruction.
15563 346 jeremybenn
  $ac_cs_success || as_fn_exit $?
15564 19 jeremybenn
fi
15565
 
15566 82 jeremybenn
#
15567
# CONFIG_SUBDIRS section.
15568
#
15569
if test "$no_recursion" != yes; then
15570
 
15571
  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
15572
  # so they do not pile up.
15573
  ac_sub_configure_args=
15574
  ac_prev=
15575
  eval "set x $ac_configure_args"
15576
  shift
15577
  for ac_arg
15578
  do
15579
    if test -n "$ac_prev"; then
15580
      ac_prev=
15581
      continue
15582
    fi
15583
    case $ac_arg in
15584
    -cache-file | --cache-file | --cache-fil | --cache-fi \
15585
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15586
      ac_prev=cache_file ;;
15587
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15588
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
15589
    | --c=*)
15590
      ;;
15591
    --config-cache | -C)
15592
      ;;
15593
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15594
      ac_prev=srcdir ;;
15595
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15596
      ;;
15597
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
15598
      ac_prev=prefix ;;
15599
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
15600
      ;;
15601
    --disable-option-checking)
15602
      ;;
15603
    *)
15604
      case $ac_arg in
15605
      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15606
      esac
15607 346 jeremybenn
      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
15608 82 jeremybenn
    esac
15609
  done
15610
 
15611
  # Always prepend --prefix to ensure using the same prefix
15612
  # in subdir configurations.
15613
  ac_arg="--prefix=$prefix"
15614
  case $ac_arg in
15615
  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15616
  esac
15617
  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
15618
 
15619
  # Pass --silent
15620
  if test "$silent" = yes; then
15621
    ac_sub_configure_args="--silent $ac_sub_configure_args"
15622
  fi
15623
 
15624
  # Always prepend --disable-option-checking to silence warnings, since
15625
  # different subdirs can have different --enable and --with options.
15626
  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
15627
 
15628
  ac_popdir=`pwd`
15629
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
15630
 
15631
    # Do not complain, so a configure script can configure whichever
15632
    # parts of a large source tree are present.
15633
    test -d "$srcdir/$ac_dir" || continue
15634
 
15635
    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
15636 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
15637 82 jeremybenn
    $as_echo "$ac_msg" >&6
15638 346 jeremybenn
    as_dir="$ac_dir"; as_fn_mkdir_p
15639 82 jeremybenn
    ac_builddir=.
15640
 
15641
case "$ac_dir" in
15642
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15643
*)
15644
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15645
  # A ".." for each directory in $ac_dir_suffix.
15646
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15647
  case $ac_top_builddir_sub in
15648
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15649
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15650
  esac ;;
15651
esac
15652
ac_abs_top_builddir=$ac_pwd
15653
ac_abs_builddir=$ac_pwd$ac_dir_suffix
15654
# for backward compatibility:
15655
ac_top_builddir=$ac_top_build_prefix
15656
 
15657
case $srcdir in
15658
  .)  # We are building in place.
15659
    ac_srcdir=.
15660
    ac_top_srcdir=$ac_top_builddir_sub
15661
    ac_abs_top_srcdir=$ac_pwd ;;
15662
  [\\/]* | ?:[\\/]* )  # Absolute name.
15663
    ac_srcdir=$srcdir$ac_dir_suffix;
15664
    ac_top_srcdir=$srcdir
15665
    ac_abs_top_srcdir=$srcdir ;;
15666
  *) # Relative name.
15667
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15668
    ac_top_srcdir=$ac_top_build_prefix$srcdir
15669
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15670
esac
15671
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15672
 
15673
 
15674
    cd "$ac_dir"
15675
 
15676
    # Check for guested configure; otherwise get Cygnus style configure.
15677
    if test -f "$ac_srcdir/configure.gnu"; then
15678
      ac_sub_configure=$ac_srcdir/configure.gnu
15679
    elif test -f "$ac_srcdir/configure"; then
15680
      ac_sub_configure=$ac_srcdir/configure
15681
    elif test -f "$ac_srcdir/configure.in"; then
15682
      # This should be Cygnus configure.
15683
      ac_sub_configure=$ac_aux_dir/configure
15684
    else
15685 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
15686 82 jeremybenn
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15687
      ac_sub_configure=
15688
    fi
15689
 
15690
    # The recursion is here.
15691
    if test -n "$ac_sub_configure"; then
15692
      # Make the cache file name correct relative to the subdirectory.
15693
      case $cache_file in
15694
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15695
      *) # Relative name.
15696
        ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15697
      esac
15698
 
15699 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
15700 82 jeremybenn
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15701
      # The eval makes quoting arguments work.
15702
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15703
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15704 346 jeremybenn
        as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
15705 82 jeremybenn
    fi
15706
 
15707
    cd "$ac_popdir"
15708
  done
15709
fi
15710
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15711 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15712 82 jeremybenn
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15713
fi
15714
 

powered by: WebSVN 2.1.0

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